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
@@ -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 hiddenInputsAppraisals = [
314
315
  {
315
- $formkit: 'hidden',
316
+ $formkit: "hidden",
316
317
  name: "vertical",
317
- value: "Appraisals"
318
+ value: "Appraisals",
318
319
  },
319
- ...hiddenInputsBase
320
+ ...hiddenInputsBase,
320
321
  ];
321
322
 
322
323
  const schema = [
@@ -1 +1 @@
1
- var coins=function(){"use strict";function e(){return Object.assign({},...arguments)}const t=(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)),r="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",n="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",i=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,s=e=>{if(i(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(i(r))return r;const n=s(r);if(n)return n}return null},l=(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 o=[{$formkit:"hidden",name:"vertical",value:"Appraisals"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],c=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},m),{$cmp:"FormKit",props:function(t){const r=e(a,t);return r.formId&&!r.name&&(r.name=r.formId),r}({formId:"coins",redirectMap:{"*":(d="answers-now.com",p="Appraisals",u="Coins",function(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)}(d,p,u)+"&Comments=${properties.Comments}")},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", "Start Here for An Appraisal")',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 Coin Valuations In Minutes!")',if:"$activeStep === $firstStep()"}),...o,{$el:"div",attrs:{class:"form-body"},children:[function(i={}){return function(t,i,a={}){const{nextOnEnter:o=!0,nextOnInput:c=!1,stepKey:d,nextStepMap:p,triggerRedirectMap:u,autoFocus:m}=a;if(i&&i.length&&(o||c)){const e=s(i[i.length-1]);e&&!0===o&&(e.onKeypress=r),e&&!0===c&&(e.onInput=n)}return e(l(t,d),{children:[{$formkit:"group",id:t,name:t,nextStepMap:p,triggerRedirectMap:u,autoFocus:m,children:i}]})}("comments",[t({label:i.label||"Please briefly describe your issue in a few words:",placeholder:i.placeholder||'$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)'})],i)}({label:"Please describe your item in a few words:",placeholder:'Example: "I have a wheat penny, buffalo nickel, and silver barber dime from the early 1900s I would like appraised."',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 d,p,u,m;return c}();
1
+ var coins=function(){"use strict";function e(){return Object.assign({},...arguments)}const t=(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)),r="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",n="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",i=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,s=e=>{if(i(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(i(r))return r;const n=s(r);if(n)return n}return null},l=(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 o=[{$formkit:"hidden",name:"vertical",value:"Appraisals"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],c=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},m),{$cmp:"FormKit",props:function(t){const r=e(a,t);return r.formId&&!r.name&&(r.name=r.formId),r}({formId:"coins",redirectMap:{"*":(d="answers-now.com",p="Appraisals",u="Coins",function(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)}(d,p,u)+"&Comments=${properties.Comments}")},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", "Start Here for An Appraisal")',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 Coin Valuations In Minutes!")',if:"$activeStep === $firstStep()"}),...o,{$el:"div",attrs:{class:"form-body"},children:[function(i={}){return function(t,i,a={}){const{nextOnEnter:o=!0,nextOnInput:c=!1,stepKey:d,nextStepMap:p,triggerRedirectMap:u,autoFocus:m}=a;if(i&&i.length&&(o||c)){const e=s(i[i.length-1]);e&&!0===o&&(e.onKeypress=r),e&&!0===c&&(e.onInput=n)}return e(l(t,d),{children:[{$formkit:"group",id:t,name:t,nextStepMap:p,triggerRedirectMap:u,autoFocus:m,children:i}]})}("comments",[t(i.scope,0,{label:i.label||"Please briefly describe your issue in a few words:",placeholder:i.placeholder||'$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)'})],i)}({label:"Please describe your item in a few words:",placeholder:'Example: "I have a wheat penny, buffalo nickel, and silver barber dime from the early 1900s I would like appraised."',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 d,p,u,m;return c}();