PageSourceSearch

https://magicmind.com/a/account/_next/static/chunks/913.a519de3ccf180242.js

js magicmind.com collected 2026-09-24 19:02:33 UTC 1,916 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[913],{913:(t,e,i)=>{i.r(e),i.d(e,{NextDateModal:()=>b});var r=i(77571),a=i(24163),o=i(53953),n=i(8413),s=i(94843),d=i(46567),c=i(47719),l=i(27344),u=i(28402),p=i(55575);function b({open:t,onClose:e,subscription:i}){let[b,m]=(0,a.useState)(void 0),{updateNextBillingDate:f,isUpdating:x}=(0,l.J)(),D=(0,s.M)(),{showToast:v}=(0,d.d)(),{t:g}=(0,u.B)(),k=i?.createdAt?new Date(i.createdAt):void 0,{currentAnchor:S}=(0,n.Y)({subscriptionId:i?.id});(0,a.useEffect)(()=>{t&&i?.nextBillingDate&&m(new Date(i.nextBillingDate)),t||m(void 0)},[t,i]);let h=!!b&&!!i?.nextBillingDate&&b?.toISOString().split("T").at(0)===new Date(i.nextBillingDate).toISOString().split("T").at(0),w=async()=>{if(b)try{let{ok:t,message:r}=await f({subscriptionId:i.id,date:b.toISOString()});v({title:t?g("storefront.subscription.edit.interval.success.toast"):g("storefront.subscription.edit.interval.failure.toast"),description:t?void 0:r||g("storefront.subscription.edit.interval.failure.toast.description"),type:t?"success":"error"}),t&&e()}catch(t){v({title:g("storefront.subscription.edit.interval.failure.toast"),description:g("storefront.subscription.edit.interval.failure.toast.description"),type:"error"})}};return(0,r.jsx)(c.aF,{"data-skio-name":"next-date-modal",isDismissable:!0,open:t,onOpenChange:e,children:(0,r.jsx)(p.V,{title:g("storefront.subscription.edit.interval.next.title"),subscriptionId:i?.id,buttons:[{text:g("common.cancel"),onClick:e,color:"support",isDisabled:x,dataSkioName:"next-date-modal-cancel-button"},{text:g("common.confirm"),onClick:w,color:"primary",isLoading:x,isDisabled:!b||h,dataSkioName:"next-date-modal-confirm-button"}],children:(0,r.jsx)(o.$,{date:b,setDate:m,classNames:{calendar:"border-cpv3 border-border-primary p-6 rounded-border-radius",grid:"max-w-[350px] mx-auto"},maxDateLimit:D,subscriptionCreatedAt:k,anchor:S})})})}}}]);

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.