Nimble Page Builder - Version 1.8.1

Version Description

Introduction of a new customizer control to set a column width in percent, synchronized with the manual resize action in preview.

=

Download this release

Release Info

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

Code changes from version 1.8.0 to 1.8.1

assets/czr/sek/js/ccat-sek-control.js CHANGED
@@ -1084,10 +1084,20 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
1084
  $closestLevel = $el.closest('[data-nimb-level]');
1085
  api.previewer.send('sek-animate-to-level', { id : $closestLevel.data('nimb-id') });
1086
  api.previewer.send('sek-clean-level-uis');
 
 
1087
  _.delay( function() {
1088
  api.previewer.send('sek-display-level-ui', { id : $closestLevel.data('nimb-id') });
1089
- }, 100 );
1090
 
 
 
 
 
 
 
 
 
 
1091
  });
1092
 
1093
  $('body').on('click', '#nimble-level-tree .sek-remove-level', function(evt) {
@@ -4030,6 +4040,16 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4030
  }
4031
  });
4032
  }
 
 
 
 
 
 
 
 
 
 
4033
  if ( 'module' === params.level ) {
4034
  $.extend( modulesRegistrationParams, {
4035
  width : {
@@ -4965,9 +4985,11 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4965
  }
4966
 
4967
  // RESET ALL COLUMNS WIDTH
4968
- _.each( sektionCandidate.collection, function( colModel ) {
4969
- colModel.width = '';
4970
- });
 
 
4971
  sektionCandidate.collection.push({
4972
  id : params.id,
4973
  level : 'column',
@@ -4990,9 +5012,10 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
4990
  return column.id != params.id;
4991
  });
4992
  // RESET ALL COLUMNS WIDTH
4993
- _.each( sektionCandidate.collection, function( colModel ) {
4994
- colModel.width = '';
4995
- });
 
4996
  } else {
4997
  api.errare( 'updateAPISetting => ' + params.action + ' => no parent sektion matched' );
4998
  }
@@ -5028,9 +5051,10 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
5028
  cloneId = deepClonedColumn.id;//will be passed in resolve()
5029
  sektionCandidate.collection.splice( parseInt( _position + 1, 10 ), 0, deepClonedColumn );
5030
  // RESET ALL COLUMNS WIDTH
5031
- _.each( sektionCandidate.collection, function( colModel ) {
5032
- colModel.width = '';
5033
- });
 
5034
  break;
5035
 
5036
 
@@ -5051,37 +5075,65 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
5051
  break;
5052
  }
5053
 
5054
- resizedColumn.width = parseFloat( params.resizedColumnWidthInPercent );
 
 
 
 
 
 
 
5055
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5056
 
5057
  // SET OTHER COLUMNS WIDTH
5058
  var parentSektion = self.getLevelModel( params.in_sektion, newSetValue.collection );
5059
  var otherColumns = _.filter( parentSektion.collection, function( _col_ ) {
5060
- return _col_.id != resizedColumn.id && _col_.id != sistercolumn.id;
5061
- });
5062
- var otherColumnsWidth = parseFloat( resizedColumn.width.toFixed(3) );
5063
 
5064
  if ( ! _.isEmpty( otherColumns ) ) {
5065
  _.each( otherColumns, function( colModel ) {
5066
- currentColWidth = parseFloat( colModel.width * 1 );
5067
- if ( ! _.has( colModel, 'width') || ! _.isNumber( currentColWidth * 1 ) || _.isEmpty( currentColWidth + '' ) || 1 > currentColWidth ) {
5068
- colModel.width = parseFloat( ( 100 / params.col_number ).toFixed(3) );
 
5069
  }
 
5070
  // sum up all other column's width, excluding the resized and sister one.
5071
- otherColumnsWidth = parseFloat( ( otherColumnsWidth + colModel.width ).toFixed(3) );
5072
  });
5073
  }
5074
 
5075
-
5076
  // SET SISTER COLUMN WIDTH
5077
-
5078
  // sum up all other column's width, excluding the resized and sister one.
5079
  // api.infoLog( "resizedColumn.width", resizedColumn.width );
5080
  // api.infoLog( "otherColumns", otherColumns );
5081
 
5082
  // then calculate the sistercolumn so we are sure that we feel the entire space of the sektion
5083
- sistercolumn.width = parseFloat( ( 100 - otherColumnsWidth ).toFixed(3) );
5084
-
5085
  // api.infoLog('otherColumnsWidth', otherColumnsWidth );
5086
  // api.infoLog("sistercolumn.width", sistercolumn.width );
5087
  // api.infoLog( "sistercolumn.width + otherColumnsWidth" , Number( sistercolumn.width ) + Number( otherColumnsWidth ) );
@@ -5116,9 +5168,10 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
5116
  return column.id != params.id;
5117
  });
5118
  // Reset the column's width in the target sektion
5119
- _.each( fromSektionCandidate.collection, function( colModel ) {
5120
- colModel.width = '';
5121
- });
 
5122
  }
5123
 
5124
  // update the target sektion
@@ -5140,9 +5193,10 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
5140
  toSektionCandidate.collection = reorderedCollection;
5141
 
5142
  // Reset the column's width in the target sektion
5143
- _.each( toSektionCandidate.collection, function( colModel ) {
5144
- colModel.width = '';
5145
- });
 
5146
 
5147
  break;
5148
 
@@ -5902,6 +5956,22 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
5902
  },//updateAPISetting
5903
 
5904
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5905
 
5906
  // @return a promise()
5907
  // caches the sections in api.sek_presetSections when api.section( '__content_picker__') is registered
@@ -6267,6 +6337,63 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
6267
  },
6268
 
6269
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6270
  // used in react to preview or update api settings
6271
  // @params is an object {
6272
  //
@@ -12238,6 +12365,252 @@ var CZRSeksPrototype = CZRSeksPrototype || {};
12238
  });
12239
  })( wp.customize , jQuery, _ );//global sektionsLocalizedData, serverControlParams
12240
  //extends api.CZRDynModule
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12241
  ( function ( api, $, _ ) {
12242
  var Constructor = {
12243
  initialize: function( id, options ) {
1084
  $closestLevel = $el.closest('[data-nimb-level]');
1085
  api.previewer.send('sek-animate-to-level', { id : $closestLevel.data('nimb-id') });
1086
  api.previewer.send('sek-clean-level-uis');
1087
+ // Display the level ui in the preview
1088
+ // and expand the level options in the customizer control panel
1089
  _.delay( function() {
1090
  api.previewer.send('sek-display-level-ui', { id : $closestLevel.data('nimb-id') });
 
1091
 
1092
+ var _id = $closestLevel.data('nimb-id'),
1093
+ _level = $closestLevel.data('nimb-level');
1094
+
1095
+ if ( 'column' === _level || 'section' === _level ) {
1096
+ api.previewer.trigger('sek-edit-options', { id : _id, level : _level });
1097
+ } else if ( 'module' === _level ) {
1098
+ api.previewer.trigger('sek-edit-module', { id : _id, level : _level });
1099
+ }
1100
+ }, 100 );
1101
  });
1102
 
1103
  $('body').on('click', '#nimble-level-tree .sek-remove-level', function(evt) {
4040
  }
4041
  });
4042
  }
4043
+ if ( 'column' === params.level ) {
4044
+ $.extend( modulesRegistrationParams, {
4045
+ width : {
4046
+ settingControlId : params.id + '__width_options',
4047
+ module_type : 'sek_level_width_column',
4048
+ controlLabel : sektionsLocalizedData.i18n['Width settings for the'] + ' ' + sektionsLocalizedData.i18n[params.level],
4049
+ icon : '<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'
4050
+ }
4051
+ });
4052
+ }
4053
  if ( 'module' === params.level ) {
4054
  $.extend( modulesRegistrationParams, {
4055
  width : {
4985
  }
4986
 
4987
  // RESET ALL COLUMNS WIDTH
4988
+ // _.each( sektionCandidate.collection, function( colModel ) {
4989
+ // colModel.width = '';
4990
+ // });
4991
+ self.resetColumnsWidthInSection( sektionCandidate );
4992
+
4993
  sektionCandidate.collection.push({
4994
  id : params.id,
4995
  level : 'column',
5012
  return column.id != params.id;
5013
  });
5014
  // RESET ALL COLUMNS WIDTH
5015
+ // _.each( sektionCandidate.collection, function( colModel ) {
5016
+ // colModel.width = '';
5017
+ // });
5018
+ self.resetColumnsWidthInSection( sektionCandidate );
5019
  } else {
5020
  api.errare( 'updateAPISetting => ' + params.action + ' => no parent sektion matched' );
5021
  }
5051
  cloneId = deepClonedColumn.id;//will be passed in resolve()
5052
  sektionCandidate.collection.splice( parseInt( _position + 1, 10 ), 0, deepClonedColumn );
5053
  // RESET ALL COLUMNS WIDTH
5054
+ // _.each( sektionCandidate.collection, function( colModel ) {
5055
+ // colModel.width = '';
5056
+ // });
5057
+ self.resetColumnsWidthInSection( sektionCandidate );
5058
  break;
5059
 
5060
 
5075
  break;
5076
  }
5077
 
5078
+ var _getColumnWidth = function( _candidate_ ) {
5079
+ var _width = '_not_set_';
5080
+ var _options = _.isObject( _candidate_.options ) ? _candidate_.options : {};
5081
+ if ( ! _.isEmpty( _options ) && _options.width && _options.width['custom-width'] ) {
5082
+ _width = parseFloat( _options.width['custom-width'] * 1 );
5083
+ }
5084
+ return _width;
5085
+ };
5086
 
5087
+ var _setColumnWidth = function( _candidate_, newWidthValue ) {
5088
+ // start from a deep cloned object
5089
+ // important => fixes https://github.com/presscustomizr/nimble-builder/issues/455
5090
+ var _new_options_values = $.extend( true, {}, _candidate_.options || {} );
5091
+
5092
+ _new_options_values.width = _.isObject( _new_options_values.width ) ? _new_options_values.width : {};
5093
+ _new_options_values.width['custom-width'] = newWidthValue;
5094
+ _candidate_.options = _new_options_values;
5095
+
5096
+ // Live update the input value ( when rendered )
5097
+ $('body').find('[data-sek-width-range-column-id="'+ _candidate_.id +'"]').val( newWidthValue ).trigger('input', { is_resize_column_trigger : true } );
5098
+ return newWidthValue;
5099
+ };
5100
+ ///
5101
+
5102
+
5103
+ // DEPRECATED SINCE JUNE 2019 => resizedColumn.width = parseFloat( params.resizedColumnWidthInPercent );
5104
+
5105
+ var resizedColumnWidthInPercent = _setColumnWidth( resizedColumn, parseFloat( params.resizedColumnWidthInPercent ) );
5106
+ // cast to number
5107
+ resizedColumnWidthInPercent = parseFloat( resizedColumnWidthInPercent );
5108
 
5109
  // SET OTHER COLUMNS WIDTH
5110
  var parentSektion = self.getLevelModel( params.in_sektion, newSetValue.collection );
5111
  var otherColumns = _.filter( parentSektion.collection, function( _col_ ) {
5112
+ return _col_.id != resizedColumn.id && _col_.id != sistercolumn.id;
5113
+ });
5114
+ var otherColumnsWidth = parseFloat( resizedColumnWidthInPercent.toFixed(3) );
5115
 
5116
  if ( ! _.isEmpty( otherColumns ) ) {
5117
  _.each( otherColumns, function( colModel ) {
5118
+ currentColWidth = _getColumnWidth( colModel );
5119
+ if ( '_not_set_' === currentColWidth || ! _.isNumber( currentColWidth * 1 ) || _.isEmpty( currentColWidth + '' ) || 1 > currentColWidth ) {
5120
+ // DEPRECATED SINCE JUNE 2019 => colModel.width = parseFloat( ( 100 / params.col_number ).toFixed(3) );
5121
+ currentColWidth = _setColumnWidth( colModel, parseFloat( ( 100 / params.col_number ).toFixed(3) ) );
5122
  }
5123
+
5124
  // sum up all other column's width, excluding the resized and sister one.
5125
+ otherColumnsWidth = parseFloat( ( otherColumnsWidth + currentColWidth ).toFixed(3) );
5126
  });
5127
  }
5128
 
 
5129
  // SET SISTER COLUMN WIDTH
 
5130
  // sum up all other column's width, excluding the resized and sister one.
5131
  // api.infoLog( "resizedColumn.width", resizedColumn.width );
5132
  // api.infoLog( "otherColumns", otherColumns );
5133
 
5134
  // then calculate the sistercolumn so we are sure that we feel the entire space of the sektion
5135
+ // DEPRECATED SINCE JUNE 2019 => sistercolumn.width = parseFloat( ( 100 - otherColumnsWidth ).toFixed(3) );
5136
+ _setColumnWidth( sistercolumn, parseFloat( ( 100 - otherColumnsWidth ).toFixed(3) ) );
5137
  // api.infoLog('otherColumnsWidth', otherColumnsWidth );
5138
  // api.infoLog("sistercolumn.width", sistercolumn.width );
5139
  // api.infoLog( "sistercolumn.width + otherColumnsWidth" , Number( sistercolumn.width ) + Number( otherColumnsWidth ) );
5168
  return column.id != params.id;
5169
  });
5170
  // Reset the column's width in the target sektion
5171
+ // _.each( fromSektionCandidate.collection, function( colModel ) {
5172
+ // colModel.width = '';
5173
+ // });
5174
+ self.resetColumnsWidthInSection( fromSektionCandidate );
5175
  }
5176
 
5177
  // update the target sektion
5193
  toSektionCandidate.collection = reorderedCollection;
5194
 
5195
  // Reset the column's width in the target sektion
5196
+ // _.each( toSektionCandidate.collection, function( colModel ) {
5197
+ // colModel.width = '';
5198
+ // });
5199
+ self.resetColumnsWidthInSection( toSektionCandidate );
5200
 
5201
  break;
5202
 
5956
  },//updateAPISetting
5957
 
5958
 
5959
+ // used on :
5960
+ // - add column
5961
+ // - remove column
5962
+ // - duplicate column
5963
+ // - move column
5964
+ // added in June 2019 for https://github.com/presscustomizr/nimble-builder/issues/279
5965
+ resetColumnsWidthInSection : function( sektionCandidate ) {
5966
+ // RESET ALL COLUMNS WIDTH
5967
+ _.each( sektionCandidate.collection, function( colModel ) {
5968
+ if ( colModel.options && colModel.options.width && colModel.options.width['custom-width'] ) {
5969
+ colModel.options.width = _.omit( colModel.options.width, 'custom-width' );
5970
+ }
5971
+ colModel.width = '';// For backward compat since June 2019
5972
+ });
5973
+ },
5974
+
5975
 
5976
  // @return a promise()
5977
  // caches the sections in api.sek_presetSections when api.section( '__content_picker__') is registered
6337
  },
6338
 
6339
 
6340
+ // @params = { id : '', level : '' }
6341
+ // Recursively walk the level tree until a match is found
6342
+ // @return the level model object
6343
+ getParentSectionFromColumnId : function( id, collection ) {
6344
+ var self = this, _section_model_ = 'no_match',
6345
+ // @param id mandatory
6346
+ // @param collection mandatory
6347
+ // @param collectionSettingId optional
6348
+ // @param localOrGlobal optional
6349
+ _walk_ = function( id, collection, collectionSettingId, localOrGlobal ) {
6350
+ // do we have a collection ?
6351
+ // if not, let's use the root one
6352
+ if ( _.isUndefined( collection ) ) {
6353
+ var currentSektionSettingValue = api( collectionSettingId )();
6354
+ var sektionSettingValue = _.isObject( currentSektionSettingValue ) ? $.extend( true, {}, currentSektionSettingValue ) : $.extend( true, {}, self.getDefaultSektionSettingValue( localOrGlobal ) );
6355
+ collection = _.isArray( sektionSettingValue.collection ) ? sektionSettingValue.collection : [];
6356
+ }
6357
+ _.each( collection, function( levelData ) {
6358
+ // did we found a match recursively ?
6359
+ if ( 'no_match' != _section_model_ )
6360
+ return;
6361
+
6362
+ var colCandidate;
6363
+ if ( 'section' == levelData.level ) {
6364
+ colCandidate = _.findWhere( levelData.collection, { id : id });
6365
+ }
6366
+ if ( ! _.isEmpty( colCandidate ) ) {
6367
+ // we found our column in this section
6368
+ _section_model_ = levelData;
6369
+ } else {
6370
+ if ( _.isArray( levelData.collection ) ) {
6371
+ _walk_( id, levelData.collection, collectionSettingId, localOrGlobal );
6372
+ }
6373
+ }
6374
+ });
6375
+ return _section_model_;
6376
+ };
6377
+
6378
+ // if a collection has been provided in the signature, let's walk it.
6379
+ // Otherwise, let's walk the local and global ones until a match is found.
6380
+ if ( ! _.isEmpty( collection ) ) {
6381
+ _walk_( id, collection );
6382
+ } else {
6383
+ _.each( {
6384
+ local : self.localSectionsSettingId(),
6385
+ global : self.getGlobalSectionsSettingId()
6386
+ }, function( collectionSettingId, localOrGlobal ) {
6387
+ if ( 'no_match' === _section_model_ ) {
6388
+ _walk_( id, collection, collectionSettingId, localOrGlobal );
6389
+ }
6390
+ });
6391
+ }
6392
+
6393
+ return _section_model_;
6394
+ },
6395
+
6396
+
6397
  // used in react to preview or update api settings
6398
  // @params is an object {
6399
  //
12365
  });
12366
  })( wp.customize , jQuery, _ );//global sektionsLocalizedData, serverControlParams
12367
  //extends api.CZRDynModule
12368
+ ( function ( api, $, _ ) {
12369
+ var Constructor = {
12370
+ initialize: function( id, options ) {
12371
+ var module = this;
12372
+ // EXTEND THE DEFAULT CONSTRUCTORS FOR INPUT
12373
+ module.inputConstructor = api.CZRInput.extend( module.CZRInputConstructor || {} );
12374
+ // EXTEND THE DEFAULT CONSTRUCTORS FOR MONOMODEL
12375
+ module.itemConstructor = api.CZRItem.extend( module.CZRItemConstructor || {} );
12376
+ //run the parent initialize
12377
+ api.CZRDynModule.prototype.initialize.call( module, id, options );
12378
+
12379
+ },//initialize
12380
+
12381
+ // Constructor for the input
12382
+ CZRInputConstructor : {
12383
+ // initialize : function( name, options ) {
12384
+ // var input = this;
12385
+ // // Expand the editor when ready
12386
+ // if ( 'detached_tinymce_editor' == input.type ) {
12387
+ // input.isReady.then( function() {
12388
+ // input.container.find('[data-czr-action="open-tinymce-editor"]').trigger('click');
12389
+ // });
12390
+ // }
12391
+ // api.CZRInput.prototype.initialize.call( input, name, options );
12392
+ // },
12393
+
12394
+ // Overrides the default range_simple method for the column width module
12395
+ range_simple : function( params ) {
12396
+ var input = this,
12397
+ $wrapper = $('.sek-range-with-unit-picker-wrapper', input.container ),
12398
+ $numberInput = $wrapper.find( 'input[type="number"]'),
12399
+ $rangeInput = $wrapper.find( 'input[type="range"]');
12400
+
12401
+ // Get the moduleRegistration Params
12402
+ var moduleRegistrationParams;
12403
+ try{ moduleRegistrationParams = input.module.control.params.sek_registration_params; } catch( er ) {
12404
+ api.errare('Error when getting the module registration params', er );
12405
+ return;
12406
+ }
12407
+ if ( _.isUndefined( moduleRegistrationParams.level_id ) ) {
12408
+ api.errare('Error : missing column id', er );
12409
+ return;
12410
+ }
12411
+
12412
+ // Get the column id and model,
12413
+ // the parent section model
12414
+ // and calculate the number of columns in the parent section
12415
+ input.columnId = moduleRegistrationParams.level_id;
12416
+ input.columnModel = $.extend( true, {}, api.czr_sektions.getLevelModel( input.columnId ) );
12417
+ input.parentSectionModel = api.czr_sektions.getParentSectionFromColumnId( input.columnId );
12418
+
12419
+ if ( 'no_match' == input.columnModel ) {
12420
+ api.errare( 'sek_level_width_column module => invalid column model' );
12421
+ return;
12422
+ }
12423
+ if ( 'no_match' == input.parentSectionModel ) {
12424
+ api.errare( 'sek_level_width_column module => invalid parent section model' );
12425
+ return;
12426
+ }
12427
+
12428
+ // Calculate the column number in the parent section
12429
+ input.colNb = _.size( input.parentSectionModel.collection );
12430
+
12431
+ // Add the column id identifier, so we can communicate with it and update its value when the column gets resized from user
12432
+ // @see update api setting, 'sek-resize-columns' case
12433
+ $numberInput.attr('data-sek-width-range-column-id', input.columnId );
12434
+
12435
+ // For single column section, we don't want to display this module
12436
+ if ( 1 === input.colNb ) {
12437
+ input.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('') );
12438
+ } else {
12439
+ input.container.show();
12440
+ }
12441
+
12442
+ // Always get the value from the model instead of relying on the setting val.
12443
+ // => because the column width value is not only set from the customizer input, but also from the preview when resizing manually, this is an exception
12444
+ var currentColumnModelValue = api.czr_sektions.getLevelModel( input.columnId ),
12445
+ currentColumnWidthValueFromModel = '_not_set_',
12446
+ columnWidthInPercent;
12447
+
12448
+ if ( 'no_match' == currentColumnModelValue ) {
12449
+ api.errare( 'sek_level_width_column module => invalid column model' );
12450
+ return;
12451
+ }
12452
+
12453
+ if ( currentColumnModelValue.options && currentColumnModelValue.options.width && currentColumnModelValue.options.width['custom-width'] && _.isNumber( currentColumnModelValue.options.width['custom-width'] ) ) {
12454
+ currentColumnWidthValueFromModel = currentColumnModelValue.options.width['custom-width'];
12455
+ }
12456
+ // For retrocompat, use the former width property when exists.
12457
+ // Deprecated in June 2019. See https://github.com/presscustomizr/nimble-builder/issues/279
12458
+ else if ( currentColumnModelValue && currentColumnModelValue.width && _.isNumber( +currentColumnModelValue.width ) ) {
12459
+ currentColumnWidthValueFromModel = currentColumnModelValue.width;
12460
+ }
12461
+
12462
+
12463
+ if ( '_not_set_' !== currentColumnWidthValueFromModel ) {
12464
+ columnWidthInPercent = currentColumnWidthValueFromModel;
12465
+ }
12466
+ // The default width is "_not_set_"
12467
+ // @see php sek_get_module_params_for_sek_level_width_column()
12468
+ // If not set, calculate the column width in percent based on the number of columns of the parent section
12469
+ else if ( '_not_set_' === input() ) {
12470
+ //$rangeInput.val( $numberInput.val() || 0 );
12471
+ columnWidthInPercent = Math.floor( 100/input.colNb );
12472
+ } else {
12473
+ columnWidthInPercent = input();
12474
+ }
12475
+
12476
+ // Cast to a number
12477
+ columnWidthInPercent = +parseFloat(columnWidthInPercent).toFixed(3)*1;
12478
+
12479
+ // Make sure we have a number between 0 and 100
12480
+ if ( ! _.isNumber( columnWidthInPercent ) || 100 < columnWidthInPercent || 0 > columnWidthInPercent ) {
12481
+ api.errare( 'Error => invalid column width', columnWidthInPercent );
12482
+ columnWidthInPercent = 50;
12483
+ }
12484
+
12485
+
12486
+ // synchronizes range input and number input
12487
+ // number is the master => sets the input() val
12488
+ $rangeInput.on('input', function( evt, params ) {
12489
+ $numberInput.val( $(this).val() ).trigger('input', params );
12490
+ });
12491
+ // debounced to avoid a intermediate state of visual disorder of the columns
12492
+ $numberInput.on('input', _.debounce(function( evt, params ) {
12493
+ $rangeInput.val( $(this).val() );
12494
+ if ( params && params.is_init )
12495
+ return;
12496
+ input( $(this).val() );
12497
+ }, 300 ) );
12498
+
12499
+ // say it to the api, so we can regenerate the columns width for all columns.
12500
+ // consistently with the action triggered when resizing the column manually
12501
+
12502
+ // Make sure that we don't react to the event sent when resizing column in update api setting, case 'sek-resize-columns'
12503
+ // where we do $('body').find('[data-sek-width-range-column-id="'+ _candidate_.id +'"]').val( newWidthValue ).trigger('input', { is_resize_column_trigger : true } );
12504
+ // => otherwise it will create an infinite loop
12505
+ //
12506
+ // Debounce to avoid server hammering
12507
+ $numberInput.on( 'input', _.debounce( function( evt, params ) {
12508
+ if ( params && ( params.is_init || params.is_resize_column_trigger ) )
12509
+ return;
12510
+ input.sayItToApi( $(this).val() );
12511
+ }, 300 ) );
12512
+ // trigger a change on init to sync the range input
12513
+ $rangeInput.val( columnWidthInPercent ).trigger('input', { is_init : true } );
12514
+ },
12515
+
12516
+
12517
+ sayItToApi : function( columnWidthInPercent, _val ) {
12518
+ var input = this;
12519
+ // Get the sister column id
12520
+ // If parent section has at least 2 columns, the sister column is the one on the right if not in last position. On the left if last.
12521
+ var indexOfResizedColumn = _.findIndex( input.parentSectionModel.collection, {id : input.columnId} ),
12522
+ isLastColumn = indexOfResizedColumn + 1 == input.colNb,
12523
+ sisterColumnIndex = isLastColumn ? indexOfResizedColumn - 1 : indexOfResizedColumn + 1,
12524
+ sisterColumnModel = _.find( input.parentSectionModel.collection, function( _val, _key ) { return sisterColumnIndex === _key; });
12525
+
12526
+ if ( 'no_match' === sisterColumnModel ) {
12527
+ api.errare( 'sek_level_width_column module => invalid sister column model' );
12528
+ }
12529
+
12530
+ api.previewer.trigger( 'sek-resize-columns', {
12531
+ action : 'sek-resize-columns',
12532
+ level : 'column',
12533
+ in_sektion : input.parentSectionModel.id,
12534
+ id : input.columnId,
12535
+
12536
+ resized_column : input.columnId,
12537
+ sister_column : sisterColumnModel.id ,
12538
+
12539
+ resizedColumnWidthInPercent : columnWidthInPercent,
12540
+
12541
+ col_number : input.colNb
12542
+ });
12543
+ }
12544
+
12545
+ },//CZRTextEditorInputMths
12546
+ // CZRItemConstructor : {
12547
+ // //overrides the parent ready
12548
+ // ready : function() {
12549
+ // var item = this;
12550
+ // //wait for the input collection to be populated,
12551
+ // //and then set the input visibility dependencies
12552
+ // item.inputCollection.bind( function( col ) {
12553
+ // if( _.isEmpty( col ) )
12554
+ // return;
12555
+ // try { item.setInputVisibilityDeps(); } catch( er ) {
12556
+ // api.errorLog( 'item.setInputVisibilityDeps() : ' + er );
12557
+ // }
12558
+ // });//item.inputCollection.bind()
12559
+
12560
+ // //fire the parent
12561
+ // api.CZRItem.prototype.ready.call( item );
12562
+ // },
12563
+
12564
+
12565
+ // //Fired when the input collection is populated
12566
+ // //At this point, the inputs are all ready (input.isReady.state() === 'resolved') and we can use their visible Value ( set to true by default )
12567
+ // setInputVisibilityDeps : function() {
12568
+ // var item = this,
12569
+ // module = item.module;
12570
+
12571
+ // //Internal item dependencies
12572
+ // item.czr_Input.each( function( input ) {
12573
+ // switch( input.id ) {
12574
+ // case 'width-type' :
12575
+ // api.czr_sektions.scheduleVisibilityOfInputId.call( input, 'custom-width', function() {
12576
+ // return 'custom' === input();
12577
+ // });
12578
+ // api.czr_sektions.scheduleVisibilityOfInputId.call( input, 'h_alignment', function() {
12579
+ // return 'custom' === input();
12580
+ // });
12581
+ // break;
12582
+ // }
12583
+ // });
12584
+ // }
12585
+ // }//CZRItemConstructor
12586
+ };
12587
+
12588
+
12589
+ //provides a description of each module
12590
+ //=> will determine :
12591
+ //1) how to initialize the module model. If not crud, then the initial item(s) model shall be provided
12592
+ //2) which js template(s) to use : if crud, the module template shall include the add new and pre-item elements.
12593
+ // , if crud, the item shall be removable
12594
+ //3) how to render : if multi item, the item content is rendered when user click on edit button.
12595
+ // If not multi item, the single item content is rendered as soon as the item wrapper is rendered.
12596
+ //4) some DOM behaviour. For example, a multi item shall be sortable.
12597
+ api.czrModuleMap = api.czrModuleMap || {};
12598
+ $.extend( api.czrModuleMap, {
12599
+ sek_level_width_column : {
12600
+ mthds : Constructor,
12601
+ crud : false,
12602
+ name : api.czr_sektions.getRegisteredModuleProperty( 'sek_level_width_column', 'name' ),
12603
+ has_mod_opt : false,
12604
+ ready_on_section_expanded : false,
12605
+ ready_on_control_event : 'sek-accordion-expanded',// triggered in ::scheduleModuleAccordion()
12606
+ defaultItemModel : _.extend(
12607
+ { id : '', title : '' },
12608
+ api.czr_sektions.getDefaultItemModelFromRegisteredModuleData( 'sek_level_width_column' )
12609
+ )
12610
+ },
12611
+ });
12612
+ })( wp.customize , jQuery, _ );//global sektionsLocalizedData, serverControlParams
12613
+ //extends api.CZRDynModule
12614
  ( function ( api, $, _ ) {
12615
  var Constructor = {
12616
  initialize: function( id, options ) {
assets/czr/sek/js/ccat-sek-control.min.js CHANGED
@@ -1 +1 @@
1
- var CZRSeksPrototype=CZRSeksPrototype||{};!function(n,r){r.extend(CZRSeksPrototype,{initialize:function(){var e=this;if(_.isUndefined(window.sektionsLocalizedData))throw new Error("CZRSeksPrototype => missing localized server params sektionsLocalizedData");if(!_.isFunction(n.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 n.Value({}),e.registered=new n.Value([]),n.bind("ready",function(){e.doSektionThinksOnApiReady()}),n.bind("save-request-params",function(e){r.extend(e,{local_skope_id:n.czr_skopeBase.getSkopeProperty("skope_id")})}),n.bind("sek-before-clean-registered",function(){_.isArray(n.czrActiveWPEditors)&&(_.each(n.czrActiveWPEditors,function(e){wp.editor.remove(e)}),n.czrActiveWPEditors=[])})},doSektionThinksOnApiReady:function(){var o=this;o.registerAndSetupDefaultPanelSectionOptions(),o.localSectionsSettingId.callbacks.add(function(e,t){try{o.setupSettingsToBeSaved()}catch(e){n.errare("Error in self.localSectionsSettingId.callbacks => self.setupSettingsToBeSaved()",e)}o.initializeHistoryLogWhenSettingsRegistered(),n.previewer.send("sek-request-active-locations")});var i=function(e,t){o.setContextualCollectionSettingIdWhenSkopeSet(e,t),n.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"})}))})}),n.section(o.SECTION_ID_FOR_GLOBAL_OPTIONS,function(e){!0!==e.nimbleGlobalOptionGenerated&&(o.generateUI({action:"sek-generate-global-options-ui"}),e.nimbleGlobalOptionGenerated=!0)}),n.trigger("nimble-ready-for-current-skope")};_.isEmpty(n.czr_activeSkopes().local)||i(),n.czr_activeSkopes.callbacks.add(function(e,t){i(e,t)}),o.reactToPreviewMsg(),o.setupDnd(),o.setupTinyMceEditor(),o.schedulePrintSectionJson(),o.bind("sek-ui-removed",function(){n.previewedDevice("desktop")}),n.previewedDevice.bind(function(t){var e=_.filter(o.registered(),function(e){return"control"==e.what});_.each(e||[],function(e){n.control(e.id,function(e){e.container.find('[data-sek-device="'+t+'"]').each(function(){r(this).trigger("click")})})})}),r("#customize-notifications-area").on("click",'[data-sek-reset="true"]',function(){n.previewer.trigger("sek-reset-collection",{scope:"local"})}),o.bind("sek-ui-pre-removal",function(e){"control"==e.what&&-1<e.id.indexOf("draggable")&&n.control(e.id,function(e){e.container.find("[draggable]").each(function(){r(this).off("dragstart dragend")})}),"control"==e.what&&n.control(e.id,function(e){e.container.find("select").each(function(){_.isUndefined(r(this).data("czrSelect2"))||r(this).czrSelect2("destroy")})})}),n.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=r.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 n.Value([]),n.previewer.bind("sek-active-locations-in-preview",function(e){o.activeLocations(_.isObject(e)&&_.isArray(e.active_locations)?e.active_locations:[])}),o.setupTopBar(),sektionsLocalizedData.isSavedSectionEnabled&&o.setupSaveUI(),o.lastClickedTargetInPreview=new n.Value,o.lastClickedTargetInPreview.bind(function(e,t){_.isObject(e)&&e.id?n.previewer.send("sek-set-double-click-target",e):n.previewer.send("sek-reset-double-click-target"),clearTimeout(r(window).data("_preview_target_timer_")),r(window).data("_preview_target_timer_",setTimeout(function(){o.lastClickedTargetInPreview({}),n.previewer.send("sek-reset-double-click-target")},2e4))}),n.previewer.bind("sek-clean-target-drop-zone",function(){o.lastClickedTargetInPreview({})}),r(document).keydown(function(e){e&&27===e.keyCode&&o.lastClickedTargetInPreview({})}),sektionsLocalizedData.hasActiveCachePlugin&&_.delay(function(){n.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."],"<strong> ("+sektionsLocalizedData.hasActiveCachePlugin+")</strong><br/>","<strong>",sektionsLocalizedData.i18n["It is recommended to disable your cache plugin when customizing your website."],"</strong>","</span>"].join("")})},2e3)},registerAndSetupDefaultPanelSectionOptions:function(){var o=this,e=n.Panel.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}});n.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()})})}),n.CZR_Helpers.register({origin:"nimble",what:"panel",id:sektionsLocalizedData.sektionsPanelId,title:sektionsLocalizedData.i18n["Nimble Builder"],priority:-1e3,constructWith:e,track:!1}),n.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:n.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){n.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)})}),n.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:n.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){n.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)})}),n.CZR_Helpers.register({origin:"nimble",what:"setting",id:sektionsLocalizedData.optNameForGlobalOptions,dirty:!1,value:sektionsLocalizedData.globalOptionDBValues,transport:"refresh",type:"option"}),n.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:n.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){n.section(o.SECTION_ID_FOR_CONTENT_PICKER,function(e){"resolved"!=n.czr_initialSkopeCollectionPopulated.state()?n.czr_initialSkopeCollectionPopulated.done(function(){n.previewer.trigger("sek-pick-content",{focus:!1})}):n.previewer.trigger("sek-pick-content",{focus:!1})})})},setContextualCollectionSettingIdWhenSkopeSet:function(e,t){t=t||{},!_.isEmpty(t.local)&&n.panel(sektionsLocalizedData.sektionsPanelId).expanded()&&n.previewer.trigger("sek-pick-content"),sektionsData=n.czr_skopeBase.getSkopeProperty("sektions","local"),sektionsLocalizedData.isDevMode&&n.infoLog("::setContextualCollectionSettingIdWhenSkopeSet => SEKTIONS DATA ? ",sektionsData),_.isEmpty(sektionsData)&&n.errare("::setContextualCollectionSettingIdWhenSkopeSet() => no sektionsData"),_.isEmpty(sektionsData.setting_id)&&n.errare("::setContextualCollectionSettingIdWhenSkopeSet() => missing setting_id"),this.localSectionsSettingId(sektionsData.setting_id)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(r,a){a.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(a(window).data("_scroll_move_timer_")),a(window).data("_scroll_move_timer_",setTimeout(function(){t.mouseMovedRecently.set({})},4e3))};a(window).on("mousemove scroll,",_.throttle(e,50)),r.previewer.bind("ready",function(){a(r.previewer.targetWindow().document).on("mousemove scroll,",_.throttle(e,50))}),t.setupLevelTree()},toggleTopBar:function(e){e=!!_.isUndefined(e)||e;var t,i=this;e?a.when(i.renderAndSetupTopBarTmpl({})).done(function(e){i.topBarContainer=e,_.delay(function(){a("body").addClass("nimble-top-bar-visible")},200)}):(t=a.Deferred(),a("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<a(i.topBarId).length)return a(i.topBarId);try{t=wp.template("nimble-top-bar")({})}catch(e){return r.errare("Error when parsing the the top note template",e),!1}a("#customize-preview").after(a(t)),a(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)}}),a(".sek-add-content",i.topBarId).on("click",function(e){e.preventDefault(),r.previewer.trigger("sek-pick-content",{content_type:"module"})}),a(".sek-level-tree",i.topBarId).on("click",function(e){e.preventDefault(),i.levelTreeExpanded(!i.levelTreeExpanded())}),a("[data-nimble-history]",i.topBarId).on("click",function(e){try{i.navigateHistory(a(this).data("nimble-history"))}catch(e){r.errare("Error when firing self.navigateHistory",e)}}),a(".sek-settings",i.topBarId).on("click",function(e){r.panel(sektionsLocalizedData.sektionsPanelId,function(e){i.rootPanelFocus(),e.focus()})}),a(".sek-nimble-doc",i.topBarId).on("click",function(e){e.preventDefault(),window.open(a(this).data("doc-href"),"_blank")});var n=function(e){a(i.topBarId).length<1||(_.isObject(e)&&e.local_template&&"default"!==e.local_template?a(i.topBarId).find(".sek-notifications").html(['<span class="fas fa-info-circle"></span>',sektionsLocalizedData.i18n["This page uses a custom template."]].join(" ")):a(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()}),a(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=[],a=d.extend(!0,[],i.historyLog());_.isEmpty(t.in_sektion)?_.isEmpty(t.to_sektion)||(o=t.to_sektion):o=t.in_sektion,_.each(a,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,a=d.extend(!0,[],e.historyLog()),s=[];if(_.each(a,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(a,{status:"current"});c=Number(c),_.isNumber(c)?(_.each(a,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":a.length>c+1&&(t===c?newLog.status="previous":t===c+1&&(newLog.status="current"))}s.push(newLog)}),e.historyLog(s)):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(z("body").toggleClass("sek-level-tree-expanded",e),e){if(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)})})}),z("body").on("click","#nimble-level-tree [data-nimb-level]",function(e){e.preventDefault(),e.stopPropagation();var t=z(e.target).closest("[data-nimb-level]");b.previewer.send("sek-animate-to-level",{id:t.data("nimb-id")}),b.previewer.send("sek-clean-level-uis"),_.delay(function(){b.previewer.send("sek-display-level-ui",{id:t.data("nimb-id")})},100)}),z("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()}),z("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(),a=this.localSectionsSettingId(),s=sektionsLocalizedData.optNameForGlobalOptions,c=!1;if(_.each([r,a,s],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(a)(),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(s)(),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,y=this.activeLocations(),v=[];_.isEmpty(y)?v=g:_.each(y,function(e){k=_.findWhere(g,{id:e}),_.isUndefined(k)||v.push(k)}),this.levelTree(v)}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 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,a=!1;if(!_.isArray(e)||_.isEmpty(e))return b.errare("::buildLevelTree => invalid collection param",e),r;var s='<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)&&(a=!_.contains(i.activeLocations(),e.id)),a||(sektionsLocalizedData.i18n[n]&&(o=sektionsLocalizedData.i18n[n]),!0===e.is_nested&&(o=sektionsLocalizedData.i18n["nested section"]),s="location"!==n?s:"",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,")",s].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(s,c){c.extend(CZRSeksPrototype,{setupSaveUI:function(){var n=this;n.saveUIVisible=new s.Value(!1),n.saveUIVisible.bind(function(e,t,i){n.toggleSaveUI(e,i?i.id:null)})},toggleSaveUI:function(e,t){e=!!_.isUndefined(e)||e;var i,n=this;e?c.when(n.renderAndSetupSaveUITmpl({})).done(function(e){n.saveUIContainer=e,_.delay(function(){c("body").addClass("nimble-save-ui-visible")},200),c("#sek-saved-section-id").val(t)}):(i=c.Deferred(),c("body").removeClass("nimble-save-ui-visible"),0<c("#nimble-top-save-ui").length?_.delay(function(){n.saveUIContainer.remove(),i.resolve()},300):i.resolve(),i.promise()).done(function(){n.saveUIVisible(!1)})},preProcessSektion:function(e){var t=this.cleanIds(e);return _.omit(t,function(e,t){return _.contains(["id","level"],t)})},renderAndSetupSaveUITmpl:function(e){if(0<c("#nimble-top-save-ui").length)return c("#nimble-top-save-ui");var a=this;try{_tmpl=wp.template("nimble-top-save-ui")({})}catch(e){return s.errare("Error when parsing the the top note template",e),!1}return c("#customize-preview").after(c(_tmpl)),c(".sek-do-save-section","#nimble-top-save-ui").on("click",function(e){e.preventDefault();var t=c.extend(!0,{},a.getLevelModel(c("#sek-saved-section-id").val())),i=c("#sek-saved-section-title").val(),n=c("#sek-saved-section-description").val(),o=a.guid(),r=a.preProcessSektion(t);if(_.isEmpty(i))return c("#sek-saved-section-title").addClass("error"),void s.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>@missi18n You need to set a title</strong>","</span>"].join("")});c("#sek-saved-section-title").removeClass("error"),wp.ajax.post("sek_save_section",{nonce:s.settings.nonce.save,sek_title:i,sek_description:n,sek_id:o,sek_data:JSON.stringify(r)}).done(function(e){s.previewer.trigger("sek-notify",{type:"success",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>@missi18n Your section has been saved.</strong>","</span>"].join("")})}).fail(function(e){s.errorLog("ajax sek_save_section => error",e),s.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>@missi18n You need to set a title</strong>","</span>"].join("")})})}),c(".sek-cancel-save","#nimble-top-save-ui").on("click",function(e){e.preventDefault(),a.saveUIVisible(!1)}),c("#nimble-top-save-ui")}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(r,a){a.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(a(e.feedbackUIId).data("_feedback_user_action_timer_")),a(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?a.when(i.renderAndSetupFeedbackTmpl({})).done(function(e){_.delay(function(){a("body").addClass("nimble-feedback-ui-visible")},200)}):(t=a.Deferred(),a("body").removeClass("nimble-feedback-ui-visible"),0<a(i.feedbackUIId).length?_.delay(function(){a(i.feedbackUIId).remove(),t.resolve()},300):t.resolve(),t.promise()).done(function(){i.feedbackUIVisible(!1)})},renderAndSetupFeedbackTmpl:function(e){var t,i=this;if(0<a(i.feedbackUIId).length)return a(i.feedbackUIId);try{t=wp.template("nimble-feedback-ui")({})}catch(e){return r.errare("Error when parsing the the feedback template",e),!1}if(a("#customize-preview").after(a(t)),!i.feedbackEventsScheduled){var n=a(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 a("body").on("click","[data-sek-feedback-action]",function(e){e.preventDefault(),i.refreshSelfClosingTimer();var t=a(this).data("sek-feedback-action");switch(i.feedbackLastUserAction=t){case"not_enjoying":a(i.feedbackUIId).find(".sek-feedback-step-one").hide(),a(i.feedbackUIId).find(".sek-feedback-step-two-not-enjoying").show();break;case"enjoying":a(i.feedbackUIId).find(".sek-feedback-step-one").hide(),a(i.feedbackUIId).find(".sek-feedback-step-two-enjoying").show();break;case"reporting_problem":window.open(a(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":a(i.feedbackUIId).find(".sek-feedback-step-two-not-enjoying").hide(),a(i.feedbackUIId).find(".sek-feedback-step-two-enjoying").hide(),a(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,a(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=[],a=function(e){c.errare(e,i),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},s=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 a("validation error => the root level is missing the collection of locations");if(!_.isEmpty(t.level)||!_.isEmpty(t.id))return void a('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 a("validation error => unauthorized option group for local setting value => "+t);break;case"global":if(!_.contains(["collection","fonts"],t))return void a("validation error => unauthorized option group for global setting value => "+t)}}),_.each(i.collection,function(e){o=t,s(e)})}}else{if(_.isEmpty(t.id)||!_.isString(t.id))return void a("validation error => a "+t.level+" level must have a valid id");if(_.contains(e,t.id))return void a("validation error => duplicated level id : "+t.id);if(e.push(t.id),_.isEmpty(t.level)||!_.isString(t.level))return void a("validation error => a "+t.level+" level must have a level property");if(!_.contains(["location","section","column","module"],t.level))return void a('validation error => the level "'+t.level+'" is not authorized');if("module"==t.level){if(!_.isUndefined(t.collection))return void a("validation error => a module can not have a collection property")}else if(_.isUndefined(t.collection))return void a("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 a("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 a("validation error => the nested section "+t.id+" must be child of a column");if(!t.is_nested&&"location"!=o.level)return void a("validation error => the section "+t.id+" must be child of a location");break;case"column":if("section"!=o.level)return void a("validation error => the column "+t.id+" must be child of a section");break;case"module":if("column"!=o.level)return void a("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)?a("validation error => undefined level "):s(e)})}};return s(),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={},a={},s=!0,e={"sek-add-section":{callback:function(e){return s=!!_.isUndefined(e.send_to_preview)||e.send_to_preview,a={},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 s=!0,a={},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 s=!0,a={},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:e.before_module,after_module:e.after_module},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(s=!0,a={},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(s=!0,a={},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 s=!1,a={},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})}},"sek-move-section-down":{callback:function(e){return s=!1,a={},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})}},"sek-duplicate":{callback:function(e){switch(s=!0,a={},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,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 s=!0,a={},r=e,o.updateAPISetting(r)},"sek-add-content-in-new-sektion":{callback:function(e){switch(s=!!_.isUndefined(e.send_to_preview)||e.send_to_preview,a={},(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 s=!1,a={},(r=e).action="sek-add-preset-section-in-new-nested-sektion",r.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),c.previewer.send("sek-maybe-print-loader",{loader_located_in_level_id:e.location}),o.updateAPISetting(r)},complete:function(e){c.previewer.trigger("sek-refresh-stylesheet",{id:e.apiParams.in_sektion,location_skope_id:c.czr_skopeBase.getSkopeProperty("skope_id")}),o.updateAPISetting({action:"sek-update-fonts",is_global_location:o.isGlobalLocation(e.apiParams)}),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}),s=!0,r={},a={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(a)},"sek-edit-options":function(e){return s=!0,r={},_.isEmpty(e.id)?n.Deferred(function(){this.reject("missing id")}):(a={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(a))},"sek-edit-module":function(e){return s=!0,r={},a={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(a)},"sek-notify":function(t){s=!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 s=!0,n.Deferred(function(e){r={action:"sek-refresh-level",level:t.level,id:t.id},a={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-refresh-stylesheet":function(t){return s=!0,t=t||{},n.Deferred(function(e){r={id:t.id},a={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-toggle-save-section-ui":function(t){return s=!1,o.saveUIVisible(!0,t),n.Deferred(function(e){r={},a={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-reset-collection":{callback:function(e){return s=!1,a={},(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}try{e(t).done(function(e){e=e||{},s?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:a,cloneId:!_.isEmpty(e.cloneId)&&e.cloneId}):c.previewer.trigger([n,"done"].join("_"),{apiParams:r,uiParams:a}),o.trigger([n,"done"].join("_"),t)}).fail(function(e){c.errare("reactToPreviewMsg => error when firing "+n,e),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(y,v){v.extend(CZRSeksPrototype,{generateUI:function(e){var t=this,i=v.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){y.errare("::generateUI() => error",e),i=v.Deferred()}break;case"sek-generate-level-options-ui":try{i=t.generateUIforLevelOptions(e,i)}catch(e){y.errare("::generateUI() => error",e),i=v.Deferred()}break;case"sek-generate-draggable-candidates-picker-ui":t.cleanRegistered();try{i=t.generateUIforDraggableContent(e,i)}catch(e){y.errare("::generateUI() => error",e),i=v.Deferred()}break;case"sek-generate-local-skope-options-ui":t.cleanRegistered();try{i=t.generateUIforLocalSkopeOptions(e,i)}catch(e){y.errare("::generateUI() => error",e),i=v.Deferred()}break;case"sek-generate-global-options-ui":t.cleanRegistered();try{i=t.generateUIforGlobalOptions(e,i)}catch(e){y.errare("::generateUI() => error",e),i=v.Deferred()}}return"pending"==i.state()?i.resolve().promise():i.promise()},updateAPISettingAndExecutePreviewActions:function(n){if(!_.isEmpty(n.settingParams)&&_.has(n.settingParams,"to")){var o,r=this,e=n.settingParams.to,t=null,i=!1;if(!_.isEmpty(n.settingParams.args)&&_.has(n.settingParams.args,"moduleRegistrationParams")){var a=n.settingParams.args.moduleRegistrationParams.control,s=n.settingParams.args.moduleRegistrationParams.id,c=a.czr_Module(s);if(_.isEmpty(c)?y.errare("updateAPISettingAndExecutePreviewActions => missing parentModuleInstance",n):(t=c.module_type,i=c.isMultiItem()),!i&&_.isObject(e)?o=r.normalizeAndSanitizeSingleItemInputValues(e,t):(o=[],_.each(e,function(e){o.push(r.normalizeAndSanitizeSingleItemInputValues(e,t))})),_.isEmpty(n.defaultPreviewAction))y.errare("updateAPISettingAndExecutePreviewActions => missing defaultPreviewAction in passed params. No action can be triggered to the api.previewer.",n);else{var l,d="refresh_stylesheet"===n.defaultPreviewAction,u="refresh_markup"===n.defaultPreviewAction,p="refresh_fonts"===n.defaultPreviewAction,m="refresh_preview"===n.defaultPreviewAction,f=n.settingParams.args.input_changed,g=function(){return l&&_.isString(l.refresh_markup)&&"true"!==l.refresh_markup&&"false"!==l.refresh_markup};_.isUndefined(f)||(l=r.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!==n.isGlobalOptions)return r.updateAPISetting({action:n.uiParams.action,id:n.uiParams.id,value:o,in_column:n.uiParams.in_column,in_sektion:n.uiParams.in_sektion,options_type:n.options_type,settingParams:n.settingParams}).done(function(e){!0===d&&y.previewer.send("sek-refresh-stylesheet",{location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:y.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:y.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-refresh-stylesheet",id:n.uiParams.id,level:n.uiParams.level}});var t=function(){y.previewer.send("sek-refresh-level",{location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:y.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:y.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-refresh-level",id:n.uiParams.id,level:n.uiParams.level},skope_id:y.czr_skopeBase.getSkopeProperty("skope_id")})};if(!0===u&&t(),g()){var i=n.settingParams.args.input_value;if(!_.isString(i))throw new Error("::updateAPISettingAndExecutePreviewActions => _doUpdateWithRequestedAction => refreshMarkupWhenNeededForInput => html content is not a string.");r.htmlIncludesShortcodesOrTmplTags(i)?t():y.previewer.send("sek-update-html-in-selector",{selector:l.refresh_markup,html:i,id:n.uiParams.id,location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:y.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:y.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-update-html-in-selector",id:n.uiParams.id,level:n.uiParams.level},skope_id:y.czr_skopeBase.getSkopeProperty("skope_id")})}!0===m&&y.previewer.refresh()}).fail(function(e){y.errare("::updateAPISettingAndExecutePreviewActions=> api setting not updated",e),y.errare("::updateAPISettingAndExecutePreviewActions=> api setting not updated => params ",n)});if(_.isEmpty(n.options_type))y.errare("updateAPISettingAndExecutePreviewActions => error when updating the global options => missing options_type");else{var e=y(sektionsLocalizedData.optNameForGlobalOptions)(),t=v.extend(!0,{},_.isObject(e)?e:{}),i={};_.each(o||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(i[t]=e)}),t[n.options_type]=i,y(sektionsLocalizedData.optNameForGlobalOptions)(t)}};if(!0===p){var k=n.settingParams.args.input_value;if(!_.isString(k))return void y.errare("updateAPISettingAndExecutePreviewActions => font-family must be a string",k);-1<k.indexOf("gfont")?r.updateAPISetting({action:"sek-update-fonts",font_family:k,is_global_location:r.isGlobalLocation(n.uiParams)}).always(function(){h().then(function(){r.updateAPISetting({action:"sek-update-fonts",is_global_location:r.isGlobalLocation(n.uiParams)})})}):h()}else h()}}else y.errare("updateAPISettingAndExecutePreviewActions => missing params.settingParams.args.moduleRegistrationParams The api main setting can not be updated",n)}else y.errare("updateAPISettingAndExecutePreviewActions => missing params.settingParams.to. The api main setting can not be updated",n)},normalizeAndSanitizeSingleItemInputValues:function(e,o){var i,r={},n={},a=null,s=this;return _.each(e,function(e,t){var i,n;_.contains(["title","id"],t)||(null!==o&&"no_default_value_specified"===(a=s.getInputDefaultValue(t,o))&&y.infoLog("::normalizeAndSanitizeSingleItemInputValues => missing default value for input "+t+" in module "+o),i=e,n=a,(_.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(s.getInputType(t,o)){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=y.control.has(t):(i=!0,1<e.length&&y.errare("generateUI => 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 a=t[r].replace(/^\[+/g,"");-1===n.indexOf(a)&&n.push(a)}if(i)for(var s=0;s<i.length;s++){var c=i[s].replace(/^\[+/g,"");-1===o.indexOf(c)&&o.push(c)}return!_.isEmpty(n)||!_.isEmpty(o)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(a,s){s.extend(CZRSeksPrototype,{generateUIforDraggableContent:function(o,e){var r=this,t={};s.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:0,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:!1,priority:10,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:10,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:10,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:10,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:10,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:10,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'}}),sektionsLocalizedData.isSavedSectionEnabled&&s.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)?a.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){a.has(n.settingControlId)||(a(n.settingControlId,function(e){e.bind(function(e,t){a.errare("generateUIforDraggableContent => the setting() should not changed")})}),a.CZR_Helpers.register({origin:"nimble",level:o.level,what:"setting",id:n.settingControlId,dirty:!1,value:n.settingValue||{},transport:"postMessage",type:"_nimble_ui_"})),a.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(){a.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.find(".czr-items-wrapper").hide(),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.find(".czr-items-wrapper").show(),t.trigger("click"))):e.container.attr("data-sek-accordion","no")})})})},a.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:!0})})),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(d,u){u.extend(CZRSeksPrototype,{generateUIforFrontModules:function(r,e){var a=this;_.isEmpty(r.id)&&e.reject("generateUI => missing id");var i=a.getLevelProperty({property:"value",id:r.id}),t=a.getLevelProperty({property:"module_type",id:r.id}),n=a.getRegisteredModuleProperty(t,"name");_.isEmpty(t)&&e.reject("generateUI => module => invalid module_type");var o={};if(!0===a.getRegisteredModuleProperty(t,"is_father")){var s=a.getRegisteredModuleProperty(t,"children");if(_.isEmpty(s))throw new Error("::generateUIforFrontModules => a father module "+t+" is missing children modules ");_.each(s,function(e,t){o[t]={settingControlId:r.id+"__"+t,module_type:e,controlLabel:a.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 a.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))}}):(a.cleanRegistered(),_do_register_=function(){_.each(o,function(n,o){if(!d.has(n.settingControlId)){var t=function(e,t,i){try{a.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,a.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",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:r.id,priority:10,settings:{default:n.settingControlId}}).done(function(){}),d.control(n.settingControlId,function(e){d.control(n.settingControlId).focus({completeCallback:function(){}}),e.container.find(".czr-items-wrapper").hide();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")})})},d.section.when(r.id,function(){d.section(r.id).focus(),_do_register_()}),d.CZR_Helpers.register({origin:"nimble",what:"section",id:r.id,title:sektionsLocalizedData.i18n["Content for"]+" "+n,panel:sektionsLocalizedData.sektionsPanelId,priority:1e3}).done(function(){}),d.section(r.id,function(e){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>'),a.scheduleModuleAccordion.call(e,{expand_first_control:!0})})),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{generateUIforLevelOptions:function(a,e){var s=this,c=s.getLevelProperty({property:"options",id:a.id});c=_.isObject(c)?c:{};var t={};d.extend(t,{bg:{settingControlId:a.id+"__bg_options",module_type:"sek_level_bg_module",controlLabel:sektionsLocalizedData.i18n["Background settings for the"]+" "+sektionsLocalizedData.i18n[a.level],expandAndFocusOnInit:!0,icon:'<i class="material-icons sek-level-option-icon">gradient</i>'},border:{settingControlId:a.id+"__border_options",module_type:"sek_level_border_module",controlLabel:sektionsLocalizedData.i18n["Borders settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="material-icons sek-level-option-icon">rounded_corner</i>'},spacing:{settingControlId:a.id+"__spacing_options",module_type:"sek_level_spacing_module",controlLabel:sektionsLocalizedData.i18n["Padding and margin settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="material-icons sek-level-option-icon">center_focus_weak</i>'},anchor:{settingControlId:a.id+"__anchor_options",module_type:"sek_level_anchor_module",controlLabel:sektionsLocalizedData.i18n["Custom anchor ( CSS ID ) and CSS classes for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="fas fa-anchor sek-level-option-icon"></i>'},visibility:{settingControlId:a.id+"__visibility_options",module_type:"sek_level_visibility_module",controlLabel:sektionsLocalizedData.i18n["Device visibility settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="far fa-eye sek-level-option-icon"></i>'},height:{settingControlId:a.id+"__height_options",module_type:"sek_level_height_module",controlLabel:sektionsLocalizedData.i18n["Height and vertical alignment for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="fas fa-ruler-vertical sek-level-option-icon"></i>'}}),"section"===a.level&&(d.extend(t,{width:{settingControlId:a.id+"__width_options",module_type:"sek_level_width_section",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}}),d.extend(t,{breakpoint:{settingControlId:a.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>'}})),"module"===a.level&&d.extend(t,{width:{settingControlId:a.id+"__width_options",module_type:"sek_level_width_module",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}});var i=_.keys(t)[0],n=t[i].settingControlId;return s.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))}}):(s.cleanRegistered(),_do_register_=function(){_.each(t,function(n,o){if(s.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{s.updateAPISettingAndExecutePreviewActions({defaultPreviewAction:"refresh_stylesheet",uiParams:a,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,s.SETTING_UPDATE_BUFFER))});var e=c[o]||{},i=s.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:a.level,what:"setting",id:n.settingControlId,dirty:!1,value:e,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:a.level,level_id:a.id,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:a.id,priority:0,settings:{default:n.settingControlId}}).done(function(){}),l.control(n.settingControlId,function(e){!0===n.expandAndFocusOnInit&&e.focus({completeCallback:function(){}}),e.container.find(".czr-items-wrapper").hide();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")})}})},l.section.has(a.id)||l.section(a.id,function(e){s.scheduleModuleAccordion.call(e,{expand_first_control:!0})}),l.CZR_Helpers.register({origin:"nimble",what:"section",id:a.id,title:sektionsLocalizedData.i18n["Settings for the"]+" "+a.level,panel:sektionsLocalizedData.sektionsPanelId,priority:10}).done(function(){}),l.section(a.id,function(e){_do_register_(),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>')})),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(a,e){var s=this,i=s.getLocalSkopeOptionId();if(s.isUIControlAlreadyRegistered(i))return e;if(s.localOptionsRegistrationParams={},_.isUndefined(sektionsLocalizedData.localOptionsMap)||!_.isObject(sektionsLocalizedData.localOptionsMap))return l.errare("::generateUIforGlobalOptions => missing or invalid localOptionsMap"),e;!0===a.clean_settings&&s.cleanRegisteredLocalOptionSettings(),_.each(sektionsLocalizedData.localOptionsMap,function(e,t){switch(t){case"template":s.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":s.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":s.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":s.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":s.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":s.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":s.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":s.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(s.localSectionsSettingId())(),c=d.extend(!0,{},_.isObject(t.local_options)?t.local_options:{});return _do_register_=function(){_.each(s.localOptionsRegistrationParams,function(n,o){var e=s.getModuleStartingValue(n.module_type),t=_.isObject(c[o])?c[o]:{};if(!l.has(n.settingControlId)){var i=function(e,t,i){try{s.updateAPISettingAndExecutePreviewActions({defaultPreviewAction:"refresh",uiParams:a,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,s.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:a.level,what:"setting",id:n.settingControlId,dirty:!1,value:t,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:a.level,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:s.SECTION_ID_FOR_LOCAL_OPTIONS,priority:10,settings:{default:n.settingControlId}}).done(function(){l.control(n.settingControlId,function(e){e.container.find(".czr-items-wrapper").hide();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(a,e){var s=this,i=sektionsLocalizedData.optPrefixForSektionsNotSaved+sektionsLocalizedData.optNameForGlobalOptions;if(s.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_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"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"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"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_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{s.updateAPISettingAndExecutePreviewActions({isGlobalOptions:!0,defaultPreviewAction:"refresh",uiParams:a,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,s.SETTING_UPDATE_BUFFER))});var e=s.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:a.level,what:"setting",id:n.settingControlId,dirty:!1,value:i,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:a.level,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:s.SECTION_ID_FOR_GLOBAL_OPTIONS,priority:20,settings:{default:n.settingControlId},track:!1}).done(function(){l.control(n.settingControlId,function(e){e.container.find(".czr-items-wrapper").hide();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,le){le.extend(CZRSeksPrototype,{updateAPISetting:function(oe){var re=this,ae=le.Deferred();(oe=oe||{}).is_global_location="global"===oe.scope||re.isGlobalLocation(oe);var se=oe.is_global_location?re.getGlobalSectionsSettingId():re.localSectionsSettingId();return ce(se,function(e){!function(){var n,t,o,i,r,a,s,e,c,l=ce(se)(),d=_.isObject(l)?le.extend(!0,{},l):re.getDefaultSektionSettingValue(oe.is_global_location?"global":"local"),u="_not_injection_scenario_";switch(d.collection=_.isArray(d.collection)?d.collection:re.getDefaultSektionSettingValue(oe.is_global_location?"global":"local").collection,oe.action){case"sek-add-section":if(_.isEmpty(oe.id))throw new Error("updateAPISetting => "+oe.action+" => missing id");if(_.isEmpty(oe.location))throw new Error("updateAPISetting => "+oe.action+" => missing location");if(!0===oe.is_nested){if(o=re.getLevelModel(oe.in_column,d.collection),"no_match"==(c=re.getLevelModel(oe.in_sektion,d.collection))){ae.reject("updateAPISetting => "+oe.action+" => no grand parent sektion found");break}if(!0===c.is_nested){ae.reject(sektionsLocalizedData.i18n["You've reached the maximum number of allowed nested sections."]);break}if("no_match"==o){ce.errare("updateAPISetting => "+oe.action+" => no parent column matched"),ae.reject("updateAPISetting => "+oe.action+" => no parent column matched");break}o.collection=_.isArray(o.collection)?o.collection:[],o.collection.push({id:oe.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+re.guid(),level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion}],is_nested:!0,ver_ini:sektionsLocalizedData.nimbleVersion})}else{if("no_match"==(n=re.getLevelModel(oe.location,d.collection))){ce.errare("updateAPISetting => "+oe.action+" => no location matched"),ae.reject("updateAPISetting => "+oe.action+" => no location matched");break}n.collection=_.isArray(n.collection)?n.collection:[],_.each(n.collection,function(e,t){oe.before_section===e.id&&(R=t),oe.after_section===e.id&&(R=t+1)}),n.collection=_.isArray(n.collection)?n.collection:[],n.collection.splice(R,0,{id:oe.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+re.guid(),level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion}],ver_ini:sektionsLocalizedData.nimbleVersion})}break;case"sek-duplicate-section":if(_.isEmpty(oe.id))throw new Error("updateAPISetting => "+oe.action+" => missing id");if(_.isEmpty(oe.location))throw new Error("updateAPISetting => "+oe.action+" => missing location");var p;try{p=re.cloneLevel(oe.id)}catch(e){ce.errare("updateAPISetting => "+oe.action,e);break}var m=re.getLevelPositionInCollection(oe.id,d.collection);if(!0===oe.is_nested){if("no_match"==(o=re.getLevelModel(oe.in_column,d.collection))){ce.errare("updateAPISetting => "+oe.action+" => no parent column matched"),ae.reject("updateAPISetting => "+oe.action+" => no parent column matched");break}o.collection=_.isArray(o.collection)?o.collection:[],o.collection.splice(parseInt(m+1,10),0,p)}else{if("no_match"==(n=re.getLevelModel(oe.location,d.collection))){ce.errare("updateAPISetting => "+oe.action+" => no location matched"),ae.reject("updateAPISetting => "+oe.action+" => no location matched");break}n.collection=_.isArray(n.collection)?n.collection:[],n.collection.splice(parseInt(m+1,10),0,p)}s=p.id;break;case"sek-remove-section":if(!0===oe.is_nested)"no_match"!=(o=re.getLevelModel(oe.in_column,d.collection))?(o.collection=_.isArray(o.collection)?o.collection:[],o.collection=_.filter(o.collection,function(e){return e.id!=oe.id})):ce.errare("updateAPISetting => "+oe.action+" => no parent column matched");else{if("no_match"==(n=re.getLevelModel(oe.location,d.collection))){ce.errare("updateAPISetting => "+oe.action+" => no location matched"),ae.reject("updateAPISetting => "+oe.action+" => no location matched");break}n.collection=_.filter(n.collection,function(e){return e.id!=oe.id})}break;case"sek-move-section":var f,g,h=re.getLevelModel(oe.to_location,d.collection);if(_.isEmpty(h)||"no_match"==h)throw new Error("updateAPISetting => "+oe.action+" => missing target location");if(oe.from_location!=oe.to_location){var k=re.getLevelModel(oe.from_location,d.collection);if(_.isEmpty(k)||"no_match"==k)throw new Error("updateAPISetting => "+oe.action+" => missing source location");k.collection=_.isArray(k.collection)?k.collection:[],f=re.getLevelModel(oe.id,k.collection),g=le.extend(!0,{},f),k.collection=_.filter(k.collection,function(e){return e.id!=oe.id})}h.collection=_.isArray(h.collection)?h.collection:[],r=le.extend(!0,[],h.collection),a=[],_.each(oe.newOrder,function(e){if(oe.from_location!=oe.to_location&&e==g.id)a.push(g);else{if(t=re.getLevelModel(e,r),_.isEmpty(t)||"no_match"==t)throw new Error("updateAPISetting => "+oe.action+" => missing section candidate");a.push(t)}}),h.collection=a;break;case"sek-move-section-up-down":if(parentCandidate=re.getLevelModel(oe.is_nested?oe.in_column:oe.location,d.collection),_.isEmpty(parentCandidate)||"no_match"==parentCandidate)throw new Error("updateAPISetting => "+oe.action+" => missing target location");parentCandidate.collection=_.isArray(parentCandidate.collection)?parentCandidate.collection:[],r=le.extend(!0,[],parentCandidate.collection),a=le.extend(!0,[],parentCandidate.collection);var y=_.findIndex(r,function(e){return e.id===oe.id});if(-1===y)throw new Error("updateAPISetting => "+oe.action+" => invalid index");var v=oe.direction||"up";if("up"!==v&&r.length===y+1)throw new Error("updateAPISetting => "+oe.action+" => bottom reached");if("up"===v&&0===y)throw new Error("updateAPISetting => "+oe.action+" => top reached");a[y]=r["up"===v?y-1:y+1],a["up"===v?y-1:y+1]=r[y],parentCandidate.collection=a;break;case"sek-add-column":if(_.isEmpty(oe.id))throw new Error("updateAPISetting => "+oe.action+" => missing id");if("no_match"==(t=re.getLevelModel(oe.in_sektion,d.collection))){ce.errare("updateAPISetting => "+oe.action+" => no parent sektion matched"),ae.reject("updateAPISetting => "+oe.action+" => no parent sektion matched");break}if(t.collection=_.isArray(t.collection)?t.collection:[],re.MAX_NUMBER_OF_COLUMNS-1<_.size(t.collection)){ae.reject(sektionsLocalizedData.i18n["You've reached the maximum number of columns allowed in this section."]);break}_.each(t.collection,function(e){e.width=""}),t.collection.push({id:oe.id,level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion});break;case"sek-remove-column":if("no_match"!=(t=re.getLevelModel(oe.in_sektion,d.collection))){if(1===_.size(t.collection)){ae.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!=oe.id}),_.each(t.collection,function(e){e.width=""})}else ce.errare("updateAPISetting => "+oe.action+" => no parent sektion matched");break;case"sek-duplicate-column":if(_.isEmpty(oe.id))throw new Error("updateAPISetting => "+oe.action+" => missing id");if("no_match"==(t=re.getLevelModel(oe.in_sektion,d.collection))){ce.errare("updateAPISetting => "+oe.action+" => no parent sektion matched"),ae.reject("updateAPISetting => "+oe.action+" => no parent sektion matched");break}if(t.collection=_.isArray(t.collection)?t.collection:[],re.MAX_NUMBER_OF_COLUMNS-1<_.size(t.collection)){ae.reject(sektionsLocalizedData.i18n["You've reached the maximum number of columns allowed in this section."]);break}var b;try{b=re.cloneLevel(oe.id)}catch(e){ce.errare("updateAPISetting => "+oe.action,e);break}var z=re.getLevelPositionInCollection(oe.id,d.collection);s=b.id,t.collection.splice(parseInt(z+1,10),0,b),_.each(t.collection,function(e){e.width=""});break;case"sek-resize-columns":if(oe.col_number<2)break;var I=re.getLevelModel(oe.resized_column,d.collection),w=re.getLevelModel(oe.sister_column,d.collection);if("no_match"==I){ce.errare("updateAPISetting => "+oe.action+" => no resized column matched"),ae.reject("updateAPISetting => "+oe.action+" => no resized column matched");break}I.width=parseFloat(oe.resizedColumnWidthInPercent);var M=re.getLevelModel(oe.in_sektion,d.collection),D=_.filter(M.collection,function(e){return e.id!=I.id&&e.id!=w.id}),S=parseFloat(I.width.toFixed(3));_.isEmpty(D)||_.each(D,function(e){currentColWidth=parseFloat(1*e.width),(!_.has(e,"width")||!_.isNumber(1*currentColWidth)||_.isEmpty(currentColWidth+"")||currentColWidth<1)&&(e.width=parseFloat((100/oe.col_number).toFixed(3))),S=parseFloat((S+e.width).toFixed(3))}),w.width=parseFloat((100-S).toFixed(3));break;case"sek-move-column":var C,P,x=re.getLevelModel(oe.to_sektion,d.collection);if(_.isEmpty(x)||"no_match"==x)throw new Error("updateAPISetting => "+oe.action+" => missing target sektion");if(oe.from_sektion!=oe.to_sektion){var E=re.getLevelModel(oe.from_sektion,d.collection);if(_.isEmpty(E)||"no_match"==E)throw new Error("updateAPISetting => "+oe.action+" => missing source column");E.collection=_.isArray(E.collection)?E.collection:[],C=re.getLevelModel(oe.id,E.collection),P=le.extend(!0,{},C),E.collection=_.filter(E.collection,function(e){return e.id!=oe.id}),_.each(E.collection,function(e){e.width=""})}x.collection=_.isArray(x.collection)?x.collection:[],r=le.extend(!0,[],x.collection),a=[],_.each(oe.newOrder,function(e){if(oe.from_sektion!=oe.to_sektion&&e==P.id)a.push(P);else{if(o=re.getLevelModel(e,r),_.isEmpty(o)||"no_match"==o)throw new Error("updateAPISetting => moveColumn => missing columnCandidate");a.push(o)}}),x.collection=a,_.each(x.collection,function(e){e.width=""});break;case"sek-add-module":if(_.isEmpty(oe.id))throw new Error("updateAPISetting => "+oe.action+" => missing id");if(_.isEmpty(oe.module_type))throw new Error("updateAPISetting => "+oe.action+" => missing module_type");if("no_match"===(o=re.getLevelModel(oe.in_column,d.collection))){ce.errare("updateAPISetting => "+oe.action+" => no parent column matched"),ae.reject("updateAPISetting => "+oe.action+" => no parent column matched");break}var R=0;o.collection=_.isArray(o.collection)?o.collection:[],_.each(o.collection,function(e,t){oe.before_module===e.id&&(R=t),oe.after_module===e.id&&(R=t+1)});var L={id:oe.id,level:"module",module_type:oe.module_type,ver_ini:sektionsLocalizedData.nimbleVersion};"no_starting_value"!==(e=re.getModuleStartingValue(oe.module_type))&&(L.value=e),o.collection.splice(R,0,L);break;case"sek-duplicate-module":if(_.isEmpty(oe.id))throw new Error("updateAPISetting => "+oe.action+" => missing id");if("no_match"==(o=re.getLevelModel(oe.in_column,d.collection))){ce.errare("updateAPISetting => "+oe.action+" => no parent column matched"),ae.reject("updateAPISetting => "+oe.action+" => no parent column matched");break}var O;o.collection=_.isArray(o.collection)?o.collection:[];try{O=re.cloneLevel(oe.id)}catch(e){ce.errare("updateAPISetting => "+oe.action,e),ae.reject("updateAPISetting => "+oe.action+" => error when cloning the level");break}var A=re.getLevelPositionInCollection(oe.id,d.collection);s=O.id,o.collection.splice(parseInt(A+1,10),0,O);break;case"sek-remove-module":if(_.isEmpty(oe.id))throw new Error("updateAPISetting => "+oe.action+" => missing id");"no_match"!=(o=re.getLevelModel(oe.in_column,d.collection))?(o.collection=_.isArray(o.collection)?o.collection:[],o.collection=_.filter(o.collection,function(e){return e.id!=oe.id})):ce.errare("updateAPISetting => "+oe.action+" => no parent column matched");break;case"sek-move-module":var j,T,V;if(j=re.getLevelModel(oe.to_column,d.collection),_.isEmpty(j)||"no_match"==j)throw new Error("updateAPISetting => "+oe.action+" => missing target column");if(oe.from_column!=oe.to_column){var Z;if(Z=re.getLevelModel(oe.from_column,d.collection),_.isEmpty(Z)||"no_match"==Z)throw new Error("updateAPISetting => "+oe.action+" => missing source column");Z.collection=_.isArray(Z.collection)?Z.collection:[],T=re.getLevelModel(oe.id,d.collection),V=le.extend(!0,{},T),Z.collection=_.filter(Z.collection,function(e){return e.id!=oe.id})}if(j.collection=_.isArray(j.collection)?j.collection:[],r=le.extend(!0,[],j.collection),a=[],_.each(oe.newOrder,function(e){if(oe.from_column!=oe.to_column&&e==V.id)a.push(V);else{if(i=re.getLevelModel(e,d.collection),_.isEmpty(i)||"no_match"==i)throw new Error("updateAPISetting => "+oe.action+" => missing moduleCandidate");a.push(i)}}),a.length!=_.uniq(a).length)throw new Error("updateAPISetting => "+oe.action+" => there are duplicated modules in column : "+j.id);j.collection=a;break;case"sek-set-module-value":i=re.getLevelModel(oe.id,d.collection);var F={};if(_.each(oe.value||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(F[t]=e)}),"no_match"==i){ce.errare("updateAPISetting => "+oe.action+" => no module matched",oe),ae.reject("updateAPISetting => "+oe.action+" => error no module matched");break}if(_.isEmpty(oe.options_type)){ce.errare("updateAPISetting => "+oe.action+" => missing options_type"),ae.reject("updateAPISetting => "+oe.action+" => missing options_type");break}if("__no_option_group_to_be_updated_by_children_modules__"===oe.options_type)i.value=F;else{var U=le.extend(!0,{},_.isEmpty(i.value)?{}:i.value);U[oe.options_type]=F,i.value=U}break;case"sek-generate-level-options-ui":var N=re.getLevelModel(oe.id,d.collection),B={};if("no_match"===N){ce.errare("updateAPISetting => "+oe.action+" => no parent sektion matched"),ae.reject("updateAPISetting => "+oe.action+" => no parent sektion matched");break}var Q=le.extend(!0,{},N.options||{});_.each(oe.value||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(B[t]=e)}),_.isEmpty(oe.options_type)&&ce.errare("updateAPISetting => "+oe.action+" => missing options_type"),Q[oe.options_type]=B,N.options=Q;break;case"sek-generate-local-skope-options-ui":B={};var H=le.extend(!0,{},_.isObject(d.local_options)?d.local_options:{});if(_.each(oe.value||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(B[t]=e)}),_.isEmpty(oe.options_type)||!_.isString(oe.options_type))ce.errare("updateAPISetting => "+oe.action+" => missing options_type");else{var G={};G[oe.options_type]=B,d.local_options=le.extend(H,G)}break;case"sek-add-content-in-new-sektion":if(_.isEmpty(oe.id))throw new Error("updateAPISetting => "+oe.action+" => missing id");if(R=0,"no_match"==(n=re.getLevelModel(oe.location,d.collection))){ce.errare("updateAPISetting => "+oe.action+" => no location matched"),ae.reject("updateAPISetting => "+oe.action+" => no location matched");break}switch(n.collection=_.isArray(n.collection)?n.collection:[],_.each(n.collection,function(e,t){oe.before_section===e.id&&(R=t),oe.after_section===e.id&&(R=t+1)}),oe.content_type){case"module":e=re.getModuleStartingValue(oe.content_id),n.collection.splice(R,0,{id:oe.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+re.guid(),level:"column",collection:[{id:oe.droppedModuleId,level:"module",module_type:oe.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=le.Deferred();var W=function(e){re.preparePresetSectionForInjection(e).fail(function(e){ae.reject("updateAPISetting => error when preparePresetSectionForInjection => "+oe.action+" => "+e),u.reject(e)}).done(function(e){var t=!1;if(!_.isEmpty(oe.sektion_to_replace)){var i=re.getLevelModel(oe.sektion_to_replace,d.collection);"no_match"===i&&(ce.errare("updateAPISetting => "+oe.action+" => no sektionToReplace matched"),ae.reject("updateAPISetting => "+oe.action+" => no sektionToReplace matched")),t=!0===i.is_nested}t?("no_match"===(o=re.getLevelModel(oe.in_column,d.collection))&&(ce.errare("updateAPISetting => "+oe.action+" => no parent column matched"),ae.reject("updateAPISetting => "+oe.action+" => no parent column matched")),o.collection=_.isArray(o.collection)?o.collection:[],_.each(o.collection,function(e,t){oe.before_section===e.id&&(R=t),oe.after_section===e.id&&(R=t+1)}),o.collection.splice(R,0,{id:oe.id,is_nested:!0,level:"section",collection:e.collection,options:e.options||{},ver_ini:sektionsLocalizedData.nimbleVersion})):n.collection.splice(R,0,{id:oe.id,level:"section",collection:e.collection,options:e.options||{},ver_ini:sektionsLocalizedData.nimbleVersion}),u.resolve()})};re.getPresetSectionCollection({is_user_section:oe.is_user_section,presetSectionId:oe.content_id,section_id:oe.id}).fail(function(e){ce.errare("updateAPISetting => "+oe.action+" => Error with self.getPresetSectionCollection()",e),ae.reject("updateAPISetting => "+oe.action+" => Error with self.getPresetSectionCollection()")}).done(function(e){_.isObject(e)&&!_.isEmpty(e)||(ce.errare("updateAPISetting => "+oe.action+" => preset section type not found or empty : "+oe.content_id,e),ae.reject("updateAPISetting => "+oe.action+" => preset section type not found or empty")),W(e)})}break;case"sek-add-preset-section-in-new-nested-sektion":if(_.isEmpty(oe.id))throw new Error("updateAPISetting => "+oe.action+" => missing id");if(o=re.getLevelModel(oe.in_column,d.collection),"no_match"==(c=re.getLevelModel(oe.in_sektion,d.collection))){ae.reject("updateAPISetting => "+oe.action+" => no grand parent sektion found");break}if(!0===c.is_nested){ae.reject(sektionsLocalizedData.i18n["You've reached the maximum number of allowed nested sections."]);break}if("no_match"==o){ce.errare("updateAPISetting => "+oe.action+" => no parent column matched"),ae.reject("updateAPISetting => "+oe.action+" => no parent column matched");break}o.collection=_.isArray(o.collection)?o.collection:[],u=le.Deferred(),W=function(e){re.preparePresetSectionForInjection(e).fail(function(e){ae.reject("updateAPISetting => error when preparePresetSectionForInjection => "+oe.action+" => "+e),u.reject(e)}).done(function(e){o.collection.push({id:oe.id,level:"section",collection:e.collection,options:e.options||{},is_nested:!0,ver_ini:sektionsLocalizedData.nimbleVersion}),u.resolve()})},re.getPresetSectionCollection({is_user_section:oe.is_user_section,presetSectionId:oe.content_id,section_id:oe.id}).fail(function(){ce.errare("updateAPISetting => "+oe.action+" => Error with self.getPresetSectionCollection()",_er_),ae.reject("updateAPISetting => "+oe.action+" => Error with self.getPresetSectionCollection()")}).done(function(e){_.isObject(e)&&!_.isEmpty(e)||(ce.errare("updateAPISetting => "+oe.action+" => preset section type not found or empty : "+oe.content_id,e),ae.reject("updateAPISetting => "+oe.action+" => preset section type not found or empty")),W(e)});break;case"sek-update-fonts":var $=re.sniffGFonts({is_global_location:oe&&!0===oe.is_global_location});if(!_.isEmpty(oe.font_family)&&_.isString(oe.font_family)&&!_.contains($,oe.font_family)){if(oe.font_family.indexOf("gfont")<0){ce.errare("updateAPISetting => "+oe.action+" => error => must be a google font, prefixed gfont"),ae.reject("updateAPISetting => "+oe.action+" => error => must be a google font, prefixed gfont");break}$.push(oe.font_family)}d.fonts=$;break;case"sek-restore-revision":d=oe.revision_value;break;case"sek-import-from-file":if(ce.infoLog("sek-import-from-file",oe),_.isUndefined(oe.imported_content.data)||_.isUndefined(oe.imported_content.metas)){ce.errare("updateAPISetting::sek-import-from-file => invalid imported content",imported_content);break}var q=_.isArray(oe.imported_content.data.collection)?le.extend(!0,[],oe.imported_content.data.collection):[];if(!0===oe.assign_missing_locations){var Y=oe.imported_content.metas.active_locations,J=ce.czr_sektions.activeLocations(),K=_.first(J);if(!_.isEmpty(K)&&!_.isEmpty(Y)&&_.isArray(Y)){var X=le(Y).not(J).get(),ee=re.getLevelModel(K,d.collection),te=re.getLevelModel(K,oe.imported_content.data.collection),ie=[];ee.collection=_.isArray(ee.collection)?ee.collection:[],te.collection=_.isArray(te.collection)?te.collection:[],_.each(Y,function(e){var t=re.getLevelModel(e,q);_.isEmpty(t.collection)||(ie=_.union(ie,t.collection))}),te.collection=ie,oe.imported_content.data.collection=_.filter(oe.imported_content.data.collection,function(e){return!_.contains(X,e.id)})}}!0===oe.keep_existing_sections&&(_.each(q,function(e){var t=re.getLevelModel(e.id,d.collection);if(!_.isEmpty(t.collection)){var i=re.getLevelModel(e.id,oe.imported_content.data.collection);i.collection=_.union(t.collection,i.collection)}}),d.fonts&&!_.isEmpty(d.fonts)&&_.isArray(d.fonts)&&(oe.imported_content.data.fonts=_.isArray(oe.imported_content.data.fonts)?oe.imported_content.data.fonts:[],oe.imported_content.data.fonts=_.uniq(_.union(d.fonts,oe.imported_content.data.fonts)))),d=oe.imported_content.data;break;case"sek-reset-collection":try{d=ce.czr_sektions.resetCollectionSetting(oe.scope)}catch(e){ce.errare("sek-reset-collection => error when firing resetCollectionSetting()",e)}}if("pending"==ae.state()){var ne=function(){var e=oe.settingParams&&oe.settingParams.from&&oe.settingParams.to;e&&_.isEqual(oe.settingParams.from,oe.settingParams.to)?ae.reject("updateAPISetting => the new setting value is unchanged when firing action : "+oe.action):!e&&_.isEqual(l,d)?ae.reject("updateAPISetting => the new setting value is unchanged when firing action : "+oe.action):null!==re.validateSettingValue(d,oe.is_global_location?"global":"local")?(ce(se)(d,oe),oe.cloneId=s,ae.resolve(oe)):ae.reject("Validation problem for action "+oe.action)};"_not_injection_scenario_"===u?(ne(),"pending"===ae.state()&&ce.errare("::updateAPISetting => The __updateAPISettingDeferred__ promise has not been resolved properly.")):u.done(function(){ne(),"pending"===ae.state()&&ce.errare("::updateAPISetting => The __updateAPISettingDeferred__ promise has not been resolved properly.")}).fail(function(e){ce.errare("updateAPISetting => __presetSectionInjected__ failed",e)})}}()}),ae.promise()},_maybeFetchSectionsFromServer:function(t){var e,i=le.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 a=this,s=le.Deferred();return a._maybeFetchSectionsFromServer({is_user_section:r.is_user_section,preset_section_id:r.presetSectionId}).fail(function(e){s.reject(e)}).done(function(e){var t=le.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+a.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.id=r.section_id,i.collection=n(i.collection),i.ver_ini=sektionsLocalizedData.nimbleVersion,i.collection=o(i.collection),s.resolve(i)}),s.promise()},preparePresetSectionForInjection:function(o){var i=this,n={},r=le.Deferred(),a=function(e){return _.each(e,function(e,t){_.isObject(e)||_.isArray(e)?a(e):_.isString(e)&&-1!=e.indexOf("__img_url__")&&(_.has(n,e)||(n[e]=i.importAttachment(e.replace("__img_url__",""))))}),n},s=function(i,n){return _.each(i,function(e,t){_.isObject(e)||_.isArray(e)?s(e,n):_.isString(e)&&-1!=e.indexOf("__img_url__")&&_.has(n,e)&&_.isObject(n[e])&&(i[t]=n[e].id)}),o};return i.whenAllPromisesInParallel(a(o)).done(function(e){var t=s(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(l,d){d.extend(CZRSeksPrototype,{rootPanelFocus:function(){l.section.has(l.czr_activeSectionId())?l.section(l.czr_activeSectionId()).expanded(!1):l.section.each(function(e){e.expanded(!1)}),l.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 a=this,s="no_match",c=function(t,e,i,n){if(_.isUndefined(e)){var o=l(i)(),r=_.isObject(o)?d.extend(!0,{},o):d.extend(!0,{},a.getDefaultSektionSettingValue(n));e=_.isArray(r.collection)?r.collection:[]}return _.each(e,function(e){"no_match"==s&&(t===e.id?s=e:_.isArray(e.collection)&&c(t,e.collection,i,n))}),s};return _.isEmpty(n)?_.each({local:a.localSectionsSettingId(),global:a.getGlobalSectionsSettingId()},function(e,t){"no_match"===s&&c(i,n,e,t)}):c(i,n),s},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,a=function(t,e){var i="no_match";if(_.isUndefined(e)){var n=l(r.getGlobalSectionsSettingId())(),o=_.isObject(n)?d.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=a(t,e.collection)))}),i};return"no_match"!==a(e)},getLevelPositionInCollection:function(i,n){var a=this,s="no_match",c=function(i,e,n,o){if(_.isUndefined(e)){var t=l(n)(),r=_.isObject(t)?d.extend(!0,{},t):d.extend(!0,{},a.getDefaultSektionSettingValue(o));e=_.isArray(r.collection)?r.collection:[]}_.each(e,function(e,t){"no_match"==s&&(i===e.id?s=t:_.isArray(e.collection)&&c(i,e.collection,n,o))})};return _.isEmpty(n)?_.each({local:a.localSectionsSettingId(),global:a.getGlobalSectionsSettingId()},function(e,t){"no_match"===s&&c(i,e,t,n)}):c(i,n),s},getLevelProperty:function(e){if(e=_.extend({id:"",property:""},e),_.isEmpty(e.id))l.errare("getLevelProperty => invalid id provided");else{var t=this.getLevelModel(e.id);if("no_match"!=t){if(_.isObject(t))return t[e.property];l.errare("getLevelProperty => invalid model for id : "+e.id,t)}else l.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=d.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){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}l.errare("getDefaultItemModelFromRegisteredModuleData => Father modules should be treated specifically")},getRegisteredModuleProperty:function(e,t){return this.isModuleRegistered(e)?sektionsLocalizedData.registeredModules[e][t]:"not_set"},isModuleRegistered:function(e){return sektionsLocalizedData.registeredModules&&!_.isUndefined(sektionsLocalizedData.registeredModules[e])},sniffGFonts:function(e){var o=this,r=[],a=function(i,n,e){if(_.isUndefined(e)){var t=l(i)();e=_.isObject(t)?d.extend(!0,{},t):d.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))&&a(i,n,e)})};return(e=e||{is_global_location:!1}).is_global_location?a(o.getGlobalSectionsSettingId(),"global"):a(o.localSectionsSettingId(),"local"),r},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))l.errare("getInputDefaultValue => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))l.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}l.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))l.errare("getInputType => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))l.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}l.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))l.errare("getInputRegistrationParams => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))l.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}l.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}l.errare("inputIsAFontFamilyModifier => missing sektionsLocalizedData.registeredModules")},getModuleStartingValue:function(e){if(!sektionsLocalizedData.registeredModules)return l.errare("getModuleStartingValue => missing sektionsLocalizedData.registeredModules"),"no_starting_value";if(_.isUndefined(sektionsLocalizedData.registeredModules[e]))return l.errare("getModuleStartingValue => the module type "+e+" is not registered"),"no_starting_value";var t=sektionsLocalizedData.registeredModules[e].starting_value;return _.isEmpty(t)?"no_starting_value":t},selectNextTabbableOrFocusable:function(e){var t=d(e),i=d(":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=d(e),i=d(":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,l.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()?d.extend(i,{selected:"selected"}):"px"===t&&d.extend(i,{selected:"selected"}),d("select[data-czrtype]",n.container).append(d("<option>",i))}),d("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)&&d.extend(i,{selected:"selected"}),d("select[data-czrtype]",n.container).append(d("<option>",i))}),d("select[data-czrtype]",n.container).czrSelect2({closeOnSelect:!0,templateSelection:function(e){return e.text.replace(/\u2013|\u2014/g,"")}}),d("select[data-czrtype]",n.container).on("change",function(){0===d(this).find("option:selected").length&&n([])});break;default:l.errare("::setupSelectInput => invalid input type => "+n.type)}else l.errare("api.czr_sektions.setupSelectInput => missing select options for input id => "+n.id+" in module "+n.module.module_type)},setupFontSizeAndLineHeightInputs:function(e){var t=this,i=d(".sek-font-size-line-height-wrapper",t.container),n=i.find("input[data-czrtype]").data("sek-unit"),o=function(e){return _.contains(["px","em","%"],e)||(l.errare("error : invalid unit for input "+t.id,e),e="px"),e};t.css_unit=new l.Value(_.isEmpty(n)?"px":o(n)),t.css_unit.bind(function(e){e=_.isEmpty(e)?"px":e,i.find('input[type="number"]').trigger("change")}),i.find('input[type="number"]').on("input change",function(e){t(d(this).val()+o(t.css_unit()))}).stepper(),i.on("click","[data-sek-unit]",function(e){e.preventDefault(),i.find("[data-sek-unit]").removeClass("is-selected").attr("aria-pressed",!1),d(this).addClass("is-selected").attr("aria-pressed",!0),i.find("input[data-czrtype]").data("sek-unit",d(this).data("sek-unit")),t.css_unit(d(this).data("sek-unit"))}),i.find('.sek-ui-button[data-sek-unit="'+n+'"]').addClass("is-selected").attr("aria-pressed",!0)},maybeSetupDeviceSwitcherForInput:function(){var i=this,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(" ");i.container.find(".customize-control-title").prepend(e),i.previewedDevice=new l.Value(l.previewedDevice()),syncWithPreviewedDevice=function(e){e.stopPropagation(),i.container.find("[data-sek-device]").removeClass("active"),d(this).addClass("active");var t="desktop";try{t=d(this).data("sek-device")}catch(e){l.errare("maybeSetupDeviceSwitcherForInput => error when binding sek-switcher",e)}try{l.previewedDevice(t)}catch(e){l.errare("maybeSetupDeviceSwitcherForInput => error when setting the previewed device",e)}i.previewedDevice(t)},i.container.on("click","[data-sek-device]",syncWithPreviewedDevice);var t=i.container.find('[data-sek-device="'+l.previewedDevice()+'"]');0<t.length&&t.trigger("click")},scheduleModuleAccordion:function(e){e=e||{expand_first_control:!0};var i=this;if(d(i.container).on("click",".customize-control label > .customize-control-title",function(e){e.stopPropagation();var t=d(this).closest(".customize-control");"no"!==t.attr("data-sek-accordion")&&(i.container.find(".customize-control").not(t).each(function(){d(this).attr("data-sek-accordion")||(d(this).attr("data-sek-expanded","false"),d(this).find(".czr-items-wrapper").stop(!0,!0).slideUp(0))}),t.find(".czr-items-wrapper").stop(!0,!0).slideToggle({duration:0,start:function(){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")}}))}),e.expand_first_control){var t=_.first(i.controls());_.isObject(t)&&!_.isEmpty(t.id)&&l.control(t.id,function(e){e.container.trigger("sek-accordion-expanded"),i.container.find(".customize-control").first().find("label > .customize-control-title").trigger("click")})}},isPromise:function(e){return e&&"function"==typeof e.then&&String(d.Deferred().then)===String(e.then)},whenAllPromisesInParallel:function(e){var i=this,t=d.Deferred(),n=[],o=_.keys(e);return _.each(e,function(e,t){n.push(d.Deferred(function(t){(i.isPromise(e)?e:d.Deferred()).done(t.resolve).fail(function(e){t.reject(e)})}))}),d.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||d.Deferred();var r=this;if(_.isArray(t)){var e=t[i];(r.isPromise(e)?e:d.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:l.settings.nonce.save}).fail(function(e){l.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)||l.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);n.czr_Input(t).visible(i()),this.bind(function(e){n.czr_Input(t).visible(i())})}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(s,m){m.extend(CZRSeksPrototype,{setupDnd:function(){var t=this;t.bind("sek-refresh-dragzones",function(e){!0!="draggable"in document.createElement("span")&&s.panel(sektionsLocalizedData.sektionsPanelId,function(e){s.notifications.add(new s.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(){s.notifications.remove("drag-drop-support")},1e4)}),t.setupNimbleDragZones(e.input_container)}),s.previewer.bind("ready",function(){try{t.setupNimbleDropZones()}catch(e){s.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(){s.notifications.add(new s.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(){s.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-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"),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){s.panel(sektionsLocalizedData.sektionsPanelId,function(e){s.notifications.add(new s.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(){s.notifications.remove("drag-drop-support")},1e4)})}m(this).addClass("sek-dragged"),m("body").addClass("sek-dragging"),s.previewer.send("sek-drag-start",{type:n.dndData.content_type})}).call(m(this),e)}).on("dragend",function(e){(function(e){m("body").removeClass("sek-dragging"),m(this).removeClass("sek-dragged"),s.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?(s.czr_sektions.trigger("sek-content-dropped",{drop_target_element:t,location:t.closest('[data-sek-level="location"]').data("sek-id"),before_module:t.data("drop-zone-before-module-or-nested-section"),after_module: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(),s.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":if(this.$cachedDropZoneCandidates=null,!t.dnd_canDrop({targetEl:m(this),evt:e}))return;e.preventDefault(),t.dnd_onDrop(m(this),e),t.dnd_cleanOnLeaveDrop(m(this),e),s.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)),a=(Math.abs(o.top-i),Math.abs(n-(o.right-(o.right-o.left)/2))),s=(o.right,o.left,r<50),c=a<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=a,t=r,Math.sqrt(e*e+t*t))}),m(this).removeClass("sek-drag-is-in"),(s||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:s.errare("::dnd_getPreDropElementContent => invalid content type provided")}return i},dnd_getDropZonesElements:function(){return m(s.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"),a=!0===i.closest('[data-sek-level="location"]').data("sek-is-footer-location"),s="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(r||a)&&s?(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):a&&"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):i.hasClass("sek-drop-zone")&&("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){s.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,a=i.right,s=i.top,c=i.bottom;return r<=n&&n-r<=a-r&&(s<=o&&o-s<=c-s)},dnd_onDrop:function(e,t){t.stopPropagation();this.dnd_getPosition(e,t),e.index();s.czr_sektions.trigger("sek-content-dropped",{drop_target_element:e,location:e.closest('[data-sek-level="location"]').data("sek-id"),before_module:e.data("drop-zone-before-module-or-nested-section"),after_module: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"),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=e.drop_target_element,i="content-in-column";switch(t.data("sek-location")){case"between-sections":i="content-in-a-section-to-create";break;case"in-empty-location":e.is_first_section=!0,e.send_to_preview=!1,i="content-in-empty-location";break;case"between-columns":i="content-in-new-column"}if("preset_section"===e.content_type)if(t.hasClass("sek-module-drop-zone-for-first-module")){var n=t.closest('div[data-sek-level="section"]');1<n.find(".sek-sektion-inner").first().children('[data-sek-level="column"]').length?(i="preset-section-in-a-nested-section-to-create",e.is_nested=!0,e.in_column=t.closest('[data-sek-level="column"]').data("sek-id"),e.in_sektion=n.data("sek-id")):(e.sektion_to_replace=n.data("sek-id"),e.after_section=e.sektion_to_replace,e.in_column=n.closest('[data-sek-level="column"]').data("sek-id"),i="content-in-a-section-to-replace")}else"between-sections"===t.data("sek-location")&&(i="content-in-a-section-to-create");switch(i){case"content-in-column":var o=t.closest("div[data-sek-level]");if(o.length<1)throw new Error("No valid level dom element found");var r=o.data("sek-level"),a=o.data("sek-id");if(_.isEmpty(r)||_.isEmpty(a))throw new Error("No valid level id found");s.previewer.trigger("sek-add-module",{level:r,id:a,in_column:t.closest('div[data-sek-level="column"]').data("sek-id"),in_sektion:t.closest('div[data-sek-level="section"]').data("sek-id"),before_module:e.before_module,after_module:e.after_module,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":s.previewer.trigger("sek-add-content-in-new-sektion",e);break;case"preset-section-in-a-nested-section-to-create":s.previewer.trigger("sek-add-preset-section-in-new-nested-sektion",e);break;case"content-in-empty-location":s.previewer.trigger("sek-add-content-in-new-sektion",e);break;default:s.errare("sek control panel => ::reactToDrop => invalid drop case : "+i)}}(e)}catch(e){s.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),d(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(){d(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"),a=d("#wp-czr-customize-content_editor-tools"),s=i.$editorPane.find(".mce-toolbar-grp"),c=i.$editorPane.find(".mce-statusbar");l.sekEditorExpanded()&&(_.isNaN(e)||(t=n-e),o.height=t,o.components=a.outerHeight()+s.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(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(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 a=o();o.initial_unit="px",u.isEmpty(a)||(o.initial_unit=u.isEmpty(a.unit)?"px":a.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,a=d(".sek-spacing-wrapper",r.container),t=l.czr_sektions.getInputRegistrationParams(r.id,r.module.module_type),s=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,{},s);t=u.isObject(t)?d.extend(i,t):i;var n=c(t,e);d("[data-sek-spacing]",a).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)),a.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),r(t)}),m.call(r,a,s),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,a);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,s,c){n.czrInputMap=n.czrInputMap||{},s.extend(n.czrInputMap,{bg_position:function(e){var t=this;s(".sek-bg-pos-wrapper",t.container).on("change",'input[type="radio"]',function(e){t(s(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 a=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?a(e,i[n+1]):{}},i=function(e){var t=s.extend(!0,{},c.isObject(o())?o():{}),i=s.extend(!0,{},r);t=c.isObject(t)?s.extend(i,t):i;var n=a(t,e);o.container.find('input[value="'+n+'"]').attr("checked",!0).trigger("click",{previewed_device_switched:!0})};s(".sek-bg-pos-wrapper",o.container).on("change",'input[type="radio"]',function(e){var t,i=s(this).val();(t=s.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",a=l(i,o.container);c.czr_sektions.maybeSetupDeviceSwitcherForInput.call(o);var s=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?s(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=s(t,e);a.find(".selected").removeClass("selected"),a.find('div[data-sek-align="'+n+'"]').addClass("selected")};a.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"),a.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(t,e,i){t.czrInputMap=t.czrInputMap||{},e.extend(t.czrInputMap,{font_size:function(e){t.czr_sektions.setupFontSizeAndLineHeightInputs.call(this)}})}(wp.customize,jQuery,_),function(t,e,i){t.czrInputMap=t.czrInputMap||{},e.extend(t.czrInputMap,{line_height:function(e){t.czr_sektions.setupFontSizeAndLineHeightInputs.call(this)}})}(wp.customize,jQuery,_),function(i,c,l){i.czrInputMap=i.czrInputMap||{},c.extend(i.czrInputMap,{font_picker:function(e){var s=this,o=s.input_parent,n=function(e,t){o();var n=c('select[data-czrtype="'+s.id+'"]',s.container);l.isNull(s())||l.isEmpty(s())?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>"),l.each([{title:sektionsLocalizedData.i18n["Web Safe Fonts"],type:"cfont",list:t.cfonts},{title:sektionsLocalizedData.i18n["Google Fonts"],type:"gfont",list:t.gfonts}],function(e){var t,r,a,i=c("<optgroup>",{label:e.title,html:(t=e.list,r=e.type,a="",l.each(t,function(e){var t,i,n=e.name,o=l.isString(n)?n.replace(/[+|:]/g," "):n;t=n,i=r,(n=l.isString(t)?["[",i,"]",t].join(""):"")==s()?a+='<option selected="selected" value="'+n+'">'+o+"</option>":a+='<option value="'+n+'">'+o+"</option>"}),a)});n.append(i)});var i={escapeMarkup:function(e){return e}};e&&c.extend(i,{resultsAdapter:e,closeOnSelect:!1}),n.czrSelect2(i),c(".czrSelect2-selection__rendered",s.container).css(r(s()))},r=function(e){if(!l.isString(e)||l.isEmpty(e))return{};var t,i,n,o=(e=e.replace("[gfont]","").replace("[cfont]","")).split(":");return t=a(e),i=o[1]?o[1].replace(/[^0-9.]+/g,""):400,i=l.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"}},a=function(e){if(!l.isString(e)||l.isEmpty(e))return e;var t=(e=e.replace("[gfont]","").replace("[cfont]","")).split(":");return l.isString(t[0])?t[0].replace(/[+|:]/g," "):""};c.when(function(){var e,t=c.Deferred();l.isEmpty(i.sek_fontCollections)?(l.isUndefined(i.sek_fetchingFontCollection)||"pending"!=i.sek_fetchingFontCollection.state()?(e=i.CZR_Helpers.getModuleTmpl({tmpl:"font_list",module_type:"font_picker_input",module_id:s.module.id}),i.sek_fetchingFontCollection=e):e=i.sek_fetchingFontCollection,e.done(function(e){if("string"!=typeof e||"{"!==e[0])throw new Error("font_picker => server list is not JSON.parse-able");i.sek_fontCollections=JSON.parse(e),t.resolve(i.sek_fontCollections)}).fail(function(e){t.reject(e)})):t.resolve(i.sek_fontCollections);return t.promise()}()).done(function(t){var i;(i=c.Deferred(),void 0!==c.fn.czrSelect2&&void 0!==c.fn.czrSelect2.amd&&"function"==typeof c.fn.czrSelect2.amd.require?c.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){i.errare("font_picker => fail response =>",e)})}})}(wp.customize,jQuery,_),function(r,a,s){r.czrInputMap=r.czrInputMap||{},a.extend(r.czrInputMap,{fa_icon_picker:function(){var n=this,o=!1,e=function(t){!0!==n.iconCollectionSet&&(a.when(a.Deferred(function(t){s.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){s.each(e,function(e){var t={value:e,html:r.CZR_Helpers.capitalize(e.substring(7))};t.value==n()&&(a.extend(t,{selected:"selected"}),o=!0),a("select[data-czrtype]",n.container).append(a("<option>",t))});var t,i=function(e){return e.id?a('<span class="'+e.element.value+'"></span><span class="social-name">&nbsp;&nbsp;'+e.text+"</span>"):e.text};t=o?a("<option>"):a("<option>",{selected:"selected"}),a("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&&s.delay(function(){try{a("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()}),s.delay(function(){e({open_on_init:!1})},1e3)}})}(wp.customize,jQuery,_),function(d,u,p){d.czrInputMap=d.czrInputMap||{},u.extend(d.czrInputMap,{code_editor:function(e){var n=this,i=this.module.control,t=(n.input_parent(),!1),r=n.container.find("textarea"),o=n.container.find(".customize-control-title"),a=r.data("editor-params");wp.codeEditor&&(p.isUndefined(a)||!1!==a)&&(t=a),n.isReady.done(function(){var e=function(e){p.isEmpty(this.editor)&&(p.isEmpty(this.module.control.container.attr("data-sek-expanded"))||"false"==this.module.control.container.attr("data-sek-expanded")||setTimeout(function(){if(t)try{s(t)}catch(e){d.errare("error in sek_control => code_editor() input",e),c()}else c();o.click()},10))};e.call(n),n.module.control.container.on("sek-accordion-expanded",function(){e.call(n)})});var s=function(e){var t,i=!1;t=p.extend({},e,{onTabNext:CZRSeksPrototype.selectNextTabbableOrFocusable(":tabbable"),onTabPrevious:CZRSeksPrototype.selectPrevTabbableOrFocusable(":tabbable"),onUpdateErrorNotice:l}),n.editor=wp.codeEditor.initialize(r,t),u(n.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-label":o.html(),"aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),o.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()})},c=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())})},l=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",o.html()):sektionsLocalizedData.i18n.codeEditorPlural.replace("%d",String(e.length)).replace("%s",o.html()),i.setting.notifications.add(n.id,new d.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)}})}(wp.customize,jQuery,_),function(d,u,p){d.czrInputMap=d.czrInputMap||{},u.extend(d.czrInputMap,{range_simple_device_switcher:function(e){var a=this,t=u(".sek-range-with-unit-picker-wrapper",a.container),s=t.find('input[type="number"]'),r=t.find('input[type="range"]'),i=d.czr_sektions.getInputRegistrationParams(a.id,a.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=a(),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,""));s.val(r).trigger("input",{previewed_device_switched:!0})};d.czr_sektions.maybeSetupDeviceSwitcherForInput.call(a),r.on("input",function(e){s.val(u(this).val()).trigger("input")}),s.on("input",function(e,t){var i,n=d.previewedDevice()||"desktop",o=u(this).val();(i=u.extend(!0,{},p.isObject(a())?a():{}))[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)&&a(i),r.val(u(this).val())}),a.previewedDevice.bind(function(e){try{n(e)}catch(e){d.errare("Error when firing syncWithPreviewedDevice for input type "+a.type+" for input id "+a.id,e)}}),r.val(s.val()||0);try{n(d.previewedDevice())}catch(e){d.errare("Error when firing syncWithPreviewedDevice for input type "+a.type+" for input id "+a.id,e)}}})}(wp.customize,jQuery,_),function(s,c,l){s.czrInputMap=s.czrInputMap||{},c.extend(s.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"),a=function(e){return l.contains(["px","em","%"],e)||(s.errare("error : invalid unit for input "+t.id,e),e="px"),e};t.css_unit=new s.Value(l.isEmpty(r)?"px":a(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()+a(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(s,_,m){s.czrInputMap=s.czrInputMap||{},_.extend(s.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"]'),a=function(e){return m.contains(["px","em","%"],e)||(s.errare("range_with_unit_picker_device_switcher => error : invalid unit for input "+c.id,e),e="px"),e},t=s.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),a=(o=r,m.isEmpty(o)||!m.isString(o)?"px":o.replace(/[0-9]|\.|,/g,"")),s=(n=r,m.isEmpty(n)||!m.isString(n)?"16":n.replace(/px|em|%/g,""));_(".sek-unit-wrapper",l).find('[data-sek-unit="'+a+'"]').trigger("click",{previewed_device_switched:!0}),l.find('.sek-ui-button[data-sek-unit="'+a+'"]').addClass("is-selected").attr("aria-pressed",!0),d.val(s).trigger("input",{previewed_device_switched:!0})};s.czr_sektions.maybeSetupDeviceSwitcherForInput.call(c),c.css_unit=new s.Value(m.isEmpty(i())?"px":a(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=s.previewedDevice()||"desktop",o=_(this).val()+a(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){s.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=s.previewedDevice(),i=_.extend(!0,{},m.isObject(c())?c():{});m.isEmpty(i[t])||(i=m.omit(i,t),c(i),n(s.previewedDevice()))}),r.val(d.val()||0);try{n(s.previewedDevice())}catch(e){s.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 s=this,c=h(".sek-borders",s.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 "+s.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(s.id,s.module.module_type),f=k.isEmpty(t)||k.isEmpty(t.default)?{}:t.default;s.cssBorderTypes=["top","left","right","bottom"];var i,n,o=function(){var e=s(),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=s(),t="#000000";return k.isObject(e)&&k.has(e,"_all_")&&k.isObject(e._all_)&&!k.isEmpty(e._all_.col)&&(t=e._all_.col),t},a=function(e){if(!k.contains(k.union(s.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=s(),i={},n=h.extend(!0,{},f);k.isObject(t)?i=h.extend(!0,{},t):k.isString(t)&&(i={_all_:{wght:t}});var o,r,a=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(a)||!k.isObject(a)||k.isEmpty(a.wght)||k.isEmpty(a.col))throw new Error("Error in syncWithBorderType : getCurrentBorderTypeOrAllValue must return an object formed : array( 'wght' => '1px', 'col' => '#000000' )");o=m(a.wght),r=_(a.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(a.col).trigger("change"),u.data("border_type_switched",!1)};s.borderColor=new g.Value(k.isEmpty(r())?"#000000":r()),s.css_unit=new g.Value(k.isEmpty(o())?"px":p(o())),s.borderType=new g.Value("_all_"),l.val((i=s(),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 : "+s.module.module_type+" the initial border width is invalid : "+n),n=1),n)),u.val(s.borderColor()),u.wpColorPicker({palettes:!0,width:1440<=window.innerWidth?271:251,change:function(e,t){h(this).val(t.color.toString()).trigger("colorpickerchange"),s.borderColor(t.color.toString(),{border_type_switched:!0===h(this).data("border_type_switched")})},clear:function(e,t){h(this).val("").trigger("colorpickerchange"),s.borderColor("")}}),s.css_unit.bind(function(e,t,i){(!k.isObject(i)||!0!==i.border_type_switched&&!0!==i.initializing_the_unit)&&l.trigger("input",i)}),s.borderColor.bind(function(e,t,i){(!k.isObject(i)||!0!==i.border_type_switched&&!0!==i.initializing_the_color)&&l.trigger("input",i)}),s.borderType.bind(function(e){try{a(e)}catch(e){g.errare("Error when firing syncWithBorderType for input type borders for module type "+s.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=s.borderType()||"_all_",o=s.borderColor(),r=h(this).val()+p(s.css_unit()),a=h.extend(!0,{},f);(i=h.extend(!0,{},k.isObject(s())?s():a))[n]=h.extend(!0,{},i[n]||a[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(s.cssBorderTypes,function(e){i=k.omit(i,e)}),s(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")),s.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)}s.borderType(i,t)}),s.container.on("click",".sek-reset-button",function(e){var t=s.borderType()||"_all_",i=h.extend(!0,{},k.isObject(s())?s():{});k.isEmpty(i[t])||(i=k.omit(i,t),s(i),a(t))}),d.val(l.val()||0);try{a(s.borderType())}catch(e){g.errare("Error when firing syncWithBorderType for input type borders for module type "+s.module.module_type,e)}h('[data-sek-unit="'+s.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 s=this,c=f(".sek-borders",s.container),l=c.find('input[type="number"]'),a=c.find('input[type="range"]'),d=function(e){return g.contains(["px","em","%"],e)||(m.errare("border_radius => error : invalid unit for input "+s.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(s.id,s.module.module_type),_=g.isEmpty(t)||g.isEmpty(t.default)?{}:t.default;s.cssRadiusTypes=["top_left","top_right","bottom_right","bottom_left"];var i,n,o=function(){var e=s(),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=s(),i={},n=f.extend(!0,{},_);g.isObject(t)?i=f.extend(!0,{},t):g.isString(t)&&(i={_all_:"0px"});var o,r,a=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(a)||!g.isString(a))throw new Error("Error in syncWithRadiusType : getCurrentRadiusTypeOrAllValue must return a string like 3em");o=p(a),r=u(a),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})};s.css_unit=new m.Value(g.isEmpty(o())?"px":d(o())),s.radiusType=new m.Value("_all_"),l.val((i=s(),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 : "+s.module.module_type+" the initial radius is invalid : "+n),n=0),n)),s.css_unit.bind(function(e,t,i){(!g.isObject(i)||!0!==i.radius_type_switched&&!0!==i.initializing_the_unit)&&l.trigger("input",i)}),s.radiusType.bind(function(e){try{r(e)}catch(e){m.errare("Error when firing syncWithRadiusType for input type border_radius for module type "+s.module.module_type,e)}}),a.on("input",function(e){l.val(f(this).val()).trigger("input")}),l.on("input",function(e,t){var i,n=s.radiusType()||"_all_",o=f(this).val()+d(s.css_unit()),r=f.extend(!0,{},_);(i=f.extend(!0,{},g.isObject(s())?s():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(s.cssRadiusTypes,function(e){i=g.omit(i,e)}),s(i)),a.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")),s.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)}s.radiusType(i,t)}),s.container.on("click",".sek-reset-button",function(e){var t=s.radiusType()||"_all_",i=f.extend(!0,{},g.isObject(s())?s():{});g.isEmpty(i[t])||(i=g.omit(i,t),s(i),r(t))}),a.val(l.val()||0);try{r(s.radiusType())}catch(e){m.errare("Error when firing syncWithRadiusType for input type border_radius for module type "+s.module.module_type,e)}f('[data-sek-unit="'+s.css_unit()+'"]',c).trigger("click",{initializing_the_unit:!0})}})}(wp.customize,jQuery,_),function(r,a,s){r.czrInputMap=r.czrInputMap||{},a.extend(r.czrInputMap,{buttons_choice:function(e){var n=this,o=a(".sek-button-choice-wrapper",n.container),t=o.find('input[type="number"]'),i=r.czr_sektions.getInputRegistrationParams(n.id,n.module.module_type);s.isEmpty(i)||s.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),a(this).addClass("is-selected").attr("aria-pressed",!0);try{i=a(this).data("sek-choice")}catch(e){r.errare("buttons_choice input type => error when attaching click event",e)}n(i)}),a('[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}).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,a){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){a.isEmpty(o.sek_revisionHistory)?i.czr_sektions.getRevisionHistory({is_local:"local_revisions"===o.id}).done(function(e){if(!a.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(a.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=[];a.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(" ")),a.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&&a.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})}),a.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("setupTinyMceEditor => missing textarea for module :"+t.module.id);if(tinyMCE.get(i))throw new Error("setupTinyMceEditor => duplicate editor id.");var r,a,s=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(),a=[sektionsLocalizedData.tinyMceNimbleEditorStylesheetUrl],r&&r.tinymce&&r.tinymce.content_css&&(a=m.union(r.tinymce.content_css.split(","),a)),a.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=s(),s()||(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(){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,a=nimbleTinyMCEPreInit.mceInit[e];a.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 s=t.input_parent,c=function(){var e=s();return m.isUndefined(e.autop)?n&&n.editor_params&&!0===n.editor_params.autop:e.autop};a.wpautop=c(),c()||(a.forced_root_block=""),a.toolbar1=sektionsLocalizedData.defaultToolbarBtns,a.toolbar2="",window.tinymce.init(a),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()?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(_,m,f){_.czrInputMap=_.czrInputMap||{},m.extend(_.czrInputMap,{import_export:function(){var o=this,r=o.container.find('button[data-czr-action="sek-pre-import"]'),i=o.container.find("input[name=sek-import-file]"),n=_.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type),s="local"===n.scope?_.czr_sektions.localSectionsSettingId():_.czr_sektions.getGlobalSectionsSettingId();i.on("change",function(e){r.toggleClass("disabled",f.isEmpty(m(this).val()))});o.container.on("click","[data-czr-action]",function(e){var i,t;switch(e.stopPropagation(),m(this).data("czr-action")){case"sek-export":if(i=!1,t=wp.customize.dirtyValues(),f.isEmpty(t)||f.each(t,function(e,t){i||(i=-1!==t.indexOf("nimble"))}),i){alert(sektionsLocalizedData.i18n["You need to publish before exporting."]);break}var n=_(s)(),o=!0;if(f.each(n.collection,function(e){o&&(f.isEmpty(e.collection)||(o=!1))}),o){alert(sektionsLocalizedData.i18n["Nothing to export."]);break}p();break;case"sek-pre-import":if(f.isEmpty(_.czr_sektions.activeLocations())){alert(sektionsLocalizedData.i18n["The current page has no available locations to import Nimble Builder sections."]);break}c({pre_import_check:!0}).done(a).fail(function(e){_.errare("sek_pre_import_checks failed",e),u(),c()});break;case"sek-import-as-is":c();break;case"sek-import-assign":c({assign_missing_locations:!0});break;case"sek-cancel-import":u()}});var a=function(e){var t=_.czr_sektions.activeLocations(),i=m.extend(!0,[],f.isArray(e.data.metas.active_locations)?e.data.metas.active_locations:[]);if(i=f.filter(i,function(e){return!f.contains(["nimble_local_header","nimble_local_footer"],e)}),f.isArray(i)&&f.isArray(t)){var n=m(i).not(t).get();f.isEmpty(n)?c():(r.hide(),o.container.find(".czr-import-dialog").slideToggle(),_.infoLog("sek-pre-import => imported locations missing in current page.",n))}else _.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("")}),u()},c=function(t){if(t=t||{},i.length<1||f.isUndefined(i[0])||!i[0].files||f.isEmpty(i.val()))_.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{_.notifications.remove("missing-import-file"),_.notifications.remove("import-success"),_.notifications.remove("import-failed"),_.notifications.remove("img-import-errors"),o.container.find(".sek-uploading").show();var e=new FormData;if(e.append("file_candidate",i[0].files[0]),e.append("action","sek_get_imported_file_content"),e.append("nonce",_.settings.nonce.save),f.contains(["local","global"],n.scope)){if(e.append("skope",n.scope),t.pre_import_check&&e.append("pre_import_check",t.pre_import_check),__request__=m.ajax({url:wp.ajax.settings.url,data:e,processData:!1,contentType:!1,type:"POST"}),t.pre_import_check)return m.Deferred(function(){var t=this;__request__.done(function(e){e.success||t.reject(e),l(e)||t.reject(e),t.resolve(e)}).fail(function(e){t.reject(e)}).always(function(){})});o.container.find(".sek-uploading").show(),_.previewer.send("sek-maybe-print-loader",{fullPageLoader:!0}),__request__.done(function(e){var n=function(i){return(f.isObject(i)||f.isArray(i))&&f.each(i,function(e,t){(f.isObject(e)||f.isArray(e))&&(i[t]=n(e)),"id"!==t||!f.isString(e)||0!==e.indexOf("__rep__me__")&&0!==e.indexOf("__nimble__")||(i[t]=sektionsLocalizedData.optPrefixForSektionsNotSaved+_.czr_sektions.guid())}),i};e.data.data.collection=n(e.data.data.collection),d(e,t)}).fail(function(e){_.errare("sek-import input => ajax error",e),_.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(u)}else _.errare("sek-import input => invalid scope provided",n.scope)}},l=function(e){var t=!0,i=e.data,n=null;e.success||(n=[sektionsLocalizedData.i18n["Import failed"],i].join(" : ")),f.isNull(n)&&!f.isObject(i)&&(n=sektionsLocalizedData.i18n["Import failed, invalid file content"]);var o=i.data,r=i.metas,a=i.img_errors;return f.isNull(n)&&!f.isObject(o)&&(n=sektionsLocalizedData.i18n["Import failed, invalid file content"]),f.isNull(n)&&!f.isObject(r)&&(n=sektionsLocalizedData.i18n["Import failed, invalid file content"]),f.isNull(n)&&f.isEqual(_(s)(),o)&&(_.infoLog("sek-import input => Setting unchanged"),t=!1),f.isNull(n)||(_.errare("sek-import input => invalid data sent from server",i),_.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",n,"</strong>","</span>"].join("")}),t=!1),f.isEmpty(a)||_.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("")}),t},d=function(e,t){t=t||{},l(e)?(_.czr_sektions.updateAPISetting({action:"sek-import-from-file",scope:"global"===n.scope,imported_content:e.data,assign_missing_locations:t.assign_missing_locations,keep_existing_sections:o.input_parent.czr_Input("keep_existing_sections")()}).done(function(){"local"===n.scope&&_.czr_sektions.generateUI({action:"sek-generate-local-skope-options-ui",clean_settings:!0}),_.previewer.refresh(),_.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){_.errare("sek-import input => error when firing ::updateAPISetting",e),_.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",[sektionsLocalizedData.i18n["Import failed"],e].join(" : "),"</strong>","</span>"].join("")})}),_.previewer.refresh()):u()},u=function(){_.previewer.send("sek-clean-loader",{cleanFullPageLoader:!0}),o.container.find(".sek-uploading").hide(),i.val("").trigger("change"),o.container.find(".czr-import-dialog").hide(),r.show()},p=function(){var i=[],e={sek_export_nonce:_.settings.nonce.save,skope_id:_.czr_skopeBase.getSkopeProperty("skope_id"),active_locations:_.czr_sektions.activeLocations()};f.each(e,function(e,t){i.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),wp.ajax.post("sek_pre_export_checks",{nonce:_.settings.nonce.save,sek_export_nonce:_.settings.nonce.save,skope_id:_.czr_skopeBase.getSkopeProperty("skope_id"),active_locations:_.czr_sektions.activeLocations()}).done(function(){m(window).off("beforeunload"),window.location.href=[sektionsLocalizedData.customizerURL,"?",i.join("&")].join(""),m(window).on("beforeunload")}).fail(function(e){_.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("")})})}}})}(wp.customize,jQuery,_),function(t,e,i){t.czrInputMap=t.czrInputMap||{},e.extend(t.czrInputMap,{simpleselect:function(e){t.czr_sektions.setupSelectInput.call(this,e)},multiselect:function(e){t.czr_sektions.setupSelectInput.call(this,e)}})}(wp.customize,jQuery,_),function(s,c,l){s.czrInputMap=s.czrInputMap||{},c.extend(s.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(s.czr_sektions.post_categories)?wp.ajax.post("sek_get_post_categories",{nonce:s.settings.nonce.save}).done(function(e){l.isArray(e)||s.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}),s.czr_sektions.post_categories=t,i.resolve(s.czr_sektions.post_categories)}).fail(function(e){i.reject(e)}):i.resolve(s.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){s.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([])})},a={};l.each(r(),function(e){a[e]=(e+"").replace(/-/g," ")}),i(a),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,a,e){r.czrInputMap=r.czrInputMap||{},a.extend(r.czrInputMap,{grid_layout:function(e){var n=this,o=a(".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),a(this).addClass("selected").attr("aria-pressed",!0);try{i=a(this).data("sek-grid-layout")}catch(e){r.errare(n.type+" => error when attaching click event",e)}n(i)}),a('[data-sek-grid-layout="'+n()+'"]',o).trigger("click")}})}(wp.customize,jQuery,_),function(o,r,a){o.czrModuleMap=o.czrModuleMap||{},r.extend(o.czrModuleMap,{sek_content_type_switcher_module:{crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("sek_content_type_switcher_module","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:a.extend({id:"",title:""},o.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_content_type_switcher_module"))}}),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(),n.container.find("[data-sek-content-type]").removeClass("is-selected").attr("aria-pressed",!1),r(this).addClass("is-selected").attr("aria-pressed",!0),o.czr_sektions.currentContentPickerType(r(this).data("sek-content-type"))});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)})};o.czr_sektions.currentContentPickerType=o.czr_sektions.currentContentPickerType||new o.Value(n()),t(o.czr_sektions.currentContentPickerType()),o.czr_sektions.currentContentPickerType.bind(function(e){t(e)})}})}(wp.customize,jQuery,_),function(t,e,i){t.czrModuleMap=t.czrModuleMap||{},e.extend(t.czrModuleMap,{sek_module_picker_module:{crud:!1,name:t.czr_sektions.getRegisteredModuleProperty("sek_module_picker_module","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},t.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_module_picker_module"))}}),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})}})}(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,a){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="";a.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>",a.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(t,e,i){t.czrInputMap=t.czrInputMap||{},e.extend(t.czrInputMap,{section_picker:function(e){t.czr_sektions.trigger("sek-refresh-dragzones",{type:"preset_section",input_container:this.container})}})}(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,a){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(!a.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":a.each(["bg-attachment","bg-scale","bg-repeat","bg-apply-overlay","bg-color-overlay","bg-opacity-overlay","bg-parallax","bg-parallax-force"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"bg-color-overlay":case"bg-opacity-overlay":e=!a.isEmpty(i()+"")&&r.CZR_Helpers.isChecked(n.czr_Input("bg-apply-overlay")());break;case"bg-parallax-force":e=!a.isEmpty(i()+"")&&r.CZR_Helpers.isChecked(n.czr_Input("bg-parallax")());break;case"bg-scale":case"bg-repeat":e=!a.isEmpty(i()+"")&&!r.CZR_Helpers.isChecked(n.czr_Input("bg-parallax")());break;default:e=!a.isEmpty(i()+"")}return e})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}});break;case"bg-apply-overlay":a.each(["bg-color-overlay","bg-opacity-overlay"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return!a.isEmpty(n.czr_Input("bg-image")()+"")&&r.CZR_Helpers.isChecked(i())})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}});break;case"bg-parallax":a.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=!a.isEmpty(n.czr_Input("bg-image")()+"")&&r.CZR_Helpers.isChecked(i());break;case"bg-repeat":case"bg-scale":e=!a.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")})}})}}};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:a.extend({id:"",title:""},r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_bg_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(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-breakpoint":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"custom-breakpoint",function(){return e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_level_breakpoint_module:{mthds:t,crud:!1,name:i.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:n.extend({id:"",title:""},i.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(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"use-custom-breakpoint":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"global-custom-breakpoint",function(){return e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_global_breakpoint:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_global_breakpoint","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:n.extend({id:"",title:""},i.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,a){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(!a.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":a.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":a.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:a.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_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,a){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(!a.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":a.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":a.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"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,a){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(!a.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":a.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":a.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:!0,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:!0,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(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;n.module;n.czr_Input.each(function(i){switch(i.id){case"use_custom_bg_color_on_hover":r.each(["bg_color_hover"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare("Button module => error in setInputVisibilityDeps",e)}});break;case"use_box_shadow":r.each(["push_effect"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare("Button module => error in setInputVisibilityDeps",e)}});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;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")()})}})}}};o.czrModuleMap=o.czrModuleMap||{},e.extend(o.czrModuleMap,{czr_font_child:{mthds:t,crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("czr_font_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.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,_);
1
+ var CZRSeksPrototype=CZRSeksPrototype||{};!function(n,r){r.extend(CZRSeksPrototype,{initialize:function(){var e=this;if(_.isUndefined(window.sektionsLocalizedData))throw new Error("CZRSeksPrototype => missing localized server params sektionsLocalizedData");if(!_.isFunction(n.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 n.Value({}),e.registered=new n.Value([]),n.bind("ready",function(){e.doSektionThinksOnApiReady()}),n.bind("save-request-params",function(e){r.extend(e,{local_skope_id:n.czr_skopeBase.getSkopeProperty("skope_id")})}),n.bind("sek-before-clean-registered",function(){_.isArray(n.czrActiveWPEditors)&&(_.each(n.czrActiveWPEditors,function(e){wp.editor.remove(e)}),n.czrActiveWPEditors=[])})},doSektionThinksOnApiReady:function(){var o=this;o.registerAndSetupDefaultPanelSectionOptions(),o.localSectionsSettingId.callbacks.add(function(e,t){try{o.setupSettingsToBeSaved()}catch(e){n.errare("Error in self.localSectionsSettingId.callbacks => self.setupSettingsToBeSaved()",e)}o.initializeHistoryLogWhenSettingsRegistered(),n.previewer.send("sek-request-active-locations")});var i=function(e,t){o.setContextualCollectionSettingIdWhenSkopeSet(e,t),n.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"})}))})}),n.section(o.SECTION_ID_FOR_GLOBAL_OPTIONS,function(e){!0!==e.nimbleGlobalOptionGenerated&&(o.generateUI({action:"sek-generate-global-options-ui"}),e.nimbleGlobalOptionGenerated=!0)}),n.trigger("nimble-ready-for-current-skope")};_.isEmpty(n.czr_activeSkopes().local)||i(),n.czr_activeSkopes.callbacks.add(function(e,t){i(e,t)}),o.reactToPreviewMsg(),o.setupDnd(),o.setupTinyMceEditor(),o.schedulePrintSectionJson(),o.bind("sek-ui-removed",function(){n.previewedDevice("desktop")}),n.previewedDevice.bind(function(t){var e=_.filter(o.registered(),function(e){return"control"==e.what});_.each(e||[],function(e){n.control(e.id,function(e){e.container.find('[data-sek-device="'+t+'"]').each(function(){r(this).trigger("click")})})})}),r("#customize-notifications-area").on("click",'[data-sek-reset="true"]',function(){n.previewer.trigger("sek-reset-collection",{scope:"local"})}),o.bind("sek-ui-pre-removal",function(e){"control"==e.what&&-1<e.id.indexOf("draggable")&&n.control(e.id,function(e){e.container.find("[draggable]").each(function(){r(this).off("dragstart dragend")})}),"control"==e.what&&n.control(e.id,function(e){e.container.find("select").each(function(){_.isUndefined(r(this).data("czrSelect2"))||r(this).czrSelect2("destroy")})})}),n.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=r.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 n.Value([]),n.previewer.bind("sek-active-locations-in-preview",function(e){o.activeLocations(_.isObject(e)&&_.isArray(e.active_locations)?e.active_locations:[])}),o.setupTopBar(),sektionsLocalizedData.isSavedSectionEnabled&&o.setupSaveUI(),o.lastClickedTargetInPreview=new n.Value,o.lastClickedTargetInPreview.bind(function(e,t){_.isObject(e)&&e.id?n.previewer.send("sek-set-double-click-target",e):n.previewer.send("sek-reset-double-click-target"),clearTimeout(r(window).data("_preview_target_timer_")),r(window).data("_preview_target_timer_",setTimeout(function(){o.lastClickedTargetInPreview({}),n.previewer.send("sek-reset-double-click-target")},2e4))}),n.previewer.bind("sek-clean-target-drop-zone",function(){o.lastClickedTargetInPreview({})}),r(document).keydown(function(e){e&&27===e.keyCode&&o.lastClickedTargetInPreview({})}),sektionsLocalizedData.hasActiveCachePlugin&&_.delay(function(){n.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."],"<strong> ("+sektionsLocalizedData.hasActiveCachePlugin+")</strong><br/>","<strong>",sektionsLocalizedData.i18n["It is recommended to disable your cache plugin when customizing your website."],"</strong>","</span>"].join("")})},2e3)},registerAndSetupDefaultPanelSectionOptions:function(){var o=this,e=n.Panel.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}});n.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()})})}),n.CZR_Helpers.register({origin:"nimble",what:"panel",id:sektionsLocalizedData.sektionsPanelId,title:sektionsLocalizedData.i18n["Nimble Builder"],priority:-1e3,constructWith:e,track:!1}),n.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:n.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){n.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)})}),n.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:n.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){n.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)})}),n.CZR_Helpers.register({origin:"nimble",what:"setting",id:sektionsLocalizedData.optNameForGlobalOptions,dirty:!1,value:sektionsLocalizedData.globalOptionDBValues,transport:"refresh",type:"option"}),n.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:n.Section.extend({isContextuallyActive:function(){return this.active()},_toggleActive:function(){return!0}})}).done(function(){n.section(o.SECTION_ID_FOR_CONTENT_PICKER,function(e){"resolved"!=n.czr_initialSkopeCollectionPopulated.state()?n.czr_initialSkopeCollectionPopulated.done(function(){n.previewer.trigger("sek-pick-content",{focus:!1})}):n.previewer.trigger("sek-pick-content",{focus:!1})})})},setContextualCollectionSettingIdWhenSkopeSet:function(e,t){t=t||{},!_.isEmpty(t.local)&&n.panel(sektionsLocalizedData.sektionsPanelId).expanded()&&n.previewer.trigger("sek-pick-content"),sektionsData=n.czr_skopeBase.getSkopeProperty("sektions","local"),sektionsLocalizedData.isDevMode&&n.infoLog("::setContextualCollectionSettingIdWhenSkopeSet => SEKTIONS DATA ? ",sektionsData),_.isEmpty(sektionsData)&&n.errare("::setContextualCollectionSettingIdWhenSkopeSet() => no sektionsData"),_.isEmpty(sektionsData.setting_id)&&n.errare("::setContextualCollectionSettingIdWhenSkopeSet() => missing setting_id"),this.localSectionsSettingId(sektionsData.setting_id)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(r,a){a.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(a(window).data("_scroll_move_timer_")),a(window).data("_scroll_move_timer_",setTimeout(function(){t.mouseMovedRecently.set({})},4e3))};a(window).on("mousemove scroll,",_.throttle(e,50)),r.previewer.bind("ready",function(){a(r.previewer.targetWindow().document).on("mousemove scroll,",_.throttle(e,50))}),t.setupLevelTree()},toggleTopBar:function(e){e=!!_.isUndefined(e)||e;var t,i=this;e?a.when(i.renderAndSetupTopBarTmpl({})).done(function(e){i.topBarContainer=e,_.delay(function(){a("body").addClass("nimble-top-bar-visible")},200)}):(t=a.Deferred(),a("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<a(i.topBarId).length)return a(i.topBarId);try{t=wp.template("nimble-top-bar")({})}catch(e){return r.errare("Error when parsing the the top note template",e),!1}a("#customize-preview").after(a(t)),a(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)}}),a(".sek-add-content",i.topBarId).on("click",function(e){e.preventDefault(),r.previewer.trigger("sek-pick-content",{content_type:"module"})}),a(".sek-level-tree",i.topBarId).on("click",function(e){e.preventDefault(),i.levelTreeExpanded(!i.levelTreeExpanded())}),a("[data-nimble-history]",i.topBarId).on("click",function(e){try{i.navigateHistory(a(this).data("nimble-history"))}catch(e){r.errare("Error when firing self.navigateHistory",e)}}),a(".sek-settings",i.topBarId).on("click",function(e){r.panel(sektionsLocalizedData.sektionsPanelId,function(e){i.rootPanelFocus(),e.focus()})}),a(".sek-nimble-doc",i.topBarId).on("click",function(e){e.preventDefault(),window.open(a(this).data("doc-href"),"_blank")});var n=function(e){a(i.topBarId).length<1||(_.isObject(e)&&e.local_template&&"default"!==e.local_template?a(i.topBarId).find(".sek-notifications").html(['<span class="fas fa-info-circle"></span>',sektionsLocalizedData.i18n["This page uses a custom template."]].join(" ")):a(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()}),a(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=[],a=d.extend(!0,[],i.historyLog());_.isEmpty(t.in_sektion)?_.isEmpty(t.to_sektion)||(o=t.to_sektion):o=t.in_sektion,_.each(a,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,a=d.extend(!0,[],e.historyLog()),s=[];if(_.each(a,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(a,{status:"current"});c=Number(c),_.isNumber(c)?(_.each(a,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":a.length>c+1&&(t===c?newLog.status="previous":t===c+1&&(newLog.status="current"))}s.push(newLog)}),e.historyLog(s)):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(z("body").toggleClass("sek-level-tree-expanded",e),e){if(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)})})}),z("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)}),z("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()}),z("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(),a=this.localSectionsSettingId(),s=sektionsLocalizedData.optNameForGlobalOptions,c=!1;if(_.each([r,a,s],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(a)(),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(s)(),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,y=this.activeLocations(),v=[];_.isEmpty(y)?v=g:_.each(y,function(e){k=_.findWhere(g,{id:e}),_.isUndefined(k)||v.push(k)}),this.levelTree(v)}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 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,a=!1;if(!_.isArray(e)||_.isEmpty(e))return b.errare("::buildLevelTree => invalid collection param",e),r;var s='<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)&&(a=!_.contains(i.activeLocations(),e.id)),a||(sektionsLocalizedData.i18n[n]&&(o=sektionsLocalizedData.i18n[n]),!0===e.is_nested&&(o=sektionsLocalizedData.i18n["nested section"]),s="location"!==n?s:"",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,")",s].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(s,c){c.extend(CZRSeksPrototype,{setupSaveUI:function(){var n=this;n.saveUIVisible=new s.Value(!1),n.saveUIVisible.bind(function(e,t,i){n.toggleSaveUI(e,i?i.id:null)})},toggleSaveUI:function(e,t){e=!!_.isUndefined(e)||e;var i,n=this;e?c.when(n.renderAndSetupSaveUITmpl({})).done(function(e){n.saveUIContainer=e,_.delay(function(){c("body").addClass("nimble-save-ui-visible")},200),c("#sek-saved-section-id").val(t)}):(i=c.Deferred(),c("body").removeClass("nimble-save-ui-visible"),0<c("#nimble-top-save-ui").length?_.delay(function(){n.saveUIContainer.remove(),i.resolve()},300):i.resolve(),i.promise()).done(function(){n.saveUIVisible(!1)})},preProcessSektion:function(e){var t=this.cleanIds(e);return _.omit(t,function(e,t){return _.contains(["id","level"],t)})},renderAndSetupSaveUITmpl:function(e){if(0<c("#nimble-top-save-ui").length)return c("#nimble-top-save-ui");var a=this;try{_tmpl=wp.template("nimble-top-save-ui")({})}catch(e){return s.errare("Error when parsing the the top note template",e),!1}return c("#customize-preview").after(c(_tmpl)),c(".sek-do-save-section","#nimble-top-save-ui").on("click",function(e){e.preventDefault();var t=c.extend(!0,{},a.getLevelModel(c("#sek-saved-section-id").val())),i=c("#sek-saved-section-title").val(),n=c("#sek-saved-section-description").val(),o=a.guid(),r=a.preProcessSektion(t);if(_.isEmpty(i))return c("#sek-saved-section-title").addClass("error"),void s.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>@missi18n You need to set a title</strong>","</span>"].join("")});c("#sek-saved-section-title").removeClass("error"),wp.ajax.post("sek_save_section",{nonce:s.settings.nonce.save,sek_title:i,sek_description:n,sek_id:o,sek_data:JSON.stringify(r)}).done(function(e){s.previewer.trigger("sek-notify",{type:"success",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>@missi18n Your section has been saved.</strong>","</span>"].join("")})}).fail(function(e){s.errorLog("ajax sek_save_section => error",e),s.previewer.trigger("sek-notify",{type:"error",duration:1e4,message:['<span style="font-size:0.95em">',"<strong>@missi18n You need to set a title</strong>","</span>"].join("")})})}),c(".sek-cancel-save","#nimble-top-save-ui").on("click",function(e){e.preventDefault(),a.saveUIVisible(!1)}),c("#nimble-top-save-ui")}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(r,a){a.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(a(e.feedbackUIId).data("_feedback_user_action_timer_")),a(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?a.when(i.renderAndSetupFeedbackTmpl({})).done(function(e){_.delay(function(){a("body").addClass("nimble-feedback-ui-visible")},200)}):(t=a.Deferred(),a("body").removeClass("nimble-feedback-ui-visible"),0<a(i.feedbackUIId).length?_.delay(function(){a(i.feedbackUIId).remove(),t.resolve()},300):t.resolve(),t.promise()).done(function(){i.feedbackUIVisible(!1)})},renderAndSetupFeedbackTmpl:function(e){var t,i=this;if(0<a(i.feedbackUIId).length)return a(i.feedbackUIId);try{t=wp.template("nimble-feedback-ui")({})}catch(e){return r.errare("Error when parsing the the feedback template",e),!1}if(a("#customize-preview").after(a(t)),!i.feedbackEventsScheduled){var n=a(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 a("body").on("click","[data-sek-feedback-action]",function(e){e.preventDefault(),i.refreshSelfClosingTimer();var t=a(this).data("sek-feedback-action");switch(i.feedbackLastUserAction=t){case"not_enjoying":a(i.feedbackUIId).find(".sek-feedback-step-one").hide(),a(i.feedbackUIId).find(".sek-feedback-step-two-not-enjoying").show();break;case"enjoying":a(i.feedbackUIId).find(".sek-feedback-step-one").hide(),a(i.feedbackUIId).find(".sek-feedback-step-two-enjoying").show();break;case"reporting_problem":window.open(a(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":a(i.feedbackUIId).find(".sek-feedback-step-two-not-enjoying").hide(),a(i.feedbackUIId).find(".sek-feedback-step-two-enjoying").hide(),a(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,a(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=[],a=function(e){c.errare(e,i),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},s=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 a("validation error => the root level is missing the collection of locations");if(!_.isEmpty(t.level)||!_.isEmpty(t.id))return void a('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 a("validation error => unauthorized option group for local setting value => "+t);break;case"global":if(!_.contains(["collection","fonts"],t))return void a("validation error => unauthorized option group for global setting value => "+t)}}),_.each(i.collection,function(e){o=t,s(e)})}}else{if(_.isEmpty(t.id)||!_.isString(t.id))return void a("validation error => a "+t.level+" level must have a valid id");if(_.contains(e,t.id))return void a("validation error => duplicated level id : "+t.id);if(e.push(t.id),_.isEmpty(t.level)||!_.isString(t.level))return void a("validation error => a "+t.level+" level must have a level property");if(!_.contains(["location","section","column","module"],t.level))return void a('validation error => the level "'+t.level+'" is not authorized');if("module"==t.level){if(!_.isUndefined(t.collection))return void a("validation error => a module can not have a collection property")}else if(_.isUndefined(t.collection))return void a("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 a("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 a("validation error => the nested section "+t.id+" must be child of a column");if(!t.is_nested&&"location"!=o.level)return void a("validation error => the section "+t.id+" must be child of a location");break;case"column":if("section"!=o.level)return void a("validation error => the column "+t.id+" must be child of a section");break;case"module":if("column"!=o.level)return void a("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)?a("validation error => undefined level "):s(e)})}};return s(),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={},a={},s=!0,e={"sek-add-section":{callback:function(e){return s=!!_.isUndefined(e.send_to_preview)||e.send_to_preview,a={},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 s=!0,a={},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 s=!0,a={},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:e.before_module,after_module:e.after_module},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(s=!0,a={},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(s=!0,a={},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 s=!1,a={},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})}},"sek-move-section-down":{callback:function(e){return s=!1,a={},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})}},"sek-duplicate":{callback:function(e){switch(s=!0,a={},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,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 s=!0,a={},r=e,o.updateAPISetting(r)},"sek-add-content-in-new-sektion":{callback:function(e){switch(s=!!_.isUndefined(e.send_to_preview)||e.send_to_preview,a={},(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 s=!1,a={},(r=e).action="sek-add-preset-section-in-new-nested-sektion",r.id=sektionsLocalizedData.optPrefixForSektionsNotSaved+o.guid(),c.previewer.send("sek-maybe-print-loader",{loader_located_in_level_id:e.location}),o.updateAPISetting(r)},complete:function(e){c.previewer.trigger("sek-refresh-stylesheet",{id:e.apiParams.in_sektion,location_skope_id:c.czr_skopeBase.getSkopeProperty("skope_id")}),o.updateAPISetting({action:"sek-update-fonts",is_global_location:o.isGlobalLocation(e.apiParams)}),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}),s=!0,r={},a={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(a)},"sek-edit-options":function(e){return s=!0,r={},_.isEmpty(e.id)?n.Deferred(function(){this.reject("missing id")}):(a={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(a))},"sek-edit-module":function(e){return s=!0,r={},a={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(a)},"sek-notify":function(t){s=!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 s=!0,n.Deferred(function(e){r={action:"sek-refresh-level",level:t.level,id:t.id},a={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-refresh-stylesheet":function(t){return s=!0,t=t||{},n.Deferred(function(e){r={id:t.id},a={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-toggle-save-section-ui":function(t){return s=!1,o.saveUIVisible(!0,t),n.Deferred(function(e){r={},a={},e.resolve({is_global_location:o.isGlobalLocation(t)})})},"sek-reset-collection":{callback:function(e){return s=!1,a={},(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}try{e(t).done(function(e){e=e||{},s?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:a,cloneId:!_.isEmpty(e.cloneId)&&e.cloneId}):c.previewer.trigger([n,"done"].join("_"),{apiParams:r,uiParams:a}),o.trigger([n,"done"].join("_"),t)}).fail(function(e){c.errare("reactToPreviewMsg => error when firing "+n,e),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(y,v){v.extend(CZRSeksPrototype,{generateUI:function(e){var t=this,i=v.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){y.errare("::generateUI() => error",e),i=v.Deferred()}break;case"sek-generate-level-options-ui":try{i=t.generateUIforLevelOptions(e,i)}catch(e){y.errare("::generateUI() => error",e),i=v.Deferred()}break;case"sek-generate-draggable-candidates-picker-ui":t.cleanRegistered();try{i=t.generateUIforDraggableContent(e,i)}catch(e){y.errare("::generateUI() => error",e),i=v.Deferred()}break;case"sek-generate-local-skope-options-ui":t.cleanRegistered();try{i=t.generateUIforLocalSkopeOptions(e,i)}catch(e){y.errare("::generateUI() => error",e),i=v.Deferred()}break;case"sek-generate-global-options-ui":t.cleanRegistered();try{i=t.generateUIforGlobalOptions(e,i)}catch(e){y.errare("::generateUI() => error",e),i=v.Deferred()}}return"pending"==i.state()?i.resolve().promise():i.promise()},updateAPISettingAndExecutePreviewActions:function(n){if(!_.isEmpty(n.settingParams)&&_.has(n.settingParams,"to")){var o,r=this,e=n.settingParams.to,t=null,i=!1;if(!_.isEmpty(n.settingParams.args)&&_.has(n.settingParams.args,"moduleRegistrationParams")){var a=n.settingParams.args.moduleRegistrationParams.control,s=n.settingParams.args.moduleRegistrationParams.id,c=a.czr_Module(s);if(_.isEmpty(c)?y.errare("updateAPISettingAndExecutePreviewActions => missing parentModuleInstance",n):(t=c.module_type,i=c.isMultiItem()),!i&&_.isObject(e)?o=r.normalizeAndSanitizeSingleItemInputValues(e,t):(o=[],_.each(e,function(e){o.push(r.normalizeAndSanitizeSingleItemInputValues(e,t))})),_.isEmpty(n.defaultPreviewAction))y.errare("updateAPISettingAndExecutePreviewActions => missing defaultPreviewAction in passed params. No action can be triggered to the api.previewer.",n);else{var l,d="refresh_stylesheet"===n.defaultPreviewAction,u="refresh_markup"===n.defaultPreviewAction,p="refresh_fonts"===n.defaultPreviewAction,m="refresh_preview"===n.defaultPreviewAction,f=n.settingParams.args.input_changed,g=function(){return l&&_.isString(l.refresh_markup)&&"true"!==l.refresh_markup&&"false"!==l.refresh_markup};_.isUndefined(f)||(l=r.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!==n.isGlobalOptions)return r.updateAPISetting({action:n.uiParams.action,id:n.uiParams.id,value:o,in_column:n.uiParams.in_column,in_sektion:n.uiParams.in_sektion,options_type:n.options_type,settingParams:n.settingParams}).done(function(e){!0===d&&y.previewer.send("sek-refresh-stylesheet",{location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:y.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:y.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-refresh-stylesheet",id:n.uiParams.id,level:n.uiParams.level}});var t=function(){y.previewer.send("sek-refresh-level",{location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:y.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:y.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-refresh-level",id:n.uiParams.id,level:n.uiParams.level},skope_id:y.czr_skopeBase.getSkopeProperty("skope_id")})};if(!0===u&&t(),g()){var i=n.settingParams.args.input_value;if(!_.isString(i))throw new Error("::updateAPISettingAndExecutePreviewActions => _doUpdateWithRequestedAction => refreshMarkupWhenNeededForInput => html content is not a string.");r.htmlIncludesShortcodesOrTmplTags(i)?t():y.previewer.send("sek-update-html-in-selector",{selector:l.refresh_markup,html:i,id:n.uiParams.id,location_skope_id:!0===e.is_global_location?sektionsLocalizedData.globalSkopeId:y.czr_skopeBase.getSkopeProperty("skope_id"),local_skope_id:y.czr_skopeBase.getSkopeProperty("skope_id"),apiParams:{action:"sek-update-html-in-selector",id:n.uiParams.id,level:n.uiParams.level},skope_id:y.czr_skopeBase.getSkopeProperty("skope_id")})}!0===m&&y.previewer.refresh()}).fail(function(e){y.errare("::updateAPISettingAndExecutePreviewActions=> api setting not updated",e),y.errare("::updateAPISettingAndExecutePreviewActions=> api setting not updated => params ",n)});if(_.isEmpty(n.options_type))y.errare("updateAPISettingAndExecutePreviewActions => error when updating the global options => missing options_type");else{var e=y(sektionsLocalizedData.optNameForGlobalOptions)(),t=v.extend(!0,{},_.isObject(e)?e:{}),i={};_.each(o||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(i[t]=e)}),t[n.options_type]=i,y(sektionsLocalizedData.optNameForGlobalOptions)(t)}};if(!0===p){var k=n.settingParams.args.input_value;if(!_.isString(k))return void y.errare("updateAPISettingAndExecutePreviewActions => font-family must be a string",k);-1<k.indexOf("gfont")?r.updateAPISetting({action:"sek-update-fonts",font_family:k,is_global_location:r.isGlobalLocation(n.uiParams)}).always(function(){h().then(function(){r.updateAPISetting({action:"sek-update-fonts",is_global_location:r.isGlobalLocation(n.uiParams)})})}):h()}else h()}}else y.errare("updateAPISettingAndExecutePreviewActions => missing params.settingParams.args.moduleRegistrationParams The api main setting can not be updated",n)}else y.errare("updateAPISettingAndExecutePreviewActions => missing params.settingParams.to. The api main setting can not be updated",n)},normalizeAndSanitizeSingleItemInputValues:function(e,o){var i,r={},n={},a=null,s=this;return _.each(e,function(e,t){var i,n;_.contains(["title","id"],t)||(null!==o&&"no_default_value_specified"===(a=s.getInputDefaultValue(t,o))&&y.infoLog("::normalizeAndSanitizeSingleItemInputValues => missing default value for input "+t+" in module "+o),i=e,n=a,(_.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(s.getInputType(t,o)){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=y.control.has(t):(i=!0,1<e.length&&y.errare("generateUI => 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 a=t[r].replace(/^\[+/g,"");-1===n.indexOf(a)&&n.push(a)}if(i)for(var s=0;s<i.length;s++){var c=i[s].replace(/^\[+/g,"");-1===o.indexOf(c)&&o.push(c)}return!_.isEmpty(n)||!_.isEmpty(o)}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(a,s){s.extend(CZRSeksPrototype,{generateUIforDraggableContent:function(o,e){var r=this,t={};s.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:0,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:!1,priority:10,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:10,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:10,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:10,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:10,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:10,icon:'<i class="fas fa-grip-vertical sek-level-option-icon"></i>'}}),sektionsLocalizedData.isSavedSectionEnabled&&s.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)?a.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){a.has(n.settingControlId)||(a(n.settingControlId,function(e){e.bind(function(e,t){a.errare("generateUIforDraggableContent => the setting() should not changed")})}),a.CZR_Helpers.register({origin:"nimble",level:o.level,what:"setting",id:n.settingControlId,dirty:!1,value:n.settingValue||{},transport:"postMessage",type:"_nimble_ui_"})),a.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(){a.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.find(".czr-items-wrapper").hide(),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.find(".czr-items-wrapper").show(),t.trigger("click"))):e.container.attr("data-sek-accordion","no")})})})},a.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:!0})})),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(d,u){u.extend(CZRSeksPrototype,{generateUIforFrontModules:function(r,e){var a=this;_.isEmpty(r.id)&&e.reject("generateUI => missing id");var i=a.getLevelProperty({property:"value",id:r.id}),t=a.getLevelProperty({property:"module_type",id:r.id}),n=a.getRegisteredModuleProperty(t,"name");_.isEmpty(t)&&e.reject("generateUI => module => invalid module_type");var o={};if(!0===a.getRegisteredModuleProperty(t,"is_father")){var s=a.getRegisteredModuleProperty(t,"children");if(_.isEmpty(s))throw new Error("::generateUIforFrontModules => a father module "+t+" is missing children modules ");_.each(s,function(e,t){o[t]={settingControlId:r.id+"__"+t,module_type:e,controlLabel:a.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 a.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))}}):(a.cleanRegistered(),_do_register_=function(){_.each(o,function(n,o){if(!d.has(n.settingControlId)){var t=function(e,t,i){try{a.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,a.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",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:r.id,priority:10,settings:{default:n.settingControlId}}).done(function(){}),d.control(n.settingControlId,function(e){d.control(n.settingControlId).focus({completeCallback:function(){}}),e.container.find(".czr-items-wrapper").hide();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")})})},d.section.when(r.id,function(){d.section(r.id).focus(),_do_register_()}),d.CZR_Helpers.register({origin:"nimble",what:"section",id:r.id,title:sektionsLocalizedData.i18n["Content for"]+" "+n,panel:sektionsLocalizedData.sektionsPanelId,priority:1e3}).done(function(){}),d.section(r.id,function(e){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>'),a.scheduleModuleAccordion.call(e,{expand_first_control:!0})})),e}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(l,d){d.extend(CZRSeksPrototype,{generateUIforLevelOptions:function(a,e){var s=this,c=s.getLevelProperty({property:"options",id:a.id});c=_.isObject(c)?c:{};var t={};d.extend(t,{bg:{settingControlId:a.id+"__bg_options",module_type:"sek_level_bg_module",controlLabel:sektionsLocalizedData.i18n["Background settings for the"]+" "+sektionsLocalizedData.i18n[a.level],expandAndFocusOnInit:!0,icon:'<i class="material-icons sek-level-option-icon">gradient</i>'},border:{settingControlId:a.id+"__border_options",module_type:"sek_level_border_module",controlLabel:sektionsLocalizedData.i18n["Borders settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="material-icons sek-level-option-icon">rounded_corner</i>'},spacing:{settingControlId:a.id+"__spacing_options",module_type:"sek_level_spacing_module",controlLabel:sektionsLocalizedData.i18n["Padding and margin settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="material-icons sek-level-option-icon">center_focus_weak</i>'},anchor:{settingControlId:a.id+"__anchor_options",module_type:"sek_level_anchor_module",controlLabel:sektionsLocalizedData.i18n["Custom anchor ( CSS ID ) and CSS classes for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="fas fa-anchor sek-level-option-icon"></i>'},visibility:{settingControlId:a.id+"__visibility_options",module_type:"sek_level_visibility_module",controlLabel:sektionsLocalizedData.i18n["Device visibility settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="far fa-eye sek-level-option-icon"></i>'},height:{settingControlId:a.id+"__height_options",module_type:"sek_level_height_module",controlLabel:sektionsLocalizedData.i18n["Height and vertical alignment for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="fas fa-ruler-vertical sek-level-option-icon"></i>'}}),"section"===a.level&&(d.extend(t,{width:{settingControlId:a.id+"__width_options",module_type:"sek_level_width_section",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}}),d.extend(t,{breakpoint:{settingControlId:a.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"===a.level&&d.extend(t,{width:{settingControlId:a.id+"__width_options",module_type:"sek_level_width_column",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}}),"module"===a.level&&d.extend(t,{width:{settingControlId:a.id+"__width_options",module_type:"sek_level_width_module",controlLabel:sektionsLocalizedData.i18n["Width settings for the"]+" "+sektionsLocalizedData.i18n[a.level],icon:'<i class="fas fa-ruler-horizontal sek-level-option-icon"></i>'}});var i=_.keys(t)[0],n=t[i].settingControlId;return s.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))}}):(s.cleanRegistered(),_do_register_=function(){_.each(t,function(n,o){if(s.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{s.updateAPISettingAndExecutePreviewActions({defaultPreviewAction:"refresh_stylesheet",uiParams:a,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,s.SETTING_UPDATE_BUFFER))});var e=c[o]||{},i=s.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:a.level,what:"setting",id:n.settingControlId,dirty:!1,value:e,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:a.level,level_id:a.id,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:a.id,priority:0,settings:{default:n.settingControlId}}).done(function(){}),l.control(n.settingControlId,function(e){!0===n.expandAndFocusOnInit&&e.focus({completeCallback:function(){}}),e.container.find(".czr-items-wrapper").hide();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")})}})},l.section.has(a.id)||l.section(a.id,function(e){s.scheduleModuleAccordion.call(e,{expand_first_control:!0})}),l.CZR_Helpers.register({origin:"nimble",what:"section",id:a.id,title:sektionsLocalizedData.i18n["Settings for the"]+" "+a.level,panel:sektionsLocalizedData.sektionsPanelId,priority:10}).done(function(){}),l.section(a.id,function(e){_do_register_(),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>')})),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(a,e){var s=this,i=s.getLocalSkopeOptionId();if(s.isUIControlAlreadyRegistered(i))return e;if(s.localOptionsRegistrationParams={},_.isUndefined(sektionsLocalizedData.localOptionsMap)||!_.isObject(sektionsLocalizedData.localOptionsMap))return l.errare("::generateUIforGlobalOptions => missing or invalid localOptionsMap"),e;!0===a.clean_settings&&s.cleanRegisteredLocalOptionSettings(),_.each(sektionsLocalizedData.localOptionsMap,function(e,t){switch(t){case"template":s.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":s.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":s.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":s.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":s.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":s.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":s.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":s.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(s.localSectionsSettingId())(),c=d.extend(!0,{},_.isObject(t.local_options)?t.local_options:{});return _do_register_=function(){_.each(s.localOptionsRegistrationParams,function(n,o){var e=s.getModuleStartingValue(n.module_type),t=_.isObject(c[o])?c[o]:{};if(!l.has(n.settingControlId)){var i=function(e,t,i){try{s.updateAPISettingAndExecutePreviewActions({defaultPreviewAction:"refresh",uiParams:a,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,s.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:a.level,what:"setting",id:n.settingControlId,dirty:!1,value:t,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:a.level,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:s.SECTION_ID_FOR_LOCAL_OPTIONS,priority:10,settings:{default:n.settingControlId}}).done(function(){l.control(n.settingControlId,function(e){e.container.find(".czr-items-wrapper").hide();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(a,e){var s=this,i=sektionsLocalizedData.optPrefixForSektionsNotSaved+sektionsLocalizedData.optNameForGlobalOptions;if(s.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_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"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"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"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_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{s.updateAPISettingAndExecutePreviewActions({isGlobalOptions:!0,defaultPreviewAction:"refresh",uiParams:a,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,s.SETTING_UPDATE_BUFFER))});var e=s.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:a.level,what:"setting",id:n.settingControlId,dirty:!1,value:i,transport:"postMessage",type:"_nimble_ui_"})}l.CZR_Helpers.register({origin:"nimble",level:a.level,what:"control",id:n.settingControlId,label:n.controlLabel,type:"czr_module",module_type:n.module_type,section:s.SECTION_ID_FOR_GLOBAL_OPTIONS,priority:20,settings:{default:n.settingControlId},track:!1}).done(function(){l.control(n.settingControlId,function(e){e.container.find(".czr-items-wrapper").hide();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(de,ue){ue.extend(CZRSeksPrototype,{updateAPISetting:function(ae){var se=this,ce=ue.Deferred();(ae=ae||{}).is_global_location="global"===ae.scope||se.isGlobalLocation(ae);var le=ae.is_global_location?se.getGlobalSectionsSettingId():se.localSectionsSettingId(),t=function(){var n,t,o,i,r,a,s,e,c,l=de(le)(),d=_.isObject(l)?ue.extend(!0,{},l):se.getDefaultSektionSettingValue(ae.is_global_location?"global":"local"),u="_not_injection_scenario_";switch(d.collection=_.isArray(d.collection)?d.collection:se.getDefaultSektionSettingValue(ae.is_global_location?"global":"local").collection,ae.action){case"sek-add-section":if(_.isEmpty(ae.id))throw new Error("updateAPISetting => "+ae.action+" => missing id");if(_.isEmpty(ae.location))throw new Error("updateAPISetting => "+ae.action+" => missing location");if(!0===ae.is_nested){if(o=se.getLevelModel(ae.in_column,d.collection),"no_match"==(c=se.getLevelModel(ae.in_sektion,d.collection))){ce.reject("updateAPISetting => "+ae.action+" => no grand parent sektion found");break}if(!0===c.is_nested){ce.reject(sektionsLocalizedData.i18n["You've reached the maximum number of allowed nested sections."]);break}if("no_match"==o){de.errare("updateAPISetting => "+ae.action+" => no parent column matched"),ce.reject("updateAPISetting => "+ae.action+" => no parent column matched");break}o.collection=_.isArray(o.collection)?o.collection:[],o.collection.push({id:ae.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+se.guid(),level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion}],is_nested:!0,ver_ini:sektionsLocalizedData.nimbleVersion})}else{if("no_match"==(n=se.getLevelModel(ae.location,d.collection))){de.errare("updateAPISetting => "+ae.action+" => no location matched"),ce.reject("updateAPISetting => "+ae.action+" => no location matched");break}n.collection=_.isArray(n.collection)?n.collection:[],_.each(n.collection,function(e,t){ae.before_section===e.id&&(O=t),ae.after_section===e.id&&(O=t+1)}),n.collection=_.isArray(n.collection)?n.collection:[],n.collection.splice(O,0,{id:ae.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+se.guid(),level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion}],ver_ini:sektionsLocalizedData.nimbleVersion})}break;case"sek-duplicate-section":if(_.isEmpty(ae.id))throw new Error("updateAPISetting => "+ae.action+" => missing id");if(_.isEmpty(ae.location))throw new Error("updateAPISetting => "+ae.action+" => missing location");var p;try{p=se.cloneLevel(ae.id)}catch(e){de.errare("updateAPISetting => "+ae.action,e);break}var m=se.getLevelPositionInCollection(ae.id,d.collection);if(!0===ae.is_nested){if("no_match"==(o=se.getLevelModel(ae.in_column,d.collection))){de.errare("updateAPISetting => "+ae.action+" => no parent column matched"),ce.reject("updateAPISetting => "+ae.action+" => no parent column matched");break}o.collection=_.isArray(o.collection)?o.collection:[],o.collection.splice(parseInt(m+1,10),0,p)}else{if("no_match"==(n=se.getLevelModel(ae.location,d.collection))){de.errare("updateAPISetting => "+ae.action+" => no location matched"),ce.reject("updateAPISetting => "+ae.action+" => no location matched");break}n.collection=_.isArray(n.collection)?n.collection:[],n.collection.splice(parseInt(m+1,10),0,p)}s=p.id;break;case"sek-remove-section":if(!0===ae.is_nested)"no_match"!=(o=se.getLevelModel(ae.in_column,d.collection))?(o.collection=_.isArray(o.collection)?o.collection:[],o.collection=_.filter(o.collection,function(e){return e.id!=ae.id})):de.errare("updateAPISetting => "+ae.action+" => no parent column matched");else{if("no_match"==(n=se.getLevelModel(ae.location,d.collection))){de.errare("updateAPISetting => "+ae.action+" => no location matched"),ce.reject("updateAPISetting => "+ae.action+" => no location matched");break}n.collection=_.filter(n.collection,function(e){return e.id!=ae.id})}break;case"sek-move-section":var f,g,h=se.getLevelModel(ae.to_location,d.collection);if(_.isEmpty(h)||"no_match"==h)throw new Error("updateAPISetting => "+ae.action+" => missing target location");if(ae.from_location!=ae.to_location){var k=se.getLevelModel(ae.from_location,d.collection);if(_.isEmpty(k)||"no_match"==k)throw new Error("updateAPISetting => "+ae.action+" => missing source location");k.collection=_.isArray(k.collection)?k.collection:[],f=se.getLevelModel(ae.id,k.collection),g=ue.extend(!0,{},f),k.collection=_.filter(k.collection,function(e){return e.id!=ae.id})}h.collection=_.isArray(h.collection)?h.collection:[],r=ue.extend(!0,[],h.collection),a=[],_.each(ae.newOrder,function(e){if(ae.from_location!=ae.to_location&&e==g.id)a.push(g);else{if(t=se.getLevelModel(e,r),_.isEmpty(t)||"no_match"==t)throw new Error("updateAPISetting => "+ae.action+" => missing section candidate");a.push(t)}}),h.collection=a;break;case"sek-move-section-up-down":if(parentCandidate=se.getLevelModel(ae.is_nested?ae.in_column:ae.location,d.collection),_.isEmpty(parentCandidate)||"no_match"==parentCandidate)throw new Error("updateAPISetting => "+ae.action+" => missing target location");parentCandidate.collection=_.isArray(parentCandidate.collection)?parentCandidate.collection:[],r=ue.extend(!0,[],parentCandidate.collection),a=ue.extend(!0,[],parentCandidate.collection);var y=_.findIndex(r,function(e){return e.id===ae.id});if(-1===y)throw new Error("updateAPISetting => "+ae.action+" => invalid index");var v=ae.direction||"up";if("up"!==v&&r.length===y+1)throw new Error("updateAPISetting => "+ae.action+" => bottom reached");if("up"===v&&0===y)throw new Error("updateAPISetting => "+ae.action+" => top reached");a[y]=r["up"===v?y-1:y+1],a["up"===v?y-1:y+1]=r[y],parentCandidate.collection=a;break;case"sek-add-column":if(_.isEmpty(ae.id))throw new Error("updateAPISetting => "+ae.action+" => missing id");if("no_match"==(t=se.getLevelModel(ae.in_sektion,d.collection))){de.errare("updateAPISetting => "+ae.action+" => no parent sektion matched"),ce.reject("updateAPISetting => "+ae.action+" => no parent sektion matched");break}if(t.collection=_.isArray(t.collection)?t.collection:[],se.MAX_NUMBER_OF_COLUMNS-1<_.size(t.collection)){ce.reject(sektionsLocalizedData.i18n["You've reached the maximum number of columns allowed in this section."]);break}se.resetColumnsWidthInSection(t),t.collection.push({id:ae.id,level:"column",collection:[],ver_ini:sektionsLocalizedData.nimbleVersion});break;case"sek-remove-column":if("no_match"!=(t=se.getLevelModel(ae.in_sektion,d.collection))){if(1===_.size(t.collection)){ce.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!=ae.id}),se.resetColumnsWidthInSection(t)}else de.errare("updateAPISetting => "+ae.action+" => no parent sektion matched");break;case"sek-duplicate-column":if(_.isEmpty(ae.id))throw new Error("updateAPISetting => "+ae.action+" => missing id");if("no_match"==(t=se.getLevelModel(ae.in_sektion,d.collection))){de.errare("updateAPISetting => "+ae.action+" => no parent sektion matched"),ce.reject("updateAPISetting => "+ae.action+" => no parent sektion matched");break}if(t.collection=_.isArray(t.collection)?t.collection:[],se.MAX_NUMBER_OF_COLUMNS-1<_.size(t.collection)){ce.reject(sektionsLocalizedData.i18n["You've reached the maximum number of columns allowed in this section."]);break}var b;try{b=se.cloneLevel(ae.id)}catch(e){de.errare("updateAPISetting => "+ae.action,e);break}var z=se.getLevelPositionInCollection(ae.id,d.collection);s=b.id,t.collection.splice(parseInt(z+1,10),0,b),se.resetColumnsWidthInSection(t);break;case"sek-resize-columns":if(ae.col_number<2)break;var I=se.getLevelModel(ae.resized_column,d.collection),w=se.getLevelModel(ae.sister_column,d.collection);if("no_match"==I){de.errare("updateAPISetting => "+ae.action+" => no resized column matched"),ce.reject("updateAPISetting => "+ae.action+" => no resized column matched");break}var M=function(e,t){var i=ue.extend(!0,{},e.options||{});return i.width=_.isObject(i.width)?i.width:{},i.width["custom-width"]=t,e.options=i,ue("body").find('[data-sek-width-range-column-id="'+e.id+'"]').val(t).trigger("input",{is_resize_column_trigger:!0}),t},D=M(I,parseFloat(ae.resizedColumnWidthInPercent));D=parseFloat(D);var S=se.getLevelModel(ae.in_sektion,d.collection),C=_.filter(S.collection,function(e){return e.id!=I.id&&e.id!=w.id}),P=parseFloat(D.toFixed(3));_.isEmpty(C)||_.each(C,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=M(e,parseFloat((100/ae.col_number).toFixed(3)))),P=parseFloat((P+currentColWidth).toFixed(3))}),M(w,parseFloat((100-P).toFixed(3)));break;case"sek-move-column":var x,E,R=se.getLevelModel(ae.to_sektion,d.collection);if(_.isEmpty(R)||"no_match"==R)throw new Error("updateAPISetting => "+ae.action+" => missing target sektion");if(ae.from_sektion!=ae.to_sektion){var L=se.getLevelModel(ae.from_sektion,d.collection);if(_.isEmpty(L)||"no_match"==L)throw new Error("updateAPISetting => "+ae.action+" => missing source column");L.collection=_.isArray(L.collection)?L.collection:[],x=se.getLevelModel(ae.id,L.collection),E=ue.extend(!0,{},x),L.collection=_.filter(L.collection,function(e){return e.id!=ae.id}),se.resetColumnsWidthInSection(L)}R.collection=_.isArray(R.collection)?R.collection:[],r=ue.extend(!0,[],R.collection),a=[],_.each(ae.newOrder,function(e){if(ae.from_sektion!=ae.to_sektion&&e==E.id)a.push(E);else{if(o=se.getLevelModel(e,r),_.isEmpty(o)||"no_match"==o)throw new Error("updateAPISetting => moveColumn => missing columnCandidate");a.push(o)}}),R.collection=a,se.resetColumnsWidthInSection(R);break;case"sek-add-module":if(_.isEmpty(ae.id))throw new Error("updateAPISetting => "+ae.action+" => missing id");if(_.isEmpty(ae.module_type))throw new Error("updateAPISetting => "+ae.action+" => missing module_type");if("no_match"===(o=se.getLevelModel(ae.in_column,d.collection))){de.errare("updateAPISetting => "+ae.action+" => no parent column matched"),ce.reject("updateAPISetting => "+ae.action+" => no parent column matched");break}var O=0;o.collection=_.isArray(o.collection)?o.collection:[],_.each(o.collection,function(e,t){ae.before_module===e.id&&(O=t),ae.after_module===e.id&&(O=t+1)});var A={id:ae.id,level:"module",module_type:ae.module_type,ver_ini:sektionsLocalizedData.nimbleVersion};"no_starting_value"!==(e=se.getModuleStartingValue(ae.module_type))&&(A.value=e),o.collection.splice(O,0,A);break;case"sek-duplicate-module":if(_.isEmpty(ae.id))throw new Error("updateAPISetting => "+ae.action+" => missing id");if("no_match"==(o=se.getLevelModel(ae.in_column,d.collection))){de.errare("updateAPISetting => "+ae.action+" => no parent column matched"),ce.reject("updateAPISetting => "+ae.action+" => no parent column matched");break}var j;o.collection=_.isArray(o.collection)?o.collection:[];try{j=se.cloneLevel(ae.id)}catch(e){de.errare("updateAPISetting => "+ae.action,e),ce.reject("updateAPISetting => "+ae.action+" => error when cloning the level");break}var T=se.getLevelPositionInCollection(ae.id,d.collection);s=j.id,o.collection.splice(parseInt(T+1,10),0,j);break;case"sek-remove-module":if(_.isEmpty(ae.id))throw new Error("updateAPISetting => "+ae.action+" => missing id");"no_match"!=(o=se.getLevelModel(ae.in_column,d.collection))?(o.collection=_.isArray(o.collection)?o.collection:[],o.collection=_.filter(o.collection,function(e){return e.id!=ae.id})):de.errare("updateAPISetting => "+ae.action+" => no parent column matched");break;case"sek-move-module":var V,Z,F;if(V=se.getLevelModel(ae.to_column,d.collection),_.isEmpty(V)||"no_match"==V)throw new Error("updateAPISetting => "+ae.action+" => missing target column");if(ae.from_column!=ae.to_column){var U;if(U=se.getLevelModel(ae.from_column,d.collection),_.isEmpty(U)||"no_match"==U)throw new Error("updateAPISetting => "+ae.action+" => missing source column");U.collection=_.isArray(U.collection)?U.collection:[],Z=se.getLevelModel(ae.id,d.collection),F=ue.extend(!0,{},Z),U.collection=_.filter(U.collection,function(e){return e.id!=ae.id})}if(V.collection=_.isArray(V.collection)?V.collection:[],r=ue.extend(!0,[],V.collection),a=[],_.each(ae.newOrder,function(e){if(ae.from_column!=ae.to_column&&e==F.id)a.push(F);else{if(i=se.getLevelModel(e,d.collection),_.isEmpty(i)||"no_match"==i)throw new Error("updateAPISetting => "+ae.action+" => missing moduleCandidate");a.push(i)}}),a.length!=_.uniq(a).length)throw new Error("updateAPISetting => "+ae.action+" => there are duplicated modules in column : "+V.id);V.collection=a;break;case"sek-set-module-value":i=se.getLevelModel(ae.id,d.collection);var N={};if(_.each(ae.value||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(N[t]=e)}),"no_match"==i){de.errare("updateAPISetting => "+ae.action+" => no module matched",ae),ce.reject("updateAPISetting => "+ae.action+" => error no module matched");break}if(_.isEmpty(ae.options_type)){de.errare("updateAPISetting => "+ae.action+" => missing options_type"),ce.reject("updateAPISetting => "+ae.action+" => missing options_type");break}if("__no_option_group_to_be_updated_by_children_modules__"===ae.options_type)i.value=N;else{var B=ue.extend(!0,{},_.isEmpty(i.value)?{}:i.value);B[ae.options_type]=N,i.value=B}break;case"sek-generate-level-options-ui":var Q=se.getLevelModel(ae.id,d.collection),H={};if("no_match"===Q){de.errare("updateAPISetting => "+ae.action+" => no parent sektion matched"),ce.reject("updateAPISetting => "+ae.action+" => no parent sektion matched");break}var W=ue.extend(!0,{},Q.options||{});_.each(ae.value||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(H[t]=e)}),_.isEmpty(ae.options_type)&&de.errare("updateAPISetting => "+ae.action+" => missing options_type"),W[ae.options_type]=H,Q.options=W;break;case"sek-generate-local-skope-options-ui":H={};var G=ue.extend(!0,{},_.isObject(d.local_options)?d.local_options:{});if(_.each(ae.value||{},function(e,t){!_.isBoolean(e)&&_.isEmpty(e+"")||(H[t]=e)}),_.isEmpty(ae.options_type)||!_.isString(ae.options_type))de.errare("updateAPISetting => "+ae.action+" => missing options_type");else{var $={};$[ae.options_type]=H,d.local_options=ue.extend(G,$)}break;case"sek-add-content-in-new-sektion":if(_.isEmpty(ae.id))throw new Error("updateAPISetting => "+ae.action+" => missing id");if(O=0,"no_match"==(n=se.getLevelModel(ae.location,d.collection))){de.errare("updateAPISetting => "+ae.action+" => no location matched"),ce.reject("updateAPISetting => "+ae.action+" => no location matched");break}switch(n.collection=_.isArray(n.collection)?n.collection:[],_.each(n.collection,function(e,t){ae.before_section===e.id&&(O=t),ae.after_section===e.id&&(O=t+1)}),ae.content_type){case"module":e=se.getModuleStartingValue(ae.content_id),n.collection.splice(O,0,{id:ae.id,level:"section",collection:[{id:sektionsLocalizedData.optPrefixForSektionsNotSaved+se.guid(),level:"column",collection:[{id:ae.droppedModuleId,level:"module",module_type:ae.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=ue.Deferred();var q=function(e){se.preparePresetSectionForInjection(e).fail(function(e){ce.reject("updateAPISetting => error when preparePresetSectionForInjection => "+ae.action+" => "+e),u.reject(e)}).done(function(e){var t=!1;if(!_.isEmpty(ae.sektion_to_replace)){var i=se.getLevelModel(ae.sektion_to_replace,d.collection);"no_match"===i&&(de.errare("updateAPISetting => "+ae.action+" => no sektionToReplace matched"),ce.reject("updateAPISetting => "+ae.action+" => no sektionToReplace matched")),t=!0===i.is_nested}t?("no_match"===(o=se.getLevelModel(ae.in_column,d.collection))&&(de.errare("updateAPISetting => "+ae.action+" => no parent column matched"),ce.reject("updateAPISetting => "+ae.action+" => no parent column matched")),o.collection=_.isArray(o.collection)?o.collection:[],_.each(o.collection,function(e,t){ae.before_section===e.id&&(O=t),ae.after_section===e.id&&(O=t+1)}),o.collection.splice(O,0,{id:ae.id,is_nested:!0,level:"section",collection:e.collection,options:e.options||{},ver_ini:sektionsLocalizedData.nimbleVersion})):n.collection.splice(O,0,{id:ae.id,level:"section",collection:e.collection,options:e.options||{},ver_ini:sektionsLocalizedData.nimbleVersion}),u.resolve()})};se.getPresetSectionCollection({is_user_section:ae.is_user_section,presetSectionId:ae.content_id,section_id:ae.id}).fail(function(e){de.errare("updateAPISetting => "+ae.action+" => Error with self.getPresetSectionCollection()",e),ce.reject("updateAPISetting => "+ae.action+" => Error with self.getPresetSectionCollection()")}).done(function(e){_.isObject(e)&&!_.isEmpty(e)||(de.errare("updateAPISetting => "+ae.action+" => preset section type not found or empty : "+ae.content_id,e),ce.reject("updateAPISetting => "+ae.action+" => preset section type not found or empty")),q(e)})}break;case"sek-add-preset-section-in-new-nested-sektion":if(_.isEmpty(ae.id))throw new Error("updateAPISetting => "+ae.action+" => missing id");if(o=se.getLevelModel(ae.in_column,d.collection),"no_match"==(c=se.getLevelModel(ae.in_sektion,d.collection))){ce.reject("updateAPISetting => "+ae.action+" => no grand parent sektion found");break}if(!0===c.is_nested){ce.reject(sektionsLocalizedData.i18n["You've reached the maximum number of allowed nested sections."]);break}if("no_match"==o){de.errare("updateAPISetting => "+ae.action+" => no parent column matched"),ce.reject("updateAPISetting => "+ae.action+" => no parent column matched");break}o.collection=_.isArray(o.collection)?o.collection:[],u=ue.Deferred(),q=function(e){se.preparePresetSectionForInjection(e).fail(function(e){ce.reject("updateAPISetting => error when preparePresetSectionForInjection => "+ae.action+" => "+e),u.reject(e)}).done(function(e){o.collection.push({id:ae.id,level:"section",collection:e.collection,options:e.options||{},is_nested:!0,ver_ini:sektionsLocalizedData.nimbleVersion}),u.resolve()})},se.getPresetSectionCollection({is_user_section:ae.is_user_section,presetSectionId:ae.content_id,section_id:ae.id}).fail(function(){de.errare("updateAPISetting => "+ae.action+" => Error with self.getPresetSectionCollection()",_er_),ce.reject("updateAPISetting => "+ae.action+" => Error with self.getPresetSectionCollection()")}).done(function(e){_.isObject(e)&&!_.isEmpty(e)||(de.errare("updateAPISetting => "+ae.action+" => preset section type not found or empty : "+ae.content_id,e),ce.reject("updateAPISetting => "+ae.action+" => preset section type not found or empty")),q(e)});break;case"sek-update-fonts":var Y=se.sniffGFonts({is_global_location:ae&&!0===ae.is_global_location});if(!_.isEmpty(ae.font_family)&&_.isString(ae.font_family)&&!_.contains(Y,ae.font_family)){if(ae.font_family.indexOf("gfont")<0){de.errare("updateAPISetting => "+ae.action+" => error => must be a google font, prefixed gfont"),ce.reject("updateAPISetting => "+ae.action+" => error => must be a google font, prefixed gfont");break}Y.push(ae.font_family)}d.fonts=Y;break;case"sek-restore-revision":d=ae.revision_value;break;case"sek-import-from-file":if(de.infoLog("sek-import-from-file",ae),_.isUndefined(ae.imported_content.data)||_.isUndefined(ae.imported_content.metas)){de.errare("updateAPISetting::sek-import-from-file => invalid imported content",imported_content);break}var J=_.isArray(ae.imported_content.data.collection)?ue.extend(!0,[],ae.imported_content.data.collection):[];if(!0===ae.assign_missing_locations){var K=ae.imported_content.metas.active_locations,X=de.czr_sektions.activeLocations(),ee=_.first(X);if(!_.isEmpty(ee)&&!_.isEmpty(K)&&_.isArray(K)){var te=ue(K).not(X).get(),ie=se.getLevelModel(ee,d.collection),ne=se.getLevelModel(ee,ae.imported_content.data.collection),oe=[];ie.collection=_.isArray(ie.collection)?ie.collection:[],ne.collection=_.isArray(ne.collection)?ne.collection:[],_.each(K,function(e){var t=se.getLevelModel(e,J);_.isEmpty(t.collection)||(oe=_.union(oe,t.collection))}),ne.collection=oe,ae.imported_content.data.collection=_.filter(ae.imported_content.data.collection,function(e){return!_.contains(te,e.id)})}}!0===ae.keep_existing_sections&&(_.each(J,function(e){var t=se.getLevelModel(e.id,d.collection);if(!_.isEmpty(t.collection)){var i=se.getLevelModel(e.id,ae.imported_content.data.collection);i.collection=_.union(t.collection,i.collection)}}),d.fonts&&!_.isEmpty(d.fonts)&&_.isArray(d.fonts)&&(ae.imported_content.data.fonts=_.isArray(ae.imported_content.data.fonts)?ae.imported_content.data.fonts:[],ae.imported_content.data.fonts=_.uniq(_.union(d.fonts,ae.imported_content.data.fonts)))),d=ae.imported_content.data;break;case"sek-reset-collection":try{d=de.czr_sektions.resetCollectionSetting(ae.scope)}catch(e){de.errare("sek-reset-collection => error when firing resetCollectionSetting()",e)}}if("pending"==ce.state()){var re=function(){var e=ae.settingParams&&ae.settingParams.from&&ae.settingParams.to;e&&_.isEqual(ae.settingParams.from,ae.settingParams.to)?ce.reject("updateAPISetting => the new setting value is unchanged when firing action : "+ae.action):!e&&_.isEqual(l,d)?ce.reject("updateAPISetting => the new setting value is unchanged when firing action : "+ae.action):null!==se.validateSettingValue(d,ae.is_global_location?"global":"local")?(de(le)(d,ae),ae.cloneId=s,ce.resolve(ae)):ce.reject("Validation problem for action "+ae.action)};"_not_injection_scenario_"===u?(re(),"pending"===ce.state()&&de.errare("::updateAPISetting => The __updateAPISettingDeferred__ promise has not been resolved properly.")):u.done(function(){re(),"pending"===ce.state()&&de.errare("::updateAPISetting => The __updateAPISettingDeferred__ promise has not been resolved properly.")}).fail(function(e){de.errare("updateAPISetting => __presetSectionInjected__ failed",e)})}};return de(le,function(e){t()}),ce.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=ue.Deferred();return!0===(t=t||{is_user_section:!1}).is_user_section?_.isEmpty(de.sek_userSavedSections)||_.isEmpty(de.sek_userSavedSections[t.preset_section_id])?(de.sek_userSavedSections=de.sek_userSavedSections||{},_.isUndefined(de.sek_fetchingUserSavedSections)||"pending"!=de.sek_fetchingUserSavedSections.state()?(e=wp.ajax.post("sek_get_user_saved_sections",{nonce:de.settings.nonce.save,preset_section_id:t.preset_section_id}),de.sek_fetchingUserSavedSections=e):e=de.sek_fetchingUserSavedSections,e.done(function(e){de.sek_userSavedSections[t.preset_section_id]=e,i.resolve(de.sek_userSavedSections)}).fail(function(e){i.reject(e)})):i.resolve(de.sek_userSavedSections):_.isEmpty(de.sek_presetSections)?(_.isUndefined(de.sek_fetchingPresetSections)||"pending"!=de.sek_fetchingPresetSections.state()?(e=wp.ajax.post("sek_get_preset_sections",{nonce:de.settings.nonce.save}),de.sek_fetchingPresetSections=e):e=de.sek_fetchingPresetSections,e.done(function(e){de.sek_presetSections=e,i.resolve(de.sek_presetSections)}).fail(function(e){i.reject(e)})):i.resolve(de.sek_presetSections),i.promise()},getPresetSectionCollection:function(r){var a=this,s=ue.Deferred();return a._maybeFetchSectionsFromServer({is_user_section:r.is_user_section,preset_section_id:r.presetSectionId}).fail(function(e){s.reject(e)}).done(function(e){var t=ue.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+a.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.id=r.section_id,i.collection=n(i.collection),i.ver_ini=sektionsLocalizedData.nimbleVersion,i.collection=o(i.collection),s.resolve(i)}),s.promise()},preparePresetSectionForInjection:function(o){var i=this,n={},r=ue.Deferred(),a=function(e){return _.each(e,function(e,t){_.isObject(e)||_.isArray(e)?a(e):_.isString(e)&&-1!=e.indexOf("__img_url__")&&(_.has(n,e)||(n[e]=i.importAttachment(e.replace("__img_url__",""))))}),n},s=function(i,n){return _.each(i,function(e,t){_.isObject(e)||_.isArray(e)?s(e,n):_.isString(e)&&-1!=e.indexOf("__img_url__")&&_.has(n,e)&&_.isObject(n[e])&&(i[t]=n[e].id)}),o};return i.whenAllPromisesInParallel(a(o)).done(function(e){var t=s(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(l,d){d.extend(CZRSeksPrototype,{rootPanelFocus:function(){l.section.has(l.czr_activeSectionId())?l.section(l.czr_activeSectionId()).expanded(!1):l.section.each(function(e){e.expanded(!1)}),l.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 a=this,s="no_match",c=function(t,e,i,n){if(_.isUndefined(e)){var o=l(i)(),r=_.isObject(o)?d.extend(!0,{},o):d.extend(!0,{},a.getDefaultSektionSettingValue(n));e=_.isArray(r.collection)?r.collection:[]}return _.each(e,function(e){"no_match"==s&&(t===e.id?s=e:_.isArray(e.collection)&&c(t,e.collection,i,n))}),s};return _.isEmpty(n)?_.each({local:a.localSectionsSettingId(),global:a.getGlobalSectionsSettingId()},function(e,t){"no_match"===s&&c(i,n,e,t)}):c(i,n),s},getParentSectionFromColumnId:function(i,n){var a=this,s="no_match",c=function(i,e,n,o){if(_.isUndefined(e)){var t=l(n)(),r=_.isObject(t)?d.extend(!0,{},t):d.extend(!0,{},a.getDefaultSektionSettingValue(o));e=_.isArray(r.collection)?r.collection:[]}return _.each(e,function(e){var t;"no_match"==s&&("section"==e.level&&(t=_.findWhere(e.collection,{id:i})),_.isEmpty(t)?_.isArray(e.collection)&&c(i,e.collection,n,o):s=e)}),s};return _.isEmpty(n)?_.each({local:a.localSectionsSettingId(),global:a.getGlobalSectionsSettingId()},function(e,t){"no_match"===s&&c(i,n,e,t)}):c(i,n),s},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,a=function(t,e){var i="no_match";if(_.isUndefined(e)){var n=l(r.getGlobalSectionsSettingId())(),o=_.isObject(n)?d.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=a(t,e.collection)))}),i};return"no_match"!==a(e)},getLevelPositionInCollection:function(i,n){var a=this,s="no_match",c=function(i,e,n,o){if(_.isUndefined(e)){var t=l(n)(),r=_.isObject(t)?d.extend(!0,{},t):d.extend(!0,{},a.getDefaultSektionSettingValue(o));e=_.isArray(r.collection)?r.collection:[]}_.each(e,function(e,t){"no_match"==s&&(i===e.id?s=t:_.isArray(e.collection)&&c(i,e.collection,n,o))})};return _.isEmpty(n)?_.each({local:a.localSectionsSettingId(),global:a.getGlobalSectionsSettingId()},function(e,t){"no_match"===s&&c(i,e,t,n)}):c(i,n),s},getLevelProperty:function(e){if(e=_.extend({id:"",property:""},e),_.isEmpty(e.id))l.errare("getLevelProperty => invalid id provided");else{var t=this.getLevelModel(e.id);if("no_match"!=t){if(_.isObject(t))return t[e.property];l.errare("getLevelProperty => invalid model for id : "+e.id,t)}else l.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=d.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){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}l.errare("getDefaultItemModelFromRegisteredModuleData => Father modules should be treated specifically")},getRegisteredModuleProperty:function(e,t){return this.isModuleRegistered(e)?sektionsLocalizedData.registeredModules[e][t]:"not_set"},isModuleRegistered:function(e){return sektionsLocalizedData.registeredModules&&!_.isUndefined(sektionsLocalizedData.registeredModules[e])},sniffGFonts:function(e){var o=this,r=[],a=function(i,n,e){if(_.isUndefined(e)){var t=l(i)();e=_.isObject(t)?d.extend(!0,{},t):d.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))&&a(i,n,e)})};return(e=e||{is_global_location:!1}).is_global_location?a(o.getGlobalSectionsSettingId(),"global"):a(o.localSectionsSettingId(),"local"),r},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))l.errare("getInputDefaultValue => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))l.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}l.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))l.errare("getInputType => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))l.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}l.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))l.errare("getInputRegistrationParams => missing sektionsLocalizedData.registeredModules");else if(_.isUndefined(sektionsLocalizedData.registeredModules[n]))l.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}l.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}l.errare("inputIsAFontFamilyModifier => missing sektionsLocalizedData.registeredModules")},getModuleStartingValue:function(e){if(!sektionsLocalizedData.registeredModules)return l.errare("getModuleStartingValue => missing sektionsLocalizedData.registeredModules"),"no_starting_value";if(_.isUndefined(sektionsLocalizedData.registeredModules[e]))return l.errare("getModuleStartingValue => the module type "+e+" is not registered"),"no_starting_value";var t=sektionsLocalizedData.registeredModules[e].starting_value;return _.isEmpty(t)?"no_starting_value":t},selectNextTabbableOrFocusable:function(e){var t=d(e),i=d(":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=d(e),i=d(":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,l.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()?d.extend(i,{selected:"selected"}):"px"===t&&d.extend(i,{selected:"selected"}),d("select[data-czrtype]",n.container).append(d("<option>",i))}),d("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)&&d.extend(i,{selected:"selected"}),d("select[data-czrtype]",n.container).append(d("<option>",i))}),d("select[data-czrtype]",n.container).czrSelect2({closeOnSelect:!0,templateSelection:function(e){return e.text.replace(/\u2013|\u2014/g,"")}}),d("select[data-czrtype]",n.container).on("change",function(){0===d(this).find("option:selected").length&&n([])});break;default:l.errare("::setupSelectInput => invalid input type => "+n.type)}else l.errare("api.czr_sektions.setupSelectInput => missing select options for input id => "+n.id+" in module "+n.module.module_type)},setupFontSizeAndLineHeightInputs:function(e){var t=this,i=d(".sek-font-size-line-height-wrapper",t.container),n=i.find("input[data-czrtype]").data("sek-unit"),o=function(e){return _.contains(["px","em","%"],e)||(l.errare("error : invalid unit for input "+t.id,e),e="px"),e};t.css_unit=new l.Value(_.isEmpty(n)?"px":o(n)),t.css_unit.bind(function(e){e=_.isEmpty(e)?"px":e,i.find('input[type="number"]').trigger("change")}),i.find('input[type="number"]').on("input change",function(e){t(d(this).val()+o(t.css_unit()))}).stepper(),i.on("click","[data-sek-unit]",function(e){e.preventDefault(),i.find("[data-sek-unit]").removeClass("is-selected").attr("aria-pressed",!1),d(this).addClass("is-selected").attr("aria-pressed",!0),i.find("input[data-czrtype]").data("sek-unit",d(this).data("sek-unit")),t.css_unit(d(this).data("sek-unit"))}),i.find('.sek-ui-button[data-sek-unit="'+n+'"]').addClass("is-selected").attr("aria-pressed",!0)},maybeSetupDeviceSwitcherForInput:function(){var i=this,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(" ");i.container.find(".customize-control-title").prepend(e),i.previewedDevice=new l.Value(l.previewedDevice()),syncWithPreviewedDevice=function(e){e.stopPropagation(),i.container.find("[data-sek-device]").removeClass("active"),d(this).addClass("active");var t="desktop";try{t=d(this).data("sek-device")}catch(e){l.errare("maybeSetupDeviceSwitcherForInput => error when binding sek-switcher",e)}try{l.previewedDevice(t)}catch(e){l.errare("maybeSetupDeviceSwitcherForInput => error when setting the previewed device",e)}i.previewedDevice(t)},i.container.on("click","[data-sek-device]",syncWithPreviewedDevice);var t=i.container.find('[data-sek-device="'+l.previewedDevice()+'"]');0<t.length&&t.trigger("click")},scheduleModuleAccordion:function(e){e=e||{expand_first_control:!0};var i=this;if(d(i.container).on("click",".customize-control label > .customize-control-title",function(e){e.stopPropagation();var t=d(this).closest(".customize-control");"no"!==t.attr("data-sek-accordion")&&(i.container.find(".customize-control").not(t).each(function(){d(this).attr("data-sek-accordion")||(d(this).attr("data-sek-expanded","false"),d(this).find(".czr-items-wrapper").stop(!0,!0).slideUp(0))}),t.find(".czr-items-wrapper").stop(!0,!0).slideToggle({duration:0,start:function(){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")}}))}),e.expand_first_control){var t=_.first(i.controls());_.isObject(t)&&!_.isEmpty(t.id)&&l.control(t.id,function(e){e.container.trigger("sek-accordion-expanded"),i.container.find(".customize-control").first().find("label > .customize-control-title").trigger("click")})}},isPromise:function(e){return e&&"function"==typeof e.then&&String(d.Deferred().then)===String(e.then)},whenAllPromisesInParallel:function(e){var i=this,t=d.Deferred(),n=[],o=_.keys(e);return _.each(e,function(e,t){n.push(d.Deferred(function(t){(i.isPromise(e)?e:d.Deferred()).done(t.resolve).fail(function(e){t.reject(e)})}))}),d.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||d.Deferred();var r=this;if(_.isArray(t)){var e=t[i];(r.isPromise(e)?e:d.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:l.settings.nonce.save}).fail(function(e){l.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)||l.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);n.czr_Input(t).visible(i()),this.bind(function(e){n.czr_Input(t).visible(i())})}})}(wp.customize,jQuery);CZRSeksPrototype=CZRSeksPrototype||{};!function(s,m){m.extend(CZRSeksPrototype,{setupDnd:function(){var t=this;t.bind("sek-refresh-dragzones",function(e){!0!="draggable"in document.createElement("span")&&s.panel(sektionsLocalizedData.sektionsPanelId,function(e){s.notifications.add(new s.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(){s.notifications.remove("drag-drop-support")},1e4)}),t.setupNimbleDragZones(e.input_container)}),s.previewer.bind("ready",function(){try{t.setupNimbleDropZones()}catch(e){s.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(){s.notifications.add(new s.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(){s.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-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"),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){s.panel(sektionsLocalizedData.sektionsPanelId,function(e){s.notifications.add(new s.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(){s.notifications.remove("drag-drop-support")},1e4)})}m(this).addClass("sek-dragged"),m("body").addClass("sek-dragging"),s.previewer.send("sek-drag-start",{type:n.dndData.content_type})}).call(m(this),e)}).on("dragend",function(e){(function(e){m("body").removeClass("sek-dragging"),m(this).removeClass("sek-dragged"),s.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?(s.czr_sektions.trigger("sek-content-dropped",{drop_target_element:t,location:t.closest('[data-sek-level="location"]').data("sek-id"),before_module:t.data("drop-zone-before-module-or-nested-section"),after_module: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(),s.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":if(this.$cachedDropZoneCandidates=null,!t.dnd_canDrop({targetEl:m(this),evt:e}))return;e.preventDefault(),t.dnd_onDrop(m(this),e),t.dnd_cleanOnLeaveDrop(m(this),e),s.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)),a=(Math.abs(o.top-i),Math.abs(n-(o.right-(o.right-o.left)/2))),s=(o.right,o.left,r<50),c=a<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=a,t=r,Math.sqrt(e*e+t*t))}),m(this).removeClass("sek-drag-is-in"),(s||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:s.errare("::dnd_getPreDropElementContent => invalid content type provided")}return i},dnd_getDropZonesElements:function(){return m(s.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"),a=!0===i.closest('[data-sek-level="location"]').data("sek-is-footer-location"),s="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(r||a)&&s?(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):a&&"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):i.hasClass("sek-drop-zone")&&("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){s.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,a=i.right,s=i.top,c=i.bottom;return r<=n&&n-r<=a-r&&(s<=o&&o-s<=c-s)},dnd_onDrop:function(e,t){t.stopPropagation();this.dnd_getPosition(e,t),e.index();s.czr_sektions.trigger("sek-content-dropped",{drop_target_element:e,location:e.closest('[data-sek-level="location"]').data("sek-id"),before_module:e.data("drop-zone-before-module-or-nested-section"),after_module: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"),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=e.drop_target_element,i="content-in-column";switch(t.data("sek-location")){case"between-sections":i="content-in-a-section-to-create";break;case"in-empty-location":e.is_first_section=!0,e.send_to_preview=!1,i="content-in-empty-location";break;case"between-columns":i="content-in-new-column"}if("preset_section"===e.content_type)if(t.hasClass("sek-module-drop-zone-for-first-module")){var n=t.closest('div[data-sek-level="section"]');1<n.find(".sek-sektion-inner").first().children('[data-sek-level="column"]').length?(i="preset-section-in-a-nested-section-to-create",e.is_nested=!0,e.in_column=t.closest('[data-sek-level="column"]').data("sek-id"),e.in_sektion=n.data("sek-id")):(e.sektion_to_replace=n.data("sek-id"),e.after_section=e.sektion_to_replace,e.in_column=n.closest('[data-sek-level="column"]').data("sek-id"),i="content-in-a-section-to-replace")}else"between-sections"===t.data("sek-location")&&(i="content-in-a-section-to-create");switch(i){case"content-in-column":var o=t.closest("div[data-sek-level]");if(o.length<1)throw new Error("No valid level dom element found");var r=o.data("sek-level"),a=o.data("sek-id");if(_.isEmpty(r)||_.isEmpty(a))throw new Error("No valid level id found");s.previewer.trigger("sek-add-module",{level:r,id:a,in_column:t.closest('div[data-sek-level="column"]').data("sek-id"),in_sektion:t.closest('div[data-sek-level="section"]').data("sek-id"),before_module:e.before_module,after_module:e.after_module,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":s.previewer.trigger("sek-add-content-in-new-sektion",e);break;case"preset-section-in-a-nested-section-to-create":s.previewer.trigger("sek-add-preset-section-in-new-nested-sektion",e);break;case"content-in-empty-location":s.previewer.trigger("sek-add-content-in-new-sektion",e);break;default:s.errare("sek control panel => ::reactToDrop => invalid drop case : "+i)}}(e)}catch(e){s.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),d(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(){d(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"),a=d("#wp-czr-customize-content_editor-tools"),s=i.$editorPane.find(".mce-toolbar-grp"),c=i.$editorPane.find(".mce-statusbar");l.sekEditorExpanded()&&(_.isNaN(e)||(t=n-e),o.height=t,o.components=a.outerHeight()+s.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(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(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 a=o();o.initial_unit="px",u.isEmpty(a)||(o.initial_unit=u.isEmpty(a.unit)?"px":a.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,a=d(".sek-spacing-wrapper",r.container),t=l.czr_sektions.getInputRegistrationParams(r.id,r.module.module_type),s=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,{},s);t=u.isObject(t)?d.extend(i,t):i;var n=c(t,e);d("[data-sek-spacing]",a).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)),a.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),r(t)}),m.call(r,a,s),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,a);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,s,c){n.czrInputMap=n.czrInputMap||{},s.extend(n.czrInputMap,{bg_position:function(e){var t=this;s(".sek-bg-pos-wrapper",t.container).on("change",'input[type="radio"]',function(e){t(s(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 a=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?a(e,i[n+1]):{}},i=function(e){var t=s.extend(!0,{},c.isObject(o())?o():{}),i=s.extend(!0,{},r);t=c.isObject(t)?s.extend(i,t):i;var n=a(t,e);o.container.find('input[value="'+n+'"]').attr("checked",!0).trigger("click",{previewed_device_switched:!0})};s(".sek-bg-pos-wrapper",o.container).on("change",'input[type="radio"]',function(e){var t,i=s(this).val();(t=s.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",a=l(i,o.container);c.czr_sektions.maybeSetupDeviceSwitcherForInput.call(o);var s=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?s(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=s(t,e);a.find(".selected").removeClass("selected"),a.find('div[data-sek-align="'+n+'"]').addClass("selected")};a.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"),a.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(t,e,i){t.czrInputMap=t.czrInputMap||{},e.extend(t.czrInputMap,{font_size:function(e){t.czr_sektions.setupFontSizeAndLineHeightInputs.call(this)}})}(wp.customize,jQuery,_),function(t,e,i){t.czrInputMap=t.czrInputMap||{},e.extend(t.czrInputMap,{line_height:function(e){t.czr_sektions.setupFontSizeAndLineHeightInputs.call(this)}})}(wp.customize,jQuery,_),function(i,c,l){i.czrInputMap=i.czrInputMap||{},c.extend(i.czrInputMap,{font_picker:function(e){var s=this,o=s.input_parent,n=function(e,t){o();var n=c('select[data-czrtype="'+s.id+'"]',s.container);l.isNull(s())||l.isEmpty(s())?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>"),l.each([{title:sektionsLocalizedData.i18n["Web Safe Fonts"],type:"cfont",list:t.cfonts},{title:sektionsLocalizedData.i18n["Google Fonts"],type:"gfont",list:t.gfonts}],function(e){var t,r,a,i=c("<optgroup>",{label:e.title,html:(t=e.list,r=e.type,a="",l.each(t,function(e){var t,i,n=e.name,o=l.isString(n)?n.replace(/[+|:]/g," "):n;t=n,i=r,(n=l.isString(t)?["[",i,"]",t].join(""):"")==s()?a+='<option selected="selected" value="'+n+'">'+o+"</option>":a+='<option value="'+n+'">'+o+"</option>"}),a)});n.append(i)});var i={escapeMarkup:function(e){return e}};e&&c.extend(i,{resultsAdapter:e,closeOnSelect:!1}),n.czrSelect2(i),c(".czrSelect2-selection__rendered",s.container).css(r(s()))},r=function(e){if(!l.isString(e)||l.isEmpty(e))return{};var t,i,n,o=(e=e.replace("[gfont]","").replace("[cfont]","")).split(":");return t=a(e),i=o[1]?o[1].replace(/[^0-9.]+/g,""):400,i=l.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"}},a=function(e){if(!l.isString(e)||l.isEmpty(e))return e;var t=(e=e.replace("[gfont]","").replace("[cfont]","")).split(":");return l.isString(t[0])?t[0].replace(/[+|:]/g," "):""};c.when(function(){var e,t=c.Deferred();l.isEmpty(i.sek_fontCollections)?(l.isUndefined(i.sek_fetchingFontCollection)||"pending"!=i.sek_fetchingFontCollection.state()?(e=i.CZR_Helpers.getModuleTmpl({tmpl:"font_list",module_type:"font_picker_input",module_id:s.module.id}),i.sek_fetchingFontCollection=e):e=i.sek_fetchingFontCollection,e.done(function(e){if("string"!=typeof e||"{"!==e[0])throw new Error("font_picker => server list is not JSON.parse-able");i.sek_fontCollections=JSON.parse(e),t.resolve(i.sek_fontCollections)}).fail(function(e){t.reject(e)})):t.resolve(i.sek_fontCollections);return t.promise()}()).done(function(t){var i;(i=c.Deferred(),void 0!==c.fn.czrSelect2&&void 0!==c.fn.czrSelect2.amd&&"function"==typeof c.fn.czrSelect2.amd.require?c.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){i.errare("font_picker => fail response =>",e)})}})}(wp.customize,jQuery,_),function(r,a,s){r.czrInputMap=r.czrInputMap||{},a.extend(r.czrInputMap,{fa_icon_picker:function(){var n=this,o=!1,e=function(t){!0!==n.iconCollectionSet&&(a.when(a.Deferred(function(t){s.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){s.each(e,function(e){var t={value:e,html:r.CZR_Helpers.capitalize(e.substring(7))};t.value==n()&&(a.extend(t,{selected:"selected"}),o=!0),a("select[data-czrtype]",n.container).append(a("<option>",t))});var t,i=function(e){return e.id?a('<span class="'+e.element.value+'"></span><span class="social-name">&nbsp;&nbsp;'+e.text+"</span>"):e.text};t=o?a("<option>"):a("<option>",{selected:"selected"}),a("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&&s.delay(function(){try{a("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()}),s.delay(function(){e({open_on_init:!1})},1e3)}})}(wp.customize,jQuery,_),function(d,u,p){d.czrInputMap=d.czrInputMap||{},u.extend(d.czrInputMap,{code_editor:function(e){var n=this,i=this.module.control,t=(n.input_parent(),!1),r=n.container.find("textarea"),o=n.container.find(".customize-control-title"),a=r.data("editor-params");wp.codeEditor&&(p.isUndefined(a)||!1!==a)&&(t=a),n.isReady.done(function(){var e=function(e){p.isEmpty(this.editor)&&(p.isEmpty(this.module.control.container.attr("data-sek-expanded"))||"false"==this.module.control.container.attr("data-sek-expanded")||setTimeout(function(){if(t)try{s(t)}catch(e){d.errare("error in sek_control => code_editor() input",e),c()}else c();o.click()},10))};e.call(n),n.module.control.container.on("sek-accordion-expanded",function(){e.call(n)})});var s=function(e){var t,i=!1;t=p.extend({},e,{onTabNext:CZRSeksPrototype.selectNextTabbableOrFocusable(":tabbable"),onTabPrevious:CZRSeksPrototype.selectPrevTabbableOrFocusable(":tabbable"),onUpdateErrorNotice:l}),n.editor=wp.codeEditor.initialize(r,t),u(n.editor.codemirror.display.lineDiv).attr({role:"textbox","aria-multiline":"true","aria-label":o.html(),"aria-describedby":"editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"}),o.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()})},c=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())})},l=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",o.html()):sektionsLocalizedData.i18n.codeEditorPlural.replace("%d",String(e.length)).replace("%s",o.html()),i.setting.notifications.add(n.id,new d.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)}})}(wp.customize,jQuery,_),function(d,u,p){d.czrInputMap=d.czrInputMap||{},u.extend(d.czrInputMap,{range_simple_device_switcher:function(e){var a=this,t=u(".sek-range-with-unit-picker-wrapper",a.container),s=t.find('input[type="number"]'),r=t.find('input[type="range"]'),i=d.czr_sektions.getInputRegistrationParams(a.id,a.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=a(),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,""));s.val(r).trigger("input",{previewed_device_switched:!0})};d.czr_sektions.maybeSetupDeviceSwitcherForInput.call(a),r.on("input",function(e){s.val(u(this).val()).trigger("input")}),s.on("input",function(e,t){var i,n=d.previewedDevice()||"desktop",o=u(this).val();(i=u.extend(!0,{},p.isObject(a())?a():{}))[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)&&a(i),r.val(u(this).val())}),a.previewedDevice.bind(function(e){try{n(e)}catch(e){d.errare("Error when firing syncWithPreviewedDevice for input type "+a.type+" for input id "+a.id,e)}}),r.val(s.val()||0);try{n(d.previewedDevice())}catch(e){d.errare("Error when firing syncWithPreviewedDevice for input type "+a.type+" for input id "+a.id,e)}}})}(wp.customize,jQuery,_),function(s,c,l){s.czrInputMap=s.czrInputMap||{},c.extend(s.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"),a=function(e){return l.contains(["px","em","%"],e)||(s.errare("error : invalid unit for input "+t.id,e),e="px"),e};t.css_unit=new s.Value(l.isEmpty(r)?"px":a(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()+a(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(s,_,m){s.czrInputMap=s.czrInputMap||{},_.extend(s.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"]'),a=function(e){return m.contains(["px","em","%"],e)||(s.errare("range_with_unit_picker_device_switcher => error : invalid unit for input "+c.id,e),e="px"),e},t=s.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),a=(o=r,m.isEmpty(o)||!m.isString(o)?"px":o.replace(/[0-9]|\.|,/g,"")),s=(n=r,m.isEmpty(n)||!m.isString(n)?"16":n.replace(/px|em|%/g,""));_(".sek-unit-wrapper",l).find('[data-sek-unit="'+a+'"]').trigger("click",{previewed_device_switched:!0}),l.find('.sek-ui-button[data-sek-unit="'+a+'"]').addClass("is-selected").attr("aria-pressed",!0),d.val(s).trigger("input",{previewed_device_switched:!0})};s.czr_sektions.maybeSetupDeviceSwitcherForInput.call(c),c.css_unit=new s.Value(m.isEmpty(i())?"px":a(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=s.previewedDevice()||"desktop",o=_(this).val()+a(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){s.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=s.previewedDevice(),i=_.extend(!0,{},m.isObject(c())?c():{});m.isEmpty(i[t])||(i=m.omit(i,t),c(i),n(s.previewedDevice()))}),r.val(d.val()||0);try{n(s.previewedDevice())}catch(e){s.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 s=this,c=h(".sek-borders",s.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 "+s.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(s.id,s.module.module_type),f=k.isEmpty(t)||k.isEmpty(t.default)?{}:t.default;s.cssBorderTypes=["top","left","right","bottom"];var i,n,o=function(){var e=s(),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=s(),t="#000000";return k.isObject(e)&&k.has(e,"_all_")&&k.isObject(e._all_)&&!k.isEmpty(e._all_.col)&&(t=e._all_.col),t},a=function(e){if(!k.contains(k.union(s.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=s(),i={},n=h.extend(!0,{},f);k.isObject(t)?i=h.extend(!0,{},t):k.isString(t)&&(i={_all_:{wght:t}});var o,r,a=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(a)||!k.isObject(a)||k.isEmpty(a.wght)||k.isEmpty(a.col))throw new Error("Error in syncWithBorderType : getCurrentBorderTypeOrAllValue must return an object formed : array( 'wght' => '1px', 'col' => '#000000' )");o=m(a.wght),r=_(a.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(a.col).trigger("change"),u.data("border_type_switched",!1)};s.borderColor=new g.Value(k.isEmpty(r())?"#000000":r()),s.css_unit=new g.Value(k.isEmpty(o())?"px":p(o())),s.borderType=new g.Value("_all_"),l.val((i=s(),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 : "+s.module.module_type+" the initial border width is invalid : "+n),n=1),n)),u.val(s.borderColor()),u.wpColorPicker({palettes:!0,width:1440<=window.innerWidth?271:251,change:function(e,t){h(this).val(t.color.toString()).trigger("colorpickerchange"),s.borderColor(t.color.toString(),{border_type_switched:!0===h(this).data("border_type_switched")})},clear:function(e,t){h(this).val("").trigger("colorpickerchange"),s.borderColor("")}}),s.css_unit.bind(function(e,t,i){(!k.isObject(i)||!0!==i.border_type_switched&&!0!==i.initializing_the_unit)&&l.trigger("input",i)}),s.borderColor.bind(function(e,t,i){(!k.isObject(i)||!0!==i.border_type_switched&&!0!==i.initializing_the_color)&&l.trigger("input",i)}),s.borderType.bind(function(e){try{a(e)}catch(e){g.errare("Error when firing syncWithBorderType for input type borders for module type "+s.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=s.borderType()||"_all_",o=s.borderColor(),r=h(this).val()+p(s.css_unit()),a=h.extend(!0,{},f);(i=h.extend(!0,{},k.isObject(s())?s():a))[n]=h.extend(!0,{},i[n]||a[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(s.cssBorderTypes,function(e){i=k.omit(i,e)}),s(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")),s.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)}s.borderType(i,t)}),s.container.on("click",".sek-reset-button",function(e){var t=s.borderType()||"_all_",i=h.extend(!0,{},k.isObject(s())?s():{});k.isEmpty(i[t])||(i=k.omit(i,t),s(i),a(t))}),d.val(l.val()||0);try{a(s.borderType())}catch(e){g.errare("Error when firing syncWithBorderType for input type borders for module type "+s.module.module_type,e)}h('[data-sek-unit="'+s.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 s=this,c=f(".sek-borders",s.container),l=c.find('input[type="number"]'),a=c.find('input[type="range"]'),d=function(e){return g.contains(["px","em","%"],e)||(m.errare("border_radius => error : invalid unit for input "+s.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(s.id,s.module.module_type),_=g.isEmpty(t)||g.isEmpty(t.default)?{}:t.default;s.cssRadiusTypes=["top_left","top_right","bottom_right","bottom_left"];var i,n,o=function(){var e=s(),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=s(),i={},n=f.extend(!0,{},_);g.isObject(t)?i=f.extend(!0,{},t):g.isString(t)&&(i={_all_:"0px"});var o,r,a=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(a)||!g.isString(a))throw new Error("Error in syncWithRadiusType : getCurrentRadiusTypeOrAllValue must return a string like 3em");o=p(a),r=u(a),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})};s.css_unit=new m.Value(g.isEmpty(o())?"px":d(o())),s.radiusType=new m.Value("_all_"),l.val((i=s(),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 : "+s.module.module_type+" the initial radius is invalid : "+n),n=0),n)),s.css_unit.bind(function(e,t,i){(!g.isObject(i)||!0!==i.radius_type_switched&&!0!==i.initializing_the_unit)&&l.trigger("input",i)}),s.radiusType.bind(function(e){try{r(e)}catch(e){m.errare("Error when firing syncWithRadiusType for input type border_radius for module type "+s.module.module_type,e)}}),a.on("input",function(e){l.val(f(this).val()).trigger("input")}),l.on("input",function(e,t){var i,n=s.radiusType()||"_all_",o=f(this).val()+d(s.css_unit()),r=f.extend(!0,{},_);(i=f.extend(!0,{},g.isObject(s())?s():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(s.cssRadiusTypes,function(e){i=g.omit(i,e)}),s(i)),a.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")),s.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)}s.radiusType(i,t)}),s.container.on("click",".sek-reset-button",function(e){var t=s.radiusType()||"_all_",i=f.extend(!0,{},g.isObject(s())?s():{});g.isEmpty(i[t])||(i=g.omit(i,t),s(i),r(t))}),a.val(l.val()||0);try{r(s.radiusType())}catch(e){m.errare("Error when firing syncWithRadiusType for input type border_radius for module type "+s.module.module_type,e)}f('[data-sek-unit="'+s.css_unit()+'"]',c).trigger("click",{initializing_the_unit:!0})}})}(wp.customize,jQuery,_),function(r,a,s){r.czrInputMap=r.czrInputMap||{},a.extend(r.czrInputMap,{buttons_choice:function(e){var n=this,o=a(".sek-button-choice-wrapper",n.container),t=o.find('input[type="number"]'),i=r.czr_sektions.getInputRegistrationParams(n.id,n.module.module_type);s.isEmpty(i)||s.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),a(this).addClass("is-selected").attr("aria-pressed",!0);try{i=a(this).data("sek-choice")}catch(e){r.errare("buttons_choice input type => error when attaching click event",e)}n(i)}),a('[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}).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,a){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){a.isEmpty(o.sek_revisionHistory)?i.czr_sektions.getRevisionHistory({is_local:"local_revisions"===o.id}).done(function(e){if(!a.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(a.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=[];a.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(" ")),a.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&&a.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})}),a.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("setupTinyMceEditor => missing textarea for module :"+t.module.id);if(tinyMCE.get(i))throw new Error("setupTinyMceEditor => duplicate editor id.");var r,a,s=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(),a=[sektionsLocalizedData.tinyMceNimbleEditorStylesheetUrl],r&&r.tinymce&&r.tinymce.content_css&&(a=m.union(r.tinymce.content_css.split(","),a)),a.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=s(),s()||(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(){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,a=nimbleTinyMCEPreInit.mceInit[e];a.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 s=t.input_parent,c=function(){var e=s();return m.isUndefined(e.autop)?n&&n.editor_params&&!0===n.editor_params.autop:e.autop};a.wpautop=c(),c()||(a.forced_root_block=""),a.toolbar1=sektionsLocalizedData.defaultToolbarBtns,a.toolbar2="",window.tinymce.init(a),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()?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(_,m,f){_.czrInputMap=_.czrInputMap||{},m.extend(_.czrInputMap,{import_export:function(){var o=this,r=o.container.find('button[data-czr-action="sek-pre-import"]'),i=o.container.find("input[name=sek-import-file]"),n=_.czr_sektions.getInputRegistrationParams(o.id,o.module.module_type),s="local"===n.scope?_.czr_sektions.localSectionsSettingId():_.czr_sektions.getGlobalSectionsSettingId();i.on("change",function(e){r.toggleClass("disabled",f.isEmpty(m(this).val()))});o.container.on("click","[data-czr-action]",function(e){var i,t;switch(e.stopPropagation(),m(this).data("czr-action")){case"sek-export":if(i=!1,t=wp.customize.dirtyValues(),f.isEmpty(t)||f.each(t,function(e,t){i||(i=-1!==t.indexOf("nimble"))}),i){alert(sektionsLocalizedData.i18n["You need to publish before exporting."]);break}var n=_(s)(),o=!0;if(f.each(n.collection,function(e){o&&(f.isEmpty(e.collection)||(o=!1))}),o){alert(sektionsLocalizedData.i18n["Nothing to export."]);break}p();break;case"sek-pre-import":if(f.isEmpty(_.czr_sektions.activeLocations())){alert(sektionsLocalizedData.i18n["The current page has no available locations to import Nimble Builder sections."]);break}c({pre_import_check:!0}).done(a).fail(function(e){_.errare("sek_pre_import_checks failed",e),u(),c()});break;case"sek-import-as-is":c();break;case"sek-import-assign":c({assign_missing_locations:!0});break;case"sek-cancel-import":u()}});var a=function(e){var t=_.czr_sektions.activeLocations(),i=m.extend(!0,[],f.isArray(e.data.metas.active_locations)?e.data.metas.active_locations:[]);if(i=f.filter(i,function(e){return!f.contains(["nimble_local_header","nimble_local_footer"],e)}),f.isArray(i)&&f.isArray(t)){var n=m(i).not(t).get();f.isEmpty(n)?c():(r.hide(),o.container.find(".czr-import-dialog").slideToggle(),_.infoLog("sek-pre-import => imported locations missing in current page.",n))}else _.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("")}),u()},c=function(t){if(t=t||{},i.length<1||f.isUndefined(i[0])||!i[0].files||f.isEmpty(i.val()))_.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{_.notifications.remove("missing-import-file"),_.notifications.remove("import-success"),_.notifications.remove("import-failed"),_.notifications.remove("img-import-errors"),o.container.find(".sek-uploading").show();var e=new FormData;if(e.append("file_candidate",i[0].files[0]),e.append("action","sek_get_imported_file_content"),e.append("nonce",_.settings.nonce.save),f.contains(["local","global"],n.scope)){if(e.append("skope",n.scope),t.pre_import_check&&e.append("pre_import_check",t.pre_import_check),__request__=m.ajax({url:wp.ajax.settings.url,data:e,processData:!1,contentType:!1,type:"POST"}),t.pre_import_check)return m.Deferred(function(){var t=this;__request__.done(function(e){e.success||t.reject(e),l(e)||t.reject(e),t.resolve(e)}).fail(function(e){t.reject(e)}).always(function(){})});o.container.find(".sek-uploading").show(),_.previewer.send("sek-maybe-print-loader",{fullPageLoader:!0}),__request__.done(function(e){var n=function(i){return(f.isObject(i)||f.isArray(i))&&f.each(i,function(e,t){(f.isObject(e)||f.isArray(e))&&(i[t]=n(e)),"id"!==t||!f.isString(e)||0!==e.indexOf("__rep__me__")&&0!==e.indexOf("__nimble__")||(i[t]=sektionsLocalizedData.optPrefixForSektionsNotSaved+_.czr_sektions.guid())}),i};e.data.data.collection=n(e.data.data.collection),d(e,t)}).fail(function(e){_.errare("sek-import input => ajax error",e),_.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(u)}else _.errare("sek-import input => invalid scope provided",n.scope)}},l=function(e){var t=!0,i=e.data,n=null;e.success||(n=[sektionsLocalizedData.i18n["Import failed"],i].join(" : ")),f.isNull(n)&&!f.isObject(i)&&(n=sektionsLocalizedData.i18n["Import failed, invalid file content"]);var o=i.data,r=i.metas,a=i.img_errors;return f.isNull(n)&&!f.isObject(o)&&(n=sektionsLocalizedData.i18n["Import failed, invalid file content"]),f.isNull(n)&&!f.isObject(r)&&(n=sektionsLocalizedData.i18n["Import failed, invalid file content"]),f.isNull(n)&&f.isEqual(_(s)(),o)&&(_.infoLog("sek-import input => Setting unchanged"),t=!1),f.isNull(n)||(_.errare("sek-import input => invalid data sent from server",i),_.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",n,"</strong>","</span>"].join("")}),t=!1),f.isEmpty(a)||_.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("")}),t},d=function(e,t){t=t||{},l(e)?(_.czr_sektions.updateAPISetting({action:"sek-import-from-file",scope:"global"===n.scope,imported_content:e.data,assign_missing_locations:t.assign_missing_locations,keep_existing_sections:o.input_parent.czr_Input("keep_existing_sections")()}).done(function(){"local"===n.scope&&_.czr_sektions.generateUI({action:"sek-generate-local-skope-options-ui",clean_settings:!0}),_.previewer.refresh(),_.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){_.errare("sek-import input => error when firing ::updateAPISetting",e),_.previewer.trigger("sek-notify",{notif_id:"import-failed",type:"error",duration:3e4,message:["<span>","<strong>",[sektionsLocalizedData.i18n["Import failed"],e].join(" : "),"</strong>","</span>"].join("")})}),_.previewer.refresh()):u()},u=function(){_.previewer.send("sek-clean-loader",{cleanFullPageLoader:!0}),o.container.find(".sek-uploading").hide(),i.val("").trigger("change"),o.container.find(".czr-import-dialog").hide(),r.show()},p=function(){var i=[],e={sek_export_nonce:_.settings.nonce.save,skope_id:_.czr_skopeBase.getSkopeProperty("skope_id"),active_locations:_.czr_sektions.activeLocations()};f.each(e,function(e,t){i.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),wp.ajax.post("sek_pre_export_checks",{nonce:_.settings.nonce.save,sek_export_nonce:_.settings.nonce.save,skope_id:_.czr_skopeBase.getSkopeProperty("skope_id"),active_locations:_.czr_sektions.activeLocations()}).done(function(){m(window).off("beforeunload"),window.location.href=[sektionsLocalizedData.customizerURL,"?",i.join("&")].join(""),m(window).on("beforeunload")}).fail(function(e){_.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("")})})}}})}(wp.customize,jQuery,_),function(t,e,i){t.czrInputMap=t.czrInputMap||{},e.extend(t.czrInputMap,{simpleselect:function(e){t.czr_sektions.setupSelectInput.call(this,e)},multiselect:function(e){t.czr_sektions.setupSelectInput.call(this,e)}})}(wp.customize,jQuery,_),function(s,c,l){s.czrInputMap=s.czrInputMap||{},c.extend(s.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(s.czr_sektions.post_categories)?wp.ajax.post("sek_get_post_categories",{nonce:s.settings.nonce.save}).done(function(e){l.isArray(e)||s.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}),s.czr_sektions.post_categories=t,i.resolve(s.czr_sektions.post_categories)}).fail(function(e){i.reject(e)}):i.resolve(s.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){s.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([])})},a={};l.each(r(),function(e){a[e]=(e+"").replace(/-/g," ")}),i(a),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,a,e){r.czrInputMap=r.czrInputMap||{},a.extend(r.czrInputMap,{grid_layout:function(e){var n=this,o=a(".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),a(this).addClass("selected").attr("aria-pressed",!0);try{i=a(this).data("sek-grid-layout")}catch(e){r.errare(n.type+" => error when attaching click event",e)}n(i)}),a('[data-sek-grid-layout="'+n()+'"]',o).trigger("click")}})}(wp.customize,jQuery,_),function(o,r,a){o.czrModuleMap=o.czrModuleMap||{},r.extend(o.czrModuleMap,{sek_content_type_switcher_module:{crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("sek_content_type_switcher_module","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:a.extend({id:"",title:""},o.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_content_type_switcher_module"))}}),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(),n.container.find("[data-sek-content-type]").removeClass("is-selected").attr("aria-pressed",!1),r(this).addClass("is-selected").attr("aria-pressed",!0),o.czr_sektions.currentContentPickerType(r(this).data("sek-content-type"))});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)})};o.czr_sektions.currentContentPickerType=o.czr_sektions.currentContentPickerType||new o.Value(n()),t(o.czr_sektions.currentContentPickerType()),o.czr_sektions.currentContentPickerType.bind(function(e){t(e)})}})}(wp.customize,jQuery,_),function(t,e,i){t.czrModuleMap=t.czrModuleMap||{},e.extend(t.czrModuleMap,{sek_module_picker_module:{crud:!1,name:t.czr_sektions.getRegisteredModuleProperty("sek_module_picker_module","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:i.extend({id:"",title:""},t.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_module_picker_module"))}}),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})}})}(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,a){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="";a.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>",a.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(t,e,i){t.czrInputMap=t.czrInputMap||{},e.extend(t.czrInputMap,{section_picker:function(e){t.czr_sektions.trigger("sek-refresh-dragzones",{type:"preset_section",input_container:this.container})}})}(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,a){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(!a.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":a.each(["bg-attachment","bg-scale","bg-repeat","bg-apply-overlay","bg-color-overlay","bg-opacity-overlay","bg-parallax","bg-parallax-force"],function(t){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,t,function(){var e=!1;switch(t){case"bg-color-overlay":case"bg-opacity-overlay":e=!a.isEmpty(i()+"")&&r.CZR_Helpers.isChecked(n.czr_Input("bg-apply-overlay")());break;case"bg-parallax-force":e=!a.isEmpty(i()+"")&&r.CZR_Helpers.isChecked(n.czr_Input("bg-parallax")());break;case"bg-scale":case"bg-repeat":e=!a.isEmpty(i()+"")&&!r.CZR_Helpers.isChecked(n.czr_Input("bg-parallax")());break;default:e=!a.isEmpty(i()+"")}return e})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}});break;case"bg-apply-overlay":a.each(["bg-color-overlay","bg-opacity-overlay"],function(e){try{r.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return!a.isEmpty(n.czr_Input("bg-image")()+"")&&r.CZR_Helpers.isChecked(i())})}catch(e){r.errare(o.id+" => error in setInputVisibilityDeps",e)}});break;case"bg-parallax":a.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=!a.isEmpty(n.czr_Input("bg-image")()+"")&&r.CZR_Helpers.isChecked(i());break;case"bg-repeat":case"bg-scale":e=!a.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")})}})}}};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:a.extend({id:"",title:""},r.czr_sektions.getDefaultItemModelFromRegisteredModuleData("sek_level_bg_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(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-breakpoint":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"custom-breakpoint",function(){return e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_level_breakpoint_module:{mthds:t,crud:!1,name:i.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:n.extend({id:"",title:""},i.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(l,d,u){var e={initialize:function(e,t){var i=this;i.inputConstructor=l.CZRInput.extend(i.CZRInputConstructor||{}),i.itemConstructor=l.CZRItem.extend(i.CZRItemConstructor||{}),l.CZRDynModule.prototype.initialize.call(i,e,t)},CZRInputConstructor:{range_simple:function(e){var t,i=this,n=d(".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 l.errare("Error when getting the module registration params",e)}if(u.isUndefined(t.level_id))l.errare("Error : missing column id",er);else if(i.columnId=t.level_id,i.columnModel=d.extend(!0,{},l.czr_sektions.getLevelModel(i.columnId)),i.parentSectionModel=l.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 a,s=l.czr_sektions.getLevelModel(i.columnId),c="_not_set_";"no_match"!=s?(s.options&&s.options.width&&s.options.width["custom-width"]&&u.isNumber(s.options.width["custom-width"])?c=s.options.width["custom-width"]:s&&s.width&&u.isNumber(+s.width)&&(c=s.width),a="_not_set_"!==c?c:"_not_set_"===i()?Math.floor(100/i.colNb):i(),a=1*+parseFloat(a).toFixed(3),(!u.isNumber(a)||100<a||a<0)&&(l.errare("Error => invalid column width",a),a=50),r.on("input",function(e,t){o.val(d(this).val()).trigger("input",t)}),o.on("input",u.debounce(function(e,t){r.val(d(this).val()),t&&t.is_init||i(d(this).val())},300)),o.on("input",u.debounce(function(e,t){t&&(t.is_init||t.is_resize_column_trigger)||i.sayItToApi(d(this).val())},300)),r.val(a).trigger("input",{is_init:!0})):l.errare("sek_level_width_column module => invalid column model")}else l.errare("sek_level_width_column module => invalid parent section model");else l.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&&l.errare("sek_level_width_column module => invalid sister column model"),l.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})}}};l.czrModuleMap=l.czrModuleMap||{},d.extend(l.czrModuleMap,{sek_level_width_column:{mthds:e,crud:!1,name:l.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:""},l.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"use-custom-breakpoint":i.czr_sektions.scheduleVisibilityOfInputId.call(e,"global-custom-breakpoint",function(){return e()})}})}}};i.czrModuleMap=i.czrModuleMap||{},e.extend(i.czrModuleMap,{sek_global_breakpoint:{mthds:t,crud:!1,name:i.czr_sektions.getRegisteredModuleProperty("sek_global_breakpoint","name"),has_mod_opt:!1,ready_on_section_expanded:!0,defaultItemModel:n.extend({id:"",title:""},i.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,a){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(!a.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":a.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":a.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:a.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_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,a){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(!a.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":a.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":a.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"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,a){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(!a.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":a.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":a.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:!0,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:!0,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(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;n.module;n.czr_Input.each(function(i){switch(i.id){case"use_custom_bg_color_on_hover":r.each(["bg_color_hover"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare("Button module => error in setInputVisibilityDeps",e)}});break;case"use_box_shadow":r.each(["push_effect"],function(e){try{o.czr_sektions.scheduleVisibilityOfInputId.call(i,e,function(){return i()})}catch(e){o.errare("Button module => error in setInputVisibilityDeps",e)}});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;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")()})}})}}};o.czrModuleMap=o.czrModuleMap||{},e.extend(o.czrModuleMap,{czr_font_child:{mthds:t,crud:!1,name:o.czr_sektions.getRegisteredModuleProperty("czr_font_child","name"),has_mod_opt:!1,ready_on_section_expanded:!1,ready_on_control_event:"sek-accordion-expanded",defaultItemModel:o.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,_);
assets/czr/sek/js/ccat-sek-preview.js CHANGED
@@ -715,11 +715,9 @@ var SekPreviewPrototype = SekPreviewPrototype || {};
715
  parentSektionWidth,
716
  $resizedColumn,
717
  resizedColumnWidthInPercent,
718
-
719
  //calculate the number of column in this section, excluding the columns inside nested sections if any
720
  colNumber,
721
  $sisterColumn,
722
-
723
  isLastColumn;
724
 
725
  // We won't fire resizable for single column sektions
@@ -1949,11 +1947,11 @@ var SekPreviewPrototype = SekPreviewPrototype || {};
1949
  $(this).remove();
1950
  });
1951
  },
1952
-
1953
  'sek-display-level-ui' : function( params ) {
1954
  var $elToFocusOn = $('[data-sek-id="' + params.id + '"]' );
1955
  if ( $elToFocusOn.length > 0 ) {
1956
- $elToFocusOn.trigger('click');
1957
  self.printLevelUI($elToFocusOn);
1958
  }
1959
  },
715
  parentSektionWidth,
716
  $resizedColumn,
717
  resizedColumnWidthInPercent,
 
718
  //calculate the number of column in this section, excluding the columns inside nested sections if any
719
  colNumber,
720
  $sisterColumn,
 
721
  isLastColumn;
722
 
723
  // We won't fire resizable for single column sektions
1947
  $(this).remove();
1948
  });
1949
  },
1950
+ // triggered when navigating the level tree
1951
  'sek-display-level-ui' : function( params ) {
1952
  var $elToFocusOn = $('[data-sek-id="' + params.id + '"]' );
1953
  if ( $elToFocusOn.length > 0 ) {
1954
+ //$elToFocusOn.trigger('click'); //<= the click is not needed anymore since June 2019, we trigger the generation of the level options on 'click' in the level tree
1955
  self.printLevelUI($elToFocusOn);
1956
  }
1957
  },
assets/czr/sek/js/ccat-sek-preview.min.js CHANGED
@@ -1 +1 @@
1
- var SekPreviewPrototype=SekPreviewPrototype||{};!function(a,s,i){s.extend(SekPreviewPrototype,{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()}),s("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(),s("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=[];s('[data-sek-level="location"]').each(function(){e.push(s(this).data("sek-id"))}),a.preview.send("sek-active-locations-in-preview",{active_locations:e})};a.preview.bind("sek-request-active-locations",e),e()},deactivateLinks:function(e){e=e||{};s("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).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.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"),0<i.length&&i.removeClass("sek-active-ui sek-highlight-active-ui"),n.activeUIChangedRecently(Date.now())}),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,p,h){p.extend(SekPreviewPrototype,{setupSortable:function(){var a=this;return this.sortableDefaultParams={placeholder:"sortable-placeholder",over:function(e,t){},cursorAt:{top:0,left:0},tolerance:"pointer"},p('[data-sek-level="location"]').each(function(){a.makeSektionsSortableInLocation(p(this).data("sek-id"))}),p("body").on("sek-section-added sek-level-refreshed",'[data-sek-level="location"]',function(e,t){a.makeSektionsSortableInLocation(p(this).data("sek-id"))}),p('[data-sek-level="location"]').each(function(){p(this).find('[data-sek-level="section"]').each(function(){a.makeColumnsSortableInSektion(p(this).data("sek-id"))})}),p("body").on("sek-columns-refreshed sek-section-added",'[data-sek-level="section"]',function(e){a.makeColumnsSortableInSektion(p(this).data("sek-id"))}),p("body").on("sek-level-refreshed",'[data-sek-level="location"]',function(e,t){p(this).find('[data-sek-level="section"]').each(function(){a.makeColumnsSortableInSektion(p(this).data("sek-id"))})}),p('[data-sek-level="location"]').each(function(){p(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(p(this).data("sek-id"))})}),p("body").on("sek-modules-refreshed",'[data-sek-level="column"]',function(){a.makeModulesSortableInColumn(p(this).data("sek-id"))}),p("body").on("sek-columns-refreshed",'[data-sek-level="section"]',function(){p(this).find(".sek-sektion-inner").first().children('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(p(this).data("sek-id"))})}),p("body").on("sek-level-refreshed",'[data-sek-level="location"]',function(e,t){p(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(p(this).data("sek-id"))})}),p("body").on("sek-section-added",'[data-sek-level="location"]',function(e,t){p(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(p(this).data("sek-id"))})}),this},makeSektionsSortableInLocation:function(e){var a,i,t,n=this,s=[],o=[];p('[data-sek-id="'+e+'"]').each(function(){!0!==p(this).data("sek-is-global-location")&&(t=p.extend(!0,{},n.sortableDefaultParams),p(this).sortable(h.extend(t,{handle:".sek-move-section",connectWith:'[data-sek-is-global-location="false"]',placeholder:{element:function(e){return p('<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){p("body").addClass("sek-moving-section"),$sourceLocation=t.item.closest('[data-sek-level="location"]'),a=$sourceLocation.data("sek-id"),$sourceLocation.children('[data-sek-level="section"]').each(function(){s.push(p(this).data("sek-id"))})},stop:function(e,t){p("body").removeClass("sek-moving-section"),o=[],$targetLocation=t.item.closest('[data-sek-level="location"]'),i=$targetLocation.data("sek-id"),$targetLocation.children('[data-sek-level="section"]').each(function(){o.push(p(this).data("sek-id"))}),m.preview.send("sek-move",{id:t.item.data("sek-id"),level:"section",newOrder:o,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=p.extend(!0,{},o.sortableDefaultParams),r=[],d=[],l=p('[data-sek-id="'+e+'"]').find(".sek-sektion-inner").first(),c=function(e){if(e=p.extend({forTarget:!0},e||{}),!h.isEmpty(p(this).data("_sortable_columns_css_classes_")))return p(this).data("_sortable_columns_css_classes_");var t,a=p(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 p(this).data("_sortable_columns_css_classes_",n),n};l.sortable(h.extend(t,{handle:".sek-move-column",connectWith:".sek-sektion-inner",over:function(e,t){var a,i=p(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==p(this).data("sek-is-sender")?(a=c.call(p(this)),h.isEmpty(a)||i.each(function(){p(this).removeClass(a.current).addClass(a.next)})):(a=c.call(p(this),{forTarget:!1}),h.isEmpty(a)||i.each(function(){p(this).addClass(a.current).removeClass(a.next)}))},out:function(e,t){var a,i=p(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==p(this).data("sek-is-sender")?(a=c.call(p(this)),h.isEmpty(a)||i.each(function(){p(this).addClass(a.current).removeClass(a.next)})):(a=c.call(p(this),{forTarget:!1}),h.isEmpty(a)||i.each(function(){p(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"),r=[],d=[],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(){r.push(p(this).data("sek-id"))}),p(this).data("sek-is-sender",!0),h.isEmpty(r)&&o.errare("column sortable => startOrder should not be empty")},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(){d.push(p(this).data("sek-id"))});var a,i=p(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==p(this).data("sek-is-sender")?(a=c.call(p(this)),h.isEmpty(a)||i.each(function(){p(this).removeClass(a.current).addClass(a.next)})):(a=c.call(p(this),{forTarget:!1}),h.isEmpty(a)||i.each(function(){p(this).addClass(a.current).removeClass(a.next)})),p('[data-sek-level="section"]').find(".sek-sektion-inner").each(function(){p(this).data("sek-is-sender",null).data("_sortable_columns_css_classes_",null)}),h.isEmpty(d)?o.errare("column sortable => newOrder should not be empty"):h.isEqual(d,r)&&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:d,from_sektion:from_sektion,to_sektion:to_sektion}),p('div[data-sek-id="'+from_sektion+'"]').trigger("sek-level-refreshed"),from_sektion!==to_sektion&&p('div[data-sek-id="'+to_sektion+'"]').trigger("sek-level-refreshed"))}}))},makeModulesSortableInColumn:function(e){var a,i,n,s,t,o,r,d,l,c=[],k=[],u=this;t=p.extend(!0,{},u.sortableDefaultParams),p('[data-sek-id="'+e+'"]').find(".sek-column-inner").first().sortable(h.extend(t,{handle:".sek-move-module",connectWith:".sek-column-inner",over:function(e,t){p('[data-sek-level="location"]').find(".sek-sortable-overing").each(function(){p(this).removeClass("sek-sortable-overing")}),p(e.target).addClass("sek-sortable-overing")},remove:function(e,t){d=t.item.closest('[data-sek-level="location"]'),to_location=d.data("sek-id"),l=!0===d.data("sek-is-global-location");var a=to_location!=from_location;return!(r!==l||!0===r&&!0===l&&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"),r=!0===o.data("sek-is-global-location"),c=[],k=[],p("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(p(this).data("sek-id"))}),h.isEmpty(c)&&u.errare("makeModulesSortableInColumn => startOrder should not be empty")},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(p(this).data("sek-id"))}),h.isEmpty(k)?u.errare("makeModulesSortableInColumn => newOrder should not be empty"):h.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")}),p("body").removeClass("sek-dragging-element"))}}))}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(l,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)}),c("body").on("sek-level-refreshed sek-modules-refreshed sek-columns-refreshed sek-section-added",'[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,r,d,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");d=n.index()+1==o,r=d?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),l.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:r.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(l,p,h){p.extend(SekPreviewPrototype,{printLevelUI:function(e){var t,a,i,n;if((h.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 r,d,l=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&&(r=c.find(".sek-column-inner").first().children("div[data-sek-level]").length==n.index()+1,d=0===n.index()):0<l.length&&(r=l.children('div[data-sek-level="section"]').length==n.index()+1,d=0===n.index()),i=h.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===l.data("sek-is-global-location"),is_last_section_in_parent:r,is_first_section_in_parent:d,is_header_location:!0===l.data("sek-is-header-location"),is_footer_location:!0===l.data("sek-is-footer-location")});break;case"column":var u=n.closest('div[data-sek-level="section"]');i=h.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")});break;case"module":var m=this.getRegisteredModuleProperty(n.data("sek-module-type"),"name");i=h.extend(i,{module_name:"not_set"!=m?m:""})}!0===p(".sektion-wrapper").data("sek-resizing-columns")&&h.contains(["column","module"],a)||(t=this.parseTemplate("#sek-dyn-ui-tmpl-"+a),p.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,t,o=this,r=function(){(e=p(this)).children(".sek-dyn-ui-wrapper").length<1||sekPreviewLocalized.isPreviewUIDebugMode||(e.data("UIisFadingOut",!0),e.children(".sek-dyn-ui-wrapper").stop(!0,!0).fadeOut({duration:150,complete:function(){p(this).remove(),e.data("UIisFadingOut",!1)}}))},a=function(){var e=p(this);clearTimeout(e.data("_toggle_ui_menu_")),e.data("_toggle_ui_menu_",setTimeout(function(){n.call(e)},1e4))},n=function(e){var t=p(this),a=p(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())};p("body").on("click",".sek-dyn-ui-location-inner",function(e){var t=p(this).find(".sek-dyn-ui-hamb-menu-wrapper");p(this).closest('[data-sek-level="section"]').find(".sek-dyn-ui-hamb-menu-wrapper").each(function(){n.call(p(this))}),n.call(t,!0),a.call(t)}),p("body").on("mouseenter mouseover mouseleave",".sek-dyn-ui-wrapper",h.throttle(function(e){var t=p(this).find(".sek-dyn-ui-hamb-menu-wrapper");h.isUndefined(t.data("_toggle_ui_menu_"))||t.hasClass("sek-collapsed")||0<t.length&&a.call(t)},50)),p("body").on("click",".sek-minimize-ui",function(e){p(this).closest(".sek-dyn-ui-location-type").slideToggle("fast")}),p("body").on("mouseenter",".sek-wp-content-wrapper",function(e){0<(t=p(this)).children(".sek-dyn-ui-wrapper").length&&!0!==t.data("UIisFadingOut")||(i=o.parseTemplate("#sek-dyn-ui-tmpl-wp-content"),p.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){p(this).data("UIisFadingOut",!0),t=p(this),p(this).children(".sek-dyn-ui-wrapper").stop(!0,!0).fadeOut({duration:150,complete:function(){p(this).remove(),t.data("UIisFadingOut",!1)}})});var d=function(n,e){var t,s;h.isUndefined(e)||e.length<1?(t=p("body").find("[data-sek-level]"),s="printOrScheduleRemoval"):(t=e,s="mayBeRemove"),t.each(function(){var e=p(this)[0].getBoundingClientRect(),t=n.x<=e.right&&e.left<=n.x,a=n.y>=e.top&&e.bottom>=n.y,i=p(this);switch(s){case"mayBeRemove":i.data("sek-ui-removal-scheduled",!1),t&&a||r.call(i);break;case"printOrScheduleRemoval":t&&a?(i.data("sek-ui-removal-scheduled",!1),o.printLevelUI(i)):!0!==i.data("sek-ui-removal-scheduled")&&(i.data("sek-ui-removal-scheduled",!0),i.children(".sek-dyn-ui-wrapper").find(".sek-is-expanded").length<1?d(n,i):h.delay(function(){!0===i.data("sek-ui-removal-scheduled")&&d(o.mouseMovedRecently(),i)},3500))}})};o.mouseMovedRecently=new l.Value({}),o.mouseMovedRecently.bind(function(e){var k,t,a;h.isEmpty(e)?(p("body").stop(!0,!0).find(".sek-add-content-button").each(function(){p(this).fadeOut({duration:200,complete:function(){p(this).remove()}})}),p("body").stop(!0,!0).find("[data-sek-level]").each(function(){p(this).children(".sek-dyn-ui-wrapper").find(".sek-is-expanded").length<1&&r.call(p(this))})):(p("body").find('div[data-sek-level="location"]').each(function(){var e;$sectionCollection=p(this).children('div[data-sek-level="section"]'),i=o.parseTemplate("#sek-tmpl-add-content-button"),t=p(this).data("sek-id"),a=!0===p(this).data("sek-is-global-location"),$sectionCollection.each(function(){0<p(this).find(".sek-add-content-button").length||(p.when(p(this).prepend(i({location:t,is_global_location:a}))).done(function(){e=p(this).find(".sek-add-content-button"),p(this).data("sek-id")&&e.attr("data-sek-before-section",p(this).data("sek-id")),e.fadeIn(300)}),$sectionCollection.length==p(this).index()+1&&p.when(p(this).append(i({is_last:!0,location:t,is_global_location:a}))).done(function(){e=p(this).find(".sek-add-content-button").last(),p(this).data("sek-id")&&e.attr("data-sek-after-section",p(this).data("sek-id")),e.fadeIn(300)}))})}),p(".sek-empty-location-placeholder").each(function(){0<p(this).find(".sek-add-content-button").length||(t=p(this).closest('div[data-sek-level="location"]').data("sek-id"),a=!0===p(this).closest('div[data-sek-level="location"]').data("sek-is-global-location"),p.when(p(this).append(i({location:t,is_global_location:a}))).done(function(){$btn_el=p(this).find(".sek-add-content-button"),$btn_el.attr("data-sek-is-first-section",!0),$btn_el.fadeIn(300)}))}),k=e,p("body").find(".sek-add-content-button").each(function(){var e=p(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,r=i<40||n<40,d=0<s&&s<40||0<o&&o<40,l=a<=e.right&&e.left<=a,c=t>=e.top&&e.bottom>=t;p(this).toggleClass("sek-mouse-is-close",(r||c)&&(d||l))}),d(e))});var s=function(){clearTimeout(p(window).data("_scroll_move_timer_")),o.mouseMovedRecently.set({})};return p(window).on("mousemove scroll",h.throttle(function(e){o.mouseMovedRecently({x:e.clientX,y:e.clientY}),clearTimeout(p(window).data("_scroll_move_timer_")),p(window).data("_scroll_move_timer_",setTimeout(function(){o.mouseMovedRecently.set({})},4e3))},50)),l.preview.bind("sek-drag-start",function(){s()}),p("body").on("sek-section-added",'[data-sek-level="location"]',function(e,t){s()}),this}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(u,m,p){m.extend(SekPreviewPrototype,{scheduleUiClickReactions:function(){var k=this;m("body").on("click",function(e){u.preview.send("sek-clean-target-drop-zone");var t,a=m(e.target),i=a.closest('[data-sek-level="location"]'),n=a.closest("[data-sek-level]"),s=a.closest("[data-sek-click-on]"),o=i.data("sek-id"),r=n.data("sek-level"),d=n.data("sek-id");switch("add-content"==a.data("sek-click-on")||0<a.closest("[data-sek-click-on]").length&&"add-content"==a.closest("[data-sek-click-on]").data("sek-click-on")?"addContentButton":!p.isEmpty(a.data("sek-click-on"))||0<s.length?"UIIcon":"module"==n.data("sek-level")?"moduleWrapper":"column"==n.data("sek-level")&&!0===n.data("sek-no-modules")?"noModulesColumn":a.hasClass("sek-to-json")?"sekToJson":"column"==n.data("sek-level")?"columnOutsideModules":"section"==n.data("sek-level")?"sectionOutsideColumns":p.isEmpty(a.data("sek-add"))?a.hasClass("sek-wp-content-wrapper")||a.hasClass("sek-wp-content-dyn-ui")?"wpContent":a.hasClass("sek-edit-wp-content")?"editWpContent":"inactiveZone":"addSektion"){case"addContentButton":var l=!0===a.closest("[data-sek-is-first-section]").data("sek-is-first-section");u.preview.send("sek-add-section",{location:o,level:"section",before_section:a.closest("[data-sek-before-section]").data("sek-before-section"),after_section:a.closest("[data-sek-after-section]").data("sek-after-section"),is_first_section:l,send_to_preview:!l});break;case"UIIcon":if(n.length<1)throw new Error("ERROR => sek-front-preview => No valid level dom element found");if(t=a.closest("[data-sek-click-on]").data("sek-click-on"),p.isEmpty(t))throw new Error("Invalid action");if(p.isEmpty(r)||p.isEmpty(d))throw new Error("ERROR => sek-front-preview => No valid level id found");k._send_(a,{action:t,location:o,level:r,id:d,was_triggered:!1});break;case"moduleWrapper":if(0<a.parent(".sek-dyn-ui-icons").length)return;k._send_(a,{action:"edit-module",level:r,id:d});break;case"noModulesColumn":if(0<a.parent(".sek-dyn-ui-icons").length)return;k._send_(a,{action:"pick-content",content_type:"module",level:r,id:d});break;case"columnOutsideModules":case"sectionOutsideColumns":k._send_(a,{action:"edit-options",location:o,level:r,id:d});break;case"addSektion":u.preview.send("sek-add-section",{location:o,level:a.data("sek-add")});break;case"sekToJson":u.preview.send("sek-to-json",{id:d});break;case"wpContent":u.preview.send("sek-notify",{type:"info",duration:8e3,message:sekPreviewLocalized.i18n["This content has been created with the WordPress editor."]});break;case"editWpContent":var c=a.closest("[data-sek-wp-edit-link]").data("sek-wp-edit-link");p.isEmpty(c)||window.open(c,"_blank");break;case"inactiveZone":u.preview.send("sek-click-on-inactive-zone")}})},_send_:function(e,t){var a=m.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"):""),u.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>',s("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){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()},4e3)))}if(!0===e.fullPageLoader){var n=s("<div>",{id:"nimble-full-page-loader-wrapper",class:"white-loader"});s("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})},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(s,r,d){r.extend(SekPreviewPrototype,{schedulePanelMsgReactions:function(){var o=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{o.mayBePrintLoader(e)}catch(e){s.errare("sek-clean-loader => error",e)}},"sek-clean-loader":function(e){try{o.cleanLoader(e)}catch(e){s.errare("sek-clean-loader => error",e)}},"sek-remove":function(e){var t,a=e.apiParams.id,i=r('div[data-sek-id="'+a+'"]');switch(e.apiParams.action){case"sek-remove-section":o.mayBePrintLoader({loader_located_in_level_id:e.apiParams.location}),!0===e.apiParams.is_nested?t=o.ajaxRefreshModulesAndNestedSections(e):((d.isEmpty(a)||i.length<1)&&o.errare("reactToPanelMsg => sek-remove => invalid candidate id => ",a),r("body").find(i).remove(),r('[data-sek-id="'+e.apiParams.location+'"]').trigger("sek-level-refreshed"));break;case"sek-remove-column":t=o.ajaxRefreshColumns(e);break;case"sek-remove-module":t=o.ajaxRefreshModulesAndNestedSections(e)}return d.isEmpty(t)?r.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=o.ajaxAddSektion(e);break;case"sek-duplicate-column":e.apiParams.id=e.cloneId,t=o.ajaxRefreshColumns(e);break;case"sek-duplicate-module":e.apiParams.id=e.cloneId,t=o.ajaxRefreshModulesAndNestedSections(e)}return t},"sek-refresh-level":function(s){return o.mayBePrintLoader({loader_located_in_level_id:s.apiParams.id}),o.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){o.errare("ERROR reactToPanelMsg => sek-refresh-level => ",e),r('[data-sek-id="'+s.apiParams.id+'"]').trigger("sek-ajax-error")}).done(function(e){var t="";e.data&&e.data.contents?t=e.data.contents:(o.errare("SekPreviewPrototype::sek-refresh-level => ajax_response.data.contents is undefined ",e),o.errare("params ?",s));var a='<span class="sek-placeholder" data-sek-placeholder-for="'+s.apiParams.id+'"></span>',i=r('div[data-sek-id="'+s.apiParams.id+'"]');if(i.length<1)o.errare("reactToPanelMsg => sek-refresh-level ajax done => the level to refresh is not rendered in the page",e);else{i.before(a);var n=r('[data-sek-placeholder-for="'+s.apiParams.id+'"]');i.remove(),d.isUndefined(t)?o.errare("reactToPanelMsg => sek-refresh-level ajax done => missing html_content",e):n.after(t),n.remove(),r('[data-sek-id="'+s.apiParams.id+'"]').trigger("sek-level-refreshed",{level:s.apiParams.level,id:s.apiParams.id})}})},"sek-move":function(e){switch(e.apiParams.action){case"sek-move-column":if(e.apiParams.from_sektion!=e.apiParams.to_sektion){var t=r.extend(!0,{},e),a=r.extend(!0,{},e);r('[data-sek-id="'+e.apiParams.from_sektion+'"]',".sektion-wrapper").find('div[data-sek-level="column"]').length<1?s.preview.send("sek-add-column",{in_sektion:e.apiParams.from_sektion,autofocus:!1}):(t.apiParams=d.extend(t.apiParams,{in_sektion:e.apiParams.from_sektion,action:"sek-refresh-columns-in-sektion"}),o.ajaxRefreshColumns(t)),a.apiParams=d.extend(a.apiParams,{in_sektion:e.apiParams.to_sektion,action:"sek-refresh-columns-in-sektion"}),o.ajaxRefreshColumns(a)}break;case"sek-move-module":var i=r.extend(!0,{},e),n=r.extend(!0,{},e);i.apiParams.from_column!=i.apiParams.to_column&&(i.apiParams=d.extend(i.apiParams,{in_column:i.apiParams.from_column,in_sektion:i.apiParams.from_sektion,action:"sek-refresh-modules-in-column"}),o.ajaxRefreshModulesAndNestedSections(i)),e.apiParams=d.extend(n.apiParams,{in_column:n.apiParams.to_column,in_sektion:n.apiParams.to_sektion,action:"sek-refresh-modules-in-column"}),o.ajaxRefreshModulesAndNestedSections(n),r('[data-sek-id="'+e.apiParams.to_column+'"]',".sektion-wrapper").find(".sek-column-inner").sortable("refresh")}},"sek-edit-options":function(e){o.activeLevelUI(e.uiParams.id)},"sek-edit-module":function(e){o.activeLevelUI(e.uiParams.id)},"sek-drag-start":function(n){var s=1,o=!1;r('[data-sek-level="location"]').children('[data-sek-level="section"]').each(function(){var e=r(this).data("sek-id"),t=r(this).find('[data-sek-level="column"]').length,a=r(this).find('[data-sek-level="module"]').length,i=t<2&&a<1;!o&&!i&&r('[data-drop-zone-before-section="'+e+'"]').length<1&&r(this).before('<div class="sek-content-'+n.type+'-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="between-sections" data-drop-zone-before-section="'+e+'"></div>'),i||s!=r(".sektion-wrapper").children('[data-sek-level="section"]').length||r(this).after('<div class="sek-content-'+n.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}),r(".sek-empty-location-placeholder").each(function(){r.when(r(this).append('<div class="sek-content-'+n.type+'-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="in-empty-location"></div>'))}),"module"==n.type&&r('[data-sek-level="column"]').each(function(){var e=r(this).children(".sek-column-inner").children('[data-sek-level="module"]'),t=r(this).children(".sek-column-inner").children('[data-sek-is-nested="true"]');e=e.add(t);var a=1;e.each(function(){r('[data-drop-zone-before-module-or-nested-section="'+r(this).data("sek-id")+'"]').length<1&&r(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="'+r(this).data("sek-id")+'"></div>'),a==e.length&&r('[data-drop-zone-after-module-or-nested-section="'+r(this).data("sek-id")+'"]').length<1&&r(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="'+r(this).data("sek-id")+'"></div>'),a++})}),r("body").addClass("sek-dragging"),d.delay(function(){r(".sek-dynamic-drop-zone").css({opacity:1})},100)},"sek-drag-stop":function(e){r("body").removeClass("sek-dragging"),r(".sortable-placeholder").remove(),r(".sek-dynamic-drop-zone").remove()},"sek-animate-to-level":function(e){var t=r('[data-sek-id="'+e.id+'"]');0<t.length&&r("html, body").animate({scrollTop:t.offset().top-100},200)},"sek-clean-level-uis":function(e){r(".sek-dyn-ui-wrapper").each(function(){r(this).remove()})},"sek-display-level-ui":function(e){var t=r('[data-sek-id="'+e.id+'"]');0<t.length&&(t.trigger("click"),o.printLevelUI(t))},"sek-set-double-click-target":function(e){if(r(".sek-target-for-double-click-insertion").removeClass("sek-target-for-double-click-insertion"),d.isObject(e)&&e.id){var t=r('[data-sek-id="'+e.id+'"]');1===t.length&&t.addClass("sek-target-for-double-click-insertion")}},"sek-reset-double-click-target":function(e){r(".sek-target-for-double-click-insertion").removeClass("sek-target-for-double-click-insertion")},"sek-update-html-in-selector":function(e){var t=r('[data-sek-id="'+e.id+'"]'),a=r(e.selector,t);0<t.length&&0<a.length?a.html(e.html):o.errare("reactToPanelMsg => sek-update-html-in-selector => missing level or target dom element",e)}};d.each(e,function(e,i){s.preview.bind(i,function(a){a=d.extend({location_skope_id:"",apiParams:{},uiParams:{}},a||{});r("body").addClass(i);try{r.when(d.isFunction(e)?e(a):o[e].call(o,a)).done(function(e){var t;t=e,s.preview.send([i,"done"].join("_"),a),d.isUndefined(t)||t.data&&t.data.setting_validities&&s.preview.send("selective-refresh-setting-validities",t.data.setting_validities)}).fail(function(){s.preview.send("sek-notify",{type:"error",duration:1e4,message:sekPreviewLocalized.i18n["Something went wrong, please refresh this page."]})}).always(function(e){r("body").removeClass(i)}).then(function(){s.preview.trigger("control-panel-requested-action-done",{action:i,args:a})})}catch(e){o.errare("reactToPanelMsg => Error when firing the callback of "+i,e),r("body").removeClass(i)}})})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,o,r){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}).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||r.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+'"]'),!r.isEmpty(n.apiParams.before_section)&&0<$beforeCandidate.length?$beforeCandidate.before(a):!r.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)}).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,r,e){r.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=r('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(),r(".sektion-wrapper").find(".sek-placeholder").after(t),r(".sektion-wrapper").find(".sek-placeholder").remove(),o.preview.trigger("sek-refresh-stylesheet",n),r('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),r('[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)),r('[data-sek-id="'+a.apiParams.resized_column+'"]').css({width:"",height:""}),i.appendDynStyleSheet(a.location_skope_id,t),r('div[data-sek-id="'+a.apiParams.in_sektion+'"]').trigger("sek-columns-refreshed")}).fail(function(e){i.errare("ERROR reactToPanelMsg => sek-resize-columns => ",e),r('[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-"+e;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?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,r){o.extend(SekPreviewPrototype,{parseTemplate:r.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||r.template(o(t).html(),n)}catch(e){i.errare("preview => parseTemplate => problem when parsing tmpl =>"+t,e)}return a(e)}}),_prettyPrintLog:function(e){e=r.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},e);var t,a=Array.from(e.consoleArguments);return a=r.isEmpty(r.filter(a,function(e){return!r.isString(e)}))?a.join(" "):JSON.stringify(a.join(" ")),["%c "+(t=a,r.isString(t)?300<t.length?t.substr(0,299)+"...":t:""),["background:"+e.bgCol,"color:"+e.textCol,"display: block;"].join(";")]},_wrapLogInsideTags:function(e,t,a){r.isUndefined(console)&&"function"!=typeof window.console.log||(sekPreviewLocalized.isDevMode?r.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||(r.isObject(e)?e:{})).ajaxUrl||sekPreviewLocalized.ajaxUrl,i=sekPreviewLocalized.frontNonce,n=o.Deferred(),s=r.extend({action:"",withNonce:!1},e);return"https:"==document.location.protocol&&(a=a.replace("http://","https://")),r.isEmpty(s.action)||!r.isString(s.action)?(t.errare("self.doAjax : unproper action provided"),n.resolve().promise()):(s[i.id]=i.handle,!r.isObject(i)||r.isUndefined(i.id)||r.isUndefined(i.handle)?(t.errare("self.doAjax : unproper nonce"),n.resolve().promise()):(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&&!r.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 r.isUndefined(e)&&a.errare("getLevelModel => a collection must be provided"),r.each(e,function(e){"no_match"==i&&(t===e.id?i=e:r.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,{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()}),s("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(),s("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=[];s('[data-sek-level="location"]').each(function(){e.push(s(this).data("sek-id"))}),a.preview.send("sek-active-locations-in-preview",{active_locations:e})};a.preview.bind("sek-request-active-locations",e),e()},deactivateLinks:function(e){e=e||{};s("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).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.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"),0<i.length&&i.removeClass("sek-active-ui sek-highlight-active-ui"),n.activeUIChangedRecently(Date.now())}),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,p,h){p.extend(SekPreviewPrototype,{setupSortable:function(){var a=this;return this.sortableDefaultParams={placeholder:"sortable-placeholder",over:function(e,t){},cursorAt:{top:0,left:0},tolerance:"pointer"},p('[data-sek-level="location"]').each(function(){a.makeSektionsSortableInLocation(p(this).data("sek-id"))}),p("body").on("sek-section-added sek-level-refreshed",'[data-sek-level="location"]',function(e,t){a.makeSektionsSortableInLocation(p(this).data("sek-id"))}),p('[data-sek-level="location"]').each(function(){p(this).find('[data-sek-level="section"]').each(function(){a.makeColumnsSortableInSektion(p(this).data("sek-id"))})}),p("body").on("sek-columns-refreshed sek-section-added",'[data-sek-level="section"]',function(e){a.makeColumnsSortableInSektion(p(this).data("sek-id"))}),p("body").on("sek-level-refreshed",'[data-sek-level="location"]',function(e,t){p(this).find('[data-sek-level="section"]').each(function(){a.makeColumnsSortableInSektion(p(this).data("sek-id"))})}),p('[data-sek-level="location"]').each(function(){p(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(p(this).data("sek-id"))})}),p("body").on("sek-modules-refreshed",'[data-sek-level="column"]',function(){a.makeModulesSortableInColumn(p(this).data("sek-id"))}),p("body").on("sek-columns-refreshed",'[data-sek-level="section"]',function(){p(this).find(".sek-sektion-inner").first().children('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(p(this).data("sek-id"))})}),p("body").on("sek-level-refreshed",'[data-sek-level="location"]',function(e,t){p(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(p(this).data("sek-id"))})}),p("body").on("sek-section-added",'[data-sek-level="location"]',function(e,t){p(this).find('[data-sek-level="column"]').each(function(){a.makeModulesSortableInColumn(p(this).data("sek-id"))})}),this},makeSektionsSortableInLocation:function(e){var a,i,t,n=this,s=[],o=[];p('[data-sek-id="'+e+'"]').each(function(){!0!==p(this).data("sek-is-global-location")&&(t=p.extend(!0,{},n.sortableDefaultParams),p(this).sortable(h.extend(t,{handle:".sek-move-section",connectWith:'[data-sek-is-global-location="false"]',placeholder:{element:function(e){return p('<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){p("body").addClass("sek-moving-section"),$sourceLocation=t.item.closest('[data-sek-level="location"]'),a=$sourceLocation.data("sek-id"),$sourceLocation.children('[data-sek-level="section"]').each(function(){s.push(p(this).data("sek-id"))})},stop:function(e,t){p("body").removeClass("sek-moving-section"),o=[],$targetLocation=t.item.closest('[data-sek-level="location"]'),i=$targetLocation.data("sek-id"),$targetLocation.children('[data-sek-level="section"]').each(function(){o.push(p(this).data("sek-id"))}),m.preview.send("sek-move",{id:t.item.data("sek-id"),level:"section",newOrder:o,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=p.extend(!0,{},o.sortableDefaultParams),r=[],d=[],l=p('[data-sek-id="'+e+'"]').find(".sek-sektion-inner").first(),c=function(e){if(e=p.extend({forTarget:!0},e||{}),!h.isEmpty(p(this).data("_sortable_columns_css_classes_")))return p(this).data("_sortable_columns_css_classes_");var t,a=p(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 p(this).data("_sortable_columns_css_classes_",n),n};l.sortable(h.extend(t,{handle:".sek-move-column",connectWith:".sek-sektion-inner",over:function(e,t){var a,i=p(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==p(this).data("sek-is-sender")?(a=c.call(p(this)),h.isEmpty(a)||i.each(function(){p(this).removeClass(a.current).addClass(a.next)})):(a=c.call(p(this),{forTarget:!1}),h.isEmpty(a)||i.each(function(){p(this).addClass(a.current).removeClass(a.next)}))},out:function(e,t){var a,i=p(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==p(this).data("sek-is-sender")?(a=c.call(p(this)),h.isEmpty(a)||i.each(function(){p(this).addClass(a.current).removeClass(a.next)})):(a=c.call(p(this),{forTarget:!1}),h.isEmpty(a)||i.each(function(){p(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"),r=[],d=[],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(){r.push(p(this).data("sek-id"))}),p(this).data("sek-is-sender",!0),h.isEmpty(r)&&o.errare("column sortable => startOrder should not be empty")},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(){d.push(p(this).data("sek-id"))});var a,i=p(this).closest('[data-sek-level="section"]').find(".sek-sektion-inner").first().children('[data-sek-level="column"]');!0!==p(this).data("sek-is-sender")?(a=c.call(p(this)),h.isEmpty(a)||i.each(function(){p(this).removeClass(a.current).addClass(a.next)})):(a=c.call(p(this),{forTarget:!1}),h.isEmpty(a)||i.each(function(){p(this).addClass(a.current).removeClass(a.next)})),p('[data-sek-level="section"]').find(".sek-sektion-inner").each(function(){p(this).data("sek-is-sender",null).data("_sortable_columns_css_classes_",null)}),h.isEmpty(d)?o.errare("column sortable => newOrder should not be empty"):h.isEqual(d,r)&&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:d,from_sektion:from_sektion,to_sektion:to_sektion}),p('div[data-sek-id="'+from_sektion+'"]').trigger("sek-level-refreshed"),from_sektion!==to_sektion&&p('div[data-sek-id="'+to_sektion+'"]').trigger("sek-level-refreshed"))}}))},makeModulesSortableInColumn:function(e){var a,i,n,s,t,o,r,d,l,c=[],k=[],u=this;t=p.extend(!0,{},u.sortableDefaultParams),p('[data-sek-id="'+e+'"]').find(".sek-column-inner").first().sortable(h.extend(t,{handle:".sek-move-module",connectWith:".sek-column-inner",over:function(e,t){p('[data-sek-level="location"]').find(".sek-sortable-overing").each(function(){p(this).removeClass("sek-sortable-overing")}),p(e.target).addClass("sek-sortable-overing")},remove:function(e,t){d=t.item.closest('[data-sek-level="location"]'),to_location=d.data("sek-id"),l=!0===d.data("sek-is-global-location");var a=to_location!=from_location;return!(r!==l||!0===r&&!0===l&&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"),r=!0===o.data("sek-is-global-location"),c=[],k=[],p("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(p(this).data("sek-id"))}),h.isEmpty(c)&&u.errare("makeModulesSortableInColumn => startOrder should not be empty")},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(p(this).data("sek-id"))}),h.isEmpty(k)?u.errare("makeModulesSortableInColumn => newOrder should not be empty"):h.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")}),p("body").removeClass("sek-dragging-element"))}}))}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(l,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)}),c("body").on("sek-level-refreshed sek-modules-refreshed sek-columns-refreshed sek-section-added",'[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,r,d,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");d=n.index()+1==o,r=d?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),l.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:r.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(l,p,h){p.extend(SekPreviewPrototype,{printLevelUI:function(e){var t,a,i,n;if((h.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 r,d,l=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&&(r=c.find(".sek-column-inner").first().children("div[data-sek-level]").length==n.index()+1,d=0===n.index()):0<l.length&&(r=l.children('div[data-sek-level="section"]').length==n.index()+1,d=0===n.index()),i=h.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===l.data("sek-is-global-location"),is_last_section_in_parent:r,is_first_section_in_parent:d,is_header_location:!0===l.data("sek-is-header-location"),is_footer_location:!0===l.data("sek-is-footer-location")});break;case"column":var u=n.closest('div[data-sek-level="section"]');i=h.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")});break;case"module":var m=this.getRegisteredModuleProperty(n.data("sek-module-type"),"name");i=h.extend(i,{module_name:"not_set"!=m?m:""})}!0===p(".sektion-wrapper").data("sek-resizing-columns")&&h.contains(["column","module"],a)||(t=this.parseTemplate("#sek-dyn-ui-tmpl-"+a),p.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,t,o=this,r=function(){(e=p(this)).children(".sek-dyn-ui-wrapper").length<1||sekPreviewLocalized.isPreviewUIDebugMode||(e.data("UIisFadingOut",!0),e.children(".sek-dyn-ui-wrapper").stop(!0,!0).fadeOut({duration:150,complete:function(){p(this).remove(),e.data("UIisFadingOut",!1)}}))},a=function(){var e=p(this);clearTimeout(e.data("_toggle_ui_menu_")),e.data("_toggle_ui_menu_",setTimeout(function(){n.call(e)},1e4))},n=function(e){var t=p(this),a=p(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())};p("body").on("click",".sek-dyn-ui-location-inner",function(e){var t=p(this).find(".sek-dyn-ui-hamb-menu-wrapper");p(this).closest('[data-sek-level="section"]').find(".sek-dyn-ui-hamb-menu-wrapper").each(function(){n.call(p(this))}),n.call(t,!0),a.call(t)}),p("body").on("mouseenter mouseover mouseleave",".sek-dyn-ui-wrapper",h.throttle(function(e){var t=p(this).find(".sek-dyn-ui-hamb-menu-wrapper");h.isUndefined(t.data("_toggle_ui_menu_"))||t.hasClass("sek-collapsed")||0<t.length&&a.call(t)},50)),p("body").on("click",".sek-minimize-ui",function(e){p(this).closest(".sek-dyn-ui-location-type").slideToggle("fast")}),p("body").on("mouseenter",".sek-wp-content-wrapper",function(e){0<(t=p(this)).children(".sek-dyn-ui-wrapper").length&&!0!==t.data("UIisFadingOut")||(i=o.parseTemplate("#sek-dyn-ui-tmpl-wp-content"),p.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){p(this).data("UIisFadingOut",!0),t=p(this),p(this).children(".sek-dyn-ui-wrapper").stop(!0,!0).fadeOut({duration:150,complete:function(){p(this).remove(),t.data("UIisFadingOut",!1)}})});var d=function(n,e){var t,s;h.isUndefined(e)||e.length<1?(t=p("body").find("[data-sek-level]"),s="printOrScheduleRemoval"):(t=e,s="mayBeRemove"),t.each(function(){var e=p(this)[0].getBoundingClientRect(),t=n.x<=e.right&&e.left<=n.x,a=n.y>=e.top&&e.bottom>=n.y,i=p(this);switch(s){case"mayBeRemove":i.data("sek-ui-removal-scheduled",!1),t&&a||r.call(i);break;case"printOrScheduleRemoval":t&&a?(i.data("sek-ui-removal-scheduled",!1),o.printLevelUI(i)):!0!==i.data("sek-ui-removal-scheduled")&&(i.data("sek-ui-removal-scheduled",!0),i.children(".sek-dyn-ui-wrapper").find(".sek-is-expanded").length<1?d(n,i):h.delay(function(){!0===i.data("sek-ui-removal-scheduled")&&d(o.mouseMovedRecently(),i)},3500))}})};o.mouseMovedRecently=new l.Value({}),o.mouseMovedRecently.bind(function(e){var k,t,a;h.isEmpty(e)?(p("body").stop(!0,!0).find(".sek-add-content-button").each(function(){p(this).fadeOut({duration:200,complete:function(){p(this).remove()}})}),p("body").stop(!0,!0).find("[data-sek-level]").each(function(){p(this).children(".sek-dyn-ui-wrapper").find(".sek-is-expanded").length<1&&r.call(p(this))})):(p("body").find('div[data-sek-level="location"]').each(function(){var e;$sectionCollection=p(this).children('div[data-sek-level="section"]'),i=o.parseTemplate("#sek-tmpl-add-content-button"),t=p(this).data("sek-id"),a=!0===p(this).data("sek-is-global-location"),$sectionCollection.each(function(){0<p(this).find(".sek-add-content-button").length||(p.when(p(this).prepend(i({location:t,is_global_location:a}))).done(function(){e=p(this).find(".sek-add-content-button"),p(this).data("sek-id")&&e.attr("data-sek-before-section",p(this).data("sek-id")),e.fadeIn(300)}),$sectionCollection.length==p(this).index()+1&&p.when(p(this).append(i({is_last:!0,location:t,is_global_location:a}))).done(function(){e=p(this).find(".sek-add-content-button").last(),p(this).data("sek-id")&&e.attr("data-sek-after-section",p(this).data("sek-id")),e.fadeIn(300)}))})}),p(".sek-empty-location-placeholder").each(function(){0<p(this).find(".sek-add-content-button").length||(t=p(this).closest('div[data-sek-level="location"]').data("sek-id"),a=!0===p(this).closest('div[data-sek-level="location"]').data("sek-is-global-location"),p.when(p(this).append(i({location:t,is_global_location:a}))).done(function(){$btn_el=p(this).find(".sek-add-content-button"),$btn_el.attr("data-sek-is-first-section",!0),$btn_el.fadeIn(300)}))}),k=e,p("body").find(".sek-add-content-button").each(function(){var e=p(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,r=i<40||n<40,d=0<s&&s<40||0<o&&o<40,l=a<=e.right&&e.left<=a,c=t>=e.top&&e.bottom>=t;p(this).toggleClass("sek-mouse-is-close",(r||c)&&(d||l))}),d(e))});var s=function(){clearTimeout(p(window).data("_scroll_move_timer_")),o.mouseMovedRecently.set({})};return p(window).on("mousemove scroll",h.throttle(function(e){o.mouseMovedRecently({x:e.clientX,y:e.clientY}),clearTimeout(p(window).data("_scroll_move_timer_")),p(window).data("_scroll_move_timer_",setTimeout(function(){o.mouseMovedRecently.set({})},4e3))},50)),l.preview.bind("sek-drag-start",function(){s()}),p("body").on("sek-section-added",'[data-sek-level="location"]',function(e,t){s()}),this}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(u,m,p){m.extend(SekPreviewPrototype,{scheduleUiClickReactions:function(){var k=this;m("body").on("click",function(e){u.preview.send("sek-clean-target-drop-zone");var t,a=m(e.target),i=a.closest('[data-sek-level="location"]'),n=a.closest("[data-sek-level]"),s=a.closest("[data-sek-click-on]"),o=i.data("sek-id"),r=n.data("sek-level"),d=n.data("sek-id");switch("add-content"==a.data("sek-click-on")||0<a.closest("[data-sek-click-on]").length&&"add-content"==a.closest("[data-sek-click-on]").data("sek-click-on")?"addContentButton":!p.isEmpty(a.data("sek-click-on"))||0<s.length?"UIIcon":"module"==n.data("sek-level")?"moduleWrapper":"column"==n.data("sek-level")&&!0===n.data("sek-no-modules")?"noModulesColumn":a.hasClass("sek-to-json")?"sekToJson":"column"==n.data("sek-level")?"columnOutsideModules":"section"==n.data("sek-level")?"sectionOutsideColumns":p.isEmpty(a.data("sek-add"))?a.hasClass("sek-wp-content-wrapper")||a.hasClass("sek-wp-content-dyn-ui")?"wpContent":a.hasClass("sek-edit-wp-content")?"editWpContent":"inactiveZone":"addSektion"){case"addContentButton":var l=!0===a.closest("[data-sek-is-first-section]").data("sek-is-first-section");u.preview.send("sek-add-section",{location:o,level:"section",before_section:a.closest("[data-sek-before-section]").data("sek-before-section"),after_section:a.closest("[data-sek-after-section]").data("sek-after-section"),is_first_section:l,send_to_preview:!l});break;case"UIIcon":if(n.length<1)throw new Error("ERROR => sek-front-preview => No valid level dom element found");if(t=a.closest("[data-sek-click-on]").data("sek-click-on"),p.isEmpty(t))throw new Error("Invalid action");if(p.isEmpty(r)||p.isEmpty(d))throw new Error("ERROR => sek-front-preview => No valid level id found");k._send_(a,{action:t,location:o,level:r,id:d,was_triggered:!1});break;case"moduleWrapper":if(0<a.parent(".sek-dyn-ui-icons").length)return;k._send_(a,{action:"edit-module",level:r,id:d});break;case"noModulesColumn":if(0<a.parent(".sek-dyn-ui-icons").length)return;k._send_(a,{action:"pick-content",content_type:"module",level:r,id:d});break;case"columnOutsideModules":case"sectionOutsideColumns":k._send_(a,{action:"edit-options",location:o,level:r,id:d});break;case"addSektion":u.preview.send("sek-add-section",{location:o,level:a.data("sek-add")});break;case"sekToJson":u.preview.send("sek-to-json",{id:d});break;case"wpContent":u.preview.send("sek-notify",{type:"info",duration:8e3,message:sekPreviewLocalized.i18n["This content has been created with the WordPress editor."]});break;case"editWpContent":var c=a.closest("[data-sek-wp-edit-link]").data("sek-wp-edit-link");p.isEmpty(c)||window.open(c,"_blank");break;case"inactiveZone":u.preview.send("sek-click-on-inactive-zone")}})},_send_:function(e,t){var a=m.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"):""),u.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>',s("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){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()},4e3)))}if(!0===e.fullPageLoader){var n=s("<div>",{id:"nimble-full-page-loader-wrapper",class:"white-loader"});s("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})},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(s,r,d){r.extend(SekPreviewPrototype,{schedulePanelMsgReactions:function(){var o=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{o.mayBePrintLoader(e)}catch(e){s.errare("sek-clean-loader => error",e)}},"sek-clean-loader":function(e){try{o.cleanLoader(e)}catch(e){s.errare("sek-clean-loader => error",e)}},"sek-remove":function(e){var t,a=e.apiParams.id,i=r('div[data-sek-id="'+a+'"]');switch(e.apiParams.action){case"sek-remove-section":o.mayBePrintLoader({loader_located_in_level_id:e.apiParams.location}),!0===e.apiParams.is_nested?t=o.ajaxRefreshModulesAndNestedSections(e):((d.isEmpty(a)||i.length<1)&&o.errare("reactToPanelMsg => sek-remove => invalid candidate id => ",a),r("body").find(i).remove(),r('[data-sek-id="'+e.apiParams.location+'"]').trigger("sek-level-refreshed"));break;case"sek-remove-column":t=o.ajaxRefreshColumns(e);break;case"sek-remove-module":t=o.ajaxRefreshModulesAndNestedSections(e)}return d.isEmpty(t)?r.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=o.ajaxAddSektion(e);break;case"sek-duplicate-column":e.apiParams.id=e.cloneId,t=o.ajaxRefreshColumns(e);break;case"sek-duplicate-module":e.apiParams.id=e.cloneId,t=o.ajaxRefreshModulesAndNestedSections(e)}return t},"sek-refresh-level":function(s){return o.mayBePrintLoader({loader_located_in_level_id:s.apiParams.id}),o.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){o.errare("ERROR reactToPanelMsg => sek-refresh-level => ",e),r('[data-sek-id="'+s.apiParams.id+'"]').trigger("sek-ajax-error")}).done(function(e){var t="";e.data&&e.data.contents?t=e.data.contents:(o.errare("SekPreviewPrototype::sek-refresh-level => ajax_response.data.contents is undefined ",e),o.errare("params ?",s));var a='<span class="sek-placeholder" data-sek-placeholder-for="'+s.apiParams.id+'"></span>',i=r('div[data-sek-id="'+s.apiParams.id+'"]');if(i.length<1)o.errare("reactToPanelMsg => sek-refresh-level ajax done => the level to refresh is not rendered in the page",e);else{i.before(a);var n=r('[data-sek-placeholder-for="'+s.apiParams.id+'"]');i.remove(),d.isUndefined(t)?o.errare("reactToPanelMsg => sek-refresh-level ajax done => missing html_content",e):n.after(t),n.remove(),r('[data-sek-id="'+s.apiParams.id+'"]').trigger("sek-level-refreshed",{level:s.apiParams.level,id:s.apiParams.id})}})},"sek-move":function(e){switch(e.apiParams.action){case"sek-move-column":if(e.apiParams.from_sektion!=e.apiParams.to_sektion){var t=r.extend(!0,{},e),a=r.extend(!0,{},e);r('[data-sek-id="'+e.apiParams.from_sektion+'"]',".sektion-wrapper").find('div[data-sek-level="column"]').length<1?s.preview.send("sek-add-column",{in_sektion:e.apiParams.from_sektion,autofocus:!1}):(t.apiParams=d.extend(t.apiParams,{in_sektion:e.apiParams.from_sektion,action:"sek-refresh-columns-in-sektion"}),o.ajaxRefreshColumns(t)),a.apiParams=d.extend(a.apiParams,{in_sektion:e.apiParams.to_sektion,action:"sek-refresh-columns-in-sektion"}),o.ajaxRefreshColumns(a)}break;case"sek-move-module":var i=r.extend(!0,{},e),n=r.extend(!0,{},e);i.apiParams.from_column!=i.apiParams.to_column&&(i.apiParams=d.extend(i.apiParams,{in_column:i.apiParams.from_column,in_sektion:i.apiParams.from_sektion,action:"sek-refresh-modules-in-column"}),o.ajaxRefreshModulesAndNestedSections(i)),e.apiParams=d.extend(n.apiParams,{in_column:n.apiParams.to_column,in_sektion:n.apiParams.to_sektion,action:"sek-refresh-modules-in-column"}),o.ajaxRefreshModulesAndNestedSections(n),r('[data-sek-id="'+e.apiParams.to_column+'"]',".sektion-wrapper").find(".sek-column-inner").sortable("refresh")}},"sek-edit-options":function(e){o.activeLevelUI(e.uiParams.id)},"sek-edit-module":function(e){o.activeLevelUI(e.uiParams.id)},"sek-drag-start":function(n){var s=1,o=!1;r('[data-sek-level="location"]').children('[data-sek-level="section"]').each(function(){var e=r(this).data("sek-id"),t=r(this).find('[data-sek-level="column"]').length,a=r(this).find('[data-sek-level="module"]').length,i=t<2&&a<1;!o&&!i&&r('[data-drop-zone-before-section="'+e+'"]').length<1&&r(this).before('<div class="sek-content-'+n.type+'-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="between-sections" data-drop-zone-before-section="'+e+'"></div>'),i||s!=r(".sektion-wrapper").children('[data-sek-level="section"]').length||r(this).after('<div class="sek-content-'+n.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}),r(".sek-empty-location-placeholder").each(function(){r.when(r(this).append('<div class="sek-content-'+n.type+'-drop-zone sek-dynamic-drop-zone sek-drop-zone" data-sek-location="in-empty-location"></div>'))}),"module"==n.type&&r('[data-sek-level="column"]').each(function(){var e=r(this).children(".sek-column-inner").children('[data-sek-level="module"]'),t=r(this).children(".sek-column-inner").children('[data-sek-is-nested="true"]');e=e.add(t);var a=1;e.each(function(){r('[data-drop-zone-before-module-or-nested-section="'+r(this).data("sek-id")+'"]').length<1&&r(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="'+r(this).data("sek-id")+'"></div>'),a==e.length&&r('[data-drop-zone-after-module-or-nested-section="'+r(this).data("sek-id")+'"]').length<1&&r(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="'+r(this).data("sek-id")+'"></div>'),a++})}),r("body").addClass("sek-dragging"),d.delay(function(){r(".sek-dynamic-drop-zone").css({opacity:1})},100)},"sek-drag-stop":function(e){r("body").removeClass("sek-dragging"),r(".sortable-placeholder").remove(),r(".sek-dynamic-drop-zone").remove()},"sek-animate-to-level":function(e){var t=r('[data-sek-id="'+e.id+'"]');0<t.length&&r("html, body").animate({scrollTop:t.offset().top-100},200)},"sek-clean-level-uis":function(e){r(".sek-dyn-ui-wrapper").each(function(){r(this).remove()})},"sek-display-level-ui":function(e){var t=r('[data-sek-id="'+e.id+'"]');0<t.length&&o.printLevelUI(t)},"sek-set-double-click-target":function(e){if(r(".sek-target-for-double-click-insertion").removeClass("sek-target-for-double-click-insertion"),d.isObject(e)&&e.id){var t=r('[data-sek-id="'+e.id+'"]');1===t.length&&t.addClass("sek-target-for-double-click-insertion")}},"sek-reset-double-click-target":function(e){r(".sek-target-for-double-click-insertion").removeClass("sek-target-for-double-click-insertion")},"sek-update-html-in-selector":function(e){var t=r('[data-sek-id="'+e.id+'"]'),a=r(e.selector,t);0<t.length&&0<a.length?a.html(e.html):o.errare("reactToPanelMsg => sek-update-html-in-selector => missing level or target dom element",e)}};d.each(e,function(e,i){s.preview.bind(i,function(a){a=d.extend({location_skope_id:"",apiParams:{},uiParams:{}},a||{});r("body").addClass(i);try{r.when(d.isFunction(e)?e(a):o[e].call(o,a)).done(function(e){var t;t=e,s.preview.send([i,"done"].join("_"),a),d.isUndefined(t)||t.data&&t.data.setting_validities&&s.preview.send("selective-refresh-setting-validities",t.data.setting_validities)}).fail(function(){s.preview.send("sek-notify",{type:"error",duration:1e4,message:sekPreviewLocalized.i18n["Something went wrong, please refresh this page."]})}).always(function(e){r("body").removeClass(i)}).then(function(){s.preview.trigger("control-panel-requested-action-done",{action:i,args:a})})}catch(e){o.errare("reactToPanelMsg => Error when firing the callback of "+i,e),r("body").removeClass(i)}})})}})}(wp.customize,jQuery,_);SekPreviewPrototype=SekPreviewPrototype||{};!function(e,o,r){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}).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||r.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+'"]'),!r.isEmpty(n.apiParams.before_section)&&0<$beforeCandidate.length?$beforeCandidate.before(a):!r.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)}).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,r,e){r.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=r('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(),r(".sektion-wrapper").find(".sek-placeholder").after(t),r(".sektion-wrapper").find(".sek-placeholder").remove(),o.preview.trigger("sek-refresh-stylesheet",n),r('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),r('[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)),r('[data-sek-id="'+a.apiParams.resized_column+'"]').css({width:"",height:""}),i.appendDynStyleSheet(a.location_skope_id,t),r('div[data-sek-id="'+a.apiParams.in_sektion+'"]').trigger("sek-columns-refreshed")}).fail(function(e){i.errare("ERROR reactToPanelMsg => sek-resize-columns => ",e),r('[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-"+e;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?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,r){o.extend(SekPreviewPrototype,{parseTemplate:r.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||r.template(o(t).html(),n)}catch(e){i.errare("preview => parseTemplate => problem when parsing tmpl =>"+t,e)}return a(e)}}),_prettyPrintLog:function(e){e=r.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},e);var t,a=Array.from(e.consoleArguments);return a=r.isEmpty(r.filter(a,function(e){return!r.isString(e)}))?a.join(" "):JSON.stringify(a.join(" ")),["%c "+(t=a,r.isString(t)?300<t.length?t.substr(0,299)+"...":t:""),["background:"+e.bgCol,"color:"+e.textCol,"display: block;"].join(";")]},_wrapLogInsideTags:function(e,t,a){r.isUndefined(console)&&"function"!=typeof window.console.log||(sekPreviewLocalized.isDevMode?r.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||(r.isObject(e)?e:{})).ajaxUrl||sekPreviewLocalized.ajaxUrl,i=sekPreviewLocalized.frontNonce,n=o.Deferred(),s=r.extend({action:"",withNonce:!1},e);return"https:"==document.location.protocol&&(a=a.replace("http://","https://")),r.isEmpty(s.action)||!r.isString(s.action)?(t.errare("self.doAjax : unproper action provided"),n.resolve().promise()):(s[i.id]=i.handle,!r.isObject(i)||r.isUndefined(i.id)||r.isUndefined(i.handle)?(t.errare("self.doAjax : unproper nonce"),n.resolve().promise()):(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&&!r.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 r.isUndefined(e)&&a.errare("getLevelModel => a collection must be provided"),r.each(e,function(e){"no_match"==i&&(t===e.id?i=e:r.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/sek-base-rtl.css CHANGED
@@ -1,2068 +1,2068 @@
1
- .sektion-wrapper *,
2
- .sektion-wrapper *::before,
3
- .sektion-wrapper *::after {
4
- box-sizing: border-box;
5
- }
6
-
7
- .sektion-wrapper img {
8
- max-width: 100%;
9
- vertical-align: middle;
10
- border-style: none;
11
- }
12
-
13
- .sektion-wrapper svg:not(:root) {
14
- overflow: hidden;
15
- }
16
-
17
- .sektion-wrapper figure {
18
- margin: 0;
19
- }
20
-
21
- .sektion-wrapper embed, .sektion-wrapper iframe, .sektion-wrapper object {
22
- max-width: 100%;
23
- }
24
-
25
- .sek-service-font, .sek-module-inner .sek-btn {
26
- font-family: sans-serif;
27
- letter-spacing: 1px;
28
- }
29
-
30
- .sek-container {
31
- width: 100%;
32
- padding-right: 10px;
33
- padding-left: 10px;
34
- margin-right: auto;
35
- margin-left: auto;
36
- }
37
-
38
- @media (min-width: 576px) {
39
- .sek-container {
40
- max-width: 540px;
41
- }
42
- }
43
-
44
- @media (min-width: 768px) {
45
- .sek-container {
46
- max-width: 720px;
47
- }
48
- }
49
-
50
- @media (min-width: 992px) {
51
- .sek-container {
52
- max-width: 960px;
53
- }
54
- }
55
-
56
- @media (min-width: 1200px) {
57
- .sek-container {
58
- max-width: 1140px;
59
- }
60
- }
61
-
62
- .sek-container-fluid {
63
- width: 100%;
64
- padding-right: 10px;
65
- padding-left: 10px;
66
- margin-right: auto;
67
- margin-left: auto;
68
- }
69
-
70
- .sek-row {
71
- display: -ms-flexbox;
72
- display: flex;
73
- -ms-flex-wrap: wrap;
74
- flex-wrap: wrap;
75
- margin-right: -10px;
76
- margin-left: -10px;
77
- }
78
-
79
- .sek-container-no-padding {
80
- padding-right: 0;
81
- padding-left: 0;
82
- overflow-x: hidden;
83
- }
84
-
85
- .sek-no-gutters {
86
- margin-right: 0;
87
- margin-left: 0;
88
- }
89
-
90
- .sek-no-gutters > .sek-col,
91
- .sek-no-gutters > [class*="sek-col-"] {
92
- padding-right: 0;
93
- padding-left: 0;
94
- }
95
-
96
- .sek-col-8, .sek-col-9, .sek-col-10, .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-80, .sek-col-83, .sek-col-90, .sek-col-100, .sek-col-base,
97
- .sek-col,
98
- .sek-col-auto {
99
- position: relative;
100
- width: 100%;
101
- min-height: 1px;
102
- padding-right: 10px;
103
- padding-left: 10px;
104
- }
105
-
106
- .sek-col-base {
107
- -ms-flex: 0 0 100%;
108
- flex: 0 0 100%;
109
- max-width: 100%;
110
- }
111
-
112
- .sek-col {
113
- -ms-flex-preferred-size: 0;
114
- flex-basis: 0;
115
- -ms-flex-positive: 1;
116
- flex-grow: 1;
117
- max-width: 100%;
118
- }
119
-
120
- .sek-col-auto {
121
- -ms-flex: 0 0 auto;
122
- flex: 0 0 auto;
123
- width: auto;
124
- max-width: 100%;
125
- }
126
-
127
- @media (min-width: 768px) {
128
- .sek-col-8 {
129
- -ms-flex: 0 0 8.333%;
130
- flex: 0 0 8.333%;
131
- max-width: 8.333%;
132
- }
133
- .sek-col-9 {
134
- -ms-flex: 0 0 9.090909%;
135
- flex: 0 0 9.090909%;
136
- max-width: 9.090909%;
137
- }
138
- .sek-col-10 {
139
- -ms-flex: 0 0 10%;
140
- flex: 0 0 10%;
141
- max-width: 10%;
142
- }
143
- .sek-col-11 {
144
- -ms-flex: 0 0 11.111%;
145
- flex: 0 0 11.111%;
146
- max-width: 11.111%;
147
- }
148
- .sek-col-12 {
149
- -ms-flex: 0 0 12.5%;
150
- flex: 0 0 12.5%;
151
- max-width: 12.5%;
152
- }
153
- .sek-col-14 {
154
- -ms-flex: 0 0 14.285%;
155
- flex: 0 0 14.285%;
156
- max-width: 14.285%;
157
- }
158
- .sek-col-16 {
159
- -ms-flex: 0 0 16.666%;
160
- flex: 0 0 16.666%;
161
- max-width: 16.666%;
162
- }
163
- .sek-col-20 {
164
- -ms-flex: 0 0 20%;
165
- flex: 0 0 20%;
166
- max-width: 20%;
167
- }
168
- .sek-col-25 {
169
- -ms-flex: 0 0 25%;
170
- flex: 0 0 25%;
171
- max-width: 25%;
172
- }
173
- .sek-col-30 {
174
- -ms-flex: 0 0 30%;
175
- flex: 0 0 30%;
176
- max-width: 30%;
177
- }
178
- .sek-col-33 {
179
- -ms-flex: 0 0 33.333%;
180
- flex: 0 0 33.333%;
181
- max-width: 33.333%;
182
- }
183
- .sek-col-40 {
184
- -ms-flex: 0 0 40%;
185
- flex: 0 0 40%;
186
- max-width: 40%;
187
- }
188
- .sek-col-50 {
189
- -ms-flex: 0 0 50%;
190
- flex: 0 0 50%;
191
- max-width: 50%;
192
- }
193
- .sek-col-60 {
194
- -ms-flex: 0 0 60%;
195
- flex: 0 0 60%;
196
- max-width: 60%;
197
- }
198
- .sek-col-66 {
199
- -ms-flex: 0 0 66.666%;
200
- flex: 0 0 66.666%;
201
- max-width: 66.666%;
202
- }
203
- .sek-col-70 {
204
- -ms-flex: 0 0 70%;
205
- flex: 0 0 70%;
206
- max-width: 70%;
207
- }
208
- .sek-col-75 {
209
- -ms-flex: 0 0 75%;
210
- flex: 0 0 75%;
211
- max-width: 75%;
212
- }
213
- .sek-col-80 {
214
- -ms-flex: 0 0 80%;
215
- flex: 0 0 80%;
216
- max-width: 80%;
217
- }
218
- .sek-col-83 {
219
- -ms-flex: 0 0 83.333%;
220
- flex: 0 0 83.333%;
221
- max-width: 83.333%;
222
- }
223
- .sek-col-90 {
224
- -ms-flex: 0 0 90%;
225
- flex: 0 0 90%;
226
- max-width: 90%;
227
- }
228
- .sek-col-100 {
229
- -ms-flex: 0 0 100%;
230
- flex: 0 0 100%;
231
- max-width: 100%;
232
- }
233
- .sek-order-first {
234
- -ms-flex-order: -1;
235
- order: -1;
236
- }
237
- .sek-order-last {
238
- -ms-flex-order: 13;
239
- order: 13;
240
- }
241
- .sek-order-0 {
242
- -ms-flex-order: 0;
243
- order: 0;
244
- }
245
- .sek-order-1 {
246
- -ms-flex-order: 1;
247
- order: 1;
248
- }
249
- .sek-order-2 {
250
- -ms-flex-order: 2;
251
- order: 2;
252
- }
253
- .sek-order-3 {
254
- -ms-flex-order: 3;
255
- order: 3;
256
- }
257
- .sek-order-4 {
258
- -ms-flex-order: 4;
259
- order: 4;
260
- }
261
- .sek-order-5 {
262
- -ms-flex-order: 5;
263
- order: 5;
264
- }
265
- .sek-order-6 {
266
- -ms-flex-order: 6;
267
- order: 6;
268
- }
269
- .sek-order-7 {
270
- -ms-flex-order: 7;
271
- order: 7;
272
- }
273
- .sek-order-8 {
274
- -ms-flex-order: 8;
275
- order: 8;
276
- }
277
- .sek-order-9 {
278
- -ms-flex-order: 9;
279
- order: 9;
280
- }
281
- .sek-order-10 {
282
- -ms-flex-order: 10;
283
- order: 10;
284
- }
285
- .sek-order-11 {
286
- -ms-flex-order: 11;
287
- order: 11;
288
- }
289
- .sek-order-12 {
290
- -ms-flex-order: 12;
291
- order: 12;
292
- }
293
- }
294
-
295
- .sek-fade {
296
- transition: opacity 0.15s linear;
297
- }
298
-
299
- @media screen and (prefers-reduced-motion: reduce) {
300
- .sek-fade {
301
- transition: none;
302
- }
303
- }
304
-
305
- .sek-fade:not(.show) {
306
- opacity: 0;
307
- }
308
-
309
- .sek-collapse:not(.show) {
310
- display: none;
311
- }
312
-
313
  /*
314
  .sek-collapsing {
315
  position: relative;
316
  height: 0;
317
  overflow: hidden;
318
  //@include transition($transition-collapse);
319
- }*/
320
- .sek-clearfix::after {
321
- display: block;
322
- clear: both;
323
- content: "";
324
- }
325
-
326
- .sek-sr-only {
327
- position: absolute;
328
- width: 1px;
329
- height: 1px;
330
- padding: 0;
331
- overflow: hidden;
332
- clip: rect(0, 0, 0, 0);
333
- white-space: nowrap;
334
- border: 0;
335
- }
336
-
337
- .sek-sr-only-focusable:active, .sek-sr-only-focusable:focus {
338
- position: static;
339
- width: auto;
340
- height: auto;
341
- overflow: visible;
342
- clip: auto;
343
- white-space: normal;
344
- }
345
-
346
- .sek-embed {
347
- position: relative;
348
- }
349
-
350
- .sek-embed::before {
351
- display: block;
352
- content: '';
353
- }
354
-
355
- .sek-embed .sek-embed-inner,
356
- .sek-embed iframe {
357
- position: absolute;
358
- width: 100%;
359
- height: 100%;
360
- top: 0;
361
- left: 0;
362
- }
363
-
364
- .sektion-wrapper {
365
- word-wrap: break-word;
366
- }
367
-
368
- .sek-module .sek-module-inner ul {
369
- list-style: disc;
370
- }
371
-
372
- .sek-module .sek-module-inner ol {
373
- list-style: decimal;
374
- }
375
-
376
- .sek-module .sek-module-inner ol > li::before {
377
- content: none;
378
- }
379
-
380
- .sek-module .sek-module-inner ul, .sek-module .sek-module-inner ol {
381
- padding: 0;
382
- line-height: 1.5;
383
- margin: 0 1.5rem 1.5rem 0;
384
- }
385
-
386
- .sek-module .sek-module-inner ul > li, .sek-module .sek-module-inner ol > li {
387
- padding: 0;
388
- }
389
-
390
- .sek-module .sek-module-inner li > ul, .sek-module .sek-module-inner li > ol {
391
- margin-bottom: 0;
392
- }
393
-
394
- .sek-module-inner .sek-btn {
395
- display: inline-block;
396
- font-weight: normal;
397
- line-height: 1.25em;
398
- text-align: center;
399
- /*white-space: nowrap;*/
400
- white-space: normal;
401
- word-break: break-all;
402
- vertical-align: middle;
403
- -webkit-user-select: none;
404
- -moz-user-select: none;
405
- -ms-user-select: none;
406
- user-select: none;
407
- border: 1px solid transparent;
408
- padding: 0.5em 1em;
409
- border-radius: 2px;
410
- border-width: 2px;
411
- border-style: solid;
412
- font-size: 1em;
413
- cursor: pointer;
414
- text-decoration: none;
415
- text-transform: none;
416
- transition: all 0.2s ease-in-out;
417
- }
418
-
419
- .sek-module-inner .sek-btn:focus, .sek-module-inner .sek-btn:hover {
420
- text-decoration: none;
421
- }
422
-
423
- .sek-module-inner .sek-btn:focus, .sek-module-inner .focus.sek-btn {
424
- outline: 0;
425
- box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
426
- }
427
-
428
- .sek-module-inner .disabled.sek-btn, .sek-module-inner .sek-btn:disabled {
429
- cursor: not-allowed;
430
- opacity: .65;
431
- box-shadow: none;
432
- }
433
-
434
- .sek-module-inner .sek-btn:active, .sek-module-inner .active.sek-btn {
435
- background-image: none;
436
- box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
437
- }
438
-
439
- a.sek-btn.disabled,
440
- fieldset[disabled] a.sek-btn {
441
- pointer-events: none;
442
- }
443
-
444
- .sektion-wrapper button,
445
- .sektion-wrapper [type="button"],
446
- .sektion-wrapper [type="reset"],
447
- .sektion-wrapper [type="submit"] {
448
- -webkit-appearance: button;
449
- }
450
-
451
- .sektion-wrapper button::-moz-focus-inner,
452
- .sektion-wrapper [type="button"]::-moz-focus-inner,
453
- .sektion-wrapper [type="reset"]::-moz-focus-inner,
454
- .sektion-wrapper [type="submit"]::-moz-focus-inner {
455
- padding: 0;
456
- border-style: none;
457
- }
458
-
459
- .sektion-wrapper button::-moz-focus-inner .sek-btn,
460
- .sektion-wrapper [type="button"]::-moz-focus-inner .sek-btn,
461
- .sektion-wrapper [type="reset"]::-moz-focus-inner .sek-btn,
462
- .sektion-wrapper [type="submit"]::-moz-focus-inner .sek-btn {
463
- padding: 0.5em 1em;
464
- border-style: solid;
465
- }
466
-
467
- button.sek-btn,
468
- [type="button"].sek-btn,
469
- [type="reset"].sek-btn,
470
- [type="submit"].sek-btn {
471
- -wekbit-appearance: none !important;
472
- background: transparent;
473
- }
474
-
475
- .sek-module-inner h1, .sek-module-inner h2, .sek-module-inner h3, .sek-module-inner h4, .sek-module-inner h5, .sek-module-inner h6 {
476
- font-weight: 400;
477
- line-height: 1.5em;
478
- }
479
-
480
- .sek-module-inner h1 {
481
- font-size: 2.48em;
482
- }
483
-
484
- .sek-module-inner h2 {
485
- font-size: 2.07em;
486
- }
487
-
488
- .sek-module-inner h3 {
489
- font-size: 1.73em;
490
- }
491
-
492
- .sek-module-inner h4 {
493
- font-size: 1.44em;
494
- }
495
-
496
- .sek-module-inner h5 {
497
- font-size: 1.2em;
498
- }
499
-
500
- .sek-module-inner h6 {
501
- font-size: 1em;
502
- }
503
-
504
- .sek-module-inner .sek-heading {
505
- text-align: center;
506
- margin: 0.6em 0;
507
- display: block;
508
- }
509
-
510
- .sek-module-inner .sek-heading > a {
511
- color: inherit;
512
- font-size: inherit;
513
- }
514
-
515
- .sek-nav-wrap {
516
- position: relative;
517
- display: -ms-flexbox;
518
- display: flex;
519
- -ms-flex-wrap: wrap;
520
- flex-wrap: wrap;
521
- -ms-flex-align: center;
522
- align-items: center;
523
- -ms-flex-pack: justify;
524
- justify-content: space-between;
525
- -ms-flex-pack: center;
526
- justify-content: center;
527
- padding: .5rem 0;
528
- }
529
-
530
- .sek-mobile-menu-expanded-below .sek-nav-wrap {
531
- padding: 0;
532
- }
533
-
534
- .sek-nav-collapse {
535
- -ms-flex-preferred-size: 100%;
536
- flex-basis: 100%;
537
- -ms-flex-positive: 1;
538
- flex-grow: 1;
539
- -ms-flex-align: center;
540
- align-items: center;
541
- -ms-flex-pack: center;
542
- justify-content: center;
543
- }
544
-
545
- .sek-nav {
546
- display: -ms-flexbox;
547
- display: flex;
548
- -ms-flex-wrap: wrap;
549
- flex-wrap: wrap;
550
- -ms-flex-direction: column;
551
- flex-direction: column;
552
- }
553
-
554
- .sek-module .sek-module-inner .sek-nav {
555
- margin-right: -10px !important;
556
- margin-left: -10px !important;
557
- }
558
-
559
- .sek-module .sek-module-inner .sek-nav,
560
- .sek-module .sek-module-inner .sek-nav ul {
561
- list-style: none !important;
562
- padding: 0 !important;
563
- margin: 0 !important;
564
- }
565
-
566
- .sek-module .sek-module-inner .sek-nav li {
567
- list-style: none;
568
- margin: 0 5px;
569
- }
570
-
571
- .sek-module .sek-module-inner .sek-nav li > ul li {
572
- padding: 0 .9rem 0 0;
573
- }
574
-
575
- .sek-nav li a {
576
- padding: .6em .8em;
577
- display: -ms-flexbox;
578
- display: flex;
579
- -ms-flex-align: center;
580
- align-items: center;
581
- -ms-flex-pack: justify;
582
- justify-content: space-between;
583
- color: inherit;
584
- overflow: hidden;
585
- }
586
-
587
- .sek-nav-wrap .sek-nav li a {
588
- text-decoration: none;
589
- }
590
-
591
- .sek-nav li a:hover .sek-nav__title {
592
- text-decoration: underline;
593
- }
594
-
595
- .sek-nav li:not(:last-of-type) {
596
- border-bottom: 1px solid;
597
- border-color: rgba(49, 49, 49, 0.09);
598
- }
599
-
600
- .sek-nav .menu-item-has-children,
601
- .sek-nav .page_item_has_children {
602
- position: relative;
603
- }
604
-
605
- .sek-nav .menu-item-has-children > a::after,
606
- .sek-nav .page_item_has_children > a::after {
607
- content: "\f107";
608
- -moz-osx-font-smoothing: grayscale;
609
- -webkit-font-smoothing: antialiased;
610
- display: none;
611
- font-style: normal;
612
- font-variant: normal;
613
- text-rendering: auto;
614
- font-family: 'Font Awesome 5 Free';
615
- font-weight: 900;
616
- transition: all 0.3s ease;
617
- -webkit-transform-style: preserve-3d;
618
- transform-style: preserve-3d;
619
- -webkit-backface-visibility: hidden;
620
- backface-visibility: hidden;
621
- -webkit-perspective: 1000px;
622
- perspective: 1000px;
623
- padding: 0 .45em;
624
- font-size: .8em;
625
- top: .1em;
626
- position: relative;
627
- }
628
-
629
- .sek-nav .menu-item-has-children.show > a::after,
630
- .sek-nav .page_item_has_children.show > a::after {
631
- -webkit-transform: translateZ(0) rotate(180deg) !important;
632
- transform: translateZ(0) rotate(180deg) !important;
633
- -ms-transform: rotate(180deg) !important;
634
- }
635
-
636
- .sek-nav .sub-menu,
637
- .sek-nav .children {
638
- position: static;
639
- float: none;
640
- list-style: none;
641
- border-radius: 0;
642
- border: 0;
643
- margin: 0;
644
- padding: 0;
645
- font-size: inherit;
646
- }
647
-
648
- @media (min-width: 768px) {
649
- .sek-nav .sub-menu,
650
- .sek-nav .children {
651
- position: absolute;
652
- display: none;
653
- top: 100%;
654
- right: 0;
655
- z-index: 1000;
656
- min-width: 10rem;
657
- max-width: 50vw;
658
- }
659
- }
660
-
661
- .sek-dropdown-submenu > a::after {
662
- -webkit-transform: translateZ(0) rotate(90deg);
663
- transform: translateZ(0) rotate(90deg);
664
- -ms-transform: rotate(90deg);
665
- }
666
-
667
- .sek-dropdown-submenu > a[class*=-reverse]::after {
668
- -webkit-transform: translateZ(0) rotate(270deg);
669
- transform: translateZ(0) rotate(270deg);
670
- -ms-transform: rotate(270deg);
671
- }
672
-
673
- .sek-nav-toggler {
674
- -webkit-appearance: none !important;
675
- cursor: pointer;
676
- height: 40px;
677
- width: 40px;
678
- padding: 0;
679
- vertical-align: middle;
680
- }
681
-
682
- .sek-nav-toggler, .sek-nav-toggler:hover, .sek-nav-toggler:focus {
683
- background: 0 0;
684
- background-color: rgba(0, 0, 0, 0);
685
- color: black;
686
- border: none;
687
- }
688
-
689
- .sek-ham__span-wrapper {
690
- height: 12px;
691
- position: relative;
692
- }
693
-
694
- .sek-ham__span-wrapper .line {
695
- display: block;
696
- height: 1.5px;
697
- position: absolute;
698
- left: 10px;
699
- border-radius: 5px;
700
- background-clip: padding-box;
701
- transition: all ease .35s;
702
- -webkit-backface-visibility: hidden;
703
- backface-visibility: hidden;
704
- border-top: 1.5px solid;
705
- }
706
-
707
- .sek-ham__span-wrapper .line-1 {
708
- top: 0;
709
- }
710
-
711
- .sek-ham__span-wrapper .line-2 {
712
- top: 50%;
713
- }
714
-
715
- .sek-ham__span-wrapper .line-3 {
716
- top: 100%;
717
- }
718
-
719
- .sek-nav-toggler .line-1 {
720
- -webkit-transform: translate(-3px, 6px) rotate(45deg);
721
- transform: translate(-3px, 6px) rotate(45deg);
722
- width: 28px;
723
- }
724
-
725
- .sek-nav-toggler .line-2 {
726
- opacity: 0;
727
- }
728
-
729
- .sek-nav-toggler .line-3 {
730
- -webkit-transform: translate(-3px, -6px) rotate(-45deg);
731
- transform: translate(-3px, -6px) rotate(-45deg);
732
- width: 28px;
733
- }
734
-
735
- .sek-nav-toggler.sek-collapsed .line {
736
- width: 20px;
737
- -webkit-transform: translate(0, 0) rotate(0);
738
- transform: translate(0, 0) rotate(0);
739
- opacity: 1;
740
- }
741
-
742
- .sek-nav-toggler.sek-collapsed.hovering .line {
743
- -webkit-transform: translateX(-3px);
744
- transform: translateX(-3px);
745
- width: 26px;
746
- }
747
-
748
- .sek-dropdown-menu {
749
- position: static;
750
- float: none;
751
- list-style: none;
752
- border-radius: 0;
753
- border: 0;
754
- margin: 0;
755
- padding: 0;
756
- font-size: inherit;
757
- }
758
-
759
- @media (min-width: 768px) {
760
- .sek-dropdown-menu {
761
- position: absolute;
762
- display: none;
763
- top: 100%;
764
- right: 0;
765
- z-index: 1000;
766
- min-width: 10rem;
767
- max-width: 50vw;
768
- }
769
- }
770
-
771
- .show > .sek-dropdown-menu {
772
- display: block;
773
- }
774
-
775
- .sek-dropdown-menu .sek-nav__title {
776
- word-break: break-word;
777
- white-space: normal;
778
- }
779
-
780
- .sek-dropdown-menu.open-right {
781
- left: 0;
782
- right: auto;
783
- }
784
-
785
- .sek-dropdown-menu.open-right ul:not(.open-left),
786
- .sek-dropdown-menu ul.open-right {
787
- left: 100%;
788
- right: auto;
789
- }
790
-
791
- .sek-dropdown-menu.open-left {
792
- left: auto;
793
- right: 0;
794
- }
795
-
796
- .sek-dropdown-menu.open-left ul:not(.open-right),
797
- .sek-dropdown-menu ul.open-left {
798
- right: 100%;
799
- left: auto;
800
- }
801
-
802
- @media (min-width: 768px) {
803
- .sek-nav {
804
- -ms-flex-direction: row;
805
- flex-direction: row;
806
- }
807
- .sek-nav .menu-item-has-children > a::after,
808
- .sek-nav .page_item_has_children > a::after {
809
- display: inline-block;
810
- }
811
- .sek-nav > li:not(:last-of-type) {
812
- border-bottom: none;
813
- }
814
- .sek-nav > li > a {
815
- padding: 5px;
816
- }
817
- .sek-nav-collapse {
818
- display: -ms-flexbox !important;
819
- display: flex !important;
820
- -ms-flex-preferred-size: auto;
821
- flex-basis: auto;
822
- }
823
- .sek-mobile-menu-expanded-below {
824
- display: none !important;
825
- }
826
- .sek-nav-toggler {
827
- display: none;
828
- }
829
- .sek-dropdown-menu {
830
- background: white;
831
- box-shadow: 1px 2px 2px 2px rgba(0, 0, 0, 0.15);
832
- }
833
- .sek-nav .sek-dropdown-menu li {
834
- padding: 0 10px !important;
835
- margin: 0 !important;
836
- }
837
- .sek-nav .sek-dropdown-menu li a {
838
- padding: 10px 12px;
839
- }
840
- .sek-dropdown-menu ul {
841
- right: 100%;
842
- }
843
- .sek-dropdown-menu .sek-menu-link__row-reverse {
844
- -ms-flex-direction: row-reverse !important;
845
- flex-direction: row-reverse !important;
846
- }
847
- .sek-dropdown-menu .sek-nav__title {
848
- word-break: normal;
849
- white-space: nowrap;
850
- }
851
- .sek-dropdown-submenu .sek-dropdown-menu {
852
- top: 15px;
853
- }
854
- .sek-submenu-fade .sek-dropdown-menu a {
855
- transition: all 0.25s ease;
856
- -webkit-transform: translate(0, 0);
857
- transform: translate(0, 0);
858
- }
859
- .sek-submenu-fade .sek-dropdown-menu a:hover {
860
- -webkit-transform: translate(3px, 0);
861
- transform: translate(3px, 0);
862
- }
863
- .sek-submenu-fade .page_item_has_children,
864
- .sek-submenu-fade .menu-item-has-children {
865
- -webkit-perspective: 1000px;
866
- perspective: 1000px;
867
- }
868
- .sek-submenu-fade .page_item_has_children > ul,
869
- .sek-submenu-fade .menu-item-has-children > ul {
870
- position: fixed;
871
- opacity: 0;
872
- visibility: hidden;
873
- display: block;
874
- transition: all 0.25s ease-in-out;
875
- -webkit-transform: translate(0, -10px);
876
- transform: translate(0, -10px);
877
- }
878
- .sek-submenu-fade .page_item_has_children:not(.show),
879
- .sek-submenu-fade .menu-item-has-children:not(.show) {
880
- overflow: hidden;
881
- }
882
- .sek-submenu-fade .page_item_has_children:not(.show) ul,
883
- .sek-submenu-fade .menu-item-has-children:not(.show) ul {
884
- pointer-events: none;
885
- cursor: not-allowed;
886
- }
887
- .sek-submenu-fade li.show {
888
- -webkit-perspective: none;
889
- perspective: none;
890
- }
891
- .sek-submenu-fade li.show > ul {
892
- position: absolute;
893
- visibility: visible;
894
- opacity: 1;
895
- -webkit-transform: translate(0, 0);
896
- transform: translate(0, 0);
897
- }
898
- }
899
-
900
- [class*=sek__r-w] {
901
- position: relative;
902
- display: block;
903
- padding: 0;
904
- overflow: hidden;
905
- -webkit-backface-visibility: hidden;
906
- backface-visibility: hidden;
907
- -webkit-transform-style: preserve-3d;
908
- transform-style: preserve-3d;
909
- }
910
-
911
- [class*=sek__r-w]::before {
912
- display: block;
913
- content: "";
914
- }
915
-
916
- .sek__r-wFP::before {
917
- padding-top: 92.592593%;
918
- }
919
-
920
- .sek-fp-widget {
921
- text-align: center;
922
- margin: auto !important;
923
- }
924
-
925
- .sek-fp-widget .sek-fp-button-holder, .sek-fp-widget .sek-fp-title, .sek-fp-widget .sek-fp-text {
926
- width: 90%;
927
- margin-left: auto;
928
- margin-right: auto;
929
- }
930
-
931
- .sek-fp-widget .sek-fp-title {
932
- color: #5a5a5a;
933
- line-height: 1.25em;
934
- margin-top: .625em;
935
- margin-bottom: 1.25em;
936
- word-break: break-word;
937
- position: relative;
938
- font-weight: 500;
939
- font-size: 1.44em;
940
- }
941
-
942
- .sek-fp-widget .sek-fp-title::after {
943
- content: "";
944
- position: absolute;
945
- width: 1.25em;
946
- background: #5a5a5a;
947
- height: 2px;
948
- top: 100%;
949
- left: 0;
950
- right: 0;
951
- margin: .3125em auto 0;
952
- transition: all .6s ease;
953
- }
954
-
955
- .sek-link-mask-p:hover .sek-fp-title::after {
956
- width: 2.5em;
957
- }
958
-
959
- .sek-fp-widget .sek-fp-text {
960
- color: #777;
961
- line-height: 1.55em;
962
- margin: 1.5em auto;
963
- word-wrap: break-word;
964
- }
965
-
966
- .sek-fp-widget .sek-fp-text > a {
967
- padding: 0 !important;
968
- display: inline !important;
969
- line-height: 1em !important;
970
- }
971
-
972
- .sek-fp-widget .sek-fp-btn-link {
973
- text-transform: uppercase;
974
- margin-bottom: 1.25em;
975
- white-space: normal;
976
- word-break: break-word;
977
- outline: 0;
978
- background-color: #3b3b3b;
979
- color: #fff;
980
- border-color: #3b3b3b;
981
- font-size: .75em;
982
- line-height: 2.5em;
983
- padding: 0 2.5em;
984
- }
985
-
986
- .sek-fp-widget .sek-fp-btn-link:hover, .sek-fp-widget .sek-fp-btn-link:focus, .sek-fp-widget .sek-fp-btn-link:active {
987
- color: #3b3b3b;
988
- background: transparent;
989
- }
990
-
991
- .sek-fp-widget .sek-fp-thumb-wrapper {
992
- max-width: 270px;
993
- margin: 8px auto;
994
- }
995
-
996
- .sek-fp-widget img {
997
- -webkit-transform: translate3d(0, 0, 0);
998
- transform: translate3d(0, 0, 0);
999
- -ms-transform: translate(0, 0);
1000
- -webkit-transform-style: preserve-3d;
1001
- transform-style: preserve-3d;
1002
- -webkit-backface-visibility: hidden;
1003
- backface-visibility: hidden;
1004
- position: absolute;
1005
- top: 0;
1006
- left: 0;
1007
- z-index: 0;
1008
- }
1009
-
1010
- .js-center-images-disabled .sek-fp-widget img {
1011
- -webkit-transform: translate(-50%, -50%);
1012
- transform: translate(-50%, -50%);
1013
- -webkit-transform: translate3d(-50%, -50%, 0);
1014
- transform: translate3d(-50%, -50%, 0);
1015
- -ms-transform: translate(-50%, -50%);
1016
- top: 50%;
1017
- left: 50%;
1018
- max-width: 100%;
1019
- }
1020
-
1021
- .sek-fp-widget img.h-centered {
1022
- width: auto !important;
1023
- max-width: none !important;
1024
- }
1025
-
1026
- .sek-fp-widget img.v-centered {
1027
- height: auto !important;
1028
- max-height: none !important;
1029
- max-width: none !important;
1030
- vertical-align: top;
1031
- }
1032
-
1033
- .sek-link-mask {
1034
- position: absolute;
1035
- border-color: white;
1036
- left: 0;
1037
- right: 0;
1038
- top: 0;
1039
- bottom: 0;
1040
- overflow: hidden;
1041
- z-index: 1;
1042
- }
1043
-
1044
- .sek-link-mask.no-effect {
1045
- border: none;
1046
- }
1047
-
1048
- .sek-link-mask::before {
1049
- position: absolute;
1050
- width: 63%;
1051
- padding-bottom: 63%;
1052
- content: '';
1053
- z-index: 1;
1054
- left: 50%;
1055
- top: 50%;
1056
- -webkit-transform: translate(-50%, -50%);
1057
- transform: translate(-50%, -50%);
1058
- -webkit-transform: translate3d(-50%, -50%, 0);
1059
- transform: translate3d(-50%, -50%, 0);
1060
- /* end of centering */
1061
- border: 150px solid;
1062
- border-color: inherit;
1063
- box-sizing: content-box;
1064
- transition: all .3s ease;
1065
- }
1066
-
1067
- .round .sek-link-mask::before {
1068
- border-radius: 50%;
1069
- }
1070
-
1071
- .sek-link-mask-p:hover .sek-link-mask::before {
1072
- -webkit-transform: translate(-50%, -50%) scale(1.4);
1073
- transform: translate(-50%, -50%) scale(1.4);
1074
- /* fallback for those browsers w/o translate3d transform property*/
1075
- -webkit-transform: translate3d(-50%, -50%, 0) scale(1.4);
1076
- transform: translate3d(-50%, -50%, 0) scale(1.4);
1077
- -ms-transform: translate(-50%, -50%) scale(1.4);
1078
- }
1079
-
1080
- .no-cssanimations .sek-link-mask {
1081
- border: transparent;
1082
- }
1083
-
1084
- .no-cssanimations .sek-fp-thumb-wrapper {
1085
- opacity: .7;
1086
- }
1087
-
1088
- .no-cssanimations .sek-fp-thumb-wrapper:hover {
1089
- opacity: 1;
1090
- }
1091
-
1092
- [data-sek-module-type="czr_image_module"] {
1093
- text-align: center;
1094
- }
1095
-
1096
- [data-sek-module-type="czr_image_module"] img {
1097
- border: 0 solid #f2f2f2;
1098
- }
1099
-
1100
- [data-sek-module-type="czr_image_module"] .box-shadow img {
1101
- box-shadow: rgba(0, 0, 0, 0.25) 0px 3px 11px 0;
1102
- }
1103
-
1104
- /* image module transitions for better animations when effects are used */
1105
- [data-sek-module-type="czr_image_module"] figure img {
1106
- transition: all 0.2s ease-out;
1107
- }
1108
-
1109
- .sek-hover-effect-opacity img:hover {
1110
- opacity: .7;
1111
- }
1112
-
1113
- .sek-hover-effect-zoom-out img:hover {
1114
- -webkit-transform: scale(1.05);
1115
- transform: scale(1.05);
1116
- }
1117
-
1118
- .sek-hover-effect-zoom-in img:hover {
1119
- -webkit-transform: scale(0.95);
1120
- transform: scale(0.95);
1121
- }
1122
-
1123
- .sek-hover-effect-move-up img:hover {
1124
- -webkit-transform: translateY(-6px);
1125
- transform: translateY(-6px);
1126
- }
1127
-
1128
- .sek-hover-effect-move-down img:hover {
1129
- -webkit-transform: translateY(6px);
1130
- transform: translateY(6px);
1131
- }
1132
-
1133
- .sek-hover-effect-blur img:hover {
1134
- -webkit-filter: blur(2px);
1135
- filter: blur(2px);
1136
- }
1137
-
1138
- .sek-hover-effect-grayscale img:hover {
1139
- -webkit-filter: grayscale(0%);
1140
- filter: grayscale(0%);
1141
- }
1142
-
1143
- .sek-hover-effect-grayscale img:hover {
1144
- -webkit-filter: grayscale(100%);
1145
- filter: grayscale(100%);
1146
- -webkit-filter: gray;
1147
- filter: gray;
1148
- }
1149
-
1150
- .sek-hover-effect-reverse-grayscale img {
1151
- -webkit-filter: grayscale(100%);
1152
- filter: grayscale(100%);
1153
- -webkit-filter: gray;
1154
- filter: gray;
1155
- }
1156
-
1157
- .sek-hover-effect-reverse-grayscale img:hover {
1158
- -webkit-filter: grayscale(0%);
1159
- filter: grayscale(0%);
1160
- }
1161
-
1162
- .sek-nimble-image-wrapper {
1163
- max-width: 100%;
1164
- overflow: hidden;
1165
- width: 100%;
1166
- position: relative;
1167
- display: block;
1168
- background-position: center center;
1169
- background-size: cover;
1170
- display: -ms-flexbox;
1171
- display: flex;
1172
- -ms-flex-align: center;
1173
- align-items: center;
1174
- -ms-flex-pack: center;
1175
- justify-content: center;
1176
- -webkit-backface-visibility: hidden;
1177
- backface-visibility: hidden;
1178
- -webkit-transform-style: preserve-3d;
1179
- transform-style: preserve-3d;
1180
- }
1181
-
1182
- .sek-nimble-image-wrapper::before {
1183
- content: '';
1184
- display: block;
1185
- padding-top: 100%;
1186
- }
1187
-
1188
- .sek-nimble-image-mask {
1189
- position: absolute;
1190
- border-color: #fff;
1191
- left: 0;
1192
- right: 0;
1193
- top: 0;
1194
- bottom: 0;
1195
- overflow: hidden;
1196
- z-index: 1;
1197
- display: -ms-flexbox;
1198
- display: flex;
1199
- -ms-flex-align: center;
1200
- align-items: center;
1201
- -ms-flex-pack: center;
1202
- justify-content: center;
1203
- }
1204
-
1205
- .sek-nimble-image-mask::before {
1206
- position: absolute;
1207
- width: 63%;
1208
- padding-bottom: 63%;
1209
- content: '';
1210
- z-index: 1;
1211
- border: 150vw solid;
1212
- border-color: inherit;
1213
- box-sizing: content-box;
1214
- transition: all .3s ease;
1215
- -webkit-backface-visibility: hidden;
1216
- backface-visibility: hidden;
1217
- }
1218
-
1219
- .sek-nimble-image-wrapper.expanded .sek-nimble-image-mask::before,
1220
- .sek-nimble-image-wrapper.hover .sek-nimble-image-mask::before,
1221
- .sek-nimble-image-wrapper:hover .sek-nimble-image-mask::before {
1222
- -webkit-transform: scale(1.4);
1223
- transform: scale(1.4);
1224
- }
1225
-
1226
- .sek-nimble-image-wrapper.round .sek-nimble-image-mask::before {
1227
- border-radius: 50%;
1228
- }
1229
-
1230
- .sek-nimble-image {
1231
- position: absolute;
1232
- width: 100%;
1233
- height: 100%;
1234
- background-position: center center;
1235
- background-size: cover;
1236
- z-index: 0;
1237
- }
1238
-
1239
- [data-sek-module-type="czr_divider_module"] {
1240
- text-align: center;
1241
- }
1242
-
1243
- [data-sek-module-type="czr_divider_module"] .sek-module-inner {
1244
- font-size: 0;
1245
- line-height: 0;
1246
- }
1247
-
1248
- .sek-divider {
1249
- border-top: 1px solid #5a5a5a;
1250
- display: inline-block;
1251
- width: 100%;
1252
- margin-top: 15px;
1253
- margin-bottom: 15px;
1254
- font-size: 1rem;
1255
- }
1256
-
1257
- .sek-spacer {
1258
- height: 20px;
1259
- }
1260
-
1261
- [data-sek-module-type="czr_icon_module"] {
1262
- text-align: center;
1263
- color: #5a5a5a;
1264
- font-size: 15px;
1265
- }
1266
-
1267
- [data-sek-module-type="czr_icon_module"] a.sek-icon,
1268
- [data-sek-module-type="czr_icon_module"] a.sek-icon:hover,
1269
- [data-sek-module-type="czr_icon_module"] a.sek-icon:focus,
1270
- [data-sek-module-type="czr_icon_module"] a.sek-icon:active,
1271
- [data-sek-module-type="czr_icon_module"] a.sek-icon.active {
1272
- color: inherit;
1273
- }
1274
-
1275
- [data-sek-module-type="czr_icon_module"] .box-shadow .sek-icon-wrapper {
1276
- box-shadow: rgba(0, 0, 0, 0.25) 0px 3px 11px 0;
1277
- }
1278
-
1279
- [data-sek-module-type="czr_icon_module"] .sek-icon i {
1280
- webkit-transition: all 0.15s ease-in-out;
1281
- transition: all 0.15s ease-in-out;
1282
- }
1283
-
1284
- [data-sek-module-type="czr_icon_module"] .sek-icon .fas, [data-sek-module-type="czr_icon_module"] .sek-icon .far, [data-sek-module-type="czr_icon_module"] .sek-icon .fab {
1285
- width: 1em;
1286
- height: 1em;
1287
- text-align: center;
1288
- }
1289
-
1290
- [data-sek-module-type="czr_icon_module"] a.sek-icon {
1291
- box-shadow: none;
1292
- -webkit-box-shadow: none;
1293
- }
1294
-
1295
- [data-sek-module-type="czr_icon_module"] a.sek-icon:hover, [data-sek-module-type="czr_icon_module"] a.sek-icon:focus, [data-sek-module-type="czr_icon_module"] a.sek-icon:active {
1296
- box-shadow: none;
1297
- -webkit-box-shadow: none;
1298
- }
1299
-
1300
- [data-sek-module-type="czr_icon_module"] .sek-icon-wrapper {
1301
- display: inline-block;
1302
- }
1303
-
1304
- .sek-quote p {
1305
- margin: 0 0 .5em;
1306
- padding: 0;
1307
- }
1308
-
1309
- .sek-quote .sek-cite {
1310
- font-size: 13px;
1311
- line-height: 1.5em;
1312
- font-style: inherit;
1313
- }
1314
-
1315
- .sek-quote.sek-quote-design {
1316
- background: none;
1317
- font-style: inherit;
1318
- margin-right: 0;
1319
- margin-left: 0;
1320
- padding: 15px 0;
1321
- border: none;
1322
- }
1323
-
1324
- .sek-quote.sek-quote-design > * {
1325
- padding: 0;
1326
- margin: 0;
1327
- }
1328
-
1329
- .sek-quote.sek-quote-design::before, .sek-quote.sek-quote-design::after {
1330
- display: none;
1331
- }
1332
-
1333
- .sek-quote.sek-quote-design .sek-cite {
1334
- padding: 0;
1335
- font-weight: normal;
1336
- }
1337
-
1338
- .sek-quote.sek-quote-design .sek-cite::before {
1339
- display: none;
1340
- }
1341
-
1342
- .sek-quote.sek-quote-design .sek-quote-inner {
1343
- color: inherit;
1344
- padding-right: calc(10px + 1.3em);
1345
- }
1346
-
1347
- .sek-quote.sek-quote-design .sek-quote-content {
1348
- font-weight: 400;
1349
- font-size: 16px;
1350
- color: inherit;
1351
- }
1352
-
1353
- .sek-quote.sek-quote-design.sek-border-before {
1354
- padding-right: 15px;
1355
- border-right: 5px solid;
1356
- }
1357
-
1358
- .sek-quote.sek-quote-design.sek-border-before .sek-cite {
1359
- clear: both;
1360
- display: block;
1361
- margin-top: 1.5em;
1362
- position: relative;
1363
- padding-right: 2.2em;
1364
- padding-left: 0.25em;
1365
- }
1366
-
1367
- .sek-quote.sek-quote-design.sek-border-before .sek-cite::before {
1368
- display: block;
1369
- content: '';
1370
- top: 1em;
1371
- position: absolute;
1372
- background: none;
1373
- width: 2em;
1374
- height: auto;
1375
- right: 0;
1376
- border-top: 1px solid;
1377
- }
1378
-
1379
- .sek-quote.sek-quote-design.sek-quote-icon-before {
1380
- position: relative;
1381
- display: -ms-flexbox;
1382
- display: flex;
1383
- font-size: 32px;
1384
- }
1385
-
1386
- .sek-quote.sek-quote-design.sek-quote-icon-before .sek-quote-content *:last-child {
1387
- margin-bottom: .75em;
1388
- }
1389
-
1390
- .sek-quote.sek-quote-design.sek-quote-icon-before::before {
1391
- content: '\f10d';
1392
- color: #ccc;
1393
- font-weight: 900;
1394
- font-style: normal;
1395
- text-align: center;
1396
- font-family: 'Font Awesome 5 Free';
1397
- -moz-osx-font-smoothing: grayscale;
1398
- -webkit-font-smoothing: antialiased;
1399
- font-variant: normal;
1400
- text-rendering: auto;
1401
- display: -ms-flexbox;
1402
- display: flex;
1403
- position: static;
1404
- width: auto;
1405
- margin: 0;
1406
- right: 0;
1407
- position: absolute;
1408
- top: 0;
1409
- }
1410
-
1411
- [data-sek-module-type="czr_button_module"] .sek-module-inner {
1412
- text-align: center;
1413
- }
1414
-
1415
- .sek-module-inner .sek-btn {
1416
- background: #020202;
1417
- color: #ffffff;
1418
- padding: 0.5em 1em;
1419
- }
1420
-
1421
- .sek-module-inner .sek-btn i {
1422
- margin: 0 8px;
1423
- }
1424
-
1425
- .sek-module-inner .sek-btn:hover, .sek-module-inner .sek-btn:focus, .sek-module-inner .sek-btn:active {
1426
- color: #ffffff;
1427
- }
1428
-
1429
- .sek-btn-inner {
1430
- display: -ms-flexbox;
1431
- display: flex;
1432
- -ms-flex-align: center;
1433
- align-items: center;
1434
- }
1435
-
1436
- .sek-btn.box-shadow {
1437
- box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
1438
- }
1439
-
1440
- .sek-btn.box-shadow.push-effect:active {
1441
- -webkit-transform: translateY(2px);
1442
- transform: translateY(2px);
1443
- }
1444
-
1445
- .sek-post-grid-wrapper {
1446
- margin-top: 1.5rem;
1447
- margin-bottom: 1.5rem;
1448
- }
1449
-
1450
- .sek-post-grid-wrapper .sek-grid-items {
1451
- grid-row-gap: 25px;
1452
- }
1453
-
1454
- .sek-post-grid-wrapper .sek-grid-items.sek-list-layout article > *:not(:last-child):not(.sek-pg-thumbnail) {
1455
- margin-bottom: 15px;
1456
- }
1457
-
1458
- .sek-post-grid-wrapper .sek-grid-items.sek-grid-layout article > *:not(:last-child) {
1459
- margin-bottom: 15px;
1460
- }
1461
-
1462
- .sek-post-grid-wrapper .sek-grid-items article > :first-child {
1463
- margin-top: 0 !important;
1464
- }
1465
-
1466
- .sek-post-grid-wrapper .sek-grid-items article > :last-child {
1467
- margin-top: 0 !important;
1468
- }
1469
-
1470
- .sek-post-grid-wrapper .sek-grid-items article > *:not(:last-child) {
1471
- margin-top: 0 !important;
1472
- }
1473
-
1474
- .sek-post-grid-wrapper .sek-grid-items article .sek-pg-content > *:not(:last-child) {
1475
- margin-top: 0 !important;
1476
- margin-bottom: 15px;
1477
- }
1478
-
1479
- .sek-post-grid-wrapper .sek-grid-items article .sek-pg-content > :first-child {
1480
- margin-top: 0 !important;
1481
- }
1482
-
1483
- .sek-post-grid-wrapper .sek-grid-items article .sek-pg-content > :last-child {
1484
- margin-top: 0 !important;
1485
- }
1486
-
1487
- .sek-post-grid-wrapper .sek-grid-items.sek-shadow-on-hover article {
1488
- box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.05);
1489
- transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
1490
- }
1491
-
1492
- .sek-post-grid-wrapper .sek-grid-items.sek-shadow-on-hover article:hover {
1493
- -webkit-transform: translateY(-4px);
1494
- transform: translateY(-4px);
1495
- box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18), 0 10px 10px rgba(0, 0, 0, 0.15);
1496
- }
1497
-
1498
- .sek-post-grid-wrapper .sek-pg-thumbnail {
1499
- box-shadow: 0 5px 5px 0 rgba(18, 63, 82, 0.035), 0 0 0 1px rgba(176, 181, 193, 0.2);
1500
- background-color: #fff;
1501
- overflow: hidden;
1502
- }
1503
-
1504
- .sek-post-grid-wrapper .sek-pg-thumbnail a {
1505
- display: block;
1506
- position: relative;
1507
- }
1508
-
1509
- .sek-post-grid-wrapper .sek-pg-thumbnail img {
1510
- display: block;
1511
- width: 100%;
1512
- height: auto;
1513
- }
1514
-
1515
- .sek-post-grid-wrapper .sek-thumb-custom-height .sek-pg-thumbnail a {
1516
- height: 0;
1517
- padding-top: 65%;
1518
- }
1519
-
1520
- .sek-post-grid-wrapper .sek-thumb-custom-height .sek-pg-thumbnail img {
1521
- position: absolute;
1522
- height: 100%;
1523
- width: 100%;
1524
- max-height: none;
1525
- max-width: none;
1526
- top: 0;
1527
- left: 0;
1528
- right: 0;
1529
- bottom: 0;
1530
- -o-object-fit: cover;
1531
- object-fit: cover;
1532
- }
1533
-
1534
- .sek-post-grid-wrapper .sek-pg-metas > span:not(:last-child)::after {
1535
- content: "\B7";
1536
- vertical-align: middle;
1537
- margin: 0 5px;
1538
- line-height: 1;
1539
- }
1540
-
1541
- .sek-post-grid-wrapper .sek-pg-content {
1542
- text-align: right;
1543
- }
1544
-
1545
- .sek-post-grid-wrapper .sek-excerpt > :last-child {
1546
- margin-bottom: 0;
1547
- }
1548
-
1549
- .sek-post-grid-wrapper .sek-pg-category a {
1550
- text-transform: uppercase;
1551
- font-size: 14px;
1552
- text-decoration: none;
1553
- color: #767676;
1554
- }
1555
-
1556
- .sek-post-grid-wrapper .sek-pg-title {
1557
- font-size: 28px;
1558
- line-height: 1.3em;
1559
- }
1560
-
1561
- .sek-post-grid-wrapper .sek-pg-title a {
1562
- text-decoration: none;
1563
- color: #444;
1564
- font-size: 28px;
1565
- font-weight: 400;
1566
- line-height: 1.3em;
1567
- -ms-word-wrap: break-word;
1568
- word-wrap: break-word;
1569
- }
1570
-
1571
- .sek-post-grid-wrapper .sek-pg-metas span, .sek-post-grid-wrapper .sek-pg-metas a {
1572
- text-transform: uppercase;
1573
- font-size: 14px;
1574
- letter-spacing: 1px;
1575
- color: #767676;
1576
- }
1577
-
1578
- .sek-post-grid-wrapper .sek-pg-content p {
1579
- margin: 0 0 15px 0;
1580
- line-height: 1.5;
1581
- font-size: 16px;
1582
- color: #494949;
1583
- }
1584
-
1585
- .sek-post-grid-wrapper .sek-list-layout {
1586
- display: -ms-grid;
1587
- display: grid;
1588
- -ms-grid-columns: minmax(0, 1fr);
1589
- grid-template-columns: minmax(0, 1fr);
1590
- }
1591
-
1592
- .sek-post-grid-wrapper .sek-list-layout article {
1593
- display: -ms-grid;
1594
- display: grid;
1595
- -ms-grid-columns: minmax(0, 1fr);
1596
- grid-template-columns: minmax(0, 1fr);
1597
- -ms-grid-rows: 1fr;
1598
- grid-template-rows: 1fr;
1599
- grid-column-gap: 20px;
1600
- }
1601
-
1602
- .sek-post-grid-wrapper .sek-list-layout article > *:nth-child(1) {
1603
- -ms-grid-row: 1;
1604
- -ms-grid-column: 1;
1605
- }
1606
-
1607
- .sek-post-grid-wrapper .sek-list-layout article.sek-has-thumb {
1608
- -ms-grid-columns: 30% minmax(0, 1fr);
1609
- grid-template-columns: 30% minmax(0, 1fr);
1610
- }
1611
-
1612
- .sek-post-grid-wrapper .sek-list-layout article .sek-pg-thumbnail {
1613
- margin-bottom: 0;
1614
- -ms-flex-item-align: start;
1615
- align-self: flex-start;
1616
- }
1617
-
1618
- .sek-post-grid-wrapper .sek-grid-layout {
1619
- display: -ms-grid;
1620
- display: grid;
1621
- -ms-grid-columns: 1fr 20px 1fr;
1622
- grid-template-columns: 1fr 1fr;
1623
- -ms-grid-rows: 1fr;
1624
- grid-template-rows: 1fr;
1625
- grid-row-gap: 20px;
1626
- grid-column-gap: 20px;
1627
- }
1628
-
1629
- .sek-post-grid-wrapper .sek-grid-layout > *:nth-child(1) {
1630
- -ms-grid-row: 1;
1631
- -ms-grid-column: 1;
1632
- }
1633
-
1634
- .sek-post-grid-wrapper .sek-grid-layout > *:nth-child(2) {
1635
- -ms-grid-row: 1;
1636
- -ms-grid-column: 3;
1637
- }
1638
-
1639
- .sek-post-grid-wrapper .sek-grid-layout.sek-all-col-1 {
1640
- -ms-grid-columns: minmax(0, 1fr);
1641
- grid-template-columns: minmax(0, 1fr);
1642
- }
1643
-
1644
- .sek-post-grid-wrapper .sek-grid-layout.sek-all-col-2 {
1645
- -ms-grid-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
1646
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
1647
- grid-column-gap: 20px;
1648
- grid-row-gap: 20px;
1649
- }
1650
-
1651
- .sek-post-grid-wrapper .sek-grid-layout.sek-all-col-3 {
1652
- -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr);
1653
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
1654
- grid-column-gap: 15px;
1655
- grid-row-gap: 15px;
1656
- }
1657
-
1658
- .sek-post-grid-wrapper .sek-grid-layout.sek-all-col-4 {
1659
- -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr);
1660
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
1661
- grid-column-gap: 15px;
1662
- grid-row-gap: 15px;
1663
- }
1664
-
1665
- @media (min-width: 768px) {
1666
- .sek-post-grid-wrapper .sek-grid-layout.sek-desktop-col-1 {
1667
- -ms-grid-columns: minmax(0, 1fr);
1668
- grid-template-columns: minmax(0, 1fr);
1669
- }
1670
- .sek-post-grid-wrapper .sek-grid-layout.sek-desktop-col-2 {
1671
- -ms-grid-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
1672
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
1673
- grid-column-gap: 20px;
1674
- grid-row-gap: 20px;
1675
- }
1676
- .sek-post-grid-wrapper .sek-grid-layout.sek-desktop-col-3 {
1677
- -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr);
1678
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
1679
- grid-column-gap: 15px;
1680
- grid-row-gap: 15px;
1681
- }
1682
- .sek-post-grid-wrapper .sek-grid-layout.sek-desktop-col-4 {
1683
- -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr);
1684
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
1685
- grid-column-gap: 15px;
1686
- grid-row-gap: 15px;
1687
- }
1688
- }
1689
-
1690
- @media (min-width: 576px) and (max-width: 767.98px) {
1691
- .sek-post-grid-wrapper .sek-grid-layout.sek-tablet-col-1 {
1692
- -ms-grid-columns: minmax(0, 1fr) !important;
1693
- grid-template-columns: minmax(0, 1fr) !important;
1694
- }
1695
- .sek-post-grid-wrapper .sek-grid-layout.sek-tablet-col-2 {
1696
- -ms-grid-columns: minmax(0, 1fr) 20px minmax(0, 1fr) !important;
1697
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
1698
- grid-column-gap: 20px;
1699
- grid-row-gap: 20px;
1700
- }
1701
- .sek-post-grid-wrapper .sek-grid-layout.sek-tablet-col-3 {
1702
- -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) !important;
1703
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
1704
- grid-column-gap: 15px;
1705
- grid-row-gap: 15px;
1706
- }
1707
- .sek-post-grid-wrapper .sek-grid-layout.sek-tablet-col-4 {
1708
- -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) !important;
1709
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
1710
- grid-column-gap: 15px;
1711
- grid-row-gap: 15px;
1712
- }
1713
- }
1714
-
1715
- @media (max-width: 575.98px) {
1716
- .sek-post-grid-wrapper .sek-grid-layout.sek-mobile-col-1 {
1717
- -ms-grid-columns: minmax(0, 1fr) !important;
1718
- grid-template-columns: minmax(0, 1fr) !important;
1719
- }
1720
- .sek-post-grid-wrapper .sek-grid-layout.sek-mobile-col-2 {
1721
- -ms-grid-columns: minmax(0, 1fr) 20px minmax(0, 1fr) !important;
1722
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
1723
- grid-column-gap: 20px;
1724
- grid-row-gap: 20px;
1725
- }
1726
- .sek-post-grid-wrapper .sek-grid-layout.sek-mobile-col-3 {
1727
- -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) !important;
1728
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
1729
- grid-column-gap: 15px;
1730
- grid-row-gap: 15px;
1731
- }
1732
- .sek-post-grid-wrapper .sek-grid-layout.sek-mobile-col-4 {
1733
- -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) !important;
1734
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
1735
- grid-column-gap: 15px;
1736
- grid-row-gap: 15px;
1737
- }
1738
- }
1739
-
1740
- @media (min-width: 576px) and (max-width: 767.98px) {
1741
- .sek-post-grid-wrapper.sek-has-tablet-breakpoint .sek-list-layout article {
1742
- -ms-grid-columns: minmax(0, 1fr) !important;
1743
- grid-template-columns: minmax(0, 1fr) !important;
1744
- grid-gap: 0;
1745
- }
1746
- .sek-post-grid-wrapper.sek-has-tablet-breakpoint .sek-list-layout article .sek-pg-thumbnail {
1747
- margin-bottom: 15px;
1748
- }
1749
- }
1750
-
1751
- @media (max-width: 575.98px) {
1752
- .sek-post-grid-wrapper.sek-has-mobile-breakpoint .sek-list-layout article {
1753
- -ms-grid-columns: minmax(0, 1fr) !important;
1754
- grid-template-columns: minmax(0, 1fr) !important;
1755
- grid-gap: 0;
1756
- }
1757
- .sek-post-grid-wrapper.sek-has-mobile-breakpoint .sek-list-layout article .sek-pg-thumbnail {
1758
- margin-bottom: 15px;
1759
- }
1760
- }
1761
-
1762
- .sek-simple-form-wrapper input[type=text], .sek-simple-form-wrapper textarea {
1763
- font-size: 16px;
1764
- width: 100% !important;
1765
- padding: 0.4em 0.5em;
1766
- border-radius: 3px;
1767
- box-sizing: border-box;
1768
- outline: none;
1769
- font-weight: normal;
1770
- max-width: 100%;
1771
- border: none;
1772
- color: #555555;
1773
- background-color: #ffffff;
1774
- }
1775
-
1776
- .sek-simple-form-wrapper textarea {
1777
- height: auto;
1778
- max-height: 150px;
1779
- }
1780
-
1781
- .sek-simple-form-wrapper .sek-form-field {
1782
- margin-bottom: 15px;
1783
- clear: both;
1784
- }
1785
-
1786
- .sek-simple-form-wrapper label {
1787
- font-family: "Lucida Grande","Lucida Sans Unicode",Tahoma,sans-serif;
1788
- color: #444444;
1789
- font-weight: bold;
1790
- text-align: left;
1791
- margin: 0;
1792
- padding: 0 0 3px 0;
1793
- width: auto;
1794
- display: block;
1795
- }
1796
-
1797
- .sek-simple-form-wrapper.use-outset-shadow .sek-form-field input[type="text"], .sek-simple-form-wrapper.use-outset-shadow .sek-form-field textarea {
1798
- box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
1799
- }
1800
-
1801
- .sek-simple-form-wrapper.use-inset-shadow .sek-form-field input[type="text"], .sek-simple-form-wrapper.use-inset-shadow .sek-form-field textarea {
1802
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
1803
- }
1804
-
1805
- .sek-simple-form-wrapper #sek-form-respond {
1806
- padding: 20px 0;
1807
- }
1808
-
1809
- .sek-form-message {
1810
- padding: 10px;
1811
- margin: 10px 0;
1812
- text-align: center;
1813
- line-height: 1.5em;
1814
- font-size: 16px;
1815
- border-radius: 4px;
1816
- }
1817
-
1818
- .sek-form-message.sek-mail-failure {
1819
- color: #ff0000;
1820
- border: 1px solid #ff0000;
1821
- background: none;
1822
- background: rgba(255, 0, 0, 0.05);
1823
- }
1824
-
1825
- .sek-form-message.sek-mail-success {
1826
- color: #008000;
1827
- border: 1px solid #008000;
1828
- background: none;
1829
- background: rgba(0, 128, 0, 0.05);
1830
- }
1831
-
1832
- .sek-form-message.sek-mail-aborted {
1833
- color: #ffa500;
1834
- border: 1px solid #ffa500;
1835
- background: none;
1836
- background: rgba(255, 165, 0, 0.05);
1837
- }
1838
-
1839
- .grecaptcha-badge {
1840
- z-index: 1;
1841
- }
1842
-
1843
- .sek-hide-rc-badge .grecaptcha-badge {
1844
- display: none;
1845
- }
1846
-
1847
- [data-sek-module-type="czr_tiny_mce_editor_module"] a {
1848
- text-decoration: underline;
1849
- }
1850
-
1851
- .sek-module-inner {
1852
- line-height: 1.5em;
1853
- }
1854
-
1855
- .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 {
1856
- line-height: 1.5em;
1857
- }
1858
-
1859
- .sek-module-inner p {
1860
- margin: 0 0 1em;
1861
- padding: 0;
1862
- }
1863
-
1864
- .sek-module-inner a {
1865
- text-decoration: none;
1866
- box-shadow: none;
1867
- }
1868
-
1869
- .sek-module-inner img {
1870
- height: auto;
1871
- max-width: 100%;
1872
- border: none;
1873
- border-radius: 0;
1874
- box-shadow: none;
1875
- }
1876
-
1877
- 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 {
1878
- content: none;
1879
- background: none;
1880
- }
1881
-
1882
- /* make sure that the location level occupies 100% of the width */
1883
- [data-sek-level="location"] {
1884
- clear: both;
1885
- font-size: 16px;
1886
- }
1887
-
1888
- /* To make vertical alignment possible in sections */
1889
- .sek-section, .sek-column, .sek-module {
1890
- display: -ms-flexbox;
1891
- display: flex;
1892
- -ms-flex-align: center;
1893
- align-items: center;
1894
- }
1895
-
1896
- .sek-column-inner, .sek-module-inner {
1897
- -ms-flex: 0 0 100%;
1898
- flex: 0 0 100%;
1899
- max-width: 100%;
1900
- }
1901
-
1902
  /* To allow horizontal centering of modules
1903
  @see https://github.com/presscustomizr/nimble-builder/issues/119
1904
- */
1905
- /* - sections in locations */
1906
- /* - columns in sections */
1907
- /* - modules in columns */
1908
- .sek-column-inner {
1909
- display: -ms-flexbox;
1910
- display: flex;
1911
- -ms-flex-direction: column;
1912
- flex-direction: column;
1913
- }
1914
-
1915
- .sek-module {
1916
- -ms-flex-item-align: center;
1917
- -ms-grid-row-align: center;
1918
- align-self: center;
1919
- width: 100%;
1920
- max-width: 100%;
1921
- }
1922
-
1923
  /* a nested sektion should reset its parent column padding
1924
  @see https://github.com/presscustomizr/nimble-builder/issues/25
1925
- */
1926
- [data-sek-is-nested="true"] .sek-container-fluid {
1927
- padding-right: 0;
1928
- padding-left: 0;
1929
- }
1930
-
1931
- /* MODULE PLACEHOLDER */
1932
  /*@font-face {
1933
  font-family: 'Material Icons';
1934
  font-style: normal;
1935
  font-weight: 400;
1936
  src: url('../fonts/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2') format('woff2');
1937
- }*/
1938
- /* @see https://github.com/google/material-design-icons/blob/master/iconfont/material-icons.css */
1939
- @font-face {
1940
- font-family: 'Material Icons';
1941
- font-style: normal;
1942
- font-weight: 400;
1943
- src: url("../fonts/material-icons/MaterialIcons-Regular.eot");
1944
- /* For IE6-8 */
1945
- 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");
1946
- }
1947
-
1948
- .material-icons {
1949
- font-family: 'Material Icons';
1950
- font-weight: normal;
1951
- font-style: normal;
1952
- font-size: 24px;
1953
- /* Preferred icon size */
1954
- display: inline-block;
1955
- line-height: 1;
1956
- text-transform: none;
1957
- letter-spacing: normal;
1958
- word-wrap: normal;
1959
- white-space: nowrap;
1960
- direction: ltr;
1961
- /* Support for all WebKit browsers. */
1962
- -webkit-font-smoothing: antialiased;
1963
- /* Support for Safari and Chrome. */
1964
- text-rendering: optimizeLegibility;
1965
- /* Support for Firefox. */
1966
- -moz-osx-font-smoothing: grayscale;
1967
- /* Support for IE. */
1968
- -webkit-font-feature-settings: 'liga';
1969
- font-feature-settings: 'liga';
1970
- }
1971
-
1972
- .sek-module-placeholder {
1973
- text-align: center;
1974
- }
1975
-
1976
- .sek-module-placeholder .material-icons {
1977
- font-size: inherit;
1978
- color: #cfcfcf;
1979
- }
1980
-
1981
- /* LEVEL VISIBILITY BY DEVICE */
1982
- @media (min-width: 767px) {
1983
- [data-sek-level="location"] .sek-hidden-on-desktops {
1984
- display: none;
1985
- }
1986
- }
1987
-
1988
- @media (min-width: 575px) and (max-width: 768px) {
1989
- [data-sek-level="location"] .sek-hidden-on-tablets {
1990
- display: none;
1991
- }
1992
- }
1993
-
1994
- @media (max-width: 575px) {
1995
- [data-sek-level="location"] .sek-hidden-on-mobiles {
1996
- display: none;
1997
- }
1998
- }
1999
-
2000
- /* NIMBLE TEMPLATE GENERAL STYLING */
2001
- /* <inspired by Twenty Seventeed WP theme> */
2002
- .sek-screen-reader-text {
2003
- clip: rect(1px, 1px, 1px, 1px);
2004
- height: 1px;
2005
- overflow: hidden;
2006
- position: absolute !important;
2007
- width: 1px;
2008
- word-wrap: normal !important;
2009
- }
2010
-
2011
- #nimble-page {
2012
- position: relative;
2013
- word-wrap: break-word;
2014
- }
2015
-
2016
- /* </inspired by Twenty Seventeen WP theme> */
2017
- /* Nimble btn in admin top bar */
2018
- #wpadminbar .sek-nimble-icon {
2019
- display: inline-block;
2020
- }
2021
-
2022
- #wpadminbar .sek-nimble-icon img {
2023
- -webkit-filter: grayscale(100%);
2024
- filter: grayscale(100%);
2025
- -webkit-filter: gray;
2026
- filter: gray;
2027
- transition: all 0.3s ease-in-out;
2028
- }
2029
-
2030
- #wpadminbar .sek-nimble-icon:hover img {
2031
- -webkit-filter: none;
2032
- filter: none;
2033
- -webkit-filter: none;
2034
- filter: none;
2035
- }
2036
-
2037
- #wpadminbar .sek-nimble-icon img {
2038
- width: 28px;
2039
- position: absolute;
2040
- top: 2px;
2041
- }
2042
-
2043
- #wpadminbar .sek-nimble-icon .sek-nimble-admin-bar-title {
2044
- padding-left: 30px;
2045
- }
2046
-
2047
- [data-sek-has-bg="true"] {
2048
- background-size: cover;
2049
- background-repeat: no-repeat;
2050
- background-position: 50% 50%;
2051
- }
2052
-
2053
- [data-sek-level="location"] [data-sek-bg-parallax="true"] {
2054
- background-attachment: fixed;
2055
- background-size: cover;
2056
- }
2057
-
2058
- @supports (-webkit-overflow-scrolling: touch) {
2059
- body [data-sek-level="location"] [data-sek-bg-parallax="true"], body [data-sek-level="location"] [data-sek-bg-fixed="true"] {
2060
- background-attachment: scroll;
2061
- }
2062
- }
2063
-
2064
- [data-sek-level="location"] [data-sek-level] {
2065
- transition: 0s linear;
2066
- transition-property: background-position;
2067
  }
2068
  /*# sourceMappingURL=sek-base-rtl.css.map */
1
+ .sektion-wrapper *,
2
+ .sektion-wrapper *::before,
3
+ .sektion-wrapper *::after {
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ .sektion-wrapper img {
8
+ max-width: 100%;
9
+ vertical-align: middle;
10
+ border-style: none;
11
+ }
12
+
13
+ .sektion-wrapper svg:not(:root) {
14
+ overflow: hidden;
15
+ }
16
+
17
+ .sektion-wrapper figure {
18
+ margin: 0;
19
+ }
20
+
21
+ .sektion-wrapper embed, .sektion-wrapper iframe, .sektion-wrapper object {
22
+ max-width: 100%;
23
+ }
24
+
25
+ .sek-service-font, .sek-module-inner .sek-btn {
26
+ font-family: sans-serif;
27
+ letter-spacing: 1px;
28
+ }
29
+
30
+ .sek-container {
31
+ width: 100%;
32
+ padding-right: 10px;
33
+ padding-left: 10px;
34
+ margin-right: auto;
35
+ margin-left: auto;
36
+ }
37
+
38
+ @media (min-width: 576px) {
39
+ .sek-container {
40
+ max-width: 540px;
41
+ }
42
+ }
43
+
44
+ @media (min-width: 768px) {
45
+ .sek-container {
46
+ max-width: 720px;
47
+ }
48
+ }
49
+
50
+ @media (min-width: 992px) {
51
+ .sek-container {
52
+ max-width: 960px;
53
+ }
54
+ }
55
+
56
+ @media (min-width: 1200px) {
57
+ .sek-container {
58
+ max-width: 1140px;
59
+ }
60
+ }
61
+
62
+ .sek-container-fluid {
63
+ width: 100%;
64
+ padding-right: 10px;
65
+ padding-left: 10px;
66
+ margin-right: auto;
67
+ margin-left: auto;
68
+ }
69
+
70
+ .sek-row {
71
+ display: -ms-flexbox;
72
+ display: flex;
73
+ -ms-flex-wrap: wrap;
74
+ flex-wrap: wrap;
75
+ margin-right: -10px;
76
+ margin-left: -10px;
77
+ }
78
+
79
+ .sek-container-no-padding {
80
+ padding-right: 0;
81
+ padding-left: 0;
82
+ overflow-x: hidden;
83
+ }
84
+
85
+ .sek-no-gutters {
86
+ margin-right: 0;
87
+ margin-left: 0;
88
+ }
89
+
90
+ .sek-no-gutters > .sek-col,
91
+ .sek-no-gutters > [class*="sek-col-"] {
92
+ padding-right: 0;
93
+ padding-left: 0;
94
+ }
95
+
96
+ .sek-col-8, .sek-col-9, .sek-col-10, .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-80, .sek-col-83, .sek-col-90, .sek-col-100, .sek-col-base,
97
+ .sek-col,
98
+ .sek-col-auto {
99
+ position: relative;
100
+ width: 100%;
101
+ min-height: 1px;
102
+ padding-right: 10px;
103
+ padding-left: 10px;
104
+ }
105
+
106
+ .sek-col-base {
107
+ -ms-flex: 0 0 100%;
108
+ flex: 0 0 100%;
109
+ max-width: 100%;
110
+ }
111
+
112
+ .sek-col {
113
+ -ms-flex-preferred-size: 0;
114
+ flex-basis: 0;
115
+ -ms-flex-positive: 1;
116
+ flex-grow: 1;
117
+ max-width: 100%;
118
+ }
119
+
120
+ .sek-col-auto {
121
+ -ms-flex: 0 0 auto;
122
+ flex: 0 0 auto;
123
+ width: auto;
124
+ max-width: 100%;
125
+ }
126
+
127
+ @media (min-width: 768px) {
128
+ .sek-col-8 {
129
+ -ms-flex: 0 0 8.333%;
130
+ flex: 0 0 8.333%;
131
+ max-width: 8.333%;
132
+ }
133
+ .sek-col-9 {
134
+ -ms-flex: 0 0 9.090909%;
135
+ flex: 0 0 9.090909%;
136
+ max-width: 9.090909%;
137
+ }
138
+ .sek-col-10 {
139
+ -ms-flex: 0 0 10%;
140
+ flex: 0 0 10%;
141
+ max-width: 10%;
142
+ }
143
+ .sek-col-11 {
144
+ -ms-flex: 0 0 11.111%;
145
+ flex: 0 0 11.111%;
146
+ max-width: 11.111%;
147
+ }
148
+ .sek-col-12 {
149
+ -ms-flex: 0 0 12.5%;
150
+ flex: 0 0 12.5%;
151
+ max-width: 12.5%;
152
+ }
153
+ .sek-col-14 {
154
+ -ms-flex: 0 0 14.285%;
155
+ flex: 0 0 14.285%;
156
+ max-width: 14.285%;
157
+ }
158
+ .sek-col-16 {
159
+ -ms-flex: 0 0 16.666%;
160
+ flex: 0 0 16.666%;
161
+ max-width: 16.666%;
162
+ }
163
+ .sek-col-20 {
164
+ -ms-flex: 0 0 20%;
165
+ flex: 0 0 20%;
166
+ max-width: 20%;
167
+ }
168
+ .sek-col-25 {
169
+ -ms-flex: 0 0 25%;
170
+ flex: 0 0 25%;
171
+ max-width: 25%;
172
+ }
173
+ .sek-col-30 {
174
+ -ms-flex: 0 0 30%;
175
+ flex: 0 0 30%;
176
+ max-width: 30%;
177
+ }
178
+ .sek-col-33 {
179
+ -ms-flex: 0 0 33.333%;
180
+ flex: 0 0 33.333%;
181
+ max-width: 33.333%;
182
+ }
183
+ .sek-col-40 {
184
+ -ms-flex: 0 0 40%;
185
+ flex: 0 0 40%;
186
+ max-width: 40%;
187
+ }
188
+ .sek-col-50 {
189
+ -ms-flex: 0 0 50%;
190
+ flex: 0 0 50%;
191
+ max-width: 50%;
192
+ }
193
+ .sek-col-60 {
194
+ -ms-flex: 0 0 60%;
195
+ flex: 0 0 60%;
196
+ max-width: 60%;
197
+ }
198
+ .sek-col-66 {
199
+ -ms-flex: 0 0 66.666%;
200
+ flex: 0 0 66.666%;
201
+ max-width: 66.666%;
202
+ }
203
+ .sek-col-70 {
204
+ -ms-flex: 0 0 70%;
205
+ flex: 0 0 70%;
206
+ max-width: 70%;
207
+ }
208
+ .sek-col-75 {
209
+ -ms-flex: 0 0 75%;
210
+ flex: 0 0 75%;
211
+ max-width: 75%;
212
+ }
213
+ .sek-col-80 {
214
+ -ms-flex: 0 0 80%;
215
+ flex: 0 0 80%;
216
+ max-width: 80%;
217
+ }
218
+ .sek-col-83 {
219
+ -ms-flex: 0 0 83.333%;
220
+ flex: 0 0 83.333%;
221
+ max-width: 83.333%;
222
+ }
223
+ .sek-col-90 {
224
+ -ms-flex: 0 0 90%;
225
+ flex: 0 0 90%;
226
+ max-width: 90%;
227
+ }
228
+ .sek-col-100 {
229
+ -ms-flex: 0 0 100%;
230
+ flex: 0 0 100%;
231
+ max-width: 100%;
232
+ }
233
+ .sek-order-first {
234
+ -ms-flex-order: -1;
235
+ order: -1;
236
+ }
237
+ .sek-order-last {
238
+ -ms-flex-order: 13;
239
+ order: 13;
240
+ }
241
+ .sek-order-0 {
242
+ -ms-flex-order: 0;
243
+ order: 0;
244
+ }
245
+ .sek-order-1 {
246
+ -ms-flex-order: 1;
247
+ order: 1;
248
+ }
249
+ .sek-order-2 {
250
+ -ms-flex-order: 2;
251
+ order: 2;
252
+ }
253
+ .sek-order-3 {
254
+ -ms-flex-order: 3;
255
+ order: 3;
256
+ }
257
+ .sek-order-4 {
258
+ -ms-flex-order: 4;
259
+ order: 4;
260
+ }
261
+ .sek-order-5 {
262
+ -ms-flex-order: 5;
263
+ order: 5;
264
+ }
265
+ .sek-order-6 {
266
+ -ms-flex-order: 6;
267
+ order: 6;
268
+ }
269
+ .sek-order-7 {
270
+ -ms-flex-order: 7;
271
+ order: 7;
272
+ }
273
+ .sek-order-8 {
274
+ -ms-flex-order: 8;
275
+ order: 8;
276
+ }
277
+ .sek-order-9 {
278
+ -ms-flex-order: 9;
279
+ order: 9;
280
+ }
281
+ .sek-order-10 {
282
+ -ms-flex-order: 10;
283
+ order: 10;
284
+ }
285
+ .sek-order-11 {
286
+ -ms-flex-order: 11;
287
+ order: 11;
288
+ }
289
+ .sek-order-12 {
290
+ -ms-flex-order: 12;
291
+ order: 12;
292
+ }
293
+ }
294
+
295
+ .sek-fade {
296
+ transition: opacity 0.15s linear;
297
+ }
298
+
299
+ @media screen and (prefers-reduced-motion: reduce) {
300
+ .sek-fade {
301
+ transition: none;
302
+ }
303
+ }
304
+
305
+ .sek-fade:not(.show) {
306
+ opacity: 0;
307
+ }
308
+
309
+ .sek-collapse:not(.show) {
310
+ display: none;
311
+ }
312
+
313
  /*
314
  .sek-collapsing {
315
  position: relative;
316
  height: 0;
317
  overflow: hidden;
318
  //@include transition($transition-collapse);
319
+ }*/
320
+ .sek-clearfix::after {
321
+ display: block;
322
+ clear: both;
323
+ content: "";
324
+ }
325
+
326
+ .sek-sr-only {
327
+ position: absolute;
328
+ width: 1px;
329
+ height: 1px;
330
+ padding: 0;
331
+ overflow: hidden;
332
+ clip: rect(0, 0, 0, 0);
333
+ white-space: nowrap;
334
+ border: 0;
335
+ }
336
+
337
+ .sek-sr-only-focusable:active, .sek-sr-only-focusable:focus {
338
+ position: static;
339
+ width: auto;
340
+ height: auto;
341
+ overflow: visible;
342
+ clip: auto;
343
+ white-space: normal;
344
+ }
345
+
346
+ .sek-embed {
347
+ position: relative;
348
+ }
349
+
350
+ .sek-embed::before {
351
+ display: block;
352
+ content: '';
353
+ }
354
+
355
+ .sek-embed .sek-embed-inner,
356
+ .sek-embed iframe {
357
+ position: absolute;
358
+ width: 100%;
359
+ height: 100%;
360
+ top: 0;
361
+ left: 0;
362
+ }
363
+
364
+ .sektion-wrapper {
365
+ word-wrap: break-word;
366
+ }
367
+
368
+ .sek-module .sek-module-inner ul {
369
+ list-style: disc;
370
+ }
371
+
372
+ .sek-module .sek-module-inner ol {
373
+ list-style: decimal;
374
+ }
375
+
376
+ .sek-module .sek-module-inner ol > li::before {
377
+ content: none;
378
+ }
379
+
380
+ .sek-module .sek-module-inner ul, .sek-module .sek-module-inner ol {
381
+ padding: 0;
382
+ line-height: 1.5;
383
+ margin: 0 1.5rem 1.5rem 0;
384
+ }
385
+
386
+ .sek-module .sek-module-inner ul > li, .sek-module .sek-module-inner ol > li {
387
+ padding: 0;
388
+ }
389
+
390
+ .sek-module .sek-module-inner li > ul, .sek-module .sek-module-inner li > ol {
391
+ margin-bottom: 0;
392
+ }
393
+
394
+ .sek-module-inner .sek-btn {
395
+ display: inline-block;
396
+ font-weight: normal;
397
+ line-height: 1.25em;
398
+ text-align: center;
399
+ /*white-space: nowrap;*/
400
+ white-space: normal;
401
+ word-break: break-all;
402
+ vertical-align: middle;
403
+ -webkit-user-select: none;
404
+ -moz-user-select: none;
405
+ -ms-user-select: none;
406
+ user-select: none;
407
+ border: 1px solid transparent;
408
+ padding: 0.5em 1em;
409
+ border-radius: 2px;
410
+ border-width: 2px;
411
+ border-style: solid;
412
+ font-size: 1em;
413
+ cursor: pointer;
414
+ text-decoration: none;
415
+ text-transform: none;
416
+ transition: all 0.2s ease-in-out;
417
+ }
418
+
419
+ .sek-module-inner .sek-btn:focus, .sek-module-inner .sek-btn:hover {
420
+ text-decoration: none;
421
+ }
422
+
423
+ .sek-module-inner .sek-btn:focus, .sek-module-inner .focus.sek-btn {
424
+ outline: 0;
425
+ box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
426
+ }
427
+
428
+ .sek-module-inner .disabled.sek-btn, .sek-module-inner .sek-btn:disabled {
429
+ cursor: not-allowed;
430
+ opacity: .65;
431
+ box-shadow: none;
432
+ }
433
+
434
+ .sek-module-inner .sek-btn:active, .sek-module-inner .active.sek-btn {
435
+ background-image: none;
436
+ box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
437
+ }
438
+
439
+ a.sek-btn.disabled,
440
+ fieldset[disabled] a.sek-btn {
441
+ pointer-events: none;
442
+ }
443
+
444
+ .sektion-wrapper button,
445
+ .sektion-wrapper [type="button"],
446
+ .sektion-wrapper [type="reset"],
447
+ .sektion-wrapper [type="submit"] {
448
+ -webkit-appearance: button;
449
+ }
450
+
451
+ .sektion-wrapper button::-moz-focus-inner,
452
+ .sektion-wrapper [type="button"]::-moz-focus-inner,
453
+ .sektion-wrapper [type="reset"]::-moz-focus-inner,
454
+ .sektion-wrapper [type="submit"]::-moz-focus-inner {
455
+ padding: 0;
456
+ border-style: none;
457
+ }
458
+
459
+ .sektion-wrapper button::-moz-focus-inner .sek-btn,
460
+ .sektion-wrapper [type="button"]::-moz-focus-inner .sek-btn,
461
+ .sektion-wrapper [type="reset"]::-moz-focus-inner .sek-btn,
462
+ .sektion-wrapper [type="submit"]::-moz-focus-inner .sek-btn {
463
+ padding: 0.5em 1em;
464
+ border-style: solid;
465
+ }
466
+
467
+ button.sek-btn,
468
+ [type="button"].sek-btn,
469
+ [type="reset"].sek-btn,
470
+ [type="submit"].sek-btn {
471
+ -wekbit-appearance: none !important;
472
+ background: transparent;
473
+ }
474
+
475
+ .sek-module-inner h1, .sek-module-inner h2, .sek-module-inner h3, .sek-module-inner h4, .sek-module-inner h5, .sek-module-inner h6 {
476
+ font-weight: 400;
477
+ line-height: 1.5em;
478
+ }
479
+
480
+ .sek-module-inner h1 {
481
+ font-size: 2.48em;
482
+ }
483
+
484
+ .sek-module-inner h2 {
485
+ font-size: 2.07em;
486
+ }
487
+
488
+ .sek-module-inner h3 {
489
+ font-size: 1.73em;
490
+ }
491
+
492
+ .sek-module-inner h4 {
493
+ font-size: 1.44em;
494
+ }
495
+
496
+ .sek-module-inner h5 {
497
+ font-size: 1.2em;
498
+ }
499
+
500
+ .sek-module-inner h6 {
501
+ font-size: 1em;
502
+ }
503
+
504
+ .sek-module-inner .sek-heading {
505
+ text-align: center;
506
+ margin: 0.6em 0;
507
+ display: block;
508
+ }
509
+
510
+ .sek-module-inner .sek-heading > a {
511
+ color: inherit;
512
+ font-size: inherit;
513
+ }
514
+
515
+ .sek-nav-wrap {
516
+ position: relative;
517
+ display: -ms-flexbox;
518
+ display: flex;
519
+ -ms-flex-wrap: wrap;
520
+ flex-wrap: wrap;
521
+ -ms-flex-align: center;
522
+ align-items: center;
523
+ -ms-flex-pack: justify;
524
+ justify-content: space-between;
525
+ -ms-flex-pack: center;
526
+ justify-content: center;
527
+ padding: .5rem 0;
528
+ }
529
+
530
+ .sek-mobile-menu-expanded-below .sek-nav-wrap {
531
+ padding: 0;
532
+ }
533
+
534
+ .sek-nav-collapse {
535
+ -ms-flex-preferred-size: 100%;
536
+ flex-basis: 100%;
537
+ -ms-flex-positive: 1;
538
+ flex-grow: 1;
539
+ -ms-flex-align: center;
540
+ align-items: center;
541
+ -ms-flex-pack: center;
542
+ justify-content: center;
543
+ }
544
+
545
+ .sek-nav {
546
+ display: -ms-flexbox;
547
+ display: flex;
548
+ -ms-flex-wrap: wrap;
549
+ flex-wrap: wrap;
550
+ -ms-flex-direction: column;
551
+ flex-direction: column;
552
+ }
553
+
554
+ .sek-module .sek-module-inner .sek-nav {
555
+ margin-right: -10px !important;
556
+ margin-left: -10px !important;
557
+ }
558
+
559
+ .sek-module .sek-module-inner .sek-nav,
560
+ .sek-module .sek-module-inner .sek-nav ul {
561
+ list-style: none !important;
562
+ padding: 0 !important;
563
+ margin: 0 !important;
564
+ }
565
+
566
+ .sek-module .sek-module-inner .sek-nav li {
567
+ list-style: none;
568
+ margin: 0 5px;
569
+ }
570
+
571
+ .sek-module .sek-module-inner .sek-nav li > ul li {
572
+ padding: 0 .9rem 0 0;
573
+ }
574
+
575
+ .sek-nav li a {
576
+ padding: .6em .8em;
577
+ display: -ms-flexbox;
578
+ display: flex;
579
+ -ms-flex-align: center;
580
+ align-items: center;
581
+ -ms-flex-pack: justify;
582
+ justify-content: space-between;
583
+ color: inherit;
584
+ overflow: hidden;
585
+ }
586
+
587
+ .sek-nav-wrap .sek-nav li a {
588
+ text-decoration: none;
589
+ }
590
+
591
+ .sek-nav li a:hover .sek-nav__title {
592
+ text-decoration: underline;
593
+ }
594
+
595
+ .sek-nav li:not(:last-of-type) {
596
+ border-bottom: 1px solid;
597
+ border-color: rgba(49, 49, 49, 0.09);
598
+ }
599
+
600
+ .sek-nav .menu-item-has-children,
601
+ .sek-nav .page_item_has_children {
602
+ position: relative;
603
+ }
604
+
605
+ .sek-nav .menu-item-has-children > a::after,
606
+ .sek-nav .page_item_has_children > a::after {
607
+ content: "\f107";
608
+ -moz-osx-font-smoothing: grayscale;
609
+ -webkit-font-smoothing: antialiased;
610
+ display: none;
611
+ font-style: normal;
612
+ font-variant: normal;
613
+ text-rendering: auto;
614
+ font-family: 'Font Awesome 5 Free';
615
+ font-weight: 900;
616
+ transition: all 0.3s ease;
617
+ -webkit-transform-style: preserve-3d;
618
+ transform-style: preserve-3d;
619
+ -webkit-backface-visibility: hidden;
620
+ backface-visibility: hidden;
621
+ -webkit-perspective: 1000px;
622
+ perspective: 1000px;
623
+ padding: 0 .45em;
624
+ font-size: .8em;
625
+ top: .1em;
626
+ position: relative;
627
+ }
628
+
629
+ .sek-nav .menu-item-has-children.show > a::after,
630
+ .sek-nav .page_item_has_children.show > a::after {
631
+ -webkit-transform: translateZ(0) rotate(180deg) !important;
632
+ transform: translateZ(0) rotate(180deg) !important;
633
+ -ms-transform: rotate(180deg) !important;
634
+ }
635
+
636
+ .sek-nav .sub-menu,
637
+ .sek-nav .children {
638
+ position: static;
639
+ float: none;
640
+ list-style: none;
641
+ border-radius: 0;
642
+ border: 0;
643
+ margin: 0;
644
+ padding: 0;
645
+ font-size: inherit;
646
+ }
647
+
648
+ @media (min-width: 768px) {
649
+ .sek-nav .sub-menu,
650
+ .sek-nav .children {
651
+ position: absolute;
652
+ display: none;
653
+ top: 100%;
654
+ right: 0;
655
+ z-index: 1000;
656
+ min-width: 10rem;
657
+ max-width: 50vw;
658
+ }
659
+ }
660
+
661
+ .sek-dropdown-submenu > a::after {
662
+ -webkit-transform: translateZ(0) rotate(90deg);
663
+ transform: translateZ(0) rotate(90deg);
664
+ -ms-transform: rotate(90deg);
665
+ }
666
+
667
+ .sek-dropdown-submenu > a[class*=-reverse]::after {
668
+ -webkit-transform: translateZ(0) rotate(270deg);
669
+ transform: translateZ(0) rotate(270deg);
670
+ -ms-transform: rotate(270deg);
671
+ }
672
+
673
+ .sek-nav-toggler {
674
+ -webkit-appearance: none !important;
675
+ cursor: pointer;
676
+ height: 40px;
677
+ width: 40px;
678
+ padding: 0;
679
+ vertical-align: middle;
680
+ }
681
+
682
+ .sek-nav-toggler, .sek-nav-toggler:hover, .sek-nav-toggler:focus {
683
+ background: 0 0;
684
+ background-color: rgba(0, 0, 0, 0);
685
+ color: black;
686
+ border: none;
687
+ }
688
+
689
+ .sek-ham__span-wrapper {
690
+ height: 12px;
691
+ position: relative;
692
+ }
693
+
694
+ .sek-ham__span-wrapper .line {
695
+ display: block;
696
+ height: 1.5px;
697
+ position: absolute;
698
+ left: 10px;
699
+ border-radius: 5px;
700
+ background-clip: padding-box;
701
+ transition: all ease .35s;
702
+ -webkit-backface-visibility: hidden;
703
+ backface-visibility: hidden;
704
+ border-top: 1.5px solid;
705
+ }
706
+
707
+ .sek-ham__span-wrapper .line-1 {
708
+ top: 0;
709
+ }
710
+
711
+ .sek-ham__span-wrapper .line-2 {
712
+ top: 50%;
713
+ }
714
+
715
+ .sek-ham__span-wrapper .line-3 {
716
+ top: 100%;
717
+ }
718
+
719
+ .sek-nav-toggler .line-1 {
720
+ -webkit-transform: translate(-3px, 6px) rotate(45deg);
721
+ transform: translate(-3px, 6px) rotate(45deg);
722
+ width: 28px;
723
+ }
724
+
725
+ .sek-nav-toggler .line-2 {
726
+ opacity: 0;
727
+ }
728
+
729
+ .sek-nav-toggler .line-3 {
730
+ -webkit-transform: translate(-3px, -6px) rotate(-45deg);
731
+ transform: translate(-3px, -6px) rotate(-45deg);
732
+ width: 28px;
733
+ }
734
+
735
+ .sek-nav-toggler.sek-collapsed .line {
736
+ width: 20px;
737
+ -webkit-transform: translate(0, 0) rotate(0);
738
+ transform: translate(0, 0) rotate(0);
739
+ opacity: 1;
740
+ }
741
+
742
+ .sek-nav-toggler.sek-collapsed.hovering .line {
743
+ -webkit-transform: translateX(-3px);
744
+ transform: translateX(-3px);
745
+ width: 26px;
746
+ }
747
+
748
+ .sek-dropdown-menu {
749
+ position: static;
750
+ float: none;
751
+ list-style: none;
752
+ border-radius: 0;
753
+ border: 0;
754
+ margin: 0;
755
+ padding: 0;
756
+ font-size: inherit;
757
+ }
758
+
759
+ @media (min-width: 768px) {
760
+ .sek-dropdown-menu {
761
+ position: absolute;
762
+ display: none;
763
+ top: 100%;
764
+ right: 0;
765
+ z-index: 1000;
766
+ min-width: 10rem;
767
+ max-width: 50vw;
768
+ }
769
+ }
770
+
771
+ .show > .sek-dropdown-menu {
772
+ display: block;
773
+ }
774
+
775
+ .sek-dropdown-menu .sek-nav__title {
776
+ word-break: break-word;
777
+ white-space: normal;
778
+ }
779
+
780
+ .sek-dropdown-menu.open-right {
781
+ left: 0;
782
+ right: auto;
783
+ }
784
+
785
+ .sek-dropdown-menu.open-right ul:not(.open-left),
786
+ .sek-dropdown-menu ul.open-right {
787
+ left: 100%;
788
+ right: auto;
789
+ }
790
+
791
+ .sek-dropdown-menu.open-left {
792
+ left: auto;
793
+ right: 0;
794
+ }
795
+
796
+ .sek-dropdown-menu.open-left ul:not(.open-right),
797
+ .sek-dropdown-menu ul.open-left {
798
+ right: 100%;
799
+ left: auto;
800
+ }
801
+
802
+ @media (min-width: 768px) {
803
+ .sek-nav {
804
+ -ms-flex-direction: row;
805
+ flex-direction: row;
806
+ }
807
+ .sek-nav .menu-item-has-children > a::after,
808
+ .sek-nav .page_item_has_children > a::after {
809
+ display: inline-block;
810
+ }
811
+ .sek-nav > li:not(:last-of-type) {
812
+ border-bottom: none;
813
+ }
814
+ .sek-nav > li > a {
815
+ padding: 5px;
816
+ }
817
+ .sek-nav-collapse {
818
+ display: -ms-flexbox !important;
819
+ display: flex !important;
820
+ -ms-flex-preferred-size: auto;
821
+ flex-basis: auto;
822
+ }
823
+ .sek-mobile-menu-expanded-below {
824
+ display: none !important;
825
+ }
826
+ .sek-nav-toggler {
827
+ display: none;
828
+ }
829
+ .sek-dropdown-menu {
830
+ background: white;
831
+ box-shadow: 1px 2px 2px 2px rgba(0, 0, 0, 0.15);
832
+ }
833
+ .sek-nav .sek-dropdown-menu li {
834
+ padding: 0 10px !important;
835
+ margin: 0 !important;
836
+ }
837
+ .sek-nav .sek-dropdown-menu li a {
838
+ padding: 10px 12px;
839
+ }
840
+ .sek-dropdown-menu ul {
841
+ right: 100%;
842
+ }
843
+ .sek-dropdown-menu .sek-menu-link__row-reverse {
844
+ -ms-flex-direction: row-reverse !important;
845
+ flex-direction: row-reverse !important;
846
+ }
847
+ .sek-dropdown-menu .sek-nav__title {
848
+ word-break: normal;
849
+ white-space: nowrap;
850
+ }
851
+ .sek-dropdown-submenu .sek-dropdown-menu {
852
+ top: 15px;
853
+ }
854
+ .sek-submenu-fade .sek-dropdown-menu a {
855
+ transition: all 0.25s ease;
856
+ -webkit-transform: translate(0, 0);
857
+ transform: translate(0, 0);
858
+ }
859
+ .sek-submenu-fade .sek-dropdown-menu a:hover {
860
+ -webkit-transform: translate(3px, 0);
861
+ transform: translate(3px, 0);
862
+ }
863
+ .sek-submenu-fade .page_item_has_children,
864
+ .sek-submenu-fade .menu-item-has-children {
865
+ -webkit-perspective: 1000px;
866
+ perspective: 1000px;
867
+ }
868
+ .sek-submenu-fade .page_item_has_children > ul,
869
+ .sek-submenu-fade .menu-item-has-children > ul {
870
+ position: fixed;
871
+ opacity: 0;
872
+ visibility: hidden;
873
+ display: block;
874
+ transition: all 0.25s ease-in-out;
875
+ -webkit-transform: translate(0, -10px);
876
+ transform: translate(0, -10px);
877
+ }
878
+ .sek-submenu-fade .page_item_has_children:not(.show),
879
+ .sek-submenu-fade .menu-item-has-children:not(.show) {
880
+ overflow: hidden;
881
+ }
882
+ .sek-submenu-fade .page_item_has_children:not(.show) ul,
883
+ .sek-submenu-fade .menu-item-has-children:not(.show) ul {
884
+ pointer-events: none;
885
+ cursor: not-allowed;
886
+ }
887
+ .sek-submenu-fade li.show {
888
+ -webkit-perspective: none;
889
+ perspective: none;
890
+ }
891
+ .sek-submenu-fade li.show > ul {
892
+ position: absolute;
893
+ visibility: visible;
894
+ opacity: 1;
895
+ -webkit-transform: translate(0, 0);
896
+ transform: translate(0, 0);
897
+ }
898
+ }
899
+
900
+ [class*=sek__r-w] {
901
+ position: relative;
902
+ display: block;
903
+ padding: 0;
904
+ overflow: hidden;
905
+ -webkit-backface-visibility: hidden;
906
+ backface-visibility: hidden;
907
+ -webkit-transform-style: preserve-3d;
908
+ transform-style: preserve-3d;
909
+ }
910
+
911
+ [class*=sek__r-w]::before {
912
+ display: block;
913
+ content: "";
914
+ }
915
+
916
+ .sek__r-wFP::before {
917
+ padding-top: 92.592593%;
918
+ }
919
+
920
+ .sek-fp-widget {
921
+ text-align: center;
922
+ margin: auto !important;
923
+ }
924
+
925
+ .sek-fp-widget .sek-fp-button-holder, .sek-fp-widget .sek-fp-title, .sek-fp-widget .sek-fp-text {
926
+ width: 90%;
927
+ margin-left: auto;
928
+ margin-right: auto;
929
+ }
930
+
931
+ .sek-fp-widget .sek-fp-title {
932
+ color: #5a5a5a;
933
+ line-height: 1.25em;
934
+ margin-top: .625em;
935
+ margin-bottom: 1.25em;
936
+ word-break: break-word;
937
+ position: relative;
938
+ font-weight: 500;
939
+ font-size: 1.44em;
940
+ }
941
+
942
+ .sek-fp-widget .sek-fp-title::after {
943
+ content: "";
944
+ position: absolute;
945
+ width: 1.25em;
946
+ background: #5a5a5a;
947
+ height: 2px;
948
+ top: 100%;
949
+ left: 0;
950
+ right: 0;
951
+ margin: .3125em auto 0;
952
+ transition: all .6s ease;
953
+ }
954
+
955
+ .sek-link-mask-p:hover .sek-fp-title::after {
956
+ width: 2.5em;
957
+ }
958
+
959
+ .sek-fp-widget .sek-fp-text {
960
+ color: #777;
961
+ line-height: 1.55em;
962
+ margin: 1.5em auto;
963
+ word-wrap: break-word;
964
+ }
965
+
966
+ .sek-fp-widget .sek-fp-text > a {
967
+ padding: 0 !important;
968
+ display: inline !important;
969
+ line-height: 1em !important;
970
+ }
971
+
972
+ .sek-fp-widget .sek-fp-btn-link {
973
+ text-transform: uppercase;
974
+ margin-bottom: 1.25em;
975
+ white-space: normal;
976
+ word-break: break-word;
977
+ outline: 0;
978
+ background-color: #3b3b3b;
979
+ color: #fff;
980
+ border-color: #3b3b3b;
981
+ font-size: .75em;
982
+ line-height: 2.5em;
983
+ padding: 0 2.5em;
984
+ }
985
+
986
+ .sek-fp-widget .sek-fp-btn-link:hover, .sek-fp-widget .sek-fp-btn-link:focus, .sek-fp-widget .sek-fp-btn-link:active {
987
+ color: #3b3b3b;
988
+ background: transparent;
989
+ }
990
+
991
+ .sek-fp-widget .sek-fp-thumb-wrapper {
992
+ max-width: 270px;
993
+ margin: 8px auto;
994
+ }
995
+
996
+ .sek-fp-widget img {
997
+ -webkit-transform: translate3d(0, 0, 0);
998
+ transform: translate3d(0, 0, 0);
999
+ -ms-transform: translate(0, 0);
1000
+ -webkit-transform-style: preserve-3d;
1001
+ transform-style: preserve-3d;
1002
+ -webkit-backface-visibility: hidden;
1003
+ backface-visibility: hidden;
1004
+ position: absolute;
1005
+ top: 0;
1006
+ left: 0;
1007
+ z-index: 0;
1008
+ }
1009
+
1010
+ .js-center-images-disabled .sek-fp-widget img {
1011
+ -webkit-transform: translate(-50%, -50%);
1012
+ transform: translate(-50%, -50%);
1013
+ -webkit-transform: translate3d(-50%, -50%, 0);
1014
+ transform: translate3d(-50%, -50%, 0);
1015
+ -ms-transform: translate(-50%, -50%);
1016
+ top: 50%;
1017
+ left: 50%;
1018
+ max-width: 100%;
1019
+ }
1020
+
1021
+ .sek-fp-widget img.h-centered {
1022
+ width: auto !important;
1023
+ max-width: none !important;
1024
+ }
1025
+
1026
+ .sek-fp-widget img.v-centered {
1027
+ height: auto !important;
1028
+ max-height: none !important;
1029
+ max-width: none !important;
1030
+ vertical-align: top;
1031
+ }
1032
+
1033
+ .sek-link-mask {
1034
+ position: absolute;
1035
+ border-color: white;
1036
+ left: 0;
1037
+ right: 0;
1038
+ top: 0;
1039
+ bottom: 0;
1040
+ overflow: hidden;
1041
+ z-index: 1;
1042
+ }
1043
+
1044
+ .sek-link-mask.no-effect {
1045
+ border: none;
1046
+ }
1047
+
1048
+ .sek-link-mask::before {
1049
+ position: absolute;
1050
+ width: 63%;
1051
+ padding-bottom: 63%;
1052
+ content: '';
1053
+ z-index: 1;
1054
+ left: 50%;
1055
+ top: 50%;
1056
+ -webkit-transform: translate(-50%, -50%);
1057
+ transform: translate(-50%, -50%);
1058
+ -webkit-transform: translate3d(-50%, -50%, 0);
1059
+ transform: translate3d(-50%, -50%, 0);
1060
+ /* end of centering */
1061
+ border: 150px solid;
1062
+ border-color: inherit;
1063
+ box-sizing: content-box;
1064
+ transition: all .3s ease;
1065
+ }
1066
+
1067
+ .round .sek-link-mask::before {
1068
+ border-radius: 50%;
1069
+ }
1070
+
1071
+ .sek-link-mask-p:hover .sek-link-mask::before {
1072
+ -webkit-transform: translate(-50%, -50%) scale(1.4);
1073
+ transform: translate(-50%, -50%) scale(1.4);
1074
+ /* fallback for those browsers w/o translate3d transform property*/
1075
+ -webkit-transform: translate3d(-50%, -50%, 0) scale(1.4);
1076
+ transform: translate3d(-50%, -50%, 0) scale(1.4);
1077
+ -ms-transform: translate(-50%, -50%) scale(1.4);
1078
+ }
1079
+
1080
+ .no-cssanimations .sek-link-mask {
1081
+ border: transparent;
1082
+ }
1083
+
1084
+ .no-cssanimations .sek-fp-thumb-wrapper {
1085
+ opacity: .7;
1086
+ }
1087
+
1088
+ .no-cssanimations .sek-fp-thumb-wrapper:hover {
1089
+ opacity: 1;
1090
+ }
1091
+
1092
+ [data-sek-module-type="czr_image_module"] {
1093
+ text-align: center;
1094
+ }
1095
+
1096
+ [data-sek-module-type="czr_image_module"] img {
1097
+ border: 0 solid #f2f2f2;
1098
+ }
1099
+
1100
+ [data-sek-module-type="czr_image_module"] .box-shadow img {
1101
+ box-shadow: rgba(0, 0, 0, 0.25) 0px 3px 11px 0;
1102
+ }
1103
+
1104
+ /* image module transitions for better animations when effects are used */
1105
+ [data-sek-module-type="czr_image_module"] figure img {
1106
+ transition: all 0.2s ease-out;
1107
+ }
1108
+
1109
+ .sek-hover-effect-opacity img:hover {
1110
+ opacity: .7;
1111
+ }
1112
+
1113
+ .sek-hover-effect-zoom-out img:hover {
1114
+ -webkit-transform: scale(1.05);
1115
+ transform: scale(1.05);
1116
+ }
1117
+
1118
+ .sek-hover-effect-zoom-in img:hover {
1119
+ -webkit-transform: scale(0.95);
1120
+ transform: scale(0.95);
1121
+ }
1122
+
1123
+ .sek-hover-effect-move-up img:hover {
1124
+ -webkit-transform: translateY(-6px);
1125
+ transform: translateY(-6px);
1126
+ }
1127
+
1128
+ .sek-hover-effect-move-down img:hover {
1129
+ -webkit-transform: translateY(6px);
1130
+ transform: translateY(6px);
1131
+ }
1132
+
1133
+ .sek-hover-effect-blur img:hover {
1134
+ -webkit-filter: blur(2px);
1135
+ filter: blur(2px);
1136
+ }
1137
+
1138
+ .sek-hover-effect-grayscale img:hover {
1139
+ -webkit-filter: grayscale(0%);
1140
+ filter: grayscale(0%);
1141
+ }
1142
+
1143
+ .sek-hover-effect-grayscale img:hover {
1144
+ -webkit-filter: grayscale(100%);
1145
+ filter: grayscale(100%);
1146
+ -webkit-filter: gray;
1147
+ filter: gray;
1148
+ }
1149
+
1150
+ .sek-hover-effect-reverse-grayscale img {
1151
+ -webkit-filter: grayscale(100%);
1152
+ filter: grayscale(100%);
1153
+ -webkit-filter: gray;
1154
+ filter: gray;
1155
+ }
1156
+
1157
+ .sek-hover-effect-reverse-grayscale img:hover {
1158
+ -webkit-filter: grayscale(0%);
1159
+ filter: grayscale(0%);
1160
+ }
1161
+
1162
+ .sek-nimble-image-wrapper {
1163
+ max-width: 100%;
1164
+ overflow: hidden;
1165
+ width: 100%;
1166
+ position: relative;
1167
+ display: block;
1168
+ background-position: center center;
1169
+ background-size: cover;
1170
+ display: -ms-flexbox;
1171
+ display: flex;
1172
+ -ms-flex-align: center;
1173
+ align-items: center;
1174
+ -ms-flex-pack: center;
1175
+ justify-content: center;
1176
+ -webkit-backface-visibility: hidden;
1177
+ backface-visibility: hidden;
1178
+ -webkit-transform-style: preserve-3d;
1179
+ transform-style: preserve-3d;
1180
+ }
1181
+
1182
+ .sek-nimble-image-wrapper::before {
1183
+ content: '';
1184
+ display: block;
1185
+ padding-top: 100%;
1186
+ }
1187
+
1188
+ .sek-nimble-image-mask {
1189
+ position: absolute;
1190
+ border-color: #fff;
1191
+ left: 0;
1192
+ right: 0;
1193
+ top: 0;
1194
+ bottom: 0;
1195
+ overflow: hidden;
1196
+ z-index: 1;
1197
+ display: -ms-flexbox;
1198
+ display: flex;
1199
+ -ms-flex-align: center;
1200
+ align-items: center;
1201
+ -ms-flex-pack: center;
1202
+ justify-content: center;
1203
+ }
1204
+
1205
+ .sek-nimble-image-mask::before {
1206
+ position: absolute;
1207
+ width: 63%;
1208
+ padding-bottom: 63%;
1209
+ content: '';
1210
+ z-index: 1;
1211
+ border: 150vw solid;
1212
+ border-color: inherit;
1213
+ box-sizing: content-box;
1214
+ transition: all .3s ease;
1215
+ -webkit-backface-visibility: hidden;
1216
+ backface-visibility: hidden;
1217
+ }
1218
+
1219
+ .sek-nimble-image-wrapper.expanded .sek-nimble-image-mask::before,
1220
+ .sek-nimble-image-wrapper.hover .sek-nimble-image-mask::before,
1221
+ .sek-nimble-image-wrapper:hover .sek-nimble-image-mask::before {
1222
+ -webkit-transform: scale(1.4);
1223
+ transform: scale(1.4);
1224
+ }
1225
+
1226
+ .sek-nimble-image-wrapper.round .sek-nimble-image-mask::before {
1227
+ border-radius: 50%;
1228
+ }
1229
+
1230
+ .sek-nimble-image {
1231
+ position: absolute;
1232
+ width: 100%;
1233
+ height: 100%;
1234
+ background-position: center center;
1235
+ background-size: cover;
1236
+ z-index: 0;
1237
+ }
1238
+
1239
+ [data-sek-module-type="czr_divider_module"] {
1240
+ text-align: center;
1241
+ }
1242
+
1243
+ [data-sek-module-type="czr_divider_module"] .sek-module-inner {
1244
+ font-size: 0;
1245
+ line-height: 0;
1246
+ }
1247
+
1248
+ .sek-divider {
1249
+ border-top: 1px solid #5a5a5a;
1250
+ display: inline-block;
1251
+ width: 100%;
1252
+ margin-top: 15px;
1253
+ margin-bottom: 15px;
1254
+ font-size: 1rem;
1255
+ }
1256
+
1257
+ .sek-spacer {
1258
+ height: 20px;
1259
+ }
1260
+
1261
+ [data-sek-module-type="czr_icon_module"] {
1262
+ text-align: center;
1263
+ color: #5a5a5a;
1264
+ font-size: 15px;
1265
+ }
1266
+
1267
+ [data-sek-module-type="czr_icon_module"] a.sek-icon,
1268
+ [data-sek-module-type="czr_icon_module"] a.sek-icon:hover,
1269
+ [data-sek-module-type="czr_icon_module"] a.sek-icon:focus,
1270
+ [data-sek-module-type="czr_icon_module"] a.sek-icon:active,
1271
+ [data-sek-module-type="czr_icon_module"] a.sek-icon.active {
1272
+ color: inherit;
1273
+ }
1274
+
1275
+ [data-sek-module-type="czr_icon_module"] .box-shadow .sek-icon-wrapper {
1276
+ box-shadow: rgba(0, 0, 0, 0.25) 0px 3px 11px 0;
1277
+ }
1278
+
1279
+ [data-sek-module-type="czr_icon_module"] .sek-icon i {
1280
+ webkit-transition: all 0.15s ease-in-out;
1281
+ transition: all 0.15s ease-in-out;
1282
+ }
1283
+
1284
+ [data-sek-module-type="czr_icon_module"] .sek-icon .fas, [data-sek-module-type="czr_icon_module"] .sek-icon .far, [data-sek-module-type="czr_icon_module"] .sek-icon .fab {
1285
+ width: 1em;
1286
+ height: 1em;
1287
+ text-align: center;
1288
+ }
1289
+
1290
+ [data-sek-module-type="czr_icon_module"] a.sek-icon {
1291
+ box-shadow: none;
1292
+ -webkit-box-shadow: none;
1293
+ }
1294
+
1295
+ [data-sek-module-type="czr_icon_module"] a.sek-icon:hover, [data-sek-module-type="czr_icon_module"] a.sek-icon:focus, [data-sek-module-type="czr_icon_module"] a.sek-icon:active {
1296
+ box-shadow: none;
1297
+ -webkit-box-shadow: none;
1298
+ }
1299
+
1300
+ [data-sek-module-type="czr_icon_module"] .sek-icon-wrapper {
1301
+ display: inline-block;
1302
+ }
1303
+
1304
+ .sek-quote p {
1305
+ margin: 0 0 .5em;
1306
+ padding: 0;
1307
+ }
1308
+
1309
+ .sek-quote .sek-cite {
1310
+ font-size: 13px;
1311
+ line-height: 1.5em;
1312
+ font-style: inherit;
1313
+ }
1314
+
1315
+ .sek-quote.sek-quote-design {
1316
+ background: none;
1317
+ font-style: inherit;
1318
+ margin-right: 0;
1319
+ margin-left: 0;
1320
+ padding: 15px 0;
1321
+ border: none;
1322
+ }
1323
+
1324
+ .sek-quote.sek-quote-design > * {
1325
+ padding: 0;
1326
+ margin: 0;
1327
+ }
1328
+
1329
+ .sek-quote.sek-quote-design::before, .sek-quote.sek-quote-design::after {
1330
+ display: none;
1331
+ }
1332
+
1333
+ .sek-quote.sek-quote-design .sek-cite {
1334
+ padding: 0;
1335
+ font-weight: normal;
1336
+ }
1337
+
1338
+ .sek-quote.sek-quote-design .sek-cite::before {
1339
+ display: none;
1340
+ }
1341
+
1342
+ .sek-quote.sek-quote-design .sek-quote-inner {
1343
+ color: inherit;
1344
+ padding-right: calc(10px + 1.3em);
1345
+ }
1346
+
1347
+ .sek-quote.sek-quote-design .sek-quote-content {
1348
+ font-weight: 400;
1349
+ font-size: 16px;
1350
+ color: inherit;
1351
+ }
1352
+
1353
+ .sek-quote.sek-quote-design.sek-border-before {
1354
+ padding-right: 15px;
1355
+ border-right: 5px solid;
1356
+ }
1357
+
1358
+ .sek-quote.sek-quote-design.sek-border-before .sek-cite {
1359
+ clear: both;
1360
+ display: block;
1361
+ margin-top: 1.5em;
1362
+ position: relative;
1363
+ padding-right: 2.2em;
1364
+ padding-left: 0.25em;
1365
+ }
1366
+
1367
+ .sek-quote.sek-quote-design.sek-border-before .sek-cite::before {
1368
+ display: block;
1369
+ content: '';
1370
+ top: 1em;
1371
+ position: absolute;
1372
+ background: none;
1373
+ width: 2em;
1374
+ height: auto;
1375
+ right: 0;
1376
+ border-top: 1px solid;
1377
+ }
1378
+
1379
+ .sek-quote.sek-quote-design.sek-quote-icon-before {
1380
+ position: relative;
1381
+ display: -ms-flexbox;
1382
+ display: flex;
1383
+ font-size: 32px;
1384
+ }
1385
+
1386
+ .sek-quote.sek-quote-design.sek-quote-icon-before .sek-quote-content *:last-child {
1387
+ margin-bottom: .75em;
1388
+ }
1389
+
1390
+ .sek-quote.sek-quote-design.sek-quote-icon-before::before {
1391
+ content: '\f10d';
1392
+ color: #ccc;
1393
+ font-weight: 900;
1394
+ font-style: normal;
1395
+ text-align: center;
1396
+ font-family: 'Font Awesome 5 Free';
1397
+ -moz-osx-font-smoothing: grayscale;
1398
+ -webkit-font-smoothing: antialiased;
1399
+ font-variant: normal;
1400
+ text-rendering: auto;
1401
+ display: -ms-flexbox;
1402
+ display: flex;
1403
+ position: static;
1404
+ width: auto;
1405
+ margin: 0;
1406
+ right: 0;
1407
+ position: absolute;
1408
+ top: 0;
1409
+ }
1410
+
1411
+ [data-sek-module-type="czr_button_module"] .sek-module-inner {
1412
+ text-align: center;
1413
+ }
1414
+
1415
+ .sek-module-inner .sek-btn {
1416
+ background: #020202;
1417
+ color: #ffffff;
1418
+ padding: 0.5em 1em;
1419
+ }
1420
+
1421
+ .sek-module-inner .sek-btn i {
1422
+ margin: 0 8px;
1423
+ }
1424
+
1425
+ .sek-module-inner .sek-btn:hover, .sek-module-inner .sek-btn:focus, .sek-module-inner .sek-btn:active {
1426
+ color: #ffffff;
1427
+ }
1428
+
1429
+ .sek-btn-inner {
1430
+ display: -ms-flexbox;
1431
+ display: flex;
1432
+ -ms-flex-align: center;
1433
+ align-items: center;
1434
+ }
1435
+
1436
+ .sek-btn.box-shadow {
1437
+ box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
1438
+ }
1439
+
1440
+ .sek-btn.box-shadow.push-effect:active {
1441
+ -webkit-transform: translateY(2px);
1442
+ transform: translateY(2px);
1443
+ }
1444
+
1445
+ .sek-post-grid-wrapper {
1446
+ margin-top: 1.5rem;
1447
+ margin-bottom: 1.5rem;
1448
+ }
1449
+
1450
+ .sek-post-grid-wrapper .sek-grid-items {
1451
+ grid-row-gap: 25px;
1452
+ }
1453
+
1454
+ .sek-post-grid-wrapper .sek-grid-items.sek-list-layout article > *:not(:last-child):not(.sek-pg-thumbnail) {
1455
+ margin-bottom: 15px;
1456
+ }
1457
+
1458
+ .sek-post-grid-wrapper .sek-grid-items.sek-grid-layout article > *:not(:last-child) {
1459
+ margin-bottom: 15px;
1460
+ }
1461
+
1462
+ .sek-post-grid-wrapper .sek-grid-items article > :first-child {
1463
+ margin-top: 0 !important;
1464
+ }
1465
+
1466
+ .sek-post-grid-wrapper .sek-grid-items article > :last-child {
1467
+ margin-top: 0 !important;
1468
+ }
1469
+
1470
+ .sek-post-grid-wrapper .sek-grid-items article > *:not(:last-child) {
1471
+ margin-top: 0 !important;
1472
+ }
1473
+
1474
+ .sek-post-grid-wrapper .sek-grid-items article .sek-pg-content > *:not(:last-child) {
1475
+ margin-top: 0 !important;
1476
+ margin-bottom: 15px;
1477
+ }
1478
+
1479
+ .sek-post-grid-wrapper .sek-grid-items article .sek-pg-content > :first-child {
1480
+ margin-top: 0 !important;
1481
+ }
1482
+
1483
+ .sek-post-grid-wrapper .sek-grid-items article .sek-pg-content > :last-child {
1484
+ margin-top: 0 !important;
1485
+ }
1486
+
1487
+ .sek-post-grid-wrapper .sek-grid-items.sek-shadow-on-hover article {
1488
+ box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.05);
1489
+ transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
1490
+ }
1491
+
1492
+ .sek-post-grid-wrapper .sek-grid-items.sek-shadow-on-hover article:hover {
1493
+ -webkit-transform: translateY(-4px);
1494
+ transform: translateY(-4px);
1495
+ box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18), 0 10px 10px rgba(0, 0, 0, 0.15);
1496
+ }
1497
+
1498
+ .sek-post-grid-wrapper .sek-pg-thumbnail {
1499
+ box-shadow: 0 5px 5px 0 rgba(18, 63, 82, 0.035), 0 0 0 1px rgba(176, 181, 193, 0.2);
1500
+ background-color: #fff;
1501
+ overflow: hidden;
1502
+ }
1503
+
1504
+ .sek-post-grid-wrapper .sek-pg-thumbnail a {
1505
+ display: block;
1506
+ position: relative;
1507
+ }
1508
+
1509
+ .sek-post-grid-wrapper .sek-pg-thumbnail img {
1510
+ display: block;
1511
+ width: 100%;
1512
+ height: auto;
1513
+ }
1514
+
1515
+ .sek-post-grid-wrapper .sek-thumb-custom-height .sek-pg-thumbnail a {
1516
+ height: 0;
1517
+ padding-top: 65%;
1518
+ }
1519
+
1520
+ .sek-post-grid-wrapper .sek-thumb-custom-height .sek-pg-thumbnail img {
1521
+ position: absolute;
1522
+ height: 100%;
1523
+ width: 100%;
1524
+ max-height: none;
1525
+ max-width: none;
1526
+ top: 0;
1527
+ left: 0;
1528
+ right: 0;
1529
+ bottom: 0;
1530
+ -o-object-fit: cover;
1531
+ object-fit: cover;
1532
+ }
1533
+
1534
+ .sek-post-grid-wrapper .sek-pg-metas > span:not(:last-child)::after {
1535
+ content: "\B7";
1536
+ vertical-align: middle;
1537
+ margin: 0 5px;
1538
+ line-height: 1;
1539
+ }
1540
+
1541
+ .sek-post-grid-wrapper .sek-pg-content {
1542
+ text-align: right;
1543
+ }
1544
+
1545
+ .sek-post-grid-wrapper .sek-excerpt > :last-child {
1546
+ margin-bottom: 0;
1547
+ }
1548
+
1549
+ .sek-post-grid-wrapper .sek-pg-category a {
1550
+ text-transform: uppercase;
1551
+ font-size: 14px;
1552
+ text-decoration: none;
1553
+ color: #767676;
1554
+ }
1555
+
1556
+ .sek-post-grid-wrapper .sek-pg-title {
1557
+ font-size: 28px;
1558
+ line-height: 1.3em;
1559
+ }
1560
+
1561
+ .sek-post-grid-wrapper .sek-pg-title a {
1562
+ text-decoration: none;
1563
+ color: #444;
1564
+ font-size: 28px;
1565
+ font-weight: 400;
1566
+ line-height: 1.3em;
1567
+ -ms-word-wrap: break-word;
1568
+ word-wrap: break-word;
1569
+ }
1570
+
1571
+ .sek-post-grid-wrapper .sek-pg-metas span, .sek-post-grid-wrapper .sek-pg-metas a {
1572
+ text-transform: uppercase;
1573
+ font-size: 14px;
1574
+ letter-spacing: 1px;
1575
+ color: #767676;
1576
+ }
1577
+
1578
+ .sek-post-grid-wrapper .sek-pg-content p {
1579
+ margin: 0 0 15px 0;
1580
+ line-height: 1.5;
1581
+ font-size: 16px;
1582
+ color: #494949;
1583
+ }
1584
+
1585
+ .sek-post-grid-wrapper .sek-list-layout {
1586
+ display: -ms-grid;
1587
+ display: grid;
1588
+ -ms-grid-columns: minmax(0, 1fr);
1589
+ grid-template-columns: minmax(0, 1fr);
1590
+ }
1591
+
1592
+ .sek-post-grid-wrapper .sek-list-layout article {
1593
+ display: -ms-grid;
1594
+ display: grid;
1595
+ -ms-grid-columns: minmax(0, 1fr);
1596
+ grid-template-columns: minmax(0, 1fr);
1597
+ -ms-grid-rows: 1fr;
1598
+ grid-template-rows: 1fr;
1599
+ grid-column-gap: 20px;
1600
+ }
1601
+
1602
+ .sek-post-grid-wrapper .sek-list-layout article > *:nth-child(1) {
1603
+ -ms-grid-row: 1;
1604
+ -ms-grid-column: 1;
1605
+ }
1606
+
1607
+ .sek-post-grid-wrapper .sek-list-layout article.sek-has-thumb {
1608
+ -ms-grid-columns: 30% minmax(0, 1fr);
1609
+ grid-template-columns: 30% minmax(0, 1fr);
1610
+ }
1611
+
1612
+ .sek-post-grid-wrapper .sek-list-layout article .sek-pg-thumbnail {
1613
+ margin-bottom: 0;
1614
+ -ms-flex-item-align: start;
1615
+ align-self: flex-start;
1616
+ }
1617
+
1618
+ .sek-post-grid-wrapper .sek-grid-layout {
1619
+ display: -ms-grid;
1620
+ display: grid;
1621
+ -ms-grid-columns: 1fr 20px 1fr;
1622
+ grid-template-columns: 1fr 1fr;
1623
+ -ms-grid-rows: 1fr;
1624
+ grid-template-rows: 1fr;
1625
+ grid-row-gap: 20px;
1626
+ grid-column-gap: 20px;
1627
+ }
1628
+
1629
+ .sek-post-grid-wrapper .sek-grid-layout > *:nth-child(1) {
1630
+ -ms-grid-row: 1;
1631
+ -ms-grid-column: 1;
1632
+ }
1633
+
1634
+ .sek-post-grid-wrapper .sek-grid-layout > *:nth-child(2) {
1635
+ -ms-grid-row: 1;
1636
+ -ms-grid-column: 3;
1637
+ }
1638
+
1639
+ .sek-post-grid-wrapper .sek-grid-layout.sek-all-col-1 {
1640
+ -ms-grid-columns: minmax(0, 1fr);
1641
+ grid-template-columns: minmax(0, 1fr);
1642
+ }
1643
+
1644
+ .sek-post-grid-wrapper .sek-grid-layout.sek-all-col-2 {
1645
+ -ms-grid-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
1646
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
1647
+ grid-column-gap: 20px;
1648
+ grid-row-gap: 20px;
1649
+ }
1650
+
1651
+ .sek-post-grid-wrapper .sek-grid-layout.sek-all-col-3 {
1652
+ -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr);
1653
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
1654
+ grid-column-gap: 15px;
1655
+ grid-row-gap: 15px;
1656
+ }
1657
+
1658
+ .sek-post-grid-wrapper .sek-grid-layout.sek-all-col-4 {
1659
+ -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr);
1660
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
1661
+ grid-column-gap: 15px;
1662
+ grid-row-gap: 15px;
1663
+ }
1664
+
1665
+ @media (min-width: 768px) {
1666
+ .sek-post-grid-wrapper .sek-grid-layout.sek-desktop-col-1 {
1667
+ -ms-grid-columns: minmax(0, 1fr);
1668
+ grid-template-columns: minmax(0, 1fr);
1669
+ }
1670
+ .sek-post-grid-wrapper .sek-grid-layout.sek-desktop-col-2 {
1671
+ -ms-grid-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
1672
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
1673
+ grid-column-gap: 20px;
1674
+ grid-row-gap: 20px;
1675
+ }
1676
+ .sek-post-grid-wrapper .sek-grid-layout.sek-desktop-col-3 {
1677
+ -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr);
1678
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
1679
+ grid-column-gap: 15px;
1680
+ grid-row-gap: 15px;
1681
+ }
1682
+ .sek-post-grid-wrapper .sek-grid-layout.sek-desktop-col-4 {
1683
+ -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr);
1684
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
1685
+ grid-column-gap: 15px;
1686
+ grid-row-gap: 15px;
1687
+ }
1688
+ }
1689
+
1690
+ @media (min-width: 576px) and (max-width: 767.98px) {
1691
+ .sek-post-grid-wrapper .sek-grid-layout.sek-tablet-col-1 {
1692
+ -ms-grid-columns: minmax(0, 1fr) !important;
1693
+ grid-template-columns: minmax(0, 1fr) !important;
1694
+ }
1695
+ .sek-post-grid-wrapper .sek-grid-layout.sek-tablet-col-2 {
1696
+ -ms-grid-columns: minmax(0, 1fr) 20px minmax(0, 1fr) !important;
1697
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
1698
+ grid-column-gap: 20px;
1699
+ grid-row-gap: 20px;
1700
+ }
1701
+ .sek-post-grid-wrapper .sek-grid-layout.sek-tablet-col-3 {
1702
+ -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) !important;
1703
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
1704
+ grid-column-gap: 15px;
1705
+ grid-row-gap: 15px;
1706
+ }
1707
+ .sek-post-grid-wrapper .sek-grid-layout.sek-tablet-col-4 {
1708
+ -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) !important;
1709
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
1710
+ grid-column-gap: 15px;
1711
+ grid-row-gap: 15px;
1712
+ }
1713
+ }
1714
+
1715
+ @media (max-width: 575.98px) {
1716
+ .sek-post-grid-wrapper .sek-grid-layout.sek-mobile-col-1 {
1717
+ -ms-grid-columns: minmax(0, 1fr) !important;
1718
+ grid-template-columns: minmax(0, 1fr) !important;
1719
+ }
1720
+ .sek-post-grid-wrapper .sek-grid-layout.sek-mobile-col-2 {
1721
+ -ms-grid-columns: minmax(0, 1fr) 20px minmax(0, 1fr) !important;
1722
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
1723
+ grid-column-gap: 20px;
1724
+ grid-row-gap: 20px;
1725
+ }
1726
+ .sek-post-grid-wrapper .sek-grid-layout.sek-mobile-col-3 {
1727
+ -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) !important;
1728
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
1729
+ grid-column-gap: 15px;
1730
+ grid-row-gap: 15px;
1731
+ }
1732
+ .sek-post-grid-wrapper .sek-grid-layout.sek-mobile-col-4 {
1733
+ -ms-grid-columns: minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) 15px minmax(0, 1fr) !important;
1734
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
1735
+ grid-column-gap: 15px;
1736
+ grid-row-gap: 15px;
1737
+ }
1738
+ }
1739
+
1740
+ @media (min-width: 576px) and (max-width: 767.98px) {
1741
+ .sek-post-grid-wrapper.sek-has-tablet-breakpoint .sek-list-layout article {
1742
+ -ms-grid-columns: minmax(0, 1fr) !important;
1743
+ grid-template-columns: minmax(0, 1fr) !important;
1744
+ grid-gap: 0;
1745
+ }
1746
+ .sek-post-grid-wrapper.sek-has-tablet-breakpoint .sek-list-layout article .sek-pg-thumbnail {
1747
+ margin-bottom: 15px;
1748
+ }
1749
+ }
1750
+
1751
+ @media (max-width: 575.98px) {
1752
+ .sek-post-grid-wrapper.sek-has-mobile-breakpoint .sek-list-layout article {
1753
+ -ms-grid-columns: minmax(0, 1fr) !important;
1754
+ grid-template-columns: minmax(0, 1fr) !important;
1755
+ grid-gap: 0;
1756
+ }
1757
+ .sek-post-grid-wrapper.sek-has-mobile-breakpoint .sek-list-layout article .sek-pg-thumbnail {
1758
+ margin-bottom: 15px;
1759
+ }
1760
+ }
1761
+
1762
+ .sek-simple-form-wrapper input[type=text], .sek-simple-form-wrapper textarea {
1763
+ font-size: 16px;
1764
+ width: 100% !important;
1765
+ padding: 0.4em 0.5em;
1766
+ border-radius: 3px;
1767
+ box-sizing: border-box;
1768
+ outline: none;
1769
+ font-weight: normal;
1770
+ max-width: 100%;
1771
+ border: none;
1772
+ color: #555555;
1773
+ background-color: #ffffff;
1774
+ }
1775
+
1776
+ .sek-simple-form-wrapper textarea {
1777
+ height: auto;
1778
+ max-height: 150px;
1779
+ }
1780
+
1781
+ .sek-simple-form-wrapper .sek-form-field {
1782
+ margin-bottom: 15px;
1783
+ clear: both;
1784
+ }
1785
+
1786
+ .sek-simple-form-wrapper label {
1787
+ font-family: "Lucida Grande","Lucida Sans Unicode",Tahoma,sans-serif;
1788
+ color: #444444;
1789
+ font-weight: bold;
1790
+ text-align: left;
1791
+ margin: 0;
1792
+ padding: 0 0 3px 0;
1793
+ width: auto;
1794
+ display: block;
1795
+ }
1796
+
1797
+ .sek-simple-form-wrapper.use-outset-shadow .sek-form-field input[type="text"], .sek-simple-form-wrapper.use-outset-shadow .sek-form-field textarea {
1798
+ box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
1799
+ }
1800
+
1801
+ .sek-simple-form-wrapper.use-inset-shadow .sek-form-field input[type="text"], .sek-simple-form-wrapper.use-inset-shadow .sek-form-field textarea {
1802
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
1803
+ }
1804
+
1805
+ .sek-simple-form-wrapper #sek-form-respond {
1806
+ padding: 20px 0;
1807
+ }
1808
+
1809
+ .sek-form-message {
1810
+ padding: 10px;
1811
+ margin: 10px 0;
1812
+ text-align: center;
1813
+ line-height: 1.5em;
1814
+ font-size: 16px;
1815
+ border-radius: 4px;
1816
+ }
1817
+
1818
+ .sek-form-message.sek-mail-failure {
1819
+ color: #ff0000;
1820
+ border: 1px solid #ff0000;
1821
+ background: none;
1822
+ background: rgba(255, 0, 0, 0.05);
1823
+ }
1824
+
1825
+ .sek-form-message.sek-mail-success {
1826
+ color: #008000;
1827
+ border: 1px solid #008000;
1828
+ background: none;
1829
+ background: rgba(0, 128, 0, 0.05);
1830
+ }
1831
+
1832
+ .sek-form-message.sek-mail-aborted {
1833
+ color: #ffa500;
1834
+ border: 1px solid #ffa500;
1835
+ background: none;
1836
+ background: rgba(255, 165, 0, 0.05);
1837
+ }
1838
+
1839
+ .grecaptcha-badge {
1840
+ z-index: 1;
1841
+ }
1842
+
1843
+ .sek-hide-rc-badge .grecaptcha-badge {
1844
+ display: none;
1845
+ }
1846
+
1847
+ [data-sek-module-type="czr_tiny_mce_editor_module"] a {
1848
+ text-decoration: underline;
1849
+ }
1850
+
1851
+ .sek-module-inner {
1852
+ line-height: 1.5em;
1853
+ }
1854
+
1855
+ .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 {
1856
+ line-height: 1.5em;
1857
+ }
1858
+
1859
+ .sek-module-inner p {
1860
+ margin: 0 0 1em;
1861
+ padding: 0;
1862
+ }
1863
+
1864
+ .sek-module-inner a {
1865
+ text-decoration: none;
1866
+ box-shadow: none;
1867
+ }
1868
+
1869
+ .sek-module-inner img {
1870
+ height: auto;
1871
+ max-width: 100%;
1872
+ border: none;
1873
+ border-radius: 0;
1874
+ box-shadow: none;
1875
+ }
1876
+
1877
+ 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 {
1878
+ content: none;
1879
+ background: none;
1880
+ }
1881
+
1882
+ /* make sure that the location level occupies 100% of the width */
1883
+ [data-sek-level="location"] {
1884
+ clear: both;
1885
+ font-size: 16px;
1886
+ }
1887
+
1888
+ /* To make vertical alignment possible in sections */
1889
+ .sek-section, .sek-column, .sek-module {
1890
+ display: -ms-flexbox;
1891
+ display: flex;
1892
+ -ms-flex-align: center;
1893
+ align-items: center;
1894
+ }
1895
+
1896
+ .sek-column-inner, .sek-module-inner {
1897
+ -ms-flex: 0 0 100%;
1898
+ flex: 0 0 100%;
1899
+ max-width: 100%;
1900
+ }
1901
+
1902
  /* To allow horizontal centering of modules
1903
  @see https://github.com/presscustomizr/nimble-builder/issues/119
1904
+ */
1905
+ /* - sections in locations */
1906
+ /* - columns in sections */
1907
+ /* - modules in columns */
1908
+ .sek-column-inner {
1909
+ display: -ms-flexbox;
1910
+ display: flex;
1911
+ -ms-flex-direction: column;
1912
+ flex-direction: column;
1913
+ }
1914
+
1915
+ .sek-module {
1916
+ -ms-flex-item-align: center;
1917
+ -ms-grid-row-align: center;
1918
+ align-self: center;
1919
+ width: 100%;
1920
+ max-width: 100%;
1921
+ }
1922
+
1923
  /* a nested sektion should reset its parent column padding
1924
  @see https://github.com/presscustomizr/nimble-builder/issues/25
1925
+ */
1926
+ [data-sek-is-nested="true"] .sek-container-fluid {
1927
+ padding-right: 0;
1928
+ padding-left: 0;
1929
+ }
1930
+
1931
+ /* MODULE PLACEHOLDER */
1932
  /*@font-face {
1933
  font-family: 'Material Icons';
1934
  font-style: normal;
1935
  font-weight: 400;
1936
  src: url('../fonts/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2') format('woff2');
1937
+ }*/
1938
+ /* @see https://github.com/google/material-design-icons/blob/master/iconfont/material-icons.css */
1939
+ @font-face {
1940
+ font-family: 'Material Icons';
1941
+ font-style: normal;
1942
+ font-weight: 400;
1943
+ src: url("../fonts/material-icons/MaterialIcons-Regular.eot");
1944
+ /* For IE6-8 */
1945
+ 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");
1946
+ }
1947
+
1948
+ .material-icons {
1949
+ font-family: 'Material Icons';
1950
+ font-weight: normal;
1951
+ font-style: normal;
1952
+ font-size: 24px;
1953
+ /* Preferred icon size */
1954
+ display: inline-block;
1955
+ line-height: 1;
1956
+ text-transform: none;
1957
+ letter-spacing: normal;
1958
+ word-wrap: normal;
1959
+ white-space: nowrap;
1960
+ direction: ltr;
1961
+ /* Support for all WebKit browsers. */
1962
+ -webkit-font-smoothing: antialiased;
1963
+ /* Support for Safari and Chrome. */
1964
+ text-rendering: optimizeLegibility;
1965
+ /* Support for Firefox. */
1966
+ -moz-osx-font-smoothing: grayscale;
1967
+ /* Support for IE. */
1968
+ -webkit-font-feature-settings: 'liga';
1969
+ font-feature-settings: 'liga';
1970
+ }
1971
+
1972
+ .sek-module-placeholder {
1973
+ text-align: center;
1974
+ }
1975
+
1976
+ .sek-module-placeholder .material-icons {
1977
+ font-size: inherit;
1978
+ color: #cfcfcf;
1979
+ }
1980
+
1981
+ /* LEVEL VISIBILITY BY DEVICE */
1982
+ @media (min-width: 767px) {
1983
+ [data-sek-level="location"] .sek-hidden-on-desktops {
1984
+ display: none;
1985
+ }
1986
+ }
1987
+
1988
+ @media (min-width: 575px) and (max-width: 768px) {
1989
+ [data-sek-level="location"] .sek-hidden-on-tablets {
1990
+ display: none;
1991
+ }
1992
+ }
1993
+
1994
+ @media (max-width: 575px) {
1995
+ [data-sek-level="location"] .sek-hidden-on-mobiles {
1996
+ display: none;
1997
+ }
1998
+ }
1999
+
2000
+ /* NIMBLE TEMPLATE GENERAL STYLING */
2001
+ /* <inspired by Twenty Seventeed WP theme> */
2002
+ .sek-screen-reader-text {
2003
+ clip: rect(1px, 1px, 1px, 1px);
2004
+ height: 1px;
2005
+ overflow: hidden;
2006
+ position: absolute !important;
2007
+ width: 1px;
2008
+ word-wrap: normal !important;
2009
+ }
2010
+
2011
+ #nimble-page {
2012
+ position: relative;
2013
+ word-wrap: break-word;
2014
+ }
2015
+
2016
+ /* </inspired by Twenty Seventeen WP theme> */
2017
+ /* Nimble btn in admin top bar */
2018
+ #wpadminbar .sek-nimble-icon {
2019
+ display: inline-block;
2020
+ }
2021
+
2022
+ #wpadminbar .sek-nimble-icon img {
2023
+ -webkit-filter: grayscale(100%);
2024
+ filter: grayscale(100%);
2025
+ -webkit-filter: gray;
2026
+ filter: gray;
2027
+ transition: all 0.3s ease-in-out;
2028
+ }
2029
+
2030
+ #wpadminbar .sek-nimble-icon:hover img {
2031
+ -webkit-filter: none;
2032
+ filter: none;
2033
+ -webkit-filter: none;
2034
+ filter: none;
2035
+ }
2036
+
2037
+ #wpadminbar .sek-nimble-icon img {
2038
+ width: 28px;
2039
+ position: absolute;
2040
+ top: 2px;
2041
+ }
2042
+
2043
+ #wpadminbar .sek-nimble-icon .sek-nimble-admin-bar-title {
2044
+ padding-left: 30px;
2045
+ }
2046
+
2047
+ [data-sek-has-bg="true"] {
2048
+ background-size: cover;
2049
+ background-repeat: no-repeat;
2050
+ background-position: 50% 50%;
2051
+ }
2052
+
2053
+ [data-sek-level="location"] [data-sek-bg-parallax="true"] {
2054
+ background-attachment: fixed;
2055
+ background-size: cover;
2056
+ }
2057
+
2058
+ @supports (-webkit-overflow-scrolling: touch) {
2059
+ body [data-sek-level="location"] [data-sek-bg-parallax="true"], body [data-sek-level="location"] [data-sek-bg-fixed="true"] {
2060
+ background-attachment: scroll;
2061
+ }
2062
+ }
2063
+
2064
+ [data-sek-level="location"] [data-sek-level] {
2065
+ transition: 0s linear;
2066
+ transition-property: background-position;
2067
  }
2068
  /*# sourceMappingURL=sek-base-rtl.css.map */
inc/admin/nimble-admin.php CHANGED
@@ -390,9 +390,9 @@ function sek_render_welcome_notice() {
390
  <img class="nimble-welcome-icon" src="<?php echo NIMBLE_BASE_URL.'/assets/img/nimble/nimble_banner.svg?ver='.NIMBLE_VERSION; ?>" alt="<?php esc_html_e( 'Nimble Builder', 'nimble-builder' ); ?>" />
391
  </div>
392
  <h1><?php echo apply_filters( 'nimble_update_notice', __('Welcome to Nimble Builder for WordPress :D', 'nimble-builder' ) ); ?></h1>
393
- <h3><?php _e( 'Nimble Builder takes the native WordPress customizer to a level you\'ve never seen before.', 'nimble-builder' ); ?></h3>
394
  <h3><?php _e( 'Nimble allows you to drag and drop content modules, or pre-built section templates, into <u>any context</u> of your site, including search results or 404 pages. You can edit your pages in <i>real time</i> from the live customizer, and then publish when you are happy of the result, or save for later.', 'nimble-builder' ); ?></h3>
395
  <h3><?php _e( 'The plugin automatically creates fluid and responsive sections for a pixel-perfect rendering on smartphones and tablets, without the need to add complex code.', 'nimble-builder' ); ?></h3>
 
396
  <?php printf( '<a href="%1$s" target="_blank" class="button button-primary button-hero"><span class="dashicons dashicons-admin-appearance"></span> %2$s</a>',
397
  esc_url( add_query_arg(
398
  array(
390
  <img class="nimble-welcome-icon" src="<?php echo NIMBLE_BASE_URL.'/assets/img/nimble/nimble_banner.svg?ver='.NIMBLE_VERSION; ?>" alt="<?php esc_html_e( 'Nimble Builder', 'nimble-builder' ); ?>" />
391
  </div>
392
  <h1><?php echo apply_filters( 'nimble_update_notice', __('Welcome to Nimble Builder for WordPress :D', 'nimble-builder' ) ); ?></h1>
 
393
  <h3><?php _e( 'Nimble allows you to drag and drop content modules, or pre-built section templates, into <u>any context</u> of your site, including search results or 404 pages. You can edit your pages in <i>real time</i> from the live customizer, and then publish when you are happy of the result, or save for later.', 'nimble-builder' ); ?></h3>
394
  <h3><?php _e( 'The plugin automatically creates fluid and responsive sections for a pixel-perfect rendering on smartphones and tablets, without the need to add complex code.', 'nimble-builder' ); ?></h3>
395
+ <h3><?php _e( 'Nimble Builder takes the native WordPress customizer to a level you\'ve never seen before.', 'nimble-builder' ); ?></h3>
396
  <?php printf( '<a href="%1$s" target="_blank" class="button button-primary button-hero"><span class="dashicons dashicons-admin-appearance"></span> %2$s</a>',
397
  esc_url( add_query_arg(
398
  array(
inc/czr-base-fmk/assets/js/_0_ccat_czr-base-fmk.js CHANGED
@@ -1632,11 +1632,16 @@ $.extend( CZRInputMths , {
1632
  }
1633
  ];
1634
 
1635
-
1636
- // Try to find a match with the provided constructor type
 
1637
  // => fire the relevant callback with the provided input_options
1638
  // input.type_map is declared in extend_api_base
1639
- if ( api.czrInputMap && _.has( api.czrInputMap, input.type ) ) {
 
 
 
 
1640
  var _meth = api.czrInputMap[ input.type ];
1641
  if ( _.isFunction( input[_meth]) ) {
1642
  try { input[_meth]( options.input_options || null ); } catch( er ) {
1632
  }
1633
  ];
1634
 
1635
+ // 1) Check the input instance to see if the default callback has been overriden in an extended Constructor
1636
+ // ( @see column width module in Nimble Builder to see how the overrides works )
1637
+ // 2) if not, try to find a match with the provided constructor type
1638
  // => fire the relevant callback with the provided input_options
1639
  // input.type_map is declared in extend_api_base
1640
+ if ( input[input.type] && _.isFunction( input[input.type]) ) {
1641
+ try { input[input.type]( options.input_options || null ); } catch( er ) {
1642
+ api.errare( 'Error in overriden callback method in input init => for input id :' + input.id + ' in module type : ' + input.module.module_type, er );
1643
+ }
1644
+ } else if ( api.czrInputMap && _.has( api.czrInputMap, input.type ) ) {
1645
  var _meth = api.czrInputMap[ input.type ];
1646
  if ( _.isFunction( input[_meth]) ) {
1647
  try { input[_meth]( options.input_options || null ); } catch( er ) {
inc/czr-base-fmk/assets/js/_0_ccat_czr-base-fmk.min.js CHANGED
@@ -1 +1 @@
1
- "function"!=typeof jQuery.fn.iCheck&&function(v){function _(e,t,n){var i=e[0],r=/er/.test(n)?$:/bl/.test(n)?x:I,o=n==E?{checked:i[I],disabled:i[x],indeterminate:"true"==e.attr($)||"false"==e.attr(S)}:i[r];if(/^(ch|di|in)/.test(n)&&!o)y(e,r);else if(/^(un|en|de)/.test(n)&&o)b(e,r);else if(n==E)for(r in o)o[r]?y(e,r,!0):b(e,r,!0);else t&&"toggle"!=n||(t||e[k]("ifClicked"),o?i[A]!==z&&b(e,r):y(e,r))}function y(e,t,n){var i=e[0],r=e.parent(),o=t==I,s=t==$,a=t==x,l=s?S:o?g:"enabled",c=h(e,l+m(i[A])),d=h(e,t+m(i[A]));if(!0!==i[t]){if(!n&&t==I&&i[A]==z&&i.name){var u=e.closest("form"),p='input[name="'+i.name+'"]';(p=u.length?u.find(p):v(p)).each(function(){this!==i&&v(this).data(w)&&b(v(this),t)})}s?(i[t]=!0,i[I]&&b(e,I,"force")):(n||(i[t]=!0),o&&i[$]&&b(e,$,!1)),f(e,o,t,n)}i[x]&&h(e,D,!0)&&r.find("."+M).css(D,"default"),r[R](d||h(e,t)||""),a?r.attr("aria-disabled","true"):r.attr("aria-checked",s?"mixed":"true"),r[O](c||h(e,l)||"")}function b(e,t,n){var i=e[0],r=e.parent(),o=t==I,s=t==$,a=t==x,l=s?S:o?g:"enabled",c=h(e,l+m(i[A])),d=h(e,t+m(i[A]));!1!==i[t]&&((s||!n||"force"==n)&&(i[t]=!1),f(e,o,l,n)),!i[x]&&h(e,D,!0)&&r.find("."+M).css(D,"pointer"),r[O](d||h(e,t)||""),a?r.attr("aria-disabled","false"):r.attr("aria-checked","false"),r[R](c||h(e,l)||"")}function C(e,t){e.data(w)&&(e.parent().html(e.attr("style",e.data(w).s||"")),t&&e[k](t),e.off(".i").unwrap(),v(P+'[for="'+e[0].id+'"]').add(e.closest(P)).off(".i"))}function h(e,t,n){return e.data(w)?e.data(w).o[t+(n?"":"Class")]:void 0}function m(e){return e.charAt(0).toUpperCase()+e.slice(1)}function f(e,t,n,i){i||(t&&e[k]("ifToggled"),e[k]("ifChanged")[k]("if"+m(n)))}var w="iCheck",M=w+"-helper",z="radio",I="checked",g="un"+I,x="disabled",S="determinate",$="in"+S,E="update",A="type",R="addClass",O="removeClass",k="trigger",P="label",D="cursor",j=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);v.fn[w]=function(t,n){var i='input[type="checkbox"], input[type="'+z+'"]',r=v(),e=function(e){e.each(function(){var e=v(this);r=e.is(i)?r.add(e):r.add(e.find(i))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(t))return t=t.toLowerCase(),e(this),r.each(function(){var e=v(this);"destroy"==t?C(e,"ifDestroyed"):_(e,!0,t),v.isFunction(n)&&n()});if("object"!=typeof t&&t)return this;var d=v.extend({checkedClass:I,disabledClass:x,indeterminateClass:$,labelHover:!0,aria:!1},t),o=d.handle,u=d.hoverClass||"hover",p=d.focusClass||"focus",h=d.activeClass||"active",m=!!d.labelHover,f=d.labelHoverClass||"hover",g=0|(""+d.increaseArea).replace("%","");return("checkbox"==o||o==z)&&(i='input[type="'+o+'"]'),g<-50&&(g=-50),e(this),r.each(function(){var i=v(this);C(i);var r=this,e=r.id,t={position:"absolute",top:n=-g+"%",left:n,display:"block",width:t=100+2*g+"%",height:t,margin:0,padding:0,background:"#fff",border:0,opacity:0},n=j?{position:"absolute",visibility:"hidden"}:g?t:{position:"absolute",opacity:0},o="checkbox"==r[A]?d.checkboxClass||"icheckbox":d.radioClass||"i"+z,s=v(P+'[for="'+e+'"]').add(i.closest(P)),a=!!d.aria,l=w+"-"+Math.random().toString(36).substr(2,6),c='<div class="'+o+'" '+(a?'role="'+r[A]+'" ':"");a&&s.each(function(){c+='aria-labelledby="',this.id?c+=this.id:(this.id=l,c+=l),c+='"'}),c=i.wrap(c+"/>")[k]("ifCreated").parent().append(d.insert),t=v('<ins class="'+M+'"/>').css(t).appendTo(c),i.data(w,{o:d,s:i.attr("style")}).css(n),d.inheritClass&&c[R](r.className||""),d.inheritID&&e&&c.attr("id",w+"-"+e),"static"==c.css("position")&&c.css("position","relative"),_(i,!0,E),s.length&&s.on("click.i mouseover.i mouseout.i touchbegin.i touchend.i",function(e){var t=e[A],n=v(this);if(!r[x]){if("click"==t){if(v(e.target).is("a"))return;_(i,!1,!0)}else m&&(/ut|nd/.test(t)?(c[O](u),n[O](f)):(c[R](u),n[R](f)));if(!j)return!1;e.stopPropagation()}}),i.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(e){var t=e[A];return e=e.keyCode,"click"!=t&&("keydown"==t&&32==e?(r[A]==z&&r[I]||(r[I]?b(i,I):y(i,I)),!1):void("keyup"==t&&r[A]==z?!r[I]&&y(i,I):/us|ur/.test(t)&&c["blur"==t?O:R](p)))}),t.on("click mousedown mouseup mouseover mouseout touchbegin.i touchend.i",function(e){var t=e[A],n=/wn|up/.test(t)?h:u;if(!r[x]){if("click"==t?_(i,!1,!0):(/wn|er|in/.test(t)?c[R](n):c[O](n+" "+h),s.length&&m&&n==u&&s[/ut|nd/.test(t)?O:R](f)),!j)return!1;e.stopPropagation()}})})}}(window.jQuery||window.Zepto),"function"!=typeof jQuery.fn.selecter&&function(d,r){"use strict";function o(e,t){if(!e.hasClass("selecter-element")){(t=d.extend({},t,e.data("selecter-options"))).external&&(t.links=!0);var n=e.find("option, optgroup"),i=n.filter("option"),r=i.filter(":selected"),o=""!==t.label?-1:i.index(r),s=t.links?"nav":"div";t.tabIndex=e[0].tabIndex,e[0].tabIndex=-1,t.multiple=e.prop("multiple"),t.disabled=e.is(":disabled");var a="<"+s+' class="selecter '+t.customClass;C?a+=" mobile":t.cover&&(a+=" cover"),a+=t.multiple?" multiple":" closed",t.disabled&&(a+=" disabled"),a+='" tabindex="'+t.tabIndex+'">',t.multiple||(a+='<span class="selecter-selected'+(""!==t.label?" placeholder":"")+'">',a+=d("<span></span").text(y(""!==t.label?t.label:r.text(),t.trim)).html(),a+="</span>"),a+='<div class="selecter-options">',a+="</div>",a+="</"+s+">",e.addClass("selecter-element").after(a);var l=e.next(".selecter"),c=d.extend({$select:e,$allOptions:n,$options:i,$selecter:l,$selected:l.find(".selecter-selected"),$itemsWrapper:l.find(".selecter-options"),index:-1,guid:b++},t);u(c),_(o,c),void 0!==d.fn.scroller&&c.$itemsWrapper.scroller(),c.$selecter.on("touchstart.selecter click.selecter",".selecter-selected",c,p).on("click.selecter",".selecter-item",c,m).on("close.selecter",c,h).data("selecter",c),c.$select.on("change.selecter",c,f),C||(c.$selecter.on("focus.selecter",c,g).on("blur.selecter",c,v),c.$select.on("focus.selecter",c,function(e){e.data.$selecter.trigger("focus")}))}}function u(e){for(var t="",n=e.links?"a":"span",i=0,r=e.$allOptions.length;i<r;i++){var o=e.$allOptions.eq(i);if("OPTGROUP"===o[0].tagName)t+='<span class="selecter-group',o.is(":disabled")&&(t+=" disabled"),t+='">'+o.attr("label")+"</span>";else{var s=o.val();o.attr("value")||o.attr("value",s),t+="<"+n+' class="selecter-item',o.is(":selected")&&""===e.label&&(t+=" selected"),o.is(":disabled")&&(t+=" disabled"),t+='" ',t+=e.links?'href="'+s+'"':'data-value="'+s+'"',t+=">"+d("<span></span>").text(y(o.text(),e.trim)).html()+"</"+n+">",0}}e.$itemsWrapper.html(t),e.$items=e.$selecter.find(".selecter-item")}function p(e){e.preventDefault(),e.stopPropagation();var t=e.data;if(!t.$select.is(":disabled"))if(d(".selecter").not(t.$selecter).trigger("close.selecter",[t]),C){var n=t.$select[0];if(r.document.createEvent){var i=r.document.createEvent("MouseEvents");i.initMouseEvent("mousedown",!1,!0,r,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(i)}else n.fireEvent&&n.fireEvent("onmousedown")}else t.$selecter.hasClass("closed")?function(e){e.preventDefault(),e.stopPropagation();var t=e.data;if(!t.$selecter.hasClass("open")){var n=t.$selecter.offset(),i=c.outerHeight(),r=t.$itemsWrapper.outerHeight(!0),o=0<=t.index?t.$items.eq(t.index).position():{left:0,top:0};n.top+r>i&&t.$selecter.addClass("bottom"),t.$itemsWrapper.show(),t.$selecter.removeClass("closed").addClass("open"),c.on("click.selecter-"+t.guid,":not(.selecter-options)",t,s),void 0!==d.fn.scroller?t.$itemsWrapper.scroller("scroll",t.$itemsWrapper.find(".scroller-content").scrollTop()+o.top,0).scroller("reset"):t.$itemsWrapper.scrollTop(t.$itemsWrapper.scrollTop()+o.top)}}(e):t.$selecter.hasClass("open")&&h(e)}function s(e){e.preventDefault(),e.stopPropagation(),0===d(e.currentTarget).parents(".selecter").length&&h(e)}function h(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$selecter.hasClass("open")&&(t.$itemsWrapper.hide(),t.$selecter.removeClass("open bottom").addClass("closed"),c.off(".selecter-"+t.guid))}function m(e){e.preventDefault(),e.stopPropagation();var t=d(this),n=e.data;if(!n.$select.is(":disabled")){if(n.$itemsWrapper.is(":visible"))_(n.$items.index(t),n),a(n);n.multiple||h(e)}}function f(e,t){var n=d(this),i=e.data;t||i.multiple||(_(i.$options.index(i.$options.filter("[value='"+n.val().replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1")+"']")),i),a(i))}function g(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$select.is(":disabled")||t.multiple||(t.$selecter.addClass("focus").on("keydown.selecter"+t.guid,t,n),d(".selecter").not(t.$selecter).trigger("close.selecter",[t]))}function v(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$selecter.removeClass("focus").off("keydown.selecter"+t.guid+" keyup.selecter"+t.guid),d(".selecter").not(t.$selecter).trigger("close.selecter",[t])}function n(e){var t=e.data;if(13===e.keyCode)t.$selecter.hasClass("open")&&(h(e),_(t.index,t)),a(t);else if(!(9===e.keyCode||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault(),e.stopPropagation();var n=t.$items.length-1,i=t.index<0?0:t.index;if(-1<d.inArray(e.keyCode,l?[38,40,37,39]:[38,40]))(i+=38===e.keyCode||l&&37===e.keyCode?-1:1)<0&&(i=0),n<i&&(i=n);else{var r,o=String.fromCharCode(e.keyCode).toUpperCase();for(r=t.index+1;r<=n;r++)if(t.$options.eq(r).text().charAt(0).toUpperCase()===o){i=r;break}if(i<0)for(r=0;r<=n;r++)if(t.$options.eq(r).text().charAt(0).toUpperCase()===o){i=r;break}}0<=i&&_(i,t)}}function _(e,t){var n=t.$items.eq(e),i=n.hasClass("selected");if(!n.hasClass("disabled")){if(-1===e&&""!==t.label)t.$selected.html(t.label);else if(i)t.multiple&&(t.$options.eq(e).prop("selected",null),n.removeClass("selected"));else{var r=n.html();n.data("value"),t.multiple?t.$options.eq(e).prop("selected",!0):(t.$selected.html(r).removeClass("placeholder"),t.$items.filter(".selected").removeClass("selected"),t.$select[0].selectedIndex=e),n.addClass("selected")}(!i||t.multiple)&&(t.index=e)}}function a(e){var t,n;e.links?(n=(t=e).$select.val(),t.external?r.open(n):r.location.href=n):(e.callback.call(e.$selecter,e.$select.val(),e.index),e.$select.trigger("change",[!0]))}function y(e,t){return 0===t?e:e.length>t?e.substring(0,t)+"...":e}var b=0,l=-1<r.navigator.userAgent.toLowerCase().indexOf("firefox"),C=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(r.navigator.userAgent||r.navigator.vendor||r.opera),c=null,w={callback:d.noop,cover:!1,customClass:"",label:"",external:!1,links:!1,trim:0},t={defaults:function(e){return w=d.extend(w,e||{}),d(this)},disable:function(r){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");if(n)if(void 0!==r){var i=n.$items.index(n.$items.filter("[data-value="+r+"]"));n.$items.eq(i).addClass("disabled"),n.$options.eq(i).prop("disabled",!0)}else n.$selecter.hasClass("open")&&n.$selecter.find(".selecter-selected").trigger("click.selecter"),n.$selecter.addClass("disabled"),n.$select.prop("disabled",!0)})},enable:function(r){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");if(n)if(void 0!==r){var i=n.$items.index(n.$items.filter("[data-value="+r+"]"));n.$items.eq(i).removeClass("disabled"),n.$options.eq(i).prop("disabled",!1)}else n.$selecter.removeClass("disabled"),n.$select.prop("disabled",!1)})},destroy:function(){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");n&&(n.$selecter.hasClass("open")&&n.$selecter.find(".selecter-selected").trigger("click.selecter"),void 0!==d.fn.scroller&&n.$selecter.find(".selecter-options").scroller("destroy"),n.$select[0].tabIndex=n.tabIndex,n.$select.off(".selecter").removeClass("selecter-element").show(),n.$selecter.off(".selecter").remove())})},refresh:function(){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");if(n){var i=n.index;n.$allOptions=n.$select.find("option, optgroup"),n.$options=n.$allOptions.filter("option"),n.index=-1,i=n.$options.index(n.$options.filter(":selected")),u(n),_(i,n)}})}};d.fn.selecter=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?this:function(e){e=d.extend({},w,e||{}),null===c&&(c=d("body"));for(var t=d(this),n=0,i=t.length;n<i;n++)o(t.eq(n),e);return t}.apply(this,arguments)},d.selecter=function(e){"defaults"===e&&t.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery,window),"function"!=typeof jQuery.fn.stepper&&function(c){"use strict";function r(e,t){if(!e.hasClass("stepper-input")){t=c.extend({},t,e.data("stepper-options"));var n=parseFloat(e.attr("min")),i=parseFloat(e.attr("max")),r=parseFloat(e.attr("step"))||1;e.addClass("stepper-input").wrap('<div class="stepper '+t.customClass+'" />').after('<span class="stepper-arrow up">'+t.labels.up+'</span><span class="stepper-arrow down">'+t.labels.down+"</span>");var o=e.parent(".stepper"),s=c.extend({$stepper:o,$input:e,$arrow:o.find(".stepper-arrow"),min:void 0!==typeof n&&!isNaN(n)&&n,max:void 0!==typeof i&&!isNaN(i)&&i,step:void 0===typeof r||isNaN(r)?1:r,timer:null},t);s.digits=(a=s.step,-1<(l=String(a)).indexOf(".")?l.length-l.indexOf(".")-1:0),e.is(":disabled")&&o.addClass("disabled"),o.on("touchstart.stepper mousedown.stepper",".stepper-arrow",s,d).data("stepper",s)}var a,l}function d(e){e.preventDefault(),e.stopPropagation(),s(e);var t,n,i,r=e.data;if(!r.$input.is(":disabled")&&!r.$stepper.hasClass("disabled")){var o=c(e.target).hasClass("up")?r.step:-r.step;r.timer=(t=r.timer,n=125,i=function(){a(r,o)},l(t),setInterval(i,n)),a(r,o),c("body").on("touchend.stepper mouseup.stepper",r,s)}}function s(e){e.preventDefault(),e.stopPropagation(),l(e.data.timer),c("body").off(".stepper")}function a(e,t){var n=parseFloat(e.$input.val()),i=t;void 0===typeof n||isNaN(n)?i=!1!==e.min?e.min:0:!1!==e.min&&n<e.min?i=e.min:i+=n;var r,o,s,a=(i-e.min)%e.step;0!==a&&(i-=a),!1!==e.min&&i<e.min&&(i=e.min),!1!==e.max&&i>e.max&&(i-=e.step),i!==n&&(r=i,o=e.digits,s=Math.pow(10,o),i=Math.round(r*s)/s,e.$input.val(i).trigger("change"))}function l(e){e&&(clearInterval(e),e=null)}var o={customClass:"",labels:{up:"Up",down:"Down"}},t={defaults:function(e){return o=c.extend(o,e||{}),c(this)},destroy:function(){return c(this).each(function(){var e=c(this).data("stepper");e&&(e.$stepper.off(".stepper").find(".stepper-arrow").remove(),e.$input.unwrap().removeClass("stepper-input"))})},disable:function(){return c(this).each(function(){var e=c(this).data("stepper");e&&(e.$input.attr("disabled","disabled"),e.$stepper.addClass("disabled"))})},enable:function(){return c(this).each(function(){var e=c(this).data("stepper");e&&(e.$input.attr("disabled",null),e.$stepper.removeClass("disabled"))})}};c.fn.stepper=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?this:function(e){e=c.extend({},o,e||{});for(var t=c(this),n=0,i=t.length;n<i;n++)r(t.eq(n),e);return t}.apply(this,arguments)},c.stepper=function(e){"defaults"===e&&t.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(n){var e=function(){if(n&&n.fn&&n.fn.czrSelect2&&n.fn.czrSelect2.amd)var e=n.fn.czrSelect2.amd;var t,r,c;return e&&e.requirejs||(e?r=e:e={},function(p){function h(e,t){return n.call(e,t)}function s(e,t){var n,i,r,o,s,a,l,c,d,u,p,h=t&&t.split("/"),m=C.map,f=m&&m["*"]||{};if(e&&"."===e.charAt(0))if(t){for(s=(e=e.split("/")).length-1,C.nodeIdCompat&&M.test(e[s])&&(e[s]=e[s].replace(M,"")),e=h.slice(0,h.length-1).concat(e),d=0;d<e.length;d+=1)if("."===(p=e[d]))e.splice(d,1),d-=1;else if(".."===p){if(1===d&&(".."===e[2]||".."===e[0]))break;0<d&&(e.splice(d-1,2),d-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||f)&&m){for(d=(n=e.split("/")).length;0<d;d-=1){if(i=n.slice(0,d).join("/"),h)for(u=h.length;0<u;u-=1)if((r=m[h.slice(0,u).join("/")])&&(r=r[i])){o=r,a=d;break}if(o)break;!l&&f&&f[i]&&(l=f[i],c=d)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function m(t,n){return function(){var e=i.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),l.apply(p,e.concat([t,n]))}}function f(t){return function(e){y[t]=e}}function g(e){if(h(b,e)){var t=b[e];delete b[e],w[e]=!0,o.apply(p,t)}if(!h(y,e)&&!h(w,e))throw new Error("No "+e);return y[e]}function a(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}var o,l,v,_,y={},b={},C={},w={},n=Object.prototype.hasOwnProperty,i=[].slice,M=/\.js$/;v=function(e,t){var n,i,r=a(e),o=r[0];return e=r[1],o&&(n=g(o=s(o,t))),o?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return s(e,i)})):s(e,t):(o=(r=a(e=s(e,t)))[0],e=r[1],o&&(n=g(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},_={require:function(e){return m(e)},exports:function(e){var t=y[e];return void 0!==t?t:y[e]={}},module:function(e){return{id:e,uri:"",exports:y[e],config:(t=e,function(){return C&&C.config&&C.config[t]||{}})};var t}},o=function(e,t,n,i){var r,o,s,a,l,c,d=[],u=typeof n;if(i=i||e,"undefined"===u||"function"===u){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=v(t[l],i)).f))d[l]=_.require(e);else if("exports"===o)d[l]=_.exports(e),c=!0;else if("module"===o)r=d[l]=_.module(e);else if(h(y,o)||h(b,o)||h(w,o))d[l]=g(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,m(i,!0),f(o),{}),d[l]=y[o]}s=n?n.apply(y[e],d):void 0,e&&(r&&r.exports!==p&&r.exports!==y[e]?y[e]=r.exports:s===p&&c||(y[e]=s))}else e&&(y[e]=n)},t=r=l=function(e,t,n,i,r){if("string"==typeof e)return _[e]?_[e](t):g(v(e,t).f);if(!e.splice){if((C=e).deps&&l(C.deps,C.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?o(p,e,t,n):setTimeout(function(){o(p,e,t,n)},4),l},l.config=function(e){return l(e)},t._defined=y,(c=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),h(y,e)||h(b,e)||(b[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=r,e.define=c),e.define("almond",function(){}),e.define("jquery",[],function(){var e=n||$;return null==e&&console&&console.error&&console.error("CzrSelect2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before CzrSelect2 on your web page."),e}),e.define("czrSelect2/utils",["jquery"],function(o){function d(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}var e={Extend:function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(i,r){function o(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}var e=d(r),t=d(i);r.displayName=i.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=i.prototype[s]}for(var a=function(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=r.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o}},t=function(){this.listeners={}};return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=o(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},e.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},e}),e.define("czrSelect2/results",["jquery","./utils"],function(p,e){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=p('<ul class="czrSelect2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=p('<li role="treeitem" aria-live="assertive" class="czrSelect2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" czrSelect2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".czrSelect2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".czrSelect2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".czrSelect2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=p.map(e,function(e){return e.id.toString()});t.$results.find(".czrSelect2-results__option[aria-selected]").each(function(){var e=p(this),t=p.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<p.inArray(n,i)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.className="czrSelect2-results__option";var n={role:"treeitem","aria-selected":"false"};for(var i in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var r=n[i];t.setAttribute(i,r)}if(e.children){var o=p(t),s=document.createElement("strong");s.className="czrSelect2-results__group",p(s),this.template(e,s);for(var a=[],l=0;l<e.children.length;l++){var c=e.children[l],d=this.option(c);a.push(d)}var u=p("<ul></ul>",{class:"czrSelect2-results__options czrSelect2-results__options--nested"});u.append(a),o.append(s),o.append(u)}else this.template(e,t);return p.data(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top,s=r.offset().top,a=l.$results.scrollTop()+(s-o);0===i?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+o-r;0===n?l.$results.scrollTop(0):r<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("czrSelect2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),p.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".czrSelect2-results__option[aria-selected]",function(e){var t=p(this),n=t.data("data");return"true"===t.attr("aria-selected")?void(l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})):void l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".czrSelect2-results__option[aria-selected]",function(e){var t=p(this).data("data");l.getHighlightedResults().removeClass("czrSelect2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:p(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".czrSelect2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):p(t).append(r)},i}),e.define("czrSelect2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("czrSelect2/selection/base",["jquery","../utils","../keys"],function(n,e,r){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=n('<span class="czrSelect2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},i.prototype.bind=function(e,t){var n=this,i=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},i.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.czrSelect2."+e.id,function(e){var t=n(e.target).closest(".czrSelect2");n(".czrSelect2.czrSelect2-container--open").each(function(){var e=n(this);this!=t[0]&&e.data("element").czrSelect2("close")})})},i.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.czrSelect2."+e.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),e.define("czrSelect2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("czrSelect2-selection--single"),e.html('<span class="czrSelect2-selection__rendered"></span><span class="czrSelect2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".czrSelect2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(e){n.update(e.data)})},r.prototype.clear=function(){this.$selection.find(".czrSelect2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".czrSelect2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)}else this.clear()},r}),e.define("czrSelect2/selection/multiple",["jquery","./base","../utils"],function(i,e,a){function r(e,t){r.__super__.constructor.apply(this,arguments)}return a.Extend(r,e),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("czrSelect2-selection--multiple"),e.html('<ul class="czrSelect2-selection__rendered"></ul>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".czrSelect2-selection__choice__remove",function(e){if(!n.options.get("disabled")){var t=i(this).parent().data("data");n.trigger("unselect",{originalEvent:e,data:t})}})},r.prototype.clear=function(){this.$selection.find(".czrSelect2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return i('<li class="czrSelect2-selection__choice"><span class="czrSelect2-selection__choice__remove" role="presentation">&times;</span></li>')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=this.selectionContainer(),o=this.display(i,r);r.append(o),r.prop("title",i.title||i.text),r.data("data",i),t.push(r)}var s=this.$selection.find(".czrSelect2-selection__rendered");a.appendMany(s,t)}},r}),e.define("czrSelect2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("czrSelect2-selection__placeholder").removeClass("czrSelect2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".czrSelect2-selection__rendered").append(i)},t}),e.define("czrSelect2/selection/allowClear",["jquery","../keys"],function(i,r){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("CzrSelect2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".czrSelect2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".czrSelect2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),r=0;r<i.length;r++){var o={data:i[r]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||(t.which==r.DELETE||t.which==r.BACKSPACE)&&this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".czrSelect2-selection__placeholder").length||0===t.length)){var n=i('<span class="czrSelect2-selection__clear">&times;</span>');n.data("data",t),this.$selection.find(".czrSelect2-selection__rendered").prepend(n)}},e}),e.define("czrSelect2/selection/search",["jquery","../utils","../keys"],function(i,e,s){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=i('<li class="czrSelect2-search czrSelect2-search--inline"><input class="czrSelect2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".czrSelect2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".czrSelect2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".czrSelect2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===s.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".czrSelect2-selection__choice");if(0<t.length){var n=t.data("data");i.searchRemoveChoice(n),e.preventDefault()}}});var r=document.documentMode,o=r&&r<=11;this.$selection.on("input.searchcheck",".czrSelect2-search--inline",function(e){return o?void i.$selection.off("input.search input.searchcheck"):void i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".czrSelect2-search--inline",function(e){if(o&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=s.SHIFT&&t!=s.CTRL&&t!=s.ALT&&t!=s.TAB&&i.handleSearch(e)}})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".czrSelect2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".czrSelect2-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},t}),e.define("czrSelect2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,r)){t=t||{};var n=s.Event("czrSelect2:"+e,{params:t});i.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("czrSelect2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("czrSelect2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),e.define("czrSelect2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return(n+=i.generateChars(4))+(null!=t.id?"-"+t.id.toString():"-"+i.generateChars(4))},n}),e.define("czrSelect2/data/select",["./base","../utils","jquery"],function(e,t,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var n=[],i=this;this.$element.find(":selected").each(function(){var e=a(this),t=i.item(e);n.push(t)}),e(n)},n.prototype.select=function(r){var o=this;if(r.selected=!0,a(r.element).is("option"))return r.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===a.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(r){var o=this;if(this.$element.prop("multiple"))return r.selected=!1,a(r.element).is("option")?(r.element.selected=!1,void this.$element.trigger("change")):void this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===a.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("change")})},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.removeData(this,"data")})},n.prototype.query=function(i,e){var r=[],o=this;this.$element.children().each(function(){var e=a(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=a(t),i=this._normalizeItem(e);return i.element=t,a.data(t,"data",i),n},n.prototype.item=function(e){var t={};if(null!=(t=a.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),i=[],r=0;r<n.length;r++){var o=a(n[r]),s=this.item(o);i.push(s)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){a.isPlainObject(e)||(e={id:e,text:e});return null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("czrSelect2/data/array",["./select","../utils","jquery"],function(e,m,f){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return m.Extend(i,e),i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){function t(e){return function(){return f(this).val()==e.id}}for(var n=this,i=this.$element.find("option"),r=i.map(function(){return n.item(f(this)).id}).get(),o=[],s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=f.inArray(a.id,r)){var l=i.filter(t(a)),c=this.item(l),d=f.extend(!0,{},a,c),u=this.option(d);l.replaceWith(u)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);m.appendMany(p,h)}o.push(p)}}return o},i}),e.define("czrSelect2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var i=o.ajax(e);return i.then(t),i.fail(n),i}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("CzrSelect2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){e.status&&"0"===e.status||r.trigger("results:message",{message:"errorLoading"})});r._request=e}var r=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("czrSelect2/data/tags",["jquery"],function(d){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),d.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,d){var u=this;return this._removeOldTags(),null==c.term||null!=c.page?void e.call(this,c,d):void e.call(this,c,function e(t,n){for(var i=t.results,r=0;r<i.length;r++){var o=i[r],s=null!=o.children&&!e({results:o.children},!0);if(o.text===c.term||s)return!n&&(t.data=i,void d(t))}if(n)return!0;var a=u.createTag(c);if(null!=a){var l=u.option(a);l.attr("data-czrSelect2-tag",!0),u.addOptions([l]),u.insertTag(i,a)}t.results=i,d(t)})},e.prototype.createTag=function(e,t){var n=d.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){(this._lastTag,this.$element.find("option[data-czrSelect2-tag]")).each(function(){this.selected||d(this).remove()})},e}),e.define("czrSelect2/data/tokenizer",["jquery"],function(u){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".czrSelect2-search__field")},e.prototype.query=function(e,t,n){var r=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t,n=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return u(this).val()===n.id}).length){var i=r.option(n);i.attr("data-czrSelect2-tag",!0),r._removeOldTags(),r.addOptions([i])}t=n,r.trigger("select",{data:t})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.focus()),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==u.inArray(l,r)){var c=o.substr(0,s),d=a(u.extend({},t,{term:c}));null!=d?(i(d),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("czrSelect2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("czrSelect2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("czrSelect2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,i,r){var o=this;this.current(function(e){var t=null!=e?e.length:0;return 0<o.maximumSelectionLength&&t>=o.maximumSelectionLength?void o.trigger("results:message",{message:"maximumSelected",args:{maximum:o.maximumSelectionLength}}):void n.call(o,i,r)})},e}),e.define("czrSelect2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="czrSelect2-dropdown"><span class="czrSelect2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("czrSelect2/dropdown/search",["jquery","../utils"],function(r,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=r('<span class="czrSelect2-search czrSelect2-search--dropdown"><input class="czrSelect2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){r(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),t.on("focus",function(){t.isOpen()&&i.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("czrSelect2-search--hide"):i.$searchContainer.addClass("czrSelect2-search--hide"))})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("czrSelect2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("czrSelect2/dropdown/infiniteScroll",["jquery"],function(r){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",function(){var e=r.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&e){var t=i.$results.offset().top+i.$results.outerHeight(!1);i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)<=t+50&&i.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=r.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=r('<li class="czrSelect2-results__option czrSelect2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("czrSelect2/dropdown/attachBody",["jquery","../utils"],function(m,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||m(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this,r=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),r||(r=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("czrSelect2"),t.addClass("czrSelect2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=m("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.czrSelect2."+t.id,r="resize.czrSelect2."+t.id,o="orientationchange.czrSelect2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){m(this).data("czrSelect2-scroll-position",{x:m(this).scrollLeft(),y:m(this).scrollTop()})}),s.on(i,function(e){var t=m(this).data("czrSelect2-scroll-position");m(this).scrollTop(t.y)}),m(window).on(i+" "+r+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.czrSelect2."+t.id,i="resize.czrSelect2."+t.id,r="orientationchange.czrSelect2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),m(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=m(window),t=this.$dropdown.hasClass("czrSelect2-dropdown--above"),n=this.$dropdown.hasClass("czrSelect2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<r.top-s,d=l>r.bottom+s,u={left:r.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();u.top-=h.top,u.left-=h.left,t||n||(i="below"),d||!c||t?!c&&d&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(u.top=o.top-h.top-s),null!=i&&(this.$dropdown.removeClass("czrSelect2-dropdown--below czrSelect2-dropdown--above").addClass("czrSelect2-dropdown--"+i),this.$container.removeClass("czrSelect2-container--below czrSelect2-container--above").addClass("czrSelect2-container--"+i)),this.$dropdownContainer.css(u)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("czrSelect2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("czrSelect2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalCzrSelect2Event){var n=t.originalCzrSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=i.data("data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.define("czrSelect2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalCzrSelect2Event:t})},e}),e.define("czrSelect2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("czrSelect2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(m,f,g,v,_,y,b,C,w,M,z,t,I,x,S,$,E,A,R,O,k,P,D,j,T,Z,L,H,e){function n(){this.reset()}return n.prototype.apply=function(t){if(null==(t=m.extend(!0,{},this.defaults,t)).dataAdapter){if(null!=t.ajax?t.dataAdapter=S:null!=t.data?t.dataAdapter=x:t.dataAdapter=I,0<t.minimumInputLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,A)),0<t.maximumInputLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,R)),0<t.maximumSelectionLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,O)),t.tags&&(t.dataAdapter=M.Decorate(t.dataAdapter,$)),(null!=t.tokenSeparators||null!=t.tokenizer)&&(t.dataAdapter=M.Decorate(t.dataAdapter,E)),null!=t.query){var e=f(t.amdBase+"compat/query");t.dataAdapter=M.Decorate(t.dataAdapter,e)}if(null!=t.initSelection){var n=f(t.amdBase+"compat/initSelection");t.dataAdapter=M.Decorate(t.dataAdapter,n)}}if(null==t.resultsAdapter&&(t.resultsAdapter=g,null!=t.ajax&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,j)),null!=t.placeholder&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,D)),t.selectOnClose&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,L))),null==t.dropdownAdapter){if(t.multiple)t.dropdownAdapter=k;else{var i=M.Decorate(k,P);t.dropdownAdapter=i}if(0!==t.minimumResultsForSearch&&(t.dropdownAdapter=M.Decorate(t.dropdownAdapter,Z)),t.closeOnSelect&&(t.dropdownAdapter=M.Decorate(t.dropdownAdapter,H)),null!=t.dropdownCssClass||null!=t.dropdownCss||null!=t.adaptDropdownCssClass){var r=f(t.amdBase+"compat/dropdownCss");t.dropdownAdapter=M.Decorate(t.dropdownAdapter,r)}t.dropdownAdapter=M.Decorate(t.dropdownAdapter,T)}if(null==t.selectionAdapter){if(t.multiple?t.selectionAdapter=_:t.selectionAdapter=v,null!=t.placeholder&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,y)),t.allowClear&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,b)),t.multiple&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,C)),null!=t.containerCssClass||null!=t.containerCss||null!=t.adaptContainerCssClass){var o=f(t.amdBase+"compat/containerCss");t.selectionAdapter=M.Decorate(t.selectionAdapter,o)}t.selectionAdapter=M.Decorate(t.selectionAdapter,w)}if("string"==typeof t.language)if(0<t.language.indexOf("-")){var s=t.language.split("-")[0];t.language=[t.language,s]}else t.language=[t.language];if(m.isArray(t.language)){var a=new z;t.language.push("en");for(var l=t.language,c=0;c<l.length;c++){var d=l[c],u={};try{u=z.loadPath(d)}catch(e){try{d=this.defaults.amdLanguageBase+d,u=z.loadPath(d)}catch(e){t.debug&&window.console&&console.warn&&console.warn('CzrSelect2: The language file for "'+d+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(u)}t.translations=a}else{var p=z.loadPath(this.defaults.amdLanguageBase+"en"),h=new z(t.language);h.extend(p),t.translations=h}return t},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:M.escapeMarkup,language:e,matcher:function e(t,n){if(""===m.trim(t.term))return n;if(n.children&&0<n.children.length){for(var i=m.extend(!0,{},n),r=n.children.length-1;0<=r;r--)null==e(t,n.children[r])&&i.children.splice(r,1);return 0<i.children.length?i:e(t,i)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.set=function(e,t){var n={};n[m.camelCase(e)]=t;var i=M._convertData(n);m.extend(this.defaults,i)},new n}),e.define("czrSelect2/options",["require","jquery","./defaults","./utils"],function(i,o,r,s){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=r.apply(this.options),t&&t.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=s.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["czrSelect2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("czrSelect2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('CzrSelect2: The `data-czrSelect2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of CzrSelect2.'),e.data("data",e.data("czrSelect2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("CzrSelect2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of CzrSelect2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var n;n=o.fn.jquery&&"1."==o.fn.jquery.substr(0,2)&&e[0].dataset?o.extend(!0,{},e[0].dataset,e.data()):e.data();var i=o.extend(!0,{},n);for(var r in i=s._convertData(i))-1<o.inArray(r,t)||(o.isPlainObject(this.options[r])?o.extend(this.options[r],i[r]):this.options[r]=i[r]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("czrSelect2/core",["jquery","./options","./utils","./keys"],function(r,c,n,i){var d=function(e,t){null!=e.data("czrSelect2")&&e.data("czrSelect2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("czrSelect2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("czrSelect2",this)};return n.Extend(d,n.Observable),d.prototype._generateId=function(e){return"czrSelect2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null}return t},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.czrSelect2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.czrSelect2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){r.each(e,t._syncA),r.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===r.inArray(e,i)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("czrSelect2-container--open")}),this.on("close",function(){n.$container.removeClass("czrSelect2-container--open")}),this.on("enable",function(){n.$container.removeClass("czrSelect2-container--disabled")}),this.on("disable",function(){n.$container.addClass("czrSelect2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("czrSelect2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var r=0;r<t.addedNodes.length;r++){t.addedNodes[r].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var r=i[e],o={prevented:!1,name:e,args:t};if(n.call(this,r,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.trigger("query",{})},d.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},d.prototype.isOpen=function(){return this.$container.hasClass("czrSelect2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("czrSelect2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("czrSelect2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('CzrSelect2: The `czrSelect2("enable")` method has been deprecated and will be removed in later CzrSelect2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('CzrSelect2: Data can no longer be set using `czrSelect2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('CzrSelect2: The `czrSelect2("val")` method has been deprecated and will be removed in later CzrSelect2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];r.isArray(t)&&(t=r.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".czrSelect2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("czrSelect2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("czrSelect2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=r('<span class="czrSelect2 czrSelect2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("czrSelect2-container--"+this.options.get("theme")),e.data("element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.czrSelect2",["jquery","jquery-mousewheel","./czrSelect2/core","./czrSelect2/defaults"],function(r,e,o,t){if(null==r.fn.czrSelect2){var s=["open","close","destroy"];r.fn.czrSelect2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=r.extend(!0,{},t);new o(r(this),e)}),this;if("string"==typeof t){var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=r(this).data("czrSelect2");null==e&&window.console&&console.error&&console.error("The czrSelect2('"+t+"') method was called on an element that is not using CzrSelect2."),n=e[t].apply(e,i)}),-1<r.inArray(t,s)?this:n}throw new Error("Invalid arguments for CzrSelect2: "+t)}}return null==r.fn.czrSelect2.defaults&&(r.fn.czrSelect2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.czrSelect2");return n.fn.czrSelect2.amd=e,t}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(o){"use strict";function n(e,t){function n(e){void 0!==e.open&&(e.open=!e.open)}var i=function(e){for(var t=[],n=e.parentNode;(i=n)&&(0===i.offsetWidth||0===i.offsetHeight||!1===i.open);)t.push(n),n=n.parentNode;var i;return t}(e),r=i.length,o=[],s=e[t];if(r){for(var a=0;a<r;a++)o[a]=i[a].style.cssText,i[a].style.setProperty?i[a].style.setProperty("display","block","important"):i[a].style.cssText+=";display: block !important",i[a].style.height="0",i[a].style.overflow="hidden",i[a].style.visibility="hidden",n(i[a]);s=e[t];for(var l=0;l<r;l++)i[l].style.cssText=o[l],n(i[l])}return s}function i(e,t){var n=parseFloat(e);return Number.isNaN(n)?t:n}function r(e){return e.charAt(0).toUpperCase()+e.substr(1)}function s(e,t){if(this.$window=o(window),this.$document=o(document),this.$element=o(e),this.options=o.extend({},d,t),this.polyfill=this.options.polyfill,this.orientation=this.$element[0].getAttribute("data-orientation")||this.options.orientation,this.onInit=this.options.onInit,this.onSlide=this.options.onSlide,this.onSlideEnd=this.options.onSlideEnd,this.DIMENSION=u.orientation[this.orientation].dimension,this.DIRECTION=u.orientation[this.orientation].direction,this.DIRECTION_STYLE=u.orientation[this.orientation].directionStyle,this.COORDINATE=u.orientation[this.orientation].coordinate,this.polyfill&&c)return!1;this.identifier="js-"+a+"-"+l++,this.startEvent=this.options.startEvent.join("."+this.identifier+" ")+"."+this.identifier,this.moveEvent=this.options.moveEvent.join("."+this.identifier+" ")+"."+this.identifier,this.endEvent=this.options.endEvent.join("."+this.identifier+" ")+"."+this.identifier,this.toFixed=(this.step+"").replace(".","").length-1,this.$fill=o('<div class="'+this.options.fillClass+'" />'),this.$handle=o('<div class="'+this.options.handleClass+'" />'),this.$range=o('<div class="'+this.options.rangeClass+" "+this.options[this.orientation+"Class"]+'" id="'+this.identifier+'" />').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=o.proxy(this.handleDown,this),this.handleMove=o.proxy(this.handleMove,this),this.handleEnd=o.proxy(this.handleEnd,this),this.init();var n,i,r=this;this.$window.on("resize."+this.identifier,(n=function(){!function(e,t){var n=Array.prototype.slice.call(arguments,2);setTimeout(function(){return e.apply(null,n)},t)}(function(){r.update(!1,!1)},300)},i=(i=20)||100,function(){if(!n.debouncing){var e=Array.prototype.slice.apply(arguments);n.lastReturnVal=n.apply(window,e),n.debouncing=!0}return clearTimeout(n.debounceTimeout),n.debounceTimeout=setTimeout(function(){n.debouncing=!1},i),n.lastReturnVal})),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,function(e,t){if(!t||t.origin!==r.identifier){var n=e.target.value,i=r.getPositionFromValue(n);r.setPosition(i)}})}Number.isNaN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};var e,a="rangeslider",l=0,c=((e=document.createElement("input")).setAttribute("type","range"),"text"!==e.type),d={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",activeClass:"rangeslider--active",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},u={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};return s.prototype.init=function(){this.update(!0,!1),this.onInit&&"function"==typeof this.onInit&&this.onInit()},s.prototype.update=function(e,t){(e=e||!1)&&(this.min=i(this.$element[0].getAttribute("min"),0),this.max=i(this.$element[0].getAttribute("max"),100),this.value=i(this.$element[0].value,Math.round(this.min+(this.max-this.min)/2)),this.step=i(this.$element[0].getAttribute("step"),1)),this.handleDimension=n(this.$handle[0],"offset"+r(this.DIMENSION)),this.rangeDimension=n(this.$range[0],"offset"+r(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,t)},s.prototype.handleDown=function(e){if(e.preventDefault(),!(e.button&&0!==e.button||(this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),this.$range.addClass(this.options.activeClass),-1<(" "+e.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)))){var t=this.getRelativePosition(e),n=this.$range[0].getBoundingClientRect()[this.DIRECTION],i=this.getPositionFromNode(this.$handle[0])-n,r="vertical"===this.orientation?this.maxHandlePos-(t-this.grabPos):t-this.grabPos;this.setPosition(r),i<=t&&t<i+this.handleDimension&&(this.grabPos=t-i)}},s.prototype.handleMove=function(e){e.preventDefault();var t=this.getRelativePosition(e),n="vertical"===this.orientation?this.maxHandlePos-(t-this.grabPos):t-this.grabPos;this.setPosition(n)},s.prototype.handleEnd=function(e){e.preventDefault(),this.$document.off(this.moveEvent,this.handleMove),this.$document.off(this.endEvent,this.handleEnd),this.$range.removeClass(this.options.activeClass),this.$element.trigger("change",{origin:this.identifier}),this.onSlideEnd&&"function"==typeof this.onSlideEnd&&this.onSlideEnd(this.position,this.value)},s.prototype.cap=function(e,t,n){return e<t?t:n<e?n:e},s.prototype.setPosition=function(e,t){var n,i;void 0===t&&(t=!0),n=this.getValueFromPosition(this.cap(e,0,this.maxHandlePos)),i=this.getPositionFromValue(n),this.$fill[0].style[this.DIMENSION]=i+this.grabPos+"px",this.$handle[0].style[this.DIRECTION_STYLE]=i+"px",this.setValue(n),this.position=i,this.value=n,t&&this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(i,n)},s.prototype.getPositionFromNode=function(e){for(var t=0;null!==e;)t+=e.offsetLeft,e=e.offsetParent;return t},s.prototype.getRelativePosition=function(e){var t=r(this.COORDINATE),n=this.$range[0].getBoundingClientRect()[this.DIRECTION],i=0;return void 0!==e.originalEvent["client"+t]?i=e.originalEvent["client"+t]:e.originalEvent.touches&&e.originalEvent.touches[0]&&void 0!==e.originalEvent.touches[0]["client"+t]?i=e.originalEvent.touches[0]["client"+t]:e.currentPoint&&void 0!==e.currentPoint[this.COORDINATE]&&(i=e.currentPoint[this.COORDINATE]),i-n},s.prototype.getPositionFromValue=function(e){var t;return t=(e-this.min)/(this.max-this.min),Number.isNaN(t)?0:t*this.maxHandlePos},s.prototype.getValueFromPosition=function(e){var t,n;return t=e/(this.maxHandlePos||1),n=this.step*Math.round(t*(this.max-this.min)/this.step)+this.min,Number(n.toFixed(this.toFixed))},s.prototype.setValue=function(e){e===this.value&&""!==this.$element[0].value||this.$element.val(e).trigger("input",{origin:this.identifier})},s.prototype.destroy=function(){this.$document.off("."+this.identifier),this.$window.off("."+this.identifier),this.$element.off("."+this.identifier).removeAttr("style").removeData("plugin_"+a),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0])},o.fn[a]=function(n){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o(this),t=e.data("plugin_"+a);t||e.data("plugin_"+a,t=new s(this,n)),"string"==typeof n&&t[n].apply(t,i)})},"rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);"}),function(l){if(!l.wp.wpColorPicker.prototype._hasAlpha){var c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==",t='<div class="wp-picker-holder" />',i='<div class="wp-picker-container" />',r='<input type="button" class="button button-small" />',o=void 0!==wpColorPickerL10n.current;if(o)var s='<a tabindex="0" class="wp-color-result" />';else{s='<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>';var a="<label></label>",d='<span class="screen-reader-text"></span>'}Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);return this.error?"":(e.length<6&&(e=("00000"+e).substr(-6)),"#"+e)},l.widget("wp.wpColorPicker",l.wp.wpColorPicker,{_hasAlpha:!0,_create:function(){if(l.support.iris){var n=this,e=n.element;if(l.extend(n.options,e.data()),"hue"===n.options.type)return n._createHueOnly();n.close=l.proxy(n.close,n),n.initialValue=e.val(),e.addClass("wp-color-picker"),o?(e.hide().wrap(i),n.wrap=e.parent(),n.toggler=l(s).insertBefore(e).css({backgroundColor:n.initialValue}).attr("title",wpColorPickerL10n.pick).attr("data-current",wpColorPickerL10n.current),n.pickerContainer=l(t).insertAfter(e),n.button=l(r).addClass("hidden")):(e.parent("label").length||(e.wrap(a),n.wrappingLabelText=l(d).insertBefore(e).text(wpColorPickerL10n.defaultLabel)),n.wrappingLabel=e.parent(),n.wrappingLabel.wrap(i),n.wrap=n.wrappingLabel.parent(),n.toggler=l(s).insertBefore(n.wrappingLabel).css({backgroundColor:n.initialValue}),n.toggler.find(".wp-color-result-text").text(wpColorPickerL10n.pick),n.pickerContainer=l(t).insertAfter(n.wrappingLabel),n.button=l(r)),n.options.defaultColor?(n.button.addClass("wp-picker-default").val(wpColorPickerL10n.defaultString),o||n.button.attr("aria-label",wpColorPickerL10n.defaultAriaLabel)):(n.button.addClass("wp-picker-clear").val(wpColorPickerL10n.clear),o||n.button.attr("aria-label",wpColorPickerL10n.clearAriaLabel)),o?e.wrap('<span class="wp-picker-input-wrap" />').after(n.button):(n.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(n.button),n.inputWrapper=e.closest(".wp-picker-input-wrap")),e.iris({target:n.pickerContainer,hide:n.options.hide,width:n.options.width,mode:n.options.mode,palettes:n.options.palettes,change:function(e,t){n.options.alpha?(n.toggler.css({"background-image":"url("+c+")"}),o?n.toggler.html('<span class="color-alpha" />'):(n.toggler.css({position:"relative"}),0==n.toggler.find("span.color-alpha").length&&n.toggler.append('<span class="color-alpha" />')),n.toggler.find("span.color-alpha").css({width:"30px",height:"24px",position:"absolute",top:0,left:0,"border-top-left-radius":"2px","border-bottom-left-radius":"2px",background:t.color.toString()})):n.toggler.css({backgroundColor:t.color.toString()}),l.isFunction(n.options.change)&&n.options.change.call(this,e,t)}}),e.val(n.initialValue),n._addListeners(),n.options.hide||n.toggler.click(),e.on("czr-colorpicker-close",function(){n.toggler.hasClass("wp-picker-open")&&n.close()})}},_addListeners:function(){var t=this;t.wrap.on("click.wpcolorpicker",function(e){e.stopPropagation()}),t.toggler.click(function(){t.toggler.hasClass("wp-picker-open")?t.close():t.open()}),t.element.on("change",function(e){(""===l(this).val()||t.element.hasClass("iris-error"))&&(t.options.alpha?(o&&t.toggler.removeAttr("style"),t.toggler.find("span.color-alpha").css("backgroundColor","")):t.toggler.css("backgroundColor",""),l.isFunction(t.options.clear)&&t.options.clear.call(this,e))}),t.button.on("click",function(e){l(this).hasClass("wp-picker-clear")?(t.element.val(""),t.options.alpha?(o&&t.toggler.removeAttr("style"),t.toggler.find("span.color-alpha").css("backgroundColor","")):t.toggler.css("backgroundColor",""),l.isFunction(t.options.clear)&&t.options.clear.call(this,e)):l(this).hasClass("wp-picker-default")&&t.element.val(t.options.defaultColor).change()})},open:function(){l("body").find(".wp-color-picker").not(this.element).each(function(){l(this).trigger("czr-colorpicker-close")}),this.element.iris("toggle"),this.inputWrapper.removeClass("hidden"),this.wrap.addClass("wp-picker-active"),this.toggler.addClass("wp-picker-open").attr("aria-expanded","true")},close:function(){try{this.element.iris("toggle")}catch(e){console.log("color-picker => error on ::close()",e)}this.inputWrapper.addClass("hidden"),this.wrap.removeClass("wp-picker-active"),this.toggler.removeClass("wp-picker-open").attr("aria-expanded","false")}}),l.widget("a8c.iris",l.a8c.iris,{_create:function(){if(this._super(),this.options.alpha=this.element.data("alpha")||!1,this.element.is(":input")||(this.options.alpha=!1),void 0!==this.options.alpha&&this.options.alpha){var n=this,e=n.element,t=l('<div class="iris-strip iris-slider iris-alpha-slider"><div class="iris-slider-offset iris-slider-offset-alpha"></div></div>').appendTo(n.picker.find(".iris-picker-inner")),i=t.find(".iris-slider-offset-alpha"),r={aContainer:t,aSlider:i};void 0!==e.data("custom-width")?n.options.customWidth=parseInt(e.data("custom-width"))||0:n.options.customWidth=100,n.options.defaultWidth=e.width(),(n._color._alpha<1||-1!=n._color.toString().indexOf("rgb"))&&e.width(parseInt(n.options.defaultWidth+n.options.customWidth)),l.each(r,function(e,t){n.controls[e]=t}),n.controls.square.css({"margin-right":"0"});var o=n.picker.width()-n.controls.square.width()-20,s=o/6,a=o/2-s;l.each(["aContainer","strip"],function(e,t){n.controls[t].width(a).css({"margin-left":s+"px"})}),n._initControls(),n._change()}},_initControls:function(){if(this._super(),this.options.alpha){var n=this;n.controls.aSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*n._color._alpha),slide:function(e,t){n._color._alpha=parseFloat(t.value/100),n._change.apply(n,arguments)}})}},_change:function(){this._super();var e=this,t=e.element;if(this.options.alpha){var n=e.controls,i=parseInt(100*e._color._alpha),r=e._color.toRgb(),o=["rgb("+r.r+","+r.g+","+r.b+") 0%","rgba("+r.r+","+r.g+","+r.b+", 0) 100%"],s=e.options.defaultWidth,a=e.options.customWidth,l=e.picker.closest(".wp-picker-container").find(".wp-color-result");n.aContainer.css({background:"linear-gradient(to bottom, "+o.join(", ")+"), url("+c+")"}),l.hasClass("wp-picker-open")&&(n.aSlider.slider("value",i),e._color._alpha<1?(n.strip.attr("style",n.strip.attr("style").replace(/rgba\(([0-9]+,)(\s+)?([0-9]+,)(\s+)?([0-9]+)(,(\s+)?[0-9\.]+)\)/g,"rgb($1$3$5)")),t.width(parseInt(s+a))):t.width(s))}(t.data("reset-alpha")||!1)&&e.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){e._color._alpha=1,e.active="external",e._change()})},_addInputListeners:function(i){var r=this,e=function(e){var t=new Color(i.val()),n=i.val();i.removeClass("iris-error"),t.error?""!==n&&i.addClass("iris-error"):t.toString()!==r._color.toString()&&("keyup"===e.type&&n.match(/^[0-9a-fA-F]{3}$/)||r._setOption("color",t.toString()))};i.on("change",e).on("keyup",r._debounce(e,100)),r.options.hide&&i.on("focus",function(){r.show()})}})}}(jQuery),function(t,e,n){t.bind("ready",function(){t.previewedDevice&&t.previewedDevice.bind(function(e){t.previewer.send("previewed-device",e)})})}(wp.customize,jQuery,_),function(e,t,i){var r=function(e){e=i.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},e);var t,n=Array.from(e.consoleArguments);return n=i.isEmpty(i.filter(n,function(e){return!i.isString(e)}))?n.join(" "):JSON.stringify(n.join(" ")),["%c "+(t=n,i.isString(t)?300<t.length?t.substr(0,299)+"...":t:""),["background:"+e.bgCol,"color:"+e.textCol,"display: block;"].join(";")]},n=function(e,t,n){i.isUndefined(console)&&"function"!=typeof window.console.log||(serverControlParams.isDevMode?i.isUndefined(t)?console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:["<"+e+">"]})):(console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:["<"+e+">"]})),console.log(t),console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:["</"+e+">"]}))):console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:[e]})))};e.consoleLog=function(){serverControlParams.isDevMode&&(i.isUndefined(console)&&"function"!=typeof window.console.log||(console.log.apply(console,r({consoleArguments:arguments})),console.log("Unstyled console message : ",arguments)))},e.errorLog=function(){i.isUndefined(console)&&"function"!=typeof window.console.log||console.log.apply(console,r({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:arguments}))},e.errare=function(e,t){n(e,t,"#ffd5a0")},e.infoLog=function(e,t){n(e,t,"#5ed1f5")},e.czr_isChangeSetOn=function(){return serverControlParams.isChangeSetOn&&!0}}(wp.customize,jQuery,_),function(e,n,i){e.bind("ready",function(){var t=function(){i.isUndefined(window.themeServerControlParams)||i.isUndefined(themeServerControlParams.isThemeSwitchOn)||themeServerControlParams.isThemeSwitchOn||(e.panel("themes").active.callbacks=n.Callbacks(),e.panel("themes").active(themeServerControlParams.isThemeSwitchOn))};e.panel.has("themes")?t():e.panel.when("themes",function(e){t()})})}(wp.customize,jQuery,_),function(r,e,o){r.czr_activeSectionId=r.czr_activeSectionId||new r.Value(""),r.czr_activePanelId=r.czr_activePanelId||new r.Value(""),r.bind("ready",function(){if("function"!=typeof r.Section)throw new Error("Your current version of WordPress does not support the customizer sections needed for this theme. Please upgrade WordPress to the latest version.");var n=function(e,t){r.czr_activeSectionId(e?t:"")};r.section.each(function(t){"publish_settings"!=t.id&&t.expanded.bind(function(e){n(e,t.id)})}),r.section.bind("add",function(t){"publish_settings"!=t.id&&t.expanded.bind(function(e){n(e,t.id)})});var i=function(e,t){r.czr_activePanelId(e?t:""),o.isEmpty(r.czr_activePanelId())&&r.czr_activeSectionId("")};r.panel.each(function(t){t.expanded.bind(function(e){i(e,t.id)})}),r.panel.bind("add",function(t){t.expanded.bind(function(e){i(e,t.id)})})})}(wp.customize,jQuery,_),function(a,e,l){a.bind("ready",function(){serverControlParams.paramsForDynamicRegistration;l.isObject(serverControlParams.paramsForDynamicRegistration)||a.errorLog("serverControlParams.paramsForDynamicRegistration should be an array"),l.each(serverControlParams.paramsForDynamicRegistration,function(e,t){if(e.module_registration_params&&!0===e.module_registration_params.dynamic_registration)if(serverControlParams.isDevMode)n(e);else try{n(e)}catch(e){a.errorLog(e)}})});var n=function(e){if(e=l.extend({setting_id:"",module_type:"",option_value:[],setting:{},section:{id:"",title:""},control:{}},e),l.isEmpty(e.setting_id)||l.isEmpty(e.module_type))throw a.errare("registerDynamicModuleSettingControl => args",e),new Error("registerDynamicModuleSettingControl => missing params when registrating a setting");if(!l.isArray(e.option_value)&&!l.isObject(e.option_value))throw new Error("registerDynamicModuleSettingControl => the module values must be an array or an object");var t=e.setting_id,n=e.setting;a.CZR_Helpers.register({what:"setting",id:t,dirty:!l.isEmpty(e.option_value),value:e.option_value,transport:n.transport||"refresh",type:n.type||"option",track:!1});var i=e.section;if(!l.isEmpty(i)){if(!l.has(i,"id"))throw new Error("registerDynamicModuleSettingControl => missing section id for the section of setting : "+t);a.CZR_Helpers.register({what:"section",id:i.id,title:i.title||i.id,panel:l.isEmpty(i.panel)?"":i.panel,priority:i.priority||10,track:!1})}var r,o=t,s=e.control;if(r=l.isEmpty(e.section)?s.section:e.section.id,l.isEmpty(r))throw a.errare("registerDynamicModuleSettingControl => missing section id for the control",e),new Error("registerDynamicModuleSettingControl => missing section id for the section of setting : "+t);return a.CZR_Helpers.register({what:"control",id:o,label:s.label||o,type:"czr_module",module_type:e.module_type,section:r,priority:s.priority||10,settings:{default:t},track:!1}),a.section.has(r)&&a.section(r).expanded()&&a.control(o).trigger("set-module-ready"),t}}(wp.customize,jQuery,_),function(s,a,l){s.Value.prototype.set=function(t,n){var i=this._value,e=a.Deferred(),r=this,o=[];return t=this._setter.apply(this,arguments),t=this.validate(t),args=l.extend({silent:!1},l.isObject(n)?n:{}),null===t||l.isEqual(i,t)?e.resolveWith(r,[t,i,n]).promise():(this._value=t,(this._dirty=!0)===args.silent?e.resolveWith(r,[t,i,n]).promise():this._deferreds?(l.each(r._deferreds,function(e){o.push(e.apply(null,[t,i,n]))}),a.when.apply(null,o).fail(function(){s.errorLog("A deferred callback failed in api.Value::set()")}).then(function(){r.callbacks.fireWith(r,[t,i,n]),e.resolveWith(r,[t,i,n])}),e.promise(r)):(this.callbacks.fireWith(this,[t,i,n]),e.resolveWith(r,[t,i,n]).promise(r)))},s.Value.prototype.bind=function(){var t=this,n=!1,i=[];return a.each(arguments,function(e,t){n||(n=l.isObject(t)&&t.deferred),l.isFunction(t)&&i.push(t)}),n?(t._deferreds=t._deferreds||[],l.each(i,function(e){l.contains(e,t._deferreds)||t._deferreds.push(e)})):t.callbacks.add.apply(t.callbacks,arguments),this},s.Setting.prototype.silent_set=function(e,t){var n=this._value,i=s.state("saved")();return e=this._setter.apply(this,arguments),null===(e=this.validate(e))||l.isEqual(n,e)||(this._value=e,this._dirty=l.isUndefined(t)||!l.isBoolean(t)?this._dirty:t,this.callbacks.fireWith(this,[e,n,{silent:!0}]),s.state("saved")(i)),this}}(wp.customize,jQuery,_),function(s,a,l){s.Setting.prototype.preview=function(e,t,n){var i,r=this,o=a.Deferred();return i=r.transport,l.isUndefined(t)||l.isEmpty(t)||l.isNull(t)||!l.isObject(n)||!0!==n.not_preview_sent?l.has(n,"silent")&&!1!==n.silent?o.resolve(arguments).promise():("postMessage"!==i||s.state("previewerAlive").get()||(i="refresh"),"postMessage"===i?(r.previewer.send("pre_setting",{set_id:r.id,data:n,value:e}),r.previewer.send("setting",[r.id,r()]),o.resolve(arguments)):"refresh"===i&&(r.previewer.refresh(),o.resolve(arguments)),o.promise()):o.resolve(arguments).promise()}}(wp.customize,jQuery,_),function(e,r,o){if("function"==typeof e.Section){var n=e.Section.prototype.initialize;e.Section.prototype.initialize=function(e,t){n.apply(this,[e,t]);var i=this;this.expanded.callbacks.add(function(e){if(e){var t=i.container.closest(".wp-full-overlay-sidebar-content"),n=i.container.find(".accordion-section-content");_resizeContentHeight=function(){n.css("height",t.innerHeight())},_resizeContentHeight(),r(window).on("resize.customizer-section",o.debounce(_resizeContentHeight,110))}})}}}(wp.customize,jQuery,_),function(d,u,p){d.CZR_Helpers=d.CZR_Helpers||{},d.CZR_Helpers=u.extend(d.CZR_Helpers,{setupInputCollectionFromDOM:function(){var o=this;if(!p.isFunction(o))throw new Error("setupInputCollectionFromDOM => inputParentInst is not valid.");var s=o.module,a=p.has(o(),"is_mod_opt");if(p.isEmpty(o.inputCollection())){o.czr_Input=o.czr_Input||new d.Values,o.inputConstructor=a?s.inputModOptConstructor:s.inputConstructor;var e=a?o.defaultModOptModel:o.defaultItemModel;if(p.isEmpty(e)||p.isUndefined(e))throw new Error("setupInputCollectionFromDOM => No default model found in item or mod opt "+o.id+".");var l=u.extend(!0,{},o());l=p.isObject(l)?u.extend(e,l):e;var c={};return u("."+s.control.css_attr.sub_set_wrapper,o.container).length<1&&d.errare("setupInputCollectionFromDOM => no input elements found in the DOM"),u("."+s.control.css_attr.sub_set_wrapper,o.container).each(function(e){var t=u(this).find("[data-czrtype]").attr("data-czrtype"),n=p.has(l,t)?l[t]:"";if(p.isUndefined(t)||p.isEmpty(t))d.errare("setupInputCollectionFromDOM => missing data-czrtype id for input type "+u(this).data("input-type")+" in module "+s.id+". Check that the server input template is properly declared.");else{if(!p.has(l,t))throw new Error("setupInputCollectionFromDOM => The item or mod opt property : "+t+" has been found in the DOM but not in the item or mod opt model : "+o.id+". The input can not be instantiated.");var i=u(this).data("input-type"),r={id:t,type:i,transport:u(this).data("transport")||"inherit",input_value:n,input_options:p.has(s.inputOptions,i)?s.inputOptions[i]:{},container:u(this),input_parent:o,is_mod_opt:a,module:s};d.trigger("input-args-before-instantiation",r),o.czr_Input.add(t,new o.inputConstructor(t,r)),o.czr_Input(t).ready(),c[t]=n}}),o.inputCollection(c),o}}})}(wp.customize,jQuery,_),function(i,e,r){i.CZR_Helpers=i.CZR_Helpers||{},i.CZR_Helpers=e.extend(i.CZR_Helpers,{getModuleTmpl:function(t){var n=e.Deferred();if(t=r.extend({tmpl:"",module_type:"",module_id:"",cache:!0,nonce:i.settings.nonce.save},t),(r.isEmpty(t.tmpl)||r.isEmpty(t.module_type))&&n.reject("api.CZR_Helpers.getModuleTmpl => missing tmpl or module_type param"),i.CZR_Helpers.czr_cachedTmpl=i.CZR_Helpers.czr_cachedTmpl||{},i.CZR_Helpers.czr_cachedTmpl[t.module_type]=i.CZR_Helpers.czr_cachedTmpl[t.module_type]||{},!0===t.cache&&!r.isEmpty(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl])&&r.isString(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]))n.resolve(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]);else{if(r.isObject(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl])&&"pending"==i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl].state())return i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl];i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]=wp.ajax.post("ac_get_template",t).done(function(e){n.resolve(e),i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]=e}).fail(function(e){i.errare("api.CZR_Helpers.getModuleTmpl => Problem when fetching the "+t.tmpl+" tmpl from server for module : "+t.module_id+" "+t.module_type,e),n.reject(e),r.isObject(e)&&("invalid_nonce"!==e.code&&"Bad Request"!==e.statusText||window.sektionsLocalizedData&&sektionsLocalizedData.i18n&&i.previewer.trigger("sek-notify",{type:"error",duration:3e4,message:sektionsLocalizedData.i18n["Something went wrong, please refresh this page."]}))})}return n.promise()}})}(wp.customize,jQuery,_),function(p,h,m){p.CZR_Helpers=p.CZR_Helpers||{},p.CZR_Helpers=h.extend(p.CZR_Helpers,{register:function(e){if(m.has(e,"id")){var t,n={};switch(e.what){case"setting":if(p.has(e.id))break;t=h.extend(!0,{},p.Setting.prototype.defaults);var i=m.extend(t,{dirty:!m.isUndefined(e.dirty)&&e.dirty,value:m.isUndefined(e.value)?null:e.value,transport:e.transport||"refresh",type:e.type||"option"}),r=p.settingConstructor[i.type]||p.Setting;m.isObject(e.options)&&(i=m.extend(i,e.options));try{p.add(new r(e.id,i.value,i))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a setting to the api",e)}break;case"panel":if(!m.has(e,"id"))throw new Error("registerPanel => missing panel id ");if(p.panel.has(e.id))break;t=h.extend(!0,{},p.Panel.prototype.defaults);var o=m.extend(t,{id:e.id,title:e.title||e.id,priority:m.has(e,"priority")?e.priority:0}),s=m.isObject(e.constructWith)?e.constructWith:p.Panel;m.isObject(e.options)&&(o=m.extend(o,e.options)),o=m.extend({params:o},o);try{n=p.panel.add(new s(e.id,o))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a panel to the api",e)}break;case"section":if(!m.has(e,"id"))throw new Error("registerSection => missing section id ");if(p.section.has(e.id))break;t=h.extend(!0,{},p.Section.prototype.defaults);var a=m.extend(t,{content:"",id:e.id,title:e.title,panel:e.panel,priority:e.priority,description_hidden:!1,customizeAction:serverControlParams.i18n.Customizing}),l=p.Section;m.isUndefined(e.constructWith)?!m.isEmpty(e.type)&&p.sectionConstructor[e.type]&&(l=p.sectionConstructor[e.type]):l=e.constructWith,m.isObject(e.options)&&(a=m.extend(a,e.options)),a=m.extend({params:a},a);try{n=p.section.add(new l(e.id,a))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a section to the api",e)}break;case"control":if(p.control.has(e.id))break;t=h.extend(!0,{},p.Control.prototype.defaults);var c,d=m.extend(t,{content:"",label:e.label||e.id,priority:e.priority,section:e.section,settings:e.settings,type:e.type,module_type:e.module_type,input_attrs:e.input_attrs,sek_registration_params:e}),u=p.controlConstructor[d.type]||p.Control;m.isObject(e.options)&&(d=m.extend(d,e.options)),c=m.extend({params:d},d);try{n=p.control.add(new u(e.id,c))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a control to the api",e)}break;default:p.errorLog('invalid "what" when invoking the register() method')}return n=m.isEmpty(n)?{deferred:{embedded:h.Deferred(function(){this.resolve()})}}:n,!1!==e.track&&p.trigger("czr-new-registered",e),"setting"==e.what?e:n.deferred.embedded}p.errare("register => missing id ",e)}})}(wp.customize,jQuery,_),function(i,r,o){i.CZR_Helpers=i.CZR_Helpers||{},i.CZR_Helpers=r.extend(i.CZR_Helpers,{css_loader_html:'<div class="czr-css-loader czr-mr-loader" style="display:none"><div></div><div></div><div></div></div>',getControlSettingId:function(e,t){return t="default",i.control.has(e)?!o.has(i.control(e),"settings")||o.isEmpty(i.control(e).settings)?e:o.has(i.control(e).settings,t)?o.isUndefined(i.control(e).settings[t].id)?(i.consoleLog("getControlSettingId : The requested control_id has no setting id assigned : "+e),e):i.control(e).settings[t].id:(i.consoleLog("getControlSettingId : The requested control_id does not have the requested setting type : "+e+" , "+t),e):e},getDocSearchLink:function(e){var t=(e=o.isString(e)?e:"").replace(/ /g,"+");return['<a href="'+[serverControlParams.docURL,"search?query=",t].join("")+'" title="'+serverControlParams.i18n.readDocumentation+'" target="_blank">'," ",'<span class="far fa-question-circle-o"></span>'].join("")},build_setId:function(e){return o.isUndefined(window.themeServerControlParams)||!o.isArray(themeServerControlParams.wpBuiltinSettings)?e:o.contains(themeServerControlParams.wpBuiltinSettings,e)?e:o.contains(themeServerControlParams.themeSettingList,e)&&-1==e.indexOf(themeServerControlParams.themeOptions)?[themeServerControlParams.themeOptions+"[",e,"]"].join(""):e},getOptionName:function(e){if(o.isEmpty(window.themeServerControlParams)||o.isEmpty(themeServerControlParams.themeOptions))return e;return-1==e.indexOf(themeServerControlParams.themeOptions)?e:e.replace(/\[|\]/g,"").replace(themeServerControlParams.themeOptions,"")},hasPartRefresh:function(n){if(o.has(i,"czr_partials"))return o.contains(o.map(i.czr_partials(),function(e,t){return o.contains(e.settings,n)}),!0)},getSectionControlIds:function(e){return e=e||i.czr_activeSectionId(),i.section.has(e)?o.map(i.section(e).controls(),function(e){return e.id}):[]},getSectionSettingIds:function(e){if(e=e||i.czr_activeSectionId(),i.section.has(e)){var n=[],t=this.getSectionControlIds(e);return o.each(t,function(e){o.each(i.control(e).settings,function(e,t){n.push(e.id)})}),n}},capitalize:function(e){return o.isString(e)?e.charAt(0).toUpperCase()+e.slice(1):e},truncate:function(e,t,n){if(!o.isString(e))return"";t=t||20;var i=e.length>t,r=i?e.substr(0,t-1):e;return r=n&&i?r.substr(0,r.lastIndexOf(" ")):r,i?r+"...":r},isMultiItemModule:function(e,t){if(!o.isUndefined(e)||o.isObject(t)){if(o.isObject(t)&&o.has(t,"module_type"))e=t.module_type;else if(o.isUndefined(e)||o.isNull(e))return;if(o.has(i.czrModuleMap,e))return i.czrModuleMap[e].crud||i.czrModuleMap[e].multi_item||!1}},isCrudModule:function(e,t){if(!o.isUndefined(e)||o.isObject(t)){if(o.isObject(t)&&o.has(t,"module_type"))e=t.module_type;else if(o.isUndefined(e)||o.isNull(e))return;if(o.has(i.czrModuleMap,e))return i.czrModuleMap[e].crud||!1}},hasModuleModOpt:function(e,t){if(!o.isUndefined(e)||o.isObject(t)){if(o.isObject(t)&&o.has(t,"module_type"))e=t.module_type;else if(o.isUndefined(e)||o.isNull(e))return;if(o.has(i.czrModuleMap,e))return i.czrModuleMap[e].has_mod_opt||!1}},removeInputCollection:function(){var t=this;if(!o.isFunction(t))throw new Error("removeInputCollection : inputParentInst is not valid.");o.has(t,"czr_Input")&&(t.czr_Input.each(function(e){t.czr_Input.remove(e.id)}),t.inputCollection({}))},refreshModuleControl:function(e){var t=i.controlConstructor.czr_module,n=(i.control(e).params.type,i.settings.controls[e]);r.when(i.control(e).container.remove()).done(function(){i.control.remove(e),i.control.add(e,new t(e,{params:n,previewer:i.previewer}))})},isChecked:function(e){return o.isBoolean(e)?e:o.isNumber(e)?0<e:!!o.isString(e)&&("0"!==e&&""!==e&&"off"!==e)},hexToRgb:function(t){try{t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i})}catch(e){return i.errorLog("Error in Helpers::hexToRgb : "+e),t}var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgb("+(e=e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[]).join(",")+")"},rgbToHex:function(e,t,n){var i=function(e){var t=e.toString(16);return 1==t.length?"0"+t:t};return"#"+i(e)+i(t)+i(n)},parseTemplate:o.memoize(function(t){var n,i={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){return(n=n||o.template(t,i))(e)}})})}(wp.customize,jQuery,_),function(a,l,c){a.CZR_Helpers=a.CZR_Helpers||{},a.CZR_Helpers=l.extend(a.CZR_Helpers,{addActions:function(e,t,n){(n=n||this)[e]=n[e]||[],new_event_map=c.clone(n[e]),n[e]=c.union(new_event_map,c.isArray(t)?t:[t])},doActions:function(e,t,n){t.trigger(e,n)},setupDOMListeners:function(e,r,o){var s=this;o=o||s,c.isArray(e)?c.isObject(r)?(r=c.extend({model:{},dom_el:{}},r)).dom_el instanceof jQuery&&!(r.dom_el.length<1)?c.map(e,function(i){if(c.isString(i.selector)&&!c.isEmpty(i.selector))if(c.isString(i.selector)&&!c.isEmpty(i.selector)){var e=i.name&&!c.isEmpty(i.name)?i.name:[i.trigger,i.selector].join(""),t=r.dom_el.data("czr-listener-collection");if(t&&c.isArray(t)){if(t=c.isArray(t)?t:[],c.contains(t,e))return void a.errare("setupDOMListeners : aborting because listener already created for event : "+e);t.push(e)}else t=[e];r.dom_el.data("czr-listener-collection",t),r.dom_el.on(i.trigger,i.selector,function(e,t){if(e.stopPropagation(),!a.utils.isKeydownButNotEnterEvent(e)){e.preventDefault();var n=l.extend(!0,{},r);if(c.has(n,"model")&&c.has(n.model,"id")&&(c.has(o,"get")?n.model=o():n.model=o.getModel(n.model.id)),l.extend(n,{event:i,dom_event:e}),l.extend(n,t),c.has(n,"event")&&c.has(n.event,"actions"))if(serverControlParams.isDevMode)s.executeEventActionChain(n,o);else try{s.executeEventActionChain(n,o)}catch(e){a.errare("In setupDOMListeners : problem when trying to fire actions : "+n.event.actions,e)}else a.errare("executeEventActionChain : missing obj.event or obj.event.actions")}})}else a.errare("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+i.actions.join(","));else a.errare("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+i.actions.join(","))}):a.errare("setupDomListeners : dom element should be an existing dom element",r):a.errare("setupDomListeners : args should be an object",e):a.errare("setupDomListeners : event_map should be an array",r)},executeEventActionChain:function(i,r){var o=this;if("function"==typeof i.event.actions)return i.event.actions.call(r,i);c.isArray(i.event.actions)||(i.event.actions=[i.event.actions]);var s=!1;c.map(i.event.actions,function(e){if(!s){var t=function(){};if("function"==typeof e)t=e;else{if("function"!=typeof r[e])throw new Error("executeEventActionChain : the action : "+e+" has not been found when firing event : "+i.event.selector);t=r[e]}var n=c.has(i,"dom_el")&&-1!=i.dom_el.length?i.dom_el:o.container;"string"==typeof e&&n.trigger("before_"+e,c.omit(i,"event")),!1===t.call(r,i)&&(s=!0),"string"==typeof e&&n.trigger("after_"+e,c.omit(i,"event"))}})}})}(wp.customize,jQuery,_),function(i,e,r){i.czr_wpQueryDataReady=i.czr_wpQueryDataReady||e.Deferred(),i.czr_wpQueryInfos=i.czr_wpQueryInfos||new i.Value,i.bind("ready",function(){i.previewer.bind("czr-query-data-ready",function(e){i.czr_wpQueryInfos(e),"pending"==i.czr_wpQueryDataReady.state()&&i.czr_wpQueryDataReady.resolve(e)}),i.previewer.bind("czr-partial-refresh-data",function(e){i.czr_partials=i.czr_partials||new i.Value,i.czr_partials.set(e)}),i.previewer.bind("czr-partial-refresh-done",function(e){if(r.has(e,"set_id")){var t=i.CZR_Helpers.build_setId(e.set_id);if(i.has(t)){var n=i.CZR_Helpers.getControlSettingId(t);i.control.has(n)&&i.control(n).trigger("czr-partial-refresh-done")}}})})}(wp.customize,jQuery,_);var CZRInputMths=CZRInputMths||{};!function(r,o,a){o.extend(CZRInputMths,{initialize:function(e,t){if(a.isUndefined(t.input_parent)||a.isEmpty(t.input_parent))throw new Error("No input_parent assigned to input "+t.id+". Aborting");if(a.isUndefined(t.module))throw new Error("No module assigned to input "+t.id+". Aborting");r.Value.prototype.initialize.call(this,null,t);var n=this;o.extend(n,t||{}),n.constructorOptions=o.extend(!0,{},t),n.isReady=o.Deferred(),a.isUndefined(t.input_value)||n.set(t.input_value);if(n.input_event_map=[{trigger:o.trim(["change",{text:"keyup",textarea:"keyup",password:"keyup",color:"colorpickerchange",range:"input propertychange"}[n.type]||""].join(" ")),selector:"input[data-czrtype], select[data-czrtype], textarea[data-czrtype]",name:"set_input_value",actions:function(e){if(!a.has(n.input_parent,"syncElements")||!a.has(n.input_parent.syncElements,n.id))throw new Error("WARNING : THE INPUT "+n.id+" HAS NO SYNCED ELEMENT.")}}],r.czrInputMap&&a.has(r.czrInputMap,n.type)){var i=r.czrInputMap[n.type];if(a.isFunction(n[i]))try{n[i](t.input_options||null)}catch(e){r.errare("Error in input init => for input id :"+n.id+" in module type : "+n.module.module_type,e)}else if(a.isFunction(r.czrInputMap[n.type]))try{r.czrInputMap[n.type].apply(n,[t.input_options||null])}catch(e){r.errare("Error in input init => for input id :"+n.id+" in module type : "+n.module.module_type,e)}}else r.errare("Warning the input : "+n.id+" with type "+n.type+" has no corresponding method defined in api.czrInputMap.");n.visible=new r.Value(!0),n.isReady.done(function(){n.visible.bind(function(e){e?n.container.stop(!0,!0).slideDown(200):n.container.stop(!0,!0).slideUp(200)})}),n.enabled=new r.Value(!0),n.isReady.done(function(){n.enabled.bind(function(e){n.container.toggleClass("disabled",!e)})})},ready:function(){var e=this;e.setupDOMListeners(e.input_event_map,{dom_el:e.container},e),e.callbacks.add(function(){return e.inputReact.apply(e,arguments)}),o.when(e.setupSynchronizer()).done(function(){e.isReady.resolve(e)})},setupSynchronizer:function(){var e=this,t=e.input_parent,n=e.container.find("[data-czrtype]"),i=(e.container.find("[data-czrtype]").is("textarea"),new r.Element(n));t.syncElements=t.syncElements||{},(t.syncElements[e.id]=i).sync(e),i.set(e())},inputReact:function(e,t,n){var i=this,r=i.input_parent(),o=a.clone(r),s=i.is_preItemInput;i.enabled()&&((o=!a.isObject(o)||a.isEmpty(o)?{}:o)[i.id]=e,i.input_parent.set(o,{input_changed:i.id,input_value:i(),input_transport:i.transport,not_preview_sent:"postMessage"===i.transport,inputRegistrationParams:i.constructorOptions}),s||(i.input_parent.trigger(i.id+":changed",e),a.isEmpty(t)&&(a.isUndefined(t)||"postMessage"!==i.transport)||i.module.sendInputToPreview({input_id:i.id,input_parent_id:i.input_parent.id,to:e,from:t})))},setupColorPicker:function(){this.container.find("input").iris({palettes:!0,hide:!1,change:function(e,t){o(this).val(t.color.toString()).trigger("colorpickerchange").trigger("change")}})},setupColorPickerAlpha:function(){var n=this;n.container.find("input").wpColorPicker({palettes:!0,width:1440<=window.innerWidth?271:251,change:function(e,t){o(this).val(t.color.toString()).trigger("colorpickerchange").trigger("change")},clear:function(e,t){n("")}})},setupSelect:function(){o("select",this.container).not(".no-selecter-js").each(function(){o(this).selecter({})})},setupIcheck:function(e){o("input[type=checkbox]",this.container).each(function(e){0===o(this).closest('div[class^="icheckbox"]').length&&o(this).iCheck({checkboxClass:"icheckbox_flat-grey",checkedClass:"checked",radioClass:"iradio_flat-grey"}).on("ifChanged",function(e){o(this).val(!1===o(this).is(":checked")?0:1),o(e.currentTarget).trigger("change")})})},setupNimbleCheck:function(e){this.container.find("input[type=checkbox]"),o(".czr-toggle-check",this.container)},setupRadio:function(e){o("input[type=radio]",this.container).each(function(e){0===o(this).closest('div[class^="icheckbox"]').length&&o(this).iCheck({checkboxClass:"icheckbox_flat-grey",checkedClass:"checked",radioClass:"iradio_flat-grey"}).on("ifChanged",function(e){o(e.currentTarget).trigger("change")})})},setupStepper:function(e){o('input[type="number"]',this.container).each(function(e){o(this).stepper()})},setupSimpleRange:function(){},setupRangeSlider:function(e){var n,i=this,r=function(e,t){var n=i.container.find("input").data("unit");e.textContent=t+(a.isEmpty(i.container.find("input").data("unit"))?"":n)};o(i.container).find("input").rangeslider({polyfill:!1,rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",onInit:function(){n=o(".rangeslider__handle",this.$range),o(".rangeslider__handle",this.$range),r(n[0],this.value)},onSlide:function(e,t){r(n[0],t)}})},setupHAlignement:function(e){var t=this,n=o(".sek-h-align-wrapper",t.container);n.find('div[data-sek-align="'+t()+'"]').addClass("selected"),n.on("click","[data-sek-align]",function(e){e.preventDefault(),n.find(".selected").removeClass("selected"),o.when(o(this).addClass("selected")).done(function(){t(o(this).data("sek-align"))})})}})}(wp.customize,jQuery,_);CZRInputMths=CZRInputMths||{};!function(r,i,o){i.extend(CZRInputMths,{setupImageUploaderSaveAsId:function(){this.setupImageUploader()},setupImageUploaderSaveAsUrl:function(){this.setupImageUploader({save_as_url:!0})},setupImageUploader:function(e){var t=this,n=t();if(e=o.extend({save_as_url:!1},e||{}),t.save_as_url=e.save_as_url,t.attachment={},!t.container)return this;t.tmplRendered=i.Deferred(),t.setupContentRendering(n,{}),t.tmplRendered.done(function(){t.czrImgUploaderBinding()}).fail(function(){r.errorLog("setupImageUploader => failed to fetch the template.")})},setupContentRendering:function(e,t){var n,i=this;i.attachment.id!=e&&t!==e?(o.isEmpty(e)?(i.attachment={},i.renderImageUploaderTemplate()):o.isNumber(e)||i.renderImageUploaderTemplate({fromUrl:!0,url:e}),n=wp.media.attachment(e),o.isObject(n)&&o.has(n,"attributes")&&o.has(n.attributes,"sizes")?(i.attachment=n.attributes,i.renderImageUploaderTemplate()):o.isNumber(e)&&wp.media.attachment(e).fetch().done(function(){i.attachment=this.attributes,i.renderImageUploaderTemplate()}).fail(function(){r.errorLog("renderImageUploaderTemplate => failed attempt to fetch an img with id : "+e)})):i.attachment.id&&i.attachment.id!==e||i.renderImageUploaderTemplate()},czrImgUploaderBinding:function(){var n=this;o.bindAll(n,"czrImgUploadRemoveFile","czrImgUploadOpenFrame","czrImgUploadSelect"),n.container.on("click keydown",".upload-button",n.czrImgUploadOpenFrame),n.container.on("click keydown",".thumbnail-image img",n.czrImgUploadOpenFrame),n.container.on("click keydown",".remove-button",n.czrImgUploadRemoveFile),n.bind(n.id+":changed",function(e,t){n.tmplRendered=i.Deferred(),n.setupContentRendering(e,t)})},czrImgUploadOpenFrame:function(e){r.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.frame||this.czrImgUploadInitFrame(),this.frame.open())},czrImgUploadInitFrame:function(){var e=this.getUploaderLabels();this.frame=wp.media({button:{text:e.frame_button},states:[new wp.media.controller.Library({title:e.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1})]}),this.frame.on("select",this.czrImgUploadSelect)},czrImgUploadRemoveFile:function(e){r.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.attachment={},this.set(""))},czrImgUploadSelect:function(){var e=this.frame.state().get("selection").first().toJSON();window._wpmejsSettings;this.attachment=e,this.set(this.save_as_url?e.url:e.id)},renderImageUploaderTemplate:function(e){var t=this;e=o.extend({fromUrl:!1,url:""},e||{});var n=t.container.find("."+t.module.control.css_attr.img_upload_container);if(n.length&&!(t.container.length<1)){var i={button_labels:t.getUploaderLabels(),settings:t.id,attachment:t.attachment,fromUrl:e.url,canUpload:!0};return r.CZR_Helpers.getModuleTmpl({tmpl:"img-uploader",module_type:"all_modules",module_id:t.module.id}).done(function(e){n.html(r.CZR_Helpers.parseTemplate(e)(i)),t.tmplRendered.resolve(),t.container.trigger(t.id+":content_rendered")}).fail(function(e){t.tmplRendered.reject("renderImageUploaderTemplate => Problem when fetching the tmpl from server for module : "+t.module.id)}),!0}},getUploaderLabels:function(){var e=serverControlParams.i18n,n=this,t={select:e.select_image,change:e.change_image,remove:e.remove_image,default:e.default_image,placeholder:e.placeholder_image,frame_title:e.frame_title_image,frame_button:e.frame_button_image},i={};return o.each(t,function(e,t){if(o.isEmpty(e))return r.errorLog("A translated string is missing ( "+t+" ) for the image uploader input in module : "+n.module.id),void(i[t]=t);i[t]=e}),i}})}(wp.customize,jQuery,_);CZRInputMths=CZRInputMths||{};!function(s,a,l){a.extend(CZRInputMths,{setupContentPicker:function(e){var r=this;a.extend(l.isObject(e)?e:{},{post:"",taxonomy:""}),r.wpObjectTypes=e,r.container.find(".czr-input").append('<select data-select-type="content-picker-select" class="js-example-basic-simple"></select>'),r.input_event_map=[{trigger:"change",selector:"select[data-select-type]",name:"set_input_value",actions:function(e){var t=a(e.dom_event.currentTarget,e.dom_el),n=a(t,e.dom_el).czrSelect2("data"),i={};n=l.isArray(n)?n[0]:n,l.isObject(n)&&!l.isEmpty(n)?(l.each({id:"",type_label:"",title:"",object_type:"",url:""},function(e,t){"_custom_"===n.id||l.has(n,t)&&!l.isEmpty(n[t])?i[t]=n[t]:s.errare("content_picker : missing input param : "+t)}),r.set(i)):s.errare("Content Picker Input : the picked value should be an object not empty.")}}],r.isReady.done(function(){r.setupContentSelecter()})},setupContentSelecter:function(){var o=this;if(!l.isEmpty(o())){var e={value:o().id||"",title:o().title||"",selected:"selected"};o.container.find("select").append(a("<option>",e))}o.currentAjaxAction=o.currentAjaxAction||new s.Value,o.currentAjaxAction.bind(function(e){o.defaultValueHasBeenPushed=!1}),o.container.find("select").on("czrSelect2:select czrSelect2:unselect czrSelect2:close czrSelect2:open",function(e){o.defaultValueHasBeenPushed=!1}),o.container.find("select").czrSelect2({placeholder:{id:"-1",title:"Select"},data:o.setupSelectedContents(),ajax:{url:wp.ajax.settings.url,type:"POST",dataType:"json",delay:250,debug:!0,data:function(e){var t=e.page?e.page:0;return t=e.term?e.page:t,o.currentAjaxAction(e.term?"search-available-content-items-customizer":"load-available-content-items-customizer"),{action:o.currentAjaxAction(),search:e.term,wp_customize:"on",page:t,wp_object_types:JSON.stringify(o.wpObjectTypes),nonce:s.settings.nonce.save}},processResults:function(e,t){var n={defaultOption:{id:"",title:"",type_label:"",object_type:"",url:""}};if(o.input_parent&&o.input_parent.module?o.input_parent.module.trigger("set_default_content_picker_options",{defaultContentPickerOption:n}):s.infoLog(' content_picker input => ::processResults => event "set_default_content_picker_option" not triggered when in pre-item'),!e.success)return s.errare("request failure in setupContentPicker => processResults",e),{results:n.defaultOption};var i=e.data.items,r=[];return i=l.isArray(i)?i:[],o.defaultValueHasBeenPushed=o.defaultValueHasBeenPushed||!1,"load-available-content-items-customizer"!==o.currentAjaxAction()||l.isEmpty(n.defaultOption)||n.defaultOption.id&&!o.defaultValueHasBeenPushed&&(r.push(n.defaultOption),o.defaultValueHasBeenPushed=!0),l.each(i,function(e){r.push({id:e.id,title:e.title,type_label:e.type_label,object_type:e.object,url:e.url})}),{results:r,pagination:{more:1<=i.length}}}},templateSelection:o.czrFormatContentSelected,templateResult:o.czrFormatContentSelected,escapeMarkup:function(e){return e}})},czrFormatContentSelected:function(e){if(e.loading)return e.text;var t="<div class='content-picker-item clearfix'><div class='content-item-bar'><span class='czr-picker-item-title'>"+e.title+"</span>";return e.type_label&&(t+="<span class='czr-picker-item-type'>"+e.type_label+"</span>"),t+="</div></div>"},setupSelectedContents:function(){return this()}})}(wp.customize,jQuery,_);var CZRItemMths=CZRItemMths||{};!function(r,o,s){o.extend(CZRItemMths,{initialize:function(e,t){if(s.isUndefined(t.module)||s.isEmpty(t.module))throw new Error("No module assigned to item "+e+". Aborting");var n=this;r.Value.prototype.initialize.call(n,null,t),n.isReady=o.Deferred(),n.embedded=o.Deferred(),n.container=null,n.contentContainer=null,n.czr_Input=new r.Values,n.inputCollection=new r.Value({}),n.viewState=new r.Value("closed"),n.removeDialogVisible=new r.Value(!1),o.extend(n,t||{}),n.defaultItemModel=s.clone(t.defaultItemModel)||{id:"",title:""};var i=o.extend(n.defaultItemModel,t.initial_item_model);i=n.validateItemModelOnInitialize(i),n.set(i),n.userEventMap=new r.Value([{trigger:"click keydown",selector:["."+n.module.control.css_attr.display_alert_btn,"."+n.module.control.css_attr.cancel_alert_btn].join(","),name:"toggle_remove_alert",actions:function(){var e=this.removeDialogVisible();this.module.closeRemoveDialogs(),this.removeDialogVisible(!e)}},{trigger:"click keydown",selector:"."+n.module.control.css_attr.remove_view_btn,name:"remove_item",actions:["removeItem"]},{trigger:"click keydown",selector:["."+n.module.control.css_attr.edit_view_btn,"."+n.module.control.css_attr.item_title].join(","),name:"edit_view",actions:["setViewVisibility"]},{trigger:"click keydown",selector:".tabs nav li",name:"tab_nav",actions:function(e){var t=o(e.dom_event.currentTarget,e.dom_el).data("tab-id");this.module.toggleTabVisibility.call(this,t),this.trigger("tab-switch",{id:t})}}]),n.isReady.done(function(){n.module.updateItemsCollection({item:n()}),n.callbacks.add(function(){return n.itemReact.apply(n,arguments)}),n.bind("contentRendered",function(){if(s.isEmpty(n.inputCollection()))if(serverControlParams.isDevMode)r.CZR_Helpers.setupInputCollectionFromDOM.call(n),n.module.setupTabNav.call(n);else try{r.CZR_Helpers.setupInputCollectionFromDOM.call(n),n.module.setupTabNav.call(n)}catch(e){r.errorLog("In item.isReady.done : "+e)}}),n.bind("contentRemoved",function(){s.has(n,"czr_Input")&&r.CZR_Helpers.removeInputCollection.call(n)}),n.canBeRendered()&&n.mayBeRenderItemWrapper(),n.embedded.done(function(){n.itemWrapperViewSetup(i)})})},ready:function(){this.isReady.resolve()},canBeRendered:function(){return!0},validateItemModelOnInitialize:function(e){return e},itemReact:function(e,t,n){var i=this,r=i.module;n=n||{},r.updateItemsCollection({item:e,params:n}).done(function(){i.writeItemViewTitle(e,n)})}})}(wp.customize,jQuery,_);CZRItemMths=CZRItemMths||{};!function(s,a,l){a.extend(CZRItemMths,{_sendItem:function(n,e){var t=this,i=t.module,r=[];l.each(e,function(e,t){e!=n[t]&&r.push(t)}),l.each(r,function(e){s.previewer.send("sub_setting",{set_id:i.control.id,id:n.id,changed_prop:e,value:n[e]}),i.trigger("item_sent",{item:n,dom_el:t.container,changed_prop:e})})},removeItem:function(e){var t=this,n=this.module,i=l.clone(n.itemCollection());n.trigger("pre_item_dom_remove",t()),t._destroyView(),i=l.without(i,l.findWhere(i,{id:t.id})),n.itemCollection.set(i),n.trigger("pre_item_api_remove",t());var r=a.extend(!0,{},t());if(n.czr_Item.remove(t.id),"postMessage"!=s(n.control.id).transport||!l.has(e,"dom_event")||l.has(e.dom_event,"isTrigger")||s.CZR_Helpers.hasPartRefresh(n.control.id))n.trigger("item-removed",r),n.control.trigger("item-removed",r);else{var o=function(){s.previewer.unbind("ready",o),n.trigger("item-removed",r)};s.previewer.bind("ready",o),s.previewer.refresh()}},getModel:function(e){return this()}})}(wp.customize,jQuery,_);CZRItemMths=CZRItemMths||{};!function(c,d,u){d.extend(CZRItemMths,{mayBeRenderItemWrapper:function(){var t=this;"pending"==t.embedded.state()&&(!u.isEmpty(t.container)&&0<t.container.length||d.when(t.renderItemWrapper()).done(function(e){if(t.container=e,u.isUndefined(t.container)||!t.container.length)throw new Error("In mayBeRenderItemWrapper the Item view has not been rendered : "+t.id);t.embedded.resolve()}))},renderItemWrapper:function(e){var t,n,i=this,r=i.module,o=d.Deferred(),s=d.extend(!0,{},e||i()),a=function(e){r.isMultiItem()&&(u.isEmpty(e)&&o.reject("renderItemWrapper => Missing html template for module : "+r.id),t.append(e)),t.append(d("<div/>",{class:r.control.css_attr.item_content})),o.resolve(t)};if(i.trigger("item-model-before-item-wrapper-template-injection",s),t=d("<li>",{class:r.control.css_attr.single_item,"data-id":s.id,id:s.id}),r.itemsWrapper.append(t),r.isMultiItem())if(u.isEmpty(r.rudItemPart)){var l={tmpl:"rud-item-part",module_type:"all_modules",module_id:r.id,control_id:r.control.id};i.trigger("item-wrapper-tmpl-params-before-fetching",l),u.isEmpty(r[l.tmpl])?c.CZR_Helpers.getModuleTmpl(l).done(function(e){a(c.CZR_Helpers.parseTemplate(e)({is_sortable:r.sortable}))}).fail(function(e){o.reject("renderItemWrapper => Problem when fetching the rud-item-part tmpl from server for module : "+r.id)}):(n=r.getTemplateSelectorPart(l.tmpl,s),d("#tmpl-"+n).length<1&&o.reject("Missing template for item "+i.id+". The provided template script has no been found : #tmpl-"+n),a(wp.template(n)(s)))}else n=r.getTemplateSelectorPart("rudItemPart",s),d("#tmpl-"+n).length<1&&o.reject("Missing template for item "+i.id+". The provided template script has no been found : #tmpl-"+n),a(wp.template(n)(s));else a();return o.promise()},itemWrapperViewSetup:function(e){var r=this,i=this.module;item_model=r()||r.initial_item_model,r.writeItemViewTitle();var o=function(e,t,n){if(u.isUndefined(e)||!1===e.length)throw new Error("Module : "+r.module.id+", the item content has not been rendered for "+r.id);r.contentContainer=e,r.trigger("contentRendered",{item_content:e}),r.toggleItemExpansion(t,r.module.isMultiItem()?150:0),r.cleanLoader()};r.module.isMultiItem()?r.viewState.callbacks.add(function(t,e){var n=-1!==t.indexOf("expanded");i.hasModOpt()&&n&&c.czr_ModOptVisible(!1,{module:i,focus:!1}),n?u.isObject(r.contentContainer)&&!1!==r.contentContainer.length?r.toggleItemExpansion(t):(r.printLoader(),r.renderItemContent(r()||r.initial_item_model).done(function(e){o(e,t)}).fail(function(e){c.errorLog("multi-item module => failed item.renderItemContent for module : "+i.id,e)})):r.toggleItemExpansion(t).done(function(){u.isObject(r.contentContainer)&&!1!==r.contentContainer.length&&(r.trigger("beforeContenRemoved"),d("."+i.control.css_attr.item_content,r.container).children().each(function(){d(this).remove()}),d("."+i.control.css_attr.item_content,r.container).html(""),r.contentContainer=null,r.trigger("contentRemoved"))})}):(r.viewState.callbacks.add(function(e,t){r.toggleItemExpansion.apply(r,[e,0])}),r.printLoader(),r.renderItemContent(item_model).done(function(e){o(e,!0)}).fail(function(e){c.errare("mono-item module => failed item.renderItemContent for module : "+i.id,e)})),c.CZR_Helpers.setupDOMListeners(r.userEventMap(),{model:item_model,dom_el:r.container},r),r.removeDialogVisible.bind(function(e){var t=r.module,n=d("."+t.control.css_attr.remove_alert_wrapper,r.container).first();if(e&&t.closeAllItems(),e&&t.hasModOpt()&&c.czr_ModOptVisible(!1,{module:t,focus:!1}),e&&u.has(t,"preItem")&&t.preItemExpanded(!1),d("."+t.control.css_attr.remove_alert_wrapper,r.container).not(n).each(function(){d(this).hasClass("open")&&d(this).slideToggle({duration:200,done:function(){d(this).toggleClass("open",!1),d(this).siblings().find("."+t.control.css_attr.display_alert_btn).toggleClass("active",!1)}})}),e)if(u.isEmpty(t.alertPart))c.CZR_Helpers.getModuleTmpl({tmpl:"rud-item-alert-part",module_type:"all_modules",module_id:t.id,control_id:t.control.id}).done(function(e){n.html(c.CZR_Helpers.parseTemplate(e)({title:r().title||r.id})),r.trigger("remove-dialog-rendered")}).fail(function(e){c.errare("item.removeDialogVisible => Problem when fetching the tmpl from server for module : "+t.id,e)});else{if(d("#tmpl-"+t.alertPart).length<1||u.isEmpty(r.container))return void c.errare("No removal alert template available for items in module :"+t.id);n.html(wp.template(t.alertPart)({title:r().title||r.id})),r.trigger("remove-dialog-rendered")}var i=function(e){n.toggleClass("open",e),r.container.find("."+t.control.css_attr.display_alert_btn).toggleClass("active",e),e&&t._adjustScrollExpandedBlock(r.container)};e?n.stop(!0,!0).slideDown(200,function(){i(e)}):n.stop(!0,!0).slideUp(200,function(){i(e)})})},renderItemContent:function(e){var n=this,i=this.module,r=d.Deferred(),t=d.extend(!0,{},e||n());n.trigger("item-model-before-item-content-template-injection",t);var o=function(e){u.isEmpty(e)&&r.reject("renderItemContent => Missing html template for module : "+i.id);var t=d("."+i.control.css_attr.item_content,n.container);d(e).appendTo(t),r.resolve(t)};if(!u.isEmpty(i.itemInputList)||u.isFunction(i.itemInputList)){var s=i.getTemplateSelectorPart("itemInputList",t);d("#tmpl-"+s).length<1?r.reject("renderItemContent => No itemInputList content template defined for module "+i.id+". The template script id should be : #tmpl-"+s):o(wp.template(s)(t))}else{var a={tmpl:"item-inputs",module_type:i.module_type,module_id:i.id,control_id:i.control.id,item_model:t};i.trigger("filter-request-params-before-fetching-for-item-content-tmpl",a),c.CZR_Helpers.getModuleTmpl(a).done(function(e){o(c.CZR_Helpers.parseTemplate(e)(d.extend(t,{control_id:i.control.id})))}).fail(function(e){r.reject(e)})}return r.promise()},writeItemViewTitle:function(e){var t=this,n=t.module,i=e||t(),r=u.has(i,"title")&&!u.isEmpty(i.title)?c.CZR_Helpers.capitalize(i.title):i.id;r=c.CZR_Helpers.truncate(r,20),d("."+n.control.css_attr.item_title,t.container).text(r),c.CZR_Helpers.doActions("after_writeViewTitle",t.container,i,t)},setViewVisibility:function(e,t){var n=this.module;t?this.viewState.set("expanded_noscroll"):(n.closeAllItems(this.id),u.has(n,"preItem")&&n.preItemExpanded.set(!1),this.viewState.set("expanded"==this._getViewState()?"closed":"expanded"))},_getViewState:function(){return-1==this.viewState().indexOf("expanded")?"closed":"expanded"},toggleItemExpansion:function(n,e){var t="closed"!=n,i=this,r=this.module,o=d("."+r.control.css_attr.item_content,i.container).first(),s=d.Deferred(),a=function(e){i.container.toggleClass("open",e),e&&r.closeRemoveDialogs();var t=o.siblings().find("."+r.control.css_attr.edit_view_btn);t.toggleClass("active",e),e?t.removeClass("fa-pencil-alt").addClass("fa-minus-square").attr("title",serverControlParams.i18n.close):t.removeClass("fa-minus-square").addClass("fa-pencil-alt").attr("title",serverControlParams.i18n.edit),"expanded"==n&&r._adjustScrollExpandedBlock(i.container),s.resolve()};return e=u.isUndefined(e)?150:e,t?o.stop(!0,!0).slideDown(e,function(){a(t)}):o.stop(!0,!0).slideUp(0,function(){a(t)}),s.promise()},_destroyView:function(e){this.container.fadeOut({duration:e||400,done:function(){d(this).remove()}})},printLoader:function(){var e=this;e.container.css({position:"relative"}).append(c.CZR_Helpers.css_loader_html).find(".czr-css-loader").fadeIn("fast"),clearTimeout(d.data(this,"_czr_loader_active_timer_")),d.data(this,"_czr_loader_active_timer_",setTimeout(function(){e.cleanLoader()},5e3))},cleanLoader:function(){this.container.css({"min-height":""}).find(".czr-css-loader").remove()}})}(wp.customize,jQuery,_);var CZRModOptMths=CZRModOptMths||{};!function(r,o,s){o.extend(CZRModOptMths,{initialize:function(e){if(s.isUndefined(e.module)||s.isEmpty(e.module))throw new Error("No module assigned to modOpt.");var t=this;r.Value.prototype.initialize.call(t,null,e),t.isReady=o.Deferred(),t.container=null,t.inputCollection=new r.Value({}),o.extend(t,e||{}),t.defaultModOptModel=s.clone(e.defaultModOptModel)||{is_mod_opt:!0};var n=o.extend(t.defaultModOptModel,e.initial_modOpt_model),i=t.module.control;t.set(n),t.isReady.done(function(){o("."+i.css_attr.edit_modopt_icon,i.container).length||o.when(i.container.find(".customize-control-title").first().append(o("<span/>",{class:[i.css_attr.edit_modopt_icon,"fas fa-cog"].join(" "),title:serverControlParams.i18n.Settings}))).done(function(){o("."+i.css_attr.edit_modopt_icon,i.container).fadeIn(400)}),r.CZR_Helpers.setupDOMListeners([{trigger:"click keydown",selector:"."+i.css_attr.edit_modopt_icon,name:"toggle_mod_option",actions:function(){r.czr_ModOptVisible(!r.czr_ModOptVisible(),{module:t.module,focus:!1})}}],{dom_el:i.container},t)})},ready:function(){this.isReady.resolve()}})}(wp.customize,jQuery,_);CZRModOptMths=CZRModOptMths||{};!function(o,s,a){s.extend(CZRModOptMths,{modOptWrapperViewSetup:function(e){var n=this,i=this.module,r=s.Deferred();return e=n()||n.initial_modOpt_model,n.renderModOptContent(e).done(function(e){if(a.isEmpty(e)||!(0<e.length))throw new Error("Module : "+n.module.id+", the modOpt content has not been rendered");var t;t=e,o.CZR_Helpers.setupDOMListeners([{trigger:"click keydown",selector:"."+i.control.css_attr.close_modopt_icon,name:"close_mod_option",actions:function(){o.czr_ModOptVisible(!1,{module:i,focus:!1})}},{trigger:"click keydown",selector:".tabs nav li",name:"tab_nav",actions:function(e){var t=s(e.dom_event.currentTarget,e.dom_el).data("tab-id");this.module.toggleTabVisibility.call(this,t),this.trigger("tab-switch",{id:t})}}],{dom_el:t},n),r.resolve(e)}).fail(function(e){o.errorLog("failed modOpt.renderModOptContent for module : "+i.id,e)}).then(function(){n.module.setupTabNav.call(n)}),r.promise()},renderModOptContent:function(t){var n=this.module,i=s.Deferred();t=t||this();var r=function(e){a.isEmpty(e)&&i.reject("renderModOptContent => Missing html template for module : "+n.id);var t="";try{t=[serverControlParams.i18n["Options for"],n.control.params.label].join(" ")}catch(e){o.errorLog("renderItemContent => Problem with ctrl label => "+e),t=serverControlParams.i18n.Settings}s("#widgets-left").after(s("<div/>",{class:n.control.css_attr.mod_opt_wrapper,html:[['<h2 class="mod-opt-title">',t,"</h2>"].join(""),'<span class="fas fa-times '+n.control.css_attr.close_modopt_icon+'" title="close"></span>'].join("")})),s("."+n.control.css_attr.mod_opt_wrapper).append(e),i.resolve(s("."+n.control.css_attr.mod_opt_wrapper))};if(a.isEmpty(n.itemPreAddEl))o.CZR_Helpers.getModuleTmpl({tmpl:"mod-opt",module_type:n.module_type,module_id:n.id,control_id:n.control.id}).done(function(e){r(o.CZR_Helpers.parseTemplate(e)(t))}).fail(function(e){i.reject("renderPreItemView => Problem when fetching the mod-opt tmpl from server for module : "+n.id)});else{var e=n.getTemplateSelectorPart("modOptInputList",t);s("#tmpl-"+e).length<1&&i.reject("renderModOptContent => No modOpt content template defined for module "+n.id+". The template script id should be : #tmpl-"+e),r(wp.template(e)(t))}return i.promise()},toggleModPanelView:function(e){var t=this.module,n=(t.control,s.Deferred());return t.control.container.toggleClass("czr-modopt-visible",e),s("body").toggleClass("czr-editing-modopt",e),a.delay(function(){n.resolve()},200),n.promise()}})}(wp.customize,jQuery,_);var CZRModuleMths=CZRModuleMths||{};!function(o,s,a){s.extend(CZRModuleMths,{initialize:function(e,t){if(a.isUndefined(t.control)||a.isEmpty(t.control))throw new Error("No control assigned to module "+e);var n=this;o.Value.prototype.initialize.call(this,null,t),n.isReady=s.Deferred(),s.extend(n,t||{}),s.extend(n,{crudModulePart:"",rudItemPart:"",ruItemPart:"",alertPart:"",itemInputList:"",modOptInputList:""}),n.embedded=s.Deferred(),n.itemsWrapper="",n.container=s(n.control.selector),n.renderModuleParts().done(function(e){if(!1===e.length)throw new Error("The items wrapper has not been rendered for module : "+n.id);n.itemsWrapper=e,n.embedded.resolve()}).fail(function(e){throw new Error(["initialize module => failed module.renderModuleParts() for module : ",n.id,e].join(" "))}),n.defaultAPImodOptModel={initial_modOpt_model:{},defaultModOptModel:{},control:{},module:{}},n.defaultModOptModel={},n.modOptConstructor=n.modOptConstructor||o.CZRModOpt,n.itemCollection=new o.Value([]),n.defaultAPIitemModel={id:"",initial_item_model:{},defaultItemModel:{},control:{},module:{},is_added_by_user:!1},n.defaultItemModel=o.czrModuleMap[n.module_type].defaultItemModel||{id:"",title:""},n.itemConstructor=n.itemConstructor||o.CZRItem,n.czr_Item=new o.Values,n.inputConstructor=n.inputConstructor||o.CZRInput,n.hasModOpt()&&(n.inputModOptConstructor=n.inputModOptConstructor||o.CZRInput),n.inputOptions={},n.isReady.done(function(){n.isDirty=new o.Value(t.dirty||!1),n.initializeModuleModel(t).done(function(e){n.set(e)}).fail(function(e){o.errare("Module : "+n.id+" initialize module model failed : ",e)}).always(function(e){n.callbacks.add(function(){return n.moduleReact.apply(n,arguments)}),n.control.isModuleRegistered(n.id)||n.control.updateModulesCollection({module:t,is_registered:!1}),n.bind("items-collection-populated",function(e){n.itemCollection.callbacks.add(function(){return n.itemCollectionReact.apply(n,arguments)}),!1!==n.sortable&&n._makeItemsSortable()}),n.populateSavedItemCollection(),n.hasModOpt()&&n.instantiateModOpt()})}),!0===o.czrModuleMap[n.module_type].ready_on_section_expanded&&(a.has(o,"czr_activeSectionId")&&n.control.section()==o.czr_activeSectionId()&&"resolved"!=n.isReady.state()&&n.embedded.then(function(){n.ready()}),o.section(n.control.section(),function(e){e.expanded.bind(function(e){"resolved"!=n.isReady.state()&&n.embedded.then(function(){n.ready()})})}));var i=o.czrModuleMap[n.module_type].ready_on_control_event;a.isUndefined(i)||o.control(n.control.id,function(e){e.container.on(i,function(e){"resolved"!=n.isReady.state()&&n.embedded.then(function(){n.ready()})})}),this.maybeAwakeAndBindSharedModOpt()},ready:function(){this.isReady.resolve()},initializeModuleModel:function(e){var t=s.Deferred();if(!this.isMultiItem()&&!this.isCrud()&&a.isEmpty(e.items)){var n=a.clone(this.defaultItemModel);e.items=[s.extend(n,{id:this.id})]}return t.resolve(e).promise()},itemCollectionReact:function(e,t,n){var i=this(),r=s.extend(!0,{},i);r.items=e,this.isDirty.set(!0),this.set(r,n||{})},filterItemsBeforeCoreApiSettingValue:function(e){return e},moduleReact:function(e,t,n){var i=this.control;a.size(t.items)==a.size(e.items)&&a.isEmpty(a.difference(e.items,t.items)),e.column_id,t.column_id;i.updateModulesCollection({module:s.extend(!0,{},e),data:n})},getModuleSection:function(){return this.section},isMultiItem:function(){return o.CZR_Helpers.isMultiItemModule(null,this)},isCrud:function(){return o.CZR_Helpers.isCrudModule(null,this)},hasModOpt:function(){return o.CZR_Helpers.hasModuleModOpt(null,this)},instantiateModOpt:function(){var o=this,e=o.prepareModOptForAPI(o().modOpt||{});o.czr_ModOpt=new o.modOptConstructor(e),o.czr_ModOpt.ready(),o.czr_ModOpt.callbacks.add(function(e,t,n){var i=o(),r=s.extend(!0,{},i);r.modOpt=e,o.isDirty(!0),o(r,n)})},prepareModOptForAPI:function(n){var i=this,r={};return n=a.isObject(n)?n:{},a.each(i.defaultAPImodOptModel,function(e,t){n[t];switch(t){case"initial_modOpt_model":a.each(i.getDefaultModOptModel(),function(e,t){a.has(n,t)||(n[t]=e)}),r[t]=n;break;case"defaultModOptModel":r[t]=a.clone(i.defaultModOptModel);break;case"control":r[t]=i.control;break;case"module":r[t]=i}}),r},getDefaultModOptModel:function(e){return s.extend(a.clone(this.defaultModOptModel),{is_mod_opt:!0})},sendInputToPreview:function(e){var t=this;e=a.extend({input_id:"",input_parent_id:"",to:null,from:null},e),a.isEqual(e.to,e.from)||(o.previewer.send("czr_input",{set_id:o.CZR_Helpers.getControlSettingId(t.control.id),module_id:t.id,module:{items:s.extend(!0,{},t().items),modOpt:t.hasModOpt()?s.extend(!0,{},t().modOpt):{}},input_parent_id:e.input_parent_id,input_id:e.input_id,value:e.to,isPartialRefresh:e.isPartialRefresh}),t.trigger("input_sent",{input:e.to,dom_el:t.container}))},sendModuleInputsToPreview:function(i){var r=this,t=function(){var n=this,e=s.extend(!0,{},n());e=a.omit(e,"id"),a.each(e,function(e,t){r.sendInputToPreview({input_id:t,input_parent_id:n.id,to:e,from:null,isPartialRefresh:i.isPartialRefresh})})};r.czr_Item.each(function(e){t.call(e)}),r.hasModOpt()&&t.call(r.czr_ModOpt)},maybeAwakeAndBindSharedModOpt:function(){a.isUndefined(o.czr_ModOptVisible)&&(o.czr_ModOptVisible=new o.Value(!1),o.czr_ModOptVisible.bind(function(t,e,n){if(n=n||{},a.isFunction(n.module)&&a.isFunction(n.module.czr_ModOpt)){var i=n.module.czr_ModOpt,r=n.module;t?(r.closeRemoveDialogs().closeAllItems(),i.modOptWrapperViewSetup(i()).done(function(e){i.container=e;try{o.CZR_Helpers.setupInputCollectionFromDOM.call(i).toggleModPanelView(t)}catch(e){o.consoleLog(e)}r&&n.focus&&a.delay(function(){!a.isNull(i.container)&&i.container.find('[data-tab-id="'+n.focus+'"] a').length&&i.container.find('[data-tab-id="'+n.focus+'"] a').trigger("click")},200)})):i.toggleModPanelView(t).done(function(){i.container&&0<i.container.length?s.when(i.container.remove()).done(function(){o.CZR_Helpers.removeInputCollection.call(i)}):o.CZR_Helpers.removeInputCollection.call(i),i.container=null})}else o.errare("moduleCtor::maybeAwakeAndBindSharedModOpt => api.czr_ModOptVisible.bind() => incorrect arguments",n)}))}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(r,s,a){s.extend(CZRModuleMths,{populateSavedItemCollection:function(e){var t,i=this;a.isArray(e||i().items)?(t=s.extend(!0,[],e||i().items),a.each(t,function(e,t){if(a.has(e,"is_mod_opt"))throw new Error("populateSavedItemCollection => there should be no mod opt to instantiate here.")}),i.trigger("filterItemCandidatesBeforeInstantiation",t),a.each(t,function(t,e){var n=function(){var e=i.instantiateItem(t);a.isFunction(e)?e.ready():r.errare("populateSavedItemCollection => Could not instantiate item in module "+i.id,t)};if(serverControlParams.isDevMode)n();else try{n()}catch(e){r.errare("populateSavedItemCollection => "+e)}}),a.each(t,function(e){if(a.isObject(e)&&a.isUndefined(a.findWhere(i.itemCollection(),e.id)))throw new Error("populateSavedItemCollection => The saved items have not been properly populated in module : "+i.id)}),i.trigger("items-collection-populated")):r.errorLog("populateSavedItemCollection : The saved items collection must be an array in module :"+i.id)},instantiateItem:function(e,t){var n=this;if(e=a.isObject(e)?e:{},(e=n.validateItemBeforeAddition(e,t))&&!a.isNull(e))if(e=n.prepareItemForAPI(e),a.isObject(e)){if(e&&!a.isNull(e)){if(!a.has(e,"id"))throw new Error("CZRModule::instantiateItem() => an item has no id and could not be added in the collection of : "+this.id);if(n.czr_Item.has(e.id))throw new Error("CZRModule::instantiateItem() => the following item id "+e.id+" already exists in module.czr_Item() for module "+this.id);if(n.czr_Item.add(e.id,new n.itemConstructor(e.id,e)),!n.czr_Item.has(e.id))throw new Error("CZRModule::instantiateItem() => instantiation failed for item id "+e.id+" for module "+this.id);return n.czr_Item(e.id)}r.errare("CZRModule::instantiateItem() => item_candidate invalid in module "+n.id)}else r.errare("CZRModule::instantiateItem() => an item should be described by an object in module type : "+n.module_type,"module id : "+n.id);else r.errare("CZRModule::instantiateItem() => item_candidate did not pass validation in module "+n.id)},validateItemBeforeAddition:function(e,t){return e},prepareItemForAPI:function(i){var r=this,o={};return i=a.isObject(i)?i:{},a.each(r.defaultAPIitemModel,function(e,t){var n=i[t];switch(t){case"id":a.isEmpty(n)?o[t]=r.generateItemId(r.module_type):r.isItemRegistered(n)?r.generateItemId(n):o[t]=n;break;case"initial_item_model":a.each(r.getDefaultItemModel(),function(e,t){a.has(i,t)||(i[t]=e)}),o[t]=i;break;case"defaultItemModel":o[t]=a.clone(r.defaultItemModel);break;case"control":o[t]=r.control;break;case"module":o[t]=r;break;case"is_added_by_user":o[t]=!!a.isBoolean(n)&&n}}),a.has(o,"id")||(o.id=r.generateItemId(r.module_type)),o.initial_item_model.id=o.id,r.validateItemBeforeInstantiation(o)},validateItemBeforeInstantiation:function(e){return e},generateItemId:function(e,t,n){if(100<(n=n||1))throw new Error("Infinite loop when generating of a module id.");var i=this,r=e+"_"+(t=t||i._getNextItemKeyInCollection());if(!a.has(i,"itemCollection")||!a.isArray(i.itemCollection()))throw new Error("The item collection does not exist or is not properly set in module : "+i.id);return i.isItemRegistered(r)?(t++,n++,i.generateItemId(e,t,n)):r},_getNextItemKeyInCollection:function(){var e=this,t={},n=0;return a.isEmpty(e.itemCollection())||(t=a.isArray(e.itemCollection())&&1===a.size(e.itemCollection())?e.itemCollection()[0]:a.max(e.itemCollection(),function(e){return a.isNumber(e.id.replace(/[^\/\d]/g,""))?parseInt(e.id.replace(/[^\/\d]/g,""),10):0}),!a.isUndefined(t)&&a.isNumber(t.id.replace(/[^\/\d]/g,""))&&(n=parseInt(t.id.replace(/[^\/\d]/g,""),10)+1)),n},isItemRegistered:function(e){return!a.isUndefined(a.findWhere(this.itemCollection(),{id:e}))},updateItemsCollection:function(e){var t=this,n=t.itemCollection(),i=a.clone(n),r=s.Deferred();if(!a.has(e,"collection")){if(!a.has(e,"item"))throw new Error("updateItemsCollection, no item provided "+t.control.id+". Aborting");e=a.extend({params:{}},e);var o=a.clone(e.item);return a.each(t.defaultItemModel,function(e,t){if(!a.has(o,t))throw new Error('CZRModuleMths => updateItemsCollection : Missing property "'+t+'" for item candidate')}),a.findWhere(i,{id:o.id})?a.each(n,function(e,t){e.id==o.id&&(i[t]=o)}):i.push(o),t.itemCollection.set(i,e.params),r.resolve({collection:i,params:e.params}).promise()}t.itemCollection.set(e.collection)},_getSortedDOMItemCollection:function(){var n=a.clone(this.itemCollection()),i=[],e=s.Deferred();if(s("."+this.control.css_attr.single_item,this.container).each(function(e){var t=a.findWhere(n,{id:s(this).attr("data-id")});t&&(i[e]=t)}),n.length!=i.length)throw new Error("There was a problem when re-building the item collection from the DOM in module : "+this.id);return e.resolve(i).promise()},refreshItemCollection:function(){var t=this;t.czr_Item.each(function(e){t.czr_Item(e.id).container&&0<t.czr_Item(e.id).container.length&&s.when(t.czr_Item(e.id).container.remove()).done(function(){t.czr_Item.remove(e.id)})}),t.itemCollection=new r.Value([]),t.populateSavedItemCollection()}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(e,o,s){o.extend(CZRModuleMths,{getDefaultItemModel:function(e){return o.extend(s.clone(this.defaultItemModel),{id:e||""})},_initNewItem:function(e,t){var n,i=this,r={id:""};return t=void 0!==t?t:s.size(i.itemCollection()),s.isNumber(t)?n=i.module_type+"_"+t:(n=t,t=0),r=e&&!s.isEmpty(e)?o.extend(e,{id:n}):this.getDefaultItemModel(n),s.has(r,"id")&&i._isItemIdPossible(n)?(s.map(i.getDefaultItemModel(),function(e,t){s.has(r,t)||(r[t]=e)}),r):i._initNewItem(r,t+1)}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(o,s,a){s.extend(CZRModuleMths,{renderModuleParts:function(){var n=this,i=s(n.container),r=s.Deferred(),t=function(e){n.isCrud()&&(a.isEmpty(e)&&r.reject("renderModuleParts => Missing html template for module : "+n.id),i.append(e));var t=s("<ul/>",{class:[n.control.css_attr.items_wrapper,n.module_type,n.isMultiItem()?"multi-item-mod":"mono-item-mod",n.isCrud()?"crud-mod":"not-crud-mod"].join(" ")});i.append(t),r.resolve(s(t,i))};return n.isCrud()?a.isEmpty(n.crudModulePart)?o.CZR_Helpers.getModuleTmpl({tmpl:"crud-module-part",module_type:"all_modules",module_id:n.id,control_id:n.control.id}).done(function(e){t(o.CZR_Helpers.parseTemplate(e)({}))}).fail(function(e){o.errare("renderModuleParts => fail response =>",e),r.reject("renderModuleParts => Problem when fetching the crud-module-part tmpl from server for module : "+n.id)}):(s("#tmpl-"+n.crudModulePart).length<1&&r.reject("renderModuleParts => no crud Module Part template for module "+n.id+". The template script id should be : #tmpl-"+n.crudModulePart),t(wp.template(n.crudModulePart)({}))):t(),r.promise()},getTemplateSelectorPart:function(e,t){var n,i=this;switch(e){case"rudItemPart":n=i.rudItemPart;break;case"ruItemPart":n=i.ruItemPart;break;case"modOptInputList":n=i.modOptInputList;break;case"itemInputList":n=a.isFunction(i.itemInputList)?i.itemInputList(t):i.itemInputList}if(a.isEmpty(n))throw new Error("No valid template has been found in getTemplateSelectorPart() "+i.id+". Aborting");return n},getViewEl:function(e){return s('[data-id = "'+e+'"]',this.container)},closeAllItems:function(t){var n=this,e=a.clone(n.itemCollection()),i=a.filter(e,function(e){return e.id!=t});return a.each(i,function(e){n.czr_Item.has(e.id)&&"expanded"==n.czr_Item(e.id)._getViewState(e.id)&&n.czr_Item(e.id).viewState.set("closed")}),this},_adjustScrollExpandedBlock:function(e,t){if(e.length&&!a.isUndefined(this.getModuleSection())){var n,i=s(".accordion-section-content",this.section.container),r=i.scrollTop(),o=t||90;setTimeout(function(){e.offset().top+e.height()+o>s(window.top).height()&&0<(n=e.offset().top+e.height()+o-s(window.top).height())&&i.animate({scrollTop:r+n},500)},50)}},closeRemoveDialogs:function(){if(a.isArray(this.itemCollection()))return this.czr_Item.each(function(e){e.removeDialogVisible(!1)}),this},_makeItemsSortable:function(e){if(!wp.media.isTouchDevice&&s.fn.sortable){var n=this;s("."+n.control.css_attr.items_wrapper,n.container).sortable({handle:"."+n.control.css_attr.item_sort_handle,start:function(){},update:function(e,t){n._getSortedDOMItemCollection().done(function(e){n.itemCollection.set(e)}).then(function(){!function(){a.has(n,"preItem")&&n.preItemExpanded.set(!1),n.closeAllItems().closeRemoveDialogs();var e=function(){o.previewer.refresh()};"postMessage"!=o(n.control.id).transport||o.CZR_Helpers.hasPartRefresh(n.control.id)||(e=a.debounce(e,500))(),n.trigger("item-collection-sorted")}()})}})}},toggleTabVisibility:function(e){var t=this;s(t.container).find("li"),s(t.container).find("section");s(".tabs nav li",t.container).each(function(){s(this).removeClass("tab-current").addClass("tab-inactive")}),s(t.container).find('li[data-tab-id="'+e+'"]').addClass("tab-current").removeClass("tab-inactive"),s("section",t.container).each(function(){s(this).removeClass("content-current")}),s(t.container).find('section[id="'+e+'"]').addClass("content-current")},setupTabNav:function(){var i=this;setTimeout(function(){(function(){var e=s.Deferred(),t=s(".tabs nav li",i.container);t.each(function(){s(this).removeClass("tab-current").addClass("tab-inactive")}),t.first().addClass("tab-current").removeClass("tab-inactive"),s("section",i.container).first().addClass("content-current");var n=t.length;return t.each(function(){s(this).addClass(0<n?"cols-"+n:"")}),e.resolve().promise()})().done(function(){s(".tabs",i.container).show()})},20)}})}(wp.customize,jQuery,_);var CZRDynModuleMths=CZRDynModuleMths||{};!function(s,a,l){a.extend(CZRDynModuleMths,{initialize:function(e,t){var n=this;s.CZRModule.prototype.initialize.call(n,e,t),a.extend(n,{itemPreAddEl:""}),n.preItemsWrapper="",n.preItemExpanded=new s.Value(!1),n.itemAddedMessage=serverControlParams.i18n.successMessage;var i=function(e){n.addItem(e).done(function(e){n.czr_Item(e,function(e){e.embedded.then(function(){e.viewState("expanded")})})}).fail(function(e){s.errare("module.addItem failed on add_item",e)})};n.userEventMap=new s.Value([{trigger:"click keydown",selector:["."+n.control.css_attr.open_pre_add_btn,"."+n.control.css_attr.cancel_pre_add_btn].join(","),name:"pre_add_item",actions:["closeAllItems","closeRemoveDialogs",function(e){var t={addTheItem:!0};this.trigger("is-item-addition-possible",t),t.addTheItem&&this.hasPreItem?this.preItemExpanded.set(!this.preItemExpanded()):i(e)}]},{trigger:"click keydown",selector:"."+n.control.css_attr.add_new_btn,name:"add_item",actions:function(e){n.closeRemoveDialogs(e).closeAllItems(e),i(e)}}])},ready:function(){var t=this;t.setupDOMListeners(t.userEventMap(),{dom_el:t.container}),t.preItem=new s.Value(t.getDefaultItemModel()),t.preItemExpanded.callbacks.add(function(e){e?t.renderPreItemView().done(function(e){t.preItemsWrapper=e,t.preItem(t.getDefaultItemModel()),t.trigger("before-pre-item-input-collection-setup"),t.setupPreItemInputCollection()}).fail(function(e){s.errorLog("Pre-Item : "+e)}):a.when(t.preItemsWrapper.remove()).done(function(){t.preItem.czr_Input={},t.preItemsWrapper=null,t.trigger("pre-item-input-collection-destroyed")}),t._togglePreItemViewExpansion(e)}),s.CZRModule.prototype.ready.call(t)},setupPreItemInputCollection:function(){var n=this;n.preItem.czr_Input=new s.Values,a("."+n.control.css_attr.pre_add_wrapper,n.container).find("."+n.control.css_attr.sub_set_wrapper).each(function(e){var t=a(this).find("[data-czrtype]").attr("data-czrtype")||"sub_set_"+e;n.preItem.czr_Input.add(t,new n.inputConstructor(t,{id:t,type:a(this).attr("data-input-type"),container:a(this),input_parent:n.preItem,module:n,is_preItemInput:!0})),n.preItem.czr_Input(t).ready()}),n.trigger("pre-item-input-collection-ready")},itemCanBeInstantiated:function(){return!0},addItem:function(n){var t=a.Deferred();if(!this.itemCanBeInstantiated())return t.reject().promise();var i=this,r=i.preItem(),o=function(){i.preItemExpanded.set(!1)};if(l.isEmpty(r)||!l.isObject(r))return s.errorLog("addItem : an item_candidate should be an object and not empty. In : "+i.id+". Aborted."),t.reject().promise();o=l.debounce(o,200);var e=function(){var e=i.instantiateItem(r,!0);return l.isFunction(e)?e.ready():s.errare("populateSavedItemCollection => Could not instantiate item in module "+i.id,r),e};if(serverControlParams.isDevMode)e();else try{e()}catch(e){return s.errare("populateSavedItemCollection : "+e),t.reject().promise()}return i.czr_Item.has(r.id)?(a.Deferred(function(){var t=this;i.czr_Item(r.id).isReady.then(function(){o(),i.trigger("item-added",r);var e=function(){s.previewer.unbind("ready",e),t.resolve()};i.refresh_on_add_item?"postMessage"!=s(i.control.id).transport||!l.has(n,"dom_event")||l.has(n.dom_event,"isTrigger")||s.CZR_Helpers.hasPartRefresh(i.control.id)?t.resolve():(s.previewer.bind("ready",e),s.previewer.refresh()):t.resolve()})}).always(function(){t.resolve(r.id)}),t.promise()):t.reject("populateSavedItemCollection : the item "+r.id+" has not been instantiated in module "+i.id).promise()}})}(wp.customize,jQuery,_);CZRDynModuleMths=CZRDynModuleMths||{};!function(r,o,s){o.extend(CZRDynModuleMths,{renderPreItemView:function(e){var n=this,i=o.Deferred();if(s.isObject(n.preItemsWrapper)&&0<n.preItemsWrapper.length)return i.resolve(n.preItemsWrapper).promise();var t=function(e){!s.isEmpty(e)&&n.container||i.reject("renderPreItemView => Missing html template for module : "+n.id);var t=o("."+n.control.css_attr.pre_add_item_content,n.container);t.prepend(o("<div>",{class:"pre-item-wrapper"})),t.find(".pre-item-wrapper").append(e),i.resolve(t.find(".pre-item-wrapper")).promise()};return s.isEmpty(n.itemPreAddEl)?r.CZR_Helpers.getModuleTmpl({tmpl:"pre-item",module_type:n.module_type,module_id:n.id,control_id:n.control.id}).done(function(e){t(r.CZR_Helpers.parseTemplate(e)())}).fail(function(e){i.reject(["renderPreItemView for module : ",n.id,e].join(" "))}):(o("#tmpl-"+n.itemPreAddEl).length<1&&i.reject("renderPreItemView => Missing itemPreAddEl or template in module "+n.id),t(wp.template(n.itemPreAddEl)())),i.promise()},_getPreItemView:function(){return o("."+this.control.css_attr.pre_add_item_content,this.container)},_togglePreItemViewExpansion:function(t){var n=this;o("."+n.control.css_attr.pre_add_item_content,n.container).slideToggle({duration:200,done:function(){var e=o("."+n.control.css_attr.open_pre_add_btn,n.container);o(this).toggleClass("open",t),t?e.find(".fas").removeClass("fa-plus-square").addClass("fa-minus-square"):e.find(".fas").removeClass("fa-minus-square").addClass("fa-plus-square"),e.toggleClass("active",t),o(n.container).toggleClass(n.control.css_attr.adding_new,t),n._adjustScrollExpandedBlock(o(this),120)}})},toggleSuccessMessage:function(e){var t=this,n=t.itemAddedMessage,i=o("."+t.control.css_attr.pre_add_wrapper,t.container);return $_success_wrapper=o("."+t.control.css_attr.pre_add_success,t.container),"on"==e?($_success_wrapper.find("p").text(n),$_success_wrapper.css("z-index",1000001).css("height",i.height()+"px").css("line-height",i.height()+"px")):$_success_wrapper.attr("style",""),t.container.toggleClass("czr-model-added","on"==e),this}})}(wp.customize,jQuery,_);var CZRBaseControlMths=CZRBaseControlMths||{};!function(i,e,r){e.extend(CZRBaseControlMths,{initialize:function(e,t){var n=this;n.css_attr=r.has(serverControlParams,"css_attr")?serverControlParams.css_attr:{},i.Control.prototype.initialize.call(n,e,t),n.bind("czr-partial-refresh-done",function(){r.has(n,"czr_moduleCollection")&&r.each(n.czr_moduleCollection(),function(e){n.czr_Module(e.id)&&n.czr_Module(e.id).sendModuleInputsToPreview({isPartialRefresh:!0})})})},refreshPreview:function(e){this.previewer.refresh()}})}(wp.customize,jQuery,_);var CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(l,c,d){c.extend(CZRBaseModuleControlMths,{initialize:function(e,t){var n=this;if(!l.has(e))throw new Error("Missing a registered setting for control : "+e);n.czr_Module=new l.Values,n.czr_moduleCollection=new l.Value,n.czr_moduleCollection.set([]),n.moduleCollectionReady=c.Deferred(),n.moduleCollectionReady.done(function(e){n.czr_moduleCollection.callbacks.add(function(){return n.moduleCollectionReact.apply(n,arguments)})}),l.CZRBaseControl.prototype.initialize.call(n,e,t),l.section(n.section(),function(e){e.expanded.bind(function(e){n.czr_Module.each(function(e){e.closeAllItems().closeRemoveDialogs(),d.has(e,"preItem")&&e.preItemExpanded(!1)})})})},ready:function(){var n=this,i={};try{n.getSavedModules()}catch(e){return l.errare("api.CZRBaseControl::ready() => error on control.getSavedModules()",e),void n.moduleCollectionReady.reject()}d.each(n.getSavedModules(),function(t,e){if(i=t,serverControlParams.isDevMode)n.instantiateModule(t,{});else try{n.instantiateModule(t,{})}catch(e){return void l.errare("api.CZRBaseControl::Failed to instantiate module "+t.id,e)}n.container.attr("data-module",t.id)}),n.moduleCollectionReady.resolve(i)},getDefaultModuleApiModel:function(){return{id:"",module_type:"",modOpt:{},items:[],crud:!1,hasPreItem:!0,refresh_on_add_item:!0,multi_item:!1,sortable:!1,control:{},section:""}},getSavedModules:function(){var n=this,e=[],i=n.params.module_type,r=[],o=[],s={};l.CZR_Helpers.isMultiItemModule(i)||d.isEmpty(l(n.id)())||d.isObject(l(n.id)())||l.errare("api.CZRBaseControl::getSavedModules => module Control Init for "+n.id+" : a mono item module control value should be an object if not empty.");var t=l.CZR_Helpers.getControlSettingId(n.id),a=l(t)();return r=d.isEmpty(a)?[]:d.isArray(a)?a:[a],d.each(r,function(e,t){d.isObject(e)?(d.isEmpty(e)||d.each(e,function(e,t){d.isString(t)||l.errare("api.CZRBaseControl::::getSavedModules => item not well formed in control : "+n.id+" => module type => "+n.params.module_type,r)}),l.CZR_Helpers.hasModuleModOpt(i)&&0===t&&(d.has(e,"id")?l.errare("api.CZRBaseControl::getSavedModules : the module "+i+" in control "+n.id+" has no mod_opt defined while it should."):s=e),d.has(e,"is_mod_opt")||o.push(e)):l.errare("api.CZRBaseControl::::getSavedModules => an item must be an object in control "+n.id+" => module type => "+n.params.module_type,r)}),e.push({id:l.CZR_Helpers.getOptionName(n.id)+"_"+n.params.type,module_type:n.params.module_type,section:n.section(),modOpt:c.extend(!0,{},s),items:c.extend(!0,[],o)}),e},isModuleRegistered:function(e){return!d.isUndefined(d.findWhere(this.czr_moduleCollection(),{id:e}))}})}(wp.customize,jQuery,_);CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(s,e,a){e.extend(CZRBaseModuleControlMths,{instantiateModule:function(e,t){if(!a.has(e,"id"))throw new Error("CZRModule::instantiateModule() : a module has no id and could not be added in the collection of : "+this.id+". Aborted.");var n=this;if((a.isUndefined(t)||a.isEmpty(t))&&(t=n.getModuleConstructor(e)),!a.isEmpty(e.id)&&n.czr_Module.has(e.id))throw new Error("The module id already exists in the collection in control : "+n.id);var i=n.prepareModuleForAPI(e);if(n.czr_Module.add(i.id,new t(i.id,i)),!n.czr_Module.has(i.id))throw new Error("instantiateModule() : instantiation failed for module id "+i.id+" in control "+n.id);return n.czr_Module(i.id)},getModuleConstructor:function(e){var t;if(!a.has(e,"module_type"))throw new Error("CZRModule::getModuleConstructor : no module type found for module "+e.id);if(!a.has(s.czrModuleMap,e.module_type))throw new Error("Module type "+e.module_type+" is not listed in the module map api.czrModuleMap.");var n=s.czrModuleMap[e.module_type].mthds;if(t=(s.czrModuleMap[e.module_type].crud?s.CZRDynModule:s.CZRModule).extend(n),a.isUndefined(t)||a.isEmpty(t)||!t)throw new Error("CZRModule::getModuleConstructor : no constructor found for module type : "+e.module_type+".");return t},prepareModuleForAPI:function(i){if(!a.isObject(i))throw new Error("prepareModuleForAPI : a module must be an object to be instantiated.");var r=this,o={};return a.each(r.getDefaultModuleApiModel(),function(e,t){var n=i[t];switch(t){case"id":a.isEmpty(n)?o[t]=r.generateModuleId(i.module_type):o[t]=n;break;case"module_type":if(!a.isString(n)||a.isEmpty(n))throw new Error("prepareModuleForAPI : a module type must a string not empty");o[t]=n;break;case"items":if(!a.isArray(n))throw new Error("prepareModuleForAPI : a module item list must be an array");o[t]=n;break;case"modOpt":if(!a.isObject(n))throw new Error("prepareModuleForAPI : a module modOpt property must be an object");o[t]=n;break;case"crud":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].crud,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "crud" must be a boolean');o[t]=n||!1;break;case"hasPreItem":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].hasPreItem,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "hasPreItem" must be a boolean');o[t]=n||!1;break;case"refresh_on_add_item":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].refresh_on_add_item,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "refresh_on_add_item" must be a boolean');o[t]=n||!1;break;case"multi_item":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].multi_item,a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].crud);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "multi_item" must be a boolean');o[t]=n||!1;break;case"sortable":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].sortable,a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].crud),a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].multi_item);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "sortable" must be a boolean');o[t]=n||!1;break;case"control":o[t]=r;break;case"section":if(!a.isString(n)||a.isEmpty(n))throw new Error("prepareModuleForAPI : a module section must be a string not empty");o[t]=n;break;case"dirty":o[t]=n||!1}}),o},generateModuleId:function(e,t,n){if(100<(n=n||1))throw new Error("Infinite loop when generating of a module id.");var i=this,r=e+"_"+(t=t||i._getNextModuleKeyInCollection());if(!a.has(i,"czr_moduleCollection")||!a.isArray(i.czr_moduleCollection()))throw new Error("The module collection does not exist or is not properly set in control : "+i.id);return i.isModuleRegistered(r)?(t++,n++,i.generateModuleId(e,t,n)):r},_getNextModuleKeyInCollection:function(){var e={},t=0;return a.isEmpty(this.czr_moduleCollection())||(e=a.max(this.czr_moduleCollection(),function(e){return parseInt(e.id.replace(/[^\/\d]/g,""),10)}),t=parseInt(e.id.replace(/[^\/\d]/g,""),10)+1),t}})}(wp.customize,jQuery,_);CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(s,a,l){a.extend(CZRBaseModuleControlMths,{updateModulesCollection:function(e){var t=this,n=t.czr_moduleCollection(),i=a.extend(!0,[],n);if(l.has(e,"collection"))t.czr_moduleCollection.set(e.collection,e.data||{});else{if(!l.has(e,"module"))throw new Error("updateModulesCollection, no module provided "+t.id+". Aborting");var r=t.prepareModuleForAPI(l.clone(e.module));l.findWhere(i,{id:r.id})?l.each(n,function(e,t){e.id==r.id&&(i[t]=r)}):i.push(r);var o={};l.has(e,"data")&&(o=a.extend(!0,{},e.data),a.extend(o,{module:r})),t.czr_moduleCollection.set(i,o)}},moduleCollectionReact:function(t,e,n){var i=l.size(t)>l.size(e),r=l.size(e)>l.size(t);l.size(e),l.size(t);if(is_collection_sorted=!1,r){var o=l.filter(e,function(e){return l.isUndefined(l.findWhere(t,{id:e.id}))});o=o[0],this.czr_Module.remove(o.id)}if(l.isObject(n)&&l.has(n,"module")&&(n.module_id=n.module.id,n.moduleRegistrationParams=n.module,n.module=this.prepareModuleForDB(a.extend(!0,{},n.module))),!i)if(serverControlParams.isDevMode)s(this.id).set(this.filterModuleCollectionBeforeAjax(t),n);else try{s(this.id).set(this.filterModuleCollectionBeforeAjax(t),n)}catch(e){s.errare("api.CZRBaseControl::moduleCollectionReact => error when firing control.filterModuleCollectionBeforeAjax( to )",e)}},filterModuleCollectionBeforeAjax:function(e){var t,i=this,n=a.extend(!0,[],e),r=[];if(l.each(n,function(e,t){var n=a.extend(!0,{},e);r[t]=i.prepareModuleForDB(n)}),1<l.size(n))throw new Error("There should not be several modules in the collection of control : "+i.id);if(!l.isArray(n)||l.isEmpty(n)||!l.has(n[0],"items"))throw new Error("The setting value could not be populated in control : "+i.id);var o=n[0].id;if(!i.czr_Module.has(o))throw new Error("The single module control ("+i.id+") has no module registered with the id "+o);var s=i.czr_Module(o);if(!l.isArray(s().items))throw new Error("The module "+o+" should be an array in control : "+i.id);return t=s.isMultiItem()?s().items:s().items[0]||[],t=s.filterItemsBeforeCoreApiSettingValue(t),s.hasModOpt()?l.union([s().modOpt],t):t},prepareModuleForDB:function(e){if(!l.isObject(e))throw new Error("::prepareModuleForDB : a module must be an object.");var t={};if(!l.isArray(e.items))throw new Error("::prepareModuleForDB : a module item list must be an array");return l.each(e.items,function(e){if(!l.isObject(e))throw new Error("::prepareModuleForDB : a module item must be an object")}),t.items=e.items,t}})}(wp.customize,jQuery,_),function(e,t,n){t.extend(CZRBaseControlMths,e.Events),t.extend(e.Control.prototype,e.Events),t.extend(CZRModuleMths,e.Events),t.extend(CZRItemMths,e.Events),t.extend(CZRModOptMths,e.Events),t.extend(CZRBaseControlMths,e.CZR_Helpers),t.extend(CZRInputMths,e.CZR_Helpers),t.extend(CZRModuleMths,e.CZR_Helpers),e.CZRInput=e.Value.extend(CZRInputMths),e.czrInputMap=e.czrInputMap||{},t.extend(e.czrInputMap,{text:"",textarea:"",check:"setupIcheck",checkbox:"setupIcheck",nimblecheck:"",select:"setupSelect",radio:"setupRadio",number:"setupStepper",upload:"setupImageUploaderSaveAsId",upload_url:"setupImageUploaderSaveAsUrl",color:"setupColorPicker",wp_color_alpha:"setupColorPickerAlpha",wp_color:"setupWPColorPicker",content_picker:"setupContentPicker",password:"",range:"setupSimpleRange",range_slider:"setupRangeSlider",hidden:"",h_alignment:"setupHAlignement",h_text_alignment:"setupHAlignement"}),e.CZRItem=e.Value.extend(CZRItemMths),e.CZRModOpt=e.Value.extend(CZRModOptMths),e.CZRModule=e.Value.extend(CZRModuleMths),e.CZRDynModule=e.CZRModule.extend(CZRDynModuleMths),e.CZRBaseControl=e.Control.extend(CZRBaseControlMths),e.CZRBaseModuleControl=e.CZRBaseControl.extend(CZRBaseModuleControlMths),t.extend(e.controlConstructor,{czr_module:e.CZRBaseModuleControl})}(wp.customize,jQuery,_),function(t,e){jQuery(function(n){var i,e=t.customize||e;i=n("<span/>",{class:"customize-controls-home-or-add fas fa-home",html:'<span class="screen-reader-text">Home</span>'}),n.when(n("#customize-header-actions").append(i)).done(function(){i.keydown(function(e){9!==e.which&&(13===e.which&&this.click(),e.preventDefault())}).on("click.customize-controls-home-or-add",function(){e.section.has(e.czr_activeSectionId())?e.section(e.czr_activeSectionId()).expanded(!1):e.section.each(function(e){e.expanded(!1)}),e.panel.each(function(e){e.expanded(!1)})}),_.delay(function(){if(!i.hasClass("button-see-me")){var e=0,t=function(){n.Deferred(function(){var e=this;i.addClass("button-see-me"),_.delay(function(){i.removeClass("button-see-me"),e.resolve()},800)}).done(function(){0<=--e&&_.delay(function(){t()},50)})};t()}},2e3)})})}(wp);
1
+ "function"!=typeof jQuery.fn.iCheck&&function(v){function _(e,t,n){var i=e[0],r=/er/.test(n)?$:/bl/.test(n)?x:I,o=n==E?{checked:i[I],disabled:i[x],indeterminate:"true"==e.attr($)||"false"==e.attr(S)}:i[r];if(/^(ch|di|in)/.test(n)&&!o)y(e,r);else if(/^(un|en|de)/.test(n)&&o)b(e,r);else if(n==E)for(r in o)o[r]?y(e,r,!0):b(e,r,!0);else t&&"toggle"!=n||(t||e[k]("ifClicked"),o?i[A]!==z&&b(e,r):y(e,r))}function y(e,t,n){var i=e[0],r=e.parent(),o=t==I,s=t==$,a=t==x,l=s?S:o?g:"enabled",c=h(e,l+m(i[A])),d=h(e,t+m(i[A]));if(!0!==i[t]){if(!n&&t==I&&i[A]==z&&i.name){var u=e.closest("form"),p='input[name="'+i.name+'"]';(p=u.length?u.find(p):v(p)).each(function(){this!==i&&v(this).data(w)&&b(v(this),t)})}s?(i[t]=!0,i[I]&&b(e,I,"force")):(n||(i[t]=!0),o&&i[$]&&b(e,$,!1)),f(e,o,t,n)}i[x]&&h(e,D,!0)&&r.find("."+M).css(D,"default"),r[R](d||h(e,t)||""),a?r.attr("aria-disabled","true"):r.attr("aria-checked",s?"mixed":"true"),r[O](c||h(e,l)||"")}function b(e,t,n){var i=e[0],r=e.parent(),o=t==I,s=t==$,a=t==x,l=s?S:o?g:"enabled",c=h(e,l+m(i[A])),d=h(e,t+m(i[A]));!1!==i[t]&&((s||!n||"force"==n)&&(i[t]=!1),f(e,o,l,n)),!i[x]&&h(e,D,!0)&&r.find("."+M).css(D,"pointer"),r[O](d||h(e,t)||""),a?r.attr("aria-disabled","false"):r.attr("aria-checked","false"),r[R](c||h(e,l)||"")}function C(e,t){e.data(w)&&(e.parent().html(e.attr("style",e.data(w).s||"")),t&&e[k](t),e.off(".i").unwrap(),v(P+'[for="'+e[0].id+'"]').add(e.closest(P)).off(".i"))}function h(e,t,n){return e.data(w)?e.data(w).o[t+(n?"":"Class")]:void 0}function m(e){return e.charAt(0).toUpperCase()+e.slice(1)}function f(e,t,n,i){i||(t&&e[k]("ifToggled"),e[k]("ifChanged")[k]("if"+m(n)))}var w="iCheck",M=w+"-helper",z="radio",I="checked",g="un"+I,x="disabled",S="determinate",$="in"+S,E="update",A="type",R="addClass",O="removeClass",k="trigger",P="label",D="cursor",j=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);v.fn[w]=function(t,n){var i='input[type="checkbox"], input[type="'+z+'"]',r=v(),e=function(e){e.each(function(){var e=v(this);r=e.is(i)?r.add(e):r.add(e.find(i))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(t))return t=t.toLowerCase(),e(this),r.each(function(){var e=v(this);"destroy"==t?C(e,"ifDestroyed"):_(e,!0,t),v.isFunction(n)&&n()});if("object"!=typeof t&&t)return this;var d=v.extend({checkedClass:I,disabledClass:x,indeterminateClass:$,labelHover:!0,aria:!1},t),o=d.handle,u=d.hoverClass||"hover",p=d.focusClass||"focus",h=d.activeClass||"active",m=!!d.labelHover,f=d.labelHoverClass||"hover",g=0|(""+d.increaseArea).replace("%","");return("checkbox"==o||o==z)&&(i='input[type="'+o+'"]'),g<-50&&(g=-50),e(this),r.each(function(){var i=v(this);C(i);var r=this,e=r.id,t={position:"absolute",top:n=-g+"%",left:n,display:"block",width:t=100+2*g+"%",height:t,margin:0,padding:0,background:"#fff",border:0,opacity:0},n=j?{position:"absolute",visibility:"hidden"}:g?t:{position:"absolute",opacity:0},o="checkbox"==r[A]?d.checkboxClass||"icheckbox":d.radioClass||"i"+z,s=v(P+'[for="'+e+'"]').add(i.closest(P)),a=!!d.aria,l=w+"-"+Math.random().toString(36).substr(2,6),c='<div class="'+o+'" '+(a?'role="'+r[A]+'" ':"");a&&s.each(function(){c+='aria-labelledby="',this.id?c+=this.id:(this.id=l,c+=l),c+='"'}),c=i.wrap(c+"/>")[k]("ifCreated").parent().append(d.insert),t=v('<ins class="'+M+'"/>').css(t).appendTo(c),i.data(w,{o:d,s:i.attr("style")}).css(n),d.inheritClass&&c[R](r.className||""),d.inheritID&&e&&c.attr("id",w+"-"+e),"static"==c.css("position")&&c.css("position","relative"),_(i,!0,E),s.length&&s.on("click.i mouseover.i mouseout.i touchbegin.i touchend.i",function(e){var t=e[A],n=v(this);if(!r[x]){if("click"==t){if(v(e.target).is("a"))return;_(i,!1,!0)}else m&&(/ut|nd/.test(t)?(c[O](u),n[O](f)):(c[R](u),n[R](f)));if(!j)return!1;e.stopPropagation()}}),i.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(e){var t=e[A];return e=e.keyCode,"click"!=t&&("keydown"==t&&32==e?(r[A]==z&&r[I]||(r[I]?b(i,I):y(i,I)),!1):void("keyup"==t&&r[A]==z?!r[I]&&y(i,I):/us|ur/.test(t)&&c["blur"==t?O:R](p)))}),t.on("click mousedown mouseup mouseover mouseout touchbegin.i touchend.i",function(e){var t=e[A],n=/wn|up/.test(t)?h:u;if(!r[x]){if("click"==t?_(i,!1,!0):(/wn|er|in/.test(t)?c[R](n):c[O](n+" "+h),s.length&&m&&n==u&&s[/ut|nd/.test(t)?O:R](f)),!j)return!1;e.stopPropagation()}})})}}(window.jQuery||window.Zepto),"function"!=typeof jQuery.fn.selecter&&function(d,r){"use strict";function o(e,t){if(!e.hasClass("selecter-element")){(t=d.extend({},t,e.data("selecter-options"))).external&&(t.links=!0);var n=e.find("option, optgroup"),i=n.filter("option"),r=i.filter(":selected"),o=""!==t.label?-1:i.index(r),s=t.links?"nav":"div";t.tabIndex=e[0].tabIndex,e[0].tabIndex=-1,t.multiple=e.prop("multiple"),t.disabled=e.is(":disabled");var a="<"+s+' class="selecter '+t.customClass;C?a+=" mobile":t.cover&&(a+=" cover"),a+=t.multiple?" multiple":" closed",t.disabled&&(a+=" disabled"),a+='" tabindex="'+t.tabIndex+'">',t.multiple||(a+='<span class="selecter-selected'+(""!==t.label?" placeholder":"")+'">',a+=d("<span></span").text(y(""!==t.label?t.label:r.text(),t.trim)).html(),a+="</span>"),a+='<div class="selecter-options">',a+="</div>",a+="</"+s+">",e.addClass("selecter-element").after(a);var l=e.next(".selecter"),c=d.extend({$select:e,$allOptions:n,$options:i,$selecter:l,$selected:l.find(".selecter-selected"),$itemsWrapper:l.find(".selecter-options"),index:-1,guid:b++},t);u(c),_(o,c),void 0!==d.fn.scroller&&c.$itemsWrapper.scroller(),c.$selecter.on("touchstart.selecter click.selecter",".selecter-selected",c,p).on("click.selecter",".selecter-item",c,m).on("close.selecter",c,h).data("selecter",c),c.$select.on("change.selecter",c,f),C||(c.$selecter.on("focus.selecter",c,g).on("blur.selecter",c,v),c.$select.on("focus.selecter",c,function(e){e.data.$selecter.trigger("focus")}))}}function u(e){for(var t="",n=e.links?"a":"span",i=0,r=e.$allOptions.length;i<r;i++){var o=e.$allOptions.eq(i);if("OPTGROUP"===o[0].tagName)t+='<span class="selecter-group',o.is(":disabled")&&(t+=" disabled"),t+='">'+o.attr("label")+"</span>";else{var s=o.val();o.attr("value")||o.attr("value",s),t+="<"+n+' class="selecter-item',o.is(":selected")&&""===e.label&&(t+=" selected"),o.is(":disabled")&&(t+=" disabled"),t+='" ',t+=e.links?'href="'+s+'"':'data-value="'+s+'"',t+=">"+d("<span></span>").text(y(o.text(),e.trim)).html()+"</"+n+">",0}}e.$itemsWrapper.html(t),e.$items=e.$selecter.find(".selecter-item")}function p(e){e.preventDefault(),e.stopPropagation();var t=e.data;if(!t.$select.is(":disabled"))if(d(".selecter").not(t.$selecter).trigger("close.selecter",[t]),C){var n=t.$select[0];if(r.document.createEvent){var i=r.document.createEvent("MouseEvents");i.initMouseEvent("mousedown",!1,!0,r,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(i)}else n.fireEvent&&n.fireEvent("onmousedown")}else t.$selecter.hasClass("closed")?function(e){e.preventDefault(),e.stopPropagation();var t=e.data;if(!t.$selecter.hasClass("open")){var n=t.$selecter.offset(),i=c.outerHeight(),r=t.$itemsWrapper.outerHeight(!0),o=0<=t.index?t.$items.eq(t.index).position():{left:0,top:0};n.top+r>i&&t.$selecter.addClass("bottom"),t.$itemsWrapper.show(),t.$selecter.removeClass("closed").addClass("open"),c.on("click.selecter-"+t.guid,":not(.selecter-options)",t,s),void 0!==d.fn.scroller?t.$itemsWrapper.scroller("scroll",t.$itemsWrapper.find(".scroller-content").scrollTop()+o.top,0).scroller("reset"):t.$itemsWrapper.scrollTop(t.$itemsWrapper.scrollTop()+o.top)}}(e):t.$selecter.hasClass("open")&&h(e)}function s(e){e.preventDefault(),e.stopPropagation(),0===d(e.currentTarget).parents(".selecter").length&&h(e)}function h(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$selecter.hasClass("open")&&(t.$itemsWrapper.hide(),t.$selecter.removeClass("open bottom").addClass("closed"),c.off(".selecter-"+t.guid))}function m(e){e.preventDefault(),e.stopPropagation();var t=d(this),n=e.data;if(!n.$select.is(":disabled")){if(n.$itemsWrapper.is(":visible"))_(n.$items.index(t),n),a(n);n.multiple||h(e)}}function f(e,t){var n=d(this),i=e.data;t||i.multiple||(_(i.$options.index(i.$options.filter("[value='"+n.val().replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1")+"']")),i),a(i))}function g(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$select.is(":disabled")||t.multiple||(t.$selecter.addClass("focus").on("keydown.selecter"+t.guid,t,n),d(".selecter").not(t.$selecter).trigger("close.selecter",[t]))}function v(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$selecter.removeClass("focus").off("keydown.selecter"+t.guid+" keyup.selecter"+t.guid),d(".selecter").not(t.$selecter).trigger("close.selecter",[t])}function n(e){var t=e.data;if(13===e.keyCode)t.$selecter.hasClass("open")&&(h(e),_(t.index,t)),a(t);else if(!(9===e.keyCode||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault(),e.stopPropagation();var n=t.$items.length-1,i=t.index<0?0:t.index;if(-1<d.inArray(e.keyCode,l?[38,40,37,39]:[38,40]))(i+=38===e.keyCode||l&&37===e.keyCode?-1:1)<0&&(i=0),n<i&&(i=n);else{var r,o=String.fromCharCode(e.keyCode).toUpperCase();for(r=t.index+1;r<=n;r++)if(t.$options.eq(r).text().charAt(0).toUpperCase()===o){i=r;break}if(i<0)for(r=0;r<=n;r++)if(t.$options.eq(r).text().charAt(0).toUpperCase()===o){i=r;break}}0<=i&&_(i,t)}}function _(e,t){var n=t.$items.eq(e),i=n.hasClass("selected");if(!n.hasClass("disabled")){if(-1===e&&""!==t.label)t.$selected.html(t.label);else if(i)t.multiple&&(t.$options.eq(e).prop("selected",null),n.removeClass("selected"));else{var r=n.html();n.data("value"),t.multiple?t.$options.eq(e).prop("selected",!0):(t.$selected.html(r).removeClass("placeholder"),t.$items.filter(".selected").removeClass("selected"),t.$select[0].selectedIndex=e),n.addClass("selected")}(!i||t.multiple)&&(t.index=e)}}function a(e){var t,n;e.links?(n=(t=e).$select.val(),t.external?r.open(n):r.location.href=n):(e.callback.call(e.$selecter,e.$select.val(),e.index),e.$select.trigger("change",[!0]))}function y(e,t){return 0===t?e:e.length>t?e.substring(0,t)+"...":e}var b=0,l=-1<r.navigator.userAgent.toLowerCase().indexOf("firefox"),C=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(r.navigator.userAgent||r.navigator.vendor||r.opera),c=null,w={callback:d.noop,cover:!1,customClass:"",label:"",external:!1,links:!1,trim:0},t={defaults:function(e){return w=d.extend(w,e||{}),d(this)},disable:function(r){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");if(n)if(void 0!==r){var i=n.$items.index(n.$items.filter("[data-value="+r+"]"));n.$items.eq(i).addClass("disabled"),n.$options.eq(i).prop("disabled",!0)}else n.$selecter.hasClass("open")&&n.$selecter.find(".selecter-selected").trigger("click.selecter"),n.$selecter.addClass("disabled"),n.$select.prop("disabled",!0)})},enable:function(r){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");if(n)if(void 0!==r){var i=n.$items.index(n.$items.filter("[data-value="+r+"]"));n.$items.eq(i).removeClass("disabled"),n.$options.eq(i).prop("disabled",!1)}else n.$selecter.removeClass("disabled"),n.$select.prop("disabled",!1)})},destroy:function(){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");n&&(n.$selecter.hasClass("open")&&n.$selecter.find(".selecter-selected").trigger("click.selecter"),void 0!==d.fn.scroller&&n.$selecter.find(".selecter-options").scroller("destroy"),n.$select[0].tabIndex=n.tabIndex,n.$select.off(".selecter").removeClass("selecter-element").show(),n.$selecter.off(".selecter").remove())})},refresh:function(){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");if(n){var i=n.index;n.$allOptions=n.$select.find("option, optgroup"),n.$options=n.$allOptions.filter("option"),n.index=-1,i=n.$options.index(n.$options.filter(":selected")),u(n),_(i,n)}})}};d.fn.selecter=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?this:function(e){e=d.extend({},w,e||{}),null===c&&(c=d("body"));for(var t=d(this),n=0,i=t.length;n<i;n++)o(t.eq(n),e);return t}.apply(this,arguments)},d.selecter=function(e){"defaults"===e&&t.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery,window),"function"!=typeof jQuery.fn.stepper&&function(c){"use strict";function r(e,t){if(!e.hasClass("stepper-input")){t=c.extend({},t,e.data("stepper-options"));var n=parseFloat(e.attr("min")),i=parseFloat(e.attr("max")),r=parseFloat(e.attr("step"))||1;e.addClass("stepper-input").wrap('<div class="stepper '+t.customClass+'" />').after('<span class="stepper-arrow up">'+t.labels.up+'</span><span class="stepper-arrow down">'+t.labels.down+"</span>");var o=e.parent(".stepper"),s=c.extend({$stepper:o,$input:e,$arrow:o.find(".stepper-arrow"),min:void 0!==typeof n&&!isNaN(n)&&n,max:void 0!==typeof i&&!isNaN(i)&&i,step:void 0===typeof r||isNaN(r)?1:r,timer:null},t);s.digits=(a=s.step,-1<(l=String(a)).indexOf(".")?l.length-l.indexOf(".")-1:0),e.is(":disabled")&&o.addClass("disabled"),o.on("touchstart.stepper mousedown.stepper",".stepper-arrow",s,d).data("stepper",s)}var a,l}function d(e){e.preventDefault(),e.stopPropagation(),s(e);var t,n,i,r=e.data;if(!r.$input.is(":disabled")&&!r.$stepper.hasClass("disabled")){var o=c(e.target).hasClass("up")?r.step:-r.step;r.timer=(t=r.timer,n=125,i=function(){a(r,o)},l(t),setInterval(i,n)),a(r,o),c("body").on("touchend.stepper mouseup.stepper",r,s)}}function s(e){e.preventDefault(),e.stopPropagation(),l(e.data.timer),c("body").off(".stepper")}function a(e,t){var n=parseFloat(e.$input.val()),i=t;void 0===typeof n||isNaN(n)?i=!1!==e.min?e.min:0:!1!==e.min&&n<e.min?i=e.min:i+=n;var r,o,s,a=(i-e.min)%e.step;0!==a&&(i-=a),!1!==e.min&&i<e.min&&(i=e.min),!1!==e.max&&i>e.max&&(i-=e.step),i!==n&&(r=i,o=e.digits,s=Math.pow(10,o),i=Math.round(r*s)/s,e.$input.val(i).trigger("change"))}function l(e){e&&(clearInterval(e),e=null)}var o={customClass:"",labels:{up:"Up",down:"Down"}},t={defaults:function(e){return o=c.extend(o,e||{}),c(this)},destroy:function(){return c(this).each(function(){var e=c(this).data("stepper");e&&(e.$stepper.off(".stepper").find(".stepper-arrow").remove(),e.$input.unwrap().removeClass("stepper-input"))})},disable:function(){return c(this).each(function(){var e=c(this).data("stepper");e&&(e.$input.attr("disabled","disabled"),e.$stepper.addClass("disabled"))})},enable:function(){return c(this).each(function(){var e=c(this).data("stepper");e&&(e.$input.attr("disabled",null),e.$stepper.removeClass("disabled"))})}};c.fn.stepper=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?this:function(e){e=c.extend({},o,e||{});for(var t=c(this),n=0,i=t.length;n<i;n++)r(t.eq(n),e);return t}.apply(this,arguments)},c.stepper=function(e){"defaults"===e&&t.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(n){var e=function(){if(n&&n.fn&&n.fn.czrSelect2&&n.fn.czrSelect2.amd)var e=n.fn.czrSelect2.amd;var t,r,c;return e&&e.requirejs||(e?r=e:e={},function(p){function h(e,t){return n.call(e,t)}function s(e,t){var n,i,r,o,s,a,l,c,d,u,p,h=t&&t.split("/"),m=C.map,f=m&&m["*"]||{};if(e&&"."===e.charAt(0))if(t){for(s=(e=e.split("/")).length-1,C.nodeIdCompat&&M.test(e[s])&&(e[s]=e[s].replace(M,"")),e=h.slice(0,h.length-1).concat(e),d=0;d<e.length;d+=1)if("."===(p=e[d]))e.splice(d,1),d-=1;else if(".."===p){if(1===d&&(".."===e[2]||".."===e[0]))break;0<d&&(e.splice(d-1,2),d-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||f)&&m){for(d=(n=e.split("/")).length;0<d;d-=1){if(i=n.slice(0,d).join("/"),h)for(u=h.length;0<u;u-=1)if((r=m[h.slice(0,u).join("/")])&&(r=r[i])){o=r,a=d;break}if(o)break;!l&&f&&f[i]&&(l=f[i],c=d)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function m(t,n){return function(){var e=i.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),l.apply(p,e.concat([t,n]))}}function f(t){return function(e){y[t]=e}}function g(e){if(h(b,e)){var t=b[e];delete b[e],w[e]=!0,o.apply(p,t)}if(!h(y,e)&&!h(w,e))throw new Error("No "+e);return y[e]}function a(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}var o,l,v,_,y={},b={},C={},w={},n=Object.prototype.hasOwnProperty,i=[].slice,M=/\.js$/;v=function(e,t){var n,i,r=a(e),o=r[0];return e=r[1],o&&(n=g(o=s(o,t))),o?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return s(e,i)})):s(e,t):(o=(r=a(e=s(e,t)))[0],e=r[1],o&&(n=g(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},_={require:function(e){return m(e)},exports:function(e){var t=y[e];return void 0!==t?t:y[e]={}},module:function(e){return{id:e,uri:"",exports:y[e],config:(t=e,function(){return C&&C.config&&C.config[t]||{}})};var t}},o=function(e,t,n,i){var r,o,s,a,l,c,d=[],u=typeof n;if(i=i||e,"undefined"===u||"function"===u){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=v(t[l],i)).f))d[l]=_.require(e);else if("exports"===o)d[l]=_.exports(e),c=!0;else if("module"===o)r=d[l]=_.module(e);else if(h(y,o)||h(b,o)||h(w,o))d[l]=g(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,m(i,!0),f(o),{}),d[l]=y[o]}s=n?n.apply(y[e],d):void 0,e&&(r&&r.exports!==p&&r.exports!==y[e]?y[e]=r.exports:s===p&&c||(y[e]=s))}else e&&(y[e]=n)},t=r=l=function(e,t,n,i,r){if("string"==typeof e)return _[e]?_[e](t):g(v(e,t).f);if(!e.splice){if((C=e).deps&&l(C.deps,C.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?o(p,e,t,n):setTimeout(function(){o(p,e,t,n)},4),l},l.config=function(e){return l(e)},t._defined=y,(c=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),h(y,e)||h(b,e)||(b[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=r,e.define=c),e.define("almond",function(){}),e.define("jquery",[],function(){var e=n||$;return null==e&&console&&console.error&&console.error("CzrSelect2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before CzrSelect2 on your web page."),e}),e.define("czrSelect2/utils",["jquery"],function(o){function d(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}var e={Extend:function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(i,r){function o(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}var e=d(r),t=d(i);r.displayName=i.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=i.prototype[s]}for(var a=function(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=r.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o}},t=function(){this.listeners={}};return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=o(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},e.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},e}),e.define("czrSelect2/results",["jquery","./utils"],function(p,e){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=p('<ul class="czrSelect2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=p('<li role="treeitem" aria-live="assertive" class="czrSelect2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" czrSelect2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".czrSelect2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".czrSelect2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".czrSelect2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=p.map(e,function(e){return e.id.toString()});t.$results.find(".czrSelect2-results__option[aria-selected]").each(function(){var e=p(this),t=p.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<p.inArray(n,i)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.className="czrSelect2-results__option";var n={role:"treeitem","aria-selected":"false"};for(var i in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var r=n[i];t.setAttribute(i,r)}if(e.children){var o=p(t),s=document.createElement("strong");s.className="czrSelect2-results__group",p(s),this.template(e,s);for(var a=[],l=0;l<e.children.length;l++){var c=e.children[l],d=this.option(c);a.push(d)}var u=p("<ul></ul>",{class:"czrSelect2-results__options czrSelect2-results__options--nested"});u.append(a),o.append(s),o.append(u)}else this.template(e,t);return p.data(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top,s=r.offset().top,a=l.$results.scrollTop()+(s-o);0===i?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+o-r;0===n?l.$results.scrollTop(0):r<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("czrSelect2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),p.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".czrSelect2-results__option[aria-selected]",function(e){var t=p(this),n=t.data("data");return"true"===t.attr("aria-selected")?void(l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})):void l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".czrSelect2-results__option[aria-selected]",function(e){var t=p(this).data("data");l.getHighlightedResults().removeClass("czrSelect2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:p(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".czrSelect2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):p(t).append(r)},i}),e.define("czrSelect2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("czrSelect2/selection/base",["jquery","../utils","../keys"],function(n,e,r){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=n('<span class="czrSelect2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},i.prototype.bind=function(e,t){var n=this,i=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},i.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.czrSelect2."+e.id,function(e){var t=n(e.target).closest(".czrSelect2");n(".czrSelect2.czrSelect2-container--open").each(function(){var e=n(this);this!=t[0]&&e.data("element").czrSelect2("close")})})},i.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.czrSelect2."+e.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),e.define("czrSelect2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("czrSelect2-selection--single"),e.html('<span class="czrSelect2-selection__rendered"></span><span class="czrSelect2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".czrSelect2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(e){n.update(e.data)})},r.prototype.clear=function(){this.$selection.find(".czrSelect2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".czrSelect2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)}else this.clear()},r}),e.define("czrSelect2/selection/multiple",["jquery","./base","../utils"],function(i,e,a){function r(e,t){r.__super__.constructor.apply(this,arguments)}return a.Extend(r,e),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("czrSelect2-selection--multiple"),e.html('<ul class="czrSelect2-selection__rendered"></ul>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".czrSelect2-selection__choice__remove",function(e){if(!n.options.get("disabled")){var t=i(this).parent().data("data");n.trigger("unselect",{originalEvent:e,data:t})}})},r.prototype.clear=function(){this.$selection.find(".czrSelect2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return i('<li class="czrSelect2-selection__choice"><span class="czrSelect2-selection__choice__remove" role="presentation">&times;</span></li>')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=this.selectionContainer(),o=this.display(i,r);r.append(o),r.prop("title",i.title||i.text),r.data("data",i),t.push(r)}var s=this.$selection.find(".czrSelect2-selection__rendered");a.appendMany(s,t)}},r}),e.define("czrSelect2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("czrSelect2-selection__placeholder").removeClass("czrSelect2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".czrSelect2-selection__rendered").append(i)},t}),e.define("czrSelect2/selection/allowClear",["jquery","../keys"],function(i,r){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("CzrSelect2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".czrSelect2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".czrSelect2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),r=0;r<i.length;r++){var o={data:i[r]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||(t.which==r.DELETE||t.which==r.BACKSPACE)&&this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".czrSelect2-selection__placeholder").length||0===t.length)){var n=i('<span class="czrSelect2-selection__clear">&times;</span>');n.data("data",t),this.$selection.find(".czrSelect2-selection__rendered").prepend(n)}},e}),e.define("czrSelect2/selection/search",["jquery","../utils","../keys"],function(i,e,s){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=i('<li class="czrSelect2-search czrSelect2-search--inline"><input class="czrSelect2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".czrSelect2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".czrSelect2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".czrSelect2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===s.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".czrSelect2-selection__choice");if(0<t.length){var n=t.data("data");i.searchRemoveChoice(n),e.preventDefault()}}});var r=document.documentMode,o=r&&r<=11;this.$selection.on("input.searchcheck",".czrSelect2-search--inline",function(e){return o?void i.$selection.off("input.search input.searchcheck"):void i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".czrSelect2-search--inline",function(e){if(o&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=s.SHIFT&&t!=s.CTRL&&t!=s.ALT&&t!=s.TAB&&i.handleSearch(e)}})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".czrSelect2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".czrSelect2-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},t}),e.define("czrSelect2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,r)){t=t||{};var n=s.Event("czrSelect2:"+e,{params:t});i.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("czrSelect2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("czrSelect2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),e.define("czrSelect2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return(n+=i.generateChars(4))+(null!=t.id?"-"+t.id.toString():"-"+i.generateChars(4))},n}),e.define("czrSelect2/data/select",["./base","../utils","jquery"],function(e,t,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var n=[],i=this;this.$element.find(":selected").each(function(){var e=a(this),t=i.item(e);n.push(t)}),e(n)},n.prototype.select=function(r){var o=this;if(r.selected=!0,a(r.element).is("option"))return r.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===a.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(r){var o=this;if(this.$element.prop("multiple"))return r.selected=!1,a(r.element).is("option")?(r.element.selected=!1,void this.$element.trigger("change")):void this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===a.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("change")})},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.removeData(this,"data")})},n.prototype.query=function(i,e){var r=[],o=this;this.$element.children().each(function(){var e=a(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=a(t),i=this._normalizeItem(e);return i.element=t,a.data(t,"data",i),n},n.prototype.item=function(e){var t={};if(null!=(t=a.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),i=[],r=0;r<n.length;r++){var o=a(n[r]),s=this.item(o);i.push(s)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){a.isPlainObject(e)||(e={id:e,text:e});return null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("czrSelect2/data/array",["./select","../utils","jquery"],function(e,m,f){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return m.Extend(i,e),i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){function t(e){return function(){return f(this).val()==e.id}}for(var n=this,i=this.$element.find("option"),r=i.map(function(){return n.item(f(this)).id}).get(),o=[],s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=f.inArray(a.id,r)){var l=i.filter(t(a)),c=this.item(l),d=f.extend(!0,{},a,c),u=this.option(d);l.replaceWith(u)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);m.appendMany(p,h)}o.push(p)}}return o},i}),e.define("czrSelect2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var i=o.ajax(e);return i.then(t),i.fail(n),i}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("CzrSelect2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){e.status&&"0"===e.status||r.trigger("results:message",{message:"errorLoading"})});r._request=e}var r=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("czrSelect2/data/tags",["jquery"],function(d){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),d.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,d){var u=this;return this._removeOldTags(),null==c.term||null!=c.page?void e.call(this,c,d):void e.call(this,c,function e(t,n){for(var i=t.results,r=0;r<i.length;r++){var o=i[r],s=null!=o.children&&!e({results:o.children},!0);if(o.text===c.term||s)return!n&&(t.data=i,void d(t))}if(n)return!0;var a=u.createTag(c);if(null!=a){var l=u.option(a);l.attr("data-czrSelect2-tag",!0),u.addOptions([l]),u.insertTag(i,a)}t.results=i,d(t)})},e.prototype.createTag=function(e,t){var n=d.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){(this._lastTag,this.$element.find("option[data-czrSelect2-tag]")).each(function(){this.selected||d(this).remove()})},e}),e.define("czrSelect2/data/tokenizer",["jquery"],function(u){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".czrSelect2-search__field")},e.prototype.query=function(e,t,n){var r=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t,n=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return u(this).val()===n.id}).length){var i=r.option(n);i.attr("data-czrSelect2-tag",!0),r._removeOldTags(),r.addOptions([i])}t=n,r.trigger("select",{data:t})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.focus()),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==u.inArray(l,r)){var c=o.substr(0,s),d=a(u.extend({},t,{term:c}));null!=d?(i(d),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("czrSelect2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("czrSelect2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("czrSelect2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,i,r){var o=this;this.current(function(e){var t=null!=e?e.length:0;return 0<o.maximumSelectionLength&&t>=o.maximumSelectionLength?void o.trigger("results:message",{message:"maximumSelected",args:{maximum:o.maximumSelectionLength}}):void n.call(o,i,r)})},e}),e.define("czrSelect2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="czrSelect2-dropdown"><span class="czrSelect2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("czrSelect2/dropdown/search",["jquery","../utils"],function(r,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=r('<span class="czrSelect2-search czrSelect2-search--dropdown"><input class="czrSelect2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){r(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),t.on("focus",function(){t.isOpen()&&i.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("czrSelect2-search--hide"):i.$searchContainer.addClass("czrSelect2-search--hide"))})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("czrSelect2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("czrSelect2/dropdown/infiniteScroll",["jquery"],function(r){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",function(){var e=r.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&e){var t=i.$results.offset().top+i.$results.outerHeight(!1);i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)<=t+50&&i.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=r.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=r('<li class="czrSelect2-results__option czrSelect2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("czrSelect2/dropdown/attachBody",["jquery","../utils"],function(m,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||m(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this,r=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),r||(r=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("czrSelect2"),t.addClass("czrSelect2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=m("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.czrSelect2."+t.id,r="resize.czrSelect2."+t.id,o="orientationchange.czrSelect2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){m(this).data("czrSelect2-scroll-position",{x:m(this).scrollLeft(),y:m(this).scrollTop()})}),s.on(i,function(e){var t=m(this).data("czrSelect2-scroll-position");m(this).scrollTop(t.y)}),m(window).on(i+" "+r+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.czrSelect2."+t.id,i="resize.czrSelect2."+t.id,r="orientationchange.czrSelect2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),m(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=m(window),t=this.$dropdown.hasClass("czrSelect2-dropdown--above"),n=this.$dropdown.hasClass("czrSelect2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<r.top-s,d=l>r.bottom+s,u={left:r.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();u.top-=h.top,u.left-=h.left,t||n||(i="below"),d||!c||t?!c&&d&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(u.top=o.top-h.top-s),null!=i&&(this.$dropdown.removeClass("czrSelect2-dropdown--below czrSelect2-dropdown--above").addClass("czrSelect2-dropdown--"+i),this.$container.removeClass("czrSelect2-container--below czrSelect2-container--above").addClass("czrSelect2-container--"+i)),this.$dropdownContainer.css(u)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("czrSelect2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("czrSelect2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalCzrSelect2Event){var n=t.originalCzrSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=i.data("data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.define("czrSelect2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalCzrSelect2Event:t})},e}),e.define("czrSelect2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("czrSelect2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(m,f,g,v,_,y,b,C,w,M,z,t,I,x,S,$,E,A,R,O,k,P,D,j,T,Z,L,H,e){function n(){this.reset()}return n.prototype.apply=function(t){if(null==(t=m.extend(!0,{},this.defaults,t)).dataAdapter){if(null!=t.ajax?t.dataAdapter=S:null!=t.data?t.dataAdapter=x:t.dataAdapter=I,0<t.minimumInputLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,A)),0<t.maximumInputLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,R)),0<t.maximumSelectionLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,O)),t.tags&&(t.dataAdapter=M.Decorate(t.dataAdapter,$)),(null!=t.tokenSeparators||null!=t.tokenizer)&&(t.dataAdapter=M.Decorate(t.dataAdapter,E)),null!=t.query){var e=f(t.amdBase+"compat/query");t.dataAdapter=M.Decorate(t.dataAdapter,e)}if(null!=t.initSelection){var n=f(t.amdBase+"compat/initSelection");t.dataAdapter=M.Decorate(t.dataAdapter,n)}}if(null==t.resultsAdapter&&(t.resultsAdapter=g,null!=t.ajax&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,j)),null!=t.placeholder&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,D)),t.selectOnClose&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,L))),null==t.dropdownAdapter){if(t.multiple)t.dropdownAdapter=k;else{var i=M.Decorate(k,P);t.dropdownAdapter=i}if(0!==t.minimumResultsForSearch&&(t.dropdownAdapter=M.Decorate(t.dropdownAdapter,Z)),t.closeOnSelect&&(t.dropdownAdapter=M.Decorate(t.dropdownAdapter,H)),null!=t.dropdownCssClass||null!=t.dropdownCss||null!=t.adaptDropdownCssClass){var r=f(t.amdBase+"compat/dropdownCss");t.dropdownAdapter=M.Decorate(t.dropdownAdapter,r)}t.dropdownAdapter=M.Decorate(t.dropdownAdapter,T)}if(null==t.selectionAdapter){if(t.multiple?t.selectionAdapter=_:t.selectionAdapter=v,null!=t.placeholder&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,y)),t.allowClear&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,b)),t.multiple&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,C)),null!=t.containerCssClass||null!=t.containerCss||null!=t.adaptContainerCssClass){var o=f(t.amdBase+"compat/containerCss");t.selectionAdapter=M.Decorate(t.selectionAdapter,o)}t.selectionAdapter=M.Decorate(t.selectionAdapter,w)}if("string"==typeof t.language)if(0<t.language.indexOf("-")){var s=t.language.split("-")[0];t.language=[t.language,s]}else t.language=[t.language];if(m.isArray(t.language)){var a=new z;t.language.push("en");for(var l=t.language,c=0;c<l.length;c++){var d=l[c],u={};try{u=z.loadPath(d)}catch(e){try{d=this.defaults.amdLanguageBase+d,u=z.loadPath(d)}catch(e){t.debug&&window.console&&console.warn&&console.warn('CzrSelect2: The language file for "'+d+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(u)}t.translations=a}else{var p=z.loadPath(this.defaults.amdLanguageBase+"en"),h=new z(t.language);h.extend(p),t.translations=h}return t},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:M.escapeMarkup,language:e,matcher:function e(t,n){if(""===m.trim(t.term))return n;if(n.children&&0<n.children.length){for(var i=m.extend(!0,{},n),r=n.children.length-1;0<=r;r--)null==e(t,n.children[r])&&i.children.splice(r,1);return 0<i.children.length?i:e(t,i)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.set=function(e,t){var n={};n[m.camelCase(e)]=t;var i=M._convertData(n);m.extend(this.defaults,i)},new n}),e.define("czrSelect2/options",["require","jquery","./defaults","./utils"],function(i,o,r,s){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=r.apply(this.options),t&&t.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=s.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["czrSelect2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("czrSelect2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('CzrSelect2: The `data-czrSelect2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of CzrSelect2.'),e.data("data",e.data("czrSelect2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("CzrSelect2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of CzrSelect2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var n;n=o.fn.jquery&&"1."==o.fn.jquery.substr(0,2)&&e[0].dataset?o.extend(!0,{},e[0].dataset,e.data()):e.data();var i=o.extend(!0,{},n);for(var r in i=s._convertData(i))-1<o.inArray(r,t)||(o.isPlainObject(this.options[r])?o.extend(this.options[r],i[r]):this.options[r]=i[r]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("czrSelect2/core",["jquery","./options","./utils","./keys"],function(r,c,n,i){var d=function(e,t){null!=e.data("czrSelect2")&&e.data("czrSelect2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("czrSelect2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("czrSelect2",this)};return n.Extend(d,n.Observable),d.prototype._generateId=function(e){return"czrSelect2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null}return t},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.czrSelect2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.czrSelect2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){r.each(e,t._syncA),r.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===r.inArray(e,i)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("czrSelect2-container--open")}),this.on("close",function(){n.$container.removeClass("czrSelect2-container--open")}),this.on("enable",function(){n.$container.removeClass("czrSelect2-container--disabled")}),this.on("disable",function(){n.$container.addClass("czrSelect2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("czrSelect2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var r=0;r<t.addedNodes.length;r++){t.addedNodes[r].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var r=i[e],o={prevented:!1,name:e,args:t};if(n.call(this,r,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.trigger("query",{})},d.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},d.prototype.isOpen=function(){return this.$container.hasClass("czrSelect2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("czrSelect2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("czrSelect2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('CzrSelect2: The `czrSelect2("enable")` method has been deprecated and will be removed in later CzrSelect2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('CzrSelect2: Data can no longer be set using `czrSelect2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('CzrSelect2: The `czrSelect2("val")` method has been deprecated and will be removed in later CzrSelect2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];r.isArray(t)&&(t=r.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".czrSelect2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("czrSelect2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("czrSelect2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=r('<span class="czrSelect2 czrSelect2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("czrSelect2-container--"+this.options.get("theme")),e.data("element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.czrSelect2",["jquery","jquery-mousewheel","./czrSelect2/core","./czrSelect2/defaults"],function(r,e,o,t){if(null==r.fn.czrSelect2){var s=["open","close","destroy"];r.fn.czrSelect2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=r.extend(!0,{},t);new o(r(this),e)}),this;if("string"==typeof t){var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=r(this).data("czrSelect2");null==e&&window.console&&console.error&&console.error("The czrSelect2('"+t+"') method was called on an element that is not using CzrSelect2."),n=e[t].apply(e,i)}),-1<r.inArray(t,s)?this:n}throw new Error("Invalid arguments for CzrSelect2: "+t)}}return null==r.fn.czrSelect2.defaults&&(r.fn.czrSelect2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.czrSelect2");return n.fn.czrSelect2.amd=e,t}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(o){"use strict";function n(e,t){function n(e){void 0!==e.open&&(e.open=!e.open)}var i=function(e){for(var t=[],n=e.parentNode;(i=n)&&(0===i.offsetWidth||0===i.offsetHeight||!1===i.open);)t.push(n),n=n.parentNode;var i;return t}(e),r=i.length,o=[],s=e[t];if(r){for(var a=0;a<r;a++)o[a]=i[a].style.cssText,i[a].style.setProperty?i[a].style.setProperty("display","block","important"):i[a].style.cssText+=";display: block !important",i[a].style.height="0",i[a].style.overflow="hidden",i[a].style.visibility="hidden",n(i[a]);s=e[t];for(var l=0;l<r;l++)i[l].style.cssText=o[l],n(i[l])}return s}function i(e,t){var n=parseFloat(e);return Number.isNaN(n)?t:n}function r(e){return e.charAt(0).toUpperCase()+e.substr(1)}function s(e,t){if(this.$window=o(window),this.$document=o(document),this.$element=o(e),this.options=o.extend({},d,t),this.polyfill=this.options.polyfill,this.orientation=this.$element[0].getAttribute("data-orientation")||this.options.orientation,this.onInit=this.options.onInit,this.onSlide=this.options.onSlide,this.onSlideEnd=this.options.onSlideEnd,this.DIMENSION=u.orientation[this.orientation].dimension,this.DIRECTION=u.orientation[this.orientation].direction,this.DIRECTION_STYLE=u.orientation[this.orientation].directionStyle,this.COORDINATE=u.orientation[this.orientation].coordinate,this.polyfill&&c)return!1;this.identifier="js-"+a+"-"+l++,this.startEvent=this.options.startEvent.join("."+this.identifier+" ")+"."+this.identifier,this.moveEvent=this.options.moveEvent.join("."+this.identifier+" ")+"."+this.identifier,this.endEvent=this.options.endEvent.join("."+this.identifier+" ")+"."+this.identifier,this.toFixed=(this.step+"").replace(".","").length-1,this.$fill=o('<div class="'+this.options.fillClass+'" />'),this.$handle=o('<div class="'+this.options.handleClass+'" />'),this.$range=o('<div class="'+this.options.rangeClass+" "+this.options[this.orientation+"Class"]+'" id="'+this.identifier+'" />').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=o.proxy(this.handleDown,this),this.handleMove=o.proxy(this.handleMove,this),this.handleEnd=o.proxy(this.handleEnd,this),this.init();var n,i,r=this;this.$window.on("resize."+this.identifier,(n=function(){!function(e,t){var n=Array.prototype.slice.call(arguments,2);setTimeout(function(){return e.apply(null,n)},t)}(function(){r.update(!1,!1)},300)},i=(i=20)||100,function(){if(!n.debouncing){var e=Array.prototype.slice.apply(arguments);n.lastReturnVal=n.apply(window,e),n.debouncing=!0}return clearTimeout(n.debounceTimeout),n.debounceTimeout=setTimeout(function(){n.debouncing=!1},i),n.lastReturnVal})),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,function(e,t){if(!t||t.origin!==r.identifier){var n=e.target.value,i=r.getPositionFromValue(n);r.setPosition(i)}})}Number.isNaN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};var e,a="rangeslider",l=0,c=((e=document.createElement("input")).setAttribute("type","range"),"text"!==e.type),d={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",activeClass:"rangeslider--active",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},u={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};return s.prototype.init=function(){this.update(!0,!1),this.onInit&&"function"==typeof this.onInit&&this.onInit()},s.prototype.update=function(e,t){(e=e||!1)&&(this.min=i(this.$element[0].getAttribute("min"),0),this.max=i(this.$element[0].getAttribute("max"),100),this.value=i(this.$element[0].value,Math.round(this.min+(this.max-this.min)/2)),this.step=i(this.$element[0].getAttribute("step"),1)),this.handleDimension=n(this.$handle[0],"offset"+r(this.DIMENSION)),this.rangeDimension=n(this.$range[0],"offset"+r(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,t)},s.prototype.handleDown=function(e){if(e.preventDefault(),!(e.button&&0!==e.button||(this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),this.$range.addClass(this.options.activeClass),-1<(" "+e.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)))){var t=this.getRelativePosition(e),n=this.$range[0].getBoundingClientRect()[this.DIRECTION],i=this.getPositionFromNode(this.$handle[0])-n,r="vertical"===this.orientation?this.maxHandlePos-(t-this.grabPos):t-this.grabPos;this.setPosition(r),i<=t&&t<i+this.handleDimension&&(this.grabPos=t-i)}},s.prototype.handleMove=function(e){e.preventDefault();var t=this.getRelativePosition(e),n="vertical"===this.orientation?this.maxHandlePos-(t-this.grabPos):t-this.grabPos;this.setPosition(n)},s.prototype.handleEnd=function(e){e.preventDefault(),this.$document.off(this.moveEvent,this.handleMove),this.$document.off(this.endEvent,this.handleEnd),this.$range.removeClass(this.options.activeClass),this.$element.trigger("change",{origin:this.identifier}),this.onSlideEnd&&"function"==typeof this.onSlideEnd&&this.onSlideEnd(this.position,this.value)},s.prototype.cap=function(e,t,n){return e<t?t:n<e?n:e},s.prototype.setPosition=function(e,t){var n,i;void 0===t&&(t=!0),n=this.getValueFromPosition(this.cap(e,0,this.maxHandlePos)),i=this.getPositionFromValue(n),this.$fill[0].style[this.DIMENSION]=i+this.grabPos+"px",this.$handle[0].style[this.DIRECTION_STYLE]=i+"px",this.setValue(n),this.position=i,this.value=n,t&&this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(i,n)},s.prototype.getPositionFromNode=function(e){for(var t=0;null!==e;)t+=e.offsetLeft,e=e.offsetParent;return t},s.prototype.getRelativePosition=function(e){var t=r(this.COORDINATE),n=this.$range[0].getBoundingClientRect()[this.DIRECTION],i=0;return void 0!==e.originalEvent["client"+t]?i=e.originalEvent["client"+t]:e.originalEvent.touches&&e.originalEvent.touches[0]&&void 0!==e.originalEvent.touches[0]["client"+t]?i=e.originalEvent.touches[0]["client"+t]:e.currentPoint&&void 0!==e.currentPoint[this.COORDINATE]&&(i=e.currentPoint[this.COORDINATE]),i-n},s.prototype.getPositionFromValue=function(e){var t;return t=(e-this.min)/(this.max-this.min),Number.isNaN(t)?0:t*this.maxHandlePos},s.prototype.getValueFromPosition=function(e){var t,n;return t=e/(this.maxHandlePos||1),n=this.step*Math.round(t*(this.max-this.min)/this.step)+this.min,Number(n.toFixed(this.toFixed))},s.prototype.setValue=function(e){e===this.value&&""!==this.$element[0].value||this.$element.val(e).trigger("input",{origin:this.identifier})},s.prototype.destroy=function(){this.$document.off("."+this.identifier),this.$window.off("."+this.identifier),this.$element.off("."+this.identifier).removeAttr("style").removeData("plugin_"+a),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0])},o.fn[a]=function(n){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o(this),t=e.data("plugin_"+a);t||e.data("plugin_"+a,t=new s(this,n)),"string"==typeof n&&t[n].apply(t,i)})},"rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);"}),function(l){if(!l.wp.wpColorPicker.prototype._hasAlpha){var c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==",t='<div class="wp-picker-holder" />',i='<div class="wp-picker-container" />',r='<input type="button" class="button button-small" />',o=void 0!==wpColorPickerL10n.current;if(o)var s='<a tabindex="0" class="wp-color-result" />';else{s='<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>';var a="<label></label>",d='<span class="screen-reader-text"></span>'}Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);return this.error?"":(e.length<6&&(e=("00000"+e).substr(-6)),"#"+e)},l.widget("wp.wpColorPicker",l.wp.wpColorPicker,{_hasAlpha:!0,_create:function(){if(l.support.iris){var n=this,e=n.element;if(l.extend(n.options,e.data()),"hue"===n.options.type)return n._createHueOnly();n.close=l.proxy(n.close,n),n.initialValue=e.val(),e.addClass("wp-color-picker"),o?(e.hide().wrap(i),n.wrap=e.parent(),n.toggler=l(s).insertBefore(e).css({backgroundColor:n.initialValue}).attr("title",wpColorPickerL10n.pick).attr("data-current",wpColorPickerL10n.current),n.pickerContainer=l(t).insertAfter(e),n.button=l(r).addClass("hidden")):(e.parent("label").length||(e.wrap(a),n.wrappingLabelText=l(d).insertBefore(e).text(wpColorPickerL10n.defaultLabel)),n.wrappingLabel=e.parent(),n.wrappingLabel.wrap(i),n.wrap=n.wrappingLabel.parent(),n.toggler=l(s).insertBefore(n.wrappingLabel).css({backgroundColor:n.initialValue}),n.toggler.find(".wp-color-result-text").text(wpColorPickerL10n.pick),n.pickerContainer=l(t).insertAfter(n.wrappingLabel),n.button=l(r)),n.options.defaultColor?(n.button.addClass("wp-picker-default").val(wpColorPickerL10n.defaultString),o||n.button.attr("aria-label",wpColorPickerL10n.defaultAriaLabel)):(n.button.addClass("wp-picker-clear").val(wpColorPickerL10n.clear),o||n.button.attr("aria-label",wpColorPickerL10n.clearAriaLabel)),o?e.wrap('<span class="wp-picker-input-wrap" />').after(n.button):(n.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(n.button),n.inputWrapper=e.closest(".wp-picker-input-wrap")),e.iris({target:n.pickerContainer,hide:n.options.hide,width:n.options.width,mode:n.options.mode,palettes:n.options.palettes,change:function(e,t){n.options.alpha?(n.toggler.css({"background-image":"url("+c+")"}),o?n.toggler.html('<span class="color-alpha" />'):(n.toggler.css({position:"relative"}),0==n.toggler.find("span.color-alpha").length&&n.toggler.append('<span class="color-alpha" />')),n.toggler.find("span.color-alpha").css({width:"30px",height:"24px",position:"absolute",top:0,left:0,"border-top-left-radius":"2px","border-bottom-left-radius":"2px",background:t.color.toString()})):n.toggler.css({backgroundColor:t.color.toString()}),l.isFunction(n.options.change)&&n.options.change.call(this,e,t)}}),e.val(n.initialValue),n._addListeners(),n.options.hide||n.toggler.click(),e.on("czr-colorpicker-close",function(){n.toggler.hasClass("wp-picker-open")&&n.close()})}},_addListeners:function(){var t=this;t.wrap.on("click.wpcolorpicker",function(e){e.stopPropagation()}),t.toggler.click(function(){t.toggler.hasClass("wp-picker-open")?t.close():t.open()}),t.element.on("change",function(e){(""===l(this).val()||t.element.hasClass("iris-error"))&&(t.options.alpha?(o&&t.toggler.removeAttr("style"),t.toggler.find("span.color-alpha").css("backgroundColor","")):t.toggler.css("backgroundColor",""),l.isFunction(t.options.clear)&&t.options.clear.call(this,e))}),t.button.on("click",function(e){l(this).hasClass("wp-picker-clear")?(t.element.val(""),t.options.alpha?(o&&t.toggler.removeAttr("style"),t.toggler.find("span.color-alpha").css("backgroundColor","")):t.toggler.css("backgroundColor",""),l.isFunction(t.options.clear)&&t.options.clear.call(this,e)):l(this).hasClass("wp-picker-default")&&t.element.val(t.options.defaultColor).change()})},open:function(){l("body").find(".wp-color-picker").not(this.element).each(function(){l(this).trigger("czr-colorpicker-close")}),this.element.iris("toggle"),this.inputWrapper.removeClass("hidden"),this.wrap.addClass("wp-picker-active"),this.toggler.addClass("wp-picker-open").attr("aria-expanded","true")},close:function(){try{this.element.iris("toggle")}catch(e){console.log("color-picker => error on ::close()",e)}this.inputWrapper.addClass("hidden"),this.wrap.removeClass("wp-picker-active"),this.toggler.removeClass("wp-picker-open").attr("aria-expanded","false")}}),l.widget("a8c.iris",l.a8c.iris,{_create:function(){if(this._super(),this.options.alpha=this.element.data("alpha")||!1,this.element.is(":input")||(this.options.alpha=!1),void 0!==this.options.alpha&&this.options.alpha){var n=this,e=n.element,t=l('<div class="iris-strip iris-slider iris-alpha-slider"><div class="iris-slider-offset iris-slider-offset-alpha"></div></div>').appendTo(n.picker.find(".iris-picker-inner")),i=t.find(".iris-slider-offset-alpha"),r={aContainer:t,aSlider:i};void 0!==e.data("custom-width")?n.options.customWidth=parseInt(e.data("custom-width"))||0:n.options.customWidth=100,n.options.defaultWidth=e.width(),(n._color._alpha<1||-1!=n._color.toString().indexOf("rgb"))&&e.width(parseInt(n.options.defaultWidth+n.options.customWidth)),l.each(r,function(e,t){n.controls[e]=t}),n.controls.square.css({"margin-right":"0"});var o=n.picker.width()-n.controls.square.width()-20,s=o/6,a=o/2-s;l.each(["aContainer","strip"],function(e,t){n.controls[t].width(a).css({"margin-left":s+"px"})}),n._initControls(),n._change()}},_initControls:function(){if(this._super(),this.options.alpha){var n=this;n.controls.aSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*n._color._alpha),slide:function(e,t){n._color._alpha=parseFloat(t.value/100),n._change.apply(n,arguments)}})}},_change:function(){this._super();var e=this,t=e.element;if(this.options.alpha){var n=e.controls,i=parseInt(100*e._color._alpha),r=e._color.toRgb(),o=["rgb("+r.r+","+r.g+","+r.b+") 0%","rgba("+r.r+","+r.g+","+r.b+", 0) 100%"],s=e.options.defaultWidth,a=e.options.customWidth,l=e.picker.closest(".wp-picker-container").find(".wp-color-result");n.aContainer.css({background:"linear-gradient(to bottom, "+o.join(", ")+"), url("+c+")"}),l.hasClass("wp-picker-open")&&(n.aSlider.slider("value",i),e._color._alpha<1?(n.strip.attr("style",n.strip.attr("style").replace(/rgba\(([0-9]+,)(\s+)?([0-9]+,)(\s+)?([0-9]+)(,(\s+)?[0-9\.]+)\)/g,"rgb($1$3$5)")),t.width(parseInt(s+a))):t.width(s))}(t.data("reset-alpha")||!1)&&e.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){e._color._alpha=1,e.active="external",e._change()})},_addInputListeners:function(i){var r=this,e=function(e){var t=new Color(i.val()),n=i.val();i.removeClass("iris-error"),t.error?""!==n&&i.addClass("iris-error"):t.toString()!==r._color.toString()&&("keyup"===e.type&&n.match(/^[0-9a-fA-F]{3}$/)||r._setOption("color",t.toString()))};i.on("change",e).on("keyup",r._debounce(e,100)),r.options.hide&&i.on("focus",function(){r.show()})}})}}(jQuery),function(t,e,n){t.bind("ready",function(){t.previewedDevice&&t.previewedDevice.bind(function(e){t.previewer.send("previewed-device",e)})})}(wp.customize,jQuery,_),function(e,t,i){var r=function(e){e=i.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},e);var t,n=Array.from(e.consoleArguments);return n=i.isEmpty(i.filter(n,function(e){return!i.isString(e)}))?n.join(" "):JSON.stringify(n.join(" ")),["%c "+(t=n,i.isString(t)?300<t.length?t.substr(0,299)+"...":t:""),["background:"+e.bgCol,"color:"+e.textCol,"display: block;"].join(";")]},n=function(e,t,n){i.isUndefined(console)&&"function"!=typeof window.console.log||(serverControlParams.isDevMode?i.isUndefined(t)?console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:["<"+e+">"]})):(console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:["<"+e+">"]})),console.log(t),console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:["</"+e+">"]}))):console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:[e]})))};e.consoleLog=function(){serverControlParams.isDevMode&&(i.isUndefined(console)&&"function"!=typeof window.console.log||(console.log.apply(console,r({consoleArguments:arguments})),console.log("Unstyled console message : ",arguments)))},e.errorLog=function(){i.isUndefined(console)&&"function"!=typeof window.console.log||console.log.apply(console,r({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:arguments}))},e.errare=function(e,t){n(e,t,"#ffd5a0")},e.infoLog=function(e,t){n(e,t,"#5ed1f5")},e.czr_isChangeSetOn=function(){return serverControlParams.isChangeSetOn&&!0}}(wp.customize,jQuery,_),function(e,n,i){e.bind("ready",function(){var t=function(){i.isUndefined(window.themeServerControlParams)||i.isUndefined(themeServerControlParams.isThemeSwitchOn)||themeServerControlParams.isThemeSwitchOn||(e.panel("themes").active.callbacks=n.Callbacks(),e.panel("themes").active(themeServerControlParams.isThemeSwitchOn))};e.panel.has("themes")?t():e.panel.when("themes",function(e){t()})})}(wp.customize,jQuery,_),function(r,e,o){r.czr_activeSectionId=r.czr_activeSectionId||new r.Value(""),r.czr_activePanelId=r.czr_activePanelId||new r.Value(""),r.bind("ready",function(){if("function"!=typeof r.Section)throw new Error("Your current version of WordPress does not support the customizer sections needed for this theme. Please upgrade WordPress to the latest version.");var n=function(e,t){r.czr_activeSectionId(e?t:"")};r.section.each(function(t){"publish_settings"!=t.id&&t.expanded.bind(function(e){n(e,t.id)})}),r.section.bind("add",function(t){"publish_settings"!=t.id&&t.expanded.bind(function(e){n(e,t.id)})});var i=function(e,t){r.czr_activePanelId(e?t:""),o.isEmpty(r.czr_activePanelId())&&r.czr_activeSectionId("")};r.panel.each(function(t){t.expanded.bind(function(e){i(e,t.id)})}),r.panel.bind("add",function(t){t.expanded.bind(function(e){i(e,t.id)})})})}(wp.customize,jQuery,_),function(a,e,l){a.bind("ready",function(){serverControlParams.paramsForDynamicRegistration;l.isObject(serverControlParams.paramsForDynamicRegistration)||a.errorLog("serverControlParams.paramsForDynamicRegistration should be an array"),l.each(serverControlParams.paramsForDynamicRegistration,function(e,t){if(e.module_registration_params&&!0===e.module_registration_params.dynamic_registration)if(serverControlParams.isDevMode)n(e);else try{n(e)}catch(e){a.errorLog(e)}})});var n=function(e){if(e=l.extend({setting_id:"",module_type:"",option_value:[],setting:{},section:{id:"",title:""},control:{}},e),l.isEmpty(e.setting_id)||l.isEmpty(e.module_type))throw a.errare("registerDynamicModuleSettingControl => args",e),new Error("registerDynamicModuleSettingControl => missing params when registrating a setting");if(!l.isArray(e.option_value)&&!l.isObject(e.option_value))throw new Error("registerDynamicModuleSettingControl => the module values must be an array or an object");var t=e.setting_id,n=e.setting;a.CZR_Helpers.register({what:"setting",id:t,dirty:!l.isEmpty(e.option_value),value:e.option_value,transport:n.transport||"refresh",type:n.type||"option",track:!1});var i=e.section;if(!l.isEmpty(i)){if(!l.has(i,"id"))throw new Error("registerDynamicModuleSettingControl => missing section id for the section of setting : "+t);a.CZR_Helpers.register({what:"section",id:i.id,title:i.title||i.id,panel:l.isEmpty(i.panel)?"":i.panel,priority:i.priority||10,track:!1})}var r,o=t,s=e.control;if(r=l.isEmpty(e.section)?s.section:e.section.id,l.isEmpty(r))throw a.errare("registerDynamicModuleSettingControl => missing section id for the control",e),new Error("registerDynamicModuleSettingControl => missing section id for the section of setting : "+t);return a.CZR_Helpers.register({what:"control",id:o,label:s.label||o,type:"czr_module",module_type:e.module_type,section:r,priority:s.priority||10,settings:{default:t},track:!1}),a.section.has(r)&&a.section(r).expanded()&&a.control(o).trigger("set-module-ready"),t}}(wp.customize,jQuery,_),function(s,a,l){s.Value.prototype.set=function(t,n){var i=this._value,e=a.Deferred(),r=this,o=[];return t=this._setter.apply(this,arguments),t=this.validate(t),args=l.extend({silent:!1},l.isObject(n)?n:{}),null===t||l.isEqual(i,t)?e.resolveWith(r,[t,i,n]).promise():(this._value=t,(this._dirty=!0)===args.silent?e.resolveWith(r,[t,i,n]).promise():this._deferreds?(l.each(r._deferreds,function(e){o.push(e.apply(null,[t,i,n]))}),a.when.apply(null,o).fail(function(){s.errorLog("A deferred callback failed in api.Value::set()")}).then(function(){r.callbacks.fireWith(r,[t,i,n]),e.resolveWith(r,[t,i,n])}),e.promise(r)):(this.callbacks.fireWith(this,[t,i,n]),e.resolveWith(r,[t,i,n]).promise(r)))},s.Value.prototype.bind=function(){var t=this,n=!1,i=[];return a.each(arguments,function(e,t){n||(n=l.isObject(t)&&t.deferred),l.isFunction(t)&&i.push(t)}),n?(t._deferreds=t._deferreds||[],l.each(i,function(e){l.contains(e,t._deferreds)||t._deferreds.push(e)})):t.callbacks.add.apply(t.callbacks,arguments),this},s.Setting.prototype.silent_set=function(e,t){var n=this._value,i=s.state("saved")();return e=this._setter.apply(this,arguments),null===(e=this.validate(e))||l.isEqual(n,e)||(this._value=e,this._dirty=l.isUndefined(t)||!l.isBoolean(t)?this._dirty:t,this.callbacks.fireWith(this,[e,n,{silent:!0}]),s.state("saved")(i)),this}}(wp.customize,jQuery,_),function(s,a,l){s.Setting.prototype.preview=function(e,t,n){var i,r=this,o=a.Deferred();return i=r.transport,l.isUndefined(t)||l.isEmpty(t)||l.isNull(t)||!l.isObject(n)||!0!==n.not_preview_sent?l.has(n,"silent")&&!1!==n.silent?o.resolve(arguments).promise():("postMessage"!==i||s.state("previewerAlive").get()||(i="refresh"),"postMessage"===i?(r.previewer.send("pre_setting",{set_id:r.id,data:n,value:e}),r.previewer.send("setting",[r.id,r()]),o.resolve(arguments)):"refresh"===i&&(r.previewer.refresh(),o.resolve(arguments)),o.promise()):o.resolve(arguments).promise()}}(wp.customize,jQuery,_),function(e,r,o){if("function"==typeof e.Section){var n=e.Section.prototype.initialize;e.Section.prototype.initialize=function(e,t){n.apply(this,[e,t]);var i=this;this.expanded.callbacks.add(function(e){if(e){var t=i.container.closest(".wp-full-overlay-sidebar-content"),n=i.container.find(".accordion-section-content");_resizeContentHeight=function(){n.css("height",t.innerHeight())},_resizeContentHeight(),r(window).on("resize.customizer-section",o.debounce(_resizeContentHeight,110))}})}}}(wp.customize,jQuery,_),function(d,u,p){d.CZR_Helpers=d.CZR_Helpers||{},d.CZR_Helpers=u.extend(d.CZR_Helpers,{setupInputCollectionFromDOM:function(){var o=this;if(!p.isFunction(o))throw new Error("setupInputCollectionFromDOM => inputParentInst is not valid.");var s=o.module,a=p.has(o(),"is_mod_opt");if(p.isEmpty(o.inputCollection())){o.czr_Input=o.czr_Input||new d.Values,o.inputConstructor=a?s.inputModOptConstructor:s.inputConstructor;var e=a?o.defaultModOptModel:o.defaultItemModel;if(p.isEmpty(e)||p.isUndefined(e))throw new Error("setupInputCollectionFromDOM => No default model found in item or mod opt "+o.id+".");var l=u.extend(!0,{},o());l=p.isObject(l)?u.extend(e,l):e;var c={};return u("."+s.control.css_attr.sub_set_wrapper,o.container).length<1&&d.errare("setupInputCollectionFromDOM => no input elements found in the DOM"),u("."+s.control.css_attr.sub_set_wrapper,o.container).each(function(e){var t=u(this).find("[data-czrtype]").attr("data-czrtype"),n=p.has(l,t)?l[t]:"";if(p.isUndefined(t)||p.isEmpty(t))d.errare("setupInputCollectionFromDOM => missing data-czrtype id for input type "+u(this).data("input-type")+" in module "+s.id+". Check that the server input template is properly declared.");else{if(!p.has(l,t))throw new Error("setupInputCollectionFromDOM => The item or mod opt property : "+t+" has been found in the DOM but not in the item or mod opt model : "+o.id+". The input can not be instantiated.");var i=u(this).data("input-type"),r={id:t,type:i,transport:u(this).data("transport")||"inherit",input_value:n,input_options:p.has(s.inputOptions,i)?s.inputOptions[i]:{},container:u(this),input_parent:o,is_mod_opt:a,module:s};d.trigger("input-args-before-instantiation",r),o.czr_Input.add(t,new o.inputConstructor(t,r)),o.czr_Input(t).ready(),c[t]=n}}),o.inputCollection(c),o}}})}(wp.customize,jQuery,_),function(i,e,r){i.CZR_Helpers=i.CZR_Helpers||{},i.CZR_Helpers=e.extend(i.CZR_Helpers,{getModuleTmpl:function(t){var n=e.Deferred();if(t=r.extend({tmpl:"",module_type:"",module_id:"",cache:!0,nonce:i.settings.nonce.save},t),(r.isEmpty(t.tmpl)||r.isEmpty(t.module_type))&&n.reject("api.CZR_Helpers.getModuleTmpl => missing tmpl or module_type param"),i.CZR_Helpers.czr_cachedTmpl=i.CZR_Helpers.czr_cachedTmpl||{},i.CZR_Helpers.czr_cachedTmpl[t.module_type]=i.CZR_Helpers.czr_cachedTmpl[t.module_type]||{},!0===t.cache&&!r.isEmpty(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl])&&r.isString(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]))n.resolve(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]);else{if(r.isObject(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl])&&"pending"==i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl].state())return i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl];i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]=wp.ajax.post("ac_get_template",t).done(function(e){n.resolve(e),i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]=e}).fail(function(e){i.errare("api.CZR_Helpers.getModuleTmpl => Problem when fetching the "+t.tmpl+" tmpl from server for module : "+t.module_id+" "+t.module_type,e),n.reject(e),r.isObject(e)&&("invalid_nonce"!==e.code&&"Bad Request"!==e.statusText||window.sektionsLocalizedData&&sektionsLocalizedData.i18n&&i.previewer.trigger("sek-notify",{type:"error",duration:3e4,message:sektionsLocalizedData.i18n["Something went wrong, please refresh this page."]}))})}return n.promise()}})}(wp.customize,jQuery,_),function(p,h,m){p.CZR_Helpers=p.CZR_Helpers||{},p.CZR_Helpers=h.extend(p.CZR_Helpers,{register:function(e){if(m.has(e,"id")){var t,n={};switch(e.what){case"setting":if(p.has(e.id))break;t=h.extend(!0,{},p.Setting.prototype.defaults);var i=m.extend(t,{dirty:!m.isUndefined(e.dirty)&&e.dirty,value:m.isUndefined(e.value)?null:e.value,transport:e.transport||"refresh",type:e.type||"option"}),r=p.settingConstructor[i.type]||p.Setting;m.isObject(e.options)&&(i=m.extend(i,e.options));try{p.add(new r(e.id,i.value,i))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a setting to the api",e)}break;case"panel":if(!m.has(e,"id"))throw new Error("registerPanel => missing panel id ");if(p.panel.has(e.id))break;t=h.extend(!0,{},p.Panel.prototype.defaults);var o=m.extend(t,{id:e.id,title:e.title||e.id,priority:m.has(e,"priority")?e.priority:0}),s=m.isObject(e.constructWith)?e.constructWith:p.Panel;m.isObject(e.options)&&(o=m.extend(o,e.options)),o=m.extend({params:o},o);try{n=p.panel.add(new s(e.id,o))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a panel to the api",e)}break;case"section":if(!m.has(e,"id"))throw new Error("registerSection => missing section id ");if(p.section.has(e.id))break;t=h.extend(!0,{},p.Section.prototype.defaults);var a=m.extend(t,{content:"",id:e.id,title:e.title,panel:e.panel,priority:e.priority,description_hidden:!1,customizeAction:serverControlParams.i18n.Customizing}),l=p.Section;m.isUndefined(e.constructWith)?!m.isEmpty(e.type)&&p.sectionConstructor[e.type]&&(l=p.sectionConstructor[e.type]):l=e.constructWith,m.isObject(e.options)&&(a=m.extend(a,e.options)),a=m.extend({params:a},a);try{n=p.section.add(new l(e.id,a))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a section to the api",e)}break;case"control":if(p.control.has(e.id))break;t=h.extend(!0,{},p.Control.prototype.defaults);var c,d=m.extend(t,{content:"",label:e.label||e.id,priority:e.priority,section:e.section,settings:e.settings,type:e.type,module_type:e.module_type,input_attrs:e.input_attrs,sek_registration_params:e}),u=p.controlConstructor[d.type]||p.Control;m.isObject(e.options)&&(d=m.extend(d,e.options)),c=m.extend({params:d},d);try{n=p.control.add(new u(e.id,c))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a control to the api",e)}break;default:p.errorLog('invalid "what" when invoking the register() method')}return n=m.isEmpty(n)?{deferred:{embedded:h.Deferred(function(){this.resolve()})}}:n,!1!==e.track&&p.trigger("czr-new-registered",e),"setting"==e.what?e:n.deferred.embedded}p.errare("register => missing id ",e)}})}(wp.customize,jQuery,_),function(i,r,o){i.CZR_Helpers=i.CZR_Helpers||{},i.CZR_Helpers=r.extend(i.CZR_Helpers,{css_loader_html:'<div class="czr-css-loader czr-mr-loader" style="display:none"><div></div><div></div><div></div></div>',getControlSettingId:function(e,t){return t="default",i.control.has(e)?!o.has(i.control(e),"settings")||o.isEmpty(i.control(e).settings)?e:o.has(i.control(e).settings,t)?o.isUndefined(i.control(e).settings[t].id)?(i.consoleLog("getControlSettingId : The requested control_id has no setting id assigned : "+e),e):i.control(e).settings[t].id:(i.consoleLog("getControlSettingId : The requested control_id does not have the requested setting type : "+e+" , "+t),e):e},getDocSearchLink:function(e){var t=(e=o.isString(e)?e:"").replace(/ /g,"+");return['<a href="'+[serverControlParams.docURL,"search?query=",t].join("")+'" title="'+serverControlParams.i18n.readDocumentation+'" target="_blank">'," ",'<span class="far fa-question-circle-o"></span>'].join("")},build_setId:function(e){return o.isUndefined(window.themeServerControlParams)||!o.isArray(themeServerControlParams.wpBuiltinSettings)?e:o.contains(themeServerControlParams.wpBuiltinSettings,e)?e:o.contains(themeServerControlParams.themeSettingList,e)&&-1==e.indexOf(themeServerControlParams.themeOptions)?[themeServerControlParams.themeOptions+"[",e,"]"].join(""):e},getOptionName:function(e){if(o.isEmpty(window.themeServerControlParams)||o.isEmpty(themeServerControlParams.themeOptions))return e;return-1==e.indexOf(themeServerControlParams.themeOptions)?e:e.replace(/\[|\]/g,"").replace(themeServerControlParams.themeOptions,"")},hasPartRefresh:function(n){if(o.has(i,"czr_partials"))return o.contains(o.map(i.czr_partials(),function(e,t){return o.contains(e.settings,n)}),!0)},getSectionControlIds:function(e){return e=e||i.czr_activeSectionId(),i.section.has(e)?o.map(i.section(e).controls(),function(e){return e.id}):[]},getSectionSettingIds:function(e){if(e=e||i.czr_activeSectionId(),i.section.has(e)){var n=[],t=this.getSectionControlIds(e);return o.each(t,function(e){o.each(i.control(e).settings,function(e,t){n.push(e.id)})}),n}},capitalize:function(e){return o.isString(e)?e.charAt(0).toUpperCase()+e.slice(1):e},truncate:function(e,t,n){if(!o.isString(e))return"";t=t||20;var i=e.length>t,r=i?e.substr(0,t-1):e;return r=n&&i?r.substr(0,r.lastIndexOf(" ")):r,i?r+"...":r},isMultiItemModule:function(e,t){if(!o.isUndefined(e)||o.isObject(t)){if(o.isObject(t)&&o.has(t,"module_type"))e=t.module_type;else if(o.isUndefined(e)||o.isNull(e))return;if(o.has(i.czrModuleMap,e))return i.czrModuleMap[e].crud||i.czrModuleMap[e].multi_item||!1}},isCrudModule:function(e,t){if(!o.isUndefined(e)||o.isObject(t)){if(o.isObject(t)&&o.has(t,"module_type"))e=t.module_type;else if(o.isUndefined(e)||o.isNull(e))return;if(o.has(i.czrModuleMap,e))return i.czrModuleMap[e].crud||!1}},hasModuleModOpt:function(e,t){if(!o.isUndefined(e)||o.isObject(t)){if(o.isObject(t)&&o.has(t,"module_type"))e=t.module_type;else if(o.isUndefined(e)||o.isNull(e))return;if(o.has(i.czrModuleMap,e))return i.czrModuleMap[e].has_mod_opt||!1}},removeInputCollection:function(){var t=this;if(!o.isFunction(t))throw new Error("removeInputCollection : inputParentInst is not valid.");o.has(t,"czr_Input")&&(t.czr_Input.each(function(e){t.czr_Input.remove(e.id)}),t.inputCollection({}))},refreshModuleControl:function(e){var t=i.controlConstructor.czr_module,n=(i.control(e).params.type,i.settings.controls[e]);r.when(i.control(e).container.remove()).done(function(){i.control.remove(e),i.control.add(e,new t(e,{params:n,previewer:i.previewer}))})},isChecked:function(e){return o.isBoolean(e)?e:o.isNumber(e)?0<e:!!o.isString(e)&&("0"!==e&&""!==e&&"off"!==e)},hexToRgb:function(t){try{t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i})}catch(e){return i.errorLog("Error in Helpers::hexToRgb : "+e),t}var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgb("+(e=e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[]).join(",")+")"},rgbToHex:function(e,t,n){var i=function(e){var t=e.toString(16);return 1==t.length?"0"+t:t};return"#"+i(e)+i(t)+i(n)},parseTemplate:o.memoize(function(t){var n,i={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){return(n=n||o.template(t,i))(e)}})})}(wp.customize,jQuery,_),function(a,l,c){a.CZR_Helpers=a.CZR_Helpers||{},a.CZR_Helpers=l.extend(a.CZR_Helpers,{addActions:function(e,t,n){(n=n||this)[e]=n[e]||[],new_event_map=c.clone(n[e]),n[e]=c.union(new_event_map,c.isArray(t)?t:[t])},doActions:function(e,t,n){t.trigger(e,n)},setupDOMListeners:function(e,r,o){var s=this;o=o||s,c.isArray(e)?c.isObject(r)?(r=c.extend({model:{},dom_el:{}},r)).dom_el instanceof jQuery&&!(r.dom_el.length<1)?c.map(e,function(i){if(c.isString(i.selector)&&!c.isEmpty(i.selector))if(c.isString(i.selector)&&!c.isEmpty(i.selector)){var e=i.name&&!c.isEmpty(i.name)?i.name:[i.trigger,i.selector].join(""),t=r.dom_el.data("czr-listener-collection");if(t&&c.isArray(t)){if(t=c.isArray(t)?t:[],c.contains(t,e))return void a.errare("setupDOMListeners : aborting because listener already created for event : "+e);t.push(e)}else t=[e];r.dom_el.data("czr-listener-collection",t),r.dom_el.on(i.trigger,i.selector,function(e,t){if(e.stopPropagation(),!a.utils.isKeydownButNotEnterEvent(e)){e.preventDefault();var n=l.extend(!0,{},r);if(c.has(n,"model")&&c.has(n.model,"id")&&(c.has(o,"get")?n.model=o():n.model=o.getModel(n.model.id)),l.extend(n,{event:i,dom_event:e}),l.extend(n,t),c.has(n,"event")&&c.has(n.event,"actions"))if(serverControlParams.isDevMode)s.executeEventActionChain(n,o);else try{s.executeEventActionChain(n,o)}catch(e){a.errare("In setupDOMListeners : problem when trying to fire actions : "+n.event.actions,e)}else a.errare("executeEventActionChain : missing obj.event or obj.event.actions")}})}else a.errare("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+i.actions.join(","));else a.errare("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+i.actions.join(","))}):a.errare("setupDomListeners : dom element should be an existing dom element",r):a.errare("setupDomListeners : args should be an object",e):a.errare("setupDomListeners : event_map should be an array",r)},executeEventActionChain:function(i,r){var o=this;if("function"==typeof i.event.actions)return i.event.actions.call(r,i);c.isArray(i.event.actions)||(i.event.actions=[i.event.actions]);var s=!1;c.map(i.event.actions,function(e){if(!s){var t=function(){};if("function"==typeof e)t=e;else{if("function"!=typeof r[e])throw new Error("executeEventActionChain : the action : "+e+" has not been found when firing event : "+i.event.selector);t=r[e]}var n=c.has(i,"dom_el")&&-1!=i.dom_el.length?i.dom_el:o.container;"string"==typeof e&&n.trigger("before_"+e,c.omit(i,"event")),!1===t.call(r,i)&&(s=!0),"string"==typeof e&&n.trigger("after_"+e,c.omit(i,"event"))}})}})}(wp.customize,jQuery,_),function(i,e,r){i.czr_wpQueryDataReady=i.czr_wpQueryDataReady||e.Deferred(),i.czr_wpQueryInfos=i.czr_wpQueryInfos||new i.Value,i.bind("ready",function(){i.previewer.bind("czr-query-data-ready",function(e){i.czr_wpQueryInfos(e),"pending"==i.czr_wpQueryDataReady.state()&&i.czr_wpQueryDataReady.resolve(e)}),i.previewer.bind("czr-partial-refresh-data",function(e){i.czr_partials=i.czr_partials||new i.Value,i.czr_partials.set(e)}),i.previewer.bind("czr-partial-refresh-done",function(e){if(r.has(e,"set_id")){var t=i.CZR_Helpers.build_setId(e.set_id);if(i.has(t)){var n=i.CZR_Helpers.getControlSettingId(t);i.control.has(n)&&i.control(n).trigger("czr-partial-refresh-done")}}})})}(wp.customize,jQuery,_);var CZRInputMths=CZRInputMths||{};!function(r,o,a){o.extend(CZRInputMths,{initialize:function(e,t){if(a.isUndefined(t.input_parent)||a.isEmpty(t.input_parent))throw new Error("No input_parent assigned to input "+t.id+". Aborting");if(a.isUndefined(t.module))throw new Error("No module assigned to input "+t.id+". Aborting");r.Value.prototype.initialize.call(this,null,t);var n=this;o.extend(n,t||{}),n.constructorOptions=o.extend(!0,{},t),n.isReady=o.Deferred(),a.isUndefined(t.input_value)||n.set(t.input_value);if(n.input_event_map=[{trigger:o.trim(["change",{text:"keyup",textarea:"keyup",password:"keyup",color:"colorpickerchange",range:"input propertychange"}[n.type]||""].join(" ")),selector:"input[data-czrtype], select[data-czrtype], textarea[data-czrtype]",name:"set_input_value",actions:function(e){if(!a.has(n.input_parent,"syncElements")||!a.has(n.input_parent.syncElements,n.id))throw new Error("WARNING : THE INPUT "+n.id+" HAS NO SYNCED ELEMENT.")}}],n[n.type]&&a.isFunction(n[n.type]))try{n[n.type](t.input_options||null)}catch(e){r.errare("Error in overriden callback method in input init => for input id :"+n.id+" in module type : "+n.module.module_type,e)}else if(r.czrInputMap&&a.has(r.czrInputMap,n.type)){var i=r.czrInputMap[n.type];if(a.isFunction(n[i]))try{n[i](t.input_options||null)}catch(e){r.errare("Error in input init => for input id :"+n.id+" in module type : "+n.module.module_type,e)}else if(a.isFunction(r.czrInputMap[n.type]))try{r.czrInputMap[n.type].apply(n,[t.input_options||null])}catch(e){r.errare("Error in input init => for input id :"+n.id+" in module type : "+n.module.module_type,e)}}else r.errare("Warning the input : "+n.id+" with type "+n.type+" has no corresponding method defined in api.czrInputMap.");n.visible=new r.Value(!0),n.isReady.done(function(){n.visible.bind(function(e){e?n.container.stop(!0,!0).slideDown(200):n.container.stop(!0,!0).slideUp(200)})}),n.enabled=new r.Value(!0),n.isReady.done(function(){n.enabled.bind(function(e){n.container.toggleClass("disabled",!e)})})},ready:function(){var e=this;e.setupDOMListeners(e.input_event_map,{dom_el:e.container},e),e.callbacks.add(function(){return e.inputReact.apply(e,arguments)}),o.when(e.setupSynchronizer()).done(function(){e.isReady.resolve(e)})},setupSynchronizer:function(){var e=this,t=e.input_parent,n=e.container.find("[data-czrtype]"),i=(e.container.find("[data-czrtype]").is("textarea"),new r.Element(n));t.syncElements=t.syncElements||{},(t.syncElements[e.id]=i).sync(e),i.set(e())},inputReact:function(e,t,n){var i=this,r=i.input_parent(),o=a.clone(r),s=i.is_preItemInput;i.enabled()&&((o=!a.isObject(o)||a.isEmpty(o)?{}:o)[i.id]=e,i.input_parent.set(o,{input_changed:i.id,input_value:i(),input_transport:i.transport,not_preview_sent:"postMessage"===i.transport,inputRegistrationParams:i.constructorOptions}),s||(i.input_parent.trigger(i.id+":changed",e),a.isEmpty(t)&&(a.isUndefined(t)||"postMessage"!==i.transport)||i.module.sendInputToPreview({input_id:i.id,input_parent_id:i.input_parent.id,to:e,from:t})))},setupColorPicker:function(){this.container.find("input").iris({palettes:!0,hide:!1,change:function(e,t){o(this).val(t.color.toString()).trigger("colorpickerchange").trigger("change")}})},setupColorPickerAlpha:function(){var n=this;n.container.find("input").wpColorPicker({palettes:!0,width:1440<=window.innerWidth?271:251,change:function(e,t){o(this).val(t.color.toString()).trigger("colorpickerchange").trigger("change")},clear:function(e,t){n("")}})},setupSelect:function(){o("select",this.container).not(".no-selecter-js").each(function(){o(this).selecter({})})},setupIcheck:function(e){o("input[type=checkbox]",this.container).each(function(e){0===o(this).closest('div[class^="icheckbox"]').length&&o(this).iCheck({checkboxClass:"icheckbox_flat-grey",checkedClass:"checked",radioClass:"iradio_flat-grey"}).on("ifChanged",function(e){o(this).val(!1===o(this).is(":checked")?0:1),o(e.currentTarget).trigger("change")})})},setupNimbleCheck:function(e){this.container.find("input[type=checkbox]"),o(".czr-toggle-check",this.container)},setupRadio:function(e){o("input[type=radio]",this.container).each(function(e){0===o(this).closest('div[class^="icheckbox"]').length&&o(this).iCheck({checkboxClass:"icheckbox_flat-grey",checkedClass:"checked",radioClass:"iradio_flat-grey"}).on("ifChanged",function(e){o(e.currentTarget).trigger("change")})})},setupStepper:function(e){o('input[type="number"]',this.container).each(function(e){o(this).stepper()})},setupSimpleRange:function(){},setupRangeSlider:function(e){var n,i=this,r=function(e,t){var n=i.container.find("input").data("unit");e.textContent=t+(a.isEmpty(i.container.find("input").data("unit"))?"":n)};o(i.container).find("input").rangeslider({polyfill:!1,rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",onInit:function(){n=o(".rangeslider__handle",this.$range),o(".rangeslider__handle",this.$range),r(n[0],this.value)},onSlide:function(e,t){r(n[0],t)}})},setupHAlignement:function(e){var t=this,n=o(".sek-h-align-wrapper",t.container);n.find('div[data-sek-align="'+t()+'"]').addClass("selected"),n.on("click","[data-sek-align]",function(e){e.preventDefault(),n.find(".selected").removeClass("selected"),o.when(o(this).addClass("selected")).done(function(){t(o(this).data("sek-align"))})})}})}(wp.customize,jQuery,_);CZRInputMths=CZRInputMths||{};!function(r,i,o){i.extend(CZRInputMths,{setupImageUploaderSaveAsId:function(){this.setupImageUploader()},setupImageUploaderSaveAsUrl:function(){this.setupImageUploader({save_as_url:!0})},setupImageUploader:function(e){var t=this,n=t();if(e=o.extend({save_as_url:!1},e||{}),t.save_as_url=e.save_as_url,t.attachment={},!t.container)return this;t.tmplRendered=i.Deferred(),t.setupContentRendering(n,{}),t.tmplRendered.done(function(){t.czrImgUploaderBinding()}).fail(function(){r.errorLog("setupImageUploader => failed to fetch the template.")})},setupContentRendering:function(e,t){var n,i=this;i.attachment.id!=e&&t!==e?(o.isEmpty(e)?(i.attachment={},i.renderImageUploaderTemplate()):o.isNumber(e)||i.renderImageUploaderTemplate({fromUrl:!0,url:e}),n=wp.media.attachment(e),o.isObject(n)&&o.has(n,"attributes")&&o.has(n.attributes,"sizes")?(i.attachment=n.attributes,i.renderImageUploaderTemplate()):o.isNumber(e)&&wp.media.attachment(e).fetch().done(function(){i.attachment=this.attributes,i.renderImageUploaderTemplate()}).fail(function(){r.errorLog("renderImageUploaderTemplate => failed attempt to fetch an img with id : "+e)})):i.attachment.id&&i.attachment.id!==e||i.renderImageUploaderTemplate()},czrImgUploaderBinding:function(){var n=this;o.bindAll(n,"czrImgUploadRemoveFile","czrImgUploadOpenFrame","czrImgUploadSelect"),n.container.on("click keydown",".upload-button",n.czrImgUploadOpenFrame),n.container.on("click keydown",".thumbnail-image img",n.czrImgUploadOpenFrame),n.container.on("click keydown",".remove-button",n.czrImgUploadRemoveFile),n.bind(n.id+":changed",function(e,t){n.tmplRendered=i.Deferred(),n.setupContentRendering(e,t)})},czrImgUploadOpenFrame:function(e){r.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.frame||this.czrImgUploadInitFrame(),this.frame.open())},czrImgUploadInitFrame:function(){var e=this.getUploaderLabels();this.frame=wp.media({button:{text:e.frame_button},states:[new wp.media.controller.Library({title:e.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1})]}),this.frame.on("select",this.czrImgUploadSelect)},czrImgUploadRemoveFile:function(e){r.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.attachment={},this.set(""))},czrImgUploadSelect:function(){var e=this.frame.state().get("selection").first().toJSON();window._wpmejsSettings;this.attachment=e,this.set(this.save_as_url?e.url:e.id)},renderImageUploaderTemplate:function(e){var t=this;e=o.extend({fromUrl:!1,url:""},e||{});var n=t.container.find("."+t.module.control.css_attr.img_upload_container);if(n.length&&!(t.container.length<1)){var i={button_labels:t.getUploaderLabels(),settings:t.id,attachment:t.attachment,fromUrl:e.url,canUpload:!0};return r.CZR_Helpers.getModuleTmpl({tmpl:"img-uploader",module_type:"all_modules",module_id:t.module.id}).done(function(e){n.html(r.CZR_Helpers.parseTemplate(e)(i)),t.tmplRendered.resolve(),t.container.trigger(t.id+":content_rendered")}).fail(function(e){t.tmplRendered.reject("renderImageUploaderTemplate => Problem when fetching the tmpl from server for module : "+t.module.id)}),!0}},getUploaderLabels:function(){var e=serverControlParams.i18n,n=this,t={select:e.select_image,change:e.change_image,remove:e.remove_image,default:e.default_image,placeholder:e.placeholder_image,frame_title:e.frame_title_image,frame_button:e.frame_button_image},i={};return o.each(t,function(e,t){if(o.isEmpty(e))return r.errorLog("A translated string is missing ( "+t+" ) for the image uploader input in module : "+n.module.id),void(i[t]=t);i[t]=e}),i}})}(wp.customize,jQuery,_);CZRInputMths=CZRInputMths||{};!function(s,a,l){a.extend(CZRInputMths,{setupContentPicker:function(e){var r=this;a.extend(l.isObject(e)?e:{},{post:"",taxonomy:""}),r.wpObjectTypes=e,r.container.find(".czr-input").append('<select data-select-type="content-picker-select" class="js-example-basic-simple"></select>'),r.input_event_map=[{trigger:"change",selector:"select[data-select-type]",name:"set_input_value",actions:function(e){var t=a(e.dom_event.currentTarget,e.dom_el),n=a(t,e.dom_el).czrSelect2("data"),i={};n=l.isArray(n)?n[0]:n,l.isObject(n)&&!l.isEmpty(n)?(l.each({id:"",type_label:"",title:"",object_type:"",url:""},function(e,t){"_custom_"===n.id||l.has(n,t)&&!l.isEmpty(n[t])?i[t]=n[t]:s.errare("content_picker : missing input param : "+t)}),r.set(i)):s.errare("Content Picker Input : the picked value should be an object not empty.")}}],r.isReady.done(function(){r.setupContentSelecter()})},setupContentSelecter:function(){var o=this;if(!l.isEmpty(o())){var e={value:o().id||"",title:o().title||"",selected:"selected"};o.container.find("select").append(a("<option>",e))}o.currentAjaxAction=o.currentAjaxAction||new s.Value,o.currentAjaxAction.bind(function(e){o.defaultValueHasBeenPushed=!1}),o.container.find("select").on("czrSelect2:select czrSelect2:unselect czrSelect2:close czrSelect2:open",function(e){o.defaultValueHasBeenPushed=!1}),o.container.find("select").czrSelect2({placeholder:{id:"-1",title:"Select"},data:o.setupSelectedContents(),ajax:{url:wp.ajax.settings.url,type:"POST",dataType:"json",delay:250,debug:!0,data:function(e){var t=e.page?e.page:0;return t=e.term?e.page:t,o.currentAjaxAction(e.term?"search-available-content-items-customizer":"load-available-content-items-customizer"),{action:o.currentAjaxAction(),search:e.term,wp_customize:"on",page:t,wp_object_types:JSON.stringify(o.wpObjectTypes),nonce:s.settings.nonce.save}},processResults:function(e,t){var n={defaultOption:{id:"",title:"",type_label:"",object_type:"",url:""}};if(o.input_parent&&o.input_parent.module?o.input_parent.module.trigger("set_default_content_picker_options",{defaultContentPickerOption:n}):s.infoLog(' content_picker input => ::processResults => event "set_default_content_picker_option" not triggered when in pre-item'),!e.success)return s.errare("request failure in setupContentPicker => processResults",e),{results:n.defaultOption};var i=e.data.items,r=[];return i=l.isArray(i)?i:[],o.defaultValueHasBeenPushed=o.defaultValueHasBeenPushed||!1,"load-available-content-items-customizer"!==o.currentAjaxAction()||l.isEmpty(n.defaultOption)||n.defaultOption.id&&!o.defaultValueHasBeenPushed&&(r.push(n.defaultOption),o.defaultValueHasBeenPushed=!0),l.each(i,function(e){r.push({id:e.id,title:e.title,type_label:e.type_label,object_type:e.object,url:e.url})}),{results:r,pagination:{more:1<=i.length}}}},templateSelection:o.czrFormatContentSelected,templateResult:o.czrFormatContentSelected,escapeMarkup:function(e){return e}})},czrFormatContentSelected:function(e){if(e.loading)return e.text;var t="<div class='content-picker-item clearfix'><div class='content-item-bar'><span class='czr-picker-item-title'>"+e.title+"</span>";return e.type_label&&(t+="<span class='czr-picker-item-type'>"+e.type_label+"</span>"),t+="</div></div>"},setupSelectedContents:function(){return this()}})}(wp.customize,jQuery,_);var CZRItemMths=CZRItemMths||{};!function(r,o,s){o.extend(CZRItemMths,{initialize:function(e,t){if(s.isUndefined(t.module)||s.isEmpty(t.module))throw new Error("No module assigned to item "+e+". Aborting");var n=this;r.Value.prototype.initialize.call(n,null,t),n.isReady=o.Deferred(),n.embedded=o.Deferred(),n.container=null,n.contentContainer=null,n.czr_Input=new r.Values,n.inputCollection=new r.Value({}),n.viewState=new r.Value("closed"),n.removeDialogVisible=new r.Value(!1),o.extend(n,t||{}),n.defaultItemModel=s.clone(t.defaultItemModel)||{id:"",title:""};var i=o.extend(n.defaultItemModel,t.initial_item_model);i=n.validateItemModelOnInitialize(i),n.set(i),n.userEventMap=new r.Value([{trigger:"click keydown",selector:["."+n.module.control.css_attr.display_alert_btn,"."+n.module.control.css_attr.cancel_alert_btn].join(","),name:"toggle_remove_alert",actions:function(){var e=this.removeDialogVisible();this.module.closeRemoveDialogs(),this.removeDialogVisible(!e)}},{trigger:"click keydown",selector:"."+n.module.control.css_attr.remove_view_btn,name:"remove_item",actions:["removeItem"]},{trigger:"click keydown",selector:["."+n.module.control.css_attr.edit_view_btn,"."+n.module.control.css_attr.item_title].join(","),name:"edit_view",actions:["setViewVisibility"]},{trigger:"click keydown",selector:".tabs nav li",name:"tab_nav",actions:function(e){var t=o(e.dom_event.currentTarget,e.dom_el).data("tab-id");this.module.toggleTabVisibility.call(this,t),this.trigger("tab-switch",{id:t})}}]),n.isReady.done(function(){n.module.updateItemsCollection({item:n()}),n.callbacks.add(function(){return n.itemReact.apply(n,arguments)}),n.bind("contentRendered",function(){if(s.isEmpty(n.inputCollection()))if(serverControlParams.isDevMode)r.CZR_Helpers.setupInputCollectionFromDOM.call(n),n.module.setupTabNav.call(n);else try{r.CZR_Helpers.setupInputCollectionFromDOM.call(n),n.module.setupTabNav.call(n)}catch(e){r.errorLog("In item.isReady.done : "+e)}}),n.bind("contentRemoved",function(){s.has(n,"czr_Input")&&r.CZR_Helpers.removeInputCollection.call(n)}),n.canBeRendered()&&n.mayBeRenderItemWrapper(),n.embedded.done(function(){n.itemWrapperViewSetup(i)})})},ready:function(){this.isReady.resolve()},canBeRendered:function(){return!0},validateItemModelOnInitialize:function(e){return e},itemReact:function(e,t,n){var i=this,r=i.module;n=n||{},r.updateItemsCollection({item:e,params:n}).done(function(){i.writeItemViewTitle(e,n)})}})}(wp.customize,jQuery,_);CZRItemMths=CZRItemMths||{};!function(s,a,l){a.extend(CZRItemMths,{_sendItem:function(n,e){var t=this,i=t.module,r=[];l.each(e,function(e,t){e!=n[t]&&r.push(t)}),l.each(r,function(e){s.previewer.send("sub_setting",{set_id:i.control.id,id:n.id,changed_prop:e,value:n[e]}),i.trigger("item_sent",{item:n,dom_el:t.container,changed_prop:e})})},removeItem:function(e){var t=this,n=this.module,i=l.clone(n.itemCollection());n.trigger("pre_item_dom_remove",t()),t._destroyView(),i=l.without(i,l.findWhere(i,{id:t.id})),n.itemCollection.set(i),n.trigger("pre_item_api_remove",t());var r=a.extend(!0,{},t());if(n.czr_Item.remove(t.id),"postMessage"!=s(n.control.id).transport||!l.has(e,"dom_event")||l.has(e.dom_event,"isTrigger")||s.CZR_Helpers.hasPartRefresh(n.control.id))n.trigger("item-removed",r),n.control.trigger("item-removed",r);else{var o=function(){s.previewer.unbind("ready",o),n.trigger("item-removed",r)};s.previewer.bind("ready",o),s.previewer.refresh()}},getModel:function(e){return this()}})}(wp.customize,jQuery,_);CZRItemMths=CZRItemMths||{};!function(c,d,u){d.extend(CZRItemMths,{mayBeRenderItemWrapper:function(){var t=this;"pending"==t.embedded.state()&&(!u.isEmpty(t.container)&&0<t.container.length||d.when(t.renderItemWrapper()).done(function(e){if(t.container=e,u.isUndefined(t.container)||!t.container.length)throw new Error("In mayBeRenderItemWrapper the Item view has not been rendered : "+t.id);t.embedded.resolve()}))},renderItemWrapper:function(e){var t,n,i=this,r=i.module,o=d.Deferred(),s=d.extend(!0,{},e||i()),a=function(e){r.isMultiItem()&&(u.isEmpty(e)&&o.reject("renderItemWrapper => Missing html template for module : "+r.id),t.append(e)),t.append(d("<div/>",{class:r.control.css_attr.item_content})),o.resolve(t)};if(i.trigger("item-model-before-item-wrapper-template-injection",s),t=d("<li>",{class:r.control.css_attr.single_item,"data-id":s.id,id:s.id}),r.itemsWrapper.append(t),r.isMultiItem())if(u.isEmpty(r.rudItemPart)){var l={tmpl:"rud-item-part",module_type:"all_modules",module_id:r.id,control_id:r.control.id};i.trigger("item-wrapper-tmpl-params-before-fetching",l),u.isEmpty(r[l.tmpl])?c.CZR_Helpers.getModuleTmpl(l).done(function(e){a(c.CZR_Helpers.parseTemplate(e)({is_sortable:r.sortable}))}).fail(function(e){o.reject("renderItemWrapper => Problem when fetching the rud-item-part tmpl from server for module : "+r.id)}):(n=r.getTemplateSelectorPart(l.tmpl,s),d("#tmpl-"+n).length<1&&o.reject("Missing template for item "+i.id+". The provided template script has no been found : #tmpl-"+n),a(wp.template(n)(s)))}else n=r.getTemplateSelectorPart("rudItemPart",s),d("#tmpl-"+n).length<1&&o.reject("Missing template for item "+i.id+". The provided template script has no been found : #tmpl-"+n),a(wp.template(n)(s));else a();return o.promise()},itemWrapperViewSetup:function(e){var r=this,i=this.module;item_model=r()||r.initial_item_model,r.writeItemViewTitle();var o=function(e,t,n){if(u.isUndefined(e)||!1===e.length)throw new Error("Module : "+r.module.id+", the item content has not been rendered for "+r.id);r.contentContainer=e,r.trigger("contentRendered",{item_content:e}),r.toggleItemExpansion(t,r.module.isMultiItem()?150:0),r.cleanLoader()};r.module.isMultiItem()?r.viewState.callbacks.add(function(t,e){var n=-1!==t.indexOf("expanded");i.hasModOpt()&&n&&c.czr_ModOptVisible(!1,{module:i,focus:!1}),n?u.isObject(r.contentContainer)&&!1!==r.contentContainer.length?r.toggleItemExpansion(t):(r.printLoader(),r.renderItemContent(r()||r.initial_item_model).done(function(e){o(e,t)}).fail(function(e){c.errorLog("multi-item module => failed item.renderItemContent for module : "+i.id,e)})):r.toggleItemExpansion(t).done(function(){u.isObject(r.contentContainer)&&!1!==r.contentContainer.length&&(r.trigger("beforeContenRemoved"),d("."+i.control.css_attr.item_content,r.container).children().each(function(){d(this).remove()}),d("."+i.control.css_attr.item_content,r.container).html(""),r.contentContainer=null,r.trigger("contentRemoved"))})}):(r.viewState.callbacks.add(function(e,t){r.toggleItemExpansion.apply(r,[e,0])}),r.printLoader(),r.renderItemContent(item_model).done(function(e){o(e,!0)}).fail(function(e){c.errare("mono-item module => failed item.renderItemContent for module : "+i.id,e)})),c.CZR_Helpers.setupDOMListeners(r.userEventMap(),{model:item_model,dom_el:r.container},r),r.removeDialogVisible.bind(function(e){var t=r.module,n=d("."+t.control.css_attr.remove_alert_wrapper,r.container).first();if(e&&t.closeAllItems(),e&&t.hasModOpt()&&c.czr_ModOptVisible(!1,{module:t,focus:!1}),e&&u.has(t,"preItem")&&t.preItemExpanded(!1),d("."+t.control.css_attr.remove_alert_wrapper,r.container).not(n).each(function(){d(this).hasClass("open")&&d(this).slideToggle({duration:200,done:function(){d(this).toggleClass("open",!1),d(this).siblings().find("."+t.control.css_attr.display_alert_btn).toggleClass("active",!1)}})}),e)if(u.isEmpty(t.alertPart))c.CZR_Helpers.getModuleTmpl({tmpl:"rud-item-alert-part",module_type:"all_modules",module_id:t.id,control_id:t.control.id}).done(function(e){n.html(c.CZR_Helpers.parseTemplate(e)({title:r().title||r.id})),r.trigger("remove-dialog-rendered")}).fail(function(e){c.errare("item.removeDialogVisible => Problem when fetching the tmpl from server for module : "+t.id,e)});else{if(d("#tmpl-"+t.alertPart).length<1||u.isEmpty(r.container))return void c.errare("No removal alert template available for items in module :"+t.id);n.html(wp.template(t.alertPart)({title:r().title||r.id})),r.trigger("remove-dialog-rendered")}var i=function(e){n.toggleClass("open",e),r.container.find("."+t.control.css_attr.display_alert_btn).toggleClass("active",e),e&&t._adjustScrollExpandedBlock(r.container)};e?n.stop(!0,!0).slideDown(200,function(){i(e)}):n.stop(!0,!0).slideUp(200,function(){i(e)})})},renderItemContent:function(e){var n=this,i=this.module,r=d.Deferred(),t=d.extend(!0,{},e||n());n.trigger("item-model-before-item-content-template-injection",t);var o=function(e){u.isEmpty(e)&&r.reject("renderItemContent => Missing html template for module : "+i.id);var t=d("."+i.control.css_attr.item_content,n.container);d(e).appendTo(t),r.resolve(t)};if(!u.isEmpty(i.itemInputList)||u.isFunction(i.itemInputList)){var s=i.getTemplateSelectorPart("itemInputList",t);d("#tmpl-"+s).length<1?r.reject("renderItemContent => No itemInputList content template defined for module "+i.id+". The template script id should be : #tmpl-"+s):o(wp.template(s)(t))}else{var a={tmpl:"item-inputs",module_type:i.module_type,module_id:i.id,control_id:i.control.id,item_model:t};i.trigger("filter-request-params-before-fetching-for-item-content-tmpl",a),c.CZR_Helpers.getModuleTmpl(a).done(function(e){o(c.CZR_Helpers.parseTemplate(e)(d.extend(t,{control_id:i.control.id})))}).fail(function(e){r.reject(e)})}return r.promise()},writeItemViewTitle:function(e){var t=this,n=t.module,i=e||t(),r=u.has(i,"title")&&!u.isEmpty(i.title)?c.CZR_Helpers.capitalize(i.title):i.id;r=c.CZR_Helpers.truncate(r,20),d("."+n.control.css_attr.item_title,t.container).text(r),c.CZR_Helpers.doActions("after_writeViewTitle",t.container,i,t)},setViewVisibility:function(e,t){var n=this.module;t?this.viewState.set("expanded_noscroll"):(n.closeAllItems(this.id),u.has(n,"preItem")&&n.preItemExpanded.set(!1),this.viewState.set("expanded"==this._getViewState()?"closed":"expanded"))},_getViewState:function(){return-1==this.viewState().indexOf("expanded")?"closed":"expanded"},toggleItemExpansion:function(n,e){var t="closed"!=n,i=this,r=this.module,o=d("."+r.control.css_attr.item_content,i.container).first(),s=d.Deferred(),a=function(e){i.container.toggleClass("open",e),e&&r.closeRemoveDialogs();var t=o.siblings().find("."+r.control.css_attr.edit_view_btn);t.toggleClass("active",e),e?t.removeClass("fa-pencil-alt").addClass("fa-minus-square").attr("title",serverControlParams.i18n.close):t.removeClass("fa-minus-square").addClass("fa-pencil-alt").attr("title",serverControlParams.i18n.edit),"expanded"==n&&r._adjustScrollExpandedBlock(i.container),s.resolve()};return e=u.isUndefined(e)?150:e,t?o.stop(!0,!0).slideDown(e,function(){a(t)}):o.stop(!0,!0).slideUp(0,function(){a(t)}),s.promise()},_destroyView:function(e){this.container.fadeOut({duration:e||400,done:function(){d(this).remove()}})},printLoader:function(){var e=this;e.container.css({position:"relative"}).append(c.CZR_Helpers.css_loader_html).find(".czr-css-loader").fadeIn("fast"),clearTimeout(d.data(this,"_czr_loader_active_timer_")),d.data(this,"_czr_loader_active_timer_",setTimeout(function(){e.cleanLoader()},5e3))},cleanLoader:function(){this.container.css({"min-height":""}).find(".czr-css-loader").remove()}})}(wp.customize,jQuery,_);var CZRModOptMths=CZRModOptMths||{};!function(r,o,s){o.extend(CZRModOptMths,{initialize:function(e){if(s.isUndefined(e.module)||s.isEmpty(e.module))throw new Error("No module assigned to modOpt.");var t=this;r.Value.prototype.initialize.call(t,null,e),t.isReady=o.Deferred(),t.container=null,t.inputCollection=new r.Value({}),o.extend(t,e||{}),t.defaultModOptModel=s.clone(e.defaultModOptModel)||{is_mod_opt:!0};var n=o.extend(t.defaultModOptModel,e.initial_modOpt_model),i=t.module.control;t.set(n),t.isReady.done(function(){o("."+i.css_attr.edit_modopt_icon,i.container).length||o.when(i.container.find(".customize-control-title").first().append(o("<span/>",{class:[i.css_attr.edit_modopt_icon,"fas fa-cog"].join(" "),title:serverControlParams.i18n.Settings}))).done(function(){o("."+i.css_attr.edit_modopt_icon,i.container).fadeIn(400)}),r.CZR_Helpers.setupDOMListeners([{trigger:"click keydown",selector:"."+i.css_attr.edit_modopt_icon,name:"toggle_mod_option",actions:function(){r.czr_ModOptVisible(!r.czr_ModOptVisible(),{module:t.module,focus:!1})}}],{dom_el:i.container},t)})},ready:function(){this.isReady.resolve()}})}(wp.customize,jQuery,_);CZRModOptMths=CZRModOptMths||{};!function(o,s,a){s.extend(CZRModOptMths,{modOptWrapperViewSetup:function(e){var n=this,i=this.module,r=s.Deferred();return e=n()||n.initial_modOpt_model,n.renderModOptContent(e).done(function(e){if(a.isEmpty(e)||!(0<e.length))throw new Error("Module : "+n.module.id+", the modOpt content has not been rendered");var t;t=e,o.CZR_Helpers.setupDOMListeners([{trigger:"click keydown",selector:"."+i.control.css_attr.close_modopt_icon,name:"close_mod_option",actions:function(){o.czr_ModOptVisible(!1,{module:i,focus:!1})}},{trigger:"click keydown",selector:".tabs nav li",name:"tab_nav",actions:function(e){var t=s(e.dom_event.currentTarget,e.dom_el).data("tab-id");this.module.toggleTabVisibility.call(this,t),this.trigger("tab-switch",{id:t})}}],{dom_el:t},n),r.resolve(e)}).fail(function(e){o.errorLog("failed modOpt.renderModOptContent for module : "+i.id,e)}).then(function(){n.module.setupTabNav.call(n)}),r.promise()},renderModOptContent:function(t){var n=this.module,i=s.Deferred();t=t||this();var r=function(e){a.isEmpty(e)&&i.reject("renderModOptContent => Missing html template for module : "+n.id);var t="";try{t=[serverControlParams.i18n["Options for"],n.control.params.label].join(" ")}catch(e){o.errorLog("renderItemContent => Problem with ctrl label => "+e),t=serverControlParams.i18n.Settings}s("#widgets-left").after(s("<div/>",{class:n.control.css_attr.mod_opt_wrapper,html:[['<h2 class="mod-opt-title">',t,"</h2>"].join(""),'<span class="fas fa-times '+n.control.css_attr.close_modopt_icon+'" title="close"></span>'].join("")})),s("."+n.control.css_attr.mod_opt_wrapper).append(e),i.resolve(s("."+n.control.css_attr.mod_opt_wrapper))};if(a.isEmpty(n.itemPreAddEl))o.CZR_Helpers.getModuleTmpl({tmpl:"mod-opt",module_type:n.module_type,module_id:n.id,control_id:n.control.id}).done(function(e){r(o.CZR_Helpers.parseTemplate(e)(t))}).fail(function(e){i.reject("renderPreItemView => Problem when fetching the mod-opt tmpl from server for module : "+n.id)});else{var e=n.getTemplateSelectorPart("modOptInputList",t);s("#tmpl-"+e).length<1&&i.reject("renderModOptContent => No modOpt content template defined for module "+n.id+". The template script id should be : #tmpl-"+e),r(wp.template(e)(t))}return i.promise()},toggleModPanelView:function(e){var t=this.module,n=(t.control,s.Deferred());return t.control.container.toggleClass("czr-modopt-visible",e),s("body").toggleClass("czr-editing-modopt",e),a.delay(function(){n.resolve()},200),n.promise()}})}(wp.customize,jQuery,_);var CZRModuleMths=CZRModuleMths||{};!function(o,s,a){s.extend(CZRModuleMths,{initialize:function(e,t){if(a.isUndefined(t.control)||a.isEmpty(t.control))throw new Error("No control assigned to module "+e);var n=this;o.Value.prototype.initialize.call(this,null,t),n.isReady=s.Deferred(),s.extend(n,t||{}),s.extend(n,{crudModulePart:"",rudItemPart:"",ruItemPart:"",alertPart:"",itemInputList:"",modOptInputList:""}),n.embedded=s.Deferred(),n.itemsWrapper="",n.container=s(n.control.selector),n.renderModuleParts().done(function(e){if(!1===e.length)throw new Error("The items wrapper has not been rendered for module : "+n.id);n.itemsWrapper=e,n.embedded.resolve()}).fail(function(e){throw new Error(["initialize module => failed module.renderModuleParts() for module : ",n.id,e].join(" "))}),n.defaultAPImodOptModel={initial_modOpt_model:{},defaultModOptModel:{},control:{},module:{}},n.defaultModOptModel={},n.modOptConstructor=n.modOptConstructor||o.CZRModOpt,n.itemCollection=new o.Value([]),n.defaultAPIitemModel={id:"",initial_item_model:{},defaultItemModel:{},control:{},module:{},is_added_by_user:!1},n.defaultItemModel=o.czrModuleMap[n.module_type].defaultItemModel||{id:"",title:""},n.itemConstructor=n.itemConstructor||o.CZRItem,n.czr_Item=new o.Values,n.inputConstructor=n.inputConstructor||o.CZRInput,n.hasModOpt()&&(n.inputModOptConstructor=n.inputModOptConstructor||o.CZRInput),n.inputOptions={},n.isReady.done(function(){n.isDirty=new o.Value(t.dirty||!1),n.initializeModuleModel(t).done(function(e){n.set(e)}).fail(function(e){o.errare("Module : "+n.id+" initialize module model failed : ",e)}).always(function(e){n.callbacks.add(function(){return n.moduleReact.apply(n,arguments)}),n.control.isModuleRegistered(n.id)||n.control.updateModulesCollection({module:t,is_registered:!1}),n.bind("items-collection-populated",function(e){n.itemCollection.callbacks.add(function(){return n.itemCollectionReact.apply(n,arguments)}),!1!==n.sortable&&n._makeItemsSortable()}),n.populateSavedItemCollection(),n.hasModOpt()&&n.instantiateModOpt()})}),!0===o.czrModuleMap[n.module_type].ready_on_section_expanded&&(a.has(o,"czr_activeSectionId")&&n.control.section()==o.czr_activeSectionId()&&"resolved"!=n.isReady.state()&&n.embedded.then(function(){n.ready()}),o.section(n.control.section(),function(e){e.expanded.bind(function(e){"resolved"!=n.isReady.state()&&n.embedded.then(function(){n.ready()})})}));var i=o.czrModuleMap[n.module_type].ready_on_control_event;a.isUndefined(i)||o.control(n.control.id,function(e){e.container.on(i,function(e){"resolved"!=n.isReady.state()&&n.embedded.then(function(){n.ready()})})}),this.maybeAwakeAndBindSharedModOpt()},ready:function(){this.isReady.resolve()},initializeModuleModel:function(e){var t=s.Deferred();if(!this.isMultiItem()&&!this.isCrud()&&a.isEmpty(e.items)){var n=a.clone(this.defaultItemModel);e.items=[s.extend(n,{id:this.id})]}return t.resolve(e).promise()},itemCollectionReact:function(e,t,n){var i=this(),r=s.extend(!0,{},i);r.items=e,this.isDirty.set(!0),this.set(r,n||{})},filterItemsBeforeCoreApiSettingValue:function(e){return e},moduleReact:function(e,t,n){var i=this.control;a.size(t.items)==a.size(e.items)&&a.isEmpty(a.difference(e.items,t.items)),e.column_id,t.column_id;i.updateModulesCollection({module:s.extend(!0,{},e),data:n})},getModuleSection:function(){return this.section},isMultiItem:function(){return o.CZR_Helpers.isMultiItemModule(null,this)},isCrud:function(){return o.CZR_Helpers.isCrudModule(null,this)},hasModOpt:function(){return o.CZR_Helpers.hasModuleModOpt(null,this)},instantiateModOpt:function(){var o=this,e=o.prepareModOptForAPI(o().modOpt||{});o.czr_ModOpt=new o.modOptConstructor(e),o.czr_ModOpt.ready(),o.czr_ModOpt.callbacks.add(function(e,t,n){var i=o(),r=s.extend(!0,{},i);r.modOpt=e,o.isDirty(!0),o(r,n)})},prepareModOptForAPI:function(n){var i=this,r={};return n=a.isObject(n)?n:{},a.each(i.defaultAPImodOptModel,function(e,t){n[t];switch(t){case"initial_modOpt_model":a.each(i.getDefaultModOptModel(),function(e,t){a.has(n,t)||(n[t]=e)}),r[t]=n;break;case"defaultModOptModel":r[t]=a.clone(i.defaultModOptModel);break;case"control":r[t]=i.control;break;case"module":r[t]=i}}),r},getDefaultModOptModel:function(e){return s.extend(a.clone(this.defaultModOptModel),{is_mod_opt:!0})},sendInputToPreview:function(e){var t=this;e=a.extend({input_id:"",input_parent_id:"",to:null,from:null},e),a.isEqual(e.to,e.from)||(o.previewer.send("czr_input",{set_id:o.CZR_Helpers.getControlSettingId(t.control.id),module_id:t.id,module:{items:s.extend(!0,{},t().items),modOpt:t.hasModOpt()?s.extend(!0,{},t().modOpt):{}},input_parent_id:e.input_parent_id,input_id:e.input_id,value:e.to,isPartialRefresh:e.isPartialRefresh}),t.trigger("input_sent",{input:e.to,dom_el:t.container}))},sendModuleInputsToPreview:function(i){var r=this,t=function(){var n=this,e=s.extend(!0,{},n());e=a.omit(e,"id"),a.each(e,function(e,t){r.sendInputToPreview({input_id:t,input_parent_id:n.id,to:e,from:null,isPartialRefresh:i.isPartialRefresh})})};r.czr_Item.each(function(e){t.call(e)}),r.hasModOpt()&&t.call(r.czr_ModOpt)},maybeAwakeAndBindSharedModOpt:function(){a.isUndefined(o.czr_ModOptVisible)&&(o.czr_ModOptVisible=new o.Value(!1),o.czr_ModOptVisible.bind(function(t,e,n){if(n=n||{},a.isFunction(n.module)&&a.isFunction(n.module.czr_ModOpt)){var i=n.module.czr_ModOpt,r=n.module;t?(r.closeRemoveDialogs().closeAllItems(),i.modOptWrapperViewSetup(i()).done(function(e){i.container=e;try{o.CZR_Helpers.setupInputCollectionFromDOM.call(i).toggleModPanelView(t)}catch(e){o.consoleLog(e)}r&&n.focus&&a.delay(function(){!a.isNull(i.container)&&i.container.find('[data-tab-id="'+n.focus+'"] a').length&&i.container.find('[data-tab-id="'+n.focus+'"] a').trigger("click")},200)})):i.toggleModPanelView(t).done(function(){i.container&&0<i.container.length?s.when(i.container.remove()).done(function(){o.CZR_Helpers.removeInputCollection.call(i)}):o.CZR_Helpers.removeInputCollection.call(i),i.container=null})}else o.errare("moduleCtor::maybeAwakeAndBindSharedModOpt => api.czr_ModOptVisible.bind() => incorrect arguments",n)}))}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(r,s,a){s.extend(CZRModuleMths,{populateSavedItemCollection:function(e){var t,i=this;a.isArray(e||i().items)?(t=s.extend(!0,[],e||i().items),a.each(t,function(e,t){if(a.has(e,"is_mod_opt"))throw new Error("populateSavedItemCollection => there should be no mod opt to instantiate here.")}),i.trigger("filterItemCandidatesBeforeInstantiation",t),a.each(t,function(t,e){var n=function(){var e=i.instantiateItem(t);a.isFunction(e)?e.ready():r.errare("populateSavedItemCollection => Could not instantiate item in module "+i.id,t)};if(serverControlParams.isDevMode)n();else try{n()}catch(e){r.errare("populateSavedItemCollection => "+e)}}),a.each(t,function(e){if(a.isObject(e)&&a.isUndefined(a.findWhere(i.itemCollection(),e.id)))throw new Error("populateSavedItemCollection => The saved items have not been properly populated in module : "+i.id)}),i.trigger("items-collection-populated")):r.errorLog("populateSavedItemCollection : The saved items collection must be an array in module :"+i.id)},instantiateItem:function(e,t){var n=this;if(e=a.isObject(e)?e:{},(e=n.validateItemBeforeAddition(e,t))&&!a.isNull(e))if(e=n.prepareItemForAPI(e),a.isObject(e)){if(e&&!a.isNull(e)){if(!a.has(e,"id"))throw new Error("CZRModule::instantiateItem() => an item has no id and could not be added in the collection of : "+this.id);if(n.czr_Item.has(e.id))throw new Error("CZRModule::instantiateItem() => the following item id "+e.id+" already exists in module.czr_Item() for module "+this.id);if(n.czr_Item.add(e.id,new n.itemConstructor(e.id,e)),!n.czr_Item.has(e.id))throw new Error("CZRModule::instantiateItem() => instantiation failed for item id "+e.id+" for module "+this.id);return n.czr_Item(e.id)}r.errare("CZRModule::instantiateItem() => item_candidate invalid in module "+n.id)}else r.errare("CZRModule::instantiateItem() => an item should be described by an object in module type : "+n.module_type,"module id : "+n.id);else r.errare("CZRModule::instantiateItem() => item_candidate did not pass validation in module "+n.id)},validateItemBeforeAddition:function(e,t){return e},prepareItemForAPI:function(i){var r=this,o={};return i=a.isObject(i)?i:{},a.each(r.defaultAPIitemModel,function(e,t){var n=i[t];switch(t){case"id":a.isEmpty(n)?o[t]=r.generateItemId(r.module_type):r.isItemRegistered(n)?r.generateItemId(n):o[t]=n;break;case"initial_item_model":a.each(r.getDefaultItemModel(),function(e,t){a.has(i,t)||(i[t]=e)}),o[t]=i;break;case"defaultItemModel":o[t]=a.clone(r.defaultItemModel);break;case"control":o[t]=r.control;break;case"module":o[t]=r;break;case"is_added_by_user":o[t]=!!a.isBoolean(n)&&n}}),a.has(o,"id")||(o.id=r.generateItemId(r.module_type)),o.initial_item_model.id=o.id,r.validateItemBeforeInstantiation(o)},validateItemBeforeInstantiation:function(e){return e},generateItemId:function(e,t,n){if(100<(n=n||1))throw new Error("Infinite loop when generating of a module id.");var i=this,r=e+"_"+(t=t||i._getNextItemKeyInCollection());if(!a.has(i,"itemCollection")||!a.isArray(i.itemCollection()))throw new Error("The item collection does not exist or is not properly set in module : "+i.id);return i.isItemRegistered(r)?(t++,n++,i.generateItemId(e,t,n)):r},_getNextItemKeyInCollection:function(){var e=this,t={},n=0;return a.isEmpty(e.itemCollection())||(t=a.isArray(e.itemCollection())&&1===a.size(e.itemCollection())?e.itemCollection()[0]:a.max(e.itemCollection(),function(e){return a.isNumber(e.id.replace(/[^\/\d]/g,""))?parseInt(e.id.replace(/[^\/\d]/g,""),10):0}),!a.isUndefined(t)&&a.isNumber(t.id.replace(/[^\/\d]/g,""))&&(n=parseInt(t.id.replace(/[^\/\d]/g,""),10)+1)),n},isItemRegistered:function(e){return!a.isUndefined(a.findWhere(this.itemCollection(),{id:e}))},updateItemsCollection:function(e){var t=this,n=t.itemCollection(),i=a.clone(n),r=s.Deferred();if(!a.has(e,"collection")){if(!a.has(e,"item"))throw new Error("updateItemsCollection, no item provided "+t.control.id+". Aborting");e=a.extend({params:{}},e);var o=a.clone(e.item);return a.each(t.defaultItemModel,function(e,t){if(!a.has(o,t))throw new Error('CZRModuleMths => updateItemsCollection : Missing property "'+t+'" for item candidate')}),a.findWhere(i,{id:o.id})?a.each(n,function(e,t){e.id==o.id&&(i[t]=o)}):i.push(o),t.itemCollection.set(i,e.params),r.resolve({collection:i,params:e.params}).promise()}t.itemCollection.set(e.collection)},_getSortedDOMItemCollection:function(){var n=a.clone(this.itemCollection()),i=[],e=s.Deferred();if(s("."+this.control.css_attr.single_item,this.container).each(function(e){var t=a.findWhere(n,{id:s(this).attr("data-id")});t&&(i[e]=t)}),n.length!=i.length)throw new Error("There was a problem when re-building the item collection from the DOM in module : "+this.id);return e.resolve(i).promise()},refreshItemCollection:function(){var t=this;t.czr_Item.each(function(e){t.czr_Item(e.id).container&&0<t.czr_Item(e.id).container.length&&s.when(t.czr_Item(e.id).container.remove()).done(function(){t.czr_Item.remove(e.id)})}),t.itemCollection=new r.Value([]),t.populateSavedItemCollection()}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(e,o,s){o.extend(CZRModuleMths,{getDefaultItemModel:function(e){return o.extend(s.clone(this.defaultItemModel),{id:e||""})},_initNewItem:function(e,t){var n,i=this,r={id:""};return t=void 0!==t?t:s.size(i.itemCollection()),s.isNumber(t)?n=i.module_type+"_"+t:(n=t,t=0),r=e&&!s.isEmpty(e)?o.extend(e,{id:n}):this.getDefaultItemModel(n),s.has(r,"id")&&i._isItemIdPossible(n)?(s.map(i.getDefaultItemModel(),function(e,t){s.has(r,t)||(r[t]=e)}),r):i._initNewItem(r,t+1)}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(o,s,a){s.extend(CZRModuleMths,{renderModuleParts:function(){var n=this,i=s(n.container),r=s.Deferred(),t=function(e){n.isCrud()&&(a.isEmpty(e)&&r.reject("renderModuleParts => Missing html template for module : "+n.id),i.append(e));var t=s("<ul/>",{class:[n.control.css_attr.items_wrapper,n.module_type,n.isMultiItem()?"multi-item-mod":"mono-item-mod",n.isCrud()?"crud-mod":"not-crud-mod"].join(" ")});i.append(t),r.resolve(s(t,i))};return n.isCrud()?a.isEmpty(n.crudModulePart)?o.CZR_Helpers.getModuleTmpl({tmpl:"crud-module-part",module_type:"all_modules",module_id:n.id,control_id:n.control.id}).done(function(e){t(o.CZR_Helpers.parseTemplate(e)({}))}).fail(function(e){o.errare("renderModuleParts => fail response =>",e),r.reject("renderModuleParts => Problem when fetching the crud-module-part tmpl from server for module : "+n.id)}):(s("#tmpl-"+n.crudModulePart).length<1&&r.reject("renderModuleParts => no crud Module Part template for module "+n.id+". The template script id should be : #tmpl-"+n.crudModulePart),t(wp.template(n.crudModulePart)({}))):t(),r.promise()},getTemplateSelectorPart:function(e,t){var n,i=this;switch(e){case"rudItemPart":n=i.rudItemPart;break;case"ruItemPart":n=i.ruItemPart;break;case"modOptInputList":n=i.modOptInputList;break;case"itemInputList":n=a.isFunction(i.itemInputList)?i.itemInputList(t):i.itemInputList}if(a.isEmpty(n))throw new Error("No valid template has been found in getTemplateSelectorPart() "+i.id+". Aborting");return n},getViewEl:function(e){return s('[data-id = "'+e+'"]',this.container)},closeAllItems:function(t){var n=this,e=a.clone(n.itemCollection()),i=a.filter(e,function(e){return e.id!=t});return a.each(i,function(e){n.czr_Item.has(e.id)&&"expanded"==n.czr_Item(e.id)._getViewState(e.id)&&n.czr_Item(e.id).viewState.set("closed")}),this},_adjustScrollExpandedBlock:function(e,t){if(e.length&&!a.isUndefined(this.getModuleSection())){var n,i=s(".accordion-section-content",this.section.container),r=i.scrollTop(),o=t||90;setTimeout(function(){e.offset().top+e.height()+o>s(window.top).height()&&0<(n=e.offset().top+e.height()+o-s(window.top).height())&&i.animate({scrollTop:r+n},500)},50)}},closeRemoveDialogs:function(){if(a.isArray(this.itemCollection()))return this.czr_Item.each(function(e){e.removeDialogVisible(!1)}),this},_makeItemsSortable:function(e){if(!wp.media.isTouchDevice&&s.fn.sortable){var n=this;s("."+n.control.css_attr.items_wrapper,n.container).sortable({handle:"."+n.control.css_attr.item_sort_handle,start:function(){},update:function(e,t){n._getSortedDOMItemCollection().done(function(e){n.itemCollection.set(e)}).then(function(){!function(){a.has(n,"preItem")&&n.preItemExpanded.set(!1),n.closeAllItems().closeRemoveDialogs();var e=function(){o.previewer.refresh()};"postMessage"!=o(n.control.id).transport||o.CZR_Helpers.hasPartRefresh(n.control.id)||(e=a.debounce(e,500))(),n.trigger("item-collection-sorted")}()})}})}},toggleTabVisibility:function(e){var t=this;s(t.container).find("li"),s(t.container).find("section");s(".tabs nav li",t.container).each(function(){s(this).removeClass("tab-current").addClass("tab-inactive")}),s(t.container).find('li[data-tab-id="'+e+'"]').addClass("tab-current").removeClass("tab-inactive"),s("section",t.container).each(function(){s(this).removeClass("content-current")}),s(t.container).find('section[id="'+e+'"]').addClass("content-current")},setupTabNav:function(){var i=this;setTimeout(function(){(function(){var e=s.Deferred(),t=s(".tabs nav li",i.container);t.each(function(){s(this).removeClass("tab-current").addClass("tab-inactive")}),t.first().addClass("tab-current").removeClass("tab-inactive"),s("section",i.container).first().addClass("content-current");var n=t.length;return t.each(function(){s(this).addClass(0<n?"cols-"+n:"")}),e.resolve().promise()})().done(function(){s(".tabs",i.container).show()})},20)}})}(wp.customize,jQuery,_);var CZRDynModuleMths=CZRDynModuleMths||{};!function(s,a,l){a.extend(CZRDynModuleMths,{initialize:function(e,t){var n=this;s.CZRModule.prototype.initialize.call(n,e,t),a.extend(n,{itemPreAddEl:""}),n.preItemsWrapper="",n.preItemExpanded=new s.Value(!1),n.itemAddedMessage=serverControlParams.i18n.successMessage;var i=function(e){n.addItem(e).done(function(e){n.czr_Item(e,function(e){e.embedded.then(function(){e.viewState("expanded")})})}).fail(function(e){s.errare("module.addItem failed on add_item",e)})};n.userEventMap=new s.Value([{trigger:"click keydown",selector:["."+n.control.css_attr.open_pre_add_btn,"."+n.control.css_attr.cancel_pre_add_btn].join(","),name:"pre_add_item",actions:["closeAllItems","closeRemoveDialogs",function(e){var t={addTheItem:!0};this.trigger("is-item-addition-possible",t),t.addTheItem&&this.hasPreItem?this.preItemExpanded.set(!this.preItemExpanded()):i(e)}]},{trigger:"click keydown",selector:"."+n.control.css_attr.add_new_btn,name:"add_item",actions:function(e){n.closeRemoveDialogs(e).closeAllItems(e),i(e)}}])},ready:function(){var t=this;t.setupDOMListeners(t.userEventMap(),{dom_el:t.container}),t.preItem=new s.Value(t.getDefaultItemModel()),t.preItemExpanded.callbacks.add(function(e){e?t.renderPreItemView().done(function(e){t.preItemsWrapper=e,t.preItem(t.getDefaultItemModel()),t.trigger("before-pre-item-input-collection-setup"),t.setupPreItemInputCollection()}).fail(function(e){s.errorLog("Pre-Item : "+e)}):a.when(t.preItemsWrapper.remove()).done(function(){t.preItem.czr_Input={},t.preItemsWrapper=null,t.trigger("pre-item-input-collection-destroyed")}),t._togglePreItemViewExpansion(e)}),s.CZRModule.prototype.ready.call(t)},setupPreItemInputCollection:function(){var n=this;n.preItem.czr_Input=new s.Values,a("."+n.control.css_attr.pre_add_wrapper,n.container).find("."+n.control.css_attr.sub_set_wrapper).each(function(e){var t=a(this).find("[data-czrtype]").attr("data-czrtype")||"sub_set_"+e;n.preItem.czr_Input.add(t,new n.inputConstructor(t,{id:t,type:a(this).attr("data-input-type"),container:a(this),input_parent:n.preItem,module:n,is_preItemInput:!0})),n.preItem.czr_Input(t).ready()}),n.trigger("pre-item-input-collection-ready")},itemCanBeInstantiated:function(){return!0},addItem:function(n){var t=a.Deferred();if(!this.itemCanBeInstantiated())return t.reject().promise();var i=this,r=i.preItem(),o=function(){i.preItemExpanded.set(!1)};if(l.isEmpty(r)||!l.isObject(r))return s.errorLog("addItem : an item_candidate should be an object and not empty. In : "+i.id+". Aborted."),t.reject().promise();o=l.debounce(o,200);var e=function(){var e=i.instantiateItem(r,!0);return l.isFunction(e)?e.ready():s.errare("populateSavedItemCollection => Could not instantiate item in module "+i.id,r),e};if(serverControlParams.isDevMode)e();else try{e()}catch(e){return s.errare("populateSavedItemCollection : "+e),t.reject().promise()}return i.czr_Item.has(r.id)?(a.Deferred(function(){var t=this;i.czr_Item(r.id).isReady.then(function(){o(),i.trigger("item-added",r);var e=function(){s.previewer.unbind("ready",e),t.resolve()};i.refresh_on_add_item?"postMessage"!=s(i.control.id).transport||!l.has(n,"dom_event")||l.has(n.dom_event,"isTrigger")||s.CZR_Helpers.hasPartRefresh(i.control.id)?t.resolve():(s.previewer.bind("ready",e),s.previewer.refresh()):t.resolve()})}).always(function(){t.resolve(r.id)}),t.promise()):t.reject("populateSavedItemCollection : the item "+r.id+" has not been instantiated in module "+i.id).promise()}})}(wp.customize,jQuery,_);CZRDynModuleMths=CZRDynModuleMths||{};!function(r,o,s){o.extend(CZRDynModuleMths,{renderPreItemView:function(e){var n=this,i=o.Deferred();if(s.isObject(n.preItemsWrapper)&&0<n.preItemsWrapper.length)return i.resolve(n.preItemsWrapper).promise();var t=function(e){!s.isEmpty(e)&&n.container||i.reject("renderPreItemView => Missing html template for module : "+n.id);var t=o("."+n.control.css_attr.pre_add_item_content,n.container);t.prepend(o("<div>",{class:"pre-item-wrapper"})),t.find(".pre-item-wrapper").append(e),i.resolve(t.find(".pre-item-wrapper")).promise()};return s.isEmpty(n.itemPreAddEl)?r.CZR_Helpers.getModuleTmpl({tmpl:"pre-item",module_type:n.module_type,module_id:n.id,control_id:n.control.id}).done(function(e){t(r.CZR_Helpers.parseTemplate(e)())}).fail(function(e){i.reject(["renderPreItemView for module : ",n.id,e].join(" "))}):(o("#tmpl-"+n.itemPreAddEl).length<1&&i.reject("renderPreItemView => Missing itemPreAddEl or template in module "+n.id),t(wp.template(n.itemPreAddEl)())),i.promise()},_getPreItemView:function(){return o("."+this.control.css_attr.pre_add_item_content,this.container)},_togglePreItemViewExpansion:function(t){var n=this;o("."+n.control.css_attr.pre_add_item_content,n.container).slideToggle({duration:200,done:function(){var e=o("."+n.control.css_attr.open_pre_add_btn,n.container);o(this).toggleClass("open",t),t?e.find(".fas").removeClass("fa-plus-square").addClass("fa-minus-square"):e.find(".fas").removeClass("fa-minus-square").addClass("fa-plus-square"),e.toggleClass("active",t),o(n.container).toggleClass(n.control.css_attr.adding_new,t),n._adjustScrollExpandedBlock(o(this),120)}})},toggleSuccessMessage:function(e){var t=this,n=t.itemAddedMessage,i=o("."+t.control.css_attr.pre_add_wrapper,t.container);return $_success_wrapper=o("."+t.control.css_attr.pre_add_success,t.container),"on"==e?($_success_wrapper.find("p").text(n),$_success_wrapper.css("z-index",1000001).css("height",i.height()+"px").css("line-height",i.height()+"px")):$_success_wrapper.attr("style",""),t.container.toggleClass("czr-model-added","on"==e),this}})}(wp.customize,jQuery,_);var CZRBaseControlMths=CZRBaseControlMths||{};!function(i,e,r){e.extend(CZRBaseControlMths,{initialize:function(e,t){var n=this;n.css_attr=r.has(serverControlParams,"css_attr")?serverControlParams.css_attr:{},i.Control.prototype.initialize.call(n,e,t),n.bind("czr-partial-refresh-done",function(){r.has(n,"czr_moduleCollection")&&r.each(n.czr_moduleCollection(),function(e){n.czr_Module(e.id)&&n.czr_Module(e.id).sendModuleInputsToPreview({isPartialRefresh:!0})})})},refreshPreview:function(e){this.previewer.refresh()}})}(wp.customize,jQuery,_);var CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(l,c,d){c.extend(CZRBaseModuleControlMths,{initialize:function(e,t){var n=this;if(!l.has(e))throw new Error("Missing a registered setting for control : "+e);n.czr_Module=new l.Values,n.czr_moduleCollection=new l.Value,n.czr_moduleCollection.set([]),n.moduleCollectionReady=c.Deferred(),n.moduleCollectionReady.done(function(e){n.czr_moduleCollection.callbacks.add(function(){return n.moduleCollectionReact.apply(n,arguments)})}),l.CZRBaseControl.prototype.initialize.call(n,e,t),l.section(n.section(),function(e){e.expanded.bind(function(e){n.czr_Module.each(function(e){e.closeAllItems().closeRemoveDialogs(),d.has(e,"preItem")&&e.preItemExpanded(!1)})})})},ready:function(){var n=this,i={};try{n.getSavedModules()}catch(e){return l.errare("api.CZRBaseControl::ready() => error on control.getSavedModules()",e),void n.moduleCollectionReady.reject()}d.each(n.getSavedModules(),function(t,e){if(i=t,serverControlParams.isDevMode)n.instantiateModule(t,{});else try{n.instantiateModule(t,{})}catch(e){return void l.errare("api.CZRBaseControl::Failed to instantiate module "+t.id,e)}n.container.attr("data-module",t.id)}),n.moduleCollectionReady.resolve(i)},getDefaultModuleApiModel:function(){return{id:"",module_type:"",modOpt:{},items:[],crud:!1,hasPreItem:!0,refresh_on_add_item:!0,multi_item:!1,sortable:!1,control:{},section:""}},getSavedModules:function(){var n=this,e=[],i=n.params.module_type,r=[],o=[],s={};l.CZR_Helpers.isMultiItemModule(i)||d.isEmpty(l(n.id)())||d.isObject(l(n.id)())||l.errare("api.CZRBaseControl::getSavedModules => module Control Init for "+n.id+" : a mono item module control value should be an object if not empty.");var t=l.CZR_Helpers.getControlSettingId(n.id),a=l(t)();return r=d.isEmpty(a)?[]:d.isArray(a)?a:[a],d.each(r,function(e,t){d.isObject(e)?(d.isEmpty(e)||d.each(e,function(e,t){d.isString(t)||l.errare("api.CZRBaseControl::::getSavedModules => item not well formed in control : "+n.id+" => module type => "+n.params.module_type,r)}),l.CZR_Helpers.hasModuleModOpt(i)&&0===t&&(d.has(e,"id")?l.errare("api.CZRBaseControl::getSavedModules : the module "+i+" in control "+n.id+" has no mod_opt defined while it should."):s=e),d.has(e,"is_mod_opt")||o.push(e)):l.errare("api.CZRBaseControl::::getSavedModules => an item must be an object in control "+n.id+" => module type => "+n.params.module_type,r)}),e.push({id:l.CZR_Helpers.getOptionName(n.id)+"_"+n.params.type,module_type:n.params.module_type,section:n.section(),modOpt:c.extend(!0,{},s),items:c.extend(!0,[],o)}),e},isModuleRegistered:function(e){return!d.isUndefined(d.findWhere(this.czr_moduleCollection(),{id:e}))}})}(wp.customize,jQuery,_);CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(s,e,a){e.extend(CZRBaseModuleControlMths,{instantiateModule:function(e,t){if(!a.has(e,"id"))throw new Error("CZRModule::instantiateModule() : a module has no id and could not be added in the collection of : "+this.id+". Aborted.");var n=this;if((a.isUndefined(t)||a.isEmpty(t))&&(t=n.getModuleConstructor(e)),!a.isEmpty(e.id)&&n.czr_Module.has(e.id))throw new Error("The module id already exists in the collection in control : "+n.id);var i=n.prepareModuleForAPI(e);if(n.czr_Module.add(i.id,new t(i.id,i)),!n.czr_Module.has(i.id))throw new Error("instantiateModule() : instantiation failed for module id "+i.id+" in control "+n.id);return n.czr_Module(i.id)},getModuleConstructor:function(e){var t;if(!a.has(e,"module_type"))throw new Error("CZRModule::getModuleConstructor : no module type found for module "+e.id);if(!a.has(s.czrModuleMap,e.module_type))throw new Error("Module type "+e.module_type+" is not listed in the module map api.czrModuleMap.");var n=s.czrModuleMap[e.module_type].mthds;if(t=(s.czrModuleMap[e.module_type].crud?s.CZRDynModule:s.CZRModule).extend(n),a.isUndefined(t)||a.isEmpty(t)||!t)throw new Error("CZRModule::getModuleConstructor : no constructor found for module type : "+e.module_type+".");return t},prepareModuleForAPI:function(i){if(!a.isObject(i))throw new Error("prepareModuleForAPI : a module must be an object to be instantiated.");var r=this,o={};return a.each(r.getDefaultModuleApiModel(),function(e,t){var n=i[t];switch(t){case"id":a.isEmpty(n)?o[t]=r.generateModuleId(i.module_type):o[t]=n;break;case"module_type":if(!a.isString(n)||a.isEmpty(n))throw new Error("prepareModuleForAPI : a module type must a string not empty");o[t]=n;break;case"items":if(!a.isArray(n))throw new Error("prepareModuleForAPI : a module item list must be an array");o[t]=n;break;case"modOpt":if(!a.isObject(n))throw new Error("prepareModuleForAPI : a module modOpt property must be an object");o[t]=n;break;case"crud":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].crud,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "crud" must be a boolean');o[t]=n||!1;break;case"hasPreItem":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].hasPreItem,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "hasPreItem" must be a boolean');o[t]=n||!1;break;case"refresh_on_add_item":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].refresh_on_add_item,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "refresh_on_add_item" must be a boolean');o[t]=n||!1;break;case"multi_item":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].multi_item,a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].crud);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "multi_item" must be a boolean');o[t]=n||!1;break;case"sortable":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].sortable,a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].crud),a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].multi_item);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "sortable" must be a boolean');o[t]=n||!1;break;case"control":o[t]=r;break;case"section":if(!a.isString(n)||a.isEmpty(n))throw new Error("prepareModuleForAPI : a module section must be a string not empty");o[t]=n;break;case"dirty":o[t]=n||!1}}),o},generateModuleId:function(e,t,n){if(100<(n=n||1))throw new Error("Infinite loop when generating of a module id.");var i=this,r=e+"_"+(t=t||i._getNextModuleKeyInCollection());if(!a.has(i,"czr_moduleCollection")||!a.isArray(i.czr_moduleCollection()))throw new Error("The module collection does not exist or is not properly set in control : "+i.id);return i.isModuleRegistered(r)?(t++,n++,i.generateModuleId(e,t,n)):r},_getNextModuleKeyInCollection:function(){var e={},t=0;return a.isEmpty(this.czr_moduleCollection())||(e=a.max(this.czr_moduleCollection(),function(e){return parseInt(e.id.replace(/[^\/\d]/g,""),10)}),t=parseInt(e.id.replace(/[^\/\d]/g,""),10)+1),t}})}(wp.customize,jQuery,_);CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(s,a,l){a.extend(CZRBaseModuleControlMths,{updateModulesCollection:function(e){var t=this,n=t.czr_moduleCollection(),i=a.extend(!0,[],n);if(l.has(e,"collection"))t.czr_moduleCollection.set(e.collection,e.data||{});else{if(!l.has(e,"module"))throw new Error("updateModulesCollection, no module provided "+t.id+". Aborting");var r=t.prepareModuleForAPI(l.clone(e.module));l.findWhere(i,{id:r.id})?l.each(n,function(e,t){e.id==r.id&&(i[t]=r)}):i.push(r);var o={};l.has(e,"data")&&(o=a.extend(!0,{},e.data),a.extend(o,{module:r})),t.czr_moduleCollection.set(i,o)}},moduleCollectionReact:function(t,e,n){var i=l.size(t)>l.size(e),r=l.size(e)>l.size(t);l.size(e),l.size(t);if(is_collection_sorted=!1,r){var o=l.filter(e,function(e){return l.isUndefined(l.findWhere(t,{id:e.id}))});o=o[0],this.czr_Module.remove(o.id)}if(l.isObject(n)&&l.has(n,"module")&&(n.module_id=n.module.id,n.moduleRegistrationParams=n.module,n.module=this.prepareModuleForDB(a.extend(!0,{},n.module))),!i)if(serverControlParams.isDevMode)s(this.id).set(this.filterModuleCollectionBeforeAjax(t),n);else try{s(this.id).set(this.filterModuleCollectionBeforeAjax(t),n)}catch(e){s.errare("api.CZRBaseControl::moduleCollectionReact => error when firing control.filterModuleCollectionBeforeAjax( to )",e)}},filterModuleCollectionBeforeAjax:function(e){var t,i=this,n=a.extend(!0,[],e),r=[];if(l.each(n,function(e,t){var n=a.extend(!0,{},e);r[t]=i.prepareModuleForDB(n)}),1<l.size(n))throw new Error("There should not be several modules in the collection of control : "+i.id);if(!l.isArray(n)||l.isEmpty(n)||!l.has(n[0],"items"))throw new Error("The setting value could not be populated in control : "+i.id);var o=n[0].id;if(!i.czr_Module.has(o))throw new Error("The single module control ("+i.id+") has no module registered with the id "+o);var s=i.czr_Module(o);if(!l.isArray(s().items))throw new Error("The module "+o+" should be an array in control : "+i.id);return t=s.isMultiItem()?s().items:s().items[0]||[],t=s.filterItemsBeforeCoreApiSettingValue(t),s.hasModOpt()?l.union([s().modOpt],t):t},prepareModuleForDB:function(e){if(!l.isObject(e))throw new Error("::prepareModuleForDB : a module must be an object.");var t={};if(!l.isArray(e.items))throw new Error("::prepareModuleForDB : a module item list must be an array");return l.each(e.items,function(e){if(!l.isObject(e))throw new Error("::prepareModuleForDB : a module item must be an object")}),t.items=e.items,t}})}(wp.customize,jQuery,_),function(e,t,n){t.extend(CZRBaseControlMths,e.Events),t.extend(e.Control.prototype,e.Events),t.extend(CZRModuleMths,e.Events),t.extend(CZRItemMths,e.Events),t.extend(CZRModOptMths,e.Events),t.extend(CZRBaseControlMths,e.CZR_Helpers),t.extend(CZRInputMths,e.CZR_Helpers),t.extend(CZRModuleMths,e.CZR_Helpers),e.CZRInput=e.Value.extend(CZRInputMths),e.czrInputMap=e.czrInputMap||{},t.extend(e.czrInput