1"use strict";(self.webpackChunkactivation_web=self.webpackChunkactivation_web||[]).push([[9729],{98182:function(e,t,n){n.r(t),n.d(t,{default:function(){return w}});var o=n(73556),r=n(87567),c=n(82402),i=n(32028),l=n(2445),u=n(73884),a=n(94970),p=["couponContent","isOpen","onClose"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,o.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var O=function(e){var t=e.couponContent,n=e.isOpen,o=e.onClose,s=(0,c.A)(e,p),O=(0,i.u)(n),d=(0,r.A)(O,4)[3],b=(0,u.useRef)(null),y=(0,l.Y)(a.CouponContentFooter,{ctaText:null==t?void 0:t.ctaText,onCtaClick:function(){b.current?b.current.click():null!=t&&t.clickHandler&&(null==t||t.clickHandler())}});return(0,l.Y)(a.ModalDialog,f(f({isOpen:n,onClose:function(){d(!1),o&&o()},scrollBehavior:"inside",modalContent:{header:null==t?void 0:t.headerText,footer:y},modalFooterStyle:{p:"0px"},modalBodyStyle:{padding:"0px"},size:"large"},s),{},{children:(0,l.Y)(a.CouponContentBody,{ref:b,bodyText:null==t?void 0:t.bodyText,couponCode:null==t?void 0:t.couponCode,onCodeClick:null==t?void 0:t.clickHandler})}))},d=n(73884),b=n(94970),y=["couponContent","isOpen","onClose"];function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}var j=function(e){var t=e.couponContent,n=e.isOpen,u=void 0!==n&&n,a=e.onClose,p=(0,c.A)(e,y),s=(0,i.M)(u),f=(0,r.A)(s,4),O=f[0],j=f[1],h=f[2],v=f[3],g=(0,d.useRef)(null);return(0,l.FD)(b.BottomSheet,{open:u&&Object.keys(t).length>0&&t.constructor===Object,onChange:function(e){!e&&a&&a()},swipeableViewsProps:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach(function(t){(0,o.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},p),children:[(0,l.Y)(b.Flex,{flexDir:"column",justifyContent:"center",boxShadow:O&&j?"default":"none",children:(0,l.Y)(b.CouponContentHeader,{headerText:t.headerText})}),(0,l.Y)(b.Box,{ref:v,overflow:"scroll",onScroll:h,children:(0,l.Y)(b.CouponContentBody,{ref:g,bodyText:t.bodyText,couponCode:t.couponCode,onCodeClick:null==t?void 0:t.clickHandler,canDisplayTooltip:u})}),(0,l.Y)(b.CouponContentFooter,{ctaText:t.ctaText,onCtaClick:function(){g.current?g.current.click():null!=t&&t.clickHandler&&(null==t||t.clickHandler())},showShadow:O})]})},h=n(94970);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){(0,o.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var w=function(e){return(0,h.useGrid)().isMinMedium?(0,l.Y)(O,g({},e)):(0,l.Y)(j,g({},e))}},32028:function(e,t,n){n.d(t,{M:function(){return c},u:function(){return r}});var o=n(73884),r=function(e){var t=(0,o.useState)(!1),n=t[0],r=t[1],c=(0,o.useState)(!1),i=c[0],l=c[1],u=(0,o.useRef)(null);return(0,o.useEffect)(function(){u.current&&e&&r(u.current.scrollHeight>u.current.clientHeight)},[u,e,i]),[n,i,function(){i||l(!0)},l,u]},c=function(e){var t=(0,o.useState)(!1),n=t[0],r=t[1],c=(0,o.useState)(!1),i=c[0],l=c[1];return[n,i,function(){!i&&e&&l(!0)},(0,o.useCallback)(function(t){null==t||(r(t.scrollHeight>t.clientHeight),e||(l(!1),r(!1),t.scrollTo(0,0)))},[e])]}}}]); 2//# sourceMappingURL=coupon-modal.caac7a05dfba59b9.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.