var Library=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=150)}([function(e,t,n){e.exports=n(36)()},function(e,t){e.exports=React},function(e,t,n){"use strict";var i="undefined"!=typeof MSFClient&&MSFClient;t.a=i},function(e,t,n){"use strict";var i=n(2),o=n(12),r=n(5);function a(e,t){var n=function(e){if("string"!=typeof e)return{};var t={};return e.split(";").forEach(function(e){var n=e.split("=");if(n&&n.length>=2){var i=decodeURIComponent(n[0].trim()),o=decodeURIComponent(n[1].trim());t[i]=o}}),t}(e)[t];return"string"==typeof n?n:null}var l=function(){if(i.a){var e=i.a.getDocumentCookie();return/\"av\":\"([.\d]*)\"/i.test(a(e,"amzn-app-ctxt"))}return!1}(),s="undefined"!=typeof navigator&&navigator,u=i.a&&i.a.getUserAgentInfo()||s&&s.userAgent,d=/iPhone|iPad|iPod/.test(u),c=/Android/.test(u),f=/\"av\":\"([.\d]*)\"/i,p=function(){if(i.a){var e=i.a.getDocumentCookie(),t=f.exec(a(e,"amzn-app-ctxt"));return t?function(e,t){return t=t||".",e.split(t).map(function(e){return parseInt(e,10)||0})}(t[1]):[]}return[]}(),h=n(11),g=!!i.a&&void 0!==i.a.mash,m=g&&i.a.mash.isAUIAvailable(),y=g&&i.a.mash.launchIntentURL&&"function"==typeof i.a.mash.launchIntentURL.execute,b=g&&i.a.mash.openInExternalBrowser&&"function"==typeof i.a.mash.openInExternalBrowser.execute,S=!!r.a&&"function"==typeof r.a.openInExternalBrowser,v=!!o.a&&"function"==typeof o.a.open,M={mashIsAUIAvailable:m,mashHasLaunchIntentUrl:y,mashHasOpenInExternalBrowser:b,isMshop:l,isIos:d,isAndroid:c,mshopVersion:p,sdkHasOpenInExternalBrowser:S,sdkVersion:h.a,hasMraidOpen:v};t.a=M},function(e,t,n){"use strict";n.d(t,"b",function(){return d}),n.d(t,"c",function(){return f}),n.d(t,"a",function(){return p});var i,o=n(3),r=Object.assign||function(e){for(var t=1;t1?e(!0):e(!1)}},function(e,t,n){"use strict";function i(e){if("string"!=typeof e)return e;for(var t=/\._([^\.]+)(?=_\.\w+$)/,n=t.exec(e),i=n&&n[1].split("_")||[],o=arguments.length,r=Array(o>1?o-1:0),a=1;ar)return 1;if(o=0}var d=/^(https?:)?\/\/primenow\.amazon\./,c=n(4),f=l.a.isMshop,p=l.a.mashIsAUIAvailable,h=l.a.mashHasLaunchIntentUrl,g=l.a.mashHasOpenInExternalBrowser;var m=n(8),y=n(7);n.d(t,"a",function(){return O});var b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},S=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"US").toLowerCase().replace(/^uk$/i,"gb")+"/app/amazon-prime-now/id947644950?mt=8"}(t),url:e})},c.b.MASH_LAUNCH_INTENT_URL):!!g&&Object(c.c)(function(){return o.a.mash.openInExternalBrowser.execute({url:e})},c.b.MASH_OPEN_IN_EXTERNAL_BROWSER)}(t,b):!n&&w&&v&&M&&Object(y.a)(t,n)===m.a?Object(c.c)(function(){return o.a.mash.openInExternalBrowser.execute({url:t})},c.b.MASH_OPEN_IN_EXTERNAL_BROWSER):!n||!O||k&&!u([2,2,10])||P&&!u([5,5,135])?!(!n||!x)&&Object(c.c)(function(){return r.a.open(t)},c.b.MRAID_OPEN):Object(c.c)(function(){return a.a.openInExternalBrowser(i||t)},c.b.AMAZON_OPEN_IN_EXTERNAL_BROWSER)}var M=150;function O(e,t,n,o,r){var a=function(){return v(e,t,n,r)};return function(e,t,n){return Object(y.a)(e,t,n)===m.b}(e,t,o)?(setTimeout(function(){return a()||i.open(e,Object(y.a)(e,t,o))},M),!0):a()}},function(e,t,n){"use strict";var i="undefined"!=typeof window&&window.VisualCompleteness;e.exports={measureImageLoads:function(e){return function(t){var n=new Image;n.onload=function(){i&&i.endTimer(e)},n.src=t}},measureImageLoadsRefHandler:function(e){if("function"==typeof e)return function(t){t&&e(t.src)}}}},function(e,t,n){"use strict";n.r(t);var i=n(1),o=n.n(i),r=n(0),a=n.n(r),l=n(9),s=n.n(l),u=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2],i=".",o=",";n&&/^(DE|FR|IT|ES|BR|NL)$/i.test(n)&&(i=",",o=".");var r,a=(1*e).toFixed(t).toString().split("."),l=a[0],s=a[1];return r="IN"===n?l.replace(/(\d)(?=(\d\d)+\d$)/g,"$1"+o):l.replace(/\B(?=(\d{3})+(?!\d))/g,o),s?r+i+s:r},p=function(e,t){var n=h(e,t),i=void 0,o=void 0;return n.isTrailingSymbol?(i=n.number,o=n.symbol):(i=n.symbol,o=n.number),n.isSpaceBetweenSymbolAndNumber?i+" "+o:i+o},h=function(e,t){var n=i.default[t],o=/^(DE|FR|IT|ES)$/i.test(t),r="JP"===t,a=n.currency,l=/^(DE|FR|IT|ES|NL)$/i.test(t);return{symbol:a,number:/[^0-9,.]/.test(e)?e:f(e,r?0:2,t),isTrailingSymbol:o,isSpaceBetweenSymbolAndNumber:l}},g=function(e,t){var n=void 0;switch(e){case"DEAL_OF_THE_DAY":n=l[t];break;case"LIGHTNING_DEAL":n=s[t];break;case"BEST_DEAL":n=u[t]}return n};e.exports={getFormattedSavingsMessage:function(e,t,n,i,o){var r=["JP"].includes(t)?a[t].replace("{0} ",e):a[t].replace("{0}",e);return!i||o?r:g(n,t)+("JP"===t?" ":" - ")+r},formatDealType:g,formatDiscount:function(e,t,n,i){var l="Percent off"===e.type?Math.round(e.value)+"%":p(e.value,n).replace(/\.00$/,"");return l=l&&"JP"===n&&"Amount off"===e.type?l.substr(1)+"円":l,(t||i?a:"Percent off"===e.type?o:r)[n].replace("{0}",l)},getPriceObject:h,formatNumber:f,formatDate:function(e,t){var n="",o="",r="",a="";if("string"==typeof e){var l=e.split("-");n=l[2],o=l[1],r=i.default[t].localeMonths[o-1],a=l[0]}else n=e.getDate(),r=i.default[t].localeMonths[e.getMonth()],a=e.getFullYear();var s=void 0;switch(t){case"FR":case"IT":case"ES":case"MX":case"AU":case"AE":case"SA":case"NL":case"SG":case"BR":s=n+" "+r.toLowerCase()+" "+a;break;case"DE":s=n+". "+r+" "+a;break;case"JP":s=a+"年"+o+"月"+n+"日";break;default:s=r+" "+n+", "+a}return s},formatCurrency:p,formatSponsoredBy:function(e,t){return e?d[t]+e:c[t]},COUPON_DISCLAIMER_MESSAGE_BY_LOCALE:{JP:"※なくなり次第終了"}}},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:1;if(t<3||n<3)return null;var o=this.props.autoCrop?s.add(e,s.autoCrop()):e;return this.scaleToContainingRect(o,t,n,i)}},{key:"scaleToContainingRect",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return s.add(s.add(e,s.scale().width(t*i)),s.scale().height(n*i))}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.height,i=t.src,o=t.width;(0,u.default)(function(t){return e.setState({isRetina:t})}),this.measureDimensions(this.generateUrl(i,o,n))}},{key:"measureDimensions",value:function(e){var t=this;this.img&&(this.img.onload=function(){}),this.img=new Image,this.img.onload=function(e){var n=e.target,i=n.naturalWidth,o=n.naturalHeight;"function"==typeof t.props.onSizeChange&&t.props.onSizeChange(i,o),t.img=null},this.img.src=e}},{key:"render",value:function(){var e=this.state.isRetina,t=this.props,n=t.height,i=t.src,o=t.style,r=t.width,l=this.generateUrl(i,r,n,e?2:1),s={maxWidth:r,maxHeight:n};return Object.assign(s,o),a.default.createElement("img",{ref:this.measureImageLoadsRef,alt:"","aria-hidden":"true",src:l,style:s})}}]),t}();t.default=f,f.displayName="ProductImage",f.propTypes={height:l.default.number.isRequired,measureImageLoads:l.default.func,onSizeChange:l.default.func,src:l.default.string.isRequired,style:l.default.object,width:l.default.number.isRequired,autoCrop:l.default.bool.isRequired},f.defaultProps={autoCrop:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"AMG";return"function"==typeof btoa?btoa((new Date).getTime()+";"+e):""}())},h=function(e){function t(e){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={processedUrl:void 0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),f(t,[{key:"componentDidMount",value:function(){var e=this.props.url,t=p(e);t!==e&&this.setState({processedUrl:t})}},{key:"handleOnClick",value:function(e,t){var n=this.props,i=n.cascadingIntent,o=n.clickTrackerUrls,r=n.customEvent,a=n.onClick,s=n.onNavigate,f=n.isOffsite,h=n.url;if(Object(u.a)(p(h),f,i,t)&&e.preventDefault(),r&&r(),"function"==typeof a&&a(),"function"==typeof s){var g=Object(d.a)();s(c({},g,{isOffsite:f,url:h,cascadingIntent:i}))}Object(l.default)(o)}},{key:"handleRef",value:function(e){var t=this;e&&e.addEventListener("auxclick",function(e){var n=2===e.which;n&&t.handleOnClick(e,n)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.url,i=t.isOffsite,r=t.children,a=t.anchorProps,l=this.state.processedUrl;return o.a.createElement("a",c({},a,{ref:function(t){return e.handleRef(t)},href:l||n,target:Object(s.a)(n,i),onClick:function(t){return e.handleOnClick(t)},onMouseDown:function(){return e.forceUpdate()}}),r)}}]),t}();t.default=h,h.displayName="ClickthroughLink",h.propTypes={url:a.a.string.isRequired,cascadingIntent:a.a.string,isOffsite:a.a.bool,clickTrackerUrls:a.a.arrayOf(a.a.string),customEvent:a.a.func,onClick:a.a.func,onNavigate:a.a.func,anchorProps:a.a.object,children:a.a.node}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cemLoggerNavigateEventCallback=t.cemLoggerClickEventCallback=void 0;var i=Object.assign||function(e){for(var t=1;t=402;f=E?25:p?21:C?16:w||k||P?16.8:19;var z=(0,o.default)(e,t,n,i,r,a,s),I=f+1,j=I*(k||b&&!c?1:_||D&&u&&m||P||c&&W?2:C?3:D&&!u?4:T&&u&&(y||m)?2:3);return g&&O&&(j-=Math.ceil(O/I)*I)t.maxLines;){if(r<=t.minFontPx){a||(i+="...",a=!0);var s=i.length;i=i.substr(0,s-"...".length-1)+"...",e.innerText=i}else r--,e.style.fontSize=r+"px";if(o=e.getClientRects().length,++l>999)break}}}},function(e,t,n){"use strict";function i(e){switch(e){case"US":case"CA":case"MX":case"BR":return"na";case"UK":case"DE":case"FR":case"IT":case"ES":case"IN":case"AE":case"NL":case"SA":return"eu";case"JP":case"AU":case"SG":return"fe";case"CN":return"cn"}}n.r(t),n.d(t,"default",function(){return i})},function(e,t,n){"use strict";function i(e){return"amazon."+o(e)}function o(e){switch(e){case"US":return"com";case"MX":return"com.mx";case"UK":return"co.uk";case"JP":return"co.jp";case"AU":return"com.au";case"AE":return"ae";case"SA":return"sa";case"BR":return"com.br";case"NL":return"nl";case"SG":return"sg";default:return e.toLowerCase()}}n.r(t),n.d(t,"default",function(){return i}),n.d(t,"getTld",function(){return o})},function(e,t,n){var i=n(42).default,o=n(41).default,r={US:{selectionLabel:"English (US)",currency:"$",media:"01",merchantId:"ATVPDKIKX0DER",marketplaceId:"ATVPDKIKX0DER",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},CA:{selectionLabel:"English (CA)",currency:"$",media:"15",merchantId:"A3DWYIK6Y9EEQB",marketplaceId:"A2EUQ1WTGCTBG2",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},MX:{selectionLabel:"Spanish (MX)",currency:"$",media:"30",merchantId:"AVDBXBAVVSXLQ",marketplaceId:"A1AM78C64UM0Y8",localeMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"]},BR:{selectionLabel:"Portuguese (BR)",currency:"R$ ",media:"32",merchantId:"A1ZZFT5FULY4LN",marketplaceId:"A2Q3Y263D00KWC",localeMonths:"['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez']"},UK:{selectionLabel:"English (UK)",currency:"£",media:"02",merchantId:"A3P5ROKL5A1OLE",marketplaceId:"A1F83G8C2ARO7P",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},DE:{selectionLabel:"German",currency:"€",media:"03",merchantId:"A3JWKAKR8XB7XF",marketplaceId:"A1PA6795UKMFR9",localeMonths:["Jan","Feb","März","Apr","Mai","Juni","Juli","Aug","Sept","Okt","Nov","Dez"]},FR:{selectionLabel:"French",currency:"€",media:"08",merchantId:"A1X6FK5RDHNB96",marketplaceId:"A13V1IB3VIYZZH",localeMonths:["Jan.","Févr.","Mars","Avr.","Mai","Juin","Juil.","Août","Sept.","Oct.","Nov.","Déc."]},IT:{selectionLabel:"Italian",currency:"€",media:"29",merchantId:"A11IL2PNWYJU7H",marketplaceId:"APJ6JRA9NG5V4",localeMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]},ES:{selectionLabel:"Spanish",currency:"€",media:"30",merchantId:"A1AT7YVPFBWXBL",marketplaceId:"A1RKKUPIHCS9HS",localeMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"]},IN:{selectionLabel:"English (IN)",currency:"₹",media:"31",merchantId:"AT95IG9ONZD7S",marketplaceId:"A21TJRUUN4KGV",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},AE:{selectionLabel:"English (AE)",currency:"AED",media:"39",merchantId:"A2KKU8J8O8784X",marketplaceId:"A2VIGQ35RCS4UG",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},SA:{selectionLabel:"Arabic",currency:"ريـال",media:"40",merchantId:"A2XPWB6MYN7ZDK",marketplaceId:"A17E79C6D8DWNP",localeMonths:["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"]},NL:{selectionLabel:"Dutch",currency:"€",media:"37",merchantId:"A17D2BRD4YMT0X",marketplaceId:"A1805IZSGTT6HS",localeMonths:"['jan', 'feb', 'maa', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']"},JP:{selectionLabel:"Japanese",currency:"¥",media:"09",merchantId:"AN1VRQENFRJN5",marketplaceId:"A1VC38T7YXB528",yearText:"å¹´",dayText:"æ—¥",monthText:"月",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},AU:{selectionLabel:"Australia",currency:"$",media:"35",merchantId:"ANEGB3WVEVKZB",marketplaceId:"A39IBJ37TRP1C6",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},SG:{selectionLabel:"English (SG)",currency:"$",media:"65",merchantId:"ACT6OAM3OSC9S",marketplaceId:"A19VAU5U5O7RUS",localeMonths:"['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec']"},CN:{selectionLabel:"",currency:"¥ ",media:"28",merchantId:"A1AJ19PSB66TGU",marketplaceId:"AAHKV2X7AFYLW",localeMonths:["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]}};for(var a in r)r[a].domain=i(a),r[a].region=o(a);e.exports=r},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["isLargeBillboardSlot","isMobile","isTablet"]);return o.default.createElement(a.default.Consumer,null,function(e){var a=i({isLargeBillboardSlot:u(t,e.isLargeBillboardSlot),isMobile:u(n,e.isMobile),isTablet:u(r,e.isTablet),locale:e.locale,mediaCentralPath:e.mediaCentralPath},s);return o.default.createElement(l.default,a)})};d.propTypes={isLargeBillboardSlot:r.default.bool,isMobile:r.default.bool,isTablet:r.default.bool,style:r.default.object},t.default=d},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=n&&!e.state.doneAnimating&&!e.timer&&e.animate()},function(){!i||e.state.doneAnimating||e.timer||e.animate()})}},{key:"componentWillUnmount",value:function(){this.clearAnimationTimer()}},{key:"clearAnimationTimer",value:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}},{key:"handleRef",value:function(e){this.node=e}},{key:"animate",value:function(){var e=this,t=this.props,n=t.count,i=t.interval,o=1;this.timer=setInterval(function(){e.setState({currentAnimationCount:e.state.currentAnimationCount+1}),o>=n&&(e.clearAnimationTimer(),e.setState({doneAnimating:!0})),o++},i)}},{key:"wrapChildren",value:function(e,t){var n=this.state.currentAnimationCount,i=a.default.Children.count(e),o=n%i;return a.default.Children.map(e,function(e,r){var l=o===r,u=n>0&&0===o?i-1===r:o-1===r,d={};return l?d[t.in]=!0:u&&(d[t.out]=!0),a.default.createElement(f,{className:(0,s.default)(d),style:!u&&!l&&{visibility:"hidden"}},e)})}},{key:"render",value:function(){var e=this.props,t=e.animationClassNames,n=e.animationStyle,i=e.children,o=e.style,r=Object.assign({},o,{position:"relative"});return a.default.createElement("div",null,a.default.createElement("style",null,n),a.default.createElement("div",{ref:this.handleRef,style:r},this.wrapChildren(i,t)))}}]),t}();t.default=p,p.displayName="AnimatedContentSkin",p.propTypes={style:l.default.object,count:l.default.number,interval:l.default.number,animateWithNoViewability:l.default.bool,animationPercentThreshold:l.default.string,animationClassNames:l.default.shape({in:l.default.string.isRequired,out:l.default.string.isRequired}),animationStyle:l.default.string},p.defaultProps={count:5,interval:3e3,animateWithNoViewability:!0,animationPercentThreshold:.5,animationClassNames:{in:"fadeIn",out:"fadeOut"},animationStyle:"\n @-webkit-keyframes animateIn {\n from {opacity:0}\n to {opacity:1}\n }\n \n @-webkit-keyframes animateOut {\n from {opacity:1}\n to {opacity:0}\n }\n \n @keyframes animateIn {\n from {opacity:0}\n to {opacity:1}\n }\n \n @keyframes animateOut {\n from {opacity:1}\n to {opacity:0}\n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sizeSupportsSwoosh=function(e,t){return Object.keys(i).includes(e+"x"+t)},t.getContentSize=function(e,t){var n={};switch(e){case"300x600":case"160x600":n={height:-(t.bottom+o[e].swooshLength)};break;case"728x90":n={width:-(t.right+o[e].swooshLength)}}return n};var i=t.imageDimensions={"160x600":{maxWidth:140,maxHeight:240,imgCenter:215},"300x600":{maxWidth:260,maxHeight:320,imgCenter:250},"728x90":{maxWidth:320,maxHeight:70,imgCenter:160},"970x250":{maxWidth:315,maxHeight:252},"980x55":{maxWidth:170,maxHeight:45}},o=t.defaults={transition:{transitionDuration:"500ms",transitionTimingFunction:"ease-in",transitionProperty:"opacity transform"},hoverTransition:{transitionDuration:"250ms"},offsets:{top:282,bottom:-348,left:135,right:-552},"300x600":{swooshLength:74},"160x600":{swooshLength:74},"728x90":{swooshLength:54,swooshLengthBottom:39}}},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=402?2:4,minFontPx:12,maxFontPx:19};(0,d.pdaTruncatedText)(e,s,e.innerText)}else if(o){var u={maxLines:window.innerWidth>=402?2:3,minFontPx:13,maxFontPx:22};(0,d.pdaTruncatedText)(e,u,e.innerText)}else if(r||l){var c={maxLines:a.maxLines,minFontPx:a.minFontPx,maxFontPx:a.maxFontPx};(0,d.pdaTruncatedText)(e,c,e.innerText)}else{var f=e.offsetHeight,p=e.parentElement&&e.parentElement.offsetHeight,h=this.props.headlineStyle&&this.props.headlineStyle.fontSize;if(f&&p&&h&&f>p){var g=Math.ceil(h*Math.sqrt(p/f));gs&&(g=n.substr(0,s).trim()+"…"),this.state.reducedFontSize&&Object.assign(h,{fontSize:this.state.reducedFontSize});var m=c?"pinpoint-headlineWrapper":i,y={minWidth:0};f&&(y=Object.assign(y,r),Object.assign(h,{lineHeight:"normal"}));var b=a.default.createElement("div",{className:i,style:o},a.default.createElement("a",{ref:function(t){e.pdaHeadlineInstance=t},style:h},g)),S=a.default.createElement("div",{className:m,style:o},a.default.createElement("div",{ref:this.headlineSectionRef,style:y},d||f||c?a.default.createElement(u.default,{ref:function(t){e.pdaHeadlineInstance=t},style:h},g):a.default.createElement(u.default,{style:h},g)));return p?b:S}}]),t}();t.default=f,f.displayName="HeadlineText",f.propTypes={headline:l.default.string.isRequired,headlineWrapperClassName:l.default.string,headlineWrapperStyle:l.default.object,headlineStyle:l.default.object,headlineTextLimit:l.default.number},f.defaultProps={headlineTextLimit:50,headlineWrapperClassName:"flex-container flex-align-center flex-justify-center"}},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n…  ',p=function(e){function t(){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":i(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.generateTruncatedText=e.generateTruncatedText.bind(e),e.onWindowResize=e.onWindowResize.bind(e),e.resize=e.resize.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":i(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),o(t,[{key:"render",value:function(){return a.default.createElement("span",{style:this.props.style},this.props.text)}},{key:"componentDidMount",value:function(){this.generateTruncatedText(),"undefined"!=typeof window&&window.addEventListener("resize",this.onWindowResize)}},{key:"componentWillUnmount",value:function(){"undefined"!=typeof window&&window.removeEventListener("resize",this.onWindowResize)}},{key:"onWindowResize",value:function(){this.resizeDebounceTimeout?(clearTimeout(this.resizeDebounceTimeout),delete this.resizeDebounceTimeout):this.resize(),this.resizeDebounceTimeout=setTimeout(this.resize,500)}},{key:"resize",value:function(){var e=h(s.default.findDOMNode(this));!this.renderedContainer||this.renderedContainer.width===e.width&&this.renderedContainer.height===e.height||this.generateTruncatedText()}},{key:"componentDidUpdate",value:function(){this.generateTruncatedText()}},{key:"generateTruncatedText",value:function(){var e=this.props.text,t=s.default.findDOMNode(this),n=e.replace(/([,.…[(\-\s]*\s)/g,c+"$1")+f;t.innerHTML=n+function(){for(var e="
 ";e.length<1e4;)e="
"+e+" ";return e}();var i=h(t);this.renderedContainer=i;var o=function(e,t){var n={x:t.right,y:t.bottom,h:0},i=[];if((i=[].slice.call(e.parentNode.childNodes)).splice(0,i.indexOf(e)+1),i.reverse(),0==i.length)return n;var o=[];for(var r in i)if(i.hasOwnProperty(r)){var a=i[r];if("function"==typeof a.getClientRects)for(var l=a.getClientRects(),s=0;s=0;b--){var S=y[b].getBoundingClientRect();if(g=n.lastIndexOf(c,g-1),S.bottom<=l&&S.right<=u||S.bottom<=l-o.h&&S.right<=i.right-a){var v=g,M=m-v,O=n.split("");O.splice(v,M),p=O.join("");break}}t.innerHTML=p||e,"function"==typeof this.props.onTruncation&&this.props.onTruncation(p!=e)}}]),t}();function h(e){for(var t={left:0,right:1/0,top:0,bottom:1/0},n=e;(n=n.parentNode)&&n.getBoundingClientRect;){var i=n.getBoundingClientRect();t.left!==t.right&&t.top!==t.bottom&&(t.left=Math.max(i.left,t.left),t.right=Math.min(i.right,t.right),t.top=Math.max(i.top,t.top),t.bottom=Math.min(i.bottom,t.bottom))}return t.width=t.right-t.left,t.height=t.bottom-t.top,t}t.default=p,p.displayName="TruncatedText",p.propTypes={text:l.default.string.isRequired,onTruncation:l.default.func}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(62));t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSlotName=o,t.isIlmPlacement=function(e,t){return i.IlmRegex.test(o(e,t))};var i=t.slotNames={R2:"right-2",IlmRegex:/.*detail-ilm/};function o(e,t){var n=e&&e.renderContext&&e.renderContext.slotName||t&&t.placementInfo&&(t.placementInfo.slotName||"string"==typeof t.placementInfo.slot&&t.placementInfo.slot.split("_")[1]);return n&&n.toLowerCase()}},,function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0}),t.sizes=void 0;var o=Object.assign||function(e){for(var t=1;t=15||(0,i.getRoundedStarRating)(M)>=3.5),_=(0,o.isEuLocale)(a),D="JP"===a,z="DE"===a;if(C)return B(970,250)||!!p;if(O&&w)return!1;if(!r&&w)return!1;if(!W)return!1;if(w&&u)return!1;if(z&&u&&R)return!1;if(P&&x){if(k&&!c&&B(300,250))return!1;if(k&&B(728,90))return!1;if(x.length>24&&B(160,600))return!1}if(T&&y<180)return!1;if(f&&E&&_)return!1;if(E&&b){if(z&&x)return!1;if(D&&f)return!1}return!0};var i=n(37),o=n(29)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gradientStyle=function(e,t){return("background: "+e+";\n background: -webkit-linear-gradient("+e+", "+t+");\n background: -o-linear-gradient("+e+", "+t+");\n background: -moz-linear-gradient("+e+", "+t+");\n background: linear-gradient("+e+", "+t+");").replace(/\s/g,"")}},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.props.size;switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.deviceType){case"tablet":switch(e){case"small":return{fontSize:13,height:33,padding:"0 12px 0 13px"};case"regular":default:return{fontSize:16,height:45,padding:"0 6px 0 7px"}}case"desktop":case"mobile":default:switch(e){case"small":return{height:20,padding:"0 6px 0 7px"};case"regular":default:return{height:29,padding:"0 10px 0 11px"}}}}},{key:"onClick",value:function(){this.props.onClick&&this.props.onClick()}},{key:"render",value:function(){var e=this.props,t=e.buttonTheme,n=e.buttonType,i=e.cascadingIntent,o=e.children,a=e.deviceType,s=e.link,c=e.onClick,h=e.size,g=e.style,m=("blackjack"===t?p:f)[n],y={border:"1px solid",borderColor:m.baseBorder,WebkitBorderRadius:3,MozBorderRadius:3,borderRadius:3,verticalAlign:"middle",textDecoration:"none",overflow:"hidden",cursor:"pointer",color:"currentColor",position:"relative",zIndex:1e3,background:this.getLinearGradient(m.baseGradient),backgroundColor:m.baseGradient[0],WebkitTransform:"translate3d(0,0,0)"};if("standard"===t){var b=void 0;this.state.selected?b="0 1px 3px rgba(0, 0, 0, 0.2) inset":this.state.hover||(b="0 1px 0 rgba(255, 255, 255, 0.6) inset"),y.WebkitBoxShadow=y.MozBoxShadow=y.boxShadow=b}this.state.selected?(y.background=m.baseGradient[1],m.selectedBorder&&(y.borderColor=m.selectedBorder)):this.state.hover&&(m.hoverGradient&&(y.background=this.getLinearGradient(m.hoverGradient),y.backgroundColor=m.hoverGradient[0]),m.hoverBorder&&(y.borderColor=m.hoverBorder));var S={style:y=Object.assign(y,this.getStyleForSize(h,a),g),className:"button-container flex-container flex-align-center flex-justify-center",onMouseEnter:(0,u.default)(this.setHover,this,!0),onMouseLeave:(0,u.default)(this.setHover,this,!1),onMouseDown:(0,u.default)(this.setSelected,this,!0),onMouseUp:(0,u.default)(this.setSelected,this,!1)};return c?l.default.createElement("a",r({href:"javascript:;",onClick:(0,u.default)(this.onClick,this,!0)},S),o):l.default.createElement(d.default,r({},S,{cascadingIntent:i,url:s,a11ycompliant:!0}),o)}}]),t}();t.default=h,h.displayName="Button",h.propTypes={buttonTheme:s.default.oneOf(["standard","blackjack"]),buttonType:s.default.oneOf(["primary","secondary","preorder"]),cascadingIntent:s.default.string,deviceType:s.default.oneOf(["desktop","mobile","tablet"]),link:s.default.string,onClick:s.default.func,size:s.default.oneOf(["small","regular"]),style:s.default.object},h.defaultProps={buttonType:"primary",buttonTheme:"standard",deviceType:"desktop",size:"regular"}},function(e,t,n){"use strict";n.r(t),n.d(t,"transform",function(){return i}),n.d(t,"translateY",function(){return r}),n.d(t,"translateX",function(){return a});var i=function(e){return{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}};function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px";return i("translate"+e+"("+t+n+")")}function r(e,t){return o("Y",e,t)}function a(e,t){return o("X",e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateClientWidth=function(e){if(!e)throw new Error("Cannot calculate width of undefined element.");return e.getBoundingClientRect().width}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=15&&(0,a.getRoundedStarRating)(n)>=3.5}(e.customerReviewSummary)&&i.default.createElement(l.default,{className:t,style:{position:"relative",textDecoration:"none",zIndex:1e3},url:e.reviewsLink},i.default.createElement(u.default,r))})};f.propTypes={className:o.default.string,count:o.default.number,countStyle:o.default.object,locale:o.default.string,mediaCentralPath:o.default.string,rating:o.default.number,size:o.default.oneOf(s.sizes.medium,s.sizes.large),style:o.default.object},t.default=f,t.sizes=s.sizes},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(93);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return function(e){return e&&e.__esModule?e:{default:e}}(i).default}})},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&(0,c.default)(this.props.impressionUrls),window.addEventListener("resize",this.updateResponsiveSize),this.updateResponsiveSize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateResponsiveSize)}},{key:"updateResponsiveSize",value:function(){var e=this.props,t=e.width+"x"+e.height,n="245x250"===t&&window.innerWidth>=402;n!==this.state.is245x250Wide&&this.setState({is245x250Wide:n});var i="650x130"===t&&window.innerWidth>=540;i!==this.state.is650x130Wide&&this.setState({is650x130Wide:i}),"970x250"===t&&this.setState({clientWidthRatio:window.innerWidth/970,clientHeightRatio:window.innerHeight/250})}},{key:"onProductImageSizeChange",value:function(e,t){this.setState({imageHeight:t,imageWidth:e,productImageStyles:(0,S.calculateImageStyles)(this.props.width,this.props.height,e,t),swooshOffsets:(0,v.getOffsets)(this.props.width+"x"+this.props.height,e,t)})}},{key:"onBrandLogoSizeChange",value:function(e,t){this.setState({brandlogoWidth:e,brandlogoHeight:t})}},{key:"onHover",value:function(){this.setState({isHovering:!0})}},{key:"offHover",value:function(){this.setState({isHovering:!1})}},{key:"get270x150ComponentStyles",value:function(e){switch(e.type){case T.headlineStyle:return{headlineDivStyle:{textAlign:"center",padding:"6px 22px"},headlineTextStyle:{display:"inline",overflow:"hidden",textOverflow:"ellipsis",lineHeight:"17px",fontWeight:"bold",fontSize:"13px",textDecoration:"none",color:"black"}};case T.outBoxStyle:return{height:"100%",display:"flex",justifyContent:"center",pointerEvents:"none"};case T.headlineBorderStyle:return{borderBottom:"solid 1px #ddd"};case T.innerImgDiv:return{display:"table-cell",verticalAlign:"middle"};case T.outerImgDiv:return{position:"absolute",height:"80%",top:"10%",width:"108px",display:"table"};case T.headlineTextConfig:return{maxLines:1,minFontPx:13,maxFontPx:13}}}},{key:"get245x250ComponentStyles",value:function(e){var t=e.type,n=e.hasHeadlineOrLogo,i=e.showBadge,o=e.brandLogoUrl;if(this.state.is245x250Wide)switch(t){case"headlineLogoStyle":return{headlineWrapperStyle:{maxHeight:36,margin:15,paddingBottom:15,borderBottom:"1px solid #ccc",textAlign:"left"},brandLogoDimensions:{width:140,height:50}};case"childrenContainerStyle":return{minWidth:180,maxWidth:200,maxHeight:n?105:220,padding:"0 15px 15px",flexDirection:"row",position:"relative"};case"productImageRenderDimensions":return{width:177,height:i?205:220};case"textStyle":return{textAlign:"left",fontSize:o?14:17,lineHeight:o?"19px":"21px"};case"productImageWrapperStyle":return{paddingTop:i?30:15,paddingLeft:15};case"contentContainerStyle":return{width:402,height:250,borderRadius:0}}else switch(t){case"headlineLogoStyle":return{headlineWrapperStyle:{minWidth:100,maxWidth:200,maxHeight:61,margin:"15px 15px 0 15px"},brandLogoDimensions:{width:100,height:50}};case"childrenContainerStyle":return{width:214,height:84,padding:"0 15px 10px"};case"productImageRenderDimensions":return{width:n?this.props.isPDAStyle?110:100:214,height:i?111:this.props.isPDAStyle?140:126};case"textStyle":return{fontSize:o?12:14,lineHeight:o?"15px":"19px"};case"productImageWrapperStyle":return{paddingTop:i?30:15,paddingLeft:15,paddingRight:n?0:15};case"contentContainerStyle":return{width:244,height:250,borderRadius:4}}}},{key:"get245x250ComponentStyles_PDAStyle",value:function(e){var t=e.type,n=e.hasHeadlineOrLogo,i=e.showBadge;if(e.brandLogoUrl,this.state.is245x250Wide)switch(t){case"headlineLogoStyle":return{headlineWrapperStyle:{marginTop:0,textAlign:"left",padding:"0 2px"},brandLogoDimensions:{margin:"0px 0px 10px",height:"auto",width:"100%"}};case"childrenContainerStyle":return{flexGrow:0,flexShrink:0,overflow:"hidden",flexDirection:"column",display:"flex",padding:"0"};case"productImageRenderDimensions":return{width:160,maxHeight:230};case"textStyle":return{textAlign:"left",fontSize:22,lineHeight:1.2,fontWeight:"bold",color:"rgb(51, 51, 51)"};case"productImageWrapperStyle":return{margin:"0 10px 0 0",minWidth:"120px",maxWidth:"160px"};case"contentContainerStyle":return{position:"relative",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent",border:"none",justifyContent:"center",borderRadius:"0px"}}else switch(t){case"headlineLogoStyle":return{headlineWrapperStyle:{padding:"0 2px",overflow:"hidden",marginTop:0},brandLogoDimensions:{margin:"0px 0px 10px",height:"auto",width:"100%",position:"relative"}};case"childrenContainerStyle":return{flexGrow:0,flexShrink:0,overflow:"hidden",flexDirection:"column",display:"flex",padding:"0"};case"productImageRenderDimensions":return{maxHeight:140,maxWidth:n?110:214};case"textStyle":return{fontSize:22,lineHeight:1.2,fontWeight:"bold",color:"rgb(51, 51, 51)",textAlign:"center"};case"productImageWrapperStyle":return{paddingTop:i?25:0,margin:"0 5px 0 0",minWidth:"80px",maxWidth:"110px"};case"contentContainerStyle":return{position:"relative",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent",border:"none",justifyContent:"center",borderRadius:"0px"}}}},{key:"getProductImage",value:function(e){var t=e.productImageUrl,n=e.productImageDimensions,i=e.productImageStyle,o=e.onProductImageSizeChange;return l.default.createElement(y.default,{height:n.height,measureImageLoads:(0,k.measureImageLoads)(w.default.productImage),onSizeChange:o,src:t,style:i,width:n.width})}},{key:"getBrandLogo",value:function(e,t,n,i){return l.default.createElement(y.default,{height:t.height,measureImageLoads:(0,k.measureImageLoads)(w.default.brandLogo),onSizeChange:i,src:e,style:n,width:t.width})}},{key:"getProductImageWrapperStyle",value:function(e){var t=e.creativeSize,n=e.productImageRenderDimensions,i=e.hasHeadlineOrLogo,o=e.showBadge,r="650x130"===t?{}:{width:n.width,height:n.height};switch(t){case"300x250":Object.assign(r,{msFlex:"1 1 auto",flexGrow:1,flexShrink:1,borderBottom:"none"},i?{marginRight:20,paddingTop:o?20:0}:{padding:"15px 15px 5px 15px"});break;case"300x600":Object.assign(r,{msFlex:"1 1 auto",paddingTop:30,height:"auto"});break;case"160x600":Object.assign(r,{msFlex:"1 1 auto",paddingTop:20,height:"auto"});break;case"970x250":Object.assign(r,{width:"auto",height:"auto",paddingLeft:30,borderLeft:"1px solid #ccc"});break;case"728x90":Object.assign(r,{width:"auto",height:"auto",paddingLeft:20,borderLeft:"1px solid #ccc"});break;case"245x250":var a=this.props.isPinpointPdaStyles?this.get245x250ComponentStyles_PDAStyle({type:"productImageWrapperStyle",hasHeadlineOrLogo:i,showBadge:o}):this.get245x250ComponentStyles({type:"productImageWrapperStyle",hasHeadlineOrLogo:i,showBadge:o});Object.assign(r,a);break;case"270x150":Object.assign(r,{margin:"8px",textAlign:"center",zIndex:20,position:"relative",height:"auto"})}return r}},{key:"getHeadlineLogoStyle",value:function(e,t,n){var i=void 0,o={textAlign:"center",marginTop:t?"650x130"===e?15:20:0,minWidth:0};switch(e){case"300x250":Object.assign(o,{maxWidth:120,marginTop:15}),i={width:120,height:this.props.format===P.CustomerReview?45:70};break;case"300x600":Object.assign(o,{maxWidth:260}),i={width:180,height:80};break;case"160x600":Object.assign(o,{maxWidth:140}),i={width:120,height:70};break;case"970x250":i={width:this.state.clientWidthRatio?200*this.state.clientWidthRatio:200,height:this.state.clientHeightRatio?100*this.state.clientHeightRatio:100};break;case"728x90":Object.assign(o,{maxWidth:220,margin:"0 20px"}),i={width:100,height:n?50:70};break;case"980x55":i={width:100,height:45};break;case"650x130":Object.assign(o,{maxWidth:220,maxHeight:40}),i={width:140,height:n?35:50};break;case"245x250":var r=this.props.isPinpointPdaStyles?this.get245x250ComponentStyles_PDAStyle({type:"headlineLogoStyle"}).headlineWrapperStyle:this.get245x250ComponentStyles({type:"headlineLogoStyle"}).headlineWrapperStyle;Object.assign(o,r),i=this.props.isPinpointPdaStyles?this.get245x250ComponentStyles_PDAStyle({type:"headlineLogoStyle"}).brandLogoDimensions:this.get245x250ComponentStyles({type:"headlineLogoStyle"}).brandLogoDimensions}return{brandLogoDimensions:i,headlineWrapperStyle:o}}},{key:"getBackgroundDimensions",value:function(e,t,n,i){var o=void 0,r=void 0;switch(e+"x"+t){case"300x250":case"300x600":o=e,r=n?t-i.height:t;break;case"160x600":o="auto",r=n?t-i.height:t;break;case"728x90":o="auto",r=t;break;case"970x250":o=473,r="auto";break;case"980x55":o=106,r="auto"}return{backgroundWidth:o,backgroundHeight:r}}},{key:"getChildrenContainerStyle",value:function(e){var t=e.width,n=e.height,i=e.showCustomerReviewsWithTitle,o=e.imageWidth,r=e.hasHeadlineOrLogo,a=e.hasHeadlineOrLogoInSwoosh,l=e.useSwoosh,s=e.swooshOffsets,u=e.transitionStyles,d=e.isProductTitleTall,c=e.isBackgroundless,f=e.showPrimeDayBadge,p=Object.assign({maxHeight:200,flexDirection:"column",padding:"0 10px"},!(r||a)&&{position:"absolute",bottom:0,right:0,background:l?"transparent":"#fff",overflow:"hidden"});switch(t){case 300:Object.assign(p,{left:0,height:i?115:90,bottom:0},l&&(0,S.calculateContentStyles)(t,n,i?115:90,s,u),r&&600===n&&{marginBottom:20});break;case 160:Object.assign(p,{left:0,height:r?"auto":200},l&&(0,S.calculateContentStyles)(t,n,200,s,u),r&&{marginBottom:20});break;case 245:var h=this.props.isPinpointPdaStyles?this.get245x250ComponentStyles_PDAStyle({type:"childrenContainerStyle",hasHeadlineOrLogo:r}):this.get245x250ComponentStyles({type:"childrenContainerStyle",hasHeadlineOrLogo:r});Object.assign(p,h);break;case 650:Object.assign(p,{position:"static",padding:"0 0 0 20px"},!r&&{bottom:"auto"},!r&&!d&&{flexDirection:"row",position:"relative"});break;case 728:Object.assign(p,{width:300,height:88,boxSizing:"border-box"},l&&(0,S.calculateContentStyles)(t,n,300,s,u),r&&{width:280,padding:"0 10px 0 0",height:"auto"});break;case 970:Object.assign(p,{maxHeight:"100%",width:c?"38.5%":"calc(100% - 473px)",height:"100%",right:0,boxSizing:"border-box",padding:c?"0 30px 0 10px":"0 30px 0 36px"},r&&{maxHeight:"100%",padding:"0 0 0 30px",width:"41.2%"});break;case 980:Object.assign(p,a?{transition:"left .2s",marginLeft:45,minWidth:0,left:f?"75px":0}:{left:c?o+120+(f?75:0)+"px":"106px",padding:"0 45px 0 30px",top:0,transition:"left .2s"});break;case 270:Object.assign(p,{maxHeight:"fit-content",padding:"0",overflow:"auto",position:"relative",width:"100%",background:"transparent"},this.get270x150ComponentStyles({type:T.outBoxStyle}))}return p}},{key:"getProductImageRenderDimensions",value:function(e){var t=e.showCustomerReviewsWithTitle,n=e.imageDimensions,i=e.creativeSize,o=e.hasHeadlineOrLogo,r=e.showBadge;if(!o&&n[i])return{width:n[i].maxWidth,height:n[i].maxHeight};if("300x250"===i)return o?{width:120,height:this.props.format===P.CustomerReview?115:r?120:140}:{width:270,height:t?115:140};if("300x600"===i){var a=300;return r&&(a-=20),t&&(a-=25),o&&(a-=30),{width:260,height:a}}if("160x600"===i)return o&&r?{width:140,height:200}:{width:140,height:220};if("970x250"===i){var l=220,s=220;return o&&this.state.clientWidthRatio&&(l*=this.state.clientWidthRatio),o&&this.state.clientHeightRatio&&(s*=this.state.clientHeightRatio),{width:l,height:s}}return"728x90"===i?{width:100,height:70}:"650x130"===i?{width:140,height:!r||o&&this.state.is650x130Wide?108:90}:"245x250"===i?this.props.isPinpointPdaStyles?this.get245x250ComponentStyles_PDAStyle({type:"productImageRenderDimensions",hasHeadlineOrLogo:o,showBadge:r}):this.get245x250ComponentStyles({type:"productImageRenderDimensions",hasHeadlineOrLogo:o,showBadge:r}):"270x150"===i?{width:92,height:100}:null}},{key:"getProductImageWithSwooshes",value:function(e,t,n,i,o,r,a){var s=this.state,u=s.imageWidth,d=s.brandlogoWidth,c=s.productImageStyles,f="980x55"===o,p=(i&&this.getHeadlineLogoStyle(o,r)).brandLogoDimensions,h=Object.assign({opacity:u?1:0,transition:"opacity .2s ease-in .1s"},!i&&{marginLeft:75}),g={margin:f?"0 15px 0 75px":"0 10px 0 75px",opacity:d?1:0,transition:"opacity .2s ease-in .1s"};return e&&f?l.default.createElement("div",{className:"flex-container flex-direction-column flex-justify-center flex-align-start",style:{height:"100%",marginLeft:a?"75px":"0"}},l.default.createElement("div",{className:"flex-container flex-direction-row"},i&&l.default.createElement("div",{className:"flex-container flex-align-center"},this.getBrandLogo(r,p,g,this.onBrandLogoSizeChange)),this.getProductImage({productImageUrl:t,productImageDimensions:n,productImageStyle:h,onProductImageSizeChange:this.onProductImageSizeChange}))):e?l.default.createElement("div",{style:{position:"absolute",left:"21%",top:"6%",width:"28%",height:"88%"},className:"flex-container flex-justify-center flex-align-center"},this.getProductImage({productImageUrl:t,productImageDimensions:n,productImageStyle:{maxWidth:"100%",maxHeight:"100%"}})):this.getProductImage({productImageUrl:t,productImageDimensions:n,productImageStyle:c,onProductImageSizeChange:this.onProductImageSizeChange})}},{key:"getProductImageWithoutSwooshes",value:function(e){var t=e.hasHeadlineOrLogo,n=e.showBadge,i=e.brandLogoUrl,r=e.productImageRenderDimensions,a=e.productImage,s=e.creativeSize,u=e.isBackgroundless,d=e.hasChildren,c=e.headline,f=e.isPDAStyle,p=e.isPinpointPdaStyles,h="flex-container flex-align-center flex-justify-center",g=this.getProductImageWrapperStyle({creativeSize:s,productImageRenderDimensions:r,hasHeadlineOrLogo:t,showBadge:n}),m="300x250"===s,y="970x250"===s,b="160x600"===s,S="300x600"===s,v="728x90"===s,M="650x130"===s,O="245x250"===s,x="270x150"===s,w="flex-container flex-direction-column "+(m||M?"":"flex-grow-1 ");M&&(h+=" image-wrapper",w+="product-brand-wrapper ",!n||t&&this.state.is650x130Wide||(w+="image-with-badge ")),y||v||(w+="flex-align-center flex-justify-center ");var k=y||v||m||M||O?"flex-container flex-direction-row flex-grow-1":"";k+=m||O?" flex-align-center flex-justify-center":M?" flex-justify-center":"";var B=Object.assign({},t&&{minWidth:0},m&&t&&{flexDirection:"row-reverse",padding:"10px 20px"},M&&{overflow:"hidden"},O&&t&&{flexDirection:"row-reverse"},p&&{flexDirection:"row-reverse",overflow:"hidden",display:"flex",width:"100%",height:"100%"},x&&this.get270x150ComponentStyles({type:T.innerImgDiv}));p&&(w="pinpoint-productImageWrapper",k="");var E=Object.assign({},t&&{minWidth:0},y&&{maxWidth:"58.7%"},(b||S)&&{marginTop:n?40:20,marginBottom:30},b&&t&&n&&{marginBottom:20},v&&{padding:"10px 20px"},O&&{marginBottom:t?15:"auto"},m&&{height:this.props.format===P.CustomerReview?135:160},p&&!this.state.is245x250Wide&&{marginBottom:t?10:"auto"},p&&this.state.is245x250Wide&&{marginBottom:0},x&&this.get270x150ComponentStyles({type:T.outerImgDiv})),C={};a&&(C={productImageUrl:a.url,productImageDimensions:r}),M&&(C.productImageStyle={maxWidth:"100%",maxHeight:"100%"}),x&&(w="",h=""),p&&(C.productImageStyle=Object.assign({maxHeight:"125px",display:"block",position:"static",margin:"0 auto",top:0,left:0,bottom:0,right:0,width:"auto",height:"auto",maxWidth:"100%"},this.state.is245x250Wide&&{maxHeight:"230px"})),x&&(w="",h="");var R=void 0;return R=p?"pinpoint-productImage"+(this.state.is245x250Wide?"-wide":"-narrow")+(t?"-withLogo":"-noLogo"):h,l.default.createElement("div",{className:w,style:E},l.default.createElement("div",{className:k,style:B},!this.state.is245x250Wide&&t&&this.getHeadlineOrLogo({hasHeadlineOrLogo:t,showBadge:n,brandLogoUrl:i,creativeSize:s,headline:c,isPDAStyle:f,isPinpointPdaStyles:p}),a&&(m||M||O||t||x)&&u&&d&&l.default.createElement("div",{className:R,style:g},this.getProductImage(o({},C)))))}},{key:"getHeadlineOrLogo",value:function(e){var t=e.hasHeadlineOrLogo,n=e.showBadge,i=e.brandLogoUrl,r=e.creativeSize,a=e.headline,s=e.isPDAStyle,u=e.isPinpointPdaStyles,d=t?this.getHeadlineLogoStyle(r,i,n):"",c=d.brandLogoDimensions,f=d.headlineWrapperStyle,p="300x250"===r,h="970x250"===r,g="160x600"===r,y="300x600"===r,b="728x90"===r,S="650x130"===r,v="245x250"===r,M=this.state,O=M.is245x250Wide,x=M.is650x130Wide,w="flex-container "+(O?"":"flex-align-center flex-justify-center"),k={fontStyle:"italic",fontSize:21,fontWeight:this.props.isPDAStyle?"bold":"normal"};if(h){var P=i?21:28,B=i?27:33;if(this.state.clientWidthRatio&&this.state.clientHeightRatio){var E=Math.sqrt(this.state.clientWidthRatio*this.state.clientHeightRatio);P*=E,B*=E}k.fontSize=P,k.lineHeight=B+"px"}else if(g)k.fontSize=i?15:21,k.lineHeight=i?"20px":"27px";else if(y)k.fontSize=i?17:21,k.lineHeight=i?"21px":"27px";else if(b)k.fontSize=15,k.lineHeight="20px";else if(p)k.fontSize=14,k.lineHeight="17px";else if(S)k.fontSize=i?13:20,k.lineHeight=i?"20px":"26px";else if(v){var T=this.props.isPinpointPdaStyles?this.get245x250ComponentStyles_PDAStyle({type:"textStyle",brandLogoUrl:i}):this.get245x250ComponentStyles({type:"textStyle",brandLogoUrl:i});k=o({},k,T)}var C="";(h||S||b)&&(C="flex-container flex-direction-"+(h||S?"column":"row")+" flex-justify-center flex-align-center flex-grow-1"),u&&(C="pinpoint-headlineLogoWrapper",w="pinpoint-brandLogoWrapper");var R,W=Object.assign({minWidth:0},h&&{paddingRight:30},S&&{maxWidth:220,paddingRight:20,position:x?"relative":"absolute",visibility:x?"visible":"hidden"},u&&!this.state.is245x250Wide&&{width:"calc(100% - 115px)"},u&&this.state.is245x250Wide&&{margin:"0 0 10px"}),_=Object.assign({},b&&n&&{marginTop:20},S&&n&&{marginTop:15},v&&{padding:"15px 15px 0"},u&&{margin:"0 0 10px",padding:0});return R=b?l.default.createElement("div",{className:"flex-container flex-align-center flex-justify-center flex-grow-1",style:{maxHeight:"100%",minWidth:0}},l.default.createElement(m.default,{headlineWrapperStyle:f,headline:a,headlineStyle:k,creativeSize:r,isPDAStyle:s})):O?l.default.createElement(m.default,{headlineWrapperClassName:"flex-container",headlineWrapperStyle:f,headline:a,headlineStyle:k,creativeSize:r,isPDAStyle:s,isPinpointPdaStyles:u}):l.default.createElement(m.default,{headlineWrapperStyle:f,headline:a,headlineStyle:k,creativeSize:r,isPDAStyle:s,isPinpointPdaStyles:u}),l.default.createElement("div",{className:C,style:W},i&&l.default.createElement("div",{className:w,style:_},this.getBrandLogo(i,c)),a&&R)}},{key:"getChildrenContainer",value:function(e,t){return l.default.createElement("div",{style:e,className:t},this.props.children)}},{key:"render",value:function(){var e=this,t=this.props,n=t.background,i=t.borderColor,r=t.brandLogoUrl,a=t.children,u=t.dealType,d=t.discountMessage,c=t.format,m=t.headline,y=t.height,S=t.isDeal,v=t.locale,E=t.productImage,T=t.productTitle,C=t.productTitleTextLimit,R=t.width,W=t.isPDAStyle,_=t.isPinpointPdaStyles,D=t.isR2GatewaySlot,z=t.hasPrimeDayDeal,I=l.default.Children.count(a)>0,j=R+"x"+y,A=["970x250","980x55","650x130","245x250"].includes(j),L=["650x130","245x250"].includes(j),N=["980x55"].includes(j),F=["160x600","300x600","970x250","728x90","300x250","650x130","245x250"].includes(j)&&!(!m&&!r),H=L?!!E:!n&&E,U="980x55"===j&&!(!m&&!r),G=(0,O.sizeSupportsSwoosh)(R,y)&&H&&!F,q="160x600"===j,V="300x250"===j,J="980x55"===j,Y="970x250"===j,K="728x90"===j,X="650x130"===j,Q="245x250"===j,$="270x150"===j,Z="320x50"===j,ee=this.state.is245x250Wide,te=K&&!F,ne=H&&(d||S&&"shop now"===c)&&!N,ie=z&&(d||S&&"shop now"===c)&&!(Z||J&&n||Y&&n||K&&"shop now"!=c),oe=d||(0,B.formatDealType)(u,v),re=te?"topright":"topleft",ae=["300x600","970x250"].includes(j)?"large":"small",le=c===P.CustomerReview&&!n,se=T&&T.length>=C,ue=Object.assign({position:"relative",overflow:"hidden",top:0,left:0,width:A&&!N||D&&V?"100%":R,height:A?"100%":y,backgroundColor:G?"transparent":"#fff",border:D&&V?"none":"1px solid "+(i||N?"#f0f0f0":"#ccc"),boxSizing:"border-box"},Y&&{position:"absolute"},Y&&F&&{padding:"15px 30px"},J&&!H&&{margin:"0 auto"},X&&{padding:"10px 20px"},X&&!F&&{maxWidth:se?500:340},Q&&this.get245x250ComponentStyles({type:"contentContainerStyle"}),_&&this.get245x250ComponentStyles_PDAStyle({type:"contentContainerStyle"}),$&&{width:"100%",height:"100%",border:"none"}),de=(0,s.default)("flex-container",q&&F?"flex-justify-end":"flex-justify-center",{"flex-grow-1":J},{"buy-box":X},{"pinpoint-child-container":_});$&&(de="");var ce={transitionDuration:this.state.transitionDuration},fe=this.getProductImageRenderDimensions({showCustomerReviewsWithTitle:le,imageDimensions:O.imageDimensions,creativeSize:j,hasHeadlineOrLogo:F,showBadge:ne}),pe=this.getChildrenContainerStyle({width:R,height:y,showCustomerReviewsWithTitle:le,imageWidth:this.state.imageWidth,hasHeadlineOrLogo:F,hasHeadlineOrLogoInSwoosh:U,useSwoosh:G,swooshOffsets:this.state.swooshOffsets,transitionStyles:ce,isProductTitleTall:se,isBackgroundless:H,showPrimeDayBadge:ie}),he=this.getBackgroundDimensions(R,y,I,pe),ge={width:he.backgroundWidth,height:he.backgroundHeight,backgroundRepeat:"no-repeat",backgroundPosition:"center top",backgroundSize:"cover"},me={className:(0,s.default)({"is-hovering":this.state.isHovering,"post-hovering":!1===this.state.isHovering,"narrow-layout":160===R,"pinpoint-wrapper":_})};$&&Object.assign(me,{style:{width:"100%",height:"100%"}}),this.state.swooshOffsets&&(me.offsets=this.state.swooshOffsets);var ye=function(e){return l.default.createElement("div",me,e)};if(G)if(A)if(N){var be=r?this.state.imageWidth+this.state.brandlogoWidth+15:this.state.imageWidth;ye=function(e){return l.default.createElement("div",{style:{background:"#f0f0f0",height:"100%",width:"100%"}},l.default.createElement(M.HorizontalSwooshes,o({imageWidth:be,showPrimeDayBadge:ie,style:o({},ue,{backgroundColor:"#fff",border:0,margin:"auto"})},me),e))}}else ye=function(e){return l.default.createElement(M.ResponsiveSwooshes,o({style:o({},ue,{backgroundColor:"#fff",border:0}),contentCenterPercent:35,contentWidthPercent:30},me),e)};else ye=function(t){return l.default.createElement(b.default,o({width:R,height:y,transitionDuration:e.state.transitionDuration},me),t)};else(Y||X||Q)&&(ye=function(e){return l.default.createElement("div",o({style:{overflow:"hidden",width:"100%",height:"100%"}},me),e)});var Se=te?"topleft":"topright",ve="flex-container\n "+((Y||ee)&&F||U||X||K||Q&&!F?"flex-direction-row\n flex-justify-"+(U?"start":"end")+"\n "+(Q||X?"flex-align-center":""):"flex-direction-column"),Me=K?{width:R-pe.width,height:y,position:"absolute",left:0}:{},Oe=(0,s.default)("flex-container","flex-direction-column","flex-justify-center",{"flex-align-center":!(Y||J)}),xe="flex-container flex-direction-column flex-justify-center",we=Object.assign({maxWidth:200},_&&this.state.is245x250Wide&&{width:"calc(100% - 170px)",maxWidth:"max-content,"});_&&(xe=this.state.is245x250Wide?"pinpoint-headlineLogoWrapper-wide":"pinpoint-headlineLogoWrapper");var ke={background:'transparent url("https://m.media-amazon.com/images/G/01/d16g/kpw/transparent-1x1.png") repeat 0 0'},Pe=ye(l.default.createElement("div",{className:ve,style:ue,onMouseEnter:this.onHover,onMouseLeave:this.offHover},ie&&l.default.createElement(x.default,{position:K?"topright":"topleft",locale:v}),E&&G?this.getProductImageWithSwooshes(A,E.url,fe,U,j,r,ie):n&&!H?l.default.createElement("div",{style:Me,className:Oe},l.default.createElement(f.default,{measureImageLoads:(0,k.measureImageLoads)(w.default.customImage),src:n,style:ge})):this.getProductImageWithoutSwooshes({hasHeadlineOrLogo:F,showBadge:ne,brandLogoUrl:r,productImageRenderDimensions:fe,productImage:E,creativeSize:j,isBackgroundless:H,hasChildren:I,headline:m,isPDAStyle:W,isPinpointPdaStyles:_}),l.default.createElement(p.default,{position:Se}),F&&ee?l.default.createElement("div",{className:xe,style:we},this.getHeadlineOrLogo({hasHeadlineOrLogo:F,showBadge:ne,brandLogoUrl:r,creativeSize:j,headline:m,isPDAStyle:W,isPinpointPdaStyles:_}),I&&this.getChildrenContainer(pe,de)):I&&this.getChildrenContainer(pe,de),ne&&!ie&&l.default.createElement(g.default,{text:oe,position:re,size:ae}),l.default.createElement(h.default,{style:ke}))),Be=ye(l.default.createElement("div",{style:ue,onMouseEnter:this.onHover,onMouseLeave:this.offHover},E&&this.getProductImageWithoutSwooshes({hasHeadlineOrLogo:F,showBadge:ne,brandLogoUrl:r,productImageRenderDimensions:fe,productImage:E,creativeSize:j,isBackgroundless:H,hasChildren:I,headline:m,isPDAStyle:W}),l.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,background:"linear-gradient(to bottom, #fff, #222)",opacity:.05,pointerEvents:"none",zIndex:20}}),I&&this.getChildrenContainer(pe,de),l.default.createElement(p.default,{position:Se}),l.default.createElement(h.default,{style:ke})));return $?Be:Pe}}]),t}();t.default=C,C.displayName="Skin",C.propTypes={background:u.default.string,borderColor:u.default.string,brandLogoUrl:u.default.string,dealType:u.default.string,discountMessage:u.default.string,format:u.default.string,headline:u.default.string,height:u.default.number.isRequired,impressionUrls:u.default.arrayOf(u.default.string).isRequired,isDeal:u.default.bool,locale:u.default.string.isRequired,productImage:u.default.shape({url:u.default.string}),productTitle:u.default.string,productTitleTextLimit:u.default.number,width:u.default.number.isRequired,debugInfo:u.default.any},C.defaultProps={productTitleTextLimit:50}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(1)),o=a(n(0)),r=a(n(20));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=e.size,n=e.children;return i.default.createElement(r.default,{size:t},n)};l.propTypes={size:o.default.string,children:o.default.node.isRequired},l.defaultProps={size:"baseline"},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=l(n(1)),o=l(n(0)),r=l(n(64)),a=l(n(24));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.badgeText,n=e.children,o=e.isIlmDesktopPlacement;return i.default.createElement("div",{className:"flex-container flex-direction-row flex-align-center"},n,o?i.default.createElement(a.default,{text:t,inline:!0,size:"small",plain:!0}):i.default.createElement(r.default,null,t))};s.propTypes={badgeText:o.default.string.isRequired,children:o.default.node.isRequired},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(1)),o=a(n(0)),r=a(n(20));function a(e){return e&&e.__esModule?e:{default:e}}var l={display:"block",marginTop:2},s=function(e){var t=e.children,n=e.size;return i.default.createElement(r.default,{color:"secondary",size:n,style:l},t)};s.propTypes={size:o.default.string.isRequired,children:o.default.node.isRequired},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(95);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return function(e){return e&&e.__esModule?e:{default:e}}(i).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=l(n(1)),o=l(n(0)),r=l(n(57)),a=l(n(20));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.style,n=e.children;return i.default.createElement(a.default,{color:"secondary",size:"mini",style:t},n)};s.propTypes={children:o.default.node.isRequired,style:r.default},s.defaultProps={style:{}},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;ta&&o!==r-a&&this.setState({heightOverflow:r-a})}}},{key:"render",value:function(){var e=this.props,t=e.height,n=e.width,i=e.isSize,o=i(270,150),r=w.isNarrow(n,t),a=w.isStripeBuyBox(n,t),s="";r&&(s="flex-container flex-direction-column "),i(650,130)&&(s+="xs-condensed "),i(245,250)||i(650,130)||(s+="flex-shrink-0 "),o&&(s="innerBoxDiv");var u=l.default.createElement("div",{className:s||void 0,ref:this.buyBoxRef},a?this.getStripeBuyBox():this.getProductBuyBox()),d=l.default.createElement("div",{className:s||void 0,ref:this.buyBoxRef},l.default.createElement("div",{className:"boxBorder"},l.default.createElement("div",{className:"box"},l.default.createElement("div",{className:"infoBorder"},l.default.createElement("div",{className:"info"},this.getProductBuyBox())))));return o?d:u}}]),t}();E.displayName="ProductBuyBox",E.propTypes=o({adLink:s.default.string.isRequired,atcButtonOnClick:s.default.func,background:s.default.string,brandLogoUrl:s.default.string,buttonLink:s.default.string.isRequired,buttonProps:s.default.object.isRequired,buttonText:s.default.string.isRequired,cancelButtonOnClick:s.default.func,cascadingIntent:s.default.string.isRequired,customerReviewSummary:s.default.shape({count:s.default.number.isRequired,rating:s.default.number.isRequired}).isRequired,detailsAndDeliveryMessage:s.default.string.isRequired,dealType:s.default.string.isRequired,formattedPrice:s.default.number.isRequired,headline:s.default.string,height:s.default.number.isRequired,width:s.default.number.isRequired,hideButton:s.default.bool.isRequired,isBlackjack:s.default.bool.isRequired,isMobile:s.default.bool.isRequired,isOffsite:s.default.bool.isRequired,isPrime:s.default.bool.isRequired,isSnsDiscount:s.default.bool.isRequired,locale:s.default.string.isRequired,onButtonClick:s.default.string,pricePerUnitMessage:s.default.string.isRequired,privacyUrl:s.default.string.isRequired,releaseDateMessage:s.default.string.isRequired,taxMessage:s.default.string.isRequired,snsText:s.default.string.isRequired,discountMessage:s.default.string,isDeal:s.default.bool.isRequired,formattedFullPrice:s.default.string.isRequired,format:s.default.string.isRequired,violatesMap:s.default.bool.isRequired,savingsMessage:s.default.string.isRequired,showBrandName:s.default.bool,brandName:s.default.string},m.default.propTypes),t.default=(0,x.default)(E)},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;ti&&t!==n-i&&this.setState({heightOverflow:n-i})}}},{key:"getSavingsMessage",value:function(e){return l.default.createElement(m.default,{size:"smallMedium"},e)}},{key:"getProductTitleSection",value:function(e,t){var n=this.props,i=n.brandLogoUrl,r=n.customerReviewSummary,a=n.format,s=n.formattedPrice,u=n.headline,d=n.height,c=n.isDeal,f=n.isMultiAsinStack,h=n.isSnsDiscount,g=n.isPrime,m=n.locale,b=n.pricePerUnitMessage,S=n.releaseDateMessage,v=n.snsText,M=n.taxMessage,O=n.width,x=n.discountMessage,w=n.isIlmDesktopPlacement,k=n.hasPrimeDayDeal,P={pricePerUnitMessage:b,releaseDateMessage:S,snsText:v,taxMessage:M},B={isDeal:c,isMultiAsinStack:f,isSnsDiscount:h,isPrime:g,isIlmDesktopPlacement:w},E={clientWidth:this.state.clientWidth,height:d,heightOverflow:this.state.heightOverflow,rectHeight:this.state.height,width:O},T=y.getProductTitleStyle(B,E,a,s,m,P,r,!1,u,i,k),C=T.style,R=T.isMultiline,W=o({color:"#111111",fontSize:y.getTitleFontSize({width:O,height:d},{}),fontWeight:400,flexShrink:0,height:"auto"},C,{overflow:"hidden",marginRight:"20px",maxWidth:this.calculateTitleMaxWidth(e,t,h,!!x&&!h,M,b,m)});return l.default.createElement(l.default.Fragment,null,l.default.createElement(p.default,o({},this.props,{style:W,isMultiline:R})))}},{key:"calculateTitleMaxWidth",value:function(e,t,n,i,o,r,a){return t&&(o||r)||e&&o&&r?"230px":t||e&&n&&"FR"===a||e&&(o||r)?"300px":e?"350px":"415px"}},{key:"getStripeBuyBoxMetadataColumn",value:function(e,t,n,i,o){var r=l.default.createElement("div",{className:"flex-container flex-direction-row flex-align-center"},l.default.createElement("div",{style:{flex:"0 0 auto",marginRight:"30px"}},this.getSavingsMessage(i)),l.default.createElement("div",{style:{flex:"1 1 auto",overflow:"hidden"}},this.getProductTitleSection(e,t))),a=l.default.createElement("div",{id:"stripeBuyBoxMetadataColumn",className:"flex-container flex-direction-row flex-nowrap flex-align-center flex-justify-space-between"},t&&this.getSavingsSection(n,i),this.getProductTitleSection(e,t),e&&this.getDiscountSection(n));return o&&t?r:a}},{key:"getDiscountSection",value:function(e){var t=this.props,n=t.isSnsDiscount,i=t.snsText,r=t.clientWidth,a=t.discountMessage,s=t.locale,u=t.width,c=t.height,f=t.isIlmDesktopPlacement,p=!n&&!!a&&"JP"===s,h={isIlmDesktopPlacement:f},g=o({paddingTop:"2px",marginLeft:"5px"},y.getSnSCouponDisclaimerStyle(r,n,a,s,u,c,h));return l.default.createElement("div",{style:{paddingLeft:"20px"},className:"flex-container flex-direction-column flex-align-left"},l.default.createElement(d.default,null,e),n?this.getDiscountMessageSection(i,g):null,p?this.getDiscountMessageSection("※なくなり次第終了",g):null)}},{key:"getDiscountMessageSection",value:function(e,t){return l.default.createElement("span",{style:t},e)}},{key:"getSavingsSection",value:function(e,t){var n=this.props.isIlmDesktopPlacement;return l.default.createElement("div",{id:"savingsSection",style:{paddingRight:"20px",whiteSpace:"nowrap"}},l.default.createElement(g.default,{badgeText:e,isIlmDesktopPlacement:n},this.getSavingsMessage(t)))}},{key:"getPriceAndPrimeAndRatingStarSection",value:function(e){var t=this.props,n=t.customerReviewSummary,i=t.discountMessage,o=t.format,r=t.formattedFullPrice,a=t.formattedPrice,s=t.height,u=t.hideButton,d=t.locale,c=t.isDeal,f=t.isMultiAsinStack,p=t.isPrime,h=t.isSnsDiscount,g=t.pricePerUnitMessage,m=t.releaseDateMessage,b=t.taxMessage,S=t.width,v=t.savingsMessage,M=t.violatesMap,O=t.isIlmDesktopPlacement,x=t.shouldShowStars,w=p&&a&&(!b||!g),k=!!r&&"shop now"===o,P=!!b,B={width:S,height:s,clientWidth:this.state.clientWidth},E={isDeal:c,isMultiAsinStack:f,isPrime:p,isSnsDiscount:h,violatesMap:M,showPrimeLogo:w,isIlmDesktopPlacement:O},T={discountMessage:i,pricePerUnitMessage:g,releaseDateMessage:m,taxMessage:b,savingsMessage:v},C={heightOverflow:this.state.heightOverflow,isDeal:c,isStripeBuyBox:!0,showPrimeLogo:w,showStrikethroughPrice:k,showTaxMessage:P},R=y.getPriceAndPrimeSectionStyles(B,u,d,E,!1,T,o,a,n),W=e?"flex-container flex-direction-row flex-nowrap flex-align-center flex-justify-space-between ":"";return l.default.createElement("div",{class:W},x?this.getStarRatingSection(e,a):null,a?this.getPricePrimeSection(C,R,"flex-container flex-direction-row flex-align-baseline flex-justify-start price-and-prime-section"):null)}},{key:"getStarRatingSection",value:function(e,t){var n=Object.assign({},!e&&!!t&&{paddingBottom:"5px"},e&&{paddingRight:"15px"});return l.default.createElement("div",{id:"ratingStar",style:n},l.default.createElement(h.default,this.props))}},{key:"getPricePrimeSection",value:function(e,t,n){return l.default.createElement("div",{id:"priceAndPrime"},l.default.createElement(f.default,o({},this.props,{showMessageGroupFlags:e,priceAndPrimeSectionStyles:t,priceAndPrimeSectionClassNames:n})))}},{key:"getStripeBuyBox",value:function(){var e=this.props,t=e.discountMessage,n=e.isDeal,i=e.savingsMessage,o=e.format,r=e.violatesMap,a=e.dealType,s=e.locale,d=e.productTitle,c=e.hasPrimeDayDeal,f=t||(0,u.formatDealType)(a,s),p=y.getDiscountEligibility(n,c,i,o,r,t),h=p.showDealsSavingsMessage,g=p.showDiscountMessage,m=y.isShortTitle(d),b=!h&&!g&&m;return l.default.createElement("div",{id:"stripeBuyBox",style:{width:"100%",height:"50px",alignItems:"center"},className:"flex-container flex-direction-row flex-nowrap flex-align-center flex-justify-space-between "},l.default.createElement("div",{id:"productTitleAndBadge",style:{overflow:"hidden",width:"auto",maxWidth:"500px",paddingRight:"20px"}},this.getStripeBuyBoxMetadataColumn(g,h,f,i,c)),l.default.createElement("div",{id:"priceAndPrimeAndRatingStar",className:"flex-container flex-direction-column flex-align-start flex-justify-center "},this.getPriceAndPrimeAndRatingStarSection(b)))}},{key:"render",value:function(){return l.default.createElement("div",{id:"buyBox",className:"flex-shrink-0 ",ref:this.buyBoxRef},this.getStripeBuyBox())}}]),t}();t.default=S,S.displayName="ILMDesktopProductBuyBox",S.propTypes=o({brandLogoUrl:s.default.string,customerReviewSummary:s.default.shape({count:s.default.number,rating:s.default.number}),dealType:s.default.string,formattedPrice:s.default.number,headline:s.default.string,height:s.default.number.isRequired,width:s.default.number.isRequired,hideButton:s.default.bool,isPrime:s.default.bool,isSnsDiscount:s.default.bool,locale:s.default.string.isRequired,pricePerUnitMessage:s.default.string,releaseDateMessage:s.default.string,taxMessage:s.default.string,snsText:s.default.string,discountMessage:s.default.string,isDeal:s.default.bool,formattedFullPrice:s.default.string,format:s.default.string.isRequired,violatesMap:s.default.bool,savingsMessage:s.default.string,productTitle:s.default.string},c.default.propTypes)},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&(0,c.default)(this.props.impressionUrls)}},{key:"onProductImageSizeChange",value:function(e,t){this.setState({imageHeight:t,imageWidth:e,productImageStyles:(0,g.calculateImageStyles)(this.props.width,this.props.height,e,t),swooshOffsets:(0,m.getOffsets)(this.props.width+"x"+this.props.height,e,t)})}},{key:"onBrandLogoSizeChange",value:function(e,t){this.setState({brandlogoWidth:e,brandlogoHeight:t})}},{key:"onHover",value:function(){this.setState({isHovering:!0})}},{key:"offHover",value:function(){this.setState({isHovering:!1})}},{key:"getProductImage",value:function(e){var t=e.productImageUrl,n=e.productImageDimensions,i=e.productImageStyle,o=e.onProductImageSizeChange;return l.default.createElement(h.default,{height:n.height,measureImageLoads:(0,x.measureImageLoads)(O.default.productImage),onSizeChange:o,src:t,style:i,width:n.width})}},{key:"getBrandLogo",value:function(e,t,n,i){return l.default.createElement(h.default,{height:t.height,measureImageLoads:(0,x.measureImageLoads)(O.default.brandLogo),onSizeChange:i,src:e,style:n,width:t.width})}},{key:"getProductImageAndLogoWithSwooshes",value:function(e,t,n,i,o,r){var a=this.state,s=a.imageWidth,u=a.brandlogoWidth,d={width:102,height:b.imageDimensions[i].maxHeight},c={opacity:s?1:0,transition:"opacity .2s ease-in .1s"},f={margin:"0 15px 0 75px",opacity:u?1:0,transition:"opacity .2s ease-in .1s"},p={display:"flex",alignItems:"center",justifyContent:"center",marginLeft:!n&&r?"-10px":"0px"},h={height:"100%",marginLeft:o?"75px":"0"};return l.default.createElement("div",{id:"logoAndImage",className:"flex-container flex-direction-column flex-justify-center flex-align-start",style:h},l.default.createElement("div",{className:"flex-container flex-direction-row"},l.default.createElement("div",{id:"logo",className:"flex-container flex-align-center"},this.getBrandLogo(n,d,f,this.onBrandLogoSizeChange)),l.default.createElement("div",{id:"image",style:p},this.getProductImage({productImageUrl:e,productImageDimensions:t,productImageStyle:c,onProductImageSizeChange:this.onProductImageSizeChange}))))}},{key:"getBuyBoxSection",value:function(e,t,n){return l.default.createElement("div",{id:"buyBoxContainer",style:e,className:t},l.default.createElement(v.default,o({},this.props,{shouldShowStars:n})))}},{key:"render",value:function(){var e=this.props,t=e.borderColor,n=e.brandLogoUrl,i=e.height,r=e.productImage,a=e.width,u=e.productTitle,d=e.isDeal,c=e.savingsMessage,f=e.format,p=e.violatesMap,h=e.discountMessage,g=e.customerReviewSummary,m=e.formattedPrice,v=e.locale,O=e.isSnsDiscount,x=e.pricePerUnitMessage,k=e.releaseDateMessage,P=e.snsText,B=e.isIlmDesktopPlacement,E=e.hasPrimeDayDeal,T=a+"x"+i,C=S.isShortTitle(u),R=S.getDiscountEligibility(E,d,c,f,p,h),W=R.showDealsSavingsMessage,_=R.showDiscountMessage,D={position:"relative",overflow:"hidden",top:0,left:0,width:a,height:"100%",backgroundColor:"transparent",border:"1px solid "+(t||"#f0f0f0"),boxSizing:"border-box"},z={width:88,height:b.imageDimensions[T].maxHeight},I={maxHeight:200,flexDirection:"column",padding:"0 10px 0 30px",transition:"left .2s",marginLeft:this.calculateExtraSpaceBetweenImageAndBuybox(C,W,_),minWidth:0},j={className:(0,s.default)({"is-hovering":this.state.isHovering,"post-hovering":!1===this.state.isHovering,"narrow-layout":!1})};this.state.swooshOffsets&&(j.offsets=this.state.swooshOffsets);var A=this.state.imageWidth+this.state.brandlogoWidth+15,L={topLeft:"0,0",bottomLeft:"0,100",topRight:"60,0",bottomRight:"0,100"},N={topLeft:"50,0",bottomLeft:"-10,100",topRight:"1000,0",bottomRight:"1000,100"},F={pricePerUnitMessage:x,releaseDateMessage:k,snsText:P},H={isDeal:d,isSnsDiscount:O,isIlmDesktopPlacement:B},U={width:a,height:i},G=(0,w.default)(H,U,f,m,v,F,g);return m||G?function(e){return l.default.createElement("div",{id:"wrapper",style:{background:"#f0f0f0",height:"100%",width:"100%"}},l.default.createElement(y.HorizontalSwooshes,o({imageWidth:A,style:o({},D,{backgroundColor:"#fff",border:0,margin:"auto"})},j,{isIlmDesktopPlacement:B,leftPolygon:L,rightPolygon:N,showPrimeDayBadge:E&&W}),e))}(l.default.createElement("div",{id:"adSkin",className:"flex-container flex-direction-row flex-justify-start",style:D,onMouseEnter:this.onHover,onMouseLeave:this.offHover},E&&W&&l.default.createElement(M.default,{position:"topleft",locale:v}),this.showProductImageAndLogoSection(r,z,n,T,E,B),this.showBuyBoxSection(I,"flex-container flex-justify-center flex-grow-0-15 ",G),this.showAdChoices("topright"),this.showAdLink({background:'transparent url("https://m.media-amazon.com/images/G/01/d16g/kpw/transparent-1x1.png") repeat 0 0'}))):l.default.createElement("script",{dangerouslySetInnerHTML:{__html:"if (typeof SFClient !== 'undefined') SFClient.collapseSlot();"}})}},{key:"showProductImageAndLogoSection",value:function(e,t,n,i,o,r){return this.getProductImageAndLogoWithSwooshes(e.url,t,n,i,o,r)}},{key:"showBuyBoxSection",value:function(e,t,n){return this.getBuyBoxSection(e,t,n)}},{key:"showAdChoices",value:function(e){return l.default.createElement(f.default,{position:e})}},{key:"showAdLink",value:function(e){return l.default.createElement(p.default,{style:e})}},{key:"calculateExtraSpaceBetweenImageAndBuybox",value:function(e,t,n){return t||n?e?65:45:e?85:65}}]),t}();t.default=P,P.displayName="IlmDesktopSkin",P.propTypes={borderColor:u.default.string,brandLogoUrl:u.default.string,height:u.default.number.isRequired,impressionUrls:u.default.arrayOf(u.default.string).isRequired,productImage:u.default.shape({url:u.default.string}),width:u.default.number.isRequired,debugInfo:u.default.any}},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;ni&&t!==n-i&&this.setState({heightOverflow:n-i})}}},{key:"render",value:function(){var e=this.props,t=e.showDealBadge,n=e.savingsMessage,i=e.price,o={flex:e.LAYOUT_PROPORTION_CONFIG.productDescriptionWidth,padding:"15px 20px 15px 0px"},r=t&&!!n;return l.default.createElement("div",{id:"productDescription",className:"flex-container flex-direction-column flex-align-start flex-justify-center ",style:o},r?this.renderSavingsMessage(n):null,this.renderTitle(),r?null:this.renderRatingInfo(),i?this.renderPrices():null)}},{key:"renderSavingsMessage",value:function(e){return l.default.createElement("div",{id:"savingsMessage"},l.default.createElement(f.default,{size:"medium"},e))}},{key:"renderTitle",value:function(){return l.default.createElement(u.default,this.props)}},{key:"renderRatingInfo",value:function(){return l.default.createElement(d.default,this.props)}},{key:"renderPrices",value:function(){return l.default.createElement(c.default,o({},this.props,{width:this.state.width,height:this.state.height,heightOverflow:this.state.heightOverflow,clientWidth:this.state.heightOverflow}))}}]),t}();t.default=h,h.displayName="ProductDescription",h.propTypes={width:s.default.number.isRequired,height:s.default.number.isRequired,showDealBadge:s.default.bool,savingsMessage:s.default.string,customerReviewSummary:s.default.shape({count:s.default.number,rating:s.default.number}),price:s.default.number,LAYOUT_PROPORTION_CONFIG:s.default.object},h.defaultProps={}},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;tl&&(f=n.substr(0,l).trim()+"…");var p=i;return a.default.createElement("div",{className:p,style:o},a.default.createElement("div",{ref:this.headlineSectionRef,style:{minWidth:0}},a.default.createElement(u.default,{ref:function(t){e.pdaHeadlineInstance=t},style:c},f)))}}]),t}();t.default=f,f.displayName="HeadlineText",f.propTypes={headline:l.default.string.isRequired,headlineWrapperClassName:l.default.string,headlineWrapperStyle:l.default.object,headlineStyle:l.default.object,headlineTextLimit:l.default.number,showBadge:l.default.bool,layoutState:l.default.shape({is650x130Large:l.default.bool.isRequired,is650x130Medium:l.default.bool.isRequired,is650x130Small:l.default.bool.isRequired}).isRequired},f.defaultProps={headlineTextLimit:50,headlineWrapperClassName:"flex-container flex-align-center flex-justify-center"}},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&(0,d.default)(this.props.impressionUrls),window.addEventListener("resize",this.updateResponsiveSize),this.updateResponsiveSize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateResponsiveSize)}},{key:"updateResponsiveSize",value:function(){var e=this.checkState();this.setState(o({},e))}},{key:"checkState",value:function(){var e={is650x130Large:!1,is650x130Medium:!1,is650x130Small:!1};return window.innerWidth>235&&window.innerWidth<=300?e.is650x130Small=!0:window.innerWidth>300&&window.innerWidth<=536?e.is650x130Medium=!0:window.innerWidth>536&&(e.is650x130Large=!0),e}},{key:"render",value:function(){var e=this.props,t=e.dealType,n=e.discountMessage,i=e.savingsMessage,o=e.violatesMap,r=e.format,a=e.isDeal,s=e.locale,u={totalWidth:32,marketingCopyMediumLayoutWidth:18,marketingCopyWidth:14,asinImgDivWidth:14,productDescriptionWidth:12},d={flex:u.totalWidth,height:"128px",maxWidth:"650px",margin:"0 auto",position:"relative",border:"1px solid #DDD"},c=a&&"shop now"===r&&!o,f=!!n||c;return l.default.createElement("div",{id:"adContainer",className:"flex-container flex-direction-row ",style:d},this.renderMarketingCopy(f,u),this.renderAsinImgDiv(u),this.state.is650x130Large?this.renderProductDescription(c,i,u):null,f?this.renderAnchoredBadge(n,t,s):null,this.renderAdLink())}},{key:"renderAsinImgDiv",value:function(e){return l.default.createElement(c.default,o({},this.props,{layoutState:this.state,LAYOUT_PROPORTION_CONFIG:e}))}},{key:"renderMarketingCopy",value:function(e,t){return l.default.createElement(f.default,o({},this.props,{layoutState:this.state,showBadge:e,LAYOUT_PROPORTION_CONFIG:t}))}},{key:"renderProductDescription",value:function(e,t,n){return l.default.createElement(p.default,o({},this.props,{layoutState:this.state,showDealBadge:e,savingsMessage:t,LAYOUT_PROPORTION_CONFIG:n}))}},{key:"renderAnchoredBadge",value:function(e,t,n){var i=e||(0,m.formatDealType)(t,n);return l.default.createElement(g.default,{text:i,position:"topleft",size:"small",isPDAStyleDesktopHQP:!0})}},{key:"renderAdLink",value:function(){return l.default.createElement(h.default,{style:{background:'transparent url("https://m.media-amazon.com/images/G/01/d16g/kpw/transparent-1x1.png") repeat 0 0'}})}}]),t}();t.default=b,b.displayName="PdaHqpDesktopSkin",b.propTypes={dealType:s.default.string,discountMessage:s.default.string,savingsMessage:s.default.string,format:s.default.string,isDeal:s.default.bool,locale:s.default.string.isRequired},b.defaultProps={productTitleTextLimit:50}},function(e,t,n){"use strict";var i="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};Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t