bhl-forms 0.7.3 → 0.7.5

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.
Files changed (101) hide show
  1. package/dist/bhl-forms.es.js +551 -543
  2. package/dist/bhl-forms.iife.js +4 -4
  3. package/dist/bhl-forms.modern.es.js +649 -649
  4. package/dist/bhl-forms.modern.iife.js +7 -7
  5. package/dist/bhl-forms.modern.umd.js +7 -7
  6. package/dist/bhl-forms.umd.js +4 -4
  7. package/dist/forms/accidentsAndInjuries.es.js +1461 -1151
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +138 -137
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/business.es.js +1434 -1149
  13. package/dist/forms/business.iife.js +1 -1
  14. package/dist/forms/business.json +1 -1
  15. package/dist/forms/childAndFamily.es.js +1329 -1043
  16. package/dist/forms/childAndFamily.iife.js +1 -1
  17. package/dist/forms/childAndFamily.json +1 -1
  18. package/dist/forms/childAndFamilySingle.es.js +1528 -1378
  19. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  20. package/dist/forms/childAndFamilySingle.json +1 -1
  21. package/dist/forms/civilLawsuit.es.js +2000 -1807
  22. package/dist/forms/civilLawsuit.iife.js +1 -1
  23. package/dist/forms/civilLawsuit.json +1 -1
  24. package/dist/forms/coins.es.js +138 -137
  25. package/dist/forms/coins.iife.js +1 -1
  26. package/dist/forms/contracts.es.js +1349 -1050
  27. package/dist/forms/contracts.iife.js +1 -1
  28. package/dist/forms/contracts.json +1 -1
  29. package/dist/forms/criminal.es.js +1832 -1711
  30. package/dist/forms/criminal.iife.js +1 -1
  31. package/dist/forms/criminal.json +1 -1
  32. package/dist/forms/divorce.es.js +1541 -1385
  33. package/dist/forms/divorce.iife.js +1 -1
  34. package/dist/forms/divorce.json +1 -1
  35. package/dist/forms/employmentAndWorkplace.es.js +1833 -1678
  36. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  37. package/dist/forms/employmentAndWorkplace.json +1 -1
  38. package/dist/forms/generalHomeImprovement.es.js +2381 -2010
  39. package/dist/forms/generalHomeImprovement.iife.js +1 -1
  40. package/dist/forms/generalHomeImprovement.json +1 -1
  41. package/dist/forms/generalHomeImprovementThankYou.es.js +1795 -2008
  42. package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
  43. package/dist/forms/generalHomeImprovementThankYou.json +1 -1
  44. package/dist/forms/generalLegal.es.js +3037 -2535
  45. package/dist/forms/generalLegal.iife.js +1 -1
  46. package/dist/forms/generalLegal.json +1 -1
  47. package/dist/forms/generalLegalJustAnswer.es.js +3216 -2872
  48. package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
  49. package/dist/forms/generalLegalJustAnswer.json +1 -1
  50. package/dist/forms/generalLegalPopUnder.es.js +3037 -2535
  51. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  52. package/dist/forms/generalLegalPopUnder.json +1 -1
  53. package/dist/forms/generalLegalPopUnderSingle.es.js +3216 -2872
  54. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  55. package/dist/forms/generalLegalPopUnderSingle.json +1 -1
  56. package/dist/forms/generalLegalSingle.es.js +3216 -2872
  57. package/dist/forms/generalLegalSingle.iife.js +1 -1
  58. package/dist/forms/generalLegalSingle.json +1 -1
  59. package/dist/forms/generalLegalThankYou.es.js +2825 -2303
  60. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  61. package/dist/forms/generalLegalThankYou.json +1 -1
  62. package/dist/forms/generalLegalThankYouConsultation.es.js +3216 -2872
  63. package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
  64. package/dist/forms/generalLegalThankYouConsultation.json +1 -1
  65. package/dist/forms/harassmentAndDiscrimination.es.js +1425 -1120
  66. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  67. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  68. package/dist/forms/landlordTenant.es.js +1395 -1106
  69. package/dist/forms/landlordTenant.iife.js +1 -1
  70. package/dist/forms/landlordTenant.json +1 -1
  71. package/dist/forms/malpractice.es.js +1531 -1223
  72. package/dist/forms/malpractice.iife.js +1 -1
  73. package/dist/forms/malpractice.json +1 -1
  74. package/dist/forms/mechanics.es.js +702 -530
  75. package/dist/forms/mechanics.iife.js +1 -1
  76. package/dist/forms/mechanics.json +1 -1
  77. package/dist/forms/patentsAndIP.es.js +1830 -1652
  78. package/dist/forms/patentsAndIP.iife.js +1 -1
  79. package/dist/forms/patentsAndIP.json +1 -1
  80. package/dist/forms/realEstate.es.js +2852 -2405
  81. package/dist/forms/realEstate.iife.js +1 -1
  82. package/dist/forms/realEstate.json +1 -1
  83. package/dist/forms/repossession.es.js +1568 -1251
  84. package/dist/forms/repossession.iife.js +1 -1
  85. package/dist/forms/repossession.json +1 -1
  86. package/dist/forms/ssdi.es.js +635 -520
  87. package/dist/forms/ssdi.iife.js +1 -1
  88. package/dist/forms/ssdi.json +1 -1
  89. package/dist/forms/testForm.es.js +409 -371
  90. package/dist/forms/testForm.iife.js +1 -1
  91. package/dist/forms/testForm.json +1 -1
  92. package/dist/forms/testRedirects.es.js +421 -316
  93. package/dist/forms/testRedirects.iife.js +1 -1
  94. package/dist/forms/testRedirects.json +1 -1
  95. package/dist/forms/vets.es.js +138 -137
  96. package/dist/forms/vets.iife.js +1 -1
  97. package/dist/forms/willsAndTrusts.es.js +1428 -1112
  98. package/dist/forms/willsAndTrusts.iife.js +1 -1
  99. package/dist/forms/willsAndTrusts.json +1 -1
  100. package/dist/main.css +1 -1
  101. package/package.json +1 -1
@@ -1 +1 @@
1
- var testRedirects=function(){"use strict";function e(){return Object.assign({},...arguments)}const t=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t)),r=e=>(e.legendClass="required",e.fieldsetClass="$reset",e.optionsClass="t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",e.innerClass="t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",t(e)),a=t=>(t.labelClass="required",t.wrapperClass="side-by-side t-items-center",t.innerClass="select-height-content",t.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},t)))(t)),i=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t)),n=e=>(e.wrapperClass="side-by-side t-items-center",i(e)),s=e=>(e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-text-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",i(e)),l=(e,t,r={})=>(t?s:n)({label:t?r.label:"Zip Code:",help:t?r.help??"We try to match you with local help":null,placeholder:"#####",name:e?e+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},...r}),o=r=>(e=>(e.legendClass="legend-left t-pb-1 required",e.fieldsetClass="$reset side-by-side t-items-center",e.optionsClass="t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center",e.innerClass="t-flex t-items-center",e.optionClass="t-pr-1",t(e)))(e({name:"Civil_Defense",id:"Civil_Defense",if:'$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',label:"Do You Need Representation to File a Lawsuit or Defend One?",options:{Yes:"Defend a Lawsuit",No:"File a Lawsuit"}},r)),d=t=>r(e({name:"Type_Of_Legal_Problem_Display",if:'$get(Type_Of_Legal_Problem).value == "Civil Lawsuit" && $get(Civil_Defense).value == "No"',label:"Select The Type of Lawsuit You Would Like to File:",options:["Automobile Accident","Contract Disputes","Defamation and Slander","Dog Bite","Employment and Workplace","Fraud","Medical Malpractice","Personal Injury","Property Damage","Small Claims","Real Estate","Not Sure or Other"]},t)),p=t=>r(e({name:"Type_Of_Legal_Problem_Display",if:'$get(Type_Of_Legal_Problem).value == "Employment and Workplace"',label:"Select The Workplace Issue:",options:["Workplace Harassment","Workplace Discrimination","Wrongful Termination","Payment Disputes","Workers Compensation","Personal Injury","Unemployment","Other Workplace Issues"]},t)),c=["Adoption","Asbestos and Mesothelioma","Auto and Car Accidents","Bankruptcy","Birth Certificate and Name Change","Business Lawyers","Child Custody","Child Support","Civil Rights and Discrimination","Consumer Lawyers","Copyrights and Trademarks","Criminal and Felony","Debt and Collections","Defend a Lawsuit","Divorce and Separation","DUI and DWI","Elder Law","Employment and Workplace","Expungement","Family Issues","File a Lawsuit","Foreclosure","Guardianship","Harassment and Discrimination","Identity Theft","Immigration and Visas","Insurance","Landlord and Tenant","Lemon Law","Long Term Disability","Medical Malpractice","Non-Workplace Discrimination","Non-Workplace Harassment","Patents and Intellectual Property","Personal Injury","Power of Attorney","Probate and Estates","Product Liability","Property Damage","Real Estate","Sexual Harassment","Social Security Disability and Insurance","Tax and IRS","Traffic and Tickets","Unemployment","Victim of a Crime","Wills and Trusts","Workers Compensation","Workplace Discrimination","Workplace Harassment","Wrongful Death","Wrongful Termination","Not Sure or Other"],m=t=>a(e({label:"Type of Help Needed:",name:"Type_Of_Legal_Problem",id:"Type_Of_Legal_Problem",options:c},t)),u=t=>r(e({name:"Type_Of_Legal_Problem_Display",if:'$get(Type_Of_Legal_Problem).value == "Real Estate"',label:"Select The Type of Real Estate Issue:",options:["Contracts and Agreements","Deeds, Liens, and Titles","Foreclosure","Insurance","Landlord and Tenant","Loans and Mortgages","Wills, Trusts, and Estates","Property Damage","Not Sure or Other"]},t)),f=t=>r(e({name:"Type_Of_Legal_Problem_Display",if:'$get(Type_Of_Legal_Problem).value == "Criminal and Felony"',label:"Which Type of Criminal Issue?",options:["Criminal Defense","Victim of a Crime","DUI and DWI","Expungement","Harassment","Not Sure or Other"]},t)),g="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",y="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",h=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,$=e=>{if(h(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const r=e.children[t];if(h(r))return r;const a=$(r);if(a)return a}return null},b=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});const v={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 C=[{$formkit:"hidden",name:"vertical",value:"AutoRepair"},{$formkit:"hidden",name:"Category",id:"Category",value:"Mechanics"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],_=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},L),{$cmp:"FormKit",props:function(t){const r=e(v,t);return r.formId&&!r.name&&(r.name=r.formId),r}({formId:"testRedirects",redirectMap:{"*":"https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}"},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-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")}}}(t),t)}({children:'$urlParam("hl", "Have Questions for a Lawyer?")',if:"$activeStep === $firstStep()"}),...C,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,r,a={}){const{nextOnEnter:i=!0,nextOnInput:n=!1,stepKey:s,nextStepMap:l,triggerRedirectMap:o,autoFocus:d}=a;if(r&&r.length&&(i||n)){const e=$(r[r.length-1]);e&&!0===i&&(e.onKeypress=g),e&&!0===n&&(e.onInput=y)}return e(b(t,s),{children:[{$formkit:"group",id:t,name:t,nextStepMap:l,triggerRedirectMap:o,autoFocus:d,children:r}]})}("generalLegalTOLPAndZip",[m(),o(),d(),f(),p(),r({label:"What is the Landlord / Tenant Issue?",if:'$get(Type_Of_Legal_Problem).value == "Landlord and Tenant"',id:"Landlord_Tenant_Issue",name:"Landlord_Tenant_Issue",options:["Eviction","Repairs and Maintenance","Lease and Rental Agreements","Discrimination","Right of Entry and Privacy","Screening and Applications","Environmental Hazards","Other Dispute"]}),u(),l()],t)}(),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 L;return _}();
1
+ var testRedirects=function(){"use strict";function e(){return Object.assign({},...arguments)}const t=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t)),r=e=>(e.legendClass="required",e.fieldsetClass="$reset",e.optionsClass="t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",e.innerClass="t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",t(e)),s=e=>(e.legendClass="required t-w-[100%] t-text-center",void 0===e.fieldsetClass&&(e.fieldsetClass="$reset t-flex t-justify-center"),e.innerClass="t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",e.optionClass="t-pl-4 md:t-pl-8 md:t-min-w-[200px]",e.optionsClass="t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-0 t-mb-4 !t-text-sm t-text-center",t(e)),a=e=>(e.legendClass="legend-left t-pb-1 required",e.fieldsetClass="$reset side-by-side t-items-center",e.optionsClass="t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center",e.innerClass="t-flex t-items-center",e.optionClass="t-pr-1",t(e)),i=e=>(e.legendClass="legend-left",e.fieldsetClass="$reset t-flex t-justify-center t-flex-col-reverse t-items-center",void 0===e.optionsClass&&(e.optionsClass="t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3"),e.optionClass="radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5",e.wrapperClass="$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]",e.labelClass="t-font-semibold t-text-[#1e448f] t-w-[100%]",e.decoratorIcon=!1,e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",t(e)),l=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},t)),n=e=>(e.labelClass="required",e.wrapperClass="side-by-side t-items-center",e.innerClass="select-height-content",e.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",l(e)),o=e=>(e.labelClass="required",e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-min-w-[150px] t-bg-white",e.helpClass="t-mt-2.5 t-text-center",l(e)),d=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t)),p=e=>(e.wrapperClass="side-by-side t-items-center",d(e)),m=e=>(e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-text-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",d(e)),c=(e,t,r={})=>(t?m:p)({label:t?r.label:"Zip Code:",help:t?r.help??"We try to match you with local help":null,placeholder:"#####",name:e?e+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},...r}),u=(t,r,s={})=>(r?i:a)(e({label:r?s.label:"Do You Need Representation to File a Lawsuit or Defend One?",if:r?s.if:'$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',name:t?t+":Civil_Defense":"Civil_Defense",options:["Defend a Lawsuit","File a Lawsuit"]},s)),f=(t,a,i={})=>(a?s:r)(e({label:a?i.label:"Select The Type of Lawsuit You Would Like to File:",if:a?null:'$get(Type_Of_Legal_Problem).value == "Civil Lawsuit" && $get(Civil_Defense).value == "File a Lawsuit"',name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Automobile Accident","Contract Disputes","Defamation and Slander","Dog Bite","Employment and Workplace","Fraud","Medical Malpractice","Personal Injury","Property Damage","Small Claims","Real Estate","Not Sure or Other"]},i)),g=(t,a,i={})=>(a?s:r)(e({label:a?i.label:"Select The Workplace Issue:",if:'$get(Type_Of_Legal_Problem).value == "Employment and Workplace"',name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Workplace Harassment","Workplace Discrimination","Wrongful Termination","Payment Disputes","Workers Compensation","Personal Injury","Unemployment","Other Workplace Issues"]},i)),y=["Adoption","Asbestos and Mesothelioma","Auto and Car Accidents","Bankruptcy","Birth Certificate and Name Change","Business Lawyers","Child Custody","Child Support","Civil Rights and Discrimination","Consumer Lawyers","Copyrights and Trademarks","Criminal and Felony","Debt and Collections","Defend a Lawsuit","Divorce and Separation","DUI and DWI","Elder Law","Employment and Workplace","Expungement","Family Issues","File a Lawsuit","Foreclosure","Guardianship","Harassment and Discrimination","Identity Theft","Immigration and Visas","Insurance","Landlord and Tenant","Lemon Law","Long Term Disability","Medical Malpractice","Non-Workplace Discrimination","Non-Workplace Harassment","Patents and Intellectual Property","Personal Injury","Power of Attorney","Probate and Estates","Product Liability","Property Damage","Real Estate","Sexual Harassment","Social Security Disability and Insurance","Tax and IRS","Traffic and Tickets","Unemployment","Victim of a Crime","Wills and Trusts","Workers Compensation","Workplace Discrimination","Workplace Harassment","Wrongful Death","Wrongful Termination","Not Sure or Other"],h=(t,r,s={})=>(r?o:n)(e({label:r?s.label:"Type of Help Needed:",name:t?t+":Type_Of_Legal_Problem":"Type_Of_Legal_Problem",id:t?t+":Type_Of_Legal_Problem":"Type_Of_Legal_Problem",options:y},s)),_=(t,a,i={})=>(a?s:r)(e({label:a?i.label:"What is the Landlord / Tenant Issue?",if:a?i.if:'$get(Type_Of_Legal_Problem).value == "Landlord and Tenant"',id:t?t+":Landlord_Tenant_Issue":"Landlord_Tenant_Issue",name:t?t+":Landlord_Tenant_Issue":"Landlord_Tenant_Issue",options:["Eviction","Repairs and Maintenance","Lease and Rental Agreements","Discrimination","Right of Entry and Privacy","Screening and Applications","Environmental Hazards","Other Dispute"]},i)),b=(t,a,i={})=>(a?s:r)(e({label:a?i.label:"Select The Real Estate Issue:",if:a?i.if:'$get(Type_Of_Legal_Problem).value == "Real Estate"',name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Contracts and Agreements","Deeds, Liens, and Titles","Foreclosure","Insurance","Landlord and Tenant","Loans and Mortgages","Wills, Trusts, and Estates","Property Damage","Not Sure or Other"]},i)),C=(t,a,i={})=>(a?s:r)(e({label:a?i.label:"Select The Criminal Issue:",if:a?i.if:'$get(Type_Of_Legal_Problem).value == "Criminal and Felony"',name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Criminal Defense","Victim of a Crime","DUI and DWI","Expungement","Harassment","Not Sure or Other"]},i)),$="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",v="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",x=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,L=e=>{if(x(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const r=e.children[t];if(x(r))return r;const s=L(r);if(s)return s}return null},T=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});const D={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 w=[{$formkit:"hidden",name:"vertical",value:"AutoRepair"},{$formkit:"hidden",name:"Category",id:"Category",value:"Mechanics"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],P=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},O),{$cmp:"FormKit",props:function(t){const r=e(D,t);return r.formId&&!r.name&&(r.name=r.formId),r}({formId:"testRedirects",redirectMap:{"*":"https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}"},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-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")}}}(t),t)}({children:'$urlParam("hl", "Have Questions for a Lawyer?")',if:"$activeStep === $firstStep()"}),...w,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,r,s={}){const{nextOnEnter:a=!0,nextOnInput:i=!1,stepKey:l,nextStepMap:n,triggerRedirectMap:o,autoFocus:d}=s;if(r&&r.length&&(a||i)){const e=L(r[r.length-1]);e&&!0===a&&(e.onKeypress=$),e&&!0===i&&(e.onInput=v)}return e(T(t,l),{children:[{$formkit:"group",id:t,name:t,nextStepMap:n,triggerRedirectMap:o,autoFocus:d,children:r}]})}("generalLegalTOLPAndZip",[h(),u(),f(),C(),g(),_(),b(),c()],t)}(),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 O;return P}();
@@ -1 +1 @@
1
- [{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-30px","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-[36rem]","formId":"testRedirects","redirectMap":{"*":"https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}"},"name":"testRedirects"},"children":[{"$el":"h1","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "},"children":"$urlParam(\"hl\", \"Have Questions for a Lawyer?\")","if":"$activeStep === $firstStep()"},{"$formkit":"hidden","name":"vertical","value":"AutoRepair"},{"$formkit":"hidden","name":"Category","id":"Category","value":"Mechanics"},{"$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(\"generalLegalTOLPAndZip\")","attrs":{"hidden":"$activeStep !== \"generalLegalTOLPAndZip\"","key":"generalLegalTOLPAndZip"},"children":[{"$formkit":"group","id":"generalLegalTOLPAndZip","name":"generalLegalTOLPAndZip","children":[{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"Type of Help Needed:","name":"Type_Of_Legal_Problem","id":"Type_Of_Legal_Problem","options":["Adoption","Asbestos and Mesothelioma","Auto and Car Accidents","Bankruptcy","Birth Certificate and Name Change","Business Lawyers","Child Custody","Child Support","Civil Rights and Discrimination","Consumer Lawyers","Copyrights and Trademarks","Criminal and Felony","Debt and Collections","Defend a Lawsuit","Divorce and Separation","DUI and DWI","Elder Law","Employment and Workplace","Expungement","Family Issues","File a Lawsuit","Foreclosure","Guardianship","Harassment and Discrimination","Identity Theft","Immigration and Visas","Insurance","Landlord and Tenant","Lemon Law","Long Term Disability","Medical Malpractice","Non-Workplace Discrimination","Non-Workplace Harassment","Patents and Intellectual Property","Personal Injury","Power of Attorney","Probate and Estates","Product Liability","Property Damage","Real Estate","Sexual Harassment","Social Security Disability and Insurance","Tax and IRS","Traffic and Tickets","Unemployment","Victim of a Crime","Wills and Trusts","Workers Compensation","Workplace Discrimination","Workplace Harassment","Wrongful Death","Wrongful Termination","Not Sure or Other"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Civil_Defense","id":"Civil_Defense","if":"$get(Type_Of_Legal_Problem).value == \"Civil Lawsuit\"","label":"Do You Need Representation to File a Lawsuit or Defend One?","options":{"Yes":"Defend a Lawsuit","No":"File a Lawsuit"},"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center","optionClass":"t-pr-1"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","name":"Type_Of_Legal_Problem_Display","if":"$get(Type_Of_Legal_Problem).value == \"Civil Lawsuit\" && $get(Civil_Defense).value == \"No\"","label":"Select The Type of Lawsuit You Would Like to File:","options":["Automobile Accident","Contract Disputes","Defamation and Slander","Dog Bite","Employment and Workplace","Fraud","Medical Malpractice","Personal Injury","Property Damage","Small Claims","Real Estate","Not Sure or Other"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Type_Of_Legal_Problem_Display"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","name":"Type_Of_Legal_Problem_Display","if":"$get(Type_Of_Legal_Problem).value == \"Criminal and Felony\"","label":"Which Type of Criminal Issue?","options":["Criminal Defense","Victim of a Crime","DUI and DWI","Expungement","Harassment","Not Sure or Other"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Type_Of_Legal_Problem_Display"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","name":"Type_Of_Legal_Problem_Display","if":"$get(Type_Of_Legal_Problem).value == \"Employment and Workplace\"","label":"Select The Workplace Issue:","options":["Workplace Harassment","Workplace Discrimination","Wrongful Termination","Payment Disputes","Workers Compensation","Personal Injury","Unemployment","Other Workplace Issues"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Type_Of_Legal_Problem_Display"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","label":"What is the Landlord / Tenant Issue?","if":"$get(Type_Of_Legal_Problem).value == \"Landlord and Tenant\"","id":"Landlord_Tenant_Issue","name":"Landlord_Tenant_Issue","options":["Eviction","Repairs and Maintenance","Lease and Rental Agreements","Discrimination","Right of Entry and Privacy","Screening and Applications","Environmental Hazards","Other Dispute"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","name":"Type_Of_Legal_Problem_Display","if":"$get(Type_Of_Legal_Problem).value == \"Real Estate\"","label":"Select The Type of Real Estate Issue:","options":["Contracts and Agreements","Deeds, Liens, and Titles","Foreclosure","Insurance","Landlord and Tenant","Loans and Mortgages","Wills, Trusts, and Estates","Property Damage","Not Sure or Other"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Type_Of_Legal_Problem_Display"},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"labelClass":"required","label":"Zip Code:","help":null,"placeholder":"#####","name":"Zip","maxlength":5,"inputmode":"numeric","autocomplete":"postal-code","wrapperClass":"side-by-side t-items-center","id":"Zip","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$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":"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"}}]}]}]}]
1
+ [{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-30px","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-[36rem]","formId":"testRedirects","redirectMap":{"*":"https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}"},"name":"testRedirects"},"children":[{"$el":"h1","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "},"children":"$urlParam(\"hl\", \"Have Questions for a Lawyer?\")","if":"$activeStep === $firstStep()"},{"$formkit":"hidden","name":"vertical","value":"AutoRepair"},{"$formkit":"hidden","name":"Category","id":"Category","value":"Mechanics"},{"$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(\"generalLegalTOLPAndZip\")","attrs":{"hidden":"$activeStep !== \"generalLegalTOLPAndZip\"","key":"generalLegalTOLPAndZip"},"children":[{"$formkit":"group","id":"generalLegalTOLPAndZip","name":"generalLegalTOLPAndZip","children":[{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"Type of Help Needed:","name":"Type_Of_Legal_Problem","id":"Type_Of_Legal_Problem","options":["Adoption","Asbestos and Mesothelioma","Auto and Car Accidents","Bankruptcy","Birth Certificate and Name Change","Business Lawyers","Child Custody","Child Support","Civil Rights and Discrimination","Consumer Lawyers","Copyrights and Trademarks","Criminal and Felony","Debt and Collections","Defend a Lawsuit","Divorce and Separation","DUI and DWI","Elder Law","Employment and Workplace","Expungement","Family Issues","File a Lawsuit","Foreclosure","Guardianship","Harassment and Discrimination","Identity Theft","Immigration and Visas","Insurance","Landlord and Tenant","Lemon Law","Long Term Disability","Medical Malpractice","Non-Workplace Discrimination","Non-Workplace Harassment","Patents and Intellectual Property","Personal Injury","Power of Attorney","Probate and Estates","Product Liability","Property Damage","Real Estate","Sexual Harassment","Social Security Disability and Insurance","Tax and IRS","Traffic and Tickets","Unemployment","Victim of a Crime","Wills and Trusts","Workers Compensation","Workplace Discrimination","Workplace Harassment","Wrongful Death","Wrongful Termination","Not Sure or Other"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","label":"Do You Need Representation to File a Lawsuit or Defend One?","if":"$get(Type_Of_Legal_Problem).value == \"Civil Lawsuit\"","name":"Civil_Defense","options":["Defend a Lawsuit","File a Lawsuit"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center","optionClass":"t-pr-1","id":"Civil_Defense"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","label":"Select The Type of Lawsuit You Would Like to File:","if":"$get(Type_Of_Legal_Problem).value == \"Civil Lawsuit\" && $get(Civil_Defense).value == \"File a Lawsuit\"","name":"Type_Of_Legal_Problem_Display","options":["Automobile Accident","Contract Disputes","Defamation and Slander","Dog Bite","Employment and Workplace","Fraud","Medical Malpractice","Personal Injury","Property Damage","Small Claims","Real Estate","Not Sure or Other"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Type_Of_Legal_Problem_Display"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","label":"Select The Criminal Issue:","if":"$get(Type_Of_Legal_Problem).value == \"Criminal and Felony\"","name":"Type_Of_Legal_Problem_Display","options":["Criminal Defense","Victim of a Crime","DUI and DWI","Expungement","Harassment","Not Sure or Other"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Type_Of_Legal_Problem_Display"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","label":"Select The Workplace Issue:","if":"$get(Type_Of_Legal_Problem).value == \"Employment and Workplace\"","name":"Type_Of_Legal_Problem_Display","options":["Workplace Harassment","Workplace Discrimination","Wrongful Termination","Payment Disputes","Workers Compensation","Personal Injury","Unemployment","Other Workplace Issues"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Type_Of_Legal_Problem_Display"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","label":"What is the Landlord / Tenant Issue?","if":"$get(Type_Of_Legal_Problem).value == \"Landlord and Tenant\"","id":"Landlord_Tenant_Issue","name":"Landlord_Tenant_Issue","options":["Eviction","Repairs and Maintenance","Lease and Rental Agreements","Discrimination","Right of Entry and Privacy","Screening and Applications","Environmental Hazards","Other Dispute"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","label":"Select The Real Estate Issue:","if":"$get(Type_Of_Legal_Problem).value == \"Real Estate\"","name":"Type_Of_Legal_Problem_Display","options":["Contracts and Agreements","Deeds, Liens, and Titles","Foreclosure","Insurance","Landlord and Tenant","Loans and Mortgages","Wills, Trusts, and Estates","Property Damage","Not Sure or Other"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Type_Of_Legal_Problem_Display"},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"labelClass":"required","label":"Zip Code:","help":null,"placeholder":"#####","name":"Zip","maxlength":5,"inputmode":"numeric","autocomplete":"postal-code","wrapperClass":"side-by-side t-items-center","id":"Zip","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$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":"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"}}]}]}]}]
@@ -11,45 +11,57 @@ function RedirectUrlComments(domain, vertical, category) {
11
11
  return RedirectUrl(domain, vertical, category) + '&Comments=${properties.Comments}'
12
12
  }
13
13
 
14
- const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your issue in a few words:';
15
- const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)';
14
+ const DEFAULT_COMMENTS_LABEL = "Please briefly describe your issue in a few words:";
15
+ const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC =
16
+ '$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)';
16
17
 
17
18
  const textArea = (updates) => {
18
19
  if (updates.name && !updates.id) {
19
20
  updates.id = updates.name;
20
21
  }
21
- return merge({
22
- $formkit: 'textarea',
23
- rows: 5,
24
- maxlength: 500,
25
- validation: 'required',
26
- validationMessages: {
27
- required: 'Field is required'
22
+ return merge(
23
+ {
24
+ $formkit: "textarea",
25
+ rows: 5,
26
+ maxlength: 500,
27
+ validation: "required",
28
+ validationMessages: {
29
+ required: "Field is required",
30
+ },
31
+ innerClass: "t-max-w-xl",
32
+ labelClass: "required",
28
33
  },
29
- innerClass: 't-max-w-xl',
30
- labelClass: 'required'
31
- }, updates)
34
+ updates
35
+ )
32
36
  };
33
37
 
34
- const comments$1 = (updates, scope) => textArea(
35
- merge({
36
- name: scope ? scope + ':' + 'Comments' : 'Comments',
37
- label: 'Please briefly describe your situation in a few words:',
38
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
39
- }, updates)
40
- );
38
+ // TODO: vertical not supported yet
39
+ const comments$1 = (scope, vertical, updates) =>
40
+ textArea(
41
+ merge(
42
+ {
43
+ name: scope ? scope + ":" + "Comments" : "Comments",
44
+ label: "Please briefly describe your situation in a few words:",
45
+ placeholder:
46
+ 'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
47
+ },
48
+ updates
49
+ )
50
+ );
41
51
 
42
- const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
43
- const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
52
+ const NEXT_ON_ENTER = "$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
53
+ const NEXT_ON_INPUT = "$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
44
54
 
45
- const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
55
+ const isInput = (n) => {
56
+ return n.type !== "group" && n.type !== "section" && n.type !== "form" && n.$formkit !== "hidden" && !n.children
57
+ };
46
58
 
47
59
  const findLastInput = (n) => {
48
60
  if (isInput(n)) {
49
61
  return n
50
62
  }
51
63
  for (var i = n.children.length - 1; i >= 0; i--) {
52
- if (typeof n.children === 'string') {
64
+ if (typeof n.children === "string") {
53
65
  continue
54
66
  }
55
67
  const child = n.children[i];
@@ -65,12 +77,12 @@ const findLastInput = (n) => {
65
77
  };
66
78
 
67
79
  const stepDefaults = (step, stepKey) => ({
68
- $el: 'section',
80
+ $el: "section",
69
81
  if: '$stepEnabled("' + step + '")',
70
82
  attrs: {
71
83
  hidden: '$activeStep !== "' + step + '"',
72
- key: stepKey ? stepKey : step
73
- }
84
+ key: stepKey ? stepKey : step,
85
+ },
74
86
  });
75
87
 
76
88
  function step(name, inputs, updates = {}) {
@@ -93,34 +105,29 @@ function step(name, inputs, updates = {}) {
93
105
  }
94
106
  }
95
107
 
96
- return merge(
97
- stepDefaults(name, stepKey),
98
- {
99
- children: [
100
- {
101
- $formkit: 'group',
102
- id: name,
103
- name: name,
104
- nextStepMap: nextStepMap,
105
- triggerRedirectMap: triggerRedirectMap,
106
- autoFocus: autoFocus,
107
- children: inputs
108
- }
109
- ]
110
- }
111
- )
108
+ return merge(stepDefaults(name, stepKey), {
109
+ children: [
110
+ {
111
+ $formkit: "group",
112
+ id: name,
113
+ name: name,
114
+ nextStepMap: nextStepMap,
115
+ triggerRedirectMap: triggerRedirectMap,
116
+ autoFocus: autoFocus,
117
+ children: inputs,
118
+ },
119
+ ],
120
+ })
112
121
  }
113
122
 
114
- // TODO: this has some vertical-specific for defaults!
115
-
116
123
  function comments(updates = {}) {
117
124
  return step(
118
- 'comments',
125
+ "comments",
119
126
  [
120
- comments$1({
127
+ comments$1(updates.scope, false, {
121
128
  label: updates.label || DEFAULT_COMMENTS_LABEL,
122
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC
123
- })
129
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
130
+ }),
124
131
  ],
125
132
  updates
126
133
  )
@@ -128,87 +135,87 @@ function comments(updates = {}) {
128
135
 
129
136
  function formNavigationOnlySubmit(updates = {}) {
130
137
  return {
131
- $el: 'div',
138
+ $el: "div",
132
139
  attrs: {
133
- class: 'step-nav'
140
+ class: "step-nav",
134
141
  },
135
142
  children: [
136
143
  {
137
- $formkit: 'button',
138
- name: 'hidden_button',
139
- children: 'Hidden',
144
+ $formkit: "button",
145
+ name: "hidden_button",
146
+ children: "Hidden",
140
147
  style: {
141
- if: '$activeStep === $firstStep()',
142
- then: 'visibility: hidden;'
143
- }
148
+ if: "$activeStep === $firstStep()",
149
+ then: "visibility: hidden;",
150
+ },
144
151
  },
145
152
  {
146
- $formkit: 'submit',
147
- name: 'submit_button',
148
- label: updates.submitLabel || 'Chat Now'
149
- }
150
- ]
153
+ $formkit: "submit",
154
+ name: "submit_button",
155
+ label: updates.submitLabel || "Chat Now",
156
+ },
157
+ ],
151
158
  }
152
159
  }
153
160
 
154
161
  const formDetails = () => ({
155
- $el: 'pre',
162
+ $el: "pre",
156
163
  if: '$urlParam("fdbg", "") == 1',
157
164
  children: [
158
165
  {
159
- $el: 'pre',
160
- children: '$stringify( $get(form).value )',
166
+ $el: "pre",
167
+ children: "$stringify( $get(form).value )",
161
168
  attrs: {
162
- class: 't-text-xs',
163
- style: 'overflow: scroll'
164
- }
169
+ class: "t-text-xs",
170
+ style: "overflow: scroll",
171
+ },
165
172
  },
166
173
  {
167
- $el: 'pre',
168
- children: ['activeStep: ', '$activeStep'],
174
+ $el: "pre",
175
+ children: ["activeStep: ", "$activeStep"],
169
176
  attrs: {
170
- class: 't-text-xs',
171
- style: 'overflow: scroll'
172
- }
177
+ class: "t-text-xs",
178
+ style: "overflow: scroll",
179
+ },
173
180
  },
174
181
  {
175
- $el: 'pre',
176
- children: ['stepHistory: ', '$stepHistory'],
182
+ $el: "pre",
183
+ children: ["stepHistory: ", "$stepHistory"],
177
184
  attrs: {
178
- class: 't-text-xs',
179
- style: 'overflow: scroll'
180
- }
185
+ class: "t-text-xs",
186
+ style: "overflow: scroll",
187
+ },
181
188
  },
182
189
  {
183
- $el: 'pre',
184
- children: ['stepQueue: ', '$stepQueue'],
190
+ $el: "pre",
191
+ children: ["stepQueue: ", "$stepQueue"],
185
192
  attrs: {
186
- class: 't-text-xs',
187
- style: 'overflow: scroll'
188
- }
193
+ class: "t-text-xs",
194
+ style: "overflow: scroll",
195
+ },
189
196
  },
190
197
  {
191
- $el: 'pre',
192
- children: ['steps: ', '$stepKeys()'],
198
+ $el: "pre",
199
+ children: ["steps: ", "$stepKeys()"],
193
200
  attrs: {
194
- class: 't-text-xs',
195
- style: 'overflow: scroll'
196
- }
197
- }
198
- ]
201
+ class: "t-text-xs",
202
+ style: "overflow: scroll",
203
+ },
204
+ },
205
+ ],
199
206
  });
200
207
 
201
208
  const formPropDefaults = {
202
- type: 'form',
203
- id: 'form',
204
- config: { validationVisibility: 'submit' },
209
+ type: "form",
210
+ id: "form",
211
+ config: { validationVisibility: "submit" },
205
212
  onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
206
- plugins: '$plugins',
213
+ plugins: "$plugins",
207
214
  actions: false,
208
- anchorElement: 'form-anchor',
215
+ anchorElement: "form-anchor",
209
216
  useLocalStorage: true,
210
217
  prepop: {
211
- fromURL: true
218
+ fromURL: true,
212
219
  },
213
220
  errorCodes: {
214
221
  403: { message: "An Error Occurred", abort: false },
@@ -216,7 +223,7 @@ const formPropDefaults = {
216
223
  429: "An Error Occurred",
217
224
  504: { message: "An Error Occurred", abort: false },
218
225
  },
219
- formClass: '!t-max-w-[40rem]'
226
+ formClass: "!t-max-w-[40rem]",
220
227
  };
221
228
 
222
229
  // export function filteredNextStepsMapLegal(keyList) {
@@ -226,10 +233,7 @@ const formPropDefaults = {
226
233
  // }
227
234
 
228
235
  function formProps(updates) {
229
- const props = merge(
230
- formPropDefaults,
231
- updates
232
- );
236
+ const props = merge(formPropDefaults, updates);
233
237
  if (props.formId && !props.name) {
234
238
  props.name = props.formId;
235
239
  }
@@ -237,86 +241,83 @@ function formProps(updates) {
237
241
  }
238
242
 
239
243
  const formAnchorDefaults = {
240
- $el: 'div',
244
+ $el: "div",
241
245
  children: [
242
246
  {
243
- $el: 'div',
247
+ $el: "div",
244
248
  attrs: {
245
- id: 'form-anchor',
246
- class: 't-absolute',
247
- style: { top: '-30px', left: 0 }
248
- }
249
- }
249
+ id: "form-anchor",
250
+ class: "t-absolute",
251
+ style: { top: "-30px", left: 0 },
252
+ },
253
+ },
250
254
  ],
251
255
  attrs: {
252
- class: 't-relative'
253
- }
256
+ class: "t-relative",
257
+ },
254
258
  };
255
259
 
256
260
  function formAnchor(updates) {
257
- return merge(
258
- formAnchorDefaults,
259
- updates
260
- )
261
+ return merge(formAnchorDefaults, updates)
261
262
  }
262
263
 
263
264
  function headlineDefaults(updates = {}) {
264
265
  return {
265
- $el: 'h1',
266
+ $el: "h1",
266
267
  attrs: {
267
- class: 't-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3' + ' ' + (updates.headlineClass || '')
268
- }
268
+ class:
269
+ "t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3" +
270
+ " " +
271
+ (updates.headlineClass || ""),
272
+ },
269
273
  }
270
274
  }
271
275
 
272
276
  function headline(updates = {}) {
273
- return merge(
274
- headlineDefaults(updates),
275
- updates
276
- )
277
+ return merge(headlineDefaults(updates), updates)
277
278
  }
278
279
 
279
280
  function subHeadlineDefaults(updates = {}) {
280
281
  return {
281
- $el: 'h3',
282
+ $el: "h3",
282
283
  attrs: {
283
- class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10' + ' ' + (updates.subheadlineClass || '')
284
- }
284
+ class:
285
+ "t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10" +
286
+ " " +
287
+ (updates.subheadlineClass || ""),
288
+ },
285
289
  }
286
290
  }
287
291
 
288
292
  function subHeadline(updates = {}) {
289
- return merge(
290
- subHeadlineDefaults(updates),
291
- updates
292
- )
293
+ return merge(subHeadlineDefaults(updates), updates)
293
294
  }
294
295
 
295
296
  const hiddenInputsBase = [
296
297
  {
297
- $formkit: 'hidden',
298
+ $formkit: "hidden",
298
299
  name: "gclid",
299
- value: null
300
+ value: null,
300
301
  },
301
302
  {
302
- $formkit: 'hidden',
303
+ $formkit: "hidden",
303
304
  name: "campaignid",
304
- value: null
305
+ value: null,
305
306
  },
306
307
  {
307
- $formkit: 'hidden',
308
+ $formkit: "hidden",
308
309
  name: "s",
309
- value: null
310
- }
310
+ value: null,
311
+ },
311
312
  ];
312
313
 
313
314
  const hiddenInputsVets = [
314
315
  {
315
- $formkit: 'hidden',
316
+ $formkit: "hidden",
316
317
  name: "vertical",
317
- value: "Pets"
318
+ value: "Pets",
318
319
  },
319
- ...hiddenInputsBase
320
+ ...hiddenInputsBase,
320
321
  ];
321
322
 
322
323
  const schema = [
@@ -1 +1 @@
1
- var vets=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,r,n=4){return"https://listings."+e+"/api/v1/redirect?zone_id="+n+"&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(r)}const r=(t,r)=>(t=>(t.name&&!t.id&&(t.id=t.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:r?r+":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"'},t)),n="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",i="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",s=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,l=e=>{if(s(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const r=e.children[t];if(s(r))return r;const n=l(r);if(n)return n}return null},o=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});const a={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 c=[{$formkit:"hidden",name:"vertical",value:"Pets"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],d=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},f),{$cmp:"FormKit",props:function(t){const r=e(a,t);return r.formId&&!r.name&&(r.name=r.formId),r}({formId:"vets",redirectMap:{"*":(u="zipanswers.com",p="Pets",m="Veterinarians",t(u,p,m)+"&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-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")}}}(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.2rem] t-font-medium t-text-blue-500 t-px-10 "+(e.subheadlineClass||"")}}}(t),t)}({children:'$urlParam("shl", "Get Answers Within Minutes!")',if:"$activeStep === $firstStep()"}),...c,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,r,s={}){const{nextOnEnter:a=!0,nextOnInput:c=!1,stepKey:d,nextStepMap:u,triggerRedirectMap:p,autoFocus:m}=s;if(r&&r.length&&(a||c)){const e=l(r[r.length-1]);e&&!0===a&&(e.onKeypress=n),e&&!0===c&&(e.onInput=i)}return e(o(t,d),{children:[{$formkit:"group",id:t,name:t,nextStepMap:u,triggerRedirectMap:p,autoFocus:m,children:r}]})}("comments",[r({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 u,p,m,f;return d}();
1
+ var vets=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,r,n=4){return"https://listings."+e+"/api/v1/redirect?zone_id="+n+"&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(r)}const r=(t,r,n)=>(t=>(t.name&&!t.id&&(t.id=t.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"'},n)),n="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",i="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",s=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,l=e=>{if(s(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const r=e.children[t];if(s(r))return r;const n=l(r);if(n)return n}return null},o=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});const a={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 c=[{$formkit:"hidden",name:"vertical",value:"Pets"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],d=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},f),{$cmp:"FormKit",props:function(t){const r=e(a,t);return r.formId&&!r.name&&(r.name=r.formId),r}({formId:"vets",redirectMap:{"*":(u="zipanswers.com",p="Pets",m="Veterinarians",t(u,p,m)+"&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-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")}}}(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.2rem] t-font-medium t-text-blue-500 t-px-10 "+(e.subheadlineClass||"")}}}(t),t)}({children:'$urlParam("shl", "Get Answers Within Minutes!")',if:"$activeStep === $firstStep()"}),...c,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,r,s={}){const{nextOnEnter:a=!0,nextOnInput:c=!1,stepKey:d,nextStepMap:u,triggerRedirectMap:p,autoFocus:m}=s;if(r&&r.length&&(a||c)){const e=l(r[r.length-1]);e&&!0===a&&(e.onKeypress=n),e&&!0===c&&(e.onInput=i)}return e(o(t,d),{children:[{$formkit:"group",id:t,name:t,nextStepMap:u,triggerRedirectMap:p,autoFocus:m,children:r}]})}("comments",[r(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 u,p,m,f;return d}();