From 8ec650848c203bcdeb7c394da97b336a65e9b67d Mon Sep 17 00:00:00 2001 From: Bozo Jovicic Date: Fri, 4 Jul 2025 11:04:35 +0200 Subject: [PATCH 1/5] MWPW-169236 [Merch Cards] Support for Volume Discount Flex Promos --- libs/deps/mas/merch-card.js | 118 ++++++++++++------------- libs/features/mas/dist/mas.js | 132 ++++++++++++++-------------- libs/features/mas/src/merch-card.js | 58 ++++++++++++ 3 files changed, 183 insertions(+), 125 deletions(-) diff --git a/libs/deps/mas/merch-card.js b/libs/deps/mas/merch-card.js index 3f83817df0..570c3fcd1e 100644 --- a/libs/deps/mas/merch-card.js +++ b/libs/deps/mas/merch-card.js @@ -1,4 +1,4 @@ -var Qe=Object.defineProperty;var ie=o=>{throw TypeError(o)};var Xe=(o,e,t)=>e in o?Qe(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var d=(o,e,t)=>Xe(o,typeof e!="symbol"?e+"":e,t),Ft=(o,e,t)=>e.has(o)||ie("Cannot "+t);var c=(o,e,t)=>(Ft(o,e,"read from private field"),t?t.call(o):e.get(o)),m=(o,e,t)=>e.has(o)?ie("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),h=(o,e,t,r)=>(Ft(o,e,"write to private field"),r?r.call(o,t):e.set(o,t),t),w=(o,e,t)=>(Ft(o,e,"access private method"),t);var ce=(o,e,t,r)=>({set _(n){h(o,e,n,t)},get _(){return c(o,e,r)}});import{LitElement as to}from"../lit-all.min.js";import{css as de,unsafeCSS as se}from"../lit-all.min.js";var R="(max-width: 767px)",At="(max-width: 1199px)",u="(min-width: 768px)",g="(min-width: 1200px)",M="(min-width: 1600px)";var le=de` +var Ze=Object.defineProperty;var ce=o=>{throw TypeError(o)};var Je=(o,e,t)=>e in o?Ze(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var d=(o,e,t)=>Je(o,typeof e!="symbol"?e+"":e,t),Ft=(o,e,t)=>e.has(o)||ce("Cannot "+t);var c=(o,e,t)=>(Ft(o,e,"read from private field"),t?t.call(o):e.get(o)),m=(o,e,t)=>e.has(o)?ce("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),h=(o,e,t,r)=>(Ft(o,e,"write to private field"),r?r.call(o,t):e.set(o,t),t),w=(o,e,t)=>(Ft(o,e,"access private method"),t);var se=(o,e,t,r)=>({set _(n){h(o,e,n,t)},get _(){return c(o,e,r)}});import{LitElement as ro}from"../lit-all.min.js";import{css as le,unsafeCSS as de}from"../lit-all.min.js";var P="(max-width: 767px)",At="(max-width: 1199px)",u="(min-width: 768px)",g="(min-width: 1200px)",M="(min-width: 1600px)";var he=le` :host { --consonant-merch-card-background-color: #fff; --consonant-merch-card-border: 1px solid var(--consonant-merch-card-border-color); @@ -235,9 +235,9 @@ var Qe=Object.defineProperty;var ie=o=>{throw TypeError(o)};var Xe=(o,e,t)=>e in ::slotted([slot='price']) { color: var(--consonant-merch-card-price-color); } -`,he=()=>[de` +`,me=()=>[le` /* Tablet */ - @media screen and ${se(u)} { + @media screen and ${de(u)} { :host([size='wide']), :host([size='super-wide']) { width: 100%; @@ -246,14 +246,14 @@ var Qe=Object.defineProperty;var ie=o=>{throw TypeError(o)};var Xe=(o,e,t)=>e in } /* Laptop */ - @media screen and ${se(g)} { + @media screen and ${de(g)} { :host([size='wide']) { grid-column: span 2; } } - `];import{LitElement as Ze,html as me,css as Je}from"../lit-all.min.js";var j=class extends Ze{constructor(){super(),this.size="m",this.alt="",this.loading="lazy"}render(){let{href:e}=this;return e?me` + `];import{LitElement as tr,html as pe,css as er}from"../lit-all.min.js";var j=class extends tr{constructor(){super(),this.size="m",this.alt="",this.loading="lazy"}render(){let{href:e}=this;return e?pe` ${this.alt} - `:me` ${this.alt}`}};d(j,"properties",{size:{type:String,attribute:!0},src:{type:String,attribute:!0},alt:{type:String,attribute:!0},href:{type:String,attribute:!0},loading:{type:String,attribute:!0}}),d(j,"styles",Je` + `:pe` ${this.alt}`}};d(j,"properties",{size:{type:String,attribute:!0},src:{type:String,attribute:!0},alt:{type:String,attribute:!0},href:{type:String,attribute:!0},loading:{type:String,attribute:!0}}),d(j,"styles",er` :host { --img-width: 32px; --img-height: 32px; @@ -286,7 +286,7 @@ var Qe=Object.defineProperty;var ie=o=>{throw TypeError(o)};var Xe=(o,e,t)=>e in width: var(--mod-img-width, var(--img-width)); height: var(--mod-img-height, var(--img-height)); } - `);customElements.define("merch-icon",j);var mo=Object.freeze({MONTH:"MONTH",YEAR:"YEAR",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",PERPETUAL:"PERPETUAL",TERM_LICENSE:"TERM_LICENSE",ACCESS_PASS:"ACCESS_PASS",THREE_MONTHS:"THREE_MONTHS",SIX_MONTHS:"SIX_MONTHS"}),po=Object.freeze({ANNUAL:"ANNUAL",MONTHLY:"MONTHLY",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",P1D:"P1D",P1Y:"P1Y",P3Y:"P3Y",P10Y:"P10Y",P15Y:"P15Y",P3D:"P3D",P7D:"P7D",P30D:"P30D",HALF_YEARLY:"HALF_YEARLY",QUARTERLY:"QUARTERLY"});var v='span[is="inline-price"][data-wcs-osi]',V='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]';var pe=`${v},${V}`;var ge="merch-offer-select:ready",ue="merch-card:action-menu-toggle";var Bt="merch-quantity-selector:change",fe="merch-card-quantity:change",Ht="merch-modal:addon-and-quantity-update";var Y="aem:load",K="aem:error",xe="mas:ready",be="mas:error";var Ut="mas:resolved";var Tt="X-Request-Id",go=Object.freeze({SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"});var uo=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"});var kt=":start",Ct=":duration";var ve="legal";var tr="mas-commerce-service";function ye(o,e){let t;return function(){let r=this,n=arguments;clearTimeout(t),t=setTimeout(()=>o.apply(r,n),e)}}function E(o,e={},t=null,r=null){let n=r?document.createElement(o,{is:r}):document.createElement(o);t instanceof HTMLElement?n.appendChild(t):n.innerHTML=t;for(let[a,i]of Object.entries(e))n.setAttribute(a,i);return n}function _t(){return window.matchMedia("(max-width: 767px)")}function W(){return _t().matches}function Q(o){return`startTime:${o.startTime.toFixed(2)}|duration:${o.duration.toFixed(2)}`}function Ee(){return window.matchMedia("(max-width: 1024px)").matches}function X(){return document.getElementsByTagName(tr)?.[0]}var mt,F,pt,gt,Z,Lt=class extends HTMLElement{constructor(){super();m(this,mt,"");m(this,F);m(this,pt,[]);m(this,gt,[]);m(this,Z);h(this,Z,ye(()=>{this.isConnected&&(this.parentElement.style.background=this.value,c(this,F)?this.parentElement.style.borderRadius=c(this,F):c(this,F)===""&&(this.parentElement.style.borderRadius=""))},1))}static get observedAttributes(){return["colors","positions","angle","border-radius"]}get value(){let t=c(this,pt).map((r,n)=>{let a=c(this,gt)[n]||"";return`${r} ${a}`}).join(", ");return`linear-gradient(${c(this,mt)}, ${t})`}connectedCallback(){c(this,Z).call(this)}attributeChangedCallback(t,r,n){t==="border-radius"&&h(this,F,n?.trim()),t==="colors"&&n?h(this,pt,n?.split(",").map(a=>a.trim())??[]):t==="positions"&&n?h(this,gt,n?.split(",").map(a=>a.trim())??[]):t==="angle"&&h(this,mt,n?.trim()??""),c(this,Z).call(this)}};mt=new WeakMap,F=new WeakMap,pt=new WeakMap,gt=new WeakMap,Z=new WeakMap;customElements.define("merch-gradient",Lt);import{LitElement as er,html as rr,css as or}from"../lit-all.min.js";var J=class extends er{constructor(){super(),this.planType=void 0,this.checked=!1,this.updatePlanType=this.updatePlanType.bind(this),this.handleChange=this.handleChange.bind(this)}getOsi(e,t){let a=({TRIAL:["TRIAL"],BASE:["BASE","PROMOTION"],PROMOTION:["PROMOTION","BASE"]}[t]||[t]).map(s=>`p[data-plan-type="${e}"] ${v}[data-offer-type="${s}"]`).join(", ");return this.querySelector(a)?.dataset?.wcsOsi}connectedCallback(){super.connectedCallback(),this.addEventListener(Ut,this.updatePlanType)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Ut,this.updatePlanType)}updatePlanType(e){if(e.target.tagName!=="SPAN")return;let t=e.target,r=t?.value?.[0];r&&(t.setAttribute("data-offer-type",r.offerType),t.closest("p").setAttribute("data-plan-type",r.planType))}handleChange(e){this.checked=e.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}render(){return rr`o.apply(r,n),e)}}function E(o,e={},t=null,r=null){let n=r?document.createElement(o,{is:r}):document.createElement(o);t instanceof HTMLElement?n.appendChild(t):n.innerHTML=t;for(let[a,i]of Object.entries(e))n.setAttribute(a,i);return n}function _t(){return window.matchMedia("(max-width: 767px)")}function W(){return _t().matches}function Q(o){return`startTime:${o.startTime.toFixed(2)}|duration:${o.duration.toFixed(2)}`}function we(){return window.matchMedia("(max-width: 1024px)").matches}function X(){return document.getElementsByTagName(rr)?.[0]}var mt,B,pt,gt,Z,Lt=class extends HTMLElement{constructor(){super();m(this,mt,"");m(this,B);m(this,pt,[]);m(this,gt,[]);m(this,Z);h(this,Z,Ee(()=>{this.isConnected&&(this.parentElement.style.background=this.value,c(this,B)?this.parentElement.style.borderRadius=c(this,B):c(this,B)===""&&(this.parentElement.style.borderRadius=""))},1))}static get observedAttributes(){return["colors","positions","angle","border-radius"]}get value(){let t=c(this,pt).map((r,n)=>{let a=c(this,gt)[n]||"";return`${r} ${a}`}).join(", ");return`linear-gradient(${c(this,mt)}, ${t})`}connectedCallback(){c(this,Z).call(this)}attributeChangedCallback(t,r,n){t==="border-radius"&&h(this,B,n?.trim()),t==="colors"&&n?h(this,pt,n?.split(",").map(a=>a.trim())??[]):t==="positions"&&n?h(this,gt,n?.split(",").map(a=>a.trim())??[]):t==="angle"&&h(this,mt,n?.trim()??""),c(this,Z).call(this)}};mt=new WeakMap,B=new WeakMap,pt=new WeakMap,gt=new WeakMap,Z=new WeakMap;customElements.define("merch-gradient",Lt);import{LitElement as or,html as nr,css as ar}from"../lit-all.min.js";var J=class extends or{constructor(){super(),this.planType=void 0,this.checked=!1,this.updatePlanType=this.updatePlanType.bind(this),this.handleChange=this.handleChange.bind(this)}getOsi(e,t){let a=({TRIAL:["TRIAL"],BASE:["BASE","PROMOTION"],PROMOTION:["PROMOTION","BASE"]}[t]||[t]).map(s=>`p[data-plan-type="${e}"] ${v}[data-offer-type="${s}"]`).join(", ");return this.querySelector(a)?.dataset?.wcsOsi}connectedCallback(){super.connectedCallback(),this.addEventListener(qt,this.updatePlanType)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(qt,this.updatePlanType)}updatePlanType(e){if(e.target.tagName!=="SPAN")return;let t=e.target,r=t?.value?.[0];r&&(t.setAttribute("data-offer-type",r.offerType),t.closest("p").setAttribute("data-plan-type",r.planType))}handleChange(e){this.checked=e.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}render(){return nr`{throw TypeError(o)};var Xe=(o,e,t)=>e in /> `}};d(J,"properties",{planType:{type:String,attribute:"plan-type",reflect:!0},checked:{type:Boolean,reflect:!0}}),d(J,"styles",or` + `}};d(J,"properties",{planType:{type:String,attribute:"plan-type",reflect:!0},checked:{type:Boolean,reflect:!0}}),d(J,"styles",ar` :host { display: flex; gap: 9px; @@ -323,7 +323,7 @@ var Qe=Object.defineProperty;var ie=o=>{throw TypeError(o)};var Xe=(o,e,t)=>e in :host([plan-type='M2M']) ::slotted(p[data-plan-type='M2M']) { display: block; } - `);customElements.define("merch-addon",J);import{html as Rt,nothing as nr}from"../lit-all.min.js";var tt,ut=class ut{constructor(e){d(this,"card");m(this,tt);this.card=e,this.insertVariantStyle()}getContainer(){return h(this,tt,c(this,tt)??this.card.closest('[class*="-merch-cards"]')??this.card.parentElement),c(this,tt)}insertVariantStyle(){if(!ut.styleMap[this.card.variant]){ut.styleMap[this.card.variant]=!0;let e=document.createElement("style");e.innerHTML=this.getGlobalCSS(),document.head.appendChild(e)}}updateCardElementMinHeight(e,t){if(!e)return;let r=`--consonant-merch-card-${this.card.variant}-${t}-height`,n=Math.max(0,parseInt(window.getComputedStyle(e).height)||0),a=parseInt(this.getContainer().style.getPropertyValue(r))||0;n>a&&this.getContainer().style.setProperty(r,`${n}px`)}get badge(){let e;if(!(!this.card.badgeBackgroundColor||!this.card.badgeColor||!this.card.badgeText))return this.evergreen&&(e=`border: 1px solid ${this.card.badgeBackgroundColor}; border-right: none;`),Rt` + `);customElements.define("merch-addon",J);import{html as Rt,nothing as ir}from"../lit-all.min.js";var tt,ut=class ut{constructor(e){d(this,"card");m(this,tt);this.card=e,this.insertVariantStyle()}getContainer(){return h(this,tt,c(this,tt)??this.card.closest('[class*="-merch-cards"]')??this.card.parentElement),c(this,tt)}insertVariantStyle(){if(!ut.styleMap[this.card.variant]){ut.styleMap[this.card.variant]=!0;let e=document.createElement("style");e.innerHTML=this.getGlobalCSS(),document.head.appendChild(e)}}updateCardElementMinHeight(e,t){if(!e)return;let r=`--consonant-merch-card-${this.card.variant}-${t}-height`,n=Math.max(0,parseInt(window.getComputedStyle(e).height)||0),a=parseInt(this.getContainer().style.getPropertyValue(r))||0;n>a&&this.getContainer().style.setProperty(r,`${n}px`)}get badge(){let e;if(!(!this.card.badgeBackgroundColor||!this.card.badgeColor||!this.card.badgeText))return this.evergreen&&(e=`border: 1px solid ${this.card.badgeBackgroundColor}; border-right: none;`),Rt`
{throw TypeError(o)};var Xe=(o,e,t)=>e in ${this.badge}
`}getGlobalCSS(){return""}get theme(){return document.querySelector("sp-theme")}get evergreen(){return this.card.classList.contains("intro-pricing")}get promoBottom(){return this.card.classList.contains("promo-bottom")}get headingSelector(){return'[slot="heading-xs"]'}get secureLabel(){return this.card.secureLabel?Rt`${this.card.secureLabel}`:nr}get secureLabelFooter(){return Rt``}async adjustTitleWidth(){let e=this.card.getBoundingClientRect().width,t=this.card.badgeElement?.getBoundingClientRect().width||0;e===0||t===0||this.card.style.setProperty("--consonant-merch-card-heading-xs-max-width",`${Math.round(e-t-16)}px`)}postCardUpdateHook(){}connectedCallbackHook(){}disconnectedCallbackHook(){}renderLayout(){}get aemFragmentMapping(){return Mt(this.card.variant)}};tt=new WeakMap,d(ut,"styleMap",{});var f=ut;import{html as qt,css as ar}from"../lit-all.min.js";var we=` + >`:ir}get secureLabelFooter(){return Rt``}async adjustTitleWidth(){let e=this.card.getBoundingClientRect().width,t=this.card.badgeElement?.getBoundingClientRect().width||0;e===0||t===0||this.card.style.setProperty("--consonant-merch-card-heading-xs-max-width",`${Math.round(e-t-16)}px`)}postCardUpdateHook(){}connectedCallbackHook(){}disconnectedCallbackHook(){}renderLayout(){}get aemFragmentMapping(){return Pt(this.card.variant)}};tt=new WeakMap,d(ut,"styleMap",{});var f=ut;import{html as Gt,css as cr}from"../lit-all.min.js";var Se=` :root { --consonant-merch-card-catalog-width: 276px; --consonant-merch-card-catalog-icon-size: 40px; @@ -424,12 +424,12 @@ merch-card[variant="catalog"] .payment-details { font-style: italic; font-weight: 400; line-height: var(--consonant-merch-card-body-line-height); -}`;var Se={badge:!0,ctas:{slot:"footer",size:"m"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},prices:{tag:"h3",slot:"heading-xs"},size:["wide","super-wide"],title:{tag:"h3",slot:"heading-xs"}},et=class extends f{constructor(t){super(t);d(this,"dispatchActionMenuToggle",()=>{this.card.dispatchEvent(new CustomEvent(ue,{bubbles:!0,composed:!0,detail:{card:this.card.name,type:"action-menu"}}))});d(this,"toggleActionMenu",t=>{if(!this.actionMenuContentSlot||!t||t.type!=="click"&&t.code!=="Space"&&t.code!=="Enter")return;t.preventDefault(),this.actionMenuContentSlot.classList.toggle("hidden");let r=this.actionMenuContentSlot.classList.contains("hidden");r||this.dispatchActionMenuToggle(),this.setAriaExpanded(this.actionMenu,(!r).toString())});d(this,"toggleActionMenuFromCard",t=>{let r=t?.type==="mouseleave"?!0:void 0;this.card.blur(),this.actionMenu?.classList.remove("always-visible"),this.actionMenuContentSlot&&(r||this.dispatchActionMenuToggle(),this.actionMenuContentSlot.classList.toggle("hidden",r),this.setAriaExpanded(this.actionMenu,"false"))});d(this,"hideActionMenu",t=>{this.actionMenuContentSlot?.classList.add("hidden"),this.setAriaExpanded(this.actionMenu,"false")})}get actionMenu(){return this.card.shadowRoot.querySelector(".action-menu")}get actionMenuContentSlot(){return this.card.shadowRoot.querySelector('slot[name="action-menu-content"]')}renderLayout(){return qt`
+}`;var Ae={badge:!0,ctas:{slot:"footer",size:"m"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},prices:{tag:"h3",slot:"heading-xs"},size:["wide","super-wide"],title:{tag:"h3",slot:"heading-xs"}},et=class extends f{constructor(t){super(t);d(this,"dispatchActionMenuToggle",()=>{this.card.dispatchEvent(new CustomEvent(fe,{bubbles:!0,composed:!0,detail:{card:this.card.name,type:"action-menu"}}))});d(this,"toggleActionMenu",t=>{if(!this.actionMenuContentSlot||!t||t.type!=="click"&&t.code!=="Space"&&t.code!=="Enter")return;t.preventDefault(),this.actionMenuContentSlot.classList.toggle("hidden");let r=this.actionMenuContentSlot.classList.contains("hidden");r||this.dispatchActionMenuToggle(),this.setAriaExpanded(this.actionMenu,(!r).toString())});d(this,"toggleActionMenuFromCard",t=>{let r=t?.type==="mouseleave"?!0:void 0;this.card.blur(),this.actionMenu?.classList.remove("always-visible"),this.actionMenuContentSlot&&(r||this.dispatchActionMenuToggle(),this.actionMenuContentSlot.classList.toggle("hidden",r),this.setAriaExpanded(this.actionMenu,"false"))});d(this,"hideActionMenu",t=>{this.actionMenuContentSlot?.classList.add("hidden"),this.setAriaExpanded(this.actionMenu,"false")})}get actionMenu(){return this.card.shadowRoot.querySelector(".action-menu")}get actionMenuContentSlot(){return this.card.shadowRoot.querySelector('slot[name="action-menu-content"]')}renderLayout(){return Gt`
${this.badge}
- ${this.promoBottom?"":qt``} - ${this.promoBottom?qt``:""}
${this.secureLabelFooter} - `}getGlobalCSS(){return we}setAriaExpanded(t,r){t.setAttribute("aria-expanded",r)}connectedCallbackHook(){this.card.addEventListener("mouseleave",this.toggleActionMenuFromCard)}disconnectedCallbackHook(){this.card.removeEventListener("mouseleave",this.toggleActionMenuFromCard)}};d(et,"variantStyle",ar` + `}getGlobalCSS(){return Se}setAriaExpanded(t,r){t.setAttribute("aria-expanded",r)}connectedCallbackHook(){this.card.addEventListener("mouseleave",this.toggleActionMenuFromCard)}disconnectedCallbackHook(){this.card.removeEventListener("mouseleave",this.toggleActionMenuFromCard)}};d(et,"variantStyle",cr` :host([variant='catalog']) { min-height: 330px; width: var(--consonant-merch-card-catalog-width); @@ -473,7 +473,7 @@ merch-card[variant="catalog"] .payment-details { margin-left: var(--consonant-merch-spacing-xxs); box-sizing: border-box; } - `);import{html as ft}from"../lit-all.min.js";var Ae=` + `);import{html as ft}from"../lit-all.min.js";var Te=` :root { --consonant-merch-card-image-width: 300px; } @@ -507,7 +507,7 @@ merch-card[variant="catalog"] .payment-details { grid-template-columns: repeat(4, var(--consonant-merch-card-image-width-4clm)); } } -`;var Pt=class extends f{constructor(e){super(e)}getGlobalCSS(){return Ae}renderLayout(){return ft`${this.cardImage} +`;var Mt=class extends f{constructor(e){super(e)}getGlobalCSS(){return Te}renderLayout(){return ft`${this.cardImage}
@@ -524,7 +524,7 @@ merch-card[variant="catalog"] .payment-details { `:ft`
${this.secureLabelFooter} - `}`}};import{html as ke}from"../lit-all.min.js";var Te=` + `}`}};import{html as ke}from"../lit-all.min.js";var Ce=` :root { --consonant-merch-card-inline-heading-width: 300px; } @@ -560,7 +560,7 @@ merch-card[variant="catalog"] .payment-details { grid-template-columns: repeat(4, var(--consonant-merch-card-inline-heading-width)); } } -`;var Nt=class extends f{constructor(e){super(e)}getGlobalCSS(){return Te}renderLayout(){return ke` ${this.badge} +`;var Nt=class extends f{constructor(e){super(e)}getGlobalCSS(){return Ce}renderLayout(){return ke` ${this.badge}
@@ -568,7 +568,7 @@ merch-card[variant="catalog"] .payment-details {
- ${this.card.customHr?"":ke`
`} ${this.secureLabelFooter}`}};import{html as rt,css as ir,unsafeCSS as Gt}from"../lit-all.min.js";var Ce=` + ${this.card.customHr?"":ke`
`} ${this.secureLabelFooter}`}};import{html as rt,css as sr,unsafeCSS as jt}from"../lit-all.min.js";var _e=` :root { --consonant-merch-card-mini-compare-chart-icon-size: 32px; --consonant-merch-card-mini-compare-mobile-cta-font-size: 16px; @@ -810,7 +810,7 @@ merch-card[variant="catalog"] .payment-details { } /* mini compare mobile */ -@media screen and ${R} { +@media screen and ${P} { :root { --consonant-merch-card-mini-compare-chart-width: 302px; --consonant-merch-card-mini-compare-chart-wide-width: 302px; @@ -1003,11 +1003,11 @@ merch-card .footer-row-cell:nth-child(7) { merch-card .footer-row-cell:nth-child(8) { min-height: var(--consonant-merch-card-footer-row-8-min-height); } -`;var cr=32,ot=class extends f{constructor(t){super(t);d(this,"getRowMinHeightPropertyName",t=>`--consonant-merch-card-footer-row-${t}-min-height`);d(this,"getMiniCompareFooter",()=>{let t=this.card.secureLabel?rt` +`;var dr=32,ot=class extends f{constructor(t){super(t);d(this,"getRowMinHeightPropertyName",t=>`--consonant-merch-card-footer-row-${t}-min-height`);d(this,"getMiniCompareFooter",()=>{let t=this.card.secureLabel?rt` ${this.card.secureLabel}`:rt``;return rt`
${t}
`})}getGlobalCSS(){return Ce}adjustMiniCompareBodySlots(){if(this.card.getBoundingClientRect().width<=2)return;this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(".top-section"),"top-section");let t=["heading-m","body-m","heading-m-price","body-xxs","price-commitment","offers","promo-text","callout-content","addon"];this.card.classList.contains("bullet-list")&&t.push("footer-rows"),t.forEach(n=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${n}"]`),n)),this.updateCardElementMinHeight(this.card.shadowRoot.querySelector("footer"),"footer");let r=this.card.shadowRoot.querySelector(".mini-compare-chart-badge");r&&r.textContent!==""&&this.getContainer().style.setProperty("--consonant-merch-card-mini-compare-chart-top-section-mobile-height","32px")}adjustMiniCompareFooterRows(){if(this.card.getBoundingClientRect().width===0)return;let t=this.card.querySelector('[slot="footer-rows"] ul');!t||!t.children||[...t.children].forEach((r,n)=>{let a=Math.max(cr,parseFloat(window.getComputedStyle(r).height)||0),i=parseFloat(this.getContainer().style.getPropertyValue(this.getRowMinHeightPropertyName(n+1)))||0;a>i&&this.getContainer().style.setProperty(this.getRowMinHeightPropertyName(n+1),`${a}px`)})}removeEmptyRows(){this.card.querySelectorAll(".footer-row-cell").forEach(r=>{let n=r.querySelector(".footer-row-cell-description");n&&!n.textContent.trim()&&r.remove()})}get mainPrice(){return this.card.querySelector(`[slot="heading-m-price"] ${v}[data-template="price"]`)}get headingMPriceSlot(){return this.card.shadowRoot.querySelector('slot[name="heading-m-price"]')?.assignedElements()[0]}toggleAddon(t){let r=this.mainPrice,n=this.headingMPriceSlot;if(!r&&n){let a=t?.getAttribute("plan-type"),i=null;if(t&&a&&(i=t.querySelector(`p[data-plan-type="${a}"]`)?.querySelector('span[is="inline-price"]')),this.card.querySelectorAll('p[slot="heading-m-price"]').forEach(s=>s.remove()),t.checked){if(i){let s=E("p",{class:"addon-heading-m-price-addon",slot:"heading-m-price"},i.innerHTML);this.card.appendChild(s)}}else{let s=E("p",{class:"card-heading",id:"free",slot:"heading-m-price"},"Free");this.card.appendChild(s)}}}async adjustAddon(){await this.card.updateComplete;let t=this.card.addon;if(!t)return;let r=this.mainPrice,n=this.card.planType;r&&(await r.onceSettled(),n=r.value?.[0]?.planType),n&&(t.planType=n)}renderLayout(){return rt`
+ >`:rt``;return rt`
${t}
`})}getGlobalCSS(){return _e}adjustMiniCompareBodySlots(){if(this.card.getBoundingClientRect().width<=2)return;this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(".top-section"),"top-section");let t=["heading-m","body-m","heading-m-price","body-xxs","price-commitment","offers","promo-text","callout-content","addon"];this.card.classList.contains("bullet-list")&&t.push("footer-rows"),t.forEach(n=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${n}"]`),n)),this.updateCardElementMinHeight(this.card.shadowRoot.querySelector("footer"),"footer");let r=this.card.shadowRoot.querySelector(".mini-compare-chart-badge");r&&r.textContent!==""&&this.getContainer().style.setProperty("--consonant-merch-card-mini-compare-chart-top-section-mobile-height","32px")}adjustMiniCompareFooterRows(){if(this.card.getBoundingClientRect().width===0)return;let t=this.card.querySelector('[slot="footer-rows"] ul');!t||!t.children||[...t.children].forEach((r,n)=>{let a=Math.max(dr,parseFloat(window.getComputedStyle(r).height)||0),i=parseFloat(this.getContainer().style.getPropertyValue(this.getRowMinHeightPropertyName(n+1)))||0;a>i&&this.getContainer().style.setProperty(this.getRowMinHeightPropertyName(n+1),`${a}px`)})}removeEmptyRows(){this.card.querySelectorAll(".footer-row-cell").forEach(r=>{let n=r.querySelector(".footer-row-cell-description");n&&!n.textContent.trim()&&r.remove()})}get mainPrice(){return this.card.querySelector(`[slot="heading-m-price"] ${v}[data-template="price"]`)}get headingMPriceSlot(){return this.card.shadowRoot.querySelector('slot[name="heading-m-price"]')?.assignedElements()[0]}toggleAddon(t){let r=this.mainPrice,n=this.headingMPriceSlot;if(!r&&n){let a=t?.getAttribute("plan-type"),i=null;if(t&&a&&(i=t.querySelector(`p[data-plan-type="${a}"]`)?.querySelector('span[is="inline-price"]')),this.card.querySelectorAll('p[slot="heading-m-price"]').forEach(s=>s.remove()),t.checked){if(i){let s=E("p",{class:"addon-heading-m-price-addon",slot:"heading-m-price"},i.innerHTML);this.card.appendChild(s)}}else{let s=E("p",{class:"card-heading",id:"free",slot:"heading-m-price"},"Free");this.card.appendChild(s)}}}async adjustAddon(){await this.card.updateComplete;let t=this.card.addon;if(!t)return;let r=this.mainPrice,n=this.card.planType;r&&(await r.onceSettled(),n=r.value?.[0]?.planType),n&&(t.planType=n)}renderLayout(){return rt`
${this.badge}
@@ -1022,7 +1022,7 @@ merch-card .footer-row-cell:nth-child(8) { ${this.getMiniCompareFooter()} - `}async postCardUpdateHook(){await Promise.all(this.card.prices.map(t=>t.onceSettled())),await this.adjustAddon(),W()?this.removeEmptyRows():(this.adjustMiniCompareBodySlots(),this.adjustMiniCompareFooterRows())}};d(ot,"variantStyle",ir` + `}async postCardUpdateHook(){await Promise.all(this.card.prices.map(t=>t.onceSettled())),await this.adjustAddon(),W()?this.removeEmptyRows():(this.adjustMiniCompareBodySlots(),this.adjustMiniCompareFooterRows())}};d(ot,"variantStyle",sr` :host([variant='mini-compare-chart']) > slot:not([name='icons']) { display: block; } @@ -1055,7 +1055,7 @@ merch-card .footer-row-cell:nth-child(8) { color: var(--merch-color-grey-700); } - @media screen and ${Gt(R)} { + @media screen and ${jt(P)} { :host([variant='mini-compare-chart'].bullet-list) .mini-compare-chart-badge { padding: 2px 10px; font-size: var(--consonant-merch-card-body-xs-font-size); @@ -1067,7 +1067,7 @@ merch-card .footer-row-cell:nth-child(8) { } } - @media screen and ${Gt(At)} { + @media screen and ${jt(At)} { [class*'-merch-cards'] :host([variant='mini-compare-chart']) footer { flex-direction: column; align-items: stretch; @@ -1075,7 +1075,7 @@ merch-card .footer-row-cell:nth-child(8) { } } - @media screen and ${Gt(g)} { + @media screen and ${jt(g)} { :host([variant='mini-compare-chart']) footer { padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-s) @@ -1131,7 +1131,7 @@ merch-card .footer-row-cell:nth-child(8) { :host([variant='mini-compare-chart']) slot[name='footer-rows'] { justify-content: flex-start; } - `);import{html as nt,css as sr,nothing as zt}from"../lit-all.min.js";var _e=` + `);import{html as nt,css as lr,nothing as Ot}from"../lit-all.min.js";var Le=` :root { --consonant-merch-card-plans-width: 300px; --consonant-merch-card-plans-icon-size: 40px; @@ -1311,7 +1311,7 @@ merch-card[variant^="plans"] merch-addon span[data-template="price"] { } /* Mobile */ -@media screen and ${R} { +@media screen and ${P} { merch-whats-included merch-mnemonic-list, merch-whats-included [slot="heading"] { width: 100%; @@ -1401,11 +1401,11 @@ merch-card[variant^="plans"]:not([size]) { grid-template-columns: repeat(2, var(--consonant-merch-card-plans-width)); } } -`;var Ot={title:{tag:"h3",slot:"heading-xs"},prices:{tag:"p",slot:"heading-m"},promoText:{tag:"p",slot:"promo-text"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},callout:{tag:"div",slot:"callout-content"},quantitySelect:{tag:"div",slot:"quantity-select"},addon:!0,secureLabel:!0,planType:!0,badge:{tag:"div",slot:"badge",default:"spectrum-yellow-300-plans"},allowedBadgeColors:["spectrum-yellow-300-plans","spectrum-gray-300-plans","spectrum-gray-700-plans","spectrum-green-900-plans"],allowedBorderColors:["spectrum-yellow-300-plans","spectrum-gray-300-plans","spectrum-green-900-plans"],borderColor:{attribute:"border-color"},size:["wide","super-wide"],whatsIncluded:{tag:"div",slot:"whats-included"},ctas:{slot:"footer",size:"m"},style:"consonant"},Le={...function(){let{whatsIncluded:o,...e}=Ot;return e}(),title:{tag:"h3",slot:"heading-s"},subtitle:{tag:"p",slot:"subtitle"},secureLabel:!1},Re={...function(){let{whatsIncluded:o,size:e,quantitySelect:t,...r}=Ot;return r}()},P=class extends f{constructor(e){super(e),this.adaptForMobile=this.adaptForMobile.bind(this)}priceOptionsProvider(e,t){e.dataset.template===ve&&(t.displayPlanType=this.card?.settings?.displayPlanType??!1)}getGlobalCSS(){return _e}adaptForMobile(){if(!this.card.closest("merch-card-collection,overlay-trigger,.two-merch-cards,.three-merch-cards,.four-merch-cards, .columns")){this.card.removeAttribute("size");return}let e=this.card.shadowRoot,t=e.querySelector("footer"),r=this.card.getAttribute("size"),n=e.querySelector("footer #stock-checkbox"),a=e.querySelector(".body #stock-checkbox"),i=e.querySelector(".body");if(!r||!r.includes("wide")){t?.classList.remove("wide-footer"),n&&n.remove();return}let s=W();if(t?.classList.toggle("wide-footer",!s),s&&n){a?n.remove():i.appendChild(n);return}!s&&a&&(n?a.remove():t.prepend(a))}adjustCallout(){let e=this.card.querySelector('[slot="callout-content"] .icon-button');e&&e.title&&(e.dataset.tooltip=e.title,e.removeAttribute("title"),e.classList.add("hide-tooltip"),document.addEventListener("touchstart",t=>{t.preventDefault(),t.target!==e?e.classList.add("hide-tooltip"):t.target.classList.toggle("hide-tooltip")}),document.addEventListener("mouseover",t=>{t.preventDefault(),t.target!==e?e.classList.add("hide-tooltip"):t.target.classList.remove("hide-tooltip")}))}postCardUpdateHook(){this.adaptForMobile(),this.adjustTitleWidth(),this.adjustLegal(),this.adjustAddon(),this.adjustCallout()}get headingM(){return this.card.querySelector('[slot="heading-m"]')}get mainPrice(){return this.headingM.querySelector(`${v}[data-template="price"]`)}get divider(){return this.card.variant==="plans-education"?nt`
`:zt}async adjustLegal(){if(await this.card.updateComplete,this.legalAdjusted)return;this.legalAdjusted=!0;let e=[],t=this.card.querySelector(`[slot="heading-m"] ${v}[data-template="price"]`);t&&e.push(t),this.card.querySelectorAll(`[slot="body-xs"] ${v}[data-template="price"]`).forEach(a=>e.push(a));let n=e.map(async a=>{let i=a.cloneNode(!0);await a.onceSettled(),a?.options&&(a.options.displayPerUnit&&(a.dataset.displayPerUnit="false"),a.options.displayTax&&(a.dataset.displayTax="false"),a.options.displayPlanType&&(a.dataset.displayPlanType="false"),i.setAttribute("data-template","legal"),a.parentNode.insertBefore(i,a.nextSibling))});await Promise.all(n)}async adjustAddon(){await this.card.updateComplete;let e=this.card.addon;if(!e)return;let t=this.mainPrice;if(!t)return;await t.onceSettled();let r=t.value?.[0]?.planType;r&&(e.planType=r)}get stockCheckbox(){return this.card.checkboxLabel?nt``:Ot}get icons(){return!this.card.querySelector('[slot="icons"]')&&!this.card.getAttribute("id")?Ot:nt``}get addon(){return this.card.size==="super-wide"?Ot:nt``}get plansSecureLabelFooter(){return this.card.size==="super-wide"?nt`
${this.secureLabel}
`:this.secureLabelFooter}connectedCallbackHook(){let e=_t();e?.addEventListener&&e.addEventListener("change",this.adaptForMobile)}disconnectedCallbackHook(){let e=_t();e?.removeEventListener&&e.removeEventListener("change",this.adaptForMobile)}renderLayout(){return nt` ${this.badge}
${this.icons} @@ -1425,7 +1425,7 @@ merch-card[variant^="plans"]:not([size]) {
- ${this.plansSecureLabelFooter}`}};d(P,"variantStyle",sr` + ${this.plansSecureLabelFooter}`}};d(N,"variantStyle",lr` :host([variant^='plans']) { min-height: 273px; border: 1px solid var(--merch-card-custom-border-color, #dadada); @@ -1507,7 +1507,7 @@ merch-card[variant^="plans"]:not([size]) { line-height: 21px; padding: 2px 10px 3px; } - `);import{html as jt,css as dr}from"../lit-all.min.js";var Me=` + `);import{html as Vt,css as hr}from"../lit-all.min.js";var Me=` :root { --consonant-merch-card-product-width: 300px; } @@ -1573,19 +1573,19 @@ merch-card[variant^="plans"]:not([size]) { grid-template-columns: repeat(4, var(--consonant-merch-card-product-width-4clm)); } } -`;var B=class extends f{constructor(e){super(e),this.postCardUpdateHook=this.postCardUpdateHook.bind(this)}getGlobalCSS(){return Me}adjustProductBodySlots(){if(this.card.getBoundingClientRect().width===0)return;["heading-xs","body-xxs","body-xs","promo-text","callout-content","addon","body-lower"].forEach(t=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${t}"]`),t))}renderLayout(){return jt` ${this.badge} +`;var F=class extends f{constructor(e){super(e),this.postCardUpdateHook=this.postCardUpdateHook.bind(this)}getGlobalCSS(){return Me}adjustProductBodySlots(){if(this.card.getBoundingClientRect().width===0)return;["heading-xs","body-xxs","body-xs","promo-text","callout-content","addon","body-lower"].forEach(t=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${t}"]`),t))}renderLayout(){return Vt` ${this.badge}
- ${this.promoBottom?"":jt``} + ${this.promoBottom?"":Vt``} - ${this.promoBottom?jt``:""} + ${this.promoBottom?Vt``:""}
- ${this.secureLabelFooter}`}connectedCallbackHook(){window.addEventListener("resize",this.postCardUpdateHook)}disconnectedCallbackHook(){window.removeEventListener("resize",this.postCardUpdateHook)}postCardUpdateHook(){this.card.isConnected&&(this.adjustAddon(),W()||this.adjustProductBodySlots(),this.adjustTitleWidth())}get headingXSSlot(){return this.card.shadowRoot.querySelector('slot[name="heading-xs"]').assignedElements()[0]}get mainPrice(){return this.card.querySelector(`[slot="heading-xs"] ${v}[data-template="price"]`)}toggleAddon(e){let t=this.mainPrice,r=this.headingXSSlot;if(!t&&r){let n=e?.getAttribute("plan-type"),a=null;if(e&&n&&(a=e.querySelector(`p[data-plan-type="${n}"]`)?.querySelector('span[is="inline-price"]')),this.card.querySelectorAll('p[slot="heading-xs"]').forEach(i=>i.remove()),e.checked){if(a){let i=E("p",{class:"addon-heading-xs-price-addon",slot:"heading-xs"},a.innerHTML);this.card.appendChild(i)}}else{let i=E("p",{class:"card-heading",id:"free",slot:"heading-xs"},"Free");this.card.appendChild(i)}}}async adjustAddon(){await this.card.updateComplete;let e=this.card.addon;if(!e)return;let t=this.mainPrice,r=this.card.planType;t&&(await t.onceSettled(),r=t.value?.[0]?.planType),r&&(e.planType=r)}};d(B,"variantStyle",dr` + ${this.secureLabelFooter}`}connectedCallbackHook(){window.addEventListener("resize",this.postCardUpdateHook)}disconnectedCallbackHook(){window.removeEventListener("resize",this.postCardUpdateHook)}postCardUpdateHook(){this.card.isConnected&&(this.adjustAddon(),W()||this.adjustProductBodySlots(),this.adjustTitleWidth())}get headingXSSlot(){return this.card.shadowRoot.querySelector('slot[name="heading-xs"]').assignedElements()[0]}get mainPrice(){return this.card.querySelector(`[slot="heading-xs"] ${v}[data-template="price"]`)}toggleAddon(e){let t=this.mainPrice,r=this.headingXSSlot;if(!t&&r){let n=e?.getAttribute("plan-type"),a=null;if(e&&n&&(a=e.querySelector(`p[data-plan-type="${n}"]`)?.querySelector('span[is="inline-price"]')),this.card.querySelectorAll('p[slot="heading-xs"]').forEach(i=>i.remove()),e.checked){if(a){let i=E("p",{class:"addon-heading-xs-price-addon",slot:"heading-xs"},a.innerHTML);this.card.appendChild(i)}}else{let i=E("p",{class:"card-heading",id:"free",slot:"heading-xs"},"Free");this.card.appendChild(i)}}}async adjustAddon(){await this.card.updateComplete;let e=this.card.addon;if(!e)return;let t=this.mainPrice,r=this.card.planType;t&&(await t.onceSettled(),r=t.value?.[0]?.planType),r&&(e.planType=r)}};d(F,"variantStyle",hr` :host([variant='product']) > slot:not([name='icons']) { display: block; } @@ -1620,7 +1620,7 @@ merch-card[variant^="plans"]:not([size]) { :host([variant='product']) ::slotted([slot='heading-xs']) { max-width: var(--consonant-merch-card-heading-xs-max-width, 100%); } - `);import{html as Vt,css as lr}from"../lit-all.min.js";var Pe=` + `);import{html as Yt,css as mr}from"../lit-all.min.js";var Ne=` :root { --consonant-merch-card-segment-width: 378px; } @@ -1634,7 +1634,7 @@ merch-card[variant^="plans"]:not([size]) { } /* Mobile */ -@media screen and ${R} { +@media screen and ${P} { :root { --consonant-merch-card-segment-width: 276px; } @@ -1666,23 +1666,23 @@ merch-card[variant^="plans"]:not([size]) { grid-template-columns: repeat(4, minmax(276px, var(--consonant-merch-card-segment-width))); } } -`;var at=class extends f{constructor(e){super(e)}getGlobalCSS(){return Pe}postCardUpdateHook(){this.adjustTitleWidth()}renderLayout(){return Vt` ${this.badge} +`;var at=class extends f{constructor(e){super(e)}getGlobalCSS(){return Ne}postCardUpdateHook(){this.adjustTitleWidth()}renderLayout(){return Yt` ${this.badge}
- ${this.promoBottom?"":Vt``} + ${this.promoBottom?"":Yt``} - ${this.promoBottom?Vt``:""} + ${this.promoBottom?Yt``:""}

- ${this.secureLabelFooter}`}};d(at,"variantStyle",lr` + ${this.secureLabelFooter}`}};d(at,"variantStyle",mr` :host([variant='segment']) { min-height: 214px; } :host([variant='segment']) ::slotted([slot='heading-xs']) { max-width: var(--consonant-merch-card-heading-xs-max-width, 100%); } - `);import{html as Yt,css as hr}from"../lit-all.min.js";var Ne=` + `);import{html as Kt,css as pr}from"../lit-all.min.js";var Oe=` :root { --consonant-merch-card-special-offers-width: 378px; } @@ -1699,7 +1699,7 @@ merch-card[variant="special-offers"] span[is="inline-price"][data-template="stri grid-template-columns: minmax(300px, var(--consonant-merch-card-special-offers-width)); } -@media screen and ${R} { +@media screen and ${P} { :root { --consonant-merch-card-special-offers-width: 302px; } @@ -1730,24 +1730,24 @@ merch-card[variant="special-offers"] span[is="inline-price"][data-template="stri grid-template-columns: repeat(4, minmax(300px, var(--consonant-merch-card-special-offers-width))); } } -`;var ze={name:{tag:"h4",slot:"detail-m"},title:{tag:"h4",slot:"detail-m"},backgroundImage:{tag:"div",slot:"bg-image"},prices:{tag:"h3",slot:"heading-xs"},description:{tag:"div",slot:"body-xs"},ctas:{slot:"footer",size:"l"}},it=class extends f{constructor(e){super(e)}getGlobalCSS(){return Ne}get headingSelector(){return'[slot="detail-m"]'}renderLayout(){return Yt`${this.cardImage} +`;var ze={name:{tag:"h4",slot:"detail-m"},title:{tag:"h4",slot:"detail-m"},backgroundImage:{tag:"div",slot:"bg-image"},prices:{tag:"h3",slot:"heading-xs"},description:{tag:"div",slot:"body-xs"},ctas:{slot:"footer",size:"l"}},it=class extends f{constructor(e){super(e)}getGlobalCSS(){return Oe}get headingSelector(){return'[slot="detail-m"]'}renderLayout(){return Kt`${this.cardImage}
- ${this.evergreen?Yt` + ${this.evergreen?Kt`
- `:Yt` + `:Kt`
${this.secureLabelFooter} `} - `}};d(it,"variantStyle",hr` + `}};d(it,"variantStyle",pr` :host([variant='special-offers']) { min-height: 439px; } @@ -1759,7 +1759,7 @@ merch-card[variant="special-offers"] span[is="inline-price"][data-template="stri :host([variant='special-offers'].center) { text-align: center; } - `);var Kt=new Map,A=(o,e,t=null,r=null)=>{Kt.set(o,{class:e,fragmentMapping:t,style:r})};A("catalog",et,Se,et.variantStyle);A("image",Pt);A("inline-heading",Nt);A("mini-compare-chart",ot,null,ot.variantStyle);A("plans",P,Ot,P.variantStyle);A("plans-students",P,Re,P.variantStyle);A("plans-education",P,Le,P.variantStyle);A("product",B,null,B.variantStyle);A("segment",at,null,at.variantStyle);A("special-offers",it,ze,it.variantStyle);var Wt=(o,e=!1)=>{let t=Kt.get(o.variant);if(!t)return e?void 0:new B(o);let{class:r,style:n}=t;if(n)try{let a=new CSSStyleSheet;a.replaceSync(n.cssText),o.shadowRoot.adoptedStyleSheets.push(a)}catch{let i=document.createElement("style");i.textContent=n.cssText,o.shadowRoot.appendChild(i)}return new r(o)};function Mt(o){return Kt.get(o)?.fragmentMapping}var Oe=document.createElement("style");Oe.innerHTML=` + `);var Wt=new Map,A=(o,e,t=null,r=null)=>{Wt.set(o,{class:e,fragmentMapping:t,style:r})};A("catalog",et,Ae,et.variantStyle);A("image",Mt);A("inline-heading",Nt);A("mini-compare-chart",ot,null,ot.variantStyle);A("plans",N,zt,N.variantStyle);A("plans-students",N,Pe,N.variantStyle);A("plans-education",N,Re,N.variantStyle);A("product",F,null,F.variantStyle);A("segment",at,null,at.variantStyle);A("special-offers",it,ze,it.variantStyle);var Qt=(o,e=!1)=>{let t=Wt.get(o.variant);if(!t)return e?void 0:new F(o);let{class:r,style:n}=t;if(n)try{let a=new CSSStyleSheet;a.replaceSync(n.cssText),o.shadowRoot.adoptedStyleSheets.push(a)}catch{let i=document.createElement("style");i.textContent=n.cssText,o.shadowRoot.appendChild(i)}return new r(o)};function Pt(o){return Wt.get(o)?.fragmentMapping}var $e=document.createElement("style");$e.innerHTML=` :root { --consonant-merch-card-detail-font-size: 12px; --consonant-merch-card-detail-font-weight: 500; @@ -2350,10 +2350,10 @@ merch-card [slot='callout-content'] .icon-button::before { max-width: 180px; } } -`;document.head.appendChild(Oe);function $e(o,e={},{metadata:t=!0,search:r=!0,storage:n=!0}={}){let a;if(r&&a==null){let i=new URLSearchParams(window.location.search),s=Qt(r)?r:o;a=i.get(s)}if(n&&a==null){let i=Qt(n)?n:o;a=window.sessionStorage.getItem(i)??window.localStorage.getItem(i)}if(t&&a==null){let i=mr(Qt(t)?t:o);a=document.documentElement.querySelector(`meta[name="${i}"]`)?.content}return a??e[o]}var Qt=o=>typeof o=="string";function mr(o=""){return String(o).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(e,t,r)=>`${t}-${r}`).replace(/\W+/gu,"-").toLowerCase()}var xt=class o extends Error{constructor(e,t,r){if(super(e,{cause:r}),this.name="MasError",t.response){let n=t.response.headers?.get(Tt);n&&(t.requestId=n),t.response.status&&(t.status=t.response.status,t.statusText=t.response.statusText),t.response.url&&(t.url=t.response.url)}delete t.response,this.context=t,Error.captureStackTrace&&Error.captureStackTrace(this,o)}toString(){let e=Object.entries(this.context||{}).map(([r,n])=>`${r}: ${JSON.stringify(n)}`).join(", "),t=`${this.name}: ${this.message}`;return e&&(t+=` (${e})`),this.cause&&(t+=` -Caused by: ${this.cause}`),t}};var pr={requestId:Tt,etag:"Etag",lastModified:"Last-Modified",serverTiming:"server-timing"};function Ie(o){let e={};if(!o?.headers)return e;let t=o.headers;for(let[r,n]of Object.entries(pr)){let a=t.get(n);a&&(a=a.replace(/[,;]/g,"|"),a=a.replace(/[| ]+/g,"|"),e[r]=a)}return e}async function De(o,e={},t=2,r=100){let n;for(let a=0;a<=t;a++)try{let i=await fetch(o,e);return i.retryCount=a,i}catch(i){if(n=i,n.retryCount=a,a>t)break;await new Promise(s=>setTimeout(s,r*(a+1)))}throw n}var Fe="fragment",Be="author",He="preview",Xt="aem-fragment",N,Zt=class{constructor(){m(this,N,new Map)}clear(){c(this,N).clear()}addByRequestedId(e,t){c(this,N).set(e,t)}put(e,t){c(this,N).set(e,t)}add(...e){e.forEach(t=>{let{id:r}=t;r&&c(this,N).set(r,t)})}has(e){return c(this,N).has(e)}get(e){return c(this,N).get(e)}remove(e){c(this,N).delete(e)}};N=new WeakMap;var $t=new Zt,ct,z,O,x,T,S,C,bt,vt,st,_,Ue,qe,te,Ge,Jt=class extends HTMLElement{constructor(){super(...arguments);m(this,_);d(this,"cache",$t);m(this,ct);m(this,z,null);m(this,O,null);m(this,x,{url:null,retryCount:0,stale:!1,measure:null,status:null});m(this,T,null);m(this,S);m(this,C);m(this,bt,!1);m(this,vt,0);m(this,st)}static get observedAttributes(){return[Fe,Be,He]}attributeChangedCallback(t,r,n){t===Fe&&h(this,S,n),t===Be&&h(this,bt,["","true"].includes(n)),t===He&&h(this,st,n)}connectedCallback(){if(!c(this,C)){if(c(this,T)??h(this,T,X(this)),h(this,st,c(this,T).settings?.preview),c(this,ct)??h(this,ct,c(this,T).log.module(`${Xt}[${c(this,S)}]`)),!c(this,S)||c(this,S)==="#"){w(this,_,te).call(this,"Missing fragment id");return}this.refresh(!1)}}get fetchInfo(){return Object.fromEntries(Object.entries(c(this,x)).filter(([t,r])=>r!=null).map(([t,r])=>[`aem-fragment:${t}`,r]))}async refresh(t=!0){if(c(this,C)&&!await Promise.race([c(this,C),Promise.resolve(!1)]))return;t&&$t.remove(c(this,S));try{h(this,C,w(this,_,Ge).call(this)),await c(this,C)}catch(s){return w(this,_,te).call(this,s.message),!1}let{references:r,referencesTree:n,placeholders:a,wcs:i}=c(this,z)||{};return i&&!$e("mas.disableWcsCache")&&c(this,T).prefillWcsCache(i),this.dispatchEvent(new CustomEvent(Y,{detail:{...this.data,references:r,referencesTree:n,placeholders:a,...c(this,x)},bubbles:!0,composed:!0})),c(this,C)}get updateComplete(){return c(this,C)??Promise.reject(new Error("AEM fragment cannot be loaded"))}get data(){return c(this,O)?c(this,O):(c(this,bt)?this.transformAuthorData():this.transformPublishData(),c(this,O))}transformAuthorData(){let{fields:t,id:r,tags:n,settings:a={}}=c(this,z);h(this,O,t.reduce((i,{name:s,multiple:l,values:p})=>(i.fields[s]=l?p:p[0],i),{fields:{},id:r,tags:n,settings:a}))}transformPublishData(){let{fields:t,id:r,tags:n,settings:a={}}=c(this,z);h(this,O,Object.entries(t).reduce((i,[s,l])=>(i.fields[s]=l?.mimeType?l.value:l??"",i),{fields:{},id:r,tags:n,settings:a}))}async generatePreview(){let{previewFragment:t}=await import("https://mas.adobe.com/studio/libs/fragment-client.js");return await t(c(this,S),{locale:c(this,T).settings.locale,apiKey:c(this,T).settings.wcsApiKey})}};ct=new WeakMap,z=new WeakMap,O=new WeakMap,x=new WeakMap,T=new WeakMap,S=new WeakMap,C=new WeakMap,bt=new WeakMap,vt=new WeakMap,st=new WeakMap,_=new WeakSet,Ue=async function(t){ce(this,vt)._++;let r=`${Xt}:${c(this,S)}:${c(this,vt)}`,n=`${r}${kt}`,a=`${r}${Ct}`;if(c(this,st))return await this.generatePreview();performance.mark(n);let i;try{if(c(this,x).stale=!1,c(this,x).url=t,i=await De(t,{cache:"default",credentials:"omit"}),w(this,_,qe).call(this,i),c(this,x).status=i?.status,c(this,x).measure=Q(performance.measure(a,n)),c(this,x).retryCount=i.retryCount,!i?.ok)throw new xt("Unexpected fragment response",{response:i,...c(this,T).duration});return await i.json()}catch(s){if(c(this,x).measure=Q(performance.measure(a,n)),c(this,x).retryCount=s.retryCount,c(this,z))return c(this,x).stale=!0,c(this,ct).error("Serving stale data",c(this,x)),c(this,z);let l=s.message??"unknown";throw new xt(`Failed to fetch fragment: ${l}`,{})}},qe=function(t){Object.assign(c(this,x),Ie(t))},te=function(t){h(this,C,null),c(this,x).message=t,this.classList.add("error");let r={...c(this,x),...c(this,T).duration};c(this,ct).error(t,r),this.dispatchEvent(new CustomEvent(K,{detail:r,bubbles:!0,composed:!0}))},Ge=async function(){this.classList.remove("error"),h(this,O,null);let t=$t.get(c(this,S));if(t)return h(this,z,t),!0;let{masIOUrl:r,wcsApiKey:n,locale:a}=c(this,T).settings,i=`${r}/fragment?id=${c(this,S)}&api_key=${n}&locale=${a}`;return t=await w(this,_,Ue).call(this,i),$t.addByRequestedId(c(this,S),t),h(this,z,t),!0};customElements.define(Xt,Jt);import{LitElement as gr,html as ur,css as fr}from"../lit-all.min.js";var dt=class extends gr{constructor(){super(),this.color="",this.variant="",this.backgroundColor="",this.borderColor="",this.text=this.textContent}connectedCallback(){this.borderColor&&this.borderColor!=="Transparent"?this.style.setProperty("--merch-badge-border",`1px solid var(--${this.borderColor})`):this.style.setProperty("--merch-badge-border",`1px solid var(--${this.backgroundColor})`),this.style.setProperty("--merch-badge-background-color",`var(--${this.backgroundColor})`),this.style.setProperty("--merch-badge-color",this.color),this.style.setProperty("--merch-badge-padding","2px 10px 3px 10px"),this.style.setProperty("--merch-badge-border-radius","4px 0 0 4px"),this.style.setProperty("--merch-badge-font-size","var(--consonant-merch-card-body-xs-font-size)"),this.textContent="",super.connectedCallback()}render(){return ur`
+`;document.head.appendChild($e);function Ie(o,e={},{metadata:t=!0,search:r=!0,storage:n=!0}={}){let a;if(r&&a==null){let i=new URLSearchParams(window.location.search),s=Xt(r)?r:o;a=i.get(s)}if(n&&a==null){let i=Xt(n)?n:o;a=window.sessionStorage.getItem(i)??window.localStorage.getItem(i)}if(t&&a==null){let i=gr(Xt(t)?t:o);a=document.documentElement.querySelector(`meta[name="${i}"]`)?.content}return a??e[o]}var Xt=o=>typeof o=="string";function gr(o=""){return String(o).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(e,t,r)=>`${t}-${r}`).replace(/\W+/gu,"-").toLowerCase()}var xt=class o extends Error{constructor(e,t,r){if(super(e,{cause:r}),this.name="MasError",t.response){let n=t.response.headers?.get(Tt);n&&(t.requestId=n),t.response.status&&(t.status=t.response.status,t.statusText=t.response.statusText),t.response.url&&(t.url=t.response.url)}delete t.response,this.context=t,Error.captureStackTrace&&Error.captureStackTrace(this,o)}toString(){let e=Object.entries(this.context||{}).map(([r,n])=>`${r}: ${JSON.stringify(n)}`).join(", "),t=`${this.name}: ${this.message}`;return e&&(t+=` (${e})`),this.cause&&(t+=` +Caused by: ${this.cause}`),t}};var ur={requestId:Tt,etag:"Etag",lastModified:"Last-Modified",serverTiming:"server-timing"};function De(o){let e={};if(!o?.headers)return e;let t=o.headers;for(let[r,n]of Object.entries(ur)){let a=t.get(n);a&&(a=a.replace(/[,;]/g,"|"),a=a.replace(/[| ]+/g,"|"),e[r]=a)}return e}async function Be(o,e={},t=2,r=100){let n;for(let a=0;a<=t;a++)try{let i=await fetch(o,e);return i.retryCount=a,i}catch(i){if(n=i,n.retryCount=a,a>t)break;await new Promise(s=>setTimeout(s,r*(a+1)))}throw n}var Fe="fragment",He="author",Ue="preview",Zt="aem-fragment",O,Jt=class{constructor(){m(this,O,new Map)}clear(){c(this,O).clear()}addByRequestedId(e,t){c(this,O).set(e,t)}put(e,t){c(this,O).set(e,t)}add(...e){e.forEach(t=>{let{id:r}=t;r&&c(this,O).set(r,t)})}has(e){return c(this,O).has(e)}get(e){return c(this,O).get(e)}remove(e){c(this,O).delete(e)}};O=new WeakMap;var $t=new Jt,ct,z,$,x,T,S,k,bt,vt,st,_,qe,Ge,ee,je,te=class extends HTMLElement{constructor(){super(...arguments);m(this,_);d(this,"cache",$t);m(this,ct);m(this,z,null);m(this,$,null);m(this,x,{url:null,retryCount:0,stale:!1,measure:null,status:null});m(this,T,null);m(this,S);m(this,k);m(this,bt,!1);m(this,vt,0);m(this,st)}static get observedAttributes(){return[Fe,He,Ue]}attributeChangedCallback(t,r,n){t===Fe&&h(this,S,n),t===He&&h(this,bt,["","true"].includes(n)),t===Ue&&h(this,st,n)}connectedCallback(){if(!c(this,k)){if(c(this,T)??h(this,T,X(this)),h(this,st,c(this,T).settings?.preview),c(this,ct)??h(this,ct,c(this,T).log.module(`${Zt}[${c(this,S)}]`)),!c(this,S)||c(this,S)==="#"){w(this,_,ee).call(this,"Missing fragment id");return}this.refresh(!1)}}get fetchInfo(){return Object.fromEntries(Object.entries(c(this,x)).filter(([t,r])=>r!=null).map(([t,r])=>[`aem-fragment:${t}`,r]))}async refresh(t=!0){if(c(this,k)&&!await Promise.race([c(this,k),Promise.resolve(!1)]))return;t&&$t.remove(c(this,S));try{h(this,k,w(this,_,je).call(this)),await c(this,k)}catch(s){return w(this,_,ee).call(this,s.message),!1}let{references:r,referencesTree:n,placeholders:a,wcs:i}=c(this,z)||{};return i&&!Ie("mas.disableWcsCache")&&c(this,T).prefillWcsCache(i),this.dispatchEvent(new CustomEvent(Y,{detail:{...this.data,references:r,referencesTree:n,placeholders:a,...c(this,x)},bubbles:!0,composed:!0})),c(this,k)}get updateComplete(){return c(this,k)??Promise.reject(new Error("AEM fragment cannot be loaded"))}get data(){return c(this,$)?c(this,$):(c(this,bt)?this.transformAuthorData():this.transformPublishData(),c(this,$))}transformAuthorData(){let{fields:t,id:r,tags:n,settings:a={}}=c(this,z);h(this,$,t.reduce((i,{name:s,multiple:l,values:p})=>(i.fields[s]=l?p:p[0],i),{fields:{},id:r,tags:n,settings:a}))}transformPublishData(){let{fields:t,id:r,tags:n,settings:a={}}=c(this,z);h(this,$,Object.entries(t).reduce((i,[s,l])=>(i.fields[s]=l?.mimeType?l.value:l??"",i),{fields:{},id:r,tags:n,settings:a}))}async generatePreview(){let{previewFragment:t}=await import("https://mas.adobe.com/studio/libs/fragment-client.js");return await t(c(this,S),{locale:c(this,T).settings.locale,apiKey:c(this,T).settings.wcsApiKey})}};ct=new WeakMap,z=new WeakMap,$=new WeakMap,x=new WeakMap,T=new WeakMap,S=new WeakMap,k=new WeakMap,bt=new WeakMap,vt=new WeakMap,st=new WeakMap,_=new WeakSet,qe=async function(t){se(this,vt)._++;let r=`${Zt}:${c(this,S)}:${c(this,vt)}`,n=`${r}${Ct}`,a=`${r}${kt}`;if(c(this,st))return await this.generatePreview();performance.mark(n);let i;try{if(c(this,x).stale=!1,c(this,x).url=t,i=await Be(t,{cache:"default",credentials:"omit"}),w(this,_,Ge).call(this,i),c(this,x).status=i?.status,c(this,x).measure=Q(performance.measure(a,n)),c(this,x).retryCount=i.retryCount,!i?.ok)throw new xt("Unexpected fragment response",{response:i,...c(this,T).duration});return await i.json()}catch(s){if(c(this,x).measure=Q(performance.measure(a,n)),c(this,x).retryCount=s.retryCount,c(this,z))return c(this,x).stale=!0,c(this,ct).error("Serving stale data",c(this,x)),c(this,z);let l=s.message??"unknown";throw new xt(`Failed to fetch fragment: ${l}`,{})}},Ge=function(t){Object.assign(c(this,x),De(t))},ee=function(t){h(this,k,null),c(this,x).message=t,this.classList.add("error");let r={...c(this,x),...c(this,T).duration};c(this,ct).error(t,r),this.dispatchEvent(new CustomEvent(K,{detail:r,bubbles:!0,composed:!0}))},je=async function(){this.classList.remove("error"),h(this,$,null);let t=$t.get(c(this,S));if(t)return h(this,z,t),!0;let{masIOUrl:r,wcsApiKey:n,locale:a}=c(this,T).settings,i=`${r}/fragment?id=${c(this,S)}&api_key=${n}&locale=${a}`;return t=await w(this,_,qe).call(this,i),$t.addByRequestedId(c(this,S),t),h(this,z,t),!0};customElements.define(Zt,te);import{LitElement as fr,html as xr,css as br}from"../lit-all.min.js";var dt=class extends fr{constructor(){super(),this.color="",this.variant="",this.backgroundColor="",this.borderColor="",this.text=this.textContent}connectedCallback(){this.borderColor&&this.borderColor!=="Transparent"?this.style.setProperty("--merch-badge-border",`1px solid var(--${this.borderColor})`):this.style.setProperty("--merch-badge-border",`1px solid var(--${this.backgroundColor})`),this.style.setProperty("--merch-badge-background-color",`var(--${this.backgroundColor})`),this.style.setProperty("--merch-badge-color",this.color),this.style.setProperty("--merch-badge-padding","2px 10px 3px 10px"),this.style.setProperty("--merch-badge-border-radius","4px 0 0 4px"),this.style.setProperty("--merch-badge-font-size","var(--consonant-merch-card-body-xs-font-size)"),this.textContent="",super.connectedCallback()}render(){return xr`
${this.text} -
`}};d(dt,"properties",{color:{type:String},variant:{type:String},backgroundColor:{type:String,attribute:"background-color"},borderColor:{type:String,attribute:"border-color"}}),d(dt,"styles",fr` +
`}};d(dt,"properties",{color:{type:String},variant:{type:String},backgroundColor:{type:String,attribute:"background-color"},borderColor:{type:String,attribute:"border-color"}}),d(dt,"styles",br` :host { display: block; background-color: var(--merch-badge-background-color); @@ -2366,10 +2366,10 @@ Caused by: ${this.cause}`),t}};var pr={requestId:Tt,etag:"Etag",lastModified:"La position: relative; left: 1px; } - `);customElements.define("merch-badge",dt);import{html as xr,css as br,LitElement as vr}from"../lit-all.min.js";var yt=class extends vr{constructor(){super()}render(){return xr` + `);customElements.define("merch-badge",dt);import{html as vr,css as yr,LitElement as Er}from"../lit-all.min.js";var yt=class extends Er{constructor(){super()}render(){return vr` ${this.description} - `}};d(yt,"styles",br` + `}};d(yt,"styles",yr` :host { display: flex; flex-wrap: nowrap; @@ -2394,11 +2394,11 @@ Caused by: ${this.cause}`),t}};var pr={requestId:Tt,etag:"Etag",lastModified:"La :host .hidden { display: none; } - `),d(yt,"properties",{description:{type:String,attribute:!0}});customElements.define("merch-mnemonic-list",yt);import{html as ee,css as yr,LitElement as Er}from"../lit-all.min.js";var Et=class extends Er{updated(){this.hideSeeMoreEls()}hideSeeMoreEls(){this.isMobile&&this.rows.forEach((e,t)=>{t>=5&&(e.style.display=this.showAll?"flex":"none")})}constructor(){super(),this.showAll=!1,this.mobileRows=this.mobileRows===void 0?5:this.mobileRows}toggle(){this.showAll=!this.showAll,this.dispatchEvent(new CustomEvent("hide-see-more-elements",{bubbles:!0,composed:!0})),this.requestUpdate()}render(){return ee` + `),d(yt,"properties",{description:{type:String,attribute:!0}});customElements.define("merch-mnemonic-list",yt);import{html as re,css as wr,LitElement as Sr}from"../lit-all.min.js";var Et=class extends Sr{updated(){this.hideSeeMoreEls()}hideSeeMoreEls(){this.isMobile&&this.rows.forEach((e,t)=>{t>=5&&(e.style.display=this.showAll?"flex":"none")})}constructor(){super(),this.showAll=!1,this.mobileRows=this.mobileRows===void 0?5:this.mobileRows}toggle(){this.showAll=!this.showAll,this.dispatchEvent(new CustomEvent("hide-see-more-elements",{bubbles:!0,composed:!0})),this.requestUpdate()}render(){return re` - ${this.isMobile&&this.rows.length>this.mobileRows?ee`
+ ${this.isMobile&&this.rows.length>this.mobileRows?re`
${this.showAll?"- See less":"+ See more"} -
`:ee``}`}get isMobile(){return window.matchMedia("(max-width: 767px)").matches}get rows(){return this.querySelectorAll("merch-mnemonic-list")}};d(Et,"styles",yr` +
`:re``}`}get isMobile(){return window.matchMedia("(max-width: 767px)").matches}get rows(){return this.querySelectorAll("merch-mnemonic-list")}};d(Et,"styles",wr` :host { display: flex; flex-wrap: wrap; @@ -2427,4 +2427,4 @@ Caused by: ${this.cause}`),t}};var pr={requestId:Tt,etag:"Etag",lastModified:"La text-decoration: underline; color: var(--link-color-dark); } - `),d(Et,"properties",{heading:{type:String,attribute:!0},mobileRows:{type:Number,attribute:!0}});customElements.define("merch-whats-included",Et);function wr(o){return`https://${o==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var wt,H=class H extends HTMLAnchorElement{constructor(){super();m(this,wt,!1);this.setAttribute("is",H.is)}get isUptLink(){return!0}initializeWcsData(t,r){this.setAttribute("data-wcs-osi",t),r&&this.setAttribute("data-promotion-code",r),h(this,wt,!0),this.composePromoTermsUrl()}attributeChangedCallback(t,r,n){c(this,wt)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let t=this.getAttribute("data-wcs-osi");if(!t){let b=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${b}`);return}let r=X(),n=[t],a=this.getAttribute("data-promotion-code"),{country:i,language:s,env:l}=r.settings,p={country:i,language:s,wcsOsi:n,promotionCode:a},y=r.resolveOfferSelectors(p);Promise.all(y).then(([[b]])=>{let k=`locale=${s}_${i}&country=${i}&offer_id=${b.offerId}`;a&&(k+=`&promotion_code=${encodeURIComponent(a)}`),this.href=`${wr(l)}?${k}`}).catch(b=>{console.error(`Could not resolve offer selectors for id: ${t}.`,b.message)})}static createFrom(t){let r=new H;for(let n of t.attributes)n.name!=="is"&&(n.name==="class"&&n.value.includes("upt-link")?r.setAttribute("class",n.value.replace("upt-link","").trim()):r.setAttribute(n.name,n.value));return r.innerHTML=t.innerHTML,r.setAttribute("tabindex",0),r}};wt=new WeakMap,d(H,"is","upt-link"),d(H,"tag","a"),d(H,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var D=H;window.customElements.get(D.is)||window.customElements.define(D.is,D,{extends:D.tag});var Sr="#000000",re="#F8D904",Ar="#EAEAEA",Tr="#31A547",kr=/(accent|primary|secondary)(-(outline|link))?/,Cr="mas:product_code/",_r="daa-ll",It="daa-lh",Lr=["XL","L","M","S"],oe="...";function L(o,e,t,r){let n=r[o];if(e[o]&&n){let a={slot:n?.slot},i=e[o];if(n.maxCount&&typeof i=="string"){let[l,p]=jr(i,n.maxCount,n.withSuffix);l!==i&&(a.title=p,i=l)}let s=E(n.tag,a,i);t.append(s)}}function Rr(o,e,t){let r=o.mnemonicIcon?.map((a,i)=>({icon:a,alt:o.mnemonicAlt[i]??"",link:o.mnemonicLink[i]??""}));r?.forEach(({icon:a,alt:i,link:s})=>{if(s&&!/^https?:/.test(s))try{s=new URL(`https://${s}`).href.toString()}catch{s="#"}let l={slot:"icons",src:a,loading:e.loading,size:t?.size??"l"};i&&(l.alt=i),s&&(l.href=s);let p=E("merch-icon",l);e.append(p)});let n=e.shadowRoot.querySelector('slot[name="icons"]');!r?.length&&n&&n.remove()}function Mr(o,e,t){if(t.badge?.slot){if(o.badge?.length&&!o.badge?.startsWith("${o.badge}`}L("badge",o,e,t)}else o.badge?(e.setAttribute("badge-text",o.badge),e.setAttribute("badge-color",o.badgeColor||Sr),e.setAttribute("badge-background-color",o.badgeBackgroundColor||re),e.setAttribute("border-color",o.badgeBackgroundColor||re)):e.setAttribute("border-color",o.borderColor||Ar)}function Pr(o,e,t){if(t.trialBadge&&o.trialBadge){if(!o.trialBadge.startsWith("${o.trialBadge}`}L("trialBadge",o,e,t)}}function Nr(o,e,t){t?.includes(o.size)&&e.setAttribute("size",o.size)}function zr(o,e,t){L("cardTitle",o,e,{cardTitle:t})}function Or(o,e,t){L("subtitle",o,e,t)}function $r(o,e,t,r){if(!o.backgroundColor||o.backgroundColor.toLowerCase()==="default"){e.style.removeProperty("--merch-card-custom-background-color"),e.removeAttribute("background-color");return}t?.[o.backgroundColor]?(e.style.setProperty("--merch-card-custom-background-color",`var(${t[o.backgroundColor]})`),e.setAttribute("background-color",o.backgroundColor)):r?.attribute&&o.backgroundColor&&(e.setAttribute(r.attribute,o.backgroundColor),e.style.removeProperty("--merch-card-custom-background-color"))}function Ir(o,e,t){let r=t?.borderColor,n="--merch-card-custom-border-color";o.borderColor?.toLowerCase()==="transparent"?(e.style.removeProperty(n),t?.allowedBorderColors?.includes(t?.badge?.default)&&e.style.setProperty(n,"transparent")):o.borderColor&&r&&(/-gradient/.test(o.borderColor)?(e.setAttribute("gradient-border","true"),e.style.removeProperty(n)):e.style.setProperty(n,`var(--${o.borderColor})`))}function Dr(o,e,t){if(o.backgroundImage){let r={loading:e.loading??"lazy",src:o.backgroundImage};if(o.backgroundImageAltText?r.alt=o.backgroundImageAltText:r.role="none",!t)return;if(t?.attribute){e.setAttribute(t.attribute,o.backgroundImage);return}e.append(E(t.tag,{slot:t.slot},E("img",r)))}}function Fr(o,e,t){L("prices",o,e,t)}function Ve(o,e,t){let r=o.hasAttribute("data-wcs-osi")&&!!o.getAttribute("data-wcs-osi"),n=o.className||"",a=kr.exec(n)?.[0]??"accent",i=a.includes("accent"),s=a.includes("primary"),l=a.includes("secondary"),p=a.includes("-outline"),y=a.includes("-link");o.classList.remove("accent","primary","secondary");let b;if(e.consonant)b=Wr(o,i,r,y);else if(y)b=o;else{let k;i?k="accent":s?k="primary":l&&(k="secondary"),b=e.spectrum==="swc"?Kr(o,t,p,k,r):Yr(o,t,p,k,r)}return b}function Br(o,e){let{slot:t}=e?.description,r=o.querySelectorAll(`[slot="${t}"] a[data-wcs-osi]`);r.length&&r.forEach(n=>{let a=Ve(n,o,e);n.replaceWith(a)})}function Hr(o,e,t){L("promoText",o,e,t),L("description",o,e,t),Br(e,t),L("callout",o,e,t),L("quantitySelect",o,e,t),L("whatsIncluded",o,e,t)}function Ur(o,e,t){if(!t.addon)return;let r=o.addon?.replace(/[{}]/g,"");if(!r||/disabled/.test(r))return;let n=E("merch-addon",{slot:"addon"},r);[...n.querySelectorAll(v)].forEach(a=>{let i=a.parentElement;i?.nodeName==="P"&&i.setAttribute("data-plan-type","")}),e.append(n)}function qr(o,e,t){o.addonConfirmation&&L("addonConfirmation",o,e,t)}function Gr(o,e,t,r){r?.secureLabel&&t?.secureLabel&&e.setAttribute("secure-label",r.secureLabel)}function jr(o,e,t=!0){try{let r=typeof o!="string"?"":o,n=je(r);if(n.length<=e)return[r,n];let a=0,i=!1,s=t?e-oe.length<1?1:e-oe.length:e,l=[];for(let b of r){if(a++,b==="<")if(i=!0,r[a]==="/")l.pop();else{let k="";for(let Dt of r.substring(a)){if(Dt===" "||Dt===">")break;k+=Dt}l.push(k)}if(b==="/"&&r[a]===">"&&l.pop(),b===">"){i=!1;continue}if(!i&&(s--,s===0))break}let p=r.substring(0,a).trim();if(l.length>0){l[0]==="p"&&l.shift();for(let b of l.reverse())p+=``}return[`${p}${t?oe:""}`,n]}catch{let n=typeof o=="string"?o:"",a=je(n);return[n,a]}}function je(o){if(!o)return"";let e="",t=!1;for(let r of o){if(r==="<"&&(t=!0),r===">"){t=!1;continue}t||(e+=r)}return e}function Vr(o,e){e.querySelectorAll("a.upt-link").forEach(r=>{let n=D.createFrom(r);r.replaceWith(n),n.initializeWcsData(o.osi,o.promoCode)})}function Yr(o,e,t,r,n){let a=o;n?a=customElements.get("checkout-button").createCheckoutButton({},o.innerHTML):a.innerHTML=`${a.textContent}`,a.setAttribute("tabindex",0);for(let y of o.attributes)["class","is"].includes(y.name)||a.setAttribute(y.name,y.value);a.firstElementChild?.classList.add("spectrum-Button-label");let i=e?.ctas?.size??"M",s=`spectrum-Button--${r}`,l=Lr.includes(i)?`spectrum-Button--size${i}`:"spectrum-Button--sizeM",p=["spectrum-Button",s,l];return t&&p.push("spectrum-Button--outline"),a.classList.add(...p),a}function Kr(o,e,t,r,n){let a=o;n&&(a=customElements.get("checkout-button").createCheckoutButton(o.dataset),a.connectedCallback(),a.render());let i="fill";t&&(i="outline");let s=E("sp-button",{treatment:i,variant:r,tabIndex:0,size:e?.ctas?.size??"m",...o.dataset.analyticsId&&{"data-analytics-id":o.dataset.analyticsId}},o.innerHTML);return s.source=a,(n?a.onceSettled():Promise.resolve(a)).then(l=>{s.setAttribute("data-navigation-url",l.href)}),s.addEventListener("click",l=>{l.defaultPrevented||a.click()}),s}function Wr(o,e,t,r){let n=o;return t&&(n=customElements.get("checkout-link").createCheckoutLink(o.dataset,o.innerHTML)),r||(n.classList.add("con-button"),e&&n.classList.add("blue")),n}function Qr(o,e,t,r){if(o.ctas){let{slot:n}=t.ctas,a=E("div",{slot:n},o.ctas),i=[...a.querySelectorAll("a")].map(s=>Ve(s,e,t));a.innerHTML="",a.append(...i),e.append(a)}}function Xr(o,e){let{tags:t}=o,r=t?.find(a=>a.startsWith(Cr))?.split("/").pop();if(!r)return;e.setAttribute(It,r),[...e.shadowRoot.querySelectorAll("a[data-analytics-id],button[data-analytics-id]"),...e.querySelectorAll("a[data-analytics-id],button[data-analytics-id]")].forEach((a,i)=>{a.setAttribute(_r,`${a.dataset.analyticsId}-${i+1}`)})}function Zr(o){o.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([e,t])=>{o.querySelectorAll(`a.${e}`).forEach(r=>{r.classList.remove(e),r.classList.add("spectrum-Link",`spectrum-Link--${t}`)})})}function Jr(o){o.querySelectorAll("[slot]").forEach(r=>{r.remove()}),o.variant=void 0,["checkbox-label","stock-offer-osis","secure-label","background-image","background-color","border-color","badge-background-color","badge-color","badge-text","gradient-border","size",It].forEach(r=>o.removeAttribute(r));let t=["wide-strip","thin-strip"];o.classList.remove(...t)}async function Ye(o,e){if(!o){let s=e?.id||"unknown";throw console.error(`hydrate: Fragment is undefined. Cannot hydrate card (merchCard id: ${s}).`),new Error(`hydrate: Fragment is undefined for card (merchCard id: ${s}).`)}if(!o.fields){let s=o.id||"unknown",l=e?.id||"unknown";throw console.error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${l}) is missing 'fields'. Cannot hydrate.`),new Error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${l}) is missing 'fields'.`)}let{id:t,fields:r,settings:n={}}=o,{variant:a}=r;if(!a)throw new Error(`hydrate: no variant found in payload ${t}`);Jr(e),e.settings=n,e.id??(e.id=o.id),e.variant=a,await e.updateComplete;let{aemFragmentMapping:i}=e.variantLayout;if(!i)throw new Error(`hydrate: variant mapping not found for ${t}`);i.style==="consonant"&&e.setAttribute("consonant",!0),Rr(r,e,i.mnemonics),Mr(r,e,i),Pr(r,e,i),Nr(r,e,i.size),zr(r,e,i.title),Or(r,e,i),Fr(r,e,i),Dr(r,e,i.backgroundImage),$r(r,e,i.allowedColors,i.backgroundColor),Ir(r,e,i),Hr(r,e,i),Ur(r,e,i),qr(r,e,i),Gr(r,e,i,n),Vr(r,e),Qr(r,e,i,a),Xr(r,e),Zr(e)}var ae="merch-card",ne=2e4,Ke="merch-card:";function We(o,e){let t=o.closest(ae);if(!t)return e;t.variantLayout?.priceOptionsProvider?.(o,e)}function eo(o){o.providers.has(We)||o.providers.price(We)}var ro=0,lt,ht,St,$,G,I,q,U=class extends to{constructor(){super();m(this,I);m(this,lt);m(this,ht);m(this,St);m(this,$);m(this,G);d(this,"customerSegment");d(this,"marketSegment");d(this,"variantLayout");this.id=null,this.failed=!1,this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.loading="lazy",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this),this.handleMerchOfferSelectReady=this.handleMerchOfferSelectReady.bind(this)}firstUpdated(){this.variantLayout=Wt(this,!1),this.variantLayout?.connectedCallbackHook()}willUpdate(t){(t.has("variant")||!this.variantLayout)&&(this.variantLayout=Wt(this),this.variantLayout.connectedCallbackHook())}updated(t){(t.has("badgeBackgroundColor")||t.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),t.has("backgroundColor")&&this.style.setProperty("--merch-card-custom-background-color",this.backgroundColor?`var(--${this.backgroundColor})`:"");try{this.variantLayout?.postCardUpdateHook(t)}catch(r){w(this,I,q).call(this,`Error in postCardUpdateHook: ${r.message}`,{},!1)}}get theme(){return this.closest("sp-theme")}get dir(){return this.closest("[dir]")?.getAttribute("dir")??"ltr"}get prices(){return Array.from(this.querySelectorAll('span[is="inline-price"][data-wcs-osi]'))}render(){if(!(!this.isConnected||!this.variantLayout||this.style.display==="none"))return this.variantLayout.renderLayout()}get computedBorderStyle(){return["ccd-slice","ccd-suggested","ah-promoted-plans"].includes(this.variant)?"":`1px solid ${this.borderColor?this.borderColor:this.badgeBackgroundColor}`}get badgeElement(){return this.shadowRoot.getElementById("badge")}get headingmMSlot(){return this.shadowRoot.querySelector('slot[name="heading-m"]').assignedElements()[0]}get footerSlot(){return this.shadowRoot.querySelector('slot[name="footer"]')?.assignedElements()[0]}get descriptionSlot(){return this.shadowRoot.querySelector('slot[name="body-xs"')?.assignedElements()[0]}get descriptionSlotCompare(){return this.shadowRoot.querySelector('slot[name="body-m"')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector(v)}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll(V)??[]]}get checkoutLinksDescription(){return[...this.descriptionSlot?.querySelectorAll(V)??[]]}get checkoutLinkDescriptionCompare(){return[...this.descriptionSlotCompare?.querySelectorAll(V)??[]]}get activeDescriptionLinks(){return this.variant==="mini-compare-chart"?this.checkoutLinkDescriptionCompare:this.checkoutLinksDescription}async toggleStockOffer({target:t}){if(!this.stockOfferOsis)return;let r=this.checkoutLinks;if(r.length!==0)for(let n of r){await n.onceSettled();let a=n.value?.[0]?.planType;if(!a)return;let i=this.stockOfferOsis[a];if(!i)return;let s=n.dataset.wcsOsi.split(",").filter(l=>l!==i);t.checked&&s.push(i),n.dataset.wcsOsi=s.join(",")}}changeHandler(t){t.target.tagName==="MERCH-ADDON"&&this.toggleAddon(t.target)}toggleAddon(t){this.variantLayout?.toggleAddon?.(t);let r=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(r.length===0)return;let n=a=>{let{offerType:i,planType:s}=a.value?.[0]??{};if(!i||!s)return;let l=t.getOsi(s,i),p=(a.dataset.wcsOsi||"").split(",").filter(y=>y&&y!==l);t.checked&&p.push(l),a.dataset.wcsOsi=p.join(",")};r.forEach(n)}handleQuantitySelection(t){let r=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(r.length!==0)for(let n of r)n.dataset.quantity=t.detail.option}get titleElement(){return this.querySelector(this.variantLayout?.headingSelector||".card-heading")}get title(){return this.titleElement?.textContent?.trim()}get description(){return this.querySelector('[slot="body-xs"]')?.textContent?.trim()}updateFilters(t){let r={...this.filters};Object.keys(r).forEach(n=>{if(t){r[n].order=Math.min(r[n].order||2,2);return}let a=r[n].order;a===1||isNaN(a)||(r[n].order=Number(a)+1)}),this.filters=r}includes(t){return this.textContent.match(new RegExp(t,"i"))!==null}connectedCallback(){super.connectedCallback(),c(this,ht)||h(this,ht,ro++),this.id??(this.id=this.getAttribute("id")??this.aemFragment?.getAttribute("fragment"));let t=this.id??c(this,ht);h(this,G,`${Ke}${t}${kt}`),h(this,lt,`${Ke}${t}${Ct}`),performance.mark(c(this,G)),h(this,$,X()),eo(c(this,$)),h(this,St,c(this,$).Log.module(ae)),this.addEventListener(Bt,this.handleQuantitySelection),this.addEventListener(Ht,this.handleAddonAndQuantityUpdate),this.addEventListener(ge,this.handleMerchOfferSelectReady),this.addEventListener(K,this.handleAemFragmentEvents),this.addEventListener(Y,this.handleAemFragmentEvents),this.addEventListener("change",this.changeHandler),this.aemFragment||setTimeout(()=>this.checkReady(),0)}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(Bt,this.handleQuantitySelection),this.removeEventListener(K,this.handleAemFragmentEvents),this.removeEventListener(Y,this.handleAemFragmentEvents),this.removeEventListener("change",this.changeHandler),this.removeEventListener(Ht,this.handleAddonAndQuantityUpdate)}async handleAemFragmentEvents(t){if(this.isConnected&&(t.type===K&&w(this,I,q).call(this,"AEM fragment cannot be loaded"),t.type===Y&&(this.failed=!1,t.target.nodeName==="AEM-FRAGMENT"))){let r=t.detail;try{await Ye(r,this)}catch(n){w(this,I,q).call(this,`hydration has failed: ${n.message}`)}this.checkReady()}}async checkReady(){if(!this.isConnected)return;let t=new Promise(i=>setTimeout(()=>i("timeout"),ne));if(this.aemFragment){let i=await Promise.race([this.aemFragment.updateComplete,t]);if(i===!1||i==="timeout"){let s=i==="timeout"?`AEM fragment was not resolved within ${ne} timeout`:"AEM fragment cannot be loaded";w(this,I,q).call(this,s,{},!1);return}}let r=[...this.querySelectorAll(pe)],n=Promise.all(r.map(i=>i.onceSettled().catch(()=>i))).then(i=>i.every(s=>s.classList.contains("placeholder-resolved"))),a=await Promise.race([n,t]);if(a===!0){this.measure=performance.measure(c(this,lt),c(this,G));let i={...this.aemFragment?.fetchInfo,...c(this,$).duration,measure:Q(this.measure)};return this.dispatchEvent(new CustomEvent(xe,{bubbles:!0,composed:!0,detail:i})),this}else{this.measure=performance.measure(c(this,lt),c(this,G));let i={measure:Q(this.measure),...c(this,$).duration};a==="timeout"?w(this,I,q).call(this,`Contains offers that were not resolved within ${ne} timeout`,i):w(this,I,q).call(this,"Contains unresolved offers",i)}}get aemFragment(){return this.querySelector("aem-fragment")}get addon(){return this.querySelector("merch-addon")}get quantitySelect(){return this.querySelector("merch-quantity-select")}get addonCheckbox(){return this.querySelector("merch-addon")}displayFooterElementsInColumn(){if(!this.classList.contains("product"))return;let t=this.shadowRoot.querySelector(".secure-transaction-label");(this.footerSlot?.querySelectorAll(V)).length===2&&t&&t.parentElement.classList.add("footer-column")}handleMerchOfferSelectReady(){this.offerSelect&&!this.offerSelect.planType||this.displayFooterElementsInColumn()}get dynamicPrice(){return this.querySelector('[slot="price"]')}handleAddonAndQuantityUpdate({detail:{id:t,items:r}}){if(!t||!r?.length)return;let n=this.checkoutLinks.find(p=>p.getAttribute("data-modal-id")===t);if(!n)return;let i=new URL(n.getAttribute("href")).searchParams.get("pa"),s=r.find(p=>p.productArrangementCode===i)?.quantity,l=!!r.find(p=>p.productArrangementCode!==i);if(s&&this.quantitySelect?.dispatchEvent(new CustomEvent(fe,{detail:{quantity:s},bubbles:!0,composed:!0})),this.addonCheckbox&&this.addonCheckbox.checked!==l){this.toggleStockOffer({target:this.addonCheckbox});let p=new Event("change",{bubbles:!0,cancelable:!0});Object.defineProperty(p,"target",{writable:!1,value:{checked:l}}),this.addonCheckbox.handleChange(p)}}};lt=new WeakMap,ht=new WeakMap,St=new WeakMap,$=new WeakMap,G=new WeakMap,I=new WeakSet,q=function(t,r={},n=!0){if(!this.isConnected)return;let i=this.aemFragment?.getAttribute("fragment");i=`[${i}]`;let s={...this.aemFragment.fetchInfo,...c(this,$).duration,...r,message:t};c(this,St).error(`merch-card${i}: ${t}`,s),this.failed=!0,n&&this.dispatchEvent(new CustomEvent(be,{bubbles:!0,composed:!0,detail:s}))},d(U,"properties",{id:{type:String,attribute:"id",reflect:!0},name:{type:String,attribute:"name",reflect:!0},variant:{type:String,reflect:!0},size:{type:String,attribute:"size",reflect:!0},badgeColor:{type:String,attribute:"badge-color",reflect:!0},borderColor:{type:String,attribute:"border-color",reflect:!0},backgroundColor:{type:String,attribute:"background-color",reflect:!0},badgeBackgroundColor:{type:String,attribute:"badge-background-color",reflect:!0},backgroundImage:{type:String,attribute:"background-image",reflect:!0},badgeText:{type:String,attribute:"badge-text"},actionMenu:{type:Boolean,attribute:"action-menu"},actionMenuLabel:{type:String,attribute:"action-menu-label"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},failed:{type:Boolean,attribute:"failed",reflect:!0},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},addonTitle:{type:String,attribute:"addon-title"},addonOffers:{type:Object,attribute:"addon-offers"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},planType:{type:String,attribute:"plan-type",reflect:!0},settings:{type:Object,attribute:!1},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:t=>{if(!t)return;let[r,n,a]=t.split(",");return{PUF:r,ABM:n,M2M:a}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:t=>Object.fromEntries(t.split(",").map(r=>{let[n,a,i]=r.split(":"),s=Number(a);return[n,{order:isNaN(s)?void 0:s,size:i}]})),toAttribute:t=>Object.entries(t).map(([r,{order:n,size:a}])=>[r,n,a].filter(i=>i!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:It,reflect:!0},loading:{type:String}}),d(U,"styles",[le,...he()]),d(U,"registerVariant",A),d(U,"getFragmentMapping",Mt);customElements.define(ae,U);export{U as MerchCard}; + `),d(Et,"properties",{heading:{type:String,attribute:!0},mobileRows:{type:Number,attribute:!0}});customElements.define("merch-whats-included",Et);function Ar(o){return`https://${o==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var wt,H=class H extends HTMLAnchorElement{constructor(){super();m(this,wt,!1);this.setAttribute("is",H.is)}get isUptLink(){return!0}initializeWcsData(t,r){this.setAttribute("data-wcs-osi",t),r&&this.setAttribute("data-promotion-code",r),h(this,wt,!0),this.composePromoTermsUrl()}attributeChangedCallback(t,r,n){c(this,wt)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let t=this.getAttribute("data-wcs-osi");if(!t){let b=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${b}`);return}let r=X(),n=[t],a=this.getAttribute("data-promotion-code"),{country:i,language:s,env:l}=r.settings,p={country:i,language:s,wcsOsi:n,promotionCode:a},y=r.resolveOfferSelectors(p);Promise.all(y).then(([[b]])=>{let C=`locale=${s}_${i}&country=${i}&offer_id=${b.offerId}`;a&&(C+=`&promotion_code=${encodeURIComponent(a)}`),this.href=`${Ar(l)}?${C}`}).catch(b=>{console.error(`Could not resolve offer selectors for id: ${t}.`,b.message)})}static createFrom(t){let r=new H;for(let n of t.attributes)n.name!=="is"&&(n.name==="class"&&n.value.includes("upt-link")?r.setAttribute("class",n.value.replace("upt-link","").trim()):r.setAttribute(n.name,n.value));return r.innerHTML=t.innerHTML,r.setAttribute("tabindex",0),r}};wt=new WeakMap,d(H,"is","upt-link"),d(H,"tag","a"),d(H,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var D=H;window.customElements.get(D.is)||window.customElements.define(D.is,D,{extends:D.tag});var Tr="#000000",oe="#F8D904",Cr="#EAEAEA",kr="#31A547",_r=/(accent|primary|secondary)(-(outline|link))?/,Lr="mas:product_code/",Rr="daa-ll",It="daa-lh",Pr=["XL","L","M","S"],ne="...";function L(o,e,t,r){let n=r[o];if(e[o]&&n){let a={slot:n?.slot},i=e[o];if(n.maxCount&&typeof i=="string"){let[l,p]=Yr(i,n.maxCount,n.withSuffix);l!==i&&(a.title=p,i=l)}let s=E(n.tag,a,i);t.append(s)}}function Mr(o,e,t){let r=o.mnemonicIcon?.map((a,i)=>({icon:a,alt:o.mnemonicAlt[i]??"",link:o.mnemonicLink[i]??""}));r?.forEach(({icon:a,alt:i,link:s})=>{if(s&&!/^https?:/.test(s))try{s=new URL(`https://${s}`).href.toString()}catch{s="#"}let l={slot:"icons",src:a,loading:e.loading,size:t?.size??"l"};i&&(l.alt=i),s&&(l.href=s);let p=E("merch-icon",l);e.append(p)});let n=e.shadowRoot.querySelector('slot[name="icons"]');!r?.length&&n&&n.remove()}function Nr(o,e,t){if(t.badge?.slot){if(o.badge?.length&&!o.badge?.startsWith("${o.badge}`}L("badge",o,e,t)}else o.badge?(e.setAttribute("badge-text",o.badge),e.setAttribute("badge-color",o.badgeColor||Tr),e.setAttribute("badge-background-color",o.badgeBackgroundColor||oe),e.setAttribute("border-color",o.badgeBackgroundColor||oe)):e.setAttribute("border-color",o.borderColor||Cr)}function Or(o,e,t){if(t.trialBadge&&o.trialBadge){if(!o.trialBadge.startsWith("${o.trialBadge}`}L("trialBadge",o,e,t)}}function zr(o,e,t){t?.includes(o.size)&&e.setAttribute("size",o.size)}function $r(o,e,t){L("cardTitle",o,e,{cardTitle:t})}function Ir(o,e,t){L("subtitle",o,e,t)}function Dr(o,e,t,r){if(!o.backgroundColor||o.backgroundColor.toLowerCase()==="default"){e.style.removeProperty("--merch-card-custom-background-color"),e.removeAttribute("background-color");return}t?.[o.backgroundColor]?(e.style.setProperty("--merch-card-custom-background-color",`var(${t[o.backgroundColor]})`),e.setAttribute("background-color",o.backgroundColor)):r?.attribute&&o.backgroundColor&&(e.setAttribute(r.attribute,o.backgroundColor),e.style.removeProperty("--merch-card-custom-background-color"))}function Br(o,e,t){let r=t?.borderColor,n="--merch-card-custom-border-color";o.borderColor?.toLowerCase()==="transparent"?(e.style.removeProperty(n),t?.allowedBorderColors?.includes(t?.badge?.default)&&e.style.setProperty(n,"transparent")):o.borderColor&&r&&(/-gradient/.test(o.borderColor)?(e.setAttribute("gradient-border","true"),e.style.removeProperty(n)):e.style.setProperty(n,`var(--${o.borderColor})`))}function Fr(o,e,t){if(o.backgroundImage){let r={loading:e.loading??"lazy",src:o.backgroundImage};if(o.backgroundImageAltText?r.alt=o.backgroundImageAltText:r.role="none",!t)return;if(t?.attribute){e.setAttribute(t.attribute,o.backgroundImage);return}e.append(E(t.tag,{slot:t.slot},E("img",r)))}}function Hr(o,e,t){L("prices",o,e,t)}function Ye(o,e,t){let r=o.hasAttribute("data-wcs-osi")&&!!o.getAttribute("data-wcs-osi"),n=o.className||"",a=_r.exec(n)?.[0]??"accent",i=a.includes("accent"),s=a.includes("primary"),l=a.includes("secondary"),p=a.includes("-outline"),y=a.includes("-link");o.classList.remove("accent","primary","secondary");let b;if(e.consonant)b=Xr(o,i,r,y);else if(y)b=o;else{let C;i?C="accent":s?C="primary":l&&(C="secondary"),b=e.spectrum==="swc"?Qr(o,t,p,C,r):Wr(o,t,p,C,r)}return b}function Ur(o,e){let{slot:t}=e?.description,r=o.querySelectorAll(`[slot="${t}"] a[data-wcs-osi]`);r.length&&r.forEach(n=>{let a=Ye(n,o,e);n.replaceWith(a)})}function qr(o,e,t){L("promoText",o,e,t),L("description",o,e,t),Ur(e,t),L("callout",o,e,t),L("quantitySelect",o,e,t),L("whatsIncluded",o,e,t)}function Gr(o,e,t){if(!t.addon)return;let r=o.addon?.replace(/[{}]/g,"");if(!r||/disabled/.test(r))return;let n=E("merch-addon",{slot:"addon"},r);[...n.querySelectorAll(v)].forEach(a=>{let i=a.parentElement;i?.nodeName==="P"&&i.setAttribute("data-plan-type","")}),e.append(n)}function jr(o,e,t){o.addonConfirmation&&L("addonConfirmation",o,e,t)}function Vr(o,e,t,r){r?.secureLabel&&t?.secureLabel&&e.setAttribute("secure-label",r.secureLabel)}function Yr(o,e,t=!0){try{let r=typeof o!="string"?"":o,n=Ve(r);if(n.length<=e)return[r,n];let a=0,i=!1,s=t?e-ne.length<1?1:e-ne.length:e,l=[];for(let b of r){if(a++,b==="<")if(i=!0,r[a]==="/")l.pop();else{let C="";for(let Bt of r.substring(a)){if(Bt===" "||Bt===">")break;C+=Bt}l.push(C)}if(b==="/"&&r[a]===">"&&l.pop(),b===">"){i=!1;continue}if(!i&&(s--,s===0))break}let p=r.substring(0,a).trim();if(l.length>0){l[0]==="p"&&l.shift();for(let b of l.reverse())p+=``}return[`${p}${t?ne:""}`,n]}catch{let n=typeof o=="string"?o:"",a=Ve(n);return[n,a]}}function Ve(o){if(!o)return"";let e="",t=!1;for(let r of o){if(r==="<"&&(t=!0),r===">"){t=!1;continue}t||(e+=r)}return e}function Kr(o,e){e.querySelectorAll("a.upt-link").forEach(r=>{let n=D.createFrom(r);r.replaceWith(n),n.initializeWcsData(o.osi,o.promoCode)})}function Wr(o,e,t,r,n){let a=o;n?a=customElements.get("checkout-button").createCheckoutButton({},o.innerHTML):a.innerHTML=`${a.textContent}`,a.setAttribute("tabindex",0);for(let y of o.attributes)["class","is"].includes(y.name)||a.setAttribute(y.name,y.value);a.firstElementChild?.classList.add("spectrum-Button-label");let i=e?.ctas?.size??"M",s=`spectrum-Button--${r}`,l=Pr.includes(i)?`spectrum-Button--size${i}`:"spectrum-Button--sizeM",p=["spectrum-Button",s,l];return t&&p.push("spectrum-Button--outline"),a.classList.add(...p),a}function Qr(o,e,t,r,n){let a=o;n&&(a=customElements.get("checkout-button").createCheckoutButton(o.dataset),a.connectedCallback(),a.render());let i="fill";t&&(i="outline");let s=E("sp-button",{treatment:i,variant:r,tabIndex:0,size:e?.ctas?.size??"m",...o.dataset.analyticsId&&{"data-analytics-id":o.dataset.analyticsId}},o.innerHTML);return s.source=a,(n?a.onceSettled():Promise.resolve(a)).then(l=>{s.setAttribute("data-navigation-url",l.href)}),s.addEventListener("click",l=>{l.defaultPrevented||a.click()}),s}function Xr(o,e,t,r){let n=o;return t&&(n=customElements.get("checkout-link").createCheckoutLink(o.dataset,o.innerHTML)),r||(n.classList.add("con-button"),e&&n.classList.add("blue")),n}function Zr(o,e,t,r){if(o.ctas){let{slot:n}=t.ctas,a=E("div",{slot:n},o.ctas),i=[...a.querySelectorAll("a")].map(s=>Ye(s,e,t));a.innerHTML="",a.append(...i),e.append(a)}}function Jr(o,e){let{tags:t}=o,r=t?.find(a=>a.startsWith(Lr))?.split("/").pop();if(!r)return;e.setAttribute(It,r),[...e.shadowRoot.querySelectorAll("a[data-analytics-id],button[data-analytics-id]"),...e.querySelectorAll("a[data-analytics-id],button[data-analytics-id]")].forEach((a,i)=>{a.setAttribute(Rr,`${a.dataset.analyticsId}-${i+1}`)})}function to(o){o.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([e,t])=>{o.querySelectorAll(`a.${e}`).forEach(r=>{r.classList.remove(e),r.classList.add("spectrum-Link",`spectrum-Link--${t}`)})})}function eo(o){o.querySelectorAll("[slot]").forEach(r=>{r.remove()}),o.variant=void 0,["checkbox-label","stock-offer-osis","secure-label","background-image","background-color","border-color","badge-background-color","badge-color","badge-text","gradient-border","size",It].forEach(r=>o.removeAttribute(r));let t=["wide-strip","thin-strip"];o.classList.remove(...t)}async function Ke(o,e){if(!o){let s=e?.id||"unknown";throw console.error(`hydrate: Fragment is undefined. Cannot hydrate card (merchCard id: ${s}).`),new Error(`hydrate: Fragment is undefined for card (merchCard id: ${s}).`)}if(!o.fields){let s=o.id||"unknown",l=e?.id||"unknown";throw console.error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${l}) is missing 'fields'. Cannot hydrate.`),new Error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${l}) is missing 'fields'.`)}let{id:t,fields:r,settings:n={}}=o,{variant:a}=r;if(!a)throw new Error(`hydrate: no variant found in payload ${t}`);eo(e),e.settings=n,e.id??(e.id=o.id),e.variant=a,await e.updateComplete;let{aemFragmentMapping:i}=e.variantLayout;if(!i)throw new Error(`hydrate: variant mapping not found for ${t}`);i.style==="consonant"&&e.setAttribute("consonant",!0),Mr(r,e,i.mnemonics),Nr(r,e,i),Or(r,e,i),zr(r,e,i.size),$r(r,e,i.title),Ir(r,e,i),Hr(r,e,i),Fr(r,e,i.backgroundImage),Dr(r,e,i.allowedColors,i.backgroundColor),Br(r,e,i),qr(r,e,i),Gr(r,e,i),jr(r,e,i),Vr(r,e,i,n),Kr(r,e),Zr(r,e,i,a),Jr(r,e),to(e)}var ie="merch-card",ae=2e4,We="merch-card:",Dt="data-promotion-code",Qe="data-promotion-code-na";function Xe(o,e){let t=o.closest(ie);if(!t)return e;t.variantLayout?.priceOptionsProvider?.(o,e)}function oo(o){o.providers.has(Xe)||o.providers.price(Xe)}var no=0,lt,ht,St,R,G,I,q,U=class extends ro{constructor(){super();m(this,I);m(this,lt);m(this,ht);m(this,St);m(this,R);m(this,G);d(this,"customerSegment");d(this,"marketSegment");d(this,"variantLayout");d(this,"quantityBasedPromo");this.id=null,this.failed=!1,this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.loading="lazy",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this),this.handleMerchOfferSelectReady=this.handleMerchOfferSelectReady.bind(this)}firstUpdated(){this.variantLayout=Qt(this,!1),this.variantLayout?.connectedCallbackHook()}willUpdate(t){(t.has("variant")||!this.variantLayout)&&(this.variantLayout=Qt(this),this.variantLayout.connectedCallbackHook())}updated(t){(t.has("badgeBackgroundColor")||t.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),t.has("backgroundColor")&&this.style.setProperty("--merch-card-custom-background-color",this.backgroundColor?`var(--${this.backgroundColor})`:"");try{this.variantLayout?.postCardUpdateHook(t)}catch(r){w(this,I,q).call(this,`Error in postCardUpdateHook: ${r.message}`,{},!1)}}get theme(){return this.closest("sp-theme")}get dir(){return this.closest("[dir]")?.getAttribute("dir")??"ltr"}get prices(){return Array.from(this.querySelectorAll('span[is="inline-price"][data-wcs-osi]'))}render(){if(!(!this.isConnected||!this.variantLayout||this.style.display==="none"))return this.variantLayout.renderLayout()}get computedBorderStyle(){return["ccd-slice","ccd-suggested","ah-promoted-plans"].includes(this.variant)?"":`1px solid ${this.borderColor?this.borderColor:this.badgeBackgroundColor}`}get badgeElement(){return this.shadowRoot.getElementById("badge")}get headingmMSlot(){return this.shadowRoot.querySelector('slot[name="heading-m"]').assignedElements()[0]}get footerSlot(){return this.shadowRoot.querySelector('slot[name="footer"]')?.assignedElements()[0]}get descriptionSlot(){return this.shadowRoot.querySelector('slot[name="body-xs"')?.assignedElements()[0]}get descriptionSlotCompare(){return this.shadowRoot.querySelector('slot[name="body-m"')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector(v)}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll(V)??[]]}get checkoutLinksDescription(){return[...this.descriptionSlot?.querySelectorAll(V)??[]]}get checkoutLinkDescriptionCompare(){return[...this.descriptionSlotCompare?.querySelectorAll(V)??[]]}get activeDescriptionLinks(){return this.variant==="mini-compare-chart"?this.checkoutLinkDescriptionCompare:this.checkoutLinksDescription}async toggleStockOffer({target:t}){if(!this.stockOfferOsis)return;let r=this.checkoutLinks;if(r.length!==0)for(let n of r){await n.onceSettled();let a=n.value?.[0]?.planType;if(!a)return;let i=this.stockOfferOsis[a];if(!i)return;let s=n.dataset.wcsOsi.split(",").filter(l=>l!==i);t.checked&&s.push(i),n.dataset.wcsOsi=s.join(",")}}changeHandler(t){t.target.tagName==="MERCH-ADDON"&&this.toggleAddon(t.target)}toggleAddon(t){this.variantLayout?.toggleAddon?.(t);let r=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(r.length===0)return;let n=a=>{let{offerType:i,planType:s}=a.value?.[0]??{};if(!i||!s)return;let l=t.getOsi(s,i),p=(a.dataset.wcsOsi||"").split(",").filter(y=>y&&y!==l);t.checked&&p.push(l),a.dataset.wcsOsi=p.join(",")};r.forEach(n)}handleQuantitySelection(t){let r=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(r.length===0)return;for(let a of r)a.dataset.quantity=t.detail.option;if(this.prices.length===0)return;let n=this.prices[0];if(this.quantityBasedPromo?.resolved&&this.quantityBasedPromo?.promotionCode&&n)if(t.detail.option>=this.quantityBasedPromo.minProductQuantity){n.setAttribute(Dt,this.quantityBasedPromo.promotionCode);for(let a of r)a.dataset.promotionCodeNa===this.quantityBasedPromo.promotionCode&&(a.setAttribute(Dt,this.quantityBasedPromo.promotionCode),a.removeAttribute(Qe))}else{n.removeAttribute(Dt);for(let a of r)a.dataset.promotionCode===this.quantityBasedPromo.promotionCode&&(a.setAttribute(Qe,this.quantityBasedPromo.promotionCode),a.removeAttribute(Dt))}}get titleElement(){return this.querySelector(this.variantLayout?.headingSelector||".card-heading")}get title(){return this.titleElement?.textContent?.trim()}get description(){return this.querySelector('[slot="body-xs"]')?.textContent?.trim()}updateFilters(t){let r={...this.filters};Object.keys(r).forEach(n=>{if(t){r[n].order=Math.min(r[n].order||2,2);return}let a=r[n].order;a===1||isNaN(a)||(r[n].order=Number(a)+1)}),this.filters=r}includes(t){return this.textContent.match(new RegExp(t,"i"))!==null}async resolveQuantityBasedPromotions(){if(this.prices.length===0||!this.quantitySelect)return;let t=this.prices[0],r=t.dataset.promotionCode;if(!r)return;let n=t.dataset.wcsOsi,a=c(this,R).collectPriceOptions({},this);a.wcsOsi=[n],a.promotionCode=r;let[i]=await c(this,R).resolveOfferSelectors(a),[s]=await i,l=s?.promotion?.displaySummary?.minProductQuantity||1;this.quantityBasedPromo={promotionCode:r,minProductQuantity:l,resolved:!0},this.handleQuantitySelection({detail:{option:this.quantitySelect.getAttribute("default-value")}})}connectedCallback(){super.connectedCallback(),c(this,ht)||h(this,ht,no++),this.id??(this.id=this.getAttribute("id")??this.aemFragment?.getAttribute("fragment"));let t=this.id??c(this,ht);h(this,G,`${We}${t}${Ct}`),h(this,lt,`${We}${t}${kt}`),performance.mark(c(this,G)),h(this,R,X()),oo(c(this,R)),h(this,St,c(this,R).Log.module(ie)),this.addEventListener(Ht,this.handleQuantitySelection),this.addEventListener(Ut,this.handleAddonAndQuantityUpdate),this.addEventListener(ue,this.handleMerchOfferSelectReady),this.addEventListener(K,this.handleAemFragmentEvents),this.addEventListener(Y,this.handleAemFragmentEvents),this.addEventListener("change",this.changeHandler),this.aemFragment||setTimeout(()=>this.checkReady(),0),this.resolveQuantityBasedPromotions()}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(Ht,this.handleQuantitySelection),this.removeEventListener(K,this.handleAemFragmentEvents),this.removeEventListener(Y,this.handleAemFragmentEvents),this.removeEventListener("change",this.changeHandler),this.removeEventListener(Ut,this.handleAddonAndQuantityUpdate)}async handleAemFragmentEvents(t){if(this.isConnected&&(t.type===K&&w(this,I,q).call(this,"AEM fragment cannot be loaded"),t.type===Y&&(this.failed=!1,t.target.nodeName==="AEM-FRAGMENT"))){let r=t.detail;try{await Ke(r,this)}catch(n){w(this,I,q).call(this,`hydration has failed: ${n.message}`)}this.checkReady()}}async checkReady(){if(!this.isConnected)return;let t=new Promise(i=>setTimeout(()=>i("timeout"),ae));if(this.aemFragment){let i=await Promise.race([this.aemFragment.updateComplete,t]);if(i===!1||i==="timeout"){let s=i==="timeout"?`AEM fragment was not resolved within ${ae} timeout`:"AEM fragment cannot be loaded";w(this,I,q).call(this,s,{},!1);return}}let r=[...this.querySelectorAll(ge)],n=Promise.all(r.map(i=>i.onceSettled().catch(()=>i))).then(i=>i.every(s=>s.classList.contains("placeholder-resolved"))),a=await Promise.race([n,t]);if(a===!0){this.measure=performance.measure(c(this,lt),c(this,G));let i={...this.aemFragment?.fetchInfo,...c(this,R).duration,measure:Q(this.measure)};return this.dispatchEvent(new CustomEvent(be,{bubbles:!0,composed:!0,detail:i})),this}else{this.measure=performance.measure(c(this,lt),c(this,G));let i={measure:Q(this.measure),...c(this,R).duration};a==="timeout"?w(this,I,q).call(this,`Contains offers that were not resolved within ${ae} timeout`,i):w(this,I,q).call(this,"Contains unresolved offers",i)}}get aemFragment(){return this.querySelector("aem-fragment")}get addon(){return this.querySelector("merch-addon")}get quantitySelect(){return this.querySelector("merch-quantity-select")}get addonCheckbox(){return this.querySelector("merch-addon")}displayFooterElementsInColumn(){if(!this.classList.contains("product"))return;let t=this.shadowRoot.querySelector(".secure-transaction-label");(this.footerSlot?.querySelectorAll(V)).length===2&&t&&t.parentElement.classList.add("footer-column")}handleMerchOfferSelectReady(){this.offerSelect&&!this.offerSelect.planType||this.displayFooterElementsInColumn()}get dynamicPrice(){return this.querySelector('[slot="price"]')}handleAddonAndQuantityUpdate({detail:{id:t,items:r}}){if(!t||!r?.length)return;let n=this.checkoutLinks.find(p=>p.getAttribute("data-modal-id")===t);if(!n)return;let i=new URL(n.getAttribute("href")).searchParams.get("pa"),s=r.find(p=>p.productArrangementCode===i)?.quantity,l=!!r.find(p=>p.productArrangementCode!==i);if(s&&this.quantitySelect?.dispatchEvent(new CustomEvent(xe,{detail:{quantity:s},bubbles:!0,composed:!0})),this.addonCheckbox&&this.addonCheckbox.checked!==l){this.toggleStockOffer({target:this.addonCheckbox});let p=new Event("change",{bubbles:!0,cancelable:!0});Object.defineProperty(p,"target",{writable:!1,value:{checked:l}}),this.addonCheckbox.handleChange(p)}}};lt=new WeakMap,ht=new WeakMap,St=new WeakMap,R=new WeakMap,G=new WeakMap,I=new WeakSet,q=function(t,r={},n=!0){if(!this.isConnected)return;let i=this.aemFragment?.getAttribute("fragment");i=`[${i}]`;let s={...this.aemFragment.fetchInfo,...c(this,R).duration,...r,message:t};c(this,St).error(`merch-card${i}: ${t}`,s),this.failed=!0,n&&this.dispatchEvent(new CustomEvent(ve,{bubbles:!0,composed:!0,detail:s}))},d(U,"properties",{id:{type:String,attribute:"id",reflect:!0},name:{type:String,attribute:"name",reflect:!0},variant:{type:String,reflect:!0},size:{type:String,attribute:"size",reflect:!0},badgeColor:{type:String,attribute:"badge-color",reflect:!0},borderColor:{type:String,attribute:"border-color",reflect:!0},backgroundColor:{type:String,attribute:"background-color",reflect:!0},badgeBackgroundColor:{type:String,attribute:"badge-background-color",reflect:!0},backgroundImage:{type:String,attribute:"background-image",reflect:!0},badgeText:{type:String,attribute:"badge-text"},actionMenu:{type:Boolean,attribute:"action-menu"},actionMenuLabel:{type:String,attribute:"action-menu-label"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},failed:{type:Boolean,attribute:"failed",reflect:!0},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},addonTitle:{type:String,attribute:"addon-title"},addonOffers:{type:Object,attribute:"addon-offers"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},planType:{type:String,attribute:"plan-type",reflect:!0},settings:{type:Object,attribute:!1},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:t=>{if(!t)return;let[r,n,a]=t.split(",");return{PUF:r,ABM:n,M2M:a}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:t=>Object.fromEntries(t.split(",").map(r=>{let[n,a,i]=r.split(":"),s=Number(a);return[n,{order:isNaN(s)?void 0:s,size:i}]})),toAttribute:t=>Object.entries(t).map(([r,{order:n,size:a}])=>[r,n,a].filter(i=>i!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:It,reflect:!0},loading:{type:String}}),d(U,"styles",[he,...me()]),d(U,"registerVariant",A),d(U,"getFragmentMapping",Pt);customElements.define(ie,U);export{U as MerchCard}; diff --git a/libs/features/mas/dist/mas.js b/libs/features/mas/dist/mas.js index 88e8d8cf69..80ec898dad 100644 --- a/libs/features/mas/dist/mas.js +++ b/libs/features/mas/dist/mas.js @@ -1,14 +1,14 @@ window.masPriceLiterals = {"total":38,"offset":0,"limit":38,"data":[{"lang":"ar","recurrenceLabel":"{recurrenceTerm, select, MONTH {/الشهر} YEAR {/العام} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {كل شهر} YEAR {كل عام} other {}}","perUnitLabel":"{perUnit, select, LICENSE {لكل ترخيص} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {لكل ترخيص} other {}}","freeLabel":"مجانًا","freeAriaLabel":"مجانًا","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"أو بدلاً من ذلك بقيمة {alternativePrice}","strikethroughAriaLabel":"بشكل منتظم بقيمة {strikethroughPrice}"},{"lang":"bg","recurrenceLabel":"{recurrenceTerm, select, MONTH {/мес.} YEAR {/год.} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {на месец} YEAR {на година} other {}}","perUnitLabel":"{perUnit, select, LICENSE {на лиценз} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {на лиценз} other {}}","freeLabel":"Безплатно","freeAriaLabel":"Безплатно","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Алтернативно на {alternativePrice}","strikethroughAriaLabel":"Редовно на {strikethroughPrice}"},{"lang":"cs","recurrenceLabel":"{recurrenceTerm, select, MONTH {/měsíc} YEAR {/rok} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {za měsíc} YEAR {za rok} other {}}","perUnitLabel":"{perUnit, select, LICENSE {za licenci} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {za licenci} other {}}","freeLabel":"Zdarma","freeAriaLabel":"Zdarma","taxExclusiveLabel":"{taxTerm, select, GST {bez daně ze zboží a služeb} VAT {bez DPH} TAX {bez daně} IVA {bez IVA} SST {bez SST} KDV {bez KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {včetně daně ze zboží a služeb} VAT {včetně DPH} TAX {včetně daně} IVA {včetně IVA} SST {včetně SST} KDV {včetně KDV} other {}}","alternativePriceAriaLabel":"Případně za {alternativePrice}","strikethroughAriaLabel":"Pravidelně za {strikethroughPrice}"},{"lang":"da","recurrenceLabel":"{recurrenceTerm, select, MONTH {/md} YEAR {/år} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {pr. måned} YEAR {pr. år} other {}}","perUnitLabel":"{perUnit, select, LICENSE {pr. licens} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {pr. licens} other {}}","freeLabel":"Gratis","freeAriaLabel":"Gratis","taxExclusiveLabel":"{taxTerm, select, GST {ekskl. GST} VAT {ekskl. moms} TAX {ekskl. skat} IVA {ekskl. IVA} SST {ekskl. SST} KDV {ekskl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. skat} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativt til {alternativePrice}","strikethroughAriaLabel":"Normalpris {strikethroughPrice}"},{"lang":"de","recurrenceLabel":"{recurrenceTerm, select, MONTH {/Monat} YEAR {/Jahr} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {pro Monat} YEAR {pro Jahr} other {}}","perUnitLabel":"{perUnit, select, LICENSE {pro Lizenz} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {pro Lizenz} other {}}","freeLabel":"Kostenlos","freeAriaLabel":"Kostenlos","taxExclusiveLabel":"{taxTerm, select, GST {zzgl. GST} VAT {zzgl. MwSt.} TAX {zzgl. Steuern} IVA {zzgl. IVA} SST {zzgl. SST} KDV {zzgl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. MwSt.} TAX {inkl. Steuern} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativ: {alternativePrice}","strikethroughAriaLabel":"Regulär: {strikethroughPrice}"},{"lang":"en","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mo} YEAR {/yr} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per month} YEAR {per year} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per license} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per license} other {}}","freeLabel":"Free","freeAriaLabel":"Free","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Alternatively at {alternativePrice}","strikethroughAriaLabel":"Regularly at {strikethroughPrice}"},{"lang":"et","recurrenceLabel":"{recurrenceTerm, select, MONTH {kuus} YEAR {aastas} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {kuus} YEAR {aastas} other {}}","perUnitLabel":"{perUnit, select, LICENSE {litsentsi kohta} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {litsentsi kohta} other {}}","freeLabel":"Tasuta","freeAriaLabel":"Tasuta","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Teise võimalusena hinnaga {alternativePrice}","strikethroughAriaLabel":"Tavahind {strikethroughPrice}"},{"lang":"fi","recurrenceLabel":"{recurrenceTerm, select, MONTH {/kk} YEAR {/v} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {kuukausittain} YEAR {vuosittain} other {}}","perUnitLabel":"{perUnit, select, LICENSE {käyttöoikeutta kohti} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {käyttöoikeutta kohti} other {}}","freeLabel":"Maksuton","freeAriaLabel":"Maksuton","taxExclusiveLabel":"{taxTerm, select, GST {ilman GST:tä} VAT {ilman ALV:tä} TAX {ilman veroja} IVA {ilman IVA:ta} SST {ilman SST:tä} KDV {ilman KDV:tä} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {sis. GST:n} VAT {sis. ALV:n} TAX {sis. verot} IVA {sis. IVA:n} SST {sis. SST:n} KDV {sis. KDV:n} other {}}","alternativePriceAriaLabel":"Vaihtoehtoisesti hintaan {alternativePrice}","strikethroughAriaLabel":"Säännöllisesti hintaan {strikethroughPrice}"},{"lang":"fr","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mois} YEAR {/an} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {par mois} YEAR {par an} other {}}","perUnitLabel":"{perUnit, select, LICENSE {par licence} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {par licence} other {}}","freeLabel":"Gratuit","freeAriaLabel":"Gratuit","taxExclusiveLabel":"{taxTerm, select, GST {hors TPS} VAT {hors TVA} TAX {hors taxes} IVA {hors IVA} SST {hors SST} KDV {hors KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {TPS comprise} VAT {TVA comprise} TAX {taxes comprises} IVA {IVA comprise} SST {SST comprise} KDV {KDV comprise} other {}}","alternativePriceAriaLabel":"Autre prix {alternativePrice}","strikethroughAriaLabel":"Prix habituel {strikethroughPrice}"},{"lang":"he","recurrenceLabel":"{recurrenceTerm, select, MONTH {/חודש} YEAR {/שנה} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {לחודש} YEAR {לשנה} other {}}","perUnitLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","freeLabel":"חינם","freeAriaLabel":"חינם","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"לחלופין ב-{alternativePrice}","strikethroughAriaLabel":"באופן קבוע ב-{strikethroughPrice}"},{"lang":"hu","recurrenceLabel":"{recurrenceTerm, select, MONTH {/hó} YEAR {/év} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {havonta} YEAR {évente} other {}}","perUnitLabel":"{perUnit, select, LICENSE {licencenként} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {licencenként} other {}}","freeLabel":"Ingyenes","freeAriaLabel":"Ingyenes","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Másik lehetőség: {alternativePrice}","strikethroughAriaLabel":"Általában {strikethroughPrice} áron"},{"lang":"it","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mese} YEAR {/anno} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {al mese} YEAR {all'anno} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per licenza} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per licenza} other {}}","freeLabel":"Gratuito","freeAriaLabel":"Gratuito","taxExclusiveLabel":"{taxTerm, select, GST {escl. GST} VAT {escl. IVA.} TAX {escl. imposte} IVA {escl. IVA} SST {escl. SST} KDV {escl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. IVA} TAX {incl. imposte} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"In alternativa a {alternativePrice}","strikethroughAriaLabel":"Regolarmente a {strikethroughPrice}"},{"lang":"ja","recurrenceLabel":"{recurrenceTerm, select, MONTH {/月} YEAR {/年} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {毎月} YEAR {毎年} other {}}","perUnitLabel":"{perUnit, select, LICENSE {ライセンスごと} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {ライセンスごと} other {}}","freeLabel":"無料","freeAriaLabel":"無料","taxExclusiveLabel":"{taxTerm, select, GST {GST 別} VAT {VAT 別} TAX {税別} IVA {IVA 別} SST {SST 別} KDV {KDV 別} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST 込} VAT {VAT 込} TAX {税込} IVA {IVA 込} SST {SST 込} KDV {KDV 込} other {}}","alternativePriceAriaLabel":"特別価格 : {alternativePrice}","strikethroughAriaLabel":"通常価格 : {strikethroughPrice}"},{"lang":"ko","recurrenceLabel":"{recurrenceTerm, select, MONTH {/월} YEAR {/년} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {월간} YEAR {연간} other {}}","perUnitLabel":"{perUnit, select, LICENSE {라이선스당} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {라이선스당} other {}}","freeLabel":"무료","freeAriaLabel":"무료","taxExclusiveLabel":"{taxTerm, select, GST {GST 제외} VAT {VAT 제외} TAX {세금 제외} IVA {IVA 제외} SST {SST 제외} KDV {KDV 제외} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST 포함} VAT {VAT 포함} TAX {세금 포함} IVA {IVA 포함} SST {SST 포함} KDV {KDV 포함} other {}}","alternativePriceAriaLabel":"또는 {alternativePrice}에","strikethroughAriaLabel":"또는 {alternativePrice}에"},{"lang":"lt","recurrenceLabel":"{recurrenceTerm, select, MONTH { per mėn.} YEAR { per metus} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per mėn.} YEAR {per metus} other {}}","perUnitLabel":"{perUnit, select, LICENSE {už licenciją} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {už licenciją} other {}}","freeLabel":"Nemokamai","freeAriaLabel":"Nemokamai","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Arba už {alternativePrice}","strikethroughAriaLabel":"Normaliai už {strikethroughPrice}"},{"lang":"lv","recurrenceLabel":"{recurrenceTerm, select, MONTH {mēnesī} YEAR {gadā} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {mēnesī} YEAR {gadā} other {}}","perUnitLabel":"{perUnit, select, LICENSE {vienai licencei} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {vienai licencei} other {}}","freeLabel":"Bezmaksas","freeAriaLabel":"Bezmaksas","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Alternatīvi par {alternativePrice}","strikethroughAriaLabel":"Regulāri par {strikethroughPrice}"},{"lang":"nb","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mnd.} YEAR {/år} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per måned} YEAR {per år} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per lisens} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per lisens} other {}}","freeLabel":"Fri","freeAriaLabel":"Fri","taxExclusiveLabel":"{taxTerm, select, GST {ekskl. GST} VAT {ekskl. moms} TAX {ekskl. avgift} IVA {ekskl. IVA} SST {ekskl. SST} KDV {ekskl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. avgift} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativt til {alternativePrice}","strikethroughAriaLabel":"Regelmessig til {strikethroughPrice}"},{"lang":"nl","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mnd} YEAR {/jr} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per maand} YEAR {per jaar} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per licentie} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per licentie} other {}}","freeLabel":"Gratis","freeAriaLabel":"Gratis","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. btw} TAX {excl. belasting} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. btw} TAX {incl. belasting} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Nu {alternativePrice}","strikethroughAriaLabel":"Normaal {strikethroughPrice}"},{"lang":"pl","recurrenceLabel":"{recurrenceTerm, select, MONTH { / mies.} YEAR { / rok} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH { / miesiąc} YEAR { / rok} other {}}","perUnitLabel":"{perUnit, select, LICENSE {za licencję} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {za licencję} other {}}","freeLabel":"Bezpłatne","freeAriaLabel":"Bezpłatne","taxExclusiveLabel":"{taxTerm, select, GST {bez GST} VAT {bez VAT} TAX {netto} IVA {bez IVA} SST {bez SST} KDV {bez KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {z GST} VAT {z VAT} TAX {brutto} IVA {z IVA} SST {z SST} KDV {z KDV} other {}}","alternativePriceAriaLabel":"Lub za {alternativePrice}","strikethroughAriaLabel":"Cena zwykła: {strikethroughPrice}"},{"lang":"pt","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mês} YEAR {/ano} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {por mês} YEAR {por ano} other {}}","perUnitLabel":"{perUnit, select, LICENSE {por licença} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {por licença} other {}}","freeLabel":"Gratuito","freeAriaLabel":"Gratuito","taxExclusiveLabel":"{taxTerm, select, GST {ICMS não incluso} VAT {IVA não incluso} TAX {impostos não inclusos} IVA {IVA não incluso} SST { SST não incluso} KDV {KDV não incluso} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {ICMS incluso} VAT {IVA incluso} TAX {impostos inclusos} IVA {IVA incluso} SST {SST incluso} KDV {KDV incluso} other {}}","alternativePriceAriaLabel":"Ou a {alternativePrice}","strikethroughAriaLabel":"Preço normal: {strikethroughPrice}"},{"lang":"ro","recurrenceLabel":"{recurrenceTerm, select, MONTH {/lună} YEAR {/an} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {pe lună} YEAR {pe an} other {}}","perUnitLabel":"{perUnit, select, LICENSE {pe licență} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {pe licență} other {}}","freeLabel":"Gratuit","freeAriaLabel":"Gratuit","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Alternativ, la {alternativePrice}","strikethroughAriaLabel":"În mod normal, la {strikethroughPrice}"},{"lang":"ru","recurrenceLabel":"{recurrenceTerm, select, MONTH {/мес.} YEAR {/г.} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {в месяц} YEAR {в год} other {}}","perUnitLabel":"{perUnit, select, LICENSE {за лицензию} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {за лицензию} other {}}","freeLabel":"Бесплатно","freeAriaLabel":"Бесплатно","taxExclusiveLabel":"{taxTerm, select, GST {искл. налог на товары и услуги} VAT {искл. НДС} TAX {искл. налог} IVA {искл. ИВА} SST {искл. SST} KDV {искл. КДВ} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {вкл. налог на товары и услуги} VAT {вкл. НДС} TAX {вкл. налог} IVA {вкл. ИВА} SST {вкл. SST} KDV {вкл. КДВ} other {}}","alternativePriceAriaLabel":"Альтернативный вариант за {alternativePrice}","strikethroughAriaLabel":"Регулярно по цене {strikethroughPrice}"},{"lang":"sk","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mesiac} YEAR {/rok} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {za mesiac} YEAR {za rok} other {}}","perUnitLabel":"{perUnit, select, LICENSE {za licenciu} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {za licenciu} other {}}","freeLabel":"Zadarmo","freeAriaLabel":"Zadarmo","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Prípadne za {alternativePrice}","strikethroughAriaLabel":"Pravidelne za {strikethroughPrice}"},{"lang":"sl","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mesec} YEAR {/leto} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {na mesec} YEAR {na leto} other {}}","perUnitLabel":"{perUnit, select, LICENSE {na licenco} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {na licenco} other {}}","freeLabel":"Brezplačno","freeAriaLabel":"Brezplačno","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Druga možnost je: {alternativePrice}","strikethroughAriaLabel":"Redno po {strikethroughPrice}"},{"lang":"sv","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mån} YEAR {/år} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per månad} YEAR {per år} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per licens} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per licens} other {}}","freeLabel":"Kostnadsfritt","freeAriaLabel":"Kostnadsfritt","taxExclusiveLabel":"{taxTerm, select, GST {exkl. GST} VAT {exkl. moms} TAX {exkl. skatt} IVA {exkl. IVA} SST {exkl. SST} KDV {exkl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. skatt} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativt för {alternativePrice}","strikethroughAriaLabel":"Normalpris {strikethroughPrice}"},{"lang":"tr","recurrenceLabel":"{recurrenceTerm, select, MONTH {/ay} YEAR {/yıl} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {(aylık)} YEAR {(yıllık)} other {}}","perUnitLabel":"{perUnit, select, LICENSE {(lisans başına)} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {(lisans başına)} other {}}","freeLabel":"Ücretsiz","freeAriaLabel":"Ücretsiz","taxExclusiveLabel":"{taxTerm, select, GST {GST hariç} VAT {KDV hariç} TAX {vergi hariç} IVA {IVA hariç} SST {SST hariç} KDV {KDV hariç} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST dahil} VAT {KDV dahil} TAX {vergi dahil} IVA {IVA dahil} SST {SST dahil} KDV {KDV dahil} other {}}","alternativePriceAriaLabel":"Ya da {alternativePrice}","strikethroughAriaLabel":"Standart fiyat: {strikethroughPrice}"},{"lang":"uk","recurrenceLabel":"{recurrenceTerm, select, MONTH {/міс.} YEAR {/рік} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {на місяць} YEAR {на рік} other {}}","perUnitLabel":"{perUnit, select, LICENSE {за ліцензію} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {за ліцензію} other {}}","freeLabel":"Безкоштовно","freeAriaLabel":"Безкоштовно","taxExclusiveLabel":"{taxTerm, select, GST {без GST} VAT {без ПДВ} TAX {без податку} IVA {без IVA} SST {без SST} KDV {без KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {разом із GST} VAT {разом із ПДВ} TAX {разом із податком} IVA {разом з IVA} SST {разом із SST} KDV {разом із KDV} other {}}","alternativePriceAriaLabel":"Або за {alternativePrice}","strikethroughAriaLabel":"Звичайна ціна {strikethroughPrice}"},{"lang":"zh-hans","recurrenceLabel":"{recurrenceTerm, select, MONTH {/月} YEAR {/年} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {每月} YEAR {每年} other {}}","perUnitLabel":"{perUnit, select, LICENSE {每个许可证} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {每个许可证} other {}}","freeLabel":"免费","freeAriaLabel":"免费","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"或定价 {alternativePrice}","strikethroughAriaLabel":"正常价 {strikethroughPrice}"},{"lang":"zh-hant","recurrenceLabel":"{recurrenceTerm, select, MONTH {/月} YEAR {/年} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {每月} YEAR {每年} other {}}","perUnitLabel":"{perUnit, select, LICENSE {每個授權} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {每個授權} other {}}","freeLabel":"免費","freeAriaLabel":"免費","taxExclusiveLabel":"{taxTerm, select, GST {不含 GST} VAT {不含 VAT} TAX {不含稅} IVA {不含 IVA} SST {不含 SST} KDV {不含 KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {含 GST} VAT {含 VAT} TAX {含稅} IVA {含 IVA} SST {含 SST} KDV {含 KDV} other {}}","alternativePriceAriaLabel":"或者在 {alternativePrice}","strikethroughAriaLabel":"標準價格為 {strikethroughPrice}"},{"lang":"es","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mes} YEAR {/año} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {al mes} YEAR {al año} other {}}","perUnitLabel":"{perUnit, select, LICENSE {por licencia} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {por licencia} other {}}","freeLabel":"Gratuito","freeAriaLabel":"Gratuito","taxExclusiveLabel":"{taxTerm, select, GST {GST no incluido} VAT {IVA no incluido} TAX {Impuestos no incluidos} IVA {IVA no incluido} SST {SST no incluido} KDV {KDV no incluido} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST incluido} VAT {IVA incluido} TAX {Impuestos incluidos} IVA {IVA incluido} SST {SST incluido} KDV {KDV incluido} other {}}","alternativePriceAriaLabel":"Alternativamente por {alternativePrice}","strikethroughAriaLabel":"Normalmente a {strikethroughPrice}"},{"lang":"in","recurrenceLabel":"{recurrenceTerm, select, MONTH {/bulan} YEAR {/tahun} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per bulan} YEAR {per tahun} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per lisensi} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per lisensi} other {}}","freeLabel":"Gratis","freeAriaLabel":"Gratis","taxExclusiveLabel":"{taxTerm, select, GST {tidak termasuk PBJ} VAT {tidak termasuk PPN} TAX {tidak termasuk pajak} IVA {tidak termasuk IVA} SST {tidak termasuk SST} KDV {tidak termasuk KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {termasuk PBJ} VAT {termasuk PPN} TAX {termasuk pajak} IVA {termasuk IVA} SST {termasuk SST} KDV {termasuk KDV} other {}}","alternativePriceAriaLabel":"Atau seharga {alternativePrice}","strikethroughAriaLabel":"Normalnya seharga {strikethroughPrice}"},{"lang":"vi","recurrenceLabel":"{recurrenceTerm, select, MONTH {/tháng} YEAR {/năm} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {mỗi tháng} YEAR {mỗi năm} other {}}","perUnitLabel":"{perUnit, select, LICENSE {mỗi giấy phép} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {mỗi giấy phép} other {}}","freeLabel":"Miễn phí","freeAriaLabel":"Miễn phí","taxExclusiveLabel":"{taxTerm, select, GST {chưa bao gồm thuế hàng hóa và dịch vụ} VAT {chưa bao gồm thuế GTGT} TAX {chưa bao gồm thuế} IVA {chưa bao gồm IVA} SST {chưa bao gồm SST} KDV {chưa bao gồm KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {(đã bao gồm thuế hàng hóa và dịch vụ)} VAT {(đã bao gồm thuế GTGT)} TAX {(đã bao gồm thuế)} IVA {(đã bao gồm IVA)} SST {(đã bao gồm SST)} KDV {(đã bao gồm KDV)} other {}}","alternativePriceAriaLabel":"Giá ưu đãi {alternativePrice}","strikethroughAriaLabel":"Giá thông thường {strikethroughPrice}"},{"lang":"th","recurrenceLabel":"{recurrenceTerm, select, MONTH {/เดือน} YEAR {/ปี} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {ต่อเดือน} YEAR {ต่อปี} other {}}","perUnitLabel":"{perUnit, select, LICENSE {ต่อสิทธิ์การใช้งาน} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {ต่อสิทธิ์การใช้งาน} other {}}","freeLabel":"ฟรี","freeAriaLabel":"ฟรี","taxExclusiveLabel":"{taxTerm, select, GST {ไม่รวมภาษี GST} VAT {ไม่รวม VAT} TAX {ไม่รวมภาษี} IVA {ไม่รวม IVA} SST {ไม่รวม SST} KDV {ไม่รวม KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {รวมภาษี GST} VAT {รวม VAT} TAX {รวมภาษี} IVA {รวม IVA} SST {รวม SST} KDV {รวม KDV} other {}}","alternativePriceAriaLabel":"ราคาพิเศษ {alternativePrice}","strikethroughAriaLabel":"ราคาปกติ {strikethroughPrice}"},{"lang":"el","recurrenceLabel":"{recurrenceTerm, select, MONTH {/μήνα} YEAR {/έτος} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {κάθε μήνα} YEAR {ανά έτος} other {}}","perUnitLabel":"{perUnit, select, LICENSE {ανά άδεια χρήσης} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {ανά άδεια χρήσης} other {}}","freeLabel":"Δωρεάν","freeAriaLabel":"Δωρεάν","taxExclusiveLabel":"{taxTerm, select, GST {(μη συμπεριλαμβανομένου GST)} VAT {(μη συμπεριλαμβανομένου ΦΠΑ)} TAX {(μη συμπεριλαμβανομένου φόρο)} IVA {(μη συμπεριλαμβανομένου IVA)} SST {(μη συμπεριλαμβανομένου SST)} KDV {(μη συμπεριλαμβανομένου KDV)} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {(συμπεριλαμβανομένου του GST)} VAT {(συμπεριλαμβανομένου ΦΠΑ)} TAX {(συμπεριλαμβανομένου του φόρου)} IVA {(συμπεριλαμβανομένου του IVA)} SST {(συμπεριλαμβανομένου του SST)} KDV {(συμπεριλαμβανομένου του KDV)} other {}}","alternativePriceAriaLabel":"Διαφορετικά, {alternativePrice}","strikethroughAriaLabel":"Κανονική τιμή {strikethroughPrice}"},{"lang":"fil","recurrenceLabel":"{recurrenceTerm, select, MONTH {/buwan} YEAR {/taon} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per buwan} YEAR {per taon} other {}}","perUnitLabel":"{perUnit, select, LICENSE {kada lisensya} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {kada lisensya} other {}}","freeLabel":"Libre","freeAriaLabel":"Libre","taxExclusiveLabel":"{taxTerm, select, GST {hindi kasama ang GST} VAT {hindi kasama ang VAT} TAX {hindi kasama ang Buwis} IVA {hindi kasama ang IVA} SST {hindi kasama ang SST} KDV {hindi kasama ang KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {kasama ang GST} VAT {kasama ang VAT} TAX {kasama ang Buwis} IVA {kasama ang IVA} SST {kasama ang SST} KDV {kasama ang KDV} other {}}","alternativePriceAriaLabel":"Alternatibong nasa halagang {alternativePrice}","strikethroughAriaLabel":"Regular na nasa halagang {strikethroughPrice}"},{"lang":"ms","recurrenceLabel":"{recurrenceTerm, select, MONTH {/bulan} YEAR {/tahun} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per bulan} YEAR {per tahun} other {}}","perUnitLabel":"{perUnit, select, LICENSE {setiap lesen} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {setiap lesen} other {}}","freeLabel":"Percuma","freeAriaLabel":"Percuma","taxExclusiveLabel":"{taxTerm, select, GST {kecuali GST} VAT {kecuali VAT} TAX {kecuali Cukai} IVA {kecuali IVA} SST {kecuali SST} KDV {kecuali KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {termasuk GST} VAT {termasuk VAT} TAX {termasuk Cukai} IVA {termasuk IVA} SST {termasuk SST} KDV {termasuk KDV} other {}}","alternativePriceAriaLabel":"Secara alternatif pada {alternativePrice}","strikethroughAriaLabel":"Biasanya pada {strikethroughPrice}"},{"lang":"hi","recurrenceLabel":"{recurrenceTerm, select, MONTH {/माह} YEAR {/वर्ष} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per माह} YEAR {per वर्ष} other {}}","perUnitLabel":"{perUnit, select, LICENSE {प्रति लाइसेंस} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {प्रति लाइसेंस} other {}}","freeLabel":"फ़्री","freeAriaLabel":"फ़्री","taxExclusiveLabel":"{taxTerm, select, GST {GST अतिरिक्त} VAT {VAT अतिरिक्त} TAX {कर अतिरिक्त} IVA {IVA अतिरिक्त} SST {SST अतिरिक्त} KDV {KDV अतिरिक्त} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST सहित} VAT {VAT सहित} TAX {कर सहित} IVA {IVA सहित} SST {SST सहित} KDV {KDV सहित} other {}}","alternativePriceAriaLabel":"वैकल्पिक रूप से इस पर {alternativePrice}","strikethroughAriaLabel":"नियमित रूप से इस पर {strikethroughPrice}"},{"lang":"iw","recurrenceLabel":"{recurrenceTerm, select, MONTH {/חודש} YEAR {/שנה} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {לחודש} YEAR {לשנה} other {}}","perUnitLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","freeLabel":"חינם","freeAriaLabel":"חינם","taxExclusiveLabel":"{taxTerm, select, GST {ללא GST} VAT {ללא מע\"מ} TAX {ללא מס} IVA {ללא IVA} SST {ללא SST} KDV {ללא KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {כולל GST} VAT {כולל מע\"מ} TAX {כולל מס} IVA {כולל IVA} SST {כולל SST} KDV {כולל KDV} other {}}","alternativePriceAriaLabel":"לחלופין ב-{alternativePrice}","strikethroughAriaLabel":"באופן קבוע ב-{strikethroughPrice}"}],":type":"sheet"} .data; -var Di=Object.defineProperty;var Bi=e=>{throw TypeError(e)};var rl=(e,t,r)=>t in e?Di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var nl=(e,t)=>{for(var r in t)Di(e,r,{get:t[r],enumerable:!0})};var f=(e,t,r)=>rl(e,typeof t!="symbol"?t+"":t,r),Bn=(e,t,r)=>t.has(e)||Bi("Cannot "+r);var u=(e,t,r)=>(Bn(e,t,"read from private field"),r?r.call(e):t.get(e)),w=(e,t,r)=>t.has(e)?Bi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_=(e,t,r,n)=>(Bn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ne=(e,t,r)=>(Bn(e,t,"access private method"),r);var zi=(e,t,r,n)=>({set _(o){_(e,t,o,r)},get _(){return u(e,t,n)}});(function(){let r={clientId:"",endpoint:"https://www.adobe.com/lana/ll",endpointStage:"https://www.stage.adobe.com/lana/ll",errorType:"e",sampleRate:1,tags:"",implicitSampleRate:1,useProd:!0,isProdDomain:!1},n=new Set(["d","debug","i","info","w","warn","e","error","c","critical"]),o=window;function i(){let{host:d}=window.location;return d.substring(d.length-10)===".adobe.com"&&d.substring(d.length-15)!==".corp.adobe.com"&&d.substring(d.length-16)!==".stage.adobe.com"}function a(d,m){d||(d={}),m||(m={});function p(g){return d[g]!==void 0?d[g]:m[g]!==void 0?m[g]:r[g]}return Object.keys(r).reduce((g,b)=>(g[b]=p(b),g),{})}function s(){return o.location.search.toLowerCase().indexOf("lanadebug")!==-1}function c(){return o.location.host.toLowerCase().indexOf("localhost")!==-1}function l(d,m){d=d&&d.stack?d.stack:d||"",d.length>2e3&&(d=`${d.slice(0,2e3)}`);let p=a(m,o.lana.options);if(!p.clientId){console.warn("LANA ClientID is not set in options.");return}let g;if(m&&m.severity!==void 0)if(n.has(m.severity))g=m.severity;else{let k=s()||o.lana.debug?"d":"i";console.warn(`LANA: Invalid severity '${m.severity}'. Defaulting to '${k}'.`),g=k}else o.lana.debug&&(g="d");let E=parseInt(new URL(window.location).searchParams.get("lana-sample"),10)||(p.errorType==="i"?p.implicitSampleRate:p.sampleRate);if(!o.lana.debug&&!o.lana.localhost&&E<=Math.random()*100)return;let R=i()||p.isProdDomain,P=!R||!p.useProd?p.endpointStage:p.endpoint,y=[`m=${encodeURIComponent(d)}`,`c=${encodeURI(p.clientId)}`,`s=${E}`,`t=${encodeURI(p.errorType)}`];if(g&&y.push(`r=${encodeURI(g)}`),p.tags&&y.push(`tags=${encodeURI(p.tags)}`),(!R||o.lana.debug||o.lana.localhost)&&console.log("LANA Msg: ",d,` -Opts:`,p),!o.lana.localhost||o.lana.debug){let O=new XMLHttpRequest;return o.lana.debug&&(y.push("d"),O.addEventListener("load",()=>{console.log("LANA response:",O.responseText)})),O.open("GET",`${P}?${y.join("&")}`),O.send(),O}}function h(d){l(d.reason||d.error||d.message,{errorType:"i"})}o.lana={debug:!1,log:l,options:a(o.lana&&o.lana.options)},s()&&(o.lana.debug=!0),c()&&(o.lana.localhost=!0),o.addEventListener("error",h),o.addEventListener("unhandledrejection",h)})();var io={};nl(io,{CLASS_NAME_FAILED:()=>jn,CLASS_NAME_HIDDEN:()=>il,CLASS_NAME_PENDING:()=>qn,CLASS_NAME_RESOLVED:()=>Yn,CheckoutWorkflow:()=>Fi,CheckoutWorkflowStep:()=>J,Commitment:()=>ze,ERROR_MESSAGE_BAD_REQUEST:()=>Wn,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>ul,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>Xn,EVENT_AEM_ERROR:()=>Ge,EVENT_AEM_LOAD:()=>Fe,EVENT_MAS_ERROR:()=>Vn,EVENT_MAS_READY:()=>Gn,EVENT_MERCH_ADDON_AND_QUANTITY_UPDATE:()=>Br,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>zn,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>pl,EVENT_MERCH_CARD_COLLECTION_SORT:()=>dl,EVENT_MERCH_CARD_QUANTITY_CHANGE:()=>bt,EVENT_MERCH_OFFER_READY:()=>xt,EVENT_MERCH_OFFER_SELECT_READY:()=>Kt,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>we,EVENT_MERCH_SEARCH_CHANGE:()=>hl,EVENT_MERCH_SIDENAV_SELECT:()=>ml,EVENT_MERCH_STOCK_CHANGE:()=>cl,EVENT_MERCH_STORAGE_CHANGE:()=>ll,EVENT_OFFER_SELECTED:()=>Fn,EVENT_TYPE_FAILED:()=>Kn,EVENT_TYPE_READY:()=>Dr,EVENT_TYPE_RESOLVED:()=>vt,Env:()=>ue,FF_DEFAULTS:()=>Zt,HEADER_X_REQUEST_ID:()=>Qt,LOG_NAMESPACE:()=>Qn,Landscape:()=>Ie,MARK_DURATION_SUFFIX:()=>qe,MARK_START_SUFFIX:()=>je,MODAL_TYPE_3_IN_1:()=>Ve,NAMESPACE:()=>ol,PARAM_AOS_API_KEY:()=>fl,PARAM_ENV:()=>Jn,PARAM_LANDSCAPE:()=>eo,PARAM_MAS_PREVIEW:()=>Zn,PARAM_WCS_API_KEY:()=>gl,PROVIDER_ENVIRONMENT:()=>no,SELECTOR_MAS_CHECKOUT_LINK:()=>Ae,SELECTOR_MAS_ELEMENT:()=>Xt,SELECTOR_MAS_INLINE_PRICE:()=>Q,SELECTOR_MAS_SP_BUTTON:()=>sl,STATE_FAILED:()=>he,STATE_PENDING:()=>$e,STATE_RESOLVED:()=>_e,TAG_NAME_SERVICE:()=>al,TEMPLATE_PRICE:()=>xl,TEMPLATE_PRICE_ANNUAL:()=>vl,TEMPLATE_PRICE_LEGAL:()=>oo,TEMPLATE_PRICE_STRIKETHROUGH:()=>bl,Term:()=>se,WCS_PROD_URL:()=>to,WCS_STAGE_URL:()=>ro});var ze=Object.freeze({MONTH:"MONTH",YEAR:"YEAR",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",PERPETUAL:"PERPETUAL",TERM_LICENSE:"TERM_LICENSE",ACCESS_PASS:"ACCESS_PASS",THREE_MONTHS:"THREE_MONTHS",SIX_MONTHS:"SIX_MONTHS"}),se=Object.freeze({ANNUAL:"ANNUAL",MONTHLY:"MONTHLY",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",P1D:"P1D",P1Y:"P1Y",P3Y:"P3Y",P10Y:"P10Y",P15Y:"P15Y",P3D:"P3D",P7D:"P7D",P30D:"P30D",HALF_YEARLY:"HALF_YEARLY",QUARTERLY:"QUARTERLY"}),ol="merch",il="hidden",Dr="wcms:commerce:ready",al="mas-commerce-service",Q='span[is="inline-price"][data-wcs-osi]',Ae='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]',sl="sp-button[data-wcs-osi]",Xt=`${Q},${Ae}`,xt="merch-offer:ready",Kt="merch-offer-select:ready",zn="merch-card:action-menu-toggle",Fn="merch-offer:selected",cl="merch-stock:change",ll="merch-storage:change",we="merch-quantity-selector:change",bt="merch-card-quantity:change",Br="merch-modal:addon-and-quantity-update",hl="merch-search:change",dl="merch-card-collection:sort",pl="merch-card-collection:showmore",ml="merch-sidenav:select",Fe="aem:load",Ge="aem:error",Gn="mas:ready",Vn="mas:error",jn="placeholder-failed",qn="placeholder-pending",Yn="placeholder-resolved",Wn="Bad WCS request",Xn="Commerce offer not found",ul="Literals URL not provided",Kn="mas:failed",vt="mas:resolved",Qn="mas/commerce",Zn="mas.preview",Jn="commerce.env",eo="commerce.landscape",fl="commerce.aosKey",gl="commerce.wcsKey",to="https://www.adobe.com/web_commerce_artifact",ro="https://www.stage.adobe.com/web_commerce_artifact_stage",he="failed",$e="pending",_e="resolved",Ie={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},Qt="X-Request-Id",J=Object.freeze({SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"}),Fi="UCv3",ue=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"}),no={PRODUCTION:"PRODUCTION"},Ve={TWP:"twp",D2P:"d2p",CRM:"crm"},je=":start",qe=":duration",xl="price",bl="price-strikethrough",vl="annual",oo="legal",Zt="mas-ff-defaults";var Gi="tacocat.js";var ao=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),Vi=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function N(e,t={},{metadata:r=!0,search:n=!0,storage:o=!0}={}){let i;if(n&&i==null){let a=new URLSearchParams(window.location.search),s=yt(n)?n:e;i=a.get(s)}if(o&&i==null){let a=yt(o)?o:e;i=window.sessionStorage.getItem(a)??window.localStorage.getItem(a)}if(r&&i==null){let a=El(yt(r)?r:e);i=document.documentElement.querySelector(`meta[name="${a}"]`)?.content}return i??t[e]}var yl=e=>typeof e=="boolean",zr=e=>typeof e=="function",Fr=e=>typeof e=="number",ji=e=>e!=null&&typeof e=="object";var yt=e=>typeof e=="string",qi=e=>yt(e)&&e,Jt=e=>Fr(e)&&Number.isFinite(e)&&e>0;function er(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function A(e,t){if(yl(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function tr(e,t,r){let n=Object.values(t);return n.find(o=>ao(o,e))??r??n[0]}function El(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function Yi(e,t=1){return Fr(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var Al=Date.now(),so=()=>`(+${Date.now()-Al}ms)`,Gr=new Set,wl=A(N("tacocat.debug",{},{metadata:!1}),!1);function Wi(e){let t=`[${Gi}/${e}]`,r=(a,s,...c)=>a?!0:(o(s,...c),!1),n=wl?(a,...s)=>{console.debug(`${t} ${a}`,...s,so())}:()=>{},o=(a,...s)=>{let c=`${t} ${a}`;Gr.forEach(([l])=>l(c,...s))};return{assert:r,debug:n,error:o,warn:(a,...s)=>{let c=`${t} ${a}`;Gr.forEach(([,l])=>l(c,...s))}}}function _l(e,t){let r=[e,t];return Gr.add(r),()=>{Gr.delete(r)}}_l((e,...t)=>{console.error(e,...t,so())},(e,...t)=>{console.warn(e,...t,so())});var Sl="no promo",Xi="promo-tag",Tl="yellow",Cl="neutral",Pl=(e,t,r)=>{let n=i=>i||Sl,o=r?` (was "${n(t)}")`:"";return`${n(e)}${o}`},Ll="cancel-context",Vr=(e,t)=>{let r=e===Ll,n=!r&&e?.length>0,o=(n||r)&&(t&&t!=e||!t&&!r),i=o&&n||!o&&!!t,a=i?e||t:void 0;return{effectivePromoCode:a,overridenPromoCode:e,className:i?Xi:`${Xi} no-promo`,text:Pl(a,t,o),variant:i?Tl:Cl,isOverriden:o}};var co;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(co||(co={}));var oe;(function(e){e.MONTH="MONTH",e.YEAR="YEAR",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.PERPETUAL="PERPETUAL",e.TERM_LICENSE="TERM_LICENSE",e.ACCESS_PASS="ACCESS_PASS",e.THREE_MONTHS="THREE_MONTHS",e.SIX_MONTHS="SIX_MONTHS"})(oe||(oe={}));var ce;(function(e){e.ANNUAL="ANNUAL",e.MONTHLY="MONTHLY",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.P1D="P1D",e.P1Y="P1Y",e.P3Y="P3Y",e.P10Y="P10Y",e.P15Y="P15Y",e.P3D="P3D",e.P7D="P7D",e.P30D="P30D",e.HALF_YEARLY="HALF_YEARLY",e.QUARTERLY="QUARTERLY"})(ce||(ce={}));var lo;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(lo||(lo={}));var ho;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(ho||(ho={}));var po;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(po||(po={}));var mo;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(mo||(mo={}));var uo="ABM",fo="PUF",go="M2M",xo="PERPETUAL",bo="P3Y",kl="TAX_INCLUSIVE_DETAILS",Rl="TAX_EXCLUSIVE",Ki={ABM:uo,PUF:fo,M2M:go,PERPETUAL:xo,P3Y:bo},sp={[uo]:{commitment:oe.YEAR,term:ce.MONTHLY},[fo]:{commitment:oe.YEAR,term:ce.ANNUAL},[go]:{commitment:oe.MONTH,term:ce.MONTHLY},[xo]:{commitment:oe.PERPETUAL,term:void 0},[bo]:{commitment:oe.THREE_MONTHS,term:ce.P3Y}},Qi="Value is not an offer",rr=e=>{if(typeof e!="object")return Qi;let{commitment:t,term:r}=e,n=Ol(t,r);return{...e,planType:n}};var Ol=(e,t)=>{switch(e){case void 0:return Qi;case"":return"";case oe.YEAR:return t===ce.MONTHLY?uo:t===ce.ANNUAL?fo:"";case oe.MONTH:return t===ce.MONTHLY?go:"";case oe.PERPETUAL:return xo;case oe.TERM_LICENSE:return t===ce.P3Y?bo:"";default:return""}};function Zi(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:o,priceWithoutDiscountAndTax:i,taxDisplay:a}=t;if(a!==kl)return e;let s={...e,priceDetails:{...t,price:o??r,priceWithoutDiscount:i??n,taxDisplay:Rl}};return s.offerType==="TRIAL"&&s.priceDetails.price===0&&(s.priceDetails.price=s.priceDetails.priceWithoutDiscount),s}var Nl="mas-commerce-service",Ml={requestId:Qt,etag:"Etag",lastModified:"Last-Modified",serverTiming:"server-timing"};function nr(e,{country:t,forceTaxExclusive:r,perpetual:n}){let o;if(e.length<2)o=e;else{let i=t==="GB"?"EN":"MULT";e.sort((a,s)=>a.language===i?-1:s.language===i?1:0),e.sort((a,s)=>a.term?1:s.term?-1:0),o=[e[0]]}return r&&(o=o.map(Zi)),o}var jr=e=>window.setTimeout(e);function Et(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(Yi).filter(Jt);return r.length||(r=[t]),r}function qr(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(qi)}function ee(){return document.getElementsByTagName(Nl)?.[0]}function Yr(e){let t={};if(!e?.headers)return t;let r=e.headers;for(let[n,o]of Object.entries(Ml)){let i=r.get(o);i&&(i=i.replace(/[,;]/g,"|"),i=i.replace(/[| ]+/g,"|"),t[n]=i)}return t}var Ye={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals","element"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},Ji=1e3;function $l(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function ea(e){if(e==null)return;let t=typeof e;if(t==="function")return e.name?`function ${e.name}`:"function";if(t==="object"){if(e instanceof Error)return e.message;if(typeof e.originatingRequest=="string"){let{message:n,originatingRequest:o,status:i}=e;return[n,i,o].filter(Boolean).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!Ye.serializableTypes.includes(r))return r}return e}function Il(e,t){if(!Ye.ignoredProperties.includes(e))return ea(t)}var vo={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],o=[],i=t;r.forEach(l=>{l!=null&&($l(l)?n:o).push(l)}),n.length&&(i+=" "+n.map(ea).join(" "));let{pathname:a,search:s}=window.location,c=`${Ye.delimiter}page=${a}${s}`;c.length>Ji&&(c=`${c.slice(0,Ji)}`),i+=c,o.length&&(i+=`${Ye.delimiter}facts=`,i+=JSON.stringify(o,Il)),window.lana?.log(i,Ye)}};function Wr(e){Object.assign(Ye,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in Ye&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var ta={LOCAL:"local",PROD:"prod",STAGE:"stage"},yo={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},Eo=new Set,Ao=new Set,ra=new Map,na={append({level:e,message:t,params:r,timestamp:n,source:o}){console[e](`${n}ms [${o}] %c${t}`,"font-weight: bold;",...r)}},oa={filter:({level:e})=>e!==yo.DEBUG},Hl={filter:()=>!1};function Ul(e,t,r,n,o){return{level:e,message:t,namespace:r,get params(){return n.length===1&&zr(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:o,timestamp:performance.now().toFixed(3)}}function Dl(e){[...Ao].every(t=>t(e))&&Eo.forEach(t=>t(e))}function ia(e){let t=(ra.get(e)??0)+1;ra.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:o=>ia(`${n.namespace}/${o}`),updateConfig:Wr};return Object.values(yo).forEach(o=>{n[o]=(i,...a)=>Dl(Ul(o,i,e,a,r))}),Object.seal(n)}function Xr(...e){e.forEach(t=>{let{append:r,filter:n}=t;zr(n)&&Ao.add(n),zr(r)&&Eo.add(r)})}function Bl(e={}){let{name:t}=e,r=A(N("commerce.debug",{search:!0,storage:!0}),t===ta.LOCAL);return Xr(r?na:oa),t===ta.PROD&&Xr(vo),ie}function zl(){Eo.clear(),Ao.clear()}var ie={...ia(Qn),Level:yo,Plugins:{consoleAppender:na,debugFilter:oa,quietFilter:Hl,lanaAppender:vo},init:Bl,reset:zl,use:Xr};var Se=class e extends Error{constructor(t,r,n){if(super(t,{cause:n}),this.name="MasError",r.response){let o=r.response.headers?.get(Qt);o&&(r.requestId=o),r.response.status&&(r.status=r.response.status,r.statusText=r.response.statusText),r.response.url&&(r.url=r.response.url)}delete r.response,this.context=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}toString(){let t=Object.entries(this.context||{}).map(([n,o])=>`${n}: ${JSON.stringify(o)}`).join(", "),r=`${this.name}: ${this.message}`;return t&&(r+=` (${t})`),this.cause&&(r+=` -Caused by: ${this.cause}`),r}};var Fl={[he]:jn,[$e]:qn,[_e]:Yn},Gl={[he]:Kn,[_e]:vt},or,At=class{constructor(t){w(this,or);f(this,"changes",new Map);f(this,"connected",!1);f(this,"error");f(this,"log");f(this,"options");f(this,"promises",[]);f(this,"state",$e);f(this,"timer",null);f(this,"value");f(this,"version",0);f(this,"wrapperElement");this.wrapperElement=t,this.log=ie.module("mas-element")}update(){[he,$e,_e].forEach(t=>{this.wrapperElement.classList.toggle(Fl[t],t===this.state)})}notify(){(this.state===_e||this.state===he)&&(this.state===_e?this.promises.forEach(({resolve:r})=>r(this.wrapperElement)):this.state===he&&this.promises.forEach(({reject:r})=>r(this.error)),this.promises=[]);let t=this.error;this.error instanceof Se&&(t={message:this.error.message,...this.error.context}),this.wrapperElement.dispatchEvent(new CustomEvent(Gl[this.state],{bubbles:!0,detail:t}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){_(this,or,ee()),this.requestUpdate(!0)}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement}))}onceSettled(){let{error:t,promises:r,state:n}=this;return _e===n?Promise.resolve(this.wrapperElement):he===n?Promise.reject(t):new Promise((o,i)=>{r.push({resolve:o,reject:i})})}toggleResolved(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.state=_e,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),jr(()=>this.notify()),!0)}toggleFailed(t,r,n){if(t!==this.version)return!1;n!==void 0&&(this.options=n),this.error=r,this.state=he,this.update();let o=this.wrapperElement.getAttribute("is");return this.log?.error(`${o}: Failed to render: ${r.message}`,{element:this.wrapperElement,...r.context,...u(this,or)?.duration}),jr(()=>this.notify()),!0}togglePending(t){return this.version++,t&&(this.options=t),this.state=$e,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!ee()||this.timer)return;let{error:r,options:n,state:o,value:i,version:a}=this;this.state=$e,this.timer=jr(async()=>{this.timer=null;let s=null;if(this.changes.size&&(s=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:s}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:s})),s||t)try{await this.wrapperElement.render?.()===!1&&this.state===$e&&this.version===a&&(this.state=o,this.error=r,this.value=i,this.update(),this.notify())}catch(c){this.toggleFailed(this.version,c,n)}})}};or=new WeakMap;function aa(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Kr(e,t={}){let{tag:r,is:n}=e,o=document.createElement(r,{is:n});return o.setAttribute("is",n),Object.assign(o.dataset,aa(t)),o}function Qr(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,aa(t)),e):null}var sa="download",ca="upgrade",la={e:"EDU",t:"TEAM"};function Zr(e,t={},r=""){let n=ee();if(!n)return null;let{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:m,wcsOsi:p,extraOptions:g,analyticsId:b}=n.collectCheckoutOptions(t),E=Kr(e,{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:m,wcsOsi:p,extraOptions:g,analyticsId:b});return r&&(E.innerHTML=`${r}`),E}function Jr(e){return class extends e{constructor(){super(...arguments);f(this,"checkoutActionHandler");f(this,"masElement",new At(this))}attributeChangedCallback(n,o,i){this.masElement.attributeChangedCallback(n,o,i)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.clickHandler)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.clickHandler)}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}get marketSegment(){let n=this.options?.ms??this.value?.[0].marketSegments?.[0];return la[n]??n}get customerSegment(){let n=this.options?.cs??this.value?.[0]?.customerSegment;return la[n]??n}get is3in1Modal(){return Object.values(Ve).includes(this.getAttribute("data-modal"))}get isOpen3in1Modal(){let n=document.querySelector("meta[name=mas-ff-3in1]");return this.is3in1Modal&&(!n||n.content!=="off")}requestUpdate(n=!1){return this.masElement.requestUpdate(n)}static get observedAttributes(){return["data-checkout-workflow","data-checkout-workflow-step","data-extra-options","data-ims-country","data-perpetual","data-promotion-code","data-quantity","data-template","data-wcs-osi","data-entitlement","data-upgrade","data-modal"]}async render(n={}){let o=ee();if(!o)return!1;this.dataset.imsCountry||o.imsCountryPromise.then(d=>{d&&(this.dataset.imsCountry=d)}),n.imsCountry=null;let i=o.collectCheckoutOptions(n,this);if(!i.wcsOsi.length)return!1;let a;try{a=JSON.parse(i.extraOptions??"{}")}catch(d){this.masElement.log?.error("cannot parse exta checkout options",d)}let s=this.masElement.togglePending(i);this.setCheckoutUrl("");let c=o.resolveOfferSelectors(i),l=await Promise.all(c);l=l.map(d=>nr(d,i)),i.country=this.dataset.imsCountry||i.country;let h=await o.buildCheckoutAction?.(l.flat(),{...a,...i},this);return this.renderOffers(l.flat(),i,{},h,s)}renderOffers(n,o,i={},a=void 0,s=void 0){let c=ee();if(!c)return!1;if(o={...JSON.parse(this.dataset.extraOptions??"null"),...o,...i},s??(s=this.masElement.togglePending(o)),this.checkoutActionHandler&&(this.checkoutActionHandler=void 0),a){this.classList.remove(sa,ca),this.masElement.toggleResolved(s,n,o);let{url:h,text:d,className:m,handler:p}=a;h&&this.setCheckoutUrl(h),d&&(this.firstElementChild.innerHTML=d),m&&this.classList.add(...m.split(" ")),p&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=p.bind(this))}if(n.length){if(this.masElement.toggleResolved(s,n,o)){if(!this.classList.contains(sa)&&!this.classList.contains(ca)){let h=c.buildCheckoutURL(n,o);this.setCheckoutUrl(o.modal==="true"?"#":h)}return!0}}else{let h=new Error(`Not provided: ${o?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(s,h,o))return this.setCheckoutUrl("#"),!0}}setCheckoutUrl(){}clickHandler(n){}updateOptions(n={}){let o=ee();if(!o)return!1;let{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:m,quantity:p,wcsOsi:g}=o.collectCheckoutOptions(n);return Qr(this,{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:m,quantity:p,wcsOsi:g}),!0}}}var ir=class ir extends Jr(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return Zr(ir,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};f(ir,"is","checkout-link"),f(ir,"tag","a");var Te=ir;window.customElements.get(Te.is)||window.customElements.define(Te.is,Te,{extends:Te.tag});var Vl="p_draft_landscape",jl="/store/",ql=new Map([["countrySpecific","cs"],["customerSegment","cs"],["quantity","q"],["authCode","code"],["checkoutPromoCode","apc"],["rurl","rUrl"],["curl","cUrl"],["ctxrturl","ctxRtUrl"],["country","co"],["language","lang"],["clientId","cli"],["context","ctx"],["productArrangementCode","pa"],["addonProductArrangementCode","ao"],["offerType","ot"],["marketSegment","ms"]]),wo=new Set(["af","ai","ao","apc","appctxid","cli","co","cs","csm","ctx","ctxRtUrl","DCWATC","dp","fr","gsp","ijt","lang","lo","mal","ms","mv","mv2","nglwfdata","ot","otac","pa","pcid","promoid","q","rf","sc","scl","sdid","sid","spint","svar","th","thm","trackingid","usid","workflowid","context.guid","so.ca","so.su","so.tr","so.va"]),Yl=["env","workflowStep","clientId","country"],ha=e=>ql.get(e)??e;function _o(e,t,r){for(let[n,o]of Object.entries(e)){let i=ha(n);o!=null&&r.has(i)&&t.set(i,o)}}function Wl(e){switch(e){case no.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Xl(e,t){for(let r in e){let n=e[r];for(let[o,i]of Object.entries(n)){if(i==null)continue;let a=ha(o);t.set(`items[${r}][${a}]`,i)}}}function Kl({url:e,modal:t,is3in1:r}){if(!r||!e?.searchParams)return e;e.searchParams.set("rtc","t"),e.searchParams.set("lo","sl");let n=e.searchParams.get("af");return e.searchParams.set("af",[n,"uc_new_user_iframe","uc_new_system_close"].filter(Boolean).join(",")),e.searchParams.get("cli")!=="doc_cloud"&&e.searchParams.set("cli",t===Ve.CRM?"creative":"mini_plans"),e}function da(e){Ql(e);let{env:t,items:r,workflowStep:n,marketSegment:o,customerSegment:i,offerType:a,productArrangementCode:s,landscape:c,modal:l,is3in1:h,preselectPlan:d,...m}=e,p=new URL(Wl(t));if(p.pathname=`${jl}${n}`,n!==J.SEGMENTATION&&n!==J.CHANGE_PLAN_TEAM_PLANS&&Xl(r,p.searchParams),_o({...m},p.searchParams,wo),c===Ie.DRAFT&&_o({af:Vl},p.searchParams,wo),n===J.SEGMENTATION){let g={marketSegment:o,offerType:a,customerSegment:i,productArrangementCode:s,quantity:r?.[0]?.quantity,addonProductArrangementCode:s?r?.find(b=>b.productArrangementCode!==s)?.productArrangementCode:r?.[1]?.productArrangementCode};d?.toLowerCase()==="edu"?p.searchParams.set("ms","EDU"):d?.toLowerCase()==="team"&&p.searchParams.set("cs","TEAM"),_o(g,p.searchParams,wo),p.searchParams.get("ot")==="PROMOTION"&&p.searchParams.delete("ot"),p=Kl({url:p,modal:l,is3in1:h})}return p.toString()}function Ql(e){for(let t of Yl)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==J.SEGMENTATION&&e.workflowStep!==J.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}var L=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflowStep:J.EMAIL,country:"US",displayOldPrice:!1,displayPerUnit:!0,displayRecurrence:!0,displayTax:!1,displayPlanType:!1,env:ue.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,alternativePrice:!1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:Ie.PUBLISHED});function pa({settings:e}){function t(o,i){let{checkoutClientId:a,checkoutWorkflowStep:s,country:c,language:l,promotionCode:h,quantity:d,preselectPlan:m}=e,{checkoutMarketSegment:p,checkoutWorkflowStep:g=s,imsCountry:b,country:E=b??c,language:R=l,quantity:P=d,entitlement:y,upgrade:O,modal:k,perpetual:D,promotionCode:B=h,wcsOsi:K,extraOptions:U,...j}=Object.assign({},i?.dataset??{},o??{}),G=tr(g,J,L.checkoutWorkflowStep);return er({...j,extraOptions:U,checkoutClientId:a,checkoutMarketSegment:p,country:E,quantity:Et(P,L.quantity),checkoutWorkflowStep:G,language:R,entitlement:A(y),upgrade:A(O),modal:k,perpetual:A(D),promotionCode:Vr(B).effectivePromoCode,wcsOsi:qr(K),preselectPlan:m})}function r(o,i){if(!Array.isArray(o)||!o.length||!i)return"";let{env:a,landscape:s}=e,{checkoutClientId:c,checkoutMarketSegment:l,checkoutWorkflowStep:h,country:d,promotionCode:m,quantity:p,preselectPlan:g,ms:b,cs:E,...R}=t(i),P=document.querySelector("meta[name=mas-ff-3in1]"),y=Object.values(Ve).includes(i.modal)&&(!P||P.content!=="off"),O=window.frameElement||y?"if":"fp",[{productArrangementCode:k,marketSegments:[D],customerSegment:B,offerType:K}]=o,U=b??D??l,j=E??B;g?.toLowerCase()==="edu"?U="EDU":g?.toLowerCase()==="team"&&(j="TEAM");let G={is3in1:y,checkoutPromoCode:m,clientId:c,context:O,country:d,env:a,items:[],marketSegment:U,customerSegment:j,offerType:K,productArrangementCode:k,workflowStep:h,landscape:s,...R},Me=p[0]>1?p[0]:void 0;if(o.length===1){let{offerId:Ee}=o[0];G.items.push({id:Ee,quantity:Me})}else G.items.push(...o.map(({offerId:Ee,productArrangementCode:ut})=>({id:Ee,quantity:Me,...y?{productArrangementCode:ut}:{}})));return da(G)}let{createCheckoutLink:n}=Te;return{CheckoutLink:Te,CheckoutWorkflowStep:J,buildCheckoutURL:r,collectCheckoutOptions:t,createCheckoutLink:n}}function Zl({interval:e=200,maxAttempts:t=25}={}){let r=ie.module("ims");return new Promise(n=>{r.debug("Waing for IMS to be ready");let o=0;function i(){window.adobeIMS?.initialized?n():++o>t?(r.debug("Timeout"),n()):setTimeout(i,e)}i()})}function Jl(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function eh(e){let t=ie.module("ims");return e.then(r=>r?window.adobeIMS.getProfile().then(({countryCode:n})=>(t.debug("Got user country:",n),n),n=>{t.error("Unable to get user country:",n)}):null)}function ma({}){let e=Zl(),t=Jl(e),r=eh(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}var ua=window.masPriceLiterals;function fa(e){if(Array.isArray(ua)){let t=n=>ua.find(o=>ao(o.lang,n)),r=t(e.language)??t(L.language);if(r)return Object.freeze(r)}return{}}var So=function(e,t){return So=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},So(e,t)};function ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");So(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var T=function(){return T=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0}),r=[],n=0,o=t;n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(nh,function(c,l,h,d,m,p){if(l)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Sa.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(ya.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ya,function(c,l,h,d,m,p){return h==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&p?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+p.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=o.options[0];i==="w"?t=T(T({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=T(T({},t),Ea(i)));continue}if(_a.test(o.stem)){t=T(T({},t),Ea(o.stem));continue}var a=Ta(o.stem);a&&(t=T(T({},t),a));var s=oh(o.stem);s&&(t=T(T({},t),s))}return t}var cr={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Pa(e,t){for(var r="",n=0;n>1),c="a",l=ih(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=l+r}else o==="J"?r+="H":r+=o}return r}function ih(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=cr[n||""]||cr[r||""]||cr["".concat(r,"-001")]||cr["001"];return o[0]}var Po,ah=new RegExp("^".concat(Co.source,"*")),sh=new RegExp("".concat(Co.source,"*$"));function C(e,t){return{start:e,end:t}}var ch=!!String.prototype.startsWith,lh=!!String.fromCodePoint,hh=!!Object.fromEntries,dh=!!String.prototype.codePointAt,ph=!!String.prototype.trimStart,mh=!!String.prototype.trimEnd,uh=!!Number.isSafeInteger,fh=uh?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ko=!0;try{La=Na("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),ko=((Po=La.exec("a"))===null||Po===void 0?void 0:Po[0])==="a"}catch{ko=!1}var La,ka=ch?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ro=lh?String.fromCodePoint:function(){for(var t=[],r=0;ri;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},Ra=hh?Object.fromEntries:function(t){for(var r={},n=0,o=t;n=n)){var o=t.charCodeAt(r),i;return o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},gh=ph?function(t){return t.trimStart()}:function(t){return t.replace(ah,"")},xh=mh?function(t){return t.trimEnd()}:function(t){return t.replace(sh,"")};function Na(e,t){return new RegExp(e,t)}var Oo;ko?(Lo=Na("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Oo=function(t,r){var n;Lo.lastIndex=r;var o=Lo.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}):Oo=function(t,r){for(var n=[];;){var o=Oa(t,r);if(o===void 0||$a(o)||yh(o))break;n.push(o),r+=o>=65536?2:1}return Ro.apply(void 0,n)};var Lo,Ma=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:$.pound,location:C(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(S.UNMATCHED_CLOSING_TAG,C(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&No(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$.literal,value:"<".concat(o,"/>"),location:C(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:$.tag,value:o,children:a,location:C(n,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,C(s,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,C(n,this.clonePosition()))}else return this.error(S.INVALID_TAG,C(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&vh(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){o+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var c=C(n,this.clonePosition());return{val:{type:$.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!bh(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Ro.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Ro(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,C(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(S.MALFORMED_ARGUMENT,C(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$.argument,value:o,location:C(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(S.MALFORMED_ARGUMENT,C(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Oo(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=C(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,C(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=xh(d.val);if(m.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,C(this.clonePosition(),this.clonePosition()));var p=C(h,this.clonePosition());l={style:m,styleLocation:p}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var b=C(o,this.clonePosition());if(l&&ka(l?.style,"::",0)){var E=gh(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(E,l.styleLocation);return d.err?d:{val:{type:$.number,value:n,location:b,style:d.val},err:null}}else{if(E.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,b);var R=E;this.locale&&(R=Pa(E,this.locale));var m={type:We.dateTime,pattern:R,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ba(R):{}},P=s==="date"?$.date:$.time;return{val:{type:P,value:n,location:b,style:m},err:null}}}return{val:{type:s==="number"?$.number:s==="date"?$.date:$.time,value:n,location:b,style:(i=l?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,C(y,T({},y)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),O=this.parseIdentifierIfPossible(),k=d.val}var D=this.tryParsePluralOrSelectOptions(t,s,r,O);if(D.err)return D;var g=this.tryParseArgumentClose(o);if(g.err)return g;var B=C(o,this.clonePosition());return s==="select"?{val:{type:$.select,value:n,options:Ra(D.val),location:B},err:null}:{val:{type:$.plural,value:n,options:Ra(D.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:B},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,C(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,C(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=wa(t)}catch{return this.error(S.INVALID_NUMBER_SKELETON,r)}return{val:{type:We.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ca(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,a=!1,s=[],c=new Set,l=o.value,h=o.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=C(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,C(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var b=this.tryParseArgumentClose(p);if(b.err)return b;s.push([l,{value:g.val,location:C(p,this.clonePosition())}]),c.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,h=i.location}return s.length===0?this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,C(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(S.MISSING_OTHER_CLAUSE,C(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var c=C(o,this.clonePosition());return i?(a*=n,fh(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Oa(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(ka(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&$a(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function No(e){return e>=97&&e<=122||e>=65&&e<=90}function bh(e){return No(e)||e===47}function vh(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function $a(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function yh(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Mo(e){e.forEach(function(t){if(delete t.location,on(t)||an(t))for(var r in t.options)delete t.options[r].location,Mo(t.options[r].value);else tn(t)&&cn(t.style)||(rn(t)||nn(t))&&sr(t.style)?delete t.style.location:sn(t)&&Mo(t.children)})}function Ia(e,t){t===void 0&&(t={}),t=T({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ma(e,t).parse();if(r.err){var n=SyntaxError(S[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||Mo(r.val),r.val}function lr(e,t){var r=t&&t.cache?t.cache:Th,n=t&&t.serializer?t.serializer:Sh,o=t&&t.strategy?t.strategy:Ah;return o(e,{cache:r,serializer:n})}function Eh(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ha(e,t,r,n){var o=Eh(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function Ua(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function $o(e,t,r,n,o){return r.bind(t,e,n,o)}function Ah(e,t){var r=e.length===1?Ha:Ua;return $o(e,this,r,t.cache.create(),t.serializer)}function wh(e,t){return $o(e,this,Ua,t.cache.create(),t.serializer)}function _h(e,t){return $o(e,this,Ha,t.cache.create(),t.serializer)}var Sh=function(){return JSON.stringify(arguments)};function Io(){this.cache=Object.create(null)}Io.prototype.get=function(e){return this.cache[e]};Io.prototype.set=function(e,t){this.cache[e]=t};var Th={create:function(){return new Io}},ln={variadic:wh,monadic:_h};var Xe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Xe||(Xe={}));var hr=function(e){ar(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var Ho=function(e){ar(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Xe.INVALID_VALUE,i)||this}return t}(hr);var Da=function(e){ar(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Xe.INVALID_VALUE,o)||this}return t}(hr);var Ba=function(e){ar(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Xe.MISSING_VALUE,n)||this}return t}(hr);var Z;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Z||(Z={}));function Ch(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Z.literal||r.type!==Z.literal?t.push(r):n.value+=r.value,t},[])}function Ph(e){return typeof e=="function"}function dr(e,t,r,n,o,i,a){if(e.length===1&&To(e[0]))return[{type:Z.literal,value:e[0].value}];for(var s=[],c=0,l=e;c{throw TypeError(e)};var nl=(e,t,r)=>t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var il=(e,t)=>{for(var r in t)Bi(e,r,{get:t[r],enumerable:!0})};var f=(e,t,r)=>nl(e,typeof t!="symbol"?t+"":t,r),zo=(e,t,r)=>t.has(e)||zi("Cannot "+r);var u=(e,t,r)=>(zo(e,t,"read from private field"),r?r.call(e):t.get(e)),w=(e,t,r)=>t.has(e)?zi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_=(e,t,r,o)=>(zo(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r),oe=(e,t,r)=>(zo(e,t,"access private method"),r);var Fi=(e,t,r,o)=>({set _(n){_(e,t,n,r)},get _(){return u(e,t,o)}});(function(){let r={clientId:"",endpoint:"https://www.adobe.com/lana/ll",endpointStage:"https://www.stage.adobe.com/lana/ll",errorType:"e",sampleRate:1,tags:"",implicitSampleRate:1,useProd:!0,isProdDomain:!1},o=new Set(["d","debug","i","info","w","warn","e","error","c","critical"]),n=window;function i(){let{host:d}=window.location;return d.substring(d.length-10)===".adobe.com"&&d.substring(d.length-15)!==".corp.adobe.com"&&d.substring(d.length-16)!==".stage.adobe.com"}function a(d,m){d||(d={}),m||(m={});function p(g){return d[g]!==void 0?d[g]:m[g]!==void 0?m[g]:r[g]}return Object.keys(r).reduce((g,b)=>(g[b]=p(b),g),{})}function s(){return n.location.search.toLowerCase().indexOf("lanadebug")!==-1}function c(){return n.location.host.toLowerCase().indexOf("localhost")!==-1}function l(d,m){d=d&&d.stack?d.stack:d||"",d.length>2e3&&(d=`${d.slice(0,2e3)}`);let p=a(m,n.lana.options);if(!p.clientId){console.warn("LANA ClientID is not set in options.");return}let g;if(m&&m.severity!==void 0)if(o.has(m.severity))g=m.severity;else{let k=s()||n.lana.debug?"d":"i";console.warn(`LANA: Invalid severity '${m.severity}'. Defaulting to '${k}'.`),g=k}else n.lana.debug&&(g="d");let E=parseInt(new URL(window.location).searchParams.get("lana-sample"),10)||(p.errorType==="i"?p.implicitSampleRate:p.sampleRate);if(!n.lana.debug&&!n.lana.localhost&&E<=Math.random()*100)return;let R=i()||p.isProdDomain,P=!R||!p.useProd?p.endpointStage:p.endpoint,y=[`m=${encodeURIComponent(d)}`,`c=${encodeURI(p.clientId)}`,`s=${E}`,`t=${encodeURI(p.errorType)}`];if(g&&y.push(`r=${encodeURI(g)}`),p.tags&&y.push(`tags=${encodeURI(p.tags)}`),(!R||n.lana.debug||n.lana.localhost)&&console.log("LANA Msg: ",d,` +Opts:`,p),!n.lana.localhost||n.lana.debug){let O=new XMLHttpRequest;return n.lana.debug&&(y.push("d"),O.addEventListener("load",()=>{console.log("LANA response:",O.responseText)})),O.open("GET",`${P}?${y.join("&")}`),O.send(),O}}function h(d){l(d.reason||d.error||d.message,{errorType:"i"})}n.lana={debug:!1,log:l,options:a(n.lana&&n.lana.options)},s()&&(n.lana.debug=!0),c()&&(n.lana.localhost=!0),n.addEventListener("error",h),n.addEventListener("unhandledrejection",h)})();var sn={};il(sn,{CLASS_NAME_FAILED:()=>qo,CLASS_NAME_HIDDEN:()=>sl,CLASS_NAME_PENDING:()=>Yo,CLASS_NAME_RESOLVED:()=>Wo,CheckoutWorkflow:()=>Gi,CheckoutWorkflowStep:()=>J,Commitment:()=>ze,ERROR_MESSAGE_BAD_REQUEST:()=>Xo,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>gl,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>Ko,EVENT_AEM_ERROR:()=>Ge,EVENT_AEM_LOAD:()=>Fe,EVENT_MAS_ERROR:()=>jo,EVENT_MAS_READY:()=>Vo,EVENT_MERCH_ADDON_AND_QUANTITY_UPDATE:()=>Br,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>Fo,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>ul,EVENT_MERCH_CARD_COLLECTION_SORT:()=>ml,EVENT_MERCH_CARD_QUANTITY_CHANGE:()=>bt,EVENT_MERCH_OFFER_READY:()=>xt,EVENT_MERCH_OFFER_SELECT_READY:()=>Kt,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>_e,EVENT_MERCH_SEARCH_CHANGE:()=>pl,EVENT_MERCH_SIDENAV_SELECT:()=>fl,EVENT_MERCH_STOCK_CHANGE:()=>hl,EVENT_MERCH_STORAGE_CHANGE:()=>dl,EVENT_OFFER_SELECTED:()=>Go,EVENT_TYPE_FAILED:()=>Qo,EVENT_TYPE_READY:()=>Dr,EVENT_TYPE_RESOLVED:()=>vt,Env:()=>fe,FF_DEFAULTS:()=>Zt,HEADER_X_REQUEST_ID:()=>Qt,LOG_NAMESPACE:()=>Zo,Landscape:()=>Ie,MARK_DURATION_SUFFIX:()=>qe,MARK_START_SUFFIX:()=>je,MODAL_TYPE_3_IN_1:()=>Ve,NAMESPACE:()=>al,PARAM_AOS_API_KEY:()=>xl,PARAM_ENV:()=>en,PARAM_LANDSCAPE:()=>tn,PARAM_MAS_PREVIEW:()=>Jo,PARAM_WCS_API_KEY:()=>bl,PROVIDER_ENVIRONMENT:()=>nn,SELECTOR_MAS_CHECKOUT_LINK:()=>we,SELECTOR_MAS_ELEMENT:()=>Xt,SELECTOR_MAS_INLINE_PRICE:()=>Q,SELECTOR_MAS_SP_BUTTON:()=>ll,STATE_FAILED:()=>he,STATE_PENDING:()=>$e,STATE_RESOLVED:()=>Se,TAG_NAME_SERVICE:()=>cl,TEMPLATE_PRICE:()=>vl,TEMPLATE_PRICE_ANNUAL:()=>El,TEMPLATE_PRICE_LEGAL:()=>an,TEMPLATE_PRICE_STRIKETHROUGH:()=>yl,Term:()=>se,WCS_PROD_URL:()=>rn,WCS_STAGE_URL:()=>on});var ze=Object.freeze({MONTH:"MONTH",YEAR:"YEAR",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",PERPETUAL:"PERPETUAL",TERM_LICENSE:"TERM_LICENSE",ACCESS_PASS:"ACCESS_PASS",THREE_MONTHS:"THREE_MONTHS",SIX_MONTHS:"SIX_MONTHS"}),se=Object.freeze({ANNUAL:"ANNUAL",MONTHLY:"MONTHLY",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",P1D:"P1D",P1Y:"P1Y",P3Y:"P3Y",P10Y:"P10Y",P15Y:"P15Y",P3D:"P3D",P7D:"P7D",P30D:"P30D",HALF_YEARLY:"HALF_YEARLY",QUARTERLY:"QUARTERLY"}),al="merch",sl="hidden",Dr="wcms:commerce:ready",cl="mas-commerce-service",Q='span[is="inline-price"][data-wcs-osi]',we='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]',ll="sp-button[data-wcs-osi]",Xt=`${Q},${we}`,xt="merch-offer:ready",Kt="merch-offer-select:ready",Fo="merch-card:action-menu-toggle",Go="merch-offer:selected",hl="merch-stock:change",dl="merch-storage:change",_e="merch-quantity-selector:change",bt="merch-card-quantity:change",Br="merch-modal:addon-and-quantity-update",pl="merch-search:change",ml="merch-card-collection:sort",ul="merch-card-collection:showmore",fl="merch-sidenav:select",Fe="aem:load",Ge="aem:error",Vo="mas:ready",jo="mas:error",qo="placeholder-failed",Yo="placeholder-pending",Wo="placeholder-resolved",Xo="Bad WCS request",Ko="Commerce offer not found",gl="Literals URL not provided",Qo="mas:failed",vt="mas:resolved",Zo="mas/commerce",Jo="mas.preview",en="commerce.env",tn="commerce.landscape",xl="commerce.aosKey",bl="commerce.wcsKey",rn="https://www.adobe.com/web_commerce_artifact",on="https://www.stage.adobe.com/web_commerce_artifact_stage",he="failed",$e="pending",Se="resolved",Ie={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},Qt="X-Request-Id",J=Object.freeze({SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"}),Gi="UCv3",fe=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"}),nn={PRODUCTION:"PRODUCTION"},Ve={TWP:"twp",D2P:"d2p",CRM:"crm"},je=":start",qe=":duration",vl="price",yl="price-strikethrough",El="annual",an="legal",Zt="mas-ff-defaults";var Vi="tacocat.js";var cn=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),ji=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function N(e,t={},{metadata:r=!0,search:o=!0,storage:n=!0}={}){let i;if(o&&i==null){let a=new URLSearchParams(window.location.search),s=yt(o)?o:e;i=a.get(s)}if(n&&i==null){let a=yt(n)?n:e;i=window.sessionStorage.getItem(a)??window.localStorage.getItem(a)}if(r&&i==null){let a=wl(yt(r)?r:e);i=document.documentElement.querySelector(`meta[name="${a}"]`)?.content}return i??t[e]}var Al=e=>typeof e=="boolean",zr=e=>typeof e=="function",Fr=e=>typeof e=="number",qi=e=>e!=null&&typeof e=="object";var yt=e=>typeof e=="string",Yi=e=>yt(e)&&e,Jt=e=>Fr(e)&&Number.isFinite(e)&&e>0;function er(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,o])=>{t(o)&&delete e[r]}),e}function A(e,t){if(Al(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function tr(e,t,r){let o=Object.values(t);return o.find(n=>cn(n,e))??r??o[0]}function wl(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,o)=>`${r}-${o}`).replace(/\W+/gu,"-").toLowerCase()}function Wi(e,t=1){return Fr(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var _l=Date.now(),ln=()=>`(+${Date.now()-_l}ms)`,Gr=new Set,Sl=A(N("tacocat.debug",{},{metadata:!1}),!1);function Xi(e){let t=`[${Vi}/${e}]`,r=(a,s,...c)=>a?!0:(n(s,...c),!1),o=Sl?(a,...s)=>{console.debug(`${t} ${a}`,...s,ln())}:()=>{},n=(a,...s)=>{let c=`${t} ${a}`;Gr.forEach(([l])=>l(c,...s))};return{assert:r,debug:o,error:n,warn:(a,...s)=>{let c=`${t} ${a}`;Gr.forEach(([,l])=>l(c,...s))}}}function Tl(e,t){let r=[e,t];return Gr.add(r),()=>{Gr.delete(r)}}Tl((e,...t)=>{console.error(e,...t,ln())},(e,...t)=>{console.warn(e,...t,ln())});var Cl="no promo",Ki="promo-tag",Pl="yellow",Ll="neutral",kl=(e,t,r)=>{let o=i=>i||Cl,n=r?` (was "${o(t)}")`:"";return`${o(e)}${n}`},Rl="cancel-context",Vr=(e,t)=>{let r=e===Rl,o=!r&&e?.length>0,n=(o||r)&&(t&&t!=e||!t&&!r),i=n&&o||!n&&!!t,a=i?e||t:void 0;return{effectivePromoCode:a,overridenPromoCode:e,className:i?Ki:`${Ki} no-promo`,text:kl(a,t,n),variant:i?Pl:Ll,isOverriden:n}};var hn;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(hn||(hn={}));var ne;(function(e){e.MONTH="MONTH",e.YEAR="YEAR",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.PERPETUAL="PERPETUAL",e.TERM_LICENSE="TERM_LICENSE",e.ACCESS_PASS="ACCESS_PASS",e.THREE_MONTHS="THREE_MONTHS",e.SIX_MONTHS="SIX_MONTHS"})(ne||(ne={}));var ce;(function(e){e.ANNUAL="ANNUAL",e.MONTHLY="MONTHLY",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.P1D="P1D",e.P1Y="P1Y",e.P3Y="P3Y",e.P10Y="P10Y",e.P15Y="P15Y",e.P3D="P3D",e.P7D="P7D",e.P30D="P30D",e.HALF_YEARLY="HALF_YEARLY",e.QUARTERLY="QUARTERLY"})(ce||(ce={}));var dn;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(dn||(dn={}));var pn;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(pn||(pn={}));var mn;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(mn||(mn={}));var un;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(un||(un={}));var fn="ABM",gn="PUF",xn="M2M",bn="PERPETUAL",vn="P3Y",Ol="TAX_INCLUSIVE_DETAILS",Nl="TAX_EXCLUSIVE",Qi={ABM:fn,PUF:gn,M2M:xn,PERPETUAL:bn,P3Y:vn},lp={[fn]:{commitment:ne.YEAR,term:ce.MONTHLY},[gn]:{commitment:ne.YEAR,term:ce.ANNUAL},[xn]:{commitment:ne.MONTH,term:ce.MONTHLY},[bn]:{commitment:ne.PERPETUAL,term:void 0},[vn]:{commitment:ne.THREE_MONTHS,term:ce.P3Y}},Zi="Value is not an offer",rr=e=>{if(typeof e!="object")return Zi;let{commitment:t,term:r}=e,o=Ml(t,r);return{...e,planType:o}};var Ml=(e,t)=>{switch(e){case void 0:return Zi;case"":return"";case ne.YEAR:return t===ce.MONTHLY?fn:t===ce.ANNUAL?gn:"";case ne.MONTH:return t===ce.MONTHLY?xn:"";case ne.PERPETUAL:return bn;case ne.TERM_LICENSE:return t===ce.P3Y?vn:"";default:return""}};function Ji(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:o,priceWithoutTax:n,priceWithoutDiscountAndTax:i,taxDisplay:a}=t;if(a!==Ol)return e;let s={...e,priceDetails:{...t,price:n??r,priceWithoutDiscount:i??o,taxDisplay:Nl}};return s.offerType==="TRIAL"&&s.priceDetails.price===0&&(s.priceDetails.price=s.priceDetails.priceWithoutDiscount),s}var $l="mas-commerce-service",Il={requestId:Qt,etag:"Etag",lastModified:"Last-Modified",serverTiming:"server-timing"};function or(e,{country:t,forceTaxExclusive:r,perpetual:o}){let n;if(e.length<2)n=e;else{let i=t==="GB"?"EN":"MULT";e.sort((a,s)=>a.language===i?-1:s.language===i?1:0),e.sort((a,s)=>a.term?1:s.term?-1:0),n=[e[0]]}return r&&(n=n.map(Ji)),n}var jr=e=>window.setTimeout(e);function Et(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(Wi).filter(Jt);return r.length||(r=[t]),r}function qr(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(Yi)}function ee(){return document.getElementsByTagName($l)?.[0]}function Yr(e){let t={};if(!e?.headers)return t;let r=e.headers;for(let[o,n]of Object.entries(Il)){let i=r.get(n);i&&(i=i.replace(/[,;]/g,"|"),i=i.replace(/[| ]+/g,"|"),t[o]=i)}return t}var Ye={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals","element"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},ea=1e3;function Hl(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function ta(e){if(e==null)return;let t=typeof e;if(t==="function")return e.name?`function ${e.name}`:"function";if(t==="object"){if(e instanceof Error)return e.message;if(typeof e.originatingRequest=="string"){let{message:o,originatingRequest:n,status:i}=e;return[o,i,n].filter(Boolean).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!Ye.serializableTypes.includes(r))return r}return e}function Ul(e,t){if(!Ye.ignoredProperties.includes(e))return ta(t)}var yn={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,o=[],n=[],i=t;r.forEach(l=>{l!=null&&(Hl(l)?o:n).push(l)}),o.length&&(i+=" "+o.map(ta).join(" "));let{pathname:a,search:s}=window.location,c=`${Ye.delimiter}page=${a}${s}`;c.length>ea&&(c=`${c.slice(0,ea)}`),i+=c,n.length&&(i+=`${Ye.delimiter}facts=`,i+=JSON.stringify(n,Ul)),window.lana?.log(i,Ye)}};function Wr(e){Object.assign(Ye,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in Ye&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var ra={LOCAL:"local",PROD:"prod",STAGE:"stage"},En={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},An=new Set,wn=new Set,oa=new Map,na={append({level:e,message:t,params:r,timestamp:o,source:n}){console[e](`${o}ms [${n}] %c${t}`,"font-weight: bold;",...r)}},ia={filter:({level:e})=>e!==En.DEBUG},Dl={filter:()=>!1};function Bl(e,t,r,o,n){return{level:e,message:t,namespace:r,get params(){return o.length===1&&zr(o[0])&&(o=o[0](),Array.isArray(o)||(o=[o])),o},source:n,timestamp:performance.now().toFixed(3)}}function zl(e){[...wn].every(t=>t(e))&&An.forEach(t=>t(e))}function aa(e){let t=(oa.get(e)??0)+1;oa.set(e,t);let r=`${e} #${t}`,o={id:r,namespace:e,module:n=>aa(`${o.namespace}/${n}`),updateConfig:Wr};return Object.values(En).forEach(n=>{o[n]=(i,...a)=>zl(Bl(n,i,e,a,r))}),Object.seal(o)}function Xr(...e){e.forEach(t=>{let{append:r,filter:o}=t;zr(o)&&wn.add(o),zr(r)&&An.add(r)})}function Fl(e={}){let{name:t}=e,r=A(N("commerce.debug",{search:!0,storage:!0}),t===ra.LOCAL);return Xr(r?na:ia),t===ra.PROD&&Xr(yn),ie}function Gl(){An.clear(),wn.clear()}var ie={...aa(Zo),Level:En,Plugins:{consoleAppender:na,debugFilter:ia,quietFilter:Dl,lanaAppender:yn},init:Fl,reset:Gl,use:Xr};var Te=class e extends Error{constructor(t,r,o){if(super(t,{cause:o}),this.name="MasError",r.response){let n=r.response.headers?.get(Qt);n&&(r.requestId=n),r.response.status&&(r.status=r.response.status,r.statusText=r.response.statusText),r.response.url&&(r.url=r.response.url)}delete r.response,this.context=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}toString(){let t=Object.entries(this.context||{}).map(([o,n])=>`${o}: ${JSON.stringify(n)}`).join(", "),r=`${this.name}: ${this.message}`;return t&&(r+=` (${t})`),this.cause&&(r+=` +Caused by: ${this.cause}`),r}};var Vl={[he]:qo,[$e]:Yo,[Se]:Wo},jl={[he]:Qo,[Se]:vt},nr,At=class{constructor(t){w(this,nr);f(this,"changes",new Map);f(this,"connected",!1);f(this,"error");f(this,"log");f(this,"options");f(this,"promises",[]);f(this,"state",$e);f(this,"timer",null);f(this,"value");f(this,"version",0);f(this,"wrapperElement");this.wrapperElement=t,this.log=ie.module("mas-element")}update(){[he,$e,Se].forEach(t=>{this.wrapperElement.classList.toggle(Vl[t],t===this.state)})}notify(){(this.state===Se||this.state===he)&&(this.state===Se?this.promises.forEach(({resolve:r})=>r(this.wrapperElement)):this.state===he&&this.promises.forEach(({reject:r})=>r(this.error)),this.promises=[]);let t=this.error;this.error instanceof Te&&(t={message:this.error.message,...this.error.context}),this.wrapperElement.dispatchEvent(new CustomEvent(jl[this.state],{bubbles:!0,detail:t}))}attributeChangedCallback(t,r,o){this.changes.set(t,o),this.requestUpdate()}connectedCallback(){_(this,nr,ee()),this.requestUpdate(!0)}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement}))}onceSettled(){let{error:t,promises:r,state:o}=this;return Se===o?Promise.resolve(this.wrapperElement):he===o?Promise.reject(t):new Promise((n,i)=>{r.push({resolve:n,reject:i})})}toggleResolved(t,r,o){return t!==this.version?!1:(o!==void 0&&(this.options=o),this.state=Se,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),jr(()=>this.notify()),!0)}toggleFailed(t,r,o){if(t!==this.version)return!1;o!==void 0&&(this.options=o),this.error=r,this.state=he,this.update();let n=this.wrapperElement.getAttribute("is");return this.log?.error(`${n}: Failed to render: ${r.message}`,{element:this.wrapperElement,...r.context,...u(this,nr)?.duration}),jr(()=>this.notify()),!0}togglePending(t){return this.version++,t&&(this.options=t),this.state=$e,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!ee()||this.timer)return;let{error:r,options:o,state:n,value:i,version:a}=this;this.state=$e,this.timer=jr(async()=>{this.timer=null;let s=null;if(this.changes.size&&(s=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:s}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:s})),s||t)try{await this.wrapperElement.render?.()===!1&&this.state===$e&&this.version===a&&(this.state=n,this.error=r,this.value=i,this.update(),this.notify())}catch(c){this.toggleFailed(this.version,c,o)}})}};nr=new WeakMap;function sa(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Kr(e,t={}){let{tag:r,is:o}=e,n=document.createElement(r,{is:o});return n.setAttribute("is",o),Object.assign(n.dataset,sa(t)),n}function Qr(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,sa(t)),e):null}var ca="download",la="upgrade",ha={e:"EDU",t:"TEAM"};function Zr(e,t={},r=""){let o=ee();if(!o)return null;let{checkoutMarketSegment:n,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:m,wcsOsi:p,extraOptions:g,analyticsId:b}=o.collectCheckoutOptions(t),E=Kr(e,{checkoutMarketSegment:n,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:m,wcsOsi:p,extraOptions:g,analyticsId:b});return r&&(E.innerHTML=`${r}`),E}function Jr(e){return class extends e{constructor(){super(...arguments);f(this,"checkoutActionHandler");f(this,"masElement",new At(this))}attributeChangedCallback(o,n,i){this.masElement.attributeChangedCallback(o,n,i)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.clickHandler)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.clickHandler)}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}get marketSegment(){let o=this.options?.ms??this.value?.[0].marketSegments?.[0];return ha[o]??o}get customerSegment(){let o=this.options?.cs??this.value?.[0]?.customerSegment;return ha[o]??o}get is3in1Modal(){return Object.values(Ve).includes(this.getAttribute("data-modal"))}get isOpen3in1Modal(){let o=document.querySelector("meta[name=mas-ff-3in1]");return this.is3in1Modal&&(!o||o.content!=="off")}requestUpdate(o=!1){return this.masElement.requestUpdate(o)}static get observedAttributes(){return["data-checkout-workflow","data-checkout-workflow-step","data-extra-options","data-ims-country","data-perpetual","data-promotion-code","data-quantity","data-template","data-wcs-osi","data-entitlement","data-upgrade","data-modal"]}async render(o={}){let n=ee();if(!n)return!1;this.dataset.imsCountry||n.imsCountryPromise.then(d=>{d&&(this.dataset.imsCountry=d)}),o.imsCountry=null;let i=n.collectCheckoutOptions(o,this);if(!i.wcsOsi.length)return!1;let a;try{a=JSON.parse(i.extraOptions??"{}")}catch(d){this.masElement.log?.error("cannot parse exta checkout options",d)}let s=this.masElement.togglePending(i);this.setCheckoutUrl("");let c=n.resolveOfferSelectors(i),l=await Promise.all(c);l=l.map(d=>or(d,i)),i.country=this.dataset.imsCountry||i.country;let h=await n.buildCheckoutAction?.(l.flat(),{...a,...i},this);return this.renderOffers(l.flat(),i,{},h,s)}renderOffers(o,n,i={},a=void 0,s=void 0){let c=ee();if(!c)return!1;if(n={...JSON.parse(this.dataset.extraOptions??"null"),...n,...i},s??(s=this.masElement.togglePending(n)),this.checkoutActionHandler&&(this.checkoutActionHandler=void 0),a){this.classList.remove(ca,la),this.masElement.toggleResolved(s,o,n);let{url:h,text:d,className:m,handler:p}=a;h&&this.setCheckoutUrl(h),d&&(this.firstElementChild.innerHTML=d),m&&this.classList.add(...m.split(" ")),p&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=p.bind(this))}if(o.length){if(this.masElement.toggleResolved(s,o,n)){if(!this.classList.contains(ca)&&!this.classList.contains(la)){let h=c.buildCheckoutURL(o,n);this.setCheckoutUrl(n.modal==="true"?"#":h)}return!0}}else{let h=new Error(`Not provided: ${n?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(s,h,n))return this.setCheckoutUrl("#"),!0}}setCheckoutUrl(){}clickHandler(o){}updateOptions(o={}){let n=ee();if(!n)return!1;let{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:m,quantity:p,wcsOsi:g}=n.collectCheckoutOptions(o);return Qr(this,{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:m,quantity:p,wcsOsi:g}),!0}}}var ir=class ir extends Jr(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return Zr(ir,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};f(ir,"is","checkout-link"),f(ir,"tag","a");var Ce=ir;window.customElements.get(Ce.is)||window.customElements.define(Ce.is,Ce,{extends:Ce.tag});var ql="p_draft_landscape",Yl="/store/",Wl=new Map([["countrySpecific","cs"],["customerSegment","cs"],["quantity","q"],["authCode","code"],["checkoutPromoCode","apc"],["rurl","rUrl"],["curl","cUrl"],["ctxrturl","ctxRtUrl"],["country","co"],["language","lang"],["clientId","cli"],["context","ctx"],["productArrangementCode","pa"],["addonProductArrangementCode","ao"],["offerType","ot"],["marketSegment","ms"]]),_n=new Set(["af","ai","ao","apc","appctxid","cli","co","cs","csm","ctx","ctxRtUrl","DCWATC","dp","fr","gsp","ijt","lang","lo","mal","ms","mv","mv2","nglwfdata","ot","otac","pa","pcid","promoid","q","rf","sc","scl","sdid","sid","spint","svar","th","thm","trackingid","usid","workflowid","context.guid","so.ca","so.su","so.tr","so.va"]),Xl=["env","workflowStep","clientId","country"],da=e=>Wl.get(e)??e;function Sn(e,t,r){for(let[o,n]of Object.entries(e)){let i=da(o);n!=null&&r.has(i)&&t.set(i,n)}}function Kl(e){switch(e){case nn.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Ql(e,t){for(let r in e){let o=e[r];for(let[n,i]of Object.entries(o)){if(i==null)continue;let a=da(n);t.set(`items[${r}][${a}]`,i)}}}function Zl({url:e,modal:t,is3in1:r}){if(!r||!e?.searchParams)return e;e.searchParams.set("rtc","t"),e.searchParams.set("lo","sl");let o=e.searchParams.get("af");return e.searchParams.set("af",[o,"uc_new_user_iframe","uc_new_system_close"].filter(Boolean).join(",")),e.searchParams.get("cli")!=="doc_cloud"&&e.searchParams.set("cli",t===Ve.CRM?"creative":"mini_plans"),e}function pa(e){Jl(e);let{env:t,items:r,workflowStep:o,marketSegment:n,customerSegment:i,offerType:a,productArrangementCode:s,landscape:c,modal:l,is3in1:h,preselectPlan:d,...m}=e,p=new URL(Kl(t));if(p.pathname=`${Yl}${o}`,o!==J.SEGMENTATION&&o!==J.CHANGE_PLAN_TEAM_PLANS&&Ql(r,p.searchParams),Sn({...m},p.searchParams,_n),c===Ie.DRAFT&&Sn({af:ql},p.searchParams,_n),o===J.SEGMENTATION){let g={marketSegment:n,offerType:a,customerSegment:i,productArrangementCode:s,quantity:r?.[0]?.quantity,addonProductArrangementCode:s?r?.find(b=>b.productArrangementCode!==s)?.productArrangementCode:r?.[1]?.productArrangementCode};d?.toLowerCase()==="edu"?p.searchParams.set("ms","EDU"):d?.toLowerCase()==="team"&&p.searchParams.set("cs","TEAM"),Sn(g,p.searchParams,_n),p.searchParams.get("ot")==="PROMOTION"&&p.searchParams.delete("ot"),p=Zl({url:p,modal:l,is3in1:h})}return p.toString()}function Jl(e){for(let t of Xl)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==J.SEGMENTATION&&e.workflowStep!==J.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}var L=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflowStep:J.EMAIL,country:"US",displayOldPrice:!1,displayPerUnit:!0,displayRecurrence:!0,displayTax:!1,displayPlanType:!1,env:fe.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,alternativePrice:!1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:Ie.PUBLISHED});function ma({settings:e}){function t(n,i){let{checkoutClientId:a,checkoutWorkflowStep:s,country:c,language:l,promotionCode:h,quantity:d,preselectPlan:m}=e,{checkoutMarketSegment:p,checkoutWorkflowStep:g=s,imsCountry:b,country:E=b??c,language:R=l,quantity:P=d,entitlement:y,upgrade:O,modal:k,perpetual:D,promotionCode:B=h,wcsOsi:K,extraOptions:U,...j}=Object.assign({},i?.dataset??{},n??{}),G=tr(g,J,L.checkoutWorkflowStep);return er({...j,extraOptions:U,checkoutClientId:a,checkoutMarketSegment:p,country:E,quantity:Et(P,L.quantity),checkoutWorkflowStep:G,language:R,entitlement:A(y),upgrade:A(O),modal:k,perpetual:A(D),promotionCode:Vr(B).effectivePromoCode,wcsOsi:qr(K),preselectPlan:m})}function r(n,i){if(!Array.isArray(n)||!n.length||!i)return"";let{env:a,landscape:s}=e,{checkoutClientId:c,checkoutMarketSegment:l,checkoutWorkflowStep:h,country:d,promotionCode:m,quantity:p,preselectPlan:g,ms:b,cs:E,...R}=t(i),P=document.querySelector("meta[name=mas-ff-3in1]"),y=Object.values(Ve).includes(i.modal)&&(!P||P.content!=="off"),O=window.frameElement||y?"if":"fp",[{productArrangementCode:k,marketSegments:[D],customerSegment:B,offerType:K}]=n,U=b??D??l,j=E??B;g?.toLowerCase()==="edu"?U="EDU":g?.toLowerCase()==="team"&&(j="TEAM");let G={is3in1:y,checkoutPromoCode:m,clientId:c,context:O,country:d,env:a,items:[],marketSegment:U,customerSegment:j,offerType:K,productArrangementCode:k,workflowStep:h,landscape:s,...R},Me=p[0]>1?p[0]:void 0;if(n.length===1){let{offerId:Ae}=n[0];G.items.push({id:Ae,quantity:Me})}else G.items.push(...n.map(({offerId:Ae,productArrangementCode:ut})=>({id:Ae,quantity:Me,...y?{productArrangementCode:ut}:{}})));return pa(G)}let{createCheckoutLink:o}=Ce;return{CheckoutLink:Ce,CheckoutWorkflowStep:J,buildCheckoutURL:r,collectCheckoutOptions:t,createCheckoutLink:o}}function eh({interval:e=200,maxAttempts:t=25}={}){let r=ie.module("ims");return new Promise(o=>{r.debug("Waing for IMS to be ready");let n=0;function i(){window.adobeIMS?.initialized?o():++n>t?(r.debug("Timeout"),o()):setTimeout(i,e)}i()})}function th(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function rh(e){let t=ie.module("ims");return e.then(r=>r?window.adobeIMS.getProfile().then(({countryCode:o})=>(t.debug("Got user country:",o),o),o=>{t.error("Unable to get user country:",o)}):null)}function ua({}){let e=eh(),t=th(e),r=rh(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}var fa=window.masPriceLiterals;function ga(e){if(Array.isArray(fa)){let t=o=>fa.find(n=>cn(n.lang,o)),r=t(e.language)??t(L.language);if(r)return Object.freeze(r)}return{}}var Tn=function(e,t){return Tn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},Tn(e,t)};function ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Tn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var T=function(){return T=Object.assign||function(t){for(var r,o=1,n=arguments.length;o0}),r=[],o=0,n=t;o1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(ih,function(c,l,h,d,m,p){if(l)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ta.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Ea.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Ea,function(c,l,h,d,m,p){return h==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&p?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+p.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=n.options[0];i==="w"?t=T(T({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=T(T({},t),Aa(i)));continue}if(Sa.test(n.stem)){t=T(T({},t),Aa(n.stem));continue}var a=Ca(n.stem);a&&(t=T(T({},t),a));var s=ah(n.stem);s&&(t=T(T({},t),s))}return t}var cr={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function La(e,t){for(var r="",o=0;o>1),c="a",l=sh(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=l+r}else n==="J"?r+="H":r+=n}return r}function sh(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,o;r!=="root"&&(o=e.maximize().region);var n=cr[o||""]||cr[r||""]||cr["".concat(r,"-001")]||cr["001"];return n[0]}var Ln,ch=new RegExp("^".concat(Pn.source,"*")),lh=new RegExp("".concat(Pn.source,"*$"));function C(e,t){return{start:e,end:t}}var hh=!!String.prototype.startsWith,dh=!!String.fromCodePoint,ph=!!Object.fromEntries,mh=!!String.prototype.codePointAt,uh=!!String.prototype.trimStart,fh=!!String.prototype.trimEnd,gh=!!Number.isSafeInteger,xh=gh?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Rn=!0;try{ka=Ma("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Rn=((Ln=ka.exec("a"))===null||Ln===void 0?void 0:Ln[0])==="a"}catch{Rn=!1}var ka,Ra=hh?function(t,r,o){return t.startsWith(r,o)}:function(t,r,o){return t.slice(o,o+r.length)===r},On=dh?String.fromCodePoint:function(){for(var t=[],r=0;ri;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");o+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return o},Oa=ph?Object.fromEntries:function(t){for(var r={},o=0,n=t;o=o)){var n=t.charCodeAt(r),i;return n<55296||n>56319||r+1===o||(i=t.charCodeAt(r+1))<56320||i>57343?n:(n-55296<<10)+(i-56320)+65536}},bh=uh?function(t){return t.trimStart()}:function(t){return t.replace(ch,"")},vh=fh?function(t){return t.trimEnd()}:function(t){return t.replace(lh,"")};function Ma(e,t){return new RegExp(e,t)}var Nn;Rn?(kn=Ma("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Nn=function(t,r){var o;kn.lastIndex=r;var n=kn.exec(t);return(o=n[1])!==null&&o!==void 0?o:""}):Nn=function(t,r){for(var o=[];;){var n=Na(t,r);if(n===void 0||Ia(n)||Ah(n))break;o.push(n),r+=n>=65536?2:1}return On.apply(void 0,o)};var kn,$a=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,o){for(var n=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,o);if(a.err)return a;n.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),n.push({type:$.pound,location:C(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(S.UNMATCHED_CLOSING_TAG,C(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Mn(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;n.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;n.push(a.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var o=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$.literal,value:"<".concat(n,"/>"),location:C(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:$.tag,value:n,children:a,location:C(o,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,C(s,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,C(o,this.clonePosition()))}else return this.error(S.INVALID_TAG,C(o,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Eh(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var o=this.clonePosition(),n="";;){var i=this.tryParseQuote(r);if(i){n+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){n+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var c=C(o,this.clonePosition());return{val:{type:$.literal,value:n,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!yh(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(o);this.bump()}return On.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(r==="plural"||r==="selectordinal")||o===125&&t>0?null:(this.bump(),On(o))},e.prototype.parseArgument=function(t,r){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,C(o,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(S.MALFORMED_ARGUMENT,C(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$.argument,value:n,location:C(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(o,this.clonePosition())):this.parseArgumentOptions(t,r,n,o);default:return this.error(S.MALFORMED_ARGUMENT,C(o,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),o=Nn(this.message,r),n=r+o.length;this.bumpTo(n);var i=this.clonePosition(),a=C(t,i);return{value:o,location:a}},e.prototype.parseArgumentOptions=function(t,r,o,n){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,C(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=vh(d.val);if(m.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,C(this.clonePosition(),this.clonePosition()));var p=C(h,this.clonePosition());l={style:m,styleLocation:p}}var g=this.tryParseArgumentClose(n);if(g.err)return g;var b=C(n,this.clonePosition());if(l&&Ra(l?.style,"::",0)){var E=bh(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(E,l.styleLocation);return d.err?d:{val:{type:$.number,value:o,location:b,style:d.val},err:null}}else{if(E.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,b);var R=E;this.locale&&(R=La(E,this.locale));var m={type:We.dateTime,pattern:R,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?va(R):{}},P=s==="date"?$.date:$.time;return{val:{type:P,value:o,location:b,style:m},err:null}}}return{val:{type:s==="number"?$.number:s==="date"?$.date:$.time,value:o,location:b,style:(i=l?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,C(y,T({},y)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),O=this.parseIdentifierIfPossible(),k=d.val}var D=this.tryParsePluralOrSelectOptions(t,s,r,O);if(D.err)return D;var g=this.tryParseArgumentClose(n);if(g.err)return g;var B=C(n,this.clonePosition());return s==="select"?{val:{type:$.select,value:o,options:Oa(D.val),location:B},err:null}:{val:{type:$.plural,value:o,options:Oa(D.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:B},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,C(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,C(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var o=[];try{o=_a(t)}catch{return this.error(S.INVALID_NUMBER_SKELETON,r)}return{val:{type:We.number,tokens:o,location:r,parsedOptions:this.shouldParseSkeletons?Pa(o):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,o,n){for(var i,a=!1,s=[],c=new Set,l=n.value,h=n.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=C(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,C(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,o);if(g.err)return g;var b=this.tryParseArgumentClose(p);if(b.err)return b;s.push([l,{value:g.val,location:C(p,this.clonePosition())}]),c.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,h=i.location}return s.length===0?this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,C(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(S.MISSING_OTHER_CLAUSE,C(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var o=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var c=C(n,this.clonePosition());return i?(a*=o,xh(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Na(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ra(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ia(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),o=this.message.charCodeAt(r+(t>=65536?2:1));return o??null},e}();function Mn(e){return e>=97&&e<=122||e>=65&&e<=90}function yh(e){return Mn(e)||e===47}function Eh(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ia(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ah(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function $n(e){e.forEach(function(t){if(delete t.location,no(t)||io(t))for(var r in t.options)delete t.options[r].location,$n(t.options[r].value);else to(t)&&so(t.style)||(ro(t)||oo(t))&&sr(t.style)?delete t.style.location:ao(t)&&$n(t.children)})}function Ha(e,t){t===void 0&&(t={}),t=T({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new $a(e,t).parse();if(r.err){var o=SyntaxError(S[r.err.kind]);throw o.location=r.err.location,o.originalMessage=r.err.message,o}return t?.captureLocation||$n(r.val),r.val}function lr(e,t){var r=t&&t.cache?t.cache:Ph,o=t&&t.serializer?t.serializer:Ch,n=t&&t.strategy?t.strategy:_h;return n(e,{cache:r,serializer:o})}function wh(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ua(e,t,r,o){var n=wh(o)?o:r(o),i=t.get(n);return typeof i>"u"&&(i=e.call(this,o),t.set(n,i)),i}function Da(e,t,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),i=t.get(n);return typeof i>"u"&&(i=e.apply(this,o),t.set(n,i)),i}function In(e,t,r,o,n){return r.bind(t,e,o,n)}function _h(e,t){var r=e.length===1?Ua:Da;return In(e,this,r,t.cache.create(),t.serializer)}function Sh(e,t){return In(e,this,Da,t.cache.create(),t.serializer)}function Th(e,t){return In(e,this,Ua,t.cache.create(),t.serializer)}var Ch=function(){return JSON.stringify(arguments)};function Hn(){this.cache=Object.create(null)}Hn.prototype.get=function(e){return this.cache[e]};Hn.prototype.set=function(e,t){this.cache[e]=t};var Ph={create:function(){return new Hn}},co={variadic:Sh,monadic:Th};var Xe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Xe||(Xe={}));var hr=function(e){ar(t,e);function t(r,o,n){var i=e.call(this,r)||this;return i.code=o,i.originalMessage=n,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var Un=function(e){ar(t,e);function t(r,o,n,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(o,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Xe.INVALID_VALUE,i)||this}return t}(hr);var Ba=function(e){ar(t,e);function t(r,o,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(o),Xe.INVALID_VALUE,n)||this}return t}(hr);var za=function(e){ar(t,e);function t(r,o){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(o,'"'),Xe.MISSING_VALUE,o)||this}return t}(hr);var Z;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Z||(Z={}));function Lh(e){return e.length<2?e:e.reduce(function(t,r){var o=t[t.length-1];return!o||o.type!==Z.literal||r.type!==Z.literal?t.push(r):o.value+=r.value,t},[])}function kh(e){return typeof e=="function"}function dr(e,t,r,o,n,i,a){if(e.length===1&&Cn(e[0]))return[{type:Z.literal,value:e[0].value}];for(var s=[],c=0,l=e;c0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=Ia,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Fa=za;var Oh=/[0-9\-+#]/,Nh=/[^\d\-+#]/g;function Ga(e){return e.search(Oh)}function Mh(e="#.##"){let t={},r=e.length,n=Ga(e);t.prefix=n>0?e.substring(0,n):"";let o=Ga(e.split("").reverse().join("")),i=r-o,a=e.substring(i,i+1),s=i+(a==="."||a===","?1:0);t.suffix=o>0?e.substring(s,r):"",t.mask=e.substring(n,s),t.maskHasNegativeSign=t.mask.charAt(0)==="-",t.maskHasPositiveSign=t.mask.charAt(0)==="+";let c=t.mask.match(Nh);return t.decimal=c&&c[c.length-1]||".",t.separator=c&&c[1]&&c[0]||",",c=t.mask.split(t.decimal),t.integer=c[0],t.fraction=c[1],t}function $h(e,t,r){let n=!1,o={value:e};e<0&&(n=!0,o.value=-o.value),o.sign=n?"-":"",o.value=Number(o.value).toFixed(t.fraction&&t.fraction.length),o.value=Number(o.value).toString();let i=t.fraction&&t.fraction.lastIndexOf("0"),[a="0",s=""]=o.value.split(".");return(!s||s&&s.length<=i)&&(s=i<0?"":(+("0."+s)).toFixed(i+1).replace("0.","")),o.integer=a,o.fraction=s,Ih(o,t),(o.result==="0"||o.result==="")&&(n=!1,o.sign=""),!n&&t.maskHasPositiveSign?o.sign="+":n&&t.maskHasPositiveSign?o.sign="-":n&&(o.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),o}function Ih(e,t){e.result="";let r=t.integer.split(t.separator),n=r.join(""),o=n&&n.indexOf("0");if(o>-1)for(;e.integer.lengthe*12,Xa=(e,t)=>{let{start:r,end:n,displaySummary:{amount:o,duration:i,minProductQuantity:a,outcomeType:s}={}}=e;if(!(o&&i&&s&&a))return!1;let c=t?new Date(t):new Date;if(!r||!n)return!1;let l=new Date(r),h=new Date(n);return c>=l&&c<=h},Ke={MONTH:"MONTH",YEAR:"YEAR"},Dh={[se.ANNUAL]:12,[se.MONTHLY]:1,[se.THREE_YEARS]:36,[se.TWO_YEARS]:24},Bo=(e,t)=>({accept:e,round:t}),Bh=[Bo(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),Bo(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),Bo(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],zo={[ze.YEAR]:{[se.MONTHLY]:Ke.MONTH,[se.ANNUAL]:Ke.YEAR},[ze.MONTH]:{[se.MONTHLY]:Ke.MONTH}},zh=(e,t)=>e.indexOf(`'${t}'`)===0,Fh=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Qa(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+Vh(e)),r},Gh=e=>{let t=jh(e),r=zh(e,t),n=e.replace(/'.*?'/,""),o=Ya.test(n)||Wa.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:o}},Ka=e=>e.replace(Ya,qa).replace(Wa,qa),Vh=e=>e.match(/#(.?)#/)?.[1]===ja?Uh:ja,jh=e=>e.match(/'(.*?)'/)?.[1]??"",Qa=e=>e.match(/0(.?)0/)?.[1]??"";function wt({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},o,i=a=>a){let{currencySymbol:a,isCurrencyFirst:s,hasCurrencySpace:c}=Gh(e),l=r?Qa(e):"",h=Fh(e,r),d=r?2:0,m=i(t,{currencySymbol:a}),p=n?m.toLocaleString("hi-IN",{minimumFractionDigits:d,maximumFractionDigits:d}):Va(h,m),g=r?p.lastIndexOf(l):p.length,b=p.substring(0,g),E=p.substring(g+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,p).replace(/SYMBOL/,a),currencySymbol:a,decimals:E,decimalsDelimiter:l,hasCurrencySpace:c,integer:b,isCurrencyFirst:s,recurrenceTerm:o}}var Za=e=>{let{commitment:t,term:r,usePrecision:n}=e,o=Dh[r]??1;return wt(e,o>1?Ke.MONTH:zo[t]?.[r],i=>{let a={divisor:o,price:i,usePrecision:n},{round:s}=Bh.find(({accept:c})=>c(a));if(!s)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return s(a)})},Ja=({commitment:e,term:t,...r})=>wt(r,zo[e]?.[t]),es=e=>{let{commitment:t,instant:r,price:n,originalPrice:o,priceWithoutDiscount:i,promotion:a,quantity:s=1,term:c}=e;if(t===ze.YEAR&&c===se.MONTHLY){if(!a)return wt(e,Ke.YEAR,Do);let{displaySummary:{outcomeType:l,duration:h,minProductQuantity:d=1}={}}=a;switch(l){case"PERCENTAGE_DISCOUNT":if(s>=d&&Xa(a,r)){let m=parseInt(h.replace("P","").replace("M",""));if(isNaN(m))return Do(n);let p=s*o*m,g=s*i*(12-m),b=Math.round((p+g)*100)/100;return wt({...e,price:b},Ke.YEAR)}default:return wt(e,Ke.YEAR,()=>Do(i??n))}}return wt(e,zo[t]?.[c])};var Fo={recurrenceLabel:"{recurrenceTerm, select, MONTH {/mo} YEAR {/yr} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per month} YEAR {per year} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per license} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per license} other {}}",freeLabel:"Free",freeAriaLabel:"Free",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Alternatively at",strikethroughAriaLabel:"Regularly at",planTypeLabel:"{planType, select, ABM {Annual, paid monthly.} other {}}"},qh=Wi("ConsonantTemplates/price"),Yh=/<\/?[^>]+(>|$)/g,z={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAlternative:"price-alternative",containerAnnual:"price-annual",containerAnnualPrefix:"price-annual-prefix",containerAnnualSuffix:"price-annual-suffix",disabled:"disabled",currencySpace:"price-currency-space",currencySymbol:"price-currency-symbol",decimals:"price-decimals",decimalsDelimiter:"price-decimals-delimiter",integer:"price-integer",recurrence:"price-recurrence",taxInclusivity:"price-tax-inclusivity",unitType:"price-unit-type"},He={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel",alternativePriceAriaLabel:"alternativePriceAriaLabel"},Go="TAX_EXCLUSIVE",Wh=e=>ji(e)?Object.entries(e).filter(([,t])=>yt(t)||Fr(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+Vi(n)+'"'}`,""):"",V=(e,t,r,n=!1)=>`${n?Ka(t):t??""}`;function Ce(e,t,r,n){let o=e[r];if(o==null)return"";try{return new Fa(o.replace(Yh,""),t).format(n)}catch{return qh.error("Failed to format literal:",o),""}}function Xh(e,{accessibleLabel:t,altAccessibleLabel:r,currencySymbol:n,decimals:o,decimalsDelimiter:i,hasCurrencySpace:a,integer:s,isCurrencyFirst:c,recurrenceLabel:l,perUnitLabel:h,taxInclusivityLabel:d},m={}){let p=V(z.currencySymbol,n),g=V(z.currencySpace,a?" ":""),b="";return t?b=`${t}`:r&&(b=`${r}`),c&&(b+=p+g),b+=V(z.integer,s),b+=V(z.decimalsDelimiter,i),b+=V(z.decimals,o),c||(b+=g+p),b+=V(z.recurrence,l,null,!0),b+=V(z.unitType,h,null,!0),b+=V(z.taxInclusivity,d,!0),V(e,b,{...m})}var te=({isAlternativePrice:e=!1,displayOptical:t=!1,displayStrikethrough:r=!1,displayAnnual:n=!1,instant:o=void 0}={})=>({country:i,displayFormatted:a=!0,displayRecurrence:s=!0,displayPerUnit:c=!1,displayTax:l=!1,language:h,literals:d={},quantity:m=1}={},{commitment:p,offerSelectorIds:g,formatString:b,price:E,priceWithoutDiscount:R,taxDisplay:P,taxTerm:y,term:O,usePrecision:k,promotion:D}={},B={})=>{Object.entries({country:i,formatString:b,language:h,price:E}).forEach(([el,tl])=>{if(tl==null)throw new Error(`Argument "${el}" is missing for osi ${g?.toString()}, country ${i}, language ${h}`)});let K={...Fo,...d},U=`${h.toLowerCase()}-${i.toUpperCase()}`,j=r&&R?R:E,G=t?Za:Ja;n&&(G=es);let{accessiblePrice:Me,recurrenceTerm:Ee,...ut}=G({commitment:p,formatString:b,instant:o,isIndianPrice:i==="IN",originalPrice:E,priceWithoutDiscount:R,price:t?E:j,promotion:D,quantity:m,term:O,usePrecision:k}),$n="",In="",Hn="";A(s)&&Ee&&(Hn=Ce(K,U,He.recurrenceLabel,{recurrenceTerm:Ee}));let Un="";A(c)&&(Un=Ce(K,U,He.perUnitLabel,{perUnit:"LICENSE"}));let Dn="";A(l)&&y&&(Dn=Ce(K,U,P===Go?He.taxExclusiveLabel:He.taxInclusiveLabel,{taxTerm:y})),r&&($n=Ce(K,U,He.strikethroughAriaLabel,{strikethroughPrice:$n})),e&&(In=Ce(K,U,He.alternativePriceAriaLabel,{alternativePrice:In}));let ft=z.container;if(t&&(ft+=" "+z.containerOptical),r&&(ft+=" "+z.containerStrikethrough),e&&(ft+=" "+z.containerAlternative),n&&(ft+=" "+z.containerAnnual),A(a))return Xh(ft,{...ut,accessibleLabel:$n,altAccessibleLabel:In,recurrenceLabel:Hn,perUnitLabel:Un,taxInclusivityLabel:Dn},B);let{currencySymbol:Hi,decimals:Xc,decimalsDelimiter:Kc,hasCurrencySpace:Ui,integer:Qc,isCurrencyFirst:Zc}=ut,gt=[Qc,Kc,Xc];Zc?(gt.unshift(Ui?"\xA0":""),gt.unshift(Hi)):(gt.push(Ui?"\xA0":""),gt.push(Hi)),gt.push(Hn,Un,Dn);let Jc=gt.join("");return V(ft,Jc,B)},ts=()=>(e,t,r)=>{let o=(e.displayOldPrice===void 0||A(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${o?te({displayStrikethrough:!0})(e,t,r)+" ":""}${te({isAlternativePrice:o})(e,t,r)}`},rs=()=>(e,t,r)=>{let{instant:n}=e;try{n||(n=new URLSearchParams(document.location.search).get("instant")),n&&(n=new Date(n))}catch{n=void 0}let o={...e,displayTax:!1,displayPerUnit:!1},a=(e.displayOldPrice===void 0||A(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${a?te({displayStrikethrough:!0})(o,t,r)+" ":""}${te({isAlternativePrice:a})(e,t,r)}${V(z.containerAnnualPrefix," (")}${te({displayAnnual:!0,instant:n})(o,t,r)}${V(z.containerAnnualSuffix,")")}`},ns=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${te({isAlternativePrice:e.displayOldPrice})(e,t,r)}${V(z.containerAnnualPrefix," (")}${te({displayAnnual:!0})(n,t,r)}${V(z.containerAnnualSuffix,")")}`};var pr={...z,containerLegal:"price-legal",planType:"price-plan-type"},hn={...He,planTypeLabel:"planTypeLabel"};function Kh(e,{perUnitLabel:t,taxInclusivityLabel:r,planTypeLabel:n},o={}){let i="";return i+=V(pr.unitType,t,null,!0),t&&(r||n)&&(i+=" ("),r&&n&&(r+=". "),i+=V(pr.taxInclusivity,r,!0),i+=V(pr.planType,n,null),t&&(r||n)&&(i+=")"),V(e,i,{...o})}var os=({country:e,displayPerUnit:t=!1,displayTax:r=!1,displayPlanType:n=!1,language:o,literals:i={}}={},{taxDisplay:a,taxTerm:s,planType:c}={},l={})=>{let h={...Fo,...i},d=`${o.toLowerCase()}-${e.toUpperCase()}`,m="";A(t)&&(m=Ce(h,d,hn.perUnitLabel,{perUnit:"LICENSE"}));let p="";e==="US"&&o==="en"&&(r=!1),A(r)&&s&&(p=Ce(h,d,a===Go?hn.taxExclusiveLabel:hn.taxInclusiveLabel,{taxTerm:s}));let g="";A(n)&&c&&(g=Ce(h,d,hn.planTypeLabel,{planType:c}));let b=pr.container;return b+=" "+pr.containerLegal,Kh(b,{perUnitLabel:m,taxInclusivityLabel:p,planTypeLabel:g},l)};var is=te(),as=ts(),ss=te({displayOptical:!0}),cs=te({displayStrikethrough:!0}),ls=te({displayAnnual:!0}),hs=te({displayOptical:!0,isAlternativePrice:!0}),ds=te({isAlternativePrice:!0}),ps=ns(),ms=rs(),us=os;var Qh=(e,t)=>{if(!(!Jt(e)||!Jt(t)))return Math.floor((t-e)/t*100)},fs=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,o=Qh(r,n);return o===void 0?'':`${o}%`};var gs=fs();var bs="INDIVIDUAL_COM",Vo="TEAM_COM",vs="INDIVIDUAL_EDU",jo="TEAM_EDU",xs=["GB_en","AU_en","FR_fr","AT_de","BE_en","BE_fr","BE_nl","BG_bg","CH_de","CH_fr","CH_it","CZ_cs","DE_de","DK_da","EE_et","EG_ar","EG_en","ES_es","FI_fi","GR_el","GR_en","HU_hu","IE_en","IT_it","LU_de","LU_en","LU_fr","NL_nl","NO_nb","PL_pl","PT_pt","RO_ro","SE_sv","SI_sl","SK_sk","TR_tr","UA_uk","ID_en","ID_in","IN_en","IN_hi","JP_ja","MY_en","MY_ms","NZ_en","TH_en","TH_th"],Zh={[bs]:["MU_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","SG_en","KR_ko"],[Vo]:["MU_en","LT_lt","LV_lv","NG_en","CO_es","KR_ko"],[vs]:["LT_lt","LV_lv","SA_en","SG_en"],[jo]:["SG_en","KR_ko"]},Jh={MU_en:[!1,!1,!1,!1],NG_en:[!1,!1,!1,!1],AU_en:[!1,!1,!1,!1],JP_ja:[!1,!1,!1,!1],NZ_en:[!1,!1,!1,!1],TH_en:[!1,!1,!1,!1],TH_th:[!1,!1,!1,!1],CO_es:[!1,!0,!1,!1],AT_de:[!1,!1,!1,!0],SG_en:[!1,!1,!1,!0]},ed=[bs,Vo,vs,jo],td=e=>[Vo,jo].includes(e),rd=(e,t,r,n)=>{let o=`${e}_${t}`,i=`${r}_${n}`,a=Jh[o];if(a){let s=ed.indexOf(i);return a[s]}return td(i)},nd=(e,t,r,n)=>{let o=`${e}_${t}`;if(xs.includes(e)||xs.includes(o))return!0;let i=Zh[`${r}_${n}`];return i?i.includes(e)||i.includes(o)?!0:L.displayTax:L.displayTax},ys=async(e,t,r,n)=>{let o=nd(e,t,r,n);return{displayTax:o,forceTaxExclusive:o?rd(e,t,r,n):L.forceTaxExclusive}},mr=class mr extends HTMLSpanElement{constructor(){super();f(this,"masElement",new At(this));this.handleClick=this.handleClick.bind(this)}static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-display-plan-type","data-display-annual","data-perpetual","data-promotion-code","data-force-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=ee();if(!n)return null;let{displayOldPrice:o,displayPerUnit:i,displayRecurrence:a,displayTax:s,displayPlanType:c,displayAnnual:l,forceTaxExclusive:h,perpetual:d,promotionCode:m,quantity:p,alternativePrice:g,template:b,wcsOsi:E}=n.collectPriceOptions(r);return Kr(mr,{displayOldPrice:o,displayPerUnit:i,displayRecurrence:a,displayTax:s,displayPlanType:c,displayAnnual:l,forceTaxExclusive:h,perpetual:d,promotionCode:m,quantity:p,alternativePrice:g,template:b,wcsOsi:E})}get isInlinePrice(){return!0}attributeChangedCallback(r,n,o){this.masElement.attributeChangedCallback(r,n,o)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.handleClick)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.handleClick)}handleClick(r){r.target!==this&&(r.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})))}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}get isFailed(){return this.masElement.state===he}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}async render(r={}){if(!this.isConnected)return!1;let n=ee();if(!n)return!1;let o=n.collectPriceOptions(r,this);if(!o.wcsOsi.length)return!1;if(N(Zt)==="on"&&(!this.dataset.displayTax||!this.dataset.forceTaxExclusive)){let[c]=await n.resolveOfferSelectors(o),l=nr(await c,o);if(l?.length){let{country:h,language:d}=o,m=l[0],[p=""]=m.marketSegments,g=await ys(h,d,m.customerSegment,p);this.dataset.displayTax||(o.displayTax=g?.displayTax||o.displayTax),this.dataset.forceTaxExclusive||(o.forceTaxExclusive=g?.forceTaxExclusive||o.forceTaxExclusive)}}let a=this.masElement.togglePending(o);this.innerHTML="";let[s]=n.resolveOfferSelectors(o);try{let c=await s;return this.renderOffers(nr(c,o),o,a)}catch(c){throw this.innerHTML="",c}}renderOffers(r,n={},o=void 0){if(!this.isConnected)return;let i=ee();if(!i)return!1;let a=i.collectPriceOptions({...this.dataset,...n},this);if(o??(o=this.masElement.togglePending(a)),r.length){if(this.masElement.toggleResolved(o,r,a)){this.innerHTML=i.buildPriceHTML(r,a);let s=this.closest("p, h3, div");if(!s||!s.querySelector('span[data-template="strikethrough"]')||s.querySelector(".alt-aria-label"))return!0;let c=s?.querySelectorAll('span[is="inline-price"]');return c.length>1&&c.length===s.querySelectorAll('span[data-template="strikethrough"]').length*2&&c.forEach(l=>{l.dataset.template!=="strikethrough"&&l.options&&!l.options.alternativePrice&&!l.isFailed&&(l.options.alternativePrice=!0,l.innerHTML=i.buildPriceHTML(r,l.options))}),!0}}else{let s=new Error(`Not provided: ${a?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(o,s,a))return this.innerHTML="",!0}return!1}updateOptions(r){let n=ee();if(!n)return!1;let{alternativePrice:o,displayOldPrice:i,displayPerUnit:a,displayRecurrence:s,displayTax:c,forceTaxExclusive:l,perpetual:h,promotionCode:d,quantity:m,template:p,wcsOsi:g}=n.collectPriceOptions(r);return Qr(this,{alternativePrice:o,displayOldPrice:i,displayPerUnit:a,displayRecurrence:s,displayTax:c,forceTaxExclusive:l,perpetual:h,promotionCode:d,quantity:m,template:p,wcsOsi:g}),!0}};f(mr,"is","inline-price"),f(mr,"tag","span");var Pe=mr;window.customElements.get(Pe.is)||window.customElements.define(Pe.is,Pe,{extends:Pe.tag});function Es({literals:e,providers:t,settings:r}){function n(a,s=null){let c=structuredClone(r);if(s)for(let D of t.price)D(s,c);let{displayOldPrice:l,displayPerUnit:h,displayRecurrence:d,displayTax:m,displayPlanType:p,forceTaxExclusive:g,perpetual:b,displayAnnual:E,promotionCode:R,quantity:P,alternativePrice:y,wcsOsi:O,...k}=Object.assign(c,s?.dataset??{},a??{});return Object.assign(c,er({...k,displayOldPrice:A(l),displayPerUnit:A(h),displayRecurrence:A(d),displayTax:A(m),displayPlanType:A(p),forceTaxExclusive:A(g),perpetual:A(b),displayAnnual:A(E),promotionCode:Vr(R).effectivePromoCode,quantity:Et(P,L.quantity),alternativePrice:A(y),wcsOsi:qr(O)})),c}function o(a,s){if(!Array.isArray(a)||!a.length||!s)return"";let{template:c}=s,l;switch(c){case"discount":l=gs;break;case"strikethrough":l=cs;break;case"annual":l=ls;break;case"legal":l=us;break;default:s.template==="optical"&&s.alternativePrice?l=hs:s.template==="optical"?l=ss:s.displayAnnual&&a[0].planType==="ABM"?l=s.promotionCode?ms:ps:s.alternativePrice?l=ds:l=s.promotionCode?as:is}let h=n(s);h.literals=Object.assign({},e.price,er(s.literals??{}));let[d]=a;return d={...d,...d.priceDetails},l(h,d)}let i=Pe.createInlinePrice;return{InlinePrice:Pe,buildPriceHTML:o,collectPriceOptions:n,createInlinePrice:i}}function od({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||L.language),t??(t=e?.split("_")?.[1]||L.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function As(e={}){let t=N(Zt)==="on",{commerce:r={}}=e,n=ue.PRODUCTION,o=to,i=N("checkoutClientId",r)??L.checkoutClientId,a=tr(N("checkoutWorkflowStep",r),J,L.checkoutWorkflowStep),s=A(N("displayOldPrice",r),t?L.displayOldPrice:!L.displayOldPrice),c=A(N("displayPerUnit",r),t?L.displayPerUnit:!L.displayPerUnit),l=A(N("displayRecurrence",r),L.displayRecurrence),h=A(N("displayTax",r),L.displayTax),d=A(N("displayPlanType",r),L.displayPlanType),m=A(N("entitlement",r),L.entitlement),p=A(N("modal",r),L.modal),g=A(N("forceTaxExclusive",r),L.forceTaxExclusive),b=N("promotionCode",r)??L.promotionCode,E=Et(N("quantity",r)),R=N("wcsApiKey",r)??L.wcsApiKey,P=r?.env==="stage",y=Ie.PUBLISHED;["true",""].includes(r.allowOverride)&&(P=(N(Jn,r,{metadata:!1})?.toLowerCase()??r?.env)==="stage",y=tr(N(eo,r),Ie,y)),P&&(n=ue.STAGE,o=ro);let k=N(Zn)??e.preview,D=typeof k<"u"&&k!=="off"&&k!=="false",B={};D&&(B={preview:D});let K=N("mas-io-url")??e.masIOUrl??`https://www${n===ue.STAGE?".stage":""}.adobe.com/mas/io`,U=N("preselect-plan")??void 0;return{...od(e),...B,displayOldPrice:s,checkoutClientId:i,checkoutWorkflowStep:a,displayPerUnit:c,displayRecurrence:l,displayTax:h,displayPlanType:d,entitlement:m,extraOptions:L.extraOptions,modal:p,env:n,forceTaxExclusive:g,promotionCode:b,quantity:E,alternativePrice:L.alternativePrice,wcsApiKey:R,wcsURL:o,landscape:y,masIOUrl:K,...U&&{preselectPlan:U}}}async function dn(e,t={},r=2,n=100){let o;for(let i=0;i<=r;i++)try{let a=await fetch(e,t);return a.retryCount=i,a}catch(a){if(o=a,o.retryCount=i,i>r)break;await new Promise(s=>setTimeout(s,n*(i+1)))}throw o}var id="mas-commerce-service";function ur(e,t){let r;return function(){let n=this,o=arguments;clearTimeout(r),r=setTimeout(()=>e.apply(n,o),t)}}function re(e,t={},r=null,n=null){let o=n?document.createElement(e,{is:n}):document.createElement(e);r instanceof HTMLElement?o.appendChild(r):o.innerHTML=r;for(let[i,a]of Object.entries(t))o.setAttribute(i,a);return o}function pn(){return window.matchMedia("(max-width: 767px)")}function _t(){return pn().matches}function fe(e){return`startTime:${e.startTime.toFixed(2)}|duration:${e.duration.toFixed(2)}`}function ws(){return window.matchMedia("(max-width: 1024px)").matches}function St(){return document.getElementsByTagName(id)?.[0]}var qo="wcs";function _s({settings:e}){let t=ie.module(qo),{env:r,wcsApiKey:n}=e,o=new Map,i=new Map,a,s=new Map;async function c(p,g,b=!0){let E=ee(),R=Xn;t.debug("Fetching:",p);let P="",y;if(p.offerSelectorIds.length>1)throw new Error("Multiple OSIs are not supported anymore");let O=new Map(g),[k]=p.offerSelectorIds,D=Date.now()+Math.random().toString(36).substring(2,7),B=`${qo}:${k}:${D}${je}`,K=`${qo}:${k}:${D}${qe}`,U;try{if(performance.mark(B),P=new URL(e.wcsURL),P.searchParams.set("offer_selector_ids",k),P.searchParams.set("country",p.country),P.searchParams.set("locale",p.locale),P.searchParams.set("landscape",r===ue.STAGE?"ALL":e.landscape),P.searchParams.set("api_key",n),p.language&&P.searchParams.set("language",p.language),p.promotionCode&&P.searchParams.set("promotion_code",p.promotionCode),p.currency&&P.searchParams.set("currency",p.currency),y=await dn(P.toString(),{credentials:"omit"}),y.ok){let j=[];try{let G=await y.json();t.debug("Fetched:",p,G),j=G.resolvedOffers??[]}catch(G){t.error(`Error parsing JSON: ${G.message}`,{...G.context,...E?.duration})}j=j.map(rr),g.forEach(({resolve:G},Me)=>{let Ee=j.filter(({offerSelectorIds:ut})=>ut.includes(Me)).flat();Ee.length&&(O.delete(Me),g.delete(Me),G(Ee))})}else R=Wn}catch(j){R=`Network error: ${j.message}`}finally{U=performance.measure(K,B),performance.clearMarks(B),performance.clearMeasures(K)}if(b&&g.size){t.debug("Missing:",{offerSelectorIds:[...g.keys()]});let j=Yr(y);g.forEach(G=>{G.reject(new Se(R,{...p,...j,response:y,measure:fe(U),...E?.duration}))})}}function l(){clearTimeout(a);let p=[...i.values()];i.clear(),p.forEach(({options:g,promises:b})=>c(g,b))}function h(p){if(!p||typeof p!="object")throw new TypeError("Cache must be a Map or similar object");let g=r===ue.STAGE?"stage":"prod",b=p[g];if(!b||typeof b!="object"){t.warn(`No cache found for environment: ${r}`);return}for(let[E,R]of Object.entries(b))o.set(E,Promise.resolve(R.map(rr)));t.debug(`Prefilled WCS cache with ${b.size} entries`)}function d(){let p=o.size;s=new Map(o),o.clear(),t.debug(`Moved ${p} cache entries to stale cache`)}function m({country:p,language:g,perpetual:b=!1,promotionCode:E="",wcsOsi:R=[]}){let P=`${g}_${p}`;p!=="GB"&&!b&&(g="MULT");let y=[p,g,E].filter(O=>O).join("-").toLowerCase();return R.map(O=>{let k=`${O}-${y}`;if(o.has(k))return o.get(k);let D=new Promise((B,K)=>{let U=i.get(y);if(!U){let j={country:p,locale:P,offerSelectorIds:[]};p!=="GB"&&!b&&(j.language=g),U={options:j,promises:new Map},i.set(y,U)}E&&(U.options.promotionCode=E),U.options.offerSelectorIds.push(O),U.promises.set(O,{resolve:B,reject:K}),l()}).catch(B=>{if(s.has(k))return s.get(k);throw B});return o.set(k,D),D})}return{Commitment:ze,PlanType:Ki,Term:se,applyPlanType:rr,resolveOfferSelectors:m,flushWcsCacheInternal:d,prefillWcsCache:h}}var Ss="mas-commerce-service",Ts="mas-commerce-service:start",Cs="mas-commerce-service:ready",fr,mn,Ps,Yo=class extends HTMLElement{constructor(){super(...arguments);w(this,mn);w(this,fr);f(this,"lastLoggingTime",0)}async registerCheckoutAction(r){typeof r=="function"&&(this.buildCheckoutAction=async(n,o,i)=>{let a=await r?.(n,o,this.imsSignedInPromise,i);return a||null})}activate(){let r=u(this,mn,Ps),n=As(r);Wr(r.lana);let o=ie.init(r.hostEnv).module("service");o.debug("Activating:",r);let a={price:fa(n)},s={checkout:new Set,price:new Set},c={literals:a,providers:s,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...pa(c),...ma(c),...Es(c),..._s(c),...io,Log:ie,get defaults(){return L},get log(){return ie},get providers(){return{checkout(h){return s.checkout.add(h),()=>s.checkout.delete(h)},price(h){return s.price.add(h),()=>s.price.delete(h)},has:h=>s.price.has(h)||s.checkout.has(h)}},get settings(){return n}})),o.debug("Activated:",{literals:a,settings:n});let l=new CustomEvent(Dr,{bubbles:!0,cancelable:!1,detail:this});performance.mark(Cs),_(this,fr,performance.measure(Cs,Ts)),this.dispatchEvent(l),setTimeout(()=>{this.logFailedRequests()},1e4)}connectedCallback(){performance.mark(Ts),this.activate()}flushWcsCache(){this.flushWcsCacheInternal(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCacheInternal(),document.querySelectorAll(Xt).forEach(r=>r.requestUpdate(!0)),this.log.debug("Refreshed WCS offers"),this.logFailedRequests()}refreshFragments(){this.flushWcsCacheInternal(),document.querySelectorAll("aem-fragment").forEach(r=>r.refresh()),this.log.debug("Refreshed AEM fragments"),this.logFailedRequests()}get duration(){return{"mas-commerce-service:measure":fe(u(this,fr))}}logFailedRequests(){let r=[...performance.getEntriesByType("resource")].filter(({startTime:o})=>o>this.lastLoggingTime).filter(({transferSize:o,duration:i,responseStatus:a})=>o===0&&i===0&&a<200||a>=400),n=Array.from(new Map(r.map(o=>[o.name,o])).values());if(n.some(({name:o})=>/(\/fragments\/|web_commerce_artifact)/.test(o))){let o=n.map(({name:i})=>i);this.log.error("Failed requests:",{failedUrls:o,...this.duration})}this.lastLoggingTime=performance.now().toFixed(3)}};fr=new WeakMap,mn=new WeakSet,Ps=function(){let r=this.getAttribute("env")??"prod",n={commerce:{env:r},hostEnv:{name:r},lana:{tags:this.getAttribute("lana-tags"),sampleRate:parseInt(this.getAttribute("lana-sample-rate")??1,10),isProdDomain:r==="prod"},masIOUrl:this.getAttribute("mas-io-url")};return["locale","country","language","preview"].forEach(o=>{let i=this.getAttribute(o);i&&(n[o]=i)}),["checkout-workflow-step","force-tax-exclusive","checkout-client-id","allow-override","wcs-api-key"].forEach(o=>{let i=this.getAttribute(o);if(i!=null){let a=o.replace(/-([a-z])/g,s=>s[1].toUpperCase());n.commerce[a]=i}}),n};window.customElements.get(Ss)||window.customElements.define(Ss,Yo);var gr=class gr extends Jr(HTMLButtonElement){static createCheckoutButton(t={},r=""){return Zr(gr,t,r)}setCheckoutUrl(t){this.setAttribute("data-href",t)}get href(){return this.getAttribute("data-href")}get isCheckoutButton(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}this.href&&(window.location.href=this.href)}};f(gr,"is","checkout-button"),f(gr,"tag","button");var Tt=gr;window.customElements.get(Tt.is)||window.customElements.define(Tt.is,Tt,{extends:Tt.tag});function ad(e){return`https://${e==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var xr,Qe=class Qe extends HTMLAnchorElement{constructor(){super();w(this,xr,!1);this.setAttribute("is",Qe.is)}get isUptLink(){return!0}initializeWcsData(r,n){this.setAttribute("data-wcs-osi",r),n&&this.setAttribute("data-promotion-code",n),_(this,xr,!0),this.composePromoTermsUrl()}attributeChangedCallback(r,n,o){u(this,xr)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let r=this.getAttribute("data-wcs-osi");if(!r){let d=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${d}`);return}let n=St(),o=[r],i=this.getAttribute("data-promotion-code"),{country:a,language:s,env:c}=n.settings,l={country:a,language:s,wcsOsi:o,promotionCode:i},h=n.resolveOfferSelectors(l);Promise.all(h).then(([[d]])=>{let m=`locale=${s}_${a}&country=${a}&offer_id=${d.offerId}`;i&&(m+=`&promotion_code=${encodeURIComponent(i)}`),this.href=`${ad(c)}?${m}`}).catch(d=>{console.error(`Could not resolve offer selectors for id: ${r}.`,d.message)})}static createFrom(r){let n=new Qe;for(let o of r.attributes)o.name!=="is"&&(o.name==="class"&&o.value.includes("upt-link")?n.setAttribute("class",o.value.replace("upt-link","").trim()):n.setAttribute(o.name,o.value));return n.innerHTML=r.innerHTML,n.setAttribute("tabindex",0),n}};xr=new WeakMap,f(Qe,"is","upt-link"),f(Qe,"tag","a"),f(Qe,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var Ue=Qe;window.customElements.get(Ue.is)||window.customElements.define(Ue.is,Ue,{extends:Ue.tag});var un=window,gn=un.ShadowRoot&&(un.ShadyCSS===void 0||un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),Ls=new WeakMap,fn=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==ks)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(gn&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Ls.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Ls.set(r,t))}return t}toString(){return this.cssText}},Rs=e=>new fn(typeof e=="string"?e:e+"",void 0,ks);var Wo=(e,t)=>{gn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=un.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},xn=gn?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Rs(r)})(e):e;var Xo,bn=window,Os=bn.trustedTypes,sd=Os?Os.emptyScript:"",Ns=bn.reactiveElementPolyfillSupport,Qo={toAttribute(e,t){switch(t){case Boolean:e=e?sd:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Ms=(e,t)=>t!==e&&(t==t||e==e),Ko={attribute:!0,type:String,converter:Qo,reflect:!1,hasChanged:Ms},Zo="finalized",Ze=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=Ko){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){let i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Ko}static finalize(){if(this.hasOwnProperty(Zo))return!1;this[Zo]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(xn(o))}else t!==void 0&&r.push(xn(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Wo(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=Ko){var o;let i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){let a=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Qo).toAttribute(r,n.type);this._$El=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(t,r){var n;let o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:Qo;this._$El=i,this[i]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||Ms)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Ze[Zo]=!0,Ze.elementProperties=new Map,Ze.elementStyles=[],Ze.shadowRootOptions={mode:"open"},Ns?.({ReactiveElement:Ze}),((Xo=bn.reactiveElementVersions)!==null&&Xo!==void 0?Xo:bn.reactiveElementVersions=[]).push("1.6.3");var Jo,vn=window,Ct=vn.trustedTypes,$s=Ct?Ct.createPolicy("lit-html",{createHTML:e=>e}):void 0,ti="$lit$",De=`lit$${(Math.random()+"").slice(9)}$`,Fs="?"+De,cd=`<${Fs}>`,tt=document,yn=()=>tt.createComment(""),vr=e=>e===null||typeof e!="object"&&typeof e!="function",Gs=Array.isArray,ld=e=>Gs(e)||typeof e?.[Symbol.iterator]=="function",ei=`[ -\f\r]`,br=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Is=/-->/g,Hs=/>/g,Je=RegExp(`>|${ei}(?:([^\\s"'>=/]+)(${ei}*=${ei}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Us=/'/g,Ds=/"/g,Vs=/^(?:script|style|textarea|title)$/i,js=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Af=js(1),wf=js(2),yr=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),Bs=new WeakMap,et=tt.createTreeWalker(tt,129,null,!1);function qs(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return $s!==void 0?$s.createHTML(t):t}var hd=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"":"",a=br;for(let s=0;s"?(a=o??br,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?Je:h[3]==='"'?Ds:Us):a===Ds||a===Us?a=Je:a===Is||a===Hs?a=br:(a=Je,o=void 0);let p=a===Je&&e[s+1].startsWith("/>")?" ":"";i+=a===br?c+cd:d>=0?(n.push(l),c.slice(0,d)+ti+c.slice(d)+De+p):c+De+(d===-2?(n.push(void 0),s):p)}return[qs(e,i+(e[r]||"")+(t===2?"":"")),n]},Er=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,a=0,s=t.length-1,c=this.parts,[l,h]=hd(t,r);if(this.el=e.createElement(l,n),et.currentNode=this.el.content,r===2){let d=this.el.content,m=d.firstChild;m.remove(),d.append(...m.childNodes)}for(;(o=et.nextNode())!==null&&c.length0){o.textContent=Ct?Ct.emptyScript:"";for(let p=0;p2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,n,o){let i=this.strings,a=!1;if(i===void 0)t=Pt(this,t,r,0),a=!vr(t)||t!==this._$AH&&t!==yr,a&&(this._$AH=t);else{let s=t,c,l;for(t=i[0],c=0;cnew Ar(typeof e=="string"?e:e+"",void 0,si),v=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,o,i)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new Ar(r,e,si)},ci=(e,t)=>{wn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=An.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},_n=wn?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Le(r)})(e):e;var li,Sn=window,Ws=Sn.trustedTypes,pd=Ws?Ws.emptyScript:"",Xs=Sn.reactiveElementPolyfillSupport,di={toAttribute(e,t){switch(t){case Boolean:e=e?pd:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Ks=(e,t)=>t!==e&&(t==t||e==e),hi={attribute:!0,type:String,converter:di,reflect:!1,hasChanged:Ks},pi="finalized",ke=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=hi){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){let i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||hi}static finalize(){if(this.hasOwnProperty(pi))return!1;this[pi]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(_n(o))}else t!==void 0&&r.push(_n(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return ci(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=hi){var o;let i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){let a=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:di).toAttribute(r,n.type);this._$El=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(t,r){var n;let o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:di;this._$El=i,this[i]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||Ks)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};ke[pi]=!0,ke.elementProperties=new Map,ke.elementStyles=[],ke.shadowRootOptions={mode:"open"},Xs?.({ReactiveElement:ke}),((li=Sn.reactiveElementVersions)!==null&&li!==void 0?li:Sn.reactiveElementVersions=[]).push("1.6.3");var mi,Tn=window,kt=Tn.trustedTypes,Qs=kt?kt.createPolicy("lit-html",{createHTML:e=>e}):void 0,fi="$lit$",Be=`lit$${(Math.random()+"").slice(9)}$`,oc="?"+Be,md=`<${oc}>`,ot=document,_r=()=>ot.createComment(""),Sr=e=>e===null||typeof e!="object"&&typeof e!="function",ic=Array.isArray,ud=e=>ic(e)||typeof e?.[Symbol.iterator]=="function",ui=`[ -\f\r]`,wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zs=/-->/g,Js=/>/g,rt=RegExp(`>|${ui}(?:([^\\s"'>=/]+)(${ui}*=${ui}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),ec=/'/g,tc=/"/g,ac=/^(?:script|style|textarea|title)$/i,sc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),x=sc(1),Lf=sc(2),it=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),rc=new WeakMap,nt=ot.createTreeWalker(ot,129,null,!1);function cc(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qs!==void 0?Qs.createHTML(t):t}var fd=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"":"",a=wr;for(let s=0;s"?(a=o??wr,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?rt:h[3]==='"'?tc:ec):a===tc||a===ec?a=rt:a===Zs||a===Js?a=wr:(a=rt,o=void 0);let p=a===rt&&e[s+1].startsWith("/>")?" ":"";i+=a===wr?c+md:d>=0?(n.push(l),c.slice(0,d)+fi+c.slice(d)+Be+p):c+Be+(d===-2?(n.push(void 0),s):p)}return[cc(e,i+(e[r]||"")+(t===2?"":"")),n]},Tr=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,a=0,s=t.length-1,c=this.parts,[l,h]=fd(t,r);if(this.el=e.createElement(l,n),nt.currentNode=this.el.content,r===2){let d=this.el.content,m=d.firstChild;m.remove(),d.append(...m.childNodes)}for(;(o=nt.nextNode())!==null&&c.length0){o.textContent=kt?kt.emptyScript:"";for(let p=0;p2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,n,o){let i=this.strings,a=!1;if(i===void 0)t=Rt(this,t,r,0),a=!Sr(t)||t!==this._$AH&&t!==it,a&&(this._$AH=t);else{let s=t,c,l;for(t=i[0],c=0;c{var n,o;let i=(n=r?.renderBefore)!==null&&n!==void 0?n:t,a=i._$litPart$;if(a===void 0){let s=(o=r?.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=a=new Cr(t.insertBefore(_r(),s),s,void 0,r??{})}return a._$AI(e),a};var Ei,Ai;var H=class extends ke{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let n=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=n.firstChild),n}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lc(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return it}};H.finalized=!0,H._$litElement$=!0,(Ei=globalThis.litElementHydrateSupport)===null||Ei===void 0||Ei.call(globalThis,{LitElement:H});var hc=globalThis.litElementPolyfillSupport;hc?.({LitElement:H});((Ai=globalThis.litElementVersions)!==null&&Ai!==void 0?Ai:globalThis.litElementVersions=[]).push("3.3.3");var ge="(max-width: 767px)",Cn="(max-width: 1199px)",Y="(min-width: 768px)",F="(min-width: 1200px)",xe="(min-width: 1600px)";var dc=v` +`,Xe.MISSING_INTL_API,a);var O=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));y=h.options[O]||h.options.other}if(!y)throw new Un(h.value,m,Object.keys(h.options),a);s.push.apply(s,dr(y.value,t,r,o,n,m-(h.offset||0)));continue}}return Lh(s)}function Rh(e,t){return t?T(T(T({},e||{}),t||{}),Object.keys(e).reduce(function(r,o){return r[o]=T(T({},e[o]),t[o]||{}),r},{})):e}function Oh(e,t){return t?Object.keys(e).reduce(function(r,o){return r[o]=Rh(e[o],t[o]),r},T({},e)):e}function Dn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Nh(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:lr(function(){for(var t,r=[],o=0;o0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=Ha,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Ga=Fa;var Mh=/[0-9\-+#]/,$h=/[^\d\-+#]/g;function Va(e){return e.search(Mh)}function Ih(e="#.##"){let t={},r=e.length,o=Va(e);t.prefix=o>0?e.substring(0,o):"";let n=Va(e.split("").reverse().join("")),i=r-n,a=e.substring(i,i+1),s=i+(a==="."||a===","?1:0);t.suffix=n>0?e.substring(s,r):"",t.mask=e.substring(o,s),t.maskHasNegativeSign=t.mask.charAt(0)==="-",t.maskHasPositiveSign=t.mask.charAt(0)==="+";let c=t.mask.match($h);return t.decimal=c&&c[c.length-1]||".",t.separator=c&&c[1]&&c[0]||",",c=t.mask.split(t.decimal),t.integer=c[0],t.fraction=c[1],t}function Hh(e,t,r){let o=!1,n={value:e};e<0&&(o=!0,n.value=-n.value),n.sign=o?"-":"",n.value=Number(n.value).toFixed(t.fraction&&t.fraction.length),n.value=Number(n.value).toString();let i=t.fraction&&t.fraction.lastIndexOf("0"),[a="0",s=""]=n.value.split(".");return(!s||s&&s.length<=i)&&(s=i<0?"":(+("0."+s)).toFixed(i+1).replace("0.","")),n.integer=a,n.fraction=s,Uh(n,t),(n.result==="0"||n.result==="")&&(o=!1,n.sign=""),!o&&t.maskHasPositiveSign?n.sign="+":o&&t.maskHasPositiveSign?n.sign="-":o&&(n.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),n}function Uh(e,t){e.result="";let r=t.integer.split(t.separator),o=r.join(""),n=o&&o.indexOf("0");if(n>-1)for(;e.integer.lengthe*12,Ka=(e,t)=>{let{start:r,end:o,displaySummary:{amount:n,duration:i,minProductQuantity:a,outcomeType:s}={}}=e;if(!(n&&i&&s&&a))return!1;let c=t?new Date(t):new Date;if(!r||!o)return!1;let l=new Date(r),h=new Date(o);return c>=l&&c<=h},Ke={MONTH:"MONTH",YEAR:"YEAR"},zh={[se.ANNUAL]:12,[se.MONTHLY]:1,[se.THREE_YEARS]:36,[se.TWO_YEARS]:24},zn=(e,t)=>({accept:e,round:t}),Fh=[zn(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),zn(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),zn(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],Fn={[ze.YEAR]:{[se.MONTHLY]:Ke.MONTH,[se.ANNUAL]:Ke.YEAR},[ze.MONTH]:{[se.MONTHLY]:Ke.MONTH}},Gh=(e,t)=>e.indexOf(`'${t}'`)===0,Vh=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),o=Za(r);return!!o?t||(r=r.replace(/[,\.]0+/,o)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+qh(e)),r},jh=e=>{let t=Yh(e),r=Gh(e,t),o=e.replace(/'.*?'/,""),n=Wa.test(o)||Xa.test(o);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:n}},Qa=e=>e.replace(Wa,Ya).replace(Xa,Ya),qh=e=>e.match(/#(.?)#/)?.[1]===qa?Bh:qa,Yh=e=>e.match(/'(.*?)'/)?.[1]??"",Za=e=>e.match(/0(.?)0/)?.[1]??"";function wt({formatString:e,price:t,usePrecision:r,isIndianPrice:o=!1},n,i=a=>a){let{currencySymbol:a,isCurrencyFirst:s,hasCurrencySpace:c}=jh(e),l=r?Za(e):"",h=Vh(e,r),d=r?2:0,m=i(t,{currencySymbol:a}),p=o?m.toLocaleString("hi-IN",{minimumFractionDigits:d,maximumFractionDigits:d}):ja(h,m),g=r?p.lastIndexOf(l):p.length,b=p.substring(0,g),E=p.substring(g+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,p).replace(/SYMBOL/,a),currencySymbol:a,decimals:E,decimalsDelimiter:l,hasCurrencySpace:c,integer:b,isCurrencyFirst:s,recurrenceTerm:n}}var Ja=e=>{let{commitment:t,term:r,usePrecision:o}=e,n=zh[r]??1;return wt(e,n>1?Ke.MONTH:Fn[t]?.[r],i=>{let a={divisor:n,price:i,usePrecision:o},{round:s}=Fh.find(({accept:c})=>c(a));if(!s)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return s(a)})},es=({commitment:e,term:t,...r})=>wt(r,Fn[e]?.[t]),ts=e=>{let{commitment:t,instant:r,price:o,originalPrice:n,priceWithoutDiscount:i,promotion:a,quantity:s=1,term:c}=e;if(t===ze.YEAR&&c===se.MONTHLY){if(!a)return wt(e,Ke.YEAR,Bn);let{displaySummary:{outcomeType:l,duration:h,minProductQuantity:d=1}={}}=a;switch(l){case"PERCENTAGE_DISCOUNT":if(s>=d&&Ka(a,r)){let m=parseInt(h.replace("P","").replace("M",""));if(isNaN(m))return Bn(o);let p=s*n*m,g=s*i*(12-m),b=Math.round((p+g)*100)/100;return wt({...e,price:b},Ke.YEAR)}default:return wt(e,Ke.YEAR,()=>Bn(i??o))}}return wt(e,Fn[t]?.[c])};var Gn={recurrenceLabel:"{recurrenceTerm, select, MONTH {/mo} YEAR {/yr} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per month} YEAR {per year} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per license} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per license} other {}}",freeLabel:"Free",freeAriaLabel:"Free",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Alternatively at",strikethroughAriaLabel:"Regularly at",planTypeLabel:"{planType, select, ABM {Annual, paid monthly.} other {}}"},Wh=Xi("ConsonantTemplates/price"),Xh=/<\/?[^>]+(>|$)/g,z={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAlternative:"price-alternative",containerAnnual:"price-annual",containerAnnualPrefix:"price-annual-prefix",containerAnnualSuffix:"price-annual-suffix",disabled:"disabled",currencySpace:"price-currency-space",currencySymbol:"price-currency-symbol",decimals:"price-decimals",decimalsDelimiter:"price-decimals-delimiter",integer:"price-integer",recurrence:"price-recurrence",taxInclusivity:"price-tax-inclusivity",unitType:"price-unit-type"},He={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel",alternativePriceAriaLabel:"alternativePriceAriaLabel"},Vn="TAX_EXCLUSIVE",Kh=e=>qi(e)?Object.entries(e).filter(([,t])=>yt(t)||Fr(t)||t===!0).reduce((t,[r,o])=>t+` ${r}${o===!0?"":'="'+ji(o)+'"'}`,""):"",V=(e,t,r,o=!1)=>`${o?Qa(t):t??""}`;function Pe(e,t,r,o){let n=e[r];if(n==null)return"";try{return new Ga(n.replace(Xh,""),t).format(o)}catch{return Wh.error("Failed to format literal:",n),""}}function Qh(e,{accessibleLabel:t,altAccessibleLabel:r,currencySymbol:o,decimals:n,decimalsDelimiter:i,hasCurrencySpace:a,integer:s,isCurrencyFirst:c,recurrenceLabel:l,perUnitLabel:h,taxInclusivityLabel:d},m={}){let p=V(z.currencySymbol,o),g=V(z.currencySpace,a?" ":""),b="";return t?b=`${t}`:r&&(b=`${r}`),c&&(b+=p+g),b+=V(z.integer,s),b+=V(z.decimalsDelimiter,i),b+=V(z.decimals,n),c||(b+=g+p),b+=V(z.recurrence,l,null,!0),b+=V(z.unitType,h,null,!0),b+=V(z.taxInclusivity,d,!0),V(e,b,{...m})}var te=({isAlternativePrice:e=!1,displayOptical:t=!1,displayStrikethrough:r=!1,displayAnnual:o=!1,instant:n=void 0}={})=>({country:i,displayFormatted:a=!0,displayRecurrence:s=!0,displayPerUnit:c=!1,displayTax:l=!1,language:h,literals:d={},quantity:m=1}={},{commitment:p,offerSelectorIds:g,formatString:b,price:E,priceWithoutDiscount:R,taxDisplay:P,taxTerm:y,term:O,usePrecision:k,promotion:D}={},B={})=>{Object.entries({country:i,formatString:b,language:h,price:E}).forEach(([rl,ol])=>{if(ol==null)throw new Error(`Argument "${rl}" is missing for osi ${g?.toString()}, country ${i}, language ${h}`)});let K={...Gn,...d},U=`${h.toLowerCase()}-${i.toUpperCase()}`,j=r&&R?R:E,G=t?Ja:es;o&&(G=ts);let{accessiblePrice:Me,recurrenceTerm:Ae,...ut}=G({commitment:p,formatString:b,instant:n,isIndianPrice:i==="IN",originalPrice:E,priceWithoutDiscount:R,price:t?E:j,promotion:D,quantity:m,term:O,usePrecision:k}),Io="",Ho="",Uo="";A(s)&&Ae&&(Uo=Pe(K,U,He.recurrenceLabel,{recurrenceTerm:Ae}));let Do="";A(c)&&(Do=Pe(K,U,He.perUnitLabel,{perUnit:"LICENSE"}));let Bo="";A(l)&&y&&(Bo=Pe(K,U,P===Vn?He.taxExclusiveLabel:He.taxInclusiveLabel,{taxTerm:y})),r&&(Io=Pe(K,U,He.strikethroughAriaLabel,{strikethroughPrice:Io})),e&&(Ho=Pe(K,U,He.alternativePriceAriaLabel,{alternativePrice:Ho}));let ft=z.container;if(t&&(ft+=" "+z.containerOptical),r&&(ft+=" "+z.containerStrikethrough),e&&(ft+=" "+z.containerAlternative),o&&(ft+=" "+z.containerAnnual),A(a))return Qh(ft,{...ut,accessibleLabel:Io,altAccessibleLabel:Ho,recurrenceLabel:Uo,perUnitLabel:Do,taxInclusivityLabel:Bo},B);let{currencySymbol:Ui,decimals:Qc,decimalsDelimiter:Zc,hasCurrencySpace:Di,integer:Jc,isCurrencyFirst:el}=ut,gt=[Jc,Zc,Qc];el?(gt.unshift(Di?"\xA0":""),gt.unshift(Ui)):(gt.push(Di?"\xA0":""),gt.push(Ui)),gt.push(Uo,Do,Bo);let tl=gt.join("");return V(ft,tl,B)},rs=()=>(e,t,r)=>{let n=(e.displayOldPrice===void 0||A(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${n?te({displayStrikethrough:!0})(e,t,r)+" ":""}${te({isAlternativePrice:n})(e,t,r)}`},os=()=>(e,t,r)=>{let{instant:o}=e;try{o||(o=new URLSearchParams(document.location.search).get("instant")),o&&(o=new Date(o))}catch{o=void 0}let n={...e,displayTax:!1,displayPerUnit:!1},a=(e.displayOldPrice===void 0||A(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${a?te({displayStrikethrough:!0})(n,t,r)+" ":""}${te({isAlternativePrice:a})(e,t,r)}${V(z.containerAnnualPrefix," (")}${te({displayAnnual:!0,instant:o})(n,t,r)}${V(z.containerAnnualSuffix,")")}`},ns=()=>(e,t,r)=>{let o={...e,displayTax:!1,displayPerUnit:!1};return`${te({isAlternativePrice:e.displayOldPrice})(e,t,r)}${V(z.containerAnnualPrefix," (")}${te({displayAnnual:!0})(o,t,r)}${V(z.containerAnnualSuffix,")")}`};var pr={...z,containerLegal:"price-legal",planType:"price-plan-type"},lo={...He,planTypeLabel:"planTypeLabel"};function Zh(e,{perUnitLabel:t,taxInclusivityLabel:r,planTypeLabel:o},n={}){let i="";return i+=V(pr.unitType,t,null,!0),t&&(r||o)&&(i+=" ("),r&&o&&(r+=". "),i+=V(pr.taxInclusivity,r,!0),i+=V(pr.planType,o,null),t&&(r||o)&&(i+=")"),V(e,i,{...n})}var is=({country:e,displayPerUnit:t=!1,displayTax:r=!1,displayPlanType:o=!1,language:n,literals:i={}}={},{taxDisplay:a,taxTerm:s,planType:c}={},l={})=>{let h={...Gn,...i},d=`${n.toLowerCase()}-${e.toUpperCase()}`,m="";A(t)&&(m=Pe(h,d,lo.perUnitLabel,{perUnit:"LICENSE"}));let p="";e==="US"&&n==="en"&&(r=!1),A(r)&&s&&(p=Pe(h,d,a===Vn?lo.taxExclusiveLabel:lo.taxInclusiveLabel,{taxTerm:s}));let g="";A(o)&&c&&(g=Pe(h,d,lo.planTypeLabel,{planType:c}));let b=pr.container;return b+=" "+pr.containerLegal,Zh(b,{perUnitLabel:m,taxInclusivityLabel:p,planTypeLabel:g},l)};var as=te(),ss=rs(),cs=te({displayOptical:!0}),ls=te({displayStrikethrough:!0}),hs=te({displayAnnual:!0}),ds=te({displayOptical:!0,isAlternativePrice:!0}),ps=te({isAlternativePrice:!0}),ms=ns(),us=os(),fs=is;var Jh=(e,t)=>{if(!(!Jt(e)||!Jt(t)))return Math.floor((t-e)/t*100)},gs=()=>(e,t)=>{let{price:r,priceWithoutDiscount:o}=t,n=Jh(r,o);return n===void 0?'':`${n}%`};var xs=gs();var vs="INDIVIDUAL_COM",jn="TEAM_COM",ys="INDIVIDUAL_EDU",qn="TEAM_EDU",bs=["GB_en","AU_en","FR_fr","AT_de","BE_en","BE_fr","BE_nl","BG_bg","CH_de","CH_fr","CH_it","CZ_cs","DE_de","DK_da","EE_et","EG_ar","EG_en","ES_es","FI_fi","GR_el","GR_en","HU_hu","IE_en","IT_it","LU_de","LU_en","LU_fr","NL_nl","NO_nb","PL_pl","PT_pt","RO_ro","SE_sv","SI_sl","SK_sk","TR_tr","UA_uk","ID_en","ID_in","IN_en","IN_hi","JP_ja","MY_en","MY_ms","NZ_en","TH_en","TH_th"],ed={[vs]:["MU_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","SG_en","KR_ko"],[jn]:["MU_en","LT_lt","LV_lv","NG_en","CO_es","KR_ko"],[ys]:["LT_lt","LV_lv","SA_en","SG_en"],[qn]:["SG_en","KR_ko"]},td={MU_en:[!1,!1,!1,!1],NG_en:[!1,!1,!1,!1],AU_en:[!1,!1,!1,!1],JP_ja:[!1,!1,!1,!1],NZ_en:[!1,!1,!1,!1],TH_en:[!1,!1,!1,!1],TH_th:[!1,!1,!1,!1],CO_es:[!1,!0,!1,!1],AT_de:[!1,!1,!1,!0],SG_en:[!1,!1,!1,!0]},rd=[vs,jn,ys,qn],od=e=>[jn,qn].includes(e),nd=(e,t,r,o)=>{let n=`${e}_${t}`,i=`${r}_${o}`,a=td[n];if(a){let s=rd.indexOf(i);return a[s]}return od(i)},id=(e,t,r,o)=>{let n=`${e}_${t}`;if(bs.includes(e)||bs.includes(n))return!0;let i=ed[`${r}_${o}`];return i?i.includes(e)||i.includes(n)?!0:L.displayTax:L.displayTax},Es=async(e,t,r,o)=>{let n=id(e,t,r,o);return{displayTax:n,forceTaxExclusive:n?nd(e,t,r,o):L.forceTaxExclusive}},mr=class mr extends HTMLSpanElement{constructor(){super();f(this,"masElement",new At(this));this.handleClick=this.handleClick.bind(this)}static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-display-plan-type","data-display-annual","data-perpetual","data-promotion-code","data-force-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let o=ee();if(!o)return null;let{displayOldPrice:n,displayPerUnit:i,displayRecurrence:a,displayTax:s,displayPlanType:c,displayAnnual:l,forceTaxExclusive:h,perpetual:d,promotionCode:m,quantity:p,alternativePrice:g,template:b,wcsOsi:E}=o.collectPriceOptions(r);return Kr(mr,{displayOldPrice:n,displayPerUnit:i,displayRecurrence:a,displayTax:s,displayPlanType:c,displayAnnual:l,forceTaxExclusive:h,perpetual:d,promotionCode:m,quantity:p,alternativePrice:g,template:b,wcsOsi:E})}get isInlinePrice(){return!0}attributeChangedCallback(r,o,n){this.masElement.attributeChangedCallback(r,o,n)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.handleClick)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.handleClick)}handleClick(r){r.target!==this&&(r.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})))}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}get isFailed(){return this.masElement.state===he}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}async render(r={}){if(!this.isConnected)return!1;let o=ee();if(!o)return!1;let n=o.collectPriceOptions(r,this);if(!n.wcsOsi.length)return!1;if(N(Zt)==="on"&&(!this.dataset.displayTax||!this.dataset.forceTaxExclusive)){let[c]=await o.resolveOfferSelectors(n),l=or(await c,n);if(l?.length){let{country:h,language:d}=n,m=l[0],[p=""]=m.marketSegments,g=await Es(h,d,m.customerSegment,p);this.dataset.displayTax||(n.displayTax=g?.displayTax||n.displayTax),this.dataset.forceTaxExclusive||(n.forceTaxExclusive=g?.forceTaxExclusive||n.forceTaxExclusive)}}let a=this.masElement.togglePending(n);this.innerHTML="";let[s]=o.resolveOfferSelectors(n);try{let c=await s;return this.renderOffers(or(c,n),n,a)}catch(c){throw this.innerHTML="",c}}renderOffers(r,o={},n=void 0){if(!this.isConnected)return;let i=ee();if(!i)return!1;let a=i.collectPriceOptions({...this.dataset,...o},this);if(n??(n=this.masElement.togglePending(a)),r.length){if(this.masElement.toggleResolved(n,r,a)){this.innerHTML=i.buildPriceHTML(r,a);let s=this.closest("p, h3, div");if(!s||!s.querySelector('span[data-template="strikethrough"]')||s.querySelector(".alt-aria-label"))return!0;let c=s?.querySelectorAll('span[is="inline-price"]');return c.length>1&&c.length===s.querySelectorAll('span[data-template="strikethrough"]').length*2&&c.forEach(l=>{l.dataset.template!=="strikethrough"&&l.options&&!l.options.alternativePrice&&!l.isFailed&&(l.options.alternativePrice=!0,l.innerHTML=i.buildPriceHTML(r,l.options))}),!0}}else{let s=new Error(`Not provided: ${a?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(n,s,a))return this.innerHTML="",!0}return!1}updateOptions(r){let o=ee();if(!o)return!1;let{alternativePrice:n,displayOldPrice:i,displayPerUnit:a,displayRecurrence:s,displayTax:c,forceTaxExclusive:l,perpetual:h,promotionCode:d,quantity:m,template:p,wcsOsi:g}=o.collectPriceOptions(r);return Qr(this,{alternativePrice:n,displayOldPrice:i,displayPerUnit:a,displayRecurrence:s,displayTax:c,forceTaxExclusive:l,perpetual:h,promotionCode:d,quantity:m,template:p,wcsOsi:g}),!0}};f(mr,"is","inline-price"),f(mr,"tag","span");var Le=mr;window.customElements.get(Le.is)||window.customElements.define(Le.is,Le,{extends:Le.tag});function As({literals:e,providers:t,settings:r}){function o(a,s=null){let c=structuredClone(r);if(s)for(let D of t.price)D(s,c);let{displayOldPrice:l,displayPerUnit:h,displayRecurrence:d,displayTax:m,displayPlanType:p,forceTaxExclusive:g,perpetual:b,displayAnnual:E,promotionCode:R,quantity:P,alternativePrice:y,wcsOsi:O,...k}=Object.assign(c,s?.dataset??{},a??{});return Object.assign(c,er({...k,displayOldPrice:A(l),displayPerUnit:A(h),displayRecurrence:A(d),displayTax:A(m),displayPlanType:A(p),forceTaxExclusive:A(g),perpetual:A(b),displayAnnual:A(E),promotionCode:Vr(R).effectivePromoCode,quantity:Et(P,L.quantity),alternativePrice:A(y),wcsOsi:qr(O)})),c}function n(a,s){if(!Array.isArray(a)||!a.length||!s)return"";let{template:c}=s,l;switch(c){case"discount":l=xs;break;case"strikethrough":l=ls;break;case"annual":l=hs;break;case"legal":l=fs;break;default:s.template==="optical"&&s.alternativePrice?l=ds:s.template==="optical"?l=cs:s.displayAnnual&&a[0].planType==="ABM"?l=s.promotionCode?us:ms:s.alternativePrice?l=ps:l=s.promotionCode?ss:as}let h=o(s);h.literals=Object.assign({},e.price,er(s.literals??{}));let[d]=a;return d={...d,...d.priceDetails},l(h,d)}let i=Le.createInlinePrice;return{InlinePrice:Le,buildPriceHTML:n,collectPriceOptions:o,createInlinePrice:i}}function ad({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||L.language),t??(t=e?.split("_")?.[1]||L.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function ws(e={}){let t=N(Zt)==="on",{commerce:r={}}=e,o=fe.PRODUCTION,n=rn,i=N("checkoutClientId",r)??L.checkoutClientId,a=tr(N("checkoutWorkflowStep",r),J,L.checkoutWorkflowStep),s=A(N("displayOldPrice",r),t?L.displayOldPrice:!L.displayOldPrice),c=A(N("displayPerUnit",r),t?L.displayPerUnit:!L.displayPerUnit),l=A(N("displayRecurrence",r),L.displayRecurrence),h=A(N("displayTax",r),L.displayTax),d=A(N("displayPlanType",r),L.displayPlanType),m=A(N("entitlement",r),L.entitlement),p=A(N("modal",r),L.modal),g=A(N("forceTaxExclusive",r),L.forceTaxExclusive),b=N("promotionCode",r)??L.promotionCode,E=Et(N("quantity",r)),R=N("wcsApiKey",r)??L.wcsApiKey,P=r?.env==="stage",y=Ie.PUBLISHED;["true",""].includes(r.allowOverride)&&(P=(N(en,r,{metadata:!1})?.toLowerCase()??r?.env)==="stage",y=tr(N(tn,r),Ie,y)),P&&(o=fe.STAGE,n=on);let k=N(Jo)??e.preview,D=typeof k<"u"&&k!=="off"&&k!=="false",B={};D&&(B={preview:D});let K=N("mas-io-url")??e.masIOUrl??`https://www${o===fe.STAGE?".stage":""}.adobe.com/mas/io`,U=N("preselect-plan")??void 0;return{...ad(e),...B,displayOldPrice:s,checkoutClientId:i,checkoutWorkflowStep:a,displayPerUnit:c,displayRecurrence:l,displayTax:h,displayPlanType:d,entitlement:m,extraOptions:L.extraOptions,modal:p,env:o,forceTaxExclusive:g,promotionCode:b,quantity:E,alternativePrice:L.alternativePrice,wcsApiKey:R,wcsURL:n,landscape:y,masIOUrl:K,...U&&{preselectPlan:U}}}async function ho(e,t={},r=2,o=100){let n;for(let i=0;i<=r;i++)try{let a=await fetch(e,t);return a.retryCount=i,a}catch(a){if(n=a,n.retryCount=i,i>r)break;await new Promise(s=>setTimeout(s,o*(i+1)))}throw n}var sd="mas-commerce-service";function ur(e,t){let r;return function(){let o=this,n=arguments;clearTimeout(r),r=setTimeout(()=>e.apply(o,n),t)}}function re(e,t={},r=null,o=null){let n=o?document.createElement(e,{is:o}):document.createElement(e);r instanceof HTMLElement?n.appendChild(r):n.innerHTML=r;for(let[i,a]of Object.entries(t))n.setAttribute(i,a);return n}function po(){return window.matchMedia("(max-width: 767px)")}function _t(){return po().matches}function ge(e){return`startTime:${e.startTime.toFixed(2)}|duration:${e.duration.toFixed(2)}`}function _s(){return window.matchMedia("(max-width: 1024px)").matches}function St(){return document.getElementsByTagName(sd)?.[0]}var Yn="wcs";function Ss({settings:e}){let t=ie.module(Yn),{env:r,wcsApiKey:o}=e,n=new Map,i=new Map,a,s=new Map;async function c(p,g,b=!0){let E=ee(),R=Ko;t.debug("Fetching:",p);let P="",y;if(p.offerSelectorIds.length>1)throw new Error("Multiple OSIs are not supported anymore");let O=new Map(g),[k]=p.offerSelectorIds,D=Date.now()+Math.random().toString(36).substring(2,7),B=`${Yn}:${k}:${D}${je}`,K=`${Yn}:${k}:${D}${qe}`,U;try{if(performance.mark(B),P=new URL(e.wcsURL),P.searchParams.set("offer_selector_ids",k),P.searchParams.set("country",p.country),P.searchParams.set("locale",p.locale),P.searchParams.set("landscape",r===fe.STAGE?"ALL":e.landscape),P.searchParams.set("api_key",o),p.language&&P.searchParams.set("language",p.language),p.promotionCode&&P.searchParams.set("promotion_code",p.promotionCode),p.currency&&P.searchParams.set("currency",p.currency),y=await ho(P.toString(),{credentials:"omit"}),y.ok){let j=[];try{let G=await y.json();t.debug("Fetched:",p,G),j=G.resolvedOffers??[]}catch(G){t.error(`Error parsing JSON: ${G.message}`,{...G.context,...E?.duration})}j=j.map(rr),g.forEach(({resolve:G},Me)=>{let Ae=j.filter(({offerSelectorIds:ut})=>ut.includes(Me)).flat();Ae.length&&(O.delete(Me),g.delete(Me),G(Ae))})}else R=Xo}catch(j){R=`Network error: ${j.message}`}finally{U=performance.measure(K,B),performance.clearMarks(B),performance.clearMeasures(K)}if(b&&g.size){t.debug("Missing:",{offerSelectorIds:[...g.keys()]});let j=Yr(y);g.forEach(G=>{G.reject(new Te(R,{...p,...j,response:y,measure:ge(U),...E?.duration}))})}}function l(){clearTimeout(a);let p=[...i.values()];i.clear(),p.forEach(({options:g,promises:b})=>c(g,b))}function h(p){if(!p||typeof p!="object")throw new TypeError("Cache must be a Map or similar object");let g=r===fe.STAGE?"stage":"prod",b=p[g];if(!b||typeof b!="object"){t.warn(`No cache found for environment: ${r}`);return}for(let[E,R]of Object.entries(b))n.set(E,Promise.resolve(R.map(rr)));t.debug(`Prefilled WCS cache with ${b.size} entries`)}function d(){let p=n.size;s=new Map(n),n.clear(),t.debug(`Moved ${p} cache entries to stale cache`)}function m({country:p,language:g,perpetual:b=!1,promotionCode:E="",wcsOsi:R=[]}){let P=`${g}_${p}`;p!=="GB"&&!b&&(g="MULT");let y=[p,g,E].filter(O=>O).join("-").toLowerCase();return R.map(O=>{let k=`${O}-${y}`;if(n.has(k))return n.get(k);let D=new Promise((B,K)=>{let U=i.get(y);if(!U){let j={country:p,locale:P,offerSelectorIds:[]};p!=="GB"&&!b&&(j.language=g),U={options:j,promises:new Map},i.set(y,U)}E&&(U.options.promotionCode=E),U.options.offerSelectorIds.push(O),U.promises.set(O,{resolve:B,reject:K}),l()}).catch(B=>{if(s.has(k))return s.get(k);throw B});return n.set(k,D),D})}return{Commitment:ze,PlanType:Qi,Term:se,applyPlanType:rr,resolveOfferSelectors:m,flushWcsCacheInternal:d,prefillWcsCache:h}}var Ts="mas-commerce-service",Cs="mas-commerce-service:start",Ps="mas-commerce-service:ready",fr,mo,Ls,Wn=class extends HTMLElement{constructor(){super(...arguments);w(this,mo);w(this,fr);f(this,"lastLoggingTime",0)}async registerCheckoutAction(r){typeof r=="function"&&(this.buildCheckoutAction=async(o,n,i)=>{let a=await r?.(o,n,this.imsSignedInPromise,i);return a||null})}activate(){let r=u(this,mo,Ls),o=ws(r);Wr(r.lana);let n=ie.init(r.hostEnv).module("service");n.debug("Activating:",r);let a={price:ga(o)},s={checkout:new Set,price:new Set},c={literals:a,providers:s,settings:o};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...ma(c),...ua(c),...As(c),...Ss(c),...sn,Log:ie,get defaults(){return L},get log(){return ie},get providers(){return{checkout(h){return s.checkout.add(h),()=>s.checkout.delete(h)},price(h){return s.price.add(h),()=>s.price.delete(h)},has:h=>s.price.has(h)||s.checkout.has(h)}},get settings(){return o}})),n.debug("Activated:",{literals:a,settings:o});let l=new CustomEvent(Dr,{bubbles:!0,cancelable:!1,detail:this});performance.mark(Ps),_(this,fr,performance.measure(Ps,Cs)),this.dispatchEvent(l),setTimeout(()=>{this.logFailedRequests()},1e4)}connectedCallback(){performance.mark(Cs),this.activate()}flushWcsCache(){this.flushWcsCacheInternal(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCacheInternal(),document.querySelectorAll(Xt).forEach(r=>r.requestUpdate(!0)),this.log.debug("Refreshed WCS offers"),this.logFailedRequests()}refreshFragments(){this.flushWcsCacheInternal(),document.querySelectorAll("aem-fragment").forEach(r=>r.refresh()),this.log.debug("Refreshed AEM fragments"),this.logFailedRequests()}get duration(){return{"mas-commerce-service:measure":ge(u(this,fr))}}logFailedRequests(){let r=[...performance.getEntriesByType("resource")].filter(({startTime:n})=>n>this.lastLoggingTime).filter(({transferSize:n,duration:i,responseStatus:a})=>n===0&&i===0&&a<200||a>=400),o=Array.from(new Map(r.map(n=>[n.name,n])).values());if(o.some(({name:n})=>/(\/fragments\/|web_commerce_artifact)/.test(n))){let n=o.map(({name:i})=>i);this.log.error("Failed requests:",{failedUrls:n,...this.duration})}this.lastLoggingTime=performance.now().toFixed(3)}};fr=new WeakMap,mo=new WeakSet,Ls=function(){let r=this.getAttribute("env")??"prod",o={commerce:{env:r},hostEnv:{name:r},lana:{tags:this.getAttribute("lana-tags"),sampleRate:parseInt(this.getAttribute("lana-sample-rate")??1,10),isProdDomain:r==="prod"},masIOUrl:this.getAttribute("mas-io-url")};return["locale","country","language","preview"].forEach(n=>{let i=this.getAttribute(n);i&&(o[n]=i)}),["checkout-workflow-step","force-tax-exclusive","checkout-client-id","allow-override","wcs-api-key"].forEach(n=>{let i=this.getAttribute(n);if(i!=null){let a=n.replace(/-([a-z])/g,s=>s[1].toUpperCase());o.commerce[a]=i}}),o};window.customElements.get(Ts)||window.customElements.define(Ts,Wn);var gr=class gr extends Jr(HTMLButtonElement){static createCheckoutButton(t={},r=""){return Zr(gr,t,r)}setCheckoutUrl(t){this.setAttribute("data-href",t)}get href(){return this.getAttribute("data-href")}get isCheckoutButton(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}this.href&&(window.location.href=this.href)}};f(gr,"is","checkout-button"),f(gr,"tag","button");var Tt=gr;window.customElements.get(Tt.is)||window.customElements.define(Tt.is,Tt,{extends:Tt.tag});function cd(e){return`https://${e==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var xr,Qe=class Qe extends HTMLAnchorElement{constructor(){super();w(this,xr,!1);this.setAttribute("is",Qe.is)}get isUptLink(){return!0}initializeWcsData(r,o){this.setAttribute("data-wcs-osi",r),o&&this.setAttribute("data-promotion-code",o),_(this,xr,!0),this.composePromoTermsUrl()}attributeChangedCallback(r,o,n){u(this,xr)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let r=this.getAttribute("data-wcs-osi");if(!r){let d=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${d}`);return}let o=St(),n=[r],i=this.getAttribute("data-promotion-code"),{country:a,language:s,env:c}=o.settings,l={country:a,language:s,wcsOsi:n,promotionCode:i},h=o.resolveOfferSelectors(l);Promise.all(h).then(([[d]])=>{let m=`locale=${s}_${a}&country=${a}&offer_id=${d.offerId}`;i&&(m+=`&promotion_code=${encodeURIComponent(i)}`),this.href=`${cd(c)}?${m}`}).catch(d=>{console.error(`Could not resolve offer selectors for id: ${r}.`,d.message)})}static createFrom(r){let o=new Qe;for(let n of r.attributes)n.name!=="is"&&(n.name==="class"&&n.value.includes("upt-link")?o.setAttribute("class",n.value.replace("upt-link","").trim()):o.setAttribute(n.name,n.value));return o.innerHTML=r.innerHTML,o.setAttribute("tabindex",0),o}};xr=new WeakMap,f(Qe,"is","upt-link"),f(Qe,"tag","a"),f(Qe,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var Ue=Qe;window.customElements.get(Ue.is)||window.customElements.define(Ue.is,Ue,{extends:Ue.tag});var uo=window,go=uo.ShadowRoot&&(uo.ShadyCSS===void 0||uo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rs=Symbol(),ks=new WeakMap,fo=class{constructor(t,r,o){if(this._$cssResult$=!0,o!==Rs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(go&&t===void 0){let o=r!==void 0&&r.length===1;o&&(t=ks.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ks.set(r,t))}return t}toString(){return this.cssText}},Os=e=>new fo(typeof e=="string"?e:e+"",void 0,Rs);var Xn=(e,t)=>{go?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let o=document.createElement("style"),n=uo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,e.appendChild(o)})},xo=go?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let o of t.cssRules)r+=o.cssText;return Os(r)})(e):e;var Kn,bo=window,Ns=bo.trustedTypes,ld=Ns?Ns.emptyScript:"",Ms=bo.reactiveElementPolyfillSupport,Zn={toAttribute(e,t){switch(t){case Boolean:e=e?ld:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},$s=(e,t)=>t!==e&&(t==t||e==e),Qn={attribute:!0,type:String,converter:Zn,reflect:!1,hasChanged:$s},Jn="finalized",Ze=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,o)=>{let n=this._$Ep(o,r);n!==void 0&&(this._$Ev.set(n,o),t.push(n))}),t}static createProperty(t,r=Qn){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let o=typeof t=="symbol"?Symbol():"__"+t,n=this.getPropertyDescriptor(t,o,r);n!==void 0&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,r,o){return{get(){return this[r]},set(n){let i=this[t];this[r]=n,this.requestUpdate(t,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Qn}static finalize(){if(this.hasOwnProperty(Jn))return!1;this[Jn]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,o=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let n of o)this.createProperty(n,r[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)r.unshift(xo(n))}else t!==void 0&&r.push(xo(t));return r}static _$Ep(t,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,o;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)===null||o===void 0||o.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Xn(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostConnected)===null||o===void 0?void 0:o.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostDisconnected)===null||o===void 0?void 0:o.call(r)})}attributeChangedCallback(t,r,o){this._$AK(t,o)}_$EO(t,r,o=Qn){var n;let i=this.constructor._$Ep(t,o);if(i!==void 0&&o.reflect===!0){let a=(((n=o.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?o.converter:Zn).toAttribute(r,o.type);this._$El=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(t,r){var o;let n=this.constructor,i=n._$Ev.get(t);if(i!==void 0&&this._$El!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((o=a.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?a.converter:Zn;this._$El=i,this[i]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(t,r,o){let n=!0;t!==void 0&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||$s)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),o.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,o))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,i)=>this[i]=n),this._$Ei=void 0);let r=!1,o=this._$AL;try{r=this.shouldUpdate(o),r?(this.willUpdate(o),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var i;return(i=n.hostUpdate)===null||i===void 0?void 0:i.call(n)}),this.update(o)):this._$Ek()}catch(n){throw r=!1,this._$Ek(),n}r&&this._$AE(o)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(o=>{var n;return(n=o.hostUpdated)===null||n===void 0?void 0:n.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,o)=>this._$EO(o,this[o],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Ze[Jn]=!0,Ze.elementProperties=new Map,Ze.elementStyles=[],Ze.shadowRootOptions={mode:"open"},Ms?.({ReactiveElement:Ze}),((Kn=bo.reactiveElementVersions)!==null&&Kn!==void 0?Kn:bo.reactiveElementVersions=[]).push("1.6.3");var ei,vo=window,Ct=vo.trustedTypes,Is=Ct?Ct.createPolicy("lit-html",{createHTML:e=>e}):void 0,ri="$lit$",De=`lit$${(Math.random()+"").slice(9)}$`,Gs="?"+De,hd=`<${Gs}>`,tt=document,yo=()=>tt.createComment(""),vr=e=>e===null||typeof e!="object"&&typeof e!="function",Vs=Array.isArray,dd=e=>Vs(e)||typeof e?.[Symbol.iterator]=="function",ti=`[ +\f\r]`,br=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hs=/-->/g,Us=/>/g,Je=RegExp(`>|${ti}(?:([^\\s"'>=/]+)(${ti}*=${ti}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Ds=/'/g,Bs=/"/g,js=/^(?:script|style|textarea|title)$/i,qs=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),_f=qs(1),Sf=qs(2),yr=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),zs=new WeakMap,et=tt.createTreeWalker(tt,129,null,!1);function Ys(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Is!==void 0?Is.createHTML(t):t}var pd=(e,t)=>{let r=e.length-1,o=[],n,i=t===2?"":"",a=br;for(let s=0;s"?(a=n??br,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?Je:h[3]==='"'?Bs:Ds):a===Bs||a===Ds?a=Je:a===Hs||a===Us?a=br:(a=Je,n=void 0);let p=a===Je&&e[s+1].startsWith("/>")?" ":"";i+=a===br?c+hd:d>=0?(o.push(l),c.slice(0,d)+ri+c.slice(d)+De+p):c+De+(d===-2?(o.push(void 0),s):p)}return[Ys(e,i+(e[r]||"")+(t===2?"":"")),o]},Er=class e{constructor({strings:t,_$litType$:r},o){let n;this.parts=[];let i=0,a=0,s=t.length-1,c=this.parts,[l,h]=pd(t,r);if(this.el=e.createElement(l,o),et.currentNode=this.el.content,r===2){let d=this.el.content,m=d.firstChild;m.remove(),d.append(...m.childNodes)}for(;(n=et.nextNode())!==null&&c.length0){n.textContent=Ct?Ct.emptyScript:"";for(let p=0;p2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,o,n){let i=this.strings,a=!1;if(i===void 0)t=Pt(this,t,r,0),a=!vr(t)||t!==this._$AH&&t!==yr,a&&(this._$AH=t);else{let s=t,c,l;for(t=i[0],c=0;cnew Ar(typeof e=="string"?e:e+"",void 0,ci),v=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((o,n,i)=>o+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[i+1],e[0]);return new Ar(r,e,ci)},li=(e,t)=>{wo?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let o=document.createElement("style"),n=Ao.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,e.appendChild(o)})},_o=wo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let o of t.cssRules)r+=o.cssText;return ke(r)})(e):e;var hi,So=window,Xs=So.trustedTypes,ud=Xs?Xs.emptyScript:"",Ks=So.reactiveElementPolyfillSupport,pi={toAttribute(e,t){switch(t){case Boolean:e=e?ud:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Qs=(e,t)=>t!==e&&(t==t||e==e),di={attribute:!0,type:String,converter:pi,reflect:!1,hasChanged:Qs},mi="finalized",Re=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,o)=>{let n=this._$Ep(o,r);n!==void 0&&(this._$Ev.set(n,o),t.push(n))}),t}static createProperty(t,r=di){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let o=typeof t=="symbol"?Symbol():"__"+t,n=this.getPropertyDescriptor(t,o,r);n!==void 0&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,r,o){return{get(){return this[r]},set(n){let i=this[t];this[r]=n,this.requestUpdate(t,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||di}static finalize(){if(this.hasOwnProperty(mi))return!1;this[mi]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,o=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let n of o)this.createProperty(n,r[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)r.unshift(_o(n))}else t!==void 0&&r.push(_o(t));return r}static _$Ep(t,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,o;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)===null||o===void 0||o.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return li(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostConnected)===null||o===void 0?void 0:o.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostDisconnected)===null||o===void 0?void 0:o.call(r)})}attributeChangedCallback(t,r,o){this._$AK(t,o)}_$EO(t,r,o=di){var n;let i=this.constructor._$Ep(t,o);if(i!==void 0&&o.reflect===!0){let a=(((n=o.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?o.converter:pi).toAttribute(r,o.type);this._$El=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(t,r){var o;let n=this.constructor,i=n._$Ev.get(t);if(i!==void 0&&this._$El!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((o=a.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?a.converter:pi;this._$El=i,this[i]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(t,r,o){let n=!0;t!==void 0&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||Qs)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),o.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,o))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,i)=>this[i]=n),this._$Ei=void 0);let r=!1,o=this._$AL;try{r=this.shouldUpdate(o),r?(this.willUpdate(o),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var i;return(i=n.hostUpdate)===null||i===void 0?void 0:i.call(n)}),this.update(o)):this._$Ek()}catch(n){throw r=!1,this._$Ek(),n}r&&this._$AE(o)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(o=>{var n;return(n=o.hostUpdated)===null||n===void 0?void 0:n.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,o)=>this._$EO(o,this[o],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Re[mi]=!0,Re.elementProperties=new Map,Re.elementStyles=[],Re.shadowRootOptions={mode:"open"},Ks?.({ReactiveElement:Re}),((hi=So.reactiveElementVersions)!==null&&hi!==void 0?hi:So.reactiveElementVersions=[]).push("1.6.3");var ui,To=window,kt=To.trustedTypes,Zs=kt?kt.createPolicy("lit-html",{createHTML:e=>e}):void 0,gi="$lit$",Be=`lit$${(Math.random()+"").slice(9)}$`,ic="?"+Be,fd=`<${ic}>`,nt=document,_r=()=>nt.createComment(""),Sr=e=>e===null||typeof e!="object"&&typeof e!="function",ac=Array.isArray,gd=e=>ac(e)||typeof e?.[Symbol.iterator]=="function",fi=`[ +\f\r]`,wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Js=/-->/g,ec=/>/g,rt=RegExp(`>|${fi}(?:([^\\s"'>=/]+)(${fi}*=${fi}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),tc=/'/g,rc=/"/g,sc=/^(?:script|style|textarea|title)$/i,cc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),x=cc(1),Rf=cc(2),it=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),oc=new WeakMap,ot=nt.createTreeWalker(nt,129,null,!1);function lc(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zs!==void 0?Zs.createHTML(t):t}var xd=(e,t)=>{let r=e.length-1,o=[],n,i=t===2?"":"",a=wr;for(let s=0;s"?(a=n??wr,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?rt:h[3]==='"'?rc:tc):a===rc||a===tc?a=rt:a===Js||a===ec?a=wr:(a=rt,n=void 0);let p=a===rt&&e[s+1].startsWith("/>")?" ":"";i+=a===wr?c+fd:d>=0?(o.push(l),c.slice(0,d)+gi+c.slice(d)+Be+p):c+Be+(d===-2?(o.push(void 0),s):p)}return[lc(e,i+(e[r]||"")+(t===2?"":"")),o]},Tr=class e{constructor({strings:t,_$litType$:r},o){let n;this.parts=[];let i=0,a=0,s=t.length-1,c=this.parts,[l,h]=xd(t,r);if(this.el=e.createElement(l,o),ot.currentNode=this.el.content,r===2){let d=this.el.content,m=d.firstChild;m.remove(),d.append(...m.childNodes)}for(;(n=ot.nextNode())!==null&&c.length0){n.textContent=kt?kt.emptyScript:"";for(let p=0;p2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,o,n){let i=this.strings,a=!1;if(i===void 0)t=Rt(this,t,r,0),a=!Sr(t)||t!==this._$AH&&t!==it,a&&(this._$AH=t);else{let s=t,c,l;for(t=i[0],c=0;c{var o,n;let i=(o=r?.renderBefore)!==null&&o!==void 0?o:t,a=i._$litPart$;if(a===void 0){let s=(n=r?.renderBefore)!==null&&n!==void 0?n:null;i._$litPart$=a=new Cr(t.insertBefore(_r(),s),s,void 0,r??{})}return a._$AI(e),a};var Ai,wi;var H=class extends Re{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=o.firstChild),o}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=hc(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return it}};H.finalized=!0,H._$litElement$=!0,(Ai=globalThis.litElementHydrateSupport)===null||Ai===void 0||Ai.call(globalThis,{LitElement:H});var dc=globalThis.litElementPolyfillSupport;dc?.({LitElement:H});((wi=globalThis.litElementVersions)!==null&&wi!==void 0?wi:globalThis.litElementVersions=[]).push("3.3.3");var xe="(max-width: 767px)",Co="(max-width: 1199px)",Y="(min-width: 768px)",F="(min-width: 1200px)",be="(min-width: 1600px)";var pc=v` :host { --consonant-merch-card-background-color: #fff; --consonant-merch-card-border: 1px solid var(--consonant-merch-card-border-color); @@ -245,9 +245,9 @@ Try polyfilling it using "@formatjs/intl-pluralrules" ::slotted([slot='price']) { color: var(--consonant-merch-card-price-color); } -`,pc=()=>[v` +`,mc=()=>[v` /* Tablet */ - @media screen and ${Le(Y)} { + @media screen and ${ke(Y)} { :host([size='wide']), :host([size='super-wide']) { width: 100%; @@ -256,7 +256,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules" } /* Laptop */ - @media screen and ${Le(F)} { + @media screen and ${ke(F)} { :host([size='wide']) { grid-column: span 2; } @@ -296,7 +296,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules" width: var(--mod-img-width, var(--img-width)); height: var(--mod-img-height, var(--img-height)); } - `);customElements.define("merch-icon",Nt);var Pr,at,Lr,kr,Mt,Pn=class extends HTMLElement{constructor(){super();w(this,Pr,"");w(this,at);w(this,Lr,[]);w(this,kr,[]);w(this,Mt);_(this,Mt,ur(()=>{this.isConnected&&(this.parentElement.style.background=this.value,u(this,at)?this.parentElement.style.borderRadius=u(this,at):u(this,at)===""&&(this.parentElement.style.borderRadius=""))},1))}static get observedAttributes(){return["colors","positions","angle","border-radius"]}get value(){let r=u(this,Lr).map((n,o)=>{let i=u(this,kr)[o]||"";return`${n} ${i}`}).join(", ");return`linear-gradient(${u(this,Pr)}, ${r})`}connectedCallback(){u(this,Mt).call(this)}attributeChangedCallback(r,n,o){r==="border-radius"&&_(this,at,o?.trim()),r==="colors"&&o?_(this,Lr,o?.split(",").map(i=>i.trim())??[]):r==="positions"&&o?_(this,kr,o?.split(",").map(i=>i.trim())??[]):r==="angle"&&_(this,Pr,o?.trim()??""),u(this,Mt).call(this)}};Pr=new WeakMap,at=new WeakMap,Lr=new WeakMap,kr=new WeakMap,Mt=new WeakMap;customElements.define("merch-gradient",Pn);var $t=class extends H{constructor(){super(),this.planType=void 0,this.checked=!1,this.updatePlanType=this.updatePlanType.bind(this),this.handleChange=this.handleChange.bind(this)}getOsi(t,r){let i=({TRIAL:["TRIAL"],BASE:["BASE","PROMOTION"],PROMOTION:["PROMOTION","BASE"]}[r]||[r]).map(s=>`p[data-plan-type="${t}"] ${Q}[data-offer-type="${s}"]`).join(", ");return this.querySelector(i)?.dataset?.wcsOsi}connectedCallback(){super.connectedCallback(),this.addEventListener(vt,this.updatePlanType)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(vt,this.updatePlanType)}updatePlanType(t){if(t.target.tagName!=="SPAN")return;let r=t.target,n=r?.value?.[0];n&&(r.setAttribute("data-offer-type",n.offerType),r.closest("p").setAttribute("data-plan-type",n.planType))}handleChange(t){this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}render(){return x`{this.isConnected&&(this.parentElement.style.background=this.value,u(this,at)?this.parentElement.style.borderRadius=u(this,at):u(this,at)===""&&(this.parentElement.style.borderRadius=""))},1))}static get observedAttributes(){return["colors","positions","angle","border-radius"]}get value(){let r=u(this,Lr).map((o,n)=>{let i=u(this,kr)[n]||"";return`${o} ${i}`}).join(", ");return`linear-gradient(${u(this,Pr)}, ${r})`}connectedCallback(){u(this,Mt).call(this)}attributeChangedCallback(r,o,n){r==="border-radius"&&_(this,at,n?.trim()),r==="colors"&&n?_(this,Lr,n?.split(",").map(i=>i.trim())??[]):r==="positions"&&n?_(this,kr,n?.split(",").map(i=>i.trim())??[]):r==="angle"&&_(this,Pr,n?.trim()??""),u(this,Mt).call(this)}};Pr=new WeakMap,at=new WeakMap,Lr=new WeakMap,kr=new WeakMap,Mt=new WeakMap;customElements.define("merch-gradient",Po);var $t=class extends H{constructor(){super(),this.planType=void 0,this.checked=!1,this.updatePlanType=this.updatePlanType.bind(this),this.handleChange=this.handleChange.bind(this)}getOsi(t,r){let i=({TRIAL:["TRIAL"],BASE:["BASE","PROMOTION"],PROMOTION:["PROMOTION","BASE"]}[r]||[r]).map(s=>`p[data-plan-type="${t}"] ${Q}[data-offer-type="${s}"]`).join(", ");return this.querySelector(i)?.dataset?.wcsOsi}connectedCallback(){super.connectedCallback(),this.addEventListener(vt,this.updatePlanType)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(vt,this.updatePlanType)}updatePlanType(t){if(t.target.tagName!=="SPAN")return;let r=t.target,o=r?.value?.[0];o&&(r.setAttribute("data-offer-type",o.offerType),r.closest("p").setAttribute("data-plan-type",o.planType))}handleChange(t){this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}render(){return x`i&&this.getContainer().style.setProperty(n,`${o}px`)}get badge(){let t;if(!(!this.card.badgeBackgroundColor||!this.card.badgeColor||!this.card.badgeText))return this.evergreen&&(t=`border: 1px solid ${this.card.badgeBackgroundColor}; border-right: none;`),x` + `);customElements.define("merch-addon",$t);var It,Rr=class Rr{constructor(t){f(this,"card");w(this,It);this.card=t,this.insertVariantStyle()}getContainer(){return _(this,It,u(this,It)??this.card.closest('[class*="-merch-cards"]')??this.card.parentElement),u(this,It)}insertVariantStyle(){if(!Rr.styleMap[this.card.variant]){Rr.styleMap[this.card.variant]=!0;let t=document.createElement("style");t.innerHTML=this.getGlobalCSS(),document.head.appendChild(t)}}updateCardElementMinHeight(t,r){if(!t)return;let o=`--consonant-merch-card-${this.card.variant}-${r}-height`,n=Math.max(0,parseInt(window.getComputedStyle(t).height)||0),i=parseInt(this.getContainer().style.getPropertyValue(o))||0;n>i&&this.getContainer().style.setProperty(o,`${n}px`)}get badge(){let t;if(!(!this.card.badgeBackgroundColor||!this.card.badgeColor||!this.card.badgeText))return this.evergreen&&(t=`border: 1px solid ${this.card.badgeBackgroundColor}; border-right: none;`),x`
`}getGlobalCSS(){return""}get theme(){return document.querySelector("sp-theme")}get evergreen(){return this.card.classList.contains("intro-pricing")}get promoBottom(){return this.card.classList.contains("promo-bottom")}get headingSelector(){return'[slot="heading-xs"]'}get secureLabel(){return this.card.secureLabel?x`${this.card.secureLabel}`:I}get secureLabelFooter(){return x`
${this.secureLabel}
`}async adjustTitleWidth(){let t=this.card.getBoundingClientRect().width,r=this.card.badgeElement?.getBoundingClientRect().width||0;t===0||r===0||this.card.style.setProperty("--consonant-merch-card-heading-xs-max-width",`${Math.round(t-r-16)}px`)}postCardUpdateHook(){}connectedCallbackHook(){}disconnectedCallbackHook(){}renderLayout(){}get aemFragmentMapping(){return Ln(this.card.variant)}};It=new WeakMap,f(Rr,"styleMap",{});var M=Rr;var mc=` + >`:I}get secureLabelFooter(){return x`
${this.secureLabel}
`}async adjustTitleWidth(){let t=this.card.getBoundingClientRect().width,r=this.card.badgeElement?.getBoundingClientRect().width||0;t===0||r===0||this.card.style.setProperty("--consonant-merch-card-heading-xs-max-width",`${Math.round(t-r-16)}px`)}postCardUpdateHook(){}connectedCallbackHook(){}disconnectedCallbackHook(){}renderLayout(){}get aemFragmentMapping(){return Lo(this.card.variant)}};It=new WeakMap,f(Rr,"styleMap",{});var M=Rr;var uc=` :root { --consonant-merch-card-catalog-width: 276px; --consonant-merch-card-catalog-icon-size: 40px; @@ -383,7 +383,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules" } } -@media screen and ${xe} { +@media screen and ${be} { .four-merch-cards.catalog { grid-template-columns: repeat(4, var(--consonant-merch-card-catalog-width)); } @@ -434,12 +434,12 @@ merch-card[variant="catalog"] .payment-details { font-style: italic; font-weight: 400; line-height: var(--consonant-merch-card-body-line-height); -}`;var uc={badge:!0,ctas:{slot:"footer",size:"m"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},prices:{tag:"h3",slot:"heading-xs"},size:["wide","super-wide"],title:{tag:"h3",slot:"heading-xs"}},Ht=class extends M{constructor(r){super(r);f(this,"dispatchActionMenuToggle",()=>{this.card.dispatchEvent(new CustomEvent(zn,{bubbles:!0,composed:!0,detail:{card:this.card.name,type:"action-menu"}}))});f(this,"toggleActionMenu",r=>{if(!this.actionMenuContentSlot||!r||r.type!=="click"&&r.code!=="Space"&&r.code!=="Enter")return;r.preventDefault(),this.actionMenuContentSlot.classList.toggle("hidden");let n=this.actionMenuContentSlot.classList.contains("hidden");n||this.dispatchActionMenuToggle(),this.setAriaExpanded(this.actionMenu,(!n).toString())});f(this,"toggleActionMenuFromCard",r=>{let n=r?.type==="mouseleave"?!0:void 0;this.card.blur(),this.actionMenu?.classList.remove("always-visible"),this.actionMenuContentSlot&&(n||this.dispatchActionMenuToggle(),this.actionMenuContentSlot.classList.toggle("hidden",n),this.setAriaExpanded(this.actionMenu,"false"))});f(this,"hideActionMenu",r=>{this.actionMenuContentSlot?.classList.add("hidden"),this.setAriaExpanded(this.actionMenu,"false")})}get actionMenu(){return this.card.shadowRoot.querySelector(".action-menu")}get actionMenuContentSlot(){return this.card.shadowRoot.querySelector('slot[name="action-menu-content"]')}renderLayout(){return x`
+}`;var fc={badge:!0,ctas:{slot:"footer",size:"m"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},prices:{tag:"h3",slot:"heading-xs"},size:["wide","super-wide"],title:{tag:"h3",slot:"heading-xs"}},Ht=class extends M{constructor(r){super(r);f(this,"dispatchActionMenuToggle",()=>{this.card.dispatchEvent(new CustomEvent(Fo,{bubbles:!0,composed:!0,detail:{card:this.card.name,type:"action-menu"}}))});f(this,"toggleActionMenu",r=>{if(!this.actionMenuContentSlot||!r||r.type!=="click"&&r.code!=="Space"&&r.code!=="Enter")return;r.preventDefault(),this.actionMenuContentSlot.classList.toggle("hidden");let o=this.actionMenuContentSlot.classList.contains("hidden");o||this.dispatchActionMenuToggle(),this.setAriaExpanded(this.actionMenu,(!o).toString())});f(this,"toggleActionMenuFromCard",r=>{let o=r?.type==="mouseleave"?!0:void 0;this.card.blur(),this.actionMenu?.classList.remove("always-visible"),this.actionMenuContentSlot&&(o||this.dispatchActionMenuToggle(),this.actionMenuContentSlot.classList.toggle("hidden",o),this.setAriaExpanded(this.actionMenu,"false"))});f(this,"hideActionMenu",r=>{this.actionMenuContentSlot?.classList.add("hidden"),this.setAriaExpanded(this.actionMenu,"false")})}get actionMenu(){return this.card.shadowRoot.querySelector(".action-menu")}get actionMenuContentSlot(){return this.card.shadowRoot.querySelector('slot[name="action-menu-content"]')}renderLayout(){return x`
${this.badge}
`:""}
${this.secureLabelFooter} - `}getGlobalCSS(){return mc}setAriaExpanded(r,n){r.setAttribute("aria-expanded",n)}connectedCallbackHook(){this.card.addEventListener("mouseleave",this.toggleActionMenuFromCard)}disconnectedCallbackHook(){this.card.removeEventListener("mouseleave",this.toggleActionMenuFromCard)}};f(Ht,"variantStyle",v` + `}getGlobalCSS(){return uc}setAriaExpanded(r,o){r.setAttribute("aria-expanded",o)}connectedCallbackHook(){this.card.addEventListener("mouseleave",this.toggleActionMenuFromCard)}disconnectedCallbackHook(){this.card.removeEventListener("mouseleave",this.toggleActionMenuFromCard)}};f(Ht,"variantStyle",v` :host([variant='catalog']) { min-height: 330px; width: var(--consonant-merch-card-catalog-width); @@ -483,7 +483,7 @@ merch-card[variant="catalog"] .payment-details { margin-left: var(--consonant-merch-spacing-xxs); box-sizing: border-box; } - `);var fc=` + `);var gc=` :root { --consonant-merch-card-image-width: 300px; } @@ -517,7 +517,7 @@ merch-card[variant="catalog"] .payment-details { grid-template-columns: repeat(4, var(--consonant-merch-card-image-width-4clm)); } } -`;var kn=class extends M{constructor(t){super(t)}getGlobalCSS(){return fc}renderLayout(){return x`${this.cardImage} +`;var ko=class extends M{constructor(t){super(t)}getGlobalCSS(){return gc}renderLayout(){return x`${this.cardImage}
@@ -534,7 +534,7 @@ merch-card[variant="catalog"] .payment-details { `:x`
${this.secureLabelFooter} - `}`}};var gc=` + `}`}};var xc=` :root { --consonant-merch-card-inline-heading-width: 300px; } @@ -565,12 +565,12 @@ merch-card[variant="catalog"] .payment-details { } } -@media screen and ${xe} { +@media screen and ${be} { .four-merch-cards.inline-heading { grid-template-columns: repeat(4, var(--consonant-merch-card-inline-heading-width)); } } -`;var Rn=class extends M{constructor(t){super(t)}getGlobalCSS(){return gc}renderLayout(){return x` ${this.badge} +`;var Ro=class extends M{constructor(t){super(t)}getGlobalCSS(){return xc}renderLayout(){return x` ${this.badge}
@@ -578,7 +578,7 @@ merch-card[variant="catalog"] .payment-details {
- ${this.card.customHr?"":x`
`} ${this.secureLabelFooter}`}};var xc=` + ${this.card.customHr?"":x`
`} ${this.secureLabelFooter}`}};var bc=` :root { --consonant-merch-card-mini-compare-chart-icon-size: 32px; --consonant-merch-card-mini-compare-mobile-cta-font-size: 16px; @@ -820,7 +820,7 @@ merch-card[variant="catalog"] .payment-details { } /* mini compare mobile */ -@media screen and ${ge} { +@media screen and ${xe} { :root { --consonant-merch-card-mini-compare-chart-width: 302px; --consonant-merch-card-mini-compare-chart-wide-width: 302px; @@ -906,7 +906,7 @@ merch-card[variant="catalog"] .payment-details { } } -@media screen and ${Cn} { +@media screen and ${Co} { merch-card[variant="mini-compare-chart"] [slot='heading-m'] { font-size: var(--consonant-merch-card-body-s-font-size); line-height: var(--consonant-merch-card-body-s-line-height); @@ -976,7 +976,7 @@ merch-card[variant="catalog"] .payment-details { } } -@media screen and ${xe} { +@media screen and ${be} { .four-merch-cards.mini-compare-chart { grid-template-columns: repeat(4, var(--consonant-merch-card-mini-compare-chart-width)); } @@ -1013,11 +1013,11 @@ merch-card .footer-row-cell:nth-child(7) { merch-card .footer-row-cell:nth-child(8) { min-height: var(--consonant-merch-card-footer-row-8-min-height); } -`;var xd=32,Ut=class extends M{constructor(r){super(r);f(this,"getRowMinHeightPropertyName",r=>`--consonant-merch-card-footer-row-${r}-min-height`);f(this,"getMiniCompareFooter",()=>{let r=this.card.secureLabel?x` +`;var vd=32,Ut=class extends M{constructor(r){super(r);f(this,"getRowMinHeightPropertyName",r=>`--consonant-merch-card-footer-row-${r}-min-height`);f(this,"getMiniCompareFooter",()=>{let r=this.card.secureLabel?x` ${this.card.secureLabel}`:x``;return x`
${r}
`})}getGlobalCSS(){return xc}adjustMiniCompareBodySlots(){if(this.card.getBoundingClientRect().width<=2)return;this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(".top-section"),"top-section");let r=["heading-m","body-m","heading-m-price","body-xxs","price-commitment","offers","promo-text","callout-content","addon"];this.card.classList.contains("bullet-list")&&r.push("footer-rows"),r.forEach(o=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${o}"]`),o)),this.updateCardElementMinHeight(this.card.shadowRoot.querySelector("footer"),"footer");let n=this.card.shadowRoot.querySelector(".mini-compare-chart-badge");n&&n.textContent!==""&&this.getContainer().style.setProperty("--consonant-merch-card-mini-compare-chart-top-section-mobile-height","32px")}adjustMiniCompareFooterRows(){if(this.card.getBoundingClientRect().width===0)return;let r=this.card.querySelector('[slot="footer-rows"] ul');!r||!r.children||[...r.children].forEach((n,o)=>{let i=Math.max(xd,parseFloat(window.getComputedStyle(n).height)||0),a=parseFloat(this.getContainer().style.getPropertyValue(this.getRowMinHeightPropertyName(o+1)))||0;i>a&&this.getContainer().style.setProperty(this.getRowMinHeightPropertyName(o+1),`${i}px`)})}removeEmptyRows(){this.card.querySelectorAll(".footer-row-cell").forEach(n=>{let o=n.querySelector(".footer-row-cell-description");o&&!o.textContent.trim()&&n.remove()})}get mainPrice(){return this.card.querySelector(`[slot="heading-m-price"] ${Q}[data-template="price"]`)}get headingMPriceSlot(){return this.card.shadowRoot.querySelector('slot[name="heading-m-price"]')?.assignedElements()[0]}toggleAddon(r){let n=this.mainPrice,o=this.headingMPriceSlot;if(!n&&o){let i=r?.getAttribute("plan-type"),a=null;if(r&&i&&(a=r.querySelector(`p[data-plan-type="${i}"]`)?.querySelector('span[is="inline-price"]')),this.card.querySelectorAll('p[slot="heading-m-price"]').forEach(s=>s.remove()),r.checked){if(a){let s=re("p",{class:"addon-heading-m-price-addon",slot:"heading-m-price"},a.innerHTML);this.card.appendChild(s)}}else{let s=re("p",{class:"card-heading",id:"free",slot:"heading-m-price"},"Free");this.card.appendChild(s)}}}async adjustAddon(){await this.card.updateComplete;let r=this.card.addon;if(!r)return;let n=this.mainPrice,o=this.card.planType;n&&(await n.onceSettled(),o=n.value?.[0]?.planType),o&&(r.planType=o)}renderLayout(){return x`
+ >`:x``;return x`
${r}
`})}getGlobalCSS(){return bc}adjustMiniCompareBodySlots(){if(this.card.getBoundingClientRect().width<=2)return;this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(".top-section"),"top-section");let r=["heading-m","body-m","heading-m-price","body-xxs","price-commitment","offers","promo-text","callout-content","addon"];this.card.classList.contains("bullet-list")&&r.push("footer-rows"),r.forEach(n=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${n}"]`),n)),this.updateCardElementMinHeight(this.card.shadowRoot.querySelector("footer"),"footer");let o=this.card.shadowRoot.querySelector(".mini-compare-chart-badge");o&&o.textContent!==""&&this.getContainer().style.setProperty("--consonant-merch-card-mini-compare-chart-top-section-mobile-height","32px")}adjustMiniCompareFooterRows(){if(this.card.getBoundingClientRect().width===0)return;let r=this.card.querySelector('[slot="footer-rows"] ul');!r||!r.children||[...r.children].forEach((o,n)=>{let i=Math.max(vd,parseFloat(window.getComputedStyle(o).height)||0),a=parseFloat(this.getContainer().style.getPropertyValue(this.getRowMinHeightPropertyName(n+1)))||0;i>a&&this.getContainer().style.setProperty(this.getRowMinHeightPropertyName(n+1),`${i}px`)})}removeEmptyRows(){this.card.querySelectorAll(".footer-row-cell").forEach(o=>{let n=o.querySelector(".footer-row-cell-description");n&&!n.textContent.trim()&&o.remove()})}get mainPrice(){return this.card.querySelector(`[slot="heading-m-price"] ${Q}[data-template="price"]`)}get headingMPriceSlot(){return this.card.shadowRoot.querySelector('slot[name="heading-m-price"]')?.assignedElements()[0]}toggleAddon(r){let o=this.mainPrice,n=this.headingMPriceSlot;if(!o&&n){let i=r?.getAttribute("plan-type"),a=null;if(r&&i&&(a=r.querySelector(`p[data-plan-type="${i}"]`)?.querySelector('span[is="inline-price"]')),this.card.querySelectorAll('p[slot="heading-m-price"]').forEach(s=>s.remove()),r.checked){if(a){let s=re("p",{class:"addon-heading-m-price-addon",slot:"heading-m-price"},a.innerHTML);this.card.appendChild(s)}}else{let s=re("p",{class:"card-heading",id:"free",slot:"heading-m-price"},"Free");this.card.appendChild(s)}}}async adjustAddon(){await this.card.updateComplete;let r=this.card.addon;if(!r)return;let o=this.mainPrice,n=this.card.planType;o&&(await o.onceSettled(),n=o.value?.[0]?.planType),n&&(r.planType=n)}renderLayout(){return x`
${this.badge}
@@ -1065,7 +1065,7 @@ merch-card .footer-row-cell:nth-child(8) { color: var(--merch-color-grey-700); } - @media screen and ${Le(ge)} { + @media screen and ${ke(xe)} { :host([variant='mini-compare-chart'].bullet-list) .mini-compare-chart-badge { padding: 2px 10px; font-size: var(--consonant-merch-card-body-xs-font-size); @@ -1077,7 +1077,7 @@ merch-card .footer-row-cell:nth-child(8) { } } - @media screen and ${Le(Cn)} { + @media screen and ${ke(Co)} { [class*'-merch-cards'] :host([variant='mini-compare-chart']) footer { flex-direction: column; align-items: stretch; @@ -1085,7 +1085,7 @@ merch-card .footer-row-cell:nth-child(8) { } } - @media screen and ${Le(F)} { + @media screen and ${ke(F)} { :host([variant='mini-compare-chart']) footer { padding: var(--consonant-merch-spacing-xs) var(--consonant-merch-spacing-s) @@ -1141,7 +1141,7 @@ merch-card .footer-row-cell:nth-child(8) { :host([variant='mini-compare-chart']) slot[name='footer-rows'] { justify-content: flex-start; } - `);var bc=` + `);var vc=` :root { --consonant-merch-card-plans-width: 300px; --consonant-merch-card-plans-icon-size: 40px; @@ -1321,7 +1321,7 @@ merch-card[variant^="plans"] merch-addon span[data-template="price"] { } /* Mobile */ -@media screen and ${ge} { +@media screen and ${xe} { merch-whats-included merch-mnemonic-list, merch-whats-included [slot="heading"] { width: 100%; @@ -1403,7 +1403,7 @@ merch-card[variant^="plans"]:not([size]) { } /* Large desktop */ - @media screen and ${xe} { + @media screen and ${be} { .four-merch-cards.plans { grid-template-columns: repeat(4, var(--consonant-merch-card-plans-width)); } @@ -1411,11 +1411,11 @@ merch-card[variant^="plans"]:not([size]) { grid-template-columns: repeat(2, var(--consonant-merch-card-plans-width)); } } -`;var On={title:{tag:"h3",slot:"heading-xs"},prices:{tag:"p",slot:"heading-m"},promoText:{tag:"p",slot:"promo-text"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},callout:{tag:"div",slot:"callout-content"},quantitySelect:{tag:"div",slot:"quantity-select"},addon:!0,secureLabel:!0,planType:!0,badge:{tag:"div",slot:"badge",default:"spectrum-yellow-300-plans"},allowedBadgeColors:["spectrum-yellow-300-plans","spectrum-gray-300-plans","spectrum-gray-700-plans","spectrum-green-900-plans"],allowedBorderColors:["spectrum-yellow-300-plans","spectrum-gray-300-plans","spectrum-green-900-plans"],borderColor:{attribute:"border-color"},size:["wide","super-wide"],whatsIncluded:{tag:"div",slot:"whats-included"},ctas:{slot:"footer",size:"m"},style:"consonant"},vc={...function(){let{whatsIncluded:e,...t}=On;return t}(),title:{tag:"h3",slot:"heading-s"},subtitle:{tag:"p",slot:"subtitle"},secureLabel:!1},yc={...function(){let{whatsIncluded:e,size:t,quantitySelect:r,...n}=On;return n}()},be=class extends M{constructor(t){super(t),this.adaptForMobile=this.adaptForMobile.bind(this)}priceOptionsProvider(t,r){t.dataset.template===oo&&(r.displayPlanType=this.card?.settings?.displayPlanType??!1)}getGlobalCSS(){return bc}adaptForMobile(){if(!this.card.closest("merch-card-collection,overlay-trigger,.two-merch-cards,.three-merch-cards,.four-merch-cards, .columns")){this.card.removeAttribute("size");return}let t=this.card.shadowRoot,r=t.querySelector("footer"),n=this.card.getAttribute("size"),o=t.querySelector("footer #stock-checkbox"),i=t.querySelector(".body #stock-checkbox"),a=t.querySelector(".body");if(!n||!n.includes("wide")){r?.classList.remove("wide-footer"),o&&o.remove();return}let s=_t();if(r?.classList.toggle("wide-footer",!s),s&&o){i?o.remove():a.appendChild(o);return}!s&&i&&(o?i.remove():r.prepend(i))}adjustCallout(){let t=this.card.querySelector('[slot="callout-content"] .icon-button');t&&t.title&&(t.dataset.tooltip=t.title,t.removeAttribute("title"),t.classList.add("hide-tooltip"),document.addEventListener("touchstart",r=>{r.preventDefault(),r.target!==t?t.classList.add("hide-tooltip"):r.target.classList.toggle("hide-tooltip")}),document.addEventListener("mouseover",r=>{r.preventDefault(),r.target!==t?t.classList.add("hide-tooltip"):r.target.classList.remove("hide-tooltip")}))}postCardUpdateHook(){this.adaptForMobile(),this.adjustTitleWidth(),this.adjustLegal(),this.adjustAddon(),this.adjustCallout()}get headingM(){return this.card.querySelector('[slot="heading-m"]')}get mainPrice(){return this.headingM.querySelector(`${Q}[data-template="price"]`)}get divider(){return this.card.variant==="plans-education"?x`
`:I}async adjustLegal(){if(await this.card.updateComplete,this.legalAdjusted)return;this.legalAdjusted=!0;let t=[],r=this.card.querySelector(`[slot="heading-m"] ${Q}[data-template="price"]`);r&&t.push(r),this.card.querySelectorAll(`[slot="body-xs"] ${Q}[data-template="price"]`).forEach(i=>t.push(i));let o=t.map(async i=>{let a=i.cloneNode(!0);await i.onceSettled(),i?.options&&(i.options.displayPerUnit&&(i.dataset.displayPerUnit="false"),i.options.displayTax&&(i.dataset.displayTax="false"),i.options.displayPlanType&&(i.dataset.displayPlanType="false"),a.setAttribute("data-template","legal"),i.parentNode.insertBefore(a,i.nextSibling))});await Promise.all(o)}async adjustAddon(){await this.card.updateComplete;let t=this.card.addon;if(!t)return;let r=this.mainPrice;if(!r)return;await r.onceSettled();let n=r.value?.[0]?.planType;n&&(t.planType=n)}get stockCheckbox(){return this.card.checkboxLabel?x``:I}get icons(){return!this.card.querySelector('[slot="icons"]')&&!this.card.getAttribute("id")?I:x``}get addon(){return this.card.size==="super-wide"?I:x``}get plansSecureLabelFooter(){return this.card.size==="super-wide"?x`
${this.secureLabel}
`:this.secureLabelFooter}connectedCallbackHook(){let t=po();t?.addEventListener&&t.addEventListener("change",this.adaptForMobile)}disconnectedCallbackHook(){let t=po();t?.removeEventListener&&t.removeEventListener("change",this.adaptForMobile)}renderLayout(){return x` ${this.badge}
${this.icons} @@ -1435,7 +1435,7 @@ merch-card[variant^="plans"]:not([size]) {
- ${this.plansSecureLabelFooter}`}};f(be,"variantStyle",v` + ${this.plansSecureLabelFooter}`}};f(ve,"variantStyle",v` :host([variant^='plans']) { min-height: 273px; border: 1px solid var(--merch-card-custom-border-color, #dadada); @@ -1517,7 +1517,7 @@ merch-card[variant^="plans"]:not([size]) { line-height: 21px; padding: 2px 10px 3px; } - `);var Ec=` + `);var Ac=` :root { --consonant-merch-card-product-width: 300px; } @@ -1583,7 +1583,7 @@ merch-card[variant^="plans"]:not([size]) { grid-template-columns: repeat(4, var(--consonant-merch-card-product-width-4clm)); } } -`;var st=class extends M{constructor(t){super(t),this.postCardUpdateHook=this.postCardUpdateHook.bind(this)}getGlobalCSS(){return Ec}adjustProductBodySlots(){if(this.card.getBoundingClientRect().width===0)return;["heading-xs","body-xxs","body-xs","promo-text","callout-content","addon","body-lower"].forEach(r=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${r}"]`),r))}renderLayout(){return x` ${this.badge} +`;var st=class extends M{constructor(t){super(t),this.postCardUpdateHook=this.postCardUpdateHook.bind(this)}getGlobalCSS(){return Ac}adjustProductBodySlots(){if(this.card.getBoundingClientRect().width===0)return;["heading-xs","body-xxs","body-xs","promo-text","callout-content","addon","body-lower"].forEach(r=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${r}"]`),r))}renderLayout(){return x` ${this.badge}
@@ -1595,7 +1595,7 @@ merch-card[variant^="plans"]:not([size]) {
- ${this.secureLabelFooter}`}connectedCallbackHook(){window.addEventListener("resize",this.postCardUpdateHook)}disconnectedCallbackHook(){window.removeEventListener("resize",this.postCardUpdateHook)}postCardUpdateHook(){this.card.isConnected&&(this.adjustAddon(),_t()||this.adjustProductBodySlots(),this.adjustTitleWidth())}get headingXSSlot(){return this.card.shadowRoot.querySelector('slot[name="heading-xs"]').assignedElements()[0]}get mainPrice(){return this.card.querySelector(`[slot="heading-xs"] ${Q}[data-template="price"]`)}toggleAddon(t){let r=this.mainPrice,n=this.headingXSSlot;if(!r&&n){let o=t?.getAttribute("plan-type"),i=null;if(t&&o&&(i=t.querySelector(`p[data-plan-type="${o}"]`)?.querySelector('span[is="inline-price"]')),this.card.querySelectorAll('p[slot="heading-xs"]').forEach(a=>a.remove()),t.checked){if(i){let a=re("p",{class:"addon-heading-xs-price-addon",slot:"heading-xs"},i.innerHTML);this.card.appendChild(a)}}else{let a=re("p",{class:"card-heading",id:"free",slot:"heading-xs"},"Free");this.card.appendChild(a)}}}async adjustAddon(){await this.card.updateComplete;let t=this.card.addon;if(!t)return;let r=this.mainPrice,n=this.card.planType;r&&(await r.onceSettled(),n=r.value?.[0]?.planType),n&&(t.planType=n)}};f(st,"variantStyle",v` + ${this.secureLabelFooter}`}connectedCallbackHook(){window.addEventListener("resize",this.postCardUpdateHook)}disconnectedCallbackHook(){window.removeEventListener("resize",this.postCardUpdateHook)}postCardUpdateHook(){this.card.isConnected&&(this.adjustAddon(),_t()||this.adjustProductBodySlots(),this.adjustTitleWidth())}get headingXSSlot(){return this.card.shadowRoot.querySelector('slot[name="heading-xs"]').assignedElements()[0]}get mainPrice(){return this.card.querySelector(`[slot="heading-xs"] ${Q}[data-template="price"]`)}toggleAddon(t){let r=this.mainPrice,o=this.headingXSSlot;if(!r&&o){let n=t?.getAttribute("plan-type"),i=null;if(t&&n&&(i=t.querySelector(`p[data-plan-type="${n}"]`)?.querySelector('span[is="inline-price"]')),this.card.querySelectorAll('p[slot="heading-xs"]').forEach(a=>a.remove()),t.checked){if(i){let a=re("p",{class:"addon-heading-xs-price-addon",slot:"heading-xs"},i.innerHTML);this.card.appendChild(a)}}else{let a=re("p",{class:"card-heading",id:"free",slot:"heading-xs"},"Free");this.card.appendChild(a)}}}async adjustAddon(){await this.card.updateComplete;let t=this.card.addon;if(!t)return;let r=this.mainPrice,o=this.card.planType;r&&(await r.onceSettled(),o=r.value?.[0]?.planType),o&&(t.planType=o)}};f(st,"variantStyle",v` :host([variant='product']) > slot:not([name='icons']) { display: block; } @@ -1630,7 +1630,7 @@ merch-card[variant^="plans"]:not([size]) { :host([variant='product']) ::slotted([slot='heading-xs']) { max-width: var(--consonant-merch-card-heading-xs-max-width, 100%); } - `);var Ac=` + `);var wc=` :root { --consonant-merch-card-segment-width: 378px; } @@ -1644,7 +1644,7 @@ merch-card[variant^="plans"]:not([size]) { } /* Mobile */ -@media screen and ${ge} { +@media screen and ${xe} { :root { --consonant-merch-card-segment-width: 276px; } @@ -1676,7 +1676,7 @@ merch-card[variant^="plans"]:not([size]) { grid-template-columns: repeat(4, minmax(276px, var(--consonant-merch-card-segment-width))); } } -`;var Dt=class extends M{constructor(t){super(t)}getGlobalCSS(){return Ac}postCardUpdateHook(){this.adjustTitleWidth()}renderLayout(){return x` ${this.badge} +`;var Dt=class extends M{constructor(t){super(t)}getGlobalCSS(){return wc}postCardUpdateHook(){this.adjustTitleWidth()}renderLayout(){return x` ${this.badge}
@@ -1692,7 +1692,7 @@ merch-card[variant^="plans"]:not([size]) { :host([variant='segment']) ::slotted([slot='heading-xs']) { max-width: var(--consonant-merch-card-heading-xs-max-width, 100%); } - `);var wc=` + `);var _c=` :root { --consonant-merch-card-special-offers-width: 378px; } @@ -1709,7 +1709,7 @@ merch-card[variant="special-offers"] span[is="inline-price"][data-template="stri grid-template-columns: minmax(300px, var(--consonant-merch-card-special-offers-width)); } -@media screen and ${ge} { +@media screen and ${xe} { :root { --consonant-merch-card-special-offers-width: 302px; } @@ -1735,12 +1735,12 @@ merch-card[variant="special-offers"] span[is="inline-price"][data-template="stri } } -@media screen and ${xe} { +@media screen and ${be} { .four-merch-cards.special-offers { grid-template-columns: repeat(4, minmax(300px, var(--consonant-merch-card-special-offers-width))); } } -`;var _c={name:{tag:"h4",slot:"detail-m"},title:{tag:"h4",slot:"detail-m"},backgroundImage:{tag:"div",slot:"bg-image"},prices:{tag:"h3",slot:"heading-xs"},description:{tag:"div",slot:"body-xs"},ctas:{slot:"footer",size:"l"}},Bt=class extends M{constructor(t){super(t)}getGlobalCSS(){return wc}get headingSelector(){return'[slot="detail-m"]'}renderLayout(){return x`${this.cardImage} +`;var Sc={name:{tag:"h4",slot:"detail-m"},title:{tag:"h4",slot:"detail-m"},backgroundImage:{tag:"div",slot:"bg-image"},prices:{tag:"h3",slot:"heading-xs"},description:{tag:"div",slot:"body-xs"},ctas:{slot:"footer",size:"l"}},Bt=class extends M{constructor(t){super(t)}getGlobalCSS(){return _c}get headingSelector(){return'[slot="detail-m"]'}renderLayout(){return x`${this.cardImage}
@@ -1769,7 +1769,7 @@ merch-card[variant="special-offers"] span[is="inline-price"][data-template="stri :host([variant='special-offers'].center) { text-align: center; } - `);var wi=new Map,W=(e,t,r=null,n=null)=>{wi.set(e,{class:t,fragmentMapping:r,style:n})};W("catalog",Ht,uc,Ht.variantStyle);W("image",kn);W("inline-heading",Rn);W("mini-compare-chart",Ut,null,Ut.variantStyle);W("plans",be,On,be.variantStyle);W("plans-students",be,yc,be.variantStyle);W("plans-education",be,vc,be.variantStyle);W("product",st,null,st.variantStyle);W("segment",Dt,null,Dt.variantStyle);W("special-offers",Bt,_c,Bt.variantStyle);var _i=(e,t=!1)=>{let r=wi.get(e.variant);if(!r)return t?void 0:new st(e);let{class:n,style:o}=r;if(o)try{let i=new CSSStyleSheet;i.replaceSync(o.cssText),e.shadowRoot.adoptedStyleSheets.push(i)}catch{let a=document.createElement("style");a.textContent=o.cssText,e.shadowRoot.appendChild(a)}return new n(e)};function Ln(e){return wi.get(e)?.fragmentMapping}var Sc=document.createElement("style");Sc.innerHTML=` + `);var _i=new Map,W=(e,t,r=null,o=null)=>{_i.set(e,{class:t,fragmentMapping:r,style:o})};W("catalog",Ht,fc,Ht.variantStyle);W("image",ko);W("inline-heading",Ro);W("mini-compare-chart",Ut,null,Ut.variantStyle);W("plans",ve,Oo,ve.variantStyle);W("plans-students",ve,Ec,ve.variantStyle);W("plans-education",ve,yc,ve.variantStyle);W("product",st,null,st.variantStyle);W("segment",Dt,null,Dt.variantStyle);W("special-offers",Bt,Sc,Bt.variantStyle);var Si=(e,t=!1)=>{let r=_i.get(e.variant);if(!r)return t?void 0:new st(e);let{class:o,style:n}=r;if(n)try{let i=new CSSStyleSheet;i.replaceSync(n.cssText),e.shadowRoot.adoptedStyleSheets.push(i)}catch{let a=document.createElement("style");a.textContent=n.cssText,e.shadowRoot.appendChild(a)}return new o(e)};function Lo(e){return _i.get(e)?.fragmentMapping}var Tc=document.createElement("style");Tc.innerHTML=` :root { --consonant-merch-card-detail-font-size: 12px; --consonant-merch-card-detail-font-weight: 500; @@ -2360,7 +2360,7 @@ merch-card [slot='callout-content'] .icon-button::before { max-width: 180px; } } -`;document.head.appendChild(Sc);var Tc="fragment",Cc="author",Pc="preview",Si="aem-fragment",ve,Ti=class{constructor(){w(this,ve,new Map)}clear(){u(this,ve).clear()}addByRequestedId(t,r){u(this,ve).set(t,r)}put(t,r){u(this,ve).set(t,r)}add(...t){t.forEach(r=>{let{id:n}=r;n&&u(this,ve).set(n,r)})}has(t){return u(this,ve).has(t)}get(t){return u(this,ve).get(t)}remove(t){u(this,ve).delete(t)}};ve=new WeakMap;var Nn=new Ti,zt,ye,Re,X,le,ae,de,Or,Nr,Ft,pe,Lc,kc,Pi,Rc,Ci=class extends HTMLElement{constructor(){super(...arguments);w(this,pe);f(this,"cache",Nn);w(this,zt);w(this,ye,null);w(this,Re,null);w(this,X,{url:null,retryCount:0,stale:!1,measure:null,status:null});w(this,le,null);w(this,ae);w(this,de);w(this,Or,!1);w(this,Nr,0);w(this,Ft)}static get observedAttributes(){return[Tc,Cc,Pc]}attributeChangedCallback(r,n,o){r===Tc&&_(this,ae,o),r===Cc&&_(this,Or,["","true"].includes(o)),r===Pc&&_(this,Ft,o)}connectedCallback(){if(!u(this,de)){if(u(this,le)??_(this,le,St(this)),_(this,Ft,u(this,le).settings?.preview),u(this,zt)??_(this,zt,u(this,le).log.module(`${Si}[${u(this,ae)}]`)),!u(this,ae)||u(this,ae)==="#"){ne(this,pe,Pi).call(this,"Missing fragment id");return}this.refresh(!1)}}get fetchInfo(){return Object.fromEntries(Object.entries(u(this,X)).filter(([r,n])=>n!=null).map(([r,n])=>[`aem-fragment:${r}`,n]))}async refresh(r=!0){if(u(this,de)&&!await Promise.race([u(this,de),Promise.resolve(!1)]))return;r&&Nn.remove(u(this,ae));try{_(this,de,ne(this,pe,Rc).call(this)),await u(this,de)}catch(s){return ne(this,pe,Pi).call(this,s.message),!1}let{references:n,referencesTree:o,placeholders:i,wcs:a}=u(this,ye)||{};return a&&!N("mas.disableWcsCache")&&u(this,le).prefillWcsCache(a),this.dispatchEvent(new CustomEvent(Fe,{detail:{...this.data,references:n,referencesTree:o,placeholders:i,...u(this,X)},bubbles:!0,composed:!0})),u(this,de)}get updateComplete(){return u(this,de)??Promise.reject(new Error("AEM fragment cannot be loaded"))}get data(){return u(this,Re)?u(this,Re):(u(this,Or)?this.transformAuthorData():this.transformPublishData(),u(this,Re))}transformAuthorData(){let{fields:r,id:n,tags:o,settings:i={}}=u(this,ye);_(this,Re,r.reduce((a,{name:s,multiple:c,values:l})=>(a.fields[s]=c?l:l[0],a),{fields:{},id:n,tags:o,settings:i}))}transformPublishData(){let{fields:r,id:n,tags:o,settings:i={}}=u(this,ye);_(this,Re,Object.entries(r).reduce((a,[s,c])=>(a.fields[s]=c?.mimeType?c.value:c??"",a),{fields:{},id:n,tags:o,settings:i}))}async generatePreview(){let{previewFragment:r}=await import("https://mas.adobe.com/studio/libs/fragment-client.js");return await r(u(this,ae),{locale:u(this,le).settings.locale,apiKey:u(this,le).settings.wcsApiKey})}};zt=new WeakMap,ye=new WeakMap,Re=new WeakMap,X=new WeakMap,le=new WeakMap,ae=new WeakMap,de=new WeakMap,Or=new WeakMap,Nr=new WeakMap,Ft=new WeakMap,pe=new WeakSet,Lc=async function(r){zi(this,Nr)._++;let n=`${Si}:${u(this,ae)}:${u(this,Nr)}`,o=`${n}${je}`,i=`${n}${qe}`;if(u(this,Ft))return await this.generatePreview();performance.mark(o);let a;try{if(u(this,X).stale=!1,u(this,X).url=r,a=await dn(r,{cache:"default",credentials:"omit"}),ne(this,pe,kc).call(this,a),u(this,X).status=a?.status,u(this,X).measure=fe(performance.measure(i,o)),u(this,X).retryCount=a.retryCount,!a?.ok)throw new Se("Unexpected fragment response",{response:a,...u(this,le).duration});return await a.json()}catch(s){if(u(this,X).measure=fe(performance.measure(i,o)),u(this,X).retryCount=s.retryCount,u(this,ye))return u(this,X).stale=!0,u(this,zt).error("Serving stale data",u(this,X)),u(this,ye);let c=s.message??"unknown";throw new Se(`Failed to fetch fragment: ${c}`,{})}},kc=function(r){Object.assign(u(this,X),Yr(r))},Pi=function(r){_(this,de,null),u(this,X).message=r,this.classList.add("error");let n={...u(this,X),...u(this,le).duration};u(this,zt).error(r,n),this.dispatchEvent(new CustomEvent(Ge,{detail:n,bubbles:!0,composed:!0}))},Rc=async function(){this.classList.remove("error"),_(this,Re,null);let r=Nn.get(u(this,ae));if(r)return _(this,ye,r),!0;let{masIOUrl:n,wcsApiKey:o,locale:i}=u(this,le).settings,a=`${n}/fragment?id=${u(this,ae)}&api_key=${o}&locale=${i}`;return r=await ne(this,pe,Lc).call(this,a),Nn.addByRequestedId(u(this,ae),r),_(this,ye,r),!0};customElements.define(Si,Ci);var Gt=class extends H{constructor(){super(),this.color="",this.variant="",this.backgroundColor="",this.borderColor="",this.text=this.textContent}connectedCallback(){this.borderColor&&this.borderColor!=="Transparent"?this.style.setProperty("--merch-badge-border",`1px solid var(--${this.borderColor})`):this.style.setProperty("--merch-badge-border",`1px solid var(--${this.backgroundColor})`),this.style.setProperty("--merch-badge-background-color",`var(--${this.backgroundColor})`),this.style.setProperty("--merch-badge-color",this.color),this.style.setProperty("--merch-badge-padding","2px 10px 3px 10px"),this.style.setProperty("--merch-badge-border-radius","4px 0 0 4px"),this.style.setProperty("--merch-badge-font-size","var(--consonant-merch-card-body-xs-font-size)"),this.textContent="",super.connectedCallback()}render(){return x`
+`;document.head.appendChild(Tc);var Cc="fragment",Pc="author",Lc="preview",Ti="aem-fragment",ye,Ci=class{constructor(){w(this,ye,new Map)}clear(){u(this,ye).clear()}addByRequestedId(t,r){u(this,ye).set(t,r)}put(t,r){u(this,ye).set(t,r)}add(...t){t.forEach(r=>{let{id:o}=r;o&&u(this,ye).set(o,r)})}has(t){return u(this,ye).has(t)}get(t){return u(this,ye).get(t)}remove(t){u(this,ye).delete(t)}};ye=new WeakMap;var No=new Ci,zt,Ee,Oe,X,le,ae,de,Or,Nr,Ft,pe,kc,Rc,Li,Oc,Pi=class extends HTMLElement{constructor(){super(...arguments);w(this,pe);f(this,"cache",No);w(this,zt);w(this,Ee,null);w(this,Oe,null);w(this,X,{url:null,retryCount:0,stale:!1,measure:null,status:null});w(this,le,null);w(this,ae);w(this,de);w(this,Or,!1);w(this,Nr,0);w(this,Ft)}static get observedAttributes(){return[Cc,Pc,Lc]}attributeChangedCallback(r,o,n){r===Cc&&_(this,ae,n),r===Pc&&_(this,Or,["","true"].includes(n)),r===Lc&&_(this,Ft,n)}connectedCallback(){if(!u(this,de)){if(u(this,le)??_(this,le,St(this)),_(this,Ft,u(this,le).settings?.preview),u(this,zt)??_(this,zt,u(this,le).log.module(`${Ti}[${u(this,ae)}]`)),!u(this,ae)||u(this,ae)==="#"){oe(this,pe,Li).call(this,"Missing fragment id");return}this.refresh(!1)}}get fetchInfo(){return Object.fromEntries(Object.entries(u(this,X)).filter(([r,o])=>o!=null).map(([r,o])=>[`aem-fragment:${r}`,o]))}async refresh(r=!0){if(u(this,de)&&!await Promise.race([u(this,de),Promise.resolve(!1)]))return;r&&No.remove(u(this,ae));try{_(this,de,oe(this,pe,Oc).call(this)),await u(this,de)}catch(s){return oe(this,pe,Li).call(this,s.message),!1}let{references:o,referencesTree:n,placeholders:i,wcs:a}=u(this,Ee)||{};return a&&!N("mas.disableWcsCache")&&u(this,le).prefillWcsCache(a),this.dispatchEvent(new CustomEvent(Fe,{detail:{...this.data,references:o,referencesTree:n,placeholders:i,...u(this,X)},bubbles:!0,composed:!0})),u(this,de)}get updateComplete(){return u(this,de)??Promise.reject(new Error("AEM fragment cannot be loaded"))}get data(){return u(this,Oe)?u(this,Oe):(u(this,Or)?this.transformAuthorData():this.transformPublishData(),u(this,Oe))}transformAuthorData(){let{fields:r,id:o,tags:n,settings:i={}}=u(this,Ee);_(this,Oe,r.reduce((a,{name:s,multiple:c,values:l})=>(a.fields[s]=c?l:l[0],a),{fields:{},id:o,tags:n,settings:i}))}transformPublishData(){let{fields:r,id:o,tags:n,settings:i={}}=u(this,Ee);_(this,Oe,Object.entries(r).reduce((a,[s,c])=>(a.fields[s]=c?.mimeType?c.value:c??"",a),{fields:{},id:o,tags:n,settings:i}))}async generatePreview(){let{previewFragment:r}=await import("https://mas.adobe.com/studio/libs/fragment-client.js");return await r(u(this,ae),{locale:u(this,le).settings.locale,apiKey:u(this,le).settings.wcsApiKey})}};zt=new WeakMap,Ee=new WeakMap,Oe=new WeakMap,X=new WeakMap,le=new WeakMap,ae=new WeakMap,de=new WeakMap,Or=new WeakMap,Nr=new WeakMap,Ft=new WeakMap,pe=new WeakSet,kc=async function(r){Fi(this,Nr)._++;let o=`${Ti}:${u(this,ae)}:${u(this,Nr)}`,n=`${o}${je}`,i=`${o}${qe}`;if(u(this,Ft))return await this.generatePreview();performance.mark(n);let a;try{if(u(this,X).stale=!1,u(this,X).url=r,a=await ho(r,{cache:"default",credentials:"omit"}),oe(this,pe,Rc).call(this,a),u(this,X).status=a?.status,u(this,X).measure=ge(performance.measure(i,n)),u(this,X).retryCount=a.retryCount,!a?.ok)throw new Te("Unexpected fragment response",{response:a,...u(this,le).duration});return await a.json()}catch(s){if(u(this,X).measure=ge(performance.measure(i,n)),u(this,X).retryCount=s.retryCount,u(this,Ee))return u(this,X).stale=!0,u(this,zt).error("Serving stale data",u(this,X)),u(this,Ee);let c=s.message??"unknown";throw new Te(`Failed to fetch fragment: ${c}`,{})}},Rc=function(r){Object.assign(u(this,X),Yr(r))},Li=function(r){_(this,de,null),u(this,X).message=r,this.classList.add("error");let o={...u(this,X),...u(this,le).duration};u(this,zt).error(r,o),this.dispatchEvent(new CustomEvent(Ge,{detail:o,bubbles:!0,composed:!0}))},Oc=async function(){this.classList.remove("error"),_(this,Oe,null);let r=No.get(u(this,ae));if(r)return _(this,Ee,r),!0;let{masIOUrl:o,wcsApiKey:n,locale:i}=u(this,le).settings,a=`${o}/fragment?id=${u(this,ae)}&api_key=${n}&locale=${i}`;return r=await oe(this,pe,kc).call(this,a),No.addByRequestedId(u(this,ae),r),_(this,Ee,r),!0};customElements.define(Ti,Pi);var Gt=class extends H{constructor(){super(),this.color="",this.variant="",this.backgroundColor="",this.borderColor="",this.text=this.textContent}connectedCallback(){this.borderColor&&this.borderColor!=="Transparent"?this.style.setProperty("--merch-badge-border",`1px solid var(--${this.borderColor})`):this.style.setProperty("--merch-badge-border",`1px solid var(--${this.backgroundColor})`),this.style.setProperty("--merch-badge-background-color",`var(--${this.backgroundColor})`),this.style.setProperty("--merch-badge-color",this.color),this.style.setProperty("--merch-badge-padding","2px 10px 3px 10px"),this.style.setProperty("--merch-badge-border-radius","4px 0 0 4px"),this.style.setProperty("--merch-badge-font-size","var(--consonant-merch-card-body-xs-font-size)"),this.textContent="",super.connectedCallback()}render(){return x`
${this.text}
`}};f(Gt,"properties",{color:{type:String},variant:{type:String},backgroundColor:{type:String,attribute:"background-color"},borderColor:{type:String,attribute:"border-color"}}),f(Gt,"styles",v` :host { @@ -2436,7 +2436,7 @@ merch-card [slot='callout-content'] .icon-button::before { text-decoration: underline; color: var(--link-color-dark); } - `),f($r,"properties",{heading:{type:String,attribute:!0},mobileRows:{type:Number,attribute:!0}});customElements.define("merch-whats-included",$r);var bd="#000000",Li="#F8D904",vd="#EAEAEA",yd="#31A547",Ed=/(accent|primary|secondary)(-(outline|link))?/,Ad="mas:product_code/",wd="daa-ll",Mn="daa-lh",_d=["XL","L","M","S"],ki="...";function me(e,t,r,n){let o=n[e];if(t[e]&&o){let i={slot:o?.slot},a=t[e];if(o.maxCount&&typeof a=="string"){let[c,l]=Bd(a,o.maxCount,o.withSuffix);c!==a&&(i.title=l,a=c)}let s=re(o.tag,i,a);r.append(s)}}function Sd(e,t,r){let n=e.mnemonicIcon?.map((i,a)=>({icon:i,alt:e.mnemonicAlt[a]??"",link:e.mnemonicLink[a]??""}));n?.forEach(({icon:i,alt:a,link:s})=>{if(s&&!/^https?:/.test(s))try{s=new URL(`https://${s}`).href.toString()}catch{s="#"}let c={slot:"icons",src:i,loading:t.loading,size:r?.size??"l"};a&&(c.alt=a),s&&(c.href=s);let l=re("merch-icon",c);t.append(l)});let o=t.shadowRoot.querySelector('slot[name="icons"]');!n?.length&&o&&o.remove()}function Td(e,t,r){if(r.badge?.slot){if(e.badge?.length&&!e.badge?.startsWith("${e.badge}`}me("badge",e,t,r)}else e.badge?(t.setAttribute("badge-text",e.badge),t.setAttribute("badge-color",e.badgeColor||bd),t.setAttribute("badge-background-color",e.badgeBackgroundColor||Li),t.setAttribute("border-color",e.badgeBackgroundColor||Li)):t.setAttribute("border-color",e.borderColor||vd)}function Cd(e,t,r){if(r.trialBadge&&e.trialBadge){if(!e.trialBadge.startsWith("${e.trialBadge}`}me("trialBadge",e,t,r)}}function Pd(e,t,r){r?.includes(e.size)&&t.setAttribute("size",e.size)}function Ld(e,t,r){me("cardTitle",e,t,{cardTitle:r})}function kd(e,t,r){me("subtitle",e,t,r)}function Rd(e,t,r,n){if(!e.backgroundColor||e.backgroundColor.toLowerCase()==="default"){t.style.removeProperty("--merch-card-custom-background-color"),t.removeAttribute("background-color");return}r?.[e.backgroundColor]?(t.style.setProperty("--merch-card-custom-background-color",`var(${r[e.backgroundColor]})`),t.setAttribute("background-color",e.backgroundColor)):n?.attribute&&e.backgroundColor&&(t.setAttribute(n.attribute,e.backgroundColor),t.style.removeProperty("--merch-card-custom-background-color"))}function Od(e,t,r){let n=r?.borderColor,o="--merch-card-custom-border-color";e.borderColor?.toLowerCase()==="transparent"?(t.style.removeProperty(o),r?.allowedBorderColors?.includes(r?.badge?.default)&&t.style.setProperty(o,"transparent")):e.borderColor&&n&&(/-gradient/.test(e.borderColor)?(t.setAttribute("gradient-border","true"),t.style.removeProperty(o)):t.style.setProperty(o,`var(--${e.borderColor})`))}function Nd(e,t,r){if(e.backgroundImage){let n={loading:t.loading??"lazy",src:e.backgroundImage};if(e.backgroundImageAltText?n.alt=e.backgroundImageAltText:n.role="none",!r)return;if(r?.attribute){t.setAttribute(r.attribute,e.backgroundImage);return}t.append(re(r.tag,{slot:r.slot},re("img",n)))}}function Md(e,t,r){me("prices",e,t,r)}function Nc(e,t,r){let n=e.hasAttribute("data-wcs-osi")&&!!e.getAttribute("data-wcs-osi"),o=e.className||"",i=Ed.exec(o)?.[0]??"accent",a=i.includes("accent"),s=i.includes("primary"),c=i.includes("secondary"),l=i.includes("-outline"),h=i.includes("-link");e.classList.remove("accent","primary","secondary");let d;if(t.consonant)d=Vd(e,a,n,h);else if(h)d=e;else{let m;a?m="accent":s?m="primary":c&&(m="secondary"),d=t.spectrum==="swc"?Gd(e,r,l,m,n):Fd(e,r,l,m,n)}return d}function $d(e,t){let{slot:r}=t?.description,n=e.querySelectorAll(`[slot="${r}"] a[data-wcs-osi]`);n.length&&n.forEach(o=>{let i=Nc(o,e,t);o.replaceWith(i)})}function Id(e,t,r){me("promoText",e,t,r),me("description",e,t,r),$d(t,r),me("callout",e,t,r),me("quantitySelect",e,t,r),me("whatsIncluded",e,t,r)}function Hd(e,t,r){if(!r.addon)return;let n=e.addon?.replace(/[{}]/g,"");if(!n||/disabled/.test(n))return;let o=re("merch-addon",{slot:"addon"},n);[...o.querySelectorAll(Q)].forEach(i=>{let a=i.parentElement;a?.nodeName==="P"&&a.setAttribute("data-plan-type","")}),t.append(o)}function Ud(e,t,r){e.addonConfirmation&&me("addonConfirmation",e,t,r)}function Dd(e,t,r,n){n?.secureLabel&&r?.secureLabel&&t.setAttribute("secure-label",n.secureLabel)}function Bd(e,t,r=!0){try{let n=typeof e!="string"?"":e,o=Oc(n);if(o.length<=t)return[n,o];let i=0,a=!1,s=r?t-ki.length<1?1:t-ki.length:t,c=[];for(let d of n){if(i++,d==="<")if(a=!0,n[i]==="/")c.pop();else{let m="";for(let p of n.substring(i)){if(p===" "||p===">")break;m+=p}c.push(m)}if(d==="/"&&n[i]===">"&&c.pop(),d===">"){a=!1;continue}if(!a&&(s--,s===0))break}let l=n.substring(0,i).trim();if(c.length>0){c[0]==="p"&&c.shift();for(let d of c.reverse())l+=``}return[`${l}${r?ki:""}`,o]}catch{let o=typeof e=="string"?e:"",i=Oc(o);return[o,i]}}function Oc(e){if(!e)return"";let t="",r=!1;for(let n of e){if(n==="<"&&(r=!0),n===">"){r=!1;continue}r||(t+=n)}return t}function zd(e,t){t.querySelectorAll("a.upt-link").forEach(n=>{let o=Ue.createFrom(n);n.replaceWith(o),o.initializeWcsData(e.osi,e.promoCode)})}function Fd(e,t,r,n,o){let i=e;o?i=customElements.get("checkout-button").createCheckoutButton({},e.innerHTML):i.innerHTML=`${i.textContent}`,i.setAttribute("tabindex",0);for(let h of e.attributes)["class","is"].includes(h.name)||i.setAttribute(h.name,h.value);i.firstElementChild?.classList.add("spectrum-Button-label");let a=t?.ctas?.size??"M",s=`spectrum-Button--${n}`,c=_d.includes(a)?`spectrum-Button--size${a}`:"spectrum-Button--sizeM",l=["spectrum-Button",s,c];return r&&l.push("spectrum-Button--outline"),i.classList.add(...l),i}function Gd(e,t,r,n,o){let i=e;o&&(i=customElements.get("checkout-button").createCheckoutButton(e.dataset),i.connectedCallback(),i.render());let a="fill";r&&(a="outline");let s=re("sp-button",{treatment:a,variant:n,tabIndex:0,size:t?.ctas?.size??"m",...e.dataset.analyticsId&&{"data-analytics-id":e.dataset.analyticsId}},e.innerHTML);return s.source=i,(o?i.onceSettled():Promise.resolve(i)).then(c=>{s.setAttribute("data-navigation-url",c.href)}),s.addEventListener("click",c=>{c.defaultPrevented||i.click()}),s}function Vd(e,t,r,n){let o=e;return r&&(o=customElements.get("checkout-link").createCheckoutLink(e.dataset,e.innerHTML)),n||(o.classList.add("con-button"),t&&o.classList.add("blue")),o}function jd(e,t,r,n){if(e.ctas){let{slot:o}=r.ctas,i=re("div",{slot:o},e.ctas),a=[...i.querySelectorAll("a")].map(s=>Nc(s,t,r));i.innerHTML="",i.append(...a),t.append(i)}}function qd(e,t){let{tags:r}=e,n=r?.find(i=>i.startsWith(Ad))?.split("/").pop();if(!n)return;t.setAttribute(Mn,n),[...t.shadowRoot.querySelectorAll("a[data-analytics-id],button[data-analytics-id]"),...t.querySelectorAll("a[data-analytics-id],button[data-analytics-id]")].forEach((i,a)=>{i.setAttribute(wd,`${i.dataset.analyticsId}-${a+1}`)})}function Yd(e){e.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([t,r])=>{e.querySelectorAll(`a.${t}`).forEach(n=>{n.classList.remove(t),n.classList.add("spectrum-Link",`spectrum-Link--${r}`)})})}function Wd(e){e.querySelectorAll("[slot]").forEach(n=>{n.remove()}),e.variant=void 0,["checkbox-label","stock-offer-osis","secure-label","background-image","background-color","border-color","badge-background-color","badge-color","badge-text","gradient-border","size",Mn].forEach(n=>e.removeAttribute(n));let r=["wide-strip","thin-strip"];e.classList.remove(...r)}async function Mc(e,t){if(!e){let s=t?.id||"unknown";throw console.error(`hydrate: Fragment is undefined. Cannot hydrate card (merchCard id: ${s}).`),new Error(`hydrate: Fragment is undefined for card (merchCard id: ${s}).`)}if(!e.fields){let s=e.id||"unknown",c=t?.id||"unknown";throw console.error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${c}) is missing 'fields'. Cannot hydrate.`),new Error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${c}) is missing 'fields'.`)}let{id:r,fields:n,settings:o={}}=e,{variant:i}=n;if(!i)throw new Error(`hydrate: no variant found in payload ${r}`);Wd(t),t.settings=o,t.id??(t.id=e.id),t.variant=i,await t.updateComplete;let{aemFragmentMapping:a}=t.variantLayout;if(!a)throw new Error(`hydrate: variant mapping not found for ${r}`);a.style==="consonant"&&t.setAttribute("consonant",!0),Sd(n,t,a.mnemonics),Td(n,t,a),Cd(n,t,a),Pd(n,t,a.size),Ld(n,t,a.title),kd(n,t,a),Md(n,t,a),Nd(n,t,a.backgroundImage),Rd(n,t,a.allowedColors,a.backgroundColor),Od(n,t,a),Id(n,t,a),Hd(n,t,a),Ud(n,t,a),Dd(n,t,a,o),zd(n,t),jd(n,t,a,i),qd(n,t),Yd(t)}var Oi="merch-card",Ri=2e4,$c="merch-card:";function Ic(e,t){let r=e.closest(Oi);if(!r)return t;r.variantLayout?.priceOptionsProvider?.(e,t)}function Xd(e){e.providers.has(Ic)||e.providers.price(Ic)}var Kd=0,Vt,jt,Ir,Oe,ht,Ne,lt,ct=class extends H{constructor(){super();w(this,Ne);w(this,Vt);w(this,jt);w(this,Ir);w(this,Oe);w(this,ht);f(this,"customerSegment");f(this,"marketSegment");f(this,"variantLayout");this.id=null,this.failed=!1,this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.loading="lazy",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this),this.handleMerchOfferSelectReady=this.handleMerchOfferSelectReady.bind(this)}firstUpdated(){this.variantLayout=_i(this,!1),this.variantLayout?.connectedCallbackHook()}willUpdate(r){(r.has("variant")||!this.variantLayout)&&(this.variantLayout=_i(this),this.variantLayout.connectedCallbackHook())}updated(r){(r.has("badgeBackgroundColor")||r.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),r.has("backgroundColor")&&this.style.setProperty("--merch-card-custom-background-color",this.backgroundColor?`var(--${this.backgroundColor})`:"");try{this.variantLayout?.postCardUpdateHook(r)}catch(n){ne(this,Ne,lt).call(this,`Error in postCardUpdateHook: ${n.message}`,{},!1)}}get theme(){return this.closest("sp-theme")}get dir(){return this.closest("[dir]")?.getAttribute("dir")??"ltr"}get prices(){return Array.from(this.querySelectorAll('span[is="inline-price"][data-wcs-osi]'))}render(){if(!(!this.isConnected||!this.variantLayout||this.style.display==="none"))return this.variantLayout.renderLayout()}get computedBorderStyle(){return["ccd-slice","ccd-suggested","ah-promoted-plans"].includes(this.variant)?"":`1px solid ${this.borderColor?this.borderColor:this.badgeBackgroundColor}`}get badgeElement(){return this.shadowRoot.getElementById("badge")}get headingmMSlot(){return this.shadowRoot.querySelector('slot[name="heading-m"]').assignedElements()[0]}get footerSlot(){return this.shadowRoot.querySelector('slot[name="footer"]')?.assignedElements()[0]}get descriptionSlot(){return this.shadowRoot.querySelector('slot[name="body-xs"')?.assignedElements()[0]}get descriptionSlotCompare(){return this.shadowRoot.querySelector('slot[name="body-m"')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector(Q)}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll(Ae)??[]]}get checkoutLinksDescription(){return[...this.descriptionSlot?.querySelectorAll(Ae)??[]]}get checkoutLinkDescriptionCompare(){return[...this.descriptionSlotCompare?.querySelectorAll(Ae)??[]]}get activeDescriptionLinks(){return this.variant==="mini-compare-chart"?this.checkoutLinkDescriptionCompare:this.checkoutLinksDescription}async toggleStockOffer({target:r}){if(!this.stockOfferOsis)return;let n=this.checkoutLinks;if(n.length!==0)for(let o of n){await o.onceSettled();let i=o.value?.[0]?.planType;if(!i)return;let a=this.stockOfferOsis[i];if(!a)return;let s=o.dataset.wcsOsi.split(",").filter(c=>c!==a);r.checked&&s.push(a),o.dataset.wcsOsi=s.join(",")}}changeHandler(r){r.target.tagName==="MERCH-ADDON"&&this.toggleAddon(r.target)}toggleAddon(r){this.variantLayout?.toggleAddon?.(r);let n=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(n.length===0)return;let o=i=>{let{offerType:a,planType:s}=i.value?.[0]??{};if(!a||!s)return;let c=r.getOsi(s,a),l=(i.dataset.wcsOsi||"").split(",").filter(h=>h&&h!==c);r.checked&&l.push(c),i.dataset.wcsOsi=l.join(",")};n.forEach(o)}handleQuantitySelection(r){let n=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(n.length!==0)for(let o of n)o.dataset.quantity=r.detail.option}get titleElement(){return this.querySelector(this.variantLayout?.headingSelector||".card-heading")}get title(){return this.titleElement?.textContent?.trim()}get description(){return this.querySelector('[slot="body-xs"]')?.textContent?.trim()}updateFilters(r){let n={...this.filters};Object.keys(n).forEach(o=>{if(r){n[o].order=Math.min(n[o].order||2,2);return}let i=n[o].order;i===1||isNaN(i)||(n[o].order=Number(i)+1)}),this.filters=n}includes(r){return this.textContent.match(new RegExp(r,"i"))!==null}connectedCallback(){super.connectedCallback(),u(this,jt)||_(this,jt,Kd++),this.id??(this.id=this.getAttribute("id")??this.aemFragment?.getAttribute("fragment"));let r=this.id??u(this,jt);_(this,ht,`${$c}${r}${je}`),_(this,Vt,`${$c}${r}${qe}`),performance.mark(u(this,ht)),_(this,Oe,St()),Xd(u(this,Oe)),_(this,Ir,u(this,Oe).Log.module(Oi)),this.addEventListener(we,this.handleQuantitySelection),this.addEventListener(Br,this.handleAddonAndQuantityUpdate),this.addEventListener(Kt,this.handleMerchOfferSelectReady),this.addEventListener(Ge,this.handleAemFragmentEvents),this.addEventListener(Fe,this.handleAemFragmentEvents),this.addEventListener("change",this.changeHandler),this.aemFragment||setTimeout(()=>this.checkReady(),0)}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(we,this.handleQuantitySelection),this.removeEventListener(Ge,this.handleAemFragmentEvents),this.removeEventListener(Fe,this.handleAemFragmentEvents),this.removeEventListener("change",this.changeHandler),this.removeEventListener(Br,this.handleAddonAndQuantityUpdate)}async handleAemFragmentEvents(r){if(this.isConnected&&(r.type===Ge&&ne(this,Ne,lt).call(this,"AEM fragment cannot be loaded"),r.type===Fe&&(this.failed=!1,r.target.nodeName==="AEM-FRAGMENT"))){let n=r.detail;try{await Mc(n,this)}catch(o){ne(this,Ne,lt).call(this,`hydration has failed: ${o.message}`)}this.checkReady()}}async checkReady(){if(!this.isConnected)return;let r=new Promise(a=>setTimeout(()=>a("timeout"),Ri));if(this.aemFragment){let a=await Promise.race([this.aemFragment.updateComplete,r]);if(a===!1||a==="timeout"){let s=a==="timeout"?`AEM fragment was not resolved within ${Ri} timeout`:"AEM fragment cannot be loaded";ne(this,Ne,lt).call(this,s,{},!1);return}}let n=[...this.querySelectorAll(Xt)],o=Promise.all(n.map(a=>a.onceSettled().catch(()=>a))).then(a=>a.every(s=>s.classList.contains("placeholder-resolved"))),i=await Promise.race([o,r]);if(i===!0){this.measure=performance.measure(u(this,Vt),u(this,ht));let a={...this.aemFragment?.fetchInfo,...u(this,Oe).duration,measure:fe(this.measure)};return this.dispatchEvent(new CustomEvent(Gn,{bubbles:!0,composed:!0,detail:a})),this}else{this.measure=performance.measure(u(this,Vt),u(this,ht));let a={measure:fe(this.measure),...u(this,Oe).duration};i==="timeout"?ne(this,Ne,lt).call(this,`Contains offers that were not resolved within ${Ri} timeout`,a):ne(this,Ne,lt).call(this,"Contains unresolved offers",a)}}get aemFragment(){return this.querySelector("aem-fragment")}get addon(){return this.querySelector("merch-addon")}get quantitySelect(){return this.querySelector("merch-quantity-select")}get addonCheckbox(){return this.querySelector("merch-addon")}displayFooterElementsInColumn(){if(!this.classList.contains("product"))return;let r=this.shadowRoot.querySelector(".secure-transaction-label");(this.footerSlot?.querySelectorAll(Ae)).length===2&&r&&r.parentElement.classList.add("footer-column")}handleMerchOfferSelectReady(){this.offerSelect&&!this.offerSelect.planType||this.displayFooterElementsInColumn()}get dynamicPrice(){return this.querySelector('[slot="price"]')}handleAddonAndQuantityUpdate({detail:{id:r,items:n}}){if(!r||!n?.length)return;let o=this.checkoutLinks.find(l=>l.getAttribute("data-modal-id")===r);if(!o)return;let a=new URL(o.getAttribute("href")).searchParams.get("pa"),s=n.find(l=>l.productArrangementCode===a)?.quantity,c=!!n.find(l=>l.productArrangementCode!==a);if(s&&this.quantitySelect?.dispatchEvent(new CustomEvent(bt,{detail:{quantity:s},bubbles:!0,composed:!0})),this.addonCheckbox&&this.addonCheckbox.checked!==c){this.toggleStockOffer({target:this.addonCheckbox});let l=new Event("change",{bubbles:!0,cancelable:!0});Object.defineProperty(l,"target",{writable:!1,value:{checked:c}}),this.addonCheckbox.handleChange(l)}}};Vt=new WeakMap,jt=new WeakMap,Ir=new WeakMap,Oe=new WeakMap,ht=new WeakMap,Ne=new WeakSet,lt=function(r,n={},o=!0){if(!this.isConnected)return;let a=this.aemFragment?.getAttribute("fragment");a=`[${a}]`;let s={...this.aemFragment.fetchInfo,...u(this,Oe).duration,...n,message:r};u(this,Ir).error(`merch-card${a}: ${r}`,s),this.failed=!0,o&&this.dispatchEvent(new CustomEvent(Vn,{bubbles:!0,composed:!0,detail:s}))},f(ct,"properties",{id:{type:String,attribute:"id",reflect:!0},name:{type:String,attribute:"name",reflect:!0},variant:{type:String,reflect:!0},size:{type:String,attribute:"size",reflect:!0},badgeColor:{type:String,attribute:"badge-color",reflect:!0},borderColor:{type:String,attribute:"border-color",reflect:!0},backgroundColor:{type:String,attribute:"background-color",reflect:!0},badgeBackgroundColor:{type:String,attribute:"badge-background-color",reflect:!0},backgroundImage:{type:String,attribute:"background-image",reflect:!0},badgeText:{type:String,attribute:"badge-text"},actionMenu:{type:Boolean,attribute:"action-menu"},actionMenuLabel:{type:String,attribute:"action-menu-label"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},failed:{type:Boolean,attribute:"failed",reflect:!0},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},addonTitle:{type:String,attribute:"addon-title"},addonOffers:{type:Object,attribute:"addon-offers"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},planType:{type:String,attribute:"plan-type",reflect:!0},settings:{type:Object,attribute:!1},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:r=>{if(!r)return;let[n,o,i]=r.split(",");return{PUF:n,ABM:o,M2M:i}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:r=>Object.fromEntries(r.split(",").map(n=>{let[o,i,a]=n.split(":"),s=Number(i);return[o,{order:isNaN(s)?void 0:s,size:a}]})),toAttribute:r=>Object.entries(r).map(([n,{order:o,size:i}])=>[n,o,i].filter(a=>a!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:Mn,reflect:!0},loading:{type:String}}),f(ct,"styles",[dc,...pc()]),f(ct,"registerVariant",W),f(ct,"getFragmentMapping",Ln);customElements.define(Oi,ct);var qt,Hr=class extends H{constructor(){super();w(this,qt);this.defaults={},this.variant="plans"}saveContainerDefaultValues(){let r=this.closest(this.getAttribute("container")),n=r?.querySelector('[slot="description"]:not(merch-offer > *)')?.cloneNode(!0),o=r?.badgeText;return{description:n,badgeText:o}}getSlottedElement(r,n){return(n||this.closest(this.getAttribute("container"))).querySelector(`[slot="${r}"]:not(merch-offer > *)`)}updateSlot(r,n){let o=this.getSlottedElement(r,n);if(!o)return;let i=this.selectedOffer.getOptionValue(r)?this.selectedOffer.getOptionValue(r):this.defaults[r];i&&o.replaceWith(i.cloneNode(!0))}handleOfferSelection(r){let n=r.detail;this.selectOffer(n)}handleOfferSelectionByQuantity(r){let n=r.detail.option,o=Number.parseInt(n),i=this.findAppropriateOffer(o);this.selectOffer(i),this.getSlottedElement("cta").setAttribute("data-quantity",o)}selectOffer(r){if(!r)return;let n=this.selectedOffer;n&&(n.selected=!1),r.selected=!0,this.selectedOffer=r,this.planType=r.planType,this.updateContainer(),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Fn,{detail:this,bubbles:!0}))})}findAppropriateOffer(r){let n=null;return this.offers.find(i=>{let a=Number.parseInt(i.getAttribute("value"));if(a===r)return!0;if(a>r)return!1;n=i})||n}updateBadgeText(r){this.selectedOffer.badgeText===""?r.badgeText=null:this.selectedOffer.badgeText?r.badgeText=this.selectedOffer.badgeText:r.badgeText=this.defaults.badgeText}updateContainer(){let r=this.closest(this.getAttribute("container"));!r||!this.selectedOffer||(this.updateSlot("cta",r),this.updateSlot("secondary-cta",r),this.updateSlot("price",r),!this.manageableMode&&(this.updateSlot("description",r),this.updateBadgeText(r)))}render(){return x`
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("click",this.handleFocusin),this.addEventListener(xt,this.handleOfferSelectReady);let r=this.closest("merch-quantity-select");this.manageableMode=r,this.offers=[...this.querySelectorAll("merch-offer")],_(this,qt,this.handleOfferSelectionByQuantity.bind(this)),this.manageableMode?r.addEventListener(we,u(this,qt)):this.defaults=this.saveContainerDefaultValues(),this.selectedOffer=this.offers[0],this.planType&&this.updateContainer()}get miniCompareMobileCard(){return this.merchCard?.variant==="mini-compare-chart"&&this.isMobile}get merchCard(){return this.closest("merch-card")}get isMobile(){return window.matchMedia("(max-width: 767px)").matches}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(we,u(this,qt)),this.removeEventListener(xt,this.handleOfferSelectReady),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("click",this.handleFocusin)}get price(){return this.querySelector('merch-offer[aria-selected] [is="inline-price"]')}get customerSegment(){return this.selectedOffer?.customerSegment}get marketSegment(){return this.selectedOffer?.marketSegment}handleFocusin(r){r.target?.nodeName==="MERCH-OFFER"&&(r.preventDefault(),r.stopImmediatePropagation(),this.selectOffer(r.target))}async handleOfferSelectReady(){this.planType||this.querySelector("merch-offer:not([plan-type])")||(this.planType=this.selectedOffer.planType,await this.updateComplete,this.selectOffer(this.selectedOffer??this.querySelector("merch-offer[aria-selected]")??this.querySelector("merch-offer")),this.dispatchEvent(new CustomEvent(Kt,{bubbles:!0})))}};qt=new WeakMap,f(Hr,"styles",v` + `),f($r,"properties",{heading:{type:String,attribute:!0},mobileRows:{type:Number,attribute:!0}});customElements.define("merch-whats-included",$r);var yd="#000000",ki="#F8D904",Ed="#EAEAEA",Ad="#31A547",wd=/(accent|primary|secondary)(-(outline|link))?/,_d="mas:product_code/",Sd="daa-ll",Mo="daa-lh",Td=["XL","L","M","S"],Ri="...";function me(e,t,r,o){let n=o[e];if(t[e]&&n){let i={slot:n?.slot},a=t[e];if(n.maxCount&&typeof a=="string"){let[c,l]=Fd(a,n.maxCount,n.withSuffix);c!==a&&(i.title=l,a=c)}let s=re(n.tag,i,a);r.append(s)}}function Cd(e,t,r){let o=e.mnemonicIcon?.map((i,a)=>({icon:i,alt:e.mnemonicAlt[a]??"",link:e.mnemonicLink[a]??""}));o?.forEach(({icon:i,alt:a,link:s})=>{if(s&&!/^https?:/.test(s))try{s=new URL(`https://${s}`).href.toString()}catch{s="#"}let c={slot:"icons",src:i,loading:t.loading,size:r?.size??"l"};a&&(c.alt=a),s&&(c.href=s);let l=re("merch-icon",c);t.append(l)});let n=t.shadowRoot.querySelector('slot[name="icons"]');!o?.length&&n&&n.remove()}function Pd(e,t,r){if(r.badge?.slot){if(e.badge?.length&&!e.badge?.startsWith("${e.badge}`}me("badge",e,t,r)}else e.badge?(t.setAttribute("badge-text",e.badge),t.setAttribute("badge-color",e.badgeColor||yd),t.setAttribute("badge-background-color",e.badgeBackgroundColor||ki),t.setAttribute("border-color",e.badgeBackgroundColor||ki)):t.setAttribute("border-color",e.borderColor||Ed)}function Ld(e,t,r){if(r.trialBadge&&e.trialBadge){if(!e.trialBadge.startsWith("${e.trialBadge}`}me("trialBadge",e,t,r)}}function kd(e,t,r){r?.includes(e.size)&&t.setAttribute("size",e.size)}function Rd(e,t,r){me("cardTitle",e,t,{cardTitle:r})}function Od(e,t,r){me("subtitle",e,t,r)}function Nd(e,t,r,o){if(!e.backgroundColor||e.backgroundColor.toLowerCase()==="default"){t.style.removeProperty("--merch-card-custom-background-color"),t.removeAttribute("background-color");return}r?.[e.backgroundColor]?(t.style.setProperty("--merch-card-custom-background-color",`var(${r[e.backgroundColor]})`),t.setAttribute("background-color",e.backgroundColor)):o?.attribute&&e.backgroundColor&&(t.setAttribute(o.attribute,e.backgroundColor),t.style.removeProperty("--merch-card-custom-background-color"))}function Md(e,t,r){let o=r?.borderColor,n="--merch-card-custom-border-color";e.borderColor?.toLowerCase()==="transparent"?(t.style.removeProperty(n),r?.allowedBorderColors?.includes(r?.badge?.default)&&t.style.setProperty(n,"transparent")):e.borderColor&&o&&(/-gradient/.test(e.borderColor)?(t.setAttribute("gradient-border","true"),t.style.removeProperty(n)):t.style.setProperty(n,`var(--${e.borderColor})`))}function $d(e,t,r){if(e.backgroundImage){let o={loading:t.loading??"lazy",src:e.backgroundImage};if(e.backgroundImageAltText?o.alt=e.backgroundImageAltText:o.role="none",!r)return;if(r?.attribute){t.setAttribute(r.attribute,e.backgroundImage);return}t.append(re(r.tag,{slot:r.slot},re("img",o)))}}function Id(e,t,r){me("prices",e,t,r)}function Mc(e,t,r){let o=e.hasAttribute("data-wcs-osi")&&!!e.getAttribute("data-wcs-osi"),n=e.className||"",i=wd.exec(n)?.[0]??"accent",a=i.includes("accent"),s=i.includes("primary"),c=i.includes("secondary"),l=i.includes("-outline"),h=i.includes("-link");e.classList.remove("accent","primary","secondary");let d;if(t.consonant)d=qd(e,a,o,h);else if(h)d=e;else{let m;a?m="accent":s?m="primary":c&&(m="secondary"),d=t.spectrum==="swc"?jd(e,r,l,m,o):Vd(e,r,l,m,o)}return d}function Hd(e,t){let{slot:r}=t?.description,o=e.querySelectorAll(`[slot="${r}"] a[data-wcs-osi]`);o.length&&o.forEach(n=>{let i=Mc(n,e,t);n.replaceWith(i)})}function Ud(e,t,r){me("promoText",e,t,r),me("description",e,t,r),Hd(t,r),me("callout",e,t,r),me("quantitySelect",e,t,r),me("whatsIncluded",e,t,r)}function Dd(e,t,r){if(!r.addon)return;let o=e.addon?.replace(/[{}]/g,"");if(!o||/disabled/.test(o))return;let n=re("merch-addon",{slot:"addon"},o);[...n.querySelectorAll(Q)].forEach(i=>{let a=i.parentElement;a?.nodeName==="P"&&a.setAttribute("data-plan-type","")}),t.append(n)}function Bd(e,t,r){e.addonConfirmation&&me("addonConfirmation",e,t,r)}function zd(e,t,r,o){o?.secureLabel&&r?.secureLabel&&t.setAttribute("secure-label",o.secureLabel)}function Fd(e,t,r=!0){try{let o=typeof e!="string"?"":e,n=Nc(o);if(n.length<=t)return[o,n];let i=0,a=!1,s=r?t-Ri.length<1?1:t-Ri.length:t,c=[];for(let d of o){if(i++,d==="<")if(a=!0,o[i]==="/")c.pop();else{let m="";for(let p of o.substring(i)){if(p===" "||p===">")break;m+=p}c.push(m)}if(d==="/"&&o[i]===">"&&c.pop(),d===">"){a=!1;continue}if(!a&&(s--,s===0))break}let l=o.substring(0,i).trim();if(c.length>0){c[0]==="p"&&c.shift();for(let d of c.reverse())l+=``}return[`${l}${r?Ri:""}`,n]}catch{let n=typeof e=="string"?e:"",i=Nc(n);return[n,i]}}function Nc(e){if(!e)return"";let t="",r=!1;for(let o of e){if(o==="<"&&(r=!0),o===">"){r=!1;continue}r||(t+=o)}return t}function Gd(e,t){t.querySelectorAll("a.upt-link").forEach(o=>{let n=Ue.createFrom(o);o.replaceWith(n),n.initializeWcsData(e.osi,e.promoCode)})}function Vd(e,t,r,o,n){let i=e;n?i=customElements.get("checkout-button").createCheckoutButton({},e.innerHTML):i.innerHTML=`${i.textContent}`,i.setAttribute("tabindex",0);for(let h of e.attributes)["class","is"].includes(h.name)||i.setAttribute(h.name,h.value);i.firstElementChild?.classList.add("spectrum-Button-label");let a=t?.ctas?.size??"M",s=`spectrum-Button--${o}`,c=Td.includes(a)?`spectrum-Button--size${a}`:"spectrum-Button--sizeM",l=["spectrum-Button",s,c];return r&&l.push("spectrum-Button--outline"),i.classList.add(...l),i}function jd(e,t,r,o,n){let i=e;n&&(i=customElements.get("checkout-button").createCheckoutButton(e.dataset),i.connectedCallback(),i.render());let a="fill";r&&(a="outline");let s=re("sp-button",{treatment:a,variant:o,tabIndex:0,size:t?.ctas?.size??"m",...e.dataset.analyticsId&&{"data-analytics-id":e.dataset.analyticsId}},e.innerHTML);return s.source=i,(n?i.onceSettled():Promise.resolve(i)).then(c=>{s.setAttribute("data-navigation-url",c.href)}),s.addEventListener("click",c=>{c.defaultPrevented||i.click()}),s}function qd(e,t,r,o){let n=e;return r&&(n=customElements.get("checkout-link").createCheckoutLink(e.dataset,e.innerHTML)),o||(n.classList.add("con-button"),t&&n.classList.add("blue")),n}function Yd(e,t,r,o){if(e.ctas){let{slot:n}=r.ctas,i=re("div",{slot:n},e.ctas),a=[...i.querySelectorAll("a")].map(s=>Mc(s,t,r));i.innerHTML="",i.append(...a),t.append(i)}}function Wd(e,t){let{tags:r}=e,o=r?.find(i=>i.startsWith(_d))?.split("/").pop();if(!o)return;t.setAttribute(Mo,o),[...t.shadowRoot.querySelectorAll("a[data-analytics-id],button[data-analytics-id]"),...t.querySelectorAll("a[data-analytics-id],button[data-analytics-id]")].forEach((i,a)=>{i.setAttribute(Sd,`${i.dataset.analyticsId}-${a+1}`)})}function Xd(e){e.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([t,r])=>{e.querySelectorAll(`a.${t}`).forEach(o=>{o.classList.remove(t),o.classList.add("spectrum-Link",`spectrum-Link--${r}`)})})}function Kd(e){e.querySelectorAll("[slot]").forEach(o=>{o.remove()}),e.variant=void 0,["checkbox-label","stock-offer-osis","secure-label","background-image","background-color","border-color","badge-background-color","badge-color","badge-text","gradient-border","size",Mo].forEach(o=>e.removeAttribute(o));let r=["wide-strip","thin-strip"];e.classList.remove(...r)}async function $c(e,t){if(!e){let s=t?.id||"unknown";throw console.error(`hydrate: Fragment is undefined. Cannot hydrate card (merchCard id: ${s}).`),new Error(`hydrate: Fragment is undefined for card (merchCard id: ${s}).`)}if(!e.fields){let s=e.id||"unknown",c=t?.id||"unknown";throw console.error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${c}) is missing 'fields'. Cannot hydrate.`),new Error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${c}) is missing 'fields'.`)}let{id:r,fields:o,settings:n={}}=e,{variant:i}=o;if(!i)throw new Error(`hydrate: no variant found in payload ${r}`);Kd(t),t.settings=n,t.id??(t.id=e.id),t.variant=i,await t.updateComplete;let{aemFragmentMapping:a}=t.variantLayout;if(!a)throw new Error(`hydrate: variant mapping not found for ${r}`);a.style==="consonant"&&t.setAttribute("consonant",!0),Cd(o,t,a.mnemonics),Pd(o,t,a),Ld(o,t,a),kd(o,t,a.size),Rd(o,t,a.title),Od(o,t,a),Id(o,t,a),$d(o,t,a.backgroundImage),Nd(o,t,a.allowedColors,a.backgroundColor),Md(o,t,a),Ud(o,t,a),Dd(o,t,a),Bd(o,t,a),zd(o,t,a,n),Gd(o,t),Yd(o,t,a,i),Wd(o,t),Xd(t)}var Ni="merch-card",Oi=2e4,Ic="merch-card:",$o="data-promotion-code",Hc="data-promotion-code-na";function Uc(e,t){let r=e.closest(Ni);if(!r)return t;r.variantLayout?.priceOptionsProvider?.(e,t)}function Qd(e){e.providers.has(Uc)||e.providers.price(Uc)}var Zd=0,Vt,jt,Ir,ue,ht,Ne,lt,ct=class extends H{constructor(){super();w(this,Ne);w(this,Vt);w(this,jt);w(this,Ir);w(this,ue);w(this,ht);f(this,"customerSegment");f(this,"marketSegment");f(this,"variantLayout");f(this,"quantityBasedPromo");this.id=null,this.failed=!1,this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.loading="lazy",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this),this.handleMerchOfferSelectReady=this.handleMerchOfferSelectReady.bind(this)}firstUpdated(){this.variantLayout=Si(this,!1),this.variantLayout?.connectedCallbackHook()}willUpdate(r){(r.has("variant")||!this.variantLayout)&&(this.variantLayout=Si(this),this.variantLayout.connectedCallbackHook())}updated(r){(r.has("badgeBackgroundColor")||r.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),r.has("backgroundColor")&&this.style.setProperty("--merch-card-custom-background-color",this.backgroundColor?`var(--${this.backgroundColor})`:"");try{this.variantLayout?.postCardUpdateHook(r)}catch(o){oe(this,Ne,lt).call(this,`Error in postCardUpdateHook: ${o.message}`,{},!1)}}get theme(){return this.closest("sp-theme")}get dir(){return this.closest("[dir]")?.getAttribute("dir")??"ltr"}get prices(){return Array.from(this.querySelectorAll('span[is="inline-price"][data-wcs-osi]'))}render(){if(!(!this.isConnected||!this.variantLayout||this.style.display==="none"))return this.variantLayout.renderLayout()}get computedBorderStyle(){return["ccd-slice","ccd-suggested","ah-promoted-plans"].includes(this.variant)?"":`1px solid ${this.borderColor?this.borderColor:this.badgeBackgroundColor}`}get badgeElement(){return this.shadowRoot.getElementById("badge")}get headingmMSlot(){return this.shadowRoot.querySelector('slot[name="heading-m"]').assignedElements()[0]}get footerSlot(){return this.shadowRoot.querySelector('slot[name="footer"]')?.assignedElements()[0]}get descriptionSlot(){return this.shadowRoot.querySelector('slot[name="body-xs"')?.assignedElements()[0]}get descriptionSlotCompare(){return this.shadowRoot.querySelector('slot[name="body-m"')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector(Q)}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll(we)??[]]}get checkoutLinksDescription(){return[...this.descriptionSlot?.querySelectorAll(we)??[]]}get checkoutLinkDescriptionCompare(){return[...this.descriptionSlotCompare?.querySelectorAll(we)??[]]}get activeDescriptionLinks(){return this.variant==="mini-compare-chart"?this.checkoutLinkDescriptionCompare:this.checkoutLinksDescription}async toggleStockOffer({target:r}){if(!this.stockOfferOsis)return;let o=this.checkoutLinks;if(o.length!==0)for(let n of o){await n.onceSettled();let i=n.value?.[0]?.planType;if(!i)return;let a=this.stockOfferOsis[i];if(!a)return;let s=n.dataset.wcsOsi.split(",").filter(c=>c!==a);r.checked&&s.push(a),n.dataset.wcsOsi=s.join(",")}}changeHandler(r){r.target.tagName==="MERCH-ADDON"&&this.toggleAddon(r.target)}toggleAddon(r){this.variantLayout?.toggleAddon?.(r);let o=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(o.length===0)return;let n=i=>{let{offerType:a,planType:s}=i.value?.[0]??{};if(!a||!s)return;let c=r.getOsi(s,a),l=(i.dataset.wcsOsi||"").split(",").filter(h=>h&&h!==c);r.checked&&l.push(c),i.dataset.wcsOsi=l.join(",")};o.forEach(n)}handleQuantitySelection(r){let o=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(o.length===0)return;for(let i of o)i.dataset.quantity=r.detail.option;if(this.prices.length===0)return;let n=this.prices[0];if(this.quantityBasedPromo?.resolved&&this.quantityBasedPromo?.promotionCode&&n)if(r.detail.option>=this.quantityBasedPromo.minProductQuantity){n.setAttribute($o,this.quantityBasedPromo.promotionCode);for(let i of o)i.dataset.promotionCodeNa===this.quantityBasedPromo.promotionCode&&(i.setAttribute($o,this.quantityBasedPromo.promotionCode),i.removeAttribute(Hc))}else{n.removeAttribute($o);for(let i of o)i.dataset.promotionCode===this.quantityBasedPromo.promotionCode&&(i.setAttribute(Hc,this.quantityBasedPromo.promotionCode),i.removeAttribute($o))}}get titleElement(){return this.querySelector(this.variantLayout?.headingSelector||".card-heading")}get title(){return this.titleElement?.textContent?.trim()}get description(){return this.querySelector('[slot="body-xs"]')?.textContent?.trim()}updateFilters(r){let o={...this.filters};Object.keys(o).forEach(n=>{if(r){o[n].order=Math.min(o[n].order||2,2);return}let i=o[n].order;i===1||isNaN(i)||(o[n].order=Number(i)+1)}),this.filters=o}includes(r){return this.textContent.match(new RegExp(r,"i"))!==null}async resolveQuantityBasedPromotions(){if(this.prices.length===0||!this.quantitySelect)return;let r=this.prices[0],o=r.dataset.promotionCode;if(!o)return;let n=r.dataset.wcsOsi,i=u(this,ue).collectPriceOptions({},this);i.wcsOsi=[n],i.promotionCode=o;let[a]=await u(this,ue).resolveOfferSelectors(i),[s]=await a,c=s?.promotion?.displaySummary?.minProductQuantity||1;this.quantityBasedPromo={promotionCode:o,minProductQuantity:c,resolved:!0},this.handleQuantitySelection({detail:{option:this.quantitySelect.getAttribute("default-value")}})}connectedCallback(){super.connectedCallback(),u(this,jt)||_(this,jt,Zd++),this.id??(this.id=this.getAttribute("id")??this.aemFragment?.getAttribute("fragment"));let r=this.id??u(this,jt);_(this,ht,`${Ic}${r}${je}`),_(this,Vt,`${Ic}${r}${qe}`),performance.mark(u(this,ht)),_(this,ue,St()),Qd(u(this,ue)),_(this,Ir,u(this,ue).Log.module(Ni)),this.addEventListener(_e,this.handleQuantitySelection),this.addEventListener(Br,this.handleAddonAndQuantityUpdate),this.addEventListener(Kt,this.handleMerchOfferSelectReady),this.addEventListener(Ge,this.handleAemFragmentEvents),this.addEventListener(Fe,this.handleAemFragmentEvents),this.addEventListener("change",this.changeHandler),this.aemFragment||setTimeout(()=>this.checkReady(),0),this.resolveQuantityBasedPromotions()}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(_e,this.handleQuantitySelection),this.removeEventListener(Ge,this.handleAemFragmentEvents),this.removeEventListener(Fe,this.handleAemFragmentEvents),this.removeEventListener("change",this.changeHandler),this.removeEventListener(Br,this.handleAddonAndQuantityUpdate)}async handleAemFragmentEvents(r){if(this.isConnected&&(r.type===Ge&&oe(this,Ne,lt).call(this,"AEM fragment cannot be loaded"),r.type===Fe&&(this.failed=!1,r.target.nodeName==="AEM-FRAGMENT"))){let o=r.detail;try{await $c(o,this)}catch(n){oe(this,Ne,lt).call(this,`hydration has failed: ${n.message}`)}this.checkReady()}}async checkReady(){if(!this.isConnected)return;let r=new Promise(a=>setTimeout(()=>a("timeout"),Oi));if(this.aemFragment){let a=await Promise.race([this.aemFragment.updateComplete,r]);if(a===!1||a==="timeout"){let s=a==="timeout"?`AEM fragment was not resolved within ${Oi} timeout`:"AEM fragment cannot be loaded";oe(this,Ne,lt).call(this,s,{},!1);return}}let o=[...this.querySelectorAll(Xt)],n=Promise.all(o.map(a=>a.onceSettled().catch(()=>a))).then(a=>a.every(s=>s.classList.contains("placeholder-resolved"))),i=await Promise.race([n,r]);if(i===!0){this.measure=performance.measure(u(this,Vt),u(this,ht));let a={...this.aemFragment?.fetchInfo,...u(this,ue).duration,measure:ge(this.measure)};return this.dispatchEvent(new CustomEvent(Vo,{bubbles:!0,composed:!0,detail:a})),this}else{this.measure=performance.measure(u(this,Vt),u(this,ht));let a={measure:ge(this.measure),...u(this,ue).duration};i==="timeout"?oe(this,Ne,lt).call(this,`Contains offers that were not resolved within ${Oi} timeout`,a):oe(this,Ne,lt).call(this,"Contains unresolved offers",a)}}get aemFragment(){return this.querySelector("aem-fragment")}get addon(){return this.querySelector("merch-addon")}get quantitySelect(){return this.querySelector("merch-quantity-select")}get addonCheckbox(){return this.querySelector("merch-addon")}displayFooterElementsInColumn(){if(!this.classList.contains("product"))return;let r=this.shadowRoot.querySelector(".secure-transaction-label");(this.footerSlot?.querySelectorAll(we)).length===2&&r&&r.parentElement.classList.add("footer-column")}handleMerchOfferSelectReady(){this.offerSelect&&!this.offerSelect.planType||this.displayFooterElementsInColumn()}get dynamicPrice(){return this.querySelector('[slot="price"]')}handleAddonAndQuantityUpdate({detail:{id:r,items:o}}){if(!r||!o?.length)return;let n=this.checkoutLinks.find(l=>l.getAttribute("data-modal-id")===r);if(!n)return;let a=new URL(n.getAttribute("href")).searchParams.get("pa"),s=o.find(l=>l.productArrangementCode===a)?.quantity,c=!!o.find(l=>l.productArrangementCode!==a);if(s&&this.quantitySelect?.dispatchEvent(new CustomEvent(bt,{detail:{quantity:s},bubbles:!0,composed:!0})),this.addonCheckbox&&this.addonCheckbox.checked!==c){this.toggleStockOffer({target:this.addonCheckbox});let l=new Event("change",{bubbles:!0,cancelable:!0});Object.defineProperty(l,"target",{writable:!1,value:{checked:c}}),this.addonCheckbox.handleChange(l)}}};Vt=new WeakMap,jt=new WeakMap,Ir=new WeakMap,ue=new WeakMap,ht=new WeakMap,Ne=new WeakSet,lt=function(r,o={},n=!0){if(!this.isConnected)return;let a=this.aemFragment?.getAttribute("fragment");a=`[${a}]`;let s={...this.aemFragment.fetchInfo,...u(this,ue).duration,...o,message:r};u(this,Ir).error(`merch-card${a}: ${r}`,s),this.failed=!0,n&&this.dispatchEvent(new CustomEvent(jo,{bubbles:!0,composed:!0,detail:s}))},f(ct,"properties",{id:{type:String,attribute:"id",reflect:!0},name:{type:String,attribute:"name",reflect:!0},variant:{type:String,reflect:!0},size:{type:String,attribute:"size",reflect:!0},badgeColor:{type:String,attribute:"badge-color",reflect:!0},borderColor:{type:String,attribute:"border-color",reflect:!0},backgroundColor:{type:String,attribute:"background-color",reflect:!0},badgeBackgroundColor:{type:String,attribute:"badge-background-color",reflect:!0},backgroundImage:{type:String,attribute:"background-image",reflect:!0},badgeText:{type:String,attribute:"badge-text"},actionMenu:{type:Boolean,attribute:"action-menu"},actionMenuLabel:{type:String,attribute:"action-menu-label"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},failed:{type:Boolean,attribute:"failed",reflect:!0},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},addonTitle:{type:String,attribute:"addon-title"},addonOffers:{type:Object,attribute:"addon-offers"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},planType:{type:String,attribute:"plan-type",reflect:!0},settings:{type:Object,attribute:!1},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:r=>{if(!r)return;let[o,n,i]=r.split(",");return{PUF:o,ABM:n,M2M:i}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:r=>Object.fromEntries(r.split(",").map(o=>{let[n,i,a]=o.split(":"),s=Number(i);return[n,{order:isNaN(s)?void 0:s,size:a}]})),toAttribute:r=>Object.entries(r).map(([o,{order:n,size:i}])=>[o,n,i].filter(a=>a!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:Mo,reflect:!0},loading:{type:String}}),f(ct,"styles",[pc,...mc()]),f(ct,"registerVariant",W),f(ct,"getFragmentMapping",Lo);customElements.define(Ni,ct);var qt,Hr=class extends H{constructor(){super();w(this,qt);this.defaults={},this.variant="plans"}saveContainerDefaultValues(){let r=this.closest(this.getAttribute("container")),o=r?.querySelector('[slot="description"]:not(merch-offer > *)')?.cloneNode(!0),n=r?.badgeText;return{description:o,badgeText:n}}getSlottedElement(r,o){return(o||this.closest(this.getAttribute("container"))).querySelector(`[slot="${r}"]:not(merch-offer > *)`)}updateSlot(r,o){let n=this.getSlottedElement(r,o);if(!n)return;let i=this.selectedOffer.getOptionValue(r)?this.selectedOffer.getOptionValue(r):this.defaults[r];i&&n.replaceWith(i.cloneNode(!0))}handleOfferSelection(r){let o=r.detail;this.selectOffer(o)}handleOfferSelectionByQuantity(r){let o=r.detail.option,n=Number.parseInt(o),i=this.findAppropriateOffer(n);this.selectOffer(i),this.getSlottedElement("cta").setAttribute("data-quantity",n)}selectOffer(r){if(!r)return;let o=this.selectedOffer;o&&(o.selected=!1),r.selected=!0,this.selectedOffer=r,this.planType=r.planType,this.updateContainer(),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Go,{detail:this,bubbles:!0}))})}findAppropriateOffer(r){let o=null;return this.offers.find(i=>{let a=Number.parseInt(i.getAttribute("value"));if(a===r)return!0;if(a>r)return!1;o=i})||o}updateBadgeText(r){this.selectedOffer.badgeText===""?r.badgeText=null:this.selectedOffer.badgeText?r.badgeText=this.selectedOffer.badgeText:r.badgeText=this.defaults.badgeText}updateContainer(){let r=this.closest(this.getAttribute("container"));!r||!this.selectedOffer||(this.updateSlot("cta",r),this.updateSlot("secondary-cta",r),this.updateSlot("price",r),!this.manageableMode&&(this.updateSlot("description",r),this.updateBadgeText(r)))}render(){return x`
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("click",this.handleFocusin),this.addEventListener(xt,this.handleOfferSelectReady);let r=this.closest("merch-quantity-select");this.manageableMode=r,this.offers=[...this.querySelectorAll("merch-offer")],_(this,qt,this.handleOfferSelectionByQuantity.bind(this)),this.manageableMode?r.addEventListener(_e,u(this,qt)):this.defaults=this.saveContainerDefaultValues(),this.selectedOffer=this.offers[0],this.planType&&this.updateContainer()}get miniCompareMobileCard(){return this.merchCard?.variant==="mini-compare-chart"&&this.isMobile}get merchCard(){return this.closest("merch-card")}get isMobile(){return window.matchMedia("(max-width: 767px)").matches}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(_e,u(this,qt)),this.removeEventListener(xt,this.handleOfferSelectReady),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("click",this.handleFocusin)}get price(){return this.querySelector('merch-offer[aria-selected] [is="inline-price"]')}get customerSegment(){return this.selectedOffer?.customerSegment}get marketSegment(){return this.selectedOffer?.marketSegment}handleFocusin(r){r.target?.nodeName==="MERCH-OFFER"&&(r.preventDefault(),r.stopImmediatePropagation(),this.selectOffer(r.target))}async handleOfferSelectReady(){this.planType||this.querySelector("merch-offer:not([plan-type])")||(this.planType=this.selectedOffer.planType,await this.updateComplete,this.selectOffer(this.selectedOffer??this.querySelector("merch-offer[aria-selected]")??this.querySelector("merch-offer")),this.dispatchEvent(new CustomEvent(Kt,{bubbles:!0})))}};qt=new WeakMap,f(Hr,"styles",v` :host { display: inline-block; } @@ -2455,7 +2455,7 @@ merch-card [slot='callout-content'] .icon-button::before { flex-direction: column; gap: var(--consonant-merch-spacing-xs); } - `),f(Hr,"properties",{offers:{type:Array},selectedOffer:{type:Object},defaults:{type:Object},variant:{type:String,attribute:"variant",reflect:!0},planType:{type:String,attribute:"plan-type",reflect:!0},stock:{type:Boolean,reflect:!0}});customElements.define("merch-offer-select",Hr);var Hc=v` + `),f(Hr,"properties",{offers:{type:Array},selectedOffer:{type:Object},defaults:{type:Object},variant:{type:String,attribute:"variant",reflect:!0},planType:{type:String,attribute:"plan-type",reflect:!0},stock:{type:Boolean,reflect:!0}});customElements.define("merch-offer-select",Hr);var Dc=v` :host { --merch-radio: rgba(82, 88, 228); --merch-radio-hover: rgba(64, 70, 202); @@ -2666,7 +2666,7 @@ merch-card [slot='callout-content'] .icon-button::before { position: relative; height: 40px; } -`;var Qd="merch-offer",Ur=class extends H{constructor(){super();f(this,"tr");this.type="radio",this.selected=!1}getOptionValue(r){return this.querySelector(`[slot="${r}"]`)}connectedCallback(){super.connectedCallback(),this.initOffer(),this.configuration=this.closest("quantity-selector"),!this.hasAttribute("tabindex")&&!this.configuration&&(this.tabIndex=0),!this.hasAttribute("role")&&!this.configuration&&(this.role="radio")}get asRadioOption(){return x`
+`;var Jd="merch-offer",Ur=class extends H{constructor(){super();f(this,"tr");this.type="radio",this.selected=!1}getOptionValue(r){return this.querySelector(`[slot="${r}"]`)}connectedCallback(){super.connectedCallback(),this.initOffer(),this.configuration=this.closest("quantity-selector"),!this.hasAttribute("tabindex")&&!this.configuration&&(this.tabIndex=0),!this.hasAttribute("role")&&!this.configuration&&(this.role="radio")}get asRadioOption(){return x`
${this.text} @@ -2683,7 +2683,7 @@ merch-card [slot='callout-content'] .icon-button::before { > -
`}render(){return this.configuration||!this.price?"":this.type==="subscription-option"?this.asSubscriptionOption:this.asRadioOption}get price(){return this.querySelector('span[is="inline-price"]:not([data-template="strikethrough"])')}get cta(){return this.querySelector(Ae)}get prices(){return this.querySelectorAll('span[is="inline-price"]')}get customerSegment(){return this.price?.value?.[0].customerSegment}get marketSegment(){return this.price?.value?.[0].marketSegments[0]}async initOffer(){if(!this.price)return;this.prices.forEach(n=>n.setAttribute("slot","price")),await this.updateComplete,await Promise.all([...this.prices].map(n=>n.onceSettled()));let{value:[r]}=this.price;this.planType=r.planType,await this.updateComplete,this.dispatchEvent(new CustomEvent(xt,{bubbles:!0}))}};f(Ur,"properties",{text:{type:String},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},badgeText:{type:String,attribute:"badge-text"},type:{type:String,attribute:"type",reflect:!0},planType:{type:String,attribute:"plan-type",reflect:!0}}),f(Ur,"styles",[Hc]);customElements.define(Qd,Ur);var Uc=v` +
`}render(){return this.configuration||!this.price?"":this.type==="subscription-option"?this.asSubscriptionOption:this.asRadioOption}get price(){return this.querySelector('span[is="inline-price"]:not([data-template="strikethrough"])')}get cta(){return this.querySelector(we)}get prices(){return this.querySelectorAll('span[is="inline-price"]')}get customerSegment(){return this.price?.value?.[0].customerSegment}get marketSegment(){return this.price?.value?.[0].marketSegments[0]}async initOffer(){if(!this.price)return;this.prices.forEach(o=>o.setAttribute("slot","price")),await this.updateComplete,await Promise.all([...this.prices].map(o=>o.onceSettled()));let{value:[r]}=this.price;this.planType=r.planType,await this.updateComplete,this.dispatchEvent(new CustomEvent(xt,{bubbles:!0}))}};f(Ur,"properties",{text:{type:String},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},badgeText:{type:String,attribute:"badge-text"},type:{type:String,attribute:"type",reflect:!0},planType:{type:String,attribute:"plan-type",reflect:!0}}),f(Ur,"styles",[Dc]);customElements.define(Jd,Ur);var Bc=v` :host { box-sizing: border-box; --background-color: var(--qs-background-color, #f6f6f6); @@ -2813,7 +2813,7 @@ merch-card [slot='callout-content'] .icon-button::before { .item.highlighted { background-color: var(--background-color); } -`;var[Eb,Ab,Dc,Bc,zc,wb]=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter","Tab"];var Ni=class extends H{static get properties(){return{closed:{type:Boolean,reflect:!0},selected:{type:Number},min:{type:Number},max:{type:Number},step:{type:Number},maxInput:{type:Number,attribute:"max-input"},options:{type:Array},highlightedIndex:{type:Number},defaultValue:{type:Number,attribute:"default-value",reflect:!0},title:{type:String}}}static get styles(){return Uc}constructor(){super(),this.options=[],this.title="",this.closed=!0,this.min=0,this.max=0,this.step=0,this.maxInput=void 0,this.defaultValue=void 0,this.selectedValue=0,this.highlightedIndex=0,this.toggleMenu=this.toggleMenu.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.boundKeydownListener=this.handleKeydown.bind(this),this.handleKeyupDebounced=ur(this.handleKeyup.bind(this),500),this.debouncedQuantityUpdate=ur(this.handleQuantityUpdate.bind(this),500)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.boundKeydownListener),window.addEventListener("mousedown",this.handleClickOutside),this.addEventListener(bt,this.debouncedQuantityUpdate)}handleKeyup(){this.handleInput(),this.sendEvent()}handleKeydown(t){switch(t.key){case Bc:this.closed||(t.preventDefault(),this.highlightedIndex=(this.highlightedIndex+1)%this.options.length);break;case Dc:this.closed||(t.preventDefault(),this.highlightedIndex=(this.highlightedIndex-1+this.options.length)%this.options.length);break;case zc:if(this.closed)this.closePopover(),this.blur();else{let r=this.options[this.highlightedIndex];if(!r)break;this.selectedValue=r,this.handleMenuOption(this.selectedValue),this.toggleMenu()}break}t.composedPath().includes(this)&&t.stopPropagation()}adjustInput(t,r){this.selectedValue=r,t.value=r,this.highlightedIndex=this.options.indexOf(r)}handleInput(){let t=this.shadowRoot.querySelector(".text-field-input"),r=parseInt(t.value);if(!isNaN(r))if(r>0&&r!==this.selectedValue){let n=r;this.maxInput&&r>this.maxInput&&(n=this.maxInput),this.min&&n0)for(let r=this.min;r<=this.max;r+=this.step)t.push(r);return t}update(t){(t.has("min")||t.has("max")||t.has("step")||t.has("defaultValue"))&&(this.options=this.generateOptionsArray(),this.highlightedIndex=this.defaultValue?this.options.indexOf(this.defaultValue):0,this.handleMenuOption(this.defaultValue?this.defaultValue:this.options[0])),super.update(t)}handleClickOutside(t){t.composedPath().includes(this)||this.closePopover()}toggleMenu(){this.closed=!this.closed}handleMouseEnter(t){this.highlightedIndex=t}handleMenuOption(t){t===this.max&&this.shadowRoot.querySelector(".text-field-input")?.focus(),this.selectedValue=t,this.sendEvent(),this.closePopover()}sendEvent(){let t=new CustomEvent(we,{detail:{option:this.selectedValue},bubbles:!0});this.dispatchEvent(t)}closePopover(){this.closed||this.toggleMenu()}get offerSelect(){return this.querySelector("merch-offer-select")}get popover(){return x`
+`;var[wb,_b,zc,Fc,Gc,Sb]=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter","Tab"];var Mi=class extends H{static get properties(){return{closed:{type:Boolean,reflect:!0},selected:{type:Number},min:{type:Number},max:{type:Number},step:{type:Number},maxInput:{type:Number,attribute:"max-input"},options:{type:Array},highlightedIndex:{type:Number},defaultValue:{type:Number,attribute:"default-value",reflect:!0},title:{type:String}}}static get styles(){return Bc}constructor(){super(),this.options=[],this.title="",this.closed=!0,this.min=0,this.max=0,this.step=0,this.maxInput=void 0,this.defaultValue=void 0,this.selectedValue=0,this.highlightedIndex=0,this.toggleMenu=this.toggleMenu.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.boundKeydownListener=this.handleKeydown.bind(this),this.handleKeyupDebounced=ur(this.handleKeyup.bind(this),500),this.debouncedQuantityUpdate=ur(this.handleQuantityUpdate.bind(this),500)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.boundKeydownListener),window.addEventListener("mousedown",this.handleClickOutside),this.addEventListener(bt,this.debouncedQuantityUpdate)}handleKeyup(){this.handleInput(),this.sendEvent()}handleKeydown(t){switch(t.key){case Fc:this.closed||(t.preventDefault(),this.highlightedIndex=(this.highlightedIndex+1)%this.options.length);break;case zc:this.closed||(t.preventDefault(),this.highlightedIndex=(this.highlightedIndex-1+this.options.length)%this.options.length);break;case Gc:if(this.closed)this.closePopover(),this.blur();else{let r=this.options[this.highlightedIndex];if(!r)break;this.selectedValue=r,this.handleMenuOption(this.selectedValue),this.toggleMenu()}break}t.composedPath().includes(this)&&t.stopPropagation()}adjustInput(t,r){this.selectedValue=r,t.value=r,this.highlightedIndex=this.options.indexOf(r)}handleInput(){let t=this.shadowRoot.querySelector(".text-field-input"),r=parseInt(t.value);if(!isNaN(r))if(r>0&&r!==this.selectedValue){let o=r;this.maxInput&&r>this.maxInput&&(o=this.maxInput),this.min&&o0)for(let r=this.min;r<=this.max;r+=this.step)t.push(r);return t}update(t){(t.has("min")||t.has("max")||t.has("step")||t.has("defaultValue"))&&(this.options=this.generateOptionsArray(),this.highlightedIndex=this.defaultValue?this.options.indexOf(this.defaultValue):0,this.handleMenuOption(this.defaultValue?this.defaultValue:this.options[0])),super.update(t)}handleClickOutside(t){t.composedPath().includes(this)||this.closePopover()}toggleMenu(){this.closed=!this.closed}handleMouseEnter(t){this.highlightedIndex=t}handleMenuOption(t){t===this.max&&this.shadowRoot.querySelector(".text-field-input")?.focus(),this.selectedValue=t,this.sendEvent(),this.closePopover()}sendEvent(){let t=new CustomEvent(_e,{detail:{option:this.selectedValue},bubbles:!0});this.dispatchEvent(t)}closePopover(){this.closed||this.toggleMenu()}get offerSelect(){return this.querySelector("merch-offer-select")}get popover(){return x`
${this.options.map((t,r)=>x`
${this.popover}
- `}};customElements.define("merch-quantity-select",Ni);var Fc=` + `}};customElements.define("merch-quantity-select",Mi);var Vc=` merch-card[variant="ccd-suggested"] [slot="heading-xs"] { font-size: var(--consonant-merch-card-heading-xxs-font-size); @@ -2871,7 +2871,7 @@ merch-card [slot='callout-content'] .icon-button::before { .spectrum--darkest merch-card[variant="ccd-suggested"]:hover { --consonant-merch-card-border-color:rgb(73, 73, 73); } -`;var Gc={backgroundImage:{attribute:"background-image"},badge:!0,ctas:{slot:"cta",size:"M"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},prices:{tag:"p",slot:"price"},size:[],subtitle:{tag:"h4",slot:"detail-s"},title:{tag:"h3",slot:"heading-xs"}},Yt=class extends M{getGlobalCSS(){return Fc}get stripStyle(){return this.card.backgroundImage?` +`;var jc={backgroundImage:{attribute:"background-image"},badge:!0,ctas:{slot:"cta",size:"M"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},prices:{tag:"p",slot:"price"},size:[],subtitle:{tag:"h4",slot:"detail-s"},title:{tag:"h3",slot:"heading-xs"}},Yt=class extends M{getGlobalCSS(){return Vc}get stripStyle(){return this.card.backgroundImage?` background: url("${this.card.backgroundImage}"); background-size: auto 100%; background-repeat: no-repeat; @@ -3001,7 +3001,7 @@ merch-card [slot='callout-content'] .icon-button::before { :host([variant='ccd-suggested']) .top-section { align-items: center; } - `);var Vc=` + `);var qc=` merch-card[variant="ccd-slice"] [slot='image'] img { overflow: hidden; @@ -3021,7 +3021,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link { --consonant-merch-card-border-color:rgb(48, 48, 48); --consonant-merch-card-detail-s-color:rgb(235, 235, 235); } -`;var jc={backgroundImage:{tag:"div",slot:"image"},badge:!0,ctas:{slot:"footer",size:"S"},description:{tag:"div",slot:"body-s"},mnemonics:{size:"m"},size:["wide"]},Wt=class extends M{getGlobalCSS(){return Vc}renderLayout(){return x`
+`;var Yc={backgroundImage:{tag:"div",slot:"image"},badge:!0,ctas:{slot:"footer",size:"S"},description:{tag:"div",slot:"body-s"},mnemonics:{size:"m"},size:["wide"]},Wt=class extends M{getGlobalCSS(){return qc}renderLayout(){return x`
${this.badge} @@ -3132,7 +3132,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link { align-items: center; gap: 8px; } - `);var qc=` + `);var Wc=` merch-card[variant="ah-try-buy-widget"] [slot="body-xxs"] { letter-spacing: normal; margin-bottom: 16px; @@ -3257,7 +3257,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link { .spectrum--darkest merch-card[variant="ah-try-buy-widget"]:hover { --consonant-merch-card-border-color:rgb(73, 73, 73); } -`;var Mi={mnemonics:{size:"s"},title:{tag:"h3",slot:"heading-xxxs",maxCount:40,withSuffix:!0},description:{tag:"div",slot:"body-xxs",maxCount:200,withSuffix:!1},prices:{tag:"p",slot:"price"},ctas:{slot:"cta",size:"S"},backgroundImage:{tag:"div",slot:"image"},backgroundColor:{attribute:"background-color"},borderColor:{attribute:"border-color",specialValues:{}},allowedColors:{gray:"--spectrum-gray-100"},size:["single","double","triple"]},dt=class extends M{getGlobalCSS(){return qc}get aemFragmentMapping(){return Mi}renderLayout(){return x` +`;var $i={mnemonics:{size:"s"},title:{tag:"h3",slot:"heading-xxxs",maxCount:40,withSuffix:!0},description:{tag:"div",slot:"body-xxs",maxCount:200,withSuffix:!1},prices:{tag:"p",slot:"price"},ctas:{slot:"cta",size:"S"},backgroundImage:{tag:"div",slot:"image"},backgroundColor:{attribute:"background-color"},borderColor:{attribute:"border-color",specialValues:{}},allowedColors:{gray:"--spectrum-gray-100"},size:["single","double","triple"]},dt=class extends M{getGlobalCSS(){return Wc}get aemFragmentMapping(){return $i}renderLayout(){return x`
@@ -3352,7 +3352,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link { gap: 8px; flex-direction: row; } - `);customElements.define("ah-try-buy-widget",dt);var Yc=` + `);customElements.define("ah-try-buy-widget",dt);var Xc=` merch-card[variant="ah-promoted-plans"] [slot="body-xxs"] { letter-spacing: normal; box-sizing: border-box; @@ -3439,7 +3439,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link { --consonant-merch-card-body-xxs-color:rgb(219, 219, 219); --merch-card-ah-promoted-plans-strikethrough-color:rgb(138, 138, 138); } -`;var $i={mnemonics:{size:"s"},title:{tag:"h3",slot:"heading-xxxs",maxCount:40,withSuffix:!0},description:{tag:"div",slot:"body-xxs",maxCount:200,withSuffix:!1},prices:{tag:"p",slot:"price"},ctas:{slot:"cta",size:"S"},backgroundImage:{tag:"div",slot:"image"},backgroundColor:{attribute:"background-color"},borderColor:{attribute:"border-color",specialValues:{gradient:"linear-gradient(135deg, #ff4885 0%, #b272eb 50%, #5d89ff 100%)"}}},pt=class extends M{getGlobalCSS(){return Yc}get aemFragmentMapping(){return $i}renderLayout(){return x` +`;var Ii={mnemonics:{size:"s"},title:{tag:"h3",slot:"heading-xxxs",maxCount:40,withSuffix:!0},description:{tag:"div",slot:"body-xxs",maxCount:200,withSuffix:!1},prices:{tag:"p",slot:"price"},ctas:{slot:"cta",size:"S"},backgroundImage:{tag:"div",slot:"image"},backgroundColor:{attribute:"background-color"},borderColor:{attribute:"border-color",specialValues:{gradient:"linear-gradient(135deg, #ff4885 0%, #b272eb 50%, #5d89ff 100%)"}}},pt=class extends M{getGlobalCSS(){return Xc}get aemFragmentMapping(){return Ii}renderLayout(){return x`
@@ -3542,7 +3542,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link { justify-content: space-between; align-items: center; } - `);customElements.define("ah-promoted-plans",pt);var Wc=` + `);customElements.define("ah-promoted-plans",pt);var Kc=` merch-card[variant='fries'] { background-color: var( --merch-card-custom-background-color, @@ -3687,7 +3687,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link { .spectrum--darkest merch-card[variant="fries"] [slot="body-s"] { color: rgb(142, 142, 147); } -`;var Ii={mnemonics:{size:"s"},title:{tag:"h3",slot:"heading-xxs",maxCount:250,withSuffix:!0},description:{tag:"div",slot:"body-s",maxCount:2e3,withSuffix:!1},badge:{tag:"div",slot:"badge",default:"spectrum-yellow-300"},trialBadge:{tag:"div",slot:"trial-badge",default:"spectrum-green-800"},prices:{tag:"p",slot:"price"},ctas:{slot:"cta",size:"M"},addonConfirmation:{tag:"div",slot:"addon-confirmation"},borderColor:{attribute:"border-color",specialValues:{gray:"--spectrum-gray-300"}}},mt=class extends M{getGlobalCSS(){return Wc}get aemFragmentMapping(){return Ii}renderLayout(){return x` +`;var Hi={mnemonics:{size:"s"},title:{tag:"h3",slot:"heading-xxs",maxCount:250,withSuffix:!0},description:{tag:"div",slot:"body-s",maxCount:2e3,withSuffix:!1},badge:{tag:"div",slot:"badge",default:"spectrum-yellow-300"},trialBadge:{tag:"div",slot:"trial-badge",default:"spectrum-green-800"},prices:{tag:"p",slot:"price"},ctas:{slot:"cta",size:"M"},addonConfirmation:{tag:"div",slot:"addon-confirmation"},borderColor:{attribute:"border-color",specialValues:{gray:"--spectrum-gray-300"}}},mt=class extends M{getGlobalCSS(){return Kc}get aemFragmentMapping(){return Hi}renderLayout(){return x`
@@ -3769,7 +3769,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link { gap: 8px; margin-top: 15px; } - `);customElements.define("fries-card",mt);W("ccd-suggested",Yt,Gc,Yt.variantStyle);W("ccd-slice",Wt,jc,Wt.variantStyle);W("ah-try-buy-widget",dt,Mi,dt.variantStyle);W("ah-promoted-plans",pt,$i,pt.variantStyle);W("fries",mt,Ii,mt.variantStyle); + `);customElements.define("fries-card",mt);W("ccd-suggested",Yt,jc,Yt.variantStyle);W("ccd-slice",Wt,Yc,Wt.variantStyle);W("ah-try-buy-widget",dt,$i,dt.variantStyle);W("ah-promoted-plans",pt,Ii,pt.variantStyle);W("fries",mt,Hi,mt.variantStyle); /*! Bundled license information: @lit/reactive-element/css-tag.js: diff --git a/libs/features/mas/src/merch-card.js b/libs/features/mas/src/merch-card.js index 2b89dcd52b..258a8c9350 100644 --- a/libs/features/mas/src/merch-card.js +++ b/libs/features/mas/src/merch-card.js @@ -41,6 +41,9 @@ const MERCH_CARD_LOAD_TIMEOUT = 20000; const MARK_MERCH_CARD_PREFIX = 'merch-card:'; +const PROMO_CODE_ATTR = 'data-promotion-code'; +const PROMO_CODE_NA_ATTR = 'data-promotion-code-na'; + function priceOptionsProvider(element, options) { const card = element.closest(MERCH_CARD); if (!card) return options; @@ -164,6 +167,8 @@ export class MerchCard extends LitElement { */ variantLayout; + quantityBasedPromo; + constructor() { super(); this.id = null; @@ -372,6 +377,29 @@ export class MerchCard extends LitElement { for (const link of allLinks) { link.dataset.quantity = event.detail.option; } + + if (this.prices.length === 0) return; + + const price = this.prices[0]; + if (this.quantityBasedPromo?.resolved && this.quantityBasedPromo?.promotionCode && price) { + if (event.detail.option >= this.quantityBasedPromo.minProductQuantity) { + price.setAttribute(PROMO_CODE_ATTR, this.quantityBasedPromo.promotionCode); + for (const link of allLinks) { + if (link.dataset.promotionCodeNa === this.quantityBasedPromo.promotionCode) { + link.setAttribute(PROMO_CODE_ATTR, this.quantityBasedPromo.promotionCode); + link.removeAttribute(PROMO_CODE_NA_ATTR); + } + } + } else { + price.removeAttribute(PROMO_CODE_ATTR); + for (const link of allLinks) { + if (link.dataset.promotionCode === this.quantityBasedPromo.promotionCode) { + link.setAttribute(PROMO_CODE_NA_ATTR, this.quantityBasedPromo.promotionCode); + link.removeAttribute(PROMO_CODE_ATTR); + } + } + } + } } get titleElement() { @@ -415,6 +443,35 @@ export class MerchCard extends LitElement { return this.textContent.match(new RegExp(text, 'i')) !== null; } + async resolveQuantityBasedPromotions() { + if (this.prices.length === 0 || !this.quantitySelect) return; + + const price = this.prices[0]; + const promotionCode = price.dataset.promotionCode; + + if (!promotionCode) return; + + const osi = price.dataset.wcsOsi; + const options = this.#service.collectPriceOptions({}, this); + options.wcsOsi = [osi]; + options.promotionCode = promotionCode; + const [promise] = await this.#service.resolveOfferSelectors(options); + const [offer] = await promise; + const minProductQuantity = offer?.promotion?.displaySummary?.minProductQuantity || 1; + + this.quantityBasedPromo = { + promotionCode, + minProductQuantity, + resolved: true, + } + + this.handleQuantitySelection({ + detail: { + option: this.quantitySelect.getAttribute('default-value') + } + }) + } + connectedCallback() { super.connectedCallback(); if (!this.#internalId) { @@ -449,6 +506,7 @@ export class MerchCard extends LitElement { if (!this.aemFragment) { setTimeout(() => this.checkReady(), 0); } + this.resolveQuantityBasedPromotions(); } disconnectedCallback() { From 267c637c878de12796f8788dcf3fa6c1fc9ce90a Mon Sep 17 00:00:00 2001 From: Bozo Jovicic Date: Fri, 4 Jul 2025 11:23:31 +0200 Subject: [PATCH 2/5] MWPW-169236 [Merch Cards] Support for Volume Discount Flex Promos --- libs/blocks/merch-card/merch-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/blocks/merch-card/merch-card.js b/libs/blocks/merch-card/merch-card.js index 1c5c23a253..ba67eb0e0f 100644 --- a/libs/blocks/merch-card/merch-card.js +++ b/libs/blocks/merch-card/merch-card.js @@ -89,7 +89,7 @@ export async function loadMnemonicList(foreground) { } } -function extractQuantitySelect(el, merchCard) { +function extractQuantitySelect(el, merchCard) { // const attributes = {}; const quantitySelectLink = merchCard?.querySelector('a[href*="#qs"]'); if (quantitySelectLink) { From 085040a9abe100afbb9f76a985d857c5f5a7b534 Mon Sep 17 00:00:00 2001 From: Bozo Jovicic Date: Fri, 4 Jul 2025 11:23:51 +0200 Subject: [PATCH 3/5] MWPW-169236 [Merch Cards] Support for Volume Discount Flex Promos --- libs/blocks/merch-card/merch-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/blocks/merch-card/merch-card.js b/libs/blocks/merch-card/merch-card.js index ba67eb0e0f..1c5c23a253 100644 --- a/libs/blocks/merch-card/merch-card.js +++ b/libs/blocks/merch-card/merch-card.js @@ -89,7 +89,7 @@ export async function loadMnemonicList(foreground) { } } -function extractQuantitySelect(el, merchCard) { // +function extractQuantitySelect(el, merchCard) { const attributes = {}; const quantitySelectLink = merchCard?.querySelector('a[href*="#qs"]'); if (quantitySelectLink) { From 94e767d1a695dbef5dab1ad9e56fa9100baea629 Mon Sep 17 00:00:00 2001 From: Bozo Jovicic Date: Fri, 4 Jul 2025 13:25:25 +0200 Subject: [PATCH 4/5] MWPW-169236 [Merch Cards] Support for Volume Discount Flex Promos --- libs/features/mas/test/merch-card.test.html | 22 +++++++++++- .../features/mas/test/merch-card.test.html.js | 36 +++++++++++++++++++ libs/features/mas/test/mocks/offers.json | 14 +++++++- 3 files changed, 70 insertions(+), 2 deletions(-) diff --git a/libs/features/mas/test/merch-card.test.html b/libs/features/mas/test/merch-card.test.html index a6bff65cc2..1ec77235e5 100644 --- a/libs/features/mas/test/merch-card.test.html +++ b/libs/features/mas/test/merch-card.test.html @@ -832,8 +832,28 @@

Desktop + Mobile

-
+
+ + +

Creative Cloud All Apps

+

+ +

+

Desktop

+
+

Get 20+ Creative Cloud apps including Photoshop, Illustrator, Adobe Express, Premiere Pro, and Acrobat Pro. (Substance 3D apps are not included.)

+

See plans & pricing details

+
+
+ +
+
+ Save now +
+
+
+
diff --git a/libs/features/mas/test/merch-card.test.html.js b/libs/features/mas/test/merch-card.test.html.js index ec62f8d452..a8c7ea5f8c 100644 --- a/libs/features/mas/test/merch-card.test.html.js +++ b/libs/features/mas/test/merch-card.test.html.js @@ -9,6 +9,7 @@ import { mockFetch } from './mocks/fetch.js'; import { delay } from './utils.js'; import { mockIms } from './mocks/ims.js'; import { withWcs } from './mocks/wcs.js'; +import { EVENT_MERCH_QUANTITY_SELECTOR_CHANGE } from '../src/constants'; const skipTests = sessionStorage.getItem('skipTests'); @@ -82,6 +83,41 @@ runTests(async () => { const button = plansCard.querySelector('.con-button'); expect(button.getAttribute('data-quantity')).to.equal('1'); }); + + it('should support quantity based promotions', async () => { + const card = document.querySelector('.quantity-based-promotion merch-card'); + const button = card.querySelector('.con-button'); + const quantitySelect = card.querySelector('merch-quantity-select'); + expect(quantitySelect).to.exist; + await quantitySelect.updateComplete; + + expect(card.price.dataset.promotionCode).to.be.undefined; + expect(button.getAttribute('data-promotion-code')).to.be.null; + + quantitySelect.dispatchEvent(new CustomEvent( + EVENT_MERCH_QUANTITY_SELECTOR_CHANGE, + { + detail: { option: 4 }, + bubbles: true, + }, + )); + + await delay(100); + expect(button.getAttribute('data-promotion-code')).to.equal('TEST_PROMO'); + expect(card.price.dataset.promotionCode).to.equal('TEST_PROMO'); + + quantitySelect.dispatchEvent(new CustomEvent( + EVENT_MERCH_QUANTITY_SELECTOR_CHANGE, + { + detail: { option: 2 }, + bubbles: true, + }, + )); + + await delay(100); + expect(button.getAttribute('data-promotion-code')).to.be.null; + expect(card.price.dataset.promotionCode).to.be.undefined; + }); }); it('should return title for segment card', async () => { diff --git a/libs/features/mas/test/mocks/offers.json b/libs/features/mas/test/mocks/offers.json index 617bbdfa5f..218e9c9518 100644 --- a/libs/features/mas/test/mocks/offers.json +++ b/libs/features/mas/test/mocks/offers.json @@ -139,7 +139,19 @@ "offerType": "BASE", "pricePoint": "REGULAR", "language": "MULT", - "merchant": "ADOBE" + "merchant": "ADOBE", + "promotion": { + "id": "7d221764-f6c4-461a-9f3b-9674d1a33699", + "promotionCode": "TEST_PROMO", + "start": "2024-04-30T07:00:00.000Z", + "end": "2186-05-01T06:59:00.000Z", + "displaySummary": { + "outcomeType": "PERCENTAGE_DISCOUNT", + "duration": "P1Y", + "amount": 13.0, + "minProductQuantity": 3 + } + } } ], "20gb-mult": [ From e95ecd5b816d4df2a7a02d15e60b74de963f5173 Mon Sep 17 00:00:00 2001 From: Bozo Jovicic Date: Fri, 4 Jul 2025 13:31:33 +0200 Subject: [PATCH 5/5] MWPW-169236 [Merch Cards] Support for Volume Discount Flex Promos --- libs/features/mas/test/merch-card.test.html | 4 +++- libs/features/mas/test/merch-card.test.html.js | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libs/features/mas/test/merch-card.test.html b/libs/features/mas/test/merch-card.test.html index 1ec77235e5..df7e42fe37 100644 --- a/libs/features/mas/test/merch-card.test.html +++ b/libs/features/mas/test/merch-card.test.html @@ -849,7 +849,9 @@

diff --git a/libs/features/mas/test/merch-card.test.html.js b/libs/features/mas/test/merch-card.test.html.js index a8c7ea5f8c..3e6798194f 100644 --- a/libs/features/mas/test/merch-card.test.html.js +++ b/libs/features/mas/test/merch-card.test.html.js @@ -86,13 +86,17 @@ runTests(async () => { it('should support quantity based promotions', async () => { const card = document.querySelector('.quantity-based-promotion merch-card'); - const button = card.querySelector('.con-button'); + const button = card.querySelector('.con-button.has-promo'); + const buttonNoPromo = card.querySelector('.con-button.no-promo'); + const buttonOtherPromo = card.querySelector('.con-button.other-promo'); const quantitySelect = card.querySelector('merch-quantity-select'); expect(quantitySelect).to.exist; await quantitySelect.updateComplete; expect(card.price.dataset.promotionCode).to.be.undefined; expect(button.getAttribute('data-promotion-code')).to.be.null; + expect(buttonNoPromo.getAttribute('data-promotion-code')).to.be.null; + expect(buttonOtherPromo.getAttribute('data-promotion-code')).to.equal('OTHER_TEST_PROMO'); quantitySelect.dispatchEvent(new CustomEvent( EVENT_MERCH_QUANTITY_SELECTOR_CHANGE, @@ -104,6 +108,8 @@ runTests(async () => { await delay(100); expect(button.getAttribute('data-promotion-code')).to.equal('TEST_PROMO'); + expect(buttonNoPromo.getAttribute('data-promotion-code')).to.be.null; + expect(buttonOtherPromo.getAttribute('data-promotion-code')).to.equal('OTHER_TEST_PROMO'); expect(card.price.dataset.promotionCode).to.equal('TEST_PROMO'); quantitySelect.dispatchEvent(new CustomEvent( @@ -116,6 +122,8 @@ runTests(async () => { await delay(100); expect(button.getAttribute('data-promotion-code')).to.be.null; + expect(buttonNoPromo.getAttribute('data-promotion-code')).to.be.null; + expect(buttonOtherPromo.getAttribute('data-promotion-code')).to.equal('OTHER_TEST_PROMO'); expect(card.price.dataset.promotionCode).to.be.undefined; }); });