File "control.js.map"

Full Path: /home/jlklyejr/public_html/post-date/wp-content/plugins/kirki/kirki-packages/control-sortable/dist/control.js.map
File size: 2.18 KB
MIME-type: application/json
Charset: utf-8

{"mappings":"AAEAA,GAAGC,UAAUC,mBAAkB,kBAAqBF,GAAGC,UAAUE,QAAQC,OAAM,CAG9EC,MAAK,WAEJ,IAAIC,EAAOC,KAGXC,OAAQF,EAAQG,UAAUC,KAAI,eAAkBC,SAAUC,SAAQ,CAGjEC,OAAM,WACLP,EAAQQ,QAAQC,IAAKT,EAAQU,gBAE5BC,mBAAmBP,KAAI,MAASQ,MAAI,WAGtCV,OAAMD,MAASG,KAAI,gBAAmBS,OAAK,WAC1CX,OAAMD,MAASa,YAAW,8BAAiCC,QAAO,YAAeD,YAAW,mBAE3FD,OAAK,WAGPb,EAAQQ,QAAQC,IAAKT,EAAQU,iBAU/BA,UAAS,WACR,IAAIM,EAASd,OAAMD,KAAOE,UAAUC,KAAI,OACvCa,EAAM,UACPC,EAAEN,KAAMI,GAAK,SAAYG,GACjBjB,OAAQiB,GAAOC,SAAQ,cAC7BH,EAAOI,KAAMnB,OAAQiB,GAAOG,KAAI,aAG3BL","sources":["src/control.js"],"sourcesContent":["import \"./control.scss\";\n\nwp.customize.controlConstructor['kirki-sortable'] = wp.customize.Control.extend({\n\n\t// When we're finished loading continue processing\n\tready: function() {\n\n\t\tvar control = this;\n\n\t\t// Init sortable.\n\t\tjQuery( control.container.find( 'ul.sortable' ).first() ).sortable({\n\n\t\t\t// Update value when we stop sorting.\n\t\t\tupdate: function() {\n\t\t\t\tcontrol.setting.set( control.getNewVal() );\n\t\t\t}\n\t\t}).disableSelection().find( 'li' ).each( function() {\n\n\t\t\t// Enable/disable options when we click on the eye of Thundera.\n\t\t\tjQuery( this ).find( 'i.visibility' ).click( function() {\n\t\t\t\tjQuery( this ).toggleClass( 'dashicons-visibility-faint' ).parents( 'li:eq(0)' ).toggleClass( 'invisible' );\n\t\t\t});\n\t\t}).click( function() {\n\n\t\t\t// Update value on click.\n\t\t\tcontrol.setting.set( control.getNewVal() );\n\t\t});\n\t},\n\n\t/**\n\t * Getss thhe new vvalue.\n\t *\n\t * @since 3.0.35\n\t * @returns {Array} - Returns the value as an array.\n\t */\n\tgetNewVal: function() {\n\t\tvar items  = jQuery( this.container.find( 'li' ) ),\n\t\t\tnewVal = [];\n\t\t_.each( items, function( item ) {\n\t\t\tif ( ! jQuery( item ).hasClass( 'invisible' ) ) {\n\t\t\t\tnewVal.push( jQuery( item ).data( 'value' ) );\n\t\t\t}\n\t\t});\n\t\treturn newVal;\n\t}\n});\n"],"names":["wp","customize","controlConstructor","Control","extend","ready","control","this","jQuery","container","find","first","sortable","update","setting","set","getNewVal","disableSelection","each","click","toggleClass","parents","items","newVal","_","item","hasClass","push","data"],"version":3,"file":"control.js.map"}