PageSourceSearch

https://www.hunkemoller.ch/mobify/bundle/1087/with-recommender.js

js hunkemoller.ch collected 2026-10-04 01:41:14 UTC 6,610 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5283],{3542(e,t,n){n.r(t),n.d(t,{WithRecommender:()=>j});var r=n(10939),o=n(18801),c=n(44258),i=n(77810),m=n(72823),d=n(95683),l=n(62597),a=n(94052),s=n(73634),u=n(28407),f=n(29188),p=n(30780),y=n(8874);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const b=e=>{const t=(0,c.c)(17),{recommenderName:n,contextProducts:r,args:o,enabled:i}=e,{getEventUserParameters:m}=(0,y.t)(),d=(0,p.y)();let l;t[0]!==r?(l=null==r?void 0:r.map(N).join(","),t[0]=r,t[1]=l):l=t[1];const a=l;let s,O;t[2]!==o||t[3]!==a||t[4]!==d||t[5]!==n?(s=["app","einstein","query","recommenderName",n,"contextProductIds",a,"args",o,d],t[2]=o,t[3]=a,t[4]=d,t[5]=n,t[6]=s):s=t[6],t[7]!==o||t[8]!==r||t[9]!==d||t[10]!==m||t[11]!==n?(O=function(){var e=(0,u.A)((function*(){var e;const t=yield m(),c=yield d.getRecommendations(n,r,v(v({},o),t)),i=null==c||null===(e=c.recs)||void 0===e?void 0:e.map(P);return{recommenderName:n,recommendations:i,recoUUID:(null==c?void 0:c.recoUUID)||""}}));return function(){return e.apply(this,arguments)}}(),t[7]=o,t[8]=r,t[9]=d,t[10]=m,t[11]=n,t[12]=O):O=t[12];const b=!!n&&i;let h;return t[13]!==s||t[14]!==O||t[15]!==b?(h={queryKey:s,queryFn:O,enabled:b},t[13]=s,t[14]=O,t[15]=b,t[16]=h):h=t[16],(0,f.I)(h)};function N(e){const t=e;return(null==t?void 0:t.id)??(null==t?void 0:t.productId)}function P(e){return e.id}var h=n(9627),E=n(17594);var g=n(64922);const D=["recommenderName","recommenderType","contextProducts","limit","fillWithRandom","staleTime"];function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e){const t=(0,c.c)(25);let n,r,u,f,p,y,O;if(t[0]!==e){var v=e;({recommenderName:f,recommenderType:O,contextProducts:n,limit:u,fillWithRandom:r,staleTime:y}=v),p=(0,o.A)(v,D),t[0]=e,t[1]=n,t[2]=r,t[3]=u,t[4]=f,t[5]=p,t[6]=y,t[7]=O}else n=t[1],r=t[2],u=t[3],f=t[4],p=t[5],y=t[6],O=t[7];const N=void 0===O?l.r.EINSTEIN:O;let P;t[8]!==n||t[9]!==r||t[10]!==u||t[11]!==f||t[12]!==N||t[13]!==y?(P={recommenderName:f,recommenderType:N,contextProducts:n,limit:u,fillWithRandom:r,staleTime:y},t[8]=n,t[9]=r,t[10]=u,t[11]=f,t[12]=N,t[13]=y,t[14]=P):P=t[14];const{recommendedProductIds:I,isLoading:j,recommenderDetails:T}=function(e){const t=(0,c.c)(7),{data:n,isLoading:r,isFetching:o}=function(e){const t=(0,c.c)(11),{recommenderName:n,recommenderType:r,contextProducts:o,limit:i,fillWithRandom:m,staleTime:d}=e,u=void 0===i?E.t:i,f=n===s.e.NO_SEARCH_RESULTS?void 0:o,p=!h.S&&r===l.r.EINSTEIN;let y;t[0]!==f||t[1]!==n||t[2]!==p?(y={recommenderName:n,contextProducts:f,enabled:p},t[0]=f,t[1]=n,t[2]=p,t[3]=y):y=t[3];const O=b(y),v=!h.S&&r===l.r.BLOOMREACH;let N;t[4]!==o||t[5]!==m||t[6]!==u||t[7]!==n||t[8]!==d||t[9]!==v?(N={recommenderName:n,contextProducts:o,limit:u,fillWithRandom:m,staleTime:d,enabled:v},t[4]=o,t[5]=m,t[6]=u,t[7]=n,t[8]=d,t[9]=v,t[10]=N):N=t[10];const P=(0,a.I)(N);return r!==l.r.EINSTEIN?P:O}(e),i=null==n?void 0:n.recommendations;null==n||n.recommenderName,null==n||n.recoUUID;const m=(null==n?void 0:n.recommenderName)??e.recommenderName,d=null==n?void 0:n.recoUUID;let u;t[0]!==m||t[1]!==d?(u={recommenderName:m,__recoUUID:d},t[0]=m,t[1]=d,t[2]=u):u=t[2];const f=u,p=r||o;let y;
1return t[3]!==i||t[4]!==f||t[5]!==p?(y={recommendedProductIds:i,recommenderDetails:f,isLoading:p},t[3]=i,t[4]=f,t[5]=p,t[6]=y):y=t[6],y}(P),{setTrackerData:S}=(0,m.xt)();let U,_;t[15]!==T||t[16]!==S?(U=()=>{T&&S((e=>w(w({},e),{},{recommenderDetails:T,itemListName:e.itemListName??T.recommenderName})))},_=[T,S],t[15]=T,t[16]=S,t[17]=U,t[18]=_):(U=t[17],_=t[18]),(0,i.useEffect)(U,_);const L=`recommendation-${T.recommenderName}`;let A;return t[19]!==j||t[20]!==I||t[21]!==T||t[22]!==p||t[23]!==L?(A=(0,g.jsx)(d.b,w(w({variant:"recommendation",recommendedProductIds:I,isLoading:j},p),{},{galleryId:L,recommenderDetails:T})),t[19]=j,t[20]=I,t[21]=T,t[22]=p,t[23]=L,t[24]=A):A=t[24],A}},94052(e,t,n){n.d(t,{I:()=>f});var r=n(28407),o=n(29188),c=n(77810),i=n(81208),m=n(80837),d=n(16612),l=n(99222);function a(){var e,t,n;if("undefined"!=typeof window)return null===(e=window.exponea)||void 0===e||null===(t=e.configuration)||void 0===t||null===(n=t.customer)||void 0===n?void 0:n.cookie}function s(e){return"undefined"==typeof window?()=>{}:(window.addEventListener(l.LF,e),()=>window.removeEventListener(l.LF,e))}function u(){}function f({recommenderName:e,contextProducts:t,limit:n,fillWithRandom:f,enabled:p,staleTime:y=l.h9}){const O=(0,c.useSyncExternalStore)(s,a,u),v=(0,c.useMemo)((()=>null!=t&&t.length?t.reduce(((e,t)=>{const n=(null==t?void 0:t.id)??(null==t?void 0:t.productId);return n?(e[String(n)]=1,e):e}),{}):null),[t]),b=(0,c.useMemo)((()=>null==t?void 0:t.map((e=>{const t=e;return(null==t?void 0:t.id)??(null==t?void 0:t.productId)})).join(",")),[t]),{trackEvent:N}=(0,m.u)();return(0,o.I)({queryKey:["app","bloomreach","query","recommenderName",e,"contextProductIds",b,"cookie",O,"limit",n,"fillWithRandom",f],queryFn:(P=(0,r.A)((function*(){const t={cookie:O,id:e,size:n,items:v,fillWithRandom:f},r=window.setTimeout((()=>{N({event:i.WW.RECOMMENDATIONS_TIMEOUT,recommenderDetails:{recommenderName:e,__recoUUID:null}})}),1e3);try{const n=yield fetch(d.f.RECOMMENDATIONS,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=yield n.json();if(!r.length)throw new Error("Empty Bloomreach recommendations");return{recommendations:r,recommenderName:e,recoUUID:null}}finally{window.clearTimeout(r)}})),function(){return P.apply(this,arguments)}),enabled:!!e&&p&&!!O,retry:1,staleTime:y});var P}}}]);

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.