1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6678],{44716:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/subscriptions/subscription/[id]",function(){return t(46976)}])},10151:function(e,r,t){"use strict";t.d(r,{K:function(){return s}});var n=t(85893),s=function(e){var r,t=e.address,s=e.className;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("address",{className:"text-sm text-gray-800 ".concat(s),children:[t.name,(0,n.jsx)("br",{}),"email: ",t.contact_email,(0,n.jsx)("br",{}),"contact: ",t.phone_number,(0,n.jsx)("br",{}),t.line_1,(0,n.jsx)("br",{}),t.line_2&&(0,n.jsxs)(n.Fragment,{children:[t.line_2,(0,n.jsx)("br",{})]}),t.line_3&&(0,n.jsxs)(n.Fragment,{children:[t.line_3,(0,n.jsx)("br",{})]}),t.city&&(0,n.jsxs)(n.Fragment,{children:[t.city,(0,n.jsx)("br",{})]}),(0,n.jsx)("br",{}),t.region&&(0,n.jsxs)(n.Fragment,{children:[t.region,(0,n.jsx)("br",{})]}),t.code&&(0,n.jsxs)(n.Fragment,{children:[t.code,(0,n.jsx)("br",{})]}),null===(r=t.country)||void 0===r?void 0:r.name]})})}},16027:function(e,r,t){"use strict";t.d(r,{z:function(){return d}});var n=t(26042),s=t(69396),i=t(99534),c=t(85893),a=t(8035),o=t(41664),l=t.n(o),d=function(e){var r=e.buttonSize,t=void 0===r?"sm":r,o=e.buttonType,d=e.href,u=e.loading,x=(0,i.Z)(e,["buttonSize","buttonType","href","loading"]),b=function(){switch(t){case"sm":return"px-2.5 ".concat(u&&"pl-8"," pb-0 pt-1 text-xs xl:text-sm");case"md":return"px-4 ".concat(u&&"pl-8"," pb-1 pt-2 text-sm");case"lg":return"px-6 ".concat(u&&"pl-10"," pb-0.5 pt-1.5 text-base");case"xl":return"px-8 ".concat(u&&"pl-12"," pb-2 pt-3 text-lg");default:return""}},h=function(){switch(o){case"primary":return"rounded-lg border border-yellow-default focus:ring-green-default bg-yellow-default hover:bg-yellow-dark hover:border-yellow-dark font-bold header text-black";case"secondary":return"rounded-full border border-green-default text-white bg-green-default hover:bg-green-dark hover:border-green-dark hover:text-yellow-default focus:ring-green-default font-bold uppercase font-header tracking-wide";case"ghost":return"rounded-lg border border-gray-800 hover:border-green-default focus:ring-green-default capitalize font-header hover:text-green-default";case"white":return"rounded-lg border-2 border-white uppercase font-header tracking-wide text-white font-bold hover:bg-white hover:text-black";default:return"hover:underline focus:ring-green-default border-0 mb-0.5"}},f=function(){switch(t){case"sm":return"bottom-1";case"md":default:return"bottom-2";case"lg":return"bottom-4"}};return d?(0,c.jsx)(l(),{href:d,children:(0,c.jsxs)("a",{className:"\n transition-all ease-in inline-flex items-center font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:bg-gray-200 disabled:cursor-not-allowed disabled:text-gray-600\n ".concat(b()," ").concat(h()," ").concat(x.className," inline-flex justify-center items-center"),children:[u&&(0,c.jsx)("span",{className:"my-auto mr-2 absolute left-2 ".concat(f()),children:(0,c.jsx)(a.$,{size:4})}),x.children]})}):(0,c.jsxs)("button",(0,s.Z)((0,n.Z)({},x),{type:"button",className:"\n transition-all ease-in inline-flex items-center font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:bg-gray-200 disabled:cursor-not-allowed disabled:text-gray-600 relative\n ".concat(b()," ").concat(h()," ").concat(x.className," inline-flex justify-center items-center"),children:[u&&(0,c.jsx)("span",{className:"my-auto mr-2 absolute left-2 ".concat(f()),children:(0,c.jsx)(a.$,{size:4})}),x.children]}))}},8035:function(e,r,t){"use strict";t.d(r,{$:function(){return s}});var n=t(85893),s=function(e){var r=e.size,t=void 0===r?5:r,s=e.color;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("svg",{className:"animate-spin h-".concat(t," w-").concat(t," ").concat(s&&"text-".concat(s)," "),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})}},46976:function(e,r,t){"use strict";t.r(r),t.d(r,{SubscriptionObjectPage:function(){return g},default:function(){return m}});var n=t(85893),s=t(21960),i=t(10151),c=t(71673),a=t(41664),o=t.n(a),l=function(e){var r=e.title,t=e.children;return(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("dt",{className:"text-base text-black",children:r}),(0,n.jsx)("dd",{className:"bg-gray-50 rounded p-2 text-lg border",children:t})]})},d=function(e){var r=e.subscriptionObject;return(0,n.jsxs)("div",{className:"col-span-full 2xl:col-span-2",children:[(0,n.jsx)("span",{children:"Dispatches"}),(0,n.jsx)("ul",{className:"bg-gray-50 divide-y rounded",children:r.dispatches.map((function(e,r){return(0,n.jsx)(u,{dispatch:e,index:r},r)}))})]})},u=function(e){var r=e.dispatch,t=e.index;return(0,n.jsxs)("li",{className:"flex flex-row justify-between hover:bg-white hover:rounded border ",children:[(0,n.jsx)("div",{className:"py-4 pl-4",children:t+1}),(0,n.jsx)("div",{className:"py-4",children:(0,c.p6)(new Date(r.subscription_dispatch.created_at))}),(0,n.jsx)(o(),{href:"/admin/subscriptions/dispatch-event/".concat(r.subscription_dispatch.id),children:(0,n.jsx)("a",{className:"hover:underline py-4 pr-4",children:"View"})})]})},x=function(e){var r=e.subscriptionObject;return(0,n.jsx)("section",{className:"bg-white rounded my-4 p-4 shadow",children:(0,n.jsxs)("dl",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-1 xl:grid-cols-2 2xl:grid-cols-3 gap-8",children:[(0,n.jsx)(l,{title:"For Subscription",children:(0,n.jsx)(o(),{href:"/admin/subscriptions/".concat(r.subscription.id),children:(0,n.jsx)("a",{className:"hover:underline",children:r.subscription.title})})}),(0,n.jsx)(l,{title:"Recipient",children:r.recipient}),(0,n.jsx)(l,{title:"Created On",children:(0,c.p6)(new Date(r.created_at))}),(0,n.jsx)(l,{title:"Remaining Credits",children:r.remaining_credits}),(0,n.jsx)(l,{title:"Total Credits Bought",children:r.credits_aggregate.aggregate.count}),(0,n.jsx)(l,{title:"Address",children:r.address?(0,n.jsx)(i.K,{address:r.address}):"Not yet activated"}),(0,n.jsx)(l,{title:"Access Password",children:r.password}),(0,n.jsx)(d,{subscriptionObject:r})]})})},b=t(16027),h=t(8035),f=t(47708),p=t(11163),g=function(){var e=(0,p.useRouter)(),r=(0,c.t5)(e.query.id),t=(0,f.rJ6)({variables:{id:r},skip:!r}),i=t.data,a=t.loading,o=t.error,l=null===i||void 0===i?void 0:i.subscription_object_by_pk;return(0,n.jsx)(s.l,{page:"Subscription",children:(0,n.jsxs)("article",{className:"space-y-4",children:[(0,n.jsxs)("header",{className:"flex flex-row justify-between",children:[(0,n.jsx)("h1",{className:"header text-4xl",children:"Subscriber"}),(0,n.jsx)("section",{children:(0,n.jsx)(b.z,{buttonType:"secondary",buttonSize:"md",href:"/manage-subscription/".concat(null===l||void 0===l?void 0:l.short_id),children:"Customer Management Portal"})})]}),a||!i&&!o?(0,n.jsx)(h.$,{}):!i||o?(0,n.jsx)(n.Fragment,{children:"Could not find Subscription "}):(0,n.jsx)(x,{subscriptionObject:l})]})})},m=g},99534:function(e,r,t){"use strict";function n(e,r){if(null==e)return{};var t,n,s=function(e,r){if(null==e)return{};var t,n,s={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(s[t]=e[t]);return s}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(s[t]=e[t])}return s}t.d(r,{Z:function(){return n}})}},function(e){e.O(0,[1664,8585,1330,9189,1960,9774,2888,179],(function(){return r=44716,e(e.s=r);var r}));var r=e.O();_N_E=r}]); 2//# sourceMappingURL=[id]-46c4b059d5748145.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.