1import{_ as s}from"./_rollupPluginBabelHelpers-927c6dd0.js";import{L as i,R as e,bc as t,a4 as o}from"./client-c7cf1e30.js";import{S as r,p as d}from"./index-6b1ab753.js";import{S as a}from"./contexts-1fa00dc9.js";import{SuccessMessage as n}from"./index-65f83dab.js";import{a as l}from"./utils-7422d731.js";import{g as c}from"./wishlists-705ef65f.js";import{u as p}from"./index-fbaff3ff.js";import"./index-c38bfba6.js";import"./missing-image-75975efa.js";import"./index-9f6df208.js";import"./config-a0478fe8.js";import"./index-07b23185.js";import"./hooks-775d5969.js";import"./page-links-4b162335.js";const m=s=>{const{actionAdd:i="",labelAddToWishListName:r="",spaceId:d="",spaceName:a="",onAdd:n=o}=s;return e.createElement("div",{className:"AddToWishListModal__WishListRow"},e.createElement("div",{className:"AddToWishListModal__WishListTitle"},a),e.createElement("button",{type:"button",className:"AddToWishListModal__WishListAdd","data-testid":`addtoWishList-${d}`,"aria-label":t(r,{WishListName:a}),onClick:()=>n(d,a)},i))},u=t=>{const{action:d}=i.exports.useContext(a),{actionCreateNewWishList:u="",productSelection:h=[],moveToWishList:L=!1,onNewWishListClick:x=o,onAddToWishListComplete:W=o,setTriggerRemoveItem:_=o}=t,g=Object.values(p(c)||{}),f=(s,i)=>{const e={wishlistId:s,...l(h)};L&&_(!1),d("addProductToWishlist",e).then((e=>{W(e.ok?{ok:!0,data:{id:s,wishlistName:i},json:e.json}:e)}))};return e.createElement(r,{id:"ListWishLists",css:".ListWishLists{display:flex;flex-direction:column;margin:.75rem 0 0}.ListWishLists__WishLists{margin:0 0 .5rem}.AddToWishListModal__WishListRow{align-items:center;display:flex;padding:.5rem 0}.AddToWishListModal__WishListRow:not(:last-child){border-bottom:1px solid hsla(0,0%,50%,.4)}.AddToWishListModal__WishListTitle{flex-grow:1;font-weight:700}.AddToWishListModal__WishListAdd{height:-moz-fit-content;height:fit-content;width:auto}.ListWishLists__NewWishList,button:not(:disabled).ListWishLists__NewWishList:hover{align-self:flex-end;background:none;color:#4a4a4a;color:var(--cc-color);font-weight:400;padding:0;text-decoration:underline;width:auto}.AddToWishListModal__SuccessMessage{display:flex;flex-direction:column;margin:.75rem 0 0}.AddToWishListModal__ProductDetailsArea{display:flex}.AddToWishListModal__ProductDetails{display:flex;flex-direction:column;flex-grow:1}.AddToWishListModal__ProductDetails,.AddToWishListModal__ProductPrice{margin:0 1rem}.AddToWishListModal__ProductName,.AddToWishListModal__ProductPrice{font-weight:700;margin:0}.AddToWishListModal__ViewPurchaseList,.AddToWishListModal__ViewPurchaseList:hover{align-self:flex-end;color:#4a4a4a;color:var(--cc-color);text-decoration:underline}"},e.createElement("div",{className:"ListWishLists",role:"region","aria-labelledby":"AddToWishListModal__Header"},e.createElement(n,t),e.createElement("div",{className:"ListWishLists__WishLists"},g.map((i=>e.createElement(m,s({key:i.spaceId},t,i,{onAdd:f}))))),e.createElement("button",{type:"button",className:"ListWishLists__NewWishList",onClick:x},u)))};u.propTypes={WishLists:d.exports.objectOf(d.exports.shape({id:d.exports.string.isRequired,name:d.exports.string.isRequired})).isRequired,productSelection:d.exports.oneOfType([d.exports.arrayOf(d.exports.shape({productId:d.exports.string.isRequired,skuId:d.exports.string.isRequired,productDisplayName:d.exports.string,productSalePrice:d.exports.number,productThumbImageURL:d.exports.string,productVariantValues:d.exports.arrayOf(d.exports.shape({optionName:d.exports.string.isRequired,optionValue:d.exports.string.isRequired})),quantity:d.exports.number}).isRequired).isRequired,d.exports.shape({productId:d.exports.string.isRequired,skuId:d.exports.string.isRequired,productDisplayName:d.exports.string,productSalePrice:d.exports.number,productThumbImageURL:d.exports.string,productVariantValues:d.exports.arrayOf(d.exports.shape({optionName:d.exports.string.isRequired,optionValue:d.exports.string.isRequired})),quantity:d.exports.number}).isRequired]).isRequired,onNewWishListClick:d.exports.func.isRequired,onAddToWishListComplete:d.exports.func.isRequired},u.defaultProps={};export{u as default}; 2//# sourceMappingURL=index-9a8cba69.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.