PageSourceSearch

https://app.prnewswire.com/static/js/403.a1e98718.chunk.js

js prnewswire.com collected 2026-10-01 07:58:47 UTC 47,115 bytes, 372 lines download raw bytes

1(globalThis.webpackChunkomc_ui_2_0||=[]).push([[403],{16702(e,o,r){"use strict";r.d(o,{A:()=>H});var t,i,a,c,l,s,n,d=r(9950);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)({}).hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},m.apply(null,arguments)}function u(e,o){let{title:r,titleId:u,...p}=e;return d.createElement("svg",m({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":u},p),r?d.createElement("title",{id:u},r):null,t||(t=d.createElement("mask",{id:"path-1-inside-1",fill:"white"},d.createElement("rect",{x:2,y:4,width:20,height:16,rx:1}))),i||(i=d.createElement("rect",{x:2,y:4,width:20,height:16,rx:1,stroke:"#677078",strokeWidth:3,mask:"url(#path-1-inside-1)"})),a||(a=d.createElement("rect",{x:13.1818,y:8,width:5.81818,height:2,fill:"#677078"})),c||(c=d.createElement("rect",{x:13.1818,y:11,width:5.81818,height:1,fill:"#677078"})),l||(l=d.createElement("rect",{x:13.1818,y:13,width:5.81818,height:1,fill:"#677078"})),s||(s=d.createElement("rect",{x:13.1818,y:15,width:5.81818,height:1,fill:"#677078"})),n||(n=d.createElement("path",{d:"M7.08858 9.88235L5 12.7059V16H11.7879V8L8.65501 11.7647L7.08858 9.88235Z",fill:"#677078"})))}const p=d.forwardRef(u);r.p;var x=r(44414);const h=e=>(0,x.jsxs)("div",{className:"errorHeading",children:[(0,x.jsx)(p,{"aria-hidden":"true"})," ",(0,x.jsxs)("span",{children:[" ",e.widgetHeading," "]})]});var g,b,v,f,w,y,j,C,N,k,A,P,R,U,E,T=r(35657),S=r(42087),M=r(92526),B=r(59320);function L(){return L=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)({}).hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},L.apply(null,arguments)}function V(e,o){let{title:r,titleId:t,...i}=e;return d.createElement("svg",L({width:164,height:164,viewBox:"0 0 164 164",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t},i),r?d.createElement("title",{id:t},r):null,g||(g=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7982 86.4563C21.3481 86.4563 20.9832 86.8212 20.9832 87.2713V92.6387L17.1879 88.8434C16.8696 88.5251 16.3536 88.5251 16.0353 88.8434C15.717 89.1617 15.717 89.6777 16.0353 89.996L19.8306 93.7913H14.4632C14.0131 93.7913 13.6482 94.1562 13.6482 94.6063C13.6482 95.0564 14.0131 95.4213 14.4632 95.4213H19.8306L16.0353 99.2166C15.717 99.5349 15.717 100.051 16.0353 100.369C16.3536 100.687 16.8696 100.687 17.1879 100.369L20.9832 96.5739V101.941C20.9832 102.391 21.3481 102.756 21.7982 102.756C22.2483 102.756 22.6132 102.391 22.6132 101.941V96.5739L26.4085 100.369C26.7268 100.687 27.2428 100.687 27.5611 100.369C27.8794 100.051 27.8794 99.5349 27.5611 99.2166L23.7658 95.4213H29.1332C29.5833 95.4213 29.9482 95.0564 29.9482 94.6063C29.9482 94.1562 29.5833 93.7913 29.1332 93.7913H23.7658L27.5611 89.996C27.8794 89.6777 27.8794 89.1617 27.5611 88.8434C27.2428 88.5251 26.7268 88.5251 26.4085 88.8434L22.6132 92.6387V87.2713C22.6132 86.8212 22.2483 86.4563 21.7982 86.4563Z",fill:"#EBECED"})),b||(b=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.418 68.5262C141.968 68.5262 141.603 68.8911 141.603 69.3412V74.7087L137.808 70.9133C137.489 70.5951 136.973 70.5951 136.655 70.9133C136.337 71.2316 136.337 71.7476 136.655 72.0659L140.45 75.8612H135.083C134.633 75.8612 134.268 76.2261 134.268 76.6762C134.268 77.1264 134.633 77.4912 135.083 77.4912H140.45L136.655 81.2866C136.337 81.6049 136.337 82.1209 136.655 82.4392C136.973 82.7574 137.489 82.7574 137.808 82.4392L141.603 78.6438V84.0112C141.603 84.4614 141.968 84.8262 142.418 84.8262C142.868 84.8262 143.233 84.4614 143.233 84.0112V78.6438L147.028 82.4392C147.347 82.7574 147.863 82.7574 148.181 82.4392C148.499 82.1209 148.499 81.6049 148.181 81.2866L144.386 77.4912H149.753C150.203 77.4912 150.568 77.1264 150.568 76.6762C150.568 76.2261 150.203 75.8612 149.753 75.8612H144.386L148.181 72.0659C148.499 71.7476 148.499 71.2316 148.181 70.9133C147.863 70.5951 147.347 70.5951 147.028 70.9133L143.233 74.7087V69.3412C143.233 68.8911 142.868 68.5262 142.418 68.5262Z",fill:"#EBECED"})),v||(v=d.createElement("rect",{x:33.2083,y:40.8163,width:97.8,height:71.72,rx:8,fill:"#EBECED",stroke:"#CCCFD2",strokeWidth:2})),f||(f=d.createElement("rect",{x:36.4683,y:44.0763,width:91.28,height:65.2,rx:4,fill:"white"})),w||(w=d.createElement("rect",{x:52.7683,y:115.796,width:58.68,height:6.52,rx:2,fill:"#CCCFD2"})),y||(y=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.9932 74.2313C66.7936 74.2313 68.2532 72.7718 68.2532 70.9713C68.2532 69.1709 66.7936 67.7113 64.9932 67.7113C63.1927 67.7113 61.7332 69.1709 61.7332 70.9713C61.7332 72.7718 63.1927 74.2313 64.9932 74.2313Z",fill:"white",stroke:"#CCCFD2",strokeWidth:2})),j||(j=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.3332 74.2313C96.1337 74.2313 97.5932 72.7718 97.5932 70.9713C97.5932 69.1709 96.1337 67.7113 94.3332 67.7113C92.5328 67.7113 91.0732 69.1709 91.0732 70.9713C91.0732 72.7718 92.5328 74.2313 94.3332 74.2313Z",fill:"white",stroke:"#CCCFD2",strokeWidth:2})),C||(C=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.003 72.6013C109.903 72.6013 110.633 71.8715 110.633 70.9713C110.633 70.0711 109.903 69.3413 109.003 69.3413C108.103 69.3413 107.373 70.0711 107.373 70.9713C107.373 71.8715 108.103 72.6013 109.003 72.6013Z",fill:"#CCCFD2"})),N||(N=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.003 77.4913C109.903 77.4913 110.633 76.7615 110.633 75.8613C110.633 74.9611 109.903 74.2313 109.003 74.2313C108.103 74.2313 107.373 74.9611 107.373 75.8613C107.373 76.7615 108.103 77.4913 109.003 77.4913Z",fill:"#CCCFD2"})),k||(k=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.003 82.3813C109.903 82.3813 110.633 81.6516 110.633 80.7513C110.633 79.8511 109.903 79.1213 109.003 79.1213C108.103 79.1213 107.373 79.8511 107.373 80.7513C107.373 81.6516 108.103 82.3813 109.003 82.3813Z",fill:"#CCCFD2"})),A||(A=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.003 87.2713C109.903 87.2713 110.633 86.5416 110.633 85.6413C110.633 84.7411 109.903 84.0114 109.003 84.0114C108.103 84.0114 10
17.373 84.7411 107.373 85.6413C107.373 86.5416 108.103 87.2713 109.003 87.2713Z",fill:"#CCCFD2"})),P||(P=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.003 92.1614C109.903 92.1614 110.633 91.4316 110.633 90.5314C110.633 89.6311 109.903 88.9014 109.003 88.9014C108.103 88.9014 107.373 89.6311 107.373 90.5314C107.373 91.4316 108.103 92.1614 109.003 92.1614Z",fill:"#CCCFD2"})),R||(R=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.9631 80.7513C101.364 80.7513 105.743 76.3726 105.743 70.9713C105.743 65.5699 101.364 61.1913 95.9631 61.1913C90.5618 61.1913 86.1831 65.5699 86.1831 70.9713C86.1831 76.3726 90.5618 80.7513 95.9631 80.7513Z",stroke:"#CCCFD2",strokeWidth:2})),U||(U=d.createElement("path",{d:"M100.194 56.7147C94.9351 54.1496 88.5922 56.3337 86.0271 61.5929",stroke:"#CCCFD2",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),E||(E=d.createElement("path",{d:"M75.5211 89.2087L94.9731 87.1561",stroke:"#CCCFD2",strokeWidth:2,strokeLinecap:"round"})))}const F=d.forwardRef(V);r.p;var O=r(48661);const $=e=>{const o=(0,S.GV)(M.Mv),{REGION_MAPPING:r,HOSTED_URLS:t}=window._env_,[,i]=(0,O.B)(),a=i.language,[c]=(0,O.B)(),{isCompleteOrderList:l}=e;return(0,x.jsxs)("div",{className:"errorContainer","data-testid":"error-container",children:[!l&&(0,x.jsxs)("div",{className:"errorContainerHeader",children:[(0,x.jsx)("div",{className:"heading",children:(0,x.jsx)("span",{children:c("orderHistory:release","RELEASE")})}),(0,x.jsx)("div",{className:"heading",children:(0,x.jsx)("span",{children:c("orderHistory:status","STATUS")})})]}),(0,x.jsx)("div",{className:"image-wrapper omc-flex omc-items-center omc-justify-center",children:(s=e.imageKey,"image-2"===s?(0,x.jsx)(B.h,{"data-testid":"empty-two"}):(0,x.jsx)(F,{"data-testid":"empty-one"}))}),(0,x.jsxs)("div",{className:"errorMessageBody",children:[(0,x.jsx)("h2",{children:e.errorHeading}),(0,x.jsx)("p",{children:e.message}),e.errorCode&&(0,x.jsxs)("p",{className:"errorText","data-testid":"error-code",children:[c("general:errorFallbackErrorCode","ERROR CODE :")," ","{"+e.errorCode+"}"," "]}),l?(0,x.jsxs)("div",{className:"completeOrderButtons",children:[(0,x.jsx)(T.$n,{level:"secondary","data-testid":"retry-btn",onClick:e.onRetry,className:"completeOrderRetryNow",children:c("general:errorFallbackRetry","Retry Now")}),(0,x.jsx)(T.$n,{level:"tertiary","data-testid":"contact-btn",onClick:()=>window.open("fr-CA"===a?t[r[o]].SUPPORT_CONTACT_FR:t[r[o]].SUPPORT_CONTACT,"_blank"),children:c("orderHistory:contactSupport","Contact Support")})]}):(0,x.jsx)(T.$n,{level:"link","data-testid":"retry-btn1",onClick:e.onRetry,className:"retryNow",children:c("general:errorFallbackRetry","Retry Now")})]})]});var s},D=()=>{const[e]=(0,O.B)();return(0,x.jsx)("div",{className:"errorFooterAction",children:(0,x.jsx)(T.$n,{className:"!omc-ml-1.5",level:"primary",disabled:!0,children:e("orderHistory:viewMoreOrders","View More Orders")})})};const _=r(14491).Ay.div`
2  .errorComponent {
3    text-align: center;
4    flex-direction: column;
5    background: var(--white-color);
6    box-shadow: 0.51px 0px 1px 0px var(--gray-20-color);
7
8    h4 {
9      font-weight: bold;
10      font-family: Proxima Nova !important;
11    }
12
13    .errorHeading {
14      display: flex;
15      background-color: var(--gray-10-color);
16      border-bottom: 1px solid var(--gray-20-color);
17      height: 54px;
18      padding: 16px;
19      align-items: center;
20
21      span {
22        color: var(--gray-90-color);
23        font-size: 16px;
24        font-weight: 700;
25        line-height: 24px;
26      }
27
28      svg {
29        margin-right: 8px;
30        color: inherit;
31      }
32    }
33
34    .errorContainer {
35      display: flex;
36      flex-direction: column;
37      align-items: center;
38      width: 100%;
39      height: 458px;
40      padding-top: 16px;
41
42      .errorContainerHeader {
43        color: var(--gray-90-color);
44        border-bottom: 1px solid var(--gray-20-color);
45        display: flex;
46        padding: 16px 0;
47        font-size: 14px;
48        line-height: 16px;
49        width: calc(100% - 24px);
50        justify-content: space-between;
51        text-transform: uppercase;
52      }
53
54      .image-wrapper {
55        width: 100%;
56
57        svg {
58          height: 163px;
59          width: 163px;
60        }
61      }
62
63      .errorMessageBody {
64        h2 {
65          color: var(--gray-90-color);
66          font-size: 16px;
67          text-transform: inherit;
68          //to make it consistent with OMC1.0
69          font-weight: bold !important;
70          font-family: Proxima Nova !important;
71          width: fit-content;
72          margin: 12px auto;
73        }
74
75        p {
76          color: var(--gray-80-color);
77          font-size: 14px;
78          line-height: 24px;
79        }
80
81        p.errorText {
82          color: var(--gray-80-color);
83          font-size: 12px;
84        }
85
86        .retryNow {
87          color: var(--primary-color-blue);
88        }
89
90        button {
91          span {
92            width: auto;
93            height: 24px;
94            display: flex;
95            align-items: center;
96          }
97        }
98      }
99    }
100
101    .errorFooterAction {
102      button {
103        padding: 7px 12px;
104      }
105    }
106
107    &.errorCompleteList {
108      .errorContainer {
109        flex-direction: column-reverse;
110        align-items: flex-start;
111        height: auto;
112
113        .retryNow {
114          padding-left: 0px;
115        }
116
117        .image-wrapper {
118          width: 100%;
119
120          svg {
121            height: 163px;
122            width: 163px;
123          }
124        }
125
126        .errorMessageBody {
127          padding: 12px;
128
129          h4,
130          p {
131            text-align: left !important;
132          }
133
134          h4 {
135            margin: 12px 0;
136          }
137
138          .completeOrderButtons {
139            display: flex;
140            padding-top: 12px;
141
142            button {
143              margin-right: 6px;
144
145              &.completeOrderRetryNow {
146                color: var(--primary-color-blue);
147
148                &:hover {
149                  color: var(--white-color);
150                }
151              }
152            }
153          }
154        }
155      }
156    }
157    .errorFooterAction {
158      display: flex;
159      justify-content: center;
160      align-items: center;
161      background-color: var(--white-color);
162      border-top: 1px solid var(--gray-20-color);
163      border-bottom: 1px solid var(--gray-20-color);
164      padding: 12px;
165    }
166
167    .noPadding {
168      padding: 0px;
169    }
170  }
171`,H=e=>{const{isCompleteOrderList:o}=e;return(0,x.jsx)(_,{"data-testid":"error-component",children:(0,x.jsxs)("div",{className:o?"errorComponent errorCompleteList":"errorComponent",children:[!
171o&&(0,x.jsx)(h,{...e}),(0,x.jsx)($,{...e}),!o&&(0,x.jsx)(D,{})]})})}},42698(e,o,r){"use strict";var t=r(72004),i=r(9950),a=r(48661),c=r(44414);const l=e=>{let{remainingUsage:o,originalUsage:r}=e;const[i]=(0,a.B)(),l=o<=(r<=3?1:3),s=i("createRelease:releasesWithSocialBoost","Releases with social boost"),n=`${o} ${i("createRelease:usageLeft","left")}`,d="omc-text-[12px] omc-leading-[18px] omc-font-medium",m="omc-py-0.5 omc-px-2";return(0,c.jsx)("div",{className:(0,t.A)("omc-inline-flex omc-items-center omc-text-sm omc-font-medium omc-rounded"),children:l?(0,c.jsxs)("div",{className:(0,t.A)(m,"omc-w-fit omc-rounded omc-bg-white omc-border !omc-border-solid omc-border-red-700"),children:[(0,c.jsx)("span",{className:(0,t.A)(d,"omc-text-primary-600 omc-mr-3.5"),children:s}),(0,c.jsx)("span",{className:(0,t.A)(d,"omc-text-red-700 omc-min-w-[47px]"),children:n})]}):(0,c.jsxs)("div",{className:(0,t.A)("omc-w-fit omc-bg-blues-200 omc-flex omc-rounded omc-border omc-border-solid omc-border-border-base"),children:[(0,c.jsx)("div",{className:(0,t.A)(m,d,"omc-text-primary-600 omc-rounded-s omc-bg-blue-100"),children:s}),(0,c.jsx)("div",{className:(0,t.A)(m,d,"omc-bg-blue-200 omc-text-primary-600 omc-rounded omc-min-w-[47px]"),children:n})]})})},s=i.memo(l);r.d(o,["A",0,s])},98679(e,o,r){"use strict";var t=r(72004),i=r(9950),a=r(78813),c=r(95942),l=r(48661),s=r(44414);const n=e=>{let{remainingUsage:o,originalUsage:r,className:n,product:d,hideTooltip:m=!1,showOriginalUsage:u=!1,badgeClasses:p=""}=e;const[x]=(0,l.B)(),{badgeColor:h,textColor:g}=(0,i.useMemo)(()=>o<=(r<=3?1:3)?{badgeColor:"omc-bg-white omc-border !omc-border-solid omc-border-red-700",textColor:"omc-text-red-700"}:{badgeColor:"omc-bg-blues-200",textColor:"omc-text-neutral-800"},[o,r]),b=(0,s.jsx)("div",{className:"omc-bg-black omc-text-white omc-py-0.5 omc-px-2 omc-rounded-md omc-text-sm",children:x("createRelease:subscriptionItemTooltip",'This item is part of a subscription you have. Click on "Your subscription" to get a full overview.')}),v=(0,s.jsxs)("div",{className:(0,t.A)("omc-inline-flex omc-items-center omc-text-sm omc-font-medium omc-rounded",n),children:[d&&(0,s.jsx)("div",{className:"omc-py-0.5 omc-px-2 omc-bg-blues-100 omc-text-neutral-800 omc-rounded-l",children:d}),(0,s.jsx)("div",{className:(0,t.A)("omc-py-0.5 omc-px-2 omc-w-fit omc-bg-blues-200",d?"omc-rounded-r":"omc-rounded",h,g,p),children:u?`${o} ${x("createRelease:usageLeftOf","left of")} ${r}`:`${o} ${x("createRelease:usageLeft","left")}`})]});return m?v:(0,s.jsx)(a.A,{placement:"top",overlay:(0,s.jsx)(c.A,{className:"tooltip-no-arrow",children:b}),children:v})};r.d(o,["A",0,n])},25339(e,o,r){"use strict";var t=r(9950),i=r(22776),a=r(46724),c=r(67161),l=r(48661),s=r(12581),n=r(47791),d=r(42087),m=r(82838),u=r(72004),p=r(78503),x=r(29390),h=r(6091),g=r(98679),b=r(56943),v=r(44414);const f=e=>{let{product:o,isSubscriptionProduct:r=!1,featureTagNode:f=null,hideViewButtons:w=!1,parentProductCode:y=""}=e;const{isQuickViewOpen:j,currentProduct:C,setIsQuickViewOpen:N,setCurrentProduct:k,removeProductFromCart:A,checkIsProductAddedToCart:P,checkIsProductIncludedInCart:R}=(0,t.useContext)(s.D),{productsAvailableInSubscription:U,products:E}=(0,d.GV)(p.P1),T=(0,d.GV)(p.vU),{isSubscriptionModuleEnabled:S,isPricingFeatureEnabled:M}=(0,d.Uu)(),{getProductName:B,getParentProductName:L}=(0,d.hq)(),[V]=(0,l.B)(),F=o.features.offersSiteSelection,O=(0,t.useMemo)(()=>P(o),[P,o]),$=(0,t.useMemo)(()=>R(o),[R,o]),D=e=>{e.stopPropagation(),$||e.target instanceof HTMLInputElement||(k(o),N(!0))},_=(0,t.useCallback)(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),D(e))},[D]),H=o.bundleType===a.I.group,G=(0,t.useMemo)(()=>H?o.bundle.map(e=>e.prdCd):void 0,[H,o.bundle]),I=(0,t.useMemo)(()=>{if(!S)return[];const e=e=>[...e].sort((e,o)=>{var r,t,i,a;const c=(null!==(r=e.remainingUsage)&&void 0!==r?r:0)>0?1:0,l=(null!==(t=o.remainingUsage)&&void 0!==t?t:0)>0?1:0;if(l!==c)return l-c;return(null!==(i=e.productPrice)&&void 0!==i?i:Number.MAX_SAFE_INTEGER)-(null!==(a=o.productPrice)&&void 0!==a?a:Number.MAX_SAFE_INTEGER)}).at(0);if(H&&o.bundle.length>0){const r=new Map;return o.bundle.forEach(o=>{var t;const i=null===(t=o.serves)||void 0===t?void 0:t[0];if(!i)return;const a=T.get(o.prdCd);if(a&&a.length>0){const o=e(a);if(!o)return;r.set(i,o)}}),Array.from(r.values())}if(!E)return[];const r=E.filter(e=>{var r;
171return e.productCode===o.prdCd||(null===(r=e.childProducts)||void 0===r?void 0:r.includes(o.prdCd))}),t=e(r);if(t)return[t];if(y){const o=E.filter(e=>{var o;return e.productCode===y||(null===(o=e.childProducts)||void 0===o?void 0:o.includes(y))}),r=e(o);if(r)return[r]}return[]},[E,T,o.prdCd,o.bundle,H,y,S]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(c.$G,{"data-testid":"product-card",role:"button",tabIndex:0,className:(0,u.A)(F?"omc-bg-blues-0":"","omc-w-full omc-flex omc-relative omc-p-4"),onClick:D,onKeyDown:_,children:[(0,v.jsxs)("div",{className:"text-gray-90 omc-pr-3 product-details overflow-hidden",children:[(()=>{const e=o.bundle.length>0?L(o.prdCd,o.prdNm):B(o.prdCd,o.prdNm);return(0,v.jsx)("div",{className:"body-16 ellipsify-2 fw-bold",children:e})})(),(0,v.jsx)(n.A,{product:o,isIncluded:$,isSelected:O}),(e=>{let{isViewedFromSubscriptionTab:t=!1,subscriptionFeatureTagNode:i=null}=e;const{features:{isPopular:a,isNew:c,isMostPopular:l},prdCd:s}=o,n=[],d=(()=>{const e=(0,b.eB)(o.prdBlurb);return e.tags.length>0?e.tags.map(e=>(0,v.jsx)("div",{className:"omc-border omc-border-solid omc-border-neutral-300 omc-rounded-lg omc-px-1 omc-py-0.5 omc-w-fit","data-testid":"price-tag",children:e.label},e.key)):null})();return d&&!M&&(Array.isArray(d)?n.push(...d):n.push(d)),t&&i&&n.push(i),!r&&S&&(H?I.length>0:U.includes(s))&&I.length>0&&I.forEach((e,o)=>{n.push((0,v.jsx)(g.A,{remainingUsage:e.remainingUsage,originalUsage:e.originalUsage,className:"omc-mt-2",product:e.productName},`subscription-usage-${e.productCode}-${o}`))}),!a||O||$||n.push((0,v.jsx)(m.A,{className:"bg-brand-teal-light-color omc-mt-2 omc-w-fit omc-uppercase",label:V("createRelease:popular","Popular")},"popular")),!l||O||$||n.push((0,v.jsx)(m.A,{className:"bg-brand-teal-light-color omc-mt-2 omc-w-fit omc-uppercase",label:V("createRelease:mostPopular","Most Popular")},"mostPopular")),!c||O||$||n.push((0,v.jsx)(m.A,{newTag:!0,className:"new-tag omc-mt-2 omc-w-fit",label:V("general:new","New")},"new")),n.length>0?(0,v.jsx)("div",{className:"omc-flex omc-gap-2 omc-items-baseline",children:n}):null})({isViewedFromSubscriptionTab:r,subscriptionFeatureTagNode:f})]}),(0,v.jsx)("div",{className:(0,u.A)("omc-flex omc-items-center omc-justify-end",H&&"omc-min-w-[205px]"),children:M?(0,v.jsx)(h.k,{unitPrice:o.unitPrice,calculatedPrice:o.c
171alculatedPrice,productCode:o.prdCd,isSelected:O,isIncluded:$,parentProductCode:y,variantProductCodes:G,originalBasePrice:o.originalBasePrice,additionalPrice:o.additionalPrice}):null}),(0,v.jsxs)("div",{className:"omc-flex omc-flex-col omc-items-end omc-justify-center",children:[(0,v.jsx)("div",{children:O?(0,v.jsx)(i.A.Check,{className:"selection-list-item",type:"checkbox",checked:!0,id:`card_check_${o.prdCd}`,onChange:e=>(e.stopPropagation(),A(o),!1),"data-testid":"product-selected-checkbox","aria-label":`${o.prdNm} \u2013 ${V("general:selected","selected")}`}):$?(0,v.jsx)(i.A.Check,{className:"selection-list-item",type:"checkbox",checked:!0,disabled:!0,id:`card_check_${o.prdCd}`,"data-testid":"product-checkbox","aria-label":`${o.prdNm} \u2013 ${V("general:included","included")}`}):null}),(0,v.jsx)("div",{children:O||$||w||j&&(null===C||void 0===C?void 0:C.prdCd)===o.prdCd?null:(0,v.jsx)("div",{className:"omc-flex text-body",children:(0,v.jsx)("button",{"data-testid":"quick-add-btn",className:"omc-text-[14px] omc-text-omc-blue omc-border-[1px] omc-border-solid omc-border-neutral-300 omc-rounded-lg omc-py-1 omc-px-3 omc-bg-white hover:omc-bg-primary hover:omc-text-white",onClick:e=>{e.stopPropagation(),k(o),N(!0)},type:"button",children:V("createRelease:view","View")})})})]})]},o.prdCd),j&&(null===C||void 0===C?void 0:C.prdCd)===o.prdCd&&(0,v.jsx)(x.A,{})]})},w=(0,t.memo)(f);r.d(o,["A",0,w])},73257(e,o,r){"use strict";r.d(o,{A:()=>w});var t=r(78503),i=r(9950),a=r(25339),c=r(42087),l=r(98679),s=r(44414);const n=e=>{let{product:o,hideViewButtons:r=!1,hideTooltip:i=!1,showOriginalUsage:n=!1}=e;const{productDetailsMap:d}=(0,c.GV)(t.P1),m=d[o.productCode];return(0,s.jsx)(s.Fragment,{children:m?(0,s.jsx)(a.A,{product:m,isSubscriptionProduct:!0,featureTagNode:(0,s.jsx)(l.A,{remainingUsage:o.remainingUsage,originalUsage:o.originalUsage,className:"omc-mt-2",hideTooltip:i,showOriginalUsage:n}),hideViewButtons:r}):(0,s.jsx)(s.Fragment,{})})},d=(0,i.memo)(n);var m=r(72004),u=r(48661);const p=e=>{let{skuProduct:o,hideViewButtons:r=!1,hideTooltip:n=!1,showOriginalUsage:d=!1}=e;const[p]=(0,u.B)(),{productDetailsMap:x,subscription:h}=(0,c.GV)(t.P1),[g,b]=(0,i.useState)(!1),{isPricingFeatureEnabled:v}=(0,c.Uu)(),f=(0,i.useMemo)(()=>o.childProducts.filter(e=>x[e]).sort((e,o)=>{const r=x[e],t=x[o];return r&&t?r.prdNm.localeCompare(t.prdNm):0}),[o.childProducts,x]),{getSKUProductName:w}=(0,c.hq)(),y=(0,i.useCallback)(()=>{b(e=>!e)},[]),j=(0,i.useCallback)(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),y())},[y]);return(0,s.jsx)(s.Fragment,{children:f.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{role:"button",tabIndex:0,"aria-expanded":g,className:"omc-flex omc-justify-between omc-items-center omc-p-4",onKeyDown:j,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"omc-text-xl omc-font-bold omc-text-neutral-800",children:w(o.productC
171ode,o.productName)}),(0,s.jsxs)("div",{className:"omc-text-lg1 omc-font-medium omc-text-neutral-600",children:[p("createRelease:expandInstructions","Expand to view newsline options. Each option selected would count against your usage.")," "]})," ",(0,s.jsx)(l.A,{remainingUsage:o.remainingUsage,originalUsage:o.originalUsage,className:"omc-mt-2",hideTooltip:n,showOriginalUsage:d})]}),(0,s.jsx)("div",{className:"omc-flex omc-items-center omc-gap-2",children:(0,s.jsx)("button",{"data-testid":"quick-add-btn",className:"omc-text-body omc-text-[14px] omc-text-omc-blue omc-border-[1px] omc-border-solid omc-border-neutral-300 omc-rounded-lg omc-py-1 omc-px-3 omc-bg-white hover:omc-bg-primary hover:omc-text-white",onClick:y,type:"button",children:g?p("general:collapse","Collapse"):p("general:expand","Expand")})})]}),(0,s.jsx)("div",{className:(0,m.A)(g?"omc-block":"omc-hidden","omc-mx-3 omc-mb-3 !omc-border omc-border-solid omc-border-neutral-300 omc-rounded-xl omc-divide omc-divide-y omc-divide-x-0 omc-divide-solid omc-divide-neutral-300"),children:f.map(e=>(0,s.jsx)(s.Fragment,{children:x[e]?(0,s.jsx)(a.A,{product:x[e],isSubscriptionProduct:!0,hideViewButtons:r,parentProductCode:o.productCode},e):(0,s.jsx)(s.Fragment,{})}))})]}):(0,s.jsx)(s.Fragment,{})})},x=(0,i.memo)(p),h=e=>{let{subscriptionPrd:o,hideViewButtons:r=!1,hideTooltip:t=!1,showOriginalUsage:i=!1}=e;return(0,s.jsx)(s.Fragment,{children:o.childProducts&&o.childProducts.length>0?(0,s.jsx)(x,{skuProduct:o,hideViewButtons:r,hideTooltip:t,showOriginalUsage:i}):(0,s.jsx)(d,{product:o,hideViewButtons:r,hideTooltip:t,showOriginalUsage:i})})},g=(0,i.memo)(h);var b=r(56943);const v=e=>{var o;let{group:r,hideViewButtons:t=!1,addTopMargin:i=!1,hideTooltip:a=!1,showOriginalUsage:l=!1}=e;const{getProductTypeNameForSummary:n}=(0,c.hq)();return(0,s.jsxs)("div",{className:i?"omc-mt-4":"",children:[(0,s.jsx)("div",{className:"omc-text-xl omc-font-medium",children:n((0,b.D1)(r.name))}),(0,s.jsx)("div",{className:"omc-border omc-border-solid omc-border-neutral-300 omc-rounded-xl omc-divide omc-divide-y omc-divide-x-0 omc-divide-solid omc-divide-neutral-300 omc-mt-2",children:(null!==(o=null===r||void 0===r?void 0:r.prds)&&void 0!==o?o:[]).map(e=>(0,s.jsx)(g,{subscriptionPrd:e,hideViewButtons:t,hideTooltip:a,showOriginalUsage:l},e.subscriptionID))})]})},f=(0,i.memo)(v),w=e=>{let{hideViewButtons:o=!1,addTopMargin:r=!1,hideTooltip:i=!1,showOriginalUsage:a=!1}=e;const l=(0,c.GV)(t.P1),n=(null===l||void 0===l?void 0:l.groups)||[];return(0,s.jsx)(s.Fragment,{children:n.map((e,t)=>{var c;return(0,s.jsx)(f,{group:e,hideViewButtons:o,addTopMargin:r,hideTooltip:i,showOriginalUsage:a},`subscription-group-${(null===e||void 0===e?void 0:e.name)||"unnamed"}-${null!==(c=null===e||void 0===e?void 0:e.seq)&&void 0!==c?c:t}`)})})}},67161(e,o,r){"use strict";var t=r(35657),i=r(39767),a=r(14491);(0,a.Ay)(i.k2)`
172  &.active {
173    border-bottom: 2px solid var(--primary-color-blue);
174    font-weight: bold;
175  }
176
177  &.invalid {
178    border-bottom: 2px solid var(--danger-color);
179    color: var(--danger-color) !important;
180  }
181  &.disabled {
182    cursor: default;
183    font-weight: 400;
184    color: var(--gray-40-color) !important;
185    border-bottom: none !important;
186    pointer-events: none;
187  }
188`,a.Ay.div`
189  display: flex;
190`,a.Ay.div`
191  min-width: 200px;
192  width: 200px;
193  border-radius: 12px 0px 0px 12px;
194`,a.Ay.div`
195  background: rgba(237, 237, 235, 0.8);
196  background-blend-mode: multiply;
197  flex: 1;
198  width: calc(100% - 200px);
199  .products-count {
200    padding: 61px 18px 17px 18px;
201  }
202
203  .products-container {
204    padding: 24px 16px 0 16px;
205    .product-type {
206      margin-bottom: 24px;
207      .product-type-name {
208        margin-bottom: 24px;
209      }
210      .product-type-view {
211        margin-bottom: 64px;
212      }
213    }
214  }
215  .ms-16 {
216    margin-left: 16px;
217  }
218`;const c=a.Ay.div`
219  border-radius: 12px;
220  background: rgba(237, 237, 235, 0.8);
221  background-blend-mode: multiply;
222  flex: 1;
223  width: 100%;
224`,l=(a.Ay.div``,a.Ay.button`
225  &:not(:first-child) {
226    margin-top: 10px;
227  }
228
229  width: 100%;
230  max-width: 170px;
231  min-height: 46px;
232
233  background: #ffffff;
234  border: 1px solid #ebeced;
235  box-shadow:
236    0px 2px 2px rgba(0, 0, 0, 0.05),
237    0px 2px 10px rgba(0, 0, 0, 0.05);
238  border-radius: 8px;
239
240  &.active {
241    background: #ebeced;
242    border: 2px solid #6b5da3;
243    box-shadow:
244      0px 2px 2px rgba(0, 0, 0, 0.2),
245      0px 2px 10px rgba(0, 0, 0, 0.2);
246
247    font-weight: bold;
248  }
249`,a.Ay.button`
250  margin: 0px 20px;
251  width: 110px;
252`,a.Ay.div`
253  width: 110px;
254  height: 87px;
255  display: flex;
256  align-items: center;
257  justify-content: center;
258  box-shadow:
259    0px 2px 2px rgba(0, 0, 0, 0.2),
260    0px 2px 10px rgba(0, 0, 0, 0.2);
261
262  &:last-child {
263    margin-right: 0px;
264  }
265
266  &.active {
267    border: 2px solid var(--purple-dark-color);
268  }
269`,a.Ay.div`
270  box-sizing: border-box;
271
272  &.included {
273    &:hover,
274    &:focus,
275    &:focus-within {
276      background-color: var(--gray-20-color) !important;
277    }
278  }
279
280  &.selected {
281    &:hover,
282    &:focus,
283    &:focus-within {
284      background-color: var(--gray-20-color) !important;
285    }
286  }
287  .new-tag {
288    background-color: var(--purple-dark-color) important;
289    font-weight: normal !important;
290    padding-top: 2px;
291    padding-bottom: 2px;
292  }
293  .quick-view-overlay {
294    display: block !important;
295    .quick-add-btn {
296      width: 100px;
297    }
298  }
299
300  &:hover,
301  &:focus,
302  &:focus-within {
303  }
304
305  .prd-feats {
306    .prd-feat:first-child {
307      margin-top: 8px;
308    }
309
310    .prd-feat {
311      margin-top: 4px;
312    }
313  }
314
315  .product-details {
316    width: calc(100% - 20px);
317  }
318
319  // .quick-view-overlay {
320  //   display: none;
321  //   bottom: 16px;
322  //   right: 16px;
323  // }
324`);(0,a.Ay)(t.ab)`
325  border: 1px solid;
326  color: var(--atlas-color-primary-n500, #0a0d0f);
327  border-color: var(--atlas-color-primary-n200, #9aa0a5);
328  background: var(--atlas-color-primary-n25, #f7f7f7);
329  svg path {
330    fill: var(--atlas-color-primary-n400, #0a0d0f);
331  }
332
333  &:hover,
334  &:focus {
335    color: var(--atlas-color-primary-n500, #0a0d0f);
336    border-color: var(--atlas-color-primary-n300, #677078);
337    background: var(--atlas-color-primary-n50, #ebeced);
338    svg path {
339      fill: var(--atlas-color-primary-n400, #0a0d0f);
340    }
341  }
342
343  &.selected {
344    border-color: var(--primary-color-focus);
345    background: var(--white-color);
346    color: var(--primary-color-blue);
347
348    svg path {
349      fill: var(--primary-color-blue);
350    }
351
352    &:hover {
353      color: var(--primary-color-blue);
354      border-color: var(--link-color-hover);
355      background: var(--primary-color-highlight);
356
357      svg path {
358        fill: var(--primary-color-hover);
359      }
360    }
361  }
362
363  &.disabled {
364    cursor: not-allowed;
365    color: var(--gray-40-color, #cccfd2);
366    border-color: var(--atlas-color-primary-n200, #9aa0a5);
367    background: var(--atlas-color-primary-n25, #f7f7f7);
368    svg path {
369      fill: var(--gray-40-color, #cccfd2);
370    }
371  }
372`;r.d(o,["$G",0,l,"$P",0,c])},33035(e,o,r){"use strict";r.d(o,{A:()=>b});var t=r(72004),i=r(48661),a=r(88858),c=r(44414);const l=()=>(0,c.jsxs)(a.Ay,{speed:3,height:100,width:"100%",backgroundColor:"#f3f3f3",foregroundColor:"#ccc",children:[(0,c.jsx)("rect",{x:"0",y:"0",rx:"2",ry:"2",width:"3%",height:"7%"}),(0,c.jsx)("rect",{x:"5%",y:"0",rx:"2",ry:"2",width:"15%",height:"7%"}),(0,c.jsx)("rect",{x:"0%",y:"20%",rx:"2",ry:"2",width:"10%",height:"7%"}),(0,c.jsx)("rect",{x:"0%",y:"35%",rx:"2",ry:"2",width:"15%",height:"7%"}),(0,c.jsx)("rect",{x:"0%",y:"50%",rx:"2",ry:"2",width:"7%",height:"7%"}),(0,c.jsx)("rect",{x:"20%",y:"20%",rx:"2",ry:"2",width:"10%",height:"7%"}),(0,c.jsx)("rect",{x:"20%",y:"35%",rx:"2",ry:"2",width:"15%",height:"7%"}),(0,c.jsx)("rect",{x:"20%",y:"50%",rx:"2",ry:"2",width:"7%",height:"7%"}),(0,c.jsx)("rect",{x:"40%",y:"20%",rx:"2",ry:"2",width:"10%",height:"7%"}),(0,c.jsx)("rect",{x:"40%",y:"35%",rx:"2",ry:"2",width:"15%",height:"7%"}),(0,c.jsx)("rect",{x:"40%",y:"50%",rx:"2",ry:"2",width:"7%",height:"7%"}),(0,c.jsx)("rect",{x:"60%",y:"20%",rx:"2",ry:"2",width:"10%",height:"7%"}),(0,c.jsx)("rect",{x:"60%",y:"35%",rx:"2",ry:"2",width:"15%",height:"7%"}),(0,c.jsx)("rect",{x:"60%",y:"50%",rx:"2",ry:"2",width:"7%",height:"7%"})]});var s=r(56943),n=r(42087),d=r(92526),m=r(57397),u=r(98679),p=r(67161),x=r(9950);const h=e=>{let{price:o,remainingUsage:r,additionalPrice:i,className:a}=e;const{isStrikethrough:l,displayPrice:s,showAdditionalPrice:n,boldPrice:d}=(0,x.useMemo)(()=>{if(0===r&&void 0!==i&&0!==i&&o!==i)return{isStrikethrough:!0,displayPrice:`$${i}`,showAdditionalPrice:!0,boldPrice:`$${o}`};const e=null!==i&&void 0!==i?i:o;return{isStrikethrough:r>0,displayPrice:void 0!==e?`$${e}`:"",showAdditionalPrice:!1,boldPrice:void 0}},[o,r,i]);return void 0===o||0===o?null:(0,c.jsxs)("div",{className:(0,t.A)("omc-text-lg1 omc-font-medium omc-text-neutral-600",a),children:[(0,c.jsx)("span",{className:l?"omc-line-through":"",children:s}),n&&d&&(0,c.jsx)("span",{className:"omc-font-bold omc-ml-1",children:d})]})};var g=r(78503);const b=e=>{let{showToggle:o=!0,variant:r="default",accountNumber:a,hideTooltip:x=!0,showOriginalUsage:b=!0}=e;const[v]=(0,i.B)(),f=(0,n.GV)(d.Mv),{assetAdditionalPrice:w}=(0,n.GV)(g.ZV),y=(0,n.GV)(d.cn),{isPricingFeatureEnabled:j}=(0,n.Uu)(),{loadingSubscription:C,showSubscription:N,subscriptions:k,lastSync:A,error:P,isTransactionalAccount:R}=(0,m.e)(a),U=e=>{const o=null===w||void 0===w?void 0:w.find(o=>o.productCode===e);if(o)return o.unitPrice&&0!==o.unitPrice?o.unitPrice:void 0};return P||0===(null===k||void 0===k?void 0:k.length)?(0,c.jsx)(c.Fragment,{}):(0,c.jsxs)("div",{className:(0,t.A)("omc-mb-2","default"===r?"omc-border omc-border-solid omc-border-neutral-200 omc-rounded-lg omc-p-3 omc-bg-shade-1":""),children:[C?(0,c.jsx)(l,{}):null,!C&&N&&(0,c.jsxs)(c.Fragment,{children:[o&&(0,c.jsxs)("div",{className:"omc-flex omc-justify-between omc-items-center",children:[(0,c.jsx)("span",{className:"omc-text-xl omc-font-medium omc-text-neutral-800",children:(null===k||void 0===k?void 0:k.length)>0&&!R?v("createRelease:includedInSubscription","Included in your subscription"):v("createRelease:mediaPricing","Media pricing")}),A&&(null===k||void 0===k?void 0:k.length)>0&&!R&&(0,c.jsxs)("div",{className:"omc-text-sm omc-font-medium omc-text-neutral-600",children:[v("createRelease:lastSyncedWithBillingPortal","Last synced with your billing portal on")," ",v("dateTime:date",{date:A,formatParams:{...(0,s.VD)(f,"medium",null===y||void 0===y?void 0:y.bureau_name)}})," ",v("dateTime:time",{date:A,formatParams:{...(0,s.VD)(f,"medium",null===y||void 0===y?void 0:y.bureau_name)}})]})]}),(0,c.jsx)("div",{className:(0,t.A)("yourSubscription"===r?"omc-flex omc-flex-col omc-gap-3":"omc-flex omc-items-start omc-justify-between omc-gap-4 omc-mt-6"),children:k.filter(e=>"yourSubscription"!==r||e.originalUsage>0).map((e,o)=>"yourSubscription"===r?(0,c.jsxs)(p.$G,{className:"sc-kmqAS fMLhaH omc-w-full omc-relative omc-p-4 omc-border omc-border-neutral-200 omc-rounded-lg",style:{border:"1px solid rgb(212 212 212 / 1)"},children:[(0,c.jsxs)("div",{className:"product-details omc-flex-1",children:[(0,c.jsx)("div",{className:"body-16 ellipsify-2 fw-bold",children:e.title}),(0,c.jsx)("div",{className:"omc-overflow-hidden omc-text-ellipsis omc-break-words omc-line-clamp-4 omc-mb-0",children:e.description})]}),(0,c.jsx)(u.A,{remainingUsage:e.remainingUsage,originalUsage:e.originalUsage,className:"omc-mt-2",hideTooltip:x,showOriginalUsage:b})]},o):(0,c.jsxs)("div",{className:"omc-w-[30%] omc-flex omc-flex-col omc-gap-1.5",children:[(0,c.jsx)("h2",{className:"omc-text-xl omc-font-bold omc-m-0 omc-text-neutral-800",children:e.title}),(0,c.jsx)("p",{className:"omc-text-lg1 omc-font-medium omc-leading-tight omc-m-0 omc-text-neutral-600 omc-min-h-[60
372px]",children:e.description}),(0,c.jsxs)("div",{className:"omc-flex omc-gap-2 omc-items-center",children:[!e.isTransactionalAsset&&(0,c.jsx)(u.A,{remainingUsage:e.remainingUsage,originalUsage:e.originalUsage,badgeClasses:"!omc-py-2 !omc-px-1 !omc-text-primary-600 !omc-text-sm !omc-font-medium",hideTooltip:x,showOriginalUsage:b}),j&&(0,c.jsx)(h,{price:e.productPrice,remainingUsage:e.remainingUsage,additionalPrice:e.isTransactionalAsset?void 0:U(e.productCode)})]})]},o))})]})]})}},24092(e,o,r){"use strict";r.r(o),r.d(o,{default:()=>A});var t=r(78503),i=r(9950),a=r(42087),c=r(92526),l=r(56943),s=r(31928),n=r(73257),d=r(33035),m=r(57397),u=r(35839),p=r(48661),x=r(95912),h=r(71316),g=r(67161),b=r(42698),v=r(44414);const f=e=>{let{product:o}=e;const[r]=(0,p.B)(),{remainingUsage:t,originalUsage:i}=o[0]||{remainingUsage:0,originalUsage:0};return(0,v.jsxs)(g.$G,{className:"sc-kmqAS fMLhaH omc-w-full omc-relative omc-p-4 omc-border omc-border-neutral-200 omc-rounded-lg",style:{border:"1px solid rgb(212 212 212 / 1)"},children:[(0,v.jsxs)("div",{className:"product-details omc-flex-1 omc-mb-1",children:[(0,v.jsxs)("div",{className:"body-16 ellipsify-2 fw-bold",children:[" ",r("createRelease:socialBoostWithSpace","Social Boost")]}),(0,v.jsx)("div",{className:"omc-overflow-hidden omc-text-ellipsis omc-break-words omc-line-clamp-4 omc-mb-0",children:r("createRelease:socialBoostSubscriptionDescription","Use our social widget to get up to 10 ready-to-use, brand-approved social posts per release.")})]}),(0,v.jsx)(b.A,{remainingUsage:t,originalUsage:i})]})},w=(0,i.memo)(f);var y=r(9372),j=r(16702);const C={standard:"omc-grid-cols-1",advanced:"omc-grid-cols-2",ultimate:"omc-grid-cols-3"},N={Standard:"omc-bg-white omc-text-neutral-800 omc-border-neutral-300 omc-border-solid",Advanced:"omc-bg-orange-100 omc-text-orange-700 omc-border-orange-700 omc-border-solid",Ultimate:"omc-bg-orange-100 omc-text-orange-700 omc-border-orange-700 omc-border-solid"},k=()=>{var e,o;const[r]=(0,p.B)();(0,a.Kp)("Account overview",{noBg:!0,noBorder:!0});const g=(0,a.GV)(c.cn),b=String(null!==(e=null===g||void 0===g?void 0:g.account_geocode)&&void 0!==e?e:"1"),{subscription:f,isLoading:y,groups:j}=(0,a.GV)(t.P1),k=(0,a.GV)(c.nL),A=(0,i.useMemo)(()=>{const e=new Map;return k.forEach(o=>{var r,t,i;e.set(o.accountNumber,{accountName:o.accountName,geoCode:o.geoCode,plan:null!==(r=o.plan)&&void 0!==r?r:null,planAccesslevel:null!==(t=o.planAccesslevel)&&void 0!==t?t:null,planLanguage:null!==(i=o.planLanguage)&&void 0!==i?i:null})}),e},[k]),{isMediaSubscriptionModuleEnabled:P,subscriptionPlanBenefitsConfig:R,isMembershipTiersEnabled:U}=(0,a.Uu)(),[E,T]=(0,i.useState)((null===g||void 0===g?void 0:g.account_id)||""),S=(0,i.useMemo)(()=>{var e;return null===f||void 0===f||null===(e=f.products)||void 0===e?void 0:e.filter(e=>"SBO"===e.productCode)},[f,E]),M=(0,i.useMemo)(()=>{const e=A.get(E);return 3===(null===e||void 0===e?void 0:e.geoCode)},[A,E]),{selectedAccountPlan:B,selectedAccountPlanTier:L,currentPlanKey:V,planGridCols:F,planLanguage:O}=(0,i.useMemo)(()=>{var e,o,r,t;if(!U)return{selectedAccountPlan:null,selectedAccountPlanTier:null,currentPlanKey:"",planGridCols:C.standard,planLanguage:null};const i=A.get(E),a=null!==(e=null===i||void 0===i?void 0:i.plan)&&void 0!==e?e:null,c=(e=>{if(!e)return null;const o=e.trim().toLowerCase();return o.includes("standard")?"Standard":o.includes("advanced")?"Advanced":o.includes("ultimate")?"Ultimate":null})(null===i||void 0===i?void 0:i.planAccesslevel),l=c&&h.Ll.includes(c)?c:null,s=null!==(o=null===l||void 0===l?void 0:l.toLowerCase())&&void 0!==o?o:"";return{selectedAccountPlan:a,selectedAccountPlanTier:l,currentPlanKey:s,planGridCols:null!==(r=C[s])&&void 0!==r?r:C.standard,planLanguage:null!==(t=null===i||void 0===i?void 0:i.planLanguage)&&void 0!==t?t:""}},[U,A,E]),$=(0,i.useMemo)(()=>({standard:r("createRelease:standardPlanBenefitsHeading","Benefits included in your plan:"),advanced:r("createRelease:advancedPlanBenefitsHeading","Benefits include all Standard and Advanced features:"),ultimate:r("createRelease:ultimatePlanBenefitsHeading","Benefits include all Standard, Advanced and Ultimate features:")}),[r]),D=(0,i.useMemo)(()=>{try{const e=JSON.parse(R),o=e[`${V}_${O||""}`.replace(/(.*)_$/g,"$1")]||null;return o?M?o.filter(e=>"standard"===V?"news release widget"!==e.trim().toLowerCase():"advanced"!==V&&"ultimate"!==V||"socialboost"!==e.trim().toLowerCase()):o:null}catch{return null}},[R,M,L,V,O]);(0,i.useEffect)(()=>{null!==f&&void 0!==f&&f.accountNumber&&T(e=>e!==f.accountNumber?f.accountNumber:e)},[null===f||void 0===f?void 0:f.accountNumber]);const{hasMultimedia:_}=(0,m.e)(E),H=(0,i.useMemo)(()=>{const e=A.get(E);return(null===e||void 0===e?void 0:e.accountName)||"N/A"},[A,E]),{setSubscription:G}=(0,s.G)((null===g||void 0===g?void 0:g.account_id)||""),I=(0,i.useCallback)(e=>{T(e.target.value)},[]);if((0,a.sv)(()=>{E&&G(E)},[E]),(0,i.useEffect)(()=>{null!==g&&void 0!==g&&g.account_id&&T(g.account_id)},[null===g||void 0===g?void 0:g.account_id]),y&&!f)return(0,v.jsx)("div",{className:"omc-p-4",children:(0,v.jsx)(u.A,{})});const Z=Boolean(j&&j.length>0);return f||B?(0,v.jsxs)("div",{className:"omc-bg-white omc-p-4 omc-m-4 omc-relative",children:[(0,v.jsxs)("div",{className:"omc-px-2 omc-py-0",children:[(0,v.jsxs)("section",{className:"omc-mb-4 omc-pb-4 omc-border-bottom",children:[(0,v.jsx)("div",{className:"omc-flex omc-justify-between omc-items-center omc-mb-4",children:f&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("h2",{className:"omc-text-[20px] omc-text-neutral-800 omc-leading-7 omc-font-bold omc-m-0",children:r("createRelease:yourSubscription","Your subscription")}),(0,v.jsxs)("p",{className:"omc-font-medium omc-text-lg omc-text-right omc-text-neutral-800",children:[(0,v.jsxs)("span",{children:[r("createRelease:dataCorrectAsOf","Data Correct as of ")," "]}),(0,v.jsxs)("span",{children:[r("dateTime:date",{date:f.jobRunDateUTC,formatParams:{...(0,l.VD)(b,"medium",null===g||void 0===g?void 0:g.bureau_name)}})," ",r("dateTime:time",{date:f.jobRunDateUTC,formatParams:{...(0,l.VD)(b,"medium",null===g||void 0===g?void 0:g.bureau_name)}})]})]})]})}),(0,v.jsxs)("div",{className:"omc-flex omc-flex-nowrap omc-items-center omc-gap-12 omc-overflow-hidden",children:[(0,v.jsx)("div",{className:"omc-shrink-0",children:(0,v.jsxs)("p",{className:"omc-text-[15px] omc-leading-7 omc-font-medium",children:[(0,v.jsxs)("span",{className:"omc-text-neutral-800",children:[r("createRelease:account","Account")," "]}),k.length<=1?(0,v.jsx)("span",{className:"omc-font-bold omc-whitespace-nowrap",children:H}):(0,v.jsx)("select",{className:"omc-text-[13px] omc-leading-5 omc-font-medium omc-bg-white omc-border omc-border-neutral-300 omc-rounded-md omc-px-2 omc-py-1 omc-min-w-[180px] omc-w-max",value:E,onChange:I,"aria-label":r("createRelease:selectAccountAriaLabel","Select account to view subscription details"),children:k.map(e=>(0,v.jsxs)("option",{value:e.accountNumber,children:[e.accountName,e.accountNumber===(null===g||void 0===g?void 0:g.account_id)?" (current login)":""]},e.accountNumber))})]})}),f&&(0,v.jsxs)("div",{className:"omc-flex omc-gap-12 omc-ml-12",children:[(0,v.jsx)("div",{className:"omc-shrink-0",children:(0,v.jsxs)("p",{className:"omc-text-[15px] omc-leading-7 omc-font-medium omc-whitespace-nowrap",children:[(0,v.jsxs)("span",{className:"omc-text-neutral-800",children:[r("createRelease:accountNumber","Account Number")," "]}),(0,v.jsxs)("span",{className:"omc-font-bold",children:["#",f.accountNumber||"N/A"]})]})}),(0,v.jsx)("div",{className:"omc-shrink-0",children:(0,v.jsxs)("p",{className:"omc-text-[15px] omc-leading-7 omc-font-medium omc-whitespace-nowrap",children:[(0,v.jsxs)("span",{className:"omc-text-neutral-800",children:[r("createRelease:contractStartDate","Contract Start Date")," "]}),(0,v.jsx)("span",{className:"omc-font-bold",children:r("dateTime:date",{date:(0,l.uJ)(f.startDate),formatParams:{...(0,l.VD)(b,"medium",null===g||void 0===g?void 0:g.bureau_name)}})})]})}),(0,v.jsx)("div",{className:"omc-shrink-0",children:(0,v.jsxs)("p",{className:"omc-text-[15px] omc-leading-7 omc-font-medium omc-whitespace-nowrap",children:[(0,v.jsxs)("span",{className:"omc-text-neutral-800",children:[r("createRelease:renewal","Renewal Date")," "]}),(0,v.jsx)("span",{className:"omc-font-bold",children:r("dateTime:date",{date:(0,l.uJ)(f.endDate),formatParams:{...(0,l.VD)(b,"medium",null===g||void 0===g?void 0:g.bureau_name)}})})]})})]})]})]}),B&&(0,v.jsxs)("section",{className:"omc-border-bottom","aria-labelledby":"your-plan-heading",children:[(0,v.jsxs)("div",{className:"omc-flex omc-items-center omc-gap-3 omc-mb-4","data-testid":"membership-plan-row",children:[(0,v.jsx)("h3",{id:"your-plan-heading",className:"omc-text-neutral-800 omc-text-2xl omc-font-medium omc-m-0",children:r("createRelease:yourPlan","Your plan")}),(0,v.jsxs)("div",{className:`omc-flex omc-items-center omc-gap-1 omc-border omc-rounded-md  omc-px-3 omc-py-0.5 omc-text-xs omc-font-semibold omc-uppercase omc-tracking-wide ${L&&null!==(o=N[L])&&void 0!==o?o:""}`,"data-testid":"membership-plan-badge",children:["Ultimate"===L&&(0,v.jsx)(x.Gn1,{name:"crown","aria-hidden":"true"}),(0,v.jsx)("div",{className:"omc-flex omc-items-center",children:L})]})]}),D&&(0,v.jsxs)("section",{className:"omc-mt-4 omc-mb-6","data-testid":"plan-benefits-section","aria-labelledby":"plan-benefits-heading",children:[(0,v.jsx)("h4",{id:"plan-benefits-heading",className:"omc-text-xl omc-font-medium omc-text-neutral-800 omc-mb-3",children:$[V]}),(0,v.jsxs)("div",{className:"omc-flex omc-flex-col md:omc-flex-row omc-gap-6 omc-items-start",children:[(0,v.jsx)("div",{className:`omc-grid ${F} omc-gap-3`,children:D.map((e,o)=>(0,v.jsxs)("div",{className:"omc-flex omc-items-center omc-gap-2",children:[(0,v.jsx)("span",{className:"omc-inline-flex omc-items-center omc-justify-center omc-w-5 omc-h-5 omc-rounded-full omc-bg-green-500 omc-flex-shrink-0",children:(0,v.jsx)(x.Gn1,{name:"circle-check",fill:"white","aria-hidden":"true"})}),(0,v.jsx)("span",{className:"omc-text-lg omc-font-medium omc-text-neutral-800 omc-leading-5",children:e})]},o))}),(0,v.jsx)("div",{id:"pendo-membership-banner","data-testid":"pendo-membership-banner",className:"omc-shrink-0 omc-items-center"})]})]})]}),(Z||P&&_)&&(0,v.jsxs)("section",{"aria-labelledby":"products-heading",className:"omc-mt-6",children:[(0,v.jsx)("div",{className:"omc-grid omc-grid-cols-1 md:omc-grid-cols-2 omc-gap-4",children:(0,v.jsx)("div",{children:(0,v.jsx)("h3",{id:"products-heading",className:"omc-text-lg omc-font-semibold",children:r("createRelease:productsIncluded","Products included in your subscription.")})})}),(0,v.jsx)(n.A,{hideViewButtons:!0,addTopMargin:!0,hideTooltip:!0,showOriginalUsage:!0})]}),P&&_&&(0,v.jsxs)("section",{"aria-labelledby":"multimedia-heading",className:"omc-mt-6",children:[(0,v.jsx)("h3",{id:"multimedia-heading",className:"omc-text-xl omc-font-semibold",children:r("createRelease:multimedia","Multimedia")}
372),(0,v.jsx)(d.A,{showToggle:!1,variant:"yourSubscription",accountNumber:E})]}),S&&S.length>0&&(0,v.jsxs)("section",{"aria-labelledby":"sbo-heading",className:"omc-mt-6",children:[(0,v.jsx)("h3",{id:"sbo-heading",className:"omc-text-xl omc-font-semibold",children:r("createRelease:socialBoostWithSpace","Social Boost")}),(0,v.jsx)(w,{product:S})]})]}),y&&(0,v.jsx)("div",{className:"omc-absolute omc-inset-0 omc-flex omc-items-center omc-justify-center omc-bg-white/60",children:(0,v.jsx)(u.A,{})})]}):(0,v.jsx)("div",{className:"omc-p-4 omc-bg-white omc-text-xl omc-text-neutral-500 omc-flex omc-justify-center omc-items-center omc-h-[calc(100vh-16rem)]",children:r("createRelease:noSubscriptionsFound","No subscriptions found.")})},A=()=>{const[e]=(0,p.B)();return(0,v.jsx)(y.A,{fallback:o=>(0,v.jsx)(j.A,{onRetry:o,errorHeading:e("general:errorFallbackHeading","Something went wrong on our end"),message:e("general:errorFallbackMessage","Sorry, something went wrong with displaying subscription details."),widgetHeading:e("createRelease:yourSubscription","Your subscription"),imageKey:"image-2",isCompleteOrderList:!0}),children:(0,v.jsx)(k,{})})}},99042(e,o,r){var t=r(44206),i=r(97840),a=r(97059),c=r(24567);e.exports=function(e,o,r){if(!c(r))return!1;var l=typeof o;return!!("number"==l?i(r)&&a(o,r.length):"string"==l&&o in r)&&t(r[o],e)}},86781(e,o,r){"use strict";var t=r(48738),i=r.n(t),a=r(9950),c=r(44089),l=r(44414);const s=a.forwardRef((e,o)=>{let{bsPrefix:r,className:t,as:a="div",...s}=e;const n=(0,c.oU)(r,"row"),d=(0,c.gy)(),m=(0,c.Jm)(),u=`${n}-cols`,p=[];return d.forEach(e=>{const o=s[e];let r;delete s[e],null!=o&&"object"===typeof o?({cols:r}=o):r=o;const t=e!==m?`-${e}`:"";null!=r&&p.push(`${u}${t}-${r}`)}),(0,l.jsx)(a,{ref:o,...s,className:i()(t,n,...p)})});s.displayName="Row";const n=s;r.d(o,["A",0,n])}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.