1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="07100c0a-de6c-4e4b-8e89-d53731521924",e._sentryDebugIdIdentifier="sentry-dbid-07100c0a-de6c-4e4b-8e89-d53731521924")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"2b92991d99f92e33e079a8241d5dc3965c249983"},(self.webpackChunkkudos_portal=self.webpackChunkkudos_portal||[]).push([[663],{5088:(e,t,n)=>{n.d(t,{eK:()=>m,vv:()=>A,z2:()=>b,cP:()=>i.cP,g:()=>$,En:()=>k,B_:()=>w,WY:()=>h,lk:()=>x,$C:()=>f,B5:()=>y,FL:()=>i.FL,Ao:()=>i.Ao,zl:()=>T,Dq:()=>I,Bn:()=>i.Bn,NY:()=>i.NY,n5:()=>R,Lj:()=>v,DP:()=>S,Jw:()=>C});var o,r=n(40442),i=n(70045),a=n(79390),c=n(47246),l=n(15809),s=n(56274),d=n(14041);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(null,arguments)}const p=function(e){return d.createElement("svg",u({width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=d.createElement("path",{d:"M19.904 8.869a1.968 1.968 0 0 1 1.346 1.882v3.846c0 1.02-.76 1.885-1.777 1.968-.304.025-.61.046-.915.065v2.774l-2.693-2.692c-1.215 0-2.418-.05-3.607-.147a1.898 1.898 0 0 1-.74-.217m8.386-7.48a1.907 1.907 0 0 0-.427-.084 43.651 43.651 0 0 0-7.223 0c-1.015.084-1.773.948-1.773 1.967v3.846a1.98 1.98 0 0 0 1.036 1.751m8.387-7.48v-1.68c0-1.456-1.034-2.717-2.477-2.904a43.486 43.486 0 0 0-5.6-.36c-1.898 0-3.767.122-5.6.36C4.784 4.47 3.75 5.732 3.75 7.187v5.587c0 1.455 1.034 2.716 2.477 2.904.517.067 1.038.125 1.561.174v4.225l3.73-3.729",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};var g=n(7867);const m=[{id:"submitted",label:"Request submitted",icon:l.A,iconSize:24},{id:"contacting",label:"Contacting merchant",icon:s.A,iconSize:24},{id:"negotiating",label:"Negotiating",icon:p,iconSize:24},{id:"completed",label:"Complete",icon:g.A,iconSize:15}],b=e=>"retention"===e?"Completed: No retention offer available":"lowering"===e?"Completed: Discount not applicable, you have the best deal":"Completed: Cancellation unsuccessful",h=(e,t,n)=>{switch(e){case a.Mu1.PendingBusinessHours:return"Queued for next business day";case a.Mu1.Pending:return"retention"===t?"Queued for retention negotiation":"cancelling"===t?"Queued for cancellation":"Queued for negotiation";case a.Mu1.Picked:case a.Mu1.InProgress:return"retention"===t?"Negotiating retention offer":"cancelling"===t?"Cancellation in progress":"Lowering bill in progress";case a.Mu1.Authenticating:return"Authenticating...";case a.Mu1.FailedRetryable:{const e=null==n?void 0:n.status;return e===a.kx2.ActionRequiredIncorrectAccountInfo?"Missing account info":e===a.kx2.ActionRequiredUnableToVerify?"Unable to verify":"Action required"}case a.Mu1.Completed:case a.Mu1.Failed:case a.Mu1.Cancelled:return(0,i.cP)({status:e,negotiationStatus:n},t);default:return"Processing..."}},f=e=>{switch(e){case a.Mu1.PendingBusinessHours:case a.Mu1.Pending:return"submitted";case a.Mu1.Authenticating:case a.Mu1.InProgress:case a.Mu1.FailedRetryable:return"contacting";case a.Mu1.Completed:case a.Mu1.Failed:case a.Mu1.Cancelled:return"completed";default:return"submitted"}},y=e=>m.findIndex(t=>t.id===e),x=(e,t)=>{const n="retention"===e?"Negotiating retention offer":"lowering"===e?"Negotiating your bill":"Cancelling subscription";switch(t){case"submitted":return"Request submitted";case"contacting":return"retention"===e?"Contacting issuer":"Contacting merchant";case"negotiating":return n;case"completed":return"Complete";default:return"Processing"}},w=(e,t,n)=>{const o="retention"===e?"negotiating your retention offer":"lowering"===e?"negotiating your bill":"cancelling your subscription";switch(t){case"contacting":case"negotiating":return`We're currently ${o} with ${n}`;case"completed":return null;default:return`Processing your request with ${n}`}},$=e=>"status"in e?e.status:e.workflow.status,v=e=>"completedAt"in e,A=(e,t)=>
1e.toLocaleString("en-US",{style:"currency",currency:t}),k=e=>{var t;return null!==(t=["1st","1st","2nd","3rd"][e])&&void 0!==t?t:`${e}th`},C=e=>{var t;return(0,c.Ub)(e.status,null===(t=e.config)||void 0===t?void 0:t.isAvailableToStart)},R=e=>{var t;return(0,c.Qc)(e.status,null===(t=e.config)||void 0===t?void 0:t.isAvailableToStart)},S=e=>!!e.succeeded&&(0,i.W)(e.workflow.negotiationStatus),T=e=>(0,i.C)(e.workflow),I=(e,t)=>{const n=t.workflow.negotiationStatus;switch(e){case"success":if(S(t)&&(null==n?void 0:n.oneTimeCredit)){return`Success: You received a credit worth ${r.A.format(n.oneTimeCredit.amount,{minimumFractionDigits:0,maximumFractionDigits:2})} total`}if((null==n?void 0:n.originalRate)&&(null==n?void 0:n.newRate)){const e=n.originalRate.amount-n.newRate.amount;if(e>0){const n=r.A.format(e,{minimumFractionDigits:2,maximumFractionDigits:2});return"retention"===t.actionType?`Success: Annual fee reduced by ${n}`:`Success: Bill lowered by ${n}/mo`}}return"retention"===t.actionType?"Success: Retention offer secured":"lowering"===t.actionType?"Success: Bill lowered":"Success: Subscription cancelled";case"no-discount":return"retention"===t.actionType?"Completed: No retention offer available":"lowering"===t.actionType?"Completed: Best deal already":"Completed: Cancellation unsuccessful";case"interrupted":return"Call interrupted, available to retry";case"cancelled":return"You cancelled this request"}}},43136:(e,t,n)=>{n.d(t,{B3:()=>d,BO:()=>O,Bs:()=>s,Cg:()=>k,GQ:()=>p,Gi:()=>J,Hk:()=>X,Ih:()=>u,JK:()=>T,L9:()=>N,Lm:()=>U,NE:()=>R,NQ:()=>A,Ne:()=>w,OT:()=>Y,R6:()=>F,R8:()=>L,SY:()=>Q,Si:()=>H,TE:()=>E,TR:()=>_,VS:()=>G,XD:()=>W,Z1:()=>y,ZU:()=>C,_H:()=>$,__:()=>D,bz:()=>m,d7:()=>x,h$:()=>M,jO:()=>q,js:()=>te,kI:()=>V,mo:()=>P,oH:()=>h,oh:()=>I,sm:()=>g,v2:()=>S,vS:()=>Z,y0:()=>v,yD:()=>b,yh:()=>K,yi:()=>z,yn:()=>ee,z2:()=>f,zF:()=>j});var o=n(47950),r=n(50228),i=n(97303),a=n(12243),c=n(40242),l=n(76990);const s=(0,l.Ay)(o.I1)` 2 width: 100%; 3 min-height: 0; 4 display: flex; 5 flex-direction: column; 6 overflow: scroll; 7 8 @media ${c.z4.maxTablet} { 9 height: auto; 10 max-height: none; 11 flex: 1 1 auto; 12 overflow-y: auto; 13 -webkit-overflow-scrolling: touch; 14 } 15`,d=(0,l.Ay)(o.Ye)` 16 padding: 20px 24px; 17 width: 100%; 18 justify-content: center; 19 align-items: center; 20 flex-shrink: 0; 21 22 @media ${c.z4.maxTablet} { 23 padding: 0 0 16px; 24 } 25`,u=(0,l.Ay)(o.Ye)` 26 padding: 20px 24px; 27 width: 100%; 28 justify-content: center; 29 align-items: center; 30 flex-shrink: 0; 31 position: relative; 32 33 @media ${c.z4.maxTablet} { 34 padding: 0 0 16px; 35 position: static; 36 } 37`,p=(0,l.Ay)(o.Ye)` 38 padding: 20px 24px; 39 align-items: center; 40 flex-shrink: 0; 41 position: relative; 42`,g=l.Ay.button` 43 background: none; 44 border: none; 45 cursor: pointer; 46 padding: 4px; 47 display: flex; 48 align-items: center; 49 position: absolute; 50 left: 24px; 51 z-index: 1; 52`,m=(0,l.Ay)(a.Zb)` 53 width: 100%; 54 text-align: center; 55`,b=l.Ay.div` 56 flex: 1; 57 min-width: 0; 58 text-align: center; 59`,h=l.Ay.button` 60 position: absolute; 61 right: 8px; 62 top: 50%; 63 transform: translateY(-50%); 64 display: flex; 65 align-items: center; 66 justify-content: center; 67 width: 40px; 68 height: 40px; 69 padding: 0; 70 border: none; 71 background: transparent; 72 cursor: pointer; 73 border-radius: 8px; 74 flex-shrink: 0; 75 76 &:hover { 77 background: ${({theme:e})=>e.colors.bg.secondary}; 78 } 79 80 @media ${c.z4.maxTablet} { 81 display: none; 82 } 83`,f=l.Ay.div` 84 width: 100%; 85 height: 4px; 86 background: ${({theme:e})=>e.colors.bg.secondary}; 87 flex-shrink: 0; 88`,y=l.Ay.div` 89 width: ${({$progress:e})=>e}%; 90 height: 100%; 91 background: ${({theme:e})=>e.colors.bg.accent.yellow}; 92 transition: width 0.3s ease; 93`,x=l.Ay.div` 94 width: 100%; 95 flex-shrink: 0; 96 display: flex; 97 flex-direction: column; 98 background: ${({theme:e})=>e.colors.bg.accent.purple}; 99`,w=l.Ay.div` 100 height: 3px; 101 width: 80%; 102 background: ${({theme:e})=>e.colors.bg.accent.yellow}; 103 flex-shrink: 0; 104`,$=(0,l.Ay)(o.Ye)` 105 padding: 8px 16px; 106 gap: 12px; 107 align-items: center; 108 width: 100%; 109`,v=(0,l.Ay)(a.gJ)` 110 margin: 0; 111 color: ${({theme:e})=>e.colors.text.inverse}; 112 flex: 1; 113 line-height: 1.35; 114`,A=(0,l.Ay)(o.I1)` 115 flex: 1; 116 overflow-x: hidden; 117 overflow-y: auto; 118 min-height: 0; 119 padding: 16px 16px 24px; 120 gap: 16px; 121 -webkit-overflow-scrolling: touch; 122 overscroll-behavior: contain; 123 touch-action: pan-y; 124 125 @media ${c.z4.maxTablet} { 126 padding: 0 0 24px; 127 overflow: visible; 128 flex: none; 129 } 130`,k=(0,l.Ay)(o.I1)` 131 align-items: center; 132 gap: 8px; 133 flex-shrink: 0; 134`,C=(0,l.Ay)(o.I1)` 135 width: 100%; 136 height: 208px; 137 border-radius: 12px; 138 background: ${({theme:e})=>e.colors.bg.accent.purpleSecondary}; 139 align-items: center; 140 justify-content: center; 141 flex-shrink: 0; 142 position: relative; 143`,R=l.Ay.div` 144 position: relative; 145`,S=(0,l.Ay)(i.A)` 146 position: absolute; 147 left: 50%; 148 top: 50%; 149 border: 1px solid ${({theme:e})=>e.colors.icon.active}; 150 border-radius: 50%; 151 152 ${({$topLeft:e,$bottomRight:t})=>e?l.AH` 153 top: 20px; 154 left: 20px; 155 `:t?l.AH` 156 bottom: 24px; 157 right: 20px; 158 `:l.AH` 159 top: 50%; 160 left: 50%; 161 transform: translate(-50%, -50%); 162 `} 163`,T=(0,l.Ay)(o.I1)` 164 padding: 20px 24px; 165 gap: 16px; 166 background-color: ${({theme:e})=>e.colors.bg.primary}; 167 box-shadow: ${({theme:e})=>e.shadows.elevation.z2}; 168 border-radius: 10px; 169 border: 1px solid ${({theme:e})=>e.colors.border.primary}; 170 171 @media ${c.z4.maxTablet} { 172 margin: 0; 173 } 174`,I=(0,l.Ay)(o.Ye)` 175 border-radius: 10px; 176 overflow: hidden; 177 padding: 16px; 178 background-color: ${({theme:e})=>e.colors.bg.secondary}; 179 flex-shrink: 0; 180`,D=(0,l.Ay)(o.I1)` 181 flex: 1; 182 align-items: center; 183 gap: 4px; 184 185 &:not(:last-child) { 186 border-right: 1px solid ${({theme:e})=>e.colors.border.primary}; 187 } 188`,M=(0,l.Ay)(o.Ye)` 189 align-items: center; 190 justify-content: space-between; 191 padding: 0 0 8px 0; 192`,z=(0,l.Ay)(o.I1)` 193 align-items: center; 194 flex: 0 0 auto; 195`,F=l.Ay.div` 196 width: ${40}px; 197 height: ${40}px; 198 border-radius: 50%; 199 display: flex; 200 align-items: center; 201 justify-content: center; 202 background: ${({theme:e,$isActive:t,$isCompleted:n,$isError:o,$isUpcoming:r})=>
202o||t||n?e.colors.bg.accent.purple:r?e.colors.bg.accent.purpleSecondary:e.colors.bg.primary}; 203 ${({$isError:e,$isActive:t,$isCompleted:n,$isUpcoming:o,theme:r})=>!e&&!t&&!n&&!o&&l.AH` 204 border: 1px solid ${r.colors.border.primary}; 205 `}; 206 transition: background 0.6s ease; 207`,B=l.i7` 208 0% { background-position: 200% center; } 209 100% { background-position: -200% center; } 210`,Y=l.Ay.div` 211 flex: 1; 212 height: 8px; 213 margin: 0 4px; 214 border-radius: 4px; 215 overflow: hidden; 216 position: relative; 217 background: ${({theme:e,$isFuture:t})=>t?e.colors.primitives.gray400:e.colors.primitives.purple400}; 218 transition: background 0.6s ease; 219 220 ${({$isCompleted:e,theme:t})=>e&&l.AH` 221 background: ${t.colors.bg.accent.purple}; 222 `} 223 224 ${({$fillPercent:e,$isCompleted:t,theme:n,$animate:o})=>!t&&null!=e&&e>0&&l.AH` 225 &::after { 226 content: ''; 227 position: absolute; 228 top: 0; 229 left: 0; 230 height: 100%; 231 width: ${e}%; 232 border-radius: 4px; 233 transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); 234 background: ${n.colors.bg.accent.purple}; 235 ${o&&l.AH` 236 background: linear-gradient( 237 90deg, 238 ${n.colors.bg.accent.purple} 0%, 239 ${n.colors.bg.accent.purple}cc 40%, 240 ${n.colors.bg.accent.purple}80 50%, 241 ${n.colors.bg.accent.purple}cc 60%, 242 ${n.colors.bg.accent.purple} 100% 243 ); 244 background-size: 200% 100%; 245 animation: ${B} 2.5s ease-in-out infinite; 246 `} 247 } 248 `} 249`,P=(0,l.Ay)(o.I1)` 250 background: ${({theme:e})=>e.colors.bg.secondary}; 251 border-radius: 8px; 252 padding: 16px; 253 gap: 10px; 254`,q=(0,l.Ay)(r.A)` 255 width: 100%; 256`,H=l.Ay.div` 257 position: relative; 258 width: 100%; 259 border-radius: 8px; 260 overflow: hidden; 261 background: ${({theme:e})=>e.colors.primitives.purple300}; 262 flex-shrink: 0; 263 padding: 24px; 264 265 ${({$compact:e})=>e&&l.AH` 266 height: 100%; 267 padding: 0; 268 border-radius: 0; 269 background: transparent; 270 `} 271`,N=l.Ay.video` 272 width: 100%; 273 display: block; 274 border-radius: 8px; 275 276 ${({$compact:e})=>e&&l.AH` 277 height: 100%; 278 border-radius: 0; 279 object-fit: cover; 280 `} 281`,j=l.Ay.div.attrs({role:"button",tabIndex:0})` 282 position: absolute; 283 inset: 0; 284 display: flex; 285 align-items: center; 286 justify-content: center; 287 cursor: pointer; 288`,_=l.Ay.div` 289 display: flex; 290 align-items: center; 291 gap: 12px; 292 padding: 14px 32px; 293 border-radius: 8px; 294 background: ${({theme:e})=>e.colors.bg.dark}; 295 font-size: 18px; 296 font-weight: 600; 297 color: ${({theme:e})=>e.colors.text.inverse}; 298 pointer-events: none; 299`,E=l.Ay.div` 300 position: fixed; 301 top: 0; 302 left: 0; 303 width: 100vw; 304 height: 100vh; 305 pointer-events: none; 306 z-index: 9999; 307`,L=(0,l.Ay)(o.I1)` 308 padding: 16px 24px; 309 gap: 12px; 310 flex-shrink: 0; 311 border-top: 1px solid ${({theme:e})=>e.colors.border.primary}; 312 background: ${({theme:e})=>e.colors.bg.primary}; 313 314 @media ${c.z4.maxTablet} { 315 padding: 16px; 316 padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); 317 touch-action: none; 318 } 319`,O=(0,l.Ay)(o.I1)` 320 align-items: center; 321 gap: 8px; 322`,W=l.Ay.div` 323 display: flex; 324 flex-direction: column; 325 width: 100%; 326`,U=l.Ay.div` 327 background: ${({theme:e})=>e.colors.bg.accent.purple}; 328 padding: 8px 16px; 329 border-radius: 12px 12px 0 0; 330`,Q=(0,l.Ay)(a.a6)` 331 margin: 0; 332 color: ${({theme:e})=>e.colors.text.inverse}; 333 text-align: center; 334`,J=(0,l.Ay)(o.I1)` 335 padding: 24px; 336 background: ${({theme:e})=>e.colors.bg.accent.purpleTertiary}; 337 gap: 12px; 338 border-radius: 0 0 12px 12px; 339 340 @media ${c.z4.maxTablet} { 341 padding: 16px; 342 } 343`,K=(0,l.Ay)(o.I1)` 344 padding: 24px; 345 background: ${({theme:e})=>e.colors.bg.secondary}; 346 border-radius: 12px; 347 gap: 12px; 348 @media ${c.z4.maxTablet} { 349 padding: 12px; 350 } 351`,V=l.Ay.button` 352 background: none; 353 border: none; 354 padding: 4px 8px; 355 align-self: center; 356 font: inherit; 357 cursor: ${({$enabled:e})=>e?"pointer":"not-allowed"}; 358 color: ${({theme:e,$enabled:t})=>t?e.colors.text.danger:e.colors.text.tertiary}; 359 360 &:hover { 361 ${({$enabled:e})=>e&&l.AH` 362 text-decoration: underline; 363 `} 364 } 365`,Z=l.Ay.div` 366 width: 100%; 367 height: 1px; 368 background: ${({theme:e})=>e.colors.border.primary}; 369`,G=l.Ay.button` 370 background: none; 371 border: none; 372 padding: 0; 373 color: ${({theme:e})=>e.colors.text.accent.purple}; 374 text-decoration: none; 375 cursor: pointer; 376 font: inherit;
377 align-self: flex-start; 378 gap: 8px; 379 display: flex; 380 align-items: center; 381 382 &:hover { 383 text-decoration: underline; 384 } 385`,X=l.Ay.button` 386 background: none; 387 border: none; 388 padding: 0; 389 color: ${({theme:e})=>e.colors.text.accent.purple}; 390 cursor: pointer; 391 font: inherit; 392 align-self: center; 393`,ee=(0,l.Ay)(a.gJ)` 394 color: ${({theme:e})=>e.colors.text.danger}; 395`,te=(0,l.Ay)(o.Ye)` 396 gap: 12px; 397 padding: 24px; 398 background-color: ${({theme:e})=>e.colors.bg.secondary}; 399 border-radius: 10px; 400 align-items: center; 401`},70045:(e,t,n)=>{n.d(t,{Ao:()=>c,Bn:()=>s,C:()=>p,FL:()=>l,FU:()=>g,NY:()=>d,W:()=>u,cP:()=>m});var o=n(40442),r=n(79390);const i=e=>"retention"===e,a=e=>"lowering"===e,c=(e,t)=>{const n=i(t)?"negotiated a retention offer":a(t)?"lowered your bill":"cancelled your subscription";switch(e){case"success":return`We successfully ${n}!`;case"no-discount":return i(t)?"No retention offer available right now":"You already have the best deal available";case"interrupted":return"Call interrupted, available to retry";case"cancelled":return"You cancelled this request"}},l=(e,t,n)=>{const o=i(t)?"negotiate a retention offer with":a(t)?"lower your":"cancel your";if(i(t))switch(e){case"success":return`Kudos successfully negotiated a retention offer with ${n}!`;case"no-discount":return`${n} did not offer a retention deal at this time.`;case"interrupted":return`Our agents called ${n} but the call was interrupted`;case"cancelled":return`You cancelled the request to ${o} ${n}`}const r=a(t)?"bill":"subscription";switch(e){case"success":return`Kudos successfully ${a(t)?"lowered":"cancelled"} your ${n} ${r}!`;case"no-discount":return`It looks like you have a great deal at ${n} already!`;case"interrupted":return`Our agents called ${n} but the call was interrupted`;case"cancelled":return`You cancelled the request to ${a(t)?"lower":"cancel"} your ${n} ${r}`}},s=(e,t,n)=>{if(i(t))switch(e){case"no-discount":return`Our agents have completed trying to negotiate a retention offer with ${n}, but no offer was extended at this time. You can try again later.`;case"interrupted":return`It looks like the call was interrupted. Would you like us to contact ${n} again and retry?`;case"cancelled":return`We paused negotiating with ${n} because you requested to cancel this process. Don't worry, you can retry when you want to.`;default:return null}const o=a(t)?"lower":"cancel",r=a(t)?"bill":"subscription";switch(e){case"no-discount":return`Our agents have completed trying to ${o} your ${r}, but it looks like there were no additional discounts. This usually means that you already have a great deal compared to other people!`;case"interrupted":return"It looks like the call was interrupted. Would you like us to contact them again and retry?";case"cancelled":return`We paused trying to ${o} your ${n} ${r} because you requested to cancel this process. Don't worry, you can retry when you want to.`;default:return null}},d=(e,t)=>"success"===e?"2 hrs":"no-discount"===e&&t?`30 min across ${t} ${1===t?"call":"calls"}`:"10 min",u=e=>{if(!(null==e?void 0:e.oneTimeCredit))return!1;const{originalRate:t,newRate:n}=e;return!t||!n||t.amount===n.amount},p=e=>{const{status:t,negotiationStatus:n}=e;if(t===r.Mu1.Cancelled)return"cancelled";const o=null==n?void 0:n.status;if(o===r.kx2.ActionRequiredUnableToVerify||o===r.kx2.ActionRequiredIncorrectAccountInfo)return"interrupted";if(t===r.Mu1.FailedRetryable)return"interrupted";if(t===r.Mu1.Completed&&!o)return"success";if(o===r.kx2.BetterPrice||o===r.kx2.BestDeal){if(o===r.kx2.BestDeal){const{originalRate:e,newRate:t,oneTimeCredit:o}=null!=n?n:{};if(!(o||e&&t&&e.amount!==t.amount))return"no-discount"}return"success"}return"no-discount"},g=e=>{var t;if("success"!==p(e))return!1;const{originalRate:n,newRate:o}=null!==(t=e.negotiationStatus)&&void 0!==t?t:{};return!(!n||!o)&&n.amount-o.amount>0},m=(e,t)=>{const{status:n,negotiationStatus:c}=e,l=i(t),s=a(t);if(n===r.Mu1.Cancelled)return"You cancelled this request";if(n===r.Mu1.FailedRetryable)return"Call interrupted, available to retry";const d=null==c?void 0:c.status;if(d===r.kx2.BetterPrice||d===r.kx2.BestDeal||n===r.Mu1.Completed&&!d){if(l){if(u(c)){return`Success: Retention credit of ${o.A.format(c.oneTimeCredit.amount,{minimumFractionDigits:0,maximumFractionDigits:2})} secured`}if((null==c?void 0:c.originalRate)&&(null==c?void 0:c.newRate)){const e=c.originalRate.amount-c.newRate.amount;if(e>0){return`Success: Annual fee reduced by ${o.A.format(e,{minimumFractionDigits:2,maximumFractionDigits:2})}`}}return"Success: Retention offer secured"}if(s){if(u(c)){return`Success: Credit of ${o.A.format(c.oneTimeCredit.amount,{minimumFractionDigits:0,maximumFractionDigits:2})} applied`}if((null==c?void 0:c.originalRate)&&(null==c?void 0:c.newRate)){const e=c.originalRate.amount-c.newRate.amount;if(e>0){return`Success: Bill lowered by ${o.A.format(e,{minimumFractionDigits:2,maximumFractionDigits:2})}/mo`}}return"Completed: Best deal already"}return"Success: Subscription cancelled"}return l?"Completed: No retention offer available":s?"Completed: Best deal already":"Completed: Cancellation unsuccessful"}}}]); 402//# sourceMappingURL=663.3b7aa350703a423d7261.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.