PageSourceSearch

https://dailydot.com/_next/static/chunks/2617-9cf3f77187ce29af.js

js dailydot.com collected 2026-10-01 08:18:13 UTC 11,811 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2617],{7126:(e,n,a)=>{"use strict";a.d(n,{A:()=>r});let r=(e,n,a)=>{let r=0,t=parseFloat(n),c=parseFloat(a);if(0===t&&0===c)return e.toString();t>0&&(r=e-t),c>0&&(r=e*(1-c/100));let l=Math.round(1e10*r)/1e10;return Math.round(l)!==l?l>1?(Math.floor(100*l)/100).toFixed(2):(Math.round(100*l)/100).toFixed(2):l>0?l.toString():"0"}},8349:(e,n,a)=>{"use strict";a.d(n,{A:()=>r});let r=(e,n,a)=>{var r;let t="annual"===n||"one-time"===n?e.annualPrice:e.monthlyPrice;return{item_id:(null==e||null==(r=e.id)?void 0:r.toString())||null,item_name:null==e?void 0:e.name,item_variant:n,currency:a,price:parseFloat(t),quantity:1}}},12365:(e,n,a)=>{"use strict";a.d(n,{A:()=>D});var r=a(37876),t=a(14232),c=a(71004);let l=e=>{var n;return null!=(n=e.coupon)&&!!n.nextPrice&&!!e.coupon.nextPrice};var s=a(37062),i=a(7126),o=a(89099),u=a(33939),d=a(63037),p=a(49995),h=a(91423),m=a(49085),_=a(34801),x=a(37036),g=a(20884),v=a(57779),y=a(96010),N=a(96327),b=a.n(N);a(51260);let j=e=>{var n,a,s,i,o;let{showEditLink:d=!0,variant:N="default",order:j,publisherCurrency:D="usd",future:f,price:A,status:S}=e,{userData:w}=(0,u.u)(),{paymentRetried:M}=w,P=(0,_.A)(D),k=j?new Date(j.expirationDate):null,W=!!((null==f?void 0:f.schedule)&&(null==f?void 0:f.salePrice)!==null&&(null==f?void 0:f.salePrice)!==void 0),F=W&&(null==f?void 0:f.startDate)&&P?new Date(1e3*f.startDate).toLocaleDateString(P):null,C=!!((null==f?void 0:f.schedule)&&(null==f?void 0:f.priceIncrease)&&(null==f?void 0:f.newPrice)!==null&&(null==f?void 0:f.newPrice)!==void 0),B=C&&(null==f?void 0:f.startDate)&&P?new Date(1e3*f.startDate).toLocaleDateString(P):null,E=S===x._.PastDue&&!M,[I,T]=(0,t.useState)(!1);(0,t.useEffect)(()=>{T(!0),setTimeout(()=>{T(!1)},1e3)},[]);let L=(0,t.useRef)([,,,,,].fill(null).map(()=>(0,h.A)())).current.map(e=>(0,r.jsxs)("div",{className:b().Orderwrapper,children:[(0,r.jsx)(y.A,{height:12,width:75}),(0,r.jsx)(y.A,{height:20,width:150}),(0,r.jsx)(y.A,{height:1})]},e));return(0,r.jsxs)("div",{className:(0,p.A)({[b().wrapper]:"default"===N,[b().modifyWrapper]:"modify"===N}),children:[I?L:null,j?(0,r.jsxs)(r.Fragment,{children:[E?(0,r.jsxs)("div",{className:b().pastDueMsg,children:[(0,r.jsx)("span",{className:b().icon,children:(0,r.jsx)(v.A,{})}),(0,r.jsxs)("p",{className:b().message,children:["Your subscription is past due. Please ",(0,r.jsx)(g.A,{href:"/account#payment",className:b().link,children:"update your payment method"})," to keep your subscription active and avoid cancellation."]}),(0,r.jsx)("span",{className:b().icon,children:(0,r.jsx)(v.A,{})})]}):null,(0,r.jsxs)("div",{className:b().orderWrapper,children:[(0,r.jsx)("h3",{className:b().orderHeading,children:"Current Plan"}),(0,r.jsx)("p",{className:E?b().pastDueData:b().orderData,children:j.product.displayName})]}),k&&f?(0,r.jsxs)(r.Fragment,{children:[!f.cancelOnExpiration&&(!f.schedule||W||C)&&P?(0,r.jsxs)("div",{className:b().orderWrapper,children:[(0,r.jsx)("h4",{className:b().orderHeading,children:"Renews on"}),(0,r.jsx)("p",{className:E?b().pastDueData:b().orderData,children:k?k.toLocaleDateString(P):null})]}):null,f.schedule&&!W&&!C&&P?(0,r.jsxs)("div",{className:b().orderWrapper,children:[(0,r.jsx)("h4",{className:b().orderHeading,children:"Ends on"}),(0,r.jsx)("p",{className:E?b().pastDueData:b().orderData,children:k?k.toLocaleDateString(P):null})]}):null,f.cancelOnExpiration&&P?(0,r.jsxs)("div",{className:b().orderWrapper,children:[(0,r.jsx)("h4",{className:b().orderHeading,children:"Cancels on"}),(0,r.jsx)("p",{className:E?b().pastDueData:b().orderData,children:k?k.toLocaleDateString(P):null})]}):null]}):null,(0,r.jsxs)("div",{className:b().orderWrapper,children:[(0,r.jsx)("h4",{className:b().orderHeading,children:"Price"}),j.complimentary?(0,r.jsx)("p",{children:"Your subscription is complimentary. Please contact customer service for assistance with your subscription."}):null,j.gifted?(0,r.jsxs)("p",{children:["Gift code applied - normally ",A]}):(0,r.jsx)("p",{className:E?b().pastDueData:b().orderData,children:A}),F?(0,r.jsx)("p",{className:b().renewalNotice,children:"On ".concat(F,", your ").concat(f.product.displayName," subscription will renew ").concat((0,c.vy)(f.interval)," at ").concat((0,c.Nx)(D,(0,c.$g)(f.product,f.interval)),".")}):null,B?(0,r.jsx)("p",{className:b().renewalNotice,children:"On ".concat(B,", your ").concat(f.product.displayName," subscription will renew ").concat((0,c.vy)(f.interval)," at ").concat((0,c.Nx)(D,"".concat(f.newPrice,"/").concat((0,c.oA)(f.interval))),".")}):null]}),(0,m.A)(j)||l(j)?(0,r.jsxs)("div",{className:b().orderWrapper,children:[(0,r.jsx)("h4",{className:b().orderHeading,children:"Active discount"}),(0,r.jsx)("p",{className:E?b().pastDueData:b().orderData,children:j.coupon.description})]}):null,f?(0,r.jsxs)(r.Fragment,{children:[!f.schedule||F||C?null:(0,r.jsxs)("div",{className:b().orderWrapper,children:[(0,r.jsx)("h4",{className:b().orderHeading,children:"After this date, your subscription will be"}),(0,r.jsxs)("p",{className:E?b().pastDueData:b().orderData,children:["".concat(f.product.displayName,", "),f.gifted?"free for a ".concat((0,c.oA)(f.interval),", then "):"","".concat((0,c.TT)(f.interval)," at ").concat((null==(n=f.product)?void 0:n.chooseYourOwnPricing)&&"number"==typeof f.nextAmount?(0,c.Nx)(D,"".concat(f.nextAmount,"/").concat((0,c.oA)(f.interval))):(0,c.Nx)(D,(0,c.$g)(f.product,f.interval))),"."]})]}),f.method?(0,r.jsxs)("div",{className:b().orderWrapper,children:[(0,r.jsx)("h4",{className:b().orderHeading,children:"Payment Method"}),(0,r.jsxs)("p",{className:E?b().pastDueData:b().orderData,children:["Your subscription is billed to your\xa0",(0,r.jsx)("span",{className:b().paymentInfo,children:(0,c._M)(f.method)}),"."]})]}):null,f.method?null:(0,r.jsx)("div",{className:b().orderWrapper,children:(0,r.jsxs)("p",{className:b().orderData,children:[(0,r.jsx)(g.A,{href:"/account#payment",children:"Add a payment method"})," to ensure your subscription does not lapse."]})})]}):null,d?(0,r.jsxs)("div",{className:b().orderWrapper,children:[f&&f.cancelOnExpiration?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:"Changed your mind about canceling?"}),(0,r.jsx)("p",{children:(0,r.jsx)(g.A,{href:"/cancel?undo=true",className:b().utilityBtn,children:"Undo your cancelation"})})]}):null,f&&!f.cancelOnExpiration?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.A,{href:(null==j||null==(s=j.product)||null==(a=s.productGroup)?void 0:a.name)?"/products/".concat(null==j||null==(o=j.product)||null==(i=o.productGroup)?void 0:i.name):"/products",className:b().utilityBtn,children:"Modify your subscription"}),(0,r.jsx)(g.A,{href:"/cancel",className:b().cancelBtn,children:"Cancel your subscription"})]}):null]}):null]}):(0,r.jsxs)("div",{className:b().orderWrapper,children:[(0,r.jsx)("h4",{className:b().orderData,children:"Thanks for registering!"}),d?(0,r.jsx)("div",{className:b().linkWrapper,children:(0,r.jsx)(g.A,{href:"/products",className:b().paymentBtn,children:"Subscribe Now"})}):null]})]})},D=e=>{let{showEditLink:n=!0,variant:a="default",setParentOrder:p=null}=e,{query:{siteSlug:h}}=(0,o.useRouter)(),{userData:{customerId:m,status:_}}=(0,u.u)(),{publisherCurrency:x}=(0,d.Xe)(),[g,v]=(0,t.useState)(null),[y,N]=(0,t.useState)(null),[b,D]=(0,t.useState)(null),f=(0,t.useCallback)(async()=>m?(await fetch((0,s.c)("order",{customerId:m}),{method:"GET",headers:{"Cache-Control":"no-cache"}})).json():null,[m]),A=(0,t.useCallback)(async()=>
1{if(g){let{stripeId:e}=g;return(await fetch((0,s.c)("subscriptionSchedule",{stripeSubscriptionId:e,siteSlug:h}),{method:"GET",headers:{"Cache-Control":"no-cache"}})).json()}return null},[g,h]);return(0,t.useEffect)(()=>{f().then(e=>{if(e&&"id"in e){var n;v(e),"function"==typeof p&&p(e),(null==(n=e.product)?void 0:n.chooseYourOwnPricing)||N(l(e)?"".concat((0,c.Nx)(x,(0,i.A)(e.product.monthlyPrice,e.coupon.discountAmount,e.coupon.discountPercent)),"/first month"):(0,c.Nx)(x,(0,c.Ds)(e)))}})},[f,p,N,x,m]),(0,t.useEffect)(()=>{A().then(e=>{if(e){var n;D(e),null!==e.salePrice&&void 0!==e.salePrice&&g&&N((0,c.Nx)(x,"".concat(e.salePrice,"/").concat((0,c.oA)(g.interval)))),(null==g||null==(n=g.product)?void 0:n.chooseYourOwnPricing)&&"number"==typeof e.currentAmount&&N((0,c.Nx)(x,"".concat(e.currentAmount,"/").concat((0,c.oA)(g.interval))))}})},[A,g,x]),(0,r.jsx)(j,{variant:a,order:g,publisherCurrency:x,future:b,showEditLink:n,price:y,status:_})}},18401:(e,n,a)=>{"use strict";function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=e.toLowerCase(),a="$";return e?a="gbp"===n?"\xa3":"$":a}a.d(n,{A:()=>r})},34801:(e,n,a)=>{"use strict";function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return null;let n=e.toLowerCase(),a="en-US";return a="gbp"===n?"en-GB":"en-US"}a.d(n,{A:()=>r})},49085:(e,n,a)=>{"use strict";a.d(n,{A:()=>r});let r=e=>!!e.couponApplied&&("forever"===e.coupon.duration||"repeating"===e.coupon.duration&&(e=>{let n=new Date(Date.now()),a=new Date(e),r=(n.getFullYear()-a.getFullYear())*12;return r-=a.getMonth(),(r+=n.getMonth())>0?r:0})(e.purchaseDate)<=e.coupon.durationMonths)},71004:(e,n,a)=>{"use strict";a.d(n,{nn:()=>d,vy:()=>o,$g:()=>u,SE:()=>m,Nx:()=>_,Ds:()=>h,TT:()=>i,_M:()=>p,oA:()=>s});var r=a(49085),t=a(7126),c=a(67685),l=a(18401);let s=e=>e===c.IX.Annual?"year":"month",i=e=>e===c.IX.Annual?"renewing annually":e===c.IX.Monthly?"renewing monthly":"",o=e=>e===c.IX.Annual?"annually":e===c.IX.Monthly?"monthly":"",u=(e,n)=>n===c.IX.Annual?"".concat(e.annualPrice,"/year"):n===c.IX.Monthly?"".concat(e.monthlyPrice,"/month"):"",d=e=>({amex:"American Express",diners:"Diners Club",discover:"Discover",jcb:"JCB",mastercard:"MasterCard",unionpay:"UnionPay",visa:"VISA",unknown:"unknown"})[e],p=e=>{if(!e)return"";switch(e.type){case"card":return"".concat(d(e.brand)||e.brand," card ending in ").concat(e.last4);case"us_bank_account":return"".concat(e.bankName||"bank"," account ending in ").concat(e.last4);case"link":return e.email?"Stripe Link account (".concat(e.email,")"):"Stripe Link account";default:return"saved payment method"}},h=e=>{let n=(e=>{let n="annual"===e.interval?e.product.annualPrice:e.product.monthlyPrice;return(0,r.A)(e)?(0,t.A)(n,e.coupon.discountAmount,e.coupon.discountPercent):n})(e);return"".concat(n,"/").concat(s(e.interval))},m=e=>"number"==typeof e?e%1!=0?e.toFixed(2):String(e):String(e).replace(/^\d+(\.\d+)?/,e=>{let n=parseFloat(e);return n%1!=0?n.toFixed(2):e}),_=(e,n)=>{if(!n)return null;let a=(0,l.A)(e);return"".concat(a).concat(m(n))}},96327:e=>{e.exports={wrapper:"SubscriptionManager_wrapper__KfHGl",fadeIn:"SubscriptionManager_fadeIn__Rds1n",label:"SubscriptionManager_label__y35us",labelText:"SubscriptionManager_labelText__Nqt1d",headerLabel:"SubscriptionManager_headerLabel__QTgNZ",checkbox:"SubscriptionManager_checkbox__PTD5B",successMessage:"SubscriptionManager_successMessage__Mtz_c",item:"SubscriptionManager_item__FQ3_U",orderWrapper:"SubscriptionManager_orderWrapper__9xNwv",orderTitle:"SubscriptionManager_orderTitle__NcGy4",orderHeading:"SubscriptionManager_orderHeading__GeK_w",orderData:"SubscriptionManager_orderData__pk0DP",pastDueData:"SubscriptionManager_pastDueData___2KoA SubscriptionManager_orderData__pk0DP",link:"SubscriptionManager_link__K35dS",linkWrapper:"SubscriptionManager_linkWrapper__lBfyh",utilityBtn:"SubscriptionManager_utilityBtn__a11va",paymentBtn:"SubscriptionManager_paymentBtn__7xh_s",cancelBtn:"SubscriptionManager_cancelBtn__2o1vh",modifyWrapper:"SubscriptionManager_modifyWrapper__c3zh7",renewalNotice:"SubscriptionManager_renewalNotice__vFoB1",paymentInfo:"SubscriptionManager_paymentInfo__BW3eH",pastDueMsg:"SubscriptionManager_pastDueMsg__wFNjL",message:"SubscriptionManager_message__B4_hF",icon:"SubscriptionManager_icon__wZTAO"}}}]);

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.