PageSourceSearch

https://www.electrolux.com.cn/Static/js/recipeListing.96568dbd8532f04c5b5e.js

js electrolux.com.cn collected 2026-10-04 02:10:26 UTC 5,781 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdigitas_design=self.webpackChunkdigitas_design||[]).push([[8451],{62448:(e,t,i)=>{i.r(t),i.d(t,{default:()=>c});var n=i(49401),r=i(71964),o=i.n(r),a=i(32513),s=i(74692);class c{constructor(){this.http=new n.A,this.createFilterStickySidebar=()=>{this.filterStickySidebar=new(o())(".js_filter-blocks__sticky",{containerSelector:"#recipeListingContainer_Block",innerWrapperSelector:".js_filter-blocks__inner",topSpacing:s(".js-navigation-wrapper").outerHeight(),minWidth:ELECTROLUX.breakpoint.medium||0})},this.loadMoreRecipe=()=>{let e=1,t=s("html").attr("data-lang"),i="/api/eluxrecipe/getrecipebyquery";const n=this;this.$viewMoreButton.on("click",(function(r){r.preventDefault(),r.stopPropagation(),e++;const o={},a=s("#recipeMoreFilters");a.find("fieldset").each((function(){const e=s(this),t=[];e.find(".buttonFilterRecipe").each((function(){s(this).hasClass("active")&&t.push(s(this).attr("data-key-filter"))})),o[e.attr("data-filter-name")]=t}));const c={Page:e,Filters:o,ContentLink:a.attr("config-contentlink"),SearchRoot:a.attr("config-searchroot"),PageSize:a.attr("config-pagesize"),Language:t};n.recipeList(i,c)})),s("#recipeListingContainer_Block .buttonFilterRecipe, #recipeListingContainer_Block .filter-blocks .clear-all").on("click",(async function(){e=1;var r={},o=0;s(".recipe-listing-container .recipe-list-block .container ul.row").empty(),s(this).toggleClass("active");var a=s("#recipeMoreFilters");a.find("fieldset").each((function(){const e=s(this),t=[];e.find(".buttonFilterRecipe").each((function(){s(this).hasClass("active")&&(t.push(s(this).attr("data-key-filter")),o++)})),r[e.attr("data-filter-name")]=t}));const c={Page:e,Filters:r,ContentLink:a.attr("config-contentlink"),SearchRoot:a.attr("config-searchroot"),PageSize:a.attr("config-pagesize"),Language:t};await n.recipeList(i,c),n.filterStickySidebar.updateSticky(),o>0?s("#recipeListingContainer_Block .filter-blocks_row .clear-all").removeClass("d-none").find("span").text(o):s("#recipeListingContainer_Block .filter-blocks_row .clear-all").addClass("d-none")}))},this.recipeList=async(e,t)=>{const i=await this.http.post(e,t);this.recipeItem(i)},this.recipeItem=e=>{const t=JSON.parse(e),i=document.createRange().createContextualFragment(t.html),n=s(i).find("#recipeListingContainer_Block .recipe-list-block .container ul.row");null!=n&&s(n).children()&&s("#recipeListingContainer_Block .recipe-list-block .container ul.row").append(s(n).children("li.recipe")),t.HasMore?this.$viewMoreButton.show():this.$viewMoreButton.hide(),s(".items-count span").html(t.TotalRecipes),this.updatePath(t.HasMore)},this.updatePath=e=>{const t=+this.$viewMoreButton.attr("data-current-page")+1,i=new URLSearchParams(window.location.search);window.history.pushState({page:t},document.querySelector("title").innerHTML,`${window.location.origin}${window.location.pathname}?page=${t}`),i.set("page",`${t}`),this.$viewMoreButton.attr("data-current-page",t),(0,a.Zf)(this.$viewMoreButton[0],e,t,window.location.pathname)},this.$viewMoreButton=s("#loadMoreRecipeBlock"),ELECTROLUX.isDesktop&&s(".js_filter-blocks").css("height",s(".js_filter-blocks__inner").outerHeight()),this.createFilterStickySidebar(),this.loadMoreRecipe()}}},32513:(e,t,i)=>{i.d(t,{Jb:()=>a,U5:()=>p,Zf:()=>c,bL:()=>o,gg:()=>d});var n=i(79061),r=i(74692);const o=async(e,t=!1)=>{const{obj:i,returnData:n,itemListcontainer:o,itemListcontainerSelector:s,childrenSelector:c,emptyItemBlock:l,clearList:p,customHandler:d,loadCompare:h,callback:g,loadMoreButton:u,canonicalLink:f,pageName:w,newList:m,itemListContainerWrapperSelector:k,isPrepend:S,isUpdateUrl:b=!0}=e;try{p&&r(o).empty();const e=document.createRange().createContextualFragment(n.html),y=r(e).find(s);if(m)r(o).parent().html(r(e).find(k).html()),h&&h(),g(n);else if(null!=y){if(r(y).children().length>0){const e=r(y).children(c);if(S){const t=o.clone(!0).empty();t.append(e);const i=function(e,t=null){const i=r(e).clone(!0);i.css({position:"absolute",top:"0",opacity:0,"z-index":-9999}),t?r(t).append(i):r("body").append(i);const n=i.height();return i.remove(),n}(t,o.parent()),n=window.scrollY;r(o).prepend(e),window.scrollTo(0,n+i)}else r(o).append(e);h&&h()}g(n)}d(n),l&&(t?l.addClass("is-filtered"):l.removeClass("is-filtered"),n.Paging.TotalItemCount>0?l.css("display","none"):l.css("display","block")),b&&a(i,w,u,f,n.HasMore)}catch(e){console.error(e)}},a=(e,t,i,n,r)=>{if(window.history&&e){const o=s(e);c(i,r,e.Page,o),l(n,e.Page),window.history.pushState({page:e},t,o)}},s=e=>{let t=window.location.pathname;const i=!!e.FriendlyFilters;if("URLSearchParams"in window){const n=new URLSearchParams(window.location.search);if(i){n.get("filter")&&n.delete("filter");for(const[t,i]of Object.entries(e.FriendlyFilters)){const e=i;e.length>0&&e.join("+")?n.set(t,e.join("+")):n.delete(t)}}else e.Filters&&e.Filters.length?n.set("filter",encodeURIComponent(JSON.stringify(e.Filters))):n.delete("filter");e.Sort&&e.Sort.length&&e.IsSortDefault&&"false"===e.IsSortDefault?n.set("sort",e.Sort):n.delete("sort"),e.Page>1?n.set("page",encodeURIComponent(JSON.stringify(e.Page))):n.delete("page");const r=n.toString();r&&(t+="?"+r)}return i?decodeURIComponent(t):t},c=(e,t,i,n)=>{if(!e)return;if(!t)return void e.setAttribute("href",n);const r=i+1,o=n.includes("page")?`${n.slice(0,n.length-1)}${r}`:n.includes("?")?`${n}&page=${r}`:`${n}?page=${r}`;e.setAttribute("href",o)},l=(e,t)=>
1{if(!e)return;const i=e.attr("href");if(!i)return;let n=i.includes("page=")?`${i.slice(0,i.length-1)}${t}`:i.includes("?")?`${i}&page=${t}`:`${i}?page=${t}`;n.includes("page=1")&&(n=`${i.slice(0,n.length-7)}`),e.attr("href",n)},p=(e,t,i,n=!1)=>{e&&(e[t].includes(i)||(!n&&i||(e[t]=[]),i&&e[t].push(i)))},d=(e,t,i,r=!1)=>{e&&(r?e[t]=[]:e[t].includes(i)&&(0,n.E6)(e[t],i))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.