PageSourceSearch

https://assets2.ajmadison.com/_next/static/chunks/pages/account/service/followup/[item_id]-1db1a72763993fa7.js

js ajmadison.com collected 2026-09-25 18:53:10 UTC 11,601 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b7a74a05-1098-4514-9eb8-39af2a8a96cf",e._sentryDebugIdIdentifier="sentry-dbid-b7a74a05-1098-4514-9eb8-39af2a8a96cf")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5074],{61578:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return f}});var n=s(33238),r=s(72985),i=s(95767),o=s(4824),a=s.n(o),c=s(50959),l=s(23756),d=s(38404),u=s(35354),m=s(45176),_=s(14135),h=s.n(_),p=s(11527),y=["errors"];function b(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,n)}return s}function x(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?b(Object(s),!0).forEach(function(t){(0,i.Z)(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):b(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}var v=function(e){var t,s=e.itemId,o=(0,c.useState)(!1),_=o[0],b=o[1],v=(0,c.useState)(null),f=v[0],j=v[1],w=(0,c.useState)(!1),N=w[0],g=w[1],S=(0,c.useState)({}),k=S[0],D=S[1],O=(0,l.cI)({mode:"onBlur"}),T=O.control,M=(O.formState.errors,O.handleSubmit),P=O.setError,q=function(e,t){D(x(x({},k),{},(0,i.Z)({},e,t)))},B=(t=(0,r.Z)(a().mark(function e(t){var r,i,o,c,l,d;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return b(!0),j(null),r={item_id:s,arrived_scheduled:"yes"===k.arrived_scheduled||"no"!==k.arrived_scheduled&&null,issue_resolved:"yes"===k.issue_resolved||"no"!==k.issue_resolved&&null,return_with_parts:"yes"===k.return_with_parts||"no"!==k.return_with_parts&&null,still_needs_help:"yes"===k.still_needs_help||"no"!==k.still_needs_help&&null,comments:t.comments||null},e.prev=3,e.next=6,fetch("".concat("https://www.ajmadison.com","/papi/service/followup.php"),{body:JSON.stringify(r),credentials:"include",method:"POST"});case 6:if((i=e.sent).ok){e.next=9;break}throw Error("Server error: ".concat(i.status));case 9:if(!(!(o=i.headers.get("content-type"))||!o.includes("application/json"))){e.next=16;break}return e.next=13,i.text();case 13:throw console.error("Server returned non-JSON response:",e.sent),Error("The service endpoint is not available. Please contact support.");case 16:return e.next=18,i.json();case 18:l=(c=e.sent).errors,(0,n.Z)(c,y),l&&l.length?(d=[],l.forEach(function(e){var t=e.message,s=e.target;s?P(s,{message:t,type:"manual"},{shouldFocus:!0}):d.push(t)}),j(d)):g(!0),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(3),console.error("Followup submission error:",e.t0),j([e.t0.message||"An error occurred while submitting your response. Please try again."]);case 28:b(!1);case 29:case"end":return e.stop()}},e,null,[[3,24]])})),function(e){return t.apply(this,arguments)}),F=f&&(0,p.jsx)("div",{className:h().errorSection,children:f.map(function(e,t){return(0,p.jsx)(d.xv,{color:"aj-error",theme:"bodycopy-light",noDefaultMargin:!0,children:e},t)})});return N?(0,p.jsx)(m.Z,{title:"Service Followup - Thank You",children:(0,p.jsx)("div",{className:h().container,children:(0,p.jsxs)("div",{className:h().card,children:[(0,p.jsx)(d.H,{type:"h3",color:"aj-green",noDefaultMargin:!0,className:h().title,children:"Thank You for Your Feedback"}),(0,p.jsx)(d.xv,{theme:"bodycopy-regular",noDefaultMargin:!0,className:h().text,children:"We have received your service followup response and will use this information to improve our service."})]})})}):(0,p.jsx)(m.Z,{title:"Service Followup",children:(0,p.jsx)("div",{className:h().container,children:(0,p.jsxs)("div",{className:h().card,children:[(0,p.jsx)(d.H,{type:"h3",color:"aj-black",noDefaultMargin:!0,className:h().title,children:"Service Followup"}),(0,p.jsx)(d.xv,{theme:"bodycopy-regular",noDefaultMargin:!0,className:h().subtitle,children:"Help us improve our service by answering a few questions about your recent experience."}),(0,p.jsxs)("form",{onSubmit:M(B),className:h().form,children:[(0,p.jsxs)("div",{className:h().questionSection,children:[(0,p.jsx)(d.xv,{theme:"bodycopy-medium",noDefaultMargin:!0,className:h().question,children:"Did the technician arrive as scheduled?"}),(0,p.jsxs)("div",{className:h().buttonGroup,children:[(0,p.jsx)(d.zx,{type:"button",theme:"yes"===k.arrived_scheduled?"button-primary":"button-secondary",onClick:function(){return q("arrived_scheduled","yes")},className:h().answerButton,children:"Yes"}),(0,p.jsx)(d.zx,{type:"button",theme:"no"===k.arrived_scheduled?"button-primary":"button-secondary",onClick:function(){return q("arrived_scheduled","no")},className:h().answerButton,children:"No"})]})]}),"yes"===k.arrived_scheduled&&(0,p.jsxs)("div",{className:h().questionSection,children:[(0,p.jsx)(d.xv,{theme:"bodycopy-medium",noDefaultMargin:!0,className:h().question,children:"Was your issue resolved during the visit?"}),(0,p.jsxs)("div",{className:h().buttonGroup,children:[(0,p.jsx)(d.zx,{type:"button",theme:"yes"===k.issue_resolved?"button-primary":"button-secondary",onClick:function(){return q("issue_resolved","yes")},className:h().answerButton,children:"Yes"}),(0,p.jsx)(d.zx,{type:"button",theme:"no"===k.issue_resolved?"button-primary":"button-secondary",onClick:function(){return q("issue_resolved","no")},className:h().answerButton,children:"No"})]})]}),"yes"===k.arrived_scheduled&&"no"===k.issue_resolved&&(0,p.jsxs)("div",{className:h().questionSection,children:[(0,p.jsx)(d.xv,{theme:"bodycopy-medium",noDefaultMargin:!0,className:h().question,children:"Is the technician scheduled to return with parts?"}),(0,p.jsxs)("div",{className:h().buttonGroup,children:[(0,p.jsx)(d.zx,{type:"button",theme:"yes"===k.return_with_parts?"button-primary":"button-secondary",onClick:function(){return q("return_with_parts","yes")},className:h().answerButton,children:"Yes"}),(0,p.jsx)(d.zx,{type:"button",theme:"no"===k.return_with_parts?"button-primary":"button-secondary",onClick:function(){return q("return_with_parts","no")},className:h().answerButton,children:"No"})]})]}),"no"===k.arrived_scheduled&&(0,p.jsxs)("div",{className:h().questionSection,children:[(0,p.jsx)("div",{className:h().sorryMessage,children:(0,p.jsx)(d.xv,{theme:"bodycopy-regular",noDefaultMargin:!0,className:h().sorryText,children:"We're sorry the technician missed the appointment. We will follow up with the manufacturer to help resolve this.                  "})}),(0,p.jsxs)("div",{className:h().submitSection,children:[F,(0,p.jsx)(d.zx,{type:"submit",theme:"button-primary",disabled:_,children:_?"Submitting...":"Submit Feedback"})]}),(0,p.jsxs)("div",{className:h().commentSection,children:[(0,p.jsx)(d.xv,{theme:"bodycopy-medium",noDefaultMargin:!0,className:h().commentTitle,children:"Additional Comments (Optional)"}),(0,p.jsx)(u.Z,{control:T,name:"comments",rows:4,className:h().textarea})]})]}),"yes"===k.arrived_scheduled&&"no"===k.issue_resolved&&"no"===k.return_with_parts&&(0,p.jsxs)("div",{className:h().questionSection,children:[(0,p.jsx)("div",{className:h().sorryMessage,children:(0,p.jsx)(d.xv,{theme:"bodycopy-regular",noDefaultMargin:!0,className:h().sorryText,children:"Thank y
1ou for the update. We will follow up with the manufacturer to help resolve this."})}),(0,p.jsxs)("div",{className:h().commentSection,children:[(0,p.jsx)(d.xv,{theme:"bodycopy-medium",noDefaultMargin:!0,className:h().commentTitle,children:"Additional Comments (Optional)"}),(0,p.jsx)(u.Z,{control:T,name:"comments",rows:4,className:h().textarea})]}),(0,p.jsxs)("div",{className:h().submitSection,children:[F,(0,p.jsx)(d.zx,{type:"submit",theme:"button-primary",disabled:_,children:_?"Submitting...":"Submit Feedback"})]})]}),"yes"===k.arrived_scheduled&&"no"===k.issue_resolved&&"yes"===k.return_with_parts&&(0,p.jsxs)("div",{className:h().questionSection,children:[(0,p.jsx)("div",{className:h().sorryMessage,children:(0,p.jsx)(d.xv,{theme:"bodycopy-regular",noDefaultMargin:!0,className:h().sorryText,children:"Thank you for the update."})}),(0,p.jsxs)("div",{className:h().commentSection,children:[(0,p.jsx)(d.xv,{theme:"bodycopy-medium",noDefaultMargin:!0,className:h().commentTitle,children:"Additional Comments (Optional)"}),(0,p.jsx)(u.Z,{control:T,name:"comments",rows:4,className:h().textarea})]}),(0,p.jsxs)("div",{className:h().submitSection,children:[F,(0,p.jsx)(d.zx,{type:"submit",theme:"button-primary",disabled:_,children:_?"Submitting...":"Submit Feedback"})]})]}),"yes"===k.arrived_scheduled&&"yes"===k.issue_resolved&&(0,p.jsxs)("div",{className:h().questionSection,children:[(0,p.jsx)(d.xv,{theme:"bodycopy-medium",noDefaultMargin:!0,className:h().question,children:"Do you still need assistance, or is this issue considered resolved?"}),(0,p.jsxs)("div",{className:h().buttonGroup,children:[(0,p.jsx)(d.zx,{type:"button",theme:"yes"===k.still_needs_help?"button-primary":"button-secondary",onClick:function(){return q("still_needs_help","yes")},className:h().answerButton,children:"Still need help"}),(0,p.jsx)(d.zx,{type:"button",theme:"no"===k.still_needs_help?"button-primary":"button-secondary",onClick:function(){return q("still_needs_help","no")},className:h().answerButton,children:"All set, thank you!"})]}),"yes"===k.still_needs_help&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:h().commentSection,children:[(0,p.jsx)(d.xv,{theme:"bodycopy-medium",noDefaultMargin:!0,className:h().commentTitle,children:"Please let us know what additional help you need"}),(0,p.jsx)(d.xv,{theme:"bodycopy-light",noDefaultMargin:!0,className:h().commentDescription,children:"Please describe what issues remain or what additional assistance you require:"}),(0,p.jsx)(u.Z,{control:T,name:"comments",placeholder:"Please describe what additional help you need...",rows:4,className:h().textarea})]}),(0,p.jsxs)("div",{className:h().submitSection,children:[F,(0,p.jsx)(d.zx,{type:"submit",theme:"button-primary",disabled:_,children:_?"Submitting...":"Submit Feedback"})]})]}),"no"===k.still_needs_help&&(0,p.jsxs)("div",{className:h().submitSection,children:[F,(0,p.jsx)(d.zx,{type:"submit",theme:"button-primary",disabled:_,children:_?"Submitting...":"Submit Feedback"})]})]})]})]})})})},f=!0;v.__docgenInfo={description:"",methods:[],displayName:"ServiceFollowupPage"},t.default=v},6482:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/service/followup/[item_id]",function(){return s(61578)}])},14135:function(e){e.exports={container:"_item_id__container__s5JNV",card:"_item_id__card__u6ATN",title:"_item_id__title__lKTPo",subtitle:"_item_id__subtitle__L4P8a",form:"_item_id__form__jFRON",questionSection:"_item_id__questionSection__c6xGe",question:"_item_id__question__EIOv7",buttonGroup:"_item_id__buttonGroup__Hxknl",answerButton:"_item_id__answerButton__9lM2w",previousAnswers:"_item_id__previousAnswers__9BbYn",submitSection:"_item_id__submitSection__kmtYd",errorSection:"_item_id__errorSection__dHbgi",text:"_item_id__text__JgI6I",commentSection:"_item_id__commentSection__BqAaN",commentTitle:"_item_id__commentTitle__4oEbG",commentDescription:"_item_id__commentDescription__9MHBF",textarea:"_item_id__textarea__esrlV",sorryMessage:"_item_id__sorryMessage__dVBGI",sorryTitle:"_item_id__sorryTitle__joR_N",sorryText:"_item_id__sorryText__5UOjG"}}},function(e){e.O(0,[8429,1486,6299,1385,1889,8776,3131,2991,5354,2888,9774,179],function(){return e(e.s=6482)}),_N_E=e.O()}]);

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.