PageSourceSearch

https://www.flikflak.com/on/demandware.static/Sites-swarp-AM-Site/…/wishlist.widgets.4ec0bd.bundle.js

js flikflak.com collected 2026-09-24 20:06:52 UTC 7,371 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkapp_custom_swatch=globalThis.webpackChunkapp_custom_swatch||[]).push([[627],{25499:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}}),r(60825);var n=r(23029),i=r(92901),s=r(56822),o=r(53954),c=r(90991),l=r(85501);function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function a(e,t,r,n){var i=(0,c.A)((0,o.A)(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function f(e){return function(e){function t(){return(0,n.A)(this,t),e=this,r=t,i=arguments,r=(0,o.A)(r),(0,s.A)(e,u()?Reflect.construct(r,i||[],(0,o.A)(e).constructor):r.apply(e,i));var e,r,i}return(0,l.A)(t,e),(0,i.A)(t,[{key:"init",value:function(){a(t,"init",this,3)([]),this.eventBus().on("product.updated","disableByPLI"),this.config.isPresentInCart&&this.addClickedClass()}},{key:"disableByPLI",value:function(e,t,r,n){var i=this;n&&this.config.pid===n.pid&&e.items.forEach((function(e){e.id===n.pid&&(e.isFullyReserved||e.quantityExceeded?i.disable():i.enable())}))}},{key:"removeByPLI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&this.config.pid===e&&t.removedAll&&this.reset()}},{key:"handleClick",value:function(){a(t,"handleClick",this,3)([]),this.addClickedClass()}},{key:"onModalConfirm",value:function(){this.setAddtoCartConfirmed(!0),this.eventBus().emit("closeConfirmModal"),this.handleClick(),this.setAddtoCartConfirmed(!1)}}])}(e)}r(26099),r(23500)},4892:function(e,t,r){r.r(t),r.d(t,{default:function(){return v}}),r(52675),r(2008),r(83851),r(81278),r(79432),r(60825),r(23500);var n=r(64467),i=r(23029),s=r(92901),o=r(56822),c=r(53954),l=r(90991),u=r(85501),a=(r(26099),r(3362),r(9391),r(7769)),f=r(77670),p=r(69372);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function v(e){return function(e){function t(){return(0,i.A)(this,t),e=this,r=t,n=arguments,r=(0,c.A)(r),(0,o.A)(e,h()?Reflect.construct(r,n||[],(0,c.A)(e).constructor):r.apply(e,n));var e,r,n}return(0,u.A)(t,e),(0,s.A)(t,[{key:"prefs",value:function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({pid:"",animationDelay:1e3,throttleDelay:1e3,classRemoving:"m-removing",classRemoved:"m-removed",classHidden:"m-overflow"},(e=t,r=this,"function"==typeof(i=(0,l.A)((0,c.A)(e.prototype),"prefs",r))?function(e){return i.apply(r,e)}:i)([]));var e,r,i}},{key:"init",value:function(){var e=this.prefs().throttleDelay;this.removeProductFromWishlist=(0,a.n)(this.removeProductFromWishlist.bind(this),e)}},{key:"onProductLinkClick",value:function(e,t){var r;(null==t||null===(r=t.target)||void 0===r?void 0:r.closest("button"))?t.preventDefault():this.eventBus().emit("datalayer.wishlist.product.link.click",e)}},{key:"removeProductFromWishlist",value:function(e){var t=this;if(!e)return Promise.reject();e.addDisabledEventClass();var r=e.config.removeProductUrl,n={pid:e.config.pid||e.prefs().pid,noticeLabel:e.ref("self").data("cta-click-notice")};return(0,f.zP)(r,n,"GET").then((function(e){t.postRemoveFromWishlist(e,n)})).finally((function(){return e.removeDisabledEventClass()}))}},{key:"postRemoveFromWishlist",value:function(e,t){var r=this;if(!e||!this.ref("self").get())return!1;var n=e.product,i=this.ref("self").get();
1return i.classList.add(this.prefs().classHidden),i.classList.add(this.prefs().classRemoving),(0,p.wR)((function(){i.classList.add(r.prefs().classRemoved),r.eventBus().emit("wishlist.product.".concat(n.id,".removed")),r.eventBus().emit("product.removed.from.wishlist",e),r.eventBus().emit("datalayer.delete.from.wishlist.link.click",{pid:n.id,name:n.productName}),r.eventBus().emit("alert.notice",t.noticeLabel),r.ref("self").remove()}),this.prefs().animationDelay),!0}}])}(e)}},25875:function(e,t,r){r.r(t),r.d(t,{default:function(){return v}}),r(52675),r(2008),r(83851),r(81278),r(79432),r(26099),r(60825),r(23500);var n=r(64467),i=r(23029),s=r(92901),o=r(56822),c=r(53954),l=r(90991),u=r(85501),a=r(69372),f=r(86474),p=r(1985);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function v(e){return function(e){function t(){return(0,i.A)(this,t),e=this,r=t,n=arguments,r=(0,c.A)(r),(0,o.A)(e,h()?Reflect.construct(r,n||[],(0,c.A)(e).constructor):r.apply(e,n));var e,r,n}return(0,u.A)(t,e),(0,s.A)(t,[{key:"prefs",value:function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({items:[],isDrawer:!1,productsInWishlistClass:"m-filled",sessionUrlInfoKey:"lastUrlInfo",mobileBreakpoint:"screen and (max-width: 1279px)"},(e=t,r=this,"function"==typeof(i=(0,l.A)((0,c.A)(e.prototype),"prefs",r))?function(e){return i.apply(r,e)}:i)([]));var e,r,i}},{key:"init",value:function(){var e=this;this.onDestroy((0,a.wR)((function(){e.prefs().isDrawer||e.renderWishlist()}),0)),this.eventBus().on("product.added.to.wishlist","renderWishlistResponse"),this.eventBus().on("product.removed.from.wishlist","renderWishlistResponse"),this.prefs().isDrawer&&this.eventBus().on("wishlist.drawer.render","renderWishlist")}},{key:"renderWishlist",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.prefs();return this.render("wishlistTemplate",e,this.ref("wishlistContainer"))}},{key:"renderWishlistResponse",value:function(e){var t,r=this;e.error&&e.redirectUrl?(window.location.assign(e.redirectUrl),this.eventBus().emit("render.wishlist.response")):this.renderWishlist(e.wishlist).then((function(){r.eventBus().emit("render.wishlist.response")})),this.ref("self").toggleClass(this.prefs().productsInWishlistClass,Boolean(null==e||null===(t=e.wishlist)||void 0===t?void 0:t.length))}},{key:"loginClickHandler",value:function(e,t){this.prefs().isDrawer&&((0,p.Cp)(this.prefs().sessionUrlInfoKey,window.sfccData.url),t&&!f.isCustomView(this.prefs().mobileBreakpoint)&&t.preventDefault(),this.eventBus().emit("account.drawer.open"))}},{key:"registerClickHandler",value:function(e,t){this.prefs().isDrawer&&((0,p.Cp)(this.prefs().sessionUrlInfoKey,window.sfccData.url),t&&!f.isCustomView(this.prefs().mobileBreakpoint)&&t.preventDefault(),this.eventBus().emit("account.drawer.register.open"))}}])}(e)}}}]);

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.