PageSourceSearch

https://ireadify.com/_next/static/chunks/pages/admin/subscriptions-efac37d282602cb2.js

js ireadify.com collected 2026-09-28 12:27:18 UTC 28,664 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7850],{74801:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/subscriptions",function(){return s(17218)}])},75823:function(e,t,s){"use strict";s.d(t,{d:function(){return a}});var a="\n  mutation UpdateUserSubscription(\n    $input: UpdateUserSubscriptionInput!\n    $condition: ModelUserSubscriptionConditionInput\n  ) {\n    updateUserSubscription(input: $input, condition: $condition) {\n      id\n      email\n      subscriptionId\n      firstName\n      lastName\n      code\n      grade\n      classId\n      className\n      isActive\n      istrailPeriod\n      firstPaymentDone\n      subscriptionStartDate\n      nextBillingDate\n      createdAt\n      updatedAt\n      lastSummary\n      type\n      lastPaymentFailed\n    }\n  }\n"},13155:function(e){"use strict";e.exports={userRole:{admin:"owner",school:"school",teacher:"teacher"},isDeleted:{yes:1,no:0},bookType:{AUDIO:"AUDIO",EPUB:"EPUB",READALOUD:"READALOUD"},assignmentProgress:{notStarted:"NOT_STARTED",started:"STARTED",inProgress:"IN_PROGRESS",completed:"COMPLETED",pastDue:"PAST_DUE"},assignmentCompletedMinutes:15,subscriptionType:{paypal:"PAYPAL",authorizeNet:"AUTHORIZENET"},region:{region1:"Asia",region2:"Africa",region3:"North America",region4:"Caribbean",region5:"Europe",region6:"Other"},genre:{genre1:"Fiction",genre2:"Non-Fiction"},topic:{account:"How to Log-in to your iReadify account?",payments:"Subscription & payment",general:"General questions"},ireader:{url:"https://read.ireadify.com/ltigateway.htm",consumerKey:"bd2e37cdc25c42a0cc8397951afc8cf1",secretKey:"770a8908cbd043bdcb4a4e6aff6c75de",lisPersonContactEmailPrimary:"[email protected]"}}},17218:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return b}});var a=s(47568),i=s(70655),n=s(85893),r=s(67294),l=s(43133),c=s(58197),d=s(30381),o=s.n(d),x=s(80958),p=s(11163),h=s(9198),f=s.n(h),m=(s(18698),s(10552)),g=s(44541),u=s(75823),w=function(e){var t=e.singleData,s=e.setShowSubscriptionDetails,l=e.setEditSubscriptionStatus,c=(0,p.useRouter)();console.log("singleData",t);var d=o()().startOf("month").format("YYYY-MM-DD");(d=new Date(d)).setHours(0,0,0,0);var x=(0,r.useState)(null!=t.nextBillingDate?new Date(t.nextBillingDate):d),h=x[0],w=x[1],b=(0,r.useState)(null!=t.subscriptionStartDate?new Date(t.subscriptionStartDate):new Date),j=b[0],N=b[1],y=(0,r.useState)(null!=t.type?t.type:"SELECT"),k=y[0],v=y[1],S=(0,r.useState)(t.isActive),D=S[0],A=S[1],M=(0,r.useState)(t.istrailPeriod),P=M[0],E=M[1],Y=(0,r.useState)(t.firstPaymentDone),C=Y[0],I=Y[1];function T(){return(T=(0,a.Z)((function(){var e,a;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),e=(new Date).toISOString(),h.toISOString()>=e?[4,m.b.graphql((0,g.wT)(u.d,{input:{isActive:D,id:t.id,nextBillingDate:h,type:k,subscriptionStartDate:j,firstPaymentDone:C,istrailPeriod:P}}))]:[3,2];case 1:return i.sent(),alert("Subscription Updated Successfully"),s(!1),setTimeout((function(){c.reload()}),500),[3,3];case 2:alert("Please select a greater date"),i.label=3;case 3:return[3,5];case 4:return a=i.sent(),console.log(a),[3,5];case 5:return[2]}}
1))}))).apply(this,arguments)}var O=function(){!function(){T.apply(this,arguments)}()};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("table",{className:"w-full",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{})}),t.isActive?(0,n.jsxs)("tbody",{children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Subscription Id:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:t.subscriptionId})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Email:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:t.email})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Payment Method:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsxs)("select",{onChange:function(e){v(e.target.value)},defaultValue:t.type,name:"",id:"",className:"text-small2 font-light bg-gray-100 text-gray-600 font-serif tracking-wide leading-8",children:[(0,n.jsx)("option",{value:"PAYPAL",children:"PAYPAL"}),(0,n.jsx)("option",{value:"AUTHORIZENET",children:"AUTHORIZENET"})]})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Subscription Id:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:t.subscriptionId})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Status:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsxs)("select",{onChange:function(e){A(e.target.value)},defaultValue:t.isActive,name:"",id:"",className:"text-small2 font-light bg-gray-100 text-gray-600 font-serif tracking-wide leading-8",children:[(0,n.jsx)("option",{value:"true",children:"Active"}),(0,n.jsx)("option",{value:"false",children:"Inactive"})]})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Trial Period :"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsxs)("select",{onChange:function(e){E(e.target.value)},defaultValue:t.istrailPeriod,name:"",id:"",className:"text-small2 font-light bg-gray-100 text-gray-600 font-serif tracking-wide leading-8",children:[(0,n.jsx)("option",{value:"true",children:"True"}),(0,n.jsx)("option",{value:"false",children:"False"})]})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Start Date"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)(f(),{className:" inline-flex justify-center text-left rounded-md border border-gray-300 shadow-sm px-2 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-blue-800",selected:j,onChange:function(e){return N(e)}})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Next Billing Date"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)(f(),{className:" inline-flex justify-center text-left rounded-md border border-gray-300 shadow-sm px-2 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-blue-800",selected:h,onChange:function(e){return w(e)},minDate:new Date})})]})]}):(0,n.jsxs)("tbody",{children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Email:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:t.email})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Payment Method:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsxs)("select",{onChange:function(e){v(e.target.value)},defaultValue:t.type,name:"",id:"",className:"text-small2 font-light bg-gray-100 text-gray-600 font-serif tracking-wide leading-8",children:[(0,n.jsx)("option",{value:"PAYPAL",children:"PAYPAL"}),(0,n.jsx)("option",{value:"AUTHORIZENET",children:"AUTHORIZENET"})]})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Subscription Id:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:null===t||void 0===t?void 0:t.subscriptionId})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Status:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsxs)("select",{onChange:function(e){A(e.target.value)},defaultValue:t.isActive,name:"",id:"",className:"text-small2 font-light bg-gray-100 text-gray-600 font-serif tracking-wide leading-8",children:[(0,n.jsx)("option",{value:"true",children:"Active"}),(0,n.jsx)("option",{value:"false",children:"Inactive"})]})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"First payment done:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsxs)("select",{onChange:function(e){I(e.target.value)},defaultValue:t.firstPaymentDone,name:"",id:"",className:"text-small2 font-light bg-gray-100 text-gray-600 font-serif tracking-wide leading-8",children:[(0,n.jsx)("option",{value:"true",children:"True"}),(0,n.jsx)("option",{value:"false",children:"False"})]})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Trial Period:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsxs)("select",{onChange:function(e){E(e.target.value)},defaultValue:t.istrailPeriod,name:"",id:"",className:"text-small2 font-light bg-gray-100 text-gray-600 font-serif tracking-wide leading-8",children:[(0,n.jsx)("option",{value:"true",children:"True"}),(0,n.jsx)("option",{value:"false",children:"False"})]})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Start Date"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)(f(),{className:" inline-flex justify-center text-left rounded-md border border-gray-300 shadow-sm px-2 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-blue-800",selected:j,onChange:function(e){return N(e)}})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Next Billing Date"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)(f(),{className:" inline-flex justify-center text-left rounded-md border border-gray-300 shadow-sm px-2 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-blue-800",selected:h,onChange:function(e){return w(e)},minDate:new Date})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Cancelled Date"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:o()(t.updatedAt).format("MMMM Do YYYY")})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Last Date"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:o()(t.nextBillingDate).format("MMMM Do YYYY")})})]})]})]}),(0,n.jsxs)("div",{className:"flex justify-center items-center",children:[(0,n.jsx)("button",{onClick:function(){O()},className:"flex items-center justify-center bg-green-500 hover:bg-green-600 text-white font-semibold py-2 px-4 roun
1ded",title:"Save",children:" Save"}),(0,n.jsx)("button",{onClick:function(){l(!1)},className:"ml-6 flex items-center justify-center bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded",title:"Save",children:" Cancel"})]})]})},b=function(){var e=(0,p.useRouter)().query.keyword,t=(0,r.useState)(),s=t[0],d=t[1],h=(0,r.useState)(!1),f=h[0],m=h[1],g=(0,r.useState)(),u=g[0],b=g[1],j=(0,r.useState)(!0),N=j[0],y=j[1],k=(0,r.useState)(""),v=k[0],S=k[1],D=(0,r.useState)(!1),A=D[0],M=D[1],P=(0,r.useState)(!1),E=P[0],Y=P[1];(0,r.useEffect)((function(){e&&S(e),C(e)}),[e]);var C=function(){var e=(0,a.Z)((function(e){var t,s;return(0,i.__generator)(this,(function(a){switch(a.label){case 0:y(!0),M(!!e),a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,(0,c.wS)(e||null)];case 2:return t=a.sent(),d(t),[3,5];case 3:return s=a.sent(),console.error(s),d([]),[3,5];case 4:return y(!1),[7];case 5:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=(0,a.Z)((function(){var e,t;return(0,i.__generator)(this,(function(s){return C(v.trim()),e="?keyword="+v,t=window.location.protocol+"//"+window.location.host+window.location.pathname+e,window.history.pushState({path:t},"",t),[2]}))}));return function(){return e.apply(this,arguments)}}(),T=function(){var e=(0,a.Z)((function(e){return(0,i.__generator)(this,(function(t){return m(!0),b(e),[2]}))}));return function(t){return e.apply(this,arguments)}}();return(0,n.jsx)(l.Z,{children:(0,n.jsxs)("div",{className:"flex flex-1 flex-col md:flex-row lg:flex-row mx-2",children:[(0,n.jsxs)("div",{className:"mb-2 border-solid border-gray-300 rounded border shadow-sm w-full",children:[(0,n.jsx)("div",{className:"p-4",children:(0,n.jsxs)("div",{className:"bg-white shadow p-4 flex",children:[(0,n.jsx)("span",{className:"w-auto flex justify-end items-center text-gray-500 p-2",children:(0,n.jsx)("i",{className:"fa fa-search"})}),(0,n.jsx)("input",{className:"w-full rounded p-2 font-sans search-box mr-1",name:"keyword",value:v,onChange:function(e){S(e.target.value)},type:"text",placeholder:"Search by Email or Subscription Id"}),""===v?(0,n.jsx)("button",{disabled:!0,className:"bg-indigo-400 whitespace-nowrap inline-flex font-medium text-white rounded p-2 pl-4 pr-4",children:"Search"}):(0,n.jsxs)("div",{className:"flex flex-1",children:[(0,n.jsx)("button",{onClick:I,className:"whitespace-nowrap inline-flex bg-gradient-to-r from-purple-bright to-purple-bright font-medium text-white hover:from-purple-light hover:to-blue-bright rounded p-2 pl-4 pr-4 mr-1",children:"Search"}),A?(0,n.jsx)("button",{onClick:function(){S(""),M(!1),C(null);var e=window.location.protocol+"//"+window.location.host+window.location.pathname;window.history.pushState({path:e},"",e)},className:"bg-red-500 text-white py-2 px-4 hover:bg-red-400 focus:outline-none flex items-center justify-center",children:"Cancel"}):null]})]})}),(0,n.jsx)("div",{className:"bg-purple-bright text-white text-bold px-2 py-3 border-solid border-gray-200 border-b",children:"List Subscription"}),(0,n.jsx)("div",{className:"p-3",children:N?(0,n.jsx)(x.Z,{}):(0,n.jsxs)("table",{className:"w-full rounded",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"border px-4 py-2",children:"Email"}),(0,n.jsx)("th",{className:"border px-4 py-2",children:"Subscription Id"}),(0,n.jsx)("th",{className:"border px-4 py-2",children:"Payment Method"}),(0,n.jsx)("th",{className:"border px-4 py-2",children:"Subscription Status"}),(0,n.jsx)("th",{className:"border px-4 py-2",children:"Created At"}),(0,n.jsx)("th",{className:"border px-4 py-2",children:"Actions"})]})}),(0,n.jsx)("tbody",{children:s.map((function(e){return(0,n.jsxs)("tr",{className:"text-center",children:[(0,n.jsx)("td",{className:"border px-4 py-2",children:e.email}),(0,n.jsx)("td",{className:"border px-4 py-2",children:e.subscriptionId}),(0,n.jsx)("td",{className:"border px-4 py-2",children:e.type}),(0,n.jsx)("td",{className:"border px-4 py-2",children:e.isActive?(0,n.jsx)("svg",{className:"text-green-500 block m-auto w-8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}):(0,n.jsx)("svg",{className:"text-red-500 block m-auto w-8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),(0,n.jsx)("td",{className:"border px-4 py-2",children:o()(e.createdAt).format("MMMM Do YYYY, h:mm:ss a")}),(0,n.jsx)("td",{className:"border px-4 py-2 ",children:(0,n.jsx)("div",{className:"flex flex-1 justify-center",children:(0,n.jsx)("span",{title:"View",className:"text-red-500 block w-4 cursor-pointer mx-2",onClick:function(){return T(e)},children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})})})})]},e.id)}))})]})})]}
1),f?(0,n.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,n.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,n.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,n.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,n.jsxs)("div",{className:"inline-block content-center align-bottom items-center justify-center bg-gray-100 rounded-md text-center overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle w-4/6",role:"dialog","aria-modal":"true","aria-labelledby":"modal-headline",children:[(0,n.jsx)("div",{className:"modal-close self-center text-center absolute p-1 w-0 h-5 top-0 right-0 cursor-pointer flex flex-col items-center mt-4 mr-4 text-gray-500 text-base z-50 order-none flex-grow-0",children:(0,n.jsx)("svg",{onClick:function(){m(!1),Y(!1)},className:"fill-current text-gray",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",children:(0,n.jsx)("path",{d:"M14.53 4.53l-1.06-1.06L9 7.94 4.53 3.47 3.47 4.53 7.94 9l-4.47 4.47 1.06 1.06L9 10.06l4.47 4.47 1.06-1.06L10.06 9z"})})}),(0,n.jsxs)("div",{className:"overflow-x-auto mt-6 mb-10",children:[E?(0,n.jsx)(w,{singleData:u,setEditSubscriptionStatus:Y,setShowSubscriptionDetails:m}):(0,n.jsxs)("table",{className:"w-full",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{})}),u.isActive?(0,n.jsxs)("tbody",{children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Subscription Id:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:u.subscriptionId})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Email:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:u.email})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Payment Method:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:u.type})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Subscription Id:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:u.subscriptionId})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Status:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:"Active"})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Trail Peroid:"})}),u.istrailPeriod?(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:"Active"})}):(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:"Inactive"})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Start Date"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:o()(u.subscriptionStartDate).format("MMMM Do YYYY")})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Next Billing Date"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:o()(u.nextBillingDate).format("MMMM Do YYYY")})})]})]}):(0,n.jsxs)("tbody",{children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Subscription Id:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:u.subscriptionId})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Email:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:u.email})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Payment Method:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:u.type})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Subscription Id:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:u.subscriptionId})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Status:"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:"Inactive"})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Cancelled Date"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:o()(u.updatedAt).format("MMMM Do YYYY")})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"text-right pb-2 pr-4 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-semibold text-black font-serif tracking-wide leading-8",children:"Last Date"})}),(0,n.jsx)("td",{className:"text-left pb-2 whitespace-no-wrap",children:(0,n.jsx)("p",{className:"text-small2 font-light text-gray-600 font-serif tracking-wide leading-8",children:o()(u.nextBillingDate).format("MMMM Do YYYY")})})]})]})]}),E?null:(0,n.jsx)("div",{className:"flex justify-center items-center",children:(0,n.jsx)("button",{onClick:function(){Y(!0)},className:"flex items-center justify-center bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 roun
1ded",title:"Edit",children:" Edit"})})]})]})]})}):null]})})}},99534:function(e,t,s){"use strict";function a(e,t){if(null==e)return{};var s,a,i=function(e,t){if(null==e)return{};var s,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)s=n[a],t.indexOf(s)>=0||(i[s]=e[s]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)s=n[a],t.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(e,s)&&(i[s]=e[s])}return i}s.d(t,{Z:function(){return a}})}},function(e){e.O(0,[1664,3654,1644,4544,3133,8197,9774,2888,179],(function(){return t=74801,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.