!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).si={})}(this,(function(e){"use strict";var n="undefined"!=typeof window&&window.flatpickr!==undefined?window.flatpickr:{l10ns:{}},t={weekdays:{shorthand:["ඉ","ස","අ","බ","බ්‍ර","සි","සෙ"],longhand:["ඉරිදා","සඳුදා","අඟහරුවාදා","බදාදා","බ්‍රහස්පතින්දා","සිකුරාදා","සෙනසුරාදා"]},months:{shorthand:["ජන","පෙබ","මාර්","අප්‍රේ","මැයි","ජුනි","ජූලි","අගෝ","සැප්","ඔක්","නොවැ","දෙසැ"],longhand:["ජනවාරි","පෙබරවාරි","මාර්තු","අප්‍රේල්","මැයි","ජුනි","ජූලි","අගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්"]},time_24hr:!0};n.l10ns.si=t;var d=n.l10ns;e.Sinhala=t,e["default"]=d,Object.defineProperty(e,"__esModule",{value:!0})}));#wpadminbar #wp-admin-bar-elementor_notes>.ab-item:before{content:"\e918";font-family:eicons;top:3px;font-size:18px}.e-route-notes{--color-editor-info:#58d0f5}.e-route-notes [data-radix-portal] :focus{outline:none}.e-route-notes.e-route-notes--notable .elementor-element,.e-route-notes.e-route-notes--notable .elementor-element *{cursor:url("data:image/svg+xml;charset=utf-8,%3Csvg width='22' height='25' viewBox='0 0 34 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M20.005 38.734l9.016-9.182a17.412 17.412 0 004.652-8.863c.656-3.359.32-6.84-.967-10.002a17.248 17.248 0 00-6.261-7.77A16.783 16.783 0 0017 0a16.783 16.783 0 00-9.445 2.917 17.248 17.248 0 00-6.26 7.77 17.606 17.606 0 00-.968 10.002 17.412 17.412 0 004.652 8.863l9.018 9.182A4.211 4.211 0 0017.001 40a4.212 4.212 0 003.004-1.266zM17 25.967c4.694 0 8.5-3.875 8.5-8.656 0-4.78-3.806-8.656-8.5-8.656s-8.5 3.876-8.5 8.656c0 4.78 3.806 8.656 8.5 8.656z' fill='%23A4AFB6'/%3E%3C/svg%3E") 0 25,pointer}.e-route-notes.e-route-notes--notable .elementor-element:hover{outline:1px solid var(--color-editor-info)}.e-route-notes.e-route-notes--notable .elementor-element iframe{pointer-events:none}wp.customize.controlConstructor['jeg-spacing'] = wp.customize.controlConstructor.default.extend({ ready: function() { 'use strict'; var control = this, value = {}; _.each( ['top', 'bottom', 'left', 'right'], function( dimension, index ) { // Get initial values and pre-populate the object. if ( control.container.has( '.' + dimension ).size() ) { value[ dimension ] = control.setting._value[ dimension ]; // Validate the value and show a warning if it's invalid. jQuery( control.selector + ' .' + dimension + '.input-wrapper' ).removeClass( 'invalid' ); // if ( false === jegValidateCSSValue( control.setting._value[ dimension ] ) ) { // jQuery( control.selector + ' .' + dimension + '.input-wrapper' ).addClass( 'invalid' ); //} control.container.on( 'change keyup paste', '.' + dimension + ' input', function() { var subValue = jQuery( this ).val(); // Validate the value and show a warning if it's invalid. if ( false === jegValidateCSSValue( subValue ) ) { jQuery( control.selector + ' .' + dimension + '.input-wrapper' ).addClass( 'invalid' ); } else { jQuery( control.selector + ' .' + dimension + '.input-wrapper' ).removeClass( 'invalid' ); // Only proceed if value is valid. value[ dimension ] = subValue; var string = JSON.stringify(value); control.setting.set( string ); // Refresh the preview. // The `postMessage` implementation is still incomplete for this field. if(control.setting.transport === 'refresh') wp.customize.previewer.refresh(); } }); } }); }, getValue: function() { 'use strict'; // The setting is saved in JSON return JSON.parse( this.setting.get() ); }, });