1(()=>{(function(){try{var D=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},R=new D.Error().stack;R&&(D._sentryDebugIds=D._sentryDebugIds||{},D._sentryDebugIds[R]="8f24cc08-1c4a-4b24-ac1a-6c08fe146afd",D._sentryDebugIdIdentifier="sentry-dbid-8f24cc08-1c4a-4b24-ac1a-6c08fe146afd")}catch(P){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[37817],{37817:((D,R,P)=>{P.d(R,{ye:()=>B,BT:()=>S,cL:()=>b,Uh:()=>y,Eo:()=>g,cS:()=>G});var O=P(25278),_=P(28876),v=P(21904),c=P(84657);const W={ERROR_IOS_RESTORE_FAILED:"restore_failed",ERROR_IOS_USER_CANCELED:"user_cancelled",ERROR_RESTORE_EMPTY:"restore_empty"},C="freePrice";var f;(function(i){i.IOS="FREETRIAL",i.ANDROID="Free"})(f||(f={}));var A;(function(i){i.Comma=",",i.Point=".",i.Space=" "})(A||(A={}));const F=i=>!!(i!=null&&i.period)&&parseInt(i.period.replace("P","").replace("D",""),10)>0,V=(i,r)=>{var o;return((o=i==null?void 0:i.freeTrialRelated)===null||o===void 0?void 0:o.triagedEligibilityStatus)===TriagedEligibilityStatus.ELIGIBLE&&F(r)},b=({products:i,store:r},o)=>i.find(e=>{var l,E,n,d,N,t,u,T,I;if(r==="AMAZON"&&e.productId===((l=o.amazonIAPCodes)===null||l===void 0?void 0:l[0])||r==="APPLE"&&e.productId===((E=o.iOSIAPCodes)===null||E===void 0?void 0:E[0])||r==="SAMSUNG"&&e.productId===((n=o.samsungIAPCodes)===null||n===void 0?void 0:n[0])||r==="VIZIO"&&e.productId===((d=o.vizioIAPCodes)===null||d===void 0?void 0:d[0]))return!0;if(r==="GOOGLE"){const s=(t=(N=e.subscriptionOfferDetails)===null||N===void 0?void 0:N[0])===null||t===void 0?void 0:t.basePlanId,a=(u
1=o.androidIapProductCodes)===null||u===void 0?void 0:u[0];if(a!=null&&a.basePlanId&&e.productId===(a==null?void 0:a.productId)&&s===(a==null?void 0:a.basePlanId)||s&&s===((T=o.androidIAPCodes)===null||T===void 0?void 0:T[0])||e.productId===((I=o.androidIAPCodes)===null||I===void 0?void 0:I[0]))return!0}return!1}),y=i=>{var r,o,e;let l=null;switch(i.platform){case"ios":{i.introductoryPricePaymentModeIOS===f.IOS&&(l=[{billingCycleCount:i.introductoryPriceNumberOfPeriodsIOS,billingPeriod:`P1${i.introductoryPriceSubscriptionPeriodIOS[0]}`,currencyCode:i.currencyCode,price:i.introductoryPricePaymentModeIOS===f.IOS?C:i.introductoryPrice},{billingCycleCount:i.subscriptionPeriodUnitIOS,billingPeriod:`P1${i.subscriptionPeriodUnitIOS[0]}`,currencyCode:i.currencyCode,price:i.localizedPrice}]);break}case"android":{const E=(r=i.subscriptionOfferDetails)===null||r===void 0?void 0:r.filter(n=>!!n.offerId);l=E!=null&&E.length?E[0].pricingPhases.pricingPhaseList.map(n=>{const{formattedPrice:d,priceCurrencyCode:N}=n,{billingCycleCount:t,billingPeriod:u}=U(n);return{billingCycleCount:t,billingPeriod:u,currencyCode:N,price:d===f.ANDROID?C:d}}):null;break}case"amazon":{const E=JSON.parse(i.originalJson);if(E.freeTrialPeriod){const n={Weekly:"P1W",BiWeekly:"P2W",Monthly:"P1M",BiMonthly:"P2M",Quarterly:"P4M",SemiAnnual:"P6M",SemiAnnually:"P6M",Annual:"P1Y",Annually:"P1Y"};l=[{price:C,currencyCode:i.currency,billingCycleCount:1,billingPeriod:n[E.freeTrialPeriod]},{price:i.localizedPrice,currencyCode:i.currency,billingPeriod:n[E.subscriptionPeriod],billingCycleCount:1}]}break}case v.Rq.SAMSUNG_IAP:{if(!(!((o=i==null?void 0:i.subscriptionInfo)===null||o===void 0)&&o.freeTrialDayCount))break;const E={M:"P1M",Y:"P1Y",W:"P1W"},n=(0,_.lK)({days:i.subscriptionInfo.freeTrialDayCount});l=[{price:C,currencyCode:i.currency,billingCycleCount:1,billingPeriod:n||""},{price:i.localizedPrice,currencyCode:i.currency,billingPeriod:E[i.subscriptionInfo.PaymentCyclePeriod]||"",billingCycleCount:((e=i==null?void 0:i.subscriptionInfo)===null||e===void 0?void 0:e.PaymentCycle)||1}]}case v.Rq.VIZIO_IAP:{if(!i||!(i!=null&&i.daysFreeToStart))break;const E=(0,_.lK)({days:i.daysFreeToStart});l=[{price:C,currencyCode:i.currency,billingCycleCount:1,billingPeriod:E||""},{price:i.localizedPrice,currencyCode:i.currency,billingPeriod:M(i.billingIntervalUnit,i.billingIntervalLength),billingCycleCount:1}]}default:break}return l},U=i=>{const r=i.billingPeriod.match(/P(\d+)(.)/),o=`P1${r==null?void 0:r[2]}`;return{billingCycleCount:Number(r==null?void 0:r[1])*i.billingCycleCount,billingPeriod:o}},M=(i,r)=>i==="months"?`P${r}M`:i==="days"?`P${r}D`:"",g=i=>!!i&&[c.uX.ACTIVE,c.uX.TRIAL_ACTIVE].includes(i),G=i=>i!=null&&i.pauseState?[c.WF.PAUSED,c.WF.PAUSE_REQUESTED,c.WF.RESUME_REQUESTED].includes(i==null?void 0:i.pauseState):!1,L=i=>(i==null?void 0:i.type)===PurchaseStrategyType.EXTERNALLY_ACQUIRED,Y=i=>!L(i)&&!(i!=null&&i.externalAuthProviderDetails),w=i=>{var r;return L(i)&&((r=i==null?void 0:i.externalAuthProviderDetails)===null||r===void 0?void 0:r.authProvider)===AuthenticationProviderNames.ADOBE_DCR},X=i=>L(i)&&!!(i!=null&&i.acquisitionLink),S=(i,r)=>i<r?O.LX.UPGRADE:i>r?O.LX.DOWNGRADE:O.LX.MANAGE,$=(i,r,o)=>{const e=i.find(E=>E.family===r);if(!e)return null;const l=S(e.activeRank,o);return{paymentProvider:e==null?void 0:e.paymentProviderType,action:l}},p=i=>{if(!i)return i;const r=I=>{const s=I.split(A.Space),a=I.split(A.Point),x=3,H=s.length>1,k=a.length>1;return H&&k?!1:H?s[1].length===x:k?a[1].length===x:!1},o=(I,s)=>I[0]===s?I:I[1]===s?`${I}0`:I[2]===s?`${I}00`:I,e=i.trim(),l=e.length,E=3,n=l-E,d=l>E,N=d?i.slice(0,n):void 0,t=d?i.slice(n):i,u=t.includes(A.Point),T=t.includes(A.Comma);return u&&T?"":u?o(i,A.Point):T?o(i,A.Comma):d?N?r(e)?`${i},00`:`${i}.00`:i:`${i}.00`};function B(i){const r=/^([^0-9]*?)([\d.,\s]*\d)([^0-9]*)$/,o=i.match(r);if(!o)throw new Error(`Invalid price format: ${i}`);let[,e,l,E]=o,n=p(l);if(!n)return"";const d=n.includes(","),N=n.includes(".");let t=".";d&&!N?t=",":d&&N&&(t=n.lastIndexOf(",")>n.lastIndexOf(".")?",":".");let u=n.replace(new RegExp(t===","?"\\.":",","g"),"").replace(/\s/g,"");u=u.replace(t,".");let T=parseFloat(u);if(isNaN(T))throw new Error(`Invalid number in price: ${i}`);let I=Math.ceil(T/12*100)/100,s;return I%1===0?s=String(I):s=I.toFixed(2).replace(/\.00$/,""),t===","&&(s=s.replace(".",",")),`${e}${s}${E}`}}),84657:((D,R,P)=>{P.d(R,{AV:()=>f,C:()=>X,MD:()=>l,Nt:()=>$,OI:()=>o,OT:()=>y,Rj:()=>_,Uz:()=>G,VZ:()=>b,Vq:()=>v,WF:()=>W,Xw:()=>B,__:()=>C,bK:()=>A,l$:()=>c,oL:()=>Y,oQ:()=>p,qU:()=>V,rY:()=>r,tK:()=>S,uX:()=>O,wZ:()=>g,xc:()=>U,xo:()=>M,y9:()=>e});var O;(function(n){n.ACTIVE="ACTIVE",n.INACTIVE="INACTIVE",n.TRIAL_ACTIVE="TRIAL_ACTIVE",n.EXPIRED="EXPIRED",n.CONFLICTS_WITH_LINKED_LICENCE="CONFLICTS_WITH_LINKED_LICENCE"})(O||(O={}));var _;(function(n){n.BUTTON="BUTTON",n.DISABLED="DISABLED",n.TEXT="TEXT_ONLY"})(_||(_={}));var v;(function(n){n.REFRESH_PAYMENT_DETAILS="REFRESH_PAYMENT_DETAILS",n.CONFIRMED_PAYMENT_REQUIRED="CONFIRMED_PAYMENT_REQUIRED"})(v||(v={}));var c;(function(n){n.UNKNOWN_RENEWING="UNKNOWN_RENEWING",n.AUTO_RENEWING="AUTO_RENEWING",n.NON_RENEWING="NON_RENEWING"})(c||(c={}));var W;(function(n){n.ALLOWED="ALLOWED",n.NOT_ALLOWED="NOT_ALLOWED",n.PAUSED="PAUSED",n.PAUSE_REQUESTED="PAUSE_REQUESTED",n.RESUME_REQUESTED="RESUME_REQUESTED"})(W||(W={}));var C;(function(n){n.SCHEDULED="SCHEDULED",n.STANDARD="STANDARD"})(C||(C={}));var f;(function(n){n.STANDARD="STANDARD",n.FREE="FREE"})(f||(f={}));var A;(function(n){n.SUBSCRIPTION="SUBSCRIPTION",n.FIXED_DATE="FIXED_DATE",n.PPV="PPV",n.EXTERNALLY_ACQUIRED="EXTERNALLY_ACQUIRED"})(A||(A={}));var F;(function(n){n.SMALLER="SMALLER",n.NORMAL="NORMAL",n.LARGER="LARGER"})(F||(F={}));var V;(function(n){n.DISPLAY="DISPLAY",n.HIDE="HIDE"})(V||(V={}));var b;(function(n){n.TEXT="TEXT",n.IMAGE="IMAGE"})(b||(b={}));var y;(function(n){n.ALLOW="ALLOW",n.DISALLOW="DISALLOW"})(y||(y={}));var U;(function(n){n.ENABLED="ENABLED",n.DISABLED="DISABLED",n.DRAFT="DRAFT"})(U||(U={}));var M;(function(n){n.PENDING_DOWNGRADE="PENDING_DOWNGRADE",n.PENDING_UPGRADE="PENDING_UPGRADE",n.PENDING_IMMEDIATE_TIER_CHANGE="PENDING_IMMEDIATE_TIER_CHANGE",n.BEING_SUPERSEDED_BY_TIER_CHANGE="BEING_SUPERSEDED_BY_TIER_CHANGE",n.IS_SUPERSEDED_BY_TIER_CHANGE="IS_SUPERSEDED_BY_TIER_CHANGE"})(M||(M={}));var g;(function(n){n.CENTRE="CENTRE",n.INLINE="INLINE"})(g||(g={}));var G;(function(n){n.TV="TV",n.MOBILE="MOBILE",n.TABLET="TABLET",n.CONSOLE="CONSOLE",n.PC="PC"})(G||(G={}));var L;(function(n){n.ANDROID="ANDROID"})(L||(L={}));var Y;(function(n){n.CONFIRM_PAYMENT="CONFIRM_PAYMENT"})(Y||(Y={}));var w;(function(n){n.OPT_OUT="OPT_OUT",n.OPT_IN="OPT_IN"})(w||(w={}));var X;(function(n){n.LEAVE="LEAVE",n.CONTINUE="CONTINUE"})(X||(X={}));var S;(function(n){n.OLD_PRICE_VERSION="OLD_PRICE_VERSION",n.MIGRATED_PRICE_VERSION="MIGRATED_PRICE_VERSION"})(S||(S={}));var $;(function(n){n.ACTIVE="ACTIVE",n.UPCOMING="UPCOMING",n.EXPIRED="EXPIRED"})($||($={}));var p;(function(n){n.PERCENTAGE="PERCENTAGE",n.AMOUNT="AMOUNT"})(p||(p={}));var B;(function(n){n.DISCOUNT_ALREADY_APPLIED="DISCOUNT_ALREADY_APPLIED",n.CAN_APPLY_DISCOUNT="CAN_APPLY_DISCOUNT",n.NOT_APPLICABLE="NOT_APPLICABLE"})(B||(B={}));var i;(function(n){n.CANCELLATION_DISCOUNT="CANCELLATION_DISCOUNT",n.PROMOTIONAL_DISCOUNT="PROMOTIONAL_DISCOUNT"})(i||(i={}));var r;(function(n){n.TAB="TAB",n.LIST="LIST"})(r||(r={}));var o;
1(function(n){n.LICENCE="LICENCE",n.CABLE_PROVIDER="CABLE_PROVIDER"})(o||(o={}));var e;(function(n){n.FULL="FULL",n.COMPACT="COMPACT"})(e||(e={}));var l;(function(n){n.OPEN="OPEN",n.CLOSED="CLOSED"})(l||(l={}));var E;(function(n){n.ELIGIBLE="ELIGIBLE",n.NOT_ELIGIBLE="NOT_ELIGIBLE"})(E||(E={}))})}]);})(); 2 3//# sourceMappingURL=37817.f859a285a0ff7f45595e.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.