bhl-forms 0.13.1 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/forms/applianceRepair.es.js +6 -6
- package/dist/forms/applianceRepair.iife.js +1 -1
- package/dist/forms/applianceRepairMinimal.es.js +6 -6
- package/dist/forms/applianceRepairMinimal.iife.js +1 -1
- package/dist/forms/applianceRepairMinimal.json +1 -1
- package/dist/forms/appraisals.es.js +2 -1
- package/dist/forms/appraisals.iife.js +1 -1
- package/dist/forms/appraisals.json +1 -1
- package/dist/forms/coins.es.js +2 -1
- package/dist/forms/coins.iife.js +1 -1
- package/dist/forms/coins.json +1 -1
- package/dist/forms/electrical.es.js +49 -291
- package/dist/forms/electrical.iife.js +1 -1
- package/dist/forms/electrical.json +1 -1
- package/dist/forms/generalContractors.es.js +6 -6
- package/dist/forms/generalContractors.iife.js +1 -1
- package/dist/forms/generalContractors.json +1 -1
- package/dist/forms/generalHomeImprovement.es.js +6 -6
- package/dist/forms/generalHomeImprovement.iife.js +1 -1
- package/dist/forms/generalHomeImprovement.json +1 -1
- package/dist/forms/generalHomeImprovementThankYou.es.js +6 -6
- package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
- package/dist/forms/generalHomeImprovementThankYou.json +1 -1
- package/dist/forms/mechanics.es.js +2 -2
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -1
- package/dist/forms/painting.es.js +6 -6
- package/dist/forms/painting.iife.js +1 -1
- package/dist/forms/painting.json +1 -1
- package/dist/forms/plumbing.es.js +50 -291
- package/dist/forms/plumbing.iife.js +1 -1
- package/dist/forms/plumbing.json +1 -1
- package/dist/forms/remodeling.es.js +6 -6
- package/dist/forms/remodeling.iife.js +1 -1
- package/dist/forms/remodeling.json +1 -1
- package/dist/forms/restoration.es.js +1553 -0
- package/dist/forms/restoration.iife.js +1 -0
- package/dist/forms/restoration.json +1 -0
- package/dist/forms/restorationCall.es.js +6 -6
- package/dist/forms/restorationCall.iife.js +1 -1
- package/dist/forms/restorationCall.json +1 -1
- package/dist/forms/roofing.es.js +49 -286
- package/dist/forms/roofing.iife.js +1 -1
- package/dist/forms/roofing.json +1 -1
- package/dist/forms/vets.es.js +112 -41
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/vets.json +1 -1
- package/dist/forms/windows.es.js +6 -6
- package/dist/forms/windows.iife.js +1 -1
- package/dist/forms/windows.json +1 -1
- package/package.json +1 -1
package/dist/forms/roofing.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"type":"meta","data":{"tcpaLanguage":"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by up to four home service <a href=\"/providers\" target=\"_blank\" class=\"t-underline\">companies and partners</a> of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services.","defaultCommentsPlaceholder":"$getKey($meta, \"commentsPlaceholders.\" + $get(Category).value, $meta.defaultCommentsPlaceholder)","commentsPlaceholders":{"Additions":"Example: \"I would like to add a sunroom to my home\"","Appliances":"Example: \"I need to repair a dishwasher\"","Appraisals":"Example: \"I need to get my home appraised\"","Cabinets":"Example: \"I want to install new kitchen cabinets\"","Carpentry":"Example: \"I need someone to build custom shelves\"","Carpets":"Example: \"I want to replace the carpets in my living room\"","Cleaning":"Example: \"I need a professional cleaning service for my home\"","Countertops":"Example: \"I want to install granite countertops in my kitchen\"","Decks and Porches":"Example: \"I want to build a new deck in my backyard\"","Demolition":"Example: \"I need to demolish a wall in my home\"","Doors":"Example: \"I want to replace the front door of my house\"","Driveways":"Example: \"I need to repair my driveway\"","Drywall and Plaster":"Example: \"I need to repair a hole in my drywall\"","Electrical":"Example: \"I need an electrician to install new light fixtures\"","Fencing":"Example: \"I want to install a privacy fence in my backyard\"","Flooring":"Example: \"I want to install hardwood flooring in my living room\"","Foundations":"Example: \"I need to repair the foundation of my house\"","Garage Doors":"Example: \"I want to replace my garage door\"","General Contractors":"Example: \"I need a general contractor for a home renovation\"","Gutters":"Example: \"I need to clean and repair my gutters\"","Handyman":"Examples: \"I need two rooms painted\" or \"I need to replace a faucet\", etc","Holiday Decorators":"Example: \"I want to hire someone to decorate my home for the holidays\"","Smart Home":"Example: \"I want to install a smart home automation system\"","Home Builders":"Example: \"I want to build a custom home\"","Home Inspection":"Example: \"I need a home inspection before buying a house\"","Home Organization":"Example: \"I need help organizing my closets and storage\"","Home Security":"Example: \"I want to install a home security system\"","Home Staging":"Example: \"I need a home staging service to prepare my house for sale\"","Home Theater":"Example: \"I want to set up a home theater system\"","Home Warranties":"Example: \"I want to purchase a home warranty\"","Hot Tubs":"Example: \"I want to install a hot tub in my backyard\"","Heating and Cooling":"Example: \"I need to repair my air conditioning unit\"","Insulation":"Example: \"I want to improve the insulation in my home\"","Junk Removal":"Example: \"I need a service to remove junk and debris from my property\"","Landscaping":"Example: \"I want to redesign my backyard landscaping\"","Locksmiths":"Example: \"I need a locksmith to change the locks on my doors\"","Masonry and Concrete":"Example: \"I need to repair a cracked concrete driveway\"","Restoration":"Example: \"My basement is flooded and needs restoration\"","Moving":"Example: \"I need a moving company to help me relocate\"","Painting":"Example: \"I want to paint the interior walls of my house\"","Pest Control":"Example: \"I need pest control services for my home\"","Pools":"Example: \"I want to install a swimming pool in my backyard\"","Plumbing":"Example: \"I need a plumber to fix a leaky faucet\"","Pressure Washing":"Example: \"I want to pressure wash the exterior of my house\"","Remodeling":"Example: \"I want to remodel my kitchen\"","Roofing":"Example: \"I need to repair a leaky roof\"","Sheds":"Example: \"I want to build a storage shed in my backyard\"","Siding":"Example: \"I want to replace the siding on my house\"","Solar":"Example: \"I want to install solar panels on my roof\"","Tiling":"Example: \"I want to install new tiles in my bathroom\"","Tree Services":"Example: \"I need a large tree removed\"","Walk-in Tubs":"Example: \"I want to install a walk-in tub in my bathroom\"","Waterproofing":"Example: \"I need to waterproof my basement\"","Window Cleaning":"Example: \"I need a professional window cleaning service\"","Windows":"Example: \"I want to replace 3 windows in my house\"","Not Sure or Other":"Example: \"I need general handyman services\""},"defaultFinalHeadline":"We Found Matching Contractors!","finalHeadlines":{"Appliances":"Our Pros Are Ready To Help","Electrical":"Electricians Are Standing By!","Plumbing":"Plumbers Are Standing By!","Roofing":"Roofers Are Standing By!"},"defaultFinalSubHeadline":"Compare quotes and save. Verify contact info:","finalSubHeadlines":{"Additions":"Get your dream addition started today!","Appliances":"Confirm your contact information:","Appraisals":"Accurate home appraisals at your service.","Cabinets":"Transform your kitchen with new cabinets.","Carpentry":"Custom carpentry solutions for your home.","Carpets":"Upgrade your home with new carpets.","Cleaning":"Professional cleaning services for a spotless home.","Countertops":"Install beautiful countertops in your kitchen.","Decks and Porches":"Build the perfect outdoor space.","Demolition":"Safe and efficient demolition services.","Doors":"Enhance your home with new doors.","Driveways":"Repair or install a new driveway.","Drywall and Plaster":"Expert drywall and plaster services.","Electrical":"Get a quote from a trusted pro.","Fencing":"Secure your property with new fencing.","Flooring":"Install stunning new floors.","Foundations":"Foundation repair and maintenance.","Garage Doors":"Upgrade your garage with new doors.","General Contractors":"Top contractors for your home projects.","Gutters":"Clean and repair your gutters.","Handyman":"Handyman services for all your needs.","Holiday Decorators":"Get your home ready for the holidays.","Smart Home":"Upgrade to a smart home today.","Home Builders":"Build your custom dream home.","Home Inspection":"Thorough home inspections for peace of mind.","Home Organization":"Organize your home with expert help.","Home Security":"Protect your home with a security system.","Home Staging":"Stage your home for a quick sale.","Home Theater":"Create the ultimate home theater.","Home Warranties":"Get a warranty for your home.","Hot Tubs":"Install a relaxing hot tub.","Heating and Cooling":"HVAC repair and installation.","Insulation":"Improve your home's insulation.","Junk Removal":"Remove unwanted junk from your property.","Landscaping":"Transform your yard with expert landscaping.","Locksmiths":"Professional locksmith services.","Masonry and Concrete":"Expert masonry and concrete work.","Restoration":"Restore your home after damage.","Moving":"Reliable moving services.","Painting":"Professional painting services.","Pest Control":"Effective pest control solutions.","Pools":"Install or repair your pool.","Plumbing":"Get a quote from a trusted pro.","Pressure Washing":"Pressure wash your home's exterior.","Remodeling":"Remodel your home with top professionals.","Roofing":"Get a quote from a local roofer.","Sheds":"Build a new shed for extra storage.","Siding":"Upgrade your home's siding.","Solar":"Install solar panels and save on energy.","Tiling":"Install beautiful new tiles.","Walk-in Tubs":"Install a convenient walk-in tub.","Waterproofing":"Waterproof your home to prevent damage.","Window Cleaning":"Professional window cleaning services.","Windows":"Replace your windows with energy-efficient options."}}},{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-80px","left":0}}}],"attrs":{"class":"t-relative"}},{"$cmp":"FormKit","props":{"type":"form","id":"form","config":{"validationVisibility":"submit"},"onSubmit":"$submit($submitUrl, $prepData, $handleRedirect, \"text/plain; charset=UTF-8\")","plugins":"$plugins","actions":false,"anchorElement":"form-anchor","useLocalStorage":true,"prepop":{"fromURL":true},"errorCodes":{"403":{"message":"An Error Occurred","abort":false},"409":{"abort":false},"429":"An Error Occurred","504":{"message":"An Error Occurred","abort":false}},"formClass":"!t-max-w-[40rem]","formId":"roofing","redirectMap":{"*":"/thank-you?zip_code=${properties.Zip}&s=${properties.s}"},"name":"roofing"},"children":[{"$el":"div","attrs":{"class":"t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center","style":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"display: none"}},"children":[{"$el":"div","attrs":{"class":"t-flex t-justify-center"},"children":[{"$el":"span","attrs":{"id":"progress-bar-text","class":"t-text-sm t-mb-1"},"children":["0% Complete"]}]},{"$el":"div","attrs":{"class":"t-bg-gray-100 t-w-9/12 t-rounded"},"children":[{"$el":"div","attrs":{"id":"progress-bar","class":"t-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]","style":{"transition":"width 0.5s ease"}}}]}]},{"$el":"h1","attrs":{"class":"t-flex t-justify-center t-text-center t-text-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 f-first-headline"},"children":"$urlParam(\"hl\", \"Get Roofing Quotes\")","if":"$activeStep === $firstStep()"},{"$el":"h3","attrs":{"class":"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 t-pb-3 !t-font-bold !t-text-[#465f87] f-first-subheadline"},"children":"$urlParam(\"shl\", \"Please Enter Your Zip Code:\")","if":"$activeStep === $firstStep()","subheadlineClass":"!t-font-bold !t-text-[#465f87]"},{"$formkit":"hidden","name":"vertical","value":"HomeImprovement"},{"$formkit":"hidden","name":"TCPA_Language","value":"$meta.tcpaLanguage"},{"$formkit":"hidden","name":"gclid","value":null},{"$formkit":"hidden","name":"campaignid","value":null},{"$formkit":"hidden","name":"s","value":null},{"$el":"div","attrs":{"class":"form-body"},"children":[{"$el":"section","if":"$stepEnabled(\"roofingFirstStep\")","attrs":{"hidden":"$activeStep !== \"roofingFirstStep\"","key":"roofingFirstStep"},"children":[{"$formkit":"group","id":"roofingFirstStep","name":"roofingFirstStep","children":[{"$formkit":"hidden","name":"Category","id":"Category","value":"Roofing"},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"labelClass":"required","help":null,"placeholder":"#####","name":"Zip","maxlength":5,"inputmode":"numeric","autocomplete":"postal-code","wrapperClass":"t-flex t-justify-center","messagesClass":"t-flex t-justify-center","inputClass":"t-text-center","helpClass":"t-mt-2.5 !t-text-sm t-text-center","id":"Zip","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"roofingWorkType\")","attrs":{"hidden":"$activeStep !== \"roofingWorkType\"","key":"roofingWorkType"},"children":[{"$formkit":"group","id":"roofingWorkType","name":"roofingWorkType","children":[{"$el":"h3","children":"What type of roofing work?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3","legendClass":"required","name":"Roofing_Work_Type","options":["Install or Replace Roof","Repair Roof","Ice Dams","Gutters","Not Sure or Other"],"fieldsetClass":"$reset t-flex t-justify-center","innerClass":"t-items-center","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","optionClass":"t-pl-4 md:t-pl-12","messagesClass":"t-flex t-justify-center","id":"Roofing_Work_Type","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"roofingMaterial\")","attrs":{"hidden":"$activeStep !== \"roofingMaterial\"","key":"roofingMaterial"},"children":[{"$formkit":"group","id":"roofingMaterial","name":"roofingMaterial","children":[{"$el":"h3","children":"What type of roofing material?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-min-w-[150px] t-bg-white t-text-center","labelClass":"required","name":"Roofing_Material","options":["Asphalt Shingle","Composite","Flat","Foam","Metal","Slate","Tile","Wood","Not Sure or Other"],"wrapperClass":"t-flex t-justify-center","messagesClass":"t-flex t-justify-center","helpClass":"t-mt-2.5 t-text-center","id":"Roofing_Material","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"timeframe\")","attrs":{"hidden":"$activeStep !== \"timeframe\"","key":"timeframe"},"children":[{"$formkit":"group","id":"timeframe","name":"timeframe","children":[{"$el":"h3","children":"What is the project timeframe?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3","legendClass":"required","name":"Timeframe","options":["Immediate","1-6 Months","More than 6 Months"],"fieldsetClass":"$reset t-flex t-justify-center","innerClass":"t-items-center","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","optionClass":"t-pl-4 md:t-pl-12","messagesClass":"t-flex t-justify-center","id":"Timeframe","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"ownHome\")","attrs":{"hidden":"$activeStep !== \"ownHome\"","key":"ownHome"},"children":[{"$formkit":"group","id":"ownHome","name":"ownHome","children":[{"$el":"h3","children":"Do you own the home?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3","legendClass":"required","name":"Own_Home","options":["Yes","No","No but authorized"],"fieldsetClass":"$reset t-flex t-justify-center","innerClass":"t-items-center","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","optionClass":"t-pl-4 md:t-pl-12","messagesClass":"t-flex t-justify-center","id":"Own_Home","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"address\")","attrs":{"hidden":"$activeStep !== \"address\"","key":"address"},"children":[{"$formkit":"group","id":"address","name":"address","children":[{"$el":"h3","children":"What is the street address of the home?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"text","validation":[["required"],["matches",{}]],"validationMessages":{"matches":"Invalid Address","required":"Address is required"},"labelClass":"required","placeholder":"10 Example St","name":"Address","autocomplete":"street-address","data-tf-sensitive":"false","minlength":5,"maxlength":100,"wrapperClass":"t-flex t-justify-center","messagesClass":"t-flex t-justify-center","inputClass":"t-text-center","helpClass":"t-mt-2.5 !t-text-sm t-text-center","id":"Address","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"firstAndLast\")","attrs":{"hidden":"$activeStep !== \"firstAndLast\"","key":"firstAndLast"},"children":[{"$formkit":"group","id":"firstAndLast","name":"firstAndLast","children":[{"$el":"h3","children":"Who is looking for a roofer?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 !t-text-dark"}},{"$el":"div","attrs":{"class":"t-flex t-flex-col t-justify-center t-items-center t-pt-3"},"children":[{"$el":"div","attrs":{"class":"t-flex t-flex-col sm:t-flex-row t-flex-wrap t-gap-x-[2%] t-justify-center sm:!t-max-w-[70%]"},"children":[{"$formkit":"FloatingLabelText","validation":"required","validationMessages":{"required":"First Name is required"},"labelClass":"required","placeholder":"First Name","name":"First_Name","autocomplete":"given-name","inputClass":"t-text-center","outerClass":"sm:!t-max-w-[49%]","id":"First_Name"},{"$formkit":"FloatingLabelText","validation":"required","validationMessages":{"required":"Last Name is required"},"labelClass":"required","placeholder":"Last Name","name":"Last_Name","autocomplete":"family-name","inputClass":"t-text-center","outerClass":"sm:!t-max-w-[49%]","id":"Last_Name","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]}]}]},{"$el":"section","if":"$stepEnabled(\"contactInfo\")","attrs":{"hidden":"$activeStep !== \"contactInfo\"","key":"contactInfo"},"children":[{"$formkit":"group","id":"contactInfo","name":"contactInfo","children":[{"$el":"h3","children":"$getKey($meta, \"finalHeadlines.\" + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalHeadline)","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-xl md:!t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-4 t-px-1 !t-text-[#465f87] f-contact-info-headline"}},{"$el":"h5","children":"$getKey($meta, \"finalSubHeadlines.\" + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalSubHeadline)","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-base md:!t-text-lg t-font-semibold t-pb-6 t-pt-0 t-px-3 !t-text-[#353739] f-contact-info-subheadline"}},{"$el":"script","if":"$activeStep === $lastStep()","children":"(function() {\n if (window.xxTrustedFormLoaded) {\n return\n }\n var vid = '';\n if (typeof window.zar !== 'undefined') {\n vid = window.zar.getVID();\n }\n window.xxTrustedFormLoaded = true;\n var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'\n var tf = document.createElement('script');\n tf.type = 'text/javascript'; tf.async = true;\n tf.src = (\"https:\" == document.location.protocol ? 'https' : 'http') + \"://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=\" + vid + \"&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=\" + sandbox + \"&l=\" + new Date().getTime() + Math.random();\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);\n})();"},{"$el":"div","attrs":{"class":"t-flex t-flex-col t-justify-center t-items-center"},"children":[{"$formkit":"FloatingLabelText","validation":"required|email","validationMessages":{"required":"Email is required","email":"Invalid Email"},"labelClass":"required","name":"Email","placeholder":"Email Address","autocomplete":"email","data-tf-sensitive":"false","inputClass":"t-text-center","wrapperClass":"t-flex t-justify-center","outerClass":"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]","innerClass":"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]","id":"Email"},{"$formkit":"FloatingLabelText","validation":"required|matches:/^[0-9]{3}[0-9]{3}[0-9]{4}$/|valid_phone","validationMessages":{"required":"Phone Number is required","matches":"Invalid Phone Format, use (XXX) YYY-ZZZZ","valid_phone":"Invalid Phone Number"},"labelClass":"required","datatype":"tel","name":"Primary_Phone","placeholder":"Phone Number","maxlength":14,"help":null,"autocomplete":"tel-national","data-tf-sensitive":"false","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-2px]","inputClass":"t-text-center","wrapperClass":"t-flex t-justify-center","outerClass":"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]","innerClass":"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]","id":"Primary_Phone"}]},{"$formkit":"checkbox","label":"$meta.tcpaLanguage","__raw__sectionsSchema":{"label":{"attrs":{"innerHTML":"$label"}}},"name":"TCPA_Opt_In","data-tf-sensitive":"false","validation":"required|accepted","validationMessages":{"required":"Consent is required","accepted":"Consent is required"},"classes":{"outer":"!t-flex !t-flex-col !t-justify-center !t-items-center","wrapper":"t-w-[95%] sm:t-w-[80%]","messages":"t-w-[95%] sm:t-w-[80%]","label":"!t-text-[0.7rem] t-text-slate-500 t-font-normal !t-leading-[0.9rem]"}}]}]},{"$el":"div","attrs":{"class":{"if":"$activeStep === $firstStep()","then":"step-nav !t-justify-center","else":{"if":"$activeStep === $lastStep()","then":"step-nav !t-justify-center","else":"step-nav !t-justify-between"}}},"children":[{"$formkit":"button","name":"back_button","onClick":"$setPreviousStep($prevStepFunc($get(form)))","children":"Back","outerClass":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"t-hidden sm:t-block","else":""},"style":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input"}},{"$formkit":"button","name":"next_button","onClick":"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))","children":{"if":"$activeStep === $firstStep()","then":"Get Quotes Now","else":"Next"},"outerClass":{"if":"$activeStep === $lastStep()","then":"t-hidden","else":""},"style":{"if":"$activeStep === $lastStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input"}},{"$formkit":"submit","name":"submit_button","label":"Get A Quote","if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input !t-w-60","outer":"!t-mt-0 !t-mb-0"}}]},{"if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"children":[{"$el":"div","if":"$activeStep === $lastStep()","attrs":{"class":"t-flex t-justify-center t-items-center t-text-sm t-text-gray-500 t-pb-6 sm:t-pb-8"},"children":[{"$el":"img","attrs":{"loading":"lazy","alt":"","style":{"border":0},"width":"25","height":"25","src":"https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg"}},{"$el":"span","children":"Secure & Encrypted","attrs":{"class":"t-pl-2 t-pt-1 t-font-medium"}}]}]},{"$el":"pre","if":"$urlParam(\"fdbg\", \"\") == 1","children":[{"$el":"pre","children":"$stringify( $get(form).value )","attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["activeStep: ","$activeStep"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepHistory: ","$stepHistory"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepQueue: ","$stepQueue"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["steps: ","$stepKeys()"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}}]}]}]}]
|
|
1
|
+
[{"type":"meta","data":{"tcpaLanguage":"By clicking this button, I agree to the Terms of Use, and consent to be contacted by up to four home service <a href=\"/providers\" target=\"_blank\" class=\"t-underline\">companies and partners</a> of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services.","defaultCommentsPlaceholder":"$getKey($meta, \"commentsPlaceholders.\" + $get(Category).value, $meta.defaultCommentsPlaceholder)","commentsPlaceholders":{"Roofing":"Example: \"I need to repair a leaky roof\""},"defaultFinalHeadline":"We Found Matching Contractors!","finalHeadlines":{"Roofing":"Roofers Are Standing By!"},"defaultFinalSubHeadline":"Compare quotes and save. Verify contact info:","finalSubHeadlines":{"Roofing":"Confirm your contact information:"}}},{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-80px","left":0}}}],"attrs":{"class":"t-relative"}},{"$cmp":"FormKit","props":{"type":"form","id":"form","config":{"validationVisibility":"submit"},"onSubmit":"$submit($submitUrl, $prepData, $handleRedirect, \"text/plain; charset=UTF-8\")","plugins":"$plugins","actions":false,"anchorElement":"form-anchor","useLocalStorage":true,"prepop":{"fromURL":true},"errorCodes":{"403":{"message":"An Error Occurred","abort":false},"409":{"abort":false},"429":"An Error Occurred","504":{"message":"An Error Occurred","abort":false}},"formClass":"!t-max-w-[40rem]","formId":"roofing","redirectMap":{"*":"https://listings.zipcontractor.com/api/v1/redirect?zone_id=4&vertical=HomeImprovement&category=${properties.Category}&zip_code=${properties.Zip}&sub_id=${properties.vid}"},"name":"roofing"},"children":[{"$el":"div","attrs":{"class":"t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center","style":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"display: none"}},"children":[{"$el":"div","attrs":{"class":"t-flex t-justify-center"},"children":[{"$el":"span","attrs":{"id":"progress-bar-text","class":"t-text-sm t-mb-1"},"children":["0% Complete"]}]},{"$el":"div","attrs":{"class":"t-bg-gray-100 t-w-9/12 t-rounded"},"children":[{"$el":"div","attrs":{"id":"progress-bar","class":"t-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]","style":{"transition":"width 0.5s ease"}}}]}]},{"$el":"h1","attrs":{"class":"t-flex t-justify-center t-text-center t-text-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 f-first-headline"},"children":"$urlParam(\"hl\", \"Compare Quotes and Save\")","if":"$activeStep === $firstStep()"},{"$el":"h3","attrs":{"class":"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 t-pb-3 !t-font-bold !t-text-[#465f87] f-first-subheadline"},"children":"$urlParam(\"shl\", \"Please Enter Your Zip Code:\")","if":"$activeStep === $firstStep()","subheadlineClass":"!t-font-bold !t-text-[#465f87]"},{"$formkit":"hidden","name":"vertical","value":"HomeImprovement"},{"$formkit":"hidden","name":"TCPA_Opt_In","value":true},{"$formkit":"hidden","name":"TCPA_Language","value":"$meta.tcpaLanguage"},{"$formkit":"hidden","name":"gclid","value":null},{"$formkit":"hidden","name":"campaignid","value":null},{"$formkit":"hidden","name":"s","value":null},{"$el":"div","attrs":{"class":"form-body"},"children":[{"$el":"section","if":"$stepEnabled(\"roofingFirstStep\")","attrs":{"hidden":"$activeStep !== \"roofingFirstStep\"","key":"roofingFirstStep"},"children":[{"$formkit":"group","id":"roofingFirstStep","name":"roofingFirstStep","children":[{"$formkit":"hidden","name":"Category","id":"Category","value":"Roofing"},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"labelClass":"required","help":null,"placeholder":"#####","name":"Zip","maxlength":5,"inputmode":"numeric","autocomplete":"postal-code","wrapperClass":"t-flex t-justify-center","messagesClass":"t-flex t-justify-center","inputClass":"t-text-center","helpClass":"t-mt-2.5 !t-text-sm t-text-center","id":"Zip","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"firstAndLast\")","attrs":{"hidden":"$activeStep !== \"firstAndLast\"","key":"firstAndLast"},"children":[{"$formkit":"group","id":"firstAndLast","name":"firstAndLast","children":[{"$el":"h3","children":"Who is looking for a roofer?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 !t-text-dark"}},{"$el":"div","attrs":{"class":"t-flex t-flex-col t-justify-center t-items-center t-pt-3"},"children":[{"$el":"div","attrs":{"class":"t-flex t-flex-col sm:t-flex-row t-flex-wrap t-gap-x-[2%] t-justify-center sm:!t-max-w-[70%]"},"children":[{"$formkit":"FloatingLabelText","validation":"required","validationMessages":{"required":"First Name is required"},"labelClass":"required","placeholder":"First Name","name":"First_Name","autocomplete":"given-name","inputClass":"t-text-center","outerClass":"sm:!t-max-w-[49%]","id":"First_Name"},{"$formkit":"FloatingLabelText","validation":"required","validationMessages":{"required":"Last Name is required"},"labelClass":"required","placeholder":"Last Name","name":"Last_Name","autocomplete":"family-name","inputClass":"t-text-center","outerClass":"sm:!t-max-w-[49%]","id":"Last_Name","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]}]}]},{"$el":"section","if":"$stepEnabled(\"contactInfo\")","attrs":{"hidden":"$activeStep !== \"contactInfo\"","key":"contactInfo"},"children":[{"$formkit":"group","id":"contactInfo","name":"contactInfo","children":[{"$el":"h3","children":"$getKey($meta, \"finalHeadlines.\" + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalHeadline)","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-xl md:!t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-4 t-px-1 !t-text-[#465f87] f-contact-info-headline"}},{"$el":"h5","children":"$getKey($meta, \"finalSubHeadlines.\" + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalSubHeadline)","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-base md:!t-text-lg t-font-semibold t-pb-6 t-pt-0 t-px-3 !t-text-[#353739] f-contact-info-subheadline"}},{"$el":"script","if":"$activeStep === $lastStep()","children":"(function() {\n if (window.xxTrustedFormLoaded) {\n return\n }\n var vid = '';\n if (typeof window.zar !== 'undefined') {\n vid = window.zar.getVID();\n }\n window.xxTrustedFormLoaded = true;\n var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'\n var tf = document.createElement('script');\n tf.type = 'text/javascript'; tf.async = true;\n tf.src = (\"https:\" == document.location.protocol ? 'https' : 'http') + \"://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=\" + vid + \"&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=\" + sandbox + \"&l=\" + new Date().getTime() + Math.random();\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);\n})();"},{"$el":"div","attrs":{"class":"t-flex t-flex-col t-justify-center t-items-center"},"children":[{"$formkit":"FloatingLabelText","validation":"required|email","validationMessages":{"required":"Email is required","email":"Invalid Email"},"labelClass":"required","name":"Email","placeholder":"Email Address","autocomplete":"email","data-tf-sensitive":"false","inputClass":"t-text-center","wrapperClass":"t-flex t-justify-center","outerClass":"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]","innerClass":"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]","id":"Email"},{"$formkit":"FloatingLabelText","validation":"required|matches:/^[0-9]{3}[0-9]{3}[0-9]{4}$/|valid_phone","validationMessages":{"required":"Phone Number is required","matches":"Invalid Phone Format, use (XXX) YYY-ZZZZ","valid_phone":"Invalid Phone Number"},"labelClass":"required","datatype":"tel","name":"Primary_Phone","placeholder":"Phone Number","maxlength":14,"help":null,"autocomplete":"tel-national","data-tf-sensitive":"false","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-2px]","inputClass":"t-text-center","wrapperClass":"t-flex t-justify-center","outerClass":"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]","innerClass":"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]","id":"Primary_Phone"}]}]}]},{"$el":"div","attrs":{"class":{"if":"$activeStep === $firstStep()","then":"step-nav !t-justify-center","else":{"if":"$activeStep === $lastStep()","then":"step-nav !t-justify-center !t-my-0 !t-py-0","else":"step-nav !t-justify-between"}}},"children":[{"$formkit":"button","name":"back_button","onClick":"$setPreviousStep($prevStepFunc($get(form)))","children":"Back","outerClass":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"t-hidden sm:t-block","else":""},"style":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input"}},{"$formkit":"button","name":"next_button","onClick":"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))","children":{"if":"$activeStep === $firstStep()","then":"Get Quotes Now","else":"Next"},"outerClass":{"if":"$activeStep === $lastStep()","then":"t-hidden","else":""},"style":{"if":"$activeStep === $lastStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input"}},{"$formkit":"submit","name":"submit_button","label":"Get A Quote","if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input !t-w-60","outer":"!t-mt-0 !t-mb-0"}}]},{"if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"children":[{"$el":"div","attrs":{"class":"!t-text-[0.7rem] t-text-slate-500 t-font-normal !t-leading-tight !t-pt-0 !t-pb-3 !t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%] !t-mx-auto","innerHTML":"$meta.tcpaLanguage"}}]},{"if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"children":[{"$el":"div","if":"$activeStep === $lastStep()","attrs":{"class":"t-flex t-justify-center t-items-center t-text-sm t-text-gray-500 t-pb-6 sm:t-pb-8"},"children":[{"$el":"img","attrs":{"loading":"lazy","alt":"","style":{"border":0},"width":"25","height":"25","src":"https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg"}},{"$el":"span","children":"Secure & Encrypted","attrs":{"class":"t-pl-2 t-pt-1 t-font-medium"}}]}]},{"$el":"pre","if":"$urlParam(\"fdbg\", \"\") == 1","children":[{"$el":"pre","children":"$stringify( $get(form).value )","attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["activeStep: ","$activeStep"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepHistory: ","$stepHistory"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepQueue: ","$stepQueue"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["steps: ","$stepKeys()"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}}]}]}]}]
|
package/dist/forms/vets.es.js
CHANGED
|
@@ -138,38 +138,85 @@ function comments(updates = {}) {
|
|
|
138
138
|
"comments",
|
|
139
139
|
[
|
|
140
140
|
comments$1(updates.scope, false, {
|
|
141
|
-
label: updates.label
|
|
141
|
+
label: typeof updates.label === "undefined" ? DEFAULT_COMMENTS_LABEL : updates.label,
|
|
142
142
|
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
143
|
+
inputClass: "!t-h-32",
|
|
143
144
|
}),
|
|
144
145
|
],
|
|
145
146
|
updates
|
|
146
147
|
)
|
|
147
148
|
}
|
|
148
149
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
const formNavigationNoFinalBack = (updates = {}) => ({
|
|
151
|
+
$el: "div",
|
|
152
|
+
attrs: {
|
|
153
|
+
class: {
|
|
154
|
+
if: "$activeStep === $firstStep()",
|
|
155
|
+
then: "step-nav " + (updates.firstStepButtonClass || "!t-justify-center sm:!t-justify-between"),
|
|
156
|
+
else: {
|
|
157
|
+
if: "$activeStep === $lastStep()",
|
|
158
|
+
then: "step-nav " + (updates.lastStepButtonClass || "!t-justify-center"),
|
|
159
|
+
else: "step-nav !t-justify-between",
|
|
160
|
+
},
|
|
154
161
|
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
},
|
|
163
|
+
children: [
|
|
164
|
+
{
|
|
165
|
+
$formkit: "button",
|
|
166
|
+
name: "back_button",
|
|
167
|
+
onClick: "$setPreviousStep($prevStepFunc($get(form)))",
|
|
168
|
+
children: "Back",
|
|
169
|
+
outerClass: {
|
|
170
|
+
if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
|
|
171
|
+
then: "t-hidden sm:t-block",
|
|
172
|
+
else: "",
|
|
164
173
|
},
|
|
165
|
-
{
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
label: updates.submitLabel || "Chat Now",
|
|
174
|
+
style: {
|
|
175
|
+
if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
|
|
176
|
+
then: "display: none;",
|
|
169
177
|
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
178
|
+
classes: {
|
|
179
|
+
input: (updates.inputClass || "") + " f-navigation-input",
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
$formkit: "button",
|
|
184
|
+
name: "next_button",
|
|
185
|
+
onClick: "$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",
|
|
186
|
+
children: {
|
|
187
|
+
if: "$activeStep === $firstStep()",
|
|
188
|
+
then: updates.startText || "Start",
|
|
189
|
+
else: "Next",
|
|
190
|
+
},
|
|
191
|
+
outerClass: {
|
|
192
|
+
if: "$activeStep === $lastStep()",
|
|
193
|
+
then: "t-hidden",
|
|
194
|
+
else: "",
|
|
195
|
+
},
|
|
196
|
+
style: {
|
|
197
|
+
if: "$activeStep === $lastStep()",
|
|
198
|
+
then: "display: none;",
|
|
199
|
+
},
|
|
200
|
+
classes: {
|
|
201
|
+
input: (updates.inputClass || "") + " f-navigation-input",
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
$formkit: "submit",
|
|
206
|
+
name: "submit_button",
|
|
207
|
+
label: updates.submitLabel || "Submit",
|
|
208
|
+
if: "$activeStep === $lastStep()",
|
|
209
|
+
style: {
|
|
210
|
+
if: "$activeStep !== $lastStep()",
|
|
211
|
+
then: "display: none;",
|
|
212
|
+
},
|
|
213
|
+
classes: {
|
|
214
|
+
input: (updates.inputClass || "") + " f-navigation-input !t-w-60",
|
|
215
|
+
outer: "!t-mt-0 !t-mb-0",
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
});
|
|
173
220
|
|
|
174
221
|
const formDetails = () => ({
|
|
175
222
|
$el: "pre",
|
|
@@ -749,47 +796,71 @@ filterNextStepsMap(
|
|
|
749
796
|
}
|
|
750
797
|
);
|
|
751
798
|
|
|
799
|
+
const meta = {
|
|
800
|
+
type: "meta",
|
|
801
|
+
data: {},
|
|
802
|
+
};
|
|
803
|
+
|
|
752
804
|
const schema = [
|
|
753
|
-
|
|
805
|
+
meta,
|
|
806
|
+
formAnchor({
|
|
807
|
+
children: [
|
|
808
|
+
{
|
|
809
|
+
$el: "div",
|
|
810
|
+
attrs: {
|
|
811
|
+
id: "form-anchor",
|
|
812
|
+
class: "t-absolute",
|
|
813
|
+
// HACK: account for sticky header on theme
|
|
814
|
+
style: { top: "-80px", left: 0 },
|
|
815
|
+
},
|
|
816
|
+
},
|
|
817
|
+
],
|
|
818
|
+
}),
|
|
754
819
|
{
|
|
755
|
-
$cmp:
|
|
820
|
+
$cmp: "FormKit",
|
|
756
821
|
props: formProps({
|
|
757
|
-
formId:
|
|
822
|
+
formId: "vets",
|
|
758
823
|
redirectMap: {
|
|
759
|
-
|
|
824
|
+
"*": RedirectUrlComments("zipanswers.com", "Pets", "Veterinarians"),
|
|
760
825
|
},
|
|
761
826
|
popUnderMap: {
|
|
762
|
-
|
|
827
|
+
"*": RedirectUrl("zipanswers.com", "Pets", "Pet Care"),
|
|
763
828
|
},
|
|
764
|
-
formClass:
|
|
829
|
+
formClass: "!t-max-w-[38rem]",
|
|
765
830
|
}),
|
|
766
831
|
children: [
|
|
767
832
|
headline({
|
|
768
833
|
children: '$urlParam("hl", "Have Questions About Your Pet?")',
|
|
769
|
-
if:
|
|
834
|
+
if: "$activeStep === $firstStep()",
|
|
770
835
|
}),
|
|
771
836
|
subHeadline({
|
|
772
|
-
children: '$urlParam("shl", "
|
|
773
|
-
if:
|
|
837
|
+
children: '$urlParam("shl", "Describe your issue below:")',
|
|
838
|
+
if: "$activeStep === $firstStep()",
|
|
839
|
+
subheadlineClass: "!t-font-bold !t-text-[#465f87]",
|
|
774
840
|
}),
|
|
775
841
|
...hiddenInputsVets,
|
|
776
842
|
{
|
|
777
|
-
$el:
|
|
843
|
+
$el: "div",
|
|
778
844
|
attrs: {
|
|
779
|
-
class:
|
|
845
|
+
class: "form-body",
|
|
780
846
|
},
|
|
781
847
|
children: [
|
|
782
848
|
comments({
|
|
783
|
-
label:
|
|
849
|
+
// label: "Please describe your issue in a few words:",
|
|
850
|
+
label: null,
|
|
784
851
|
placeholder: 'Example: "My dog is limping and I need to know if I should take him to the vet"',
|
|
785
|
-
nextOnEnter: false
|
|
852
|
+
nextOnEnter: false,
|
|
786
853
|
}),
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
854
|
+
formNavigationNoFinalBack({
|
|
855
|
+
submitLabel: "Chat Online",
|
|
856
|
+
inputClass: "!t-text-black !t-font-extrabold !t-bg-[#ffce51]",
|
|
857
|
+
firstStepButtonClass: "!t-justify-center",
|
|
858
|
+
}),
|
|
859
|
+
formDetails(),
|
|
860
|
+
],
|
|
861
|
+
},
|
|
862
|
+
],
|
|
863
|
+
},
|
|
793
864
|
];
|
|
794
865
|
|
|
795
866
|
export { schema as default };
|
package/dist/forms/vets.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var vets=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,a,r=4){return"https://listings."+e+"/api/v1/redirect?zone_id="+r+"&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(a)}const a=(t,a,r)=>(t=>{var a;return(a=t).name&&!a.id&&(a.id=a.name),e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t)})(e({name:t?t+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},r)),r=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,s=e=>{if(r(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const a=e.children[t];if(r(a))return a;const n=s(a);if(n)return n}return null};const n={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};const i={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const l=[{$formkit:"hidden",name:"vertical",value:"Pets"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],o=["haveAttorney","degreeOfInterest","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],c=["haveAttorney","degreeOfInterest","lawyerPaymentMethod","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],m=["haveAttorney","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],u={values:{Type_Of_Legal_Problem:{Adoption:["maritalStatus","haveChildren",...c],"Asbestos and Mesothelioma":["incidentDate","doctorTreatment",...o],"Auto and Car Accidents":["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled",...m],Bankruptcy:["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",...o],"Business Lawyers":["businessServices","businessType","numEmployeesOfBusiness",...o],"Child Custody":["childRelationship","childHome","childPrimaryCaregiver",...c],"Child Support":["childRelationship","childHome","childPrimaryCaregiver",...c],"Civil Rights and Discrimination":["civilRightsType",...o],"Civil Lawsuit":["civilDefense","lawsuitOtherParty",...o],"File a Lawsuit":["civilLawsuitTOLPDisplay","lawsuitOtherParty",...o],"Defend a Lawsuit":["lawsuitOtherParty",...o],"Consumer Lawyers":["consumerLawyerType","incidentDate","lawsuitOtherParty",...o],"Criminal and Felony":["criminalTOLPDisplay","crimeCommittedDate","roleInMatterCriminal","pendingCharges",...c],"Debt and Collections":["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",...o],"Divorce and Separation":["maritalStatus","haveChildren",...c],"DUI and DWI":["incidentDate","priorAlcoholOffenses","typeOfAlcoholTest","bloodContentAlcoholTest","pendingCharges",...o],"Employment and Workplace":["employmentAndWorkplaceTOLPDisplay","numEmployeesOfBusiness","employerType","employeeAtCompany",...o],Expungement:["incidentDate","criminalChargeType",...c],"Family Issues":["maritalStatus","haveChildren",...c],Foreclosure:["ownRealEstate","typeOfProperty","amountPaymentsPastDue","loanAmount","defaultNotice",...o],Guardianship:["maritalStatus","haveChildren",...c],"Immigration and Visas":["countryOfCitizenship","immigrationLocation","immigrationEntry","immigrationType","immigrationStatus","immigrationDetails",...o],"Landlord and Tenant":["landlordTenantIssue","landlordTenantParty",...o],"Lemon Law":["incidentDate","lawsuitOtherParty",...o],"Long Term Disability":["applicantOccupation","applicantAge","applicantLTDisabilityPolicy","applicantDisabilityHowObtain","applicantPreviouslyAppliedLtdBenefits","applicantReceivedDisabilityBenefits","applicantMonthlySalary",...m],"Medical Malpractice":["incidentDate","claimStatus","doctorTreatment","medicalMalpracticeInjuries",...o],"Patents and Intellectual Property":["patentAssistanceType","patentFor",...o],"Personal Injury":["incidentDate","claimStatus","atFault","primaryInjury","doctorTreatment",...m],"Probate and Estates":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",...o],"Property Damage":["wouldLikeLawyerTo",...o],"Real Estate":["realEstateTOLPDisplay","realEstateArea","wouldLikeLawyerTo",...o],"Social Security Disability and Insurance":["applicantAge","disabilityConditionStopWork","disabilityWorkHistory","socialSecurityDisabilityReceivingBenefits","doctorTreatment",...m],"Tax and IRS":["totalDebt","taxProblemDetails","taxLevel","taxIssueType",...o],"Traffic and Tickets":["driversLicenseType","trafficViolations","haveCourtDate",...o],Unemployment:["numEmployeesOfBusiness","employerType","degreeOfInterest","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],"Victim of a Crime":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...c],"Wills and Trusts":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",...o],"Workers Compensation":["incidentDate","claimStatus","primaryInjury","causeOfInjury","doctorTreatment",...m],"Workplace Harassment":["numEmployeesOfBusiness","employerType","employeeAtCompany",...o],"Workplace Discrimination":["numEmployeesOfBusiness","employerType","employeeAtCompany",...o],"Wrongful Death":["incidentDate","relationshipToVictim","criminalChargesFiled","causeOfDeath",...m],"Wrongful Termination":["numEmployeesOfBusiness","employerType",...o]},"*":o}};function p(e,t=[],a={}){const r={...e};return r.values=function e(r){const s={};for(const n in r)Array.isArray(r[n])?s[n]=r[n].filter((e=>!t.includes(e))).map((e=>a[e]||e)):"object"==typeof r[n]?s[n]=e(r[n]):s[n]=r[n];return s}(e.values),r}p(u,["legalCrossSells"],{commentsWithBankruptcy:"comments"});const d=u.values.Type_Of_Legal_Problem;d["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),d["Workers Compensation"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),d["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Child Custody"],d["Child Support"],u.values["*"],d["Family Issues"],d["Child Support"],d["Child Custody"],u.values["*"],d["Divorce and Separation"],d["Defend a Lawsuit"],d["File a Lawsuit"];p({values:{Type_Of_Legal_Problem:{"Defend a Lawsuit":d["Defend a Lawsuit"],"File a Lawsuit":d["File a Lawsuit"]},"*":["lawsuitOtherParty",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});p({values:{Type_Of_Legal_Problem_Display:{"Automobile Accident":d["Auto and Car Accidents"],"Contract Disputes":d["Business Lawyers"],"Dog Bite":d["Personal Injury"],"Employment and Workplace":d["Employment and Workplace"],Fraud:d["Consumer Lawyers"],"Medical Malpractice":d["Medical Malpractice"],"Personal Injury":d["Personal Injury"],"Property Damage":d["Property Damage"],"Real Estate":d["Real Estate"],"Not Sure or Other":u.values["*"]},"*":["lawsuitOtherParty",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});p({values:{Type_Of_Legal_Problem_Display:{"Victim of a Crime":d["Victim of a Crime"],"DUI and DWI":d["DUI and DWI"],Expungement:d.Expungement,"Not Sure or Other":u.values["*"]},"*":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...c]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});p({values:{Type_Of_Legal_Problem_Display:{"Wrongful Termination":d["Wrongful Termination"],"Workers Compensation":d["Workers Compensation"],"Personal Injury":d["Personal Injury"],Unemployment:d.Unemployment},"*":["numEmployeesOfBusiness","employerType","employeeAtCompany",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"}),d["Workplace Harassment"],d["Workplace Discrimination"],d["Probate and Estates"],d["Wills and Trusts"],d["Wrongful Death"],d["Patents and Intellectual Property"],d["Business Lawyers"],d["Business Lawyers"],u.values["*"];p({values:{Type_Of_Legal_Problem_Display:{Foreclosure:d.Foreclosure,"Landlord and Tenant":d["Landlord and Tenant"],"Wills, Trusts, and Estates":d["Wills and Trusts"],"Property Damage":d["Property Damage"]},"*":["realEstateArea","wouldLikeLawyerTo",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});const y=[e(i,C),{$cmp:"FormKit",props:function(t){const a=e(n,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"vets",redirectMap:{"*":(f="zipanswers.com",h="Pets",g="Veterinarians",t(f,h,g)+"&Comments=${properties.Comments}")},popUnderMap:{"*":t("zipanswers.com","Pets","Pet Care")},formClass:"!t-max-w-[36rem]"}),children:[function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")+" f-first-headline"}}}(t),t)}({children:'$urlParam("hl", "Have Questions About Your Pet?")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 t-pb-3 "+(e.subheadlineClass||"")+" f-first-subheadline"}}}(t),t)}({children:'$urlParam("shl", "Get Answers Within Minutes!")',if:"$activeStep === $firstStep()"}),...l,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,a,r={}){const{nextOnEnter:n=!0,nextOnInput:i=!1,stepKey:l,nextStepMap:o,triggerRedirectMap:c,autoFocus:m}=r;if(a&&a.length&&(n||i)){const e=s(a[a.length-1]);e&&!0===n&&(e.onKeypress="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"),e&&!0===i&&(e.onInput="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))")}const u={children:[{$formkit:"group",id:t,name:t,nextStepMap:o,triggerRedirectMap:c,autoFocus:m,children:a}]};return void 0!==r.if&&(u.if=r.if),e(((e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}}))(t,l),u)}("comments",[a(t.scope,0,{label:t.label||"Please briefly describe your issue in a few words:",placeholder:t.placeholder||'$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)'})],t)}({label:"Please describe your issue in a few words:",placeholder:'Example: "My dog is limping and I need to know if I should take him to the vet"',nextOnEnter:!1}),function(e={}){return{$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"hidden_button",children:"Hidden",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"submit",name:"submit_button",label:e.submitLabel||"Chat Now"}]}}(),{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var f,h,g,C;return y}();
|
|
1
|
+
var vets=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,a,s=4){return"https://listings."+e+"/api/v1/redirect?zone_id="+s+"&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(a)}const a=(t,a,s)=>(t=>{var a;return(a=t).name&&!a.id&&(a.id=a.name),e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t)})(e({name:t?t+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},s)),s=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,n=e=>{if(s(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const a=e.children[t];if(s(a))return a;const r=n(a);if(r)return r}return null};const r={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};const i={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const l=[{$formkit:"hidden",name:"vertical",value:"Pets"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],o=["haveAttorney","degreeOfInterest","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],c=["haveAttorney","degreeOfInterest","lawyerPaymentMethod","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],p=["haveAttorney","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],m={values:{Type_Of_Legal_Problem:{Adoption:["maritalStatus","haveChildren",...c],"Asbestos and Mesothelioma":["incidentDate","doctorTreatment",...o],"Auto and Car Accidents":["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled",...p],Bankruptcy:["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",...o],"Business Lawyers":["businessServices","businessType","numEmployeesOfBusiness",...o],"Child Custody":["childRelationship","childHome","childPrimaryCaregiver",...c],"Child Support":["childRelationship","childHome","childPrimaryCaregiver",...c],"Civil Rights and Discrimination":["civilRightsType",...o],"Civil Lawsuit":["civilDefense","lawsuitOtherParty",...o],"File a Lawsuit":["civilLawsuitTOLPDisplay","lawsuitOtherParty",...o],"Defend a Lawsuit":["lawsuitOtherParty",...o],"Consumer Lawyers":["consumerLawyerType","incidentDate","lawsuitOtherParty",...o],"Criminal and Felony":["criminalTOLPDisplay","crimeCommittedDate","roleInMatterCriminal","pendingCharges",...c],"Debt and Collections":["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",...o],"Divorce and Separation":["maritalStatus","haveChildren",...c],"DUI and DWI":["incidentDate","priorAlcoholOffenses","typeOfAlcoholTest","bloodContentAlcoholTest","pendingCharges",...o],"Employment and Workplace":["employmentAndWorkplaceTOLPDisplay","numEmployeesOfBusiness","employerType","employeeAtCompany",...o],Expungement:["incidentDate","criminalChargeType",...c],"Family Issues":["maritalStatus","haveChildren",...c],Foreclosure:["ownRealEstate","typeOfProperty","amountPaymentsPastDue","loanAmount","defaultNotice",...o],Guardianship:["maritalStatus","haveChildren",...c],"Immigration and Visas":["countryOfCitizenship","immigrationLocation","immigrationEntry","immigrationType","immigrationStatus","immigrationDetails",...o],"Landlord and Tenant":["landlordTenantIssue","landlordTenantParty",...o],"Lemon Law":["incidentDate","lawsuitOtherParty",...o],"Long Term Disability":["applicantOccupation","applicantAge","applicantLTDisabilityPolicy","applicantDisabilityHowObtain","applicantPreviouslyAppliedLtdBenefits","applicantReceivedDisabilityBenefits","applicantMonthlySalary",...p],"Medical Malpractice":["incidentDate","claimStatus","doctorTreatment","medicalMalpracticeInjuries",...o],"Patents and Intellectual Property":["patentAssistanceType","patentFor",...o],"Personal Injury":["incidentDate","claimStatus","atFault","primaryInjury","doctorTreatment",...p],"Probate and Estates":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",...o],"Property Damage":["wouldLikeLawyerTo",...o],"Real Estate":["realEstateTOLPDisplay","realEstateArea","wouldLikeLawyerTo",...o],"Social Security Disability and Insurance":["applicantAge","disabilityConditionStopWork","disabilityWorkHistory","socialSecurityDisabilityReceivingBenefits","doctorTreatment",...p],"Tax and IRS":["totalDebt","taxProblemDetails","taxLevel","taxIssueType",...o],"Traffic and Tickets":["driversLicenseType","trafficViolations","haveCourtDate",...o],Unemployment:["numEmployeesOfBusiness","employerType","degreeOfInterest","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],"Victim of a Crime":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...c],"Wills and Trusts":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",...o],"Workers Compensation":["incidentDate","claimStatus","primaryInjury","causeOfInjury","doctorTreatment",...p],"Workplace Harassment":["numEmployeesOfBusiness","employerType","employeeAtCompany",...o],"Workplace Discrimination":["numEmployeesOfBusiness","employerType","employeeAtCompany",...o],"Wrongful Death":["incidentDate","relationshipToVictim","criminalChargesFiled","causeOfDeath",...p],"Wrongful Termination":["numEmployeesOfBusiness","employerType",...o]},"*":o}};function u(e,t=[],a={}){const s={...e};return s.values=function e(s){const n={};for(const r in s)Array.isArray(s[r])?n[r]=s[r].filter((e=>!t.includes(e))).map((e=>a[e]||e)):"object"==typeof s[r]?n[r]=e(s[r]):n[r]=s[r];return n}(e.values),s}u(m,["legalCrossSells"],{commentsWithBankruptcy:"comments"});const d=m.values.Type_Of_Legal_Problem;d["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),d["Workers Compensation"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),d["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Child Custody"],d["Child Support"],m.values["*"],d["Family Issues"],d["Child Support"],d["Child Custody"],m.values["*"],d["Divorce and Separation"],d["Defend a Lawsuit"],d["File a Lawsuit"];u({values:{Type_Of_Legal_Problem:{"Defend a Lawsuit":d["Defend a Lawsuit"],"File a Lawsuit":d["File a Lawsuit"]},"*":["lawsuitOtherParty",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});u({values:{Type_Of_Legal_Problem_Display:{"Automobile Accident":d["Auto and Car Accidents"],"Contract Disputes":d["Business Lawyers"],"Dog Bite":d["Personal Injury"],"Employment and Workplace":d["Employment and Workplace"],Fraud:d["Consumer Lawyers"],"Medical Malpractice":d["Medical Malpractice"],"Personal Injury":d["Personal Injury"],"Property Damage":d["Property Damage"],"Real Estate":d["Real Estate"],"Not Sure or Other":m.values["*"]},"*":["lawsuitOtherParty",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});u({values:{Type_Of_Legal_Problem_Display:{"Victim of a Crime":d["Victim of a Crime"],"DUI and DWI":d["DUI and DWI"],Expungement:d.Expungement,"Not Sure or Other":m.values["*"]},"*":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...c]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});u({values:{Type_Of_Legal_Problem_Display:{"Wrongful Termination":d["Wrongful Termination"],"Workers Compensation":d["Workers Compensation"],"Personal Injury":d["Personal Injury"],Unemployment:d.Unemployment},"*":["numEmployeesOfBusiness","employerType","employeeAtCompany",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"}),d["Workplace Harassment"],d["Workplace Discrimination"],d["Probate and Estates"],d["Wills and Trusts"],d["Wrongful Death"],d["Patents and Intellectual Property"],d["Business Lawyers"],d["Business Lawyers"],m.values["*"];u({values:{Type_Of_Legal_Problem_Display:{Foreclosure:d.Foreclosure,"Landlord and Tenant":d["Landlord and Tenant"],"Wills, Trusts, and Estates":d["Wills and Trusts"],"Property Damage":d["Property Damage"]},"*":["realEstateArea","wouldLikeLawyerTo",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});const y=[{type:"meta",data:{}},(v={children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-80px",left:0}}}]},e(i,v)),{$cmp:"FormKit",props:function(t){const a=e(r,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"vets",redirectMap:{"*":(f="zipanswers.com",h="Pets",g="Veterinarians",t(f,h,g)+"&Comments=${properties.Comments}")},popUnderMap:{"*":t("zipanswers.com","Pets","Pet Care")},formClass:"!t-max-w-[38rem]"}),children:[function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")+" f-first-headline"}}}(t),t)}({children:'$urlParam("hl", "Have Questions About Your Pet?")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 t-pb-3 "+(e.subheadlineClass||"")+" f-first-subheadline"}}}(t),t)}({children:'$urlParam("shl", "Describe your issue below:")',if:"$activeStep === $firstStep()",subheadlineClass:"!t-font-bold !t-text-[#465f87]"}),...l,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,a,s={}){const{nextOnEnter:r=!0,nextOnInput:i=!1,stepKey:l,nextStepMap:o,triggerRedirectMap:c,autoFocus:p}=s;if(a&&a.length&&(r||i)){const e=n(a[a.length-1]);e&&!0===r&&(e.onKeypress="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"),e&&!0===i&&(e.onInput="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))")}const m={children:[{$formkit:"group",id:t,name:t,nextStepMap:o,triggerRedirectMap:c,autoFocus:p,children:a}]};return void 0!==s.if&&(m.if=s.if),e(((e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}}))(t,l),m)}("comments",[a(t.scope,0,{label:void 0===t.label?"Please briefly describe your issue in a few words:":t.label,placeholder:t.placeholder||'$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)',inputClass:"!t-h-32"})],t)}({label:null,placeholder:'Example: "My dog is limping and I need to know if I should take him to the vet"',nextOnEnter:!1}),((e={})=>({$el:"div",attrs:{class:{if:"$activeStep === $firstStep()",then:"step-nav "+(e.firstStepButtonClass||"!t-justify-center sm:!t-justify-between"),else:{if:"$activeStep === $lastStep()",then:"step-nav "+(e.lastStepButtonClass||"!t-justify-center"),else:"step-nav !t-justify-between"}}},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($prevStepFunc($get(form)))",children:"Back",outerClass:{if:"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",then:"t-hidden sm:t-block",else:""},style:{if:"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",then:"display: none;"},classes:{input:(e.inputClass||"")+" f-navigation-input"}},{$formkit:"button",name:"next_button",onClick:"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",children:{if:"$activeStep === $firstStep()",then:e.startText||"Start",else:"Next"},outerClass:{if:"$activeStep === $lastStep()",then:"t-hidden",else:""},style:{if:"$activeStep === $lastStep()",then:"display: none;"},classes:{input:(e.inputClass||"")+" f-navigation-input"}},{$formkit:"submit",name:"submit_button",label:e.submitLabel||"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"},classes:{input:(e.inputClass||"")+" f-navigation-input !t-w-60",outer:"!t-mt-0 !t-mb-0"}}]}))({submitLabel:"Chat Online",inputClass:"!t-text-black !t-font-extrabold !t-bg-[#ffce51]",firstStepButtonClass:"!t-justify-center"}),{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var f,h,g,v;return y}();
|
package/dist/forms/vets.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-
|
|
1
|
+
[{"type":"meta","data":{}},{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-80px","left":0}}}],"attrs":{"class":"t-relative"}},{"$cmp":"FormKit","props":{"type":"form","id":"form","config":{"validationVisibility":"submit"},"onSubmit":"$submit($submitUrl, $prepData, $handleRedirect, \"text/plain; charset=UTF-8\")","plugins":"$plugins","actions":false,"anchorElement":"form-anchor","useLocalStorage":true,"prepop":{"fromURL":true},"errorCodes":{"403":{"message":"An Error Occurred","abort":false},"409":{"abort":false},"429":"An Error Occurred","504":{"message":"An Error Occurred","abort":false}},"formClass":"!t-max-w-[38rem]","formId":"vets","redirectMap":{"*":"https://listings.zipanswers.com/api/v1/redirect?zone_id=4&sub_id=${properties.vid}&vertical=Pets&category=Veterinarians&Comments=${properties.Comments}"},"popUnderMap":{"*":"https://listings.zipanswers.com/api/v1/redirect?zone_id=4&sub_id=${properties.vid}&vertical=Pets&category=Pet%20Care"},"name":"vets"},"children":[{"$el":"h1","attrs":{"class":"t-flex t-justify-center t-text-center t-text-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 f-first-headline"},"children":"$urlParam(\"hl\", \"Have Questions About Your Pet?\")","if":"$activeStep === $firstStep()"},{"$el":"h3","attrs":{"class":"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 t-pb-3 !t-font-bold !t-text-[#465f87] f-first-subheadline"},"children":"$urlParam(\"shl\", \"Describe your issue below:\")","if":"$activeStep === $firstStep()","subheadlineClass":"!t-font-bold !t-text-[#465f87]"},{"$formkit":"hidden","name":"vertical","value":"Pets"},{"$formkit":"hidden","name":"gclid","value":null},{"$formkit":"hidden","name":"campaignid","value":null},{"$formkit":"hidden","name":"s","value":null},{"$el":"div","attrs":{"class":"form-body"},"children":[{"$el":"section","if":"$stepEnabled(\"comments\")","attrs":{"hidden":"$activeStep !== \"comments\"","key":"comments"},"children":[{"$formkit":"group","id":"comments","name":"comments","children":[{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"Comments","label":null,"placeholder":"Example: \"My dog is limping and I need to know if I should take him to the vet\"","inputClass":"!t-h-32","id":"Comments"}]}]},{"$el":"div","attrs":{"class":{"if":"$activeStep === $firstStep()","then":"step-nav !t-justify-center","else":{"if":"$activeStep === $lastStep()","then":"step-nav !t-justify-center","else":"step-nav !t-justify-between"}}},"children":[{"$formkit":"button","name":"back_button","onClick":"$setPreviousStep($prevStepFunc($get(form)))","children":"Back","outerClass":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"t-hidden sm:t-block","else":""},"style":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input"}},{"$formkit":"button","name":"next_button","onClick":"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))","children":{"if":"$activeStep === $firstStep()","then":"Start","else":"Next"},"outerClass":{"if":"$activeStep === $lastStep()","then":"t-hidden","else":""},"style":{"if":"$activeStep === $lastStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input"}},{"$formkit":"submit","name":"submit_button","label":"Chat Online","if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input !t-w-60","outer":"!t-mt-0 !t-mb-0"}}]},{"$el":"pre","if":"$urlParam(\"fdbg\", \"\") == 1","children":[{"$el":"pre","children":"$stringify( $get(form).value )","attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["activeStep: ","$activeStep"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepHistory: ","$stepHistory"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepQueue: ","$stepQueue"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["steps: ","$stepKeys()"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}}]}]}]}]
|
package/dist/forms/windows.es.js
CHANGED
|
@@ -2116,7 +2116,7 @@ const HomeImprovementFinalHeadlines = {
|
|
|
2116
2116
|
// 'Landscaping': '',
|
|
2117
2117
|
// 'Locksmiths': '',
|
|
2118
2118
|
// 'Masonry and Concrete': '',
|
|
2119
|
-
|
|
2119
|
+
Restoration: "Restoration Pros Are Standing By!",
|
|
2120
2120
|
// 'Moving': '',
|
|
2121
2121
|
// 'Painting': '',
|
|
2122
2122
|
// 'Pest Control': '',
|
|
@@ -2149,7 +2149,7 @@ const HomeImprovementFinalSubHeadlines = {
|
|
|
2149
2149
|
Doors: "Enhance your home with new doors.",
|
|
2150
2150
|
Driveways: "Repair or install a new driveway.",
|
|
2151
2151
|
"Drywall and Plaster": "Expert drywall and plaster services.",
|
|
2152
|
-
Electrical: "
|
|
2152
|
+
Electrical: "Confirm your contact information:",
|
|
2153
2153
|
Fencing: "Secure your property with new fencing.",
|
|
2154
2154
|
Flooring: "Install stunning new floors.",
|
|
2155
2155
|
Foundations: "Foundation repair and maintenance.",
|
|
@@ -2167,21 +2167,21 @@ const HomeImprovementFinalSubHeadlines = {
|
|
|
2167
2167
|
"Home Theater": "Create the ultimate home theater.",
|
|
2168
2168
|
"Home Warranties": "Get a warranty for your home.",
|
|
2169
2169
|
"Hot Tubs": "Install a relaxing hot tub.",
|
|
2170
|
-
"Heating and Cooling": "
|
|
2170
|
+
"Heating and Cooling": "Confirm your contact information:",
|
|
2171
2171
|
Insulation: "Improve your home's insulation.",
|
|
2172
2172
|
"Junk Removal": "Remove unwanted junk from your property.",
|
|
2173
2173
|
Landscaping: "Transform your yard with expert landscaping.",
|
|
2174
2174
|
Locksmiths: "Professional locksmith services.",
|
|
2175
2175
|
"Masonry and Concrete": "Expert masonry and concrete work.",
|
|
2176
|
-
Restoration: "
|
|
2176
|
+
Restoration: "Confirm your contact information:",
|
|
2177
2177
|
Moving: "Reliable moving services.",
|
|
2178
2178
|
Painting: "Professional painting services.",
|
|
2179
2179
|
"Pest Control": "Effective pest control solutions.",
|
|
2180
2180
|
Pools: "Install or repair your pool.",
|
|
2181
|
-
Plumbing: "
|
|
2181
|
+
Plumbing: "Confirm your contact information:",
|
|
2182
2182
|
"Pressure Washing": "Pressure wash your home's exterior.",
|
|
2183
2183
|
Remodeling: "Remodel your home with top professionals.",
|
|
2184
|
-
Roofing: "
|
|
2184
|
+
Roofing: "Confirm your contact information:",
|
|
2185
2185
|
Sheds: "Build a new shed for extra storage.",
|
|
2186
2186
|
Siding: "Upgrade your home's siding.",
|
|
2187
2187
|
Solar: "Install solar panels and save on energy.",
|