PageSourceSearch

https://www.eselo.lv/static/frontend/scandipwa/theme/en_US/Magento_Theme/static/js/3.e76586f3.chunk.js

js eselo.lv collected 2026-10-06 16:15:10 UTC 26,685 bytes, 1 lines download raw bytes

1(this.webpackJsonpscandipwa=this.webpackJsonpscandipwa||[]).push([[3],{1119:function(e,t,i){"use strict";(function(e,n){var r=i(3),o=i(6),a=i(4),s=i(5),l=i(0),c=i(12),u=(i(48),i(1120)),d=e.middleware((function(e){return{isMobile:e.ConfigReducer.device.isMobile}}),"Component/Link/Container/mapStateToProps"),h=i(11).checkBEMProps,p=e.middleware(function(e){Object(a.a)(i,e);var t=Object(s.a)(i);function i(){return Object(r.a)(this,i),t.apply(this,arguments)}return Object(o.a)(i,[{key:"render",value:function(){var e=this.props,t=e.isMobile,i=e.children;return t?h(n,u.a,this.props):i}}]),i}(e.Extensible(l.PureComponent)),"Component/Link/Container"),m=e.middleware((function(e){return{}}),"Component/Link/Container/mapDispatchToProps");t.a=Object(c.b)(d,m)(p)}).call(this,i(7).default,i(0))},1121:function(e,t,i){"use strict";(function(e,n){i.d(t,"a",(function(){return b}));var r,o,a=i(3),s=i(6),l=i(8),c=i(4),u=i(5),d=i(0),h=i(332),p=i(43),m=(i(48),i(58)),f=i(1249),v=(i(1250),i(11).checkBEMProps),b=e.middleware((o=r=function(e){Object(c.a)(i,e);var t=Object(u.a)(i);function i(){var e;Object(a.a)(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={isRightSideOpen:!1,isAheadRemoveItemThreshold:!1},e.draggableRef=Object(d.createRef)(),e.handleDragStart=function(){e.setAnimationSpeedStyle(0)},e.handleDrag=function(t){var i=t.translateX,n=e.props.dragRightOpenThreshold,r=e.state,o=r.isRightSideOpen,a=r.isAheadRemoveItemThreshold,s=Object(l.a)(e).draggableRemoveThreshold,c=Math.abs(i)>s;if(a!==c&&e.setState({isAheadRemoveItemThreshold:c}),i<=0){var u=o?i-n:i;e.setTranslateXStyle(u)}else if(i>0){if(!o||o&&i-n>0)return void e.setTranslateXStyle(0);i-n<0&&o&&e.setTranslateXStyle(i-n)}},e.handleDragEnd=function(t){var i=t.translateX,n=e.props,r=n.dragRightOpenThreshold,o=n.dragRightOpenTriggerThreshold,a=n.onAheadOfDragItemRemoveThreshold,s=n.animationDurationOnRemove,c=e.state.isAheadRemoveItemThreshold,u=Object(l.a)(e).draggableWidth,d=i>-o;if(c)return e.setAnimationSpeedStyle(s),e.setTranslateXStyle(-u),void a();e.setAnimationSpeedStyle(),e.setState({isRightSideOpen:!d}),d?e.setTranslateXStyle(0):e.setTranslateXStyle(-r)},e}return Object(s.a)(i,[{key:"componentDidMount",value:function(){this.setTranslateXStyle(0),this.setRightSideContentWidth(),this.setDraggableWidth(),this.setDraggableRemoveThreshold()}},{key:"setRightSideContentWidth",value:function(){var e=this.props.dragRightOpenThreshold;m.a.setVariable(this.draggableRef,"right-side-content-width","".concat(e,"px"))}},{key:"setTranslateXStyle",value:function(e){m.a.setVariable(this.draggableRef,"translateX","".concat(e,"px"))}},{key:"setDraggableWidth",value:function(){var e=this.draggableRef.current.getBoundingClientRect().width;this.draggableWidth=e}},{key:"setDraggableRemoveThreshold",value:function(){var e=this.draggableWidth,t=this.props,i=t.dragRightOpenThreshold,n=t.dragItemRemoveThreshold;this.draggableRemoveThreshold=e*n-i}},{key:"setAnimationSpeedStyle",value:function(e){var t=this.props.animationDuration,i=void 0===e?t:e;m.a.setVariable(this.draggableRef,"animation-speed","".concat(i,"ms"))}},{key:"renderRightSideContent",value:function(){var e=this.props,t=e.renderRightSideContent,i=e.rightSideMix,r=this.state.isAheadRemoveItemThreshold;return v(n,"div",{block:"SwipeToDelete",elem:"RightSideContentWrapper"},v(n,"div",{block:"SwipeToDelete",elem:"RightSideContent",mods:{isAheadRemoveItemThreshold:r},mix:i},t()))}},{key:"renderChildren",value:function(){var e=this.props.children;return v(n,n.Fragment,null,v(n,"div",{block:"SwipeToDelete",role:"button",tabIndex:"0",onMouseDown:function(e){return e.stopPropagation()}},e),this.renderRightSideContent())}},{key:"render",value:function(){var e=this.props,t=e.topElemMix,i=e.isLoading,r=this.state.isAheadRemoveItemThreshold;return v(n,h.a,{onDrag:this.handleDrag,draggableRef:this.draggableRef,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd,mix:t},v(n,p.a,{isLoading:i&&r}),this.renderChildren())}}]),i}(e.Extensible(d.PureComponent)),r.defaultProps={dragRightOpenTriggerThreshold:f.e,dragRightOpenThreshold:f.d,dragItemRemoveThreshold:f.c,animationDuration:f.a,animationDurationOnRemove:f.b,renderRightSideContent:function(){},rightSideMix:{},topElemMix:{},onAheadOfDragItemRemoveThreshold:function(){},isLoading:!1},o),"Component/SwipeToDelete/Component")}).call(this,i(7).default,i(0))},1156:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n=1e3},1157:function(e,t,i){"use strict";var n=i(1119);i.d(t,"a",(function(){return n.a}))},1248:function(e,t,i){"use strict";(function(e,n,r){i.d(t,"c",(function(){return O})),i.d(t,"b",(function(){return I})),i.d(t,"a",(function(){return w}));var o=i(3),a=i(6),s=i(8),l=i(4),c=i(5),u=i(0),d=i(12),h=i(1157),p=i(59),m=i(51),f=i(29),v=(i(62),i(23)),b=i(27),g=i(24),C=i(26),y=i(1122),k=i(1156),W=Promise.all([i.e(42),i.e(7),i.e(16)]).then(i.bind(null,173)),A=Promise.all([i.e(42),i.e(7),i.e(16)]).then(i.bind(null,145)),O=e.middleware((function(e){return{isMobile:e.ConfigReducer.device.isMobile}}),"Component/WishlistItem/Container/mapStateToProps"),I=e.middleware((function(e){return{showNotification:function(t,i){return e(Object(f.d)(t,i))},addProductToCart:function(t){return W.then((function(i){return i.default.addProductToCart(e,t)}))},updateWishlistItem:function(t){return A.then((function(i){return i.default.updateWishlistItem(e,t)}))},removeFromWishlist:function(t){return A.then((function(i){return i.default.removeItemFromWishlist(e,t)}))},changeHeaderState:function(t){return e(Object(p.c)(m.b,t))}}}),"Component/WishlistItem/Container/mapDispatchToProps"),S=i(11).checkBEMProps,w=e.middleware(function(t){Object(l.a)(u,t);var i=Object(c.a)(u);function u(){var e;Object(o.a)(this,u);for(var t=arguments.length,a=new Array(t),l=0;l<t;l++)a[l]=arguments[l];return(e=i.call.apply(i,[this].concat(a))).containerFunctions={addToCart:e.addItemToCart.bind(Object(s.a)(e)),removeItem:e.removeItem.bind(Object(s.a)(e),!1,!0)},e.state={isLoading:!1},e.removeItemOnSwipe=e.removeItem.bind(Object(s.a)(e),!1,!0),e.changeQuantity=Object(g.b)((function(t){var i=e.props,n=i.product.wishlist.id;(0,i.updateWishlistItem)({item_id:n,quantity:t})}),k.a),e.changeDescription=Object(g.b)((function(t){var i=e.props,n=i.product.wishlist.id;(0,i.updateWishlistItem)({item_id:n,description:t})}),k.a),e.containerProps=function(){var t=e.state.isLoading;return{changeQuantity:e.changeQuantity,changeDescription:e.changeDescription,attributes:e.getAttributes(),isLoading:t}},e.getConfigurableVariantIndex=function(e,t){return Object.keys(t).find((function(i){return t[i].sku===e}))},e.getAttributes=function(){var t=e.props.product,i=t.variants,n=t.configurable_options,r=t.wishlist.sku,o=(i.find((function(e){return e.sku===r}))||{}).attributes,a=void 0===o?[]:o;return a?Object.values(a).reduce((function(e,t){var i=t.attribute_code,r=t.attribute_value,o=(n[i]||{}).attribute_options,a=(o=void 0===o?{}:o)[r],s=(a=void 0===a?{}:a).value,l=a.label;return s===r?(e.push(l),e):e}),[]):[]},e.renderRightSideContent=function(){return S(n,"button",{block:"WishlistItem",elem:"SwipeToDeleteRightSide",onClick:e.removeItemOnSwipe,"aria-label":r("Remove")},r("Delete"))},e}return Object(a.a)(u,[{key:"addItemToCart",value:function(){var t=this,i=this.props,n=i.product,o=i.addProductToCart,a=i.showNotification,s=n.type_id,l=n.variants,c=n.wishlist,u=c.id,d=c.sku,h=c.quantity,p=c.buy_request;if(!Object(v.d)())return null;if("configurable"===s){var m=this.getConfigurableVariantIndex(d,l);if(!m)return b.a.push({pathname:Object(C.a)(n.url)}),a("info",r("Please select product options!")),Promise.resolve();n.configurableVariantIndex=m}return this.setState({isLoading:!0}),o({product:n,quantity:h,buyRequest:p}).then(e.middleware((function(){return t.removeItem(u)}),"Component/WishlistItem/Container/addItemToCartAddProductToCartThen"),e.middleware((function(){return t.showNotification("error",r("Error Adding Product To Cart"))}),"Component/WishlistItem/Container/addItemToCartAddProductToCartCatch")).then(e.middleware((function(){return a("success",r("Product Added To Cart"))}),"Component/WishlistItem/Container/addItemToCartAddProductToCartThenThen")).catch(e.middleware((function(){return t.showNotification("error",r("Error cleaning wishlist"))}),"Component/WishlistItem/Container/addItemToCartAddProductToCartThenThenCatch"))}},{key:"showNotification",value:function(){var e=this.props.showNotification;this.setState({isLoading:!1}),e.apply(void 0,arguments)}},{key:"removeItem",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.props,n=i.product.wishlist.id,r=i.removeFromWishlist,o=i.handleSelectIdChange;return this.setState({isLoading:!0}),o(n,t),r({item_id:n,noMessages:e})}},{key:"render",value:function(){var e=this.state.isLoading;return S(n,h.a,{renderRightSideContent:this.renderRightSideContent,topElemMix:{block:"WishlistItem"},onAheadOfDragItemRemoveThreshold:this.containerFunctions.removeItem,isLoading:e},S(n,y.a,Object.assign({},this.props,this.containerProps(),this.containerFunctions,this.state)))}}]),u}(e.Extensible(u.PureComponent)),"Component/WishlistItem/Container");Object(d.b)(O,I)(w)}).call(this,i(7).default,i(0),i(16).default)},1249:function(e,t,i){"use strict";i.d(t,"d",(function(){return n})),i.d(t,"e",(function(){return r})),i.d(t,"c",(function(){return o}
1)),i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return s}));var n=80,r=n/2,o=.8,a=300,s=180},1250:function(e,t,i){},1251:function(e,t,i){"use strict";(function(e,n,r){i.d(t,"a",(function(){return b}));var o,a,s=i(1),l=i(3),c=i(6),u=i(4),d=i(5),h=i(0),p=i(44),m=i(79),f=(i(62),i(30)),v=(i(1795),i(11).checkBEMProps),b=e.middleware((a=o=function(e){Object(u.a)(i,e);var t=Object(d.a)(i);function i(){var e;Object(l.a)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).renderOption=function(e){var t=e.label,i=e.value;return v(n,"div",{block:"WishlistItemOption"},v(n,"span",{block:"WishlistItemOption",elem:"Label"},t,":"),v(n,"span",{block:"WishlistItemOption",elem:"Value"},i))},e.renderContent=function(t){var i=t.content.productPrice,r=t.pictureBlock.picture,o=t.renderCardLinkWrapper;return e.props.isMobile?e.renderContentMobile(t):v(n,n.Fragment,null,v(n,"div",{block:"WishlistItem",elem:"FigureWrapper"},o(v(n,n.Fragment,null,v(n,"figure",{mix:{block:"ProductCard",elem:"Figure"}},r({block:"WishlistItem",elem:"Picture"})),e.renderName(),e.renderAttributes())),e.renderRemove()),e.renderOptions(),v(n,"div",{block:"WishlistItem",elem:"Content"},v(n,"div",{block:"WishlistItem",elem:"RowWrapper"},e.renderQuantityField(),e.renderPrice(i)),e.renderDescription(),e.renderAddToCartButton()))},e}return Object(c.a)(i,[{key:"renderDescription",value:function(){var e=this.props,t=e.product.wishlist.description,i=e.changeDescription,o=e.isMobile,a=this.props.isEditingActive;if(!t&&!a&&o)return null;var s=o&&!a,l=o?{isNotEditingActive:!a,isEmpty:!t}:{};return v(n,p.a,{id:"description",name:"description",type:"textarea",rows:3,value:t,mix:{block:"WishlistItem",elem:"CommentField",mods:l},placeholder:r("Add a comment"),isDisabled:s,onChange:i})}},{key:"renderQuantityFieldInput",value:function(){var e=this.props,t=e.product.wishlist.quantity,i=e.changeQuantity;return v(n,p.a,{id:"item_qty",name:"item_qty",type:"number",min:1,value:t,mix:{block:"WishlistItem",elem:"QuantityInput",mix:{block:"Field",mods:{style:"inline"}}},onChange:i})}},{key:"renderQuantityField",value:function(){var e=this.props,t=e.product.wishlist.quantity,i=e.isEditingActive;return e.isMobile?v(n,"div",{block:"WishlistItem",elem:"QuantityWrapper"},v(n,"span",{block:"WishlistItem",elem:"QuantityText"},r("Qty:")),i?this.renderQuantityFieldInput():t):this.renderQuantityFieldInput()}},{key:"renderAddToCartButton",value:function(){var e=this.props,t=e.addToCart,i=e.isEditingActive,o=e.isMobile;return v(n,"button",{block:"Button",mods:{isHollow:o},mix:{block:"WishlistItem",elem:"AddToCart",mods:o?{isEditingActive:i}:{}},onClick:t},r("Add to cart"))}},{key:"renderRemove",value:function(){var e=this.props.removeItem;return v(n,"button",{block:"WishlistItem",elem:"Remove",onClick:e,"aria-label":r("Remove")})}},{key:"getWishlistProduct",value:function(){var e=this.props,t=e.product,i=e.product,n=i.url;if("configurable"!==i.type_id)return t;var r=t.variants.find((function(e){return e.sku===t.wishlist.sku}));return r?Object(s.a)(Object(s.a)({},r),{},{url:n}):Object(s.a)(Object(s.a)({},t),{},{url:n})}},{key:"renderOptionsList",value:function(){var e=this.props.product.wishlist.options;return v(n,"div",{block:"WishlistItemOptions",elem:"List"},e.map(this.renderOption))}},{key:"renderOptions",value:function(){var e=this.props.product,t=e.wishlist.options,i=void 0===t?[]:t,r=e.type_id;return 0===i.length||r!==f.a&&r!==f.d?null:v(n,"div",{block:"WishlistItemOptions"},this.renderOptionsList())}},{key:"renderName",value:function(){var e=this.props.product.name;return v(n,"span",null,e)}},{key:"renderPrice",value:function(e){return v(n,"div",{block:"WishlistItem",elem:"Price"},e())}},{key:"renderAttributes",value:function(){var e=this.props.attributes;return v(n,"div",{block:"WishlistItem",elem:"AttributeWrapper"},e.map((function(e){return v(n,"span",{mix:{block:"ProductAttribute"},key:e},e)})))}},{key:"renderSelectCheckbox",value:function(){var e=this.props,t=e.product.wishlist.id,i=e.handleSelectIdChange,r=e.isEditingActive;return v(n,"div",{block:"WishlistItem",elem:"Select",mods:{isEditingActive:r}},v(n,p.a,{type:"checkbox",id:"option-".concat(t),name:"option-".concat(t),onClick:function(){return i(t)}}))}},{key:"renderContentMobile",value:function(e){var t=e.content.productPrice,i=e.pictureBlock.picture,r=e.renderCardLinkWrapper,o=this.props.isEditingActive;return v(n,n.Fragment,null,v(n,"div",{block:"WishlistItem",elem:"SelectWrapper"},this.renderSelectCheckbox(),v(n,"div",{block:"WishlistItem",elem:"ContentWrapper",mods:{isEditingActive:o}},r(v(n,"figure",{mix:{block:"ProductCard",elem:"Figure"}},i({block:"WishlistItem",elem:"Picture"})),{block:"WishlistItem",elem:"ImageWrapper"}),v(n,"div",{block:"WishlistItem",elem:"Content"},this.renderName(),this.renderAttributes(),this.renderQuantityField(),v(n,"div",{block:"WishlistItem",elem:"RowWrapper"},this.renderPrice(t),this.renderAddToCartButton())))),this.renderDescription())}},{key:"render",value:function(){var e=this.props,t=e.isLoading,i=e.isRemoving;return v(n,m.a,{product:this.getWishlistProduct(),mix:{block:"WishlistItem",elem:"ProductCard"},isLoading:t||i,renderContent:this.renderContent,hideWishlistButton:!0,hideCompareButton:!0})}}]),i}
1(e.Extensible(h.PureComponent)),o.defaultProps={addToCart:function(){},changeQuantity:function(){},changeDescription:function(){},removeItem:function(){},isLoading:!1,isRemoving:!1},a),"Component/WishlistItem/Component")}).call(this,i(7).default,i(0),i(16).default)},1254:function(e,t,i){"use strict";(function(e,n,r){i.d(t,"c",(function(){return g})),i.d(t,"b",(function(){return C})),i.d(t,"a",(function(){return k}));var o=i(1),a=i(3),s=i(6),l=i(4),c=i(5),u=i(0),d=i(12),h=i(360),p=i(29),m=i(53),f=(i(62),i(23)),v=i(1255),b=Promise.all([i.e(42),i.e(7),i.e(16)]).then(i.bind(null,145)),g=e.middleware((function(e){return{wishlistItems:e.WishlistReducer.productsInWishlist,isWishlistLoading:e.WishlistReducer.isLoading,isMobile:e.ConfigReducer.device.isMobile}}),"Component/MyAccountMyWishlist/Container/mapStateToProps"),C=e.middleware((function(e){return{clearWishlist:function(){return b.then((function(t){return t.default.clearWishlist(e)}))},moveWishlistToCart:function(){return b.then((function(t){return t.default.moveWishlistToCart(e)}))},showPopup:function(t){return e(Object(m.b)(h.a,t))},showNotification:function(t){return e(Object(p.d)("success",t))},showError:function(t){return e(Object(p.d)("error",t))},removeSelectedFromWishlist:function(t){return b.then((function(i){return i.default.removeItemsFromWishlist(e,t)}))}}}),"Component/MyAccountMyWishlist/Container/mapDispatchToProps"),y=i(11).checkBEMProps,k=e.middleware(function(t){Object(l.a)(u,t);var i=Object(c.a)(u);function u(){var t;Object(a.a)(this,u);for(var r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];return(t=i.call.apply(i,[this].concat(s))).state={isLoading:!1,loadingItemsMap:{}},t.containerProps=function(){var e=t.state,i=e.isLoading,n=e.loadingItemsMap,r=t.props.isWishlistLoading,o=t._getIsWishlistEmpty();return{isWishlistEmpty:o,isLoading:i,isActionsDisabled:r||o,loadingItemsMap:n}},t.containerFunctions=function(){return{removeAll:t.removeAll,addAllToCart:t.addAllToCart,shareWishlist:t.shareWishlist,removeSelectedFromWishlist:t.removeSelectedFromWishlist}},t.addAllToCart=function(){var i=t.props.moveWishlistToCart;return Object(f.d)()?(t.setState({isLoading:!0}),i().then(e.middleware((function(){return t.showNotificationAndRemoveLoading("Available items moved to cart")}),"Component/MyAccountMyWishlist/Container/moveWishlistToCartThen"),e.middleware((function(){return t.showErrorAndRemoveLoading("Failed to add items to cart")}),"Component/MyAccountMyWishlist/Container/moveWishlistToCartCatch"))):null},t.removeAll=function(){var i=t.props.clearWishlist;return Object(f.d)()?(t.setState({isLoading:!0}),i().then(e.middleware((function(){return t.showNotificationAndRemoveLoading("Wishlist cleared")}),"Component/MyAccountMyWishlist/Container/clearWishlistThen"))):null},t.removeSelectedFromWishlist=function(e){var i=t.props.removeSelectedFromWishlist,n=t.state.loadingItemsMap;if(!Object(f.d)())return null;var r=Object(o.a)({},n);return e.forEach((function(e){r[e]=!0})),t.setState({loadingItemsMap:r}),i(e)},t.shareWishlist=function(){(0,t.props.showPopup)({title:n("Share Wishlist")})},t._getIsWishlistEmpty=function(){var e=t.props.wishlistItems;return Object.entries(e).length<=0},t}return Object(s.a)(u,[{key:"showNotificationAndRemoveLoading",value:function(e){var t=this.props.showNotification;this.setState({isLoading:!1}),t(e)}},{key:"showErrorAndRemoveLoading",value:function(e){var t=this.props.showError;this.setState({isLoading:!1}),t(e)}},{key:"render",value:function(){return y(r,v.a,Object.assign({},this.props,this.containerProps(),this.containerFunctions()))}}]),u}(e.Extensible(u.PureComponent)),"Component/MyAccountMyWishlist/Container");Object(d.b)(g,C)(k)}).call(this,i(7).default,i(16).default,i(0))},1255:function(e,t,i){"use strict";(function(e,n,r){var o=i(15),a=i(3),s=i(6),l=i(4),c=i(5),u=i(0),d=i(43),h=i(79),p=i(1804),m=i(1418),f=(i(62),i(58)),v=(i(1807),i(11).checkBEMProps),b=e.middleware(function(e){Object(l.a)(i,e);var t=Object(c.a)(i);function i(){var e;Object(a.a)(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return(e=t.call.apply(t,[this].concat(l))).state={selectedIdMap:[]},e.actionLineMobileRef=Object(u.createRef)(),e.productsRef=Object(u.createRef)(),e.handleSelectIdChange=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.state.selectedIdMap,r=n.findIndex((function(e){return e===t})),o=Array.from(n);i?-1!==r&&(o.splice(r,1),e.setState({selectedIdMap:o})):(-1===r?o.push(t):o.splice(r,1),e.setState({selectedIdMap:o}))},e.handleRemoveButtonClick=function(){(0,e.props.removeSelectedFromWishlist)(e.state.selectedIdMap),e.setState({selectedIdMap:[]})},e.renderNoProductsFound=function(){return v(n,"div",null,v(n,"p",null,r("Wishlist is empty!")))},e.renderProduct=function(t){var i=Object(o.a)(t,2),r=i[0],a=i[1],s=e.props,l=s.isEditingActive,c=s.loadingItemsMap;return v(n,m.a,{key:r,product:a,isRemoving:c[r],isEditingActive:l,handleSelectIdChange:e.handleSelectIdChange})},e}
1return Object(s.a)(i,[{key:"componentDidMount",value:function(){this.setActionLineHeight()}},{key:"componentDidUpdate",value:function(e){var t=e.isEditingActive,i=e.isMobile,n=this.props,r=n.isEditingActive,o=n.isMobile,a=this.state.actionLineHeight,s=this.state.actionLineHeight;(t!==r&&a===s||o!==i)&&this.setActionLineHeight()}},{key:"setActionLineHeight",value:function(){var e=this.props.isMobile,t=this.actionLineMobileRef.current;t&&f.a.setVariable(this.productsRef,"myaccount-wihslist-products-margin-bottom",e?"".concat(t.clientHeight,"px"):0)}},{key:"renderProducts",value:function(){var e=this.props,t=e.isWishlistLoading,i=e.isWishlistEmpty,n=e.wishlistItems;return t&&i?this.renderPlaceholders():Object.entries(n).map(this.renderProduct)}},{key:"renderClearWishlist",value:function(){var e=this.props,t=e.removeAll,i=e.isActionsDisabled;return v(n,"button",{block:"Button",mods:{likeLink:!0},mix:{block:"MyAccountMyWishlist",elem:"ClearWishlistButton"},onClick:t,disabled:i},r("Clear"))}},{key:"renderAddAllToCart",value:function(){var e=this.props,t=e.addAllToCart,i=e.isActionsDisabled,o=e.isEditingActive,a=e.isMobile;return v(n,"button",{block:"Button",mix:{block:"MyAccountMyWishlist",elem:"Button"},onClick:t,disabled:a&&o||i},r("Add All to Cart"))}},{key:"renderShareWishlistButton",value:function(){var e=this.props,t=e.isWishlistLoading,i=e.shareWishlist,o=e.isWishlistEmpty;return v(n,"button",{block:"Button",mods:{isHollow:!0},mix:{},onClick:i,disabled:t||o},r("Share"))}},{key:"renderRemoveItemsButton",value:function(){var e=this.props,t=e.isActionsDisabled,i=e.isMobile,o=this.state.selectedIdMap,a=t||i&&!o.length;return v(n,"button",{block:"Button",mods:{likeLink:!0},mix:{block:"MyAccountMyWishlist",elem:"ClearRemoveItemsButton"},onClick:this.handleRemoveButtonClick,disabled:a},1===o.length?r("Remove item (%s)",1):r("Remove items (%s)",o.length))}},{key:"renderActionBarAction",value:function(){return this.props.isEditingActive?v(n,"div",{block:"MyAccountMyWishlist",elem:"ActionBarActionWrapper"},this.renderRemoveItemsButton(),this.renderClearWishlist()):null}},{key:"renderActionBarMobile",value:function(){return v(n,"div",{ref:this.actionLineMobileRef,block:"MyAccountMyWishlist",elem:"ActionBar"},this.renderActionBarAction(),this.renderAddAllToCart())}},{key:"renderActionBar",value:function(){return this.props.isMobile?this.renderActionBarMobile():v(n,"div",{block:"MyAccountMyWishlist",elem:"ActionBar"},this.renderAddAllToCart(),this.renderShareWishlistButton(),this.renderClearWishlist())}},{key:"renderPlaceholders",value:function(){return Array.from({length:2},(function(e,t){return v(n,h.a,{key:t})}))}},{key:"renderShareWishlist",value:function(){return v(n,p.a,null)}},{key:"renderContent",value:function(){var e=this.props,t=e.isWishlistLoading,i=e.isWishlistEmpty,r=e.isLoading;return i&&!t?this.renderNoProductsFound():v(n,"div",{block:"MyAccountMyWishlist",elem:"Products",ref:this.productsRef},v(n,d.a,{isLoading:r}),this.renderProducts())}},{key:"render",value:function(){return v(n,"div",{block:"MyAccountMyWishlist"},this.renderShareWishlist(),this.renderContent(),this.renderActionBar())}}]),i}(e.Extensible(u.PureComponent)),"Component/MyAccountMyWishlist/Component");t.a=b}).call(this,i(7).default,i(0),i(16).default)},1418:function(e,t,i){"use strict";var n=i(1089);i.d(t,"a",(function(){return n.b}))},1421:function(e,t,i){"use strict";var n=i(1422);i.d(t,"a",(function(){return n.a}))},1422:function(e,t,i){"use strict";(function(e,n,r){var o,a,s=i(3),l=i(6),c=i(4),u=i(5),d=i(2),h=i.n(d),p=i(203),m=i(11).checkBEMProps,f=e.middleware((a=o=function(e){Object(c.a)(i,e);var t=Object(u.a)(i);function i(){var e;Object(s.a)(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).onFormSuccess=function(t){(0,e.props.onSave)(t)},e}return Object(l.a)(i,[{key:"fieldMap",get:function(){return{emails:{label:n("Email addresses, separated by commas"),validation:["notEmpty","emails"]},message:{type:"textarea",label:n("Message")}}}},{key:"renderActions",value:function(){return m(r,"button",{type:"submit",block:"Button"},n("Share Wishlist"))}}]),i}(e.Extensible(p.a)),o.propTypes={onSave:h.a.func.isRequired},a),"Component/ShareWishlistForm/Component");t.a=f}).call(this,i(7).default,i(16).default,i(0))},1425:function(e,t,i){"use strict";(function(e,n,r){var o=i(3),a=i(6),s=i(4),l=i(5),c=i(0),u=i(12),d=i(1065),h=i(29),p=i(53),m=i(23),f=i(24),v=i(1805),b=e.middleware((function(e){return{showNotification:function(t){return e(Object(h.d)("success",t))},showError:function(t){return e(Object(h.d)("error",t))},hidePopup:function(){return e(Object(p.b)("",{}))}}}),"Component/ShareWishlistPopup/Container/mapDispatchToProps"),g=e.middleware((function(){return{}}),"Component/ShareWishlistPopup/Container/mapStateToProps"),C=i(11).checkBEMProps,y=e.middleware(function(t){Object(s.a)(c,t);var i=Object(l.a)(c);function c(){var t;Object(o.a)(this,c);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return(t=i.call.apply(i,[this].concat(a))).handleFormData=function(i){var r=t.props,o=r.hidePopup,a=r.showError,s=r.showNotification,l=i.message,c=i.emails.split(",").map((function(e){return e.trim()}));Object(m.d)()&&Object(f.e)(d.a.getShareWishlistMutation({message:l,emails:c})).then(e.middleware((function(){s(n("Wishlist has been shared")),o()}),"Component/ShareWishlistPopup/Container/handleFormDataFetchMutationThen"),e.middleware((function(e){return a(Object(f.g)(e))}),"Component/ShareWishlistPopup/Container/handleFormDataFetchMutationCatch"))},t.containerFunctions=function(){return{handleFormData:t.handleFormData}},t}return Object(a.a)(c,[{key:"render",value:function(){return C(r,v.a,Object.assign({},this.props,this.containerFunctions()))}}]),c}(e.Extensible(c.PureComponent)),"Component/ShareWishlistPopup/Container/shareWishlistPopupContainer");t.a=Object(u.b)(g,b)(y)}).call(this,i(7).default,i(16).default,i(0))},1795:function(e,t,i){},1804:function(e,t,i){"use strict";var n=i(1425);i.d(t,"a",(function(){return n.a}))},1805:function(e,t,i){"use strict";(function(e,n){var r=i(3),o=i(6),a=i(4),s=i(5),l=i(0),c=i(70),u=i(1421),d=i(360),h=(i(1806),i(11).checkBEMProps),p=e.middleware(function(e){Object(a.a)(i,e);var t=Object(s.a)(i);function i(){var e;Object(r.a)(this,i);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={},e}return Object(o.a)(i,[{key:"renderContent",value:function(){var e=this.props.handleFormData;return h(n,u.a,{onSave:e})}},{key:"render",value:function(){return h(n,c.a,{id:d.a,clickOutside:!1,mix:{block:"ShareWishlistPopup"}},this.renderContent())}}]),i}(e.Extensible(l.PureComponent)),"Component/ShareWishlistPopup/Component");t.a=p}).call(this,i(7).default,i(0))},1806:function(e,t,i){},1807:function(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.