1(()=>{"use strict";var e={2308(e,t,o){const n="notice.global",r=new class{constructor(){this.listeners=new Map}emit(e,t){const o=new CustomEvent(e,{detail:t});document.dispatchEvent(o)}on(e,t){const o=e=>{t(e.detail)};this.listeners.has(e)||this.listeners.set(e,new Map),this.listeners.get(e).set(t,o),document.addEventListener(e,o)}off(e,t){var o;const n=null===(o=this.listeners.get(e))||void 0===o?void 0:o.get(t);n&&(document.removeEventListener(e,n),this.listeners.get(e).delete(t))}};var s=o(2430);const i=(e,...t)=>t.length>=e.length?e(...t):i.bind(void 0,e,...t),l=i((e,t)=>Array.isArray(t)?t.map(e):e(t)),a=(i((e,t)=>Array.isArray(t)?t.filter(e):e(t)?t:void 0),(e,...t)=>e.bind(void 0,...t)),c=(...e)=>function(t){return e.reduce((e,t)=>t.apply(this,[e]),t)},d=i((e,t)=>t[e]),u=(i((e,t)=>t<e),i((e,t,o)=>(o[e]=t,o)),(e,t,o)=>e(o)?u(e,t,t(o)):o),h=(i((e,t)=>t/e),i((e,t)=>t*e),i((e,t)=>-1!==e.indexOf(t)),i((e,t)=>e<0?t[t.length+e]:t[e]));c((h(1),h(-1)),i((e,t)=>t+e)(1)),i((e,t)=>l(t=>(t.classList.add(e),t),t)),i((e,t)=>l(t=>e.appendChild(t),t)),i((e,t,o)=>(o.style[e]=t,o))("display","none"),i((e,t)=>getComputedStyle(t)[e]),d("clientHeight"),i((e,t)=>t.classList.contains(e));const m=(e,t)=>t.getAttribute(e),p=(i(m),i((e,t,o)=>(o.setAttribute(e,t),o))),v=(i((e,t)=>{t.removeAttribute(e)}),i((e,t)=>m("data-"+e,t)),i((e,t,o)=>p("data-"+e,t,o)),(e,t,o,n)=>(n.addEventListener(e,t,o),n)),f=(e,t,o,n)=>(n.removeEventListener(e,t,o),n),g=(e,t)=>{const o=["matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector"];for(const n of o)if("function"==typeof t[n])return t[n](e);return!1},w=(i((e,t,o)=>l(a(v,e,t,{}),o)),i((e,t,o)=>l(a(f,e,t,{}),o)),i((e,t,o)=>l(a(v,e,t,{passive:!0}),o)),i((e,t,o)=>l(a(v,e,t,!0),o)),i((e,t)=>u(t=>t&&!g(e,t)&&t.parentNode,e=>e.parentNode===document?null:e.parentNode,t.parentNode)),(e,t,o,n)=>v(e,e=>{const r=u(e=>e&&e!==document&&!g(o,e)&&e.parentNode,e=>e.parentNode,e.target);r!==document&&g(o,r)&&t.apply(n,[e])},{},n));i((e,t,o,n)=>l(a(w,e,t,o),n)),i((e,t)=>l(t=>(t.classList.remove(e),t),t)),i((e,t)=>l(t=>(t.classList.toggle(e),t),t)),c(d("children"),e=>Array.prototype.slice.call(e)),d("parentNode"),d("offsetTop"),d("value"),"undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iPad|iPhone|iPod/.test(window.navigator.platform)||"MacIntel"===navigator.platform&&navigator);var b=o(9273);const y=function(e){return(0,b.Y)("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className?`icon ${e.className}`:"icon",viewBox:e.viewBox,fill:"none",children:(0,b.Y)("use",{xmlnsXlink:"http://www.w3.org/1999/xlink",xlinkHref:`#${e.name}`,x:"0",y:"0"})})};(0,s.A)(function(){let e=0;const t=GM_STATE.customer.logged,o=(productState,setInterval(()=>{const t=((e,t=document)=>t.querySelector(e))("wishlist-button-product .wk-button");if(t){clearInterval(o);const e={attributes:!0,attributeOldValue:!0};new MutationObserver(function(e,t){for(const o of e)"attributes"===o.type&&"aria-label"===o.attributeName&&("Remove from Wishlist"===o.oldValue?r.emit(n,{type:"checked",content:"Item removed from wishlist",classCustom:"notice-main-wishlist"}):"Add to Wishlist"===o.oldValue&&r.emit(n,{type:"checked",content:"Item added to wishlist",classCustom:"notice-main-wishlist"}))}).observe(t,e),localStorage.getItem("addWishlist")&&"Add to Wishlist"===t.getAttribute("aria-label")&&(t.click(),localStorage.removeItem("addWishlist"))}e++,e>=5&&clearInterval(o)},1e3));return t?(0,b.Y)("div",{className:"js-button-wishlist absolute z-10 top-4 right-4 flex h-[34px] w-[34px] bg-white cursor-pointer items-center justify-center rounded-full lg:h-11 lg:w-11"}):(0,b.Y)("a",{href:"#rivo",title:translate.product.loginToSaveWishlist,className:"absolute z-10 top-4 right-4 flex h-[34px] w-[34px] bg-white cursor-pointer items-center justify-center rounded-full lg:h-11 lg:w-11 text-grey-700",children:(0,b.Y)(y,{name:"icon-wishlist-line",className:"w-6 h-6 lg:w-8 lg:h-8",viewBox:"0 0 32 32"})})},"wishlist-button")}};const t={};function o(n){const r=t[n];if(void 0!==r)return r.exports;const s=t[n]={exports:{}};return e[n](s,s.exports,o),s.exports}o.m=e,(()=>{const e=[];o.O=(t,n,r,s)=>{if(n){s=s||0;for(var i=e.length;i>0&&e[i-1][2]>s;i--)e[i]=e[i-1];return void(e[i]=[n,r,s])}let l=1/0;for(i=0;i<e.length;i++){let[n,r,s]=e[i],c=!0;for(var a=0;a<n.length;a++)(!1&s||l>=s)&&Object.keys(o.O).every(e=>o.O[e](n[a]))?n.splice(a--,1):(c=!1,s<l&&(l=s));if(c){e.splice(i--,1);const o=r();void 0!==o&&(t=o)}}return t}})(),o.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],s=t[n++];o.o(e,r)?0===s&&n++:Object.defineProperty(e,r,0===s?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:s})}else for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})},o.j=4610,(()=>{const e={4610:0};o.O.j=t=>0===e[t];const t=(t,n)=>{let[r,s,i]=n;var l,a,c=0;if(r.some(t=>0!==e[t])){for(l in s)o.o(s,l)&&(o.m[l]=s[l]);if(i)var d=i(o)}for(t&&t(n);c<r.length;c++)o.o(e,a=r[c])&&e[a]&&e[a][0](),e[a]=0;return o.O(d)},n=self.webpackChunkgamma=self.webpackChunkgamma||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();let n=o.O(void 0,[9174],()=>o(2308));n=o.O(n)})(); 2//# sourceMappingURL=module-wishlist-button.js.map
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.