bhl-forms 0.0.32 → 0.0.35
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/bhl-forms.es.js +929 -791
- package/dist/bhl-forms.iife.js +3 -3
- package/dist/bhl-forms.modern.es.js +2642 -3300
- package/dist/bhl-forms.modern.iife.js +5 -5
- package/dist/bhl-forms.modern.umd.js +5 -5
- package/dist/bhl-forms.umd.js +3 -3
- package/dist/forms/childAndFamily.es.js +1 -2
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/testForm.es.js +3 -3
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +6 -5
- package/dist/bhl-forms.dev.es.js +0 -10856
- package/dist/bhl-forms.dev.iife.js +0 -10862
- package/dist/bhl-forms.dev.umd.js +0 -10864
- package/dist/bhl-forms.legacy.es.js +0 -21246
- package/dist/bhl-forms.legacy.iife.js +0 -1
- package/dist/bhl-forms.legacy.umd.js +0 -1
- package/dist/forms/childAndFamily.legacy.iife.js +0 -1
- package/dist/forms/testForm.legacy.iife.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var childAndFamily=(function(){"use strict";function merge(){return Object.assign({},...arguments)}const radio=e=>merge({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},e),sbsYesNoRadio=e=>(e.options=["Yes","No"],e.legendClass="legend-left t-pb-2 required",e.fieldsetClass="$reset side-by-side t-items-center",e.optionsClass="t-pl-1 side-by-side t-items-center",e.innerClass="t-flex t-items-center",radio(e)),sbsSelect=e=>(e.labelClass="required",e.wrapperClass="side-by-side t-items-center",e.innerClass="select-height-content",(e=>merge({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},e))(e)),sbsText=e=>(e.labelClass="required",e.wrapperClass="side-by-side t-items-center",(e=>merge({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},e))(e)),childAndFamilyTOLP=()=>{return(e={label:"Type of Help Needed:",name:"Type_Of_Legal_Problem",id:"Type_Of_Legal_Problem",options:["Adoption","Child Custody and Support","Family Issues","Guardianship","Divorce and Separation","Not Sure or Other"]}).legendClass="legend-left-flex md:t-max-w-[40%] required",e.fieldsetClass="$reset side-by-side-flex",e.optionsClass="t-ml-4 t-grid t-grid-cols-1 md:t-grid-cols-2-150",e.innerClass="t-flex t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",radio(e);var e},degreeOfInterest=()=>sbsSelect({label:"How Likely Are You to Pay if Your Issue Could be Resolved?",name:"Degree_Of_Interest",options:["Definitely","Probably","Maybe","Absolutely Can't Afford"]}),firstName=()=>sbsText({$formkit:"text",label:"First Name:",name:"First_Name",validation:"required",validationMessages:{required:"First Name is required"}}),email=()=>sbsText({$formkit:"email",name:"Email",label:"Email Address:",placeholder:"email@domain.com",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"}}),haveAttorney=()=>sbsYesNoRadio({name:"Have_Attorney",label:"Are You Currently Working with An Attorney?"}),haveChildren=()=>sbsYesNoRadio({name:"Have_Children",label:"Do You Have Children?"}),lastName=()=>sbsText({$formkit:"text",label:"Last Name:",name:"Last_Name",validation:"required",validationMessages:{required:"Last Name is required"}}),lawyerPaymentMethod=()=>sbsSelect({label:"How Will You Pay for Legal Fees if You Hire a Lawyer?",name:"Lawyer_Payment_Method",help:"No payment necessary to speak with lawyers.",options:["Cash","Check","Credit Card","Friend","Family","Other"]}),maritalStatus=()=>sbsSelect({label:"Marital Status:",name:"Marital_Status",options:["Unmarried, Living Together","Unmarried, Do Not Live Together","Married, Living Together","Separated","Divorced","Other"]}),phone=()=>sbsText({$formkit:"tel",name:"Primary_Phone",label:"Phone Number:",placeholder:"xxx-xxx-xxxx",maxlength:12,validation:"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/",validationMessages:{required:"Phone Number is required",matches:"Invalid Phone Number"}}),zipcode=()=>sbsText({label:"Zip Code:",placeholder:"90210",name:"Zip",maxlength:5,validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"}}),group=(e,t)=>merge({$cmp:"FormKit",props:{type:"group",key:e,id:e,name:e}},t),AdoptionQuestions=()=>group("AdoptionQuestions",{"if":'$get(Type_Of_Legal_Problem).value == "Adoption"',children:[haveAttorney(),maritalStatus(),haveChildren(),degreeOfInterest(),lawyerPaymentMethod()]}),ChildCustodyAndSupportQuestions=()=>group("ChildCustodyAndSupportQuestions",{"if":'$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',children:[haveAttorney(),sbsSelect({label:"Your Relationship to Child(ren):",name:"Child_Relationship",options:["Father","Mother","Grandparent","Aunt/Uncle","Other"]}),sbsSelect({label:"With Whom Do the Children Currently Live?",name:"Child_Home",options:["Mother","Father","Grandparents","Other"]}),sbsSelect({label:"Who is the Primary Caregiver?",name:"Child_Primary_Caregiver",options:["Mother","Father","Other"]}),degreeOfInterest(),lawyerPaymentMethod()]}),FamilyIssuesQuestions=()=>group("FamilyIssuesQuestions",{"if":'$get(Type_Of_Legal_Problem).value == "Family Issues"',children:[haveAttorney(),maritalStatus(),haveChildren(),degreeOfInterest(),lawyerPaymentMethod()]}),GuardianshipQuestions=()=>group("GuardianshipQuestions",{"if":'$get(Type_Of_Legal_Problem).value == "Guardianship"',children:[haveAttorney(),maritalStatus(),haveChildren(),degreeOfInterest(),lawyerPaymentMethod()]}),DivorceQuestions=()=>group("DivorceQuestions",{"if":'$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',children:[haveAttorney(),maritalStatus(),haveChildren(),degreeOfInterest(),lawyerPaymentMethod()]}),NotSureOrOtherQuestions=()=>group("NotSureOrOtherQuestions",{"if":'$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',children:[haveAttorney(),lawyerPaymentMethod()]});function step(e,t,...i){return merge((e=>({$el:"section","if":'$stepIsEnabled("'+e+'")',attrs:{style:{"if":'$activeStep !== "'+e+'"',then:"display: none;"}}}))(e),{children:[merge({$formkit:"group",id:e,name:e,children:t},...i)]})}const e=[{type:"meta",data:{tcpaLanguage:"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners 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. To submit this request without this consent, call 855-506-0847."}},{$el:"div",children:[{$el:"div",attrs:{id:"form-anchor","class":"t-absolute",style:{top:"-20px",left:0}}}],attrs:{"class":"t-relative"}},{$cmp:"FormKit",props:(t={formId:"childAndFamily",onSubmit:'$submit("https://httpbin.org/post", $prepData, $getRedirect)',redirectMap:{"Adoption":"https://justanswer.9pctbx.net/c/2880795/565949/9320?sharedid=${properties.vid}","Child Custody and Support":"https://justanswer.9pctbx.net/c/2880795/565949/9320?sharedid=${properties.vid}","Divorce and Separation":"https://justanswer.9pctbx.net/c/2880795/966410/9320?sharedid=${properties.vid}","Guardianship":"https://justanswer.9pctbx.net/c/2880795/565949/9320?sharedid=${properties.vid}","*":"https://justanswer.9pctbx.net/c/2880795/808601/9320?sharedid=${properties.vid}"},anchorElement:"form-anchor"},merge({type:"form",id:"form",onSubmit:'$submit("https://httpbin.org/post", $prepData, $getRedirect)',plugins:"$plugins",actions:!1,prepop:{fromURL:!0},errorCodes:{403:"An Error Occurred",409:{abort:!1},429:"An Error Occurred"},formClass:"!t-max-w-xl"},t)),children:[{$el:"h1","if":"$activeStep === $firstStep()",children:"Get Child & Family Help Today",attrs:{"class":"t-flex t-justify-center t-text-center t-text-3xl t-font-bold t-pt-5 t-px-3"}},{$el:"h3","if":"$activeStep === $firstStep()",children:"Contact Us Now for Child Support, Custody and Family Issues",attrs:{"class":"t-flex t-justify-center t-text-center t-text-md t-font-medium t-text-blue-500 t-px-3"}},{$formkit:"hidden",name:"vertical",value:"Legal"},{$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:[(function(){return step("childAndFamilyTOLPAndZip",[childAndFamilyTOLP(),zipcode()],...arguments)})(),(function(){return step("TOLPQuestions",[{$el:"h3",children:"Please Complete the Following:",attrs:{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-3"}},AdoptionQuestions(),ChildCustodyAndSupportQuestions(),FamilyIssuesQuestions(),GuardianshipQuestions(),DivorceQuestions(),NotSureOrOtherQuestions()],...arguments)})(),(function(){return step("comments",[{$formkit:"textarea",label:"Please provide a brief description of your situation:",name:"Comments",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"',rows:1,validation:"required",maxlength:1e3,labelClass:"required",validationMessages:{required:"Description is required"}}],...arguments)})(),(function(){return step("firstAndLast",[firstName(),lastName()],...arguments)})(),(function(){return step("contactInfo",[{$el:"h3",children:"Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:",attrs:{"class":"t-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-px-3"}},email(),phone(),{$formkit:"checkbox",label:"$meta.tcpaLanguage",name:"TCPA_Opt_In",validation:"required|accepted",validationMessages:{required:"Consent is required",accepted:"Consent is required"},classes:{label:"t-text-xs t-text-slate-500 t-font-normal"}},{$el:"div","if":"$activeStep === $lastStep()",attrs:{"class":"t-flex t-justify-center"},children:[{$el:"img",attrs:{loading:"lazy",alt:"",style:{border:0},src:"https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png",width:"320",height:"100"}}]}],...arguments)})(),{$el:"div",attrs:{"class":"step-nav"},children:[{$formkit:"button",onClick:"$setPreviousStep()",children:"Back",style:{"if":"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"button",onClick:"$setNextStep($fireStepEvent($get(form)))",children:"Next",style:{"if":"$activeStep === $lastStep()",then:"display: none;"}},{$formkit:"submit",label:"Submit","if":"$activeStep === $lastStep()",style:{"if":"$activeStep !== $lastStep()",then:"display: none;"}}]},{$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"}}]}]}]}];var t;return e})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var testForm=(function(){"use strict";function merge(){return Object.assign({},...arguments)}const sbsSelect=e=>(e.labelClass="required",e.wrapperClass="side-by-side t-items-center",e.innerClass="select-height-content",(e=>merge({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},e))(e)),sbsText=e=>(e.labelClass="required",e.wrapperClass="side-by-side t-items-center",(e=>merge({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},e))(e)),category=()=>sbsSelect({$formkit:"select",label:"Category:",name:"category",id:"category",validation:"required",options:["Fruits","Vegetables"]}),firstName=()=>sbsText({$formkit:"text",label:"First Name:",name:"First_Name",validation:"required",validationMessages:{required:"First Name is required"}}),email=()=>sbsText({$formkit:"email",name:"Email",label:"Email Address:",placeholder:"email@domain.com",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"}}),lastName=()=>sbsText({$formkit:"text",label:"Last Name:",name:"Last_Name",validation:"required",validationMessages:{required:"Last Name is required"}}),phone=()=>sbsText({$formkit:"tel",name:"Primary_Phone",label:"Phone Number:",placeholder:"xxx-xxx-xxxx",maxlength:12,validation:"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/",validationMessages:{required:"Phone Number is required",matches:"Invalid Phone Number"}}),zipcode=()=>sbsText({label:"Zip Code:",placeholder:"90210",name:"Zip",maxlength:5,validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"}});function step(e,t,...i){return merge((e=>({$el:"section","if":'$stepIsEnabled("'+e+'")',attrs:{style:{"if":'$activeStep !== "'+e+'"',then:"display: none;"}}}))(e),{children:[merge({$formkit:"group",id:e,name:e,children:t},...i)]})}const e=[{type:"meta",data:{tcpaLanguage:"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners 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. To submit this request without this consent, call 855-506-0847."}},{$cmp:"FormKit",props:(t={formId:"testForm",onSubmit:'$submit("http://localhost:8080/api/v1/form_leads_ext", $prepData)'},merge({type:"form",id:"form",onSubmit:'$submit("https://httpbin.org/post", $prepData, $getRedirect)',plugins:"$plugins",actions:!1,prepop:{fromURL:!0},errorCodes:{403:"An Error Occurred",409:{abort:!1},429:"An Error Occurred"},formClass:"!t-max-w-xl"},t)),children:[{$el:"h1",children:"Need Help? Start Here!",attrs:{"class":"t-flex t-justify-center t-text-3xl t-font-bold"}},{$el:"h3",children:"Get Your Questions Answered Today!",attrs:{"class":"t-flex t-justify-center t-text-l t-font-bold t-text-blue-500"}},{$formkit:"hidden",name:"vertical",value:"Legal"},{$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:[(function(){return step("categoryAndZip",[zipcode(),category()],...arguments)})(),(function(){return step("firstAndLast",[firstName(),lastName()],...arguments)})(),(function(){return step("contactInfo",[{$el:"h3",children:"Based on your input, you may benefit from speaking with a family lawyer. Please verify your contact information:",attrs:{"class":"t-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-px-3"}},email(),phone(),{$formkit:"checkbox",label:"$meta.tcpaLanguage",name:"TCPA_Opt_In",validation:"required|accepted",validationMessages:{required:"Consent is required",accepted:"Consent is required"},classes:{label:"t-text-xs t-text-slate-500 t-font-normal"}},{$el:"div","if":"$activeStep === $lastStep()",attrs:{"class":"t-flex t-justify-center"},children:[{$el:"img",attrs:{loading:"lazy",alt:"",style:{border:0},src:"https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png",width:"320",height:"100"}}]}],...arguments)})(),{$el:"div",attrs:{"class":"step-nav"},children:[{$formkit:"button",onClick:"$setPreviousStep()",children:"Back",style:{"if":"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"button",onClick:"$setNextStep($fireStepEvent($get(form)))",children:"Next",style:{"if":"$activeStep === $lastStep()",then:"display: none;"}},{$formkit:"submit",label:"Submit","if":"$activeStep === $lastStep()",style:{"if":"$activeStep !== $lastStep()",then:"display: none;"}}]},{$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"}}]}]}]}];var t;return e})();
|