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AAAP,EAAA4B,OAAA,SAAAC,IAAA,sBAAA1B,SAAAN,CAAA","sources":["webpack://_N_E/./components/SeriesSelector/BuySeries.js","webpack://_N_E/"],"sourcesContent":["import dynamic from 'next/dynamic';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport {BuySeriesConstants} from '../../adapters/helpers/Constants';\nimport {stripHtml} from '../../adapters/helpers/Utils';\nconst Icon = dynamic(() => import('../Icon/Icon'));\nconst Button = dynamic(() => import('../Button/Button'));\nimport Link from 'next/link';\nimport DOMPurify from 'isomorphic-dompurify';\n\nexport default function BuySeries({className, series, onClickCallback}) {\n const href = series?.fields?.ctaLink;\n const label = series?.fields?.ctaLabel;\n const seriesCtaAriaLable = series?.fields?.callToActionAriaLabel;\n const seriesCtaTitle = series?.fields?.callToActionTitle;\n const dataActionDetail = series?.fields?.ctaDataActionDetail;\n const product = series?.fields?.featuredProduct;\n const buyNowDeactivated = product?.fields?.deactivateBuyNowButton || false;\n const comingSoonText = product?.fields?.comingSoonLabel?.fields?.text || '';\n const comingSoonLink = product?.fields?.comingSoonLink || '';\n\n if (!href || !label) {\n return null;\n }\n \n return (\n
\n {(series.fields.experienceLink && series.fields.experienceLinkText) ? (\n

\n \n \n {series.fields.experienceLinkText.fields.text}\n \n\n \n \n

\n ) : (product && series.fields.showExperienceLink) ? (\n

\n \n \n \n

\n ) : (\n null\n )}\n\n {!buyNowDeactivated &&\n onClickCallback(event)}\n dataActionDetail={`open_ps_panel_${stripHtml(product?.fields?.title)}`}\n sku={product?.fields?.productVariants[0]?.fields?.sku}\n ariaLabel={seriesCtaAriaLable || stripHtml(`${label?.fields?.text}`)}\n title={seriesCtaTitle || ''}\n >\n {label?.fields?.text}\n \n }\n {buyNowDeactivated &&\n \n {comingSoonText}\n \n }\n
\n );\n}\n\nBuySeries.propTypes = {\n className: PropTypes.string,\n series: PropTypes.any,\n onClickCallback: PropTypes.func.isRequired,\n}\n","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64],{90064:function(e,l,n){n.r(l),n.d(l,{default:function(){return _}});var i=n(5152),s=n.n(i),t=(n(67294),n(24036)),d=n(8996),a=n(41664),c=n.n(a),u=n(29238),o=n.n(u),r=n(85893),f=s()((function(){return n.e(713).then(n.bind(n,80713))}),{loadableGenerated:{webpack:function(){return[80713]}}}),b=s()((function(){return n.e(9246).then(n.bind(n,99246))}),{loadableGenerated:{webpack:function(){return[99246]}}});function _(e){var l,n,i,s,a,u,_,h,k,x,v,p,g,m,L,N,y,j,T,w=e.className,A=e.series,C=e.onClickCallback,V=null==A||null==(l=A.fields)?void 0:l.ctaLink,D=null==A||null==(n=A.fields)?void 0:n.ctaLabel,E=null==A||null==(i=A.fields)?void 0:i.callToActionAriaLabel,S=null==A||null==(s=A.fields)?void 0:s.callToActionTitle,z=(null==A||null==(a=A.fields)||a.ctaDataActionDetail,null==A||null==(u=A.fields)?void 0:u.featuredProduct),B=(null==z||null==(_=z.fields)?void 0:_.deactivateBuyNowButton)||!1,G=(null==z||null==(h=z.fields)||null==(k=h.comingSoonLabel)||null==(x=k.fields)?void 0:x.text)||\"\",H=(null==z||null==(v=z.fields)?void 0:v.comingSoonLink)||\"\";return V&&D?(0,r.jsxs)(\"div\",{className:w,children:[A.fields.experienceLink&&A.fields.experienceLinkText?(0,r.jsx)(\"h3\",{className:\"ob-series-selector__selected-buy-heading\",children:(0,r.jsxs)(c(),{className:\"ob-series-selector__selected-buy-heading-link ob-series-selector__selected-buy-heading-link--experience event_button_click\",\"data-action-detail\":A.fields.experienceLink,href:A.fields.experienceLink,children:[(0,r.jsx)(\"span\",{className:\"ob-series-selector__selected-buy-heading-text\",children:A.fields.experienceLinkText.fields.text}),(0,r.jsx)(f,{className:\"ob-series-selector__selected-buy-heading-icon\",name:t.k9.chevronRight,size:1.4})]})}):z&&A.fields.showExperienceLink?(0,r.jsx)(\"h3\",{className:\"ob-series-selector__selected-buy-heading\",children:(0,r.jsx)(c(),{className:\"ob-series-selector__selected-buy-heading-link event_button_click\",\"data-action-detail\":(0,d.Vt)(null==z||null==(p=z.fields)?void 0:p.shortTitle)||(0,d.Vt)(z.fields.title),href:z.fields.slug.fields.slug,children:(0,r.jsx)(\"span\",{className:\"ob-series-selector__selected-buy-heading-text\",dangerouslySetInnerHTML:{__html:o().sanitize((null==z||null==(g=z.fields)?void 0:g.shortTitle)||z.fields.title)}})})}):null,!B&&(0,r.jsx)(b,{className:\"ob-series-selector__selected-buy-btn event_buy_now\",onClick:function(e){return C(e)},dataActionDetail:\"open_ps_panel_\".concat((0,d.Vt)(null==z||null==(m=z.fields)?void 0:m.title)),sku:null==z||null==(L=z.fields)||null==(N=L.productVariants[0])||null==(y=N.fields)?void 0:y.sku,ariaLabel:E||(0,d.Vt)(\"\".concat(null==D||null==(j=D.fields)?void 0:j.text)),title:S||\"\",children:null==D||null==(T=D.fields)?void 0:T.text}),B&&(0,r.jsx)(b,{tag:\"a\",disabled:\"\"===H,href:H,target:\"_blank\",rel:\"noopener noreferrer\",children:G})]}):null}}}]);"],"names":["self","webpackChunk_N_E","push","e","l","n","r","d","default","_","i","s","t","a","c","u","o","f","then","bind","loadableGenerated","webpack","b","h","k","x","v","p","g","m","L","N","y","j","T","w","className","A","series","C","onClickCallback","V","fields","ctaLink","D","ctaLabel","E","callToActionAriaLabel","S","callToActionTitle","z","ctaDataActionDetail","featuredProduct","B","deactivateBuyNowButton","G","comingSoonLabel","text","H","comingSoonLink","jsxs","children","experienceLink","experienceLinkText","jsx","href","name","k9","chevronRight","size","showExperienceLink","Vt","shortTitle","title","slug","dangerouslySetInnerHTML","__html","sanitize","onClick","dataActionDetail","concat","sku","productVariants","ariaLabel","tag","disabled","target","rel"],"sourceRoot":""}