1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[138],{79827:function(e,t,n){n.r(t);n(47012),n(34204),n(35978),n(81621),n(22369),n(1075),n(90937),n(75755),n(50278),n(23e3),n(9844),n(93142),n(43041),n(15166),n(82336);var r=n(41594),o=n.n(r),i=n(96894),a=n(17191),l=n(87291),c=n(14733),u=n(26306),s=n(88577),p=n(91229),d=n(72190);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x(r.key),r)}}function v(e,t,n){return t=h(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function g(e,t,n){return(t=x(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var w=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=v(this,t,[].concat(r))).buildGiftPath=function(e,t,n){return"".concat(e).concat(t,"?categoryId=").concat(n,"&tc=")},e.buildCopy=function(e,t){var n=(null===e||void 0===e?void 0:e.split("\n"))||"";return o().createElement("div",{className:t.copyContainer,"data-testid":"smart-gift-desktop-copy"},o().createElement("strong",null,n[0]),o().createElement("span",null,n[1]),o().createElement("span",null,n[2]))},e.smartGiftSend=function(){var t=e.props,n=t.location,r=n.state,o=n.pathname,i=t.productName,a=t.sku,l=t.price,c=t.image;(0,t.trackEvent)({eventCategory:"Product Page",eventAction:"Smart Gift Click",eventLabel:i}),"undefined"!==typeof window&&window.SGBasket&&window.SGBasket.addItem({skuCode:a.match(/[^-_]*$/)[0],skuUrl:o,price:(0,p.A)(l),name:i,image:c,quantity:"1.0",customParameters:{categoryId:null===r||void 0===r?void 0:r.categoryId,source:"smg",SCILocNumber:""}})},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.giftData,r=n.button_copy,i=n.copy,a=e.pdpVariantName,l="".concat(t.root);return"ThreeColumn"===a&&(l+=" ".concat(t.root,"--ThreeColumn")),o().createElement("div",{className:l,"data-testid":"smart-gift-ui-desktop","data-component":"graphqlSmartGiftUiDesktop"},o().createElement("div",{className:t.smartGiftContainer,id:"smartgift-container"},o().createElement("div",{className:t.iconContainer},o().createElement("svg",{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o().createElement("path",{d:"M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"}),o().createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),o().createElement("svg",{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o().createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),o().createElement("svg",{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o().createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}))),this.buildCopy(i,t),o().createElement("button",{type:"button",id:"send-smartgift",onClick:this.smartGiftSend},o().createElement("span",null,r,"\u2122"))))}}])&&m(n.prototype,r),i&&m(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);w.propTypes={location:(0,a.shape)({state:a.object}),pdpVariantName:a.string,classes:a.object.isRequired,giftData:(0,a.shape)({button_copy:a.string.isRequired,button_color:a.string.isRequired,copy:a.string.isRequired}).isRequired,productName:a.string.isRequired,sku:a.string.isRequired,price:a.array.isRequired,image:a.string.isRequired,trackEvent:a.func.isRequired},w.defaultProps={location:{state:{}},pdpVariantName:""};var E=(0,c.Zz)(i.withRouter,(0,u.Ng)(null,function(e){return{trackEvent:(0,s.zH)(d.trackEvent,e)}}),(0,l.A)(function(e){var t,n,r,o,i,a;
1return{root:g(g(g(g({boxShadow:"0 2px 3px rgba(59,33,81,0.15), 0 2px 2px rgba(59,33,81,0.15)",border:"1px solid #EDEDED",margin:"10px 0",position:"relative",borderRadius:"3px",marginLeft:"120px",maxWidth:"600px"},null===e||void 0===e||null===(t=e.breakpoints)||void 0===t?void 0:t.down("md"),{marginLeft:"0",maxWidth:"100%",minWidth:"100%"}),"&--ThreeColumn",{marginLeft:0}),"@media screen and (min-width: 1024px) and (max-width: 1366px)",{marginLeft:"0",maxWidth:"calc(100% - 120px)",float:"right",width:"100%",minWidth:"352px",alignSelf:"flex-end","&--ThreeColumn":{maxWidth:"100%"}}),"@media screen and (min-width: 1024px) and (max-width: 1279px)",{maxWidth:"100%"}),smartGiftContainer:g({display:"flex",justifyContent:"flex-start",background:null===e||void 0===e||null===(n=e.palette)||void 0===n?void 0:n.white,margin:"20px",flexWrap:"nowrap","& button":{color:null===e||void 0===e||null===(r=e.palette)||void 0===r?void 0:r.common.white,minHeight:"28px",padding:"4px 8px",alignSelf:"center",fontWeight:"normal",borderRadius:"4px",cursor:"pointer",margin:"0",display:"inline",fontSize:"14px",textDecoration:"none",background:(null===(o=e.palette.cms)||void 0===o?void 0:o.flowerPdpButton)||"#61C278",border:"inherit"}},null===e||void 0===e||null===(i=e.breakpoints)||void 0===i?void 0:i.down("md"),{flexWrap:"wrap"}),iconContainer:{display:"flex",alignItems:"center",flexDirection:"column","& svg":{fontSize:"25px",fill:"currentColor",width:"1em",height:"1em",display:"inline - block",userSelect:"none",flexShrink:"0","&:first-child":{fontSize:"35px",color:(null===(a=e.palette.cms)||void 0===a?void 0:a.primary)||e.palette.colorPrimary}}},copyContainer:{flex:"1 0 50%",margin:"10px 0 0 0",display:"flex",fontSize:"14px",alignItems:"flex- start",flexDirection:"column",justifyContent:"space-around","& span":{paddingTop:"5px"}}}}));t.default=E(w)}}]); 2//# sourceMappingURL=SmartGiftUIDesktopV1.c1ed0a71.chunk.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.