1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3569],{12193:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>S});var t=n(42969),a=n(63857),i=n(43081),l=n.n(i),o=n(88992),s=n(49995),c=n(98775),d=n(64927),u=n(53552),m=n(77400),p=n(81626),h=n(85977),f=n(14232),b=n(37876);let g=function(e){var r=e.className,n=e.options,t=e.onChange,a=e.value,i=(0,f.useId)();return(0,b.jsx)("div",{className:(0,s.A)("flex flex-col gap-2",r),children:n.map(function(e){var r=(0,h.e)(function(){return"string"==typeof e?{label:e,value:e}:e}),n=r.label,l=r.value;return(0,b.jsxs)("label",{className:"flex gap-2 items-center",children:[(0,b.jsx)("input",{type:"radio",value:l,checked:l===a,onChange:function(e){null==t||t(e.target.value)}}),(0,b.jsx)("span",{children:n})]},i+l)})})};var x=n(40097),y=n(87988),v=n(70421),j=n(32885);function w(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function N(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?w(Object(n),!0).forEach(function(r){(0,t.A)(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var k={title:"Paperless Post - Subscription Update Request Form",description:"",url:"".concat((0,m.A)(),"/subscription/update"),canonicalUrl:"".concat((0,m.A)(),"/subscription/update")},O=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,A=[{label:"Downgrade my subscription",value:"downgrade"},{label:"Cancel my subscription",value:"cancel"},{label:"Terminate my subscription and revert to paying per event with Coins as soon as possible",value:"end-and-revert"}],P=function(){var e,r,n,t,i=(0,o.mN)({defaultValues:{name:"",email:"",action:void 0,plan:void 0,additionalInfo:""}}),m=i.control,p=i.register,h=i.handleSubmit,f=i.formState,w=i.watch,P=(0,x.n)({mutationFn:function(e){return(0,a.A)(l().mark(function r(){var n,t,a;return l().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n=A.find(function(r){return r.value===e.action})){r.next=3;break}throw Error("Invalid action");case 3:if(!("downgrade"===n.value&&!e.plan)){r.next=5;break}throw Error("If downgrading, a plan must be selected");case 5:return t="\nName: ".concat(e.name,"\nEmail: ").concat(e.email,"\n\nAction: ").concat(n.label,"\n").concat("downgrade"===n.value?"Requested Downgrade Level: ".concat(e.plan):"","\n\n").concat(e.additionalInfo.trim()?"\nAdditional info: ".concat(e.additionalInfo):"","\n\nStatement: By submitting this form, I acknowledge that the above conforms with the Terms of Service, including that my prior subscription payment was final and non-refundable, and confirm that I would like to modify my subscription.\n").trim(),a={email:e.email,request:{requester:{name:e.name,email:e.email},subject:"Paperless Pro subscription update request",comment:{body:t},custom_fields:{"360021872551":"computer","13790889320603":"id_simple_consumer"}}},r.next=9,fetch("https://paperlesspost.zendesk.com/api/v2/requests.json",{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(a)}).then(function(e){if(e.status>=400)throw Error("ZenDesk API call was not successful");return e.text()}).catch(function(e){throw null===y.c||void 0===y.c||y.c.notify(e),e});case 9:case"end":return r.stop()}},r)}))()}}),S=w("action");return(0,b.jsxs)("main",{className:"max-w-screen-lg mx-4 md:mx-6 lg:m-auto text-black leading-6",children:[(0,b.jsx)(c.A,N({},k)),(0,b.jsx)("h1",{className:"heading-medium font-bold text-center pt-12 pb-4",children:"Paperless Pro Subscription Update Request Form"}),!P.isSuccess&&(0,b.jsxs)("form",{onSubmit:h(function(e){return P.mutate(e)}),children:[(0,b.jsx)("div",{className:"my-6",children:(0,b.jsxs)("ul",{className:"flex flex-col gap-y-4",children:[(0,b.jsxs)("li",{className:"max-w-3xl",children:[(0,b.jsx)("label",{className:"block md:inline-block md:w-2/12 mb-1 md:mb-0 paragraph-large font-bold",htmlFor:"name-input",children:"Name"}),(0,b.jsx)(d.A,N({autoCapitalize:"none",autoCorrect:"off",id:"name-input",className:(0,s.A)("block md:inline-block md:w-10/12 border-black",{"!border-error focus:border-error focus:border-2":f.errors.name}),type:"text","aria-invalid":!!f.errors.name},p("name",{required:!0}))),(null==(e=f.errors.name)?void 0:e.type)==="required"&&(0,b.jsx)("p",{className:"text-error md:ml-[16.67%] mt-1",role:"alert",children:"This field is required"})]}),(0,b.jsxs)("li",{className:"max-w-3xl",children:[(0,b.jsx)("label",{className:"block md:inline-block md:w-2/12 mb-1 md:mb-0 paragraph-large font-bold",htmlFor:"email-input",children:"Email"}),(0,b.jsx)(d.A,N({autoCapitalize:"none",autoCorrect:"off",id:"email-input",className:(0,s.A)("block md:inline-block md:w-10/12 border-black",{"!border-error focus:border-error focus:border-2":f.errors.email}),type:"email","aria-invalid":!!f.errors.email,"aria-required":!0},p("email",{required:!0,pattern:O}))),(null==(r=f.errors.email)?void 0:r.type)==="required"&&(0,b.jsx)("p",{className:"text-error md:ml-[16.67%] mt-1",role:"alert",children:"This field is required"}),(null==(n=f.errors.email)?void 0:n.type)==="pattern"&&(0,b.jsx)("p",{className:"text-error md:ml-[16.67%] mt-1",role:"alert",children:"This field requires a valid email"})]})]})}),(0,b.jsxs)("div",{className:"my-6",children:[(0,b.jsx)("h2",{className:"heading-medium font-bold mb-2",children:"I would like to:"}),(0,b.jsx)(o.xI,{control:m,name:"action",render:function(e){var r=e.field;return(0,b.jsx)(g,N({className:"pl-6 paragraph-medium pb-3",options:A},r))}})]}),"downgrade"===S&&(0,b.jsxs)("div",{className:"my-6",children:[(0,b.jsx)("h2",{className:"heading-medium font-bold mb-2",children:"Change my subscription to:"}),(0,b.jsx)(o.xI,{control:m,name:"plan",rules:{required:!0},render:function(e){var r=e.field;return(0,b.jsx)(g,N({className:(0,s.A)("pl-6 paragraph-medium pb-3",{"border border-error":!!f.errors.plan}),options:["250 guests at $250 USD/year","500 guests at $400 USD/year","1,000 guests at $700 USD/year","1,500 guests at $1,000 USD/year","3,000 guests at $1,800 USD/year","5,000 guests at $2,500 USD/year"]},r))}}),(0,b.jsxs)("p",{className:"paragraph-medium font-bold",children:[(0,b.jsx)("span",{children:"Your subscription will continue at the current level until the renewal date indicated on your\xa0"}),(0,b.jsx)(j.A,{tracking:{id:"subscription-plan-page-downgrade-action"},href:"/account/subscription",className:"text-gatsby underline",target:"subscription-plan-page",children:"subscription plan page"}),(0,b.jsx)("span",{children:", at which point it will renew under the downgraded plan."})]}),(null==(t=f.errors.plan)?void 0:t.type)==="required"&&(0,b.jsx)("p",{className:"text-error",role:"alert",children:"This field is required"})]}),"cancel"===S&&(0,b.jsx)("div",{className:"my-2 mb-12",children:(0,b.jsxs)("p",{className:"paragraph-medium font-bold",children:[(0,b.jsxs)("span",{children:["Your subscription will continue until the renewal date indicated on your"," "]}),(0,b.jsx)(j.A,{tracking:{id:"subscription-plan-page-cancel-action"},href:"/account/subscription",className:"text-gatsby underline",target:"subscription-plan-page",children:"subscription plan page"}),(0,b.jsx)("span",{children:", at which point it will automatically end."})]})}),"end-and-revert"===S&&(0,b.jsx)("div",{className:"my-2 mb-12",children:(0,b.jsx)("p",{className:"paragraph-medium font-bold",children:"Your subscription will be terminated within 1-2 business days, at which point you will have the option to purchase Coins and pay per event. You will receive an email confirmation once your subscription plan has ended."})}),!!S&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"my-6",children:[(0,b.jsx)("label",{htmlFor:"signature-input",children:(0,b.jsx)("h2",{className:"heading-medium font-bold mb-2",children:"Additional notes/reason for canceling:"})}),(0,b.jsx)(d.A,N({id:"signature-input",className:(0,s.A)("block max-w-3xl md:inline-block md:w-10/12 border-black"),type:"text"},p("additionalInfo"))),(0,b.jsxs)("p",{className:"paragraph-medium my-8",children:[(0,b.jsx)("span",{children:"By
1submitting this form, I understand the above conforms with the\xa0"}),(0,b.jsx)(j.A,{tracking:{id:"subscription-plan-page-terms-of-service"},href:"/terms-of-service",className:"text-gatsby underline",target:"tos",children:"Terms of Service"}),(0,b.jsx)("span",{children:", including that my prior subscription payment was final and non-refundable, and confirm that I would like to modify my subscription."})]})]}),(0,b.jsxs)(u.Ay,{className:"px-12 py-4 mb-12 flex gap-2 items-center",type:u.ui,color:u.hA,size:u.kP,disabled:P.isPending,children:[(0,b.jsx)("span",{children:"Submit"}),!!P.isPending&&(0,b.jsx)(v.A,{height:"16px",width:"16px"})]})]}),!!P.isError&&(0,b.jsxs)("p",{className:"text-error mt-1",role:"alert",children:["An error occurred when submitting this form. Please confirm the information you inputted was valid or try again later.",P.error.message]})]}),!!P.isSuccess&&(0,b.jsxs)("div",{className:"my-6",children:[(0,b.jsx)("h2",{className:"heading-medium font-bold mb-2",children:"Request Received"}),(0,b.jsx)("p",{className:"my-2",children:"Thank you for submitting the below request to update or cancel your Paperless Pro subscription. We will review your request and respond within 1-2 business days. A confirmation email has been sent to the account email address that you provided. If you need to make any changes to your request, please respond directly to the confirmation email."})]})]})};P.getInitialProps=(0,p.ej)({cache:"public-if-logged-out"});let S=P},48828:(e,r,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/subscription/update",function(){return n(12193)}])},98775:(e,r,n)=>{"use strict";n.d(r,{A:()=>y});var t=n(42969),a=n(77328),i=n.n(a),l=n(41988),o=n(58216),s=n(84040),c=n(85977),d=n(84843),u=n(98712),m=n(60116),p=n(5037),h=n(37876);function f(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function b(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?f(Object(n),!0).forEach(function(r){(0,t.A)(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var g=function(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e},x=function(e){var r=e.url,n=e.locale,t=e.defaultLocale;try{var a=new URL(r,(0,s.X)());if(a.pathname=g(a.pathname),n===t)return a.href;var i="/"===a.pathname?"":a.pathname;return a.pathname="/".concat(n).concat(i),a.href}catch(e){var l=g(r.startsWith("/")?r:"/".concat(r));if(n===t)return"".concat((0,s.X)()).concat(l);var o="/"===l?"":l;return"".concat((0,s.X)(),"/").concat(n).concat(o)}};let y=function(e){var r,n,t,a,s,f=e.canonicalUrl,g=e.excludeCanonicalUrl,y=e.description,v=e.nofollow,j=e.noindex,w=void 0!==j&&j,N=e.ogImage,k=e.title,O=(0,o.r)(),A=null!=(r=O.locale)?r:"en",P=null!=(n=O.locales)?n:["en"],S=null!=(t=O.defaultLocale)?t:"en",q=A===S,D=(0,p.o)(O.pathname)?P.filter(function(e){return e===S}):P,I=(0,m.p)(),_=(0,u.T)({strings:{title:k,description:y},enabled:!q,initialData:(0,c.e)(function(){var e,r;if(!(I||(0,d.S)()))return{title:document.title,description:null!=(e=null==(r=document.querySelector('meta[name="description"]'))?void 0:r.getAttribute("content"))?e:""}})}),E=(0,c.e)(function(){var e;return q||(0,d.S)()?k:null==(e=_.data)?void 0:e.title}),C=(0,c.e)(function(){var e;return q||(0,d.S)()?y:null==(e=_.data)?void 0:e.description}),T=x({url:O.asPath,locale:A,defaultLocale:S}),U=f?x({url:f,locale:A,defaultLocale:S}):void 0,z=b(b({title:E,description:C},U?{url:U}:{}),null!=N&&N.url?{images:[{url:N.url,width:null!=(a=N.width)?a:void 0,height:null!=(s=N.height)?s:void 0}]}:{}),L=void 0!==g&&g,F=f&&!!U&&P.length>1&&!L&&!w&&U===T;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i(),{children:(0,l.U)({canonical:L?void 0:U,description:C,nofollow:void 0!==v&&v,noindex:!!L||w,openGraph:z,title:E})}),!!F&&(0,h.jsxs)(i(),{children:[D.map(function(e){return(0,h.jsx)("link",{rel:"alternate",hrefLang:e,href:x({url:f,locale:e,defaultLocale:S})},e)}),(0,h.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:x({url:f,locale:S,defaultLocale:S})})]})]})}}},e=>{e.O(0,[4897,636,6593,8792],()=>e(e.s=48828)),_N_E=e.O()}]); 2//# sourceMappingURL=update-2f12e63bdf1a26d8.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.