{"version":3,"sources":["ecom.product.list.with.facets.js"],"names":["e4","productListWithFacets","debug","jProductList","jQuery","init","objContext","length","event","util","registerEvents","bindEvents","context","get","products","facets","set","window","on","clear","preventDefault","addToCart","target","loadNextPage","apply","setSort","loadProductsAndFacets","keyCode","clearSelectedFacetOption","currentTarget","clearAllSelectedFacetOptions","ajax","objAjaxSettings","jqXHR","extend","method","dataType","url","getFeedUrl","cache","data","getParamsFromForm","fail","textStatus","errorThrown","find","html","always","loading","resolveWait","removeClass","setPageNumber","currentPageNumber","beforeSend","addClass","done","jsonData","trigger","build","list","builded","boolIncludeFacets","strReturnValue","settings","ecom","feedUrl","strCustomUrl","looksLikeUrl","includes","serialize","showLoadMoreButton","hideLoadMoreButton","observeIntersectionOnLastItemOrShowLoadMoreButton","hasMorePages","pageCount","isShowLoadMoreButtonIntervalReached","lazyLoad","buttonShowInterval","isNextPageFullPageSize","productCount","pageSize","isLoadMoreButtonDisabled","autoLoadCount","observeIntersectionOnLastItem","intPageNumber","val","getPageNumberByProductItemNode","domNode","intPageSize","intProductItemIndex","closest","parent","index","Math","ceil","jInput","objSortInfo","jSelectMultiple","objSortInfoDefault","sortByPropertyName","sortOrderPropertyName","boolSortIsDefault","setScrollTop","intScrollTop","scrollTop","getScrollTop","floor","hideAlert","alcadon","toggleListView","setStateByProductlistContext","observer","isSupported","setSkeletonItemHeight","observeIntersectionOnSkeleton","prop","showAlert","jProducts","strItemClasses","arrProductsHtml","map","p","getListItemHtmlWithItemClasses","listItemHtml","join","toggleState","toggleAll","strListItemHtml","loadProductsByPageNumber","fnCallback","arrDomObservables","last","toArray","bind","loadNextPageOnLastItemIntersection","observerOptions","objEntry","objObserver","isIntersecting","unobserve","domLastItem","intNextPageNumber","appendItems","each","intIndex","objProduct","append","itemAppended","getSkeletonItem","intFirstItemHeight","not","first","outerHeight","intFirstExpandedItem","css","height","arrObservableSkeletons","filter","loadPageOnSkeletonIntersection","jEntryTarget","parseInt","replaceSkeletonItems","intPageNum","jSkeletonItem","undefined","replaceWith","skeletonReplaced","navigateToProductPage","off","strProductPageUrl","jTriggerNode","when","then","attr","getSelection","toString","expendedState","expandedItems","location","href","domForm","disableAllSubmitButtonsInForm","require","js","jQueryValidate","jForm","objValidator","validate","submitHandler","product","enableAllSubmitButtonsInForm","valid","call","currentForm","selectMultiple","setSelection","selectedFacetOptionsCount","jNode","strFacetParameterName","strFacetOptionValue","jSelectedFacetOptionInput","jSelectedFacetOptionInputs","history","state","boolIsNavigatingToProductPage","objContextNew","replaceState","getBrowserUrl","scrollRestoration","pathname","arrParams","split","arrParamsToShowInUrl","arrParamNamesToExcludeFromUrl","showParamsInUrl","push","search","toLowerCase","i","strParamName"],"mappings":"AAAAA,GAAAC,sBAAA,CACAC,OAAA,EACAC,aAAAC,OAAA,iCACAC,KAAA,WACA,IAGAC,EAHA,IAAAN,GAAAC,sBAAAE,aAAAI,SACAP,GAAAC,sBAAAO,MAAAR,GAAAS,KAAAC,eAAA,8CAAA,yBACAV,GAAAC,sBAAAU,aACAL,EAAAN,GAAAC,sBAAAW,QAAAC,MACAb,GAAAC,sBAAAa,SAAAT,KAAAC,GACAN,GAAAC,sBAAAc,OAAAV,KAAAC,GACAN,GAAAC,sBAAAW,QAAAI,IAAAV,KAGAK,WAAA,WACAP,OAAAa,QAAAC,GAAA,eAAAlB,GAAAC,sBAAAW,QAAAO,OAEAnB,GAAAC,sBAAAE,aAAAe,GAAA,SAAA,qBAAA,SAAAV,GACAA,EAAAY,iBACApB,GAAAC,sBAAAa,SAAAO,UAAAb,EAAAc,UAEAtB,GAAAC,sBAAAE,aAAAe,GAAA,QAAA,2CAAA,SAAAV,GACAA,EAAAY,iBACApB,GAAAC,sBAAAa,SAAAS,iBAGAvB,GAAAC,sBAAAE,aAAAe,GAAA,SAAA,yBAAA,SAAAV,GACAA,EAAAY,iBACApB,GAAAC,sBAAAuB,MAAAhB,EAAAc,UAEAtB,GAAAC,sBAAAE,aAAAe,GAAA,SAAA,yBAAA,SAAAV,GACAR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cAAArJ,SAAA,YACAiJ,EAAAE,KAAA,SAAA,aAEA,IAAA,IAAAG,EAAA,EAAAA,EAAAR,EAAA3M,OAAAmN,IAAA,CACA,IAAAC,EAAAT,EAAAQ,GAAAP,MAAA,KAAA,GAAAM,cACA,KAAAE,IAAA,IAAAN,EAAAjJ,SAAAuJ,KAAA,IAAAN,EAAAjJ,SAAA8I,EAAAQ,GAAAD,gBACAL,EAAAG,KAAAL,EAAAQ,KAGA,IAAAd,GAAA,EAAAtM,EAAA8C,mBACAgK,EAAAG,KAAA,WAAAjN,EAAA8C,mBAEA,EAAAgK,EAAA7M,SACAuD,GAAA,IAAAsJ,EAAAxF,KAAA,MAGA,OAAA9D","file":"ecom.product.list.with.facets.js","sourcesContent":["e4.productListWithFacets = {\r\n debug: false,\r\n jProductList: jQuery( '.js-e-productlist-with-facets' ),\r\n init: function () {\r\n if ( e4.productListWithFacets.jProductList.length === 1 ) {\r\n e4.productListWithFacets.event = e4.util.registerEvents( 'build builded itemAppended skeletonReplaced', 'productListWithFacets' );\r\n e4.productListWithFacets.bindEvents();\r\n var objContext = e4.productListWithFacets.context.get();\r\n e4.productListWithFacets.products.init( objContext );\r\n e4.productListWithFacets.facets.init( objContext );\r\n e4.productListWithFacets.context.set( objContext );\r\n }\r\n },\r\n bindEvents: function () {\r\n jQuery( window ).on( 'beforeunload', e4.productListWithFacets.context.clear );\r\n\r\n e4.productListWithFacets.jProductList.on( 'submit', '.js-e-product-form', function ( event ) {\r\n event.preventDefault();\r\n e4.productListWithFacets.products.addToCart( event.target );\r\n } );\r\n e4.productListWithFacets.jProductList.on( 'click', '.js-e-productlist-load-more-products-btn', function ( event ) {\r\n event.preventDefault();\r\n e4.productListWithFacets.products.loadNextPage();\r\n } );\r\n\r\n e4.productListWithFacets.jProductList.on( 'submit', '.js-e-productlist-form', function ( event ) {\r\n event.preventDefault();\r\n e4.productListWithFacets.apply( event.target );\r\n } );\r\n e4.productListWithFacets.jProductList.on( 'change', '.js-e-productlist-sort', function ( event ) {\r\n e4.productListWithFacets.setSort( event.target );\r\n e4.productListWithFacets.loadProductsAndFacets();\r\n } );\r\n\r\n e4.productListWithFacets.jProductList.on( 'selectionChanged.e4.selectMultiple', '.js-e-productlist-facet-group', function ( event ) {\r\n e4.productListWithFacets.facets.apply( event.target );\r\n } );\r\n e4.productListWithFacets.jProductList.on( 'keydown keypress', '.js-e-productlist-facet-option-input[type=\"text\"]', function ( event ) {\r\n //console.log( event.type, event.keyCode );\r\n if ( event.keyCode === 13 ) {\r\n event.preventDefault();\r\n e4.productListWithFacets.facets.apply( event.target );\r\n }\r\n } );\r\n e4.productListWithFacets.jProductList.on( 'click', '.js-e-productlist-clear-selected-facet-option-btn', function ( event ) {\r\n event.preventDefault();\r\n e4.productListWithFacets.facets.clearSelectedFacetOption( event.currentTarget );\r\n } );\r\n e4.productListWithFacets.jProductList.on( 'click', '.js-e-productlist-clear-all-selected-facet-options-btn', function ( event ) {\r\n event.preventDefault();\r\n e4.productListWithFacets.facets.clearAllSelectedFacetOptions();\r\n } );\r\n },\r\n ajax: function ( objAjaxSettings ) {\r\n var jqXHR = jQuery.ajax( jQuery.extend( {\r\n method: 'GET',\r\n dataType: 'json',\r\n url: e4.productListWithFacets.getFeedUrl(),\r\n cache: false,\r\n data: e4.productListWithFacets.getParamsFromForm(),\r\n }, objAjaxSettings ) );\r\n\r\n jqXHR.fail( function ( jqXHR, textStatus, errorThrown ) {\r\n e4.productListWithFacets.jProductList.find( '.js-e-productlist-products' ).html( '