{"version":3,"file":"../woocommerce-222.min.js","sources":["woocommerce-222.js"],"sourcesContent":["/**\n * WooCommerce Script\n * \n * Replaces the original WooCommerce `woocommerce.js`.\n */\n\n/* global Cookies */\njQuery( function( $ ) {\n\t// Orderby\n\t$( '.woocommerce-ordering' ).on( 'change', 'select.orderby', function() {\n\t\t$( this ).closest( 'form' ).trigger( 'submit' );\n\t});\n\n\t// Target quantity inputs on product pages\n\t$( 'input.qty:not(.product-quantity input.qty)' ).each( function() {\n\t\tvar min = parseFloat( $( this ).attr( 'min' ) );\n\n\t\tif ( min >= 0 && parseFloat( $( this ).val() ) < min ) {\n\t\t\t$( this ).val( min );\n\t\t}\n\t});\n\n\tvar noticeID = $( '.woocommerce-store-notice' ).data( 'noticeId' ) || '',\n\t\tcookieName = 'store_notice' + noticeID;\n\n\t// Check the value of that cookie and show/hide the notice accordingly\n\tif ( 'hidden' === Cookies.get( cookieName ) ) {\n\t\t$( '.woocommerce-store-notice' ).hide();\n\t} else {\n\t\t$( '.woocommerce-store-notice' ).show();\n\t}\n\n\t// Set a cookie and hide the store notice when the dismiss button is clicked\n\t$( '.woocommerce-store-notice__dismiss-link' ).on( 'click', function( event ) {\n\t\tCookies.set( cookieName, 'hidden', { path: '/' } );\n\t\t$( '.woocommerce-store-notice' ).hide();\n\t\tevent.preventDefault();\n\t});\n\n\t// CHANGE: Remove \"Make form field descriptions toggle on focus.\"\n\n\t$( '.woocommerce-input-wrapper' ).on( 'click', function( event ) {\n\t\tevent.stopPropagation();\n\t} );\n\n\t// CHANGE: Remove \"Make form field descriptions toggle on focus.\"\n\n\t// Common scroll to element code.\n\t$.scroll_to_notices = function( scrollElement ) {\n\t\tif ( scrollElement.length ) {\n\t\t\t$( 'html, body' ).animate( {\n\t\t\t\tscrollTop: ( scrollElement.offset().top - 100 )\n\t\t\t}, 1000 );\n\t\t}\n\t};\n\n\t// Show password visiblity hover icon on woocommerce forms\n\t$( '.woocommerce form .woocommerce-Input[type=\"password\"]' ).wrap( '' );\n\t// Add 'password-input' class to the password wrapper in checkout page.\n\t$( '.woocommerce form input' ).filter(':password').parent('span').addClass('password-input');\n\t$( '.password-input' ).append( '' );\n\n\t$( '.show-password-input' ).on( 'click',\n\t\tfunction() {\n\t\t\tif ( $( this ).hasClass( 'display-password' ) ) {\n\t\t\t\t$( this ).removeClass( 'display-password' );\n\t\t\t} else {\n\t\t\t\t$( this ).addClass( 'display-password' );\n\t\t\t}\n\t\t\tif ( $( this ).hasClass( 'display-password' ) ) {\n\t\t\t\t$( this ).siblings( ['input[type=\"password\"]'] ).prop( 'type', 'text' );\n\t\t\t} else {\n\t\t\t\t$( this ).siblings( 'input[type=\"text\"]' ).prop( 'type', 'password' );\n\t\t\t}\n\t\t}\n\t);\n});\n"],"names":["jQuery","$","on","this","closest","trigger","each","min","parseFloat","attr","val","cookieName","data","Cookies","get","hide","show","event","set","path","preventDefault","stopPropagation","scroll_to_notices","scrollElement","length","animate","scrollTop","offset","top","wrap","filter","parent","addClass","append","hasClass","removeClass","siblings","prop"],"mappings":"AAOAA,OAAQ,SAAUC,GAEjBA,EAAG,yBAA0BC,GAAI,SAAU,iBAAkB,WAC5DD,EAAGE,MAAOC,QAAS,QAASC,QAAS,YAItCJ,EAAG,8CAA+CK,KAAM,WACvD,IAAIC,EAAMC,WAAYP,EAAGE,MAAOM,KAAM,QAE1B,GAAPF,GAAYC,WAAYP,EAAGE,MAAOO,OAAUH,GAChDN,EAAGE,MAAOO,IAAKH,KAIjB,IACCI,EAAa,gBADGV,EAAG,6BAA8BW,KAAM,aAAgB,IAInE,WAAaC,QAAQC,IAAKH,GAC9BV,EAAG,6BAA8Bc,OAEjCd,EAAG,6BAA8Be,OAIlCf,EAAG,2CAA4CC,GAAI,QAAS,SAAUe,GACrEJ,QAAQK,IAAKP,EAAY,SAAU,CAAEQ,KAAM,MAC3ClB,EAAG,6BAA8Bc,OACjCE,EAAMG,mBAKPnB,EAAG,8BAA+BC,GAAI,QAAS,SAAUe,GACxDA,EAAMI,oBAMPpB,EAAEqB,kBAAoB,SAAUC,GAC1BA,EAAcC,QAClBvB,EAAG,cAAewB,QAAS,CAC1BC,UAAaH,EAAcI,SAASC,IAAM,KACxC,MAKL3B,EAAG,yDAA0D4B,KAAM,wCAEnE5B,EAAG,2BAA4B6B,OAAO,aAAaC,OAAO,QAAQC,SAAS,kBAC3E/B,EAAG,mBAAoBgC,OAAQ,6CAE/BhC,EAAG,wBAAyBC,GAAI,QAC/B,WACMD,EAAGE,MAAO+B,SAAU,oBACxBjC,EAAGE,MAAOgC,YAAa,oBAEvBlC,EAAGE,MAAO6B,SAAU,oBAEhB/B,EAAGE,MAAO+B,SAAU,oBACxBjC,EAAGE,MAAOiC,SAAU,CAAC,2BAA4BC,KAAM,OAAQ,QAE/DpC,EAAGE,MAAOiC,SAAU,sBAAuBC,KAAM,OAAQ"}