PageSourceSearch

https://trustdale.com/build/assets/SubmitProblem-m17bZMj4.js

js trustdale.com collected 2026-09-24 19:10:41 UTC 9,723 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="59f960c0-ed82-50e9-af54-b441da849192")}catch(e){}}();
3import{B as d}from"./BusinessSelect-C7yLZH9s.js";import{H as c}from"./HowHeardSelect-BZwgoZkx.js";import{d as m,T as f,F as p,r as u,f as _,n as h}from"./vue-DQcr4wwM.js";import{F as b}from"./FormTextarea-B8hJGGZi.js";import{b as v,a as y,F as g}from"./FileUpload-D6i4Pi0D.js";import{F as x}from"./FormRadio-BxWLwHFs.js";import{C as F,F as w}from"./Card-uPFVvjb4.js";import{S,A as I,s as $}from"./AddressGroup-B7-vrCDy.js";import{P}from"./PhoneInput-BMeunhqd.js";import"./http-client-DJnHA2vT.js";import"./preload-helper-D4P8YeB7.js";import"./environment-8lyQrZWx.js";(function(){var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a._sentryModuleMetadata=a._sentryModuleMetadata||{},function(){var e,t=new a.Error().stack,r=a._sentryModuleMetadata[t]||{},o={"_sentryBundlerPluginAppKey:trustdale-com":!0},s={};for(e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);for(e in o)o.hasOwnProperty(e)&&(s[e]=o[e]);a._sentryModuleMetadata[t]=s}()})();const k=m({name:"SubmitProblem",components:{HowHeardSelect:c,FormRadio:x,FormCheckGroup:p,FileUpload:g,FileUploadList:y,FormFile:v,FormSection:w,TextInput:f,BusinessSelect:d,AddressGroup:I,PhoneInput:P,StateSelect:S,FormTextarea:b,ContactForm:F},methods:{onWebpageChanged(){var a;this.form.webpage_id===0&&((a=this.businessNameInput)==null||a.focusInput())},onUsedTrustdaleChanged(){this.form.webpage_id=null,this.form.business_name=null},onPurchaseDateBlur(a){if(!(a instanceof HTMLInputElement))return;const e=this.normalizePurchaseDateInput(a.value);e&&(this.form.service_date=e,a.value=e)},normalizePurchaseDateInput(a){const e=a.trim();if(!e)return null;const t=e.match(/^(\d{4})-(\d{1,2})-(\d{1,2})$/);if(t){const[,s,n,i]=t;return this.toYmd(Number(s),Number(n),Number(i))}const r=e.match(/^(\d{1,2})[\/-](\d{1,2})[\/-](\d{4})$/);if(r){const[,s,n,i]=r;return this.toYmd(Number(i),Number(s),Number(n))}const o=e.match(/^(\d{2})(\d{2})(\d{4})$/);if(o){const[,s,n,i]=o;return this.toYmd(Number(i),Number(s),Number(n))}return null},toYmd(a,e,t){if(!Number.isInteger(a)||!Number.isInteger(e)||!Number.isInteger(t)||e<1||e>12||t<1||t>31)return null;const r=new Date(a,e-1,t);if(r.getFullYear()!==a||r.getMonth()!==e-1||r.getDate()!==t)return null;const o=String(e).padStart(2,"0"),s=String(t).padStart(2,"0");return`${a}-${o}-${s}`}},setup(){const a=u(),e=u({used_trustdale:null,td_contact_date:null,webpage_id:null,business_name:null,service_date:null,service_cost:null,purchase_city:null,purchase_state:null,purchase_zipcode:null,first_name:null,last_name:null,email:null,phone:null,how_heard:null,address:{address_1:null,address_2:null,city:null,state:null,zipcode:null},reason:null,ip_address:TD.location.ip,files:[]}),t=_(()=>e.value.used_trustdale?"What was the Business name?":"Business Name");return{form:e,businessNameInput:a,bNamePlaceholder:t,selectYesNoOptions:$}}});var C=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("ContactForm",{attrs:{id:"submit-problem",value:e.form,action:"/contact/submit-problem",name:"submit_problem","show-submit":e.form.used_trustdale!==null}},[t("FormSection",[t("FormCheckGroup",{staticClass:"mb-8",attrs:{id:"cf--usedtrustdale",required:"",name:"used_trustdale",header:`Did you contact this company through the TrustDALE.com website or
4					through the Certified Services Guide?`},on:{input:e.onUsedTrustdaleChanged},model:{value:e.form.used_trustdale,callback:function(r){e.$set(e.form,"used_trustdale",r)},expression:"form.used_trustdale"}},[t("FormRadio",{attrs:{value:!0,label:"Yes"}}),t("FormRadio",{attrs:{value:!1,label:"No"}})],1),t("Transition",{attrs:{"enter-active-class":"animated fadeInDownSmall"}},[e.form.used_trustdale===!0?t("TextInput",{attrs:{id:"cf--tdcontactdate",name:"td_contact_date",placeholder:"mm/yyyy",required:"",pattern:"/^\\d{2}/\\d{4}$/",rules:{required:!0,regex:/^\d{2}\/\d{4}$/},mask:"##/####",label:"Contact Date",description:"Please enter the estimated month/year you contacted this company using TrustDALE."},model:{value:e.form.td_contact_date,callback:function(r){e.$set(e.form,"td_contact_date",r)},expression:"form.td_contact_date"}}
4):e._e()],1)],1),e.form.used_trustdale===null?t("p",{staticClass:"text-center text-gray-500 py-4"},[e._v(" Please select an option above. ")]):e._e(),t("Transition",{attrs:{"enter-active-class":"animated fadeInDownSmall"}},[e.form.used_trustdale!==null?t("div",[t("FormSection",{attrs:{header:"Purchase Information"}},[t("div",{staticClass:"grid md:grid-cols-2 gap-x-8"},[e.form.used_trustdale?t("BusinessSelect",{attrs:{nullable:"",name:"webpage_id",label:"Business",id:"cf--business",required:""},on:{change:e.onWebpageChanged},model:{value:e.form.webpage_id,callback:function(r){e.$set(e.form,"webpage_id",r)},expression:"form.webpage_id"}}):e._e(),!e.form.used_trustdale||e.form.webpage_id===0?t("TextInput",{ref:"businessNameInput",attrs:{id:"cf--businessname",name:"business_name",label:"Business Name",placeholder:e.bNamePlaceholder,required:""},model:{value:e.form.business_name,callback:function(r){e.$set(e.form,"business_name",r)},expression:"form.business_name"}}):e._e(),t("TextInput",{attrs:{id:"cf--purchasedate",name:"service_date",label:"Purchase Date",type:"text",placeholder:"mm/dd/yyyy",rules:"required|valid_date",description:"Purchase Date",required:""},on:{blur:e.onPurchaseDateBlur},model:{value:e.form.service_date,callback:function(r){e.$set(e.form,"service_date",r)},expression:"form.service_date"}}),t("TextInput",{attrs:{id:"cf--servicecost",name:"service_cost",label:"Service Cost",description:"Cost of Service and/or Purchase",placeholder:"0.00",step:"any",min:"0.00",number:"",max:"99999999.99",required:""},model:{value:e.form.service_cost,callback:function(r){e.$set(e.form,"service_cost",r)},expression:"form.service_cost"}}),t("TextInput",{attrs:{id:"cf--purchasecity",name:"purchase_city",label:"City",required:"",description:"City of Purchase"},model:{value:e.form.purchase_city,callback:function(r){e.$set(e.form,"purchase_city",r)},expression:"form.purchase_city"}}),t("StateSelect",{attrs:{id:"cf--state",label:"State",description:"State of Purchase",required:""},model:{value:e.form.purchase_state,callback:function(r){e.$set(e.form,"purchase_state",r)},expression:"form.purchase_state"}}),t("TextInput",{attrs:{label:"Zipcode",description:"Zipcode of Purchase",rules:"zipcode",required:"",name:"purchase_zipcode",id:"cf--purchasezip"},model:{value:e.form.purchase_zipcode,callback:function(r){e.$set(e.form,"purchase_zipcode",r)},expression:"form.purchase_zipcode"}})],1)]),t("FormSection",{attrs:{header:"Your Information"}},[t("div",{staticClass:"grid md:grid-cols-2 gap-x-8"},[t("TextInput",{attrs:{name:"first_name",required:"",label:"First Name",id:"cf--firstname"},model:{value:e.form.first_name,callback:function(r){e.$set(e.form,"first_name",r)},expression:"form.first_name"}}),t("TextInput",{attrs:{name:"last_name",required:"",label:"Last Name",id:"cf--lastname"},model:{value:e.form.last_name,callback:function(r){e.$set(e.form,"last_name",r)},expression:"form.last_name"}}),t("TextInput",{attrs:{name:"your_email",required:"",type:"email",rules:"email",label:"Your Email",id:"cf--youremail"},model:{value:e.form.email,callback:function(r){e.$set(e.form,"email",r)},expression:"form.email"}}),t("PhoneInput",{attrs:{id:"cf--phonenumber",required:""},model:{value:e.form.phone,callback:function(r){e.$set(e.form,"phone",r)},expression:"form.phone"}})],1),t("AddressGroup",{model:{value:e.form.address,callback:function(r){e.$set(e.form,"address",r)},expression:"form.address"}}),t("HowHeardSelect",{attrs:{id:"cf--heard",required:""},model:{value:e.form.how_heard,callback:function(r){e.$set(e.form,"how_heard",r)},expression:"form.how_heard"}})],1),t("FormSection",[t("label",{attrs:{for:"reasontext"}},[e._v("Briefly describe the reason your product or service was not delivered to the standard the business promised and the actions you have taken with the business to resolve the problem. You may be asked to send us a copy of your receipt, contract or agreement.")]),t("FormTextarea",{attrs:{id:"reasontext",label:"Describe the problem...",rows:"10",required:""},model:{value:e.form.reason,callback:function(r){e.$set(e.form,"reason",r)},expression:"form.reason"}})],1),t("FormSection",{attrs:{header:"Supporting Documents"}},[t("FileUpload",{attrs:{max:"5",endpoint:"/uploads"},scopedSlots:e._u([{key:"default",fn:function({files:r,addFiles:o,removeFile:s,isDisabled:n,limitReached:i}){return[t("div",{staticClass:"grid md:grid-cols-2 gap-x-8"},[t("div",{staticClass:"mb-8"},[t("p",[e._v("Please send us any additional documentation for your situation. This includes a contract, written estimates, emails and pictures.")]),t("p",[e._v("Supported formats: (.pdf, .doc, .docx, .jpeg, .jpg, .png)"),t("br"),e._v(" Max Files: 5, Max Filesize: 5MB")]),t("FormFile",{attrs:{multiple:"",disabled:n,accept:".pdf,.doc,.docx,.jpg,.jpeg,.png",title:i?"Limit Reached":"","max-filesize":5e3},on:{change:function(l){return o(l)}}},[t("i",{staticClass:"fa fa-upload pr-2"}),e._v(" Upload File(s) ")])],1),t("div",[t("FileUploadList",{ref:"uploadListRef",attrs:{files:r},on:{deleted:function(l){return s(l)}}})],1)])]}}],null,!1,2878178444),model:{value:e.form.files,callback:function(r){e.$set(e.form,"files",r)},expression:"form.files"}}
4)],1)],1):e._e()])],1)},T=[],N=h(k,C,T,!1,null,null);const G=N.exports;export{G as default};
5
6//# debugId=59f960c0-ed82-50e9-af54-b441da849192

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.