User Registration – Custom Registration Form, Login Form And User Profile For WordPress - Version 2.2.2

Version Description

  • 06/09/2022
  • Enhance - Parse smart tag values in appropriate format to display.
  • Refactor - Remove field icon code.
  • Refactor - Replace jQuery tiptip with Tooltipster for tooltip.
  • Tweak - Double quoted main font family ignored by browsers.
  • Tweak - Replace incremental file name function with WordPress default.
  • Tweak - Revert content overrider not saving code back to old working one.
  • Tweak - Settings option label made consistent.
  • Fix - Flatpickr localization issue.
  • Fix - File type valid value format.
  • Fix - Select All option translation issue.
  • Fix - Conditional Logic enabled required field issue.
  • Fix - Invalid argument error in foreach when updating pro.
  • Fix - Redirection after registration not working with block.
  • Fix - Error thrown when uploaded file is not found in upload directory.
  • Fix - Ajax Submission not working in edit profile when required field empty.
  • Fix - Lost password not working when no default account page with forgot password endpoint.
Download this release

Release Info

Developer wpeverestdev
Plugin Icon 128x128 User Registration – Custom Registration Form, Login Form And User Profile For WordPress
Version 2.2.2
Comparing to
See all releases

Code changes from version 2.2.1 to 2.2.2

Files changed (127) hide show
  1. assets/css/admin-rtl.css +15 -59
  2. assets/css/admin.css +15 -62
  3. assets/css/admin.scss +29 -86
  4. assets/css/tooltipster/tooltipster-sideTip-borderless.min.css +1 -0
  5. assets/css/tooltipster/tooltipster.bundle.css +388 -0
  6. assets/css/tooltipster/tooltipster.bundle.min.css +1 -0
  7. assets/css/user-registration-rtl.css +1 -57
  8. assets/css/user-registration.css +1 -58
  9. assets/css/user-registration.scss +1 -79
  10. assets/js/admin/admin.js +19 -9
  11. assets/js/admin/admin.min.js +1 -1
  12. assets/js/admin/form-builder.js +8 -6
  13. assets/js/admin/form-builder.min.js +1 -1
  14. assets/js/admin/ur-copy.js +2 -1
  15. assets/js/admin/ur-copy.min.js +1 -1
  16. assets/js/flatpickr/dist/I10n/ar-dz.js +61 -0
  17. assets/js/flatpickr/dist/I10n/ar.js +62 -0
  18. assets/js/flatpickr/dist/I10n/at.js +70 -0
  19. assets/js/flatpickr/dist/I10n/az.js +74 -0
  20. assets/js/flatpickr/dist/I10n/be.js +75 -0
  21. assets/js/flatpickr/dist/I10n/bg.js +66 -0
  22. assets/js/flatpickr/dist/I10n/bn.js +64 -0
  23. assets/js/flatpickr/dist/I10n/bs.js +66 -0
  24. assets/js/flatpickr/dist/I10n/cat.js +84 -0
  25. assets/js/flatpickr/dist/I10n/ckb.js +76 -0
  26. assets/js/flatpickr/dist/I10n/cs.js +75 -0
  27. assets/js/flatpickr/dist/I10n/cy.js +93 -0
  28. assets/js/flatpickr/dist/I10n/da.js +71 -0
  29. assets/js/flatpickr/dist/I10n/de.js +70 -0
  30. assets/js/flatpickr/dist/I10n/default.js +84 -0
  31. assets/js/flatpickr/dist/I10n/eo.js +73 -0
  32. assets/js/flatpickr/dist/I10n/es.js +70 -0
  33. assets/js/flatpickr/dist/I10n/et.js +73 -0
  34. assets/js/flatpickr/dist/I10n/fa.js +68 -0
  35. assets/js/flatpickr/dist/I10n/fi.js +69 -0
  36. assets/js/flatpickr/dist/I10n/fo.js +74 -0
  37. assets/js/flatpickr/dist/I10n/fr.js +75 -0
  38. assets/js/flatpickr/dist/I10n/ga.js +66 -0
  39. assets/js/flatpickr/dist/I10n/gr.js +77 -0
  40. assets/js/flatpickr/dist/I10n/he.js +58 -0
  41. assets/js/flatpickr/dist/I10n/hi.js +64 -0
  42. assets/js/flatpickr/dist/I10n/hr.js +66 -0
  43. assets/js/flatpickr/dist/I10n/hu.js +73 -0
  44. assets/js/flatpickr/dist/I10n/hy.js +78 -0
  45. assets/js/flatpickr/dist/I10n/id.js +62 -0
  46. assets/js/flatpickr/dist/I10n/index.js +3809 -0
  47. assets/js/flatpickr/dist/I10n/is.js +72 -0
  48. assets/js/flatpickr/dist/I10n/it.js +71 -0
  49. assets/js/flatpickr/dist/I10n/ja.js +71 -0
  50. assets/js/flatpickr/dist/I10n/ka.js +75 -0
  51. assets/js/flatpickr/dist/I10n/km.js +74 -0
  52. assets/js/flatpickr/dist/I10n/ko.js +69 -0
  53. assets/js/flatpickr/dist/I10n/kz.js +74 -0
  54. assets/js/flatpickr/dist/I10n/lt.js +73 -0
  55. assets/js/flatpickr/dist/I10n/lv.js +67 -0
  56. assets/js/flatpickr/dist/I10n/mk.js +68 -0
  57. assets/js/flatpickr/dist/I10n/mn.js +59 -0
  58. assets/js/flatpickr/dist/I10n/ms.js +59 -0
  59. assets/js/flatpickr/dist/I10n/my.js +69 -0
  60. assets/js/flatpickr/dist/I10n/nl.js +75 -0
  61. assets/js/flatpickr/dist/I10n/nn.js +73 -0
  62. assets/js/flatpickr/dist/I10n/no.js +73 -0
  63. assets/js/flatpickr/dist/I10n/pa.js +65 -0
  64. assets/js/flatpickr/dist/I10n/pl.js +73 -0
  65. assets/js/flatpickr/dist/I10n/pt.js +66 -0
  66. assets/js/flatpickr/dist/I10n/ro.js +69 -0
  67. assets/js/flatpickr/dist/I10n/ru.js +75 -0
  68. assets/js/flatpickr/dist/I10n/si.js +65 -0
  69. assets/js/flatpickr/dist/I10n/sk.js +70 -0
  70. assets/js/flatpickr/dist/I10n/sl.js +70 -0
  71. assets/js/flatpickr/dist/I10n/sq.js +72 -0
  72. assets/js/flatpickr/dist/I10n/sr-cyr.js +67 -0
  73. assets/js/flatpickr/dist/I10n/sr.js +68 -0
  74. assets/js/flatpickr/dist/I10n/sv.js +71 -0
  75. assets/js/flatpickr/dist/I10n/th.js +72 -0
  76. assets/js/flatpickr/dist/I10n/tr.js +74 -0
  77. assets/js/flatpickr/dist/I10n/uk.js +66 -0
  78. assets/js/flatpickr/dist/I10n/uz.js +75 -0
  79. assets/js/flatpickr/dist/I10n/uz_latn.js +75 -0
  80. assets/js/flatpickr/dist/I10n/vn.js +66 -0
  81. assets/js/flatpickr/dist/I10n/zh-tw.js +68 -0
  82. assets/js/flatpickr/dist/I10n/zh.js +68 -0
  83. assets/js/frontend/user-registration-form-validator.js +19 -9
  84. assets/js/frontend/user-registration-form-validator.min.js +1 -1
  85. assets/js/frontend/user-registration.js +1 -1
  86. assets/js/frontend/user-registration.min.js +1 -1
  87. assets/js/tooltipster/tooltipster.bundle.js +4272 -0
  88. assets/js/tooltipster/tooltipster.bundle.min.js +1 -0
  89. includes/RestApi/class-ur-rest-api.php +2 -2
  90. includes/abstracts/abstract-ur-form-field.php +3 -1
  91. includes/admin/class-ur-admin-assets.php +8 -3
  92. includes/class-ur-ajax.php +1 -1
  93. includes/class-ur-emailer.php +7 -2
  94. includes/class-ur-form-handler.php +1 -1
  95. includes/class-ur-frontend-scripts.php +3 -3
  96. includes/class-ur-install.php +13 -11
  97. includes/form/class-ur-form-field-checkbox.php +24 -11
  98. includes/form/class-ur-form-field-country.php +35 -7
  99. includes/form/class-ur-form-field-date.php +30 -8
  100. includes/form/class-ur-form-field-description.php +31 -10
  101. includes/form/class-ur-form-field-display-name.php +28 -6
  102. includes/form/class-ur-form-field-email.php +30 -7
  103. includes/form/class-ur-form-field-first-name.php +28 -6
  104. includes/form/class-ur-form-field-last-name.php +28 -6
  105. includes/form/class-ur-form-field-nickname.php +28 -8
  106. includes/form/class-ur-form-field-number.php +30 -7
  107. includes/form/class-ur-form-field-password.php +28 -8
  108. includes/form/class-ur-form-field-privacy-policy.php +24 -11
  109. includes/form/class-ur-form-field-radio.php +25 -8
  110. includes/form/class-ur-form-field-select.php +27 -5
  111. includes/form/class-ur-form-field-text.php +27 -6
  112. includes/form/class-ur-form-field-textarea.php +27 -6
  113. includes/form/class-ur-form-field-user-confirm-email.php +8 -2
  114. includes/form/class-ur-form-field-user-confirm-password.php +22 -2
  115. includes/form/class-ur-form-field-user-email.php +22 -3
  116. includes/form/class-ur-form-field-user-login.php +22 -3
  117. includes/form/class-ur-form-field-user-pass.php +27 -2
  118. includes/form/class-ur-form-field-user-url.php +28 -7
  119. includes/frontend/class-ur-frontend-form-handler.php +4 -0
  120. includes/functions-ur-account.php +4 -2
  121. includes/functions-ur-core.php +76 -24
  122. includes/functions-ur-template.php +31 -20
  123. includes/shortcodes/class-ur-shortcode-my-account.php +4 -2
  124. languages/user-registration.pot +571 -522
  125. readme.txt +20 -2
  126. templates/myaccount/form-edit-profile.php +18 -0
  127. user-registration.php +2 -2
assets/css/admin-rtl.css CHANGED
@@ -5289,6 +5289,9 @@
5289
  .ur-label .user-registration-help-tip {
5290
  margin-right: 2px; }
5291
 
 
 
 
5292
  .jconfirm-cell {
5293
  padding-right: 30%;
5294
  padding-left: 30%; }
@@ -6371,65 +6374,6 @@
6371
  img.tips {
6372
  padding: 5px 0 0; }
6373
 
6374
- #tiptip_holder {
6375
- display: none;
6376
- z-index: 8675309;
6377
- position: absolute;
6378
- top: 0;
6379
- left: 0; }
6380
- #tiptip_holder.tip_top {
6381
- padding-bottom: 5px; }
6382
- #tiptip_holder.tip_top #tiptip_arrow_inner {
6383
- margin-top: -7px;
6384
- margin-right: -6px;
6385
- border-top-color: #dee0e9; }
6386
- #tiptip_holder.tip_bottom {
6387
- padding-top: 5px; }
6388
- #tiptip_holder.tip_bottom #tiptip_arrow_inner {
6389
- margin-top: -5px;
6390
- margin-right: -6px;
6391
- border-bottom-color: #4c5477; }
6392
- #tiptip_holder.tip_right {
6393
- padding-right: 5px; }
6394
- #tiptip_holder.tip_right #tiptip_arrow_inner {
6395
- margin-top: -6px;
6396
- margin-right: -5px;
6397
- border-left-color: #dee0e9; }
6398
- #tiptip_holder.tip_left {
6399
- padding-left: 5px; }
6400
- #tiptip_holder.tip_left #tiptip_arrow_inner {
6401
- margin-top: -6px;
6402
- margin-right: -7px;
6403
- border-right-color: #dee0e9; }
6404
-
6405
- #tiptip_content,
6406
- .ur_error_tip {
6407
- color: #ffffff;
6408
- font-size: 0.9em;
6409
- max-width: 150px;
6410
- background: #4c5477;
6411
- text-align: center;
6412
- border-radius: 3px;
6413
- padding: 0.618em 1em;
6414
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
6415
- #tiptip_content code,
6416
- .ur_error_tip code {
6417
- padding: 1px;
6418
- background: #888; }
6419
-
6420
- #tiptip_arrow,
6421
- #tiptip_arrow_inner {
6422
- position: absolute;
6423
- border-color: transparent;
6424
- border-style: solid;
6425
- border-width: 6px;
6426
- height: 0;
6427
- width: 0; }
6428
-
6429
- #tiptip_arrow {
6430
- right: 50%;
6431
- margin-right: -6px;
6432
- }
6433
  .ur_error_tip {
6434
  max-width: 20em;
6435
  line-height: 1.8em;
@@ -6450,6 +6394,18 @@ img.tips {
6450
  right: 50%;
6451
  margin: -1em -3px 0 0; }
6452
 
 
 
 
 
 
 
 
 
 
 
 
 
6453
  /**
6454
  * Help Tip
6455
  */
5289
  .ur-label .user-registration-help-tip {
5290
  margin-right: 2px; }
5291
 
5292
+ .ur-label label span:not(.ur-portal-tooltip) {
5293
+ margin-right: 3px; }
5294
+
5295
  .jconfirm-cell {
5296
  padding-right: 30%;
5297
  padding-left: 30%; }
6374
  img.tips {
6375
  padding: 5px 0 0; }
6376
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6377
  .ur_error_tip {
6378
  max-width: 20em;
6379
  line-height: 1.8em;
6394
  right: 50%;
6395
  margin: -1em -3px 0 0; }
6396
 
6397
+ .tooltipster-base .tooltipster-box {
6398
+ background-color: #4c5477 !important;
6399
+ padding: 4px 8px;
6400
+ border-radius: 2px;
6401
+ text-align: center; }
6402
+ .tooltipster-base .tooltipster-box .tooltipster-content {
6403
+ padding: 2px 0; }
6404
+
6405
+ .tooltipster-base .tooltipster-arrow .tooltipster-arrow-uncropped .tooltipster-arrow-border {
6406
+ border-bottom-color: #4c5477 !important;
6407
+ border-top-color: #4c5477 !important; }
6408
+
6409
  /**
6410
  * Help Tip
6411
  */
assets/css/admin.css CHANGED
@@ -5289,6 +5289,9 @@
5289
  .ur-label .user-registration-help-tip {
5290
  margin-left: 2px; }
5291
 
 
 
 
5292
  .jconfirm-cell {
5293
  padding-left: 30%;
5294
  padding-right: 30%; }
@@ -6371,68 +6374,6 @@
6371
  img.tips {
6372
  padding: 5px 0 0; }
6373
 
6374
- #tiptip_holder {
6375
- display: none;
6376
- z-index: 8675309;
6377
- position: absolute;
6378
- top: 0;
6379
- /*rtl:ignore*/
6380
- left: 0; }
6381
- #tiptip_holder.tip_top {
6382
- padding-bottom: 5px; }
6383
- #tiptip_holder.tip_top #tiptip_arrow_inner {
6384
- margin-top: -7px;
6385
- margin-left: -6px;
6386
- border-top-color: #dee0e9; }
6387
- #tiptip_holder.tip_bottom {
6388
- padding-top: 5px; }
6389
- #tiptip_holder.tip_bottom #tiptip_arrow_inner {
6390
- margin-top: -5px;
6391
- margin-left: -6px;
6392
- border-bottom-color: #4c5477; }
6393
- #tiptip_holder.tip_right {
6394
- padding-left: 5px; }
6395
- #tiptip_holder.tip_right #tiptip_arrow_inner {
6396
- margin-top: -6px;
6397
- margin-left: -5px;
6398
- border-right-color: #dee0e9; }
6399
- #tiptip_holder.tip_left {
6400
- padding-right: 5px; }
6401
- #tiptip_holder.tip_left #tiptip_arrow_inner {
6402
- margin-top: -6px;
6403
- margin-left: -7px;
6404
- border-left-color: #dee0e9; }
6405
-
6406
- #tiptip_content,
6407
- .ur_error_tip {
6408
- color: #ffffff;
6409
- font-size: 0.9em;
6410
- max-width: 150px;
6411
- background: #4c5477;
6412
- text-align: center;
6413
- border-radius: 3px;
6414
- padding: 0.618em 1em;
6415
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
6416
- #tiptip_content code,
6417
- .ur_error_tip code {
6418
- padding: 1px;
6419
- background: #888; }
6420
-
6421
- #tiptip_arrow,
6422
- #tiptip_arrow_inner {
6423
- position: absolute;
6424
- border-color: transparent;
6425
- border-style: solid;
6426
- border-width: 6px;
6427
- height: 0;
6428
- width: 0; }
6429
-
6430
- /*rtl:raw:
6431
- #tiptip_arrow {
6432
- right: 50%;
6433
- margin-right: -6px;
6434
- }
6435
- */
6436
  .ur_error_tip {
6437
  max-width: 20em;
6438
  line-height: 1.8em;
@@ -6453,6 +6394,18 @@ img.tips {
6453
  left: 50%;
6454
  margin: -1em 0 0 -3px; }
6455
 
 
 
 
 
 
 
 
 
 
 
 
 
6456
  /**
6457
  * Help Tip
6458
  */
5289
  .ur-label .user-registration-help-tip {
5290
  margin-left: 2px; }
5291
 
5292
+ .ur-label label span:not(.ur-portal-tooltip) {
5293
+ margin-left: 3px; }
5294
+
5295
  .jconfirm-cell {
5296
  padding-left: 30%;
5297
  padding-right: 30%; }
6374
  img.tips {
6375
  padding: 5px 0 0; }
6376
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6377
  .ur_error_tip {
6378
  max-width: 20em;
6379
  line-height: 1.8em;
6394
  left: 50%;
6395
  margin: -1em 0 0 -3px; }
6396
 
6397
+ .tooltipster-base .tooltipster-box {
6398
+ background-color: #4c5477 !important;
6399
+ padding: 4px 8px;
6400
+ border-radius: 2px;
6401
+ text-align: center; }
6402
+ .tooltipster-base .tooltipster-box .tooltipster-content {
6403
+ padding: 2px 0; }
6404
+
6405
+ .tooltipster-base .tooltipster-arrow .tooltipster-arrow-uncropped .tooltipster-arrow-border {
6406
+ border-bottom-color: #4c5477 !important;
6407
+ border-top-color: #4c5477 !important; }
6408
+
6409
  /**
6410
  * Help Tip
6411
  */
assets/css/admin.scss CHANGED
@@ -127,6 +127,10 @@
127
  .user-registration-help-tip {
128
  margin-left: 2px;
129
  }
 
 
 
 
130
  }
131
 
132
  .jconfirm-cell {
@@ -142,11 +146,11 @@
142
  align-items: center;
143
  margin-bottom: 18px;
144
  font-size: 18px;
145
-
146
  .ur-shortcut-title {
147
  flex: 3;
148
  }
149
-
150
  .ur-key {
151
  display: flex;
152
  flex: 2;
@@ -159,7 +163,7 @@
159
  padding: 5px 15px;
160
  border-radius: 2px;
161
  }
162
-
163
  .ur-key-plus {
164
  margin-top: 5px;
165
  font-size: 1.2em;
@@ -1717,89 +1721,6 @@
1717
  padding: 5px 0 0;
1718
  }
1719
 
1720
- #tiptip_holder {
1721
- display: none;
1722
- z-index: 8675309;
1723
- position: absolute;
1724
- top: 0;
1725
- /*rtl:ignore*/
1726
- left: 0;
1727
-
1728
- &.tip_top {
1729
- padding-bottom: 5px;
1730
-
1731
- #tiptip_arrow_inner {
1732
- margin-top: -7px;
1733
- margin-left: -6px;
1734
- border-top-color: $border_color;
1735
- }
1736
- }
1737
-
1738
- &.tip_bottom {
1739
- padding-top: 5px;
1740
-
1741
- #tiptip_arrow_inner {
1742
- margin-top: -5px;
1743
- margin-left: -6px;
1744
- border-bottom-color: $color_gray_one;
1745
- }
1746
- }
1747
-
1748
- &.tip_right {
1749
- padding-left: 5px;
1750
-
1751
- #tiptip_arrow_inner {
1752
- margin-top: -6px;
1753
- margin-left: -5px;
1754
- border-right-color: $border_color;
1755
- }
1756
- }
1757
-
1758
- &.tip_left {
1759
- padding-right: 5px;
1760
-
1761
- #tiptip_arrow_inner {
1762
- margin-top: -6px;
1763
- margin-left: -7px;
1764
- border-left-color: $border_color;
1765
- }
1766
- }
1767
- }
1768
-
1769
- #tiptip_content,
1770
- .ur_error_tip {
1771
- color: $white;
1772
- font-size: 0.9em;
1773
- max-width: 150px;
1774
- background: $color_gray_one;
1775
- text-align: center;
1776
- border-radius: 3px;
1777
- padding: 0.618em 1em;
1778
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
1779
-
1780
- code {
1781
- padding: 1px;
1782
- background: #888;
1783
- }
1784
- }
1785
-
1786
- #tiptip_arrow,
1787
- #tiptip_arrow_inner {
1788
- position: absolute;
1789
- border-color: transparent;
1790
- border-style: solid;
1791
- border-width: 6px;
1792
- height: 0;
1793
- width: 0;
1794
- }
1795
-
1796
- /*rtl:raw:
1797
- #tiptip_arrow {
1798
- right: 50%;
1799
- margin-right: -6px;
1800
- }
1801
- */
1802
-
1803
  .ur_error_tip {
1804
  max-width: 20em;
1805
  line-height: 1.8em;
@@ -1823,6 +1744,28 @@
1823
  }
1824
  }
1825
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1826
  /**
1827
  * Help Tip
1828
  */
127
  .user-registration-help-tip {
128
  margin-left: 2px;
129
  }
130
+
131
+ label span:not(.ur-portal-tooltip) {
132
+ margin-left: 3px;
133
+ }
134
  }
135
 
136
  .jconfirm-cell {
146
  align-items: center;
147
  margin-bottom: 18px;
148
  font-size: 18px;
149
+
150
  .ur-shortcut-title {
151
  flex: 3;
152
  }
153
+
154
  .ur-key {
155
  display: flex;
156
  flex: 2;
163
  padding: 5px 15px;
164
  border-radius: 2px;
165
  }
166
+
167
  .ur-key-plus {
168
  margin-top: 5px;
169
  font-size: 1.2em;
1721
  padding: 5px 0 0;
1722
  }
1723
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1724
  .ur_error_tip {
1725
  max-width: 20em;
1726
  line-height: 1.8em;
1744
  }
1745
  }
1746
 
1747
+ .tooltipster-base {
1748
+ .tooltipster-box {
1749
+ background-color: #4c5477 !important;
1750
+ padding: 4px 8px;
1751
+ border-radius: 2px;
1752
+ text-align: center;
1753
+
1754
+ .tooltipster-content {
1755
+ padding: 2px 0;
1756
+ }
1757
+ }
1758
+
1759
+ .tooltipster-arrow {
1760
+ .tooltipster-arrow-uncropped {
1761
+ .tooltipster-arrow-border {
1762
+ border-bottom-color: #4c5477 !important;
1763
+ border-top-color: #4c5477 !important;
1764
+ }
1765
+ }
1766
+ }
1767
+ }
1768
+
1769
  /**
1770
  * Help Tip
1771
  */
assets/css/tooltipster/tooltipster-sideTip-borderless.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .tooltipster-sidetip.tooltipster-borderless .tooltipster-box{border:none;background:#1b1b1b;background:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-box{margin-top:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-box{margin-right:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-box{margin-left:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-box{margin-bottom:8px}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow{height:8px;margin-left:-8px;width:16px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow{height:16px;margin-left:0;margin-top:-8px;width:8px}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow-background{display:none}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow-border{border:8px solid transparent}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#1b1b1b;border-bottom-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-arrow-border{border-left-color:#1b1b1b;border-left-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow-border{border-right-color:#1b1b1b;border-right-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-arrow-border{border-top-color:#1b1b1b;border-top-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-arrow-uncropped{top:-8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow-uncropped{left:-8px}
assets/css/tooltipster/tooltipster.bundle.css ADDED
@@ -0,0 +1,388 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* This is the core CSS of Tooltipster */
2
+
3
+ /* GENERAL STRUCTURE RULES (do not edit this section) */
4
+
5
+ .tooltipster-base {
6
+ /* this ensures that a constrained height set by functionPosition,
7
+ if greater that the natural height of the tooltip, will be enforced
8
+ in browsers that support display:flex */
9
+ display: flex;
10
+ pointer-events: none;
11
+ /* this may be overriden in JS for fixed position origins */
12
+ position: absolute;
13
+ }
14
+
15
+ .tooltipster-box {
16
+ /* see .tooltipster-base. flex-shrink 1 is only necessary for IE10-
17
+ and flex-basis auto for IE11- (at least) */
18
+ flex: 1 1 auto;
19
+ }
20
+
21
+ .tooltipster-content {
22
+ /* prevents an overflow if the user adds padding to the div */
23
+ box-sizing: border-box;
24
+ /* these make sure we'll be able to detect any overflow */
25
+ max-height: 100%;
26
+ max-width: 100%;
27
+ overflow: auto;
28
+ }
29
+
30
+ .tooltipster-ruler {
31
+ /* these let us test the size of the tooltip without overflowing the window */
32
+ bottom: 0;
33
+ left: 0;
34
+ overflow: hidden;
35
+ position: fixed;
36
+ right: 0;
37
+ top: 0;
38
+ visibility: hidden;
39
+ }
40
+
41
+ /* ANIMATIONS */
42
+
43
+ /* Open/close animations */
44
+
45
+ /* fade */
46
+
47
+ .tooltipster-fade {
48
+ opacity: 0;
49
+ -webkit-transition-property: opacity;
50
+ -moz-transition-property: opacity;
51
+ -o-transition-property: opacity;
52
+ -ms-transition-property: opacity;
53
+ transition-property: opacity;
54
+ }
55
+ .tooltipster-fade.tooltipster-show {
56
+ opacity: 1;
57
+ }
58
+
59
+ /* grow */
60
+
61
+ .tooltipster-grow {
62
+ -webkit-transform: scale(0,0);
63
+ -moz-transform: scale(0,0);
64
+ -o-transform: scale(0,0);
65
+ -ms-transform: scale(0,0);
66
+ transform: scale(0,0);
67
+ -webkit-transition-property: -webkit-transform;
68
+ -moz-transition-property: -moz-transform;
69
+ -o-transition-property: -o-transform;
70
+ -ms-transition-property: -ms-transform;
71
+ transition-property: transform;
72
+ -webkit-backface-visibility: hidden;
73
+ }
74
+ .tooltipster-grow.tooltipster-show {
75
+ -webkit-transform: scale(1,1);
76
+ -moz-transform: scale(1,1);
77
+ -o-transform: scale(1,1);
78
+ -ms-transform: scale(1,1);
79
+ transform: scale(1,1);
80
+ -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
81
+ -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
82
+ -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
83
+ -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
84
+ -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
85
+ transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
86
+ }
87
+
88
+ /* swing */
89
+
90
+ .tooltipster-swing {
91
+ opacity: 0;
92
+ -webkit-transform: rotateZ(4deg);
93
+ -moz-transform: rotateZ(4deg);
94
+ -o-transform: rotateZ(4deg);
95
+ -ms-transform: rotateZ(4deg);
96
+ transform: rotateZ(4deg);
97
+ -webkit-transition-property: -webkit-transform, opacity;
98
+ -moz-transition-property: -moz-transform;
99
+ -o-transition-property: -o-transform;
100
+ -ms-transition-property: -ms-transform;
101
+ transition-property: transform;
102
+ }
103
+ .tooltipster-swing.tooltipster-show {
104
+ opacity: 1;
105
+ -webkit-transform: rotateZ(0deg);
106
+ -moz-transform: rotateZ(0deg);
107
+ -o-transform: rotateZ(0deg);
108
+ -ms-transform: rotateZ(0deg);
109
+ transform: rotateZ(0deg);
110
+ -webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 1);
111
+ -webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
112
+ -moz-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
113
+ -ms-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
114
+ -o-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
115
+ transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
116
+ }
117
+
118
+ /* fall */
119
+
120
+ .tooltipster-fall {
121
+ -webkit-transition-property: top;
122
+ -moz-transition-property: top;
123
+ -o-transition-property: top;
124
+ -ms-transition-property: top;
125
+ transition-property: top;
126
+ -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
127
+ -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
128
+ -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
129
+ -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
130
+ -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
131
+ transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
132
+ }
133
+ .tooltipster-fall.tooltipster-initial {
134
+ top: 0 !important;
135
+ }
136
+ .tooltipster-fall.tooltipster-show {
137
+ }
138
+ .tooltipster-fall.tooltipster-dying {
139
+ -webkit-transition-property: all;
140
+ -moz-transition-property: all;
141
+ -o-transition-property: all;
142
+ -ms-transition-property: all;
143
+ transition-property: all;
144
+ top: 0 !important;
145
+ opacity: 0;
146
+ }
147
+
148
+ /* slide */
149
+
150
+ .tooltipster-slide {
151
+ -webkit-transition-property: left;
152
+ -moz-transition-property: left;
153
+ -o-transition-property: left;
154
+ -ms-transition-property: left;
155
+ transition-property: left;
156
+ -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
157
+ -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
158
+ -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
159
+ -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
160
+ -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
161
+ transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
162
+ }
163
+ .tooltipster-slide.tooltipster-initial {
164
+ left: -40px !important;
165
+ }
166
+ .tooltipster-slide.tooltipster-show {
167
+ }
168
+ .tooltipster-slide.tooltipster-dying {
169
+ -webkit-transition-property: all;
170
+ -moz-transition-property: all;
171
+ -o-transition-property: all;
172
+ -ms-transition-property: all;
173
+ transition-property: all;
174
+ left: 0 !important;
175
+ opacity: 0;
176
+ }
177
+
178
+ /* Update animations */
179
+
180
+ /* We use animations rather than transitions here because
181
+ transition durations may be specified in the style tag due to
182
+ animationDuration, and we try to avoid collisions and the use
183
+ of !important */
184
+
185
+ /* fade */
186
+
187
+ @keyframes tooltipster-fading {
188
+ 0% {
189
+ opacity: 0;
190
+ }
191
+ 100% {
192
+ opacity: 1;
193
+ }
194
+ }
195
+
196
+ .tooltipster-update-fade {
197
+ animation: tooltipster-fading 400ms;
198
+ }
199
+
200
+ /* rotate */
201
+
202
+ @keyframes tooltipster-rotating {
203
+ 25% {
204
+ transform: rotate(-2deg);
205
+ }
206
+ 75% {
207
+ transform: rotate(2deg);
208
+ }
209
+ 100% {
210
+ transform: rotate(0);
211
+ }
212
+ }
213
+
214
+ .tooltipster-update-rotate {
215
+ animation: tooltipster-rotating 600ms;
216
+ }
217
+
218
+ /* scale */
219
+
220
+ @keyframes tooltipster-scaling {
221
+ 50% {
222
+ transform: scale(1.1);
223
+ }
224
+ 100% {
225
+ transform: scale(1);
226
+ }
227
+ }
228
+
229
+ .tooltipster-update-scale {
230
+ animation: tooltipster-scaling 600ms;
231
+ }
232
+
233
+ /**
234
+ * DEFAULT STYLE OF THE SIDETIP PLUGIN
235
+ *
236
+ * All styles are "namespaced" with .tooltipster-sidetip to prevent
237
+ * conflicts between plugins.
238
+ */
239
+
240
+ /* .tooltipster-box */
241
+
242
+ .tooltipster-sidetip .tooltipster-box {
243
+ background: #565656;
244
+ border: 2px solid black;
245
+ border-radius: 4px;
246
+ }
247
+
248
+ .tooltipster-sidetip.tooltipster-bottom .tooltipster-box {
249
+ margin-top: 8px;
250
+ }
251
+
252
+ .tooltipster-sidetip.tooltipster-left .tooltipster-box {
253
+ margin-right: 8px;
254
+ }
255
+
256
+ .tooltipster-sidetip.tooltipster-right .tooltipster-box {
257
+ margin-left: 8px;
258
+ }
259
+
260
+ .tooltipster-sidetip.tooltipster-top .tooltipster-box {
261
+ margin-bottom: 8px;
262
+ }
263
+
264
+ /* .tooltipster-content */
265
+
266
+ .tooltipster-sidetip .tooltipster-content {
267
+ color: white;
268
+ line-height: 18px;
269
+ padding: 6px 14px;
270
+ }
271
+
272
+ /* .tooltipster-arrow : will keep only the zone of .tooltipster-arrow-uncropped that
273
+ corresponds to the arrow we want to display */
274
+
275
+ .tooltipster-sidetip .tooltipster-arrow {
276
+ overflow: hidden;
277
+ position: absolute;
278
+ }
279
+
280
+ .tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow {
281
+ height: 10px;
282
+ /* half the width, for centering */
283
+ margin-left: -10px;
284
+ top: 0;
285
+ width: 20px;
286
+ }
287
+
288
+ .tooltipster-sidetip.tooltipster-left .tooltipster-arrow {
289
+ height: 20px;
290
+ margin-top: -10px;
291
+ right: 0;
292
+ /* top 0 to keep the arrow from overflowing .tooltipster-base when it has not
293
+ been positioned yet */
294
+ top: 0;
295
+ width: 10px;
296
+ }
297
+
298
+ .tooltipster-sidetip.tooltipster-right .tooltipster-arrow {
299
+ height: 20px;
300
+ margin-top: -10px;
301
+ left: 0;
302
+ /* same as .tooltipster-left .tooltipster-arrow */
303
+ top: 0;
304
+ width: 10px;
305
+ }
306
+
307
+ .tooltipster-sidetip.tooltipster-top .tooltipster-arrow {
308
+ bottom: 0;
309
+ height: 10px;
310
+ margin-left: -10px;
311
+ width: 20px;
312
+ }
313
+
314
+ /* common rules between .tooltipster-arrow-background and .tooltipster-arrow-border */
315
+
316
+ .tooltipster-sidetip .tooltipster-arrow-background, .tooltipster-sidetip .tooltipster-arrow-border {
317
+ height: 0;
318
+ position: absolute;
319
+ width: 0;
320
+ }
321
+
322
+ /* .tooltipster-arrow-background */
323
+
324
+ .tooltipster-sidetip .tooltipster-arrow-background {
325
+ border: 10px solid transparent;
326
+ }
327
+
328
+ .tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background {
329
+ border-bottom-color: #565656;
330
+ left: 0;
331
+ top: 3px;
332
+ }
333
+
334
+ .tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background {
335
+ border-left-color: #565656;
336
+ left: -3px;
337
+ top: 0;
338
+ }
339
+
340
+ .tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background {
341
+ border-right-color: #565656;
342
+ left: 3px;
343
+ top: 0;
344
+ }
345
+
346
+ .tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background {
347
+ border-top-color: #565656;
348
+ left: 0;
349
+ top: -3px;
350
+ }
351
+
352
+ /* .tooltipster-arrow-border */
353
+
354
+ .tooltipster-sidetip .tooltipster-arrow-border {
355
+ border: 10px solid transparent;
356
+ left: 0;
357
+ top: 0;
358
+ }
359
+
360
+ .tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border {
361
+ border-bottom-color: black;
362
+ }
363
+
364
+ .tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border {
365
+ border-left-color: black;
366
+ }
367
+
368
+ .tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border {
369
+ border-right-color: black;
370
+ }
371
+
372
+ .tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border {
373
+ border-top-color: black;
374
+ }
375
+
376
+ /* tooltipster-arrow-uncropped */
377
+
378
+ .tooltipster-sidetip .tooltipster-arrow-uncropped {
379
+ position: relative;
380
+ }
381
+
382
+ .tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-uncropped {
383
+ top: -10px;
384
+ }
385
+
386
+ .tooltipster-sidetip.tooltipster-right .tooltipster-arrow-uncropped {
387
+ left: -10px;
388
+ }
assets/css/tooltipster/tooltipster.bundle.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .tooltipster-fall,.tooltipster-grow.tooltipster-show{-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1);-moz-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-ms-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-o-transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-base{display:flex;pointer-events:none;position:absolute}.tooltipster-box{flex:1 1 auto}.tooltipster-content{box-sizing:border-box;max-height:100%;max-width:100%;overflow:auto}.tooltipster-ruler{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;visibility:hidden}.tooltipster-fade{opacity:0;-webkit-transition-property:opacity;-moz-transition-property:opacity;-o-transition-property:opacity;-ms-transition-property:opacity;transition-property:opacity}.tooltipster-fade.tooltipster-show{opacity:1}.tooltipster-grow{-webkit-transform:scale(0,0);-moz-transform:scale(0,0);-o-transform:scale(0,0);-ms-transform:scale(0,0);transform:scale(0,0);-webkit-transition-property:-webkit-transform;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform;-webkit-backface-visibility:hidden}.tooltipster-grow.tooltipster-show{-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1);-ms-transform:scale(1,1);transform:scale(1,1);-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-swing{opacity:0;-webkit-transform:rotateZ(4deg);-moz-transform:rotateZ(4deg);-o-transform:rotateZ(4deg);-ms-transform:rotateZ(4deg);transform:rotateZ(4deg);-webkit-transition-property:-webkit-transform,opacity;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform}.tooltipster-swing.tooltipster-show{opacity:1;-webkit-transform:rotateZ(0);-moz-transform:rotateZ(0);-o-transform:rotateZ(0);-ms-transform:rotateZ(0);transform:rotateZ(0);-webkit-transition-timing-function:cubic-bezier(.23,.635,.495,1);-webkit-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);-moz-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);-ms-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);-o-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);transition-timing-function:cubic-bezier(.23,.635,.495,2.4)}.tooltipster-fall{-webkit-transition-property:top;-moz-transition-property:top;-o-transition-property:top;-ms-transition-property:top;transition-property:top;-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-fall.tooltipster-initial{top:0!important}.tooltipster-fall.tooltipster-dying{-webkit-transition-property:all;-moz-transition-property:all;-o-transition-property:all;-ms-transition-property:all;transition-property:all;top:0!important;opacity:0}.tooltipster-slide{-webkit-transition-property:left;-moz-transition-property:left;-o-transition-property:left;-ms-transition-property:left;transition-property:left;-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-moz-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-ms-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-o-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-slide.tooltipster-initial{left:-40px!important}.tooltipster-slide.tooltipster-dying{-webkit-transition-property:all;-moz-transition-property:all;-o-transition-property:all;-ms-transition-property:all;transition-property:all;left:0!important;opacity:0}@keyframes tooltipster-fading{0%{opacity:0}100%{opacity:1}}.tooltipster-update-fade{animation:tooltipster-fading .4s}@keyframes tooltipster-rotating{25%{transform:rotate(-2deg)}75%{transform:rotate(2deg)}100%{transform:rotate(0)}}.tooltipster-update-rotate{animation:tooltipster-rotating .6s}@keyframes tooltipster-scaling{50%{transform:scale(1.1)}100%{transform:scale(1)}}.tooltipster-update-scale{animation:tooltipster-scaling .6s}.tooltipster-sidetip .tooltipster-box{background:#565656;border:2px solid #000;border-radius:4px}.tooltipster-sidetip.tooltipster-bottom .tooltipster-box{margin-top:8px}.tooltipster-sidetip.tooltipster-left .tooltipster-box{margin-right:8px}.tooltipster-sidetip.tooltipster-right .tooltipster-box{margin-left:8px}.tooltipster-sidetip.tooltipster-top .tooltipster-box{margin-bottom:8px}.tooltipster-sidetip .tooltipster-content{color:#fff;line-height:18px;padding:6px 14px}.tooltipster-sidetip .tooltipster-arrow{overflow:hidden;position:absolute}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow{height:10px;margin-left:-10px;top:0;width:20px}.tooltipster-sidetip.tooltipster-left .tooltipster-arrow{height:20px;margin-top:-10px;right:0;top:0;width:10px}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow{height:20px;margin-top:-10px;left:0;top:0;width:10px}.tooltipster-sidetip.tooltipster-top .tooltipster-arrow{bottom:0;height:10px;margin-left:-10px;width:20px}.tooltipster-sidetip .tooltipster-arrow-background,.tooltipster-sidetip .tooltipster-arrow-border{height:0;position:absolute;width:0}.tooltipster-sidetip .tooltipster-arrow-background{border:10px solid transparent}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background{border-bottom-color:#565656;left:0;top:3px}.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background{border-left-color:#565656;left:-3px;top:0}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background{border-right-color:#565656;left:3px;top:0}.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background{border-top-color:#565656;left:0;top:-3px}.tooltipster-sidetip .tooltipster-arrow-border{border:10px solid transparent;left:0;top:0}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#000}.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border{border-left-color:#000}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border{border-right-color:#000}.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border{border-top-color:#000}.tooltipster-sidetip .tooltipster-arrow-uncropped{position:relative}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-uncropped{top:-10px}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-uncropped{left:-10px}
assets/css/user-registration-rtl.css CHANGED
@@ -1086,7 +1086,7 @@
1086
  display: block;
1087
  font-weight: 400;
1088
  font-size: 14px;
1089
- font-family: "sans-serif";
1090
  text-decoration: none;
1091
  border-width: 0 4px 0 0;
1092
  border-style: solid;
@@ -1192,62 +1192,6 @@
1192
  .ur-frontend-form.ur-gutenberg-editor form .ur-form-row .ur-form-grid input {
1193
  cursor: not-allowed; }
1194
 
1195
- /* TipTip CSS - Version 1.2 */
1196
- #tiptip_holder {
1197
- display: none;
1198
- z-index: 8675309;
1199
- position: absolute;
1200
- top: 0;
1201
- left: 0; }
1202
- #tiptip_holder.tip_top {
1203
- padding-bottom: 5px; }
1204
- #tiptip_holder.tip_top #tiptip_arrow_inner {
1205
- margin-top: -7px;
1206
- margin-right: -6px;
1207
- border-top-color: #dee0e9; }
1208
- #tiptip_holder.tip_bottom {
1209
- padding-top: 5px; }
1210
- #tiptip_holder.tip_bottom #tiptip_arrow_inner {
1211
- margin-top: -5px;
1212
- margin-right: -6px;
1213
- border-bottom-color: #dee0e9; }
1214
- #tiptip_holder.tip_right {
1215
- padding-right: 5px; }
1216
- #tiptip_holder.tip_right #tiptip_arrow_inner {
1217
- margin-top: -6px;
1218
- margin-right: -5px;
1219
- border-left-color: #dee0e9; }
1220
- #tiptip_holder.tip_left {
1221
- padding-left: 5px; }
1222
- #tiptip_holder.tip_left #tiptip_arrow_inner {
1223
- margin-top: -6px;
1224
- margin-right: -7px;
1225
- border-right-color: #dee0e9; }
1226
-
1227
- #tiptip_content,
1228
- .ur_error_tip {
1229
- color: #ffffff;
1230
- font-size: 0.8em;
1231
- max-width: 150px;
1232
- background: #dee0e9;
1233
- text-align: center;
1234
- border-radius: 3px;
1235
- padding: 0.618em 1em;
1236
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
1237
- #tiptip_content code,
1238
- .ur_error_tip code {
1239
- padding: 1px;
1240
- background: #888; }
1241
-
1242
- #tiptip_arrow,
1243
- #tiptip_arrow_inner {
1244
- position: absolute;
1245
- border-color: transparent;
1246
- border-style: solid;
1247
- border-width: 6px;
1248
- height: 0;
1249
- width: 0; }
1250
-
1251
  .ur-hidden {
1252
  display: none; }
1253
 
1086
  display: block;
1087
  font-weight: 400;
1088
  font-size: 14px;
1089
+ font-family: sans-serif;
1090
  text-decoration: none;
1091
  border-width: 0 4px 0 0;
1092
  border-style: solid;
1192
  .ur-frontend-form.ur-gutenberg-editor form .ur-form-row .ur-form-grid input {
1193
  cursor: not-allowed; }
1194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1195
  .ur-hidden {
1196
  display: none; }
1197
 
assets/css/user-registration.css CHANGED
@@ -1086,7 +1086,7 @@
1086
  display: block;
1087
  font-weight: 400;
1088
  font-size: 14px;
1089
- font-family: "sans-serif";
1090
  text-decoration: none;
1091
  border-width: 0 0 0 4px;
1092
  border-style: solid;
@@ -1192,63 +1192,6 @@
1192
  .ur-frontend-form.ur-gutenberg-editor form .ur-form-row .ur-form-grid input {
1193
  cursor: not-allowed; }
1194
 
1195
- /* TipTip CSS - Version 1.2 */
1196
- #tiptip_holder {
1197
- display: none;
1198
- z-index: 8675309;
1199
- position: absolute;
1200
- top: 0;
1201
- /*rtl:ignore*/
1202
- left: 0; }
1203
- #tiptip_holder.tip_top {
1204
- padding-bottom: 5px; }
1205
- #tiptip_holder.tip_top #tiptip_arrow_inner {
1206
- margin-top: -7px;
1207
- margin-left: -6px;
1208
- border-top-color: #dee0e9; }
1209
- #tiptip_holder.tip_bottom {
1210
- padding-top: 5px; }
1211
- #tiptip_holder.tip_bottom #tiptip_arrow_inner {
1212
- margin-top: -5px;
1213
- margin-left: -6px;
1214
- border-bottom-color: #dee0e9; }
1215
- #tiptip_holder.tip_right {
1216
- padding-left: 5px; }
1217
- #tiptip_holder.tip_right #tiptip_arrow_inner {
1218
- margin-top: -6px;
1219
- margin-left: -5px;
1220
- border-right-color: #dee0e9; }
1221
- #tiptip_holder.tip_left {
1222
- padding-right: 5px; }
1223
- #tiptip_holder.tip_left #tiptip_arrow_inner {
1224
- margin-top: -6px;
1225
- margin-left: -7px;
1226
- border-left-color: #dee0e9; }
1227
-
1228
- #tiptip_content,
1229
- .ur_error_tip {
1230
- color: #ffffff;
1231
- font-size: 0.8em;
1232
- max-width: 150px;
1233
- background: #dee0e9;
1234
- text-align: center;
1235
- border-radius: 3px;
1236
- padding: 0.618em 1em;
1237
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
1238
- #tiptip_content code,
1239
- .ur_error_tip code {
1240
- padding: 1px;
1241
- background: #888; }
1242
-
1243
- #tiptip_arrow,
1244
- #tiptip_arrow_inner {
1245
- position: absolute;
1246
- border-color: transparent;
1247
- border-style: solid;
1248
- border-width: 6px;
1249
- height: 0;
1250
- width: 0; }
1251
-
1252
  .ur-hidden {
1253
  display: none; }
1254
 
1086
  display: block;
1087
  font-weight: 400;
1088
  font-size: 14px;
1089
+ font-family: sans-serif;
1090
  text-decoration: none;
1091
  border-width: 0 0 0 4px;
1092
  border-style: solid;
1192
  .ur-frontend-form.ur-gutenberg-editor form .ur-form-row .ur-form-grid input {
1193
  cursor: not-allowed; }
1194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1195
  .ur-hidden {
1196
  display: none; }
1197
 
assets/css/user-registration.scss CHANGED
@@ -703,7 +703,7 @@
703
  display: block;
704
  font-weight: 400;
705
  font-size: 14px;
706
- font-family: "sans-serif";
707
  text-decoration: none;
708
  border-width: 0 0 0 4px;
709
  border-style: solid;
@@ -872,84 +872,6 @@
872
  cursor: not-allowed;
873
  }
874
 
875
- /* TipTip CSS - Version 1.2 */
876
-
877
- #tiptip_holder {
878
- display: none;
879
- z-index: 8675309;
880
- position: absolute;
881
- top: 0;
882
- /*rtl:ignore*/
883
- left: 0;
884
-
885
- &.tip_top {
886
- padding-bottom: 5px;
887
-
888
- #tiptip_arrow_inner {
889
- margin-top: -7px;
890
- margin-left: -6px;
891
- border-top-color: $border_color;
892
- }
893
- }
894
-
895
- &.tip_bottom {
896
- padding-top: 5px;
897
-
898
- #tiptip_arrow_inner {
899
- margin-top: -5px;
900
- margin-left: -6px;
901
- border-bottom-color: $border_color;
902
- }
903
- }
904
-
905
- &.tip_right {
906
- padding-left: 5px;
907
-
908
- #tiptip_arrow_inner {
909
- margin-top: -6px;
910
- margin-left: -5px;
911
- border-right-color: $border_color;
912
- }
913
- }
914
-
915
- &.tip_left {
916
- padding-right: 5px;
917
-
918
- #tiptip_arrow_inner {
919
- margin-top: -6px;
920
- margin-left: -7px;
921
- border-left-color: $border_color;
922
- }
923
- }
924
- }
925
-
926
- #tiptip_content,
927
- .ur_error_tip {
928
- color: $white;
929
- font-size: 0.8em;
930
- max-width: 150px;
931
- background: $border_color;
932
- text-align: center;
933
- border-radius: 3px;
934
- padding: 0.618em 1em;
935
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
936
-
937
- code {
938
- padding: 1px;
939
- background: #888;
940
- }
941
- }
942
-
943
- #tiptip_arrow,
944
- #tiptip_arrow_inner {
945
- position: absolute;
946
- border-color: transparent;
947
- border-style: solid;
948
- border-width: 6px;
949
- height: 0;
950
- width: 0;
951
- }
952
-
953
  .ur-hidden {
954
  display: none;
955
  }
703
  display: block;
704
  font-weight: 400;
705
  font-size: 14px;
706
+ font-family: sans-serif;
707
  text-decoration: none;
708
  border-width: 0 0 0 4px;
709
  border-style: solid;
872
  cursor: not-allowed;
873
  }
874
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
875
  .ur-hidden {
876
  display: none;
877
  }
assets/js/admin/admin.js CHANGED
@@ -323,12 +323,12 @@ jQuery(function ($) {
323
  { keepAlive: false }
324
  );
325
 
326
- // Add tiptip to parent element for widefat tables
327
  $(".parent-tips").each(function () {
328
  $(this)
329
  .closest("a, th")
330
  .attr("data-tip", $(this).data("tip"))
331
- .tipTip(tiptip_args)
332
  .css("cursor", "help");
333
  });
334
  })
@@ -498,12 +498,22 @@ jQuery(function ($) {
498
  */
499
  function ur_init_tooltips($elements, options) {
500
  if (undefined !== $elements && null !== $elements && "" !== $elements) {
 
501
  var args = {
502
- attribute: "data-tip",
503
- fadeIn: 50,
504
- fadeOut: 50,
505
- delay: 200,
506
- keepAlive: true,
 
 
 
 
 
 
 
 
 
507
  };
508
 
509
  if (options && "object" === typeof options) {
@@ -513,9 +523,9 @@ function ur_init_tooltips($elements, options) {
513
  }
514
 
515
  if ("string" === typeof $elements) {
516
- jQuery($elements).tipTip(args);
517
  } else {
518
- $elements.tipTip(args);
519
  }
520
  }
521
  }
323
  { keepAlive: false }
324
  );
325
 
326
+ // Add Tooltipster to parent element for widefat tables
327
  $(".parent-tips").each(function () {
328
  $(this)
329
  .closest("a, th")
330
  .attr("data-tip", $(this).data("tip"))
331
+ .tooltipster()
332
  .css("cursor", "help");
333
  });
334
  })
498
  */
499
  function ur_init_tooltips($elements, options) {
500
  if (undefined !== $elements && null !== $elements && "" !== $elements) {
501
+
502
  var args = {
503
+ theme: 'tooltipster-borderless',
504
+ maxWidth: 200,
505
+ multiple: true,
506
+ interactive: true,
507
+ position: 'bottom',
508
+ contentAsHTML: true,
509
+ functionInit: function( instance, helper ) {
510
+ var $origin = jQuery( helper.origin ),
511
+ dataTip = $origin.attr( 'data-tip' );
512
+
513
+ if ( dataTip ) {
514
+ instance.content( dataTip );
515
+ }
516
+ }
517
  };
518
 
519
  if (options && "object" === typeof options) {
523
  }
524
 
525
  if ("string" === typeof $elements) {
526
+ jQuery($elements).tooltipster(args);
527
  } else {
528
+ $elements.tooltipster(args);
529
  }
530
  }
531
  }
assets/js/admin/admin.min.js CHANGED
@@ -1 +1 @@
1
- function ur_init_tooltips(e,t){if(undefined!==e&&null!==e&&""!==e){var i={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200,keepAlive:!0};t&&"object"==typeof t&&Object.keys(t).forEach(function(e){i[e]=t[e]}),"string"==typeof e?jQuery(e).tipTip(i):e.tipTip(i)}}function ur_confirmation(e,t){void 0===t&&(t={});var i='<i class="dashicons dashicons-trash"></i><span class="user-registration-swal2-modal__title">'+t.title;Swal.fire({customClass:"user-registration-swal2-modal user-registration-swal2-modal--centered",title:i,text:e,showCancelButton:"undefined"==typeof t.showCancelButton||t.showCancelButton,confirmButtonText:"undefined"!=typeof t.confirmButtonText?t.confirmButtonText:user_registration_form_builder_data.i18n_admin.i18n_choice_delete,confirmButtonColor:"#ff4149",cancelButtonText:"undefined"!=typeof t.cancelButtonText?t.cancelButtonText:user_registration_form_builder_data.i18n_admin.i18n_choice_cancel}).then(function(e){e.value?t.confirm():t.reject()})}jQuery(function(e){e(document.body).on("input","#ur-search-fields",function(){var t=e(this).val().toLowerCase();e(".ur-registered-item").each(function(){e(this).text().toLowerCase().search(t)>-1?(e(this).addClass("ur-searched-item"),e(this).show()):(e(this).removeClass("ur-searched-item"),e(this).hide())}),e(".ur-registered-list").each(function(){var t=e(this).find(".ur-registered-item.ur-searched-item").length,i=e(this).prev("hr"),r=e(this).prev("hr").prev(".ur-toggle-heading");0===t?(i.hide(),r.hide()):(i.show(),r.show())}),e(".ur-registered-item.ur-searched-item").length?e(".ur-fields-not-found").hide():e(".ur-fields-not-found").show()}),e(document).on("mousedown",".ur-upgradable-field",function(t){t.preventDefault();var i=e(this).text(),r='<i class="dashicons dashicons-lock"></i><span class="user-registration-swal2-modal__title">'+i+" is a premium field.</span>",s=i+" field is locked. Upgrade to <strong>"+e(this).data("plan")+"</strong> to unlock this field.";Swal.fire({title:r,html:s,customClass:"user-registration-swal2-modal user-registration-swal2-modal--centered",showCloseButton:!0,confirmButtonText:"View Pricing"}).then(function(e){if(e.value){window.open("https://wpeverest.com/wordpress-plugins/user-registration/pricing/?utm_source=pro-fields&utm_medium=popup-button&utm_campaign=ur-upgrade-to-pro","_blank")}})}),e(window).on("resize orientationchange",function(){var t;clearTimeout(t),t=setTimeout(function(){e(document.body).trigger("adjust_builder_width")},250)}),e(document.body).on("click","#collapse-button",function(){e(document.body).trigger("ur_adjust_builder_width")}),e(document.body).on("ur_adjust_builder_width",function(){var t=e("#adminmenuwrap").width(),i=e(".user-registration_page_add-new-registration .ur-form-subcontainer .menu-edit"),r=e(".user-registration_page_add-new-registration .ur-form-subcontainer .ur-loading-container");i.css({left:t+"px"}),r.fadeOut(1e3)}).trigger("ur_adjust_builder_width"),e(document.body).on("click",".user-registration-editable-title__icon",function(){var t=e(this).siblings(".user-registration-editable-title__input");t.hasClass("is-editing")||t.trigger("focus"),t.toggleClass("is-editing"),t.attr("data-editing","true"==t.attr("data-editing")?"false":"true")}),e(document).not(e(".user-registration-editable-title")).on("click",function(t){var i=e(".user-registration-editable-title__input");"ur-form-name"!==t.target.id&&"ur-form-name-edit-button"!==t.target.id&&!i.attr("hidden")&&i.hasClass("is-editing")&&(t.stopPropagation(),"true"!==i.data("data-editing")&&i.val()&&""!==i.val().trim()&&i.toggleClass("is-editing").trigger("blur").attr("data-editing","true"==i.attr("data-editing")?"false":"true"))}),e(document).on("init_perfect_scrollbar update_perfect_scrollbar",function(){if("undefined"!=typeof PerfectScrollbar){var t=e(".ur-tab-contents");t.length>=1&&"undefined"==typeof window.ur_tab_scrollbar?window.ur_tab_scrollbar=new PerfectScrollbar(document.querySelector(".ur-tab-contents"),{suppressScrollX:!0}):"undefined"!=typeof window.ur_tab_scrollbar&&(window.ur_tab_scrollbar.update(),t.scrollTop(0))}}),e(document).ready(function(){e(document).trigger("init_perfect_scrollbar");var t=e(".ur-selected-inputs"),i=e(".ur-registered-inputs nav").find("#ur-tab-field-settings");i.find("form").appendTo(t),t.find("form #ur-field-all-settings > div").each(function(t,r){var s=e(r).find("h3").text(),n=e(r).attr("id");i.append('<div id="'+n+'" class="form-settings-tab">'+s+"</div>"),e(r).hide()}),i.find("#general-settings").addClass("active"),t.find("#ur-field-all-settings div#general-settings").show(),i.find(".form-settings-tab").on("click",function(){this_id=e(this).attr("id"),e(this).siblings().removeClass("active"),e(this).addClass("active"),t.find("form #ur-field-all-settings > div").hide(),t.find("form #ur-field-all-settings > div#"+this_id).show(),e(document).trigger("update_perfect_scrollbar"),e(".ur-builder-wrapper").scrollTop(0)})}),e(document).on("click",'.ur-tab-lists li[role="tab"] a.nav-tab',function(t,i){e(document).trigger("update_perfect_scrollbar"),"triggered_click"!=i&&(e(".ur-builder-wrapper").scrollTop(0),e(".ur-builder-wrapper-content").scrollTop(0))}),e(document).on("click",'.ur-tab-lists li[aria-controls="ur-tab-field-settings"]',function(){e(".ur-builder-wrapper-content").hide(),e(".ur-builder-wrapper-footer").hide(),e(".ur-selected-inputs").find("form#ur-field-settings").show()}),e(document).on("click",'ul.ur-tab-lists li[aria-controls="ur-tab-registered-fields"]',function(){e(".ur-builder-wrapper-content").show(),e(".ur-builder-wrapper-footer").show(),e(".ur-selected-inputs").find("form#ur-field-settings").hide()});var t=e("#general-settings").find("#user_registration_form_setting_minimum_password_strength_field"),i=e("#general-settings").find("#user_registration_form_setting_enable_strong_password_field input#user_registration_form_setting_enable_strong_password"),r=i.is(":checked");if("yes"===r||!0===r?t.show():t.hide(),e(i).on("change",function(){"yes"===(r=e(this).is(":checked"))||!0===r?t.show("slow"):t.hide("slow")}),e(document.body).on("init_tooltips",function(){ur_init_tooltips(".tips, .help_tip, .user-registration-help-tip"),ur_init_tooltips(".ur-copy-shortcode, #ur-setting-form .ur-portal-tooltip",{keepAlive:!1}),e(".parent-tips").each(function(){e(this).closest("a, th").attr("data-tip",e(this).data("tip")).tipTip(tiptip_args).css("cursor","help")})}).trigger("init_tooltips"),e("body").on("keypress","#ur-form-name",function(t){13===t.which&&e("#save_form_footer").eq(0).trigger("click")}),e("#ur-full-screen-mode").on("click",function(t){t.preventDefault();var i=e(this);i.hasClass("closed")?(i.removeClass("closed"),i.addClass("opened"),e("body").addClass("ur-full-screen-mode")):(i.removeClass("opened"),i.addClass("closed"),e("body").removeClass("ur-full-screen-mode"))}),e(document).on("keyup",function(t){"Escape"===t.key&&e("#ur-full-screen-mode.opened").trigger("click")}),"admin_approval"!==e("#user_registration_form_setting_login_options").val())e("#user_registration_form_setting_enable_email_approval").parent().parent().hide();else var s=e("#user_registration_form_setting_enable_email_approval").prop("checked");e("#user_registration_form_setting_login_options").on("change",function(){var t=e("#user_registration_form_setting_enable_email_approval").parent().parent();"admin_approval"===e(this).val()?(e("#user_registration_form_setting_enable_email_approval").prop("checked",s),t.show()):(t.hide(),e("#user_registration_form_setting_enable_email_approval").prop("checked",!1))}),e("input.input-color").wpColorPicker(),e(".user_registration_send_email_test").on("click",function(t){var i=e("#user_registration_email_send_to").val();t.preventDefault(),e.ajax({url:user_registration_send_email.ajax_url,data:{action:"user_registration_send_test_email",email:i},type:"post",beforeSend:function(){e(".user_registration_send_email_test").append('<span class="ur-spinner is-active"></span>')},complete:function(t){e(".ur-spinner").remove(),e(".user-registration_page_user-registration-settings .notice").remove(),!0===t.responseJSON.success?(message_string='<div class="success notice notice-success is-dismissible"><p><strong>'+t.responseJSON.data.message+"</strong></p></div>",e(".user-registration-header").after(message_string)):(message_string='<div class="error notice notice-success is-dismissible"><p><strong>'+t.responseJSON.data.message+"</strong></p></div>",e(".user-registration-header").after(message_string)),e(".user-registration_page_user-registration-settings .notice").css("display","block"),e(window).scrollTop(e(".notice").position())}})})}),function(e,t){e(function(){e(".ur_import_form_action_button").on("click",function(){var i=e("#jsonfile").prop("files")[0],r=new FormData;r.append("jsonfile",i),r.append("action","user_registration_import_form_action"),r.append("security",t.ur_import_form_save),e.ajax({url:t.ajax_url,dataType:"json",cache:!1,contentType:!1,processData:!1,data:r,type:"post",beforeSend:function(){e(".ur_import_form_action_button").closest(".publishing-action").append('<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>'),e(".ur-import_notice").remove()},complete:function(i){var r="";e(".ur_import_form_action_button").closest(".publishing-action").find(".spinner").remove(),e(".ur-import_notice").remove(),r=!0===i.responseJSON.success?'<div id="message" class="updated inline ur-import_notice"><p><strong>'+i.responseJSON.data.message+"</strong></p></div>":'<div id="message" class="error inline ur-import_notice"><p><strong>'+i.responseJSON.data.message+"</strong></p></div>",e(".ur-export-users-page").prepend(r),e("#jsonfile").val(""),e(".user-registration-custom-selected-file").html(t.no_file_selected)}})})})}(jQuery,window.user_registration_admin_data);
1
+ function ur_init_tooltips(e,t){if(undefined!==e&&null!==e&&""!==e){var i={theme:"tooltipster-borderless",maxWidth:200,multiple:!0,interactive:!0,position:"bottom",contentAsHTML:!0,functionInit:function(e,t){var i=jQuery(t.origin).attr("data-tip");i&&e.content(i)}};t&&"object"==typeof t&&Object.keys(t).forEach(function(e){i[e]=t[e]}),"string"==typeof e?jQuery(e).tooltipster(i):e.tooltipster(i)}}function ur_confirmation(e,t){void 0===t&&(t={});var i='<i class="dashicons dashicons-trash"></i><span class="user-registration-swal2-modal__title">'+t.title;Swal.fire({customClass:"user-registration-swal2-modal user-registration-swal2-modal--centered",title:i,text:e,showCancelButton:"undefined"==typeof t.showCancelButton||t.showCancelButton,confirmButtonText:"undefined"!=typeof t.confirmButtonText?t.confirmButtonText:user_registration_form_builder_data.i18n_admin.i18n_choice_delete,confirmButtonColor:"#ff4149",cancelButtonText:"undefined"!=typeof t.cancelButtonText?t.cancelButtonText:user_registration_form_builder_data.i18n_admin.i18n_choice_cancel}).then(function(e){e.value?t.confirm():t.reject()})}jQuery(function(e){e(document.body).on("input","#ur-search-fields",function(){var t=e(this).val().toLowerCase();e(".ur-registered-item").each(function(){e(this).text().toLowerCase().search(t)>-1?(e(this).addClass("ur-searched-item"),e(this).show()):(e(this).removeClass("ur-searched-item"),e(this).hide())}),e(".ur-registered-list").each(function(){var t=e(this).find(".ur-registered-item.ur-searched-item").length,i=e(this).prev("hr"),r=e(this).prev("hr").prev(".ur-toggle-heading");0===t?(i.hide(),r.hide()):(i.show(),r.show())}),e(".ur-registered-item.ur-searched-item").length?e(".ur-fields-not-found").hide():e(".ur-fields-not-found").show()}),e(document).on("mousedown",".ur-upgradable-field",function(t){t.preventDefault();var i=e(this).text(),r='<i class="dashicons dashicons-lock"></i><span class="user-registration-swal2-modal__title">'+i+" is a premium field.</span>",s=i+" field is locked. Upgrade to <strong>"+e(this).data("plan")+"</strong> to unlock this field.";Swal.fire({title:r,html:s,customClass:"user-registration-swal2-modal user-registration-swal2-modal--centered",showCloseButton:!0,confirmButtonText:"View Pricing"}).then(function(e){if(e.value){window.open("https://wpeverest.com/wordpress-plugins/user-registration/pricing/?utm_source=pro-fields&utm_medium=popup-button&utm_campaign=ur-upgrade-to-pro","_blank")}})}),e(window).on("resize orientationchange",function(){var t;clearTimeout(t),t=setTimeout(function(){e(document.body).trigger("adjust_builder_width")},250)}),e(document.body).on("click","#collapse-button",function(){e(document.body).trigger("ur_adjust_builder_width")}),e(document.body).on("ur_adjust_builder_width",function(){var t=e("#adminmenuwrap").width(),i=e(".user-registration_page_add-new-registration .ur-form-subcontainer .menu-edit"),r=e(".user-registration_page_add-new-registration .ur-form-subcontainer .ur-loading-container");i.css({left:t+"px"}),r.fadeOut(1e3)}).trigger("ur_adjust_builder_width"),e(document.body).on("click",".user-registration-editable-title__icon",function(){var t=e(this).siblings(".user-registration-editable-title__input");t.hasClass("is-editing")||t.trigger("focus"),t.toggleClass("is-editing"),t.attr("data-editing","true"==t.attr("data-editing")?"false":"true")}),e(document).not(e(".user-registration-editable-title")).on("click",function(t){var i=e(".user-registration-editable-title__input");"ur-form-name"!==t.target.id&&"ur-form-name-edit-button"!==t.target.id&&!i.attr("hidden")&&i.hasClass("is-editing")&&(t.stopPropagation(),"true"!==i.data("data-editing")&&i.val()&&""!==i.val().trim()&&i.toggleClass("is-editing").trigger("blur").attr("data-editing","true"==i.attr("data-editing")?"false":"true"))}),e(document).on("init_perfect_scrollbar update_perfect_scrollbar",function(){if("undefined"!=typeof PerfectScrollbar){var t=e(".ur-tab-contents");t.length>=1&&"undefined"==typeof window.ur_tab_scrollbar?window.ur_tab_scrollbar=new PerfectScrollbar(document.querySelector(".ur-tab-contents"),{suppressScrollX:!0}):"undefined"!=typeof window.ur_tab_scrollbar&&(window.ur_tab_scrollbar.update(),t.scrollTop(0))}}),e(document).ready(function(){e(document).trigger("init_perfect_scrollbar");var t=e(".ur-selected-inputs"),i=e(".ur-registered-inputs nav").find("#ur-tab-field-settings");i.find("form").appendTo(t),t.find("form #ur-field-all-settings > div").each(function(t,r){var s=e(r).find("h3").text(),n=e(r).attr("id");i.append('<div id="'+n+'" class="form-settings-tab">'+s+"</div>"),e(r).hide()}),i.find("#general-settings").addClass("active"),t.find("#ur-field-all-settings div#general-settings").show(),i.find(".form-settings-tab").on("click",function(){this_id=e(this).attr("id"),e(this).siblings().removeClass("active"),e(this).addClass("active"),t.find("form #ur-field-all-settings > div").hide(),t.find("form #ur-field-all-settings > div#"+this_id).show(),e(document).trigger("update_perfect_scrollbar"),e(".ur-builder-wrapper").scrollTop(0)})}),e(document).on("click",'.ur-tab-lists li[role="tab"] a.nav-tab',function(t,i){e(document).trigger("update_perfect_scrollbar"),"triggered_click"!=i&&(e(".ur-builder-wrapper").scrollTop(0),e(".ur-builder-wrapper-content").scrollTop(0))}),e(document).on("click",'.ur-tab-lists li[aria-controls="ur-tab-field-settings"]',function(){e(".ur-builder-wrapper-content").hide(),e(".ur-builder-wrapper-footer").hide(),e(".ur-selected-inputs").find("form#ur-field-settings").show()}),e(document).on("click",'ul.ur-tab-lists li[aria-controls="ur-tab-registered-fields"]',function(){e(".ur-builder-wrapper-content").show(),e(".ur-builder-wrapper-footer").show(),e(".ur-selected-inputs").find("form#ur-field-settings").hide()});var t=e("#general-settings").find("#user_registration_form_setting_minimum_password_strength_field"),i=e("#general-settings").find("#user_registration_form_setting_enable_strong_password_field input#user_registration_form_setting_enable_strong_password"),r=i.is(":checked");if("yes"===r||!0===r?t.show():t.hide(),e(i).on("change",function(){"yes"===(r=e(this).is(":checked"))||!0===r?t.show("slow"):t.hide("slow")}),e(document.body).on("init_tooltips",function(){ur_init_tooltips(".tips, .help_tip, .user-registration-help-tip"),ur_init_tooltips(".ur-copy-shortcode, #ur-setting-form .ur-portal-tooltip",{keepAlive:!1}),e(".parent-tips").each(function(){e(this).closest("a, th").attr("data-tip",e(this).data("tip")).tooltipster().css("cursor","help")})}).trigger("init_tooltips"),e("body").on("keypress","#ur-form-name",function(t){13===t.which&&e("#save_form_footer").eq(0).trigger("click")}),e("#ur-full-screen-mode").on("click",function(t){t.preventDefault();var i=e(this);i.hasClass("closed")?(i.removeClass("closed"),i.addClass("opened"),e("body").addClass("ur-full-screen-mode")):(i.removeClass("opened"),i.addClass("closed"),e("body").removeClass("ur-full-screen-mode"))}),e(document).on("keyup",function(t){"Escape"===t.key&&e("#ur-full-screen-mode.opened").trigger("click")}),"admin_approval"!==e("#user_registration_form_setting_login_options").val())e("#user_registration_form_setting_enable_email_approval").parent().parent().hide();else var s=e("#user_registration_form_setting_enable_email_approval").prop("checked");e("#user_registration_form_setting_login_options").on("change",function(){var t=e("#user_registration_form_setting_enable_email_approval").parent().parent();"admin_approval"===e(this).val()?(e("#user_registration_form_setting_enable_email_approval").prop("checked",s),t.show()):(t.hide(),e("#user_registration_form_setting_enable_email_approval").prop("checked",!1))}),e("input.input-color").wpColorPicker(),e(".user_registration_send_email_test").on("click",function(t){var i=e("#user_registration_email_send_to").val();t.preventDefault(),e.ajax({url:user_registration_send_email.ajax_url,data:{action:"user_registration_send_test_email",email:i},type:"post",beforeSend:function(){e(".user_registration_send_email_test").append('<span class="ur-spinner is-active"></span>')},complete:function(t){e(".ur-spinner").remove(),e(".user-registration_page_user-registration-settings .notice").remove(),!0===t.responseJSON.success?(message_string='<div class="success notice notice-success is-dismissible"><p><strong>'+t.responseJSON.data.message+"</strong></p></div>",e(".user-registration-header").after(message_string)):(message_string='<div class="error notice notice-success is-dismissible"><p><strong>'+t.responseJSON.data.message+"</strong></p></div>",e(".user-registration-header").after(message_string)),e(".user-registration_page_user-registration-settings .notice").css("display","block"),e(window).scrollTop(e(".notice").position())}})})}),function(e,t){e(function(){e(".ur_import_form_action_button").on("click",function(){var i=e("#jsonfile").prop("files")[0],r=new FormData;r.append("jsonfile",i),r.append("action","user_registration_import_form_action"),r.append("security",t.ur_import_form_save),e.ajax({url:t.ajax_url,dataType:"json",cache:!1,contentType:!1,processData:!1,data:r,type:"post",beforeSend:function(){e(".ur_import_form_action_button").closest(".publishing-action").append('<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>'),e(".ur-import_notice").remove()},complete:function(i){var r="";e(".ur_import_form_action_button").closest(".publishing-action").find(".spinner").remove(),e(".ur-import_notice").remove(),r=!0===i.responseJSON.success?'<div id="message" class="updated inline ur-import_notice"><p><strong>'+i.responseJSON.data.message+"</strong></p></div>":'<div id="message" class="error inline ur-import_notice"><p><strong>'+i.responseJSON.data.message+"</strong></p></div>",e(".ur-export-users-page").prepend(r),e("#jsonfile").val(""),e(".user-registration-custom-selected-file").html(t.no_file_selected)}})})})}(jQuery,window.user_registration_admin_data);
assets/js/admin/form-builder.js CHANGED
@@ -1149,13 +1149,13 @@
1149
  subject: email_body_item
1150
  .find(".uret_subject_input")
1151
  .val(),
1152
- content: tinymce
1153
- .get(
1154
- "user_registration_" +
1155
  $(this).prop("id") +
1156
  "_content"
1157
  )
1158
- .getContent(),
1159
  };
1160
  });
1161
 
@@ -1400,7 +1400,7 @@
1400
  .closest(".ur-selected-item")
1401
  .find(".ur-label")
1402
  .find("label");
1403
- label_node.find("span").remove();
1404
  label_node.append(
1405
  '<span style="color:red">*</span>'
1406
  );
@@ -3426,7 +3426,8 @@
3426
  )
3427
  .removeAttr("selected");
3428
 
3429
- wrapper.find(".ur-label").find("label").find("span").remove();
 
3430
  if ($label.val() === "yes") {
3431
  wrapper
3432
  .find(".ur-label")
@@ -3484,6 +3485,7 @@
3484
  .find('option[value="' + $label.val() + '"]')
3485
  .attr("selected", true);
3486
  },
 
3487
  /**
3488
  * Reflects changes in hide advance settings of field settings into selected field in form builder area.
3489
  *
1149
  subject: email_body_item
1150
  .find(".uret_subject_input")
1151
  .val(),
1152
+ content: email_body_item
1153
+ .find(
1154
+ "#user_registration_" +
1155
  $(this).prop("id") +
1156
  "_content"
1157
  )
1158
+ .val(),
1159
  };
1160
  });
1161
 
1400
  .closest(".ur-selected-item")
1401
  .find(".ur-label")
1402
  .find("label");
1403
+ label_node.find("span:contains('*')").remove();
1404
  label_node.append(
1405
  '<span style="color:red">*</span>'
1406
  );
3426
  )
3427
  .removeAttr("selected");
3428
 
3429
+ wrapper.find(".ur-label").find("label").find("span:contains(*)").remove();
3430
+
3431
  if ($label.val() === "yes") {
3432
  wrapper
3433
  .find(".ur-label")
3485
  .find('option[value="' + $label.val() + '"]')
3486
  .attr("selected", true);
3487
  },
3488
+
3489
  /**
3490
  * Reflects changes in hide advance settings of field settings into selected field in form builder area.
3491
  *
assets/js/admin/form-builder.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){e(function(){var i={init:function(){t.i18n_admin;i.init_user_profile_modal(),i.init_form_builder(),e(document).on("click",".ur-selected-item",function(){i.handle_selected_item(e(this))}),t.is_form_builder&&(e(window).on("keydown",function(e){if((e.ctrlKey||e.metaKey)&&("s"===String.fromCharCode(e.which).toLowerCase()||83===e.which))return e.preventDefault(),i.ur_save_form(),!1}),e(window).on("keydown",function(e){(e.ctrlKey||e.metaKey)&&("p"!==String.fromCharCode(e.which).toLowerCase()&&80!==e.which||(e.preventDefault(),window.open(t.ur_preview)))}),e(window).on("keydown",function(e){(e.ctrlKey||e.metaKey)&&("u"!==String.fromCharCode(e.which).toLowerCase()&&85!==e.which||(e.preventDefault(),window.open(t.ur_user_list_table)))}),e(window).on("keydown",function(e){if((e.ctrlKey||e.metaKey)&&("h"===String.fromCharCode(e.which).toLowerCase()||85===e.which))return e.preventDefault(),i.ur_show_help(),!1})),e("#ur-keyboard-shortcut-link").on("click",function(t){t.preventDefault(),e(".ur-quick-links-content").slideToggle(),i.ur_show_help()}),e(".ur_save_form_action_button").on("click",function(){i.ur_save_form()}),e(document).on("click",".ur-message .ur-message-close",function(){$message=e(this).closest(".ur-message"),i.removeMessage($message)}),i.init_choice_field_options(),e(document).ready(function(){var e=window.location.search,t=new URLSearchParams(e),a=t.get("page"),n=t.get("edit-registration");"add-new-registration"===a&&null===n&&i.ur_show_help()})},init_user_profile_modal:function(){({init:function(){e(document.body).on("click",".column-data_link a",this.add_item).on("ur_backbone_modal_loaded",this.backbone.init).on("ur_backbone_modal_response",this.backbone.response)},add_item:function(t){return t.preventDefault(),e(this).URBackboneModal({template:"test-demo"}),!1},backbone:{init:function(e,t){},response:function(e,t){}}}).init()},ur_save_form:function(){var a=i.get_validation_status();if(!1!==a.validation_status){var n=i.get_form_data(),r=i.get_form_row_ids(),s=e("#ur_form_id").val(),l=t.post_id;i.ur_parse_int(l,0)!==i.ur_parse_int(s,0)&&(s=0);var d=e("#ur-field-settings :not(.urcl-user-role-field, .uret-override-content-field, .ur_mailerlite_settings)").serializeArray(),o=i.get_form_conditional_role_data(),c=i.get_form_email_content_override_data(),u=e("#ur-multi-part-page-settings").serializeArray(),f={action:"user_registration_form_save_action",security:t.ur_form_save,data:{form_data:JSON.stringify(n),form_row_ids:JSON.stringify(r),form_name:e("#ur-form-name").val(),form_id:s,form_setting_data:d,conditional_roles_settings_data:o,email_content_override_settings_data:c,multipart_page_setting:u}};e(document).trigger("user_registration_admin_before_form_submit",[f]),e.ajax({url:t.ajax_url,data:f,type:"POST",beforeSend:function(){e(".ur_save_form_action_button").append('<span class="ur-spinner is-active"></span>'),e(".ur-notices").remove()},complete:function(a){if(e(".ur_save_form_action_button").find(".ur-spinner").remove(),!0===a.responseJSON.success){var n=t.i18n_admin.i18n_form_successfully_saved;if("1"!==t.is_edit_form){message_body="<p>Want to create a login form as well? Check this <a target='_blank' href='https://docs.wpeverest.com/docs/user-registration/registration-form-and-login-form/how-to-show-login-form/'>link</a>. To know more about other cool features check our <a target='_blank' href='https://docs.wpeverest.com/docs/user-registration/'>docs</a>.</p>",Swal.fire({icon:"success",title:"Form successfully created.",html:message_body}).then(function(e){0===parseInt(s)&&(window.location=t.admin_url+a.responseJSON.data.post_id)})}else i.show_message(n,"success"),0===parseInt(s)&&(window.location=t.admin_url+a.responseJSON.data.post_id)}else{var r=a.responseJSON.data.message;i.show_message(r)}}})}else i.show_message(a.message)},ur_show_help:function(){if(e(".jconfirm").length)jc.close();else{var i="<ul>";e.each(t.i18n_shortcut_keys,function(e,t){i+='<li class="ur-shortcut-keyword"><div class="ur-shortcut-title">'+t+'</div><div class="ur-key"><span class="ur-key-ctrl">'+e.split("+")[0]+'</span><i class="ur-key-plus"> + </i><span class="ur-key-character"><b>'+e.split("+")[1]+"</b></span></div></li>"}),i+="</ul>",jc=e.dialog({title:t.i18n_shortcut_key_title,content:i,icon:"dashicons dashicons-info",type:"blue",useBootstrap:"false",boxWidth:"550px",buttons:{confirm:{text:t.i18n_close,btnClass:"btn-confirm",keys:["enter"]}},escapeKey:!0,backgroundDismiss:function(){return!0},theme:"material"})}},get_validation_status:function(){var i=e.makeArray(t.form_one_time_draggable_fields),a=e.makeArray(t.form_required_fields),n={validation_status:!0,message:""};if(0===e(".ur-selected-item").length)return n.validation_status=!1,n.message=t.i18n_admin.i18n_at_least_one_field_need_to_select,n;if(""===e("#ur-form-name").val())return n.validation_status=!1,n.message=t.i18n_admin.i18n_empty_form_name,n;if(e(".ur_save_form_action_button").find(".ur-spinner").length>0)return n.validation_status=!1,n.message=t.i18n_admin.i18n_previous_save_action_ongoing,n;e.each(e(".ur-selected-item select.ur-settings-selected-countries"),function(){var i=e(this).val();if(!i||Array.isArray(i)&&0===i.length)return n.validation_status=!1,n.message=t.i18n_admin.i18n_select_countries,n}),e.each(e('.ur-input-grids .ur-general-setting-block input[data-field="field_name"]'),function(){var i,a=e(this),r=!1;try{var s=a.val();if(e(".ur-input-grids .ur-general-setting-block").find('input[data-field="field_name"][value="'+s+'"]').length>1)throw t.i18n_admin.i18n_duplicate_field_name;if(""===a.closest(".ur-general-setting-block").find('input[data-field="label"]').val())throw a=a.closest(".ur-general-setting-block").find('input[data-field="label"]'),t.i18n_admin.i18n_empty_field_label;var l=s.match(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/gm);if(null===l||1!==l.length||l[0]!==s)throw t.i18n_admin.i18n_invald_field_name}catch(d){n.validation_status=!1,n.message=d.message===undefined?d:d.message,a.closest(".ur-selected-item").trigger("click"),i=a.attr("data-field"),e("#ur-setting-form").find('input[data-field="'+i+'"]').css({border:"1px solid red"}),setTimeout(function(){e("#ur-setting-form").find('input[data-field="'+i+'"]').removeAttr("style")},2e3),r=!0}if(r)return!1});for(var r=0;r<i.length;r++)if(e(".ur-input-grids").find('.ur-field[data-field-key="'+i[r]+'"]').length>1){n.validation_status=!1,n.message=t.i18n_admin.i18n_multiple_field_key+i[r];break}var s=e("#user_registration_enable_paypal_standard"),l=e("#user_registration_enable_stripe");if(s.is(":checked")){a=a.concat(["payment_fields"])}else if(l.is(":checked")){a=a.concat(["payment_fields","stripe_gateway"])}for(var d=0;d<a.length;d++)if("payment_fields"===a[d]){var o=e(".ur-input-grids").find('.ur-field[data-field-key="multiple_choice"]').length,c=e(".ur-input-grids").find('.ur-field[data-field-key="single_item"]').length,u=e(".ur-input-grids").find(".ur-payment-slider-sign:visible").length;if(o<1&&c<1&&u<1){n.validation_status=!1;var f=t.i18n_admin.i18n_payment_field;n.message=f+" "+t.i18n_admin.i18n_field_is_required;break}}else if(0===e(".ur-input-grids").find('.ur-field[data-field-key="'+a[d]+'"]').length){if(n.validation_status=!1,0===d)f=t.i18n_admin.i18n_user_email;else if(1===d)f=t.i18n_admin.i18n_user_password;else f=t.i18n_admin.i18n_stripe_field;n.message=f+" "+t.i18n_admin.i18n_field_is_required;break}return e.each(e(".ur-input-grids").find('.ur-field[data-field-key="text"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-size").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size)}),e.each(e(".ur-input-grids").find('.ur-field[data-field-key="password"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-size").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size)}),e.each(e(".ur-input-grids").find('.ur-field[data-field-key="file"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-general-setting-block .ur-general-setting-maximum-number-limit-on-uploads input").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size);var r=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block input[data-id='file_advance_setting_max_upload_size']").val(),s=t.max_upload_size_ini;parseInt(r)>parseInt(s)&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_max_upload_size)}),e.each(e(".ur-input-grids").find('.ur-field[data-field-key="number"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-size").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size);var r=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-min").val(),s=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-max").val();parseFloat(r)>parseFloat(s)&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_min_max_input)}),e.each(e(".ur-input-grids").find('.ur-field[data-field-key="timepicker"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-time_interval").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size)}),e.each(e(".ur-input-grids").find('.ur-field[data-field-key="range"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-step").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size);var r=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-min").val(),s=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-max").val();parseFloat(r)>parseFloat(s)&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_min_max_input)}),n},show_message:function(a,n){var r=e(".ur-form-container").find(".ur-builder-message-container"),s=e("#wpadminbar"),l="";0===r.length&&(e(".ur-form-container").append('<div class="ur-builder-message-container"></div>'),(r=e(".ur-form-container").find(".ur-builder-message-container")).css({top:s.height()+"px"})),l="success"===n?'<div class="ur-message"><div class="ur-success"><p><strong>'+t.i18n_admin.i18n_success+"! </strong>"+a+'</p><span class="dashicons dashicons-no-alt ur-message-close"></span></div></div>':'<div class="ur-message"><div class="ur-error"><p><strong>'+t.i18n_admin.i18n_error+"! </strong>"+a+'</p><span class="dashicons dashicons-no-alt ur-message-close"></span></div></div>';var d=e(l).prependTo(r);setTimeout(function(){d.addClass("entered")},50),setTimeout(function(){i.removeMessage(d)},2e3)},removeMessage:function(e){e.removeClass("entered").addClass("exiting"),setTimeout(function(){e.remove()},120)},get_form_data:function(){var t=[],a=e(".ur-input-grids .ur-single-row");return e.each(a,function(){var a=e(this).find(".ur-grid-list-item"),n=[];e.each(a,function(){var t=e(this),a=i.get_grid_wise_data(t);n.push(a)}),t.push(n)}),t},get_grid_wise_data:function(t){var a=t.find(".ur-selected-item"),n=[];return e.each(a,function(){var t=e(this),a=t.find(".ur-field").attr("data-field-key"),r=e("li[data-field-id ='"+("user_registration_"+a)+"']").find(".ur-icon").attr("class"),s={field_key:a,general_setting:i.get_field_general_setting(t),advance_setting:i.get_field_advance_setting(t),icon:r};n.push(s)}),n},get_field_general_setting:function(t){var a=t.find(".ur-general-setting-block").find(".ur-general-setting-field"),n={},r=[],s=[];return e.each(a,function(){var t=e(this).closest(".ur-general-setting").hasClass("ur-setting-checkbox");if("options"===e(this).attr("data-field")){if("multiple_choice"===e(this).attr("data-field-name")){var a=[];e(this).closest("ul").find("li").each(function(t,i){var r=e(i).find("input.ur-type-checkbox-label").val(),s=e(i).find("input.ur-type-checkbox-money-input").val();a.every(function(e){return e.label!==r})&&(n.options=a.push({label:r,value:s})),n.options=a})}else var l=i.get_ur_data(e(this)).trim();r.every(function(e){return e!==l})&&(n.options=r.push(l),n.options=r)}else"default_value"===e(this).attr("data-field")?!0===t?e(this).is(":checked")&&(n.default_value=s.push(i.get_ur_data(e(this))),n.default_value=s):e(this).is(":checked")&&(n.default_value=i.get_ur_data(e(this))):"html"===e(this).attr("data-field")?n[e(this).attr("data-field")]=i.get_ur_data(e(this)).replace(/"/g,"'"):n[e(this).attr("data-field")]=i.get_ur_data(e(this))}),n},get_field_advance_setting:function(t){var a=t.find(".ur-advance-setting-block").find(".ur_advance_setting"),n={};return e.each(a,function(){n[e(this).attr("data-advance-field")]=i.get_ur_data(e(this))}),n},get_ur_data:function(e){var t="";switch(e.get(0).tagName.toLowerCase()){case"input":switch(e.attr("type")){case"checkbox":e.is(":checked")&&(t=e.val());break;default:t=e.val()}break;case"select":case"textarea":t=e.val()}return t},get_form_row_ids:function(){var t=[],i=e(".ur-input-grids .ur-single-row");return e.each(i,function(){t.push(e(this).attr("data-row-id"))}),t},ur_parse_int:function(e){return parseInt(e,0)},ur_math_ceil:function(e){return Math.ceil(e,0)},get_form_conditional_role_data:function(){var t=[],i=e(".urcl-role-logic-wrap");return e.each(i,function(){var i=e(this).find(".urcl-user-role-field"),a=[],n=[],r="";e.each(i,function(){$field_key=e(this).attr("name").split("["),"user_registration_form_conditional_user_role"===$field_key[0]&&(r=e(this).val(),i.splice(e(this),1))});var s=e(this).find(".urcl-conditional-group");e.each(s,function(){var t=[],i=e(this).find(".urcl-user-role-field");e.each(i,function(){var i={field_key:e(this).attr("name"),field_value:e(this).val()};t.push(i)}),a.push(t)});var l=e(this).find(".urcl-or-groups");e.each(l,function(){var t=e(this).find(".urcl-conditional-or-group"),i=[];e.each(t,function(){var t=[],a=e(this).find(".urcl-user-role-field");e.each(a,function(){var i={field_key:e(this).attr("name"),field_value:e(this).val()};t.push(i)}),i.push(t)}),n.push(i)});var d={assign_role:r,conditions:a,or_conditions:n};t.push(d)}),t},get_form_email_content_override_data:function(){var t={},i=e(".user-registration-email-template-content-wrap");return e.each(i,function(){var i=e(this).find(".user-registration-card__header"),a=e(this).find(".user-registration-card__body");t[e(this).prop("id")]={title:i.find(".user-registration-card__title ").text(),description:i.find(".user-registration-help-tip").data("description"),override:i.find("#uret_override_"+e(this).prop("id")).hasClass("enabled")?1:0,subject:a.find(".uret_subject_input").val(),content:tinymce.get("user_registration_"+e(this).prop("id")+"_content").getContent()}}),t},init_form_builder:function(){e.fn.ur_form_builder=function(){var a={active_grid:t.active_grid,number_of_grid_list:t.number_of_grid,min_grid_height:70};return this.each(function(){var n=e(this),r={init:function(){this.single_row(),this.manage_required_fields(),this.manage_label_hidden_fields()},single_row:function(){if("1"!==t.is_edit_form){var i=e("<div class='ur-single-row'/ data-row-id=\"0\">");i.append(e("<div class='ur-grids'/>"));var l=this.get_grid_button();i.find(".ur-grids").append(l),i.find(".ur-grids").find('span[data-id="'+a.active_grid+'"]').addClass("ur-active-grid");var d=this.get_grid_lists(a.active_grid);i.append('<div style="clear:both"></div>'),i.append(d),i.append('<div style="clear:both"></div>'),n.append(i),e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).find(".user-registration-dragged-me").remove(),e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).append(t.required_form_html)}if(0==n.find(".ur-add-new-row").length){n.append('<button type="button" class="button button-primary dashicons dashicons-plus-alt ur-add-new-row ui-sortable-handle" data-total-rows="0">'+t.add_new+"</button>");var o=n.find(".ur-add-new-row").siblings(".ur-single-row").last().prev().attr("data-row-id");n.find(".ur-add-new-row").attr("data-total-rows",o)}s.render_draggable_sortable(),r.manage_empty_grid(),r.manage_draggable_users_fields()},get_grid_button:function(){var t=e('<div class="ur-grid-containner"/>'),i='<button type="button" class="ur-edit-grid"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28,6V26H4V6H28m2-2H2V28H30V4Z"/></svg></button>';return i+='<button type="button" class="dashicons dashicons-no-alt ur-remove-row"></button>',i+='<div class="ur-toggle-grid-content" style="display:none">',i+="<small>Select the grid column.</small>",i+='<div class="ur-grid-selector" data-grid = "1">',i+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28,6V26H4V6H28m2-2H2V28H30V4Z"/></svg>',i+="</div>",i+='<div class="ur-grid-selector" data-grid = "2">',i+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M17,4H2V28H30V4ZM4,26V6H15V26Zm24,0H17V6H28Z"/></svg>',i+="</div>",i+='<div class="ur-grid-selector" data-grid = "3">',i+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M22,4H2V28H30V4ZM4,26V6h6V26Zm8,0V6h8V26Zm16,0H22V6h6Z"/></svg>',i+="</div>",i+="</div>",t.html(i),t.html()},get_grid_lists:function(t){for(var i=e('<div class="ur-grid-lists"/>'),n=1;n<=t;n++){var r=e("<div ur-grid-id='"+n+"' class='ur-grid-list-item'></div>"),s=Math.floor(100/t)-t;r.css({width:s+"%","min-height":a.min_grid_height+"px"}),i.append(r)}return i.append('<div style="clear:both"></div>'),i.find(".ur-grid-list-item").eq("0").css({}),i},manage_label_hidden_fields:function(){e('select[data-field="hide_label"]').each(function(){"yes"===e(this).val()?e(this).closest(".ur-selected-item").find(".ur-label").find("label").hide():e(this).closest(".ur-selected-item").find(".ur-label").find("label").show()})},manage_required_fields:function(){var i=t.form_required_fields,a=e(".ur-input-grids");if(Array.isArray(i))for(var n=0;n<i.length;n++){var r=a.find('.ur-field[data-field-key="'+i[n]+'"]');r.closest(".ur-selected-item").find('select[data-field="required"]').val("yes").trigger("change"),r.closest(".ur-selected-item").find('select[data-field="required"]').find('option[value="yes"]').attr("selected","selected"),r.closest(".ur-selected-item").find('select[data-field="required"]').attr("disabled","disabled")}var s=a.find('select[data-field="required"]').find('option[selected="selected"][value="yes"]').closest(".ur-selected-item").find(".ur-label").find("label");s.find("span").remove(),s.append('<span style="color:red">*</span>')},manage_empty_grid:function(){var t=e(".ur-input-grids"),i=e('<div class="user-registration-dragged-me"/>');t.find(".user-registration-dragged-me").remove(),e.each(t.find(".ur-grid-list-item"),function(){var t=e(this);0===e(this).find(".ur-selected-item").length&&t.append(i.clone())})},manage_draggable_users_fields:function(){var i=t.form_one_time_draggable_fields,a=e("#ur-tab-registered-fields").find("ul.ur-registered-list");e.each(a.find("li"),function(){var t=e(this),a=e(this).attr("data-field-id").replace("user_registration_","");e.inArray(a,i)>=0&&(e(".ur-input-grids").find('.ur-field[data-field-key="'+a+'"]').length>0?t.draggable("disable"):t.draggable("enable"))})},populate_dropped_node:function(a,n){var s={action:"user_registration_user_input_dropped",security:t.user_input_dropped,form_field_id:n},l='<div class="ur-selected-item ajax_added"><div class="ur-action-buttons"><span title="Clone" class="dashicons dashicons-admin-page ur-clone"></span><span title="Trash" class="dashicons dashicons-trash ur-trash"></span></div>(content)</div>';a.closest(".ur-single-row").find(".user-registration-dragged-me").fadeOut(),e.ajax({url:t.ajax_url,data:s,type:"POST",beforeSend:function(){a.removeAttr("class").removeAttr("id").removeAttr("data-field-id").addClass("ur-selected-item").css({width:"auto"}),a.html('<small class="spinner is-active"></small>'),a.addClass("ur-item-dragged")},complete:function(t){if(r.manage_empty_grid(),!0===t.responseJSON.success){var n=e(l.replace("(content)",t.responseJSON.data.template));n.removeClass("ajax_added"),n.removeClass("ur-item-dragged"),a.find(".ajax_added").find(".spinner").remove(),a.find(".ajax_added").remove(),e(n).insertBefore(a),a.remove()}r.manage_draggable_users_fields();var s=n.closest(".ur-selected-item ").find("[data-field='field_name']").val();i.manage_conditional_field_options(s),e('.ur-input-type-select2 .ur-field[data-field-key="select2"] select, .ur-input-type-multi-select2 .ur-field[data-field-key="multi_select2"] select').selectWoo(),e(document.body).trigger("ur_new_field_created")}})}},s={register:function(){this.register_add_new_row(),this.register_remove_row(),this.change_ur_grids(),this.remove_selected_item(),this.clone_selected_item()},register_add_new_row:function(){var t=this;e("body").on("click",".ur-add-new-row",function(){var i=e(this).attr("data-total-rows");e(this).attr("data-total-rows",parseInt(i)+1);var n=e(this).closest(".ur-input-grids").find(".ur-single-row").eq(0).clone();n.attr("data-row-id",parseInt(i)+1),n.find(".ur-grid-lists").html(""),n.find(".ur-grids").find("span").removeClass("ur-active-grid"),n.find(".ur-grids").find('span[data-id="'+a.active_grid+'"]').addClass("ur-active-grid");var s=r.get_grid_lists(a.active_grid);n.find(".ur-grid-lists").append(s.html()),n.insertBefore(".ur-add-new-row"),n.show(),t.render_draggable_sortable(),r.manage_empty_grid(),e(document).trigger("user_registration_row_added",[n])})},register_remove_row:function(){var a=this;e("body").on("click",".ur-remove-row",function(){if(e(".ur-input-grids").find(".ur-single-row:visible").length>1){var n=e(this);ur_confirmation(t.i18n_admin.i18n_are_you_sure_want_to_delete_row,{title:t.i18n_admin.i18n_msg_delete,confirm:function(){var t,r=n.prev();(t=r.hasClass("ur-add-new-row")?r.clone():n.clone().attr("class","dashicons-minus ur-remove-row")).hasClass("ur-add-new-row")&&n.closest(".ur-single-row").prev().find(".ur-remove-row").before(t);var s=n.closest(".ur-single-row");e(document).trigger("user_registration_row_deleted",[s]);var l=s.find(".ur-grid-lists .ur-selected-item .ur-general-setting");e(l).each(function(){e(this).closest(".ur-selected-item").find(" .ur-admin-template .ur-label label").text();var t=e(this).closest(".ur-selected-item").find(" .ur-admin-template .ur-field").data("field-key");if("section_title"!=t&&"html"!=t&&"wysiwyg"!=t&&"billing_address_title"!=t&&"shipping_address_title"!=t){var i=e(this).find("[data-field='field_name']").val();void 0!==i&&(e('[class*="urcl-settings-rules_field_"] option[value="'+i+'"]').remove(),e('[class*="urcl-field-conditional-field-select"] option[value="'+i+'"]').remove())}}),s.remove(),a.check_grid(),i.manage_draggable_users_fields(),Swal.fire({icon:"success",title:"Successfully deleted!",customClass:"user-registration-swal2-modal user-registration-swal2-modal--center",showConfirmButton:!1,timer:1e3})},reject:function(){}})}else i.ur_alert(t.i18n_admin.i18n_at_least_one_row_is_required_to_create_a_registration_form,{title:t.i18n_admin.i18n_cannot_delete_row})})},change_ur_grids:function(){var t=this;e(document).on("click",".ur-grids .ur-edit-grid",function(t){t.stopPropagation(),e(this).siblings(".ur-toggle-grid-content").stop(!0).slideToggle(200)}),e(document).on("click",function(){e(".ur-toggle-grid-content").stop(!0).slideUp(200)}),e(document).on("click",".ur-grids .ur-toggle-grid-content .ur-grid-selector",function(){var i=e(this).closest(".ur-single-row"),a=e(this).attr("data-grid"),n=i.find(".ur-grid-lists .ur-grid-list-item").length,s=r.get_grid_lists(a),l=0;i.find(".ur-grid-lists .ur-grid-list-item").length!==parseInt(a)&&(i.find("button.ur-edit-grid").html(e(this).html()),e.each(i.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){s.find(".ur-grid-list-item").eq(l).append(e(this).clone()),3===parseInt(e(this).parent().attr("ur-grid-id"))&&3===parseInt(n)&&2===parseInt(a)&&(l=Math.abs(--l))}),(parseInt(a)>n||e(this).children("*").length&&2<=parseInt(a))&&(l=parseInt(a)<=++l?0:l)}),i.find(".ur-grid-lists").eq(0).hide(),s.clone().insertAfter(i.find(".ur-grid-lists")),i.find(".ur-grid-lists").eq(0).remove(),t.render_draggable_sortable(),r.manage_empty_grid())})},render_draggable_sortable:function(){e(".ur-grid-list-item").sortable({containment:".ur-input-grids",over:function(){e(this).addClass("ur-sortable-active"),r.manage_empty_grid()},out:function(){e(this).removeClass("ur-sortable-active"),r.manage_empty_grid()},revert:!0,connectWith:".ur-grid-list-item"}).disableSelection(),e(".ur-input-grids").sortable({containment:".ur-builder-wrapper",tolerance:"pointer",revert:"invalid",placeholder:"ur-single-row",forceHelperSize:!0,over:function(){e(this).addClass("ur-sortable-active")},out:function(){e(this).removeClass("ur-sortable-active")}}),e("#ur-draggabled .draggable").draggable({connectToSortable:".ur-grid-list-item",containment:".ur-registered-from",helper:function(){return e(this).clone().insertAfter(e(this).closest(".ur-tab-contents").siblings(".ur-tab-lists"))},revert:"invalid",stop:function(i,a){if(0!==e(a.helper).closest(".ur-grid-list-item").length){var n=e(a.helper).attr("data-field-id").replace("user_registration_","").trim(),s=e(".ur-input-grids").find('.ur-field[data-field-key="'+n+'"]').length,l=e.makeArray(t.form_one_time_draggable_fields);if(s>0&&e.inArray(n,l)>=0)return show_message(t.i18n_admin.i18n_user_required_field_already_there),void e(a.helper).remove();var d=e(a.helper),o=e(d).attr("data-field-id");if(void 0!==o){var c=e(a.helper).closest(".ur-grid-list-item").find('li[data-field-id="'+e(this).attr("data-field-id")+'"]');r.populate_dropped_node(c,o)}}}}).disableSelection()},remove_selected_item:function(){var i=this;e("body").on("click",".ur-selected-item .ur-action-buttons .ur-trash",function(a){var n=e(this).closest(".ur-selected-item ").find("[data-field='field_name']").val(),s=i,l=e(this);ur_confirmation(t.i18n_admin.i18n_are_you_sure_want_to_delete_field,{title:t.i18n_admin.i18n_msg_delete,showCancelButton:!0,confirmButtonText:t.i18n_admin.i18n_choice_ok,cancelButtonText:t.i18n_admin.i18n_choice_cancel,ele:s,$ele:l,removed_item:n,confirm:function(){return l.closest(".ur-selected-item ").remove(),s.check_grid(),r.manage_empty_grid(),r.manage_draggable_users_fields(),e('[class*="urcl-settings-rules_field_"] option[value="'+n+'"]').remove(),e('[class*="urcl-field-conditional-field-select"] option[value="'+n+'"]').remove(),!1},reject:function(){return!1}})})},clone_selected_item:function(){e("body").on("click",".ur-selected-item .ur-action-buttons .ur-clone",function(){var a=e(this).closest(".ur-selected-item ").find(".ur-field").attr("data-field-key");if(e(".ur-input-grids").find('.ur-field[data-field-key="'+a+'"]').length>0&&e.inArray(a,t.form_one_time_draggable_fields)>-1)i.show_message(t.i18n_admin.i18n_user_required_field_already_there_could_not_clone);else{var n=e(this).closest(".ur-selected-item ").clone(),r=n.find('input[data-field="field_name"]'),s=r.val().match(/\d+/g),l=s.length>0?s[s.length-1]:"",d=r.val().replace(l,"");n.find('input[data-field="field_name"]').attr("value",d+(new Date).getTime()),e(this).closest(".ur-grid-list-item").append(n);var o=n.find("[data-field='field_name']").val();i.manage_conditional_field_options(o)}})},check_grid:function(){e(".ur-tabs").tabs({disabled:[1]}),e(".ur-tabs").find("a").eq(0).trigger("click",["triggered_click"]),e(".ur-tabs").find('[aria-controls="ur-tab-field-options"]').addClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active")}};r.init(),s.register()})},e(".ur-input-grids").ur_form_builder(),e(".ur-tabs .ur-tab-lists").on("click","a.nav-tab",function(){e(".ur-tabs .ur-tab-lists").find("a.nav-tab").removeClass("active"),e(this).addClass("active")}),e(".ur-tabs").tabs(),e(".ur-tabs").find("a").eq(0).trigger("click",["triggered_click"]),e(".ur-tabs").tabs({disabled:[1]})},manage_conditional_field_options:function(t){e(".ur-grid-lists .ur-selected-item .ur-general-setting").each(function(){var i=e(this).closest(".ur-selected-item").find(" .ur-admin-template .ur-label label").text(),a=e(this).closest(".ur-selected-item").find(" .ur-admin-template .ur-field").data("field-key");if("section_title"!=a&&"html"!=a&&"wysiwyg"!=a&&"billing_address_title"!=a&&"shipping_address_title"!=a){var n=e(this).find("[data-field='field_name']").val();if(void 0!==n){!1===e(".urcl-field-conditional-field-select option[value='"+n+"']").length>0&&e('[class*="urcl-field-conditional-field-select"]').append('<option value ="'+n+'" data-type="'+a+'">'+i+" </option>");!1===e(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1 option[value='"+n+"']").length>0?(e('[class*="urcl-settings-rules_field_"]').append('<option value ="'+n+'" data-type="'+a+'">'+i+" </option>"),n==t&&e('.urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields option[value="'+t+'"]').remove()):e(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").append('<option value ="'+n+'" data-type="'+a+'">'+i+" </option>")}}}),e(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").removeClass("empty-fields")},handle_selected_item:function(t){e(".ur-registered-inputs").find("ul li.ur-no-pointer").removeClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active"),e(t).addClass("ur-item-active"),i.render_advance_setting(e(t)),i.init_events(),e(document).trigger("update_perfect_scrollbar");var r=e(t).find(".ur-field").data("field-key");if("country"===r||"billing_country"===r||"shipping_country"===r){var s=e("#ur-setting-form select.ur-settings-selected-countries");s.on("change",function(t){var i=e(this).val(),a="",n=this;Array.isArray(i)&&i.forEach(function(t){var i=e(n).find('option[value="'+t+'"]').html();a+='<option value="'+t+'">'+i+"</option>"}),e("#ur-setting-form select.ur-settings-default-value").html(a),e(".ur-selected-item.ur-item-active select.ur-settings-default-value").html(a)}).select2({placeholder:"Select countries...",selectionAdapter:a,dropdownAdapter:n,templateResult:function(t){return t.id?e("<div></div>").text(t.text).addClass("wrap"):t.text},templateSelection:function(e){if(!e.id)return e.text;var t=0;return s.val()&&(t=s.val().length),"Selected "+t+" country(s)"}}).on("change",function(t){e(".urcl-rules, .urcl-conditional-group").each(function(){var t=e(this).find(".urcl-field").length?e(this).find(".urcl-field"):e(this).find(".urcl-form-group"),i=t.find("select option:selected").data("type");if("country"===i||"billing_country"===i||"shipping_country"===i){var a=t.find("select option:selected").val(),n=e(this).find(".urcl-value select").val(),r=e('.ur-general-setting-field-name input[value="'+a+'"').closest(".ur-selected-item").find(".ur-advance-selected_countries select option:selected"),s=[];e(this).find(".urcl-value select").html('<option value="">--select--</option>'),r.each(function(){var t=e(this).val(),i=e(this).text();s.push('<option value="'+t+'">'+i+"</option>")}),e(this).find(".urcl-value select").append(s.join("")),e(this).find(".urcl-value select").val(n),e(this).find('.urcl-value select option[value="'+n+'"]').attr("selected","selected")}})}).on("select2:close",function(t){setTimeout(function(){e(":focus").trigger("blur")},1)})}e(document.body).trigger("ur_rendered_field_options"),e(document.body).trigger("init_tooltips")},render_advance_setting:function(t){var i=t.find(".ur-advance-setting-block").clone(),a=t.find(".ur-general-setting-block").clone(),n=e("<form id='ur-setting-form'/>");e("#ur-tab-field-options").html(""),n.append(a),n.append(i),e("#ur-tab-field-options").append(n),e("#ur-tab-field-options").find(".ur-advance-setting-block").show(),e("#ur-tab-field-options").find(".ur-general-setting-block").show(),1===e(".ur-item-active").length&&(e(".ur-tabs").tabs().tabs("enable",1),e(".ur-tabs").find("a").eq(1).trigger("click",["triggered_click"])),e(".ur-options-list").sortable({containment:".ur-general-setting-options"})},init_events:function(){var t=e(".ur-general-setting-field");e.each(t,function(){var t=e(this);switch(t.attr("data-field")){case"label":t.on("keyup",function(){i.trigger_general_setting_label(e(this))});break;case"field_name":case"max_files":case"input_mask":t.on("change",function(){i.trigger_general_setting_field_name(e(this))});case"default_value":t.on("change",function(){"default_value"===t.attr("data-field")&&(t.closest(".ur-general-setting-block").hasClass("ur-general-setting-select")?i.render_select_box(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?i.render_radio(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")?i.render_check_box(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-multiple_choice")&&i.render_multiple_choice(e(this)))});break;case"options":t.on("keyup",function(){t.closest(".ur-general-setting-block").hasClass("ur-general-setting-select")&&t.siblings('input[data-field="default_value"]').is(":checked")?i.render_select_box(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?i.render_radio(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")?i.render_check_box(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-multiple_choice")&&i.render_multiple_choice(e(this)),i.trigger_general_setting_options(e(this))});break;case"placeholder":t.on("keyup",function(){i.trigger_general_setting_placeholder(e(this))});break;case"required":t.on("change",function(){i.trigger_general_setting_required(e(this))});break;case"hide_label":t.on("change",function(){i.trigger_general_setting_hide_label(e(this))});break;case"description":case"html":t.on("keyup",function(){i.trigger_general_setting_description(e(this))})}});var a=e("#ur-setting-form .ur_advance_setting");e(".ur-settings-enable-min-max").on("change",function(){"true"===e(this).val()?(e(".ur-item-active .ur-advance-min_date, #ur-setting-form .ur-advance-min_date").show(),e(".ur-item-active .ur-advance-max_date, #ur-setting-form .ur-advance-max_date").show(),e("#ur-setting-form .ur-settings-min-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,"static":!0,onChange:function(t,i,a){e(".ur-item-active .ur-settings-min-date").val(i)},onOpen:function(t,i,a){a.set("maxDate",e(".ur-item-active .ur-settings-max-date").val())}}),e("#ur-setting-form .ur-settings-max-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,"static":!0,onChange:function(t,i,a){e(".ur-item-active .ur-settings-max-date").val(i)},onOpen:function(t,i,a){a.set("minDate",e(".ur-item-active .ur-settings-min-date").val())}})):(e(".ur-item-active .ur-advance-min_date, #ur-setting-form .ur-advance-min_date").hide(),e(".ur-item-active .ur-advance-max_date, #ur-setting-form .ur-advance-max_date").hide())}),e.each(a,function(){var t=e(this);switch(t.attr("data-advance-field")){case"date_format":t.on("change",function(){i.trigger_general_setting_date_format(e(this))});break;case"min_date":"true"===e(".ur-item-active").find(".ur-settings-enable-min-max").val()?e(this).addClass("flatpickr-field").flatpickr({disableMobile:!0,"static":!0,defaultDate:new Date(e(".ur-item-active").find(".ur-settings-min-date").val()),onChange:function(t,i,a){e(".ur-item-active").find(".ur-settings-min-date").val(i)},onOpen:function(t,i,a){a.set("maxDate",new Date(e(".ur-item-active").find(".ur-settings-max-date").val()))}}):e(".ur-item-active .ur-advance-min_date, #ur-setting-form .ur-advance-min_date").hide();break;case"max_date":"true"===e(".ur-item-active").find(".ur-settings-enable-min-max").val()?e(this).addClass("flatpickr-field").flatpickr({disableMobile:!0,"static":!0,defaultDate:new Date(e(".ur-item-active").find(".ur-settings-max-date").val()),onChange:function(t,i,a){e(".ur-item-active").find(".ur-settings-max-date").val(i)},onOpen:function(t,i,a){a.set("minDate",new Date(e(".ur-item-active .ur-settings-min-date").val()))}}):e(".ur-item-active .ur-advance-max_date, #ur-setting-form .ur-advance-max_date").hide();break;case"enable_prepopulate":"false"===t.val()&&e(this).closest(".ur-advance-setting-block").find(".ur-advance-parameter_name").hide(),t.on("change",function(){e(this).closest(".ur-advance-setting-block").find(".ur-advance-parameter_name").toggle(),e(".ur-selected-item.ur-item-active").find(".ur-advance-parameter_name").toggle()});break;case"autocomplete_address":"no"===t.val()&&e(this).closest(".ur-advance-setting-block").find(".ur-advance-address_style").hide(),t.on("change",function(){e(this).closest(".ur-advance-setting-block").find(".ur-advance-address_style").toggle(),e(".ur-selected-item.ur-item-active").find(".ur-advance-address_style").toggle()});break;case"validate_unique":"false"===t.val()&&e(this).closest(".ur-advance-setting-block").find(".ur-advance-validation_message").hide(),t.on("change",function(){e(this).closest(".ur-advance-setting-block").find(".ur-advance-validation_message").toggle(),e(".ur-selected-item.ur-item-active").find(".ur-advance-validation_message").toggle()})}var a=t.get(0).tagName.toLowerCase();"country_advance_setting_default_value"===t.attr("data-id")&&e(".ur-builder-wrapper #ur-input-type-country").find('option[value="'+t.val()+'"]').attr("selected","selected");var n="change";switch(a){case"input":n="keyup click";break;case"select":n="change";break;case"textarea":n="keyup";break;default:n="change"}"valid_file_type"!==t.attr("data-advance-field")&&"payment_methods"!==t.attr("data-advance-field")||t.select2(),e(this).on(n,function(){i.trigger_advance_setting(t,a)}),e(this).on("paste",function(){i.trigger_advance_setting(t,a)})})},trigger_general_setting_label:function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-label").find("label").text(t.val()),"yes"===e(".ur-selected-item.ur-item-active .ur-general-setting").find("[data-field='required']").val()&&i.find(".ur-label").find("label").append('<span style="color:red">*</span>'),i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val());var a=e(".ur-selected-item.ur-item-active .ur-general-setting").find("[data-field='field_name']").val();e('[class*="urcl-settings-rules_field_"] option[value="'+a+'"]').text(t.val()),e('[class*="urcl-field-conditional-field-select"] option[value="'+a+'"]').text(t.val())},trigger_general_setting_field_name:function(t){var i=e(".ur-selected-item.ur-item-active"),a=i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value");i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val()),e('[class*="urcl-settings-rules_field_"] option[value="'+a+'"]').attr("value",t.val()),e('[class*="urcl-field-conditional-field-select"] option[value="'+a+'"]').attr("value",t.val())},render_text_area:function(t){switch(e(".ur-selected-item.ur-item-active").find(".ur-field").attr("data-field-key")){case"select":i.render_select_box(t);break;case"checkbox":i.render_check_box(t);break;case"radio":i.render_radio(t);break;case"multiple_choice":i.render_multiple_choice(t)}},render_select_box:function(t){var i=t.val().trim(),a=e(".ur-selected-item.ur-item-active"),n=t.closest("li").index(),r=a.find(".ur-field").find("select");r.html(""),r.append("<option value='"+i+"'>"+i+"</option>"),a.find(".ur-general-setting-options > ul.ur-options-list > li").each(function(t,i){var a=e(i).find('[data-field="default_value"]');t===n?a.prop("checked",!0):a.prop("checked",!1)})},render_radio:function(t){var i=t.closest("ul").find("li"),a=undefined,n=[];i.each(function(t,i){var r=e(i).find("input.ur-type-radio-label").val();r=r.trim(),!0===(s=e(i).find("input.ur-type-radio-value").is(":checked"))&&(a=t),n.every(function(e){return e.value!==r})&&n.push({value:r,radio:s})});var r=e(".ur-selected-item.ur-item-active"),s=r.find(".ur-field");s.html("");for(var l=0;l<n.length;l++)""!==n[l]&&s.append('<label><input value="'+n[l].value.trim()+'" type="radio" '+(n[l].radio?"checked":"")+" disabled>"+n[l].value.trim()+"</label>");r.find(".ur-general-setting-options > ul.ur-options-list > li").each(function(t,i){var n=e(i).find('[data-field="default_value"]');t===a?n.prop("checked",!0):n.prop("checked",!1)})},render_check_box:function(t){var i=[],a=t.closest("ul").find("li"),n=t.closest("li").index();a.each(function(t,a){var n=e(a).find("input.ur-type-checkbox-label").val();n=n.trim(),s=e(a).find("input.ur-type-checkbox-value").is(":checked"),i.every(function(e){return e.value!==n})&&i.push({value:n,checkbox:s})});var r=e(".ur-selected-item.ur-item-active"),s=r.find(".ur-field");s.html("");for(var l=0;l<i.length;l++)""!==i[l]&&s.append('<label><input value="'+i[l].value.trim()+'" type="checkbox" '+(i[l].checkbox?"checked":"")+" disabled>"+i[l].value.trim()+"</label>");"checkbox"===t.attr("type")&&(t.is(":checked")?r.find(".ur-general-setting-options li:nth("+n+') input[data-field="default_value"]').prop("checked",!0):r.find(".ur-general-setting-options li:nth("+n+') input[data-field="default_value"]').prop("checked",!1))},render_multiple_choice:function(t){var i=[],a=t.closest("ul").find("li"),n=t.closest("li").index();a.each(function(t,a){var n=e(a).find("input.ur-type-checkbox-label").val(),r=e(a).find("input.ur-type-checkbox-money-input").val(),l=e(a).find("input.ur-type-checkbox-money-input").attr("data-currency");n=n.trim(),r=r.trim(),l=l.trim(),s=e(a).find("input.ur-type-checkbox-value").is(":checked"),i.every(function(e){return e.label!==n})&&i.push({label:n,value:r,currency:l,checkbox:s})});var r=e(".ur-selected-item.ur-item-active"),s=r.find(".ur-field");s.html("");for(var l=0;l<i.length;l++)""!==i[l]&&s.append('<label><input value="'+i[l].label.trim()+'" type="checkbox" '+(i[l].checkbox?"checked":"")+" disabled>"+i[l].label.trim()+" - "+i[l].currency.trim()+" "+i[l].value.trim()+"</label>");"checkbox"===t.attr("type")&&(t.is(":checked")?r.find(".ur-general-setting-options li:nth("+n+') input[data-field="default_value"]').prop("checked",!0):r.find(".ur-general-setting-options li:nth("+n+') input[data-field="default_value"]').prop("checked",!1))},trigger_general_setting_options:function(t){var i=e(".ur-selected-item.ur-item-active"),a=t.closest("li").index();"multiple_choice"===t.attr("data-field-name")?i.find(".ur-general-setting-block li:nth("+a+') input[name="'+t.attr("name")+'"]').val(t.val()):i.find(".ur-general-setting-block li:nth("+a+') input[data-field="'+t.attr("data-field")+'"]').val(t.val()),i.find(".ur-general-setting-block li:nth("+a+') input[data-field="default_value"]').val(t.val()),t.closest("li").find('[data-field="default_value"]').val(t.val())},trigger_general_setting_description:function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-field").find("textarea").attr("description",t.val()),i.find(".ur-general-setting-block").find('textarea[data-field="'+t.attr("data-field")+'"]').val(t.val())},trigger_general_setting_placeholder:function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-field").find("input").attr("placeholder",t.val()),i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').val(t.val())},trigger_general_setting_required:function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"] option:selected').removeAttr("selected"),i.find(".ur-label").find("label").find("span").remove(),"yes"===t.val()&&i.find(".ur-label").find("label").append('<span style="color:red">*</span>'),i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"]').find('option[value="'+t.val()+'"]').attr("selected",!0)},trigger_general_setting_date_format:function(t){e(".ur-selected-item.ur-item-active").find(".ur-field").find("input").attr("placeholder",t.val())},trigger_general_setting_hide_label:function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"] option:selected').removeAttr("selected"),"yes"===t.val()?i.find(".ur-label").find("label").hide():i.find(".ur-label").find("label").show(),i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"]').find('option[value="'+t.val()+'"]').attr("selected",!0)},trigger_advance_setting:function(t,a){var n=e(".ur-selected-item.ur-item-active"),r=t.attr("data-id"),s=n.find(".ur-advance-setting-block").find('[data-id="'+r+'"]');switch(a){case"input":s.val(t.val());break;case"select":if(s.find("option").prop("selected",!1),t.prop("multiple")){var l=t.val();s.val(l)}else s.find('option[value="'+t.val()+'"]').attr("selected","selected");break;case"textarea":s.val(t.val()),i.render_text_area(t.val())}},ur_alert:function(e,t){void 0===t&&(t={}),Swal.fire({icon:"error",title:t.title,text:e,customClass:"user-registration-swal2-modal user-registration-swal2-modal--center"})},init_choice_field_options:function(){e(document).on("sortstop",".ur-options-list",function(t,a){var n=e(this);i.handle_options_sort(n)}),e(document).on("click",".ur-options-list .add",function(t){t.preventDefault();var a=e(this);i.add_choice_field_option(a)}),e(document).on("click",".ur-options-list .remove",function(t){t.preventDefault();var a=e(this);i.remove_choice_field_option(a)})},handle_options_sort:function(e){i.ur_clone_options(e),$this.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?i.render_radio(e):$this.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")?i.render_check_box(e):$this.closest(".ur-general-setting-block").hasClass("ur-general-setting-multiple_choice")&&i.render_multiple_choice(e)},ur_clone_options:function(t){var i=t.clone(!0,!0),a=e(".ur-selected-item.ur-item-active").find(".ur-general-setting-options .ur-options-list");a.html(""),a.replaceWith(i)},add_choice_field_option:function(t){var a=e(".ur-selected-item.ur-item-active"),n=t.parent("li").index(),r=t.parent("li").clone(!0,!0);r.find('input[data-field="options"]').val(""),r.find('input[data-field="default_value"]').prop("checked",!1),t.parent("li").after(r),a.find(".ur-general-setting-options .ur-options-list > li:nth( "+n+" )").after(r.clone(!0,!0)),t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?i.render_radio(t):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")?i.render_check_box(t):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-multiple_choice")&&i.render_multiple_choice(t)},remove_choice_field_option:function(t){var a=t.closest("ul"),n=a.find("li"),r=e(".ur-selected-item.ur-item-active"),s=t.parent("li").index();a.find("li").length>1&&(t.parent("li").remove(),r.find(".ur-general-setting-options .ur-options-list > li:nth( "+s+" )").remove(),n.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?i.render_radio(n):n.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")?i.render_check_box(n):n.closest(".ur-general-setting-block").hasClass("ur-general-setting-multiple_choice")&&i.render_multiple_choice(n))}};i.init(),e(document).ready(function(){var t={};e(document.body).on("click","#load_flatpickr",function(){var i=e(this).data("id"),a=t[i];if(!a){var n=e(this).closest(".ur-field-item").find("#formated_date").val();if(0<e(".ur-frontend-form").length)var r=e(".ur-frontend-form #"+i).attr("type","text").val(n);else r=e(".woocommerce-MyAccount-content #"+i).attr("type","text").val(n);e(this).attr("data-date-format",r.data("date-format")),e(this).attr("data-mode",r.data("mode")),e(this).attr("data-locale",r.data("locale")),e(this).attr("data-min-date",r.data("min-date")),e(this).attr("data-max-date",r.data("max-date")),e(this).attr("data-default-date",n),a=e(this).flatpickr({disableMobile:!0,onChange:function(t,a,n){e("#"+i).val(a)},onOpen:function(e,t,i){i.set("minDate",r.data("min-date")),i.set("maxDate",r.data("max-date"))}}),t[i]=a}a&&a.open()})}),e(document).on("click",".ur-toggle-heading",function(){e(this).hasClass("closed")?e(this).removeClass("closed"):e(this).addClass("closed");var t=e(this).find(" ~ .ur-registered-list")[0];e(t).slideToggle(),e(this).siblings(".ur-toggle-content").slideToggle()}),e(document.body).on("click",".ur-quick-links-content",function(e){e.stopPropagation()}),e(document.body).on("click",".ur-button-quick-links",function(t){t.stopPropagation(),e(".ur-quick-links-content").slideToggle()}),e(document.body).on("click",function(t){e(".ur-quick-links-content").is(":hidden")||e(".ur-quick-links-content").slideToggle()});var a,n;e.fn.select2.amd.require(["select2/selection/single","select2/selection/placeholder","select2/dropdown","select2/dropdown/search","select2/dropdown/attachBody","select2/utils","select2/selection/eventRelay"],function(t,i,r,s,l,d,o){function c(){}function u(){}a=d.Decorate(t,i),a=d.Decorate(a,o),n=d.Decorate(r,s),n=d.Decorate(n,l),c.prototype.render=function(t){var i=this,a=t.call(this),n=e('<button class="button button-secondary button-medium ur-unselect-all-countries-button" type="button">Unselect All</button>');return n.on("click",function(){i.$element.val([]),i.$element.trigger("change"),i.trigger("close")}),a.find(".select2-dropdown").prepend(n),a},n=d.Decorate(n,c),u.prototype.render=function(t){var i=this,a=t.call(this),n=e('<button class="button button-secondary button-medium ur-select-all-countries-button" type="button">Select All</button>');return n.on("click",function(){var t=[];i.$element.find("option").each(function(){t.push(e(this).val())}),i.$element.val(t),i.$element.trigger("change"),i.trigger("close")}),a.find(".select2-dropdown").prepend(n),a},n=d.Decorate(n,u)})})}(jQuery,window.user_registration_form_builder_data);
1
+ !function(e,t){e(function(){var i={init:function(){t.i18n_admin;i.init_user_profile_modal(),i.init_form_builder(),e(document).on("click",".ur-selected-item",function(){i.handle_selected_item(e(this))}),t.is_form_builder&&(e(window).on("keydown",function(e){if((e.ctrlKey||e.metaKey)&&("s"===String.fromCharCode(e.which).toLowerCase()||83===e.which))return e.preventDefault(),i.ur_save_form(),!1}),e(window).on("keydown",function(e){(e.ctrlKey||e.metaKey)&&("p"!==String.fromCharCode(e.which).toLowerCase()&&80!==e.which||(e.preventDefault(),window.open(t.ur_preview)))}),e(window).on("keydown",function(e){(e.ctrlKey||e.metaKey)&&("u"!==String.fromCharCode(e.which).toLowerCase()&&85!==e.which||(e.preventDefault(),window.open(t.ur_user_list_table)))}),e(window).on("keydown",function(e){if((e.ctrlKey||e.metaKey)&&("h"===String.fromCharCode(e.which).toLowerCase()||85===e.which))return e.preventDefault(),i.ur_show_help(),!1})),e("#ur-keyboard-shortcut-link").on("click",function(t){t.preventDefault(),e(".ur-quick-links-content").slideToggle(),i.ur_show_help()}),e(".ur_save_form_action_button").on("click",function(){i.ur_save_form()}),e(document).on("click",".ur-message .ur-message-close",function(){$message=e(this).closest(".ur-message"),i.removeMessage($message)}),i.init_choice_field_options(),e(document).ready(function(){var e=window.location.search,t=new URLSearchParams(e),a=t.get("page"),n=t.get("edit-registration");"add-new-registration"===a&&null===n&&i.ur_show_help()})},init_user_profile_modal:function(){({init:function(){e(document.body).on("click",".column-data_link a",this.add_item).on("ur_backbone_modal_loaded",this.backbone.init).on("ur_backbone_modal_response",this.backbone.response)},add_item:function(t){return t.preventDefault(),e(this).URBackboneModal({template:"test-demo"}),!1},backbone:{init:function(e,t){},response:function(e,t){}}}).init()},ur_save_form:function(){var a=i.get_validation_status();if(!1!==a.validation_status){var n=i.get_form_data(),r=i.get_form_row_ids(),s=e("#ur_form_id").val(),l=t.post_id;i.ur_parse_int(l,0)!==i.ur_parse_int(s,0)&&(s=0);var d=e("#ur-field-settings :not(.urcl-user-role-field, .uret-override-content-field, .ur_mailerlite_settings)").serializeArray(),o=i.get_form_conditional_role_data(),c=i.get_form_email_content_override_data(),u=e("#ur-multi-part-page-settings").serializeArray(),f={action:"user_registration_form_save_action",security:t.ur_form_save,data:{form_data:JSON.stringify(n),form_row_ids:JSON.stringify(r),form_name:e("#ur-form-name").val(),form_id:s,form_setting_data:d,conditional_roles_settings_data:o,email_content_override_settings_data:c,multipart_page_setting:u}};e(document).trigger("user_registration_admin_before_form_submit",[f]),e.ajax({url:t.ajax_url,data:f,type:"POST",beforeSend:function(){e(".ur_save_form_action_button").append('<span class="ur-spinner is-active"></span>'),e(".ur-notices").remove()},complete:function(a){if(e(".ur_save_form_action_button").find(".ur-spinner").remove(),!0===a.responseJSON.success){var n=t.i18n_admin.i18n_form_successfully_saved;if("1"!==t.is_edit_form){message_body="<p>Want to create a login form as well? Check this <a target='_blank' href='https://docs.wpeverest.com/docs/user-registration/registration-form-and-login-form/how-to-show-login-form/'>link</a>. To know more about other cool features check our <a target='_blank' href='https://docs.wpeverest.com/docs/user-registration/'>docs</a>.</p>",Swal.fire({icon:"success",title:"Form successfully created.",html:message_body}).then(function(e){0===parseInt(s)&&(window.location=t.admin_url+a.responseJSON.data.post_id)})}else i.show_message(n,"success"),0===parseInt(s)&&(window.location=t.admin_url+a.responseJSON.data.post_id)}else{var r=a.responseJSON.data.message;i.show_message(r)}}})}else i.show_message(a.message)},ur_show_help:function(){if(e(".jconfirm").length)jc.close();else{var i="<ul>";e.each(t.i18n_shortcut_keys,function(e,t){i+='<li class="ur-shortcut-keyword"><div class="ur-shortcut-title">'+t+'</div><div class="ur-key"><span class="ur-key-ctrl">'+e.split("+")[0]+'</span><i class="ur-key-plus"> + </i><span class="ur-key-character"><b>'+e.split("+")[1]+"</b></span></div></li>"}),i+="</ul>",jc=e.dialog({title:t.i18n_shortcut_key_title,content:i,icon:"dashicons dashicons-info",type:"blue",useBootstrap:"false",boxWidth:"550px",buttons:{confirm:{text:t.i18n_close,btnClass:"btn-confirm",keys:["enter"]}},escapeKey:!0,backgroundDismiss:function(){return!0},theme:"material"})}},get_validation_status:function(){var i=e.makeArray(t.form_one_time_draggable_fields),a=e.makeArray(t.form_required_fields),n={validation_status:!0,message:""};if(0===e(".ur-selected-item").length)return n.validation_status=!1,n.message=t.i18n_admin.i18n_at_least_one_field_need_to_select,n;if(""===e("#ur-form-name").val())return n.validation_status=!1,n.message=t.i18n_admin.i18n_empty_form_name,n;if(e(".ur_save_form_action_button").find(".ur-spinner").length>0)return n.validation_status=!1,n.message=t.i18n_admin.i18n_previous_save_action_ongoing,n;e.each(e(".ur-selected-item select.ur-settings-selected-countries"),function(){var i=e(this).val();if(!i||Array.isArray(i)&&0===i.length)return n.validation_status=!1,n.message=t.i18n_admin.i18n_select_countries,n}),e.each(e('.ur-input-grids .ur-general-setting-block input[data-field="field_name"]'),function(){var i,a=e(this),r=!1;try{var s=a.val();if(e(".ur-input-grids .ur-general-setting-block").find('input[data-field="field_name"][value="'+s+'"]').length>1)throw t.i18n_admin.i18n_duplicate_field_name;if(""===a.closest(".ur-general-setting-block").find('input[data-field="label"]').val())throw a=a.closest(".ur-general-setting-block").find('input[data-field="label"]'),t.i18n_admin.i18n_empty_field_label;var l=s.match(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/gm);if(null===l||1!==l.length||l[0]!==s)throw t.i18n_admin.i18n_invald_field_name}catch(d){n.validation_status=!1,n.message=d.message===undefined?d:d.message,a.closest(".ur-selected-item").trigger("click"),i=a.attr("data-field"),e("#ur-setting-form").find('input[data-field="'+i+'"]').css({border:"1px solid red"}),setTimeout(function(){e("#ur-setting-form").find('input[data-field="'+i+'"]').removeAttr("style")},2e3),r=!0}if(r)return!1});for(var r=0;r<i.length;r++)if(e(".ur-input-grids").find('.ur-field[data-field-key="'+i[r]+'"]').length>1){n.validation_status=!1,n.message=t.i18n_admin.i18n_multiple_field_key+i[r];break}var s=e("#user_registration_enable_paypal_standard"),l=e("#user_registration_enable_stripe");if(s.is(":checked")){a=a.concat(["payment_fields"])}else if(l.is(":checked")){a=a.concat(["payment_fields","stripe_gateway"])}for(var d=0;d<a.length;d++)if("payment_fields"===a[d]){var o=e(".ur-input-grids").find('.ur-field[data-field-key="multiple_choice"]').length,c=e(".ur-input-grids").find('.ur-field[data-field-key="single_item"]').length,u=e(".ur-input-grids").find(".ur-payment-slider-sign:visible").length;if(o<1&&c<1&&u<1){n.validation_status=!1;var f=t.i18n_admin.i18n_payment_field;n.message=f+" "+t.i18n_admin.i18n_field_is_required;break}}else if(0===e(".ur-input-grids").find('.ur-field[data-field-key="'+a[d]+'"]').length){if(n.validation_status=!1,0===d)f=t.i18n_admin.i18n_user_email;else if(1===d)f=t.i18n_admin.i18n_user_password;else f=t.i18n_admin.i18n_stripe_field;n.message=f+" "+t.i18n_admin.i18n_field_is_required;break}return e.each(e(".ur-input-grids").find('.ur-field[data-field-key="text"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-size").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size)}),e.each(e(".ur-input-grids").find('.ur-field[data-field-key="password"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-size").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size)}),e.each(e(".ur-input-grids").find('.ur-field[data-field-key="file"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-general-setting-block .ur-general-setting-maximum-number-limit-on-uploads input").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size);var r=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block input[data-id='file_advance_setting_max_upload_size']").val(),s=t.max_upload_size_ini;parseInt(r)>parseInt(s)&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_max_upload_size)}),e.each(e(".ur-input-grids").find('.ur-field[data-field-key="number"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-size").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size);var r=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-min").val(),s=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-max").val();parseFloat(r)>parseFloat(s)&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_min_max_input)}),e.each(e(".ur-input-grids").find('.ur-field[data-field-key="timepicker"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-time_interval").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size)}),e.each(e(".ur-input-grids").find('.ur-field[data-field-key="range"]'),function(){var i=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-step").val(),a=e(this).closest(".ur-selected-item").find(".ur-label label").html();i<1&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_input_size);var r=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-min").val(),s=e(this).closest(".ur-selected-item").find(".ur-advance-setting-block .ur-settings-max").val();parseFloat(r)>parseFloat(s)&&(n.validation_status=!1,n.message=a+" "+t.i18n_admin.i18n_min_max_input)}),n},show_message:function(a,n){var r=e(".ur-form-container").find(".ur-builder-message-container"),s=e("#wpadminbar"),l="";0===r.length&&(e(".ur-form-container").append('<div class="ur-builder-message-container"></div>'),(r=e(".ur-form-container").find(".ur-builder-message-container")).css({top:s.height()+"px"})),l="success"===n?'<div class="ur-message"><div class="ur-success"><p><strong>'+t.i18n_admin.i18n_success+"! </strong>"+a+'</p><span class="dashicons dashicons-no-alt ur-message-close"></span></div></div>':'<div class="ur-message"><div class="ur-error"><p><strong>'+t.i18n_admin.i18n_error+"! </strong>"+a+'</p><span class="dashicons dashicons-no-alt ur-message-close"></span></div></div>';var d=e(l).prependTo(r);setTimeout(function(){d.addClass("entered")},50),setTimeout(function(){i.removeMessage(d)},2e3)},removeMessage:function(e){e.removeClass("entered").addClass("exiting"),setTimeout(function(){e.remove()},120)},get_form_data:function(){var t=[],a=e(".ur-input-grids .ur-single-row");return e.each(a,function(){var a=e(this).find(".ur-grid-list-item"),n=[];e.each(a,function(){var t=e(this),a=i.get_grid_wise_data(t);n.push(a)}),t.push(n)}),t},get_grid_wise_data:function(t){var a=t.find(".ur-selected-item"),n=[];return e.each(a,function(){var t=e(this),a=t.find(".ur-field").attr("data-field-key"),r=e("li[data-field-id ='"+("user_registration_"+a)+"']").find(".ur-icon").attr("class"),s={field_key:a,general_setting:i.get_field_general_setting(t),advance_setting:i.get_field_advance_setting(t),icon:r};n.push(s)}),n},get_field_general_setting:function(t){var a=t.find(".ur-general-setting-block").find(".ur-general-setting-field"),n={},r=[],s=[];return e.each(a,function(){var t=e(this).closest(".ur-general-setting").hasClass("ur-setting-checkbox");if("options"===e(this).attr("data-field")){if("multiple_choice"===e(this).attr("data-field-name")){var a=[];e(this).closest("ul").find("li").each(function(t,i){var r=e(i).find("input.ur-type-checkbox-label").val(),s=e(i).find("input.ur-type-checkbox-money-input").val();a.every(function(e){return e.label!==r})&&(n.options=a.push({label:r,value:s})),n.options=a})}else var l=i.get_ur_data(e(this)).trim();r.every(function(e){return e!==l})&&(n.options=r.push(l),n.options=r)}else"default_value"===e(this).attr("data-field")?!0===t?e(this).is(":checked")&&(n.default_value=s.push(i.get_ur_data(e(this))),n.default_value=s):e(this).is(":checked")&&(n.default_value=i.get_ur_data(e(this))):"html"===e(this).attr("data-field")?n[e(this).attr("data-field")]=i.get_ur_data(e(this)).replace(/"/g,"'"):n[e(this).attr("data-field")]=i.get_ur_data(e(this))}),n},get_field_advance_setting:function(t){var a=t.find(".ur-advance-setting-block").find(".ur_advance_setting"),n={};return e.each(a,function(){n[e(this).attr("data-advance-field")]=i.get_ur_data(e(this))}),n},get_ur_data:function(e){var t="";switch(e.get(0).tagName.toLowerCase()){case"input":switch(e.attr("type")){case"checkbox":e.is(":checked")&&(t=e.val());break;default:t=e.val()}break;case"select":case"textarea":t=e.val()}return t},get_form_row_ids:function(){var t=[],i=e(".ur-input-grids .ur-single-row");return e.each(i,function(){t.push(e(this).attr("data-row-id"))}),t},ur_parse_int:function(e){return parseInt(e,0)},ur_math_ceil:function(e){return Math.ceil(e,0)},get_form_conditional_role_data:function(){var t=[],i=e(".urcl-role-logic-wrap");return e.each(i,function(){var i=e(this).find(".urcl-user-role-field"),a=[],n=[],r="";e.each(i,function(){$field_key=e(this).attr("name").split("["),"user_registration_form_conditional_user_role"===$field_key[0]&&(r=e(this).val(),i.splice(e(this),1))});var s=e(this).find(".urcl-conditional-group");e.each(s,function(){var t=[],i=e(this).find(".urcl-user-role-field");e.each(i,function(){var i={field_key:e(this).attr("name"),field_value:e(this).val()};t.push(i)}),a.push(t)});var l=e(this).find(".urcl-or-groups");e.each(l,function(){var t=e(this).find(".urcl-conditional-or-group"),i=[];e.each(t,function(){var t=[],a=e(this).find(".urcl-user-role-field");e.each(a,function(){var i={field_key:e(this).attr("name"),field_value:e(this).val()};t.push(i)}),i.push(t)}),n.push(i)});var d={assign_role:r,conditions:a,or_conditions:n};t.push(d)}),t},get_form_email_content_override_data:function(){var t={},i=e(".user-registration-email-template-content-wrap");return e.each(i,function(){var i=e(this).find(".user-registration-card__header"),a=e(this).find(".user-registration-card__body");t[e(this).prop("id")]={title:i.find(".user-registration-card__title ").text(),description:i.find(".user-registration-help-tip").data("description"),override:i.find("#uret_override_"+e(this).prop("id")).hasClass("enabled")?1:0,subject:a.find(".uret_subject_input").val(),content:a.find("#user_registration_"+e(this).prop("id")+"_content").val()}}),t},init_form_builder:function(){e.fn.ur_form_builder=function(){var a={active_grid:t.active_grid,number_of_grid_list:t.number_of_grid,min_grid_height:70};return this.each(function(){var n=e(this),r={init:function(){this.single_row(),this.manage_required_fields(),this.manage_label_hidden_fields()},single_row:function(){if("1"!==t.is_edit_form){var i=e("<div class='ur-single-row'/ data-row-id=\"0\">");i.append(e("<div class='ur-grids'/>"));var l=this.get_grid_button();i.find(".ur-grids").append(l),i.find(".ur-grids").find('span[data-id="'+a.active_grid+'"]').addClass("ur-active-grid");var d=this.get_grid_lists(a.active_grid);i.append('<div style="clear:both"></div>'),i.append(d),i.append('<div style="clear:both"></div>'),n.append(i),e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).find(".user-registration-dragged-me").remove(),e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).append(t.required_form_html)}if(0==n.find(".ur-add-new-row").length){n.append('<button type="button" class="button button-primary dashicons dashicons-plus-alt ur-add-new-row ui-sortable-handle" data-total-rows="0">'+t.add_new+"</button>");var o=n.find(".ur-add-new-row").siblings(".ur-single-row").last().prev().attr("data-row-id");n.find(".ur-add-new-row").attr("data-total-rows",o)}s.render_draggable_sortable(),r.manage_empty_grid(),r.manage_draggable_users_fields()},get_grid_button:function(){var t=e('<div class="ur-grid-containner"/>'),i='<button type="button" class="ur-edit-grid"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28,6V26H4V6H28m2-2H2V28H30V4Z"/></svg></button>';return i+='<button type="button" class="dashicons dashicons-no-alt ur-remove-row"></button>',i+='<div class="ur-toggle-grid-content" style="display:none">',i+="<small>Select the grid column.</small>",i+='<div class="ur-grid-selector" data-grid = "1">',i+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28,6V26H4V6H28m2-2H2V28H30V4Z"/></svg>',i+="</div>",i+='<div class="ur-grid-selector" data-grid = "2">',i+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M17,4H2V28H30V4ZM4,26V6H15V26Zm24,0H17V6H28Z"/></svg>',i+="</div>",i+='<div class="ur-grid-selector" data-grid = "3">',i+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M22,4H2V28H30V4ZM4,26V6h6V26Zm8,0V6h8V26Zm16,0H22V6h6Z"/></svg>',i+="</div>",i+="</div>",t.html(i),t.html()},get_grid_lists:function(t){for(var i=e('<div class="ur-grid-lists"/>'),n=1;n<=t;n++){var r=e("<div ur-grid-id='"+n+"' class='ur-grid-list-item'></div>"),s=Math.floor(100/t)-t;r.css({width:s+"%","min-height":a.min_grid_height+"px"}),i.append(r)}return i.append('<div style="clear:both"></div>'),i.find(".ur-grid-list-item").eq("0").css({}),i},manage_label_hidden_fields:function(){e('select[data-field="hide_label"]').each(function(){"yes"===e(this).val()?e(this).closest(".ur-selected-item").find(".ur-label").find("label").hide():e(this).closest(".ur-selected-item").find(".ur-label").find("label").show()})},manage_required_fields:function(){var i=t.form_required_fields,a=e(".ur-input-grids");if(Array.isArray(i))for(var n=0;n<i.length;n++){var r=a.find('.ur-field[data-field-key="'+i[n]+'"]');r.closest(".ur-selected-item").find('select[data-field="required"]').val("yes").trigger("change"),r.closest(".ur-selected-item").find('select[data-field="required"]').find('option[value="yes"]').attr("selected","selected"),r.closest(".ur-selected-item").find('select[data-field="required"]').attr("disabled","disabled")}var s=a.find('select[data-field="required"]').find('option[selected="selected"][value="yes"]').closest(".ur-selected-item").find(".ur-label").find("label");s.find("span:contains('*')").remove(),s.append('<span style="color:red">*</span>')},manage_empty_grid:function(){var t=e(".ur-input-grids"),i=e('<div class="user-registration-dragged-me"/>');t.find(".user-registration-dragged-me").remove(),e.each(t.find(".ur-grid-list-item"),function(){var t=e(this);0===e(this).find(".ur-selected-item").length&&t.append(i.clone())})},manage_draggable_users_fields:function(){var i=t.form_one_time_draggable_fields,a=e("#ur-tab-registered-fields").find("ul.ur-registered-list");e.each(a.find("li"),function(){var t=e(this),a=e(this).attr("data-field-id").replace("user_registration_","");e.inArray(a,i)>=0&&(e(".ur-input-grids").find('.ur-field[data-field-key="'+a+'"]').length>0?t.draggable("disable"):t.draggable("enable"))})},populate_dropped_node:function(a,n){var s={action:"user_registration_user_input_dropped",security:t.user_input_dropped,form_field_id:n},l='<div class="ur-selected-item ajax_added"><div class="ur-action-buttons"><span title="Clone" class="dashicons dashicons-admin-page ur-clone"></span><span title="Trash" class="dashicons dashicons-trash ur-trash"></span></div>(content)</div>';a.closest(".ur-single-row").find(".user-registration-dragged-me").fadeOut(),e.ajax({url:t.ajax_url,data:s,type:"POST",beforeSend:function(){a.removeAttr("class").removeAttr("id").removeAttr("data-field-id").addClass("ur-selected-item").css({width:"auto"}),a.html('<small class="spinner is-active"></small>'),a.addClass("ur-item-dragged")},complete:function(t){if(r.manage_empty_grid(),!0===t.responseJSON.success){var n=e(l.replace("(content)",t.responseJSON.data.template));n.removeClass("ajax_added"),n.removeClass("ur-item-dragged"),a.find(".ajax_added").find(".spinner").remove(),a.find(".ajax_added").remove(),e(n).insertBefore(a),a.remove()}r.manage_draggable_users_fields();var s=n.closest(".ur-selected-item ").find("[data-field='field_name']").val();i.manage_conditional_field_options(s),e('.ur-input-type-select2 .ur-field[data-field-key="select2"] select, .ur-input-type-multi-select2 .ur-field[data-field-key="multi_select2"] select').selectWoo(),e(document.body).trigger("ur_new_field_created")}})}},s={register:function(){this.register_add_new_row(),this.register_remove_row(),this.change_ur_grids(),this.remove_selected_item(),this.clone_selected_item()},register_add_new_row:function(){var t=this;e("body").on("click",".ur-add-new-row",function(){var i=e(this).attr("data-total-rows");e(this).attr("data-total-rows",parseInt(i)+1);var n=e(this).closest(".ur-input-grids").find(".ur-single-row").eq(0).clone();n.attr("data-row-id",parseInt(i)+1),n.find(".ur-grid-lists").html(""),n.find(".ur-grids").find("span").removeClass("ur-active-grid"),n.find(".ur-grids").find('span[data-id="'+a.active_grid+'"]').addClass("ur-active-grid");var s=r.get_grid_lists(a.active_grid);n.find(".ur-grid-lists").append(s.html()),n.insertBefore(".ur-add-new-row"),n.show(),t.render_draggable_sortable(),r.manage_empty_grid(),e(document).trigger("user_registration_row_added",[n])})},register_remove_row:function(){var a=this;e("body").on("click",".ur-remove-row",function(){if(e(".ur-input-grids").find(".ur-single-row:visible").length>1){var n=e(this);ur_confirmation(t.i18n_admin.i18n_are_you_sure_want_to_delete_row,{title:t.i18n_admin.i18n_msg_delete,confirm:function(){var t,r=n.prev();(t=r.hasClass("ur-add-new-row")?r.clone():n.clone().attr("class","dashicons-minus ur-remove-row")).hasClass("ur-add-new-row")&&n.closest(".ur-single-row").prev().find(".ur-remove-row").before(t);var s=n.closest(".ur-single-row");e(document).trigger("user_registration_row_deleted",[s]);var l=s.find(".ur-grid-lists .ur-selected-item .ur-general-setting");e(l).each(function(){e(this).closest(".ur-selected-item").find(" .ur-admin-template .ur-label label").text();var t=e(this).closest(".ur-selected-item").find(" .ur-admin-template .ur-field").data("field-key");if("section_title"!=t&&"html"!=t&&"wysiwyg"!=t&&"billing_address_title"!=t&&"shipping_address_title"!=t){var i=e(this).find("[data-field='field_name']").val();void 0!==i&&(e('[class*="urcl-settings-rules_field_"] option[value="'+i+'"]').remove(),e('[class*="urcl-field-conditional-field-select"] option[value="'+i+'"]').remove())}}),s.remove(),a.check_grid(),i.manage_draggable_users_fields(),Swal.fire({icon:"success",title:"Successfully deleted!",customClass:"user-registration-swal2-modal user-registration-swal2-modal--center",showConfirmButton:!1,timer:1e3})},reject:function(){}})}else i.ur_alert(t.i18n_admin.i18n_at_least_one_row_is_required_to_create_a_registration_form,{title:t.i18n_admin.i18n_cannot_delete_row})})},change_ur_grids:function(){var t=this;e(document).on("click",".ur-grids .ur-edit-grid",function(t){t.stopPropagation(),e(this).siblings(".ur-toggle-grid-content").stop(!0).slideToggle(200)}),e(document).on("click",function(){e(".ur-toggle-grid-content").stop(!0).slideUp(200)}),e(document).on("click",".ur-grids .ur-toggle-grid-content .ur-grid-selector",function(){var i=e(this).closest(".ur-single-row"),a=e(this).attr("data-grid"),n=i.find(".ur-grid-lists .ur-grid-list-item").length,s=r.get_grid_lists(a),l=0;i.find(".ur-grid-lists .ur-grid-list-item").length!==parseInt(a)&&(i.find("button.ur-edit-grid").html(e(this).html()),e.each(i.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){s.find(".ur-grid-list-item").eq(l).append(e(this).clone()),3===parseInt(e(this).parent().attr("ur-grid-id"))&&3===parseInt(n)&&2===parseInt(a)&&(l=Math.abs(--l))}),(parseInt(a)>n||e(this).children("*").length&&2<=parseInt(a))&&(l=parseInt(a)<=++l?0:l)}),i.find(".ur-grid-lists").eq(0).hide(),s.clone().insertAfter(i.find(".ur-grid-lists")),i.find(".ur-grid-lists").eq(0).remove(),t.render_draggable_sortable(),r.manage_empty_grid())})},render_draggable_sortable:function(){e(".ur-grid-list-item").sortable({containment:".ur-input-grids",over:function(){e(this).addClass("ur-sortable-active"),r.manage_empty_grid()},out:function(){e(this).removeClass("ur-sortable-active"),r.manage_empty_grid()},revert:!0,connectWith:".ur-grid-list-item"}).disableSelection(),e(".ur-input-grids").sortable({containment:".ur-builder-wrapper",tolerance:"pointer",revert:"invalid",placeholder:"ur-single-row",forceHelperSize:!0,over:function(){e(this).addClass("ur-sortable-active")},out:function(){e(this).removeClass("ur-sortable-active")}}),e("#ur-draggabled .draggable").draggable({connectToSortable:".ur-grid-list-item",containment:".ur-registered-from",helper:function(){return e(this).clone().insertAfter(e(this).closest(".ur-tab-contents").siblings(".ur-tab-lists"))},revert:"invalid",stop:function(i,a){if(0!==e(a.helper).closest(".ur-grid-list-item").length){var n=e(a.helper).attr("data-field-id").replace("user_registration_","").trim(),s=e(".ur-input-grids").find('.ur-field[data-field-key="'+n+'"]').length,l=e.makeArray(t.form_one_time_draggable_fields);if(s>0&&e.inArray(n,l)>=0)return show_message(t.i18n_admin.i18n_user_required_field_already_there),void e(a.helper).remove();var d=e(a.helper),o=e(d).attr("data-field-id");if(void 0!==o){var c=e(a.helper).closest(".ur-grid-list-item").find('li[data-field-id="'+e(this).attr("data-field-id")+'"]');r.populate_dropped_node(c,o)}}}}).disableSelection()},remove_selected_item:function(){var i=this;e("body").on("click",".ur-selected-item .ur-action-buttons .ur-trash",function(a){var n=e(this).closest(".ur-selected-item ").find("[data-field='field_name']").val(),s=i,l=e(this);ur_confirmation(t.i18n_admin.i18n_are_you_sure_want_to_delete_field,{title:t.i18n_admin.i18n_msg_delete,showCancelButton:!0,confirmButtonText:t.i18n_admin.i18n_choice_ok,cancelButtonText:t.i18n_admin.i18n_choice_cancel,ele:s,$ele:l,removed_item:n,confirm:function(){return l.closest(".ur-selected-item ").remove(),s.check_grid(),r.manage_empty_grid(),r.manage_draggable_users_fields(),e('[class*="urcl-settings-rules_field_"] option[value="'+n+'"]').remove(),e('[class*="urcl-field-conditional-field-select"] option[value="'+n+'"]').remove(),!1},reject:function(){return!1}})})},clone_selected_item:function(){e("body").on("click",".ur-selected-item .ur-action-buttons .ur-clone",function(){var a=e(this).closest(".ur-selected-item ").find(".ur-field").attr("data-field-key");if(e(".ur-input-grids").find('.ur-field[data-field-key="'+a+'"]').length>0&&e.inArray(a,t.form_one_time_draggable_fields)>-1)i.show_message(t.i18n_admin.i18n_user_required_field_already_there_could_not_clone);else{var n=e(this).closest(".ur-selected-item ").clone(),r=n.find('input[data-field="field_name"]'),s=r.val().match(/\d+/g),l=s.length>0?s[s.length-1]:"",d=r.val().replace(l,"");n.find('input[data-field="field_name"]').attr("value",d+(new Date).getTime()),e(this).closest(".ur-grid-list-item").append(n);var o=n.find("[data-field='field_name']").val();i.manage_conditional_field_options(o)}})},check_grid:function(){e(".ur-tabs").tabs({disabled:[1]}),e(".ur-tabs").find("a").eq(0).trigger("click",["triggered_click"]),e(".ur-tabs").find('[aria-controls="ur-tab-field-options"]').addClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active")}};r.init(),s.register()})},e(".ur-input-grids").ur_form_builder(),e(".ur-tabs .ur-tab-lists").on("click","a.nav-tab",function(){e(".ur-tabs .ur-tab-lists").find("a.nav-tab").removeClass("active"),e(this).addClass("active")}),e(".ur-tabs").tabs(),e(".ur-tabs").find("a").eq(0).trigger("click",["triggered_click"]),e(".ur-tabs").tabs({disabled:[1]})},manage_conditional_field_options:function(t){e(".ur-grid-lists .ur-selected-item .ur-general-setting").each(function(){var i=e(this).closest(".ur-selected-item").find(" .ur-admin-template .ur-label label").text(),a=e(this).closest(".ur-selected-item").find(" .ur-admin-template .ur-field").data("field-key");if("section_title"!=a&&"html"!=a&&"wysiwyg"!=a&&"billing_address_title"!=a&&"shipping_address_title"!=a){var n=e(this).find("[data-field='field_name']").val();if(void 0!==n){!1===e(".urcl-field-conditional-field-select option[value='"+n+"']").length>0&&e('[class*="urcl-field-conditional-field-select"]').append('<option value ="'+n+'" data-type="'+a+'">'+i+" </option>");!1===e(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1 option[value='"+n+"']").length>0?(e('[class*="urcl-settings-rules_field_"]').append('<option value ="'+n+'" data-type="'+a+'">'+i+" </option>"),n==t&&e('.urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields option[value="'+t+'"]').remove()):e(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").append('<option value ="'+n+'" data-type="'+a+'">'+i+" </option>")}}}),e(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").removeClass("empty-fields")},handle_selected_item:function(t){e(".ur-registered-inputs").find("ul li.ur-no-pointer").removeClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active"),e(t).addClass("ur-item-active"),i.render_advance_setting(e(t)),i.init_events(),e(document).trigger("update_perfect_scrollbar");var r=e(t).find(".ur-field").data("field-key");if("country"===r||"billing_country"===r||"shipping_country"===r){var s=e("#ur-setting-form select.ur-settings-selected-countries");s.on("change",function(t){var i=e(this).val(),a="",n=this;Array.isArray(i)&&i.forEach(function(t){var i=e(n).find('option[value="'+t+'"]').html();a+='<option value="'+t+'">'+i+"</option>"}),e("#ur-setting-form select.ur-settings-default-value").html(a),e(".ur-selected-item.ur-item-active select.ur-settings-default-value").html(a)}).select2({placeholder:"Select countries...",selectionAdapter:a,dropdownAdapter:n,templateResult:function(t){return t.id?e("<div></div>").text(t.text).addClass("wrap"):t.text},templateSelection:function(e){if(!e.id)return e.text;var t=0;return s.val()&&(t=s.val().length),"Selected "+t+" country(s)"}}).on("change",function(t){e(".urcl-rules, .urcl-conditional-group").each(function(){var t=e(this).find(".urcl-field").length?e(this).find(".urcl-field"):e(this).find(".urcl-form-group"),i=t.find("select option:selected").data("type");if("country"===i||"billing_country"===i||"shipping_country"===i){var a=t.find("select option:selected").val(),n=e(this).find(".urcl-value select").val(),r=e('.ur-general-setting-field-name input[value="'+a+'"').closest(".ur-selected-item").find(".ur-advance-selected_countries select option:selected"),s=[];e(this).find(".urcl-value select").html('<option value="">--select--</option>'),r.each(function(){var t=e(this).val(),i=e(this).text();s.push('<option value="'+t+'">'+i+"</option>")}),e(this).find(".urcl-value select").append(s.join("")),e(this).find(".urcl-value select").val(n),e(this).find('.urcl-value select option[value="'+n+'"]').attr("selected","selected")}})}).on("select2:close",function(t){setTimeout(function(){e(":focus").trigger("blur")},1)})}e(document.body).trigger("ur_rendered_field_options"),e(document.body).trigger("init_tooltips")},render_advance_setting:function(t){var i=t.find(".ur-advance-setting-block").clone(),a=t.find(".ur-general-setting-block").clone(),n=e("<form id='ur-setting-form'/>");e("#ur-tab-field-options").html(""),n.append(a),n.append(i),e("#ur-tab-field-options").append(n),e("#ur-tab-field-options").find(".ur-advance-setting-block").show(),e("#ur-tab-field-options").find(".ur-general-setting-block").show(),1===e(".ur-item-active").length&&(e(".ur-tabs").tabs().tabs("enable",1),e(".ur-tabs").find("a").eq(1).trigger("click",["triggered_click"])),e(".ur-options-list").sortable({containment:".ur-general-setting-options"})},init_events:function(){var t=e(".ur-general-setting-field");e.each(t,function(){var t=e(this);switch(t.attr("data-field")){case"label":t.on("keyup",function(){i.trigger_general_setting_label(e(this))});break;case"field_name":case"max_files":case"input_mask":t.on("change",function(){i.trigger_general_setting_field_name(e(this))});case"default_value":t.on("change",function(){"default_value"===t.attr("data-field")&&(t.closest(".ur-general-setting-block").hasClass("ur-general-setting-select")?i.render_select_box(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?i.render_radio(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")?i.render_check_box(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-multiple_choice")&&i.render_multiple_choice(e(this)))});break;case"options":t.on("keyup",function(){t.closest(".ur-general-setting-block").hasClass("ur-general-setting-select")&&t.siblings('input[data-field="default_value"]').is(":checked")?i.render_select_box(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?i.render_radio(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")?i.render_check_box(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-multiple_choice")&&i.render_multiple_choice(e(this)),i.trigger_general_setting_options(e(this))});break;case"placeholder":t.on("keyup",function(){i.trigger_general_setting_placeholder(e(this))});break;case"required":t.on("change",function(){i.trigger_general_setting_required(e(this))});break;case"hide_label":t.on("change",function(){i.trigger_general_setting_hide_label(e(this))});break;case"description":case"html":t.on("keyup",function(){i.trigger_general_setting_description(e(this))})}});var a=e("#ur-setting-form .ur_advance_setting");e(".ur-settings-enable-min-max").on("change",function(){"true"===e(this).val()?(e(".ur-item-active .ur-advance-min_date, #ur-setting-form .ur-advance-min_date").show(),e(".ur-item-active .ur-advance-max_date, #ur-setting-form .ur-advance-max_date").show(),e("#ur-setting-form .ur-settings-min-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,"static":!0,onChange:function(t,i,a){e(".ur-item-active .ur-settings-min-date").val(i)},onOpen:function(t,i,a){a.set("maxDate",e(".ur-item-active .ur-settings-max-date").val())}}),e("#ur-setting-form .ur-settings-max-date").addClass("flatpickr-field").flatpickr({disableMobile:!0,"static":!0,onChange:function(t,i,a){e(".ur-item-active .ur-settings-max-date").val(i)},onOpen:function(t,i,a){a.set("minDate",e(".ur-item-active .ur-settings-min-date").val())}})):(e(".ur-item-active .ur-advance-min_date, #ur-setting-form .ur-advance-min_date").hide(),e(".ur-item-active .ur-advance-max_date, #ur-setting-form .ur-advance-max_date").hide())}),e.each(a,function(){var t=e(this);switch(t.attr("data-advance-field")){case"date_format":t.on("change",function(){i.trigger_general_setting_date_format(e(this))});break;case"min_date":"true"===e(".ur-item-active").find(".ur-settings-enable-min-max").val()?e(this).addClass("flatpickr-field").flatpickr({disableMobile:!0,"static":!0,defaultDate:new Date(e(".ur-item-active").find(".ur-settings-min-date").val()),onChange:function(t,i,a){e(".ur-item-active").find(".ur-settings-min-date").val(i)},onOpen:function(t,i,a){a.set("maxDate",new Date(e(".ur-item-active").find(".ur-settings-max-date").val()))}}):e(".ur-item-active .ur-advance-min_date, #ur-setting-form .ur-advance-min_date").hide();break;case"max_date":"true"===e(".ur-item-active").find(".ur-settings-enable-min-max").val()?e(this).addClass("flatpickr-field").flatpickr({disableMobile:!0,"static":!0,defaultDate:new Date(e(".ur-item-active").find(".ur-settings-max-date").val()),onChange:function(t,i,a){e(".ur-item-active").find(".ur-settings-max-date").val(i)},onOpen:function(t,i,a){a.set("minDate",new Date(e(".ur-item-active .ur-settings-min-date").val()))}}):e(".ur-item-active .ur-advance-max_date, #ur-setting-form .ur-advance-max_date").hide();break;case"enable_prepopulate":"false"===t.val()&&e(this).closest(".ur-advance-setting-block").find(".ur-advance-parameter_name").hide(),t.on("change",function(){e(this).closest(".ur-advance-setting-block").find(".ur-advance-parameter_name").toggle(),e(".ur-selected-item.ur-item-active").find(".ur-advance-parameter_name").toggle()});break;case"autocomplete_address":"no"===t.val()&&e(this).closest(".ur-advance-setting-block").find(".ur-advance-address_style").hide(),t.on("change",function(){e(this).closest(".ur-advance-setting-block").find(".ur-advance-address_style").toggle(),e(".ur-selected-item.ur-item-active").find(".ur-advance-address_style").toggle()});break;case"validate_unique":"false"===t.val()&&e(this).closest(".ur-advance-setting-block").find(".ur-advance-validation_message").hide(),t.on("change",function(){e(this).closest(".ur-advance-setting-block").find(".ur-advance-validation_message").toggle(),e(".ur-selected-item.ur-item-active").find(".ur-advance-validation_message").toggle()})}var a=t.get(0).tagName.toLowerCase();"country_advance_setting_default_value"===t.attr("data-id")&&e(".ur-builder-wrapper #ur-input-type-country").find('option[value="'+t.val()+'"]').attr("selected","selected");var n="change";switch(a){case"input":n="keyup click";break;case"select":n="change";break;case"textarea":n="keyup";break;default:n="change"}"valid_file_type"!==t.attr("data-advance-field")&&"payment_methods"!==t.attr("data-advance-field")||t.select2(),e(this).on(n,function(){i.trigger_advance_setting(t,a)}),e(this).on("paste",function(){i.trigger_advance_setting(t,a)})})},trigger_general_setting_label:function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-label").find("label").text(t.val()),"yes"===e(".ur-selected-item.ur-item-active .ur-general-setting").find("[data-field='required']").val()&&i.find(".ur-label").find("label").append('<span style="color:red">*</span>'),i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val());var a=e(".ur-selected-item.ur-item-active .ur-general-setting").find("[data-field='field_name']").val();e('[class*="urcl-settings-rules_field_"] option[value="'+a+'"]').text(t.val()),e('[class*="urcl-field-conditional-field-select"] option[value="'+a+'"]').text(t.val())},trigger_general_setting_field_name:function(t){var i=e(".ur-selected-item.ur-item-active"),a=i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value");i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val()),e('[class*="urcl-settings-rules_field_"] option[value="'+a+'"]').attr("value",t.val()),e('[class*="urcl-field-conditional-field-select"] option[value="'+a+'"]').attr("value",t.val())},render_text_area:function(t){switch(e(".ur-selected-item.ur-item-active").find(".ur-field").attr("data-field-key")){case"select":i.render_select_box(t);break;case"checkbox":i.render_check_box(t);break;case"radio":i.render_radio(t);break;case"multiple_choice":i.render_multiple_choice(t)}},render_select_box:function(t){var i=t.val().trim(),a=e(".ur-selected-item.ur-item-active"),n=t.closest("li").index(),r=a.find(".ur-field").find("select");r.html(""),r.append("<option value='"+i+"'>"+i+"</option>"),a.find(".ur-general-setting-options > ul.ur-options-list > li").each(function(t,i){var a=e(i).find('[data-field="default_value"]');t===n?a.prop("checked",!0):a.prop("checked",!1)})},render_radio:function(t){var i=t.closest("ul").find("li"),a=undefined,n=[];i.each(function(t,i){var r=e(i).find("input.ur-type-radio-label").val();r=r.trim(),!0===(s=e(i).find("input.ur-type-radio-value").is(":checked"))&&(a=t),n.every(function(e){return e.value!==r})&&n.push({value:r,radio:s})});var r=e(".ur-selected-item.ur-item-active"),s=r.find(".ur-field");s.html("");for(var l=0;l<n.length;l++)""!==n[l]&&s.append('<label><input value="'+n[l].value.trim()+'" type="radio" '+(n[l].radio?"checked":"")+" disabled>"+n[l].value.trim()+"</label>");r.find(".ur-general-setting-options > ul.ur-options-list > li").each(function(t,i){var n=e(i).find('[data-field="default_value"]');t===a?n.prop("checked",!0):n.prop("checked",!1)})},render_check_box:function(t){var i=[],a=t.closest("ul").find("li"),n=t.closest("li").index();a.each(function(t,a){var n=e(a).find("input.ur-type-checkbox-label").val();n=n.trim(),s=e(a).find("input.ur-type-checkbox-value").is(":checked"),i.every(function(e){return e.value!==n})&&i.push({value:n,checkbox:s})});var r=e(".ur-selected-item.ur-item-active"),s=r.find(".ur-field");s.html("");for(var l=0;l<i.length;l++)""!==i[l]&&s.append('<label><input value="'+i[l].value.trim()+'" type="checkbox" '+(i[l].checkbox?"checked":"")+" disabled>"+i[l].value.trim()+"</label>");"checkbox"===t.attr("type")&&(t.is(":checked")?r.find(".ur-general-setting-options li:nth("+n+') input[data-field="default_value"]').prop("checked",!0):r.find(".ur-general-setting-options li:nth("+n+') input[data-field="default_value"]').prop("checked",!1))},render_multiple_choice:function(t){var i=[],a=t.closest("ul").find("li"),n=t.closest("li").index();a.each(function(t,a){var n=e(a).find("input.ur-type-checkbox-label").val(),r=e(a).find("input.ur-type-checkbox-money-input").val(),l=e(a).find("input.ur-type-checkbox-money-input").attr("data-currency");n=n.trim(),r=r.trim(),l=l.trim(),s=e(a).find("input.ur-type-checkbox-value").is(":checked"),i.every(function(e){return e.label!==n})&&i.push({label:n,value:r,currency:l,checkbox:s})});var r=e(".ur-selected-item.ur-item-active"),s=r.find(".ur-field");s.html("");for(var l=0;l<i.length;l++)""!==i[l]&&s.append('<label><input value="'+i[l].label.trim()+'" type="checkbox" '+(i[l].checkbox?"checked":"")+" disabled>"+i[l].label.trim()+" - "+i[l].currency.trim()+" "+i[l].value.trim()+"</label>");"checkbox"===t.attr("type")&&(t.is(":checked")?r.find(".ur-general-setting-options li:nth("+n+') input[data-field="default_value"]').prop("checked",!0):r.find(".ur-general-setting-options li:nth("+n+') input[data-field="default_value"]').prop("checked",!1))},trigger_general_setting_options:function(t){var i=e(".ur-selected-item.ur-item-active"),a=t.closest("li").index();"multiple_choice"===t.attr("data-field-name")?i.find(".ur-general-setting-block li:nth("+a+') input[name="'+t.attr("name")+'"]').val(t.val()):i.find(".ur-general-setting-block li:nth("+a+') input[data-field="'+t.attr("data-field")+'"]').val(t.val()),i.find(".ur-general-setting-block li:nth("+a+') input[data-field="default_value"]').val(t.val()),t.closest("li").find('[data-field="default_value"]').val(t.val())},trigger_general_setting_description:function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-field").find("textarea").attr("description",t.val()),i.find(".ur-general-setting-block").find('textarea[data-field="'+t.attr("data-field")+'"]').val(t.val())},trigger_general_setting_placeholder:function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-field").find("input").attr("placeholder",t.val()),i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').val(t.val())},trigger_general_setting_required:function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"] option:selected').removeAttr("selected"),i.find(".ur-label").find("label").find("span:contains(*)").remove(),"yes"===t.val()&&i.find(".ur-label").find("label").append('<span style="color:red">*</span>'),i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"]').find('option[value="'+t.val()+'"]').attr("selected",!0)},trigger_general_setting_date_format:function(t){e(".ur-selected-item.ur-item-active").find(".ur-field").find("input").attr("placeholder",t.val())},trigger_general_setting_hide_label:function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"] option:selected').removeAttr("selected"),"yes"===t.val()?i.find(".ur-label").find("label").hide():i.find(".ur-label").find("label").show(),i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"]').find('option[value="'+t.val()+'"]').attr("selected",!0)},trigger_advance_setting:function(t,a){var n=e(".ur-selected-item.ur-item-active"),r=t.attr("data-id"),s=n.find(".ur-advance-setting-block").find('[data-id="'+r+'"]');switch(a){case"input":s.val(t.val());break;case"select":if(s.find("option").prop("selected",!1),t.prop("multiple")){var l=t.val();s.val(l)}else s.find('option[value="'+t.val()+'"]').attr("selected","selected");break;case"textarea":s.val(t.val()),i.render_text_area(t.val())}},ur_alert:function(e,t){void 0===t&&(t={}),Swal.fire({icon:"error",title:t.title,text:e,customClass:"user-registration-swal2-modal user-registration-swal2-modal--center"})},init_choice_field_options:function(){e(document).on("sortstop",".ur-options-list",function(t,a){var n=e(this);i.handle_options_sort(n)}),e(document).on("click",".ur-options-list .add",function(t){t.preventDefault();var a=e(this);i.add_choice_field_option(a)}),e(document).on("click",".ur-options-list .remove",function(t){t.preventDefault();var a=e(this);i.remove_choice_field_option(a)})},handle_options_sort:function(e){i.ur_clone_options(e),$this.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?i.render_radio(e):$this.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")?i.render_check_box(e):$this.closest(".ur-general-setting-block").hasClass("ur-general-setting-multiple_choice")&&i.render_multiple_choice(e)},ur_clone_options:function(t){var i=t.clone(!0,!0),a=e(".ur-selected-item.ur-item-active").find(".ur-general-setting-options .ur-options-list");a.html(""),a.replaceWith(i)},add_choice_field_option:function(t){var a=e(".ur-selected-item.ur-item-active"),n=t.parent("li").index(),r=t.parent("li").clone(!0,!0);r.find('input[data-field="options"]').val(""),r.find('input[data-field="default_value"]').prop("checked",!1),t.parent("li").after(r),a.find(".ur-general-setting-options .ur-options-list > li:nth( "+n+" )").after(r.clone(!0,!0)),t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?i.render_radio(t):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")?i.render_check_box(t):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-multiple_choice")&&i.render_multiple_choice(t)},remove_choice_field_option:function(t){var a=t.closest("ul"),n=a.find("li"),r=e(".ur-selected-item.ur-item-active"),s=t.parent("li").index();a.find("li").length>1&&(t.parent("li").remove(),r.find(".ur-general-setting-options .ur-options-list > li:nth( "+s+" )").remove(),n.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?i.render_radio(n):n.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")?i.render_check_box(n):n.closest(".ur-general-setting-block").hasClass("ur-general-setting-multiple_choice")&&i.render_multiple_choice(n))}};i.init(),e(document).ready(function(){var t={};e(document.body).on("click","#load_flatpickr",function(){var i=e(this).data("id"),a=t[i];if(!a){var n=e(this).closest(".ur-field-item").find("#formated_date").val();if(0<e(".ur-frontend-form").length)var r=e(".ur-frontend-form #"+i).attr("type","text").val(n);else r=e(".woocommerce-MyAccount-content #"+i).attr("type","text").val(n);e(this).attr("data-date-format",r.data("date-format")),e(this).attr("data-mode",r.data("mode")),e(this).attr("data-locale",r.data("locale")),e(this).attr("data-min-date",r.data("min-date")),e(this).attr("data-max-date",r.data("max-date")),e(this).attr("data-default-date",n),a=e(this).flatpickr({disableMobile:!0,onChange:function(t,a,n){e("#"+i).val(a)},onOpen:function(e,t,i){i.set("minDate",r.data("min-date")),i.set("maxDate",r.data("max-date"))}}),t[i]=a}a&&a.open()})}),e(document).on("click",".ur-toggle-heading",function(){e(this).hasClass("closed")?e(this).removeClass("closed"):e(this).addClass("closed");var t=e(this).find(" ~ .ur-registered-list")[0];e(t).slideToggle(),e(this).siblings(".ur-toggle-content").slideToggle()}),e(document.body).on("click",".ur-quick-links-content",function(e){e.stopPropagation()}),e(document.body).on("click",".ur-button-quick-links",function(t){t.stopPropagation(),e(".ur-quick-links-content").slideToggle()}),e(document.body).on("click",function(t){e(".ur-quick-links-content").is(":hidden")||e(".ur-quick-links-content").slideToggle()});var a,n;e.fn.select2.amd.require(["select2/selection/single","select2/selection/placeholder","select2/dropdown","select2/dropdown/search","select2/dropdown/attachBody","select2/utils","select2/selection/eventRelay"],function(t,i,r,s,l,d,o){function c(){}function u(){}a=d.Decorate(t,i),a=d.Decorate(a,o),n=d.Decorate(r,s),n=d.Decorate(n,l),c.prototype.render=function(t){var i=this,a=t.call(this),n=e('<button class="button button-secondary button-medium ur-unselect-all-countries-button" type="button">Unselect All</button>');return n.on("click",function(){i.$element.val([]),i.$element.trigger("change"),i.trigger("close")}),a.find(".select2-dropdown").prepend(n),a},n=d.Decorate(n,c),u.prototype.render=function(t){var i=this,a=t.call(this),n=e('<button class="button button-secondary button-medium ur-select-all-countries-button" type="button">Select All</button>');return n.on("click",function(){var t=[];i.$element.find("option").each(function(){t.push(e(this).val())}),i.$element.val(t),i.$element.trigger("change"),i.trigger("close")}),a.find(".select2-dropdown").prepend(n),a},n=d.Decorate(n,u)})})}(jQuery,window.user_registration_form_builder_data);
assets/js/admin/ur-copy.js CHANGED
@@ -16,7 +16,8 @@ jQuery(function ($) {
16
  URCopyShortcode.urSetClipboard(res, $this);
17
 
18
  $this
19
- .tipTip({
 
20
  attribute: "data-copied",
21
  activation: "focus",
22
  fadeIn: 50,
16
  URCopyShortcode.urSetClipboard(res, $this);
17
 
18
  $this
19
+ .tooltipster({
20
+ theme: 'tooltipster-borderless',
21
  attribute: "data-copied",
22
  activation: "focus",
23
  fadeIn: 50,
assets/js/admin/ur-copy.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(e){var t={init:function(){e(".ur-copy-shortcode").each(function(){var r=e(this);r.on("click",function(e){var a=r.parent().find(".code").val();t.urSetClipboard(a,r),r.tipTip({attribute:"data-copied",activation:"focus",fadeIn:50,fadeOut:50,delay:200}).trigger("focus"),e.preventDefault()})})},urSetClipboard:function(e,t){void 0===t&&(t=jQuery(document));var r=jQuery('<textarea style="opacity:0">');jQuery("body").append(r),r.val(e).select(),t.trigger("beforecopy");try{document.execCommand("copy"),t.trigger("aftercopy")}catch(a){t.trigger("aftercopyfailure")}r.remove()},urClearClipboard:function(){t.urSetClipboard("")}};t.init()});
1
+ jQuery(function(e){var t={init:function(){e(".ur-copy-shortcode").each(function(){var r=e(this);r.on("click",function(e){var o=r.parent().find(".code").val();t.urSetClipboard(o,r),r.tooltipster({theme:"tooltipster-borderless",attribute:"data-copied",activation:"focus",fadeIn:50,fadeOut:50,delay:200}).trigger("focus"),e.preventDefault()})})},urSetClipboard:function(e,t){void 0===t&&(t=jQuery(document));var r=jQuery('<textarea style="opacity:0">');jQuery("body").append(r),r.val(e).select(),t.trigger("beforecopy");try{document.execCommand("copy"),t.trigger("aftercopy")}catch(o){t.trigger("aftercopyfailure")}r.remove()},urClearClipboard:function(){t.urSetClipboard("")}};t.init()});
assets/js/flatpickr/dist/I10n/ar-dz.js ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ar-dz'] = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var AlgerianArabic = {
13
+ weekdays: {
14
+ shorthand: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"],
15
+ longhand: [
16
+ "الأحد",
17
+ "الاثنين",
18
+ "الثلاثاء",
19
+ "الأربعاء",
20
+ "الخميس",
21
+ "الجمعة",
22
+ "السبت",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
27
+ longhand: [
28
+ "جانفي",
29
+ "فيفري",
30
+ "مارس",
31
+ "أفريل",
32
+ "ماي",
33
+ "جوان",
34
+ "جويليه",
35
+ "أوت",
36
+ "سبتمبر",
37
+ "أكتوبر",
38
+ "نوفمبر",
39
+ "ديسمبر",
40
+ ],
41
+ },
42
+ firstDayOfWeek: 0,
43
+ rangeSeparator: " إلى ",
44
+ weekAbbreviation: "Wk",
45
+ scrollTitle: "قم بالتمرير للزيادة",
46
+ toggleTitle: "اضغط للتبديل",
47
+ yearAriaLabel: "سنة",
48
+ monthAriaLabel: "شهر",
49
+ hourAriaLabel: "ساعة",
50
+ minuteAriaLabel: "دقيقة",
51
+ time_24hr: true,
52
+ };
53
+ fp.l10ns.ar = AlgerianArabic;
54
+ var arDz = fp.l10ns;
55
+
56
+ exports.AlgerianArabic = AlgerianArabic;
57
+ exports.default = arDz;
58
+
59
+ Object.defineProperty(exports, '__esModule', { value: true });
60
+
61
+ })));
assets/js/flatpickr/dist/I10n/ar.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ar = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Arabic = {
13
+ weekdays: {
14
+ shorthand: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"],
15
+ longhand: [
16
+ "الأحد",
17
+ "الاثنين",
18
+ "الثلاثاء",
19
+ "الأربعاء",
20
+ "الخميس",
21
+ "الجمعة",
22
+ "السبت",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
27
+ longhand: [
28
+ "يناير",
29
+ "فبراير",
30
+ "مارس",
31
+ "أبريل",
32
+ "مايو",
33
+ "يونيو",
34
+ "يوليو",
35
+ "أغسطس",
36
+ "سبتمبر",
37
+ "أكتوبر",
38
+ "نوفمبر",
39
+ "ديسمبر",
40
+ ],
41
+ },
42
+ firstDayOfWeek: 6,
43
+ rangeSeparator: " إلى ",
44
+ weekAbbreviation: "Wk",
45
+ scrollTitle: "قم بالتمرير للزيادة",
46
+ toggleTitle: "اضغط للتبديل",
47
+ amPM: ["ص", "م"],
48
+ yearAriaLabel: "سنة",
49
+ monthAriaLabel: "شهر",
50
+ hourAriaLabel: "ساعة",
51
+ minuteAriaLabel: "دقيقة",
52
+ time_24hr: false,
53
+ };
54
+ fp.l10ns.ar = Arabic;
55
+ var ar = fp.l10ns;
56
+
57
+ exports.Arabic = Arabic;
58
+ exports.default = ar;
59
+
60
+ Object.defineProperty(exports, '__esModule', { value: true });
61
+
62
+ })));
assets/js/flatpickr/dist/I10n/at.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.at = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Austria = {
13
+ weekdays: {
14
+ shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
15
+ longhand: [
16
+ "Sonntag",
17
+ "Montag",
18
+ "Dienstag",
19
+ "Mittwoch",
20
+ "Donnerstag",
21
+ "Freitag",
22
+ "Samstag",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jän",
28
+ "Feb",
29
+ "Mär",
30
+ "Apr",
31
+ "Mai",
32
+ "Jun",
33
+ "Jul",
34
+ "Aug",
35
+ "Sep",
36
+ "Okt",
37
+ "Nov",
38
+ "Dez",
39
+ ],
40
+ longhand: [
41
+ "Jänner",
42
+ "Februar",
43
+ "März",
44
+ "April",
45
+ "Mai",
46
+ "Juni",
47
+ "Juli",
48
+ "August",
49
+ "September",
50
+ "Oktober",
51
+ "November",
52
+ "Dezember",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ weekAbbreviation: "KW",
57
+ rangeSeparator: " bis ",
58
+ scrollTitle: "Zum Ändern scrollen",
59
+ toggleTitle: "Zum Umschalten klicken",
60
+ time_24hr: true,
61
+ };
62
+ fp.l10ns.at = Austria;
63
+ var at = fp.l10ns;
64
+
65
+ exports.Austria = Austria;
66
+ exports.default = at;
67
+
68
+ Object.defineProperty(exports, '__esModule', { value: true });
69
+
70
+ })));
assets/js/flatpickr/dist/I10n/az.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.az = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Azerbaijan = {
13
+ weekdays: {
14
+ shorthand: ["B.", "B.e.", "Ç.a.", "Ç.", "C.a.", "C.", "Ş."],
15
+ longhand: [
16
+ "Bazar",
17
+ "Bazar ertəsi",
18
+ "Çərşənbə axşamı",
19
+ "Çərşənbə",
20
+ "Cümə axşamı",
21
+ "Cümə",
22
+ "Şənbə",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Yan",
28
+ "Fev",
29
+ "Mar",
30
+ "Apr",
31
+ "May",
32
+ "İyn",
33
+ "İyl",
34
+ "Avq",
35
+ "Sen",
36
+ "Okt",
37
+ "Noy",
38
+ "Dek",
39
+ ],
40
+ longhand: [
41
+ "Yanvar",
42
+ "Fevral",
43
+ "Mart",
44
+ "Aprel",
45
+ "May",
46
+ "İyun",
47
+ "İyul",
48
+ "Avqust",
49
+ "Sentyabr",
50
+ "Oktyabr",
51
+ "Noyabr",
52
+ "Dekabr",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return ".";
58
+ },
59
+ rangeSeparator: " - ",
60
+ weekAbbreviation: "Hf",
61
+ scrollTitle: "Artırmaq üçün sürüşdürün",
62
+ toggleTitle: "Aç / Bağla",
63
+ amPM: ["GƏ", "GS"],
64
+ time_24hr: true,
65
+ };
66
+ fp.l10ns.az = Azerbaijan;
67
+ var az = fp.l10ns;
68
+
69
+ exports.Azerbaijan = Azerbaijan;
70
+ exports.default = az;
71
+
72
+ Object.defineProperty(exports, '__esModule', { value: true });
73
+
74
+ })));
assets/js/flatpickr/dist/I10n/be.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.be = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Belarusian = {
13
+ weekdays: {
14
+ shorthand: ["Нд", "Пн", "Аў", "Ср", "Чц", "Пт", "Сб"],
15
+ longhand: [
16
+ "Нядзеля",
17
+ "Панядзелак",
18
+ "Аўторак",
19
+ "Серада",
20
+ "Чацвер",
21
+ "Пятніца",
22
+ "Субота",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Сту",
28
+ "Лют",
29
+ "Сак",
30
+ "Кра",
31
+ "Тра",
32
+ "Чэр",
33
+ "Ліп",
34
+ "Жні",
35
+ "Вер",
36
+ "Кас",
37
+ "Ліс",
38
+ "Сне",
39
+ ],
40
+ longhand: [
41
+ "Студзень",
42
+ "Люты",
43
+ "Сакавік",
44
+ "Красавік",
45
+ "Травень",
46
+ "Чэрвень",
47
+ "Ліпень",
48
+ "Жнівень",
49
+ "Верасень",
50
+ "Кастрычнік",
51
+ "Лістапад",
52
+ "Снежань",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return "";
58
+ },
59
+ rangeSeparator: " — ",
60
+ weekAbbreviation: "Тыд.",
61
+ scrollTitle: "Пракруціце для павелічэння",
62
+ toggleTitle: "Націсніце для пераключэння",
63
+ amPM: ["ДП", "ПП"],
64
+ yearAriaLabel: "Год",
65
+ time_24hr: true,
66
+ };
67
+ fp.l10ns.be = Belarusian;
68
+ var be = fp.l10ns;
69
+
70
+ exports.Belarusian = Belarusian;
71
+ exports.default = be;
72
+
73
+ Object.defineProperty(exports, '__esModule', { value: true });
74
+
75
+ })));
assets/js/flatpickr/dist/I10n/bg.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bg = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Bulgarian = {
13
+ weekdays: {
14
+ shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
15
+ longhand: [
16
+ "Неделя",
17
+ "Понеделник",
18
+ "Вторник",
19
+ "Сряда",
20
+ "Четвъртък",
21
+ "Петък",
22
+ "Събота",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Яну",
28
+ "Фев",
29
+ "Март",
30
+ "Апр",
31
+ "Май",
32
+ "Юни",
33
+ "Юли",
34
+ "Авг",
35
+ "Сеп",
36
+ "Окт",
37
+ "Ное",
38
+ "Дек",
39
+ ],
40
+ longhand: [
41
+ "Януари",
42
+ "Февруари",
43
+ "Март",
44
+ "Април",
45
+ "Май",
46
+ "Юни",
47
+ "Юли",
48
+ "Август",
49
+ "Септември",
50
+ "Октомври",
51
+ "Ноември",
52
+ "Декември",
53
+ ],
54
+ },
55
+ time_24hr: true,
56
+ firstDayOfWeek: 1,
57
+ };
58
+ fp.l10ns.bg = Bulgarian;
59
+ var bg = fp.l10ns;
60
+
61
+ exports.Bulgarian = Bulgarian;
62
+ exports.default = bg;
63
+
64
+ Object.defineProperty(exports, '__esModule', { value: true });
65
+
66
+ })));
assets/js/flatpickr/dist/I10n/bn.js ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bn = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Bangla = {
13
+ weekdays: {
14
+ shorthand: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহস্পতি", "শুক্র", "শনি"],
15
+ longhand: [
16
+ "রবিবার",
17
+ "সোমবার",
18
+ "মঙ্গলবার",
19
+ "বুধবার",
20
+ "বৃহস্পতিবার",
21
+ "শুক্রবার",
22
+ "শনিবার",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "জানু",
28
+ "ফেব্রু",
29
+ "মার্চ",
30
+ "এপ্রিল",
31
+ "মে",
32
+ "জুন",
33
+ "জুলাই",
34
+ "আগ",
35
+ "সেপ্টে",
36
+ "অক্টো",
37
+ "নভে",
38
+ "ডিসে",
39
+ ],
40
+ longhand: [
41
+ "জানুয়ারী",
42
+ "ফেব্রুয়ারী",
43
+ "মার্চ",
44
+ "এপ্রিল",
45
+ "মে",
46
+ "জুন",
47
+ "জুলাই",
48
+ "আগস্ট",
49
+ "সেপ্টেম্বর",
50
+ "অক্টোবর",
51
+ "নভেম্বর",
52
+ "ডিসেম্বর",
53
+ ],
54
+ },
55
+ };
56
+ fp.l10ns.bn = Bangla;
57
+ var bn = fp.l10ns;
58
+
59
+ exports.Bangla = Bangla;
60
+ exports.default = bn;
61
+
62
+ Object.defineProperty(exports, '__esModule', { value: true });
63
+
64
+ })));
assets/js/flatpickr/dist/I10n/bs.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bs = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Bosnian = {
13
+ firstDayOfWeek: 1,
14
+ weekdays: {
15
+ shorthand: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
16
+ longhand: [
17
+ "Nedjelja",
18
+ "Ponedjeljak",
19
+ "Utorak",
20
+ "Srijeda",
21
+ "Četvrtak",
22
+ "Petak",
23
+ "Subota",
24
+ ],
25
+ },
26
+ months: {
27
+ shorthand: [
28
+ "Jan",
29
+ "Feb",
30
+ "Mar",
31
+ "Apr",
32
+ "Maj",
33
+ "Jun",
34
+ "Jul",
35
+ "Avg",
36
+ "Sep",
37
+ "Okt",
38
+ "Nov",
39
+ "Dec",
40
+ ],
41
+ longhand: [
42
+ "Januar",
43
+ "Februar",
44
+ "Mart",
45
+ "April",
46
+ "Maj",
47
+ "Juni",
48
+ "Juli",
49
+ "Avgust",
50
+ "Septembar",
51
+ "Oktobar",
52
+ "Novembar",
53
+ "Decembar",
54
+ ],
55
+ },
56
+ time_24hr: true,
57
+ };
58
+ fp.l10ns.bs = Bosnian;
59
+ var bs = fp.l10ns;
60
+
61
+ exports.Bosnian = Bosnian;
62
+ exports.default = bs;
63
+
64
+ Object.defineProperty(exports, '__esModule', { value: true });
65
+
66
+ })));
assets/js/flatpickr/dist/I10n/cat.js ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.cat = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Catalan = {
13
+ weekdays: {
14
+ shorthand: ["Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds"],
15
+ longhand: [
16
+ "Diumenge",
17
+ "Dilluns",
18
+ "Dimarts",
19
+ "Dimecres",
20
+ "Dijous",
21
+ "Divendres",
22
+ "Dissabte",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Gen",
28
+ "Febr",
29
+ "Març",
30
+ "Abr",
31
+ "Maig",
32
+ "Juny",
33
+ "Jul",
34
+ "Ag",
35
+ "Set",
36
+ "Oct",
37
+ "Nov",
38
+ "Des",
39
+ ],
40
+ longhand: [
41
+ "Gener",
42
+ "Febrer",
43
+ "Març",
44
+ "Abril",
45
+ "Maig",
46
+ "Juny",
47
+ "Juliol",
48
+ "Agost",
49
+ "Setembre",
50
+ "Octubre",
51
+ "Novembre",
52
+ "Desembre",
53
+ ],
54
+ },
55
+ ordinal: function (nth) {
56
+ var s = nth % 100;
57
+ if (s > 3 && s < 21)
58
+ return "è";
59
+ switch (s % 10) {
60
+ case 1:
61
+ return "r";
62
+ case 2:
63
+ return "n";
64
+ case 3:
65
+ return "r";
66
+ case 4:
67
+ return "t";
68
+ default:
69
+ return "è";
70
+ }
71
+ },
72
+ firstDayOfWeek: 1,
73
+ rangeSeparator: " a ",
74
+ time_24hr: true,
75
+ };
76
+ fp.l10ns.cat = fp.l10ns.ca = Catalan;
77
+ var cat = fp.l10ns;
78
+
79
+ exports.Catalan = Catalan;
80
+ exports.default = cat;
81
+
82
+ Object.defineProperty(exports, '__esModule', { value: true });
83
+
84
+ })));
assets/js/flatpickr/dist/I10n/ckb.js ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ckb = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Kurdish = {
13
+ weekdays: {
14
+ shorthand: [
15
+ "یەکشەممە",
16
+ "دووشەممە",
17
+ "سێشەممە",
18
+ "چوارشەممە",
19
+ "پێنجشەممە",
20
+ "هەینی",
21
+ "شەممە",
22
+ ],
23
+ longhand: [
24
+ "یەکشەممە",
25
+ "دووشەممە",
26
+ "سێشەممە",
27
+ "چوارشەممە",
28
+ "پێنجشەممە",
29
+ "هەینی",
30
+ "شەممە",
31
+ ],
32
+ },
33
+ months: {
34
+ shorthand: [
35
+ "ڕێبەندان",
36
+ "ڕەشەمە",
37
+ "نەورۆز",
38
+ "گوڵان",
39
+ "جۆزەردان",
40
+ "پووشپەڕ",
41
+ "گەلاوێژ",
42
+ "خەرمانان",
43
+ "ڕەزبەر",
44
+ "گەڵاڕێزان",
45
+ "سەرماوەز",
46
+ "بەفرانبار",
47
+ ],
48
+ longhand: [
49
+ "ڕێبەندان",
50
+ "ڕەشەمە",
51
+ "نەورۆز",
52
+ "گوڵان",
53
+ "جۆزەردان",
54
+ "پووشپەڕ",
55
+ "گەلاوێژ",
56
+ "خەرمانان",
57
+ "ڕەزبەر",
58
+ "گەڵاڕێزان",
59
+ "سەرماوەز",
60
+ "بەفرانبار",
61
+ ],
62
+ },
63
+ firstDayOfWeek: 6,
64
+ ordinal: function () {
65
+ return "";
66
+ },
67
+ };
68
+ fp.l10ns.ckb = Kurdish;
69
+ var ckb = fp.l10ns;
70
+
71
+ exports.Kurdish = Kurdish;
72
+ exports.default = ckb;
73
+
74
+ Object.defineProperty(exports, '__esModule', { value: true });
75
+
76
+ })));
assets/js/flatpickr/dist/I10n/cs.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.cs = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Czech = {
13
+ weekdays: {
14
+ shorthand: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
15
+ longhand: [
16
+ "Neděle",
17
+ "Pondělí",
18
+ "Úterý",
19
+ "Středa",
20
+ "Čtvrtek",
21
+ "Pátek",
22
+ "Sobota",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Led",
28
+ "Ún",
29
+ "Bře",
30
+ "Dub",
31
+ "Kvě",
32
+ "Čer",
33
+ "Čvc",
34
+ "Srp",
35
+ "Zář",
36
+ "Říj",
37
+ "Lis",
38
+ "Pro",
39
+ ],
40
+ longhand: [
41
+ "Leden",
42
+ "Únor",
43
+ "Březen",
44
+ "Duben",
45
+ "Květen",
46
+ "Červen",
47
+ "Červenec",
48
+ "Srpen",
49
+ "Září",
50
+ "Říjen",
51
+ "Listopad",
52
+ "Prosinec",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return ".";
58
+ },
59
+ rangeSeparator: " do ",
60
+ weekAbbreviation: "Týd.",
61
+ scrollTitle: "Rolujte pro změnu",
62
+ toggleTitle: "Přepnout dopoledne/odpoledne",
63
+ amPM: ["dop.", "odp."],
64
+ yearAriaLabel: "Rok",
65
+ time_24hr: true,
66
+ };
67
+ fp.l10ns.cs = Czech;
68
+ var cs = fp.l10ns;
69
+
70
+ exports.Czech = Czech;
71
+ exports.default = cs;
72
+
73
+ Object.defineProperty(exports, '__esModule', { value: true });
74
+
75
+ })));
assets/js/flatpickr/dist/I10n/cy.js ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.cy = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Welsh = {
13
+ weekdays: {
14
+ shorthand: ["Sul", "Llun", "Maw", "Mer", "Iau", "Gwe", "Sad"],
15
+ longhand: [
16
+ "Dydd Sul",
17
+ "Dydd Llun",
18
+ "Dydd Mawrth",
19
+ "Dydd Mercher",
20
+ "Dydd Iau",
21
+ "Dydd Gwener",
22
+ "Dydd Sadwrn",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Ion",
28
+ "Chwef",
29
+ "Maw",
30
+ "Ebr",
31
+ "Mai",
32
+ "Meh",
33
+ "Gorff",
34
+ "Awst",
35
+ "Medi",
36
+ "Hyd",
37
+ "Tach",
38
+ "Rhag",
39
+ ],
40
+ longhand: [
41
+ "Ionawr",
42
+ "Chwefror",
43
+ "Mawrth",
44
+ "Ebrill",
45
+ "Mai",
46
+ "Mehefin",
47
+ "Gorffennaf",
48
+ "Awst",
49
+ "Medi",
50
+ "Hydref",
51
+ "Tachwedd",
52
+ "Rhagfyr",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function (nth) {
57
+ if (nth === 1)
58
+ return "af";
59
+ if (nth === 2)
60
+ return "ail";
61
+ if (nth === 3 || nth === 4)
62
+ return "ydd";
63
+ if (nth === 5 || nth === 6)
64
+ return "ed";
65
+ if ((nth >= 7 && nth <= 10) ||
66
+ nth == 12 ||
67
+ nth == 15 ||
68
+ nth == 18 ||
69
+ nth == 20)
70
+ return "fed";
71
+ if (nth == 11 ||
72
+ nth == 13 ||
73
+ nth == 14 ||
74
+ nth == 16 ||
75
+ nth == 17 ||
76
+ nth == 19)
77
+ return "eg";
78
+ if (nth >= 21 && nth <= 39)
79
+ return "ain";
80
+ // Inconclusive.
81
+ return "";
82
+ },
83
+ time_24hr: true,
84
+ };
85
+ fp.l10ns.cy = Welsh;
86
+ var cy = fp.l10ns;
87
+
88
+ exports.Welsh = Welsh;
89
+ exports.default = cy;
90
+
91
+ Object.defineProperty(exports, '__esModule', { value: true });
92
+
93
+ })));
assets/js/flatpickr/dist/I10n/da.js ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.da = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Danish = {
13
+ weekdays: {
14
+ shorthand: ["søn", "man", "tir", "ons", "tors", "fre", "lør"],
15
+ longhand: [
16
+ "søndag",
17
+ "mandag",
18
+ "tirsdag",
19
+ "onsdag",
20
+ "torsdag",
21
+ "fredag",
22
+ "lørdag",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "jan",
28
+ "feb",
29
+ "mar",
30
+ "apr",
31
+ "maj",
32
+ "jun",
33
+ "jul",
34
+ "aug",
35
+ "sep",
36
+ "okt",
37
+ "nov",
38
+ "dec",
39
+ ],
40
+ longhand: [
41
+ "januar",
42
+ "februar",
43
+ "marts",
44
+ "april",
45
+ "maj",
46
+ "juni",
47
+ "juli",
48
+ "august",
49
+ "september",
50
+ "oktober",
51
+ "november",
52
+ "december",
53
+ ],
54
+ },
55
+ ordinal: function () {
56
+ return ".";
57
+ },
58
+ firstDayOfWeek: 1,
59
+ rangeSeparator: " til ",
60
+ weekAbbreviation: "uge",
61
+ time_24hr: true,
62
+ };
63
+ fp.l10ns.da = Danish;
64
+ var da = fp.l10ns;
65
+
66
+ exports.Danish = Danish;
67
+ exports.default = da;
68
+
69
+ Object.defineProperty(exports, '__esModule', { value: true });
70
+
71
+ })));
assets/js/flatpickr/dist/I10n/de.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.de = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var German = {
13
+ weekdays: {
14
+ shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
15
+ longhand: [
16
+ "Sonntag",
17
+ "Montag",
18
+ "Dienstag",
19
+ "Mittwoch",
20
+ "Donnerstag",
21
+ "Freitag",
22
+ "Samstag",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jan",
28
+ "Feb",
29
+ "Mär",
30
+ "Apr",
31
+ "Mai",
32
+ "Jun",
33
+ "Jul",
34
+ "Aug",
35
+ "Sep",
36
+ "Okt",
37
+ "Nov",
38
+ "Dez",
39
+ ],
40
+ longhand: [
41
+ "Januar",
42
+ "Februar",
43
+ "März",
44
+ "April",
45
+ "Mai",
46
+ "Juni",
47
+ "Juli",
48
+ "August",
49
+ "September",
50
+ "Oktober",
51
+ "November",
52
+ "Dezember",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ weekAbbreviation: "KW",
57
+ rangeSeparator: " bis ",
58
+ scrollTitle: "Zum Ändern scrollen",
59
+ toggleTitle: "Zum Umschalten klicken",
60
+ time_24hr: true,
61
+ };
62
+ fp.l10ns.de = German;
63
+ var de = fp.l10ns;
64
+
65
+ exports.German = German;
66
+ exports.default = de;
67
+
68
+ Object.defineProperty(exports, '__esModule', { value: true });
69
+
70
+ })));
assets/js/flatpickr/dist/I10n/default.js ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.default = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var english = {
8
+ weekdays: {
9
+ shorthand: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
10
+ longhand: [
11
+ "Sunday",
12
+ "Monday",
13
+ "Tuesday",
14
+ "Wednesday",
15
+ "Thursday",
16
+ "Friday",
17
+ "Saturday",
18
+ ],
19
+ },
20
+ months: {
21
+ shorthand: [
22
+ "Jan",
23
+ "Feb",
24
+ "Mar",
25
+ "Apr",
26
+ "May",
27
+ "Jun",
28
+ "Jul",
29
+ "Aug",
30
+ "Sep",
31
+ "Oct",
32
+ "Nov",
33
+ "Dec",
34
+ ],
35
+ longhand: [
36
+ "January",
37
+ "February",
38
+ "March",
39
+ "April",
40
+ "May",
41
+ "June",
42
+ "July",
43
+ "August",
44
+ "September",
45
+ "October",
46
+ "November",
47
+ "December",
48
+ ],
49
+ },
50
+ daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
51
+ firstDayOfWeek: 0,
52
+ ordinal: function (nth) {
53
+ var s = nth % 100;
54
+ if (s > 3 && s < 21)
55
+ return "th";
56
+ switch (s % 10) {
57
+ case 1:
58
+ return "st";
59
+ case 2:
60
+ return "nd";
61
+ case 3:
62
+ return "rd";
63
+ default:
64
+ return "th";
65
+ }
66
+ },
67
+ rangeSeparator: " to ",
68
+ weekAbbreviation: "Wk",
69
+ scrollTitle: "Scroll to increment",
70
+ toggleTitle: "Click to toggle",
71
+ amPM: ["AM", "PM"],
72
+ yearAriaLabel: "Year",
73
+ monthAriaLabel: "Month",
74
+ hourAriaLabel: "Hour",
75
+ minuteAriaLabel: "Minute",
76
+ time_24hr: false,
77
+ };
78
+
79
+ exports.default = english;
80
+ exports.english = english;
81
+
82
+ Object.defineProperty(exports, '__esModule', { value: true });
83
+
84
+ })));
assets/js/flatpickr/dist/I10n/eo.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.eo = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Esperanto = {
13
+ firstDayOfWeek: 1,
14
+ rangeSeparator: " ĝis ",
15
+ weekAbbreviation: "Sem",
16
+ scrollTitle: "Rulumu por pligrandigi la valoron",
17
+ toggleTitle: "Klaku por ŝalti",
18
+ weekdays: {
19
+ shorthand: ["Dim", "Lun", "Mar", "Mer", "Ĵaŭ", "Ven", "Sab"],
20
+ longhand: [
21
+ "dimanĉo",
22
+ "lundo",
23
+ "mardo",
24
+ "merkredo",
25
+ "ĵaŭdo",
26
+ "vendredo",
27
+ "sabato",
28
+ ],
29
+ },
30
+ months: {
31
+ shorthand: [
32
+ "Jan",
33
+ "Feb",
34
+ "Mar",
35
+ "Apr",
36
+ "Maj",
37
+ "Jun",
38
+ "Jul",
39
+ "Aŭg",
40
+ "Sep",
41
+ "Okt",
42
+ "Nov",
43
+ "Dec",
44
+ ],
45
+ longhand: [
46
+ "januaro",
47
+ "februaro",
48
+ "marto",
49
+ "aprilo",
50
+ "majo",
51
+ "junio",
52
+ "julio",
53
+ "aŭgusto",
54
+ "septembro",
55
+ "oktobro",
56
+ "novembro",
57
+ "decembro",
58
+ ],
59
+ },
60
+ ordinal: function () {
61
+ return "-a";
62
+ },
63
+ time_24hr: true,
64
+ };
65
+ fp.l10ns.eo = Esperanto;
66
+ var eo = fp.l10ns;
67
+
68
+ exports.Esperanto = Esperanto;
69
+ exports.default = eo;
70
+
71
+ Object.defineProperty(exports, '__esModule', { value: true });
72
+
73
+ })));
assets/js/flatpickr/dist/I10n/es.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.es = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Spanish = {
13
+ weekdays: {
14
+ shorthand: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"],
15
+ longhand: [
16
+ "Domingo",
17
+ "Lunes",
18
+ "Martes",
19
+ "Miércoles",
20
+ "Jueves",
21
+ "Viernes",
22
+ "Sábado",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Ene",
28
+ "Feb",
29
+ "Mar",
30
+ "Abr",
31
+ "May",
32
+ "Jun",
33
+ "Jul",
34
+ "Ago",
35
+ "Sep",
36
+ "Oct",
37
+ "Nov",
38
+ "Dic",
39
+ ],
40
+ longhand: [
41
+ "Enero",
42
+ "Febrero",
43
+ "Marzo",
44
+ "Abril",
45
+ "Mayo",
46
+ "Junio",
47
+ "Julio",
48
+ "Agosto",
49
+ "Septiembre",
50
+ "Octubre",
51
+ "Noviembre",
52
+ "Diciembre",
53
+ ],
54
+ },
55
+ ordinal: function () {
56
+ return "º";
57
+ },
58
+ firstDayOfWeek: 1,
59
+ rangeSeparator: " a ",
60
+ time_24hr: true,
61
+ };
62
+ fp.l10ns.es = Spanish;
63
+ var es = fp.l10ns;
64
+
65
+ exports.Spanish = Spanish;
66
+ exports.default = es;
67
+
68
+ Object.defineProperty(exports, '__esModule', { value: true });
69
+
70
+ })));
assets/js/flatpickr/dist/I10n/et.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.et = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Estonian = {
13
+ weekdays: {
14
+ shorthand: ["P", "E", "T", "K", "N", "R", "L"],
15
+ longhand: [
16
+ "Pühapäev",
17
+ "Esmaspäev",
18
+ "Teisipäev",
19
+ "Kolmapäev",
20
+ "Neljapäev",
21
+ "Reede",
22
+ "Laupäev",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jaan",
28
+ "Veebr",
29
+ "Märts",
30
+ "Apr",
31
+ "Mai",
32
+ "Juuni",
33
+ "Juuli",
34
+ "Aug",
35
+ "Sept",
36
+ "Okt",
37
+ "Nov",
38
+ "Dets",
39
+ ],
40
+ longhand: [
41
+ "Jaanuar",
42
+ "Veebruar",
43
+ "Märts",
44
+ "Aprill",
45
+ "Mai",
46
+ "Juuni",
47
+ "Juuli",
48
+ "August",
49
+ "September",
50
+ "Oktoober",
51
+ "November",
52
+ "Detsember",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return ".";
58
+ },
59
+ weekAbbreviation: "Näd",
60
+ rangeSeparator: " kuni ",
61
+ scrollTitle: "Keri, et suurendada",
62
+ toggleTitle: "Klõpsa, et vahetada",
63
+ time_24hr: true,
64
+ };
65
+ fp.l10ns.et = Estonian;
66
+ var et = fp.l10ns;
67
+
68
+ exports.Estonian = Estonian;
69
+ exports.default = et;
70
+
71
+ Object.defineProperty(exports, '__esModule', { value: true });
72
+
73
+ })));
assets/js/flatpickr/dist/I10n/fa.js ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fa = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Persian = {
13
+ weekdays: {
14
+ shorthand: ["یک", "دو", "سه", "چهار", "پنج", "جمعه", "شنبه"],
15
+ longhand: [
16
+ "یک‌شنبه",
17
+ "دوشنبه",
18
+ "سه‌شنبه",
19
+ "چهارشنبه",
20
+ "پنچ‌شنبه",
21
+ "جمعه",
22
+ "شنبه",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "ژانویه",
28
+ "فوریه",
29
+ "مارس",
30
+ "آوریل",
31
+ "مه",
32
+ "ژوئن",
33
+ "ژوئیه",
34
+ "اوت",
35
+ "سپتامبر",
36
+ "اکتبر",
37
+ "نوامبر",
38
+ "دسامبر",
39
+ ],
40
+ longhand: [
41
+ "ژانویه",
42
+ "فوریه",
43
+ "مارس",
44
+ "آوریل",
45
+ "مه",
46
+ "ژوئن",
47
+ "ژوئیه",
48
+ "اوت",
49
+ "سپتامبر",
50
+ "اکتبر",
51
+ "نوامبر",
52
+ "دسامبر",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 6,
56
+ ordinal: function () {
57
+ return "";
58
+ },
59
+ };
60
+ fp.l10ns.fa = Persian;
61
+ var fa = fp.l10ns;
62
+
63
+ exports.Persian = Persian;
64
+ exports.default = fa;
65
+
66
+ Object.defineProperty(exports, '__esModule', { value: true });
67
+
68
+ })));
assets/js/flatpickr/dist/I10n/fi.js ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fi = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Finnish = {
13
+ firstDayOfWeek: 1,
14
+ weekdays: {
15
+ shorthand: ["su", "ma", "ti", "ke", "to", "pe", "la"],
16
+ longhand: [
17
+ "sunnuntai",
18
+ "maanantai",
19
+ "tiistai",
20
+ "keskiviikko",
21
+ "torstai",
22
+ "perjantai",
23
+ "lauantai",
24
+ ],
25
+ },
26
+ months: {
27
+ shorthand: [
28
+ "tammi",
29
+ "helmi",
30
+ "maalis",
31
+ "huhti",
32
+ "touko",
33
+ "kesä",
34
+ "heinä",
35
+ "elo",
36
+ "syys",
37
+ "loka",
38
+ "marras",
39
+ "joulu",
40
+ ],
41
+ longhand: [
42
+ "tammikuu",
43
+ "helmikuu",
44
+ "maaliskuu",
45
+ "huhtikuu",
46
+ "toukokuu",
47
+ "kesäkuu",
48
+ "heinäkuu",
49
+ "elokuu",
50
+ "syyskuu",
51
+ "lokakuu",
52
+ "marraskuu",
53
+ "joulukuu",
54
+ ],
55
+ },
56
+ ordinal: function () {
57
+ return ".";
58
+ },
59
+ time_24hr: true,
60
+ };
61
+ fp.l10ns.fi = Finnish;
62
+ var fi = fp.l10ns;
63
+
64
+ exports.Finnish = Finnish;
65
+ exports.default = fi;
66
+
67
+ Object.defineProperty(exports, '__esModule', { value: true });
68
+
69
+ })));
assets/js/flatpickr/dist/I10n/fo.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fo = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Faroese = {
13
+ weekdays: {
14
+ shorthand: ["Sun", "Mán", "Týs", "Mik", "Hós", "Frí", "Ley"],
15
+ longhand: [
16
+ "Sunnudagur",
17
+ "Mánadagur",
18
+ "Týsdagur",
19
+ "Mikudagur",
20
+ "Hósdagur",
21
+ "Fríggjadagur",
22
+ "Leygardagur",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jan",
28
+ "Feb",
29
+ "Mar",
30
+ "Apr",
31
+ "Mai",
32
+ "Jun",
33
+ "Jul",
34
+ "Aug",
35
+ "Sep",
36
+ "Okt",
37
+ "Nov",
38
+ "Des",
39
+ ],
40
+ longhand: [
41
+ "Januar",
42
+ "Februar",
43
+ "Mars",
44
+ "Apríl",
45
+ "Mai",
46
+ "Juni",
47
+ "Juli",
48
+ "August",
49
+ "Septembur",
50
+ "Oktobur",
51
+ "Novembur",
52
+ "Desembur",
53
+ ],
54
+ },
55
+ ordinal: function () {
56
+ return ".";
57
+ },
58
+ firstDayOfWeek: 1,
59
+ rangeSeparator: " til ",
60
+ weekAbbreviation: "vika",
61
+ scrollTitle: "Rulla fyri at broyta",
62
+ toggleTitle: "Trýst fyri at skifta",
63
+ yearAriaLabel: "Ár",
64
+ time_24hr: true,
65
+ };
66
+ fp.l10ns.fo = Faroese;
67
+ var fo = fp.l10ns;
68
+
69
+ exports.Faroese = Faroese;
70
+ exports.default = fo;
71
+
72
+ Object.defineProperty(exports, '__esModule', { value: true });
73
+
74
+ })));
assets/js/flatpickr/dist/I10n/fr.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fr = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var French = {
13
+ firstDayOfWeek: 1,
14
+ weekdays: {
15
+ shorthand: ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"],
16
+ longhand: [
17
+ "dimanche",
18
+ "lundi",
19
+ "mardi",
20
+ "mercredi",
21
+ "jeudi",
22
+ "vendredi",
23
+ "samedi",
24
+ ],
25
+ },
26
+ months: {
27
+ shorthand: [
28
+ "janv",
29
+ "févr",
30
+ "mars",
31
+ "avr",
32
+ "mai",
33
+ "juin",
34
+ "juil",
35
+ "août",
36
+ "sept",
37
+ "oct",
38
+ "nov",
39
+ "déc",
40
+ ],
41
+ longhand: [
42
+ "janvier",
43
+ "février",
44
+ "mars",
45
+ "avril",
46
+ "mai",
47
+ "juin",
48
+ "juillet",
49
+ "août",
50
+ "septembre",
51
+ "octobre",
52
+ "novembre",
53
+ "décembre",
54
+ ],
55
+ },
56
+ ordinal: function (nth) {
57
+ if (nth > 1)
58
+ return "";
59
+ return "er";
60
+ },
61
+ rangeSeparator: " au ",
62
+ weekAbbreviation: "Sem",
63
+ scrollTitle: "Défiler pour augmenter la valeur",
64
+ toggleTitle: "Cliquer pour basculer",
65
+ time_24hr: true,
66
+ };
67
+ fp.l10ns.fr = French;
68
+ var fr = fp.l10ns;
69
+
70
+ exports.French = French;
71
+ exports.default = fr;
72
+
73
+ Object.defineProperty(exports, '__esModule', { value: true });
74
+
75
+ })));
assets/js/flatpickr/dist/I10n/ga.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ga = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Irish = {
13
+ firstDayOfWeek: 1,
14
+ weekdays: {
15
+ shorthand: ["Dom", "Lua", "Mái", "Céa", "Déa", "Aoi", "Sat"],
16
+ longhand: [
17
+ "Dé Domhnaigh",
18
+ "Dé Luain",
19
+ "Dé Máirt",
20
+ "Dé Céadaoin",
21
+ "Déardaoin",
22
+ "Dé hAoine",
23
+ "Dé Sathairn",
24
+ ],
25
+ },
26
+ months: {
27
+ shorthand: [
28
+ "Ean",
29
+ "Fea",
30
+ "Már",
31
+ "Aib",
32
+ "Bea",
33
+ "Mei",
34
+ "Iúi",
35
+ "Lún",
36
+ "MFo",
37
+ "DFo",
38
+ "Sam",
39
+ "Nol",
40
+ ],
41
+ longhand: [
42
+ "Eanáir",
43
+ "Feabhra",
44
+ "Márta",
45
+ "Aibreán",
46
+ "Bealtaine",
47
+ "Meitheamh",
48
+ "Iúil",
49
+ "Lúnasa",
50
+ "Meán Fómhair",
51
+ "Deireadh Fómhair",
52
+ "Samhain",
53
+ "Nollaig",
54
+ ],
55
+ },
56
+ time_24hr: true,
57
+ };
58
+ fp.l10ns.hr = Irish;
59
+ var ga = fp.l10ns;
60
+
61
+ exports.Irish = Irish;
62
+ exports.default = ga;
63
+
64
+ Object.defineProperty(exports, '__esModule', { value: true });
65
+
66
+ })));
assets/js/flatpickr/dist/I10n/gr.js ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.gr = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Greek = {
13
+ weekdays: {
14
+ shorthand: ["Κυ", "Δε", "Τρ", "Τε", "Πέ", "Πα", "Σά"],
15
+ longhand: [
16
+ "Κυριακή",
17
+ "Δευτέρα",
18
+ "Τρίτη",
19
+ "Τετάρτη",
20
+ "Πέμπτη",
21
+ "Παρασκευή",
22
+ "Σάββατο",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Ιαν",
28
+ "Φεβ",
29
+ "Μάρ",
30
+ "Απρ",
31
+ "Μάι",
32
+ "Ιούν",
33
+ "Ιούλ",
34
+ "Αύγ",
35
+ "Σεπ",
36
+ "Οκτ",
37
+ "Νοέ",
38
+ "Δεκ",
39
+ ],
40
+ longhand: [
41
+ "Ιανουάριος",
42
+ "Φεβρουάριος",
43
+ "Μάρτιος",
44
+ "Απρίλιος",
45
+ "Μάιος",
46
+ "Ιούνιος",
47
+ "Ιούλιος",
48
+ "Αύγουστος",
49
+ "Σεπτέμβριος",
50
+ "Οκτώβριος",
51
+ "Νοέμβριος",
52
+ "Δεκέμβριος",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return "";
58
+ },
59
+ weekAbbreviation: "Εβδ",
60
+ rangeSeparator: " έως ",
61
+ scrollTitle: "Μετακυλήστε για προσαύξηση",
62
+ toggleTitle: "Κάντε κλικ για αλλαγή",
63
+ amPM: ["ΠΜ", "ΜΜ"],
64
+ yearAriaLabel: "χρόνος",
65
+ monthAriaLabel: "μήνας",
66
+ hourAriaLabel: "ώρα",
67
+ minuteAriaLabel: "λεπτό",
68
+ };
69
+ fp.l10ns.gr = Greek;
70
+ var gr = fp.l10ns;
71
+
72
+ exports.Greek = Greek;
73
+ exports.default = gr;
74
+
75
+ Object.defineProperty(exports, '__esModule', { value: true });
76
+
77
+ })));
assets/js/flatpickr/dist/I10n/he.js ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.he = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Hebrew = {
13
+ weekdays: {
14
+ shorthand: ["א", "ב", "ג", "ד", "ה", "ו", "ש"],
15
+ longhand: ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת"],
16
+ },
17
+ months: {
18
+ shorthand: [
19
+ "ינו׳",
20
+ "פבר׳",
21
+ "מרץ",
22
+ "אפר׳",
23
+ "מאי",
24
+ "יוני",
25
+ "יולי",
26
+ "אוג׳",
27
+ "ספט׳",
28
+ "אוק׳",
29
+ "נוב׳",
30
+ "דצמ׳",
31
+ ],
32
+ longhand: [
33
+ "ינואר",
34
+ "פברואר",
35
+ "מרץ",
36
+ "אפריל",
37
+ "מאי",
38
+ "יוני",
39
+ "יולי",
40
+ "אוגוסט",
41
+ "ספטמבר",
42
+ "אוקטובר",
43
+ "נובמבר",
44
+ "דצמבר",
45
+ ],
46
+ },
47
+ rangeSeparator: " אל ",
48
+ time_24hr: true,
49
+ };
50
+ fp.l10ns.he = Hebrew;
51
+ var he = fp.l10ns;
52
+
53
+ exports.Hebrew = Hebrew;
54
+ exports.default = he;
55
+
56
+ Object.defineProperty(exports, '__esModule', { value: true });
57
+
58
+ })));
assets/js/flatpickr/dist/I10n/hi.js ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.hi = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Hindi = {
13
+ weekdays: {
14
+ shorthand: ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"],
15
+ longhand: [
16
+ "रविवार",
17
+ "सोमवार",
18
+ "मंगलवार",
19
+ "बुधवार",
20
+ "गुरुवार",
21
+ "शुक्रवार",
22
+ "शनिवार",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "जन",
28
+ "फर",
29
+ "मार्च",
30
+ "अप्रेल",
31
+ "मई",
32
+ "जून",
33
+ "जूलाई",
34
+ "अग",
35
+ "सित",
36
+ "अक्ट",
37
+ "नव",
38
+ "दि",
39
+ ],
40
+ longhand: [
41
+ "जनवरी ",
42
+ "फरवरी",
43
+ "मार्च",
44
+ "अप्रेल",
45
+ "मई",
46
+ "जून",
47
+ "जूलाई",
48
+ "अगस्त ",
49
+ "सितम्बर",
50
+ "अक्टूबर",
51
+ "नवम्बर",
52
+ "दिसम्बर",
53
+ ],
54
+ },
55
+ };
56
+ fp.l10ns.hi = Hindi;
57
+ var hi = fp.l10ns;
58
+
59
+ exports.Hindi = Hindi;
60
+ exports.default = hi;
61
+
62
+ Object.defineProperty(exports, '__esModule', { value: true });
63
+
64
+ })));
assets/js/flatpickr/dist/I10n/hr.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.hr = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Croatian = {
13
+ firstDayOfWeek: 1,
14
+ weekdays: {
15
+ shorthand: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
16
+ longhand: [
17
+ "Nedjelja",
18
+ "Ponedjeljak",
19
+ "Utorak",
20
+ "Srijeda",
21
+ "Četvrtak",
22
+ "Petak",
23
+ "Subota",
24
+ ],
25
+ },
26
+ months: {
27
+ shorthand: [
28
+ "Sij",
29
+ "Velj",
30
+ "Ožu",
31
+ "Tra",
32
+ "Svi",
33
+ "Lip",
34
+ "Srp",
35
+ "Kol",
36
+ "Ruj",
37
+ "Lis",
38
+ "Stu",
39
+ "Pro",
40
+ ],
41
+ longhand: [
42
+ "Siječanj",
43
+ "Veljača",
44
+ "Ožujak",
45
+ "Travanj",
46
+ "Svibanj",
47
+ "Lipanj",
48
+ "Srpanj",
49
+ "Kolovoz",
50
+ "Rujan",
51
+ "Listopad",
52
+ "Studeni",
53
+ "Prosinac",
54
+ ],
55
+ },
56
+ time_24hr: true,
57
+ };
58
+ fp.l10ns.hr = Croatian;
59
+ var hr = fp.l10ns;
60
+
61
+ exports.Croatian = Croatian;
62
+ exports.default = hr;
63
+
64
+ Object.defineProperty(exports, '__esModule', { value: true });
65
+
66
+ })));
assets/js/flatpickr/dist/I10n/hu.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.hu = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Hungarian = {
13
+ firstDayOfWeek: 1,
14
+ weekdays: {
15
+ shorthand: ["V", "H", "K", "Sz", "Cs", "P", "Szo"],
16
+ longhand: [
17
+ "Vasárnap",
18
+ "Hétfő",
19
+ "Kedd",
20
+ "Szerda",
21
+ "Csütörtök",
22
+ "Péntek",
23
+ "Szombat",
24
+ ],
25
+ },
26
+ months: {
27
+ shorthand: [
28
+ "Jan",
29
+ "Feb",
30
+ "Már",
31
+ "Ápr",
32
+ "Máj",
33
+ "Jún",
34
+ "Júl",
35
+ "Aug",
36
+ "Szep",
37
+ "Okt",
38
+ "Nov",
39
+ "Dec",
40
+ ],
41
+ longhand: [
42
+ "Január",
43
+ "Február",
44
+ "Március",
45
+ "Április",
46
+ "Május",
47
+ "Június",
48
+ "Július",
49
+ "Augusztus",
50
+ "Szeptember",
51
+ "Október",
52
+ "November",
53
+ "December",
54
+ ],
55
+ },
56
+ ordinal: function () {
57
+ return ".";
58
+ },
59
+ weekAbbreviation: "Hét",
60
+ scrollTitle: "Görgessen",
61
+ toggleTitle: "Kattintson a váltáshoz",
62
+ rangeSeparator: " - ",
63
+ time_24hr: true,
64
+ };
65
+ fp.l10ns.hu = Hungarian;
66
+ var hu = fp.l10ns;
67
+
68
+ exports.Hungarian = Hungarian;
69
+ exports.default = hu;
70
+
71
+ Object.defineProperty(exports, '__esModule', { value: true });
72
+
73
+ })));
assets/js/flatpickr/dist/I10n/hy.js ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.hy = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Armenian = {
13
+ weekdays: {
14
+ shorthand: ["Կիր", "Երկ", "Երք", "Չրք", "Հնգ", "Ուրբ", "Շբթ"],
15
+ longhand: [
16
+ "Կիրակի",
17
+ "Եկուշաբթի",
18
+ "Երեքշաբթի",
19
+ "Չորեքշաբթի",
20
+ "Հինգշաբթի",
21
+ "Ուրբաթ",
22
+ "Շաբաթ",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Հնվ",
28
+ "Փտր",
29
+ "Մար",
30
+ "Ապր",
31
+ "Մայ",
32
+ "Հնս",
33
+ "Հլս",
34
+ "Օգս",
35
+ "Սեպ",
36
+ "Հոկ",
37
+ "Նմբ",
38
+ "Դեկ",
39
+ ],
40
+ longhand: [
41
+ "Հունվար",
42
+ "Փետրվար",
43
+ "Մարտ",
44
+ "Ապրիլ",
45
+ "Մայիս",
46
+ "Հունիս",
47
+ "Հուլիս",
48
+ "Օգոստոս",
49
+ "Սեպտեմբեր",
50
+ "Հոկտեմբեր",
51
+ "Նոյեմբեր",
52
+ "Դեկտեմբեր",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return "";
58
+ },
59
+ rangeSeparator: " — ",
60
+ weekAbbreviation: "ՇԲՏ",
61
+ scrollTitle: "Ոլորեք՝ մեծացնելու համար",
62
+ toggleTitle: "Սեղմեք՝ փոխելու համար",
63
+ amPM: ["ՄԿ", "ԿՀ"],
64
+ yearAriaLabel: "Տարի",
65
+ monthAriaLabel: "Ամիս",
66
+ hourAriaLabel: "Ժամ",
67
+ minuteAriaLabel: "Րոպե",
68
+ time_24hr: true,
69
+ };
70
+ fp.l10ns.hy = Armenian;
71
+ var hy = fp.l10ns;
72
+
73
+ exports.Armenian = Armenian;
74
+ exports.default = hy;
75
+
76
+ Object.defineProperty(exports, '__esModule', { value: true });
77
+
78
+ })));
assets/js/flatpickr/dist/I10n/id.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.id = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Indonesian = {
13
+ weekdays: {
14
+ shorthand: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
15
+ longhand: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"],
16
+ },
17
+ months: {
18
+ shorthand: [
19
+ "Jan",
20
+ "Feb",
21
+ "Mar",
22
+ "Apr",
23
+ "Mei",
24
+ "Jun",
25
+ "Jul",
26
+ "Agu",
27
+ "Sep",
28
+ "Okt",
29
+ "Nov",
30
+ "Des",
31
+ ],
32
+ longhand: [
33
+ "Januari",
34
+ "Februari",
35
+ "Maret",
36
+ "April",
37
+ "Mei",
38
+ "Juni",
39
+ "Juli",
40
+ "Agustus",
41
+ "September",
42
+ "Oktober",
43
+ "November",
44
+ "Desember",
45
+ ],
46
+ },
47
+ firstDayOfWeek: 1,
48
+ ordinal: function () {
49
+ return "";
50
+ },
51
+ time_24hr: true,
52
+ rangeSeparator: " - ",
53
+ };
54
+ fp.l10ns.id = Indonesian;
55
+ var id = fp.l10ns;
56
+
57
+ exports.Indonesian = Indonesian;
58
+ exports.default = id;
59
+
60
+ Object.defineProperty(exports, '__esModule', { value: true });
61
+
62
+ })));
assets/js/flatpickr/dist/I10n/index.js ADDED
@@ -0,0 +1,3809 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+
22
+ var __assign = function() {
23
+ __assign = Object.assign || function __assign(t) {
24
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
25
+ s = arguments[i];
26
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
27
+ }
28
+ return t;
29
+ };
30
+ return __assign.apply(this, arguments);
31
+ };
32
+
33
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
34
+ ? window.flatpickr
35
+ : {
36
+ l10ns: {},
37
+ };
38
+ var Arabic = {
39
+ weekdays: {
40
+ shorthand: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"],
41
+ longhand: [
42
+ "الأحد",
43
+ "الاثنين",
44
+ "الثلاثاء",
45
+ "الأربعاء",
46
+ "الخميس",
47
+ "الجمعة",
48
+ "السبت",
49
+ ],
50
+ },
51
+ months: {
52
+ shorthand: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
53
+ longhand: [
54
+ "يناير",
55
+ "فبراير",
56
+ "مارس",
57
+ "أبريل",
58
+ "مايو",
59
+ "يونيو",
60
+ "يوليو",
61
+ "أغسطس",
62
+ "سبتمبر",
63
+ "أكتوبر",
64
+ "نوفمبر",
65
+ "ديسمبر",
66
+ ],
67
+ },
68
+ firstDayOfWeek: 6,
69
+ rangeSeparator: " إلى ",
70
+ weekAbbreviation: "Wk",
71
+ scrollTitle: "قم بالتمرير للزيادة",
72
+ toggleTitle: "اضغط للتبديل",
73
+ amPM: ["ص", "م"],
74
+ yearAriaLabel: "سنة",
75
+ monthAriaLabel: "شهر",
76
+ hourAriaLabel: "ساعة",
77
+ minuteAriaLabel: "دقيقة",
78
+ time_24hr: false,
79
+ };
80
+ fp.l10ns.ar = Arabic;
81
+ fp.l10ns;
82
+
83
+ var fp$1 = typeof window !== "undefined" && window.flatpickr !== undefined
84
+ ? window.flatpickr
85
+ : {
86
+ l10ns: {},
87
+ };
88
+ var Austria = {
89
+ weekdays: {
90
+ shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
91
+ longhand: [
92
+ "Sonntag",
93
+ "Montag",
94
+ "Dienstag",
95
+ "Mittwoch",
96
+ "Donnerstag",
97
+ "Freitag",
98
+ "Samstag",
99
+ ],
100
+ },
101
+ months: {
102
+ shorthand: [
103
+ "Jän",
104
+ "Feb",
105
+ "Mär",
106
+ "Apr",
107
+ "Mai",
108
+ "Jun",
109
+ "Jul",
110
+ "Aug",
111
+ "Sep",
112
+ "Okt",
113
+ "Nov",
114
+ "Dez",
115
+ ],
116
+ longhand: [
117
+ "Jänner",
118
+ "Februar",
119
+ "März",
120
+ "April",
121
+ "Mai",
122
+ "Juni",
123
+ "Juli",
124
+ "August",
125
+ "September",
126
+ "Oktober",
127
+ "November",
128
+ "Dezember",
129
+ ],
130
+ },
131
+ firstDayOfWeek: 1,
132
+ weekAbbreviation: "KW",
133
+ rangeSeparator: " bis ",
134
+ scrollTitle: "Zum Ändern scrollen",
135
+ toggleTitle: "Zum Umschalten klicken",
136
+ time_24hr: true,
137
+ };
138
+ fp$1.l10ns.at = Austria;
139
+ fp$1.l10ns;
140
+
141
+ var fp$2 = typeof window !== "undefined" && window.flatpickr !== undefined
142
+ ? window.flatpickr
143
+ : {
144
+ l10ns: {},
145
+ };
146
+ var Azerbaijan = {
147
+ weekdays: {
148
+ shorthand: ["B.", "B.e.", "Ç.a.", "Ç.", "C.a.", "C.", "Ş."],
149
+ longhand: [
150
+ "Bazar",
151
+ "Bazar ertəsi",
152
+ "Çərşənbə axşamı",
153
+ "Çərşənbə",
154
+ "Cümə axşamı",
155
+ "Cümə",
156
+ "Şənbə",
157
+ ],
158
+ },
159
+ months: {
160
+ shorthand: [
161
+ "Yan",
162
+ "Fev",
163
+ "Mar",
164
+ "Apr",
165
+ "May",
166
+ "İyn",
167
+ "İyl",
168
+ "Avq",
169
+ "Sen",
170
+ "Okt",
171
+ "Noy",
172
+ "Dek",
173
+ ],
174
+ longhand: [
175
+ "Yanvar",
176
+ "Fevral",
177
+ "Mart",
178
+ "Aprel",
179
+ "May",
180
+ "İyun",
181
+ "İyul",
182
+ "Avqust",
183
+ "Sentyabr",
184
+ "Oktyabr",
185
+ "Noyabr",
186
+ "Dekabr",
187
+ ],
188
+ },
189
+ firstDayOfWeek: 1,
190
+ ordinal: function () {
191
+ return ".";
192
+ },
193
+ rangeSeparator: " - ",
194
+ weekAbbreviation: "Hf",
195
+ scrollTitle: "Artırmaq üçün sürüşdürün",
196
+ toggleTitle: "Aç / Bağla",
197
+ amPM: ["GƏ", "GS"],
198
+ time_24hr: true,
199
+ };
200
+ fp$2.l10ns.az = Azerbaijan;
201
+ fp$2.l10ns;
202
+
203
+ var fp$3 = typeof window !== "undefined" && window.flatpickr !== undefined
204
+ ? window.flatpickr
205
+ : {
206
+ l10ns: {},
207
+ };
208
+ var Belarusian = {
209
+ weekdays: {
210
+ shorthand: ["Нд", "Пн", "Аў", "Ср", "Чц", "Пт", "Сб"],
211
+ longhand: [
212
+ "Нядзеля",
213
+ "Панядзелак",
214
+ "Аўторак",
215
+ "Серада",
216
+ "Чацвер",
217
+ "Пятніца",
218
+ "Субота",
219
+ ],
220
+ },
221
+ months: {
222
+ shorthand: [
223
+ "Сту",
224
+ "Лют",
225
+ "Сак",
226
+ "Кра",
227
+ "Тра",
228
+ "Чэр",
229
+ "Ліп",
230
+ "Жні",
231
+ "Вер",
232
+ "Кас",
233
+ "Ліс",
234
+ "Сне",
235
+ ],
236
+ longhand: [
237
+ "Студзень",
238
+ "Люты",
239
+ "Сакавік",
240
+ "Красавік",
241
+ "Травень",
242
+ "Чэрвень",
243
+ "Ліпень",
244
+ "Жнівень",
245
+ "Верасень",
246
+ "Кастрычнік",
247
+ "Лістапад",
248
+ "Снежань",
249
+ ],
250
+ },
251
+ firstDayOfWeek: 1,
252
+ ordinal: function () {
253
+ return "";
254
+ },
255
+ rangeSeparator: " — ",
256
+ weekAbbreviation: "Тыд.",
257
+ scrollTitle: "Пракруціце для павелічэння",
258
+ toggleTitle: "Націсніце для пераключэння",
259
+ amPM: ["ДП", "ПП"],
260
+ yearAriaLabel: "Год",
261
+ time_24hr: true,
262
+ };
263
+ fp$3.l10ns.be = Belarusian;
264
+ fp$3.l10ns;
265
+
266
+ var fp$4 = typeof window !== "undefined" && window.flatpickr !== undefined
267
+ ? window.flatpickr
268
+ : {
269
+ l10ns: {},
270
+ };
271
+ var Bosnian = {
272
+ firstDayOfWeek: 1,
273
+ weekdays: {
274
+ shorthand: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
275
+ longhand: [
276
+ "Nedjelja",
277
+ "Ponedjeljak",
278
+ "Utorak",
279
+ "Srijeda",
280
+ "Četvrtak",
281
+ "Petak",
282
+ "Subota",
283
+ ],
284
+ },
285
+ months: {
286
+ shorthand: [
287
+ "Jan",
288
+ "Feb",
289
+ "Mar",
290
+ "Apr",
291
+ "Maj",
292
+ "Jun",
293
+ "Jul",
294
+ "Avg",
295
+ "Sep",
296
+ "Okt",
297
+ "Nov",
298
+ "Dec",
299
+ ],
300
+ longhand: [
301
+ "Januar",
302
+ "Februar",
303
+ "Mart",
304
+ "April",
305
+ "Maj",
306
+ "Juni",
307
+ "Juli",
308
+ "Avgust",
309
+ "Septembar",
310
+ "Oktobar",
311
+ "Novembar",
312
+ "Decembar",
313
+ ],
314
+ },
315
+ time_24hr: true,
316
+ };
317
+ fp$4.l10ns.bs = Bosnian;
318
+ fp$4.l10ns;
319
+
320
+ var fp$5 = typeof window !== "undefined" && window.flatpickr !== undefined
321
+ ? window.flatpickr
322
+ : {
323
+ l10ns: {},
324
+ };
325
+ var Bulgarian = {
326
+ weekdays: {
327
+ shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
328
+ longhand: [
329
+ "Неделя",
330
+ "Понеделник",
331
+ "Вторник",
332
+ "Сряда",
333
+ "Четвъртък",
334
+ "Петък",
335
+ "Събота",
336
+ ],
337
+ },
338
+ months: {
339
+ shorthand: [
340
+ "Яну",
341
+ "Фев",
342
+ "Март",
343
+ "Апр",
344
+ "Май",
345
+ "Юни",
346
+ "Юли",
347
+ "Авг",
348
+ "Сеп",
349
+ "Окт",
350
+ "Ное",
351
+ "Дек",
352
+ ],
353
+ longhand: [
354
+ "Януари",
355
+ "Февруари",
356
+ "Март",
357
+ "Април",
358
+ "Май",
359
+ "Юни",
360
+ "Юли",
361
+ "Август",
362
+ "Септември",
363
+ "Октомври",
364
+ "Ноември",
365
+ "Декември",
366
+ ],
367
+ },
368
+ time_24hr: true,
369
+ firstDayOfWeek: 1,
370
+ };
371
+ fp$5.l10ns.bg = Bulgarian;
372
+ fp$5.l10ns;
373
+
374
+ var fp$6 = typeof window !== "undefined" && window.flatpickr !== undefined
375
+ ? window.flatpickr
376
+ : {
377
+ l10ns: {},
378
+ };
379
+ var Bangla = {
380
+ weekdays: {
381
+ shorthand: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহস্পতি", "শুক্র", "শনি"],
382
+ longhand: [
383
+ "রবিবার",
384
+ "সোমবার",
385
+ "মঙ্গলবার",
386
+ "বুধবার",
387
+ "বৃহস্পতিবার",
388
+ "শুক্রবার",
389
+ "শনিবার",
390
+ ],
391
+ },
392
+ months: {
393
+ shorthand: [
394
+ "জানু",
395
+ "ফেব্রু",
396
+ "মার্চ",
397
+ "এপ্রিল",
398
+ "মে",
399
+ "জুন",
400
+ "জুলাই",
401
+ "আগ",
402
+ "সেপ্টে",
403
+ "অক্টো",
404
+ "নভে",
405
+ "ডিসে",
406
+ ],
407
+ longhand: [
408
+ "জানুয়ারী",
409
+ "ফেব্রুয়ারী",
410
+ "মার্চ",
411
+ "এপ্রিল",
412
+ "মে",
413
+ "জুন",
414
+ "জুলাই",
415
+ "আগস্ট",
416
+ "সেপ্টেম্বর",
417
+ "অক্টোবর",
418
+ "নভেম্বর",
419
+ "ডিসেম্বর",
420
+ ],
421
+ },
422
+ };
423
+ fp$6.l10ns.bn = Bangla;
424
+ fp$6.l10ns;
425
+
426
+ var fp$7 = typeof window !== "undefined" && window.flatpickr !== undefined
427
+ ? window.flatpickr
428
+ : {
429
+ l10ns: {},
430
+ };
431
+ var Catalan = {
432
+ weekdays: {
433
+ shorthand: ["Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds"],
434
+ longhand: [
435
+ "Diumenge",
436
+ "Dilluns",
437
+ "Dimarts",
438
+ "Dimecres",
439
+ "Dijous",
440
+ "Divendres",
441
+ "Dissabte",
442
+ ],
443
+ },
444
+ months: {
445
+ shorthand: [
446
+ "Gen",
447
+ "Febr",
448
+ "Març",
449
+ "Abr",
450
+ "Maig",
451
+ "Juny",
452
+ "Jul",
453
+ "Ag",
454
+ "Set",
455
+ "Oct",
456
+ "Nov",
457
+ "Des",
458
+ ],
459
+ longhand: [
460
+ "Gener",
461
+ "Febrer",
462
+ "Març",
463
+ "Abril",
464
+ "Maig",
465
+ "Juny",
466
+ "Juliol",
467
+ "Agost",
468
+ "Setembre",
469
+ "Octubre",
470
+ "Novembre",
471
+ "Desembre",
472
+ ],
473
+ },
474
+ ordinal: function (nth) {
475
+ var s = nth % 100;
476
+ if (s > 3 && s < 21)
477
+ return "è";
478
+ switch (s % 10) {
479
+ case 1:
480
+ return "r";
481
+ case 2:
482
+ return "n";
483
+ case 3:
484
+ return "r";
485
+ case 4:
486
+ return "t";
487
+ default:
488
+ return "è";
489
+ }
490
+ },
491
+ firstDayOfWeek: 1,
492
+ rangeSeparator: " a ",
493
+ time_24hr: true,
494
+ };
495
+ fp$7.l10ns.cat = fp$7.l10ns.ca = Catalan;
496
+ fp$7.l10ns;
497
+
498
+ var fp$8 = typeof window !== "undefined" && window.flatpickr !== undefined
499
+ ? window.flatpickr
500
+ : {
501
+ l10ns: {},
502
+ };
503
+ var Kurdish = {
504
+ weekdays: {
505
+ shorthand: [
506
+ "یەکشەممە",
507
+ "دووشەممە",
508
+ "سێشەممە",
509
+ "چوارشەممە",
510
+ "پێنجشەممە",
511
+ "هەینی",
512
+ "شەممە",
513
+ ],
514
+ longhand: [
515
+ "یەکشەممە",
516
+ "دووشەممە",
517
+ "سێشەممە",
518
+ "چوارشەممە",
519
+ "پێنجشەممە",
520
+ "هەینی",
521
+ "شەممە",
522
+ ],
523
+ },
524
+ months: {
525
+ shorthand: [
526
+ "ڕێبەندان",
527
+ "ڕەشەمە",
528
+ "نەورۆز",
529
+ "گوڵان",
530
+ "جۆزەردان",
531
+ "پووشپەڕ",
532
+ "گەلاوێژ",
533
+ "خەرمانان",
534
+ "ڕەزبەر",
535
+ "گەڵاڕێزان",
536
+ "سەرماوەز",
537
+ "بەفرانبار",
538
+ ],
539
+ longhand: [
540
+ "ڕێبەندان",
541
+ "ڕەشەمە",
542
+ "نەورۆز",
543
+ "گوڵان",
544
+ "جۆزەردان",
545
+ "پووشپەڕ",
546
+ "گەلاوێژ",
547
+ "خەرمانان",
548
+ "ڕەزبەر",
549
+ "گەڵاڕێزان",
550
+ "سەرماوەز",
551
+ "بەفرانبار",
552
+ ],
553
+ },
554
+ firstDayOfWeek: 6,
555
+ ordinal: function () {
556
+ return "";
557
+ },
558
+ };
559
+ fp$8.l10ns.ckb = Kurdish;
560
+ fp$8.l10ns;
561
+
562
+ var fp$9 = typeof window !== "undefined" && window.flatpickr !== undefined
563
+ ? window.flatpickr
564
+ : {
565
+ l10ns: {},
566
+ };
567
+ var Czech = {
568
+ weekdays: {
569
+ shorthand: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
570
+ longhand: [
571
+ "Neděle",
572
+ "Pondělí",
573
+ "Úterý",
574
+ "Středa",
575
+ "Čtvrtek",
576
+ "Pátek",
577
+ "Sobota",
578
+ ],
579
+ },
580
+ months: {
581
+ shorthand: [
582
+ "Led",
583
+ "Ún",
584
+ "Bře",
585
+ "Dub",
586
+ "Kvě",
587
+ "Čer",
588
+ "Čvc",
589
+ "Srp",
590
+ "Zář",
591
+ "Říj",
592
+ "Lis",
593
+ "Pro",
594
+ ],
595
+ longhand: [
596
+ "Leden",
597
+ "Únor",
598
+ "Březen",
599
+ "Duben",
600
+ "Květen",
601
+ "Červen",
602
+ "Červenec",
603
+ "Srpen",
604
+ "Září",
605
+ "Říjen",
606
+ "Listopad",
607
+ "Prosinec",
608
+ ],
609
+ },
610
+ firstDayOfWeek: 1,
611
+ ordinal: function () {
612
+ return ".";
613
+ },
614
+ rangeSeparator: " do ",
615
+ weekAbbreviation: "Týd.",
616
+ scrollTitle: "Rolujte pro změnu",
617
+ toggleTitle: "Přepnout dopoledne/odpoledne",
618
+ amPM: ["dop.", "odp."],
619
+ yearAriaLabel: "Rok",
620
+ time_24hr: true,
621
+ };
622
+ fp$9.l10ns.cs = Czech;
623
+ fp$9.l10ns;
624
+
625
+ var fp$a = typeof window !== "undefined" && window.flatpickr !== undefined
626
+ ? window.flatpickr
627
+ : {
628
+ l10ns: {},
629
+ };
630
+ var Welsh = {
631
+ weekdays: {
632
+ shorthand: ["Sul", "Llun", "Maw", "Mer", "Iau", "Gwe", "Sad"],
633
+ longhand: [
634
+ "Dydd Sul",
635
+ "Dydd Llun",
636
+ "Dydd Mawrth",
637
+ "Dydd Mercher",
638
+ "Dydd Iau",
639
+ "Dydd Gwener",
640
+ "Dydd Sadwrn",
641
+ ],
642
+ },
643
+ months: {
644
+ shorthand: [
645
+ "Ion",
646
+ "Chwef",
647
+ "Maw",
648
+ "Ebr",
649
+ "Mai",
650
+ "Meh",
651
+ "Gorff",
652
+ "Awst",
653
+ "Medi",
654
+ "Hyd",
655
+ "Tach",
656
+ "Rhag",
657
+ ],
658
+ longhand: [
659
+ "Ionawr",
660
+ "Chwefror",
661
+ "Mawrth",
662
+ "Ebrill",
663
+ "Mai",
664
+ "Mehefin",
665
+ "Gorffennaf",
666
+ "Awst",
667
+ "Medi",
668
+ "Hydref",
669
+ "Tachwedd",
670
+ "Rhagfyr",
671
+ ],
672
+ },
673
+ firstDayOfWeek: 1,
674
+ ordinal: function (nth) {
675
+ if (nth === 1)
676
+ return "af";
677
+ if (nth === 2)
678
+ return "ail";
679
+ if (nth === 3 || nth === 4)
680
+ return "ydd";
681
+ if (nth === 5 || nth === 6)
682
+ return "ed";
683
+ if ((nth >= 7 && nth <= 10) ||
684
+ nth == 12 ||
685
+ nth == 15 ||
686
+ nth == 18 ||
687
+ nth == 20)
688
+ return "fed";
689
+ if (nth == 11 ||
690
+ nth == 13 ||
691
+ nth == 14 ||
692
+ nth == 16 ||
693
+ nth == 17 ||
694
+ nth == 19)
695
+ return "eg";
696
+ if (nth >= 21 && nth <= 39)
697
+ return "ain";
698
+ // Inconclusive.
699
+ return "";
700
+ },
701
+ time_24hr: true,
702
+ };
703
+ fp$a.l10ns.cy = Welsh;
704
+ fp$a.l10ns;
705
+
706
+ var fp$b = typeof window !== "undefined" && window.flatpickr !== undefined
707
+ ? window.flatpickr
708
+ : {
709
+ l10ns: {},
710
+ };
711
+ var Danish = {
712
+ weekdays: {
713
+ shorthand: ["søn", "man", "tir", "ons", "tors", "fre", "lør"],
714
+ longhand: [
715
+ "søndag",
716
+ "mandag",
717
+ "tirsdag",
718
+ "onsdag",
719
+ "torsdag",
720
+ "fredag",
721
+ "lørdag",
722
+ ],
723
+ },
724
+ months: {
725
+ shorthand: [
726
+ "jan",
727
+ "feb",
728
+ "mar",
729
+ "apr",
730
+ "maj",
731
+ "jun",
732
+ "jul",
733
+ "aug",
734
+ "sep",
735
+ "okt",
736
+ "nov",
737
+ "dec",
738
+ ],
739
+ longhand: [
740
+ "januar",
741
+ "februar",
742
+ "marts",
743
+ "april",
744
+ "maj",
745
+ "juni",
746
+ "juli",
747
+ "august",
748
+ "september",
749
+ "oktober",
750
+ "november",
751
+ "december",
752
+ ],
753
+ },
754
+ ordinal: function () {
755
+ return ".";
756
+ },
757
+ firstDayOfWeek: 1,
758
+ rangeSeparator: " til ",
759
+ weekAbbreviation: "uge",
760
+ time_24hr: true,
761
+ };
762
+ fp$b.l10ns.da = Danish;
763
+ fp$b.l10ns;
764
+
765
+ var fp$c = typeof window !== "undefined" && window.flatpickr !== undefined
766
+ ? window.flatpickr
767
+ : {
768
+ l10ns: {},
769
+ };
770
+ var German = {
771
+ weekdays: {
772
+ shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
773
+ longhand: [
774
+ "Sonntag",
775
+ "Montag",
776
+ "Dienstag",
777
+ "Mittwoch",
778
+ "Donnerstag",
779
+ "Freitag",
780
+ "Samstag",
781
+ ],
782
+ },
783
+ months: {
784
+ shorthand: [
785
+ "Jan",
786
+ "Feb",
787
+ "Mär",
788
+ "Apr",
789
+ "Mai",
790
+ "Jun",
791
+ "Jul",
792
+ "Aug",
793
+ "Sep",
794
+ "Okt",
795
+ "Nov",
796
+ "Dez",
797
+ ],
798
+ longhand: [
799
+ "Januar",
800
+ "Februar",
801
+ "März",
802
+ "April",
803
+ "Mai",
804
+ "Juni",
805
+ "Juli",
806
+ "August",
807
+ "September",
808
+ "Oktober",
809
+ "November",
810
+ "Dezember",
811
+ ],
812
+ },
813
+ firstDayOfWeek: 1,
814
+ weekAbbreviation: "KW",
815
+ rangeSeparator: " bis ",
816
+ scrollTitle: "Zum Ändern scrollen",
817
+ toggleTitle: "Zum Umschalten klicken",
818
+ time_24hr: true,
819
+ };
820
+ fp$c.l10ns.de = German;
821
+ fp$c.l10ns;
822
+
823
+ var english = {
824
+ weekdays: {
825
+ shorthand: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
826
+ longhand: [
827
+ "Sunday",
828
+ "Monday",
829
+ "Tuesday",
830
+ "Wednesday",
831
+ "Thursday",
832
+ "Friday",
833
+ "Saturday",
834
+ ],
835
+ },
836
+ months: {
837
+ shorthand: [
838
+ "Jan",
839
+ "Feb",
840
+ "Mar",
841
+ "Apr",
842
+ "May",
843
+ "Jun",
844
+ "Jul",
845
+ "Aug",
846
+ "Sep",
847
+ "Oct",
848
+ "Nov",
849
+ "Dec",
850
+ ],
851
+ longhand: [
852
+ "January",
853
+ "February",
854
+ "March",
855
+ "April",
856
+ "May",
857
+ "June",
858
+ "July",
859
+ "August",
860
+ "September",
861
+ "October",
862
+ "November",
863
+ "December",
864
+ ],
865
+ },
866
+ daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
867
+ firstDayOfWeek: 0,
868
+ ordinal: function (nth) {
869
+ var s = nth % 100;
870
+ if (s > 3 && s < 21)
871
+ return "th";
872
+ switch (s % 10) {
873
+ case 1:
874
+ return "st";
875
+ case 2:
876
+ return "nd";
877
+ case 3:
878
+ return "rd";
879
+ default:
880
+ return "th";
881
+ }
882
+ },
883
+ rangeSeparator: " to ",
884
+ weekAbbreviation: "Wk",
885
+ scrollTitle: "Scroll to increment",
886
+ toggleTitle: "Click to toggle",
887
+ amPM: ["AM", "PM"],
888
+ yearAriaLabel: "Year",
889
+ monthAriaLabel: "Month",
890
+ hourAriaLabel: "Hour",
891
+ minuteAriaLabel: "Minute",
892
+ time_24hr: false,
893
+ };
894
+
895
+ var fp$d = typeof window !== "undefined" && window.flatpickr !== undefined
896
+ ? window.flatpickr
897
+ : {
898
+ l10ns: {},
899
+ };
900
+ var Esperanto = {
901
+ firstDayOfWeek: 1,
902
+ rangeSeparator: " ĝis ",
903
+ weekAbbreviation: "Sem",
904
+ scrollTitle: "Rulumu por pligrandigi la valoron",
905
+ toggleTitle: "Klaku por ŝalti",
906
+ weekdays: {
907
+ shorthand: ["Dim", "Lun", "Mar", "Mer", "Ĵaŭ", "Ven", "Sab"],
908
+ longhand: [
909
+ "dimanĉo",
910
+ "lundo",
911
+ "mardo",
912
+ "merkredo",
913
+ "ĵaŭdo",
914
+ "vendredo",
915
+ "sabato",
916
+ ],
917
+ },
918
+ months: {
919
+ shorthand: [
920
+ "Jan",
921
+ "Feb",
922
+ "Mar",
923
+ "Apr",
924
+ "Maj",
925
+ "Jun",
926
+ "Jul",
927
+ "Aŭg",
928
+ "Sep",
929
+ "Okt",
930
+ "Nov",
931
+ "Dec",
932
+ ],
933
+ longhand: [
934
+ "januaro",
935
+ "februaro",
936
+ "marto",
937
+ "aprilo",
938
+ "majo",
939
+ "junio",
940
+ "julio",
941
+ "aŭgusto",
942
+ "septembro",
943
+ "oktobro",
944
+ "novembro",
945
+ "decembro",
946
+ ],
947
+ },
948
+ ordinal: function () {
949
+ return "-a";
950
+ },
951
+ time_24hr: true,
952
+ };
953
+ fp$d.l10ns.eo = Esperanto;
954
+ fp$d.l10ns;
955
+
956
+ var fp$e = typeof window !== "undefined" && window.flatpickr !== undefined
957
+ ? window.flatpickr
958
+ : {
959
+ l10ns: {},
960
+ };
961
+ var Spanish = {
962
+ weekdays: {
963
+ shorthand: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"],
964
+ longhand: [
965
+ "Domingo",
966
+ "Lunes",
967
+ "Martes",
968
+ "Miércoles",
969
+ "Jueves",
970
+ "Viernes",
971
+ "Sábado",
972
+ ],
973
+ },
974
+ months: {
975
+ shorthand: [
976
+ "Ene",
977
+ "Feb",
978
+ "Mar",
979
+ "Abr",
980
+ "May",
981
+ "Jun",
982
+ "Jul",
983
+ "Ago",
984
+ "Sep",
985
+ "Oct",
986
+ "Nov",
987
+ "Dic",
988
+ ],
989
+ longhand: [
990
+ "Enero",
991
+ "Febrero",
992
+ "Marzo",
993
+ "Abril",
994
+ "Mayo",
995
+ "Junio",
996
+ "Julio",
997
+ "Agosto",
998
+ "Septiembre",
999
+ "Octubre",
1000
+ "Noviembre",
1001
+ "Diciembre",
1002
+ ],
1003
+ },
1004
+ ordinal: function () {
1005
+ return "º";
1006
+ },
1007
+ firstDayOfWeek: 1,
1008
+ rangeSeparator: " a ",
1009
+ time_24hr: true,
1010
+ };
1011
+ fp$e.l10ns.es = Spanish;
1012
+ fp$e.l10ns;
1013
+
1014
+ var fp$f = typeof window !== "undefined" && window.flatpickr !== undefined
1015
+ ? window.flatpickr
1016
+ : {
1017
+ l10ns: {},
1018
+ };
1019
+ var Estonian = {
1020
+ weekdays: {
1021
+ shorthand: ["P", "E", "T", "K", "N", "R", "L"],
1022
+ longhand: [
1023
+ "Pühapäev",
1024
+ "Esmaspäev",
1025
+ "Teisipäev",
1026
+ "Kolmapäev",
1027
+ "Neljapäev",
1028
+ "Reede",
1029
+ "Laupäev",
1030
+ ],
1031
+ },
1032
+ months: {
1033
+ shorthand: [
1034
+ "Jaan",
1035
+ "Veebr",
1036
+ "Märts",
1037
+ "Apr",
1038
+ "Mai",
1039
+ "Juuni",
1040
+ "Juuli",
1041
+ "Aug",
1042
+ "Sept",
1043
+ "Okt",
1044
+ "Nov",
1045
+ "Dets",
1046
+ ],
1047
+ longhand: [
1048
+ "Jaanuar",
1049
+ "Veebruar",
1050
+ "Märts",
1051
+ "Aprill",
1052
+ "Mai",
1053
+ "Juuni",
1054
+ "Juuli",
1055
+ "August",
1056
+ "September",
1057
+ "Oktoober",
1058
+ "November",
1059
+ "Detsember",
1060
+ ],
1061
+ },
1062
+ firstDayOfWeek: 1,
1063
+ ordinal: function () {
1064
+ return ".";
1065
+ },
1066
+ weekAbbreviation: "Näd",
1067
+ rangeSeparator: " kuni ",
1068
+ scrollTitle: "Keri, et suurendada",
1069
+ toggleTitle: "Klõpsa, et vahetada",
1070
+ time_24hr: true,
1071
+ };
1072
+ fp$f.l10ns.et = Estonian;
1073
+ fp$f.l10ns;
1074
+
1075
+ var fp$g = typeof window !== "undefined" && window.flatpickr !== undefined
1076
+ ? window.flatpickr
1077
+ : {
1078
+ l10ns: {},
1079
+ };
1080
+ var Persian = {
1081
+ weekdays: {
1082
+ shorthand: ["یک", "دو", "سه", "چهار", "پنج", "جمعه", "شنبه"],
1083
+ longhand: [
1084
+ "یک‌شنبه",
1085
+ "دوشنبه",
1086
+ "سه‌شنبه",
1087
+ "چهارشنبه",
1088
+ "پنچ‌شنبه",
1089
+ "جمعه",
1090
+ "شنبه",
1091
+ ],
1092
+ },
1093
+ months: {
1094
+ shorthand: [
1095
+ "ژانویه",
1096
+ "فوریه",
1097
+ "مارس",
1098
+ "آوریل",
1099
+ "مه",
1100
+ "ژوئن",
1101
+ "ژوئیه",
1102
+ "اوت",
1103
+ "سپتامبر",
1104
+ "اکتبر",
1105
+ "نوامبر",
1106
+ "دسامبر",
1107
+ ],
1108
+ longhand: [
1109
+ "ژانویه",
1110
+ "فوریه",
1111
+ "مارس",
1112
+ "آوریل",
1113
+ "مه",
1114
+ "ژوئن",
1115
+ "ژوئیه",
1116
+ "اوت",
1117
+ "سپتامبر",
1118
+ "اکتبر",
1119
+ "نوامبر",
1120
+ "دسامبر",
1121
+ ],
1122
+ },
1123
+ firstDayOfWeek: 6,
1124
+ ordinal: function () {
1125
+ return "";
1126
+ },
1127
+ };
1128
+ fp$g.l10ns.fa = Persian;
1129
+ fp$g.l10ns;
1130
+
1131
+ var fp$h = typeof window !== "undefined" && window.flatpickr !== undefined
1132
+ ? window.flatpickr
1133
+ : {
1134
+ l10ns: {},
1135
+ };
1136
+ var Finnish = {
1137
+ firstDayOfWeek: 1,
1138
+ weekdays: {
1139
+ shorthand: ["su", "ma", "ti", "ke", "to", "pe", "la"],
1140
+ longhand: [
1141
+ "sunnuntai",
1142
+ "maanantai",
1143
+ "tiistai",
1144
+ "keskiviikko",
1145
+ "torstai",
1146
+ "perjantai",
1147
+ "lauantai",
1148
+ ],
1149
+ },
1150
+ months: {
1151
+ shorthand: [
1152
+ "tammi",
1153
+ "helmi",
1154
+ "maalis",
1155
+ "huhti",
1156
+ "touko",
1157
+ "kesä",
1158
+ "heinä",
1159
+ "elo",
1160
+ "syys",
1161
+ "loka",
1162
+ "marras",
1163
+ "joulu",
1164
+ ],
1165
+ longhand: [
1166
+ "tammikuu",
1167
+ "helmikuu",
1168
+ "maaliskuu",
1169
+ "huhtikuu",
1170
+ "toukokuu",
1171
+ "kesäkuu",
1172
+ "heinäkuu",
1173
+ "elokuu",
1174
+ "syyskuu",
1175
+ "lokakuu",
1176
+ "marraskuu",
1177
+ "joulukuu",
1178
+ ],
1179
+ },
1180
+ ordinal: function () {
1181
+ return ".";
1182
+ },
1183
+ time_24hr: true,
1184
+ };
1185
+ fp$h.l10ns.fi = Finnish;
1186
+ fp$h.l10ns;
1187
+
1188
+ var fp$i = typeof window !== "undefined" && window.flatpickr !== undefined
1189
+ ? window.flatpickr
1190
+ : {
1191
+ l10ns: {},
1192
+ };
1193
+ var Faroese = {
1194
+ weekdays: {
1195
+ shorthand: ["Sun", "Mán", "Týs", "Mik", "Hós", "Frí", "Ley"],
1196
+ longhand: [
1197
+ "Sunnudagur",
1198
+ "Mánadagur",
1199
+ "Týsdagur",
1200
+ "Mikudagur",
1201
+ "Hósdagur",
1202
+ "Fríggjadagur",
1203
+ "Leygardagur",
1204
+ ],
1205
+ },
1206
+ months: {
1207
+ shorthand: [
1208
+ "Jan",
1209
+ "Feb",
1210
+ "Mar",
1211
+ "Apr",
1212
+ "Mai",
1213
+ "Jun",
1214
+ "Jul",
1215
+ "Aug",
1216
+ "Sep",
1217
+ "Okt",
1218
+ "Nov",
1219
+ "Des",
1220
+ ],
1221
+ longhand: [
1222
+ "Januar",
1223
+ "Februar",
1224
+ "Mars",
1225
+ "Apríl",
1226
+ "Mai",
1227
+ "Juni",
1228
+ "Juli",
1229
+ "August",
1230
+ "Septembur",
1231
+ "Oktobur",
1232
+ "Novembur",
1233
+ "Desembur",
1234
+ ],
1235
+ },
1236
+ ordinal: function () {
1237
+ return ".";
1238
+ },
1239
+ firstDayOfWeek: 1,
1240
+ rangeSeparator: " til ",
1241
+ weekAbbreviation: "vika",
1242
+ scrollTitle: "Rulla fyri at broyta",
1243
+ toggleTitle: "Trýst fyri at skifta",
1244
+ yearAriaLabel: "Ár",
1245
+ time_24hr: true,
1246
+ };
1247
+ fp$i.l10ns.fo = Faroese;
1248
+ fp$i.l10ns;
1249
+
1250
+ var fp$j = typeof window !== "undefined" && window.flatpickr !== undefined
1251
+ ? window.flatpickr
1252
+ : {
1253
+ l10ns: {},
1254
+ };
1255
+ var French = {
1256
+ firstDayOfWeek: 1,
1257
+ weekdays: {
1258
+ shorthand: ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"],
1259
+ longhand: [
1260
+ "dimanche",
1261
+ "lundi",
1262
+ "mardi",
1263
+ "mercredi",
1264
+ "jeudi",
1265
+ "vendredi",
1266
+ "samedi",
1267
+ ],
1268
+ },
1269
+ months: {
1270
+ shorthand: [
1271
+ "janv",
1272
+ "févr",
1273
+ "mars",
1274
+ "avr",
1275
+ "mai",
1276
+ "juin",
1277
+ "juil",
1278
+ "août",
1279
+ "sept",
1280
+ "oct",
1281
+ "nov",
1282
+ "déc",
1283
+ ],
1284
+ longhand: [
1285
+ "janvier",
1286
+ "février",
1287
+ "mars",
1288
+ "avril",
1289
+ "mai",
1290
+ "juin",
1291
+ "juillet",
1292
+ "août",
1293
+ "septembre",
1294
+ "octobre",
1295
+ "novembre",
1296
+ "décembre",
1297
+ ],
1298
+ },
1299
+ ordinal: function (nth) {
1300
+ if (nth > 1)
1301
+ return "";
1302
+ return "er";
1303
+ },
1304
+ rangeSeparator: " au ",
1305
+ weekAbbreviation: "Sem",
1306
+ scrollTitle: "Défiler pour augmenter la valeur",
1307
+ toggleTitle: "Cliquer pour basculer",
1308
+ time_24hr: true,
1309
+ };
1310
+ fp$j.l10ns.fr = French;
1311
+ fp$j.l10ns;
1312
+
1313
+ var fp$k = typeof window !== "undefined" && window.flatpickr !== undefined
1314
+ ? window.flatpickr
1315
+ : {
1316
+ l10ns: {},
1317
+ };
1318
+ var Greek = {
1319
+ weekdays: {
1320
+ shorthand: ["Κυ", "Δε", "Τρ", "Τε", "Πέ", "Πα", "Σά"],
1321
+ longhand: [
1322
+ "Κυριακή",
1323
+ "Δευτέρα",
1324
+ "Τρίτη",
1325
+ "Τετάρτη",
1326
+ "Πέμπτη",
1327
+ "Παρασκευή",
1328
+ "Σάββατο",
1329
+ ],
1330
+ },
1331
+ months: {
1332
+ shorthand: [
1333
+ "Ιαν",
1334
+ "Φεβ",
1335
+ "Μάρ",
1336
+ "Απρ",
1337
+ "Μάι",
1338
+ "Ιούν",
1339
+ "Ιούλ",
1340
+ "Αύγ",
1341
+ "Σεπ",
1342
+ "Οκτ",
1343
+ "Νοέ",
1344
+ "Δεκ",
1345
+ ],
1346
+ longhand: [
1347
+ "Ιανουάριος",
1348
+ "Φεβρουάριος",
1349
+ "Μάρτιος",
1350
+ "Απρίλιος",
1351
+ "Μάιος",
1352
+ "Ιούνιος",
1353
+ "Ιούλιος",
1354
+ "Αύγουστος",
1355
+ "Σεπτέμβριος",
1356
+ "Οκτώβριος",
1357
+ "Νοέμβριος",
1358
+ "Δεκέμβριος",
1359
+ ],
1360
+ },
1361
+ firstDayOfWeek: 1,
1362
+ ordinal: function () {
1363
+ return "";
1364
+ },
1365
+ weekAbbreviation: "Εβδ",
1366
+ rangeSeparator: " έως ",
1367
+ scrollTitle: "Μετακυλήστε για προσαύξηση",
1368
+ toggleTitle: "Κάντε κλικ για αλλαγή",
1369
+ amPM: ["ΠΜ", "ΜΜ"],
1370
+ yearAriaLabel: "χρόνος",
1371
+ monthAriaLabel: "μήνας",
1372
+ hourAriaLabel: "ώρα",
1373
+ minuteAriaLabel: "λεπτό",
1374
+ };
1375
+ fp$k.l10ns.gr = Greek;
1376
+ fp$k.l10ns;
1377
+
1378
+ var fp$l = typeof window !== "undefined" && window.flatpickr !== undefined
1379
+ ? window.flatpickr
1380
+ : {
1381
+ l10ns: {},
1382
+ };
1383
+ var Hebrew = {
1384
+ weekdays: {
1385
+ shorthand: ["א", "ב", "ג", "ד", "ה", "ו", "ש"],
1386
+ longhand: ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת"],
1387
+ },
1388
+ months: {
1389
+ shorthand: [
1390
+ "ינו׳",
1391
+ "פבר׳",
1392
+ "מרץ",
1393
+ "אפר׳",
1394
+ "מאי",
1395
+ "יוני",
1396
+ "יולי",
1397
+ "אוג׳",
1398
+ "ספט׳",
1399
+ "אוק׳",
1400
+ "נוב׳",
1401
+ "דצמ׳",
1402
+ ],
1403
+ longhand: [
1404
+ "ינואר",
1405
+ "פברואר",
1406
+ "מרץ",
1407
+ "אפריל",
1408
+ "מאי",
1409
+ "יוני",
1410
+ "יולי",
1411
+ "אוגוסט",
1412
+ "ספטמבר",
1413
+ "אוקטובר",
1414
+ "נובמבר",
1415
+ "דצמבר",
1416
+ ],
1417
+ },
1418
+ rangeSeparator: " אל ",
1419
+ time_24hr: true,
1420
+ };
1421
+ fp$l.l10ns.he = Hebrew;
1422
+ fp$l.l10ns;
1423
+
1424
+ var fp$m = typeof window !== "undefined" && window.flatpickr !== undefined
1425
+ ? window.flatpickr
1426
+ : {
1427
+ l10ns: {},
1428
+ };
1429
+ var Hindi = {
1430
+ weekdays: {
1431
+ shorthand: ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"],
1432
+ longhand: [
1433
+ "रविवार",
1434
+ "सोमवार",
1435
+ "मंगलवार",
1436
+ "बुधवार",
1437
+ "गुरुवार",
1438
+ "शुक्रवार",
1439
+ "शनिवार",
1440
+ ],
1441
+ },
1442
+ months: {
1443
+ shorthand: [
1444
+ "जन",
1445
+ "फर",
1446
+ "मार्च",
1447
+ "अप्रेल",
1448
+ "मई",
1449
+ "जून",
1450
+ "जूलाई",
1451
+ "अग",
1452
+ "सित",
1453
+ "अक्ट",
1454
+ "नव",
1455
+ "दि",
1456
+ ],
1457
+ longhand: [
1458
+ "जनवरी ",
1459
+ "फरवरी",
1460
+ "मार्च",
1461
+ "अप्रेल",
1462
+ "मई",
1463
+ "जून",
1464
+ "जूलाई",
1465
+ "अगस्त ",
1466
+ "सितम्बर",
1467
+ "अक्टूबर",
1468
+ "नवम्बर",
1469
+ "दिसम्बर",
1470
+ ],
1471
+ },
1472
+ };
1473
+ fp$m.l10ns.hi = Hindi;
1474
+ fp$m.l10ns;
1475
+
1476
+ var fp$n = typeof window !== "undefined" && window.flatpickr !== undefined
1477
+ ? window.flatpickr
1478
+ : {
1479
+ l10ns: {},
1480
+ };
1481
+ var Croatian = {
1482
+ firstDayOfWeek: 1,
1483
+ weekdays: {
1484
+ shorthand: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
1485
+ longhand: [
1486
+ "Nedjelja",
1487
+ "Ponedjeljak",
1488
+ "Utorak",
1489
+ "Srijeda",
1490
+ "Četvrtak",
1491
+ "Petak",
1492
+ "Subota",
1493
+ ],
1494
+ },
1495
+ months: {
1496
+ shorthand: [
1497
+ "Sij",
1498
+ "Velj",
1499
+ "Ožu",
1500
+ "Tra",
1501
+ "Svi",
1502
+ "Lip",
1503
+ "Srp",
1504
+ "Kol",
1505
+ "Ruj",
1506
+ "Lis",
1507
+ "Stu",
1508
+ "Pro",
1509
+ ],
1510
+ longhand: [
1511
+ "Siječanj",
1512
+ "Veljača",
1513
+ "Ožujak",
1514
+ "Travanj",
1515
+ "Svibanj",
1516
+ "Lipanj",
1517
+ "Srpanj",
1518
+ "Kolovoz",
1519
+ "Rujan",
1520
+ "Listopad",
1521
+ "Studeni",
1522
+ "Prosinac",
1523
+ ],
1524
+ },
1525
+ time_24hr: true,
1526
+ };
1527
+ fp$n.l10ns.hr = Croatian;
1528
+ fp$n.l10ns;
1529
+
1530
+ var fp$o = typeof window !== "undefined" && window.flatpickr !== undefined
1531
+ ? window.flatpickr
1532
+ : {
1533
+ l10ns: {},
1534
+ };
1535
+ var Hungarian = {
1536
+ firstDayOfWeek: 1,
1537
+ weekdays: {
1538
+ shorthand: ["V", "H", "K", "Sz", "Cs", "P", "Szo"],
1539
+ longhand: [
1540
+ "Vasárnap",
1541
+ "Hétfő",
1542
+ "Kedd",
1543
+ "Szerda",
1544
+ "Csütörtök",
1545
+ "Péntek",
1546
+ "Szombat",
1547
+ ],
1548
+ },
1549
+ months: {
1550
+ shorthand: [
1551
+ "Jan",
1552
+ "Feb",
1553
+ "Már",
1554
+ "Ápr",
1555
+ "Máj",
1556
+ "Jún",
1557
+ "Júl",
1558
+ "Aug",
1559
+ "Szep",
1560
+ "Okt",
1561
+ "Nov",
1562
+ "Dec",
1563
+ ],
1564
+ longhand: [
1565
+ "Január",
1566
+ "Február",
1567
+ "Március",
1568
+ "Április",
1569
+ "Május",
1570
+ "Június",
1571
+ "Július",
1572
+ "Augusztus",
1573
+ "Szeptember",
1574
+ "Október",
1575
+ "November",
1576
+ "December",
1577
+ ],
1578
+ },
1579
+ ordinal: function () {
1580
+ return ".";
1581
+ },
1582
+ weekAbbreviation: "Hét",
1583
+ scrollTitle: "Görgessen",
1584
+ toggleTitle: "Kattintson a váltáshoz",
1585
+ rangeSeparator: " - ",
1586
+ time_24hr: true,
1587
+ };
1588
+ fp$o.l10ns.hu = Hungarian;
1589
+ fp$o.l10ns;
1590
+
1591
+ var fp$p = typeof window !== "undefined" && window.flatpickr !== undefined
1592
+ ? window.flatpickr
1593
+ : {
1594
+ l10ns: {},
1595
+ };
1596
+ var Armenian = {
1597
+ weekdays: {
1598
+ shorthand: ["Կիր", "Երկ", "Երք", "Չրք", "Հնգ", "Ուրբ", "Շբթ"],
1599
+ longhand: [
1600
+ "Կիրակի",
1601
+ "Եկուշաբթի",
1602
+ "Երեքշաբթի",
1603
+ "Չորեքշաբթի",
1604
+ "Հինգշաբթի",
1605
+ "Ուրբաթ",
1606
+ "Շաբաթ",
1607
+ ],
1608
+ },
1609
+ months: {
1610
+ shorthand: [
1611
+ "Հնվ",
1612
+ "Փտր",
1613
+ "Մար",
1614
+ "Ապր",
1615
+ "Մայ",
1616
+ "Հնս",
1617
+ "Հլս",
1618
+ "Օգս",
1619
+ "Սեպ",
1620
+ "Հոկ",
1621
+ "Նմբ",
1622
+ "Դեկ",
1623
+ ],
1624
+ longhand: [
1625
+ "Հունվար",
1626
+ "Փետրվար",
1627
+ "Մարտ",
1628
+ "Ապրիլ",
1629
+ "Մայիս",
1630
+ "Հունիս",
1631
+ "Հուլիս",
1632
+ "Օգոստոս",
1633
+ "Սեպտեմբեր",
1634
+ "Հոկտեմբեր",
1635
+ "Նոյեմբեր",
1636
+ "Դեկտեմբեր",
1637
+ ],
1638
+ },
1639
+ firstDayOfWeek: 1,
1640
+ ordinal: function () {
1641
+ return "";
1642
+ },
1643
+ rangeSeparator: " — ",
1644
+ weekAbbreviation: "ՇԲՏ",
1645
+ scrollTitle: "Ոլորեք՝ մեծացնելու համար",
1646
+ toggleTitle: "Սեղմեք՝ փոխելու համար",
1647
+ amPM: ["ՄԿ", "ԿՀ"],
1648
+ yearAriaLabel: "Տարի",
1649
+ monthAriaLabel: "Ամիս",
1650
+ hourAriaLabel: "Ժամ",
1651
+ minuteAriaLabel: "Րոպե",
1652
+ time_24hr: true,
1653
+ };
1654
+ fp$p.l10ns.hy = Armenian;
1655
+ fp$p.l10ns;
1656
+
1657
+ var fp$q = typeof window !== "undefined" && window.flatpickr !== undefined
1658
+ ? window.flatpickr
1659
+ : {
1660
+ l10ns: {},
1661
+ };
1662
+ var Indonesian = {
1663
+ weekdays: {
1664
+ shorthand: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
1665
+ longhand: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"],
1666
+ },
1667
+ months: {
1668
+ shorthand: [
1669
+ "Jan",
1670
+ "Feb",
1671
+ "Mar",
1672
+ "Apr",
1673
+ "Mei",
1674
+ "Jun",
1675
+ "Jul",
1676
+ "Agu",
1677
+ "Sep",
1678
+ "Okt",
1679
+ "Nov",
1680
+ "Des",
1681
+ ],
1682
+ longhand: [
1683
+ "Januari",
1684
+ "Februari",
1685
+ "Maret",
1686
+ "April",
1687
+ "Mei",
1688
+ "Juni",
1689
+ "Juli",
1690
+ "Agustus",
1691
+ "September",
1692
+ "Oktober",
1693
+ "November",
1694
+ "Desember",
1695
+ ],
1696
+ },
1697
+ firstDayOfWeek: 1,
1698
+ ordinal: function () {
1699
+ return "";
1700
+ },
1701
+ time_24hr: true,
1702
+ rangeSeparator: " - ",
1703
+ };
1704
+ fp$q.l10ns.id = Indonesian;
1705
+ fp$q.l10ns;
1706
+
1707
+ var fp$r = typeof window !== "undefined" && window.flatpickr !== undefined
1708
+ ? window.flatpickr
1709
+ : {
1710
+ l10ns: {},
1711
+ };
1712
+ var Icelandic = {
1713
+ weekdays: {
1714
+ shorthand: ["Sun", "Mán", "Þri", "Mið", "Fim", "Fös", "Lau"],
1715
+ longhand: [
1716
+ "Sunnudagur",
1717
+ "Mánudagur",
1718
+ "Þriðjudagur",
1719
+ "Miðvikudagur",
1720
+ "Fimmtudagur",
1721
+ "Föstudagur",
1722
+ "Laugardagur",
1723
+ ],
1724
+ },
1725
+ months: {
1726
+ shorthand: [
1727
+ "Jan",
1728
+ "Feb",
1729
+ "Mar",
1730
+ "Apr",
1731
+ "Maí",
1732
+ "Jún",
1733
+ "Júl",
1734
+ "Ágú",
1735
+ "Sep",
1736
+ "Okt",
1737
+ "Nóv",
1738
+ "Des",
1739
+ ],
1740
+ longhand: [
1741
+ "Janúar",
1742
+ "Febrúar",
1743
+ "Mars",
1744
+ "Apríl",
1745
+ "Maí",
1746
+ "Júní",
1747
+ "Júlí",
1748
+ "Ágúst",
1749
+ "September",
1750
+ "Október",
1751
+ "Nóvember",
1752
+ "Desember",
1753
+ ],
1754
+ },
1755
+ ordinal: function () {
1756
+ return ".";
1757
+ },
1758
+ firstDayOfWeek: 1,
1759
+ rangeSeparator: " til ",
1760
+ weekAbbreviation: "vika",
1761
+ yearAriaLabel: "Ár",
1762
+ time_24hr: true,
1763
+ };
1764
+ fp$r.l10ns.is = Icelandic;
1765
+ fp$r.l10ns;
1766
+
1767
+ var fp$s = typeof window !== "undefined" && window.flatpickr !== undefined
1768
+ ? window.flatpickr
1769
+ : {
1770
+ l10ns: {},
1771
+ };
1772
+ var Italian = {
1773
+ weekdays: {
1774
+ shorthand: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
1775
+ longhand: [
1776
+ "Domenica",
1777
+ "Lunedì",
1778
+ "Martedì",
1779
+ "Mercoledì",
1780
+ "Giovedì",
1781
+ "Venerdì",
1782
+ "Sabato",
1783
+ ],
1784
+ },
1785
+ months: {
1786
+ shorthand: [
1787
+ "Gen",
1788
+ "Feb",
1789
+ "Mar",
1790
+ "Apr",
1791
+ "Mag",
1792
+ "Giu",
1793
+ "Lug",
1794
+ "Ago",
1795
+ "Set",
1796
+ "Ott",
1797
+ "Nov",
1798
+ "Dic",
1799
+ ],
1800
+ longhand: [
1801
+ "Gennaio",
1802
+ "Febbraio",
1803
+ "Marzo",
1804
+ "Aprile",
1805
+ "Maggio",
1806
+ "Giugno",
1807
+ "Luglio",
1808
+ "Agosto",
1809
+ "Settembre",
1810
+ "Ottobre",
1811
+ "Novembre",
1812
+ "Dicembre",
1813
+ ],
1814
+ },
1815
+ firstDayOfWeek: 1,
1816
+ ordinal: function () { return "°"; },
1817
+ rangeSeparator: " al ",
1818
+ weekAbbreviation: "Se",
1819
+ scrollTitle: "Scrolla per aumentare",
1820
+ toggleTitle: "Clicca per cambiare",
1821
+ time_24hr: true,
1822
+ };
1823
+ fp$s.l10ns.it = Italian;
1824
+ fp$s.l10ns;
1825
+
1826
+ var fp$t = typeof window !== "undefined" && window.flatpickr !== undefined
1827
+ ? window.flatpickr
1828
+ : {
1829
+ l10ns: {},
1830
+ };
1831
+ var Japanese = {
1832
+ weekdays: {
1833
+ shorthand: ["日", "月", "火", "水", "木", "金", "土"],
1834
+ longhand: [
1835
+ "日曜日",
1836
+ "月曜日",
1837
+ "火曜日",
1838
+ "水曜日",
1839
+ "木曜日",
1840
+ "金曜日",
1841
+ "土曜日",
1842
+ ],
1843
+ },
1844
+ months: {
1845
+ shorthand: [
1846
+ "1月",
1847
+ "2月",
1848
+ "3月",
1849
+ "4月",
1850
+ "5月",
1851
+ "6月",
1852
+ "7月",
1853
+ "8月",
1854
+ "9月",
1855
+ "10月",
1856
+ "11月",
1857
+ "12月",
1858
+ ],
1859
+ longhand: [
1860
+ "1月",
1861
+ "2月",
1862
+ "3月",
1863
+ "4月",
1864
+ "5月",
1865
+ "6月",
1866
+ "7月",
1867
+ "8月",
1868
+ "9月",
1869
+ "10月",
1870
+ "11月",
1871
+ "12月",
1872
+ ],
1873
+ },
1874
+ time_24hr: true,
1875
+ rangeSeparator: " から ",
1876
+ monthAriaLabel: "月",
1877
+ amPM: ["午前", "午後"],
1878
+ yearAriaLabel: "年",
1879
+ hourAriaLabel: "時間",
1880
+ minuteAriaLabel: "分",
1881
+ };
1882
+ fp$t.l10ns.ja = Japanese;
1883
+ fp$t.l10ns;
1884
+
1885
+ var fp$u = typeof window !== "undefined" && window.flatpickr !== undefined
1886
+ ? window.flatpickr
1887
+ : {
1888
+ l10ns: {},
1889
+ };
1890
+ var Georgian = {
1891
+ weekdays: {
1892
+ shorthand: ["კვ", "ორ", "სა", "ოთ", "ხუ", "პა", "შა"],
1893
+ longhand: [
1894
+ "კვირა",
1895
+ "ორშაბათი",
1896
+ "სამშაბათი",
1897
+ "ოთხშაბათი",
1898
+ "ხუთშაბათი",
1899
+ "პარასკევი",
1900
+ "შაბათი",
1901
+ ],
1902
+ },
1903
+ months: {
1904
+ shorthand: [
1905
+ "იან",
1906
+ "თებ",
1907
+ "მარ",
1908
+ "აპრ",
1909
+ "მაი",
1910
+ "ივნ",
1911
+ "ივლ",
1912
+ "აგვ",
1913
+ "სექ",
1914
+ "ოქტ",
1915
+ "ნოე",
1916
+ "დეკ",
1917
+ ],
1918
+ longhand: [
1919
+ "იანვარი",
1920
+ "თებერვალი",
1921
+ "მარტი",
1922
+ "აპრილი",
1923
+ "მაისი",
1924
+ "ივნისი",
1925
+ "ივლისი",
1926
+ "აგვისტო",
1927
+ "სექტემბერი",
1928
+ "ოქტომბერი",
1929
+ "ნოემბერი",
1930
+ "დეკემბერი",
1931
+ ],
1932
+ },
1933
+ firstDayOfWeek: 1,
1934
+ ordinal: function () {
1935
+ return "";
1936
+ },
1937
+ rangeSeparator: " — ",
1938
+ weekAbbreviation: "კვ.",
1939
+ scrollTitle: "დასქროლეთ გასადიდებლად",
1940
+ toggleTitle: "დააკლიკეთ გადართვისთვის",
1941
+ amPM: ["AM", "PM"],
1942
+ yearAriaLabel: "წელი",
1943
+ time_24hr: true,
1944
+ };
1945
+ fp$u.l10ns.ka = Georgian;
1946
+ fp$u.l10ns;
1947
+
1948
+ var fp$v = typeof window !== "undefined" && window.flatpickr !== undefined
1949
+ ? window.flatpickr
1950
+ : {
1951
+ l10ns: {},
1952
+ };
1953
+ var Korean = {
1954
+ weekdays: {
1955
+ shorthand: ["일", "월", "화", "수", "목", "금", "토"],
1956
+ longhand: [
1957
+ "일요일",
1958
+ "월요일",
1959
+ "화요일",
1960
+ "수요일",
1961
+ "목요일",
1962
+ "금요일",
1963
+ "토요일",
1964
+ ],
1965
+ },
1966
+ months: {
1967
+ shorthand: [
1968
+ "1월",
1969
+ "2월",
1970
+ "3월",
1971
+ "4월",
1972
+ "5월",
1973
+ "6월",
1974
+ "7월",
1975
+ "8월",
1976
+ "9월",
1977
+ "10월",
1978
+ "11월",
1979
+ "12월",
1980
+ ],
1981
+ longhand: [
1982
+ "1월",
1983
+ "2월",
1984
+ "3월",
1985
+ "4월",
1986
+ "5월",
1987
+ "6월",
1988
+ "7월",
1989
+ "8월",
1990
+ "9월",
1991
+ "10월",
1992
+ "11월",
1993
+ "12월",
1994
+ ],
1995
+ },
1996
+ ordinal: function () {
1997
+ return "일";
1998
+ },
1999
+ rangeSeparator: " ~ ",
2000
+ amPM: ["오전", "오후"],
2001
+ };
2002
+ fp$v.l10ns.ko = Korean;
2003
+ fp$v.l10ns;
2004
+
2005
+ var fp$w = typeof window !== "undefined" && window.flatpickr !== undefined
2006
+ ? window.flatpickr
2007
+ : {
2008
+ l10ns: {},
2009
+ };
2010
+ var Khmer = {
2011
+ weekdays: {
2012
+ shorthand: ["អាទិត្យ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រហស.", "សុក្រ", "សៅរ៍"],
2013
+ longhand: [
2014
+ "អាទិត្យ",
2015
+ "ចន្ទ",
2016
+ "អង្គារ",
2017
+ "ពុធ",
2018
+ "ព្រហស្បតិ៍",
2019
+ "សុក្រ",
2020
+ "សៅរ៍",
2021
+ ],
2022
+ },
2023
+ months: {
2024
+ shorthand: [
2025
+ "មករា",
2026
+ "កុម្ភះ",
2027
+ "មីនា",
2028
+ "មេសា",
2029
+ "ឧសភា",
2030
+ "មិថុនា",
2031
+ "កក្កដា",
2032
+ "សីហា",
2033
+ "កញ្ញា",
2034
+ "តុលា",
2035
+ "វិច្ឆិកា",
2036
+ "ធ្នូ",
2037
+ ],
2038
+ longhand: [
2039
+ "មករា",
2040
+ "កុម្ភះ",
2041
+ "មីនា",
2042
+ "មេសា",
2043
+ "ឧសភា",
2044
+ "មិថុនា",
2045
+ "កក្កដា",
2046
+ "សីហា",
2047
+ "កញ្ញា",
2048
+ "តុលា",
2049
+ "វិច្ឆិកា",
2050
+ "ធ្នូ",
2051
+ ],
2052
+ },
2053
+ ordinal: function () {
2054
+ return "";
2055
+ },
2056
+ firstDayOfWeek: 1,
2057
+ rangeSeparator: " ដល់ ",
2058
+ weekAbbreviation: "សប្តាហ៍",
2059
+ scrollTitle: "រំកិលដើម្បីបង្កើន",
2060
+ toggleTitle: "ចុចដើម្បីផ្លាស់ប្ដូរ",
2061
+ yearAriaLabel: "ឆ្នាំ",
2062
+ time_24hr: true,
2063
+ };
2064
+ fp$w.l10ns.km = Khmer;
2065
+ fp$w.l10ns;
2066
+
2067
+ var fp$x = typeof window !== "undefined" && window.flatpickr !== undefined
2068
+ ? window.flatpickr
2069
+ : {
2070
+ l10ns: {},
2071
+ };
2072
+ var Kazakh = {
2073
+ weekdays: {
2074
+ shorthand: ["Жс", "Дс", "Сc", "Ср", "Бс", "Жм", "Сб"],
2075
+ longhand: [
2076
+ "Жексенбi",
2077
+ "Дүйсенбi",
2078
+ "Сейсенбi",
2079
+ "Сәрсенбi",
2080
+ "Бейсенбi",
2081
+ "Жұма",
2082
+ "Сенбi",
2083
+ ],
2084
+ },
2085
+ months: {
2086
+ shorthand: [
2087
+ "Қаң",
2088
+ "Ақп",
2089
+ "Нау",
2090
+ "Сәу",
2091
+ "Мам",
2092
+ "Мау",
2093
+ "Шiл",
2094
+ "Там",
2095
+ "Қыр",
2096
+ "Қаз",
2097
+ "Қар",
2098
+ "Жел",
2099
+ ],
2100
+ longhand: [
2101
+ "Қаңтар",
2102
+ "Ақпан",
2103
+ "Наурыз",
2104
+ "Сәуiр",
2105
+ "Мамыр",
2106
+ "Маусым",
2107
+ "Шiлде",
2108
+ "Тамыз",
2109
+ "Қыркүйек",
2110
+ "Қазан",
2111
+ "Қараша",
2112
+ "Желтоқсан",
2113
+ ],
2114
+ },
2115
+ firstDayOfWeek: 1,
2116
+ ordinal: function () {
2117
+ return "";
2118
+ },
2119
+ rangeSeparator: " — ",
2120
+ weekAbbreviation: "Апта",
2121
+ scrollTitle: "Үлкейту үшін айналдырыңыз",
2122
+ toggleTitle: "Ауыстыру үшін басыңыз",
2123
+ amPM: ["ТД", "ТК"],
2124
+ yearAriaLabel: "Жыл",
2125
+ };
2126
+ fp$x.l10ns.kz = Kazakh;
2127
+ fp$x.l10ns;
2128
+
2129
+ var fp$y = typeof window !== "undefined" && window.flatpickr !== undefined
2130
+ ? window.flatpickr
2131
+ : {
2132
+ l10ns: {},
2133
+ };
2134
+ var Lithuanian = {
2135
+ weekdays: {
2136
+ shorthand: ["S", "Pr", "A", "T", "K", "Pn", "Š"],
2137
+ longhand: [
2138
+ "Sekmadienis",
2139
+ "Pirmadienis",
2140
+ "Antradienis",
2141
+ "Trečiadienis",
2142
+ "Ketvirtadienis",
2143
+ "Penktadienis",
2144
+ "Šeštadienis",
2145
+ ],
2146
+ },
2147
+ months: {
2148
+ shorthand: [
2149
+ "Sau",
2150
+ "Vas",
2151
+ "Kov",
2152
+ "Bal",
2153
+ "Geg",
2154
+ "Bir",
2155
+ "Lie",
2156
+ "Rgp",
2157
+ "Rgs",
2158
+ "Spl",
2159
+ "Lap",
2160
+ "Grd",
2161
+ ],
2162
+ longhand: [
2163
+ "Sausis",
2164
+ "Vasaris",
2165
+ "Kovas",
2166
+ "Balandis",
2167
+ "Gegužė",
2168
+ "Birželis",
2169
+ "Liepa",
2170
+ "Rugpjūtis",
2171
+ "Rugsėjis",
2172
+ "Spalis",
2173
+ "Lapkritis",
2174
+ "Gruodis",
2175
+ ],
2176
+ },
2177
+ firstDayOfWeek: 1,
2178
+ ordinal: function () {
2179
+ return "-a";
2180
+ },
2181
+ rangeSeparator: " iki ",
2182
+ weekAbbreviation: "Sav",
2183
+ scrollTitle: "Keisti laiką pelės rateliu",
2184
+ toggleTitle: "Perjungti laiko formatą",
2185
+ time_24hr: true,
2186
+ };
2187
+ fp$y.l10ns.lt = Lithuanian;
2188
+ fp$y.l10ns;
2189
+
2190
+ var fp$z = typeof window !== "undefined" && window.flatpickr !== undefined
2191
+ ? window.flatpickr
2192
+ : {
2193
+ l10ns: {},
2194
+ };
2195
+ var Latvian = {
2196
+ firstDayOfWeek: 1,
2197
+ weekdays: {
2198
+ shorthand: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "Se"],
2199
+ longhand: [
2200
+ "Svētdiena",
2201
+ "Pirmdiena",
2202
+ "Otrdiena",
2203
+ "Trešdiena",
2204
+ "Ceturtdiena",
2205
+ "Piektdiena",
2206
+ "Sestdiena",
2207
+ ],
2208
+ },
2209
+ months: {
2210
+ shorthand: [
2211
+ "Jan",
2212
+ "Feb",
2213
+ "Mar",
2214
+ "Apr",
2215
+ "Mai",
2216
+ "Jūn",
2217
+ "Jūl",
2218
+ "Aug",
2219
+ "Sep",
2220
+ "Okt",
2221
+ "Nov",
2222
+ "Dec",
2223
+ ],
2224
+ longhand: [
2225
+ "Janvāris",
2226
+ "Februāris",
2227
+ "Marts",
2228
+ "Aprīlis",
2229
+ "Maijs",
2230
+ "Jūnijs",
2231
+ "Jūlijs",
2232
+ "Augusts",
2233
+ "Septembris",
2234
+ "Oktobris",
2235
+ "Novembris",
2236
+ "Decembris",
2237
+ ],
2238
+ },
2239
+ rangeSeparator: " līdz ",
2240
+ time_24hr: true,
2241
+ };
2242
+ fp$z.l10ns.lv = Latvian;
2243
+ fp$z.l10ns;
2244
+
2245
+ var fp$A = typeof window !== "undefined" && window.flatpickr !== undefined
2246
+ ? window.flatpickr
2247
+ : {
2248
+ l10ns: {},
2249
+ };
2250
+ var Macedonian = {
2251
+ weekdays: {
2252
+ shorthand: ["Не", "По", "Вт", "Ср", "Че", "Пе", "Са"],
2253
+ longhand: [
2254
+ "Недела",
2255
+ "Понеделник",
2256
+ "Вторник",
2257
+ "Среда",
2258
+ "Четврток",
2259
+ "Петок",
2260
+ "Сабота",
2261
+ ],
2262
+ },
2263
+ months: {
2264
+ shorthand: [
2265
+ "Јан",
2266
+ "Фев",
2267
+ "Мар",
2268
+ "Апр",
2269
+ "Мај",
2270
+ "Јун",
2271
+ "Јул",
2272
+ "Авг",
2273
+ "Сеп",
2274
+ "Окт",
2275
+ "Ное",
2276
+ "Дек",
2277
+ ],
2278
+ longhand: [
2279
+ "Јануари",
2280
+ "Февруари",
2281
+ "Март",
2282
+ "Април",
2283
+ "Мај",
2284
+ "Јуни",
2285
+ "Јули",
2286
+ "Август",
2287
+ "Септември",
2288
+ "Октомври",
2289
+ "Ноември",
2290
+ "Декември",
2291
+ ],
2292
+ },
2293
+ firstDayOfWeek: 1,
2294
+ weekAbbreviation: "Нед.",
2295
+ rangeSeparator: " до ",
2296
+ time_24hr: true,
2297
+ };
2298
+ fp$A.l10ns.mk = Macedonian;
2299
+ fp$A.l10ns;
2300
+
2301
+ var fp$B = typeof window !== "undefined" && window.flatpickr !== undefined
2302
+ ? window.flatpickr
2303
+ : {
2304
+ l10ns: {},
2305
+ };
2306
+ var Mongolian = {
2307
+ firstDayOfWeek: 1,
2308
+ weekdays: {
2309
+ shorthand: ["Да", "Мя", "Лх", "Пү", "Ба", "Бя", "Ня"],
2310
+ longhand: ["Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба", "Ням"],
2311
+ },
2312
+ months: {
2313
+ shorthand: [
2314
+ "1-р сар",
2315
+ "2-р сар",
2316
+ "3-р сар",
2317
+ "4-р сар",
2318
+ "5-р сар",
2319
+ "6-р сар",
2320
+ "7-р сар",
2321
+ "8-р сар",
2322
+ "9-р сар",
2323
+ "10-р сар",
2324
+ "11-р сар",
2325
+ "12-р сар",
2326
+ ],
2327
+ longhand: [
2328
+ "Нэгдүгээр сар",
2329
+ "Хоёрдугаар сар",
2330
+ "Гуравдугаар сар",
2331
+ "Дөрөвдүгээр сар",
2332
+ "Тавдугаар сар",
2333
+ "Зургаадугаар сар",
2334
+ "Долдугаар сар",
2335
+ "Наймдугаар сар",
2336
+ "Есдүгээр сар",
2337
+ "Аравдугаар сар",
2338
+ "Арваннэгдүгээр сар",
2339
+ "Арванхоёрдугаар сар",
2340
+ ],
2341
+ },
2342
+ rangeSeparator: "-с ",
2343
+ time_24hr: true,
2344
+ };
2345
+ fp$B.l10ns.mn = Mongolian;
2346
+ fp$B.l10ns;
2347
+
2348
+ var fp$C = typeof window !== "undefined" && window.flatpickr !== undefined
2349
+ ? window.flatpickr
2350
+ : {
2351
+ l10ns: {},
2352
+ };
2353
+ var Malaysian = {
2354
+ weekdays: {
2355
+ shorthand: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
2356
+ longhand: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"],
2357
+ },
2358
+ months: {
2359
+ shorthand: [
2360
+ "Jan",
2361
+ "Feb",
2362
+ "Mac",
2363
+ "Apr",
2364
+ "Mei",
2365
+ "Jun",
2366
+ "Jul",
2367
+ "Ogo",
2368
+ "Sep",
2369
+ "Okt",
2370
+ "Nov",
2371
+ "Dis",
2372
+ ],
2373
+ longhand: [
2374
+ "Januari",
2375
+ "Februari",
2376
+ "Mac",
2377
+ "April",
2378
+ "Mei",
2379
+ "Jun",
2380
+ "Julai",
2381
+ "Ogos",
2382
+ "September",
2383
+ "Oktober",
2384
+ "November",
2385
+ "Disember",
2386
+ ],
2387
+ },
2388
+ firstDayOfWeek: 1,
2389
+ ordinal: function () {
2390
+ return "";
2391
+ },
2392
+ };
2393
+ fp$C.l10ns;
2394
+
2395
+ var fp$D = typeof window !== "undefined" && window.flatpickr !== undefined
2396
+ ? window.flatpickr
2397
+ : {
2398
+ l10ns: {},
2399
+ };
2400
+ var Burmese = {
2401
+ weekdays: {
2402
+ shorthand: ["နွေ", "လာ", "ဂါ", "ဟူး", "ကြာ", "သော", "နေ"],
2403
+ longhand: [
2404
+ "တနင်္ဂနွေ",
2405
+ "တနင်္လာ",
2406
+ "အင်္ဂါ",
2407
+ "ဗုဒ္ဓဟူး",
2408
+ "ကြာသပတေး",
2409
+ "သောကြာ",
2410
+ "စနေ",
2411
+ ],
2412
+ },
2413
+ months: {
2414
+ shorthand: [
2415
+ "ဇန်",
2416
+ "ဖေ",
2417
+ "မတ်",
2418
+ "ပြီ",
2419
+ "မေ",
2420
+ "ဇွန်",
2421
+ "လိုင်",
2422
+ "သြ",
2423
+ "စက်",
2424
+ "အောက်",
2425
+ "နို",
2426
+ "ဒီ",
2427
+ ],
2428
+ longhand: [
2429
+ "ဇန်နဝါရီ",
2430
+ "ဖေဖော်ဝါရီ",
2431
+ "မတ်",
2432
+ "ဧပြီ",
2433
+ "မေ",
2434
+ "ဇွန်",
2435
+ "ဇူလိုင်",
2436
+ "သြဂုတ်",
2437
+ "စက်တင်ဘာ",
2438
+ "အောက်တိုဘာ",
2439
+ "နိုဝင်ဘာ",
2440
+ "ဒီဇင်ဘာ",
2441
+ ],
2442
+ },
2443
+ firstDayOfWeek: 1,
2444
+ ordinal: function () {
2445
+ return "";
2446
+ },
2447
+ time_24hr: true,
2448
+ };
2449
+ fp$D.l10ns.my = Burmese;
2450
+ fp$D.l10ns;
2451
+
2452
+ var fp$E = typeof window !== "undefined" && window.flatpickr !== undefined
2453
+ ? window.flatpickr
2454
+ : {
2455
+ l10ns: {},
2456
+ };
2457
+ var Dutch = {
2458
+ weekdays: {
2459
+ shorthand: ["zo", "ma", "di", "wo", "do", "vr", "za"],
2460
+ longhand: [
2461
+ "zondag",
2462
+ "maandag",
2463
+ "dinsdag",
2464
+ "woensdag",
2465
+ "donderdag",
2466
+ "vrijdag",
2467
+ "zaterdag",
2468
+ ],
2469
+ },
2470
+ months: {
2471
+ shorthand: [
2472
+ "jan",
2473
+ "feb",
2474
+ "mrt",
2475
+ "apr",
2476
+ "mei",
2477
+ "jun",
2478
+ "jul",
2479
+ "aug",
2480
+ "sept",
2481
+ "okt",
2482
+ "nov",
2483
+ "dec",
2484
+ ],
2485
+ longhand: [
2486
+ "januari",
2487
+ "februari",
2488
+ "maart",
2489
+ "april",
2490
+ "mei",
2491
+ "juni",
2492
+ "juli",
2493
+ "augustus",
2494
+ "september",
2495
+ "oktober",
2496
+ "november",
2497
+ "december",
2498
+ ],
2499
+ },
2500
+ firstDayOfWeek: 1,
2501
+ weekAbbreviation: "wk",
2502
+ rangeSeparator: " t/m ",
2503
+ scrollTitle: "Scroll voor volgende / vorige",
2504
+ toggleTitle: "Klik om te wisselen",
2505
+ time_24hr: true,
2506
+ ordinal: function (nth) {
2507
+ if (nth === 1 || nth === 8 || nth >= 20)
2508
+ return "ste";
2509
+ return "de";
2510
+ },
2511
+ };
2512
+ fp$E.l10ns.nl = Dutch;
2513
+ fp$E.l10ns;
2514
+
2515
+ var fp$F = typeof window !== "undefined" && window.flatpickr !== undefined
2516
+ ? window.flatpickr
2517
+ : {
2518
+ l10ns: {},
2519
+ };
2520
+ var NorwegianNynorsk = {
2521
+ weekdays: {
2522
+ shorthand: ["Sø.", "Må.", "Ty.", "On.", "To.", "Fr.", "La."],
2523
+ longhand: [
2524
+ "Søndag",
2525
+ "Måndag",
2526
+ "Tysdag",
2527
+ "Onsdag",
2528
+ "Torsdag",
2529
+ "Fredag",
2530
+ "Laurdag",
2531
+ ],
2532
+ },
2533
+ months: {
2534
+ shorthand: [
2535
+ "Jan",
2536
+ "Feb",
2537
+ "Mars",
2538
+ "Apr",
2539
+ "Mai",
2540
+ "Juni",
2541
+ "Juli",
2542
+ "Aug",
2543
+ "Sep",
2544
+ "Okt",
2545
+ "Nov",
2546
+ "Des",
2547
+ ],
2548
+ longhand: [
2549
+ "Januar",
2550
+ "Februar",
2551
+ "Mars",
2552
+ "April",
2553
+ "Mai",
2554
+ "Juni",
2555
+ "Juli",
2556
+ "August",
2557
+ "September",
2558
+ "Oktober",
2559
+ "November",
2560
+ "Desember",
2561
+ ],
2562
+ },
2563
+ firstDayOfWeek: 1,
2564
+ rangeSeparator: " til ",
2565
+ weekAbbreviation: "Veke",
2566
+ scrollTitle: "Scroll for å endre",
2567
+ toggleTitle: "Klikk for å veksle",
2568
+ time_24hr: true,
2569
+ ordinal: function () {
2570
+ return ".";
2571
+ },
2572
+ };
2573
+ fp$F.l10ns.nn = NorwegianNynorsk;
2574
+ fp$F.l10ns;
2575
+
2576
+ var fp$G = typeof window !== "undefined" && window.flatpickr !== undefined
2577
+ ? window.flatpickr
2578
+ : {
2579
+ l10ns: {},
2580
+ };
2581
+ var Norwegian = {
2582
+ weekdays: {
2583
+ shorthand: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"],
2584
+ longhand: [
2585
+ "Søndag",
2586
+ "Mandag",
2587
+ "Tirsdag",
2588
+ "Onsdag",
2589
+ "Torsdag",
2590
+ "Fredag",
2591
+ "Lørdag",
2592
+ ],
2593
+ },
2594
+ months: {
2595
+ shorthand: [
2596
+ "Jan",
2597
+ "Feb",
2598
+ "Mar",
2599
+ "Apr",
2600
+ "Mai",
2601
+ "Jun",
2602
+ "Jul",
2603
+ "Aug",
2604
+ "Sep",
2605
+ "Okt",
2606
+ "Nov",
2607
+ "Des",
2608
+ ],
2609
+ longhand: [
2610
+ "Januar",
2611
+ "Februar",
2612
+ "Mars",
2613
+ "April",
2614
+ "Mai",
2615
+ "Juni",
2616
+ "Juli",
2617
+ "August",
2618
+ "September",
2619
+ "Oktober",
2620
+ "November",
2621
+ "Desember",
2622
+ ],
2623
+ },
2624
+ firstDayOfWeek: 1,
2625
+ rangeSeparator: " til ",
2626
+ weekAbbreviation: "Uke",
2627
+ scrollTitle: "Scroll for å endre",
2628
+ toggleTitle: "Klikk for å veksle",
2629
+ time_24hr: true,
2630
+ ordinal: function () {
2631
+ return ".";
2632
+ },
2633
+ };
2634
+ fp$G.l10ns.no = Norwegian;
2635
+ fp$G.l10ns;
2636
+
2637
+ var fp$H = typeof window !== "undefined" && window.flatpickr !== undefined
2638
+ ? window.flatpickr
2639
+ : {
2640
+ l10ns: {},
2641
+ };
2642
+ var Punjabi = {
2643
+ weekdays: {
2644
+ shorthand: ["ਐਤ", "ਸੋਮ", "ਮੰਗਲ", "ਬੁੱਧ", "ਵੀਰ", "ਸ਼ੁੱਕਰ", "ਸ਼ਨਿੱਚਰ"],
2645
+ longhand: [
2646
+ "ਐਤਵਾਰ",
2647
+ "ਸੋਮਵਾਰ",
2648
+ "ਮੰਗਲਵਾਰ",
2649
+ "ਬੁੱਧਵਾਰ",
2650
+ "ਵੀਰਵਾਰ",
2651
+ "ਸ਼ੁੱਕਰਵਾਰ",
2652
+ "ਸ਼ਨਿੱਚਰਵਾਰ",
2653
+ ],
2654
+ },
2655
+ months: {
2656
+ shorthand: [
2657
+ "ਜਨ",
2658
+ "ਫ਼ਰ",
2659
+ "ਮਾਰ",
2660
+ "ਅਪ੍ਰੈ",
2661
+ "ਮਈ",
2662
+ "ਜੂਨ",
2663
+ "ਜੁਲਾ",
2664
+ "ਅਗ",
2665
+ "ਸਤੰ",
2666
+ "ਅਕ",
2667
+ "ਨਵੰ",
2668
+ "ਦਸੰ",
2669
+ ],
2670
+ longhand: [
2671
+ "ਜਨਵਰੀ",
2672
+ "ਫ਼ਰਵਰੀ",
2673
+ "ਮਾਰਚ",
2674
+ "ਅਪ੍ਰੈਲ",
2675
+ "ਮਈ",
2676
+ "ਜੂਨ",
2677
+ "ਜੁਲਾਈ",
2678
+ "ਅਗਸਤ",
2679
+ "ਸਤੰਬਰ",
2680
+ "ਅਕਤੂਬਰ",
2681
+ "ਨਵੰਬਰ",
2682
+ "ਦਸੰਬਰ",
2683
+ ],
2684
+ },
2685
+ time_24hr: true,
2686
+ };
2687
+ fp$H.l10ns.pa = Punjabi;
2688
+ fp$H.l10ns;
2689
+
2690
+ var fp$I = typeof window !== "undefined" && window.flatpickr !== undefined
2691
+ ? window.flatpickr
2692
+ : {
2693
+ l10ns: {},
2694
+ };
2695
+ var Polish = {
2696
+ weekdays: {
2697
+ shorthand: ["Nd", "Pn", "Wt", "Śr", "Cz", "Pt", "So"],
2698
+ longhand: [
2699
+ "Niedziela",
2700
+ "Poniedziałek",
2701
+ "Wtorek",
2702
+ "Środa",
2703
+ "Czwartek",
2704
+ "Piątek",
2705
+ "Sobota",
2706
+ ],
2707
+ },
2708
+ months: {
2709
+ shorthand: [
2710
+ "Sty",
2711
+ "Lut",
2712
+ "Mar",
2713
+ "Kwi",
2714
+ "Maj",
2715
+ "Cze",
2716
+ "Lip",
2717
+ "Sie",
2718
+ "Wrz",
2719
+ "Paź",
2720
+ "Lis",
2721
+ "Gru",
2722
+ ],
2723
+ longhand: [
2724
+ "Styczeń",
2725
+ "Luty",
2726
+ "Marzec",
2727
+ "Kwiecień",
2728
+ "Maj",
2729
+ "Czerwiec",
2730
+ "Lipiec",
2731
+ "Sierpień",
2732
+ "Wrzesień",
2733
+ "Październik",
2734
+ "Listopad",
2735
+ "Grudzień",
2736
+ ],
2737
+ },
2738
+ rangeSeparator: " do ",
2739
+ weekAbbreviation: "tydz.",
2740
+ scrollTitle: "Przewiń, aby zwiększyć",
2741
+ toggleTitle: "Kliknij, aby przełączyć",
2742
+ firstDayOfWeek: 1,
2743
+ time_24hr: true,
2744
+ ordinal: function () {
2745
+ return ".";
2746
+ },
2747
+ };
2748
+ fp$I.l10ns.pl = Polish;
2749
+ fp$I.l10ns;
2750
+
2751
+ var fp$J = typeof window !== "undefined" && window.flatpickr !== undefined
2752
+ ? window.flatpickr
2753
+ : {
2754
+ l10ns: {},
2755
+ };
2756
+ var Portuguese = {
2757
+ weekdays: {
2758
+ shorthand: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
2759
+ longhand: [
2760
+ "Domingo",
2761
+ "Segunda-feira",
2762
+ "Terça-feira",
2763
+ "Quarta-feira",
2764
+ "Quinta-feira",
2765
+ "Sexta-feira",
2766
+ "Sábado",
2767
+ ],
2768
+ },
2769
+ months: {
2770
+ shorthand: [
2771
+ "Jan",
2772
+ "Fev",
2773
+ "Mar",
2774
+ "Abr",
2775
+ "Mai",
2776
+ "Jun",
2777
+ "Jul",
2778
+ "Ago",
2779
+ "Set",
2780
+ "Out",
2781
+ "Nov",
2782
+ "Dez",
2783
+ ],
2784
+ longhand: [
2785
+ "Janeiro",
2786
+ "Fevereiro",
2787
+ "Março",
2788
+ "Abril",
2789
+ "Maio",
2790
+ "Junho",
2791
+ "Julho",
2792
+ "Agosto",
2793
+ "Setembro",
2794
+ "Outubro",
2795
+ "Novembro",
2796
+ "Dezembro",
2797
+ ],
2798
+ },
2799
+ rangeSeparator: " até ",
2800
+ time_24hr: true,
2801
+ };
2802
+ fp$J.l10ns.pt = Portuguese;
2803
+ fp$J.l10ns;
2804
+
2805
+ var fp$K = typeof window !== "undefined" && window.flatpickr !== undefined
2806
+ ? window.flatpickr
2807
+ : {
2808
+ l10ns: {},
2809
+ };
2810
+ var Romanian = {
2811
+ weekdays: {
2812
+ shorthand: ["Dum", "Lun", "Mar", "Mie", "Joi", "Vin", "Sâm"],
2813
+ longhand: [
2814
+ "Duminică",
2815
+ "Luni",
2816
+ "Marți",
2817
+ "Miercuri",
2818
+ "Joi",
2819
+ "Vineri",
2820
+ "Sâmbătă",
2821
+ ],
2822
+ },
2823
+ months: {
2824
+ shorthand: [
2825
+ "Ian",
2826
+ "Feb",
2827
+ "Mar",
2828
+ "Apr",
2829
+ "Mai",
2830
+ "Iun",
2831
+ "Iul",
2832
+ "Aug",
2833
+ "Sep",
2834
+ "Oct",
2835
+ "Noi",
2836
+ "Dec",
2837
+ ],
2838
+ longhand: [
2839
+ "Ianuarie",
2840
+ "Februarie",
2841
+ "Martie",
2842
+ "Aprilie",
2843
+ "Mai",
2844
+ "Iunie",
2845
+ "Iulie",
2846
+ "August",
2847
+ "Septembrie",
2848
+ "Octombrie",
2849
+ "Noiembrie",
2850
+ "Decembrie",
2851
+ ],
2852
+ },
2853
+ firstDayOfWeek: 1,
2854
+ time_24hr: true,
2855
+ ordinal: function () {
2856
+ return "";
2857
+ },
2858
+ };
2859
+ fp$K.l10ns.ro = Romanian;
2860
+ fp$K.l10ns;
2861
+
2862
+ var fp$L = typeof window !== "undefined" && window.flatpickr !== undefined
2863
+ ? window.flatpickr
2864
+ : {
2865
+ l10ns: {},
2866
+ };
2867
+ var Russian = {
2868
+ weekdays: {
2869
+ shorthand: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
2870
+ longhand: [
2871
+ "Воскресенье",
2872
+ "Понедельник",
2873
+ "Вторник",
2874
+ "Среда",
2875
+ "Четверг",
2876
+ "Пятница",
2877
+ "Суббота",
2878
+ ],
2879
+ },
2880
+ months: {
2881
+ shorthand: [
2882
+ "Янв",
2883
+ "Фев",
2884
+ "Март",
2885
+ "Апр",
2886
+ "Май",
2887
+ "Июнь",
2888
+ "Июль",
2889
+ "Авг",
2890
+ "Сен",
2891
+ "Окт",
2892
+ "Ноя",
2893
+ "Дек",
2894
+ ],
2895
+ longhand: [
2896
+ "Январь",
2897
+ "Февраль",
2898
+ "Март",
2899
+ "Апрель",
2900
+ "Май",
2901
+ "Июнь",
2902
+ "Июль",
2903
+ "Август",
2904
+ "Сентябрь",
2905
+ "Октябрь",
2906
+ "Ноябрь",
2907
+ "Декабрь",
2908
+ ],
2909
+ },
2910
+ firstDayOfWeek: 1,
2911
+ ordinal: function () {
2912
+ return "";
2913
+ },
2914
+ rangeSeparator: " — ",
2915
+ weekAbbreviation: "Нед.",
2916
+ scrollTitle: "Прокрутите для увеличения",
2917
+ toggleTitle: "Нажмите для переключения",
2918
+ amPM: ["ДП", "ПП"],
2919
+ yearAriaLabel: "Год",
2920
+ time_24hr: true,
2921
+ };
2922
+ fp$L.l10ns.ru = Russian;
2923
+ fp$L.l10ns;
2924
+
2925
+ var fp$M = typeof window !== "undefined" && window.flatpickr !== undefined
2926
+ ? window.flatpickr
2927
+ : {
2928
+ l10ns: {},
2929
+ };
2930
+ var Sinhala = {
2931
+ weekdays: {
2932
+ shorthand: ["ඉ", "ස", "අ", "බ", "බ්‍ර", "සි", "සෙ"],
2933
+ longhand: [
2934
+ "ඉරිදා",
2935
+ "සඳුදා",
2936
+ "අඟහරුවාදා",
2937
+ "බදාදා",
2938
+ "බ්‍රහස්පතින්දා",
2939
+ "සිකුරාදා",
2940
+ "සෙනසුරාදා",
2941
+ ],
2942
+ },
2943
+ months: {
2944
+ shorthand: [
2945
+ "ජන",
2946
+ "පෙබ",
2947
+ "මාර්",
2948
+ "අප්‍රේ",
2949
+ "මැයි",
2950
+ "ජුනි",
2951
+ "ජූලි",
2952
+ "අගෝ",
2953
+ "සැප්",
2954
+ "ඔක්",
2955
+ "නොවැ",
2956
+ "දෙසැ",
2957
+ ],
2958
+ longhand: [
2959
+ "ජනවාරි",
2960
+ "පෙබරවාරි",
2961
+ "මාර්තු",
2962
+ "අප්‍රේල්",
2963
+ "මැයි",
2964
+ "ජුනි",
2965
+ "ජූලි",
2966
+ "අගෝස්තු",
2967
+ "සැප්තැම්බර්",
2968
+ "ඔක්තෝබර්",
2969
+ "නොවැම්බර්",
2970
+ "දෙසැම්බර්",
2971
+ ],
2972
+ },
2973
+ time_24hr: true,
2974
+ };
2975
+ fp$M.l10ns.si = Sinhala;
2976
+ fp$M.l10ns;
2977
+
2978
+ var fp$N = typeof window !== "undefined" && window.flatpickr !== undefined
2979
+ ? window.flatpickr
2980
+ : {
2981
+ l10ns: {},
2982
+ };
2983
+ var Slovak = {
2984
+ weekdays: {
2985
+ shorthand: ["Ned", "Pon", "Ut", "Str", "Štv", "Pia", "Sob"],
2986
+ longhand: [
2987
+ "Nedeľa",
2988
+ "Pondelok",
2989
+ "Utorok",
2990
+ "Streda",
2991
+ "Štvrtok",
2992
+ "Piatok",
2993
+ "Sobota",
2994
+ ],
2995
+ },
2996
+ months: {
2997
+ shorthand: [
2998
+ "Jan",
2999
+ "Feb",
3000
+ "Mar",
3001
+ "Apr",
3002
+ "Máj",
3003
+ "Jún",
3004
+ "Júl",
3005
+ "Aug",
3006
+ "Sep",
3007
+ "Okt",
3008
+ "Nov",
3009
+ "Dec",
3010
+ ],
3011
+ longhand: [
3012
+ "Január",
3013
+ "Február",
3014
+ "Marec",
3015
+ "Apríl",
3016
+ "Máj",
3017
+ "Jún",
3018
+ "Júl",
3019
+ "August",
3020
+ "September",
3021
+ "Október",
3022
+ "November",
3023
+ "December",
3024
+ ],
3025
+ },
3026
+ firstDayOfWeek: 1,
3027
+ rangeSeparator: " do ",
3028
+ time_24hr: true,
3029
+ ordinal: function () {
3030
+ return ".";
3031
+ },
3032
+ };
3033
+ fp$N.l10ns.sk = Slovak;
3034
+ fp$N.l10ns;
3035
+
3036
+ var fp$O = typeof window !== "undefined" && window.flatpickr !== undefined
3037
+ ? window.flatpickr
3038
+ : {
3039
+ l10ns: {},
3040
+ };
3041
+ var Slovenian = {
3042
+ weekdays: {
3043
+ shorthand: ["Ned", "Pon", "Tor", "Sre", "Čet", "Pet", "Sob"],
3044
+ longhand: [
3045
+ "Nedelja",
3046
+ "Ponedeljek",
3047
+ "Torek",
3048
+ "Sreda",
3049
+ "Četrtek",
3050
+ "Petek",
3051
+ "Sobota",
3052
+ ],
3053
+ },
3054
+ months: {
3055
+ shorthand: [
3056
+ "Jan",
3057
+ "Feb",
3058
+ "Mar",
3059
+ "Apr",
3060
+ "Maj",
3061
+ "Jun",
3062
+ "Jul",
3063
+ "Avg",
3064
+ "Sep",
3065
+ "Okt",
3066
+ "Nov",
3067
+ "Dec",
3068
+ ],
3069
+ longhand: [
3070
+ "Januar",
3071
+ "Februar",
3072
+ "Marec",
3073
+ "April",
3074
+ "Maj",
3075
+ "Junij",
3076
+ "Julij",
3077
+ "Avgust",
3078
+ "September",
3079
+ "Oktober",
3080
+ "November",
3081
+ "December",
3082
+ ],
3083
+ },
3084
+ firstDayOfWeek: 1,
3085
+ rangeSeparator: " do ",
3086
+ time_24hr: true,
3087
+ ordinal: function () {
3088
+ return ".";
3089
+ },
3090
+ };
3091
+ fp$O.l10ns.sl = Slovenian;
3092
+ fp$O.l10ns;
3093
+
3094
+ var fp$P = typeof window !== "undefined" && window.flatpickr !== undefined
3095
+ ? window.flatpickr
3096
+ : {
3097
+ l10ns: {},
3098
+ };
3099
+ var Albanian = {
3100
+ weekdays: {
3101
+ shorthand: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sh"],
3102
+ longhand: [
3103
+ "E Diel",
3104
+ "E Hënë",
3105
+ "E Martë",
3106
+ "E Mërkurë",
3107
+ "E Enjte",
3108
+ "E Premte",
3109
+ "E Shtunë",
3110
+ ],
3111
+ },
3112
+ months: {
3113
+ shorthand: [
3114
+ "Jan",
3115
+ "Shk",
3116
+ "Mar",
3117
+ "Pri",
3118
+ "Maj",
3119
+ "Qer",
3120
+ "Kor",
3121
+ "Gus",
3122
+ "Sht",
3123
+ "Tet",
3124
+ "Nën",
3125
+ "Dhj",
3126
+ ],
3127
+ longhand: [
3128
+ "Janar",
3129
+ "Shkurt",
3130
+ "Mars",
3131
+ "Prill",
3132
+ "Maj",
3133
+ "Qershor",
3134
+ "Korrik",
3135
+ "Gusht",
3136
+ "Shtator",
3137
+ "Tetor",
3138
+ "Nëntor",
3139
+ "Dhjetor",
3140
+ ],
3141
+ },
3142
+ firstDayOfWeek: 1,
3143
+ rangeSeparator: " deri ",
3144
+ weekAbbreviation: "Java",
3145
+ yearAriaLabel: "Viti",
3146
+ monthAriaLabel: "Muaji",
3147
+ hourAriaLabel: "Ora",
3148
+ minuteAriaLabel: "Minuta",
3149
+ time_24hr: true,
3150
+ };
3151
+ fp$P.l10ns.sq = Albanian;
3152
+ fp$P.l10ns;
3153
+
3154
+ var fp$Q = typeof window !== "undefined" && window.flatpickr !== undefined
3155
+ ? window.flatpickr
3156
+ : {
3157
+ l10ns: {},
3158
+ };
3159
+ var Serbian = {
3160
+ weekdays: {
3161
+ shorthand: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub"],
3162
+ longhand: [
3163
+ "Nedelja",
3164
+ "Ponedeljak",
3165
+ "Utorak",
3166
+ "Sreda",
3167
+ "Četvrtak",
3168
+ "Petak",
3169
+ "Subota",
3170
+ ],
3171
+ },
3172
+ months: {
3173
+ shorthand: [
3174
+ "Jan",
3175
+ "Feb",
3176
+ "Mar",
3177
+ "Apr",
3178
+ "Maj",
3179
+ "Jun",
3180
+ "Jul",
3181
+ "Avg",
3182
+ "Sep",
3183
+ "Okt",
3184
+ "Nov",
3185
+ "Dec",
3186
+ ],
3187
+ longhand: [
3188
+ "Januar",
3189
+ "Februar",
3190
+ "Mart",
3191
+ "April",
3192
+ "Maj",
3193
+ "Jun",
3194
+ "Jul",
3195
+ "Avgust",
3196
+ "Septembar",
3197
+ "Oktobar",
3198
+ "Novembar",
3199
+ "Decembar",
3200
+ ],
3201
+ },
3202
+ firstDayOfWeek: 1,
3203
+ weekAbbreviation: "Ned.",
3204
+ rangeSeparator: " do ",
3205
+ time_24hr: true,
3206
+ };
3207
+ fp$Q.l10ns.sr = Serbian;
3208
+ fp$Q.l10ns;
3209
+
3210
+ var fp$R = typeof window !== "undefined" && window.flatpickr !== undefined
3211
+ ? window.flatpickr
3212
+ : {
3213
+ l10ns: {},
3214
+ };
3215
+ var Swedish = {
3216
+ firstDayOfWeek: 1,
3217
+ weekAbbreviation: "v",
3218
+ weekdays: {
3219
+ shorthand: ["sön", "mån", "tis", "ons", "tor", "fre", "lör"],
3220
+ longhand: [
3221
+ "söndag",
3222
+ "måndag",
3223
+ "tisdag",
3224
+ "onsdag",
3225
+ "torsdag",
3226
+ "fredag",
3227
+ "lördag",
3228
+ ],
3229
+ },
3230
+ months: {
3231
+ shorthand: [
3232
+ "jan",
3233
+ "feb",
3234
+ "mar",
3235
+ "apr",
3236
+ "maj",
3237
+ "jun",
3238
+ "jul",
3239
+ "aug",
3240
+ "sep",
3241
+ "okt",
3242
+ "nov",
3243
+ "dec",
3244
+ ],
3245
+ longhand: [
3246
+ "januari",
3247
+ "februari",
3248
+ "mars",
3249
+ "april",
3250
+ "maj",
3251
+ "juni",
3252
+ "juli",
3253
+ "augusti",
3254
+ "september",
3255
+ "oktober",
3256
+ "november",
3257
+ "december",
3258
+ ],
3259
+ },
3260
+ rangeSeparator: " till ",
3261
+ time_24hr: true,
3262
+ ordinal: function () {
3263
+ return ".";
3264
+ },
3265
+ };
3266
+ fp$R.l10ns.sv = Swedish;
3267
+ fp$R.l10ns;
3268
+
3269
+ var fp$S = typeof window !== "undefined" && window.flatpickr !== undefined
3270
+ ? window.flatpickr
3271
+ : {
3272
+ l10ns: {},
3273
+ };
3274
+ var Thai = {
3275
+ weekdays: {
3276
+ shorthand: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส"],
3277
+ longhand: [
3278
+ "อาทิตย์",
3279
+ "จันทร์",
3280
+ "อังคาร",
3281
+ "พุธ",
3282
+ "พฤหัสบดี",
3283
+ "ศุกร์",
3284
+ "เสาร์",
3285
+ ],
3286
+ },
3287
+ months: {
3288
+ shorthand: [
3289
+ "ม.ค.",
3290
+ "ก.พ.",
3291
+ "มี.ค.",
3292
+ "เม.ย.",
3293
+ "พ.ค.",
3294
+ "มิ.ย.",
3295
+ "ก.ค.",
3296
+ "ส.ค.",
3297
+ "ก.ย.",
3298
+ "ต.ค.",
3299
+ "พ.ย.",
3300
+ "ธ.ค.",
3301
+ ],
3302
+ longhand: [
3303
+ "มกราคม",
3304
+ "กุมภาพันธ์",
3305
+ "มีนาคม",
3306
+ "เมษายน",
3307
+ "พฤษภาคม",
3308
+ "มิถุนายน",
3309
+ "กรกฎาคม",
3310
+ "สิงหาคม",
3311
+ "กันยายน",
3312
+ "ตุลาคม",
3313
+ "พฤศจิกายน",
3314
+ "ธันวาคม",
3315
+ ],
3316
+ },
3317
+ firstDayOfWeek: 1,
3318
+ rangeSeparator: " ถึง ",
3319
+ scrollTitle: "เลื่อนเพื่อเพิ่มหรือลด",
3320
+ toggleTitle: "คลิกเพื่อเปลี่ยน",
3321
+ time_24hr: true,
3322
+ ordinal: function () {
3323
+ return "";
3324
+ },
3325
+ };
3326
+ fp$S.l10ns.th = Thai;
3327
+ fp$S.l10ns;
3328
+
3329
+ var fp$T = typeof window !== "undefined" && window.flatpickr !== undefined
3330
+ ? window.flatpickr
3331
+ : {
3332
+ l10ns: {},
3333
+ };
3334
+ var Turkish = {
3335
+ weekdays: {
3336
+ shorthand: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"],
3337
+ longhand: [
3338
+ "Pazar",
3339
+ "Pazartesi",
3340
+ "Salı",
3341
+ "Çarşamba",
3342
+ "Perşembe",
3343
+ "Cuma",
3344
+ "Cumartesi",
3345
+ ],
3346
+ },
3347
+ months: {
3348
+ shorthand: [
3349
+ "Oca",
3350
+ "Şub",
3351
+ "Mar",
3352
+ "Nis",
3353
+ "May",
3354
+ "Haz",
3355
+ "Tem",
3356
+ "Ağu",
3357
+ "Eyl",
3358
+ "Eki",
3359
+ "Kas",
3360
+ "Ara",
3361
+ ],
3362
+ longhand: [
3363
+ "Ocak",
3364
+ "Şubat",
3365
+ "Mart",
3366
+ "Nisan",
3367
+ "Mayıs",
3368
+ "Haziran",
3369
+ "Temmuz",
3370
+ "Ağustos",
3371
+ "Eylül",
3372
+ "Ekim",
3373
+ "Kasım",
3374
+ "Aralık",
3375
+ ],
3376
+ },
3377
+ firstDayOfWeek: 1,
3378
+ ordinal: function () {
3379
+ return ".";
3380
+ },
3381
+ rangeSeparator: " - ",
3382
+ weekAbbreviation: "Hf",
3383
+ scrollTitle: "Artırmak için kaydırın",
3384
+ toggleTitle: "Aç/Kapa",
3385
+ amPM: ["ÖÖ", "ÖS"],
3386
+ time_24hr: true,
3387
+ };
3388
+ fp$T.l10ns.tr = Turkish;
3389
+ fp$T.l10ns;
3390
+
3391
+ var fp$U = typeof window !== "undefined" && window.flatpickr !== undefined
3392
+ ? window.flatpickr
3393
+ : {
3394
+ l10ns: {},
3395
+ };
3396
+ var Ukrainian = {
3397
+ firstDayOfWeek: 1,
3398
+ weekdays: {
3399
+ shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
3400
+ longhand: [
3401
+ "Неділя",
3402
+ "Понеділок",
3403
+ "Вівторок",
3404
+ "Середа",
3405
+ "Четвер",
3406
+ "П'ятниця",
3407
+ "Субота",
3408
+ ],
3409
+ },
3410
+ months: {
3411
+ shorthand: [
3412
+ "Січ",
3413
+ "Лют",
3414
+ "Бер",
3415
+ "Кві",
3416
+ "Тра",
3417
+ "Чер",
3418
+ "Лип",
3419
+ "Сер",
3420
+ "Вер",
3421
+ "Жов",
3422
+ "Лис",
3423
+ "Гру",
3424
+ ],
3425
+ longhand: [
3426
+ "Січень",
3427
+ "Лютий",
3428
+ "Березень",
3429
+ "Квітень",
3430
+ "Травень",
3431
+ "Червень",
3432
+ "Липень",
3433
+ "Серпень",
3434
+ "Вересень",
3435
+ "Жовтень",
3436
+ "Листопад",
3437
+ "Грудень",
3438
+ ],
3439
+ },
3440
+ time_24hr: true,
3441
+ };
3442
+ fp$U.l10ns.uk = Ukrainian;
3443
+ fp$U.l10ns;
3444
+
3445
+ var fp$V = typeof window !== "undefined" && window.flatpickr !== undefined
3446
+ ? window.flatpickr
3447
+ : {
3448
+ l10ns: {},
3449
+ };
3450
+ var Uzbek = {
3451
+ weekdays: {
3452
+ shorthand: ["Якш", "Душ", "Сеш", "Чор", "Пай", "Жум", "Шан"],
3453
+ longhand: [
3454
+ "Якшанба",
3455
+ "Душанба",
3456
+ "Сешанба",
3457
+ "Чоршанба",
3458
+ "Пайшанба",
3459
+ "Жума",
3460
+ "Шанба",
3461
+ ],
3462
+ },
3463
+ months: {
3464
+ shorthand: [
3465
+ "Янв",
3466
+ "Фев",
3467
+ "Мар",
3468
+ "Апр",
3469
+ "Май",
3470
+ "Июн",
3471
+ "Июл",
3472
+ "Авг",
3473
+ "Сен",
3474
+ "Окт",
3475
+ "Ноя",
3476
+ "Дек",
3477
+ ],
3478
+ longhand: [
3479
+ "Январ",
3480
+ "Феврал",
3481
+ "Март",
3482
+ "Апрел",
3483
+ "Май",
3484
+ "Июн",
3485
+ "Июл",
3486
+ "Август",
3487
+ "Сентябр",
3488
+ "Октябр",
3489
+ "Ноябр",
3490
+ "Декабр",
3491
+ ],
3492
+ },
3493
+ firstDayOfWeek: 1,
3494
+ ordinal: function () {
3495
+ return "";
3496
+ },
3497
+ rangeSeparator: " — ",
3498
+ weekAbbreviation: "Ҳафта",
3499
+ scrollTitle: "Катталаштириш учун айлантиринг",
3500
+ toggleTitle: "Ўтиш учун босинг",
3501
+ amPM: ["AM", "PM"],
3502
+ yearAriaLabel: "Йил",
3503
+ time_24hr: true,
3504
+ };
3505
+ fp$V.l10ns.uz = Uzbek;
3506
+ fp$V.l10ns;
3507
+
3508
+ var fp$W = typeof window !== "undefined" && window.flatpickr !== undefined
3509
+ ? window.flatpickr
3510
+ : {
3511
+ l10ns: {},
3512
+ };
3513
+ var UzbekLatin = {
3514
+ weekdays: {
3515
+ shorthand: ["Ya", "Du", "Se", "Cho", "Pa", "Ju", "Sha"],
3516
+ longhand: [
3517
+ "Yakshanba",
3518
+ "Dushanba",
3519
+ "Seshanba",
3520
+ "Chorshanba",
3521
+ "Payshanba",
3522
+ "Juma",
3523
+ "Shanba",
3524
+ ],
3525
+ },
3526
+ months: {
3527
+ shorthand: [
3528
+ "Yan",
3529
+ "Fev",
3530
+ "Mar",
3531
+ "Apr",
3532
+ "May",
3533
+ "Iyun",
3534
+ "Iyul",
3535
+ "Avg",
3536
+ "Sen",
3537
+ "Okt",
3538
+ "Noy",
3539
+ "Dek",
3540
+ ],
3541
+ longhand: [
3542
+ "Yanvar",
3543
+ "Fevral",
3544
+ "Mart",
3545
+ "Aprel",
3546
+ "May",
3547
+ "Iyun",
3548
+ "Iyul",
3549
+ "Avgust",
3550
+ "Sentabr",
3551
+ "Oktabr",
3552
+ "Noyabr",
3553
+ "Dekabr",
3554
+ ],
3555
+ },
3556
+ firstDayOfWeek: 1,
3557
+ ordinal: function () {
3558
+ return "";
3559
+ },
3560
+ rangeSeparator: " — ",
3561
+ weekAbbreviation: "Hafta",
3562
+ scrollTitle: "Kattalashtirish uchun aylantiring",
3563
+ toggleTitle: "O‘tish uchun bosing",
3564
+ amPM: ["AM", "PM"],
3565
+ yearAriaLabel: "Yil",
3566
+ time_24hr: true,
3567
+ };
3568
+ fp$W.l10ns["uz_latn"] = UzbekLatin;
3569
+ fp$W.l10ns;
3570
+
3571
+ var fp$X = typeof window !== "undefined" && window.flatpickr !== undefined
3572
+ ? window.flatpickr
3573
+ : {
3574
+ l10ns: {},
3575
+ };
3576
+ var Vietnamese = {
3577
+ weekdays: {
3578
+ shorthand: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
3579
+ longhand: [
3580
+ "Chủ nhật",
3581
+ "Thứ hai",
3582
+ "Thứ ba",
3583
+ "Thứ tư",
3584
+ "Thứ năm",
3585
+ "Thứ sáu",
3586
+ "Thứ bảy",
3587
+ ],
3588
+ },
3589
+ months: {
3590
+ shorthand: [
3591
+ "Th1",
3592
+ "Th2",
3593
+ "Th3",
3594
+ "Th4",
3595
+ "Th5",
3596
+ "Th6",
3597
+ "Th7",
3598
+ "Th8",
3599
+ "Th9",
3600
+ "Th10",
3601
+ "Th11",
3602
+ "Th12",
3603
+ ],
3604
+ longhand: [
3605
+ "Tháng một",
3606
+ "Tháng hai",
3607
+ "Tháng ba",
3608
+ "Tháng tư",
3609
+ "Tháng năm",
3610
+ "Tháng sáu",
3611
+ "Tháng bảy",
3612
+ "Tháng tám",
3613
+ "Tháng chín",
3614
+ "Tháng mười",
3615
+ "Tháng mười một",
3616
+ "Tháng mười hai",
3617
+ ],
3618
+ },
3619
+ firstDayOfWeek: 1,
3620
+ rangeSeparator: " đến ",
3621
+ };
3622
+ fp$X.l10ns.vn = Vietnamese;
3623
+ fp$X.l10ns;
3624
+
3625
+ var fp$Y = typeof window !== "undefined" && window.flatpickr !== undefined
3626
+ ? window.flatpickr
3627
+ : {
3628
+ l10ns: {},
3629
+ };
3630
+ var Mandarin = {
3631
+ weekdays: {
3632
+ shorthand: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
3633
+ longhand: [
3634
+ "星期日",
3635
+ "星期一",
3636
+ "星期二",
3637
+ "星期三",
3638
+ "星期四",
3639
+ "星期五",
3640
+ "星期六",
3641
+ ],
3642
+ },
3643
+ months: {
3644
+ shorthand: [
3645
+ "一月",
3646
+ "二月",
3647
+ "三月",
3648
+ "四月",
3649
+ "五月",
3650
+ "六月",
3651
+ "七月",
3652
+ "八月",
3653
+ "九月",
3654
+ "十月",
3655
+ "十一月",
3656
+ "十二月",
3657
+ ],
3658
+ longhand: [
3659
+ "一月",
3660
+ "二月",
3661
+ "三月",
3662
+ "四月",
3663
+ "五月",
3664
+ "六月",
3665
+ "七月",
3666
+ "八月",
3667
+ "九月",
3668
+ "十月",
3669
+ "十一月",
3670
+ "十二月",
3671
+ ],
3672
+ },
3673
+ rangeSeparator: " 至 ",
3674
+ weekAbbreviation: "周",
3675
+ scrollTitle: "滚动切换",
3676
+ toggleTitle: "点击切换 12/24 小时时制",
3677
+ };
3678
+ fp$Y.l10ns.zh = Mandarin;
3679
+ fp$Y.l10ns;
3680
+
3681
+ var fp$Z = typeof window !== "undefined" && window.flatpickr !== undefined
3682
+ ? window.flatpickr
3683
+ : {
3684
+ l10ns: {},
3685
+ };
3686
+ var MandarinTraditional = {
3687
+ weekdays: {
3688
+ shorthand: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"],
3689
+ longhand: [
3690
+ "星期日",
3691
+ "星期一",
3692
+ "星期二",
3693
+ "星期三",
3694
+ "星期四",
3695
+ "星期五",
3696
+ "星期六",
3697
+ ],
3698
+ },
3699
+ months: {
3700
+ shorthand: [
3701
+ "一月",
3702
+ "二月",
3703
+ "三月",
3704
+ "四月",
3705
+ "五月",
3706
+ "六月",
3707
+ "七月",
3708
+ "八月",
3709
+ "九月",
3710
+ "十月",
3711
+ "十一月",
3712
+ "十二月",
3713
+ ],
3714
+ longhand: [
3715
+ "一月",
3716
+ "二月",
3717
+ "三月",
3718
+ "四月",
3719
+ "五月",
3720
+ "六月",
3721
+ "七月",
3722
+ "八月",
3723
+ "九月",
3724
+ "十月",
3725
+ "十一月",
3726
+ "十二月",
3727
+ ],
3728
+ },
3729
+ rangeSeparator: " 至 ",
3730
+ weekAbbreviation: "週",
3731
+ scrollTitle: "滾動切換",
3732
+ toggleTitle: "點擊切換 12/24 小時時制",
3733
+ };
3734
+ fp$Z.l10ns.zh_tw = MandarinTraditional;
3735
+ fp$Z.l10ns;
3736
+
3737
+ var l10n = {
3738
+ ar: Arabic,
3739
+ at: Austria,
3740
+ az: Azerbaijan,
3741
+ be: Belarusian,
3742
+ bg: Bulgarian,
3743
+ bn: Bangla,
3744
+ bs: Bosnian,
3745
+ ca: Catalan,
3746
+ ckb: Kurdish,
3747
+ cat: Catalan,
3748
+ cs: Czech,
3749
+ cy: Welsh,
3750
+ da: Danish,
3751
+ de: German,
3752
+ default: __assign({}, english),
3753
+ en: english,
3754
+ eo: Esperanto,
3755
+ es: Spanish,
3756
+ et: Estonian,
3757
+ fa: Persian,
3758
+ fi: Finnish,
3759
+ fo: Faroese,
3760
+ fr: French,
3761
+ gr: Greek,
3762
+ he: Hebrew,
3763
+ hi: Hindi,
3764
+ hr: Croatian,
3765
+ hu: Hungarian,
3766
+ hy: Armenian,
3767
+ id: Indonesian,
3768
+ is: Icelandic,
3769
+ it: Italian,
3770
+ ja: Japanese,
3771
+ ka: Georgian,
3772
+ ko: Korean,
3773
+ km: Khmer,
3774
+ kz: Kazakh,
3775
+ lt: Lithuanian,
3776
+ lv: Latvian,
3777
+ mk: Macedonian,
3778
+ mn: Mongolian,
3779
+ ms: Malaysian,
3780
+ my: Burmese,
3781
+ nl: Dutch,
3782
+ nn: NorwegianNynorsk,
3783
+ no: Norwegian,
3784
+ pa: Punjabi,
3785
+ pl: Polish,
3786
+ pt: Portuguese,
3787
+ ro: Romanian,
3788
+ ru: Russian,
3789
+ si: Sinhala,
3790
+ sk: Slovak,
3791
+ sl: Slovenian,
3792
+ sq: Albanian,
3793
+ sr: Serbian,
3794
+ sv: Swedish,
3795
+ th: Thai,
3796
+ tr: Turkish,
3797
+ uk: Ukrainian,
3798
+ vn: Vietnamese,
3799
+ zh: Mandarin,
3800
+ zh_tw: MandarinTraditional,
3801
+ uz: Uzbek,
3802
+ uz_latn: UzbekLatin,
3803
+ };
3804
+
3805
+ exports.default = l10n;
3806
+
3807
+ Object.defineProperty(exports, '__esModule', { value: true });
3808
+
3809
+ })));
assets/js/flatpickr/dist/I10n/is.js ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.is = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Icelandic = {
13
+ weekdays: {
14
+ shorthand: ["Sun", "Mán", "Þri", "Mið", "Fim", "Fös", "Lau"],
15
+ longhand: [
16
+ "Sunnudagur",
17
+ "Mánudagur",
18
+ "Þriðjudagur",
19
+ "Miðvikudagur",
20
+ "Fimmtudagur",
21
+ "Föstudagur",
22
+ "Laugardagur",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jan",
28
+ "Feb",
29
+ "Mar",
30
+ "Apr",
31
+ "Maí",
32
+ "Jún",
33
+ "Júl",
34
+ "Ágú",
35
+ "Sep",
36
+ "Okt",
37
+ "Nóv",
38
+ "Des",
39
+ ],
40
+ longhand: [
41
+ "Janúar",
42
+ "Febrúar",
43
+ "Mars",
44
+ "Apríl",
45
+ "Maí",
46
+ "Júní",
47
+ "Júlí",
48
+ "Ágúst",
49
+ "September",
50
+ "Október",
51
+ "Nóvember",
52
+ "Desember",
53
+ ],
54
+ },
55
+ ordinal: function () {
56
+ return ".";
57
+ },
58
+ firstDayOfWeek: 1,
59
+ rangeSeparator: " til ",
60
+ weekAbbreviation: "vika",
61
+ yearAriaLabel: "Ár",
62
+ time_24hr: true,
63
+ };
64
+ fp.l10ns.is = Icelandic;
65
+ var is = fp.l10ns;
66
+
67
+ exports.Icelandic = Icelandic;
68
+ exports.default = is;
69
+
70
+ Object.defineProperty(exports, '__esModule', { value: true });
71
+
72
+ })));
assets/js/flatpickr/dist/I10n/it.js ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.it = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Italian = {
13
+ weekdays: {
14
+ shorthand: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
15
+ longhand: [
16
+ "Domenica",
17
+ "Lunedì",
18
+ "Martedì",
19
+ "Mercoledì",
20
+ "Giovedì",
21
+ "Venerdì",
22
+ "Sabato",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Gen",
28
+ "Feb",
29
+ "Mar",
30
+ "Apr",
31
+ "Mag",
32
+ "Giu",
33
+ "Lug",
34
+ "Ago",
35
+ "Set",
36
+ "Ott",
37
+ "Nov",
38
+ "Dic",
39
+ ],
40
+ longhand: [
41
+ "Gennaio",
42
+ "Febbraio",
43
+ "Marzo",
44
+ "Aprile",
45
+ "Maggio",
46
+ "Giugno",
47
+ "Luglio",
48
+ "Agosto",
49
+ "Settembre",
50
+ "Ottobre",
51
+ "Novembre",
52
+ "Dicembre",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () { return "°"; },
57
+ rangeSeparator: " al ",
58
+ weekAbbreviation: "Se",
59
+ scrollTitle: "Scrolla per aumentare",
60
+ toggleTitle: "Clicca per cambiare",
61
+ time_24hr: true,
62
+ };
63
+ fp.l10ns.it = Italian;
64
+ var it = fp.l10ns;
65
+
66
+ exports.Italian = Italian;
67
+ exports.default = it;
68
+
69
+ Object.defineProperty(exports, '__esModule', { value: true });
70
+
71
+ })));
assets/js/flatpickr/dist/I10n/ja.js ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ja = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Japanese = {
13
+ weekdays: {
14
+ shorthand: ["日", "月", "火", "水", "木", "金", "土"],
15
+ longhand: [
16
+ "日曜日",
17
+ "月曜日",
18
+ "火曜日",
19
+ "水曜日",
20
+ "木曜日",
21
+ "金曜日",
22
+ "土曜日",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "1月",
28
+ "2月",
29
+ "3月",
30
+ "4月",
31
+ "5月",
32
+ "6月",
33
+ "7月",
34
+ "8月",
35
+ "9月",
36
+ "10月",
37
+ "11月",
38
+ "12月",
39
+ ],
40
+ longhand: [
41
+ "1月",
42
+ "2月",
43
+ "3月",
44
+ "4月",
45
+ "5月",
46
+ "6月",
47
+ "7月",
48
+ "8月",
49
+ "9月",
50
+ "10月",
51
+ "11月",
52
+ "12月",
53
+ ],
54
+ },
55
+ time_24hr: true,
56
+ rangeSeparator: " から ",
57
+ monthAriaLabel: "月",
58
+ amPM: ["午前", "午後"],
59
+ yearAriaLabel: "年",
60
+ hourAriaLabel: "時間",
61
+ minuteAriaLabel: "分",
62
+ };
63
+ fp.l10ns.ja = Japanese;
64
+ var ja = fp.l10ns;
65
+
66
+ exports.Japanese = Japanese;
67
+ exports.default = ja;
68
+
69
+ Object.defineProperty(exports, '__esModule', { value: true });
70
+
71
+ })));
assets/js/flatpickr/dist/I10n/ka.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ka = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Georgian = {
13
+ weekdays: {
14
+ shorthand: ["კვ", "ორ", "სა", "ოთ", "ხუ", "პა", "შა"],
15
+ longhand: [
16
+ "კვირა",
17
+ "ორშაბათი",
18
+ "სამშაბათი",
19
+ "ოთხშაბათი",
20
+ "ხუთშაბათი",
21
+ "პარასკევი",
22
+ "შაბათი",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "იან",
28
+ "თებ",
29
+ "მარ",
30
+ "აპრ",
31
+ "მაი",
32
+ "ივნ",
33
+ "ივლ",
34
+ "აგვ",
35
+ "სექ",
36
+ "ოქტ",
37
+ "ნოე",
38
+ "დეკ",
39
+ ],
40
+ longhand: [
41
+ "იანვარი",
42
+ "თებერვალი",
43
+ "მარტი",
44
+ "აპრილი",
45
+ "მაისი",
46
+ "ივნისი",
47
+ "ივლისი",
48
+ "აგვისტო",
49
+ "სექტემბერი",
50
+ "ოქტომბერი",
51
+ "ნოემბერი",
52
+ "დეკემბერი",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return "";
58
+ },
59
+ rangeSeparator: " — ",
60
+ weekAbbreviation: "კვ.",
61
+ scrollTitle: "დასქროლეთ გასადიდებლად",
62
+ toggleTitle: "დააკლიკეთ გადართვისთვის",
63
+ amPM: ["AM", "PM"],
64
+ yearAriaLabel: "წელი",
65
+ time_24hr: true,
66
+ };
67
+ fp.l10ns.ka = Georgian;
68
+ var ka = fp.l10ns;
69
+
70
+ exports.Georgian = Georgian;
71
+ exports.default = ka;
72
+
73
+ Object.defineProperty(exports, '__esModule', { value: true });
74
+
75
+ })));
assets/js/flatpickr/dist/I10n/km.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.km = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Khmer = {
13
+ weekdays: {
14
+ shorthand: ["អាទិត្យ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រហស.", "សុក្រ", "សៅរ៍"],
15
+ longhand: [
16
+ "អាទិត្យ",
17
+ "ចន្ទ",
18
+ "អង្គារ",
19
+ "ពុធ",
20
+ "ព្រហស្បតិ៍",
21
+ "សុក្រ",
22
+ "សៅរ៍",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "មករា",
28
+ "កុម្ភះ",
29
+ "មីនា",
30
+ "មេសា",
31
+ "ឧសភា",
32
+ "មិថុនា",
33
+ "កក្កដា",
34
+ "សីហា",
35
+ "កញ្ញា",
36
+ "តុលា",
37
+ "វិច្ឆិកា",
38
+ "ធ្នូ",
39
+ ],
40
+ longhand: [
41
+ "មករា",
42
+ "កុម្ភះ",
43
+ "មីនា",
44
+ "មេសា",
45
+ "ឧសភា",
46
+ "មិថុនា",
47
+ "កក្កដា",
48
+ "សីហា",
49
+ "កញ្ញា",
50
+ "តុលា",
51
+ "វិច្ឆិកា",
52
+ "ធ្នូ",
53
+ ],
54
+ },
55
+ ordinal: function () {
56
+ return "";
57
+ },
58
+ firstDayOfWeek: 1,
59
+ rangeSeparator: " ដល់ ",
60
+ weekAbbreviation: "សប្តាហ៍",
61
+ scrollTitle: "រំកិលដើម្បីបង្កើន",
62
+ toggleTitle: "ចុចដើម្បីផ្លាស់ប្ដូរ",
63
+ yearAriaLabel: "ឆ្នាំ",
64
+ time_24hr: true,
65
+ };
66
+ fp.l10ns.km = Khmer;
67
+ var km = fp.l10ns;
68
+
69
+ exports.Khmer = Khmer;
70
+ exports.default = km;
71
+
72
+ Object.defineProperty(exports, '__esModule', { value: true });
73
+
74
+ })));
assets/js/flatpickr/dist/I10n/ko.js ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ko = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Korean = {
13
+ weekdays: {
14
+ shorthand: ["일", "월", "화", "수", "목", "금", "토"],
15
+ longhand: [
16
+ "일요일",
17
+ "월요일",
18
+ "화요일",
19
+ "수요일",
20
+ "목요일",
21
+ "금요일",
22
+ "토요일",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "1월",
28
+ "2월",
29
+ "3월",
30
+ "4월",
31
+ "5월",
32
+ "6월",
33
+ "7월",
34
+ "8월",
35
+ "9월",
36
+ "10월",
37
+ "11월",
38
+ "12월",
39
+ ],
40
+ longhand: [
41
+ "1월",
42
+ "2월",
43
+ "3월",
44
+ "4월",
45
+ "5월",
46
+ "6월",
47
+ "7월",
48
+ "8월",
49
+ "9월",
50
+ "10월",
51
+ "11월",
52
+ "12월",
53
+ ],
54
+ },
55
+ ordinal: function () {
56
+ return "일";
57
+ },
58
+ rangeSeparator: " ~ ",
59
+ amPM: ["오전", "오후"],
60
+ };
61
+ fp.l10ns.ko = Korean;
62
+ var ko = fp.l10ns;
63
+
64
+ exports.Korean = Korean;
65
+ exports.default = ko;
66
+
67
+ Object.defineProperty(exports, '__esModule', { value: true });
68
+
69
+ })));
assets/js/flatpickr/dist/I10n/kz.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.kz = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Kazakh = {
13
+ weekdays: {
14
+ shorthand: ["Жс", "Дс", "Сc", "Ср", "Бс", "Жм", "Сб"],
15
+ longhand: [
16
+ "Жексенбi",
17
+ "Дүйсенбi",
18
+ "Сейсенбi",
19
+ "Сәрсенбi",
20
+ "Бейсенбi",
21
+ "Жұма",
22
+ "Сенбi",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Қаң",
28
+ "Ақп",
29
+ "Нау",
30
+ "Сәу",
31
+ "Мам",
32
+ "Мау",
33
+ "Шiл",
34
+ "Там",
35
+ "Қыр",
36
+ "Қаз",
37
+ "Қар",
38
+ "Жел",
39
+ ],
40
+ longhand: [
41
+ "Қаңтар",
42
+ "Ақпан",
43
+ "Наурыз",
44
+ "Сәуiр",
45
+ "Мамыр",
46
+ "Маусым",
47
+ "Шiлде",
48
+ "Тамыз",
49
+ "Қыркүйек",
50
+ "Қазан",
51
+ "Қараша",
52
+ "Желтоқсан",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return "";
58
+ },
59
+ rangeSeparator: " — ",
60
+ weekAbbreviation: "Апта",
61
+ scrollTitle: "Үлкейту үшін айналдырыңыз",
62
+ toggleTitle: "Ауыстыру үшін басыңыз",
63
+ amPM: ["ТД", "ТК"],
64
+ yearAriaLabel: "Жыл",
65
+ };
66
+ fp.l10ns.kz = Kazakh;
67
+ var kz = fp.l10ns;
68
+
69
+ exports.Kazakh = Kazakh;
70
+ exports.default = kz;
71
+
72
+ Object.defineProperty(exports, '__esModule', { value: true });
73
+
74
+ })));
assets/js/flatpickr/dist/I10n/lt.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.lt = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Lithuanian = {
13
+ weekdays: {
14
+ shorthand: ["S", "Pr", "A", "T", "K", "Pn", "Š"],
15
+ longhand: [
16
+ "Sekmadienis",
17
+ "Pirmadienis",
18
+ "Antradienis",
19
+ "Trečiadienis",
20
+ "Ketvirtadienis",
21
+ "Penktadienis",
22
+ "Šeštadienis",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Sau",
28
+ "Vas",
29
+ "Kov",
30
+ "Bal",
31
+ "Geg",
32
+ "Bir",
33
+ "Lie",
34
+ "Rgp",
35
+ "Rgs",
36
+ "Spl",
37
+ "Lap",
38
+ "Grd",
39
+ ],
40
+ longhand: [
41
+ "Sausis",
42
+ "Vasaris",
43
+ "Kovas",
44
+ "Balandis",
45
+ "Gegužė",
46
+ "Birželis",
47
+ "Liepa",
48
+ "Rugpjūtis",
49
+ "Rugsėjis",
50
+ "Spalis",
51
+ "Lapkritis",
52
+ "Gruodis",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return "-a";
58
+ },
59
+ rangeSeparator: " iki ",
60
+ weekAbbreviation: "Sav",
61
+ scrollTitle: "Keisti laiką pelės rateliu",
62
+ toggleTitle: "Perjungti laiko formatą",
63
+ time_24hr: true,
64
+ };
65
+ fp.l10ns.lt = Lithuanian;
66
+ var lt = fp.l10ns;
67
+
68
+ exports.Lithuanian = Lithuanian;
69
+ exports.default = lt;
70
+
71
+ Object.defineProperty(exports, '__esModule', { value: true });
72
+
73
+ })));
assets/js/flatpickr/dist/I10n/lv.js ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.lv = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Latvian = {
13
+ firstDayOfWeek: 1,
14
+ weekdays: {
15
+ shorthand: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "Se"],
16
+ longhand: [
17
+ "Svētdiena",
18
+ "Pirmdiena",
19
+ "Otrdiena",
20
+ "Trešdiena",
21
+ "Ceturtdiena",
22
+ "Piektdiena",
23
+ "Sestdiena",
24
+ ],
25
+ },
26
+ months: {
27
+ shorthand: [
28
+ "Jan",
29
+ "Feb",
30
+ "Mar",
31
+ "Apr",
32
+ "Mai",
33
+ "Jūn",
34
+ "Jūl",
35
+ "Aug",
36
+ "Sep",
37
+ "Okt",
38
+ "Nov",
39
+ "Dec",
40
+ ],
41
+ longhand: [
42
+ "Janvāris",
43
+ "Februāris",
44
+ "Marts",
45
+ "Aprīlis",
46
+ "Maijs",
47
+ "Jūnijs",
48
+ "Jūlijs",
49
+ "Augusts",
50
+ "Septembris",
51
+ "Oktobris",
52
+ "Novembris",
53
+ "Decembris",
54
+ ],
55
+ },
56
+ rangeSeparator: " līdz ",
57
+ time_24hr: true,
58
+ };
59
+ fp.l10ns.lv = Latvian;
60
+ var lv = fp.l10ns;
61
+
62
+ exports.Latvian = Latvian;
63
+ exports.default = lv;
64
+
65
+ Object.defineProperty(exports, '__esModule', { value: true });
66
+
67
+ })));
assets/js/flatpickr/dist/I10n/mk.js ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.mk = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Macedonian = {
13
+ weekdays: {
14
+ shorthand: ["Не", "По", "Вт", "Ср", "Че", "Пе", "Са"],
15
+ longhand: [
16
+ "Недела",
17
+ "Понеделник",
18
+ "Вторник",
19
+ "Среда",
20
+ "Четврток",
21
+ "Петок",
22
+ "Сабота",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Јан",
28
+ "Фев",
29
+ "Мар",
30
+ "Апр",
31
+ "Мај",
32
+ "Јун",
33
+ "Јул",
34
+ "Авг",
35
+ "Сеп",
36
+ "Окт",
37
+ "Ное",
38
+ "Дек",
39
+ ],
40
+ longhand: [
41
+ "Јануари",
42
+ "Февруари",
43
+ "Март",
44
+ "Април",
45
+ "Мај",
46
+ "Јуни",
47
+ "Јули",
48
+ "Август",
49
+ "Септември",
50
+ "Октомври",
51
+ "Ноември",
52
+ "Декември",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ weekAbbreviation: "Нед.",
57
+ rangeSeparator: " до ",
58
+ time_24hr: true,
59
+ };
60
+ fp.l10ns.mk = Macedonian;
61
+ var mk = fp.l10ns;
62
+
63
+ exports.Macedonian = Macedonian;
64
+ exports.default = mk;
65
+
66
+ Object.defineProperty(exports, '__esModule', { value: true });
67
+
68
+ })));
assets/js/flatpickr/dist/I10n/mn.js ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.mn = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Mongolian = {
13
+ firstDayOfWeek: 1,
14
+ weekdays: {
15
+ shorthand: ["Да", "Мя", "Лх", "Пү", "Ба", "Бя", "Ня"],
16
+ longhand: ["Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба", "Ням"],
17
+ },
18
+ months: {
19
+ shorthand: [
20
+ "1-р сар",
21
+ "2-р сар",
22
+ "3-р сар",
23
+ "4-р сар",
24
+ "5-р сар",
25
+ "6-р сар",
26
+ "7-р сар",
27
+ "8-р сар",
28
+ "9-р сар",
29
+ "10-р сар",
30
+ "11-р сар",
31
+ "12-р сар",
32
+ ],
33
+ longhand: [
34
+ "Нэгдүгээр сар",
35
+ "Хоёрдугаар сар",
36
+ "Гуравдугаар сар",
37
+ "Дөрөвдүгээр сар",
38
+ "Тавдугаар сар",
39
+ "Зургаадугаар сар",
40
+ "Долдугаар сар",
41
+ "Наймдугаар сар",
42
+ "Есдүгээр сар",
43
+ "Аравдугаар сар",
44
+ "Арваннэгдүгээр сар",
45
+ "Арванхоёрдугаар сар",
46
+ ],
47
+ },
48
+ rangeSeparator: "-с ",
49
+ time_24hr: true,
50
+ };
51
+ fp.l10ns.mn = Mongolian;
52
+ var mn = fp.l10ns;
53
+
54
+ exports.Mongolian = Mongolian;
55
+ exports.default = mn;
56
+
57
+ Object.defineProperty(exports, '__esModule', { value: true });
58
+
59
+ })));
assets/js/flatpickr/dist/I10n/ms.js ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ms = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Malaysian = {
13
+ weekdays: {
14
+ shorthand: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
15
+ longhand: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"],
16
+ },
17
+ months: {
18
+ shorthand: [
19
+ "Jan",
20
+ "Feb",
21
+ "Mac",
22
+ "Apr",
23
+ "Mei",
24
+ "Jun",
25
+ "Jul",
26
+ "Ogo",
27
+ "Sep",
28
+ "Okt",
29
+ "Nov",
30
+ "Dis",
31
+ ],
32
+ longhand: [
33
+ "Januari",
34
+ "Februari",
35
+ "Mac",
36
+ "April",
37
+ "Mei",
38
+ "Jun",
39
+ "Julai",
40
+ "Ogos",
41
+ "September",
42
+ "Oktober",
43
+ "November",
44
+ "Disember",
45
+ ],
46
+ },
47
+ firstDayOfWeek: 1,
48
+ ordinal: function () {
49
+ return "";
50
+ },
51
+ };
52
+ var ms = fp.l10ns;
53
+
54
+ exports.Malaysian = Malaysian;
55
+ exports.default = ms;
56
+
57
+ Object.defineProperty(exports, '__esModule', { value: true });
58
+
59
+ })));
assets/js/flatpickr/dist/I10n/my.js ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.my = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Burmese = {
13
+ weekdays: {
14
+ shorthand: ["နွေ", "လာ", "ဂါ", "ဟူး", "ကြာ", "သော", "နေ"],
15
+ longhand: [
16
+ "တနင်္ဂနွေ",
17
+ "တနင်္လာ",
18
+ "အင်္ဂါ",
19
+ "ဗုဒ္ဓဟူး",
20
+ "ကြာသပတေး",
21
+ "သောကြာ",
22
+ "စနေ",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "ဇန်",
28
+ "ဖေ",
29
+ "မတ်",
30
+ "ပြီ",
31
+ "မေ",
32
+ "ဇွန်",
33
+ "လိုင်",
34
+ "သြ",
35
+ "စက်",
36
+ "အောက်",
37
+ "နို",
38
+ "ဒီ",
39
+ ],
40
+ longhand: [
41
+ "ဇန်နဝါရီ",
42
+ "ဖေဖော်ဝါရီ",
43
+ "မတ်",
44
+ "ဧပြီ",
45
+ "မေ",
46
+ "ဇွန်",
47
+ "ဇူလိုင်",
48
+ "သြဂုတ်",
49
+ "စက်တင်ဘာ",
50
+ "အောက်တိုဘာ",
51
+ "နိုဝင်ဘာ",
52
+ "ဒီဇင်ဘာ",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return "";
58
+ },
59
+ time_24hr: true,
60
+ };
61
+ fp.l10ns.my = Burmese;
62
+ var my = fp.l10ns;
63
+
64
+ exports.Burmese = Burmese;
65
+ exports.default = my;
66
+
67
+ Object.defineProperty(exports, '__esModule', { value: true });
68
+
69
+ })));
assets/js/flatpickr/dist/I10n/nl.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.nl = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Dutch = {
13
+ weekdays: {
14
+ shorthand: ["zo", "ma", "di", "wo", "do", "vr", "za"],
15
+ longhand: [
16
+ "zondag",
17
+ "maandag",
18
+ "dinsdag",
19
+ "woensdag",
20
+ "donderdag",
21
+ "vrijdag",
22
+ "zaterdag",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "jan",
28
+ "feb",
29
+ "mrt",
30
+ "apr",
31
+ "mei",
32
+ "jun",
33
+ "jul",
34
+ "aug",
35
+ "sept",
36
+ "okt",
37
+ "nov",
38
+ "dec",
39
+ ],
40
+ longhand: [
41
+ "januari",
42
+ "februari",
43
+ "maart",
44
+ "april",
45
+ "mei",
46
+ "juni",
47
+ "juli",
48
+ "augustus",
49
+ "september",
50
+ "oktober",
51
+ "november",
52
+ "december",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ weekAbbreviation: "wk",
57
+ rangeSeparator: " t/m ",
58
+ scrollTitle: "Scroll voor volgende / vorige",
59
+ toggleTitle: "Klik om te wisselen",
60
+ time_24hr: true,
61
+ ordinal: function (nth) {
62
+ if (nth === 1 || nth === 8 || nth >= 20)
63
+ return "ste";
64
+ return "de";
65
+ },
66
+ };
67
+ fp.l10ns.nl = Dutch;
68
+ var nl = fp.l10ns;
69
+
70
+ exports.Dutch = Dutch;
71
+ exports.default = nl;
72
+
73
+ Object.defineProperty(exports, '__esModule', { value: true });
74
+
75
+ })));
assets/js/flatpickr/dist/I10n/nn.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.nn = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var NorwegianNynorsk = {
13
+ weekdays: {
14
+ shorthand: ["Sø.", "Må.", "Ty.", "On.", "To.", "Fr.", "La."],
15
+ longhand: [
16
+ "Søndag",
17
+ "Måndag",
18
+ "Tysdag",
19
+ "Onsdag",
20
+ "Torsdag",
21
+ "Fredag",
22
+ "Laurdag",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jan",
28
+ "Feb",
29
+ "Mars",
30
+ "Apr",
31
+ "Mai",
32
+ "Juni",
33
+ "Juli",
34
+ "Aug",
35
+ "Sep",
36
+ "Okt",
37
+ "Nov",
38
+ "Des",
39
+ ],
40
+ longhand: [
41
+ "Januar",
42
+ "Februar",
43
+ "Mars",
44
+ "April",
45
+ "Mai",
46
+ "Juni",
47
+ "Juli",
48
+ "August",
49
+ "September",
50
+ "Oktober",
51
+ "November",
52
+ "Desember",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ rangeSeparator: " til ",
57
+ weekAbbreviation: "Veke",
58
+ scrollTitle: "Scroll for å endre",
59
+ toggleTitle: "Klikk for å veksle",
60
+ time_24hr: true,
61
+ ordinal: function () {
62
+ return ".";
63
+ },
64
+ };
65
+ fp.l10ns.nn = NorwegianNynorsk;
66
+ var nn = fp.l10ns;
67
+
68
+ exports.NorwegianNynorsk = NorwegianNynorsk;
69
+ exports.default = nn;
70
+
71
+ Object.defineProperty(exports, '__esModule', { value: true });
72
+
73
+ })));
assets/js/flatpickr/dist/I10n/no.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.no = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Norwegian = {
13
+ weekdays: {
14
+ shorthand: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"],
15
+ longhand: [
16
+ "Søndag",
17
+ "Mandag",
18
+ "Tirsdag",
19
+ "Onsdag",
20
+ "Torsdag",
21
+ "Fredag",
22
+ "Lørdag",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jan",
28
+ "Feb",
29
+ "Mar",
30
+ "Apr",
31
+ "Mai",
32
+ "Jun",
33
+ "Jul",
34
+ "Aug",
35
+ "Sep",
36
+ "Okt",
37
+ "Nov",
38
+ "Des",
39
+ ],
40
+ longhand: [
41
+ "Januar",
42
+ "Februar",
43
+ "Mars",
44
+ "April",
45
+ "Mai",
46
+ "Juni",
47
+ "Juli",
48
+ "August",
49
+ "September",
50
+ "Oktober",
51
+ "November",
52
+ "Desember",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ rangeSeparator: " til ",
57
+ weekAbbreviation: "Uke",
58
+ scrollTitle: "Scroll for å endre",
59
+ toggleTitle: "Klikk for å veksle",
60
+ time_24hr: true,
61
+ ordinal: function () {
62
+ return ".";
63
+ },
64
+ };
65
+ fp.l10ns.no = Norwegian;
66
+ var no = fp.l10ns;
67
+
68
+ exports.Norwegian = Norwegian;
69
+ exports.default = no;
70
+
71
+ Object.defineProperty(exports, '__esModule', { value: true });
72
+
73
+ })));
assets/js/flatpickr/dist/I10n/pa.js ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.pa = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Punjabi = {
13
+ weekdays: {
14
+ shorthand: ["ਐਤ", "ਸੋਮ", "ਮੰਗਲ", "ਬੁੱਧ", "ਵੀਰ", "ਸ਼ੁੱਕਰ", "ਸ਼ਨਿੱਚਰ"],
15
+ longhand: [
16
+ "ਐਤਵਾਰ",
17
+ "ਸੋਮਵਾਰ",
18
+ "ਮੰਗਲਵਾਰ",
19
+ "ਬੁੱਧਵਾਰ",
20
+ "ਵੀਰਵਾਰ",
21
+ "ਸ਼ੁੱਕਰਵਾਰ",
22
+ "ਸ਼ਨਿੱਚਰਵਾਰ",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "ਜਨ",
28
+ "ਫ਼ਰ",
29
+ "ਮਾਰ",
30
+ "ਅਪ੍ਰੈ",
31
+ "ਮਈ",
32
+ "ਜੂਨ",
33
+ "ਜੁਲਾ",
34
+ "ਅਗ",
35
+ "ਸਤੰ",
36
+ "ਅਕ",
37
+ "ਨਵੰ",
38
+ "ਦਸੰ",
39
+ ],
40
+ longhand: [
41
+ "ਜਨਵਰੀ",
42
+ "ਫ਼ਰਵਰੀ",
43
+ "ਮਾਰਚ",
44
+ "ਅਪ੍ਰੈਲ",
45
+ "ਮਈ",
46
+ "ਜੂਨ",
47
+ "ਜੁਲਾਈ",
48
+ "ਅਗਸਤ",
49
+ "ਸਤੰਬਰ",
50
+ "ਅਕਤੂਬਰ",
51
+ "ਨਵੰਬਰ",
52
+ "ਦਸੰਬਰ",
53
+ ],
54
+ },
55
+ time_24hr: true,
56
+ };
57
+ fp.l10ns.pa = Punjabi;
58
+ var pa = fp.l10ns;
59
+
60
+ exports.Punjabi = Punjabi;
61
+ exports.default = pa;
62
+
63
+ Object.defineProperty(exports, '__esModule', { value: true });
64
+
65
+ })));
assets/js/flatpickr/dist/I10n/pl.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.pl = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Polish = {
13
+ weekdays: {
14
+ shorthand: ["Nd", "Pn", "Wt", "Śr", "Cz", "Pt", "So"],
15
+ longhand: [
16
+ "Niedziela",
17
+ "Poniedziałek",
18
+ "Wtorek",
19
+ "Środa",
20
+ "Czwartek",
21
+ "Piątek",
22
+ "Sobota",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Sty",
28
+ "Lut",
29
+ "Mar",
30
+ "Kwi",
31
+ "Maj",
32
+ "Cze",
33
+ "Lip",
34
+ "Sie",
35
+ "Wrz",
36
+ "Paź",
37
+ "Lis",
38
+ "Gru",
39
+ ],
40
+ longhand: [
41
+ "Styczeń",
42
+ "Luty",
43
+ "Marzec",
44
+ "Kwiecień",
45
+ "Maj",
46
+ "Czerwiec",
47
+ "Lipiec",
48
+ "Sierpień",
49
+ "Wrzesień",
50
+ "Październik",
51
+ "Listopad",
52
+ "Grudzień",
53
+ ],
54
+ },
55
+ rangeSeparator: " do ",
56
+ weekAbbreviation: "tydz.",
57
+ scrollTitle: "Przewiń, aby zwiększyć",
58
+ toggleTitle: "Kliknij, aby przełączyć",
59
+ firstDayOfWeek: 1,
60
+ time_24hr: true,
61
+ ordinal: function () {
62
+ return ".";
63
+ },
64
+ };
65
+ fp.l10ns.pl = Polish;
66
+ var pl = fp.l10ns;
67
+
68
+ exports.Polish = Polish;
69
+ exports.default = pl;
70
+
71
+ Object.defineProperty(exports, '__esModule', { value: true });
72
+
73
+ })));
assets/js/flatpickr/dist/I10n/pt.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.pt = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Portuguese = {
13
+ weekdays: {
14
+ shorthand: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
15
+ longhand: [
16
+ "Domingo",
17
+ "Segunda-feira",
18
+ "Terça-feira",
19
+ "Quarta-feira",
20
+ "Quinta-feira",
21
+ "Sexta-feira",
22
+ "Sábado",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jan",
28
+ "Fev",
29
+ "Mar",
30
+ "Abr",
31
+ "Mai",
32
+ "Jun",
33
+ "Jul",
34
+ "Ago",
35
+ "Set",
36
+ "Out",
37
+ "Nov",
38
+ "Dez",
39
+ ],
40
+ longhand: [
41
+ "Janeiro",
42
+ "Fevereiro",
43
+ "Março",
44
+ "Abril",
45
+ "Maio",
46
+ "Junho",
47
+ "Julho",
48
+ "Agosto",
49
+ "Setembro",
50
+ "Outubro",
51
+ "Novembro",
52
+ "Dezembro",
53
+ ],
54
+ },
55
+ rangeSeparator: " até ",
56
+ time_24hr: true,
57
+ };
58
+ fp.l10ns.pt = Portuguese;
59
+ var pt = fp.l10ns;
60
+
61
+ exports.Portuguese = Portuguese;
62
+ exports.default = pt;
63
+
64
+ Object.defineProperty(exports, '__esModule', { value: true });
65
+
66
+ })));
assets/js/flatpickr/dist/I10n/ro.js ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ro = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Romanian = {
13
+ weekdays: {
14
+ shorthand: ["Dum", "Lun", "Mar", "Mie", "Joi", "Vin", "Sâm"],
15
+ longhand: [
16
+ "Duminică",
17
+ "Luni",
18
+ "Marți",
19
+ "Miercuri",
20
+ "Joi",
21
+ "Vineri",
22
+ "Sâmbătă",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Ian",
28
+ "Feb",
29
+ "Mar",
30
+ "Apr",
31
+ "Mai",
32
+ "Iun",
33
+ "Iul",
34
+ "Aug",
35
+ "Sep",
36
+ "Oct",
37
+ "Noi",
38
+ "Dec",
39
+ ],
40
+ longhand: [
41
+ "Ianuarie",
42
+ "Februarie",
43
+ "Martie",
44
+ "Aprilie",
45
+ "Mai",
46
+ "Iunie",
47
+ "Iulie",
48
+ "August",
49
+ "Septembrie",
50
+ "Octombrie",
51
+ "Noiembrie",
52
+ "Decembrie",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ time_24hr: true,
57
+ ordinal: function () {
58
+ return "";
59
+ },
60
+ };
61
+ fp.l10ns.ro = Romanian;
62
+ var ro = fp.l10ns;
63
+
64
+ exports.Romanian = Romanian;
65
+ exports.default = ro;
66
+
67
+ Object.defineProperty(exports, '__esModule', { value: true });
68
+
69
+ })));
assets/js/flatpickr/dist/I10n/ru.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ru = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Russian = {
13
+ weekdays: {
14
+ shorthand: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
15
+ longhand: [
16
+ "Воскресенье",
17
+ "Понедельник",
18
+ "Вторник",
19
+ "Среда",
20
+ "Четверг",
21
+ "Пятница",
22
+ "Суббота",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Янв",
28
+ "Фев",
29
+ "Март",
30
+ "Апр",
31
+ "Май",
32
+ "Июнь",
33
+ "Июль",
34
+ "Авг",
35
+ "Сен",
36
+ "Окт",
37
+ "Ноя",
38
+ "Дек",
39
+ ],
40
+ longhand: [
41
+ "Январь",
42
+ "Февраль",
43
+ "Март",
44
+ "Апрель",
45
+ "Май",
46
+ "Июнь",
47
+ "Июль",
48
+ "Август",
49
+ "Сентябрь",
50
+ "Октябрь",
51
+ "Ноябрь",
52
+ "Декабрь",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return "";
58
+ },
59
+ rangeSeparator: " — ",
60
+ weekAbbreviation: "Нед.",
61
+ scrollTitle: "Прокрутите для увеличения",
62
+ toggleTitle: "Нажмите для переключения",
63
+ amPM: ["ДП", "ПП"],
64
+ yearAriaLabel: "Год",
65
+ time_24hr: true,
66
+ };
67
+ fp.l10ns.ru = Russian;
68
+ var ru = fp.l10ns;
69
+
70
+ exports.Russian = Russian;
71
+ exports.default = ru;
72
+
73
+ Object.defineProperty(exports, '__esModule', { value: true });
74
+
75
+ })));
assets/js/flatpickr/dist/I10n/si.js ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.si = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Sinhala = {
13
+ weekdays: {
14
+ shorthand: ["ඉ", "ස", "අ", "බ", "බ්‍ර", "සි", "සෙ"],
15
+ longhand: [
16
+ "ඉරිදා",
17
+ "සඳුදා",
18
+ "අඟහරුවාදා",
19
+ "බදාදා",
20
+ "බ්‍රහස්පතින්දා",
21
+ "සිකුරාදා",
22
+ "සෙනසුරාදා",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "ජන",
28
+ "පෙබ",
29
+ "මාර්",
30
+ "අප්‍රේ",
31
+ "මැයි",
32
+ "ජුනි",
33
+ "ජූලි",
34
+ "අගෝ",
35
+ "සැප්",
36
+ "ඔක්",
37
+ "නොවැ",
38
+ "දෙසැ",
39
+ ],
40
+ longhand: [
41
+ "ජනවාරි",
42
+ "පෙබරවාරි",
43
+ "මාර්තු",
44
+ "අප්‍රේල්",
45
+ "මැයි",
46
+ "ජුනි",
47
+ "ජූලි",
48
+ "අගෝස්තු",
49
+ "සැප්තැම්බර්",
50
+ "ඔක්තෝබර්",
51
+ "නොවැම්බර්",
52
+ "දෙසැම්බර්",
53
+ ],
54
+ },
55
+ time_24hr: true,
56
+ };
57
+ fp.l10ns.si = Sinhala;
58
+ var si = fp.l10ns;
59
+
60
+ exports.Sinhala = Sinhala;
61
+ exports.default = si;
62
+
63
+ Object.defineProperty(exports, '__esModule', { value: true });
64
+
65
+ })));
assets/js/flatpickr/dist/I10n/sk.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.sk = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Slovak = {
13
+ weekdays: {
14
+ shorthand: ["Ned", "Pon", "Ut", "Str", "Štv", "Pia", "Sob"],
15
+ longhand: [
16
+ "Nedeľa",
17
+ "Pondelok",
18
+ "Utorok",
19
+ "Streda",
20
+ "Štvrtok",
21
+ "Piatok",
22
+ "Sobota",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jan",
28
+ "Feb",
29
+ "Mar",
30
+ "Apr",
31
+ "Máj",
32
+ "Jún",
33
+ "Júl",
34
+ "Aug",
35
+ "Sep",
36
+ "Okt",
37
+ "Nov",
38
+ "Dec",
39
+ ],
40
+ longhand: [
41
+ "Január",
42
+ "Február",
43
+ "Marec",
44
+ "Apríl",
45
+ "Máj",
46
+ "Jún",
47
+ "Júl",
48
+ "August",
49
+ "September",
50
+ "Október",
51
+ "November",
52
+ "December",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ rangeSeparator: " do ",
57
+ time_24hr: true,
58
+ ordinal: function () {
59
+ return ".";
60
+ },
61
+ };
62
+ fp.l10ns.sk = Slovak;
63
+ var sk = fp.l10ns;
64
+
65
+ exports.Slovak = Slovak;
66
+ exports.default = sk;
67
+
68
+ Object.defineProperty(exports, '__esModule', { value: true });
69
+
70
+ })));
assets/js/flatpickr/dist/I10n/sl.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.sl = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Slovenian = {
13
+ weekdays: {
14
+ shorthand: ["Ned", "Pon", "Tor", "Sre", "Čet", "Pet", "Sob"],
15
+ longhand: [
16
+ "Nedelja",
17
+ "Ponedeljek",
18
+ "Torek",
19
+ "Sreda",
20
+ "Četrtek",
21
+ "Petek",
22
+ "Sobota",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jan",
28
+ "Feb",
29
+ "Mar",
30
+ "Apr",
31
+ "Maj",
32
+ "Jun",
33
+ "Jul",
34
+ "Avg",
35
+ "Sep",
36
+ "Okt",
37
+ "Nov",
38
+ "Dec",
39
+ ],
40
+ longhand: [
41
+ "Januar",
42
+ "Februar",
43
+ "Marec",
44
+ "April",
45
+ "Maj",
46
+ "Junij",
47
+ "Julij",
48
+ "Avgust",
49
+ "September",
50
+ "Oktober",
51
+ "November",
52
+ "December",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ rangeSeparator: " do ",
57
+ time_24hr: true,
58
+ ordinal: function () {
59
+ return ".";
60
+ },
61
+ };
62
+ fp.l10ns.sl = Slovenian;
63
+ var sl = fp.l10ns;
64
+
65
+ exports.Slovenian = Slovenian;
66
+ exports.default = sl;
67
+
68
+ Object.defineProperty(exports, '__esModule', { value: true });
69
+
70
+ })));
assets/js/flatpickr/dist/I10n/sq.js ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.sq = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Albanian = {
13
+ weekdays: {
14
+ shorthand: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sh"],
15
+ longhand: [
16
+ "E Diel",
17
+ "E Hënë",
18
+ "E Martë",
19
+ "E Mërkurë",
20
+ "E Enjte",
21
+ "E Premte",
22
+ "E Shtunë",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jan",
28
+ "Shk",
29
+ "Mar",
30
+ "Pri",
31
+ "Maj",
32
+ "Qer",
33
+ "Kor",
34
+ "Gus",
35
+ "Sht",
36
+ "Tet",
37
+ "Nën",
38
+ "Dhj",
39
+ ],
40
+ longhand: [
41
+ "Janar",
42
+ "Shkurt",
43
+ "Mars",
44
+ "Prill",
45
+ "Maj",
46
+ "Qershor",
47
+ "Korrik",
48
+ "Gusht",
49
+ "Shtator",
50
+ "Tetor",
51
+ "Nëntor",
52
+ "Dhjetor",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ rangeSeparator: " deri ",
57
+ weekAbbreviation: "Java",
58
+ yearAriaLabel: "Viti",
59
+ monthAriaLabel: "Muaji",
60
+ hourAriaLabel: "Ora",
61
+ minuteAriaLabel: "Minuta",
62
+ time_24hr: true,
63
+ };
64
+ fp.l10ns.sq = Albanian;
65
+ var sq = fp.l10ns;
66
+
67
+ exports.Albanian = Albanian;
68
+ exports.default = sq;
69
+
70
+ Object.defineProperty(exports, '__esModule', { value: true });
71
+
72
+ })));
assets/js/flatpickr/dist/I10n/sr-cyr.js ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['sr-cyr'] = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var SerbianCyrillic = {
13
+ weekdays: {
14
+ shorthand: ["Нед", "Пон", "Уто", "Сре", "Чет", "Пет", "Суб"],
15
+ longhand: [
16
+ "Недеља",
17
+ "Понедељак",
18
+ "Уторак",
19
+ "Среда",
20
+ "Четвртак",
21
+ "Петак",
22
+ "Субота",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Јан",
28
+ "Феб",
29
+ "Мар",
30
+ "Апр",
31
+ "Мај",
32
+ "Јун",
33
+ "Јул",
34
+ "Авг",
35
+ "Сеп",
36
+ "Окт",
37
+ "Нов",
38
+ "Дец",
39
+ ],
40
+ longhand: [
41
+ "Јануар",
42
+ "Фебруар",
43
+ "Март",
44
+ "Април",
45
+ "Мај",
46
+ "Јун",
47
+ "Јул",
48
+ "Август",
49
+ "Септембар",
50
+ "Октобар",
51
+ "Новембар",
52
+ "Децембар",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ weekAbbreviation: "Нед.",
57
+ rangeSeparator: " до ",
58
+ };
59
+ fp.l10ns.sr = SerbianCyrillic;
60
+ var srCyr = fp.l10ns;
61
+
62
+ exports.SerbianCyrillic = SerbianCyrillic;
63
+ exports.default = srCyr;
64
+
65
+ Object.defineProperty(exports, '__esModule', { value: true });
66
+
67
+ })));
assets/js/flatpickr/dist/I10n/sr.js ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.sr = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Serbian = {
13
+ weekdays: {
14
+ shorthand: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub"],
15
+ longhand: [
16
+ "Nedelja",
17
+ "Ponedeljak",
18
+ "Utorak",
19
+ "Sreda",
20
+ "Četvrtak",
21
+ "Petak",
22
+ "Subota",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Jan",
28
+ "Feb",
29
+ "Mar",
30
+ "Apr",
31
+ "Maj",
32
+ "Jun",
33
+ "Jul",
34
+ "Avg",
35
+ "Sep",
36
+ "Okt",
37
+ "Nov",
38
+ "Dec",
39
+ ],
40
+ longhand: [
41
+ "Januar",
42
+ "Februar",
43
+ "Mart",
44
+ "April",
45
+ "Maj",
46
+ "Jun",
47
+ "Jul",
48
+ "Avgust",
49
+ "Septembar",
50
+ "Oktobar",
51
+ "Novembar",
52
+ "Decembar",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ weekAbbreviation: "Ned.",
57
+ rangeSeparator: " do ",
58
+ time_24hr: true,
59
+ };
60
+ fp.l10ns.sr = Serbian;
61
+ var sr = fp.l10ns;
62
+
63
+ exports.Serbian = Serbian;
64
+ exports.default = sr;
65
+
66
+ Object.defineProperty(exports, '__esModule', { value: true });
67
+
68
+ })));
assets/js/flatpickr/dist/I10n/sv.js ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.sv = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Swedish = {
13
+ firstDayOfWeek: 1,
14
+ weekAbbreviation: "v",
15
+ weekdays: {
16
+ shorthand: ["sön", "mån", "tis", "ons", "tor", "fre", "lör"],
17
+ longhand: [
18
+ "söndag",
19
+ "måndag",
20
+ "tisdag",
21
+ "onsdag",
22
+ "torsdag",
23
+ "fredag",
24
+ "lördag",
25
+ ],
26
+ },
27
+ months: {
28
+ shorthand: [
29
+ "jan",
30
+ "feb",
31
+ "mar",
32
+ "apr",
33
+ "maj",
34
+ "jun",
35
+ "jul",
36
+ "aug",
37
+ "sep",
38
+ "okt",
39
+ "nov",
40
+ "dec",
41
+ ],
42
+ longhand: [
43
+ "januari",
44
+ "februari",
45
+ "mars",
46
+ "april",
47
+ "maj",
48
+ "juni",
49
+ "juli",
50
+ "augusti",
51
+ "september",
52
+ "oktober",
53
+ "november",
54
+ "december",
55
+ ],
56
+ },
57
+ rangeSeparator: " till ",
58
+ time_24hr: true,
59
+ ordinal: function () {
60
+ return ".";
61
+ },
62
+ };
63
+ fp.l10ns.sv = Swedish;
64
+ var sv = fp.l10ns;
65
+
66
+ exports.Swedish = Swedish;
67
+ exports.default = sv;
68
+
69
+ Object.defineProperty(exports, '__esModule', { value: true });
70
+
71
+ })));
assets/js/flatpickr/dist/I10n/th.js ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.th = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Thai = {
13
+ weekdays: {
14
+ shorthand: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส"],
15
+ longhand: [
16
+ "อาทิตย์",
17
+ "จันทร์",
18
+ "อังคาร",
19
+ "พุธ",
20
+ "พฤหัสบดี",
21
+ "ศุกร์",
22
+ "เสาร์",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "ม.ค.",
28
+ "ก.พ.",
29
+ "มี.ค.",
30
+ "เม.ย.",
31
+ "พ.ค.",
32
+ "มิ.ย.",
33
+ "ก.ค.",
34
+ "ส.ค.",
35
+ "ก.ย.",
36
+ "ต.ค.",
37
+ "พ.ย.",
38
+ "ธ.ค.",
39
+ ],
40
+ longhand: [
41
+ "มกราคม",
42
+ "กุมภาพันธ์",
43
+ "มีนาคม",
44
+ "เมษายน",
45
+ "พฤษภาคม",
46
+ "มิถุนายน",
47
+ "กรกฎาคม",
48
+ "สิงหาคม",
49
+ "กันยายน",
50
+ "ตุลาคม",
51
+ "พฤศจิกายน",
52
+ "ธันวาคม",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ rangeSeparator: " ถึง ",
57
+ scrollTitle: "เลื่อนเพื่อเพิ่มหรือลด",
58
+ toggleTitle: "คลิกเพื่อเปลี่ยน",
59
+ time_24hr: true,
60
+ ordinal: function () {
61
+ return "";
62
+ },
63
+ };
64
+ fp.l10ns.th = Thai;
65
+ var th = fp.l10ns;
66
+
67
+ exports.Thai = Thai;
68
+ exports.default = th;
69
+
70
+ Object.defineProperty(exports, '__esModule', { value: true });
71
+
72
+ })));
assets/js/flatpickr/dist/I10n/tr.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.tr = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Turkish = {
13
+ weekdays: {
14
+ shorthand: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"],
15
+ longhand: [
16
+ "Pazar",
17
+ "Pazartesi",
18
+ "Salı",
19
+ "Çarşamba",
20
+ "Perşembe",
21
+ "Cuma",
22
+ "Cumartesi",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Oca",
28
+ "Şub",
29
+ "Mar",
30
+ "Nis",
31
+ "May",
32
+ "Haz",
33
+ "Tem",
34
+ "Ağu",
35
+ "Eyl",
36
+ "Eki",
37
+ "Kas",
38
+ "Ara",
39
+ ],
40
+ longhand: [
41
+ "Ocak",
42
+ "Şubat",
43
+ "Mart",
44
+ "Nisan",
45
+ "Mayıs",
46
+ "Haziran",
47
+ "Temmuz",
48
+ "Ağustos",
49
+ "Eylül",
50
+ "Ekim",
51
+ "Kasım",
52
+ "Aralık",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return ".";
58
+ },
59
+ rangeSeparator: " - ",
60
+ weekAbbreviation: "Hf",
61
+ scrollTitle: "Artırmak için kaydırın",
62
+ toggleTitle: "Aç/Kapa",
63
+ amPM: ["ÖÖ", "ÖS"],
64
+ time_24hr: true,
65
+ };
66
+ fp.l10ns.tr = Turkish;
67
+ var tr = fp.l10ns;
68
+
69
+ exports.Turkish = Turkish;
70
+ exports.default = tr;
71
+
72
+ Object.defineProperty(exports, '__esModule', { value: true });
73
+
74
+ })));
assets/js/flatpickr/dist/I10n/uk.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.uk = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Ukrainian = {
13
+ firstDayOfWeek: 1,
14
+ weekdays: {
15
+ shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
16
+ longhand: [
17
+ "Неділя",
18
+ "Понеділок",
19
+ "Вівторок",
20
+ "Середа",
21
+ "Четвер",
22
+ "П'ятниця",
23
+ "Субота",
24
+ ],
25
+ },
26
+ months: {
27
+ shorthand: [
28
+ "Січ",
29
+ "Лют",
30
+ "Бер",
31
+ "Кві",
32
+ "Тра",
33
+ "Чер",
34
+ "Лип",
35
+ "Сер",
36
+ "Вер",
37
+ "Жов",
38
+ "Лис",
39
+ "Гру",
40
+ ],
41
+ longhand: [
42
+ "Січень",
43
+ "Лютий",
44
+ "Березень",
45
+ "Квітень",
46
+ "Травень",
47
+ "Червень",
48
+ "Липень",
49
+ "Серпень",
50
+ "Вересень",
51
+ "Жовтень",
52
+ "Листопад",
53
+ "Грудень",
54
+ ],
55
+ },
56
+ time_24hr: true,
57
+ };
58
+ fp.l10ns.uk = Ukrainian;
59
+ var uk = fp.l10ns;
60
+
61
+ exports.Ukrainian = Ukrainian;
62
+ exports.default = uk;
63
+
64
+ Object.defineProperty(exports, '__esModule', { value: true });
65
+
66
+ })));
assets/js/flatpickr/dist/I10n/uz.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.uz = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Uzbek = {
13
+ weekdays: {
14
+ shorthand: ["Якш", "Душ", "Сеш", "Чор", "Пай", "Жум", "Шан"],
15
+ longhand: [
16
+ "Якшанба",
17
+ "Душанба",
18
+ "Сешанба",
19
+ "Чоршанба",
20
+ "Пайшанба",
21
+ "Жума",
22
+ "Шанба",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Янв",
28
+ "Фев",
29
+ "Мар",
30
+ "Апр",
31
+ "Май",
32
+ "Июн",
33
+ "Июл",
34
+ "Авг",
35
+ "Сен",
36
+ "Окт",
37
+ "Ноя",
38
+ "Дек",
39
+ ],
40
+ longhand: [
41
+ "Январ",
42
+ "Феврал",
43
+ "Март",
44
+ "Апрел",
45
+ "Май",
46
+ "Июн",
47
+ "Июл",
48
+ "Август",
49
+ "Сентябр",
50
+ "Октябр",
51
+ "Ноябр",
52
+ "Декабр",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return "";
58
+ },
59
+ rangeSeparator: " — ",
60
+ weekAbbreviation: "Ҳафта",
61
+ scrollTitle: "Катталаштириш учун айлантиринг",
62
+ toggleTitle: "Ўтиш учун босинг",
63
+ amPM: ["AM", "PM"],
64
+ yearAriaLabel: "Йил",
65
+ time_24hr: true,
66
+ };
67
+ fp.l10ns.uz = Uzbek;
68
+ var uz = fp.l10ns;
69
+
70
+ exports.Uzbek = Uzbek;
71
+ exports.default = uz;
72
+
73
+ Object.defineProperty(exports, '__esModule', { value: true });
74
+
75
+ })));
assets/js/flatpickr/dist/I10n/uz_latn.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.uz_latn = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var UzbekLatin = {
13
+ weekdays: {
14
+ shorthand: ["Ya", "Du", "Se", "Cho", "Pa", "Ju", "Sha"],
15
+ longhand: [
16
+ "Yakshanba",
17
+ "Dushanba",
18
+ "Seshanba",
19
+ "Chorshanba",
20
+ "Payshanba",
21
+ "Juma",
22
+ "Shanba",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Yan",
28
+ "Fev",
29
+ "Mar",
30
+ "Apr",
31
+ "May",
32
+ "Iyun",
33
+ "Iyul",
34
+ "Avg",
35
+ "Sen",
36
+ "Okt",
37
+ "Noy",
38
+ "Dek",
39
+ ],
40
+ longhand: [
41
+ "Yanvar",
42
+ "Fevral",
43
+ "Mart",
44
+ "Aprel",
45
+ "May",
46
+ "Iyun",
47
+ "Iyul",
48
+ "Avgust",
49
+ "Sentabr",
50
+ "Oktabr",
51
+ "Noyabr",
52
+ "Dekabr",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ ordinal: function () {
57
+ return "";
58
+ },
59
+ rangeSeparator: " — ",
60
+ weekAbbreviation: "Hafta",
61
+ scrollTitle: "Kattalashtirish uchun aylantiring",
62
+ toggleTitle: "O‘tish uchun bosing",
63
+ amPM: ["AM", "PM"],
64
+ yearAriaLabel: "Yil",
65
+ time_24hr: true,
66
+ };
67
+ fp.l10ns["uz_latn"] = UzbekLatin;
68
+ var uz_latn = fp.l10ns;
69
+
70
+ exports.UzbekLatin = UzbekLatin;
71
+ exports.default = uz_latn;
72
+
73
+ Object.defineProperty(exports, '__esModule', { value: true });
74
+
75
+ })));
assets/js/flatpickr/dist/I10n/vn.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.vn = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Vietnamese = {
13
+ weekdays: {
14
+ shorthand: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
15
+ longhand: [
16
+ "Chủ nhật",
17
+ "Thứ hai",
18
+ "Thứ ba",
19
+ "Thứ tư",
20
+ "Thứ năm",
21
+ "Thứ sáu",
22
+ "Thứ bảy",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "Th1",
28
+ "Th2",
29
+ "Th3",
30
+ "Th4",
31
+ "Th5",
32
+ "Th6",
33
+ "Th7",
34
+ "Th8",
35
+ "Th9",
36
+ "Th10",
37
+ "Th11",
38
+ "Th12",
39
+ ],
40
+ longhand: [
41
+ "Tháng một",
42
+ "Tháng hai",
43
+ "Tháng ba",
44
+ "Tháng tư",
45
+ "Tháng năm",
46
+ "Tháng sáu",
47
+ "Tháng bảy",
48
+ "Tháng tám",
49
+ "Tháng chín",
50
+ "Tháng mười",
51
+ "Tháng mười một",
52
+ "Tháng mười hai",
53
+ ],
54
+ },
55
+ firstDayOfWeek: 1,
56
+ rangeSeparator: " đến ",
57
+ };
58
+ fp.l10ns.vn = Vietnamese;
59
+ var vn = fp.l10ns;
60
+
61
+ exports.Vietnamese = Vietnamese;
62
+ exports.default = vn;
63
+
64
+ Object.defineProperty(exports, '__esModule', { value: true });
65
+
66
+ })));
assets/js/flatpickr/dist/I10n/zh-tw.js ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['zh-tw'] = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var MandarinTraditional = {
13
+ weekdays: {
14
+ shorthand: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"],
15
+ longhand: [
16
+ "星期日",
17
+ "星期一",
18
+ "星期二",
19
+ "星期三",
20
+ "星期四",
21
+ "星期五",
22
+ "星期六",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "一月",
28
+ "二月",
29
+ "三月",
30
+ "四月",
31
+ "五月",
32
+ "六月",
33
+ "七月",
34
+ "八月",
35
+ "九月",
36
+ "十月",
37
+ "十一月",
38
+ "十二月",
39
+ ],
40
+ longhand: [
41
+ "一月",
42
+ "二月",
43
+ "三月",
44
+ "四月",
45
+ "五月",
46
+ "六月",
47
+ "七月",
48
+ "八月",
49
+ "九月",
50
+ "十月",
51
+ "十一月",
52
+ "十二月",
53
+ ],
54
+ },
55
+ rangeSeparator: " 至 ",
56
+ weekAbbreviation: "週",
57
+ scrollTitle: "滾動切換",
58
+ toggleTitle: "點擊切換 12/24 小時時制",
59
+ };
60
+ fp.l10ns.zh_tw = MandarinTraditional;
61
+ var zhTw = fp.l10ns;
62
+
63
+ exports.MandarinTraditional = MandarinTraditional;
64
+ exports.default = zhTw;
65
+
66
+ Object.defineProperty(exports, '__esModule', { value: true });
67
+
68
+ })));
assets/js/flatpickr/dist/I10n/zh.js ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.zh = {}));
5
+ }(this, (function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {},
11
+ };
12
+ var Mandarin = {
13
+ weekdays: {
14
+ shorthand: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
15
+ longhand: [
16
+ "星期日",
17
+ "星期一",
18
+ "星期二",
19
+ "星期三",
20
+ "星期四",
21
+ "星期五",
22
+ "星期六",
23
+ ],
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "一月",
28
+ "二月",
29
+ "三月",
30
+ "四月",
31
+ "五月",
32
+ "六月",
33
+ "七月",
34
+ "八月",
35
+ "九月",
36
+ "十月",
37
+ "十一月",
38
+ "十二月",
39
+ ],
40
+ longhand: [
41
+ "一月",
42
+ "二月",
43
+ "三月",
44
+ "四月",
45
+ "五月",
46
+ "六月",
47
+ "七月",
48
+ "八月",
49
+ "九月",
50
+ "十月",
51
+ "十一月",
52
+ "十二月",
53
+ ],
54
+ },
55
+ rangeSeparator: " 至 ",
56
+ weekAbbreviation: "周",
57
+ scrollTitle: "滚动切换",
58
+ toggleTitle: "点击切换 12/24 小时时制",
59
+ };
60
+ fp.l10ns.zh = Mandarin;
61
+ var zh = fp.l10ns;
62
+
63
+ exports.Mandarin = Mandarin;
64
+ exports.default = zh;
65
+
66
+ Object.defineProperty(exports, '__esModule', { value: true });
67
+
68
+ })));
assets/js/frontend/user-registration-form-validator.js CHANGED
@@ -16,7 +16,7 @@
16
  this.add_validation_methods();
17
  this.load_validation();
18
  this.init_inputMask();
19
- this.init_tiptip();
20
 
21
  // Inline validation
22
  this.$user_registration.on(
@@ -30,15 +30,25 @@
30
  $(".ur-masked-input").inputmask();
31
  }
32
  },
33
- init_tiptip: function () {
34
- if (typeof tipTip !== "undefined") {
35
- var tiptip_args = {
36
- attribute: "title",
37
- fadeIn: 50,
38
- fadeOut: 50,
39
- delay: 200,
 
 
 
 
 
 
 
 
 
 
40
  };
41
- $(".user-registration-help-tip").tipTip(tiptip_args);
42
  }
43
  },
44
  /**
16
  this.add_validation_methods();
17
  this.load_validation();
18
  this.init_inputMask();
19
+ this.init_tooltipster();
20
 
21
  // Inline validation
22
  this.$user_registration.on(
30
  $(".ur-masked-input").inputmask();
31
  }
32
  },
33
+ init_tooltipster: function () {
34
+ if (typeof tooltipster !== "undefined") {
35
+ var tooltipster_args = {
36
+ theme: 'tooltipster-borderless',
37
+ maxWidth: 200,
38
+ multiple: true,
39
+ interactive: true,
40
+ position: 'bottom',
41
+ contentAsHTML: true,
42
+ functionInit: function( instance, helper ) {
43
+ var $origin = jQuery( helper.origin ),
44
+ dataTip = $origin.attr( 'data-tip' );
45
+
46
+ if ( dataTip ) {
47
+ instance.content( dataTip );
48
+ }
49
+ }
50
  };
51
+ $(".user-registration-help-tip").tooltipster(tooltipster_args);
52
  }
53
  },
54
  /**
assets/js/frontend/user-registration-form-validator.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var a,i="";(a=e(".ur-frontend-form form")).hasClass("edit-profile")&&(i="user_registration_");var s={$user_registration:a,init:function(){this.add_validation_methods(),this.load_validation(),this.init_inputMask(),this.init_tiptip(),this.$user_registration.on("input validate change",".input-text, select, input:checkbox input:radio",this.validate_field)},init_inputMask:function(){"undefined"!=typeof e.fn.inputmask&&e(".ur-masked-input").inputmask()},init_tiptip:function(){if("undefined"!=typeof tipTip){e(".user-registration-help-tip").tipTip({attribute:"title",fadeIn:50,fadeOut:50,delay:200})}},add_validation_methods:function(){e.validator.methods.email=function(e,a){var i=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return this.optional(a)||i.test(e)},e.validator.addMethod("lengthValidator",function(e,a,i){return e.length<=i},e.validator.format("Please enter less than {0} characters.")),e.validator.addMethod("SpecialCharacterValidator",function(e,a){var i=new RegExp(/^(?=.{3,20}$)[a-zA-Z][a-zA-Z0-9_.]*(?: [a-zA-Z0-9]+)*$/);return this.optional(a)||i.test(e)},user_registration_params.message_username_character_fields),e.validator.addMethod("checkLimit",function(a,i,s){var r=parseInt(s||0,10),t="";if(e(i).closest(".field-checkbox").length){t=e(i).closest("ul").find('input[type="checkbox"]:checked')}else if(e(i).closest(".field-multi_select2").length)t=e(i).val();else if(e(i).closest(".field-multiple_choice").length){t=e(i).closest("ul").find('input[type="checkbox"]:checked')}return 0===r||t.length<=r},e.validator.format("Please select no more than {0} options."))},load_validation:function(){if("undefined"==typeof e.fn.validate)return!1;var a=this;a.$user_registration.each(function(){var i=e(this),s=a.custom_validation(i);a.custom_validation_messages(),i.validate({errorClass:"user-registration-error",validClass:"user-registration-valid",rules:s.rules,messages:s.messages,focusInvalid:!1,invalidHandler:function(a,i){i.numberOfInvalids()&&e(window).scrollTop(e(i.errorList[0].element).offset().top)},errorPlacement:function(e,a){if(a.is("#password_2"))a.parent().after(e);else if("radio"===a.attr("type")||"checkbox"===a.attr("type")||"password"===a.attr("type"))a.parent().parent().parent().append(e);else if(a.is("select")&&a.attr("class").match(/date-month|date-day|date-year/))0===a.parent().find("label.user-registration-error:visible").length&&a.parent().find("select:last").after(e);else if(a.hasClass("ur-smart-phone-field")){var i=a.closest("p.form-row");i.find("#"+a.data("id")+"-error").remove(),i.append(e)}else"number"===a.attr("type")&&a.hasClass("ur-range-input")?e.insertAfter(a.closest(".ur-range-row").find(".ur-range-number")):(a.hasClass("urfu-file-input")||a.closest(".field-multi_select2").length,e.insertAfter(a.parent().parent()))},highlight:function(a,i,s){var r=e(a);r.closest(".form-row"),r.attr("name")},unhighlight:function(a,i,s){var r=e(a),t=r.closest(".form-row"),u=r.attr("name");"radio"===r.attr("type")||"checkbox"===r.attr("type")?t.find("input[name='"+u+"']").addClass(s).removeClass(i):r.addClass(s).removeClass(i),t.removeClass("user-registration-has-error")},submitHandler:function(a){return!(e(a).hasClass("register")||e(a).hasClass("edit-profile")&&"yes"===user_registration_params.ajax_submission_on_edit_profile)}})})},validate_field:function(a){e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields});var i=e(this),s=i.closest(".form-row"),r=!0,t=s.is(".validate-required"),u=s.is(".validate-email"),n=a.type;if("input"===n&&s.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email user-registration-validated"),"validate"===n||"change"===n){if(t&&("checkbox"!==i.attr("type")||i.is(":checked")?""===i.val()&&(s.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),r=!1):(s.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),r=!1)),u&&i.val()){new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(i.val())||(s.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-email"),r=!1)}r&&s.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email").addClass("user-registration-validated")}},custom_validation:function(a){var s={},r={};if(a.find("#user_confirm_email").length){var t=a.closest(".ur-frontend-form").attr("id");s.user_confirm_email={equalTo:"#"+t+" #user_email"},r.user_confirm_email=user_registration_params.message_confirm_email_fields}if(a.hasClass("edit-password"))s.password_2={equalTo:"#password_1"},r.password_2=user_registration_params.message_confirm_password_fields;else if(a.hasClass("register")&&a.find("#user_confirm_password").length){t=a.closest(".ur-frontend-form").attr("id");s.user_confirm_password={equalTo:"#"+t+" #user_pass"},r.user_confirm_password=user_registration_params.message_confirm_password_fields}var u=a.find("#user_login"),n={};u.length&&void 0!==u.data("username-length")&&(n.lengthValidator=u.data("username-length")),"no"==u.data("username-character")&&(n.SpecialCharacterValidator=u.data("username-character")),s.user_login=n;var d=a.find(".field-checkbox"),l=a.find(".field-multi_select2");return multiple_choice_div=a.find(".field-multiple_choice"),d.length&&d.each(function(){s[i+e(this).data("field-id")+"[]"]={checkLimit:e(this).find("ul").data("choice-limit")?e(this).find("ul").data("choice-limit"):0}}),l.length&&l.each(function(){s[i+e(this).data("field-id")+"[]"]={checkLimit:e(this).find("select").data("choice-limit")?e(this).find("select").data("choice-limit"):0}}),multiple_choice_div.length&&multiple_choice_div.each(function(){s[i+e(this).data("field-id")+"[]"]={checkLimit:e(this).find("ul").data("choice-limit")?e(this).find("ul").data("choice-limit"):0}}),{rules:s,messages:r}},custom_validation_messages:function(){e.validator.messages.required=user_registration_params.message_required_fields,e.validator.messages.url=user_registration_params.message_url_fields,e.validator.messages.email=user_registration_params.message_email_fields,e.validator.messages.number=user_registration_params.message_number_fields,e.validator.messages.confirmpassword=user_registration_params.message_confirm_password_fields,e.validator.messages.max=function(e,a){return user_registration_params.message_confirm_number_field_max.replace("%qty%",a.max)},e.validator.messages.min=function(e,a){return user_registration_params.message_confirm_number_field_min.replace("%qty%",a.min)},e.validator.messages.step=function(e,a){return user_registration_params.message_confirm_number_field_step.replace("%qty%",a.step)}}};e(window).on("load",function(){s.init()})}(jQuery);
1
+ !function(e){var a,i="";(a=e(".ur-frontend-form form")).hasClass("edit-profile")&&(i="user_registration_");var t={$user_registration:a,init:function(){this.add_validation_methods(),this.load_validation(),this.init_inputMask(),this.init_tooltipster(),this.$user_registration.on("input validate change",".input-text, select, input:checkbox input:radio",this.validate_field)},init_inputMask:function(){"undefined"!=typeof e.fn.inputmask&&e(".ur-masked-input").inputmask()},init_tooltipster:function(){if("undefined"!=typeof tooltipster){var a={theme:"tooltipster-borderless",maxWidth:200,multiple:!0,interactive:!0,position:"bottom",contentAsHTML:!0,functionInit:function(e,a){var i=jQuery(a.origin).attr("data-tip");i&&e.content(i)}};e(".user-registration-help-tip").tooltipster(a)}},add_validation_methods:function(){e.validator.methods.email=function(e,a){var i=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return this.optional(a)||i.test(e)},e.validator.addMethod("lengthValidator",function(e,a,i){return e.length<=i},e.validator.format("Please enter less than {0} characters.")),e.validator.addMethod("SpecialCharacterValidator",function(e,a){var i=new RegExp(/^(?=.{3,20}$)[a-zA-Z][a-zA-Z0-9_.]*(?: [a-zA-Z0-9]+)*$/);return this.optional(a)||i.test(e)},user_registration_params.message_username_character_fields),e.validator.addMethod("checkLimit",function(a,i,t){var s=parseInt(t||0,10),r="";if(e(i).closest(".field-checkbox").length){r=e(i).closest("ul").find('input[type="checkbox"]:checked')}else if(e(i).closest(".field-multi_select2").length)r=e(i).val();else if(e(i).closest(".field-multiple_choice").length){r=e(i).closest("ul").find('input[type="checkbox"]:checked')}return 0===s||r.length<=s},e.validator.format("Please select no more than {0} options."))},load_validation:function(){if("undefined"==typeof e.fn.validate)return!1;var a=this;a.$user_registration.each(function(){var i=e(this),t=a.custom_validation(i);a.custom_validation_messages(),i.validate({errorClass:"user-registration-error",validClass:"user-registration-valid",rules:t.rules,messages:t.messages,focusInvalid:!1,invalidHandler:function(a,i){i.numberOfInvalids()&&e(window).scrollTop(e(i.errorList[0].element).offset().top)},errorPlacement:function(e,a){if(a.is("#password_2"))a.parent().after(e);else if("radio"===a.attr("type")||"checkbox"===a.attr("type")||"password"===a.attr("type"))a.parent().parent().parent().append(e);else if(a.is("select")&&a.attr("class").match(/date-month|date-day|date-year/))0===a.parent().find("label.user-registration-error:visible").length&&a.parent().find("select:last").after(e);else if(a.hasClass("ur-smart-phone-field")){var i=a.closest("p.form-row");i.find("#"+a.data("id")+"-error").remove(),i.append(e)}else"number"===a.attr("type")&&a.hasClass("ur-range-input")?e.insertAfter(a.closest(".ur-range-row").find(".ur-range-number")):(a.hasClass("urfu-file-input")||a.closest(".field-multi_select2").length,e.insertAfter(a.parent().parent()))},highlight:function(a,i,t){var s=e(a);s.closest(".form-row"),s.attr("name")},unhighlight:function(a,i,t){var s=e(a),r=s.closest(".form-row"),u=s.attr("name");"radio"===s.attr("type")||"checkbox"===s.attr("type")?r.find("input[name='"+u+"']").addClass(t).removeClass(i):s.addClass(t).removeClass(i),r.removeClass("user-registration-has-error")},submitHandler:function(a){return!(e(a).hasClass("register")||e(a).hasClass("edit-profile")&&"yes"===user_registration_params.ajax_submission_on_edit_profile)}})})},validate_field:function(a){e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields});var i=e(this),t=i.closest(".form-row"),s=!0,r=t.is(".validate-required"),u=t.is(".validate-email"),n=a.type;if("input"===n&&t.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email user-registration-validated"),"validate"===n||"change"===n){if(r&&("checkbox"!==i.attr("type")||i.is(":checked")?""===i.val()&&(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),s=!1):(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),s=!1)),u&&i.val()){new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(i.val())||(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-email"),s=!1)}s&&t.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email").addClass("user-registration-validated")}},custom_validation:function(a){var t={},s={};if(a.find("#user_confirm_email").length){var r=a.closest(".ur-frontend-form").attr("id");t.user_confirm_email={equalTo:"#"+r+" #user_email"},s.user_confirm_email=user_registration_params.message_confirm_email_fields}if(a.hasClass("edit-password"))t.password_2={equalTo:"#password_1"},s.password_2=user_registration_params.message_confirm_password_fields;else if(a.hasClass("register")&&a.find("#user_confirm_password").length){r=a.closest(".ur-frontend-form").attr("id");t.user_confirm_password={equalTo:"#"+r+" #user_pass"},s.user_confirm_password=user_registration_params.message_confirm_password_fields}var u=a.find("#user_login"),n={};u.length&&void 0!==u.data("username-length")&&(n.lengthValidator=u.data("username-length")),"no"==u.data("username-character")&&(n.SpecialCharacterValidator=u.data("username-character")),t.user_login=n;var o=a.find(".field-checkbox"),l=a.find(".field-multi_select2");return multiple_choice_div=a.find(".field-multiple_choice"),o.length&&o.each(function(){t[i+e(this).data("field-id")+"[]"]={checkLimit:e(this).find("ul").data("choice-limit")?e(this).find("ul").data("choice-limit"):0}}),l.length&&l.each(function(){t[i+e(this).data("field-id")+"[]"]={checkLimit:e(this).find("select").data("choice-limit")?e(this).find("select").data("choice-limit"):0}}),multiple_choice_div.length&&multiple_choice_div.each(function(){t[i+e(this).data("field-id")+"[]"]={checkLimit:e(this).find("ul").data("choice-limit")?e(this).find("ul").data("choice-limit"):0}}),{rules:t,messages:s}},custom_validation_messages:function(){e.validator.messages.required=user_registration_params.message_required_fields,e.validator.messages.url=user_registration_params.message_url_fields,e.validator.messages.email=user_registration_params.message_email_fields,e.validator.messages.number=user_registration_params.message_number_fields,e.validator.messages.confirmpassword=user_registration_params.message_confirm_password_fields,e.validator.messages.max=function(e,a){return user_registration_params.message_confirm_number_field_max.replace("%qty%",a.max)},e.validator.messages.min=function(e,a){return user_registration_params.message_confirm_number_field_min.replace("%qty%",a.min)},e.validator.messages.step=function(e,a){return user_registration_params.message_confirm_number_field_step.replace("%qty%",a.step)}}};e(window).on("load",function(){t.init()})}(jQuery);
assets/js/frontend/user-registration.js CHANGED
@@ -1090,7 +1090,7 @@
1090
  }
1091
 
1092
  if (!$this.valid()) {
1093
- return;
1094
  }
1095
 
1096
  event.preventDefault();
1090
  }
1091
 
1092
  if (!$this.valid()) {
1093
+ return false;
1094
  }
1095
 
1096
  event.preventDefault();
assets/js/frontend/user-registration.min.js CHANGED
@@ -1 +1 @@
1
- function ur_includes(e,r){if(Array.isArray(e))for(var t=0;t<e.length;t+=1)if(e[t]===r)return!0;return!1}!function(e){var r=function(){var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var t=e(this),a=[],i=user_registration_params.form_required_fields,s={init:function(){},get_form_data:function(r){if(r===t.closest(".ur-frontend-form").attr("id")||e(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")){var a=this,i=[],n=s.separate_form_handler(""),o=new Array;e.each(n,function(){var r=e(this).attr("name");if(s.separate_form_handler('[name="'+r+'"]').length<2){var t=a.get_fieldwise_data(e(this)),n=document.querySelector(".field-invite_code");"invite_code"===t.field_name?"none"!==n.style.display&&i.push(t):i.push(t)}else e.inArray(r,o)<0&&o.push(r)});for(var d=0;d<o.length;d++){var u=s.separate_form_handler('[name="'+o[d]+'"]'),f=(u.get(0).tagName.toLowerCase(),"undefined"!==u.eq(0).attr("type")?u.eq(0).attr("type"):"null"),l=new Array;if(e.each(u,function(){var r=e(this),t="";switch(r.get(0).tagName.toLowerCase()){case"input":switch(f){case"checkbox":case"radio":t=r.prop("checked")?r.val():"";break;default:t=r.val()}break;case"select":case"textarea":t=r.val()}""!==t&&l.push(t)}),"checkbox"==f)if("multiple_choice"==u.eq(0).attr("data-field"))for(var p=l,c=0,m=0;m<p.length;m++)c+=p[m]<<0;else c=JSON.stringify(l);else if("radio"==f)c=l[0];else c=u.val();var _=o[d];_=_.replace("[]","");var g={value:c,field_type:f,label:u.eq(0).attr("data-label"),field_name:_};i.push(g)}return e(document).trigger("user_registration_frontend_form_data_filter",[i]),i}},get_fieldwise_data:function(r){var t={},s=r.get(0).tagName.toLowerCase(),n="undefined"!==r.attr("name")?r.attr("name"):"null",o=[];e(".field-phone").each(function(){var r=e(this).find(".form-row").attr("id");e(this).find(".form-row").find("#"+r).hasClass("ur-smart-phone-field")&&o.push(e(this).find(".form-row").attr("id"))});var d="undefined"!==r.attr("type")?r.attr("type"):"null",u=r.get(0).className.split(" ")[0];switch(t.value="",s){case"input":switch(d){case"checkbox":case"radio":t.value=r.prop("checked")?r.val():"";break;default:t.value=r.val()}ur_includes(o,n)&&(t.value=r.siblings('input[type="hidden"]').val());break;case"select":t.value=r.val();break;case"textarea":switch(u){case"wysiwyg":tinyMCE.triggerSave(),t.value=r.val();break;default:t.value=r.val()}}return e(document).trigger("user_registration_frontend_form_data_render",[r,t]),t.field_type="undefined"!==r.eq(0).attr("type")?r.eq(0).attr("type"):"null",r.attr("data-label")!==undefined?t.label=r.attr("data-label"):r.prev().length&&"label"===r.prev().get(0).tagName.toLowerCase()?t.label=r.prev().text():t.label=t.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?(t.field_name=r.attr("name"),t.field_name=t.field_name.replace("[]","")):t.field_name="",e.inArray(t.field_name,i.join(",").trim())>=0&&a.push(t.field_name),t},show_message:function(r,t,a,i){if(a.closest(".user-registration").find(".ur-message").remove(),e(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")){(s=e('<div class="user-registration-'+t+'"/>')).append(r);e(".user-registration").find(".user-registration-MyAccount-navigation").length?s.insertBefore(".user-registration-MyAccount-navigation"):s.insertBefore(".ur-frontend-form")}else{var s;(s=e('<div class="ur-message user-registration-'+t+'" id="ur-submit-message-node"/>')).append(r),"1"===i?a.append(s):a.prepend(s)}},separate_form_handler:function(r){return e(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")?t.find(".user-registration-profile-fields").find(".ur-edit-profile-field"+r):t.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field"+r)},missing_attachment_handler:function(r){var t=[];if(1<=r.length){r.each(function(){var r=e(this).attr("id");-1===e.inArray(r,t)&&t.push(r)});for(var a=0;a<t.length;a++){for(var i=e("#"+t[a]).val().split(","),s=i.length;s>=0;s--)e.isNumeric(i[s])||i.splice(s,1);e("#"+t[a]).val(i)}}}},n={init:function(){this.form_submit_event(),this.edit_profile_event()},form_submit_event:function(){e(".ur-frontend-form").each(function(){e(this).find("form.register").off("submit").on("submit",function(t){t.preventDefault();var a=e(this);if(e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields}),a.find(".user-registration-password-strength").length>0){var i=a.find(".user-registration-password-strength").attr("data-current-strength"),n=a.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(i,0)<parseInt(n,0)){if(""!=a.find("#user_pass").val()){a.find("#user_pass_error").remove();var o='<label id="user_pass_error" class="user-registration-error" for="user_pass">'+r.password_strength_error+".</label>";a.find(".user-registration-password-hint").after(o),a.find("#user_pass").attr("aria-invalid",!0),a.find("#user_pass").trigger("focus")}return!1}}var d=a.find(".ur-smart-phone-field");if("true"===d.attr("aria-invalid")){(l=d.closest("p.form-row")).find("#"+d.data("id")+"-error").remove();var u='<label id="'+d.data("id")+'-error" class="user-registration-error" for="'+d.data("id")+'">'+user_registration_params.message_validate_phone_number+"</label>";return l.append(u),l.find("#"+d.data("id")).attr("aria-invalid",!0),!0}var f=a.find(".urfu-file-input");s.missing_attachment_handler(f);if(1===a.find(".uraf-profile-picture-upload").find(".user-registration-error").length){var l,p=a.find(".uraf-profile-picture-upload").find(".uraf-profile-picture-input");(l=a.find(".uraf-profile-picture-upload")).find("#"+p.attr("name")+"-error").remove(),l.find(".uraf-profile-picture-file-error").remove();var c='<label id="'+p.attr("name")+'-error" class="user-registration-error" for="'+p.attr("name")+'">'+user_registration_params.message_required_fields+"</label>";l.find("button.wp_uraf_profile_picture_upload").after(c)}if(a.valid()){a.find(".ur-submit-button").prop("disabled",!0);var m,_=0,g="0",h="";h="hcaptcha"===user_registration_params.recaptcha_type?a.find('[name="h-captcha-response"]').val():a.find('[name="g-recaptcha-response"]').val();try{m=JSON.stringify(s.get_form_data(a.closest(".ur-frontend-form").attr("id")))}catch(w){m=""}1===e(this).closest("form").find('input[name="ur-user-form-id"]').length&&(_=e(this).closest("form").find('input[name="ur-user-form-id"]').val()),1===e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(g=e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var v={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:m,captchaResponse:h,form_id:_,ur_frontend_form_nonce:g},b={};if(e(document).trigger("user_registration_frontend_before_form_submit",[v,a,b]),"undefined"!=typeof b.message&&""!==b.message)return s.show_message("<p>"+b.message+"</p>","error",a,"1"),void a.find(".ur-submit-button").prop("disabled",!1);a.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:v,type:"POST",async:!0,complete:function(t){var i=[];if(i.status=!1,e(document).trigger("user_registration_frontend_before_ajax_complete_success_message",[t,i]),!i.status){a.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var n=a.find('input[name="ur-redirect-url"]').val(),o=e('<ul class=""/>'),d="error";try{var u=JSON.parse(t.responseText);"undefined"!=typeof u.success&&!0===u.success&&"undefined"!=typeof u.data.paypal_redirect&&(window.location=u.data.paypal_redirect),"undefined"!=typeof u.success&&!0===u.success&&(d="message"),"message"===d?(a.find(".user-registration-password-hint").remove(),a.find(".user-registration-password-strength").remove(),"admin_approval"==u.data.form_login_option?o.append("<li>"+r.user_under_approval+"</li>"):"email_confirmation"==u.data.form_login_option||"admin_approval_after_email_confirmation"==u.data.form_login_option?o.append("<li>"+r.user_email_pending+"</li>"):"payment"==u.data.form_login_option?o.append("<li>"+u.data.message+"</li>"):o.append((u.data.message,r.user_successfully_saved)),"undefined"!=typeof u.data.auto_password_generation_success_message&&o.append("<li>"+u.data.auto_password_generation_success_message+"</li>"),a[0].reset(),jQuery("#billing_country").trigger("change"),jQuery("#shipping_country").trigger("change"),"undefined"!=typeof u.data.role_based_redirect_url&&(n=u.data.role_based_redirect_url),void 0!==n&&""!==n?window.setTimeout(function(){window.location=n},1e3):"undefined"!=typeof u.data.auto_login&&u.data.auto_login&&location.reload()):"error"===d&&("object"==typeof u.data.message?e.each(u.data.message,function(e,r){o.append("<li>"+r+"</li>")}):o.append("<li>"+u.data.message+"</li>"))}catch(p){o.append("<li>"+p.message+"</li>")}var f=JSON.parse(t.responseText).data.success_message_positon;if(u.data.hasOwnProperty("message")&&u.data.message.hasOwnProperty("individual")){var l=[];e.each(a.find(".ur-field-item").find(".ur-frontend-field"),function(r){var t=e(this).attr("id");l.push(t)}),e.each(u.data.message,function(e,r){if(l.includes(e)){var t='<label id="'+e+'-error" class="user-registration-error" for="'+e+'">'+r+"</label>";a.find(".ur-field-item").find("input[id='"+e+"']").closest(".form-row").append(t)}})}else s.show_message(o,d,a,f);"1"===f?e(window).scrollTop(a.find(".ur-button-container").offset().top):e(window).scrollTop(a.closest(".ur-frontend-form").offset().top),e(document).trigger("user_registration_frontend_after_ajax_complete",[t.responseText,d,a]),a.find(".ur-submit-button").prop("disabled",!1)}}})}})})},edit_profile_event:function(){e("form.user-registration-EditProfileForm").off("submit").on("submit",function(r){var t=e(this);e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields});var a=t.find(".ur-smart-phone-field");if("true"===a.attr("aria-invalid")){(n=a.closest("p.form-row")).find("#"+a.data("id")+"-error").remove();var i='<label id="'+a.data("id")+'-error" class="user-registration-error" for="'+a.data("id")+'">'+user_registration_params.message_validate_phone_number+"</label>";return n.append(i),n.find("#"+a.data("id")).attr("aria-invalid",!0),!0}if(1===t.find(".uraf-profile-picture-upload").find(".user-registration-error").length){var n,o=t.find(".uraf-profile-picture-upload").find(".uraf-profile-picture-input");(n=t.find(".uraf-profile-picture-upload")).find("#"+o.attr("name")+"-error").remove(),n.find(".uraf-profile-picture-file-error").remove();var d='<label id="'+o.attr("name")+'-error" class="user-registration-error" for="'+o.attr("name")+'">'+user_registration_params.message_required_fields+"</label>";n.find("button.wp_uraf_profile_picture_upload").after(d)}if(t.valid()){r.preventDefault(),t.find(".user-registration-submit-Button").prop("disabled",!0);var u=t.find(".urfu-file-input");s.missing_attachment_handler(u);var f;try{f=s.get_form_data();var l=e("#profile_pic_url").val();f.push({value:l,field_name:"user_registration_profile_pic_url"}),f=JSON.stringify(f)}catch(c){f=""}var p={action:"user_registration_update_profile_details",security:user_registration_params.user_registration_profile_details_save,form_data:f};t.find(".user-registration-submit-Button").find("span").addClass("ur-front-spinner"),e.ajax({type:"POST",url:user_registration_params.ajax_url,dataType:"JSON",data:p,complete:function(r){t.find("span.ur-front-spinner").removeClass("ur-front-spinner"),t.closest(".user-registration").find(".user-registration-error").remove(),t.closest(".user-registration").find(".user-registration-message").remove();var a=e('<ul class=""/>'),i="error";try{var n=JSON.parse(r.responseText);"undefined"!=typeof n.success&&!0===n.success&&(i="message"),"object"==typeof n.data.message?e.each(n.data.message,function(e,r){a.append("<li>"+r+"</li>")}):a.append("<li>"+n.data.message+"</li>")}catch(o){a.append("<li>"+o.message+"</li>")}s.show_message(a,i,t,"0"),e(document).trigger("user_registration_edit_profile_after_ajax_complete"),t.find(".user-registration-submit-Button").prop("disabled",!1),e(window).scrollTop(e(".user-registration").position())}})}})}};s.init(),n.init()})},e(function(){e(".ur-submit-button").on("click",function(){e(this).closest("form.register").ur_form_submission()}),e(".user-registration-submit-Button").on("click",function(){e(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")&&"yes"===user_registration_params.ajax_submission_on_edit_profile&&e("form.user-registration-EditProfileForm").ur_form_submission()});var t={};e(document.body).on("click","#load_flatpickr",function(){var r=e(this).data("id"),a=t[r];if(!a){var i=e(this).closest(".ur-field-item").find("#formated_date").val();if(0<e(".ur-frontend-form").length)var s=e(".ur-frontend-form #"+r).attr("type","text").val(i);else s=e(".woocommerce-MyAccount-content #"+r).attr("type","text").val(i);e(this).attr("data-date-format",s.data("date-format")),e(this).attr("data-mode",s.data("mode")),e(this).attr("data-locale",s.data("locale")),e(this).attr("data-min-date",s.data("min-date")),e(this).attr("data-max-date",s.data("max-date")),e(this).attr("data-default-date",i),a=e(this).flatpickr({disableMobile:!0,onChange:function(t,a,i){e("#"+r).val(a)}}),t[r]=a}a&&a.open()}),e(".ur-frontend-form").each(function(){e(this).find("form.register").on("focusout","#user_pass, #password_1",function(){$this=e(this);var t=e(this).attr("name"),a=e(this).data("id"),i=$this.closest("form").attr("data-enable-strength-password");if("yes"===i||"1"===i){var s=$this.closest("form"),n=s.attr("data-minimum-password-strength"),o=[];(o="function"==typeof wp.passwordStrength.userInputDisallowedList?wp.passwordStrength.userInputDisallowedList():wp.passwordStrength.userInputBlacklist()).push(s.find('input[data-id="user_email"]').val()),o.push(s.find('input[data-id="user_login"]').val());if(wp.passwordStrength.meter($this.val(),o)<n&&""!==$this.val()){s.find("#"+a+"_error").remove();var d='<label id="'+a+'_error" class="user-registration-error" for="'+t+'">'+r.password_strength_error+".</label>";s.find(".user-registration-password-hint").after(d)}}})})}),e(function(){e(".user-registration-EditProfileForm.edit-profile .field-country").length>0&&e(".field-country").each(function(){var r=e(this).find(".ur-data-holder").data("option-value"),t=e(this).find(".ur-data-holder").data("option-html"),a=e(this).find("select");r&&t&&(0===a.find('option[value="'+r+'"]').length&&a.append("<option class='ur-remove' selected='selected' value='"+r+"'>"+t+"</option>"),e(this).on("click",function(){e(this).find(".ur-remove").remove()}))})})};e(function(){e(".input-checkbox").each(function(){var r=e(this).attr("data-id");e('input[name="'+r+'[]"]:checked').length==e('[data-id = "'+r+'" ]').length&&e('[data-check = "'+r+'" ]').prop("checked",!0)}),e('input[type="checkbox"]#checkall').on("click",function(){var r=e(this).attr("data-check");e('[data-id = "'+r+'" ]').prop("checked",e(this).prop("checked"))}),e(".input-checkbox").on("change",function(){var r=e(this).attr("data-id");!1===e(this).prop("checked")&&e('[data-check = "'+r+'" ]').prop("checked",!1),e('input[name="'+r+'[]"]:checked').length==e('[data-id = "'+r+'" ]').length&&e('[data-check = "'+r+'" ]').prop("checked",!0)})}),r(),e(window).on("load",function(){r()})}(jQuery),function(e){e(document).on("click",".password_preview",function(r){r.preventDefault();var t=user_registration_params.ursL10n,a=e(this).hasClass("dashicons-hidden")?"show":"hide",i=e(this).closest(".user-registration-form-row").find('input[name="password"]');if(0===i.length&&(i=e(this).closest(".field-user_pass").find('input[name="user_pass"]')),0===i.length&&(i=e(this).closest(".field-user_confirm_password").find('input[name="user_confirm_password"]')),0===i.length&&(i=e(this).closest(".user-registration-form-row").find('input[name="password_current"]')),0===i.length&&(i=e(this).closest(".user-registration-form-row").find('input[name="password_1"]')),0===i.length&&(i=e(this).closest(".user-registration-form-row").find('input[name="password_2"]')),i.length>0)switch(a){case"show":i.attr("type","text"),e(this).removeClass("dashicons-hidden").addClass("dashicons-visibility"),e(this).attr("title",t.hide_password_title);break;case"hide":i.attr("type","password"),e(this).removeClass("dashicons-visibility").addClass("dashicons-hidden"),e(this).attr("title",t.show_password_title)}})}(jQuery);
1
+ function ur_includes(e,r){if(Array.isArray(e))for(var t=0;t<e.length;t+=1)if(e[t]===r)return!0;return!1}!function(e){var r=function(){var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var t=e(this),a=[],i=user_registration_params.form_required_fields,s={init:function(){},get_form_data:function(r){if(r===t.closest(".ur-frontend-form").attr("id")||e(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")){var a=this,i=[],n=s.separate_form_handler(""),o=new Array;e.each(n,function(){var r=e(this).attr("name");if(s.separate_form_handler('[name="'+r+'"]').length<2){var t=a.get_fieldwise_data(e(this)),n=document.querySelector(".field-invite_code");"invite_code"===t.field_name?"none"!==n.style.display&&i.push(t):i.push(t)}else e.inArray(r,o)<0&&o.push(r)});for(var d=0;d<o.length;d++){var u=s.separate_form_handler('[name="'+o[d]+'"]'),f=(u.get(0).tagName.toLowerCase(),"undefined"!==u.eq(0).attr("type")?u.eq(0).attr("type"):"null"),l=new Array;if(e.each(u,function(){var r=e(this),t="";switch(r.get(0).tagName.toLowerCase()){case"input":switch(f){case"checkbox":case"radio":t=r.prop("checked")?r.val():"";break;default:t=r.val()}break;case"select":case"textarea":t=r.val()}""!==t&&l.push(t)}),"checkbox"==f)if("multiple_choice"==u.eq(0).attr("data-field"))for(var p=l,c=0,m=0;m<p.length;m++)c+=p[m]<<0;else c=JSON.stringify(l);else if("radio"==f)c=l[0];else c=u.val();var _=o[d];_=_.replace("[]","");var g={value:c,field_type:f,label:u.eq(0).attr("data-label"),field_name:_};i.push(g)}return e(document).trigger("user_registration_frontend_form_data_filter",[i]),i}},get_fieldwise_data:function(r){var t={},s=r.get(0).tagName.toLowerCase(),n="undefined"!==r.attr("name")?r.attr("name"):"null",o=[];e(".field-phone").each(function(){var r=e(this).find(".form-row").attr("id");e(this).find(".form-row").find("#"+r).hasClass("ur-smart-phone-field")&&o.push(e(this).find(".form-row").attr("id"))});var d="undefined"!==r.attr("type")?r.attr("type"):"null",u=r.get(0).className.split(" ")[0];switch(t.value="",s){case"input":switch(d){case"checkbox":case"radio":t.value=r.prop("checked")?r.val():"";break;default:t.value=r.val()}ur_includes(o,n)&&(t.value=r.siblings('input[type="hidden"]').val());break;case"select":t.value=r.val();break;case"textarea":switch(u){case"wysiwyg":tinyMCE.triggerSave(),t.value=r.val();break;default:t.value=r.val()}}return e(document).trigger("user_registration_frontend_form_data_render",[r,t]),t.field_type="undefined"!==r.eq(0).attr("type")?r.eq(0).attr("type"):"null",r.attr("data-label")!==undefined?t.label=r.attr("data-label"):r.prev().length&&"label"===r.prev().get(0).tagName.toLowerCase()?t.label=r.prev().text():t.label=t.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?(t.field_name=r.attr("name"),t.field_name=t.field_name.replace("[]","")):t.field_name="",e.inArray(t.field_name,i.join(",").trim())>=0&&a.push(t.field_name),t},show_message:function(r,t,a,i){if(a.closest(".user-registration").find(".ur-message").remove(),e(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")){(s=e('<div class="user-registration-'+t+'"/>')).append(r);e(".user-registration").find(".user-registration-MyAccount-navigation").length?s.insertBefore(".user-registration-MyAccount-navigation"):s.insertBefore(".ur-frontend-form")}else{var s;(s=e('<div class="ur-message user-registration-'+t+'" id="ur-submit-message-node"/>')).append(r),"1"===i?a.append(s):a.prepend(s)}},separate_form_handler:function(r){return e(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")?t.find(".user-registration-profile-fields").find(".ur-edit-profile-field"+r):t.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field"+r)},missing_attachment_handler:function(r){var t=[];if(1<=r.length){r.each(function(){var r=e(this).attr("id");-1===e.inArray(r,t)&&t.push(r)});for(var a=0;a<t.length;a++){for(var i=e("#"+t[a]).val().split(","),s=i.length;s>=0;s--)e.isNumeric(i[s])||i.splice(s,1);e("#"+t[a]).val(i)}}}},n={init:function(){this.form_submit_event(),this.edit_profile_event()},form_submit_event:function(){e(".ur-frontend-form").each(function(){e(this).find("form.register").off("submit").on("submit",function(t){t.preventDefault();var a=e(this);if(e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields}),a.find(".user-registration-password-strength").length>0){var i=a.find(".user-registration-password-strength").attr("data-current-strength"),n=a.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(i,0)<parseInt(n,0)){if(""!=a.find("#user_pass").val()){a.find("#user_pass_error").remove();var o='<label id="user_pass_error" class="user-registration-error" for="user_pass">'+r.password_strength_error+".</label>";a.find(".user-registration-password-hint").after(o),a.find("#user_pass").attr("aria-invalid",!0),a.find("#user_pass").trigger("focus")}return!1}}var d=a.find(".ur-smart-phone-field");if("true"===d.attr("aria-invalid")){(l=d.closest("p.form-row")).find("#"+d.data("id")+"-error").remove();var u='<label id="'+d.data("id")+'-error" class="user-registration-error" for="'+d.data("id")+'">'+user_registration_params.message_validate_phone_number+"</label>";return l.append(u),l.find("#"+d.data("id")).attr("aria-invalid",!0),!0}var f=a.find(".urfu-file-input");s.missing_attachment_handler(f);if(1===a.find(".uraf-profile-picture-upload").find(".user-registration-error").length){var l,p=a.find(".uraf-profile-picture-upload").find(".uraf-profile-picture-input");(l=a.find(".uraf-profile-picture-upload")).find("#"+p.attr("name")+"-error").remove(),l.find(".uraf-profile-picture-file-error").remove();var c='<label id="'+p.attr("name")+'-error" class="user-registration-error" for="'+p.attr("name")+'">'+user_registration_params.message_required_fields+"</label>";l.find("button.wp_uraf_profile_picture_upload").after(c)}if(a.valid()){a.find(".ur-submit-button").prop("disabled",!0);var m,_=0,g="0",h="";h="hcaptcha"===user_registration_params.recaptcha_type?a.find('[name="h-captcha-response"]').val():a.find('[name="g-recaptcha-response"]').val();try{m=JSON.stringify(s.get_form_data(a.closest(".ur-frontend-form").attr("id")))}catch(w){m=""}1===e(this).closest("form").find('input[name="ur-user-form-id"]').length&&(_=e(this).closest("form").find('input[name="ur-user-form-id"]').val()),1===e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(g=e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var v={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:m,captchaResponse:h,form_id:_,ur_frontend_form_nonce:g},b={};if(e(document).trigger("user_registration_frontend_before_form_submit",[v,a,b]),"undefined"!=typeof b.message&&""!==b.message)return s.show_message("<p>"+b.message+"</p>","error",a,"1"),void a.find(".ur-submit-button").prop("disabled",!1);a.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:v,type:"POST",async:!0,complete:function(t){var i=[];if(i.status=!1,e(document).trigger("user_registration_frontend_before_ajax_complete_success_message",[t,i]),!i.status){a.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var n=a.find('input[name="ur-redirect-url"]').val(),o=e('<ul class=""/>'),d="error";try{var u=JSON.parse(t.responseText);"undefined"!=typeof u.success&&!0===u.success&&"undefined"!=typeof u.data.paypal_redirect&&(window.location=u.data.paypal_redirect),"undefined"!=typeof u.success&&!0===u.success&&(d="message"),"message"===d?(a.find(".user-registration-password-hint").remove(),a.find(".user-registration-password-strength").remove(),"admin_approval"==u.data.form_login_option?o.append("<li>"+r.user_under_approval+"</li>"):"email_confirmation"==u.data.form_login_option||"admin_approval_after_email_confirmation"==u.data.form_login_option?o.append("<li>"+r.user_email_pending+"</li>"):"payment"==u.data.form_login_option?o.append("<li>"+u.data.message+"</li>"):o.append((u.data.message,r.user_successfully_saved)),"undefined"!=typeof u.data.auto_password_generation_success_message&&o.append("<li>"+u.data.auto_password_generation_success_message+"</li>"),a[0].reset(),jQuery("#billing_country").trigger("change"),jQuery("#shipping_country").trigger("change"),"undefined"!=typeof u.data.role_based_redirect_url&&(n=u.data.role_based_redirect_url),void 0!==n&&""!==n?window.setTimeout(function(){window.location=n},1e3):"undefined"!=typeof u.data.auto_login&&u.data.auto_login&&location.reload()):"error"===d&&("object"==typeof u.data.message?e.each(u.data.message,function(e,r){o.append("<li>"+r+"</li>")}):o.append("<li>"+u.data.message+"</li>"))}catch(p){o.append("<li>"+p.message+"</li>")}var f=JSON.parse(t.responseText).data.success_message_positon;if(u.data.hasOwnProperty("message")&&u.data.message.hasOwnProperty("individual")){var l=[];e.each(a.find(".ur-field-item").find(".ur-frontend-field"),function(r){var t=e(this).attr("id");l.push(t)}),e.each(u.data.message,function(e,r){if(l.includes(e)){var t='<label id="'+e+'-error" class="user-registration-error" for="'+e+'">'+r+"</label>";a.find(".ur-field-item").find("input[id='"+e+"']").closest(".form-row").append(t)}})}else s.show_message(o,d,a,f);"1"===f?e(window).scrollTop(a.find(".ur-button-container").offset().top):e(window).scrollTop(a.closest(".ur-frontend-form").offset().top),e(document).trigger("user_registration_frontend_after_ajax_complete",[t.responseText,d,a]),a.find(".ur-submit-button").prop("disabled",!1)}}})}})})},edit_profile_event:function(){e("form.user-registration-EditProfileForm").off("submit").on("submit",function(r){var t=e(this);e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields});var a=t.find(".ur-smart-phone-field");if("true"===a.attr("aria-invalid")){(n=a.closest("p.form-row")).find("#"+a.data("id")+"-error").remove();var i='<label id="'+a.data("id")+'-error" class="user-registration-error" for="'+a.data("id")+'">'+user_registration_params.message_validate_phone_number+"</label>";return n.append(i),n.find("#"+a.data("id")).attr("aria-invalid",!0),!0}if(1===t.find(".uraf-profile-picture-upload").find(".user-registration-error").length){var n,o=t.find(".uraf-profile-picture-upload").find(".uraf-profile-picture-input");(n=t.find(".uraf-profile-picture-upload")).find("#"+o.attr("name")+"-error").remove(),n.find(".uraf-profile-picture-file-error").remove();var d='<label id="'+o.attr("name")+'-error" class="user-registration-error" for="'+o.attr("name")+'">'+user_registration_params.message_required_fields+"</label>";n.find("button.wp_uraf_profile_picture_upload").after(d)}if(!t.valid())return!1;r.preventDefault(),t.find(".user-registration-submit-Button").prop("disabled",!0);var u=t.find(".urfu-file-input");s.missing_attachment_handler(u);var f;try{f=s.get_form_data();var l=e("#profile_pic_url").val();f.push({value:l,field_name:"user_registration_profile_pic_url"}),f=JSON.stringify(f)}catch(c){f=""}var p={action:"user_registration_update_profile_details",security:user_registration_params.user_registration_profile_details_save,form_data:f};t.find(".user-registration-submit-Button").find("span").addClass("ur-front-spinner"),e.ajax({type:"POST",url:user_registration_params.ajax_url,dataType:"JSON",data:p,complete:function(r){t.find("span.ur-front-spinner").removeClass("ur-front-spinner"),t.closest(".user-registration").find(".user-registration-error").remove(),t.closest(".user-registration").find(".user-registration-message").remove();var a=e('<ul class=""/>'),i="error";try{var n=JSON.parse(r.responseText);"undefined"!=typeof n.success&&!0===n.success&&(i="message"),"object"==typeof n.data.message?e.each(n.data.message,function(e,r){a.append("<li>"+r+"</li>")}):a.append("<li>"+n.data.message+"</li>")}catch(o){a.append("<li>"+o.message+"</li>")}s.show_message(a,i,t,"0"),e(document).trigger("user_registration_edit_profile_after_ajax_complete"),t.find(".user-registration-submit-Button").prop("disabled",!1),e(window).scrollTop(e(".user-registration").position())}})})}};s.init(),n.init()})},e(function(){e(".ur-submit-button").on("click",function(){e(this).closest("form.register").ur_form_submission()}),e(".user-registration-submit-Button").on("click",function(){e(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")&&"yes"===user_registration_params.ajax_submission_on_edit_profile&&e("form.user-registration-EditProfileForm").ur_form_submission()});var t={};e(document.body).on("click","#load_flatpickr",function(){var r=e(this).data("id"),a=t[r];if(!a){var i=e(this).closest(".ur-field-item").find("#formated_date").val();if(0<e(".ur-frontend-form").length)var s=e(".ur-frontend-form #"+r).attr("type","text").val(i);else s=e(".woocommerce-MyAccount-content #"+r).attr("type","text").val(i);e(this).attr("data-date-format",s.data("date-format")),e(this).attr("data-mode",s.data("mode")),e(this).attr("data-locale",s.data("locale")),e(this).attr("data-min-date",s.data("min-date")),e(this).attr("data-max-date",s.data("max-date")),e(this).attr("data-default-date",i),a=e(this).flatpickr({disableMobile:!0,onChange:function(t,a,i){e("#"+r).val(a)}}),t[r]=a}a&&a.open()}),e(".ur-frontend-form").each(function(){e(this).find("form.register").on("focusout","#user_pass, #password_1",function(){$this=e(this);var t=e(this).attr("name"),a=e(this).data("id"),i=$this.closest("form").attr("data-enable-strength-password");if("yes"===i||"1"===i){var s=$this.closest("form"),n=s.attr("data-minimum-password-strength"),o=[];(o="function"==typeof wp.passwordStrength.userInputDisallowedList?wp.passwordStrength.userInputDisallowedList():wp.passwordStrength.userInputBlacklist()).push(s.find('input[data-id="user_email"]').val()),o.push(s.find('input[data-id="user_login"]').val());if(wp.passwordStrength.meter($this.val(),o)<n&&""!==$this.val()){s.find("#"+a+"_error").remove();var d='<label id="'+a+'_error" class="user-registration-error" for="'+t+'">'+r.password_strength_error+".</label>";s.find(".user-registration-password-hint").after(d)}}})})}),e(function(){e(".user-registration-EditProfileForm.edit-profile .field-country").length>0&&e(".field-country").each(function(){var r=e(this).find(".ur-data-holder").data("option-value"),t=e(this).find(".ur-data-holder").data("option-html"),a=e(this).find("select");r&&t&&(0===a.find('option[value="'+r+'"]').length&&a.append("<option class='ur-remove' selected='selected' value='"+r+"'>"+t+"</option>"),e(this).on("click",function(){e(this).find(".ur-remove").remove()}))})})};e(function(){e(".input-checkbox").each(function(){var r=e(this).attr("data-id");e('input[name="'+r+'[]"]:checked').length==e('[data-id = "'+r+'" ]').length&&e('[data-check = "'+r+'" ]').prop("checked",!0)}),e('input[type="checkbox"]#checkall').on("click",function(){var r=e(this).attr("data-check");e('[data-id = "'+r+'" ]').prop("checked",e(this).prop("checked"))}),e(".input-checkbox").on("change",function(){var r=e(this).attr("data-id");!1===e(this).prop("checked")&&e('[data-check = "'+r+'" ]').prop("checked",!1),e('input[name="'+r+'[]"]:checked').length==e('[data-id = "'+r+'" ]').length&&e('[data-check = "'+r+'" ]').prop("checked",!0)})}),r(),e(window).on("load",function(){r()})}(jQuery),function(e){e(document).on("click",".password_preview",function(r){r.preventDefault();var t=user_registration_params.ursL10n,a=e(this).hasClass("dashicons-hidden")?"show":"hide",i=e(this).closest(".user-registration-form-row").find('input[name="password"]');if(0===i.length&&(i=e(this).closest(".field-user_pass").find('input[name="user_pass"]')),0===i.length&&(i=e(this).closest(".field-user_confirm_password").find('input[name="user_confirm_password"]')),0===i.length&&(i=e(this).closest(".user-registration-form-row").find('input[name="password_current"]')),0===i.length&&(i=e(this).closest(".user-registration-form-row").find('input[name="password_1"]')),0===i.length&&(i=e(this).closest(".user-registration-form-row").find('input[name="password_2"]')),i.length>0)switch(a){case"show":i.attr("type","text"),e(this).removeClass("dashicons-hidden").addClass("dashicons-visibility"),e(this).attr("title",t.hide_password_title);break;case"hide":i.attr("type","password"),e(this).removeClass("dashicons-visibility").addClass("dashicons-hidden"),e(this).attr("title",t.show_password_title)}})}(jQuery);
assets/js/tooltipster/tooltipster.bundle.js ADDED
@@ -0,0 +1,4272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * tooltipster http://calebjacob.github.io/tooltipster/
3
+ * A rockin' custom tooltip jQuery plugin
4
+ * Developed by Caleb Jacob and Louis Ameline
5
+ * MIT license
6
+ */
7
+ (function (root, factory) {
8
+ if (typeof define === 'function' && define.amd) {
9
+ // AMD. Register as an anonymous module unless amdModuleId is set
10
+ define(["jquery"], function (a0) {
11
+ return (factory(a0));
12
+ });
13
+ } else if (typeof exports === 'object') {
14
+ // Node. Does not work with strict CommonJS, but
15
+ // only CommonJS-like environments that support module.exports,
16
+ // like Node.
17
+ module.exports = factory(require("jquery"));
18
+ } else {
19
+ factory(jQuery);
20
+ }
21
+ }(this, function ($) {
22
+
23
+ // This file will be UMDified by a build task.
24
+
25
+ var defaults = {
26
+ animation: 'fade',
27
+ animationDuration: 350,
28
+ content: null,
29
+ contentAsHTML: false,
30
+ contentCloning: false,
31
+ debug: true,
32
+ delay: 300,
33
+ delayTouch: [300, 500],
34
+ functionInit: null,
35
+ functionBefore: null,
36
+ functionReady: null,
37
+ functionAfter: null,
38
+ functionFormat: null,
39
+ IEmin: 6,
40
+ interactive: false,
41
+ multiple: false,
42
+ // will default to document.body, or must be an element positioned at (0, 0)
43
+ // in the document, typically like the very top views of an app.
44
+ parent: null,
45
+ plugins: ['sideTip'],
46
+ repositionOnScroll: false,
47
+ restoration: 'none',
48
+ selfDestruction: true,
49
+ theme: [],
50
+ timer: 0,
51
+ trackerInterval: 500,
52
+ trackOrigin: false,
53
+ trackTooltip: false,
54
+ trigger: 'hover',
55
+ triggerClose: {
56
+ click: false,
57
+ mouseleave: false,
58
+ originClick: false,
59
+ scroll: false,
60
+ tap: false,
61
+ touchleave: false
62
+ },
63
+ triggerOpen: {
64
+ click: false,
65
+ mouseenter: false,
66
+ tap: false,
67
+ touchstart: false
68
+ },
69
+ updateAnimation: 'rotate',
70
+ zIndex: 9999999
71
+ },
72
+ // we'll avoid using the 'window' global as a good practice but npm's
73
+ // jquery@<2.1.0 package actually requires a 'window' global, so not sure
74
+ // it's useful at all
75
+ win = (typeof window != 'undefined') ? window : null,
76
+ // env will be proxied by the core for plugins to have access its properties
77
+ env = {
78
+ // detect if this device can trigger touch events. Better have a false
79
+ // positive (unused listeners, that's ok) than a false negative.
80
+ // https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
81
+ // http://stackoverflow.com/questions/4817029/whats-the-best-way-to-detect-a-touch-screen-device-using-javascript
82
+ hasTouchCapability: !!(
83
+ win
84
+ && ( 'ontouchstart' in win
85
+ || (win.DocumentTouch && win.document instanceof win.DocumentTouch)
86
+ || win.navigator.maxTouchPoints
87
+ )
88
+ ),
89
+ hasTransitions: transitionSupport(),
90
+ IE: false,
91
+ // don't set manually, it will be updated by a build task after the manifest
92
+ semVer: '4.2.8',
93
+ window: win
94
+ },
95
+ core = function() {
96
+
97
+ // core variables
98
+
99
+ // the core emitters
100
+ this.__$emitterPrivate = $({});
101
+ this.__$emitterPublic = $({});
102
+ this.__instancesLatestArr = [];
103
+ // collects plugin constructors
104
+ this.__plugins = {};
105
+ // proxy env variables for plugins who might use them
106
+ this._env = env;
107
+ };
108
+
109
+ // core methods
110
+ core.prototype = {
111
+
112
+ /**
113
+ * A function to proxy the public methods of an object onto another
114
+ *
115
+ * @param {object} constructor The constructor to bridge
116
+ * @param {object} obj The object that will get new methods (an instance or the core)
117
+ * @param {string} pluginName A plugin name for the console log message
118
+ * @return {core}
119
+ * @private
120
+ */
121
+ __bridge: function(constructor, obj, pluginName) {
122
+
123
+ // if it's not already bridged
124
+ if (!obj[pluginName]) {
125
+
126
+ var fn = function() {};
127
+ fn.prototype = constructor;
128
+
129
+ var pluginInstance = new fn();
130
+
131
+ // the _init method has to exist in instance constructors but might be missing
132
+ // in core constructors
133
+ if (pluginInstance.__init) {
134
+ pluginInstance.__init(obj);
135
+ }
136
+
137
+ $.each(constructor, function(methodName, fn) {
138
+
139
+ // don't proxy "private" methods, only "protected" and public ones
140
+ if (methodName.indexOf('__') != 0) {
141
+
142
+ // if the method does not exist yet
143
+ if (!obj[methodName]) {
144
+
145
+ obj[methodName] = function() {
146
+ return pluginInstance[methodName].apply(pluginInstance, Array.prototype.slice.apply(arguments));
147
+ };
148
+
149
+ // remember to which plugin this method corresponds (several plugins may
150
+ // have methods of the same name, we need to be sure)
151
+ obj[methodName].bridged = pluginInstance;
152
+ }
153
+ else if (defaults.debug) {
154
+
155
+ console.log('The '+ methodName +' method of the '+ pluginName
156
+ +' plugin conflicts with another plugin or native methods');
157
+ }
158
+ }
159
+ });
160
+
161
+ obj[pluginName] = pluginInstance;
162
+ }
163
+
164
+ return this;
165
+ },
166
+
167
+ /**
168
+ * For mockup in Node env if need be, for testing purposes
169
+ *
170
+ * @return {core}
171
+ * @private
172
+ */
173
+ __setWindow: function(window) {
174
+ env.window = window;
175
+ return this;
176
+ },
177
+
178
+ /**
179
+ * Returns a ruler, a tool to help measure the size of a tooltip under
180
+ * various settings. Meant for plugins
181
+ *
182
+ * @see Ruler
183
+ * @return {object} A Ruler instance
184
+ * @protected
185
+ */
186
+ _getRuler: function($tooltip) {
187
+ return new Ruler($tooltip);
188
+ },
189
+
190
+ /**
191
+ * For internal use by plugins, if needed
192
+ *
193
+ * @return {core}
194
+ * @protected
195
+ */
196
+ _off: function() {
197
+ this.__$emitterPrivate.off.apply(this.__$emitterPrivate, Array.prototype.slice.apply(arguments));
198
+ return this;
199
+ },
200
+
201
+ /**
202
+ * For internal use by plugins, if needed
203
+ *
204
+ * @return {core}
205
+ * @protected
206
+ */
207
+ _on: function() {
208
+ this.__$emitterPrivate.on.apply(this.__$emitterPrivate, Array.prototype.slice.apply(arguments));
209
+ return this;
210
+ },
211
+
212
+ /**
213
+ * For internal use by plugins, if needed
214
+ *
215
+ * @return {core}
216
+ * @protected
217
+ */
218
+ _one: function() {
219
+ this.__$emitterPrivate.one.apply(this.__$emitterPrivate, Array.prototype.slice.apply(arguments));
220
+ return this;
221
+ },
222
+
223
+ /**
224
+ * Returns (getter) or adds (setter) a plugin
225
+ *
226
+ * @param {string|object} plugin Provide a string (in the full form
227
+ * "namespace.name") to use as as getter, an object to use as a setter
228
+ * @return {object|core}
229
+ * @protected
230
+ */
231
+ _plugin: function(plugin) {
232
+
233
+ var self = this;
234
+
235
+ // getter
236
+ if (typeof plugin == 'string') {
237
+
238
+ var pluginName = plugin,
239
+ p = null;
240
+
241
+ // if the namespace is provided, it's easy to search
242
+ if (pluginName.indexOf('.') > 0) {
243
+ p = self.__plugins[pluginName];
244
+ }
245
+ // otherwise, return the first name that matches
246
+ else {
247
+ $.each(self.__plugins, function(i, plugin) {
248
+
249
+ if (plugin.name.substring(plugin.name.length - pluginName.length - 1) == '.'+ pluginName) {
250
+ p = plugin;
251
+ return false;
252
+ }
253
+ });
254
+ }
255
+
256
+ return p;
257
+ }
258
+ // setter
259
+ else {
260
+
261
+ // force namespaces
262
+ if (plugin.name.indexOf('.') < 0) {
263
+ throw new Error('Plugins must be namespaced');
264
+ }
265
+
266
+ self.__plugins[plugin.name] = plugin;
267
+
268
+ // if the plugin has core features
269
+ if (plugin.core) {
270
+
271
+ // bridge non-private methods onto the core to allow new core methods
272
+ self.__bridge(plugin.core, self, plugin.name);
273
+ }
274
+
275
+ return this;
276
+ }
277
+ },
278
+
279
+ /**
280
+ * Trigger events on the core emitters
281
+ *
282
+ * @returns {core}
283
+ * @protected
284
+ */
285
+ _trigger: function() {
286
+
287
+ var args = Array.prototype.slice.apply(arguments);
288
+
289
+ if (typeof args[0] == 'string') {
290
+ args[0] = { type: args[0] };
291
+ }
292
+
293
+ // note: the order of emitters matters
294
+ this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate, args);
295
+ this.__$emitterPublic.trigger.apply(this.__$emitterPublic, args);
296
+
297
+ return this;
298
+ },
299
+
300
+ /**
301
+ * Returns instances of all tooltips in the page or an a given element
302
+ *
303
+ * @param {string|HTML object collection} selector optional Use this
304
+ * parameter to restrict the set of objects that will be inspected
305
+ * for the retrieval of instances. By default, all instances in the
306
+ * page are returned.
307
+ * @return {array} An array of instance objects
308
+ * @public
309
+ */
310
+ instances: function(selector) {
311
+
312
+ var instances = [],
313
+ sel = selector || '.tooltipstered';
314
+
315
+ $(sel).each(function() {
316
+
317
+ var $this = $(this),
318
+ ns = $this.data('tooltipster-ns');
319
+
320
+ if (ns) {
321
+
322
+ $.each(ns, function(i, namespace) {
323
+ instances.push($this.data(namespace));
324
+ });
325
+ }
326
+ });
327
+
328
+ return instances;
329
+ },
330
+
331
+ /**
332
+ * Returns the Tooltipster objects generated by the last initializing call
333
+ *
334
+ * @return {array} An array of instance objects
335
+ * @public
336
+ */
337
+ instancesLatest: function() {
338
+ return this.__instancesLatestArr;
339
+ },
340
+
341
+ /**
342
+ * For public use only, not to be used by plugins (use ::_off() instead)
343
+ *
344
+ * @return {core}
345
+ * @public
346
+ */
347
+ off: function() {
348
+ this.__$emitterPublic.off.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments));
349
+ return this;
350
+ },
351
+
352
+ /**
353
+ * For public use only, not to be used by plugins (use ::_on() instead)
354
+ *
355
+ * @return {core}
356
+ * @public
357
+ */
358
+ on: function() {
359
+ this.__$emitterPublic.on.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments));
360
+ return this;
361
+ },
362
+
363
+ /**
364
+ * For public use only, not to be used by plugins (use ::_one() instead)
365
+ *
366
+ * @return {core}
367
+ * @public
368
+ */
369
+ one: function() {
370
+ this.__$emitterPublic.one.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments));
371
+ return this;
372
+ },
373
+
374
+ /**
375
+ * Returns all HTML elements which have one or more tooltips
376
+ *
377
+ * @param {string} selector optional Use this to restrict the results
378
+ * to the descendants of an element
379
+ * @return {array} An array of HTML elements
380
+ * @public
381
+ */
382
+ origins: function(selector) {
383
+
384
+ var sel = selector ?
385
+ selector +' ' :
386
+ '';
387
+
388
+ return $(sel +'.tooltipstered').toArray();
389
+ },
390
+
391
+ /**
392
+ * Change default options for all future instances
393
+ *
394
+ * @param {object} d The options that should be made defaults
395
+ * @return {core}
396
+ * @public
397
+ */
398
+ setDefaults: function(d) {
399
+ $.extend(defaults, d);
400
+ return this;
401
+ },
402
+
403
+ /**
404
+ * For users to trigger their handlers on the public emitter
405
+ *
406
+ * @returns {core}
407
+ * @public
408
+ */
409
+ triggerHandler: function() {
410
+ this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments));
411
+ return this;
412
+ }
413
+ };
414
+
415
+ // $.tooltipster will be used to call core methods
416
+ $.tooltipster = new core();
417
+
418
+ // the Tooltipster instance class (mind the capital T)
419
+ $.Tooltipster = function(element, options) {
420
+
421
+ // list of instance variables
422
+
423
+ // stack of custom callbacks provided as parameters to API methods
424
+ this.__callbacks = {
425
+ close: [],
426
+ open: []
427
+ };
428
+ // the schedule time of DOM removal
429
+ this.__closingTime;
430
+ // this will be the user content shown in the tooltip. A capital "C" is used
431
+ // because there is also a method called content()
432
+ this.__Content;
433
+ // for the size tracker
434
+ this.__contentBcr;
435
+ // to disable the tooltip after destruction
436
+ this.__destroyed = false;
437
+ // we can't emit directly on the instance because if a method with the same
438
+ // name as the event exists, it will be called by jQuery. Se we use a plain
439
+ // object as emitter. This emitter is for internal use by plugins,
440
+ // if needed.
441
+ this.__$emitterPrivate = $({});
442
+ // this emitter is for the user to listen to events without risking to mess
443
+ // with our internal listeners
444
+ this.__$emitterPublic = $({});
445
+ this.__enabled = true;
446
+ // the reference to the gc interval
447
+ this.__garbageCollector;
448
+ // various position and size data recomputed before each repositioning
449
+ this.__Geometry;
450
+ // the tooltip position, saved after each repositioning by a plugin
451
+ this.__lastPosition;
452
+ // a unique namespace per instance
453
+ this.__namespace = 'tooltipster-'+ Math.round(Math.random()*1000000);
454
+ this.__options;
455
+ // will be used to support origins in scrollable areas
456
+ this.__$originParents;
457
+ this.__pointerIsOverOrigin = false;
458
+ // to remove themes if needed
459
+ this.__previousThemes = [];
460
+ // the state can be either: appearing, stable, disappearing, closed
461
+ this.__state = 'closed';
462
+ // timeout references
463
+ this.__timeouts = {
464
+ close: [],
465
+ open: null
466
+ };
467
+ // store touch events to be able to detect emulated mouse events
468
+ this.__touchEvents = [];
469
+ // the reference to the tracker interval
470
+ this.__tracker = null;
471
+ // the element to which this tooltip is associated
472
+ this._$origin;
473
+ // this will be the tooltip element (jQuery wrapped HTML element).
474
+ // It's the job of a plugin to create it and append it to the DOM
475
+ this._$tooltip;
476
+
477
+ // launch
478
+ this.__init(element, options);
479
+ };
480
+
481
+ $.Tooltipster.prototype = {
482
+
483
+ /**
484
+ * @param origin
485
+ * @param options
486
+ * @private
487
+ */
488
+ __init: function(origin, options) {
489
+
490
+ var self = this;
491
+
492
+ self._$origin = $(origin);
493
+ self.__options = $.extend(true, {}, defaults, options);
494
+
495
+ // some options may need to be reformatted
496
+ self.__optionsFormat();
497
+
498
+ // don't run on old IE if asked no to
499
+ if ( !env.IE
500
+ || env.IE >= self.__options.IEmin
501
+ ) {
502
+
503
+ // note: the content is null (empty) by default and can stay that
504
+ // way if the plugin remains initialized but not fed any content. The
505
+ // tooltip will just not appear.
506
+
507
+ // let's save the initial value of the title attribute for later
508
+ // restoration if need be.
509
+ var initialTitle = null;
510
+
511
+ // it will already have been saved in case of multiple tooltips
512
+ if (self._$origin.data('tooltipster-initialTitle') === undefined) {
513
+
514
+ initialTitle = self._$origin.attr('title');
515
+
516
+ // we do not want initialTitle to be "undefined" because
517
+ // of how jQuery's .data() method works
518
+ if (initialTitle === undefined) initialTitle = null;
519
+
520
+ self._$origin.data('tooltipster-initialTitle', initialTitle);
521
+ }
522
+
523
+ // If content is provided in the options, it has precedence over the
524
+ // title attribute.
525
+ // Note: an empty string is considered content, only 'null' represents
526
+ // the absence of content.
527
+ // Also, an existing title="" attribute will result in an empty string
528
+ // content
529
+ if (self.__options.content !== null) {
530
+ self.__contentSet(self.__options.content);
531
+ }
532
+ else {
533
+
534
+ var selector = self._$origin.attr('data-tooltip-content'),
535
+ $el;
536
+
537
+ if (selector){
538
+ $el = $(selector);
539
+ }
540
+
541
+ if ($el && $el[0]) {
542
+ self.__contentSet($el.first());
543
+ }
544
+ else {
545
+ self.__contentSet(initialTitle);
546
+ }
547
+ }
548
+
549
+ self._$origin
550
+ // strip the title off of the element to prevent the default tooltips
551
+ // from popping up
552
+ .removeAttr('title')
553
+ // to be able to find all instances on the page later (upon window
554
+ // events in particular)
555
+ .addClass('tooltipstered');
556
+
557
+ // set listeners on the origin
558
+ self.__prepareOrigin();
559
+
560
+ // set the garbage collector
561
+ self.__prepareGC();
562
+
563
+ // init plugins
564
+ $.each(self.__options.plugins, function(i, pluginName) {
565
+ self._plug(pluginName);
566
+ });
567
+
568
+ // to detect swiping
569
+ if (env.hasTouchCapability) {
570
+ $(env.window.document.body).on('touchmove.'+ self.__namespace +'-triggerOpen', function(event) {
571
+ self._touchRecordEvent(event);
572
+ });
573
+ }
574
+
575
+ self
576
+ // prepare the tooltip when it gets created. This event must
577
+ // be fired by a plugin
578
+ ._on('created', function() {
579
+ self.__prepareTooltip();
580
+ })
581
+ // save position information when it's sent by a plugin
582
+ ._on('repositioned', function(e) {
583
+ self.__lastPosition = e.position;
584
+ });
585
+ }
586
+ else {
587
+ self.__options.disabled = true;
588
+ }
589
+ },
590
+
591
+ /**
592
+ * Insert the content into the appropriate HTML element of the tooltip
593
+ *
594
+ * @returns {self}
595
+ * @private
596
+ */
597
+ __contentInsert: function() {
598
+
599
+ var self = this,
600
+ $el = self._$tooltip.find('.tooltipster-content'),
601
+ formattedContent = self.__Content,
602
+ format = function(content) {
603
+ formattedContent = content;
604
+ };
605
+
606
+ self._trigger({
607
+ type: 'format',
608
+ content: self.__Content,
609
+ format: format
610
+ });
611
+
612
+ if (self.__options.functionFormat) {
613
+
614
+ formattedContent = self.__options.functionFormat.call(
615
+ self,
616
+ self,
617
+ { origin: self._$origin[0] },
618
+ self.__Content
619
+ );
620
+ }
621
+
622
+ if (typeof formattedContent === 'string' && !self.__options.contentAsHTML) {
623
+ $el.text(formattedContent);
624
+ }
625
+ else {
626
+ $el
627
+ .empty()
628
+ .append(formattedContent);
629
+ }
630
+
631
+ return self;
632
+ },
633
+
634
+ /**
635
+ * Save the content, cloning it beforehand if need be
636
+ *
637
+ * @param content
638
+ * @returns {self}
639
+ * @private
640
+ */
641
+ __contentSet: function(content) {
642
+
643
+ // clone if asked. Cloning the object makes sure that each instance has its
644
+ // own version of the content (in case a same object were provided for several
645
+ // instances)
646
+ // reminder: typeof null === object
647
+ if (content instanceof $ && this.__options.contentCloning) {
648
+ content = content.clone(true);
649
+ }
650
+
651
+ this.__Content = content;
652
+
653
+ this._trigger({
654
+ type: 'updated',
655
+ content: content
656
+ });
657
+
658
+ return this;
659
+ },
660
+
661
+ /**
662
+ * Error message about a method call made after destruction
663
+ *
664
+ * @private
665
+ */
666
+ __destroyError: function() {
667
+ throw new Error('This tooltip has been destroyed and cannot execute your method call.');
668
+ },
669
+
670
+ /**
671
+ * Gather all information about dimensions and available space,
672
+ * called before every repositioning
673
+ *
674
+ * @private
675
+ * @returns {object}
676
+ */
677
+ __geometry: function() {
678
+
679
+ var self = this,
680
+ $target = self._$origin,
681
+ originIsArea = self._$origin.is('area');
682
+
683
+ // if this._$origin is a map area, the target we'll need
684
+ // the dimensions of is actually the image using the map,
685
+ // not the area itself
686
+ if (originIsArea) {
687
+
688
+ var mapName = self._$origin.parent().attr('name');
689
+
690
+ $target = $('img[usemap="#'+ mapName +'"]');
691
+ }
692
+
693
+ var bcr = $target[0].getBoundingClientRect(),
694
+ $document = $(env.window.document),
695
+ $window = $(env.window),
696
+ $parent = $target,
697
+ // some useful properties of important elements
698
+ geo = {
699
+ // available space for the tooltip, see down below
700
+ available: {
701
+ document: null,
702
+ window: null
703
+ },
704
+ document: {
705
+ size: {
706
+ height: $document.height(),
707
+ width: $document.width()
708
+ }
709
+ },
710
+ window: {
711
+ scroll: {
712
+ // the second ones are for IE compatibility
713
+ left: env.window.scrollX || env.window.document.documentElement.scrollLeft,
714
+ top: env.window.scrollY || env.window.document.documentElement.scrollTop
715
+ },
716
+ size: {
717
+ height: $window.height(),
718
+ width: $window.width()
719
+ }
720
+ },
721
+ origin: {
722
+ // the origin has a fixed lineage if itself or one of its
723
+ // ancestors has a fixed position
724
+ fixedLineage: false,
725
+ // relative to the document
726
+ offset: {},
727
+ size: {
728
+ height: bcr.bottom - bcr.top,
729
+ width: bcr.right - bcr.left
730
+ },
731
+ usemapImage: originIsArea ? $target[0] : null,
732
+ // relative to the window
733
+ windowOffset: {
734
+ bottom: bcr.bottom,
735
+ left: bcr.left,
736
+ right: bcr.right,
737
+ top: bcr.top
738
+ }
739
+ }
740
+ },
741
+ geoFixed = false;
742
+
743
+ // if the element is a map area, some properties may need
744
+ // to be recalculated
745
+ if (originIsArea) {
746
+
747
+ var shape = self._$origin.attr('shape'),
748
+ coords = self._$origin.attr('coords');
749
+
750
+ if (coords) {
751
+
752
+ coords = coords.split(',');
753
+
754
+ $.map(coords, function(val, i) {
755
+ coords[i] = parseInt(val);
756
+ });
757
+ }
758
+
759
+ // if the image itself is the area, nothing more to do
760
+ if (shape != 'default') {
761
+
762
+ switch(shape) {
763
+
764
+ case 'circle':
765
+
766
+ var circleCenterLeft = coords[0],
767
+ circleCenterTop = coords[1],
768
+ circleRadius = coords[2],
769
+ areaTopOffset = circleCenterTop - circleRadius,
770
+ areaLeftOffset = circleCenterLeft - circleRadius;
771
+
772
+ geo.origin.size.height = circleRadius * 2;
773
+ geo.origin.size.width = geo.origin.size.height;
774
+
775
+ geo.origin.windowOffset.left += areaLeftOffset;
776
+ geo.origin.windowOffset.top += areaTopOffset;
777
+
778
+ break;
779
+
780
+ case 'rect':
781
+
782
+ var areaLeft = coords[0],
783
+ areaTop = coords[1],
784
+ areaRight = coords[2],
785
+ areaBottom = coords[3];
786
+
787
+ geo.origin.size.height = areaBottom - areaTop;
788
+ geo.origin.size.width = areaRight - areaLeft;
789
+
790
+ geo.origin.windowOffset.left += areaLeft;
791
+ geo.origin.windowOffset.top += areaTop;
792
+
793
+ break;
794
+
795
+ case 'poly':
796
+
797
+ var areaSmallestX = 0,
798
+ areaSmallestY = 0,
799
+ areaGreatestX = 0,
800
+ areaGreatestY = 0,
801
+ arrayAlternate = 'even';
802
+
803
+ for (var i = 0; i < coords.length; i++) {
804
+
805
+ var areaNumber = coords[i];
806
+
807
+ if (arrayAlternate == 'even') {
808
+
809
+ if (areaNumber > areaGreatestX) {
810
+
811
+ areaGreatestX = areaNumber;
812
+
813
+ if (i === 0) {
814
+ areaSmallestX = areaGreatestX;
815
+ }
816
+ }
817
+
818
+ if (areaNumber < areaSmallestX) {
819
+ areaSmallestX = areaNumber;
820
+ }
821
+
822
+ arrayAlternate = 'odd';
823
+ }
824
+ else {
825
+ if (areaNumber > areaGreatestY) {
826
+
827
+ areaGreatestY = areaNumber;
828
+
829
+ if (i == 1) {
830
+ areaSmallestY = areaGreatestY;
831
+ }
832
+ }
833
+
834
+ if (areaNumber < areaSmallestY) {
835
+ areaSmallestY = areaNumber;
836
+ }
837
+
838
+ arrayAlternate = 'even';
839
+ }
840
+ }
841
+
842
+ geo.origin.size.height = areaGreatestY - areaSmallestY;
843
+ geo.origin.size.width = areaGreatestX - areaSmallestX;
844
+
845
+ geo.origin.windowOffset.left += areaSmallestX;
846
+ geo.origin.windowOffset.top += areaSmallestY;
847
+
848
+ break;
849
+ }
850
+ }
851
+ }
852
+
853
+ // user callback through an event
854
+ var edit = function(r) {
855
+ geo.origin.size.height = r.height,
856
+ geo.origin.windowOffset.left = r.left,
857
+ geo.origin.windowOffset.top = r.top,
858
+ geo.origin.size.width = r.width
859
+ };
860
+
861
+ self._trigger({
862
+ type: 'geometry',
863
+ edit: edit,
864
+ geometry: {
865
+ height: geo.origin.size.height,
866
+ left: geo.origin.windowOffset.left,
867
+ top: geo.origin.windowOffset.top,
868
+ width: geo.origin.size.width
869
+ }
870
+ });
871
+
872
+ // calculate the remaining properties with what we got
873
+
874
+ geo.origin.windowOffset.right = geo.origin.windowOffset.left + geo.origin.size.width;
875
+ geo.origin.windowOffset.bottom = geo.origin.windowOffset.top + geo.origin.size.height;
876
+
877
+ geo.origin.offset.left = geo.origin.windowOffset.left + geo.window.scroll.left;
878
+ geo.origin.offset.top = geo.origin.windowOffset.top + geo.window.scroll.top;
879
+ geo.origin.offset.bottom = geo.origin.offset.top + geo.origin.size.height;
880
+ geo.origin.offset.right = geo.origin.offset.left + geo.origin.size.width;
881
+
882
+ // the space that is available to display the tooltip relatively to the document
883
+ geo.available.document = {
884
+ bottom: {
885
+ height: geo.document.size.height - geo.origin.offset.bottom,
886
+ width: geo.document.size.width
887
+ },
888
+ left: {
889
+ height: geo.document.size.height,
890
+ width: geo.origin.offset.left
891
+ },
892
+ right: {
893
+ height: geo.document.size.height,
894
+ width: geo.document.size.width - geo.origin.offset.right
895
+ },
896
+ top: {
897
+ height: geo.origin.offset.top,
898
+ width: geo.document.size.width
899
+ }
900
+ };
901
+
902
+ // the space that is available to display the tooltip relatively to the viewport
903
+ // (the resulting values may be negative if the origin overflows the viewport)
904
+ geo.available.window = {
905
+ bottom: {
906
+ // the inner max is here to make sure the available height is no bigger
907
+ // than the viewport height (when the origin is off screen at the top).
908
+ // The outer max just makes sure that the height is not negative (when
909
+ // the origin overflows at the bottom).
910
+ height: Math.max(geo.window.size.height - Math.max(geo.origin.windowOffset.bottom, 0), 0),
911
+ width: geo.window.size.width
912
+ },
913
+ left: {
914
+ height: geo.window.size.height,
915
+ width: Math.max(geo.origin.windowOffset.left, 0)
916
+ },
917
+ right: {
918
+ height: geo.window.size.height,
919
+ width: Math.max(geo.window.size.width - Math.max(geo.origin.windowOffset.right, 0), 0)
920
+ },
921
+ top: {
922
+ height: Math.max(geo.origin.windowOffset.top, 0),
923
+ width: geo.window.size.width
924
+ }
925
+ };
926
+
927
+ while ($parent[0].tagName.toLowerCase() != 'html') {
928
+
929
+ if ($parent.css('position') == 'fixed') {
930
+ geo.origin.fixedLineage = true;
931
+ break;
932
+ }
933
+
934
+ $parent = $parent.parent();
935
+ }
936
+
937
+ return geo;
938
+ },
939
+
940
+ /**
941
+ * Some options may need to be formated before being used
942
+ *
943
+ * @returns {self}
944
+ * @private
945
+ */
946
+ __optionsFormat: function() {
947
+
948
+ if (typeof this.__options.animationDuration == 'number') {
949
+ this.__options.animationDuration = [this.__options.animationDuration, this.__options.animationDuration];
950
+ }
951
+
952
+ if (typeof this.__options.delay == 'number') {
953
+ this.__options.delay = [this.__options.delay, this.__options.delay];
954
+ }
955
+
956
+ if (typeof this.__options.delayTouch == 'number') {
957
+ this.__options.delayTouch = [this.__options.delayTouch, this.__options.delayTouch];
958
+ }
959
+
960
+ if (typeof this.__options.theme == 'string') {
961
+ this.__options.theme = [this.__options.theme];
962
+ }
963
+
964
+ // determine the future parent
965
+ if (this.__options.parent === null) {
966
+ this.__options.parent = $(env.window.document.body);
967
+ }
968
+ else if (typeof this.__options.parent == 'string') {
969
+ this.__options.parent = $(this.__options.parent);
970
+ }
971
+
972
+ if (this.__options.trigger == 'hover') {
973
+
974
+ this.__options.triggerOpen = {
975
+ mouseenter: true,
976
+ touchstart: true
977
+ };
978
+
979
+ this.__options.triggerClose = {
980
+ mouseleave: true,
981
+ originClick: true,
982
+ touchleave: true
983
+ };
984
+ }
985
+ else if (this.__options.trigger == 'click') {
986
+
987
+ this.__options.triggerOpen = {
988
+ click: true,
989
+ tap: true
990
+ };
991
+
992
+ this.__options.triggerClose = {
993
+ click: true,
994
+ tap: true
995
+ };
996
+ }
997
+
998
+ // for the plugins
999
+ this._trigger('options');
1000
+
1001
+ return this;
1002
+ },
1003
+
1004
+ /**
1005
+ * Schedules or cancels the garbage collector task
1006
+ *
1007
+ * @returns {self}
1008
+ * @private
1009
+ */
1010
+ __prepareGC: function() {
1011
+
1012
+ var self = this;
1013
+
1014
+ // in case the selfDestruction option has been changed by a method call
1015
+ if (self.__options.selfDestruction) {
1016
+
1017
+ // the GC task
1018
+ self.__garbageCollector = setInterval(function() {
1019
+
1020
+ var now = new Date().getTime();
1021
+
1022
+ // forget the old events
1023
+ self.__touchEvents = $.grep(self.__touchEvents, function(event, i) {
1024
+ // 1 minute
1025
+ return now - event.time > 60000;
1026
+ });
1027
+
1028
+ // auto-destruct if the origin is gone
1029
+ if (!bodyContains(self._$origin)) {
1030
+
1031
+ self.close(function(){
1032
+ self.destroy();
1033
+ });
1034
+ }
1035
+ }, 20000);
1036
+ }
1037
+ else {
1038
+ clearInterval(self.__garbageCollector);
1039
+ }
1040
+
1041
+ return self;
1042
+ },
1043
+
1044
+ /**
1045
+ * Sets listeners on the origin if the open triggers require them.
1046
+ * Unlike the listeners set at opening time, these ones
1047
+ * remain even when the tooltip is closed. It has been made a
1048
+ * separate method so it can be called when the triggers are
1049
+ * changed in the options. Closing is handled in _open()
1050
+ * because of the bindings that may be needed on the tooltip
1051
+ * itself
1052
+ *
1053
+ * @returns {self}
1054
+ * @private
1055
+ */
1056
+ __prepareOrigin: function() {
1057
+
1058
+ var self = this;
1059
+
1060
+ // in case we're resetting the triggers
1061
+ self._$origin.off('.'+ self.__namespace +'-triggerOpen');
1062
+
1063
+ // if the device is touch capable, even if only mouse triggers
1064
+ // are asked, we need to listen to touch events to know if the mouse
1065
+ // events are actually emulated (so we can ignore them)
1066
+ if (env.hasTouchCapability) {
1067
+
1068
+ self._$origin.on(
1069
+ 'touchstart.'+ self.__namespace +'-triggerOpen ' +
1070
+ 'touchend.'+ self.__namespace +'-triggerOpen ' +
1071
+ 'touchcancel.'+ self.__namespace +'-triggerOpen',
1072
+ function(event){
1073
+ self._touchRecordEvent(event);
1074
+ }
1075
+ );
1076
+ }
1077
+
1078
+ // mouse click and touch tap work the same way
1079
+ if ( self.__options.triggerOpen.click
1080
+ || (self.__options.triggerOpen.tap && env.hasTouchCapability)
1081
+ ) {
1082
+
1083
+ var eventNames = '';
1084
+ if (self.__options.triggerOpen.click) {
1085
+ eventNames += 'click.'+ self.__namespace +'-triggerOpen ';
1086
+ }
1087
+ if (self.__options.triggerOpen.tap && env.hasTouchCapability) {
1088
+ eventNames += 'touchend.'+ self.__namespace +'-triggerOpen';
1089
+ }
1090
+
1091
+ self._$origin.on(eventNames, function(event) {
1092
+ if (self._touchIsMeaningfulEvent(event)) {
1093
+ self._open(event);
1094
+ }
1095
+ });
1096
+ }
1097
+
1098
+ // mouseenter and touch start work the same way
1099
+ if ( self.__options.triggerOpen.mouseenter
1100
+ || (self.__options.triggerOpen.touchstart && env.hasTouchCapability)
1101
+ ) {
1102
+
1103
+ var eventNames = '';
1104
+ if (self.__options.triggerOpen.mouseenter) {
1105
+ eventNames += 'mouseenter.'+ self.__namespace +'-triggerOpen ';
1106
+ }
1107
+ if (self.__options.triggerOpen.touchstart && env.hasTouchCapability) {
1108
+ eventNames += 'touchstart.'+ self.__namespace +'-triggerOpen';
1109
+ }
1110
+
1111
+ self._$origin.on(eventNames, function(event) {
1112
+ if ( self._touchIsTouchEvent(event)
1113
+ || !self._touchIsEmulatedEvent(event)
1114
+ ) {
1115
+ self.__pointerIsOverOrigin = true;
1116
+ self._openShortly(event);
1117
+ }
1118
+ });
1119
+ }
1120
+
1121
+ // info for the mouseleave/touchleave close triggers when they use a delay
1122
+ if ( self.__options.triggerClose.mouseleave
1123
+ || (self.__options.triggerClose.touchleave && env.hasTouchCapability)
1124
+ ) {
1125
+
1126
+ var eventNames = '';
1127
+ if (self.__options.triggerClose.mouseleave) {
1128
+ eventNames += 'mouseleave.'+ self.__namespace +'-triggerOpen ';
1129
+ }
1130
+ if (self.__options.triggerClose.touchleave && env.hasTouchCapability) {
1131
+ eventNames += 'touchend.'+ self.__namespace +'-triggerOpen touchcancel.'+ self.__namespace +'-triggerOpen';
1132
+ }
1133
+
1134
+ self._$origin.on(eventNames, function(event) {
1135
+
1136
+ if (self._touchIsMeaningfulEvent(event)) {
1137
+ self.__pointerIsOverOrigin = false;
1138
+ }
1139
+ });
1140
+ }
1141
+
1142
+ return self;
1143
+ },
1144
+
1145
+ /**
1146
+ * Do the things that need to be done only once after the tooltip
1147
+ * HTML element it has been created. It has been made a separate
1148
+ * method so it can be called when options are changed. Remember
1149
+ * that the tooltip may actually exist in the DOM before it is
1150
+ * opened, and present after it has been closed: it's the display
1151
+ * plugin that takes care of handling it.
1152
+ *
1153
+ * @returns {self}
1154
+ * @private
1155
+ */
1156
+ __prepareTooltip: function() {
1157
+
1158
+ var self = this,
1159
+ p = self.__options.interactive ? 'auto' : '';
1160
+
1161
+ // this will be useful to know quickly if the tooltip is in
1162
+ // the DOM or not
1163
+ self._$tooltip
1164
+ .attr('id', self.__namespace)
1165
+ .css({
1166
+ // pointer events
1167
+ 'pointer-events': p,
1168
+ zIndex: self.__options.zIndex
1169
+ });
1170
+
1171
+ // themes
1172
+ // remove the old ones and add the new ones
1173
+ $.each(self.__previousThemes, function(i, theme) {
1174
+ self._$tooltip.removeClass(theme);
1175
+ });
1176
+ $.each(self.__options.theme, function(i, theme) {
1177
+ self._$tooltip.addClass(theme);
1178
+ });
1179
+
1180
+ self.__previousThemes = $.merge([], self.__options.theme);
1181
+
1182
+ return self;
1183
+ },
1184
+
1185
+ /**
1186
+ * Handles the scroll on any of the parents of the origin (when the
1187
+ * tooltip is open)
1188
+ *
1189
+ * @param {object} event
1190
+ * @returns {self}
1191
+ * @private
1192
+ */
1193
+ __scrollHandler: function(event) {
1194
+
1195
+ var self = this;
1196
+
1197
+ if (self.__options.triggerClose.scroll) {
1198
+ self._close(event);
1199
+ }
1200
+ else {
1201
+
1202
+ // if the origin or tooltip have been removed: do nothing, the tracker will
1203
+ // take care of it later
1204
+ if (bodyContains(self._$origin) && bodyContains(self._$tooltip)) {
1205
+
1206
+ var geo = null;
1207
+
1208
+ // if the scroll happened on the window
1209
+ if (event.target === env.window.document) {
1210
+
1211
+ // if the origin has a fixed lineage, window scroll will have no
1212
+ // effect on its position nor on the position of the tooltip
1213
+ if (!self.__Geometry.origin.fixedLineage) {
1214
+
1215
+ // we don't need to do anything unless repositionOnScroll is true
1216
+ // because the tooltip will already have moved with the window
1217
+ // (and of course with the origin)
1218
+ if (self.__options.repositionOnScroll) {
1219
+ self.reposition(event);
1220
+ }
1221
+ }
1222
+ }
1223
+ // if the scroll happened on another parent of the tooltip, it means
1224
+ // that it's in a scrollable area and now needs to have its position
1225
+ // adjusted or recomputed, depending ont the repositionOnScroll
1226
+ // option. Also, if the origin is partly hidden due to a parent that
1227
+ // hides its overflow, we'll just hide (not close) the tooltip.
1228
+ else {
1229
+
1230
+ geo = self.__geometry();
1231
+
1232
+ var overflows = false;
1233
+
1234
+ // a fixed position origin is not affected by the overflow hiding
1235
+ // of a parent
1236
+ if (self._$origin.css('position') != 'fixed') {
1237
+
1238
+ self.__$originParents.each(function(i, el) {
1239
+
1240
+ var $el = $(el),
1241
+ overflowX = $el.css('overflow-x'),
1242
+ overflowY = $el.css('overflow-y');
1243
+
1244
+ if (overflowX != 'visible' || overflowY != 'visible') {
1245
+
1246
+ var bcr = el.getBoundingClientRect();
1247
+
1248
+ if (overflowX != 'visible') {
1249
+
1250
+ if ( geo.origin.windowOffset.left < bcr.left
1251
+ || geo.origin.windowOffset.right > bcr.right
1252
+ ) {
1253
+ overflows = true;
1254
+ return false;
1255
+ }
1256
+ }
1257
+
1258
+ if (overflowY != 'visible') {
1259
+
1260
+ if ( geo.origin.windowOffset.top < bcr.top
1261
+ || geo.origin.windowOffset.bottom > bcr.bottom
1262
+ ) {
1263
+ overflows = true;
1264
+ return false;
1265
+ }
1266
+ }
1267
+ }
1268
+
1269
+ // no need to go further if fixed, for the same reason as above
1270
+ if ($el.css('position') == 'fixed') {
1271
+ return false;
1272
+ }
1273
+ });
1274
+ }
1275
+
1276
+ if (overflows) {
1277
+ self._$tooltip.css('visibility', 'hidden');
1278
+ }
1279
+ else {
1280
+
1281
+ self._$tooltip.css('visibility', 'visible');
1282
+
1283
+ // reposition
1284
+ if (self.__options.repositionOnScroll) {
1285
+ self.reposition(event);
1286
+ }
1287
+ // or just adjust offset
1288
+ else {
1289
+
1290
+ // we have to use offset and not windowOffset because this way,
1291
+ // only the scroll distance of the scrollable areas are taken into
1292
+ // account (the scrolltop value of the main window must be
1293
+ // ignored since the tooltip already moves with it)
1294
+ var offsetLeft = geo.origin.offset.left - self.__Geometry.origin.offset.left,
1295
+ offsetTop = geo.origin.offset.top - self.__Geometry.origin.offset.top;
1296
+
1297
+ // add the offset to the position initially computed by the display plugin
1298
+ self._$tooltip.css({
1299
+ left: self.__lastPosition.coord.left + offsetLeft,
1300
+ top: self.__lastPosition.coord.top + offsetTop
1301
+ });
1302
+ }
1303
+ }
1304
+ }
1305
+
1306
+ self._trigger({
1307
+ type: 'scroll',
1308
+ event: event,
1309
+ geo: geo
1310
+ });
1311
+ }
1312
+ }
1313
+
1314
+ return self;
1315
+ },
1316
+
1317
+ /**
1318
+ * Changes the state of the tooltip
1319
+ *
1320
+ * @param {string} state
1321
+ * @returns {self}
1322
+ * @private
1323
+ */
1324
+ __stateSet: function(state) {
1325
+
1326
+ this.__state = state;
1327
+
1328
+ this._trigger({
1329
+ type: 'state',
1330
+ state: state
1331
+ });
1332
+
1333
+ return this;
1334
+ },
1335
+
1336
+ /**
1337
+ * Clear appearance timeouts
1338
+ *
1339
+ * @returns {self}
1340
+ * @private
1341
+ */
1342
+ __timeoutsClear: function() {
1343
+
1344
+ // there is only one possible open timeout: the delayed opening
1345
+ // when the mouseenter/touchstart open triggers are used
1346
+ clearTimeout(this.__timeouts.open);
1347
+ this.__timeouts.open = null;
1348
+
1349
+ // ... but several close timeouts: the delayed closing when the
1350
+ // mouseleave close trigger is used and the timer option
1351
+ $.each(this.__timeouts.close, function(i, timeout) {
1352
+ clearTimeout(timeout);
1353
+ });
1354
+ this.__timeouts.close = [];
1355
+
1356
+ return this;
1357
+ },
1358
+
1359
+ /**
1360
+ * Start the tracker that will make checks at regular intervals
1361
+ *
1362
+ * @returns {self}
1363
+ * @private
1364
+ */
1365
+ __trackerStart: function() {
1366
+
1367
+ var self = this,
1368
+ $content = self._$tooltip.find('.tooltipster-content');
1369
+
1370
+ // get the initial content size
1371
+ if (self.__options.trackTooltip) {
1372
+ self.__contentBcr = $content[0].getBoundingClientRect();
1373
+ }
1374
+
1375
+ self.__tracker = setInterval(function() {
1376
+
1377
+ // if the origin or tooltip elements have been removed.
1378
+ // Note: we could destroy the instance now if the origin has
1379
+ // been removed but we'll leave that task to our garbage collector
1380
+ if (!bodyContains(self._$origin) || !bodyContains(self._$tooltip)) {
1381
+ self._close();
1382
+ }
1383
+ // if everything is alright
1384
+ else {
1385
+
1386
+ // compare the former and current positions of the origin to reposition
1387
+ // the tooltip if need be
1388
+ if (self.__options.trackOrigin) {
1389
+
1390
+ var g = self.__geometry(),
1391
+ identical = false;
1392
+
1393
+ // compare size first (a change requires repositioning too)
1394
+ if (areEqual(g.origin.size, self.__Geometry.origin.size)) {
1395
+
1396
+ // for elements that have a fixed lineage (see __geometry()), we track the
1397
+ // top and left properties (relative to window)
1398
+ if (self.__Geometry.origin.fixedLineage) {
1399
+ if (areEqual(g.origin.windowOffset, self.__Geometry.origin.windowOffset)) {
1400
+ identical = true;
1401
+ }
1402
+ }
1403
+ // otherwise, track total offset (relative to document)
1404
+ else {
1405
+ if (areEqual(g.origin.offset, self.__Geometry.origin.offset)) {
1406
+ identical = true;
1407
+ }
1408
+ }
1409
+ }
1410
+
1411
+ if (!identical) {
1412
+
1413
+ // close the tooltip when using the mouseleave close trigger
1414
+ // (see https://github.com/calebjacob/tooltipster/pull/253)
1415
+ if (self.__options.triggerClose.mouseleave) {
1416
+ self._close();
1417
+ }
1418
+ else {
1419
+ self.reposition();
1420
+ }
1421
+ }
1422
+ }
1423
+
1424
+ if (self.__options.trackTooltip) {
1425
+
1426
+ var currentBcr = $content[0].getBoundingClientRect();
1427
+
1428
+ if ( currentBcr.height !== self.__contentBcr.height
1429
+ || currentBcr.width !== self.__contentBcr.width
1430
+ ) {
1431
+ self.reposition();
1432
+ self.__contentBcr = currentBcr;
1433
+ }
1434
+ }
1435
+ }
1436
+ }, self.__options.trackerInterval);
1437
+
1438
+ return self;
1439
+ },
1440
+
1441
+ /**
1442
+ * Closes the tooltip (after the closing delay)
1443
+ *
1444
+ * @param event
1445
+ * @param callback
1446
+ * @param force Set to true to override a potential refusal of the user's function
1447
+ * @returns {self}
1448
+ * @protected
1449
+ */
1450
+ _close: function(event, callback, force) {
1451
+
1452
+ var self = this,
1453
+ ok = true;
1454
+
1455
+ self._trigger({
1456
+ type: 'close',
1457
+ event: event,
1458
+ stop: function() {
1459
+ ok = false;
1460
+ }
1461
+ });
1462
+
1463
+ // a destroying tooltip (force == true) may not refuse to close
1464
+ if (ok || force) {
1465
+
1466
+ // save the method custom callback and cancel any open method custom callbacks
1467
+ if (callback) self.__callbacks.close.push(callback);
1468
+ self.__callbacks.open = [];
1469
+
1470
+ // clear open/close timeouts
1471
+ self.__timeoutsClear();
1472
+
1473
+ var finishCallbacks = function() {
1474
+
1475
+ // trigger any close method custom callbacks and reset them
1476
+ $.each(self.__callbacks.close, function(i,c) {
1477
+ c.call(self, self, {
1478
+ event: event,
1479
+ origin: self._$origin[0]
1480
+ });
1481
+ });
1482
+
1483
+ self.__callbacks.close = [];
1484
+ };
1485
+
1486
+ if (self.__state != 'closed') {
1487
+
1488
+ var necessary = true,
1489
+ d = new Date(),
1490
+ now = d.getTime(),
1491
+ newClosingTime = now + self.__options.animationDuration[1];
1492
+
1493
+ // the tooltip may already already be disappearing, but if a new
1494
+ // call to close() is made after the animationDuration was changed
1495
+ // to 0 (for example), we ought to actually close it sooner than
1496
+ // previously scheduled. In that case it should be noted that the
1497
+ // browser will not adapt the animation duration to the new
1498
+ // animationDuration that was set after the start of the closing
1499
+ // animation.
1500
+ // Note: the same thing could be considered at opening, but is not
1501
+ // really useful since the tooltip is actually opened immediately
1502
+ // upon a call to _open(). Since it would not make the opening
1503
+ // animation finish sooner, its sole impact would be to trigger the
1504
+ // state event and the open callbacks sooner than the actual end of
1505
+ // the opening animation, which is not great.
1506
+ if (self.__state == 'disappearing') {
1507
+
1508
+ if ( newClosingTime > self.__closingTime
1509
+ // in case closing is actually overdue because the script
1510
+ // execution was suspended. See #679
1511
+ && self.__options.animationDuration[1] > 0
1512
+ ) {
1513
+ necessary = false;
1514
+ }
1515
+ }
1516
+
1517
+ if (necessary) {
1518
+
1519
+ self.__closingTime = newClosingTime;
1520
+
1521
+ if (self.__state != 'disappearing') {
1522
+ self.__stateSet('disappearing');
1523
+ }
1524
+
1525
+ var finish = function() {
1526
+
1527
+ // stop the tracker
1528
+ clearInterval(self.__tracker);
1529
+
1530
+ // a "beforeClose" option has been asked several times but would
1531
+ // probably useless since the content element is still accessible
1532
+ // via ::content(), and because people can always use listeners
1533
+ // inside their content to track what's going on. For the sake of
1534
+ // simplicity, this has been denied. Bur for the rare people who
1535
+ // really need the option (for old browsers or for the case where
1536
+ // detaching the content is actually destructive, for file or
1537
+ // password inputs for example), this event will do the work.
1538
+ self._trigger({
1539
+ type: 'closing',
1540
+ event: event
1541
+ });
1542
+
1543
+ // unbind listeners which are no longer needed
1544
+
1545
+ self._$tooltip
1546
+ .off('.'+ self.__namespace +'-triggerClose')
1547
+ .removeClass('tooltipster-dying');
1548
+
1549
+ // orientationchange, scroll and resize listeners
1550
+ $(env.window).off('.'+ self.__namespace +'-triggerClose');
1551
+
1552
+ // scroll listeners
1553
+ self.__$originParents.each(function(i, el) {
1554
+ $(el).off('scroll.'+ self.__namespace +'-triggerClose');
1555
+ });
1556
+ // clear the array to prevent memory leaks
1557
+ self.__$originParents = null;
1558
+
1559
+ $(env.window.document.body).off('.'+ self.__namespace +'-triggerClose');
1560
+
1561
+ self._$origin.off('.'+ self.__namespace +'-triggerClose');
1562
+
1563
+ self._off('dismissable');
1564
+
1565
+ // a plugin that would like to remove the tooltip from the
1566
+ // DOM when closed should bind on this
1567
+ self.__stateSet('closed');
1568
+
1569
+ // trigger event
1570
+ self._trigger({
1571
+ type: 'after',
1572
+ event: event
1573
+ });
1574
+
1575
+ // call our constructor custom callback function
1576
+ if (self.__options.functionAfter) {
1577
+ self.__options.functionAfter.call(self, self, {
1578
+ event: event,
1579
+ origin: self._$origin[0]
1580
+ });
1581
+ }
1582
+
1583
+ // call our method custom callbacks functions
1584
+ finishCallbacks();
1585
+ };
1586
+
1587
+ if (env.hasTransitions) {
1588
+
1589
+ self._$tooltip.css({
1590
+ '-moz-animation-duration': self.__options.animationDuration[1] + 'ms',
1591
+ '-ms-animation-duration': self.__options.animationDuration[1] + 'ms',
1592
+ '-o-animation-duration': self.__options.animationDuration[1] + 'ms',
1593
+ '-webkit-animation-duration': self.__options.animationDuration[1] + 'ms',
1594
+ 'animation-duration': self.__options.animationDuration[1] + 'ms',
1595
+ 'transition-duration': self.__options.animationDuration[1] + 'ms'
1596
+ });
1597
+
1598
+ self._$tooltip
1599
+ // clear both potential open and close tasks
1600
+ .clearQueue()
1601
+ .removeClass('tooltipster-show')
1602
+ // for transitions only
1603
+ .addClass('tooltipster-dying');
1604
+
1605
+ if (self.__options.animationDuration[1] > 0) {
1606
+ self._$tooltip.delay(self.__options.animationDuration[1]);
1607
+ }
1608
+
1609
+ self._$tooltip.queue(finish);
1610
+ }
1611
+ else {
1612
+
1613
+ self._$tooltip
1614
+ .stop()
1615
+ .fadeOut(self.__options.animationDuration[1], finish);
1616
+ }
1617
+ }
1618
+ }
1619
+ // if the tooltip is already closed, we still need to trigger
1620
+ // the method custom callbacks
1621
+ else {
1622
+ finishCallbacks();
1623
+ }
1624
+ }
1625
+
1626
+ return self;
1627
+ },
1628
+
1629
+ /**
1630
+ * For internal use by plugins, if needed
1631
+ *
1632
+ * @returns {self}
1633
+ * @protected
1634
+ */
1635
+ _off: function() {
1636
+ this.__$emitterPrivate.off.apply(this.__$emitterPrivate, Array.prototype.slice.apply(arguments));
1637
+ return this;
1638
+ },
1639
+
1640
+ /**
1641
+ * For internal use by plugins, if needed
1642
+ *
1643
+ * @returns {self}
1644
+ * @protected
1645
+ */
1646
+ _on: function() {
1647
+ this.__$emitterPrivate.on.apply(this.__$emitterPrivate, Array.prototype.slice.apply(arguments));
1648
+ return this;
1649
+ },
1650
+
1651
+ /**
1652
+ * For internal use by plugins, if needed
1653
+ *
1654
+ * @returns {self}
1655
+ * @protected
1656
+ */
1657
+ _one: function() {
1658
+ this.__$emitterPrivate.one.apply(this.__$emitterPrivate, Array.prototype.slice.apply(arguments));
1659
+ return this;
1660
+ },
1661
+
1662
+ /**
1663
+ * Opens the tooltip right away.
1664
+ *
1665
+ * @param event
1666
+ * @param callback Will be called when the opening animation is over
1667
+ * @returns {self}
1668
+ * @protected
1669
+ */
1670
+ _open: function(event, callback) {
1671
+
1672
+ var self = this;
1673
+
1674
+ // if the destruction process has not begun and if this was not
1675
+ // triggered by an unwanted emulated click event
1676
+ if (!self.__destroying) {
1677
+
1678
+ // check that the origin is still in the DOM
1679
+ if ( bodyContains(self._$origin)
1680
+ // if the tooltip is enabled
1681
+ && self.__enabled
1682
+ ) {
1683
+
1684
+ var ok = true;
1685
+
1686
+ // if the tooltip is not open yet, we need to call functionBefore.
1687
+ // otherwise we can jst go on
1688
+ if (self.__state == 'closed') {
1689
+
1690
+ // trigger an event. The event.stop function allows the callback
1691
+ // to prevent the opening of the tooltip
1692
+ self._trigger({
1693
+ type: 'before',
1694
+ event: event,
1695
+ stop: function() {
1696
+ ok = false;
1697
+ }
1698
+ });
1699
+
1700
+ if (ok && self.__options.functionBefore) {
1701
+
1702
+ // call our custom function before continuing
1703
+ ok = self.__options.functionBefore.call(self, self, {
1704
+ event: event,
1705
+ origin: self._$origin[0]
1706
+ });
1707
+ }
1708
+ }
1709
+
1710
+ if (ok !== false) {
1711
+
1712
+ // if there is some content
1713
+ if (self.__Content !== null) {
1714
+
1715
+ // save the method callback and cancel close method callbacks
1716
+ if (callback) {
1717
+ self.__callbacks.open.push(callback);
1718
+ }
1719
+ self.__callbacks.close = [];
1720
+
1721
+ // get rid of any appearance timeouts
1722
+ self.__timeoutsClear();
1723
+
1724
+ var extraTime,
1725
+ finish = function() {
1726
+
1727
+ if (self.__state != 'stable') {
1728
+ self.__stateSet('stable');
1729
+ }
1730
+
1731
+ // trigger any open method custom callbacks and reset them
1732
+ $.each(self.__callbacks.open, function(i,c) {
1733
+ c.call(self, self, {
1734
+ origin: self._$origin[0],
1735
+ tooltip: self._$tooltip[0]
1736
+ });
1737
+ });
1738
+
1739
+ self.__callbacks.open = [];
1740
+ };
1741
+
1742
+ // if the tooltip is already open
1743
+ if (self.__state !== 'closed') {
1744
+
1745
+ // the timer (if any) will start (or restart) right now
1746
+ extraTime = 0;
1747
+
1748
+ // if it was disappearing, cancel that
1749
+ if (self.__state === 'disappearing') {
1750
+
1751
+ self.__stateSet('appearing');
1752
+
1753
+ if (env.hasTransitions) {
1754
+
1755
+ self._$tooltip
1756
+ .clearQueue()
1757
+ .removeClass('tooltipster-dying')
1758
+ .addClass('tooltipster-show');
1759
+
1760
+ if (self.__options.animationDuration[0] > 0) {
1761
+ self._$tooltip.delay(self.__options.animationDuration[0]);
1762
+ }
1763
+
1764
+ self._$tooltip.queue(finish);
1765
+ }
1766
+ else {
1767
+ // in case the tooltip was currently fading out, bring it back
1768
+ // to life
1769
+ self._$tooltip
1770
+ .stop()
1771
+ .fadeIn(finish);
1772
+ }
1773
+ }
1774
+ // if the tooltip is already open, we still need to trigger the method
1775
+ // custom callback
1776
+ else if (self.__state == 'stable') {
1777
+ finish();
1778
+ }
1779
+ }
1780
+ // if the tooltip isn't already open, open it
1781
+ else {
1782
+
1783
+ // a plugin must bind on this and store the tooltip in this._$tooltip
1784
+ self.__stateSet('appearing');
1785
+
1786
+ // the timer (if any) will start when the tooltip has fully appeared
1787
+ // after its transition
1788
+ extraTime = self.__options.animationDuration[0];
1789
+
1790
+ // insert the content inside the tooltip
1791
+ self.__contentInsert();
1792
+
1793
+ // reposition the tooltip and attach to the DOM
1794
+ self.reposition(event, true);
1795
+
1796
+ // animate in the tooltip. If the display plugin wants no css
1797
+ // animations, it may override the animation option with a
1798
+ // dummy value that will produce no effect
1799
+ if (env.hasTransitions) {
1800
+
1801
+ // note: there seems to be an issue with start animations which
1802
+ // are randomly not played on fast devices in both Chrome and FF,
1803
+ // couldn't find a way to solve it yet. It seems that applying
1804
+ // the classes before appending to the DOM helps a little, but
1805
+ // it messes up some CSS transitions. The issue almost never
1806
+ // happens when delay[0]==0 though
1807
+ self._$tooltip
1808
+ .addClass('tooltipster-'+ self.__options.animation)
1809
+ .addClass('tooltipster-initial')
1810
+ .css({
1811
+ '-moz-animation-duration': self.__options.animationDuration[0] + 'ms',
1812
+ '-ms-animation-duration': self.__options.animationDuration[0] + 'ms',
1813
+ '-o-animation-duration': self.__options.animationDuration[0] + 'ms',
1814
+ '-webkit-animation-duration': self.__options.animationDuration[0] + 'ms',
1815
+ 'animation-duration': self.__options.animationDuration[0] + 'ms',
1816
+ 'transition-duration': self.__options.animationDuration[0] + 'ms'
1817
+ });
1818
+
1819
+ setTimeout(
1820
+ function() {
1821
+
1822
+ // a quick hover may have already triggered a mouseleave
1823
+ if (self.__state != 'closed') {
1824
+
1825
+ self._$tooltip
1826
+ .addClass('tooltipster-show')
1827
+ .removeClass('tooltipster-initial');
1828
+
1829
+ if (self.__options.animationDuration[0] > 0) {
1830
+ self._$tooltip.delay(self.__options.animationDuration[0]);
1831
+ }
1832
+
1833
+ self._$tooltip.queue(finish);
1834
+ }
1835
+ },
1836
+ 0
1837
+ );
1838
+ }
1839
+ else {
1840
+
1841
+ // old browsers will have to live with this
1842
+ self._$tooltip
1843
+ .css('display', 'none')
1844
+ .fadeIn(self.__options.animationDuration[0], finish);
1845
+ }
1846
+
1847
+ // checks if the origin is removed while the tooltip is open
1848
+ self.__trackerStart();
1849
+
1850
+ // NOTE: the listeners below have a '-triggerClose' namespace
1851
+ // because we'll remove them when the tooltip closes (unlike
1852
+ // the '-triggerOpen' listeners). So some of them are actually
1853
+ // not about close triggers, rather about positioning.
1854
+
1855
+ $(env.window)
1856
+ // reposition on resize
1857
+ .on('resize.'+ self.__namespace +'-triggerClose', function(e) {
1858
+
1859
+ var $ae = $(document.activeElement);
1860
+
1861
+ // reposition only if the resize event was not triggered upon the opening
1862
+ // of a virtual keyboard due to an input field being focused within the tooltip
1863
+ // (otherwise the repositioning would lose the focus)
1864
+ if ( (!$ae.is('input') && !$ae.is('textarea'))
1865
+ || !$.contains(self._$tooltip[0], $ae[0])
1866
+ ) {
1867
+ self.reposition(e);
1868
+ }
1869
+ })
1870
+ // same as below for parents
1871
+ .on('scroll.'+ self.__namespace +'-triggerClose', function(e) {
1872
+ self.__scrollHandler(e);
1873
+ });
1874
+
1875
+ self.__$originParents = self._$origin.parents();
1876
+
1877
+ // scrolling may require the tooltip to be moved or even
1878
+ // repositioned in some cases
1879
+ self.__$originParents.each(function(i, parent) {
1880
+
1881
+ $(parent).on('scroll.'+ self.__namespace +'-triggerClose', function(e) {
1882
+ self.__scrollHandler(e);
1883
+ });
1884
+ });
1885
+
1886
+ if ( self.__options.triggerClose.mouseleave
1887
+ || (self.__options.triggerClose.touchleave && env.hasTouchCapability)
1888
+ ) {
1889
+
1890
+ // we use an event to allow users/plugins to control when the mouseleave/touchleave
1891
+ // close triggers will come to action. It allows to have more triggering elements
1892
+ // than just the origin and the tooltip for example, or to cancel/delay the closing,
1893
+ // or to make the tooltip interactive even if it wasn't when it was open, etc.
1894
+ self._on('dismissable', function(event) {
1895
+
1896
+ if (event.dismissable) {
1897
+
1898
+ if (event.delay) {
1899
+
1900
+ timeout = setTimeout(function() {
1901
+ // event.event may be undefined
1902
+ self._close(event.event);
1903
+ }, event.delay);
1904
+
1905
+ self.__timeouts.close.push(timeout);
1906
+ }
1907
+ else {
1908
+ self._close(event);
1909
+ }
1910
+ }
1911
+ else {
1912
+ clearTimeout(timeout);
1913
+ }
1914
+ });
1915
+
1916
+ // now set the listeners that will trigger 'dismissable' events
1917
+ var $elements = self._$origin,
1918
+ eventNamesIn = '',
1919
+ eventNamesOut = '',
1920
+ timeout = null;
1921
+
1922
+ // if we have to allow interaction, bind on the tooltip too
1923
+ if (self.__options.interactive) {
1924
+ $elements = $elements.add(self._$tooltip);
1925
+ }
1926
+
1927
+ if (self.__options.triggerClose.mouseleave) {
1928
+ eventNamesIn += 'mouseenter.'+ self.__namespace +'-triggerClose ';
1929
+ eventNamesOut += 'mouseleave.'+ self.__namespace +'-triggerClose ';
1930
+ }
1931
+ if (self.__options.triggerClose.touchleave && env.hasTouchCapability) {
1932
+ eventNamesIn += 'touchstart.'+ self.__namespace +'-triggerClose';
1933
+ eventNamesOut += 'touchend.'+ self.__namespace +'-triggerClose touchcancel.'+ self.__namespace +'-triggerClose';
1934
+ }
1935
+
1936
+ $elements
1937
+ // close after some time spent outside of the elements
1938
+ .on(eventNamesOut, function(event) {
1939
+
1940
+ // it's ok if the touch gesture ended up to be a swipe,
1941
+ // it's still a "touch leave" situation
1942
+ if ( self._touchIsTouchEvent(event)
1943
+ || !self._touchIsEmulatedEvent(event)
1944
+ ) {
1945
+
1946
+ var delay = (event.type == 'mouseleave') ?
1947
+ self.__options.delay :
1948
+ self.__options.delayTouch;
1949
+
1950
+ self._trigger({
1951
+ delay: delay[1],
1952
+ dismissable: true,
1953
+ event: event,
1954
+ type: 'dismissable'
1955
+ });
1956
+ }
1957
+ })
1958
+ // suspend the mouseleave timeout when the pointer comes back
1959
+ // over the elements
1960
+ .on(eventNamesIn, function(event) {
1961
+
1962
+ // it's also ok if the touch event is a swipe gesture
1963
+ if ( self._touchIsTouchEvent(event)
1964
+ || !self._touchIsEmulatedEvent(event)
1965
+ ) {
1966
+ self._trigger({
1967
+ dismissable: false,
1968
+ event: event,
1969
+ type: 'dismissable'
1970
+ });
1971
+ }
1972
+ });
1973
+ }
1974
+
1975
+ // close the tooltip when the origin gets a mouse click (common behavior of
1976
+ // native tooltips)
1977
+ if (self.__options.triggerClose.originClick) {
1978
+
1979
+ self._$origin.on('click.'+ self.__namespace + '-triggerClose', function(event) {
1980
+
1981
+ // we could actually let a tap trigger this but this feature just
1982
+ // does not make sense on touch devices
1983
+ if ( !self._touchIsTouchEvent(event)
1984
+ && !self._touchIsEmulatedEvent(event)
1985
+ ) {
1986
+ self._close(event);
1987
+ }
1988
+ });
1989
+ }
1990
+
1991
+ // set the same bindings for click and touch on the body to close the tooltip
1992
+ if ( self.__options.triggerClose.click
1993
+ || (self.__options.triggerClose.tap && env.hasTouchCapability)
1994
+ ) {
1995
+
1996
+ // don't set right away since the click/tap event which triggered this method
1997
+ // (if it was a click/tap) is going to bubble up to the body, we don't want it
1998
+ // to close the tooltip immediately after it opened
1999
+ setTimeout(function() {
2000
+
2001
+ if (self.__state != 'closed') {
2002
+
2003
+ var eventNames = '',
2004
+ $body = $(env.window.document.body);
2005
+
2006
+ if (self.__options.triggerClose.click) {
2007
+ eventNames += 'click.'+ self.__namespace +'-triggerClose ';
2008
+ }
2009
+ if (self.__options.triggerClose.tap && env.hasTouchCapability) {
2010
+ eventNames += 'touchend.'+ self.__namespace +'-triggerClose';
2011
+ }
2012
+
2013
+ $body.on(eventNames, function(event) {
2014
+
2015
+ if (self._touchIsMeaningfulEvent(event)) {
2016
+
2017
+ self._touchRecordEvent(event);
2018
+
2019
+ if (!self.__options.interactive || !$.contains(self._$tooltip[0], event.target)) {
2020
+ self._close(event);
2021
+ }
2022
+ }
2023
+ });
2024
+
2025
+ // needed to detect and ignore swiping
2026
+ if (self.__options.triggerClose.tap && env.hasTouchCapability) {
2027
+
2028
+ $body.on('touchstart.'+ self.__namespace +'-triggerClose', function(event) {
2029
+ self._touchRecordEvent(event);
2030
+ });
2031
+ }
2032
+ }
2033
+ }, 0);
2034
+ }
2035
+
2036
+ self._trigger('ready');
2037
+
2038
+ // call our custom callback
2039
+ if (self.__options.functionReady) {
2040
+ self.__options.functionReady.call(self, self, {
2041
+ origin: self._$origin[0],
2042
+ tooltip: self._$tooltip[0]
2043
+ });
2044
+ }
2045
+ }
2046
+
2047
+ // if we have a timer set, let the countdown begin
2048
+ if (self.__options.timer > 0) {
2049
+
2050
+ var timeout = setTimeout(function() {
2051
+ self._close();
2052
+ }, self.__options.timer + extraTime);
2053
+
2054
+ self.__timeouts.close.push(timeout);
2055
+ }
2056
+ }
2057
+ }
2058
+ }
2059
+ }
2060
+
2061
+ return self;
2062
+ },
2063
+
2064
+ /**
2065
+ * When using the mouseenter/touchstart open triggers, this function will
2066
+ * schedule the opening of the tooltip after the delay, if there is one
2067
+ *
2068
+ * @param event
2069
+ * @returns {self}
2070
+ * @protected
2071
+ */
2072
+ _openShortly: function(event) {
2073
+
2074
+ var self = this,
2075
+ ok = true;
2076
+
2077
+ if (self.__state != 'stable' && self.__state != 'appearing') {
2078
+
2079
+ // if a timeout is not already running
2080
+ if (!self.__timeouts.open) {
2081
+
2082
+ self._trigger({
2083
+ type: 'start',
2084
+ event: event,
2085
+ stop: function() {
2086
+ ok = false;
2087
+ }
2088
+ });
2089
+
2090
+ if (ok) {
2091
+
2092
+ var delay = (event.type.indexOf('touch') == 0) ?
2093
+ self.__options.delayTouch :
2094
+ self.__options.delay;
2095
+
2096
+ if (delay[0]) {
2097
+
2098
+ self.__timeouts.open = setTimeout(function() {
2099
+
2100
+ self.__timeouts.open = null;
2101
+
2102
+ // open only if the pointer (mouse or touch) is still over the origin.
2103
+ // The check on the "meaningful event" can only be made here, after some
2104
+ // time has passed (to know if the touch was a swipe or not)
2105
+ if (self.__pointerIsOverOrigin && self._touchIsMeaningfulEvent(event)) {
2106
+
2107
+ // signal that we go on
2108
+ self._trigger('startend');
2109
+
2110
+ self._open(event);
2111
+ }
2112
+ else {
2113
+ // signal that we cancel
2114
+ self._trigger('startcancel');
2115
+ }
2116
+ }, delay[0]);
2117
+ }
2118
+ else {
2119
+ // signal that we go on
2120
+ self._trigger('startend');
2121
+
2122
+ self._open(event);
2123
+ }
2124
+ }
2125
+ }
2126
+ }
2127
+
2128
+ return self;
2129
+ },
2130
+
2131
+ /**
2132
+ * Meant for plugins to get their options
2133
+ *
2134
+ * @param {string} pluginName The name of the plugin that asks for its options
2135
+ * @param {object} defaultOptions The default options of the plugin
2136
+ * @returns {object} The options
2137
+ * @protected
2138
+ */
2139
+ _optionsExtract: function(pluginName, defaultOptions) {
2140
+
2141
+ var self = this,
2142
+ options = $.extend(true, {}, defaultOptions);
2143
+
2144
+ // if the plugin options were isolated in a property named after the
2145
+ // plugin, use them (prevents conflicts with other plugins)
2146
+ var pluginOptions = self.__options[pluginName];
2147
+
2148
+ // if not, try to get them as regular options
2149
+ if (!pluginOptions){
2150
+
2151
+ pluginOptions = {};
2152
+
2153
+ $.each(defaultOptions, function(optionName, value) {
2154
+
2155
+ var o = self.__options[optionName];
2156
+
2157
+ if (o !== undefined) {
2158
+ pluginOptions[optionName] = o;
2159
+ }
2160
+ });
2161
+ }
2162
+
2163
+ // let's merge the default options and the ones that were provided. We'd want
2164
+ // to do a deep copy but not let jQuery merge arrays, so we'll do a shallow
2165
+ // extend on two levels, that will be enough if options are not more than 1
2166
+ // level deep
2167
+ $.each(options, function(optionName, value) {
2168
+
2169
+ if (pluginOptions[optionName] !== undefined) {
2170
+
2171
+ if (( typeof value == 'object'
2172
+ && !(value instanceof Array)
2173
+ && value != null
2174
+ )
2175
+ &&
2176
+ ( typeof pluginOptions[optionName] == 'object'
2177
+ && !(pluginOptions[optionName] instanceof Array)
2178
+ && pluginOptions[optionName] != null
2179
+ )
2180
+ ) {
2181
+ $.extend(options[optionName], pluginOptions[optionName]);
2182
+ }
2183
+ else {
2184
+ options[optionName] = pluginOptions[optionName];
2185
+ }
2186
+ }
2187
+ });
2188
+
2189
+ return options;
2190
+ },
2191
+
2192
+ /**
2193
+ * Used at instantiation of the plugin, or afterwards by plugins that activate themselves
2194
+ * on existing instances
2195
+ *
2196
+ * @param {object} pluginName
2197
+ * @returns {self}
2198
+ * @protected
2199
+ */
2200
+ _plug: function(pluginName) {
2201
+
2202
+ var plugin = $.tooltipster._plugin(pluginName);
2203
+
2204
+ if (plugin) {
2205
+
2206
+ // if there is a constructor for instances
2207
+ if (plugin.instance) {
2208
+
2209
+ // proxy non-private methods on the instance to allow new instance methods
2210
+ $.tooltipster.__bridge(plugin.instance, this, plugin.name);
2211
+ }
2212
+ }
2213
+ else {
2214
+ throw new Error('The "'+ pluginName +'" plugin is not defined');
2215
+ }
2216
+
2217
+ return this;
2218
+ },
2219
+
2220
+ /**
2221
+ * This will return true if the event is a mouse event which was
2222
+ * emulated by the browser after a touch event. This allows us to
2223
+ * really dissociate mouse and touch triggers.
2224
+ *
2225
+ * There is a margin of error if a real mouse event is fired right
2226
+ * after (within the delay shown below) a touch event on the same
2227
+ * element, but hopefully it should not happen often.
2228
+ *
2229
+ * @returns {boolean}
2230
+ * @protected
2231
+ */
2232
+ _touchIsEmulatedEvent: function(event) {
2233
+
2234
+ var isEmulated = false,
2235
+ now = new Date().getTime();
2236
+
2237
+ for (var i = this.__touchEvents.length - 1; i >= 0; i--) {
2238
+
2239
+ var e = this.__touchEvents[i];
2240
+
2241
+ // delay, in milliseconds. It's supposed to be 300ms in
2242
+ // most browsers (350ms on iOS) to allow a double tap but
2243
+ // can be less (check out FastClick for more info)
2244
+ if (now - e.time < 500) {
2245
+
2246
+ if (e.target === event.target) {
2247
+ isEmulated = true;
2248
+ }
2249
+ }
2250
+ else {
2251
+ break;
2252
+ }
2253
+ }
2254
+
2255
+ return isEmulated;
2256
+ },
2257
+
2258
+ /**
2259
+ * Returns false if the event was an emulated mouse event or
2260
+ * a touch event involved in a swipe gesture.
2261
+ *
2262
+ * @param {object} event
2263
+ * @returns {boolean}
2264
+ * @protected
2265
+ */
2266
+ _touchIsMeaningfulEvent: function(event) {
2267
+ return (
2268
+ (this._touchIsTouchEvent(event) && !this._touchSwiped(event.target))
2269
+ || (!this._touchIsTouchEvent(event) && !this._touchIsEmulatedEvent(event))
2270
+ );
2271
+ },
2272
+
2273
+ /**
2274
+ * Checks if an event is a touch event
2275
+ *
2276
+ * @param {object} event
2277
+ * @returns {boolean}
2278
+ * @protected
2279
+ */
2280
+ _touchIsTouchEvent: function(event){
2281
+ return event.type.indexOf('touch') == 0;
2282
+ },
2283
+
2284
+ /**
2285
+ * Store touch events for a while to detect swiping and emulated mouse events
2286
+ *
2287
+ * @param {object} event
2288
+ * @returns {self}
2289
+ * @protected
2290
+ */
2291
+ _touchRecordEvent: function(event) {
2292
+
2293
+ if (this._touchIsTouchEvent(event)) {
2294
+ event.time = new Date().getTime();
2295
+ this.__touchEvents.push(event);
2296
+ }
2297
+
2298
+ return this;
2299
+ },
2300
+
2301
+ /**
2302
+ * Returns true if a swipe happened after the last touchstart event fired on
2303
+ * event.target.
2304
+ *
2305
+ * We need to differentiate a swipe from a tap before we let the event open
2306
+ * or close the tooltip. A swipe is when a touchmove (scroll) event happens
2307
+ * on the body between the touchstart and the touchend events of an element.
2308
+ *
2309
+ * @param {object} target The HTML element that may have triggered the swipe
2310
+ * @returns {boolean}
2311
+ * @protected
2312
+ */
2313
+ _touchSwiped: function(target) {
2314
+
2315
+ var swiped = false;
2316
+
2317
+ for (var i = this.__touchEvents.length - 1; i >= 0; i--) {
2318
+
2319
+ var e = this.__touchEvents[i];
2320
+
2321
+ if (e.type == 'touchmove') {
2322
+ swiped = true;
2323
+ break;
2324
+ }
2325
+ else if (
2326
+ e.type == 'touchstart'
2327
+ && target === e.target
2328
+ ) {
2329
+ break;
2330
+ }
2331
+ }
2332
+
2333
+ return swiped;
2334
+ },
2335
+
2336
+ /**
2337
+ * Triggers an event on the instance emitters
2338
+ *
2339
+ * @returns {self}
2340
+ * @protected
2341
+ */
2342
+ _trigger: function() {
2343
+
2344
+ var args = Array.prototype.slice.apply(arguments);
2345
+
2346
+ if (typeof args[0] == 'string') {
2347
+ args[0] = { type: args[0] };
2348
+ }
2349
+
2350
+ // add properties to the event
2351
+ args[0].instance = this;
2352
+ args[0].origin = this._$origin ? this._$origin[0] : null;
2353
+ args[0].tooltip = this._$tooltip ? this._$tooltip[0] : null;
2354
+
2355
+ // note: the order of emitters matters
2356
+ this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate, args);
2357
+ $.tooltipster._trigger.apply($.tooltipster, args);
2358
+ this.__$emitterPublic.trigger.apply(this.__$emitterPublic, args);
2359
+
2360
+ return this;
2361
+ },
2362
+
2363
+ /**
2364
+ * Deactivate a plugin on this instance
2365
+ *
2366
+ * @returns {self}
2367
+ * @protected
2368
+ */
2369
+ _unplug: function(pluginName) {
2370
+
2371
+ var self = this;
2372
+
2373
+ // if the plugin has been activated on this instance
2374
+ if (self[pluginName]) {
2375
+
2376
+ var plugin = $.tooltipster._plugin(pluginName);
2377
+
2378
+ // if there is a constructor for instances
2379
+ if (plugin.instance) {
2380
+
2381
+ // unbridge
2382
+ $.each(plugin.instance, function(methodName, fn) {
2383
+
2384
+ // if the method exists (privates methods do not) and comes indeed from
2385
+ // this plugin (may be missing or come from a conflicting plugin).
2386
+ if ( self[methodName]
2387
+ && self[methodName].bridged === self[pluginName]
2388
+ ) {
2389
+ delete self[methodName];
2390
+ }
2391
+ });
2392
+ }
2393
+
2394
+ // destroy the plugin
2395
+ if (self[pluginName].__destroy) {
2396
+ self[pluginName].__destroy();
2397
+ }
2398
+
2399
+ // remove the reference to the plugin instance
2400
+ delete self[pluginName];
2401
+ }
2402
+
2403
+ return self;
2404
+ },
2405
+
2406
+ /**
2407
+ * @see self::_close
2408
+ * @returns {self}
2409
+ * @public
2410
+ */
2411
+ close: function(callback) {
2412
+
2413
+ if (!this.__destroyed) {
2414
+ this._close(null, callback);
2415
+ }
2416
+ else {
2417
+ this.__destroyError();
2418
+ }
2419
+
2420
+ return this;
2421
+ },
2422
+
2423
+ /**
2424
+ * Sets or gets the content of the tooltip
2425
+ *
2426
+ * @returns {mixed|self}
2427
+ * @public
2428
+ */
2429
+ content: function(content) {
2430
+
2431
+ var self = this;
2432
+
2433
+ // getter method
2434
+ if (content === undefined) {
2435
+ return self.__Content;
2436
+ }
2437
+ // setter method
2438
+ else {
2439
+
2440
+ if (!self.__destroyed) {
2441
+
2442
+ // change the content
2443
+ self.__contentSet(content);
2444
+
2445
+ if (self.__Content !== null) {
2446
+
2447
+ // update the tooltip if it is open
2448
+ if (self.__state !== 'closed') {
2449
+
2450
+ // reset the content in the tooltip
2451
+ self.__contentInsert();
2452
+
2453
+ // reposition and resize the tooltip
2454
+ self.reposition();
2455
+
2456
+ // if we want to play a little animation showing the content changed
2457
+ if (self.__options.updateAnimation) {
2458
+
2459
+ if (env.hasTransitions) {
2460
+
2461
+ // keep the reference in the local scope
2462
+ var animation = self.__options.updateAnimation;
2463
+
2464
+ self._$tooltip.addClass('tooltipster-update-'+ animation);
2465
+
2466
+ // remove the class after a while. The actual duration of the
2467
+ // update animation may be shorter, it's set in the CSS rules
2468
+ setTimeout(function() {
2469
+
2470
+ if (self.__state != 'closed') {
2471
+
2472
+ self._$tooltip.removeClass('tooltipster-update-'+ animation);
2473
+ }
2474
+ }, 1000);
2475
+ }
2476
+ else {
2477
+ self._$tooltip.fadeTo(200, 0.5, function() {
2478
+ if (self.__state != 'closed') {
2479
+ self._$tooltip.fadeTo(200, 1);
2480
+ }
2481
+ });
2482
+ }
2483
+ }
2484
+ }
2485
+ }
2486
+ else {
2487
+ self._close();
2488
+ }
2489
+ }
2490
+ else {
2491
+ self.__destroyError();
2492
+ }
2493
+
2494
+ return self;
2495
+ }
2496
+ },
2497
+
2498
+ /**
2499
+ * Destroys the tooltip
2500
+ *
2501
+ * @returns {self}
2502
+ * @public
2503
+ */
2504
+ destroy: function() {
2505
+
2506
+ var self = this;
2507
+
2508
+ if (!self.__destroyed) {
2509
+
2510
+ if(self.__state != 'closed'){
2511
+
2512
+ // no closing delay
2513
+ self.option('animationDuration', 0)
2514
+ // force closing
2515
+ ._close(null, null, true);
2516
+ }
2517
+ else {
2518
+ // there might be an open timeout still running
2519
+ self.__timeoutsClear();
2520
+ }
2521
+
2522
+ // send event
2523
+ self._trigger('destroy');
2524
+
2525
+ self.__destroyed = true;
2526
+
2527
+ self._$origin
2528
+ .removeData(self.__namespace)
2529
+ // remove the open trigger listeners
2530
+ .off('.'+ self.__namespace +'-triggerOpen');
2531
+
2532
+ // remove the touch listener
2533
+ $(env.window.document.body).off('.' + self.__namespace +'-triggerOpen');
2534
+
2535
+ var ns = self._$origin.data('tooltipster-ns');
2536
+
2537
+ // if the origin has been removed from DOM, its data may
2538
+ // well have been destroyed in the process and there would
2539
+ // be nothing to clean up or restore
2540
+ if (ns) {
2541
+
2542
+ // if there are no more tooltips on this element
2543
+ if (ns.length === 1) {
2544
+
2545
+ // optional restoration of a title attribute
2546
+ var title = null;
2547
+ if (self.__options.restoration == 'previous') {
2548
+ title = self._$origin.data('tooltipster-initialTitle');
2549
+ }
2550
+ else if (self.__options.restoration == 'current') {
2551
+
2552
+ // old school technique to stringify when outerHTML is not supported
2553
+ title = (typeof self.__Content == 'string') ?
2554
+ self.__Content :
2555
+ $('<div></div>').append(self.__Content).html();
2556
+ }
2557
+
2558
+ if (title) {
2559
+ self._$origin.attr('title', title);
2560
+ }
2561
+
2562
+ // final cleaning
2563
+
2564
+ self._$origin.removeClass('tooltipstered');
2565
+
2566
+ self._$origin
2567
+ .removeData('tooltipster-ns')
2568
+ .removeData('tooltipster-initialTitle');
2569
+ }
2570
+ else {
2571
+ // remove the instance namespace from the list of namespaces of
2572
+ // tooltips present on the element
2573
+ ns = $.grep(ns, function(el, i) {
2574
+ return el !== self.__namespace;
2575
+ });
2576
+ self._$origin.data('tooltipster-ns', ns);
2577
+ }
2578
+ }
2579
+
2580
+ // last event
2581
+ self._trigger('destroyed');
2582
+
2583
+ // unbind private and public event listeners
2584
+ self._off();
2585
+ self.off();
2586
+
2587
+ // remove external references, just in case
2588
+ self.__Content = null;
2589
+ self.__$emitterPrivate = null;
2590
+ self.__$emitterPublic = null;
2591
+ self.__options.parent = null;
2592
+ self._$origin = null;
2593
+ self._$tooltip = null;
2594
+
2595
+ // make sure the object is no longer referenced in there to prevent
2596
+ // memory leaks
2597
+ $.tooltipster.__instancesLatestArr = $.grep($.tooltipster.__instancesLatestArr, function(el, i) {
2598
+ return self !== el;
2599
+ });
2600
+
2601
+ clearInterval(self.__garbageCollector);
2602
+ }
2603
+ else {
2604
+ self.__destroyError();
2605
+ }
2606
+
2607
+ // we return the scope rather than true so that the call to
2608
+ // .tooltipster('destroy') actually returns the matched elements
2609
+ // and applies to all of them
2610
+ return self;
2611
+ },
2612
+
2613
+ /**
2614
+ * Disables the tooltip
2615
+ *
2616
+ * @returns {self}
2617
+ * @public
2618
+ */
2619
+ disable: function() {
2620
+
2621
+ if (!this.__destroyed) {
2622
+
2623
+ // close first, in case the tooltip would not disappear on
2624
+ // its own (no close trigger)
2625
+ this._close();
2626
+ this.__enabled = false;
2627
+
2628
+ return this;
2629
+ }
2630
+ else {
2631
+ this.__destroyError();
2632
+ }
2633
+
2634
+ return this;
2635
+ },
2636
+
2637
+ /**
2638
+ * Returns the HTML element of the origin
2639
+ *
2640
+ * @returns {self}
2641
+ * @public
2642
+ */
2643
+ elementOrigin: function() {
2644
+
2645
+ if (!this.__destroyed) {
2646
+ return this._$origin[0];
2647
+ }
2648
+ else {
2649
+ this.__destroyError();
2650
+ }
2651
+ },
2652
+
2653
+ /**
2654
+ * Returns the HTML element of the tooltip
2655
+ *
2656
+ * @returns {self}
2657
+ * @public
2658
+ */
2659
+ elementTooltip: function() {
2660
+ return this._$tooltip ? this._$tooltip[0] : null;
2661
+ },
2662
+
2663
+ /**
2664
+ * Enables the tooltip
2665
+ *
2666
+ * @returns {self}
2667
+ * @public
2668
+ */
2669
+ enable: function() {
2670
+ this.__enabled = true;
2671
+ return this;
2672
+ },
2673
+
2674
+ /**
2675
+ * Alias, deprecated in 4.0.0
2676
+ *
2677
+ * @param {function} callback
2678
+ * @returns {self}
2679
+ * @public
2680
+ */
2681
+ hide: function(callback) {
2682
+ return this.close(callback);
2683
+ },
2684
+
2685
+ /**
2686
+ * Returns the instance
2687
+ *
2688
+ * @returns {self}
2689
+ * @public
2690
+ */
2691
+ instance: function() {
2692
+ return this;
2693
+ },
2694
+
2695
+ /**
2696
+ * For public use only, not to be used by plugins (use ::_off() instead)
2697
+ *
2698
+ * @returns {self}
2699
+ * @public
2700
+ */
2701
+ off: function() {
2702
+
2703
+ if (!this.__destroyed) {
2704
+ this.__$emitterPublic.off.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments));
2705
+ }
2706
+
2707
+ return this;
2708
+ },
2709
+
2710
+ /**
2711
+ * For public use only, not to be used by plugins (use ::_on() instead)
2712
+ *
2713
+ * @returns {self}
2714
+ * @public
2715
+ */
2716
+ on: function() {
2717
+
2718
+ if (!this.__destroyed) {
2719
+ this.__$emitterPublic.on.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments));
2720
+ }
2721
+ else {
2722
+ this.__destroyError();
2723
+ }
2724
+
2725
+ return this;
2726
+ },
2727
+
2728
+ /**
2729
+ * For public use only, not to be used by plugins
2730
+ *
2731
+ * @returns {self}
2732
+ * @public
2733
+ */
2734
+ one: function() {
2735
+
2736
+ if (!this.__destroyed) {
2737
+ this.__$emitterPublic.one.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments));
2738
+ }
2739
+ else {
2740
+ this.__destroyError();
2741
+ }
2742
+
2743
+ return this;
2744
+ },
2745
+
2746
+ /**
2747
+ * @see self::_open
2748
+ * @returns {self}
2749
+ * @public
2750
+ */
2751
+ open: function(callback) {
2752
+
2753
+ if (!this.__destroyed) {
2754
+ this._open(null, callback);
2755
+ }
2756
+ else {
2757
+ this.__destroyError();
2758
+ }
2759
+
2760
+ return this;
2761
+ },
2762
+
2763
+ /**
2764
+ * Get or set options. For internal use and advanced users only.
2765
+ *
2766
+ * @param {string} o Option name
2767
+ * @param {mixed} val optional A new value for the option
2768
+ * @return {mixed|self} If val is omitted, the value of the option
2769
+ * is returned, otherwise the instance itself is returned
2770
+ * @public
2771
+ */
2772
+ option: function(o, val) {
2773
+
2774
+ // getter
2775
+ if (val === undefined) {
2776
+ return this.__options[o];
2777
+ }
2778
+ // setter
2779
+ else {
2780
+
2781
+ if (!this.__destroyed) {
2782
+
2783
+ // change value
2784
+ this.__options[o] = val;
2785
+
2786
+ // format
2787
+ this.__optionsFormat();
2788
+
2789
+ // re-prepare the triggers if needed
2790
+ if ($.inArray(o, ['trigger', 'triggerClose', 'triggerOpen']) >= 0) {
2791
+ this.__prepareOrigin();
2792
+ }
2793
+
2794
+ if (o === 'selfDestruction') {
2795
+ this.__prepareGC();
2796
+ }
2797
+ }
2798
+ else {
2799
+ this.__destroyError();
2800
+ }
2801
+
2802
+ return this;
2803
+ }
2804
+ },
2805
+
2806
+ /**
2807
+ * This method is in charge of setting the position and size properties of the tooltip.
2808
+ * All the hard work is delegated to the display plugin.
2809
+ * Note: The tooltip may be detached from the DOM at the moment the method is called
2810
+ * but must be attached by the end of the method call.
2811
+ *
2812
+ * @param {object} event For internal use only. Defined if an event such as
2813
+ * window resizing triggered the repositioning
2814
+ * @param {boolean} tooltipIsDetached For internal use only. Set this to true if you
2815
+ * know that the tooltip not being in the DOM is not an issue (typically when the
2816
+ * tooltip element has just been created but has not been added to the DOM yet).
2817
+ * @returns {self}
2818
+ * @public
2819
+ */
2820
+ reposition: function(event, tooltipIsDetached) {
2821
+
2822
+ var self = this;
2823
+
2824
+ if (!self.__destroyed) {
2825
+
2826
+ // if the tooltip is still open and the origin is still in the DOM
2827
+ if (self.__state != 'closed' && bodyContains(self._$origin)) {
2828
+
2829
+ // if the tooltip has not been removed from DOM manually (or if it
2830
+ // has been detached on purpose)
2831
+ if (tooltipIsDetached || bodyContains(self._$tooltip)) {
2832
+
2833
+ if (!tooltipIsDetached) {
2834
+ // detach in case the tooltip overflows the window and adds
2835
+ // scrollbars to it, so __geometry can be accurate
2836
+ self._$tooltip.detach();
2837
+ }
2838
+
2839
+ // refresh the geometry object before passing it as a helper
2840
+ self.__Geometry = self.__geometry();
2841
+
2842
+ // let a plugin fo the rest
2843
+ self._trigger({
2844
+ type: 'reposition',
2845
+ event: event,
2846
+ helper: {
2847
+ geo: self.__Geometry
2848
+ }
2849
+ });
2850
+ }
2851
+ }
2852
+ }
2853
+ else {
2854
+ self.__destroyError();
2855
+ }
2856
+
2857
+ return self;
2858
+ },
2859
+
2860
+ /**
2861
+ * Alias, deprecated in 4.0.0
2862
+ *
2863
+ * @param callback
2864
+ * @returns {self}
2865
+ * @public
2866
+ */
2867
+ show: function(callback) {
2868
+ return this.open(callback);
2869
+ },
2870
+
2871
+ /**
2872
+ * Returns some properties about the instance
2873
+ *
2874
+ * @returns {object}
2875
+ * @public
2876
+ */
2877
+ status: function() {
2878
+
2879
+ return {
2880
+ destroyed: this.__destroyed,
2881
+ enabled: this.__enabled,
2882
+ open: this.__state !== 'closed',
2883
+ state: this.__state
2884
+ };
2885
+ },
2886
+
2887
+ /**
2888
+ * For public use only, not to be used by plugins
2889
+ *
2890
+ * @returns {self}
2891
+ * @public
2892
+ */
2893
+ triggerHandler: function() {
2894
+
2895
+ if (!this.__destroyed) {
2896
+ this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments));
2897
+ }
2898
+ else {
2899
+ this.__destroyError();
2900
+ }
2901
+
2902
+ return this;
2903
+ }
2904
+ };
2905
+
2906
+ $.fn.tooltipster = function() {
2907
+
2908
+ // for using in closures
2909
+ var args = Array.prototype.slice.apply(arguments),
2910
+ // common mistake: an HTML element can't be in several tooltips at the same time
2911
+ contentCloningWarning = 'You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.';
2912
+
2913
+ // this happens with $(sel).tooltipster(...) when $(sel) does not match anything
2914
+ if (this.length === 0) {
2915
+
2916
+ // still chainable
2917
+ return this;
2918
+ }
2919
+ // this happens when calling $(sel).tooltipster('methodName or options')
2920
+ // where $(sel) matches one or more elements
2921
+ else {
2922
+
2923
+ // method calls
2924
+ if (typeof args[0] === 'string') {
2925
+
2926
+ var v = '#*$~&';
2927
+
2928
+ this.each(function() {
2929
+
2930
+ // retrieve the namepaces of the tooltip(s) that exist on that element.
2931
+ // We will interact with the first tooltip only.
2932
+ var ns = $(this).data('tooltipster-ns'),
2933
+ // self represents the instance of the first tooltipster plugin
2934
+ // associated to the current HTML object of the loop
2935
+ self = ns ? $(this).data(ns[0]) : null;
2936
+
2937
+ // if the current element holds a tooltipster instance
2938
+ if (self) {
2939
+
2940
+ if (typeof self[args[0]] === 'function') {
2941
+
2942
+ if ( this.length > 1
2943
+ && args[0] == 'content'
2944
+ && ( args[1] instanceof $
2945
+ || (typeof args[1] == 'object' && args[1] != null && args[1].tagName)
2946
+ )
2947
+ && !self.__options.contentCloning
2948
+ && self.__options.debug
2949
+ ) {
2950
+ console.log(contentCloningWarning);
2951
+ }
2952
+
2953
+ // note : args[1] and args[2] may not be defined
2954
+ var resp = self[args[0]](args[1], args[2]);
2955
+ }
2956
+ else {
2957
+ throw new Error('Unknown method "'+ args[0] +'"');
2958
+ }
2959
+
2960
+ // if the function returned anything other than the instance
2961
+ // itself (which implies chaining, except for the `instance` method)
2962
+ if (resp !== self || args[0] === 'instance') {
2963
+
2964
+ v = resp;
2965
+
2966
+ // return false to stop .each iteration on the first element
2967
+ // matched by the selector
2968
+ return false;
2969
+ }
2970
+ }
2971
+ else {
2972
+ throw new Error('You called Tooltipster\'s "'+ args[0] +'" method on an uninitialized element');
2973
+ }
2974
+ });
2975
+
2976
+ return (v !== '#*$~&') ? v : this;
2977
+ }
2978
+ // first argument is undefined or an object: the tooltip is initializing
2979
+ else {
2980
+
2981
+ // reset the array of last initialized objects
2982
+ $.tooltipster.__instancesLatestArr = [];
2983
+
2984
+ // is there a defined value for the multiple option in the options object ?
2985
+ var multipleIsSet = args[0] && args[0].multiple !== undefined,
2986
+ // if the multiple option is set to true, or if it's not defined but
2987
+ // set to true in the defaults
2988
+ multiple = (multipleIsSet && args[0].multiple) || (!multipleIsSet && defaults.multiple),
2989
+ // same for content
2990
+ contentIsSet = args[0] && args[0].content !== undefined,
2991
+ content = (contentIsSet && args[0].content) || (!contentIsSet && defaults.content),
2992
+ // same for contentCloning
2993
+ contentCloningIsSet = args[0] && args[0].contentCloning !== undefined,
2994
+ contentCloning =
2995
+ (contentCloningIsSet && args[0].contentCloning)
2996
+ || (!contentCloningIsSet && defaults.contentCloning),
2997
+ // same for debug
2998
+ debugIsSet = args[0] && args[0].debug !== undefined,
2999
+ debug = (debugIsSet && args[0].debug) || (!debugIsSet && defaults.debug);
3000
+
3001
+ if ( this.length > 1
3002
+ && ( content instanceof $
3003
+ || (typeof content == 'object' && content != null && content.tagName)
3004
+ )
3005
+ && !contentCloning
3006
+ && debug
3007
+ ) {
3008
+ console.log(contentCloningWarning);
3009
+ }
3010
+
3011
+ // create a tooltipster instance for each element if it doesn't
3012
+ // already have one or if the multiple option is set, and attach the
3013
+ // object to it
3014
+ this.each(function() {
3015
+
3016
+ var go = false,
3017
+ $this = $(this),
3018
+ ns = $this.data('tooltipster-ns'),
3019
+ obj = null;
3020
+
3021
+ if (!ns) {
3022
+ go = true;
3023
+ }
3024
+ else if (multiple) {
3025
+ go = true;
3026
+ }
3027
+ else if (debug) {
3028
+ console.log('Tooltipster: one or more tooltips are already attached to the element below. Ignoring.');
3029
+ console.log(this);
3030
+ }
3031
+
3032
+ if (go) {
3033
+ obj = new $.Tooltipster(this, args[0]);
3034
+
3035
+ // save the reference of the new instance
3036
+ if (!ns) ns = [];
3037
+ ns.push(obj.__namespace);
3038
+ $this.data('tooltipster-ns', ns);
3039
+
3040
+ // save the instance itself
3041
+ $this.data(obj.__namespace, obj);
3042
+
3043
+ // call our constructor custom function.
3044
+ // we do this here and not in ::init() because we wanted
3045
+ // the object to be saved in $this.data before triggering
3046
+ // it
3047
+ if (obj.__options.functionInit) {
3048
+ obj.__options.functionInit.call(obj, obj, {
3049
+ origin: this
3050
+ });
3051
+ }
3052
+
3053
+ // and now the event, for the plugins and core emitter
3054
+ obj._trigger('init');
3055
+ }
3056
+
3057
+ $.tooltipster.__instancesLatestArr.push(obj);
3058
+ });
3059
+
3060
+ return this;
3061
+ }
3062
+ }
3063
+ };
3064
+
3065
+ // Utilities
3066
+
3067
+ /**
3068
+ * A class to check if a tooltip can fit in given dimensions
3069
+ *
3070
+ * @param {object} $tooltip The jQuery wrapped tooltip element, or a clone of it
3071
+ */
3072
+ function Ruler($tooltip) {
3073
+
3074
+ // list of instance variables
3075
+
3076
+ this.$container;
3077
+ this.constraints = null;
3078
+ this.__$tooltip;
3079
+
3080
+ this.__init($tooltip);
3081
+ }
3082
+
3083
+ Ruler.prototype = {
3084
+
3085
+ /**
3086
+ * Move the tooltip into an invisible div that does not allow overflow to make
3087
+ * size tests. Note: the tooltip may or may not be attached to the DOM at the
3088
+ * moment this method is called, it does not matter.
3089
+ *
3090
+ * @param {object} $tooltip The object to test. May be just a clone of the
3091
+ * actual tooltip.
3092
+ * @private
3093
+ */
3094
+ __init: function($tooltip) {
3095
+
3096
+ this.__$tooltip = $tooltip;
3097
+
3098
+ this.__$tooltip
3099
+ .css({
3100
+ // for some reason we have to specify top and left 0
3101
+ left: 0,
3102
+ // any overflow will be ignored while measuring
3103
+ overflow: 'hidden',
3104
+ // positions at (0,0) without the div using 100% of the available width
3105
+ position: 'absolute',
3106
+ top: 0
3107
+ })
3108
+ // overflow must be auto during the test. We re-set this in case
3109
+ // it were modified by the user
3110
+ .find('.tooltipster-content')
3111
+ .css('overflow', 'auto');
3112
+
3113
+ this.$container = $('<div class="tooltipster-ruler"></div>')
3114
+ .append(this.__$tooltip)
3115
+ .appendTo(env.window.document.body);
3116
+ },
3117
+
3118
+ /**
3119
+ * Force the browser to redraw (re-render) the tooltip immediately. This is required
3120
+ * when you changed some CSS properties and need to make something with it
3121
+ * immediately, without waiting for the browser to redraw at the end of instructions.
3122
+ *
3123
+ * @see http://stackoverflow.com/questions/3485365/how-can-i-force-webkit-to-redraw-repaint-to-propagate-style-changes
3124
+ * @private
3125
+ */
3126
+ __forceRedraw: function() {
3127
+
3128
+ // note: this would work but for Webkit only
3129
+ //this.__$tooltip.close();
3130
+ //this.__$tooltip[0].offsetHeight;
3131
+ //this.__$tooltip.open();
3132
+
3133
+ // works in FF too
3134
+ var $p = this.__$tooltip.parent();
3135
+ this.__$tooltip.detach();
3136
+ this.__$tooltip.appendTo($p);
3137
+ },
3138
+
3139
+ /**
3140
+ * Set maximum dimensions for the tooltip. A call to ::measure afterwards
3141
+ * will tell us if the content overflows or if it's ok
3142
+ *
3143
+ * @param {int} width
3144
+ * @param {int} height
3145
+ * @return {Ruler}
3146
+ * @public
3147
+ */
3148
+ constrain: function(width, height) {
3149
+
3150
+ this.constraints = {
3151
+ width: width,
3152
+ height: height
3153
+ };
3154
+
3155
+ this.__$tooltip.css({
3156
+ // we disable display:flex, otherwise the content would overflow without
3157
+ // creating horizontal scrolling (which we need to detect).
3158
+ display: 'block',
3159
+ // reset any previous height
3160
+ height: '',
3161
+ // we'll check if horizontal scrolling occurs
3162
+ overflow: 'auto',
3163
+ // we'll set the width and see what height is generated and if there
3164
+ // is horizontal overflow
3165
+ width: width
3166
+ });
3167
+
3168
+ return this;
3169
+ },
3170
+
3171
+ /**
3172
+ * Reset the tooltip content overflow and remove the test container
3173
+ *
3174
+ * @returns {Ruler}
3175
+ * @public
3176
+ */
3177
+ destroy: function() {
3178
+
3179
+ // in case the element was not a clone
3180
+ this.__$tooltip
3181
+ .detach()
3182
+ .find('.tooltipster-content')
3183
+ .css({
3184
+ // reset to CSS value
3185
+ display: '',
3186
+ overflow: ''
3187
+ });
3188
+
3189
+ this.$container.remove();
3190
+ },
3191
+
3192
+ /**
3193
+ * Removes any constraints
3194
+ *
3195
+ * @returns {Ruler}
3196
+ * @public
3197
+ */
3198
+ free: function() {
3199
+
3200
+ this.constraints = null;
3201
+
3202
+ // reset to natural size
3203
+ this.__$tooltip.css({
3204
+ display: '',
3205
+ height: '',
3206
+ overflow: 'visible',
3207
+ width: ''
3208
+ });
3209
+
3210
+ return this;
3211
+ },
3212
+
3213
+ /**
3214
+ * Returns the size of the tooltip. When constraints are applied, also returns
3215
+ * whether the tooltip fits in the provided dimensions.
3216
+ * The idea is to see if the new height is small enough and if the content does
3217
+ * not overflow horizontally.
3218
+ *
3219
+ * @param {int} width
3220
+ * @param {int} height
3221
+ * @returns {object} An object with a bool `fits` property and a `size` property
3222
+ * @public
3223
+ */
3224
+ measure: function() {
3225
+
3226
+ this.__forceRedraw();
3227
+
3228
+ var tooltipBcr = this.__$tooltip[0].getBoundingClientRect(),
3229
+ result = { size: {
3230
+ // bcr.width/height are not defined in IE8- but in this
3231
+ // case, bcr.right/bottom will have the same value
3232
+ // except in iOS 8+ where tooltipBcr.bottom/right are wrong
3233
+ // after scrolling for reasons yet to be determined.
3234
+ // tooltipBcr.top/left might not be 0, see issue #514
3235
+ height: tooltipBcr.height || (tooltipBcr.bottom - tooltipBcr.top),
3236
+ width: tooltipBcr.width || (tooltipBcr.right - tooltipBcr.left)
3237
+ }};
3238
+
3239
+ if (this.constraints) {
3240
+
3241
+ // note: we used to use offsetWidth instead of boundingRectClient but
3242
+ // it returned rounded values, causing issues with sub-pixel layouts.
3243
+
3244
+ // note2: noticed that the bcrWidth of text content of a div was once
3245
+ // greater than the bcrWidth of its container by 1px, causing the final
3246
+ // tooltip box to be too small for its content. However, evaluating
3247
+ // their widths one against the other (below) surprisingly returned
3248
+ // equality. Happened only once in Chrome 48, was not able to reproduce
3249
+ // => just having fun with float position values...
3250
+
3251
+ var $content = this.__$tooltip.find('.tooltipster-content'),
3252
+ height = this.__$tooltip.outerHeight(),
3253
+ contentBcr = $content[0].getBoundingClientRect(),
3254
+ fits = {
3255
+ height: height <= this.constraints.height,
3256
+ width: (
3257
+ // this condition accounts for min-width property that
3258
+ // may apply
3259
+ tooltipBcr.width <= this.constraints.width
3260
+ // the -1 is here because scrollWidth actually returns
3261
+ // a rounded value, and may be greater than bcr.width if
3262
+ // it was rounded up. This may cause an issue for contents
3263
+ // which actually really overflow by 1px or so, but that
3264
+ // should be rare. Not sure how to solve this efficiently.
3265
+ // See http://blogs.msdn.com/b/ie/archive/2012/02/17/sub-pixel-rendering-and-the-css-object-model.aspx
3266
+ && contentBcr.width >= $content[0].scrollWidth - 1
3267
+ )
3268
+ };
3269
+
3270
+ result.fits = fits.height && fits.width;
3271
+ }
3272
+
3273
+ // old versions of IE get the width wrong for some reason and it causes
3274
+ // the text to be broken to a new line, so we round it up. If the width
3275
+ // is the width of the screen though, we can assume it is accurate.
3276
+ if ( env.IE
3277
+ && env.IE <= 11
3278
+ && result.size.width !== env.window.document.documentElement.clientWidth
3279
+ ) {
3280
+ result.size.width = Math.ceil(result.size.width) + 1;
3281
+ }
3282
+
3283
+ return result;
3284
+ }
3285
+ };
3286
+
3287
+ // quick & dirty compare function, not bijective nor multidimensional
3288
+ function areEqual(a,b) {
3289
+ var same = true;
3290
+ $.each(a, function(i, _) {
3291
+ if (b[i] === undefined || a[i] !== b[i]) {
3292
+ same = false;
3293
+ return false;
3294
+ }
3295
+ });
3296
+ return same;
3297
+ }
3298
+
3299
+ /**
3300
+ * A fast function to check if an element is still in the DOM. It
3301
+ * tries to use an id as ids are indexed by the browser, or falls
3302
+ * back to jQuery's `contains` method. May fail if two elements
3303
+ * have the same id, but so be it
3304
+ *
3305
+ * @param {object} $obj A jQuery-wrapped HTML element
3306
+ * @return {boolean}
3307
+ */
3308
+ function bodyContains($obj) {
3309
+ var id = $obj.attr('id'),
3310
+ el = id ? env.window.document.getElementById(id) : null;
3311
+ // must also check that the element with the id is the one we want
3312
+ return el ? el === $obj[0] : $.contains(env.window.document.body, $obj[0]);
3313
+ }
3314
+
3315
+ // detect IE versions for dirty fixes
3316
+ var uA = navigator.userAgent.toLowerCase();
3317
+ if (uA.indexOf('msie') != -1) env.IE = parseInt(uA.split('msie')[1]);
3318
+ else if (uA.toLowerCase().indexOf('trident') !== -1 && uA.indexOf(' rv:11') !== -1) env.IE = 11;
3319
+ else if (uA.toLowerCase().indexOf('edge/') != -1) env.IE = parseInt(uA.toLowerCase().split('edge/')[1]);
3320
+
3321
+ // detecting support for CSS transitions
3322
+ function transitionSupport() {
3323
+
3324
+ // env.window is not defined yet when this is called
3325
+ if (!win) return false;
3326
+
3327
+ var b = win.document.body || win.document.documentElement,
3328
+ s = b.style,
3329
+ p = 'transition',
3330
+ v = ['Moz', 'Webkit', 'Khtml', 'O', 'ms'];
3331
+
3332
+ if (typeof s[p] == 'string') { return true; }
3333
+
3334
+ p = p.charAt(0).toUpperCase() + p.substr(1);
3335
+ for (var i=0; i<v.length; i++) {
3336
+ if (typeof s[v[i] + p] == 'string') { return true; }
3337
+ }
3338
+ return false;
3339
+ }
3340
+
3341
+ // we'll return jQuery for plugins not to have to declare it as a dependency,
3342
+ // but it's done by a build task since it should be included only once at the
3343
+ // end when we concatenate the main file with a plugin
3344
+ // sideTip is Tooltipster's default plugin.
3345
+ // This file will be UMDified by a build task.
3346
+
3347
+ var pluginName = 'tooltipster.sideTip';
3348
+
3349
+ $.tooltipster._plugin({
3350
+ name: pluginName,
3351
+ instance: {
3352
+ /**
3353
+ * Defaults are provided as a function for an easy override by inheritance
3354
+ *
3355
+ * @return {object} An object with the defaults options
3356
+ * @private
3357
+ */
3358
+ __defaults: function() {
3359
+
3360
+ return {
3361
+ // if the tooltip should display an arrow that points to the origin
3362
+ arrow: true,
3363
+ // the distance in pixels between the tooltip and the origin
3364
+ distance: 6,
3365
+ // allows to easily change the position of the tooltip
3366
+ functionPosition: null,
3367
+ maxWidth: null,
3368
+ // used to accomodate the arrow of tooltip if there is one.
3369
+ // First to make sure that the arrow target is not too close
3370
+ // to the edge of the tooltip, so the arrow does not overflow
3371
+ // the tooltip. Secondly when we reposition the tooltip to
3372
+ // make sure that it's positioned in such a way that the arrow is
3373
+ // still pointing at the target (and not a few pixels beyond it).
3374
+ // It should be equal to or greater than half the width of
3375
+ // the arrow (by width we mean the size of the side which touches
3376
+ // the side of the tooltip).
3377
+ minIntersection: 16,
3378
+ minWidth: 0,
3379
+ // deprecated in 4.0.0. Listed for _optionsExtract to pick it up
3380
+ position: null,
3381
+ side: 'top',
3382
+ // set to false to position the tooltip relatively to the document rather
3383
+ // than the window when we open it
3384
+ viewportAware: true
3385
+ };
3386
+ },
3387
+
3388
+ /**
3389
+ * Run once: at instantiation of the plugin
3390
+ *
3391
+ * @param {object} instance The tooltipster object that instantiated this plugin
3392
+ * @private
3393
+ */
3394
+ __init: function(instance) {
3395
+
3396
+ var self = this;
3397
+
3398
+ // list of instance variables
3399
+
3400
+ self.__instance = instance;
3401
+ self.__namespace = 'tooltipster-sideTip-'+ Math.round(Math.random()*1000000);
3402
+ self.__previousState = 'closed';
3403
+ self.__options;
3404
+
3405
+ // initial formatting
3406
+ self.__optionsFormat();
3407
+
3408
+ self.__instance._on('state.'+ self.__namespace, function(event) {
3409
+
3410
+ if (event.state == 'closed') {
3411
+ self.__close();
3412
+ }
3413
+ else if (event.state == 'appearing' && self.__previousState == 'closed') {
3414
+ self.__create();
3415
+ }
3416
+
3417
+ self.__previousState = event.state;
3418
+ });
3419
+
3420
+ // reformat every time the options are changed
3421
+ self.__instance._on('options.'+ self.__namespace, function() {
3422
+ self.__optionsFormat();
3423
+ });
3424
+
3425
+ self.__instance._on('reposition.'+ self.__namespace, function(e) {
3426
+ self.__reposition(e.event, e.helper);
3427
+ });
3428
+ },
3429
+
3430
+ /**
3431
+ * Called when the tooltip has closed
3432
+ *
3433
+ * @private
3434
+ */
3435
+ __close: function() {
3436
+
3437
+ // detach our content object first, so the next jQuery's remove()
3438
+ // call does not unbind its event handlers
3439
+ if (this.__instance.content() instanceof $) {
3440
+ this.__instance.content().detach();
3441
+ }
3442
+
3443
+ // remove the tooltip from the DOM
3444
+ this.__instance._$tooltip.remove();
3445
+ this.__instance._$tooltip = null;
3446
+ },
3447
+
3448
+ /**
3449
+ * Creates the HTML element of the tooltip.
3450
+ *
3451
+ * @private
3452
+ */
3453
+ __create: function() {
3454
+
3455
+ // note: we wrap with a .tooltipster-box div to be able to set a margin on it
3456
+ // (.tooltipster-base must not have one)
3457
+ var $html = $(
3458
+ '<div class="tooltipster-base tooltipster-sidetip">' +
3459
+ '<div class="tooltipster-box">' +
3460
+ '<div class="tooltipster-content"></div>' +
3461
+ '</div>' +
3462
+ '<div class="tooltipster-arrow">' +
3463
+ '<div class="tooltipster-arrow-uncropped">' +
3464
+ '<div class="tooltipster-arrow-border"></div>' +
3465
+ '<div class="tooltipster-arrow-background"></div>' +
3466
+ '</div>' +
3467
+ '</div>' +
3468
+ '</div>'
3469
+ );
3470
+
3471
+ // hide arrow if asked
3472
+ if (!this.__options.arrow) {
3473
+ $html
3474
+ .find('.tooltipster-box')
3475
+ .css('margin', 0)
3476
+ .end()
3477
+ .find('.tooltipster-arrow')
3478
+ .hide();
3479
+ }
3480
+
3481
+ // apply min/max width if asked
3482
+ if (this.__options.minWidth) {
3483
+ $html.css('min-width', this.__options.minWidth + 'px');
3484
+ }
3485
+ if (this.__options.maxWidth) {
3486
+ $html.css('max-width', this.__options.maxWidth + 'px');
3487
+ }
3488
+
3489
+ this.__instance._$tooltip = $html;
3490
+
3491
+ // tell the instance that the tooltip element has been created
3492
+ this.__instance._trigger('created');
3493
+ },
3494
+
3495
+ /**
3496
+ * Used when the plugin is to be unplugged
3497
+ *
3498
+ * @private
3499
+ */
3500
+ __destroy: function() {
3501
+ this.__instance._off('.'+ self.__namespace);
3502
+ },
3503
+
3504
+ /**
3505
+ * (Re)compute this.__options from the options declared to the instance
3506
+ *
3507
+ * @private
3508
+ */
3509
+ __optionsFormat: function() {
3510
+
3511
+ var self = this;
3512
+
3513
+ // get the options
3514
+ self.__options = self.__instance._optionsExtract(pluginName, self.__defaults());
3515
+
3516
+ // for backward compatibility, deprecated in v4.0.0
3517
+ if (self.__options.position) {
3518
+ self.__options.side = self.__options.position;
3519
+ }
3520
+
3521
+ // options formatting
3522
+
3523
+ // format distance as a four-cell array if it ain't one yet and then make
3524
+ // it an object with top/bottom/left/right properties
3525
+ if (typeof self.__options.distance != 'object') {
3526
+ self.__options.distance = [self.__options.distance];
3527
+ }
3528
+ if (self.__options.distance.length < 4) {
3529
+ if (self.__options.distance[1] === undefined) self.__options.distance[1] = self.__options.distance[0];
3530
+ if (self.__options.distance[2] === undefined) self.__options.distance[2] = self.__options.distance[0];
3531
+ if (self.__options.distance[3] === undefined) self.__options.distance[3] = self.__options.distance[1];
3532
+ }
3533
+
3534
+ self.__options.distance = {
3535
+ top: self.__options.distance[0],
3536
+ right: self.__options.distance[1],
3537
+ bottom: self.__options.distance[2],
3538
+ left: self.__options.distance[3]
3539
+ };
3540
+
3541
+ // let's transform:
3542
+ // 'top' into ['top', 'bottom', 'right', 'left']
3543
+ // 'right' into ['right', 'left', 'top', 'bottom']
3544
+ // 'bottom' into ['bottom', 'top', 'right', 'left']
3545
+ // 'left' into ['left', 'right', 'top', 'bottom']
3546
+ if (typeof self.__options.side == 'string') {
3547
+
3548
+ var opposites = {
3549
+ 'top': 'bottom',
3550
+ 'right': 'left',
3551
+ 'bottom': 'top',
3552
+ 'left': 'right'
3553
+ };
3554
+
3555
+ self.__options.side = [self.__options.side, opposites[self.__options.side]];
3556
+
3557
+ if (self.__options.side[0] == 'left' || self.__options.side[0] == 'right') {
3558
+ self.__options.side.push('top', 'bottom');
3559
+ }
3560
+ else {
3561
+ self.__options.side.push('right', 'left');
3562
+ }
3563
+ }
3564
+
3565
+ // misc
3566
+ // disable the arrow in IE6 unless the arrow option was explicitly set to true
3567
+ if ( $.tooltipster._env.IE === 6
3568
+ && self.__options.arrow !== true
3569
+ ) {
3570
+ self.__options.arrow = false;
3571
+ }
3572
+ },
3573
+
3574
+ /**
3575
+ * This method must compute and set the positioning properties of the
3576
+ * tooltip (left, top, width, height, etc.). It must also make sure the
3577
+ * tooltip is eventually appended to its parent (since the element may be
3578
+ * detached from the DOM at the moment the method is called).
3579
+ *
3580
+ * We'll evaluate positioning scenarios to find which side can contain the
3581
+ * tooltip in the best way. We'll consider things relatively to the window
3582
+ * (unless the user asks not to), then to the document (if need be, or if the
3583
+ * user explicitly requires the tests to run on the document). For each
3584
+ * scenario, measures are taken, allowing us to know how well the tooltip
3585
+ * is going to fit. After that, a sorting function will let us know what
3586
+ * the best scenario is (we also allow the user to choose his favorite
3587
+ * scenario by using an event).
3588
+ *
3589
+ * @param {object} helper An object that contains variables that plugin
3590
+ * creators may find useful (see below)
3591
+ * @param {object} helper.geo An object with many layout properties
3592
+ * about objects of interest (window, document, origin). This should help
3593
+ * plugin users compute the optimal position of the tooltip
3594
+ * @private
3595
+ */
3596
+ __reposition: function(event, helper) {
3597
+
3598
+ var self = this,
3599
+ finalResult,
3600
+ // to know where to put the tooltip, we need to know on which point
3601
+ // of the x or y axis we should center it. That coordinate is the target
3602
+ targets = self.__targetFind(helper),
3603
+ testResults = [];
3604
+
3605
+ // make sure the tooltip is detached while we make tests on a clone
3606
+ self.__instance._$tooltip.detach();
3607
+
3608
+ // we could actually provide the original element to the Ruler and
3609
+ // not a clone, but it just feels right to keep it out of the
3610
+ // machinery.
3611
+ var $clone = self.__instance._$tooltip.clone(),
3612
+ // start position tests session
3613
+ ruler = $.tooltipster._getRuler($clone),
3614
+ satisfied = false,
3615
+ animation = self.__instance.option('animation');
3616
+
3617
+ // an animation class could contain properties that distort the size
3618
+ if (animation) {
3619
+ $clone.removeClass('tooltipster-'+ animation);
3620
+ }
3621
+
3622
+ // start evaluating scenarios
3623
+ $.each(['window', 'document'], function(i, container) {
3624
+
3625
+ var takeTest = null;
3626
+
3627
+ // let the user decide to keep on testing or not
3628
+ self.__instance._trigger({
3629
+ container: container,
3630
+ helper: helper,
3631
+ satisfied: satisfied,
3632
+ takeTest: function(bool) {
3633
+ takeTest = bool;
3634
+ },
3635
+ results: testResults,
3636
+ type: 'positionTest'
3637
+ });
3638
+
3639
+ if ( takeTest == true
3640
+ || ( takeTest != false
3641
+ && satisfied == false
3642
+ // skip the window scenarios if asked. If they are reintegrated by
3643
+ // the callback of the positionTest event, they will have to be
3644
+ // excluded using the callback of positionTested
3645
+ && (container != 'window' || self.__options.viewportAware)
3646
+ )
3647
+ ) {
3648
+
3649
+ // for each allowed side
3650
+ for (var i=0; i < self.__options.side.length; i++) {
3651
+
3652
+ var distance = {
3653
+ horizontal: 0,
3654
+ vertical: 0
3655
+ },
3656
+ side = self.__options.side[i];
3657
+
3658
+ if (side == 'top' || side == 'bottom') {
3659
+ distance.vertical = self.__options.distance[side];
3660
+ }
3661
+ else {
3662
+ distance.horizontal = self.__options.distance[side];
3663
+ }
3664
+
3665
+ // this may have an effect on the size of the tooltip if there are css
3666
+ // rules for the arrow or something else
3667
+ self.__sideChange($clone, side);
3668
+
3669
+ $.each(['natural', 'constrained'], function(i, mode) {
3670
+
3671
+ takeTest = null;
3672
+
3673
+ // emit an event on the instance
3674
+ self.__instance._trigger({
3675
+ container: container,
3676
+ event: event,
3677
+ helper: helper,
3678
+ mode: mode,
3679
+ results: testResults,
3680
+ satisfied: satisfied,
3681
+ side: side,
3682
+ takeTest: function(bool) {
3683
+ takeTest = bool;
3684
+ },
3685
+ type: 'positionTest'
3686
+ });
3687
+
3688
+ if ( takeTest == true
3689
+ || ( takeTest != false
3690
+ && satisfied == false
3691
+ )
3692
+ ) {
3693
+
3694
+ var testResult = {
3695
+ container: container,
3696
+ // we let the distance as an object here, it can make things a little easier
3697
+ // during the user's calculations at positionTest/positionTested
3698
+ distance: distance,
3699
+ // whether the tooltip can fit in the size of the viewport (does not mean
3700
+ // that we'll be able to make it initially entirely visible, see 'whole')
3701
+ fits: null,
3702
+ mode: mode,
3703
+ outerSize: null,
3704
+ side: side,
3705
+ size: null,
3706
+ target: targets[side],
3707
+ // check if the origin has enough surface on screen for the tooltip to
3708
+ // aim at it without overflowing the viewport (this is due to the thickness
3709
+ // of the arrow represented by the minIntersection length).
3710
+ // If not, the tooltip will have to be partly or entirely off screen in
3711
+ // order to stay docked to the origin. This value will stay null when the
3712
+ // container is the document, as it is not relevant
3713
+ whole: null
3714
+ };
3715
+
3716
+ // get the size of the tooltip with or without size constraints
3717
+ var rulerConfigured = (mode == 'natural') ?
3718
+ ruler.free() :
3719
+ ruler.constrain(
3720
+ helper.geo.available[container][side].width - distance.horizontal,
3721
+ helper.geo.available[container][side].height - distance.vertical
3722
+ ),
3723
+ rulerResults = rulerConfigured.measure();
3724
+
3725
+ testResult.size = rulerResults.size;
3726
+ testResult.outerSize = {
3727
+ height: rulerResults.size.height + distance.vertical,
3728
+ width: rulerResults.size.width + distance.horizontal
3729
+ };
3730
+
3731
+ if (mode == 'natural') {
3732
+
3733
+ if( helper.geo.available[container][side].width >= testResult.outerSize.width
3734
+ && helper.geo.available[container][side].height >= testResult.outerSize.height
3735
+ ) {
3736
+ testResult.fits = true;
3737
+ }
3738
+ else {
3739
+ testResult.fits = false;
3740
+ }
3741
+ }
3742
+ else {
3743
+ testResult.fits = rulerResults.fits;
3744
+ }
3745
+
3746
+ if (container == 'window') {
3747
+
3748
+ if (!testResult.fits) {
3749
+ testResult.whole = false;
3750
+ }
3751
+ else {
3752
+ if (side == 'top' || side == 'bottom') {
3753
+
3754
+ testResult.whole = (
3755
+ helper.geo.origin.windowOffset.right >= self.__options.minIntersection
3756
+ && helper.geo.window.size.width - helper.geo.origin.windowOffset.left >= self.__options.minIntersection
3757
+ );
3758
+ }
3759
+ else {
3760
+ testResult.whole = (
3761
+ helper.geo.origin.windowOffset.bottom >= self.__options.minIntersection
3762
+ && helper.geo.window.size.height - helper.geo.origin.windowOffset.top >= self.__options.minIntersection
3763
+ );
3764
+ }
3765
+ }
3766
+ }
3767
+
3768
+ testResults.push(testResult);
3769
+
3770
+ // we don't need to compute more positions if we have one fully on screen
3771
+ if (testResult.whole) {
3772
+ satisfied = true;
3773
+ }
3774
+ else {
3775
+ // don't run the constrained test unless the natural width was greater
3776
+ // than the available width, otherwise it's pointless as we know it
3777
+ // wouldn't fit either
3778
+ if ( testResult.mode == 'natural'
3779
+ && ( testResult.fits
3780
+ || testResult.size.width <= helper.geo.available[container][side].width
3781
+ )
3782
+ ) {
3783
+ return false;
3784
+ }
3785
+ }
3786
+ }
3787
+ });
3788
+ }
3789
+ }
3790
+ });
3791
+
3792
+ // the user may eliminate the unwanted scenarios from testResults, but he's
3793
+ // not supposed to alter them at this point. functionPosition and the
3794
+ // position event serve that purpose.
3795
+ self.__instance._trigger({
3796
+ edit: function(r) {
3797
+ testResults = r;
3798
+ },
3799
+ event: event,
3800
+ helper: helper,
3801
+ results: testResults,
3802
+ type: 'positionTested'
3803
+ });
3804
+
3805
+ /**
3806
+ * Sort the scenarios to find the favorite one.
3807
+ *
3808
+ * The favorite scenario is when we can fully display the tooltip on screen,
3809
+ * even if it means that the middle of the tooltip is no longer centered on
3810
+ * the middle of the origin (when the origin is near the edge of the screen
3811
+ * or even partly off screen). We want the tooltip on the preferred side,
3812
+ * even if it means that we have to use a constrained size rather than a
3813
+ * natural one (as long as it fits). When the origin is off screen at the top
3814
+ * the tooltip will be positioned at the bottom (if allowed), if the origin
3815
+ * is off screen on the right, it will be positioned on the left, etc.
3816
+ * If there are no scenarios where the tooltip can fit on screen, or if the
3817
+ * user does not want the tooltip to fit on screen (viewportAware == false),
3818
+ * we fall back to the scenarios relative to the document.
3819
+ *
3820
+ * When the tooltip is bigger than the viewport in either dimension, we stop
3821
+ * looking at the window scenarios and consider the document scenarios only,
3822
+ * with the same logic to find on which side it would fit best.
3823
+ *
3824
+ * If the tooltip cannot fit the document on any side, we force it at the
3825
+ * bottom, so at least the user can scroll to see it.
3826
+ */
3827
+ testResults.sort(function(a, b) {
3828
+
3829
+ // best if it's whole (the tooltip fits and adapts to the viewport)
3830
+ if (a.whole && !b.whole) {
3831
+ return -1;
3832
+ }
3833
+ else if (!a.whole && b.whole) {
3834
+ return 1;
3835
+ }
3836
+ else if (a.whole && b.whole) {
3837
+
3838
+ var ai = self.__options.side.indexOf(a.side),
3839
+ bi = self.__options.side.indexOf(b.side);
3840
+
3841
+ // use the user's sides fallback array
3842
+ if (ai < bi) {
3843
+ return -1;
3844
+ }
3845
+ else if (ai > bi) {
3846
+ return 1;
3847
+ }
3848
+ else {
3849
+ // will be used if the user forced the tests to continue
3850
+ return a.mode == 'natural' ? -1 : 1;
3851
+ }
3852
+ }
3853
+ else {
3854
+
3855
+ // better if it fits
3856
+ if (a.fits && !b.fits) {
3857
+ return -1;
3858
+ }
3859
+ else if (!a.fits && b.fits) {
3860
+ return 1;
3861
+ }
3862
+ else if (a.fits && b.fits) {
3863
+
3864
+ var ai = self.__options.side.indexOf(a.side),
3865
+ bi = self.__options.side.indexOf(b.side);
3866
+
3867
+ // use the user's sides fallback array
3868
+ if (ai < bi) {
3869
+ return -1;
3870
+ }
3871
+ else if (ai > bi) {
3872
+ return 1;
3873
+ }
3874
+ else {
3875
+ // will be used if the user forced the tests to continue
3876
+ return a.mode == 'natural' ? -1 : 1;
3877
+ }
3878
+ }
3879
+ else {
3880
+
3881
+ // if everything failed, this will give a preference to the case where
3882
+ // the tooltip overflows the document at the bottom
3883
+ if ( a.container == 'document'
3884
+ && a.side == 'bottom'
3885
+ && a.mode == 'natural'
3886
+ ) {
3887
+ return -1;
3888
+ }
3889
+ else {
3890
+ return 1;
3891
+ }
3892
+ }
3893
+ }
3894
+ });
3895
+
3896
+ finalResult = testResults[0];
3897
+
3898
+
3899
+ // now let's find the coordinates of the tooltip relatively to the window
3900
+ finalResult.coord = {};
3901
+
3902
+ switch (finalResult.side) {
3903
+
3904
+ case 'left':
3905
+ case 'right':
3906
+ finalResult.coord.top = Math.floor(finalResult.target - finalResult.size.height / 2);
3907
+ break;
3908
+
3909
+ case 'bottom':
3910
+ case 'top':
3911
+ finalResult.coord.left = Math.floor(finalResult.target - finalResult.size.width / 2);
3912
+ break;
3913
+ }
3914
+
3915
+ switch (finalResult.side) {
3916
+
3917
+ case 'left':
3918
+ finalResult.coord.left = helper.geo.origin.windowOffset.left - finalResult.outerSize.width;
3919
+ break;
3920
+
3921
+ case 'right':
3922
+ finalResult.coord.left = helper.geo.origin.windowOffset.right + finalResult.distance.horizontal;
3923
+ break;
3924
+
3925
+ case 'top':
3926
+ finalResult.coord.top = helper.geo.origin.windowOffset.top - finalResult.outerSize.height;
3927
+ break;
3928
+
3929
+ case 'bottom':
3930
+ finalResult.coord.top = helper.geo.origin.windowOffset.bottom + finalResult.distance.vertical;
3931
+ break;
3932
+ }
3933
+
3934
+ // if the tooltip can potentially be contained within the viewport dimensions
3935
+ // and that we are asked to make it fit on screen
3936
+ if (finalResult.container == 'window') {
3937
+
3938
+ // if the tooltip overflows the viewport, we'll move it accordingly (then it will
3939
+ // not be centered on the middle of the origin anymore). We only move horizontally
3940
+ // for top and bottom tooltips and vice versa.
3941
+ if (finalResult.side == 'top' || finalResult.side == 'bottom') {
3942
+
3943
+ // if there is an overflow on the left
3944
+ if (finalResult.coord.left < 0) {
3945
+
3946
+ // prevent the overflow unless the origin itself gets off screen (minus the
3947
+ // margin needed to keep the arrow pointing at the target)
3948
+ if (helper.geo.origin.windowOffset.right - this.__options.minIntersection >= 0) {
3949
+ finalResult.coord.left = 0;
3950
+ }
3951
+ else {
3952
+ finalResult.coord.left = helper.geo.origin.windowOffset.right - this.__options.minIntersection - 1;
3953
+ }
3954
+ }
3955
+ // or an overflow on the right
3956
+ else if (finalResult.coord.left > helper.geo.window.size.width - finalResult.size.width) {
3957
+
3958
+ if (helper.geo.origin.windowOffset.left + this.__options.minIntersection <= helper.geo.window.size.width) {
3959
+ finalResult.coord.left = helper.geo.window.size.width - finalResult.size.width;
3960
+ }
3961
+ else {
3962
+ finalResult.coord.left = helper.geo.origin.windowOffset.left + this.__options.minIntersection + 1 - finalResult.size.width;
3963
+ }
3964
+ }
3965
+ }
3966
+ else {
3967
+
3968
+ // overflow at the top
3969
+ if (finalResult.coord.top < 0) {
3970
+
3971
+ if (helper.geo.origin.windowOffset.bottom - this.__options.minIntersection >= 0) {
3972
+ finalResult.coord.top = 0;
3973
+ }
3974
+ else {
3975
+ finalResult.coord.top = helper.geo.origin.windowOffset.bottom - this.__options.minIntersection - 1;
3976
+ }
3977
+ }
3978
+ // or at the bottom
3979
+ else if (finalResult.coord.top > helper.geo.window.size.height - finalResult.size.height) {
3980
+
3981
+ if (helper.geo.origin.windowOffset.top + this.__options.minIntersection <= helper.geo.window.size.height) {
3982
+ finalResult.coord.top = helper.geo.window.size.height - finalResult.size.height;
3983
+ }
3984
+ else {
3985
+ finalResult.coord.top = helper.geo.origin.windowOffset.top + this.__options.minIntersection + 1 - finalResult.size.height;
3986
+ }
3987
+ }
3988
+ }
3989
+ }
3990
+ else {
3991
+
3992
+ // there might be overflow here too but it's easier to handle. If there has
3993
+ // to be an overflow, we'll make sure it's on the right side of the screen
3994
+ // (because the browser will extend the document size if there is an overflow
3995
+ // on the right, but not on the left). The sort function above has already
3996
+ // made sure that a bottom document overflow is preferred to a top overflow,
3997
+ // so we don't have to care about it.
3998
+
3999
+ // if there is an overflow on the right
4000
+ if (finalResult.coord.left > helper.geo.window.size.width - finalResult.size.width) {
4001
+
4002
+ // this may actually create on overflow on the left but we'll fix it in a sec
4003
+ finalResult.coord.left = helper.geo.window.size.width - finalResult.size.width;
4004
+ }
4005
+
4006
+ // if there is an overflow on the left
4007
+ if (finalResult.coord.left < 0) {
4008
+
4009
+ // don't care if it overflows the right after that, we made our best
4010
+ finalResult.coord.left = 0;
4011
+ }
4012
+ }
4013
+
4014
+
4015
+ // submit the positioning proposal to the user function which may choose to change
4016
+ // the side, size and/or the coordinates
4017
+
4018
+ // first, set the rules that corresponds to the proposed side: it may change
4019
+ // the size of the tooltip, and the custom functionPosition may want to detect the
4020
+ // size of something before making a decision. So let's make things easier for the
4021
+ // implementor
4022
+ self.__sideChange($clone, finalResult.side);
4023
+
4024
+ // add some variables to the helper
4025
+ helper.tooltipClone = $clone[0];
4026
+ helper.tooltipParent = self.__instance.option('parent').parent[0];
4027
+ // move informative values to the helper
4028
+ helper.mode = finalResult.mode;
4029
+ helper.whole = finalResult.whole;
4030
+ // add some variables to the helper for the functionPosition callback (these
4031
+ // will also be added to the event fired by self.__instance._trigger but that's
4032
+ // ok, we're just being consistent)
4033
+ helper.origin = self.__instance._$origin[0];
4034
+ helper.tooltip = self.__instance._$tooltip[0];
4035
+
4036
+ // leave only the actionable values in there for functionPosition
4037
+ delete finalResult.container;
4038
+ delete finalResult.fits;
4039
+ delete finalResult.mode;
4040
+ delete finalResult.outerSize;
4041
+ delete finalResult.whole;
4042
+
4043
+ // keep only the distance on the relevant side, for clarity
4044
+ finalResult.distance = finalResult.distance.horizontal || finalResult.distance.vertical;
4045
+
4046
+ // beginners may not be comfortable with the concept of editing the object
4047
+ // passed by reference, so we provide an edit function and pass a clone
4048
+ var finalResultClone = $.extend(true, {}, finalResult);
4049
+
4050
+ // emit an event on the instance
4051
+ self.__instance._trigger({
4052
+ edit: function(result) {
4053
+ finalResult = result;
4054
+ },
4055
+ event: event,
4056
+ helper: helper,
4057
+ position: finalResultClone,
4058
+ type: 'position'
4059
+ });
4060
+
4061
+ if (self.__options.functionPosition) {
4062
+
4063
+ var result = self.__options.functionPosition.call(self, self.__instance, helper, finalResultClone);
4064
+
4065
+ if (result) finalResult = result;
4066
+ }
4067
+
4068
+ // end the positioning tests session (the user might have had a
4069
+ // use for it during the position event, now it's over)
4070
+ ruler.destroy();
4071
+
4072
+ // compute the position of the target relatively to the tooltip root
4073
+ // element so we can place the arrow and make the needed adjustments
4074
+ var arrowCoord,
4075
+ maxVal;
4076
+
4077
+ if (finalResult.side == 'top' || finalResult.side == 'bottom') {
4078
+
4079
+ arrowCoord = {
4080
+ prop: 'left',
4081
+ val: finalResult.target - finalResult.coord.left
4082
+ };
4083
+ maxVal = finalResult.size.width - this.__options.minIntersection;
4084
+ }
4085
+ else {
4086
+
4087
+ arrowCoord = {
4088
+ prop: 'top',
4089
+ val: finalResult.target - finalResult.coord.top
4090
+ };
4091
+ maxVal = finalResult.size.height - this.__options.minIntersection;
4092
+ }
4093
+
4094
+ // cannot lie beyond the boundaries of the tooltip, minus the
4095
+ // arrow margin
4096
+ if (arrowCoord.val < this.__options.minIntersection) {
4097
+ arrowCoord.val = this.__options.minIntersection;
4098
+ }
4099
+ else if (arrowCoord.val > maxVal) {
4100
+ arrowCoord.val = maxVal;
4101
+ }
4102
+
4103
+ var originParentOffset;
4104
+
4105
+ // let's convert the window-relative coordinates into coordinates relative to the
4106
+ // future positioned parent that the tooltip will be appended to
4107
+ if (helper.geo.origin.fixedLineage) {
4108
+
4109
+ // same as windowOffset when the position is fixed
4110
+ originParentOffset = helper.geo.origin.windowOffset;
4111
+ }
4112
+ else {
4113
+
4114
+ // this assumes that the parent of the tooltip is located at
4115
+ // (0, 0) in the document, typically like when the parent is
4116
+ // <body>.
4117
+ // If we ever allow other types of parent, .tooltipster-ruler
4118
+ // will have to be appended to the parent to inherit css style
4119
+ // values that affect the display of the text and such.
4120
+ originParentOffset = {
4121
+ left: helper.geo.origin.windowOffset.left + helper.geo.window.scroll.left,
4122
+ top: helper.geo.origin.windowOffset.top + helper.geo.window.scroll.top
4123
+ };
4124
+ }
4125
+
4126
+ finalResult.coord = {
4127
+ left: originParentOffset.left + (finalResult.coord.left - helper.geo.origin.windowOffset.left),
4128
+ top: originParentOffset.top + (finalResult.coord.top - helper.geo.origin.windowOffset.top)
4129
+ };
4130
+
4131
+ // set position values on the original tooltip element
4132
+
4133
+ self.__sideChange(self.__instance._$tooltip, finalResult.side);
4134
+
4135
+ if (helper.geo.origin.fixedLineage) {
4136
+ self.__instance._$tooltip
4137
+ .css('position', 'fixed');
4138
+ }
4139
+ else {
4140
+ // CSS default
4141
+ self.__instance._$tooltip
4142
+ .css('position', '');
4143
+ }
4144
+
4145
+ self.__instance._$tooltip
4146
+ .css({
4147
+ left: finalResult.coord.left,
4148
+ top: finalResult.coord.top,
4149
+ // we need to set a size even if the tooltip is in its natural size
4150
+ // because when the tooltip is positioned beyond the width of the body
4151
+ // (which is by default the width of the window; it will happen when
4152
+ // you scroll the window horizontally to get to the origin), its text
4153
+ // content will otherwise break lines at each word to keep up with the
4154
+ // body overflow strategy.
4155
+ height: finalResult.size.height,
4156
+ width: finalResult.size.width
4157
+ })
4158
+ .find('.tooltipster-arrow')
4159
+ .css({
4160
+ 'left': '',
4161
+ 'top': ''
4162
+ })
4163
+ .css(arrowCoord.prop, arrowCoord.val);
4164
+
4165
+ // append the tooltip HTML element to its parent
4166
+ self.__instance._$tooltip.appendTo(self.__instance.option('parent'));
4167
+
4168
+ self.__instance._trigger({
4169
+ type: 'repositioned',
4170
+ event: event,
4171
+ position: finalResult
4172
+ });
4173
+ },
4174
+
4175
+ /**
4176
+ * Make whatever modifications are needed when the side is changed. This has
4177
+ * been made an independant method for easy inheritance in custom plugins based
4178
+ * on this default plugin.
4179
+ *
4180
+ * @param {object} $obj
4181
+ * @param {string} side
4182
+ * @private
4183
+ */
4184
+ __sideChange: function($obj, side) {
4185
+
4186
+ $obj
4187
+ .removeClass('tooltipster-bottom')
4188
+ .removeClass('tooltipster-left')
4189
+ .removeClass('tooltipster-right')
4190
+ .removeClass('tooltipster-top')
4191
+ .addClass('tooltipster-'+ side);
4192
+ },
4193
+
4194
+ /**
4195
+ * Returns the target that the tooltip should aim at for a given side.
4196
+ * The calculated value is a distance from the edge of the window
4197
+ * (left edge for top/bottom sides, top edge for left/right side). The
4198
+ * tooltip will be centered on that position and the arrow will be
4199
+ * positioned there (as much as possible).
4200
+ *
4201
+ * @param {object} helper
4202
+ * @return {integer}
4203
+ * @private
4204
+ */
4205
+ __targetFind: function(helper) {
4206
+
4207
+ var target = {},
4208
+ rects = this.__instance._$origin[0].getClientRects();
4209
+
4210
+ // these lines fix a Chrome bug (issue #491)
4211
+ if (rects.length > 1) {
4212
+ var opacity = this.__instance._$origin.css('opacity');
4213
+ if(opacity == 1) {
4214
+ this.__instance._$origin.css('opacity', 0.99);
4215
+ rects = this.__instance._$origin[0].getClientRects();
4216
+ this.__instance._$origin.css('opacity', 1);
4217
+ }
4218
+ }
4219
+
4220
+ // by default, the target will be the middle of the origin
4221
+ if (rects.length < 2) {
4222
+
4223
+ target.top = Math.floor(helper.geo.origin.windowOffset.left + (helper.geo.origin.size.width / 2));
4224
+ target.bottom = target.top;
4225
+
4226
+ target.left = Math.floor(helper.geo.origin.windowOffset.top + (helper.geo.origin.size.height / 2));
4227
+ target.right = target.left;
4228
+ }
4229
+ // if multiple client rects exist, the element may be text split
4230
+ // up into multiple lines and the middle of the origin may not be
4231
+ // best option anymore. We need to choose the best target client rect
4232
+ else {
4233
+
4234
+ // top: the first
4235
+ var targetRect = rects[0];
4236
+ target.top = Math.floor(targetRect.left + (targetRect.right - targetRect.left) / 2);
4237
+
4238
+ // right: the middle line, rounded down in case there is an even
4239
+ // number of lines (looks more centered => check out the
4240
+ // demo with 4 split lines)
4241
+ if (rects.length > 2) {
4242
+ targetRect = rects[Math.ceil(rects.length / 2) - 1];
4243
+ }
4244
+ else {
4245
+ targetRect = rects[0];
4246
+ }
4247
+ target.right = Math.floor(targetRect.top + (targetRect.bottom - targetRect.top) / 2);
4248
+
4249
+ // bottom: the last
4250
+ targetRect = rects[rects.length - 1];
4251
+ target.bottom = Math.floor(targetRect.left + (targetRect.right - targetRect.left) / 2);
4252
+
4253
+ // left: the middle line, rounded up
4254
+ if (rects.length > 2) {
4255
+ targetRect = rects[Math.ceil((rects.length + 1) / 2) - 1];
4256
+ }
4257
+ else {
4258
+ targetRect = rects[rects.length - 1];
4259
+ }
4260
+
4261
+ target.left = Math.floor(targetRect.top + (targetRect.bottom - targetRect.top) / 2);
4262
+ }
4263
+
4264
+ return target;
4265
+ }
4266
+ }
4267
+ });
4268
+
4269
+ /* a build task will add "return $;" here */
4270
+ return $;
4271
+
4272
+ }));
assets/js/tooltipster/tooltipster.bundle.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(t,i){"function"==typeof define&&define.amd?define(["jquery"],function(t){return i(t)}):"object"==typeof exports?module.exports=i(require("jquery")):i(jQuery)}(0,function(t){function i(t){this.$container,this.constraints=null,this.__$tooltip,this.__init(t)}function e(i,e){var o=!0;return t.each(i,function(t,n){if(e[t]===undefined||i[t]!==e[t])return o=!1,!1}),o}function o(i){var e=i.attr("id"),o=e?r.window.document.getElementById(e):null;return o?o===i[0]:t.contains(r.window.document.body,i[0])}var n={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},s="undefined"!=typeof window?window:null,r={hasTouchCapability:!(!s||!("ontouchstart"in s||s.DocumentTouch&&s.document instanceof s.DocumentTouch||s.navigator.maxTouchPoints)),hasTransitions:function(){if(!s)return!1;var t=(s.document.body||s.document.documentElement).style,i="transition",e=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof t[i])return!0;i=i.charAt(0).toUpperCase()+i.substr(1);for(var o=0;o<e.length;o++)if("string"==typeof t[e[o]+i])return!0;return!1}(),IE:!1,semVer:"4.2.8",window:s},_=function(){this.__$emitterPrivate=t({}),this.__$emitterPublic=t({}),this.__instancesLatestArr=[],this.__plugins={},this._env=r};_.prototype={__bridge:function(i,e,o){if(!e[o]){var s=function(){};s.prototype=i;var r=new s;r.__init&&r.__init(e),t.each(i,function(t,i){0!=t.indexOf("__")&&(e[t]?n.debug&&console.log("The "+t+" method of the "+o+" plugin conflicts with another plugin or native methods"):(e[t]=function(){return r[t].apply(r,Array.prototype.slice.apply(arguments))},e[t].bridged=r))}),e[o]=r}return this},__setWindow:function(t){return r.window=t,this},_getRuler:function(t){return new i(t)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(i){if("string"==typeof i){var e=i,o=null;return e.indexOf(".")>0?o=this.__plugins[e]:t.each(this.__plugins,function(t,i){if(i.name.substring(i.name.length-e.length-1)=="."+e)return o=i,!1}),o}if(i.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return this.__plugins[i.name]=i,i.core&&this.__bridge(i.core,this,i.name),this},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},instances:function(i){var e=[];return t(i||".tooltipstered").each(function(){var i=t(this),o=i.data("tooltipster-ns");o&&t.each(o,function(t,o){e.push(i.data(o))})}),e},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(i){return t((i?i+" ":"")+".tooltipstered").toArray()},setDefaults:function(i){return t.extend(n,i),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},t.tooltipster=new _,t.Tooltipster=function(i,e){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=t({}),this.__$emitterPublic=t({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(i,e)},t.Tooltipster.prototype={__init:function(i,e){var o=this;if(o._$origin=t(i),o.__options=t.extend(!0,{},n,e),o.__optionsFormat(),!r.IE||r.IE>=o.__options.IEmin){var s=null;if(o._$origin.data("tooltipster-initialTitle")===undefined&&((s=o._$origin.attr("title"))===undefined&&(s=null),o._$origin.data("tooltipster-initialTitle",s)),null!==o.__options.content)o.__contentSet(o.__options.content);else{var _,a=o._$origin.attr("data-tooltip-content");a&&(_=t(a)),_&&_[0]?o.__contentSet(_.first()):o.__contentSet(s)}o._$origin.removeAttr("title").addClass("tooltipstered"),o.__prepareOrigin(),o.__prepareGC(),t.each(o.__options.plugins,function(t,i){o._plug(i)}),r.hasTouchCapability&&t(r.window.document.body).on("touchmove."+o.__namespace+"-triggerOpen",function(t){o._touchRecordEvent(t)}),o._on("created",function(){o.__prepareTooltip()})._on("repositioned",function(t){o.__lastPosition=t.position})}else o.__options.disabled=!0},__contentInsert:function(){var t=this._$tooltip.find(".tooltipster-content"),i=this.__Content;return this._trigger({type:"format",content:this.__Content,format:function(t){i=t}}),this.__options.functionFormat&&(i=this.__options.functionFormat.call(this,this,{origin:this._$origin[0]},this.__Content)),"string"!=typeof i||this.__options.contentAsHTML?t.empty().append(i):t.text(i),this},__contentSet:function(i){return i instanceof t&&this.__options.contentCloning&&(i=i.clone(!0)),this.__Content=i,this._trigger({type:"updated",content:i}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var i=this._$origin,e=this._$origin.is("area");if(e){var o=this._$origin.parent().attr("name");i=t('img[usemap="#'+o+'"]')}var n=i[0].getBoundingClientRect(),s=t(r.window.document),_=t(r.window),a=i,l={available:{document:null,window:null},document:{size:{height:s.height(),width:s.width()}},window:{scroll:{left:r.window.scrollX||r.window.document.documentElement.scrollLeft,top:r.window.scrollY||r.window.document.documentElement.scrollTop},size:{height:_.height(),width:_.width()}},origin:{fixedLineage:!1,offset:{},size:{height:n.bottom-n.top,width:n.right-n.left},usemapImage:e?i[0]:null,windowOffset:{bottom:n.bottom,left:n.left,right:n.right,top:n.top}}};if(e){var p=this._$origin.attr("shape"),c=this._$origin.attr("coords");if(c&&(c=c.split(","),t.map(c,function(t,i){c[i]=parseInt(t)})),"default"!=p)switch(p){case"circle":var h=c[0],d=c[1],u=c[2],g=d-u,f=h-u;l.origin.size.height=2*u,l.origin.size.width=l.origin.size.height,l.origin.windowOffset.left+=f,l.origin.windowOffset.top+=g;break;case"rect":var m=c[0],w=c[1],v=c[2],y=c[3];l.origin.size.height=y-w,l.origin.size.width=v-m,l.origin.windowOffset.left+=m,l.origin.windowOffset.top+=w;break;case"poly":for(var b=0,$=0,C=0,O=0,T="even",z=0;z<c.length;z++){var E=c[z];"even"==T?(E>C&&(C=E,0===z&&(b=C)),E<b&&(b=E),T="odd"):(E>O&&(O=E,1==z&&($=O)),E<$&&($=E),T="even")}l.origin.size.height=O-$,l.origin.size.width=C-b,l.origin.windowOffset.left+=b,l.origin.windowOffset.top+=$}}for(this._trigger({type:"geometry",edit:function(t){l.origin.size.height=t.height,l.origin.windowOffset.left=t.left,l.origin.windowOffset.top=t.top,l.origin.size.width=t.width},geometry:{height:l.origin.size.height,left:l.origin.windowOffset.left,top:l.origin.windowOffset.top,width:l.origin.size.width}}),l.origin.windowOffset.right=l.origin.windowOffset.left+l.origin.size.width,l.origin.windowOffset.bottom=l.origin.windowOffset.top+l.origin.size.height,l.origin.offset.left=l.origin.windowOffset.left+l.window.scroll.left,l.origin.offset.top=l.origin.windowOffset.top+l.window.scroll.top,l.origin.offset.bottom=l.origin.offset.top+l.origin.size.height,l.origin.offset.right=l.origin.offset.left+l.origin.size.width,l.available.document={bottom:{height:l.document.size.height-l.origin.offset.bottom,width:l.document.size.width},left:{height:l.document.size.height,width:l.origin.offset.left},right:{height:l.document.size.height,width:l.document.size.width-l.origin.offset.right},top:{height:l.origin.offset.top,width:l.document.size.width}},l.available.window={bottom:{height:Math.max(l.window.size.height-Math.max(l.origin.windowOffset.bottom,0),0),width:l.window.size.width},left:{height:l.window.size.height,width:Math.max(l.origin.windowOffset.left,0)},right:{height:l.window.size.height,width:Math.max(l.window.size.width-Math.max(l.origin.windowOffset.right,0),0)},top:{height:Math.max(l.origin.windowOffset.top,0),width:l.window.size.width}};"html"!=a[0].tagName.toLowerCase();){if("fixed"==a.css("position")){l.origin.fixedLineage=!0;break}a=a.parent()}return l},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=t(r.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=t(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var i=this;return i.__options.selfDestruction?i.__garbageCollector=setInterval(function(){var e=(new Date).getTime();i.__touchEvents=t.grep(i.__touchEvents,function(t,i){return e-t.time>6e4}),o(i._$origin)||i.close(function(){i.destroy()})},2e4):clearInterval(i.__garbageCollector),i},__prepareOrigin:function(){var t=this;if(t._$origin.off("."+t.__namespace+"-triggerOpen"),r.hasTouchCapability&&t._$origin.on("touchstart."+t.__namespace+"-triggerOpen touchend."+t.__namespace+"-triggerOpen touchcancel."+t.__namespace+"-triggerOpen",function(i){t._touchRecordEvent(i)}),t.__options.triggerOpen.click||t.__options.triggerOpen.tap&&r.hasTouchCapability){var i="";t.__options.triggerOpen.click&&(i+="click."+t.__namespace+"-triggerOpen "),t.__options.triggerOpen.tap&&r.hasTouchCapability&&(i+="touchend."+t.__namespace+"-triggerOpen"),t._$origin.on(i,function(i){t._touchIsMeaningfulEvent(i)&&t._open(i)})}if(t.__options.triggerOpen.mouseenter||t.__options.triggerOpen.touchstart&&r.hasTouchCapability){i="";t.__options.triggerOpen.mouseenter&&(i+="mouseenter."+t.__namespace+"-triggerOpen "),t.__options.triggerOpen.touchstart&&r.hasTouchCapability&&(i+="touchstart."+t.__namespace+"-triggerOpen"),t._$origin.on(i,function(i){!t._touchIsTouchEvent(i)&&t._touchIsEmulatedEvent(i)||(t.__pointerIsOverOrigin=!0,t._openShortly(i))})}if(t.__options.triggerClose.mouseleave||t.__options.triggerClose.touchleave&&r.hasTouchCapability){i="";t.__options.triggerClose.mouseleave&&(i+="mouseleave."+t.__namespace+"-triggerOpen "),t.__options.triggerClose.touchleave&&r.hasTouchCapability&&(i+="touchend."+t.__namespace+"-triggerOpen touchcancel."+t.__namespace+"-triggerOpen"),t._$origin.on(i,function(i){t._touchIsMeaningfulEvent(i)&&(t.__pointerIsOverOrigin=!1)})}return t},__prepareTooltip:function(){var i=this,e=i.__options.interactive?"auto":"";return i._$tooltip.attr("id",i.__namespace).css({"pointer-events":e,zIndex:i.__options.zIndex}),t.each(i.__previousThemes,function(t,e){i._$tooltip.removeClass(e)}),t.each(i.__options.theme,function(t,e){i._$tooltip.addClass(e)}),i.__previousThemes=t.merge([],i.__options.theme),i},__scrollHandler:function(i){if(this.__options.triggerClose.scroll)this._close(i);else if(o(this._$origin)&&o(this._$tooltip)){var e=null;if(i.target===r.window.document)this.__Geometry.origin.fixedLineage||this.__options.repositionOnScroll&&this.reposition(i);else{e=this.__geometry();var n=!1;if("fixed"!=this._$origin.css("position")&&this.__$originParents.each(function(i,o){var s=t(o),r=s.css("overflow-x"),_=s.css("overflow-y");if("visible"!=r||"visible"!=_){var a=o.getBoundingClientRect();if("visible"!=r&&(e.origin.windowOffset.left<a.left||e.origin.windowOffset.right>a.right))return n=!0,!1;if("visible"!=_&&(e.origin.windowOffset.top<a.top||e.origin.windowOffset.bottom>a.bottom))return n=!0,!1}if("fixed"==s.css("position"))return!1}),n)this._$tooltip.css("visibility","hidden");else if(this._$tooltip.css("visibility","visible"),this.__options.repositionOnScroll)this.reposition(i);else{var s=e.origin.offset.left-this.__Geometry.origin.offset.left,_=e.origin.offset.top-this.__Geometry.origin.offset.top;this._$tooltip.css({left:this.__lastPosition.coord.left+s,top:this.__lastPosition.coord.top+_})}}this._trigger({type:"scroll",event:i,geo:e})}return this},__stateSet:function(t){return this.__state=t,this._trigger({type:"state",state:t}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,t.each(this.__timeouts.close,function(t,i){clearTimeout(i)}),this.__timeouts.close=[],this},__trackerStart:function(){var t=this,i=t._$tooltip.find(".tooltipster-content");return t.__options.trackTooltip&&(t.__contentBcr=i[0].getBoundingClientRect()),t.__tracker=setInterval(function(){if(o(t._$origin)&&o(t._$tooltip)){if(t.__options.trackOrigin){var n=t.__geometry(),s=!1;e(n.origin.size,t.__Geometry.origin.size)&&(t.__Geometry.origin.fixedLineage?e(n.origin.windowOffset,t.__Geometry.origin.windowOffset)&&(s=!0):e(n.origin.offset,t.__Geometry.origin.offset)&&(s=!0)),s||(t.__options.triggerClose.mouseleave?t._close():t.reposition())}if(t.__options.trackTooltip){var r=i[0].getBoundingClientRect();r.height===t.__contentBcr.height&&r.width===t.__contentBcr.width||(t.reposition(),t.__contentBcr=r)}}else t._close()},t.__options.trackerInterval),t},_close:function(i,e,o){var n=this,s=!0;if(n._trigger({type:"close",event:i,stop:function(){s=!1}}),s||o){e&&n.__callbacks.close.push(e),n.__callbacks.open=[],n.__timeoutsClear();var _=function(){t.each(n.__callbacks.close,function(t,e){e.call(n,n,{event:i,origin:n._$origin[0]})}),n.__callbacks.close=[]};if("closed"!=n.__state){var a=!0,l=(new Date).getTime()+n.__options.animationDuration[1];if("disappearing"==n.__state&&l>n.__closingTime&&n.__options.animationDuration[1]>0&&(a=!1),a){n.__closingTime=l,"disappearing"!=n.__state&&n.__stateSet("disappearing");var p=function(){clearInterval(n.__tracker),n._trigger({type:"closing",event:i}),n._$tooltip.off("."+n.__namespace+"-triggerClose").removeClass("tooltipster-dying"),t(r.window).off("."+n.__namespace+"-triggerClose"),n.__$originParents.each(function(i,e){t(e).off("scroll."+n.__namespace+"-triggerClose")}),n.__$originParents=null,t(r.window.document.body).off("."+n.__namespace+"-triggerClose"),n._$origin.off("."+n.__namespace+"-triggerClose"),n._off("dismissable"),n.__stateSet("closed"),n._trigger({type:"after",event:i}),n.__options.functionAfter&&n.__options.functionAfter.call(n,n,{event:i,origin:n._$origin[0]}),_()};r.hasTransitions?(n._$tooltip.css({"-moz-animation-duration":n.__options.animationDuration[1]+"ms","-ms-animation-duration":n.__options.animationDuration[1]+"ms","-o-animation-duration":n.__options.animationDuration[1]+"ms","-webkit-animation-duration":n.__options.animationDuration[1]+"ms","animation-duration":n.__options.animationDuration[1]+"ms","transition-duration":n.__options.animationDuration[1]+"ms"}),n._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),n.__options.animationDuration[1]>0&&n._$tooltip.delay(n.__options.animationDuration[1]),n._$tooltip.queue(p)):n._$tooltip.stop().fadeOut(n.__options.animationDuration[1],p)}}else _()}return n},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(i,e){var n=this;if(!n.__destroying&&o(n._$origin)&&n.__enabled){var s=!0;if("closed"==n.__state&&(n._trigger({type:"before",event:i,stop:function(){s=!1}}),s&&n.__options.functionBefore&&(s=n.__options.functionBefore.call(n,n,{event:i,origin:n._$origin[0]}))),!1!==s&&null!==n.__Content){e&&n.__callbacks.open.push(e),n.__callbacks.close=[],n.__timeoutsClear();var _,a=function(){"stable"!=n.__state&&n.__stateSet("stable"),t.each(n.__callbacks.open,function(t,i){i.call(n,n,{origin:n._$origin[0],tooltip:n._$tooltip[0]})}),n.__callbacks.open=[]};if("closed"!==n.__state)_=0,"disappearing"===n.__state?(n.__stateSet("appearing"),r.hasTransitions?(n._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),n.__options.animationDuration[0]>0&&n._$tooltip.delay(n.__options.animationDuration[0]),n._$tooltip.queue(a)):n._$tooltip.stop().fadeIn(a)):"stable"==n.__state&&a();else{if(n.__stateSet("appearing"),_=n.__options.animationDuration[0],n.__contentInsert(),n.reposition(i,!0),r.hasTransitions?(n._$tooltip.addClass("tooltipster-"+n.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":n.__options.animationDuration[0]+"ms","-ms-animation-duration":n.__options.animationDuration[0]+"ms","-o-animation-duration":n.__options.animationDuration[0]+"ms","-webkit-animation-duration":n.__options.animationDuration[0]+"ms","animation-duration":n.__options.animationDuration[0]+"ms","transition-duration":n.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=n.__state&&(n._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),n.__options.animationDuration[0]>0&&n._$tooltip.delay(n.__options.animationDuration[0]),n._$tooltip.queue(a))},0)):n._$tooltip.css("display","none").fadeIn(n.__options.animationDuration[0],a),n.__trackerStart(),t(r.window).on("resize."+n.__namespace+"-triggerClose",function(i){var e=t(document.activeElement);(e.is("input")||e.is("textarea"))&&t.contains(n._$tooltip[0],e[0])||n.reposition(i)}).on("scroll."+n.__namespace+"-triggerClose",function(t){n.__scrollHandler(t)}),n.__$originParents=n._$origin.parents(),n.__$originParents.each(function(i,e){t(e).on("scroll."+n.__namespace+"-triggerClose",function(t){n.__scrollHandler(t)})}),n.__options.triggerClose.mouseleave||n.__options.triggerClose.touchleave&&r.hasTouchCapability){n._on("dismissable",function(t){t.dismissable?t.delay?(h=setTimeout(function(){n._close(t.event)},t.delay),n.__timeouts.close.push(h)):n._close(t):clearTimeout(h)});var l=n._$origin,p="",c="",h=null;n.__options.interactive&&(l=l.add(n._$tooltip)),n.__options.triggerClose.mouseleave&&(p+="mouseenter."+n.__namespace+"-triggerClose ",c+="mouseleave."+n.__namespace+"-triggerClose "),n.__options.triggerClose.touchleave&&r.hasTouchCapability&&(p+="touchstart."+n.__namespace+"-triggerClose",c+="touchend."+n.__namespace+"-triggerClose touchcancel."+n.__namespace+"-triggerClose"),l.on(c,function(t){if(n._touchIsTouchEvent(t)||!n._touchIsEmulatedEvent(t)){var i="mouseleave"==t.type?n.__options.delay:n.__options.delayTouch;n._trigger({delay:i[1],dismissable:!0,event:t,type:"dismissable"})}}).on(p,function(t){!n._touchIsTouchEvent(t)&&n._touchIsEmulatedEvent(t)||n._trigger({dismissable:!1,event:t,type:"dismissable"})})}n.__options.triggerClose.originClick&&n._$origin.on("click."+n.__namespace+"-triggerClose",function(t){n._touchIsTouchEvent(t)||n._touchIsEmulatedEvent(t)||n._close(t)}),(n.__options.triggerClose.click||n.__options.triggerClose.tap&&r.hasTouchCapability)&&setTimeout(function(){if("closed"!=n.__state){var i="",e=t(r.window.document.body);n.__options.triggerClose.click&&(i+="click."+n.__namespace+"-triggerClose "),n.__options.triggerClose.tap&&r.hasTouchCapability&&(i+="touchend."+n.__namespace+"-triggerClose"),e.on(i,function(i){n._touchIsMeaningfulEvent(i)&&(n._touchRecordEvent(i),n.__options.interactive&&t.contains(n._$tooltip[0],i.target)||n._close(i))}),n.__options.triggerClose.tap&&r.hasTouchCapability&&e.on("touchstart."+n.__namespace+"-triggerClose",function(t){n._touchRecordEvent(t)})}},0),n._trigger("ready"),n.__options.functionReady&&n.__options.functionReady.call(n,n,{origin:n._$origin[0],tooltip:n._$tooltip[0]})}if(n.__options.timer>0){h=setTimeout(function(){n._close()},n.__options.timer+_);n.__timeouts.close.push(h)}}}return n},_openShortly:function(t){var i=this,e=!0;if("stable"!=i.__state&&"appearing"!=i.__state&&!i.__timeouts.open&&(i._trigger({type:"start",event:t,stop:function(){e=!1}}),e)){var o=0==t.type.indexOf("touch")?i.__options.delayTouch:i.__options.delay;o[0]?i.__timeouts.open=setTimeout(function(){i.__timeouts.open=null,i.__pointerIsOverOrigin&&i._touchIsMeaningfulEvent(t)?(i._trigger("startend"),i._open(t)):i._trigger("startcancel")},o[0]):(i._trigger("startend"),i._open(t))}return i},_optionsExtract:function(i,e){var o=this,n=t.extend(!0,{},e),s=o.__options[i];return s||(s={},t.each(e,function(t,i){var e=o.__options[t];e!==undefined&&(s[t]=e)})),t.each(n,function(i,e){s[i]!==undefined&&("object"!=typeof e||e instanceof Array||null==e||"object"!=typeof s[i]||s[i]instanceof Array||null==s[i]?n[i]=s[i]:t.extend(n[i],s[i]))}),n},_plug:function(i){var e=t.tooltipster._plugin(i);if(!e)throw new Error('The "'+i+'" plugin is not defined');return e.instance&&t.tooltipster.__bridge(e.instance,this,e.name),this},_touchIsEmulatedEvent:function(t){for(var i=!1,e=(new Date).getTime(),o=this.__touchEvents.length-1;o>=0;o--){var n=this.__touchEvents[o];if(!(e-n.time<500))break;n.target===t.target&&(i=!0)}return i},_touchIsMeaningfulEvent:function(t){return this._touchIsTouchEvent(t)&&!this._touchSwiped(t.target)||!this._touchIsTouchEvent(t)&&!this._touchIsEmulatedEvent(t)},_touchIsTouchEvent:function(t){return 0==t.type.indexOf("touch")},_touchRecordEvent:function(t){return this._touchIsTouchEvent(t)&&(t.time=(new Date).getTime(),this.__touchEvents.push(t)),this},_touchSwiped:function(t){for(var i=!1,e=this.__touchEvents.length-1;e>=0;e--){var o=this.__touchEvents[e];if("touchmove"==o.type){i=!0;break}if("touchstart"==o.type&&t===o.target)break}return i},_trigger:function(){var i=Array.prototype.slice.apply(arguments);return"string"==typeof i[0]&&(i[0]={type:i[0]}),i[0].instance=this,i[0].origin=this._$origin?this._$origin[0]:null,i[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,i),t.tooltipster._trigger.apply(t.tooltipster,i),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,i),this},_unplug:function(i){var e=this;if(e[i]){var o=t.tooltipster._plugin(i);o.instance&&t.each(o.instance,function(t,o){e[t]&&e[t].bridged===e[i]&&delete e[t]}),e[i].__destroy&&e[i].__destroy(),delete e[i]}return e},close:function(t){return this.__destroyed?this.__destroyError():this._close(null,t),this},content:function(t){var i=this;if(t===undefined)return i.__Content;if(i.__destroyed)i.__destroyError();else if(i.__contentSet(t),null!==i.__Content){if("closed"!==i.__state&&(i.__contentInsert(),i.reposition(),i.__options.updateAnimation))if(r.hasTransitions){var e=i.__options.updateAnimation;i._$tooltip.addClass("tooltipster-update-"+e),setTimeout(function(){"closed"!=i.__state&&i._$tooltip.removeClass("tooltipster-update-"+e)},1e3)}else i._$tooltip.fadeTo(200,.5,function(){"closed"!=i.__state&&i._$tooltip.fadeTo(200,1)})}else i._close();return i},destroy:function(){var i=this;if(i.__destroyed)i.__destroyError();else{"closed"!=i.__state?i.option("animationDuration",0)._close(null,null,!0):i.__timeoutsClear(),i._trigger("destroy"),i.__destroyed=!0,i._$origin.removeData(i.__namespace).off("."+i.__namespace+"-triggerOpen"),t(r.window.document.body).off("."+i.__namespace+"-triggerOpen");var e=i._$origin.data("tooltipster-ns");if(e)if(1===e.length){var o=null;"previous"==i.__options.restoration?o=i._$origin.data("tooltipster-initialTitle"):"current"==i.__options.restoration&&(o="string"==typeof i.__Content?i.__Content:t("<div></div>").append(i.__Content).html()),o&&i._$origin.attr("title",o),i._$origin.removeClass("tooltipstered"),i._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else e=t.grep(e,function(t,e){return t!==i.__namespace}),i._$origin.data("tooltipster-ns",e);i._trigger("destroyed"),i._off(),i.off(),i.__Content=null,i.__$emitterPrivate=null,i.__$emitterPublic=null,i.__options.parent=null,i._$origin=null,i._$tooltip=null,t.tooltipster.__instancesLatestArr=t.grep(t.tooltipster.__instancesLatestArr,function(t,e){return i!==t}),clearInterval(i.__garbageCollector)}return i},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){if(!this.__destroyed)return this._$origin[0];this.__destroyError()},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(t){return this.close(t)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(t){return this.__destroyed?this.__destroyError():this._open(null,t),this},option:function(i,e){return e===undefined?this.__options[i]:(this.__destroyed?this.__destroyError():(this.__options[i]=e,this.__optionsFormat(),t.inArray(i,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===i&&this.__prepareGC()),this)},reposition:function(t,i){return this.__destroyed?this.__destroyError():"closed"!=this.__state&&o(this._$origin)&&(i||o(this._$tooltip))&&(i||this._$tooltip.detach(),this.__Geometry=this.__geometry(),this._trigger({type:"reposition",event:t,helper:{geo:this.__Geometry}})),this},show:function(t){return this.open(t)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},t.fn.tooltipster=function(){var i=Array.prototype.slice.apply(arguments),e="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof i[0]){var o="#*$~&";return this.each(function(){var n=t(this).data("tooltipster-ns"),s=n?t(this).data(n[0]):null;if(!s)throw new Error("You called Tooltipster's \""+i[0]+'" method on an uninitialized element');if("function"!=typeof s[i[0]])throw new Error('Unknown method "'+i[0]+'"');this.length>1&&"content"==i[0]&&(i[1]instanceof t||"object"==typeof i[1]&&null!=i[1]&&i[1].tagName)&&!s.__options.contentCloning&&s.__options.debug&&console.log(e);var r=s[i[0]](i[1],i[2]);if(r!==s||"instance"===i[0])return o=r,!1}),"#*$~&"!==o?o:this}t.tooltipster.__instancesLatestArr=[];var s=i[0]&&i[0].multiple!==undefined,r=s&&i[0].multiple||!s&&n.multiple,_=i[0]&&i[0].content!==undefined,a=_&&i[0].content||!_&&n.content,l=i[0]&&i[0].contentCloning!==undefined,p=l&&i[0].contentCloning||!l&&n.contentCloning,c=i[0]&&i[0].debug!==undefined,h=c&&i[0].debug||!c&&n.debug;return this.length>1&&(a instanceof t||"object"==typeof a&&null!=a&&a.tagName)&&!p&&h&&console.log(e),this.each(function(){var e=!1,o=t(this),n=o.data("tooltipster-ns"),s=null;n?r?e=!0:h&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):e=!0,e&&(s=new t.Tooltipster(this,i[0]),n||(n=[]),n.push(s.__namespace),o.data("tooltipster-ns",n),o.data(s.__namespace,s),s.__options.functionInit&&s.__options.functionInit.call(s,s,{origin:this}),s._trigger("init")),t.tooltipster.__instancesLatestArr.push(s)}),this},i.prototype={__init:function(i){this.__$tooltip=i,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=t('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(r.window.document.body)},__forceRedraw:function(){var t=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(t)},constrain:function(t,i){return this.constraints={width:t,height:i},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:t}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var t=this.__$tooltip[0].getBoundingClientRect(),i={size:{height:t.height||t.bottom-t.top,width:t.width||t.right-t.left}};if(this.constraints){var e=this.__$tooltip.find(".tooltipster-content"),o=this.__$tooltip.outerHeight(),n=e[0].getBoundingClientRect(),s=o<=this.constraints.height,_=t.width<=this.constraints.width&&n.width>=e[0].scrollWidth-1;i.fits=s&&_}return r.IE&&r.IE<=11&&i.size.width!==r.window.document.documentElement.clientWidth&&(i.size.width=Math.ceil(i.size.width)+1),i}};var a=navigator.userAgent.toLowerCase();-1!=a.indexOf("msie")?r.IE=parseInt(a.split("msie")[1]):-1!==a.toLowerCase().indexOf("trident")&&-1!==a.indexOf(" rv:11")?r.IE=11:-1!=a.toLowerCase().indexOf("edge/")&&(r.IE=parseInt(a.toLowerCase().split("edge/")[1]));var l="tooltipster.sideTip";return t.tooltipster._plugin({name:l,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(t){var i=this;i.__instance=t,i.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),i.__previousState="closed",i.__options,i.__optionsFormat(),i.__instance._on("state."+i.__namespace,function(t){"closed"==t.state?i.__close():"appearing"==t.state&&"closed"==i.__previousState&&i.__create(),i.__previousState=t.state}),i.__instance._on("options."+i.__namespace,function(){i.__optionsFormat()}),i.__instance._on("reposition."+i.__namespace,function(t){i.__reposition(t.event,t.helper)})},__close:function(){this.__instance.content()instanceof t&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var i=t('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||i.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&i.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&i.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=i,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){if(this.__options=this.__instance._optionsExtract(l,this.__defaults()),this.__options.position&&(this.__options.side=this.__options.position),"object"!=typeof this.__options.distance&&(this.__options.distance=[this.__options.distance]),this.__options.distance.length<4&&(this.__options.distance[1]===undefined&&(this.__options.distance[1]=this.__options.distance[0]),this.__options.distance[2]===undefined&&(this.__options.distance[2]=this.__options.distance[0]),this.__options.distance[3]===undefined&&(this.__options.distance[3]=this.__options.distance[1])),this.__options.distance={top:this.__options.distance[0],right:this.__options.distance[1],bottom:this.__options.distance[2],left:this.__options.distance[3]},"string"==typeof this.__options.side){this.__options.side=[this.__options.side,{top:"bottom",right:"left",bottom:"top",left:"right"}[this.__options.side]],"left"==this.__options.side[0]||"right"==this.__options.side[0]?this.__options.side.push("top","bottom"):this.__options.side.push("right","left")}6===t.tooltipster._env.IE&&!0!==this.__options.arrow&&(this.__options.arrow=!1)},__reposition:function(i,e){var o,n=this,s=n.__targetFind(e),r=[];n.__instance._$tooltip.detach();var _=n.__instance._$tooltip.clone(),a=t.tooltipster._getRuler(_),l=!1,p=n.__instance.option("animation");switch(p&&_.removeClass("tooltipster-"+p),t.each(["window","document"],function(o,p){var c=null;if(n.__instance._trigger({container:p,helper:e,satisfied:l,takeTest:function(t){c=t},results:r,type:"positionTest"}),1==c||0!=c&&0==l&&("window"!=p||n.__options.viewportAware))for(o=0;o<n.__options.side.length;o++){var h={horizontal:0,vertical:0},d=n.__options.side[o];"top"==d||"bottom"==d?h.vertical=n.__options.distance[d]:h.horizontal=n.__options.distance[d],n.__sideChange(_,d),t.each(["natural","constrained"],function(t,o){if(c=null,n.__instance._trigger({container:p,event:i,helper:e,mode:o,results:r,satisfied:l,side:d,takeTest:function(t){c=t},type:"positionTest"}),1==c||0!=c&&0==l){var _={container:p,distance:h,fits:null,mode:o,outerSize:null,side:d,size:null,target:s[d],whole:null},u=("natural"==o?a.free():a.constrain(e.geo.available[p][d].width-h.horizontal,e.geo.available[p][d].height-h.vertical)).measure();if(_.size=u.size,_.outerSize={height:u.size.height+h.vertical,width:u.size.width+h.horizontal},"natural"==o?e.geo.available[p][d].width>=_.outerSize.width&&e.geo.available[p][d].height>=_.outerSize.height?_.fits=!0:_.fits=!1:_.fits=u.fits,"window"==p&&(_.fits?_.whole="top"==d||"bottom"==d?e.geo.origin.windowOffset.right>=n.__options.minIntersection&&e.geo.window.size.width-e.geo.origin.windowOffset.left>=n.__options.minIntersection:e.geo.origin.windowOffset.bottom>=n.__options.minIntersection&&e.geo.window.size.height-e.geo.origin.windowOffset.top>=n.__options.minIntersection:_.whole=!1),r.push(_),_.whole)l=!0;else if("natural"==_.mode&&(_.fits||_.size.width<=e.geo.available[p][d].width))return!1}})}}),n.__instance._trigger({edit:function(t){r=t},event:i,helper:e,results:r,type:"positionTested"}),r.sort(function(t,i){if(t.whole&&!i.whole)return-1;if(!t.whole&&i.whole)return 1;if(t.whole&&i.whole){return(e=n.__options.side.indexOf(t.side))<(o=n.__options.side.indexOf(i.side))?-1:e>o?1:"natural"==t.mode?-1:1}if(t.fits&&!i.fits)return-1;if(!t.fits&&i.fits)return 1;if(t.fits&&i.fits){var e,o;return(e=n.__options.side.indexOf(t.side))<(o=n.__options.side.indexOf(i.side))?-1:e>o?1:"natural"==t.mode?-1:1}return"document"==t.container&&"bottom"==t.side&&"natural"==t.mode?-1:1}),o=r[0],o.coord={},o.side){case"left":case"right":o.coord.top=Math.floor(o.target-o.size.height/2);break;case"bottom":case"top":o.coord.left=Math.floor(o.target-o.size.width/2)}switch(o.side){case"left":o.coord.left=e.geo.origin.windowOffset.left-o.outerSize.width;break;case"right":o.coord.left=e.geo.origin.windowOffset.right+o.distance.horizontal;break;case"top":o.coord.top=e.geo.origin.windowOffset.top-o.outerSize.height;break;case"bottom":o.coord.top=e.geo.origin.windowOffset.bottom+o.distance.vertical}"window"==o.container?"top"==o.side||"bottom"==o.side?o.coord.left<0?e.geo.origin.windowOffset.right-this.__options.minIntersection>=0?o.coord.left=0:o.coord.left=e.geo.origin.windowOffset.right-this.__options.minIntersection-1:o.coord.left>e.geo.window.size.width-o.size.width&&(e.geo.origin.windowOffset.left+this.__options.minIntersection<=e.geo.window.size.width?o.coord.left=e.geo.window.size.width-o.size.width:o.coord.left=e.geo.origin.windowOffset.left+this.__options.minIntersection+1-o.size.width):o.coord.top<0?e.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?o.coord.top=0:o.coord.top=e.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:o.coord.top>e.geo.window.size.height-o.size.height&&(e.geo.origin.windowOffset.top+this.__options.minIntersection<=e.geo.window.size.height?o.coord.top=e.geo.window.size.height-o.size.height:o.coord.top=e.geo.origin.windowOffset.top+this.__options.minIntersection+1-o.size.height):(o.coord.left>e.geo.window.size.width-o.size.width&&(o.coord.left=e.geo.window.size.width-o.size.width),o.coord.left<0&&(o.coord.left=0)),n.__sideChange(_,o.side),e.tooltipClone=_[0],e.tooltipParent=n.__instance.option("parent").parent[0],e.mode=o.mode,e.whole=o.whole,e.origin=n.__instance._$origin[0],e.tooltip=n.__instance._$tooltip[0],delete o.container,delete o.fits,delete o.mode,delete o.outerSize,delete o.whole,o.distance=o.distance.horizontal||o.distance.vertical;var c=t.extend(!0,{},o);if(n.__instance._trigger({edit:function(t){o=t},event:i,helper:e,position:c,type:"position"}),n.__options.functionPosition){var h=n.__options.functionPosition.call(n,n.__instance,e,c);h&&(o=h)}a.destroy();var d,u;"top"==o.side||"bottom"==o.side?(d={prop:"left",val:o.target-o.coord.left},u=o.size.width-this.__options.minIntersection):(d={prop:"top",val:o.target-o.coord.top},u=o.size.height-this.__options.minIntersection),d.val<this.__options.minIntersection?d.val=this.__options.minIntersection:d.val>u&&(d.val=u);var g;g=e.geo.origin.fixedLineage?e.geo.origin.windowOffset:{left:e.geo.origin.windowOffset.left+e.geo.window.scroll.left,top:e.geo.origin.windowOffset.top+e.geo.window.scroll.top},o.coord={left:g.left+(o.coord.left-e.geo.origin.windowOffset.left),top:g.top+(o.coord.top-e.geo.origin.windowOffset.top)},n.__sideChange(n.__instance._$tooltip,o.side),e.geo.origin.fixedLineage?n.__instance._$tooltip.css("position","fixed"):n.__instance._$tooltip.css("position",""),n.__instance._$tooltip.css({left:o.coord.left,top:o.coord.top,height:o.size.height,width:o.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(d.prop,d.val),n.__instance._$tooltip.appendTo(n.__instance.option("parent")),n.__instance._trigger({type:"repositioned",event:i,position:o})},__sideChange:function(t,i){t.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+i)},__targetFind:function(t){var i={},e=this.__instance._$origin[0].getClientRects();if(e.length>1){1==this.__instance._$origin.css("opacity")&&(this.__instance._$origin.css("opacity",.99),e=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(e.length<2)i.top=Math.floor(t.geo.origin.windowOffset.left+t.geo.origin.size.width/2),i.bottom=i.top,i.left=Math.floor(t.geo.origin.windowOffset.top+t.geo.origin.size.height/2),i.right=i.left;else{var o=e[0];i.top=Math.floor(o.left+(o.right-o.left)/2),o=e.length>2?e[Math.ceil(e.length/2)-1]:e[0],i.right=Math.floor(o.top+(o.bottom-o.top)/2),o=e[e.length-1],i.bottom=Math.floor(o.left+(o.right-o.left)/2),o=e.length>2?e[Math.ceil((e.length+1)/2)-1]:e[e.length-1],i.left=Math.floor(o.top+(o.bottom-o.top)/2)}return i}}}),t});
includes/RestApi/class-ur-rest-api.php CHANGED
@@ -204,8 +204,8 @@ class UR_REST_API {
204
  'options' => ur_login_option(),
205
  ),
206
  array(
207
- 'title' => __( 'Prevent dashboard access', 'user-registration' ),
208
- 'desc' => __( 'This option lets you limit which roles you are willing to prevent dashboard access.', 'user-registration' ),
209
  'id' => 'user_registration_general_setting_disabled_user_roles',
210
  'type' => 'multiselect',
211
  'default' => array( array_search( 'subscriber', array_keys( $all_roles_except_admin ) ) => 'subscriber' ),
204
  'options' => ur_login_option(),
205
  ),
206
  array(
207
+ 'title' => __( 'Prevent WP Dashboard Access', 'user-registration' ),
208
+ 'desc' => __( 'Selected user roles will not be able to view and access the WP Dashboard area.', 'user-registration' ),
209
  'id' => 'user_registration_general_setting_disabled_user_roles',
210
  'type' => 'multiselect',
211
  'default' => array( array_search( 'subscriber', array_keys( $all_roles_except_admin ) ) => 'subscriber' ),
includes/abstracts/abstract-ur-form-field.php CHANGED
@@ -215,7 +215,9 @@ abstract class UR_Form_Field {
215
  }
216
 
217
  if ( isset( $data['advance_setting']->date_localization ) ) {
218
- wp_enqueue_script( 'flatpickr-localization_' . $data['advance_setting']->date_localization, 'https://npmcdn.com/flatpickr/dist/l10n/' . $data['advance_setting']->date_localization . '.js', array(), '4.6.13' );
 
 
219
  $form_data['custom_attributes']['data-locale'] = $data['advance_setting']->date_localization;
220
  }
221
 
215
  }
216
 
217
  if ( isset( $data['advance_setting']->date_localization ) ) {
218
+ if ( wp_script_is( 'flatpickr' ) && 'en' !== $data['advance_setting']->date_localization ) {
219
+ wp_enqueue_script( 'flatpickr-localization_' . $data['advance_setting']->date_localization, UR()->plugin_url() . '/assets/js/flatpickr/dist/I10n/' . $data['advance_setting']->date_localization . '.js', array(), UR_VERSION, true );
220
+ }
221
  $form_data['custom_attributes']['data-locale'] = $data['advance_setting']->date_localization;
222
  }
223
 
includes/admin/class-ur-admin-assets.php CHANGED
@@ -53,6 +53,9 @@ class UR_Admin_Assets {
53
 
54
  wp_register_style( 'jquery-confirm-style', UR()->plugin_url() . '/assets/css/jquery-confirm/jquery-confirm.css', array(), $jquery_version );
55
 
 
 
 
56
  // Add RTL support for admin styles.
57
  wp_style_add_data( 'user-registration-menu', 'rtl', 'replace' );
58
  wp_style_add_data( 'user-registration-admin', 'rtl', 'replace' );
@@ -73,6 +76,8 @@ class UR_Admin_Assets {
73
  wp_enqueue_style( 'perfect-scrollbar' );
74
  wp_enqueue_style( 'sweetalert2' );
75
  wp_enqueue_style( 'jquery-confirm-style' );
 
 
76
  }
77
  // Enqueue flatpickr on user profile screen.
78
  if ( 'user-edit' === $screen_id || 'profile' === $screen_id || 'user-registration_page_add-new-registration' === $screen_id ) {
@@ -103,7 +108,6 @@ class UR_Admin_Assets {
103
  'selectWoo',
104
  'wp-color-picker',
105
  'jquery-blockui',
106
- 'jquery-tiptip',
107
  'jquery-ui-sortable',
108
  'jquery-ui-widget',
109
  'jquery-ui-core',
@@ -114,6 +118,7 @@ class UR_Admin_Assets {
114
  'ur-enhanced-select',
115
  'perfect-scrollbar',
116
  'sweetalert2',
 
117
  'user-registration-scroll-ui-js',
118
  ),
119
  UR_VERSION,
@@ -128,7 +133,6 @@ class UR_Admin_Assets {
128
  'selectWoo',
129
  'wp-color-picker',
130
  'jquery-blockui',
131
- 'jquery-tiptip',
132
  'jquery-ui-sortable',
133
  'jquery-ui-widget',
134
  'jquery-ui-core',
@@ -139,13 +143,14 @@ class UR_Admin_Assets {
139
  'ur-enhanced-select',
140
  'perfect-scrollbar',
141
  'sweetalert2',
 
142
  'user-registration-scroll-ui-js',
143
  ),
144
  UR_VERSION,
145
  false
146
  );
147
  wp_register_script( 'jquery-blockui', UR()->plugin_url() . '/assets/js/jquery-blockui/jquery.blockUI' . $suffix . '.js', array( 'jquery' ), '2.70', true );
148
- wp_register_script( 'jquery-tiptip', UR()->plugin_url() . '/assets/js/jquery-tiptip/jquery.tipTip' . $suffix . '.js', array( 'jquery' ), UR_VERSION, true );
149
  wp_register_script( 'jquery-confirm', UR()->plugin_url() . '/assets/js/jquery-confirm/jquery-confirm' . $suffix . '.js', array( 'jquery' ), '2.70', true );
150
  wp_register_script(
151
  'ur-backbone-modal',
53
 
54
  wp_register_style( 'jquery-confirm-style', UR()->plugin_url() . '/assets/css/jquery-confirm/jquery-confirm.css', array(), $jquery_version );
55
 
56
+ wp_register_style( 'tooltipster', UR()->plugin_url() . '/assets/css/tooltipster/tooltipster.bundle.min.css', array(), '4.6.2' );
57
+ wp_register_style( 'tooltipster-borderless-theme', UR()->plugin_url() . '/assets/css/tooltipster/tooltipster-sideTip-borderless.min.css', array(), '4.6.2' );
58
+
59
  // Add RTL support for admin styles.
60
  wp_style_add_data( 'user-registration-menu', 'rtl', 'replace' );
61
  wp_style_add_data( 'user-registration-admin', 'rtl', 'replace' );
76
  wp_enqueue_style( 'perfect-scrollbar' );
77
  wp_enqueue_style( 'sweetalert2' );
78
  wp_enqueue_style( 'jquery-confirm-style' );
79
+ wp_enqueue_style( 'tooltipster' );
80
+ wp_enqueue_style( 'tooltipster-borderless-theme' );
81
  }
82
  // Enqueue flatpickr on user profile screen.
83
  if ( 'user-edit' === $screen_id || 'profile' === $screen_id || 'user-registration_page_add-new-registration' === $screen_id ) {
108
  'selectWoo',
109
  'wp-color-picker',
110
  'jquery-blockui',
 
111
  'jquery-ui-sortable',
112
  'jquery-ui-widget',
113
  'jquery-ui-core',
118
  'ur-enhanced-select',
119
  'perfect-scrollbar',
120
  'sweetalert2',
121
+ 'tooltipster',
122
  'user-registration-scroll-ui-js',
123
  ),
124
  UR_VERSION,
133
  'selectWoo',
134
  'wp-color-picker',
135
  'jquery-blockui',
 
136
  'jquery-ui-sortable',
137
  'jquery-ui-widget',
138
  'jquery-ui-core',
143
  'ur-enhanced-select',
144
  'perfect-scrollbar',
145
  'sweetalert2',
146
+ 'tooltipster',
147
  'user-registration-scroll-ui-js',
148
  ),
149
  UR_VERSION,
150
  false
151
  );
152
  wp_register_script( 'jquery-blockui', UR()->plugin_url() . '/assets/js/jquery-blockui/jquery.blockUI' . $suffix . '.js', array( 'jquery' ), '2.70', true );
153
+ wp_register_script( 'tooltipster', UR()->plugin_url() . '/assets/js/tooltipster/tooltipster.bundle' . $suffix . '.js', array( 'jquery' ), UR_VERSION, true );
154
  wp_register_script( 'jquery-confirm', UR()->plugin_url() . '/assets/js/jquery-confirm/jquery-confirm' . $suffix . '.js', array( 'jquery' ), '2.70', true );
155
  wp_register_script(
156
  'ur-backbone-modal',
includes/class-ur-ajax.php CHANGED
@@ -437,7 +437,7 @@ class UR_AJAX {
437
  $upload_path = $upload_path . '/';
438
  $file_ext = strtolower( pathinfo( $upload['name'], PATHINFO_EXTENSION ) );
439
 
440
- $file_name = user_registration_incremental_file_name( $upload_path, $upload );
441
 
442
  $file_path = $upload_path . sanitize_file_name( $file_name );
443
 
437
  $upload_path = $upload_path . '/';
438
  $file_ext = strtolower( pathinfo( $upload['name'], PATHINFO_EXTENSION ) );
439
 
440
+ $file_name = wp_unique_filename( $upload_path, $upload['name'] );
441
 
442
  $file_path = $upload_path . sanitize_file_name( $file_name );
443
 
includes/class-ur-emailer.php CHANGED
@@ -263,6 +263,7 @@ class UR_Emailer {
263
  $user_status = get_user_meta( $user_id, 'ur_admin_approval_after_email_confirmation', true );
264
  }
265
  $values = array(
 
266
  'username' => $username,
267
  'email' => $email,
268
  'all_fields' => $data_html,
@@ -578,6 +579,7 @@ class UR_Emailer {
578
  */
579
  public static function parse_smart_tags( $content = '', $values = array(), $name_value = array() ) {
580
  $smart_tags = array(
 
581
  '{{username}}',
582
  '{{email}}',
583
  '{{email_token}}',
@@ -591,7 +593,7 @@ class UR_Emailer {
591
 
592
  $smart_tags = apply_filters( 'user_registration_smart_tags', $smart_tags );
593
 
594
- $ur_account_page_exists = ur_get_page_id( 'myaccount' ) > 0;
595
  $ur_login_or_account_page = ur_get_page_permalink( 'myaccount' );
596
 
597
  if ( ! $ur_account_page_exists ) {
@@ -603,6 +605,7 @@ class UR_Emailer {
603
 
604
  $default_values = array(
605
  'username' => '',
 
606
  'email' => '',
607
  'email_token' => '',
608
  'approval_token' => '',
@@ -631,6 +634,7 @@ class UR_Emailer {
631
  if ( is_array( $name_value ) && ! empty( $name_value ) ) {
632
  $user_data = array_merge( $user_data, $name_value );
633
  }
 
634
  $values = array_merge( $values, $user_data );
635
  array_walk(
636
  $values,
@@ -652,7 +656,8 @@ class UR_Emailer {
652
  }
653
 
654
  foreach ( $values as $key => $value ) {
655
- $content = str_replace( '{{' . $key . '}}', $value, $content );
 
656
  }
657
 
658
  return $content;
263
  $user_status = get_user_meta( $user_id, 'ur_admin_approval_after_email_confirmation', true );
264
  }
265
  $values = array(
266
+ 'user_id' => $user_id,
267
  'username' => $username,
268
  'email' => $email,
269
  'all_fields' => $data_html,
579
  */
580
  public static function parse_smart_tags( $content = '', $values = array(), $name_value = array() ) {
581
  $smart_tags = array(
582
+ '{{user_id}}',
583
  '{{username}}',
584
  '{{email}}',
585
  '{{email_token}}',
593
 
594
  $smart_tags = apply_filters( 'user_registration_smart_tags', $smart_tags );
595
 
596
+ $ur_account_page_exists = ur_get_page_id( 'myaccount' ) > 0;
597
  $ur_login_or_account_page = ur_get_page_permalink( 'myaccount' );
598
 
599
  if ( ! $ur_account_page_exists ) {
605
 
606
  $default_values = array(
607
  'username' => '',
608
+ 'user_id' => get_current_user_id(),
609
  'email' => '',
610
  'email_token' => '',
611
  'approval_token' => '',
634
  if ( is_array( $name_value ) && ! empty( $name_value ) ) {
635
  $user_data = array_merge( $user_data, $name_value );
636
  }
637
+
638
  $values = array_merge( $values, $user_data );
639
  array_walk(
640
  $values,
656
  }
657
 
658
  foreach ( $values as $key => $value ) {
659
+ $value = ur_format_field_values( $key, $value );
660
+ $content = str_replace( '{{' . $key . '}}', $value, $content );
661
  }
662
 
663
  return $content;
includes/class-ur-form-handler.php CHANGED
@@ -104,7 +104,7 @@ class UR_Form_Handler {
104
  $upload_path = $upload_path . '/';
105
  $file_ext = strtolower( pathinfo( $upload['name'], PATHINFO_EXTENSION ) );
106
 
107
- $file_name = user_registration_incremental_file_name( $upload_path, $upload );
108
 
109
  $file_path = $upload_path . sanitize_file_name( $file_name );
110
 
104
  $upload_path = $upload_path . '/';
105
  $file_ext = strtolower( pathinfo( $upload['name'], PATHINFO_EXTENSION ) );
106
 
107
+ $file_name = wp_unique_filename( $upload_path, $upload['name'] );
108
 
109
  $file_path = $upload_path . sanitize_file_name( $file_name );
110
 
includes/class-ur-frontend-scripts.php CHANGED
@@ -243,10 +243,10 @@ class UR_Frontend_Scripts {
243
  'deps' => array( 'jquery' ),
244
  'version' => UR_VERSION,
245
  ),
246
- 'jquery-tiptip' => array(
247
- 'src' => self::get_asset_url( 'assets/js/jquery-tiptip/jquery.tipTip' . $suffix . '.js' ),
248
  'deps' => array( 'jquery' ),
249
- 'version' => '1.3.0',
250
  ),
251
  'selectWoo' => array(
252
  'src' => self::get_asset_url( 'assets/js/selectWoo/selectWoo.full' . $suffix . '.js' ),
243
  'deps' => array( 'jquery' ),
244
  'version' => UR_VERSION,
245
  ),
246
+ 'tooltipster' => array(
247
+ 'src' => self::get_asset_url( 'assets/js/tooltipster/tooltipster.bundle' . $suffix . '.js' ),
248
  'deps' => array( 'jquery' ),
249
+ 'version' => '4.2.8',
250
  ),
251
  'selectWoo' => array(
252
  'src' => self::get_asset_url( 'assets/js/selectWoo/selectWoo.full' . $suffix . '.js' ),
includes/class-ur-install.php CHANGED
@@ -342,17 +342,19 @@ class UR_Install {
342
 
343
  $settings = UR_Admin_Settings::get_settings_pages();
344
 
345
- foreach ( $settings as $section ) {
346
- if ( ! method_exists( $section, 'get_settings' ) ) {
347
- continue;
348
- }
349
- $subsections = array_unique( array_merge( array( '' ), array_keys( $section->get_sections() ) ) );
350
-
351
- foreach ( $subsections as $subsection ) {
352
- foreach ( $section->get_settings( $subsection ) as $value ) {
353
- if ( isset( $value['default'] ) && isset( $value['id'] ) ) {
354
- $autoload = isset( $value['autoload'] ) ? (bool) $value['autoload'] : true;
355
- add_option( $value['id'], $value['default'], '', ( $autoload ? 'yes' : 'no' ) );
 
 
356
  }
357
  }
358
  }
342
 
343
  $settings = UR_Admin_Settings::get_settings_pages();
344
 
345
+ if ( ! empty( $settings ) ) {
346
+ foreach ( $settings as $section ) {
347
+ if ( ! method_exists( $section, 'get_settings' ) ) {
348
+ continue;
349
+ }
350
+ $subsections = array_unique( array_merge( array( '' ), array_keys( $section->get_sections() ) ) );
351
+
352
+ foreach ( $subsections as $subsection ) {
353
+ foreach ( $section->get_settings( $subsection ) as $value ) {
354
+ if ( isset( $value['default'] ) && isset( $value['id'] ) ) {
355
+ $autoload = isset( $value['autoload'] ) ? (bool) $value['autoload'] : true;
356
+ add_option( $value['id'], $value['default'], '', ( $autoload ? 'yes' : 'no' ) );
357
+ }
358
  }
359
  }
360
  }
includes/form/class-ur-form-field-checkbox.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Checkbox.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Checkbox extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Checkbox extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_checkbox';
@@ -48,30 +57,34 @@ class UR_Form_Field_Checkbox extends UR_Form_Field {
48
  }
49
 
50
  /**
51
- * @return string
52
  */
53
  public function get_registered_admin_fields() {
54
 
55
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
56
  }
57
 
58
  /**
59
- * @param $single_form_field
60
- * @param $form_data
61
- * @param $filter_hook
62
- * @param $form_id
 
 
63
  */
64
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
65
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
66
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
67
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
68
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
69
 
70
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
71
  add_filter(
72
  $filter_hook,
73
  function ( $msg ) use ( $field_label ) {
74
- return esc_html__( $field_label . ' is required.', 'user-registration' );
 
75
  }
76
  );
77
  }
3
  * UR_Form_Field_Checkbox.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Checkbox extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_checkbox';
57
  }
58
 
59
  /**
60
+ * Get Registered admin fields.
61
  */
62
  public function get_registered_admin_fields() {
63
 
64
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
65
  }
66
 
67
  /**
68
+ * Validate field.
69
+ *
70
+ * @param [object] $single_form_field Field Data.
71
+ * @param [object] $form_data Form Data.
72
+ * @param [string] $filter_hook Hook.
73
+ * @param [int] $form_id Form id.
74
  */
75
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
76
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
77
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
78
  $value = isset( $form_data->value ) ? $form_data->value : '';
79
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
80
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
81
 
82
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
83
  add_filter(
84
  $filter_hook,
85
  function ( $msg ) use ( $field_label ) {
86
+ /* translators: %1$s - Field Label */
87
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
88
  }
89
  );
90
  }
includes/form/class-ur-form-field-country.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Country.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Country extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Country extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function get_country() {
31
 
32
  return apply_filters(
@@ -287,6 +296,9 @@ class UR_Form_Field_Country extends UR_Form_Field {
287
 
288
  /**
289
  * Get selected countries list of a Country field.
 
 
 
290
  */
291
  public function get_selected_countries( $form_id, $field_name ) {
292
  $countries = $this->get_country();
@@ -296,7 +308,7 @@ class UR_Form_Field_Country extends UR_Form_Field {
296
  $form_data = UR()->form->get_form( $form_id, array( 'content_only' => true ) );
297
  $fields = self::get_form_field_data( $form_data );
298
 
299
- // Get selected_countries data of the field
300
  foreach ( $fields as $field ) {
301
  if ( 'country' === $field->field_key && $field_name === $field->general_setting->field_name ) {
302
  $advance_setting = $field->advance_setting;
@@ -307,7 +319,7 @@ class UR_Form_Field_Country extends UR_Form_Field {
307
  }
308
  }
309
 
310
- // Filter countries with selected_countries data
311
  if ( is_array( $selected_countries ) ) {
312
  foreach ( $countries as $iso => $country_name ) {
313
  if ( in_array( $iso, $selected_countries, true ) ) {
@@ -339,6 +351,9 @@ class UR_Form_Field_Country extends UR_Form_Field {
339
  return ( $form_field_data_array );
340
  }
341
 
 
 
 
342
  public function __construct() {
343
 
344
  $this->id = 'user_registration_country';
@@ -354,22 +369,35 @@ class UR_Form_Field_Country extends UR_Form_Field {
354
  );
355
  }
356
 
 
 
 
357
  public function get_registered_admin_fields() {
358
 
359
  return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
360
  }
361
 
 
 
 
 
 
 
 
 
362
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
363
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
364
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
365
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
366
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
367
 
368
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
369
  add_filter(
370
  $filter_hook,
371
  function ( $msg ) use ( $field_label ) {
372
- return esc_html__( $field_label . ' is required.', 'user-registration' );
 
373
  }
374
  );
375
  }
3
  * UR_Form_Field_Country.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Country extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Get Country List.
38
+ */
39
  public function get_country() {
40
 
41
  return apply_filters(
296
 
297
  /**
298
  * Get selected countries list of a Country field.
299
+ *
300
+ * @param [int] $form_id Form id.
301
+ * @param [string] $field_name Field Name.
302
  */
303
  public function get_selected_countries( $form_id, $field_name ) {
304
  $countries = $this->get_country();
308
  $form_data = UR()->form->get_form( $form_id, array( 'content_only' => true ) );
309
  $fields = self::get_form_field_data( $form_data );
310
 
311
+ // Get selected_countries data of the field.
312
  foreach ( $fields as $field ) {
313
  if ( 'country' === $field->field_key && $field_name === $field->general_setting->field_name ) {
314
  $advance_setting = $field->advance_setting;
319
  }
320
  }
321
 
322
+ // Filter countries with selected_countries data.
323
  if ( is_array( $selected_countries ) ) {
324
  foreach ( $countries as $iso => $country_name ) {
325
  if ( in_array( $iso, $selected_countries, true ) ) {
351
  return ( $form_field_data_array );
352
  }
353
 
354
+ /**
355
+ * Constructor.
356
+ */
357
  public function __construct() {
358
 
359
  $this->id = 'user_registration_country';
369
  );
370
  }
371
 
372
+ /**
373
+ * Get Registered admin fields.
374
+ */
375
  public function get_registered_admin_fields() {
376
 
377
  return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
378
  }
379
 
380
+ /**
381
+ * Validate field.
382
+ *
383
+ * @param [object] $single_form_field Field Data.
384
+ * @param [object] $form_data Form Data.
385
+ * @param [string] $filter_hook Hook.
386
+ * @param [int] $form_id Form id.
387
+ */
388
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
389
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
390
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
391
  $value = isset( $form_data->value ) ? $form_data->value : '';
392
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
393
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
394
 
395
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
396
  add_filter(
397
  $filter_hook,
398
  function ( $msg ) use ( $field_label ) {
399
+ /* translators: %1$s - Field Label */
400
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
401
  }
402
  );
403
  }
includes/form/class-ur-form-field-date.php CHANGED
@@ -5,8 +5,6 @@
5
  * @class UR_Form_Field_Date
6
  * @since 1.0.5
7
  * @package UserRegistration/Form
8
- * @category Admin
9
- * @author WPEverest
10
  */
11
 
12
  if ( ! defined( 'ABSPATH' ) ) {
@@ -18,8 +16,16 @@ if ( ! defined( 'ABSPATH' ) ) {
18
  */
19
  class UR_Form_Field_Date extends UR_Form_Field {
20
 
 
 
 
 
 
21
  private static $_instance;
22
 
 
 
 
23
  public static function get_instance() {
24
  // If the single instance hasn't been set, set it now.
25
  if ( is_null( self::$_instance ) ) {
@@ -29,6 +35,9 @@ class UR_Form_Field_Date extends UR_Form_Field {
29
  return self::$_instance;
30
  }
31
 
 
 
 
32
  public function __construct() {
33
 
34
  $this->id = 'user_registration_date';
@@ -44,24 +53,37 @@ class UR_Form_Field_Date extends UR_Form_Field {
44
  );
45
  }
46
 
 
 
 
47
  public function get_registered_admin_fields() {
48
 
49
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
50
  }
51
 
 
 
 
 
 
 
 
 
52
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
53
 
54
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
55
  $is_enable_date_range = isset( $single_form_field->advance_setting->enable_date_range ) ? $single_form_field->advance_setting->enable_date_range : '';
56
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
57
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
58
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
59
 
60
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
61
  add_filter(
62
  $filter_hook,
63
  function ( $msg ) use ( $field_label ) {
64
- return esc_html__( $field_label . ' is required.', 'user-registration' );
 
65
  }
66
  );
67
  }
@@ -70,13 +92,13 @@ class UR_Form_Field_Date extends UR_Form_Field {
70
  /**
71
  * Checks for valid date
72
  *
73
- * @param string $date_string
74
  */
75
  private function is_valid_date( $date_string ) {
76
 
77
  $date = date_parse( $date_string );
78
 
79
- if ( $date['error_count'] == 0 && checkdate( $date['month'], $date['day'], $date['year'] ) ) {
80
  return true;
81
  }
82
 
5
  * @class UR_Form_Field_Date
6
  * @since 1.0.5
7
  * @package UserRegistration/Form
 
 
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Date extends UR_Form_Field {
18
 
19
+ /**
20
+ * Instance Variable.
21
+ *
22
+ * @var [mixed]
23
+ */
24
  private static $_instance;
25
 
26
+ /**
27
+ * Get Instance of class.
28
+ */
29
  public static function get_instance() {
30
  // If the single instance hasn't been set, set it now.
31
  if ( is_null( self::$_instance ) ) {
35
  return self::$_instance;
36
  }
37
 
38
+ /**
39
+ * Constructor.
40
+ */
41
  public function __construct() {
42
 
43
  $this->id = 'user_registration_date';
53
  );
54
  }
55
 
56
+ /**
57
+ * Get Registered admin fields.
58
+ */
59
  public function get_registered_admin_fields() {
60
 
61
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
62
  }
63
 
64
+ /**
65
+ * Validate field.
66
+ *
67
+ * @param [object] $single_form_field Field Data.
68
+ * @param [object] $form_data Form Data.
69
+ * @param [string] $filter_hook Hook.
70
+ * @param [int] $form_id Form id.
71
+ */
72
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
73
 
 
74
  $is_enable_date_range = isset( $single_form_field->advance_setting->enable_date_range ) ? $single_form_field->advance_setting->enable_date_range : '';
75
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
76
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
77
  $value = isset( $form_data->value ) ? $form_data->value : '';
78
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
79
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
80
 
81
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
82
  add_filter(
83
  $filter_hook,
84
  function ( $msg ) use ( $field_label ) {
85
+ /* translators: %1$s - Field Label */
86
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
87
  }
88
  );
89
  }
92
  /**
93
  * Checks for valid date
94
  *
95
+ * @param string $date_string Date.
96
  */
97
  private function is_valid_date( $date_string ) {
98
 
99
  $date = date_parse( $date_string );
100
 
101
+ if ( 0 == $date['error_count'] && checkdate( $date['month'], $date['day'], $date['year'] ) ) {
102
  return true;
103
  }
104
 
includes/form/class-ur-form-field-description.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Description.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Description extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,7 +33,9 @@ class UR_Form_Field_Description extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
30
-
 
 
31
  public function __construct() {
32
 
33
  $this->id = 'user_registration_description';
@@ -43,22 +51,35 @@ class UR_Form_Field_Description extends UR_Form_Field {
43
  );
44
  }
45
 
 
 
 
46
  public function get_registered_admin_fields() {
47
 
48
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
49
  }
50
 
 
 
 
 
 
 
 
 
51
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
52
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
53
- $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
54
- $field_label = isset( $form_data->label ) ? $form_data->label : '';
55
- $value = isset( $form_data->value ) ? $form_data->value : '';
 
56
 
57
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
58
  add_filter(
59
  $filter_hook,
60
  function ( $msg ) use ( $field_label ) {
61
- return esc_html__( $field_label . ' is required.', 'user-registration' );
 
62
  }
63
  );
64
  }
3
  * UR_Form_Field_Description.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Description extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_description';
51
  );
52
  }
53
 
54
+ /**
55
+ * Get Registered admin fields.
56
+ */
57
  public function get_registered_admin_fields() {
58
 
59
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
60
  }
61
 
62
+ /**
63
+ * Validate field.
64
+ *
65
+ * @param [object] $single_form_field Field Data.
66
+ * @param [object] $form_data Form Data.
67
+ * @param [string] $filter_hook Hook.
68
+ * @param [int] $form_id Form id.
69
+ */
70
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
71
+ $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
72
+ $field_label = isset( $form_data->label ) ? $form_data->label : '';
73
+ $value = isset( $form_data->value ) ? $form_data->value : '';
74
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
75
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
76
 
77
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
78
  add_filter(
79
  $filter_hook,
80
  function ( $msg ) use ( $field_label ) {
81
+ /* translators: %1$s - Field Label */
82
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
83
  }
84
  );
85
  }
includes/form/class-ur-form-field-display-name.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Display_Name.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Display_Name extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Display_Name extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_display_name';
@@ -42,22 +51,35 @@ class UR_Form_Field_Display_Name extends UR_Form_Field {
42
  );
43
  }
44
 
 
 
 
45
  public function get_registered_admin_fields() {
46
 
47
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
48
  }
49
 
 
 
 
 
 
 
 
 
50
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
51
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
52
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
53
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
54
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
55
 
56
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
57
  add_filter(
58
  $filter_hook,
59
  function ( $msg ) use ( $field_label ) {
60
- return __( $field_label . ' is required.', 'user-registration' );
 
61
  }
62
  );
63
  }
3
  * UR_Form_Field_Display_Name.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Display_Name extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_display_name';
51
  );
52
  }
53
 
54
+ /**
55
+ * Get Registered admin fields.
56
+ */
57
  public function get_registered_admin_fields() {
58
 
59
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
60
  }
61
 
62
+ /**
63
+ * Validate field.
64
+ *
65
+ * @param [object] $single_form_field Field Data.
66
+ * @param [object] $form_data Form Data.
67
+ * @param [string] $filter_hook Hook.
68
+ * @param [int] $form_id Form id.
69
+ */
70
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
71
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
72
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
73
  $value = isset( $form_data->value ) ? $form_data->value : '';
74
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
75
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
76
 
77
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
78
  add_filter(
79
  $filter_hook,
80
  function ( $msg ) use ( $field_label ) {
81
+ /* translators: %1$s - Field Label */
82
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
83
  }
84
  );
85
  }
includes/form/class-ur-form-field-email.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Email.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Email extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Email extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_email';
@@ -42,22 +51,35 @@ class UR_Form_Field_Email extends UR_Form_Field {
42
  );
43
  }
44
 
 
 
 
45
  public function get_registered_admin_fields() {
46
 
47
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
48
  }
49
 
 
 
 
 
 
 
 
 
50
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
51
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
52
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
53
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
54
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
55
 
56
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
57
  add_filter(
58
  $filter_hook,
59
  function ( $msg ) use ( $field_label ) {
60
- return __( $field_label . ' is required.', 'user-registration' );
 
61
  }
62
  );
63
  }
@@ -66,7 +88,8 @@ class UR_Form_Field_Email extends UR_Form_Field {
66
  add_filter(
67
  $filter_hook,
68
  function ( $msg ) use ( $field_label ) {
69
- return __( $field_label . ' must be a valid email address.', 'user-registration' );
 
70
  }
71
  );
72
  }
3
  * UR_Form_Field_Email.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Email extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_email';
51
  );
52
  }
53
 
54
+ /**
55
+ * Get Registered admin fields.
56
+ */
57
  public function get_registered_admin_fields() {
58
 
59
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
60
  }
61
 
62
+ /**
63
+ * Validate field.
64
+ *
65
+ * @param [object] $single_form_field Field Data.
66
+ * @param [object] $form_data Form Data.
67
+ * @param [string] $filter_hook Hook.
68
+ * @param [int] $form_id Form id.
69
+ */
70
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
71
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
72
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
73
  $value = isset( $form_data->value ) ? $form_data->value : '';
74
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
75
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
76
 
77
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
78
  add_filter(
79
  $filter_hook,
80
  function ( $msg ) use ( $field_label ) {
81
+ /* translators: %1$s - Field Label */
82
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
83
  }
84
  );
85
  }
88
  add_filter(
89
  $filter_hook,
90
  function ( $msg ) use ( $field_label ) {
91
+ /* translators: %1$s - Field Label */
92
+ return sprintf( __( '%1$s must be a valid email address.', 'user-registration' ), $field_label );
93
  }
94
  );
95
  }
includes/form/class-ur-form-field-first-name.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_First_Name.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_First_Name extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_First_Name extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_first_name';
@@ -42,22 +51,35 @@ class UR_Form_Field_First_Name extends UR_Form_Field {
42
  );
43
  }
44
 
 
 
 
45
  public function get_registered_admin_fields() {
46
 
47
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
48
  }
49
 
 
 
 
 
 
 
 
 
50
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
51
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
52
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
53
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
54
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
55
 
56
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
57
  add_filter(
58
  $filter_hook,
59
  function ( $msg ) use ( $field_label ) {
60
- return __( $field_label . ' is required.', 'user-registration' );
 
61
  }
62
  );
63
  }
3
  * UR_Form_Field_First_Name.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_First_Name extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_first_name';
51
  );
52
  }
53
 
54
+ /**
55
+ * Get Registered admin fields.
56
+ */
57
  public function get_registered_admin_fields() {
58
 
59
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
60
  }
61
 
62
+ /**
63
+ * Validate field.
64
+ *
65
+ * @param [object] $single_form_field Field Data.
66
+ * @param [object] $form_data Form Data.
67
+ * @param [string] $filter_hook Hook.
68
+ * @param [int] $form_id Form id.
69
+ */
70
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
71
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
72
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
73
  $value = isset( $form_data->value ) ? $form_data->value : '';
74
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
75
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
76
 
77
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
78
  add_filter(
79
  $filter_hook,
80
  function ( $msg ) use ( $field_label ) {
81
+ /* translators: %1$s - Field Label */
82
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
83
  }
84
  );
85
  }
includes/form/class-ur-form-field-last-name.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Last_Name.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Last_Name extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Last_Name extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_last_name';
@@ -42,22 +51,35 @@ class UR_Form_Field_Last_Name extends UR_Form_Field {
42
  );
43
  }
44
 
 
 
 
45
  public function get_registered_admin_fields() {
46
 
47
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
48
  }
49
 
 
 
 
 
 
 
 
 
50
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
51
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
52
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
53
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
54
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
55
 
56
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
57
  add_filter(
58
  $filter_hook,
59
  function ( $msg ) use ( $field_label ) {
60
- return __( $field_label . ' is required.', 'user-registration' );
 
61
  }
62
  );
63
  }
3
  * UR_Form_Field_Last_Name.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Last_Name extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_last_name';
51
  );
52
  }
53
 
54
+ /**
55
+ * Get Registered admin fields.
56
+ */
57
  public function get_registered_admin_fields() {
58
 
59
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
60
  }
61
 
62
+ /**
63
+ * Validate field.
64
+ *
65
+ * @param [object] $single_form_field Field Data.
66
+ * @param [object] $form_data Form Data.
67
+ * @param [string] $filter_hook Hook.
68
+ * @param [int] $form_id Form id.
69
+ */
70
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
71
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
72
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
73
  $value = isset( $form_data->value ) ? $form_data->value : '';
74
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
75
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
76
 
77
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
78
  add_filter(
79
  $filter_hook,
80
  function ( $msg ) use ( $field_label ) {
81
+ /* translators: %1$s - Field Label */
82
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
83
  }
84
  );
85
  }
includes/form/class-ur-form-field-nickname.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Nickname.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Nickname extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Nickname extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_nickname';
@@ -42,24 +51,35 @@ class UR_Form_Field_Nickname extends UR_Form_Field {
42
  );
43
  }
44
 
45
-
 
 
46
  public function get_registered_admin_fields() {
47
 
48
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
49
  }
50
 
51
-
 
 
 
 
 
 
 
52
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
53
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
54
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
55
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
56
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
57
 
58
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
59
  add_filter(
60
  $filter_hook,
61
  function ( $msg ) use ( $field_label ) {
62
- return __( $field_label . ' is required.', 'user-registration' );
 
63
  }
64
  );
65
  }
3
  * UR_Form_Field_Nickname.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Nickname extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_nickname';
51
  );
52
  }
53
 
54
+ /**
55
+ * Get Registered admin fields.
56
+ */
57
  public function get_registered_admin_fields() {
58
 
59
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
60
  }
61
 
62
+ /**
63
+ * Validate field.
64
+ *
65
+ * @param [object] $single_form_field Field Data.
66
+ * @param [object] $form_data Form Data.
67
+ * @param [string] $filter_hook Hook.
68
+ * @param [int] $form_id Form id.
69
+ */
70
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
71
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
72
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
73
  $value = isset( $form_data->value ) ? $form_data->value : '';
74
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
75
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
76
 
77
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
78
  add_filter(
79
  $filter_hook,
80
  function ( $msg ) use ( $field_label ) {
81
+ /* translators: %1$s - Field Label */
82
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
83
  }
84
  );
85
  }
includes/form/class-ur-form-field-number.php CHANGED
@@ -5,8 +5,6 @@
5
  * @class UR_Form_Field_Number
6
  * @since 1.0.5
7
  * @package UserRegistration/Form
8
- * @category Admin
9
- * @author WPEverest
10
  */
11
 
12
  if ( ! defined( 'ABSPATH' ) ) {
@@ -18,8 +16,16 @@ if ( ! defined( 'ABSPATH' ) ) {
18
  */
19
  class UR_Form_Field_Number extends UR_Form_Field {
20
 
 
 
 
 
 
21
  private static $_instance;
22
 
 
 
 
23
  public static function get_instance() {
24
  // If the single instance hasn't been set, set it now.
25
  if ( is_null( self::$_instance ) ) {
@@ -29,6 +35,9 @@ class UR_Form_Field_Number extends UR_Form_Field {
29
  return self::$_instance;
30
  }
31
 
 
 
 
32
  public function __construct() {
33
 
34
  $this->id = 'user_registration_number';
@@ -44,22 +53,35 @@ class UR_Form_Field_Number extends UR_Form_Field {
44
  );
45
  }
46
 
 
 
 
47
  public function get_registered_admin_fields() {
48
 
49
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
50
  }
51
 
 
 
 
 
 
 
 
 
52
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
53
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
54
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
55
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
56
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
57
 
58
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
59
  add_filter(
60
  $filter_hook,
61
  function ( $msg ) use ( $field_label ) {
62
- return __( $field_label . ' is required.', 'user-registration' );
 
63
  }
64
  );
65
  }
@@ -68,7 +90,8 @@ class UR_Form_Field_Number extends UR_Form_Field {
68
  add_filter(
69
  $filter_hook,
70
  function ( $msg ) use ( $field_label ) {
71
- return __( $field_label . ' must be numeric value.', 'user-registration' );
 
72
  }
73
  );
74
  }
5
  * @class UR_Form_Field_Number
6
  * @since 1.0.5
7
  * @package UserRegistration/Form
 
 
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Number extends UR_Form_Field {
18
 
19
+ /**
20
+ * Instance Variable.
21
+ *
22
+ * @var [mixed]
23
+ */
24
  private static $_instance;
25
 
26
+ /**
27
+ * Get Instance of class.
28
+ */
29
  public static function get_instance() {
30
  // If the single instance hasn't been set, set it now.
31
  if ( is_null( self::$_instance ) ) {
35
  return self::$_instance;
36
  }
37
 
38
+ /**
39
+ * Constructor.
40
+ */
41
  public function __construct() {
42
 
43
  $this->id = 'user_registration_number';
53
  );
54
  }
55
 
56
+ /**
57
+ * Get Registered admin fields.
58
+ */
59
  public function get_registered_admin_fields() {
60
 
61
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
62
  }
63
 
64
+ /**
65
+ * Validate field.
66
+ *
67
+ * @param [object] $single_form_field Field Data.
68
+ * @param [object] $form_data Form Data.
69
+ * @param [string] $filter_hook Hook.
70
+ * @param [int] $form_id Form id.
71
+ */
72
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
73
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
74
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
75
  $value = isset( $form_data->value ) ? $form_data->value : '';
76
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
77
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
78
 
79
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
80
  add_filter(
81
  $filter_hook,
82
  function ( $msg ) use ( $field_label ) {
83
+ /* translators: %1$s - Field Label */
84
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
85
  }
86
  );
87
  }
90
  add_filter(
91
  $filter_hook,
92
  function ( $msg ) use ( $field_label ) {
93
+ /* translators: %1$s - Field Label */
94
+ return sprintf( __( '%1$s must be numeric value.', 'user-registration' ), $field_label );
95
  }
96
  );
97
  }
includes/form/class-ur-form-field-password.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Password.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Password extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Password extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_password';
@@ -42,24 +51,35 @@ class UR_Form_Field_Password extends UR_Form_Field {
42
  );
43
  }
44
 
45
-
 
 
46
  public function get_registered_admin_fields() {
47
 
48
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
49
  }
50
 
51
-
 
 
 
 
 
 
 
52
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
53
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
54
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
55
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
56
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
57
 
58
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
59
  add_filter(
60
  $filter_hook,
61
  function ( $msg ) use ( $field_label ) {
62
- return __( $field_label . ' is required.', 'user-registration' );
 
63
  }
64
  );
65
  }
3
  * UR_Form_Field_Password.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Password extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_password';
51
  );
52
  }
53
 
54
+ /**
55
+ * Get Registered admin fields.
56
+ */
57
  public function get_registered_admin_fields() {
58
 
59
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
60
  }
61
 
62
+ /**
63
+ * Validate field.
64
+ *
65
+ * @param [object] $single_form_field Field Data.
66
+ * @param [object] $form_data Form Data.
67
+ * @param [string] $filter_hook Hook.
68
+ * @param [int] $form_id Form id.
69
+ */
70
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
71
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
72
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
73
  $value = isset( $form_data->value ) ? $form_data->value : '';
74
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
75
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
76
 
77
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
78
  add_filter(
79
  $filter_hook,
80
  function ( $msg ) use ( $field_label ) {
81
+ /* translators: %1$s - Field Label */
82
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
83
  }
84
  );
85
  }
includes/form/class-ur-form-field-privacy-policy.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Privacy_Policy.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Privacy_Policy extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Privacy_Policy extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_privacy_policy';
@@ -43,31 +52,35 @@ class UR_Form_Field_Privacy_Policy extends UR_Form_Field {
43
  }
44
 
45
  /**
46
- * @return string
47
  */
48
  public function get_registered_admin_fields() {
49
 
50
- return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' .esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ). '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
51
  }
52
 
53
 
54
  /**
55
- * @param $single_form_field
56
- * @param $form_data
57
- * @param $filter_hook
58
- * @param $form_id
 
 
59
  */
60
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
61
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
62
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
63
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
64
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
65
 
66
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
67
  add_filter(
68
  $filter_hook,
69
  function ( $msg ) use ( $field_label ) {
70
- return __( $field_label . ' is required.', 'user-registration' );
 
71
  }
72
  );
73
  }
3
  * UR_Form_Field_Privacy_Policy.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Privacy_Policy extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_privacy_policy';
52
  }
53
 
54
  /**
55
+ * Get Registered admin fields.
56
  */
57
  public function get_registered_admin_fields() {
58
 
59
+ return '<li id="' . esc_attr( $this->id ) . '_list " class="ur-registered-item draggable" data-field-id="' . esc_attr( $this->id ) . '"><span class="' . esc_attr( $this->registered_fields_config['icon'] ) . '"></span>' . esc_html( $this->registered_fields_config['label'] ) . '</li>';
60
  }
61
 
62
 
63
  /**
64
+ * Validate field.
65
+ *
66
+ * @param [object] $single_form_field Field Data.
67
+ * @param [object] $form_data Form Data.
68
+ * @param [string] $filter_hook Hook.
69
+ * @param [int] $form_id Form id.
70
  */
71
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
72
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
73
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
74
  $value = isset( $form_data->value ) ? $form_data->value : '';
75
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
76
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
77
 
78
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
79
  add_filter(
80
  $filter_hook,
81
  function ( $msg ) use ( $field_label ) {
82
+ /* translators: %1$s - Field Label */
83
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
84
  }
85
  );
86
  }
includes/form/class-ur-form-field-radio.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Radio.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Radio extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -28,7 +34,7 @@ class UR_Form_Field_Radio extends UR_Form_Field {
28
  }
29
 
30
  /**
31
- * Hook in tabs.
32
  */
33
  public function __construct() {
34
 
@@ -50,24 +56,35 @@ class UR_Form_Field_Radio extends UR_Form_Field {
50
  );
51
  }
52
 
53
-
 
 
54
  public function get_registered_admin_fields() {
55
 
56
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
57
  }
58
 
59
-
 
 
 
 
 
 
 
60
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
61
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
62
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
63
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
64
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
65
 
66
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
67
  add_filter(
68
  $filter_hook,
69
  function ( $msg ) use ( $field_label ) {
70
- return __( $field_label . ' is required.', 'user-registration' );
 
71
  }
72
  );
73
  }
3
  * UR_Form_Field_Radio.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Radio extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
34
  }
35
 
36
  /**
37
+ * Constructor.
38
  */
39
  public function __construct() {
40
 
56
  );
57
  }
58
 
59
+ /**
60
+ * Get Registered admin fields.
61
+ */
62
  public function get_registered_admin_fields() {
63
 
64
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
65
  }
66
 
67
+ /**
68
+ * Validate field.
69
+ *
70
+ * @param [object] $single_form_field Field Data.
71
+ * @param [object] $form_data Form Data.
72
+ * @param [string] $filter_hook Hook.
73
+ * @param [int] $form_id Form id.
74
+ */
75
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
76
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
77
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
78
  $value = isset( $form_data->value ) ? $form_data->value : '';
79
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
80
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
81
 
82
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
83
  add_filter(
84
  $filter_hook,
85
  function ( $msg ) use ( $field_label ) {
86
+ /* translators: %1$s - Field Label */
87
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
88
  }
89
  );
90
  }
includes/form/class-ur-form-field-select.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Selec.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Select extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Select extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_select';
@@ -47,22 +56,35 @@ class UR_Form_Field_Select extends UR_Form_Field {
47
  );
48
  }
49
 
 
 
 
50
  public function get_registered_admin_fields() {
51
 
52
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
53
  }
54
 
 
 
 
 
 
 
 
 
55
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
56
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
57
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
58
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
59
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
60
 
61
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
62
  add_filter(
63
  $filter_hook,
64
  function ( $msg ) use ( $field_label ) {
65
- return __( $field_label . ' is required.', 'user-registration' );
 
66
  }
67
  );
68
  }
3
  * UR_Form_Field_Selec.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Select extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_select';
56
  );
57
  }
58
 
59
+ /**
60
+ * Get Registered admin fields.
61
+ */
62
  public function get_registered_admin_fields() {
63
 
64
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
65
  }
66
 
67
+ /**
68
+ * Validate field.
69
+ *
70
+ * @param [object] $single_form_field Field Data.
71
+ * @param [object] $form_data Form Data.
72
+ * @param [string] $filter_hook Hook.
73
+ * @param [int] $form_id Form id.
74
+ */
75
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
 
76
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
77
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
78
  $value = isset( $form_data->value ) ? $form_data->value : '';
79
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
80
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
81
 
82
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
83
  add_filter(
84
  $filter_hook,
85
  function ( $msg ) use ( $field_label ) {
86
+ /* translators: %1$s - Field Label */
87
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
88
  }
89
  );
90
  }
includes/form/class-ur-form-field-text.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Text.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Text extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Text extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_text';
@@ -42,24 +51,36 @@ class UR_Form_Field_Text extends UR_Form_Field {
42
  );
43
  }
44
 
 
 
 
45
  public function get_registered_admin_fields() {
46
 
47
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
48
  }
49
 
 
 
 
 
 
 
 
 
50
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
51
 
52
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
53
-
54
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
55
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
56
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
57
 
58
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
59
  add_filter(
60
  $filter_hook,
61
  function ( $msg ) use ( $field_label ) {
62
- return __( $field_label . ' is required.', 'user-registration' );
 
63
  }
64
  );
65
  }
3
  * UR_Form_Field_Text.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Text extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_text';
51
  );
52
  }
53
 
54
+ /**
55
+ * Get Registered admin fields.
56
+ */
57
  public function get_registered_admin_fields() {
58
 
59
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
60
  }
61
 
62
+ /**
63
+ * Validate field.
64
+ *
65
+ * @param [object] $single_form_field Field Data.
66
+ * @param [object] $form_data Form Data.
67
+ * @param [string] $filter_hook Hook.
68
+ * @param [int] $form_id Form id.
69
+ */
70
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
71
 
 
 
72
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
73
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
74
  $value = isset( $form_data->value ) ? $form_data->value : '';
75
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
76
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
77
 
78
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
79
  add_filter(
80
  $filter_hook,
81
  function ( $msg ) use ( $field_label ) {
82
+ /* translators: %1$s - Field Label */
83
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
84
  }
85
  );
86
  }
includes/form/class-ur-form-field-textarea.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_Textarea.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_Textarea extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_Textarea extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_textarea';
@@ -42,24 +51,36 @@ class UR_Form_Field_Textarea extends UR_Form_Field {
42
  );
43
  }
44
 
 
 
 
45
  public function get_registered_admin_fields() {
46
 
47
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
48
  }
49
 
50
-
 
 
 
 
 
 
 
51
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
52
 
53
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
54
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
55
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
56
  $value = isset( $form_data->value ) ? $form_data->value : '';
 
 
57
 
58
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
59
  add_filter(
60
  $filter_hook,
61
  function ( $msg ) use ( $field_label ) {
62
- return __( $field_label . ' is required.', 'user-registration' );
 
63
  }
64
  );
65
  }
3
  * UR_Form_Field_Textarea.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_Textarea extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_textarea';
51
  );
52
  }
53
 
54
+ /**
55
+ * Get Registered admin fields.
56
+ */
57
  public function get_registered_admin_fields() {
58
 
59
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
60
  }
61
 
62
+ /**
63
+ * Validate field.
64
+ *
65
+ * @param [object] $single_form_field Field Data.
66
+ * @param [object] $form_data Form Data.
67
+ * @param [string] $filter_hook Hook.
68
+ * @param [int] $form_id Form id.
69
+ */
70
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
71
 
 
72
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
73
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
74
  $value = isset( $form_data->value ) ? $form_data->value : '';
75
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
76
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
77
 
78
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
79
  add_filter(
80
  $filter_hook,
81
  function ( $msg ) use ( $field_label ) {
82
+ /* translators: %1$s - Field Label */
83
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
84
  }
85
  );
86
  }
includes/form/class-ur-form-field-user-confirm-email.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_User_Confirm_Email.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  * @since 1.6.0
9
  */
10
 
@@ -63,6 +61,14 @@ class UR_Form_Field_User_Confirm_Email extends UR_Form_Field {
63
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
64
  }
65
 
 
 
 
 
 
 
 
 
66
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {}
67
  }
68
 
3
  * UR_Form_Field_User_Confirm_Email.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  * @since 1.6.0
7
  */
8
 
61
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
62
  }
63
 
64
+ /**
65
+ * Validate field.
66
+ *
67
+ * @param [object] $single_form_field Field Data.
68
+ * @param [object] $form_data Form Data.
69
+ * @param [string] $filter_hook Hook.
70
+ * @param [int] $form_id Form id.
71
+ */
72
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {}
73
  }
74
 
includes/form/class-ur-form-field-user-confirm-password.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_User_Confirm_Password.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_User_Confirm_Password extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_User_Confirm_Password extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_user_confirm_password';
@@ -41,11 +50,22 @@ class UR_Form_Field_User_Confirm_Password extends UR_Form_Field {
41
  );
42
  }
43
 
 
 
 
44
  public function get_registered_admin_fields() {
45
 
46
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
47
  }
48
 
 
 
 
 
 
 
 
 
49
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {}
50
  }
51
 
3
  * UR_Form_Field_User_Confirm_Password.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_User_Confirm_Password extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_user_confirm_password';
50
  );
51
  }
52
 
53
+ /**
54
+ * Html to display in builder fields list.
55
+ */
56
  public function get_registered_admin_fields() {
57
 
58
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
59
  }
60
 
61
+ /**
62
+ * Validate field.
63
+ *
64
+ * @param [object] $single_form_field Field Data.
65
+ * @param [object] $form_data Form Data.
66
+ * @param [string] $filter_hook Hook.
67
+ * @param [int] $form_id Form id.
68
+ */
69
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {}
70
  }
71
 
includes/form/class-ur-form-field-user-email.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_User_Email.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_User_Email extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_User_Email extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_user_email';
@@ -41,12 +50,22 @@ class UR_Form_Field_User_Email extends UR_Form_Field {
41
  );
42
  }
43
 
 
 
 
44
  public function get_registered_admin_fields() {
45
 
46
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
47
  }
48
 
49
-
 
 
 
 
 
 
 
50
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
51
 
52
  $email = isset( $form_data->value ) ? $form_data->value : '';
3
  * UR_Form_Field_User_Email.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_User_Email extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_user_email';
50
  );
51
  }
52
 
53
+ /**
54
+ * Html to display in builder fields list.
55
+ */
56
  public function get_registered_admin_fields() {
57
 
58
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
59
  }
60
 
61
+ /**
62
+ * Validate field.
63
+ *
64
+ * @param [object] $single_form_field Field Data.
65
+ * @param [object] $form_data Form Data.
66
+ * @param [string] $filter_hook Hook.
67
+ * @param [int] $form_id Form id.
68
+ */
69
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
70
 
71
  $email = isset( $form_data->value ) ? $form_data->value : '';
includes/form/class-ur-form-field-user-login.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_User_Login.
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_User_Login extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_User_Login extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_user_login';
@@ -41,12 +50,22 @@ class UR_Form_Field_User_Login extends UR_Form_Field {
41
  );
42
  }
43
 
 
 
 
44
  public function get_registered_admin_fields() {
45
 
46
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
47
  }
48
 
49
-
 
 
 
 
 
 
 
50
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
51
  $username = isset( $form_data->value ) ? $form_data->value : '';
52
 
3
  * UR_Form_Field_User_Login.
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_User_Login extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_user_login';
50
  );
51
  }
52
 
53
+ /**
54
+ * Html to display in builder fields list.
55
+ */
56
  public function get_registered_admin_fields() {
57
 
58
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
59
  }
60
 
61
+ /**
62
+ * Validate field.
63
+ *
64
+ * @param [object] $single_form_field Field Data.
65
+ * @param [object] $form_data Form Data.
66
+ * @param [string] $filter_hook Hook.
67
+ * @param [int] $form_id Form id.
68
+ */
69
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
70
  $username = isset( $form_data->value ) ? $form_data->value : '';
71
 
includes/form/class-ur-form-field-user-pass.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_User_Pass
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_User_Pass extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_User_Pass extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_user_pass';
@@ -41,11 +50,22 @@ class UR_Form_Field_User_Pass extends UR_Form_Field {
41
  );
42
  }
43
 
 
 
 
44
  public function get_registered_admin_fields() {
45
 
46
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
47
  }
48
 
 
 
 
 
 
 
 
 
49
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
50
 
51
  $password = isset( $form_data->value ) ? $form_data->value : '';
@@ -60,6 +80,11 @@ class UR_Form_Field_User_Pass extends UR_Form_Field {
60
  }
61
  }
62
 
 
 
 
 
 
63
  private static function check_password_length( $password ) {
64
 
65
  $strength = 0;
3
  * UR_Form_Field_User_Pass
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_User_Pass extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_user_pass';
50
  );
51
  }
52
 
53
+ /**
54
+ * Html to display in builder fields list.
55
+ */
56
  public function get_registered_admin_fields() {
57
 
58
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
59
  }
60
 
61
+ /**
62
+ * Validate field.
63
+ *
64
+ * @param [object] $single_form_field Field Data.
65
+ * @param [object] $form_data Form Data.
66
+ * @param [string] $filter_hook Hook.
67
+ * @param [int] $form_id Form id.
68
+ */
69
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
70
 
71
  $password = isset( $form_data->value ) ? $form_data->value : '';
80
  }
81
  }
82
 
83
+ /**
84
+ * Check Password Length
85
+ *
86
+ * @param [string] $password Password.
87
+ */
88
  private static function check_password_length( $password ) {
89
 
90
  $strength = 0;
includes/form/class-ur-form-field-user-url.php CHANGED
@@ -3,8 +3,6 @@
3
  * UR_Form_Field_User_Url
4
  *
5
  * @package UserRegistration/Form
6
- * @category Admin
7
- * @author WPEverest
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -16,8 +14,16 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class UR_Form_Field_User_Url extends UR_Form_Field {
18
 
 
 
 
 
 
19
  private static $_instance;
20
 
 
 
 
21
  public static function get_instance() {
22
  // If the single instance hasn't been set, set it now.
23
  if ( is_null( self::$_instance ) ) {
@@ -27,6 +33,9 @@ class UR_Form_Field_User_Url extends UR_Form_Field {
27
  return self::$_instance;
28
  }
29
 
 
 
 
30
  public function __construct() {
31
 
32
  $this->id = 'user_registration_user_url';
@@ -41,25 +50,37 @@ class UR_Form_Field_User_Url extends UR_Form_Field {
41
  );
42
  }
43
 
44
-
 
 
45
  public function get_registered_admin_fields() {
46
 
47
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
48
  }
49
 
50
-
 
 
 
 
 
 
 
51
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
52
 
53
- $is_condition_enabled = isset( $single_form_field->advance_setting->enable_conditional_logic ) ? $single_form_field->advance_setting->enable_conditional_logic : '0';
54
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
55
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
56
  $value = isset( $form_data->value ) ? $form_data->value : '';
57
 
58
- if ( $is_condition_enabled !== '1' && 'yes' == $required && empty( $value ) ) {
 
 
 
59
  add_filter(
60
  $filter_hook,
61
  function ( $msg ) use ( $field_label ) {
62
- return __( $field_label . ' is required.', 'user-registration' );
 
63
  }
64
  );
65
  }
3
  * UR_Form_Field_User_Url
4
  *
5
  * @package UserRegistration/Form
 
 
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) ) {
14
  */
15
  class UR_Form_Field_User_Url extends UR_Form_Field {
16
 
17
+ /**
18
+ * Instance Variable.
19
+ *
20
+ * @var [mixed]
21
+ */
22
  private static $_instance;
23
 
24
+ /**
25
+ * Get Instance of class.
26
+ */
27
  public static function get_instance() {
28
  // If the single instance hasn't been set, set it now.
29
  if ( is_null( self::$_instance ) ) {
33
  return self::$_instance;
34
  }
35
 
36
+ /**
37
+ * Constructor.
38
+ */
39
  public function __construct() {
40
 
41
  $this->id = 'user_registration_user_url';
50
  );
51
  }
52
 
53
+ /**
54
+ * Html to display in builder fields list.
55
+ */
56
  public function get_registered_admin_fields() {
57
 
58
  return '<li id="' . $this->id . '_list " class="ur-registered-item draggable" data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
59
  }
60
 
61
+ /**
62
+ * Validate field.
63
+ *
64
+ * @param [object] $single_form_field Field Data.
65
+ * @param [object] $form_data Form Data.
66
+ * @param [string] $filter_hook Hook.
67
+ * @param [int] $form_id Form id.
68
+ */
69
  public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
70
 
 
71
  $required = isset( $single_form_field->general_setting->required ) ? $single_form_field->general_setting->required : 'no';
72
  $field_label = isset( $form_data->label ) ? $form_data->label : '';
73
  $value = isset( $form_data->value ) ? $form_data->value : '';
74
 
75
+ $urcl_hide_fields = isset( $_POST['urcl_hide_fields'] ) ? (array) json_decode( stripslashes( $_POST['urcl_hide_fields'] ), true ) : array(); //phpcs:ignore;
76
+ $field_name = isset( $single_form_field->general_setting->field_name ) ? $single_form_field->general_setting->field_name : '';
77
+
78
+ if ( ! in_array( $field_name, $urcl_hide_fields, true ) && 'yes' == $required && empty( $value ) ) {
79
  add_filter(
80
  $filter_hook,
81
  function ( $msg ) use ( $field_label ) {
82
+ /* translators: %1$s - Field Label */
83
+ return sprintf( __( '%1$s is required.', 'user-registration' ), $field_label );
84
  }
85
  );
86
  }
includes/frontend/class-ur-frontend-form-handler.php CHANGED
@@ -219,6 +219,10 @@ class UR_Frontend_Form_Handler {
219
  'field_key' => $single_field_key,
220
  'label' => $single_field_label,
221
  );
 
 
 
 
222
  self::$valid_form_data[ $data->field_name ] = self::get_sanitize_value( $data );
223
  $hook = "user_registration_validate_{$single_form_field->field_key}";
224
  $filter_hook = $hook . '_message';
219
  'field_key' => $single_field_key,
220
  'label' => $single_field_label,
221
  );
222
+
223
+ $field_hook_name = 'user_registration_form_field_' . $single_form_field->field_key . '_params';
224
+ $data = apply_filters( $field_hook_name, $data, $single_form_field );
225
+
226
  self::$valid_form_data[ $data->field_name ] = self::get_sanitize_value( $data );
227
  $hook = "user_registration_validate_{$single_form_field->field_key}";
228
  $filter_hook = $hook . '_message';
includes/functions-ur-account.php CHANGED
@@ -95,6 +95,8 @@ function ur_lostpassword_url( $default_url = '' ) {
95
  return ur_get_endpoint_url( $lost_password_endpoint, '', $ur_account_page_url );
96
  } elseif ( $ur_login_page_exists && ! empty( $lost_password_endpoint ) ) {
97
  return ur_get_endpoint_url( $lost_password_endpoint, '', get_permalink( ur_get_page_id( 'login' ) ) );
 
 
98
  } else {
99
  return $default_url;
100
  }
@@ -230,10 +232,10 @@ function ur_replace_gravatar_image( $avatar, $id_or_email, $size, $default, $alt
230
  $profile_picture_url = get_user_meta( $user->ID, 'user_registration_profile_pic_url', true );
231
 
232
  if ( is_numeric( $profile_picture_url ) ) {
233
- $profile_picture_url = wp_get_attachment_url( $profile_picture_url );
234
  }
235
 
236
- $class = array( 'avatar', 'avatar-' . (int) $args['size'], 'photo' );
237
 
238
  if ( ( isset( $args['found_avatar'] ) && ! $args['found_avatar'] ) || ( isset( $args['force_default'] ) && $args['force_default'] ) ) {
239
  $class[] = 'avatar-default';
95
  return ur_get_endpoint_url( $lost_password_endpoint, '', $ur_account_page_url );
96
  } elseif ( $ur_login_page_exists && ! empty( $lost_password_endpoint ) ) {
97
  return ur_get_endpoint_url( $lost_password_endpoint, '', get_permalink( ur_get_page_id( 'login' ) ) );
98
+ } elseif ( ! empty( $lost_password_endpoint ) && 'lost-password' !== $lost_password_endpoint ) {
99
+ return str_replace( 'lost-password', $lost_password_endpoint, $default_url );
100
  } else {
101
  return $default_url;
102
  }
232
  $profile_picture_url = get_user_meta( $user->ID, 'user_registration_profile_pic_url', true );
233
 
234
  if ( is_numeric( $profile_picture_url ) ) {
235
+ $profile_picture_url = wp_get_attachment_url( $profile_picture_url );
236
  }
237
 
238
+ $class = array( 'avatar', 'avatar-' . (int) $args['size'], 'photo' );
239
 
240
  if ( ( isset( $args['found_avatar'] ) && ! $args['found_avatar'] ) || ( isset( $args['force_default'] ) && $args['force_default'] ) ) {
241
  $class[] = 'avatar-default';
includes/functions-ur-core.php CHANGED
@@ -413,7 +413,6 @@ add_filter( 'extra_plugin_headers', 'ur_enable_ur_plugin_headers' );
413
  * @return string $field_type
414
  */
415
  function ur_get_field_type( $field_key ) {
416
-
417
  $fields = ur_get_registered_form_fields();
418
 
419
  $field_type = 'text';
@@ -1349,7 +1348,7 @@ function ur_get_logger() {
1349
  static $logger = null;
1350
  if ( null === $logger ) {
1351
  $class = apply_filters( 'user_registration_logging_class', 'UR_Logger' );
1352
- $implements = class_implements( $class );
1353
  if ( is_array( $implements ) && in_array( 'UR_Logger_Interface', $implements ) ) {
1354
  if ( is_object( $class ) ) {
1355
  $logger = $class;
@@ -2028,10 +2027,36 @@ function ur_get_valid_form_data_format( $new_string, $post_key, $profile, $value
2028
  $valid_form_data = array();
2029
  if ( isset( $profile[ $post_key ] ) ) {
2030
  $field_type = $profile[ $post_key ]['type'];
2031
- if ( 'checkbox' === $field_type || 'multi_select2' === $field_type ) {
2032
- if ( ! is_array( $value ) && ! empty( $value ) ) {
2033
- $value = maybe_unserialize( $value );
2034
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2035
  }
2036
  $valid_form_data[ $new_string ] = new stdClass();
2037
  $valid_form_data[ $new_string ]->field_name = $new_string;
@@ -2101,6 +2126,7 @@ function ur_parse_name_values_for_smart_tags( $user_id, $form_id, $valid_form_da
2101
 
2102
  // Process for file upload.
2103
  if ( isset( $form_data->extra_params['field_key'] ) && 'file' === $form_data->extra_params['field_key'] ) {
 
2104
  $upload_data = array();
2105
  $file_data = explode( ',', $form_data->value );
2106
 
@@ -2235,6 +2261,7 @@ if ( ! function_exists( 'user_registration_pro_render_conditional_logic' ) ) {
2235
  */
2236
  function user_registration_pro_render_conditional_logic( $connection, $integration, $form_id ) {
2237
  $output = '<div class="ur_conditional_logic_container">';
 
2238
  $output .= '<div class="ur_use_conditional_logic_wrapper ur-check">';
2239
  $checked = '';
2240
 
@@ -2311,7 +2338,7 @@ if ( ! function_exists( 'user_registration_pro_get_checkbox_choices' ) ) {
2311
  */
2312
  function user_registration_pro_get_checkbox_choices( $form_id, $field_name ) {
2313
 
2314
- $form_data = user_registration_pro_get_field_data( $form_id, $field_name );
2315
  /* Backward Compatibility. Modified since 1.5.7. To be removed later. */
2316
  $advance_setting_choices = isset( $form_data->advance_setting->choices ) ? $form_data->advance_setting->choices : '';
2317
  $advance_setting_options = isset( $form_data->advance_setting->options ) ? $form_data->advance_setting->options : '';
@@ -2614,31 +2641,56 @@ if ( ! function_exists( 'ur_delete_user_files_on_user_delete' ) ) {
2614
  }
2615
  }
2616
 
2617
- if ( ! function_exists( 'user_registration_incremental_file_name' ) ) {
2618
 
2619
  /**
2620
- * Create a incremental file name
2621
  *
2622
- * @param [type] $upload_path Path to the upload directory.
2623
- * @param [type] $file Uploaded file.
2624
  */
2625
- function user_registration_incremental_file_name( $upload_path, $file ) {
2626
-
2627
- $file_name = sanitize_file_name( $file['name'] );
2628
- $file_ext = strtolower( pathinfo( $file['name'], PATHINFO_EXTENSION ) );
 
 
2629
 
2630
- $file_counter = 0;
2631
- while ( file_exists( $upload_path . $file_name ) ) {
2632
- $file_name = pathinfo( $file_name, PATHINFO_FILENAME );
 
 
 
 
 
2633
 
2634
- if ( 0 === $file_counter ) {
2635
- $file_name = $file_name . '-' . $file_counter;
2636
- }
 
2637
 
2638
- $file_name = substr( $file_name, 0, strpos( $file_name, '-' ) );
2639
- $file_name = $file_name . '-' . ( $file_counter++ ) . '.' . $file_ext;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2640
  }
2641
 
2642
- return $file_name;
2643
  }
2644
  }
413
  * @return string $field_type
414
  */
415
  function ur_get_field_type( $field_key ) {
 
416
  $fields = ur_get_registered_form_fields();
417
 
418
  $field_type = 'text';
1348
  static $logger = null;
1349
  if ( null === $logger ) {
1350
  $class = apply_filters( 'user_registration_logging_class', 'UR_Logger' );
1351
+ $implements = $class instanceof UR_Logger;
1352
  if ( is_array( $implements ) && in_array( 'UR_Logger_Interface', $implements ) ) {
1353
  if ( is_object( $class ) ) {
1354
  $logger = $class;
2027
  $valid_form_data = array();
2028
  if ( isset( $profile[ $post_key ] ) ) {
2029
  $field_type = $profile[ $post_key ]['type'];
2030
+
2031
+ switch ( $field_type ) {
2032
+ case 'checkbox':
2033
+ case 'multi_select2':
2034
+ if ( ! is_array( $value ) && ! empty( $value ) ) {
2035
+ $value = maybe_unserialize( $value );
2036
+ }
2037
+ break;
2038
+ case 'file':
2039
+ $files = explode( ',', $value );
2040
+
2041
+ if ( is_array( $files ) && isset( $files[0] ) ) {
2042
+ $attachment_ids = '';
2043
+
2044
+ foreach ( $files as $key => $file ) {
2045
+ $seperator = 0 < $key ? ',' : '';
2046
+
2047
+ if ( wp_http_validate_url( $file ) ) {
2048
+
2049
+ $attachment_ids = $attachment_ids . '' . $seperator . '' . attachment_url_to_postid( $file );
2050
+ }
2051
+ }
2052
+ $value = ! empty( $attachment_ids ) ? $attachment_ids : $value;
2053
+ } else {
2054
+
2055
+ if ( wp_http_validate_url( $value ) ) {
2056
+ $value = attachment_url_to_postid( $value );
2057
+ }
2058
+ }
2059
+ break;
2060
  }
2061
  $valid_form_data[ $new_string ] = new stdClass();
2062
  $valid_form_data[ $new_string ]->field_name = $new_string;
2126
 
2127
  // Process for file upload.
2128
  if ( isset( $form_data->extra_params['field_key'] ) && 'file' === $form_data->extra_params['field_key'] ) {
2129
+
2130
  $upload_data = array();
2131
  $file_data = explode( ',', $form_data->value );
2132
 
2261
  */
2262
  function user_registration_pro_render_conditional_logic( $connection, $integration, $form_id ) {
2263
  $output = '<div class="ur_conditional_logic_container">';
2264
+ $output .= '<h4>' . esc_html__( 'Conditional Logic', 'user-registration' ) . '</h4>';
2265
  $output .= '<div class="ur_use_conditional_logic_wrapper ur-check">';
2266
  $checked = '';
2267
 
2338
  */
2339
  function user_registration_pro_get_checkbox_choices( $form_id, $field_name ) {
2340
 
2341
+ $form_data = (object) user_registration_pro_get_field_data( $form_id, $field_name );
2342
  /* Backward Compatibility. Modified since 1.5.7. To be removed later. */
2343
  $advance_setting_choices = isset( $form_data->advance_setting->choices ) ? $form_data->advance_setting->choices : '';
2344
  $advance_setting_options = isset( $form_data->advance_setting->options ) ? $form_data->advance_setting->options : '';
2641
  }
2642
  }
2643
 
2644
+ if ( ! function_exists( 'ur_format_field_values' ) ) {
2645
 
2646
  /**
2647
+ * Get field type by meta key
2648
  *
2649
+ * @param int $field_meta_key Field key or meta key.
2650
+ * @param string $field_value Field's value .
2651
  */
2652
+ function ur_format_field_values( $field_meta_key, $field_value ) {
2653
+ if ( strpos( $field_meta_key, 'user_registration_' ) ) {
2654
+ $field_meta_key = substr( $field_meta_key, 0, strpos( $field_meta_key, 'user_registration_' ) );
2655
+ }
2656
+ $field_name = ur_get_field_data_by_field_name( ur_get_form_id_by_userid( get_current_user_id() ), $field_meta_key );
2657
+ $field_key = isset( $field_name['field_key'] ) ? $field_name['field_key'] : '';
2658
 
2659
+ switch ( $field_key ) {
2660
+ case 'country':
2661
+ $countries = UR_Form_Field_Country::get_instance()->get_country();
2662
+ $field_value = isset( $countries[ $field_value ] ) ? $countries[ $field_value ] : '';
2663
+ break;
2664
+ case 'file':
2665
+ $attachment_ids = explode( ',', $field_value );
2666
+ $links = array();
2667
 
2668
+ foreach ( $attachment_ids as $attachment_id ) {
2669
+ $attachment_url = '<a href="' . wp_get_attachment_url( $attachment_id ) . '">' . basename( get_attached_file( $attachment_id ) ) . '</a>';
2670
+ array_push( $links, $attachment_url );
2671
+ }
2672
 
2673
+ $field_value = implode( ', ', $links );
2674
+ break;
2675
+ case 'privacy_policy':
2676
+ if ( '1' === $field_value ) {
2677
+ $field_value = 'Checked';
2678
+ } else {
2679
+ $field_value = 'Not Checked';
2680
+ }
2681
+ break;
2682
+ case 'wysiwyg':
2683
+ $field_value = html_entity_decode( $field_value );
2684
+ break;
2685
+ case 'profile_picture':
2686
+ $field_value = '<img class="profile-preview" alt="Profile Picture" width="50px" height="50px" src="' . ( is_numeric( $field_value ) ? esc_url( wp_get_attachment_url( $field_value ) ) : esc_url( $field_value ) ) . '" />';
2687
+ $field_value = wp_kses_post( $field_value );
2688
+ break;
2689
+ default:
2690
+ $field_value = $field_value;
2691
+ break;
2692
  }
2693
 
2694
+ return $field_value;
2695
  }
2696
  }
includes/functions-ur-template.php CHANGED
@@ -74,6 +74,7 @@ function ur_login_template_redirect() {
74
  * @since 1.5.1
75
  */
76
  function ur_registration_template_redirect() {
 
77
  // Return if the user is not logged in.
78
  if ( is_user_logged_in() === false ) {
79
  return;
@@ -81,6 +82,7 @@ function ur_registration_template_redirect() {
81
 
82
  $current_user = wp_get_current_user();
83
  $current_user_id = $current_user->ID;
 
84
 
85
  // Donot redirect for admins.
86
  if ( in_array( 'administrator', wp_get_current_user()->roles ) ) {
@@ -91,11 +93,26 @@ function ur_registration_template_redirect() {
91
 
92
  $post_content = isset( $post->post_content ) ? $post->post_content : '';
93
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  if ( has_shortcode( $post_content, 'user_registration_form' ) ) {
95
 
96
  $attributes = ur_get_shortcode_attr( $post_content );
97
  $form_id = isset( $attributes[0]['id'] ) ? $attributes[0]['id'] : 0;
 
 
98
 
 
99
  preg_match_all( '!\d+!', $form_id, $form_id );
100
 
101
  $redirect_url = ur_get_single_post_meta( $form_id[0][0], 'user_registration_form_setting_redirect_options', '' );
@@ -243,8 +260,13 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
243
  }
244
  }
245
 
246
- $tooltip_html = ! empty( $args['tip'] ) ? ur_help_tip( $args['tip'] ) : '';
247
- $cl_html = '';
 
 
 
 
 
248
 
249
  if ( isset( $args['enable_conditional_logic'] ) && true === $args['enable_conditional_logic'] ) {
250
  $cl_map = isset( $args['cl_map'] ) ? $args['cl_map'] : '';
@@ -255,16 +277,11 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
255
  $label_id = $args['id'];
256
  $sort = $args['priority'] ? $args['priority'] : '';
257
  $field_container = '<div class="form-row %1$s" id="%2$s" data-priority="' . esc_attr( $sort ) . '" ' . $cl_html . '>%3$s</div>';
258
- $class = '';
259
  if ( ! is_admin() ) {
260
  $form_id = isset( $args['form_id'] ) ? $args['form_id'] : '';
261
- $enable_field_icon = ur_get_single_post_meta( $form_id, 'user_registration_enable_field_icon' );
262
 
263
- if ( '1' === $enable_field_icon ) {
264
- $class = '';
265
- } else {
266
- $class = 'without_icon';
267
- }
268
  }
269
 
270
  switch ( $args['type'] ) {
@@ -306,7 +323,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
306
 
307
  if ( 'yes' === $select_all ) {
308
  $field .= '<li class="ur-checkbox-list"><input type="checkbox" id="checkall" class="ur-input-checkbox" data-check="' . esc_attr( $key ) . '"/>';
309
- $field .= '<label class="ur-checkbox-label"> Select All</label></li>';
310
  }
311
  foreach ( $choices as $choice_index => $choice ) {
312
 
@@ -347,9 +364,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
347
  $field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" type="' . esc_attr( $args['type'] ) . '" class="input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" value="' . esc_attr( $value ) . '" ' . implode( ' ', $custom_attributes ) . ' />';
348
  }
349
  if ( ! is_admin() ) {
350
- if ( 'yes' === $enable_field_icon || '1' === $enable_field_icon ) {
351
- $field .= '<span class="' . $args['icon'] . '"></span>';
352
- }
353
  $field .= ' </span> ';
354
  }
355
  break;
@@ -410,9 +425,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
410
  }
411
 
412
  if ( ! is_admin() ) {
413
- if ( 'yes' === $enable_field_icon || '1' === $enable_field_icon && 'file' != $args['type'] ) {
414
- $field .= '<span class="' . esc_attr( $args['icon'] ) . '"></span>';
415
- }
416
  $field .= ' </span> ';
417
  }
418
  break;
@@ -451,10 +464,8 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
451
  $field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" type="text" data-field-type="' . esc_attr( $args['type'] ) . '" value="' . esc_attr( $actual_value ) . '" class="input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" ' . implode( ' ', $custom_attributes ) . ' style="display:none" />';
452
  }
453
 
454
- if ( 'yes' === $enable_field_icon || '1' === $enable_field_icon ) {
455
- if ( ! is_admin() ) {
456
- $field .= '<span class="' . esc_attr( $args['icon'] ) . '"></span>';
457
- }
458
  }
459
  $field .= '</span> ';
460
  break;
74
  * @since 1.5.1
75
  */
76
  function ur_registration_template_redirect() {
77
+
78
  // Return if the user is not logged in.
79
  if ( is_user_logged_in() === false ) {
80
  return;
82
 
83
  $current_user = wp_get_current_user();
84
  $current_user_id = $current_user->ID;
85
+ $form_id = 0;
86
 
87
  // Donot redirect for admins.
88
  if ( in_array( 'administrator', wp_get_current_user()->roles ) ) {
93
 
94
  $post_content = isset( $post->post_content ) ? $post->post_content : '';
95
 
96
+ $shortcodes = parse_blocks( $post_content );
97
+ $matched = false;
98
+ foreach ( $shortcodes as $shortcode ) {
99
+ if ( ! empty( $shortcode['blockName'] ) ) {
100
+ if ( 'user-registration/form-selector' === $shortcode['blockName'] && isset( $shortcode['attrs']['formId'] ) ) {
101
+ $matched = true;
102
+ $form_id = $shortcode['attrs']['formId'];
103
+
104
+ }
105
+ }
106
+ }
107
+
108
  if ( has_shortcode( $post_content, 'user_registration_form' ) ) {
109
 
110
  $attributes = ur_get_shortcode_attr( $post_content );
111
  $form_id = isset( $attributes[0]['id'] ) ? $attributes[0]['id'] : 0;
112
+ $matched = true;
113
+ }
114
 
115
+ if ( $matched ) {
116
  preg_match_all( '!\d+!', $form_id, $form_id );
117
 
118
  $redirect_url = ur_get_single_post_meta( $form_id[0][0], 'user_registration_form_setting_redirect_options', '' );
260
  }
261
  }
262
 
263
+ $tooltip_html = '';
264
+
265
+ if ( isset( $args['tooltip'] ) && 'yes' === $args['tooltip'] ) {
266
+ $tooltip_html = ur_help_tip( $args['tooltip_message'], false, 'ur-portal-tooltip' );
267
+ }
268
+
269
+ $cl_html = '';
270
 
271
  if ( isset( $args['enable_conditional_logic'] ) && true === $args['enable_conditional_logic'] ) {
272
  $cl_map = isset( $args['cl_map'] ) ? $args['cl_map'] : '';
277
  $label_id = $args['id'];
278
  $sort = $args['priority'] ? $args['priority'] : '';
279
  $field_container = '<div class="form-row %1$s" id="%2$s" data-priority="' . esc_attr( $sort ) . '" ' . $cl_html . '>%3$s</div>';
280
+ $class = '';
281
  if ( ! is_admin() ) {
282
  $form_id = isset( $args['form_id'] ) ? $args['form_id'] : '';
 
283
 
284
+ $class = apply_filters( 'user_registration_field_icon_enabled_class', $class, $form_id );
 
 
 
 
285
  }
286
 
287
  switch ( $args['type'] ) {
323
 
324
  if ( 'yes' === $select_all ) {
325
  $field .= '<li class="ur-checkbox-list"><input type="checkbox" id="checkall" class="ur-input-checkbox" data-check="' . esc_attr( $key ) . '"/>';
326
+ $field .= '<label class="ur-checkbox-label"> ' . esc_html__( 'Select All', 'user-registration' ) . '</label></li>';
327
  }
328
  foreach ( $choices as $choice_index => $choice ) {
329
 
364
  $field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" type="' . esc_attr( $args['type'] ) . '" class="input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" value="' . esc_attr( $value ) . '" ' . implode( ' ', $custom_attributes ) . ' />';
365
  }
366
  if ( ! is_admin() ) {
367
+ $field = apply_filters( 'user_registration_field_icon', $field, $form_id, $args );
 
 
368
  $field .= ' </span> ';
369
  }
370
  break;
425
  }
426
 
427
  if ( ! is_admin() ) {
428
+ $field = apply_filters( 'user_registration_field_icon', $field, $form_id, $args );
 
 
429
  $field .= ' </span> ';
430
  }
431
  break;
464
  $field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" type="text" data-field-type="' . esc_attr( $args['type'] ) . '" value="' . esc_attr( $actual_value ) . '" class="input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" ' . implode( ' ', $custom_attributes ) . ' style="display:none" />';
465
  }
466
 
467
+ if ( ! is_admin() ) {
468
+ $field = apply_filters( 'user_registration_field_icon', $field, $form_id, $args );
 
 
469
  }
470
  $field .= '</span> ';
471
  break;
includes/shortcodes/class-ur-shortcode-my-account.php CHANGED
@@ -57,7 +57,7 @@ class UR_Shortcode_My_Account {
57
  public static function output( $atts ) {
58
 
59
  global $wp, $post;
60
- wp_enqueue_script( 'jquery-tiptip' );
61
  wp_enqueue_script( 'user-registration' );
62
 
63
  if ( ! is_user_logged_in() ) {
@@ -192,7 +192,9 @@ class UR_Shortcode_My_Account {
192
  // Prepare values.
193
  foreach ( $profile as $key => $field ) {
194
  if ( isset( $field['custom_attributes']['data-locale'] ) ) {
195
- wp_enqueue_script( 'flatpickr-localization_' . $field['custom_attributes']['data-locale'], 'https://npmcdn.com/flatpickr/dist/l10n/' . $field['custom_attributes']['data-locale'] . '.js', array(), '4.6.13' );
 
 
196
  }
197
  $value = get_user_meta( get_current_user_id(), $key, true );
198
  $profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $value, $key );
57
  public static function output( $atts ) {
58
 
59
  global $wp, $post;
60
+ wp_enqueue_script( 'tooltipster' );
61
  wp_enqueue_script( 'user-registration' );
62
 
63
  if ( ! is_user_logged_in() ) {
192
  // Prepare values.
193
  foreach ( $profile as $key => $field ) {
194
  if ( isset( $field['custom_attributes']['data-locale'] ) ) {
195
+ if ( wp_script_is( 'flatpickr' ) && 'en' !== $field['custom_attributes']['data-locale'] ) {
196
+ wp_enqueue_script( 'flatpickr-localization_' . $field['custom_attributes']['data-locale'], UR()->plugin_url() . '/assets/js/flatpickr/dist/I10n/' . $field['custom_attributes']['data-locale'] . '.js', array(), UR_VERSION, true );
197
+ }
198
  }
199
  $value = get_user_meta( get_current_user_id(), $key, true );
200
  $profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $value, $key );
languages/user-registration.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the User Registration plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: User Registration 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/user-registration\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-07-28T09:07:20+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: user-registration\n"
@@ -37,12 +37,12 @@ msgstr ""
37
  msgid "https://wpeverest.com"
38
  msgstr ""
39
 
40
- #: includes/abstracts/abstract-ur-form-field.php:649
41
  #: src/components/App.js:60
42
  msgid "General Settings"
43
  msgstr ""
44
 
45
- #: includes/abstracts/abstract-ur-form-field.php:659
46
  msgid "Advance Settings"
47
  msgstr ""
48
 
@@ -112,94 +112,94 @@ msgstr ""
112
  msgid "Could not verify nonce"
113
  msgstr ""
114
 
115
- #: includes/admin/class-ur-admin-assets.php:195
116
  msgid "Upload Profile Picture"
117
  msgstr ""
118
 
119
- #: includes/admin/class-ur-admin-assets.php:196
120
  msgid "Select Image"
121
  msgstr ""
122
 
123
- #: includes/admin/class-ur-admin-assets.php:219
124
  msgctxt "enhanced select"
125
  msgid "No matches found"
126
  msgstr ""
127
 
128
- #: includes/admin/class-ur-admin-assets.php:220
129
  msgctxt "enhanced select"
130
  msgid "Loading failed"
131
  msgstr ""
132
 
133
- #: includes/admin/class-ur-admin-assets.php:221
134
  msgctxt "enhanced select"
135
  msgid "Please enter 1 or more characters"
136
  msgstr ""
137
 
138
- #: includes/admin/class-ur-admin-assets.php:222
139
  msgctxt "enhanced select"
140
  msgid "Please enter %qty% or more characters"
141
  msgstr ""
142
 
143
- #: includes/admin/class-ur-admin-assets.php:223
144
  msgctxt "enhanced select"
145
  msgid "Please delete 1 character"
146
  msgstr ""
147
 
148
- #: includes/admin/class-ur-admin-assets.php:224
149
  msgctxt "enhanced select"
150
  msgid "Please delete %qty% characters"
151
  msgstr ""
152
 
153
- #: includes/admin/class-ur-admin-assets.php:225
154
  msgctxt "enhanced select"
155
  msgid "You can only select 1 item"
156
  msgstr ""
157
 
158
- #: includes/admin/class-ur-admin-assets.php:226
159
  msgctxt "enhanced select"
160
  msgid "You can only select %qty% items"
161
  msgstr ""
162
 
163
- #: includes/admin/class-ur-admin-assets.php:227
164
  msgctxt "enhanced select"
165
  msgid "Loading more results&hellip;"
166
  msgstr ""
167
 
168
- #: includes/admin/class-ur-admin-assets.php:228
169
  msgctxt "enhanced select"
170
  msgid "Searching&hellip;"
171
  msgstr ""
172
 
173
- #: includes/admin/class-ur-admin-assets.php:240
174
  msgid "Could not install."
175
  msgstr ""
176
 
177
- #: includes/admin/class-ur-admin-assets.php:270
178
  msgid "Keyboard Shortcut Keys"
179
  msgstr ""
180
 
181
- #: includes/admin/class-ur-admin-assets.php:272
182
  msgid "Save Builder"
183
  msgstr ""
184
 
185
- #: includes/admin/class-ur-admin-assets.php:273
186
  msgid "Close Builder"
187
  msgstr ""
188
 
189
- #: includes/admin/class-ur-admin-assets.php:274
190
  #: includes/admin/views/html-admin-page-forms.php:46
191
  msgid "Preview Form"
192
  msgstr ""
193
 
194
- #: includes/admin/class-ur-admin-assets.php:275
195
  msgid "Go to Users"
196
  msgstr ""
197
 
198
- #: includes/admin/class-ur-admin-assets.php:276
199
  msgid "Open Help"
200
  msgstr ""
201
 
202
- #: includes/admin/class-ur-admin-assets.php:278
203
  #: includes/admin/class-ur-admin-menus.php:432
204
  #: includes/admin/class-ur-admin-menus.php:433
205
  #: includes/admin/class-ur-admin-menus.php:773
@@ -207,167 +207,167 @@ msgstr ""
207
  msgid "Add New"
208
  msgstr ""
209
 
210
- #: includes/admin/class-ur-admin-assets.php:296
211
  #: includes/admin/views/html-admin-page-import-export-forms.php:50
212
  msgid "No file selected."
213
  msgstr ""
214
 
215
- #: includes/admin/class-ur-admin-assets.php:308
216
  msgid "Enabled"
217
  msgstr ""
218
 
219
- #: includes/admin/class-ur-admin-assets.php:309
220
  msgid "Disabled"
221
  msgstr ""
222
 
223
- #: includes/admin/class-ur-admin-assets.php:378
224
  msgid "Clone"
225
  msgstr ""
226
 
227
- #: includes/admin/class-ur-admin-assets.php:378
228
  #: includes/admin/class-ur-admin-registrations-table-list.php:107
229
  msgid "Trash"
230
  msgstr ""
231
 
232
- #: includes/admin/class-ur-admin-assets.php:400
233
  msgid "Delete"
234
  msgstr ""
235
 
236
- #: includes/admin/class-ur-admin-assets.php:401
237
  #: includes/admin/class-ur-admin-form-modal.php:98
238
  msgid "Cancel"
239
  msgstr ""
240
 
241
- #: includes/admin/class-ur-admin-assets.php:402
242
  msgctxt "user-registration admin"
243
  msgid "User Email"
244
  msgstr ""
245
 
246
- #: includes/admin/class-ur-admin-assets.php:403
247
  msgctxt "user-registration admin"
248
  msgid "User Password"
249
  msgstr ""
250
 
251
- #: includes/admin/class-ur-admin-assets.php:404
252
  msgctxt "user-registration admin"
253
  msgid "Payment"
254
  msgstr ""
255
 
256
- #: includes/admin/class-ur-admin-assets.php:405
257
  msgctxt "user-registration admin"
258
  msgid "Stripe Gateway"
259
  msgstr ""
260
 
261
- #: includes/admin/class-ur-admin-assets.php:406
262
  msgctxt "user registration admin"
263
  msgid "Are you sure want to delete this row?"
264
  msgstr ""
265
 
266
- #: includes/admin/class-ur-admin-assets.php:407
267
  msgctxt "user registration admin"
268
  msgid "Are you sure want to delete this field?"
269
  msgstr ""
270
 
271
- #: includes/admin/class-ur-admin-assets.php:408
272
  msgctxt "user registration admin"
273
  msgid "At least one row is required to create a registration form."
274
  msgstr ""
275
 
276
- #: includes/admin/class-ur-admin-assets.php:409
277
  msgctxt "user registration admin"
278
  msgid "Cannot delete row"
279
  msgstr ""
280
 
281
- #: includes/admin/class-ur-admin-assets.php:410
282
  msgctxt "user registration admin"
283
  msgid "This field is one time draggable."
284
  msgstr ""
285
 
286
- #: includes/admin/class-ur-admin-assets.php:411
287
  msgctxt "user registration admin"
288
  msgid "Could not clone this field."
289
  msgstr ""
290
 
291
- #: includes/admin/class-ur-admin-assets.php:412
292
  msgctxt "user registration admin"
293
  msgid "Form successfully saved."
294
  msgstr ""
295
 
296
- #: includes/admin/class-ur-admin-assets.php:413
297
  msgctxt "user registration admin"
298
  msgid "Success"
299
  msgstr ""
300
 
301
- #: includes/admin/class-ur-admin-assets.php:414
302
  msgctxt "user registration admin"
303
  msgid "Error"
304
  msgstr ""
305
 
306
- #: includes/admin/class-ur-admin-assets.php:415
307
  msgid "Confirm Deletion"
308
  msgstr ""
309
 
310
- #: includes/admin/class-ur-admin-assets.php:416
311
  msgctxt "user registration admin"
312
  msgid "At least one field needs to be selected."
313
  msgstr ""
314
 
315
- #: includes/admin/class-ur-admin-assets.php:417
316
  msgctxt "user registration admin"
317
  msgid "Empty form name."
318
  msgstr ""
319
 
320
- #: includes/admin/class-ur-admin-assets.php:418
321
  msgctxt "user registration admin"
322
  msgid "Previous save action on going."
323
  msgstr ""
324
 
325
- #: includes/admin/class-ur-admin-assets.php:419
326
  msgctxt "user registration admin"
327
  msgid "Duplicate field name."
328
  msgstr ""
329
 
330
- #: includes/admin/class-ur-admin-assets.php:420
331
  msgctxt "user registration admin"
332
  msgid "Empty field label."
333
  msgstr ""
334
 
335
- #: includes/admin/class-ur-admin-assets.php:421
336
  msgctxt "user registration admin"
337
  msgid "Invalid field name. Please do not use space, empty or special character, you can use underscore."
338
  msgstr ""
339
 
340
- #: includes/admin/class-ur-admin-assets.php:422
341
  msgctxt "user registration admin"
342
  msgid "Multiple field key "
343
  msgstr ""
344
 
345
- #: includes/admin/class-ur-admin-assets.php:423
346
  msgctxt "user registration admin"
347
  msgid "field is required."
348
  msgstr ""
349
 
350
- #: includes/admin/class-ur-admin-assets.php:424
351
  msgctxt "user registration admin"
352
  msgid "Drag your first form item here."
353
  msgstr ""
354
 
355
- #: includes/admin/class-ur-admin-assets.php:425
356
  msgctxt "user registration admin"
357
  msgid "Please select at least one country."
358
  msgstr ""
359
 
360
- #: includes/admin/class-ur-admin-assets.php:426
361
  msgctxt "user registration admin"
362
  msgid "input size must be greater than zero."
363
  msgstr ""
364
 
365
- #: includes/admin/class-ur-admin-assets.php:427
366
  msgctxt "user registration admin"
367
  msgid "input of min value must be less than max value."
368
  msgstr ""
369
 
370
- #: includes/admin/class-ur-admin-assets.php:428
371
  msgctxt "user registration admin"
372
  msgid "input of max upload size must less than "
373
  msgstr ""
@@ -452,7 +452,7 @@ msgid "User Registration settings"
452
  msgstr ""
453
 
454
  #: includes/admin/class-ur-admin-menus.php:399
455
- #: includes/class-ur-install.php:651
456
  msgid "Settings"
457
  msgstr ""
458
 
@@ -526,9 +526,9 @@ msgstr ""
526
 
527
  #: includes/admin/class-ur-admin-profile.php:155
528
  #: includes/admin/class-ur-admin-profile.php:167
529
- #: includes/form/class-ur-form-field-select.php:35
530
- #: includes/form/class-ur-form-field-select.php:40
531
- #: includes/functions-ur-core.php:718
532
  msgid "Select"
533
  msgstr ""
534
 
@@ -549,9 +549,9 @@ msgid "Author"
549
  msgstr ""
550
 
551
  #: includes/admin/class-ur-admin-registrations-table-list.php:54
552
- #: includes/form/class-ur-form-field-date.php:37
553
- #: includes/form/class-ur-form-field-date.php:42
554
- #: includes/functions-ur-core.php:722
555
  msgid "Date"
556
  msgstr ""
557
 
@@ -930,7 +930,7 @@ msgstr ""
930
 
931
  #: includes/admin/settings/class-ur-settings-email.php:180
932
  #: includes/admin/settings/class-ur-settings-general.php:301
933
- #: includes/functions-ur-core.php:1152
934
  msgid "Email"
935
  msgstr ""
936
 
@@ -968,26 +968,28 @@ msgid "User Approval And Login Option"
968
  msgstr ""
969
 
970
  #: includes/admin/settings/class-ur-settings-general.php:75
971
- #: includes/functions-ur-core.php:955
972
  #: includes/RestApi/class-ur-rest-api.php:200
973
  msgid "This option lets you choose login option after user registration."
974
  msgstr ""
975
 
976
  #: includes/admin/settings/class-ur-settings-general.php:85
977
- #: includes/functions-ur-core.php:967
978
  msgid "Send User Approval Link in Email"
979
  msgstr ""
980
 
981
  #: includes/admin/settings/class-ur-settings-general.php:86
982
- #: includes/functions-ur-core.php:971
983
  msgid "Check to receive a link with token in email to approve the users directly."
984
  msgstr ""
985
 
986
  #: includes/admin/settings/class-ur-settings-general.php:94
 
987
  msgid "Prevent WP Dashboard Access"
988
  msgstr ""
989
 
990
  #: includes/admin/settings/class-ur-settings-general.php:95
 
991
  msgid "Selected user roles will not be able to view and access the WP Dashboard area."
992
  msgstr ""
993
 
@@ -1077,7 +1079,7 @@ msgstr ""
1077
 
1078
  #: includes/admin/settings/class-ur-settings-general.php:187
1079
  #: includes/class-ur-query.php:72
1080
- #: includes/functions-ur-account.php:120
1081
  #: templates/myaccount/form-edit-password.php:35
1082
  msgid "Change Password"
1083
  msgstr ""
@@ -1163,7 +1165,7 @@ msgid "Error Messages"
1163
  msgstr ""
1164
 
1165
  #: includes/admin/settings/class-ur-settings-general.php:283
1166
- #: includes/functions-ur-core.php:779
1167
  msgid "Required"
1168
  msgstr ""
1169
 
@@ -1211,9 +1213,9 @@ msgid "Please enter a valid URL."
1211
  msgstr ""
1212
 
1213
  #: includes/admin/settings/class-ur-settings-general.php:321
1214
- #: includes/form/class-ur-form-field-number.php:37
1215
- #: includes/form/class-ur-form-field-number.php:42
1216
- #: includes/functions-ur-core.php:721
1217
  msgid "Number"
1218
  msgstr ""
1219
 
@@ -1227,7 +1229,7 @@ msgid "Please enter a valid number."
1227
  msgstr ""
1228
 
1229
  #: includes/admin/settings/class-ur-settings-general.php:331
1230
- #: includes/form/class-ur-form-field-user-confirm-email.php:54
1231
  msgid "Confirm Email"
1232
  msgstr ""
1233
 
@@ -1241,7 +1243,7 @@ msgid "Email and confirm email not matched."
1241
  msgstr ""
1242
 
1243
  #: includes/admin/settings/class-ur-settings-general.php:341
1244
- #: includes/form/class-ur-form-field-user-confirm-password.php:40
1245
  msgid "Confirm Password"
1246
  msgstr ""
1247
 
@@ -1271,7 +1273,7 @@ msgid "Captcha code error, please try again."
1271
  msgstr ""
1272
 
1273
  #: includes/admin/settings/class-ur-settings-general.php:385
1274
- #: includes/functions-ur-core.php:1085
1275
  #: includes/RestApi/class-ur-rest-api.php:220
1276
  #: includes/RestApi/class-ur-rest-api.php:267
1277
  msgid "Form Template"
@@ -1283,35 +1285,35 @@ msgid "Choose the login form template."
1283
  msgstr ""
1284
 
1285
  #: includes/admin/settings/class-ur-settings-general.php:393
1286
- #: includes/functions-ur-core.php:1092
1287
  #: includes/RestApi/class-ur-rest-api.php:226
1288
  #: includes/RestApi/class-ur-rest-api.php:273
1289
  msgid "Default"
1290
  msgstr ""
1291
 
1292
  #: includes/admin/settings/class-ur-settings-general.php:394
1293
- #: includes/functions-ur-core.php:1093
1294
  #: includes/RestApi/class-ur-rest-api.php:227
1295
  #: includes/RestApi/class-ur-rest-api.php:274
1296
  msgid "Bordered"
1297
  msgstr ""
1298
 
1299
  #: includes/admin/settings/class-ur-settings-general.php:395
1300
- #: includes/functions-ur-core.php:1094
1301
  #: includes/RestApi/class-ur-rest-api.php:228
1302
  #: includes/RestApi/class-ur-rest-api.php:275
1303
  msgid "Flat"
1304
  msgstr ""
1305
 
1306
  #: includes/admin/settings/class-ur-settings-general.php:396
1307
- #: includes/functions-ur-core.php:1095
1308
  #: includes/RestApi/class-ur-rest-api.php:229
1309
  #: includes/RestApi/class-ur-rest-api.php:276
1310
  msgid "Rounded"
1311
  msgstr ""
1312
 
1313
  #: includes/admin/settings/class-ur-settings-general.php:397
1314
- #: includes/functions-ur-core.php:1096
1315
  #: includes/RestApi/class-ur-rest-api.php:230
1316
  #: includes/RestApi/class-ur-rest-api.php:277
1317
  msgid "Rounded Edge"
@@ -1443,7 +1445,7 @@ msgstr ""
1443
 
1444
  #: includes/admin/settings/class-ur-settings-general.php:517
1445
  #: includes/admin/settings/class-ur-settings-general.php:523
1446
- #: includes/functions-ur-core.php:1150
1447
  msgid "Username or Email"
1448
  msgstr ""
1449
 
@@ -1453,7 +1455,7 @@ msgstr ""
1453
 
1454
  #: includes/admin/settings/class-ur-settings-general.php:527
1455
  #: includes/admin/settings/class-ur-settings-general.php:533
1456
- #: includes/functions-ur-core.php:716
1457
  #: templates/myaccount/form-login.php:40
1458
  msgid "Password"
1459
  msgstr ""
@@ -1517,8 +1519,8 @@ msgid "This option lets you set placeholder for the \"Username or Email\" field.
1517
  msgstr ""
1518
 
1519
  #: includes/admin/settings/class-ur-settings-general.php:583
1520
- #: includes/form/class-ur-form-field-password.php:35
1521
- #: includes/form/class-ur-form-field-password.php:40
1522
  msgid "Password Field"
1523
  msgstr ""
1524
 
@@ -1810,7 +1812,7 @@ msgid "The email subject you want to customize."
1810
  msgstr ""
1811
 
1812
  #: includes/admin/settings/emails/class-ur-settings-admin-email.php:69
1813
- #: includes/class-ur-emailer.php:349
1814
  msgid "A New User Registered"
1815
  msgstr ""
1816
 
@@ -1875,7 +1877,7 @@ msgid "Enable this email sent to user notifying the registration is awaiting adm
1875
  msgstr ""
1876
 
1877
  #: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:60
1878
- #: includes/class-ur-emailer.php:286
1879
  msgid "Thank you for registration on {{blog_info}}"
1880
  msgstr ""
1881
 
@@ -1903,7 +1905,7 @@ msgid "Confirmation Email"
1903
  msgstr ""
1904
 
1905
  #: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:51
1906
- #: includes/class-ur-emailer.php:273
1907
  msgid "Please confirm your registration on {{blog_info}}"
1908
  msgstr ""
1909
 
@@ -1932,7 +1934,7 @@ msgid "Enable this email sent to the admin when a user changed profile informati
1932
  msgstr ""
1933
 
1934
  #: includes/admin/settings/emails/class-ur-settings-profile-details-changed-email.php:70
1935
- #: includes/class-ur-emailer.php:516
1936
  msgid "Profile Details Changed Email: {{blog_info}}"
1937
  msgstr ""
1938
 
@@ -1962,7 +1964,7 @@ msgid "Enable this email sent to the user notifying the registration is approved
1962
  msgstr ""
1963
 
1964
  #: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:60
1965
- #: includes/class-ur-emailer.php:434
1966
  msgid "Congratulations! Registration approved on {{blog_info}}"
1967
  msgstr ""
1968
 
@@ -1991,8 +1993,8 @@ msgid "Enable this email sent to the user notifying the registration is denied b
1991
  msgstr ""
1992
 
1993
  #: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:60
1994
- #: includes/class-ur-emailer.php:299
1995
- #: includes/class-ur-emailer.php:421
1996
  msgid "Sorry! Registration denied on {{blog_info}}"
1997
  msgstr ""
1998
 
@@ -2021,7 +2023,7 @@ msgid "Enable this email sent to the user notifying the registration is pending.
2021
  msgstr ""
2022
 
2023
  #: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:61
2024
- #: includes/class-ur-emailer.php:408
2025
  msgid "Sorry! Registration changed to pending on {{blog_info}}"
2026
  msgstr ""
2027
 
@@ -2052,7 +2054,7 @@ msgid "Enable this email sent to the user when a user requests for reset passwor
2052
  msgstr ""
2053
 
2054
  #: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:59
2055
- #: includes/class-ur-emailer.php:466
2056
  msgid "Password Reset Email: {{blog_info}}"
2057
  msgstr ""
2058
 
@@ -2085,7 +2087,7 @@ msgid "Enable this email sent to the user after successful user registration."
2085
  msgstr ""
2086
 
2087
  #: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:60
2088
- #: includes/class-ur-emailer.php:312
2089
  msgid "Congratulations! Registration Complete on {{blog_info}}"
2090
  msgstr ""
2091
 
@@ -2410,12 +2412,12 @@ msgstr ""
2410
  #. translators: 1: Link and username of user 2: Logout url
2411
  #: includes/class-ur-ajax.php:188
2412
  #: includes/class-ur-shortcodes.php:191
2413
- #: includes/functions-ur-account.php:121
2414
  msgid "Logout"
2415
  msgstr ""
2416
 
2417
  #: includes/class-ur-ajax.php:297
2418
- #: includes/form/class-ur-form-field-user-email.php:68
2419
  msgid "Email already exists."
2420
  msgstr ""
2421
 
@@ -2602,8 +2604,8 @@ msgstr ""
2602
  msgid "Email not verified! Verify your email by clicking on the link sent to your email."
2603
  msgstr ""
2604
 
2605
- #: includes/class-ur-emailer.php:639
2606
- #: includes/functions-ur-core.php:2125
2607
  msgid "Chosen Password"
2608
  msgstr ""
2609
 
@@ -2626,7 +2628,7 @@ msgstr ""
2626
  #. translators: %s - Field Label
2627
  #. translators: %s - Field Label
2628
  #: includes/class-ur-form-handler.php:233
2629
- #: includes/frontend/class-ur-frontend-form-handler.php:474
2630
  msgid "%s is a required field."
2631
  msgstr ""
2632
 
@@ -2745,25 +2747,25 @@ msgid "Please enter a stronger password."
2745
  msgstr ""
2746
 
2747
  #: includes/class-ur-frontend-scripts.php:393
2748
- #: includes/functions-ur-core.php:1009
2749
  #: includes/RestApi/class-ur-rest-api.php:247
2750
  msgid "Very Weak"
2751
  msgstr ""
2752
 
2753
  #: includes/class-ur-frontend-scripts.php:394
2754
- #: includes/functions-ur-core.php:1010
2755
  #: includes/RestApi/class-ur-rest-api.php:248
2756
  msgid "Weak"
2757
  msgstr ""
2758
 
2759
  #: includes/class-ur-frontend-scripts.php:395
2760
- #: includes/functions-ur-core.php:1011
2761
  #: includes/RestApi/class-ur-rest-api.php:249
2762
  msgid "Medium"
2763
  msgstr ""
2764
 
2765
  #: includes/class-ur-frontend-scripts.php:396
2766
- #: includes/functions-ur-core.php:1012
2767
  #: includes/RestApi/class-ur-rest-api.php:250
2768
  msgid "Strong"
2769
  msgstr ""
@@ -2800,27 +2802,27 @@ msgctxt "Page title"
2800
  msgid "Registration"
2801
  msgstr ""
2802
 
2803
- #: includes/class-ur-install.php:376
2804
  msgid "Default form"
2805
  msgstr ""
2806
 
2807
- #: includes/class-ur-install.php:651
2808
  msgid "View User Registration settings"
2809
  msgstr ""
2810
 
2811
- #: includes/class-ur-install.php:667
2812
  msgid "View User Registration documentation"
2813
  msgstr ""
2814
 
2815
- #: includes/class-ur-install.php:667
2816
  msgid "Docs"
2817
  msgstr ""
2818
 
2819
- #: includes/class-ur-install.php:668
2820
  msgid "Visit free customer support"
2821
  msgstr ""
2822
 
2823
- #: includes/class-ur-install.php:668
2824
  msgid "Free support"
2825
  msgstr ""
2826
 
@@ -2876,13 +2878,13 @@ msgstr ""
2876
  #. translators: %1$s: Activation error message
2877
  #. translators: %1$s: Activation error message
2878
  #: includes/class-ur-plugin-updater.php:366
2879
- #: includes/functions-ur-core.php:2411
2880
- #: includes/functions-ur-core.php:2430
2881
- #: includes/functions-ur-core.php:2453
2882
- #: includes/functions-ur-core.php:2471
2883
- #: includes/functions-ur-core.php:2477
2884
- #: includes/functions-ur-core.php:2482
2885
- #: includes/functions-ur-core.php:2495
2886
  msgid "<strong>Activation error:</strong> %1$s"
2887
  msgstr ""
2888
 
@@ -3147,7 +3149,7 @@ msgid "Please see the <a href=\"https://mailchimp.com/legal/privacy/\">MailChimp
3147
  msgstr ""
3148
 
3149
  #: includes/class-ur-query.php:75
3150
- #: includes/functions-ur-account.php:119
3151
  msgid "Profile Details"
3152
  msgstr ""
3153
 
@@ -3175,1148 +3177,1195 @@ msgstr ""
3175
  msgid "Your account is still awaiting admin approval. Reset Password is not allowed."
3176
  msgstr ""
3177
 
3178
- #: includes/form/class-ur-form-field-checkbox.php:35
3179
- #: includes/form/class-ur-form-field-checkbox.php:40
3180
- #: includes/functions-ur-core.php:723
3181
  msgid "Checkbox"
3182
  msgstr ""
3183
 
3184
- #: includes/form/class-ur-form-field-checkbox.php:43
3185
- #: includes/form/class-ur-form-field-radio.php:46
3186
- #: includes/form/class-ur-form-field-select.php:43
3187
- #: includes/functions-ur-core.php:832
3188
  msgid "First Choice"
3189
  msgstr ""
3190
 
3191
- #: includes/form/class-ur-form-field-checkbox.php:44
3192
- #: includes/form/class-ur-form-field-radio.php:47
3193
- #: includes/form/class-ur-form-field-select.php:44
3194
- #: includes/functions-ur-core.php:833
3195
  msgid "Second Choice"
3196
  msgstr ""
3197
 
3198
- #: includes/form/class-ur-form-field-checkbox.php:45
3199
- #: includes/form/class-ur-form-field-radio.php:48
3200
- #: includes/form/class-ur-form-field-select.php:45
3201
- #: includes/functions-ur-core.php:834
3202
  msgid "Third Choice"
3203
  msgstr ""
3204
 
3205
- #: includes/form/class-ur-form-field-country.php:35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3206
  msgid "Afghanistan"
3207
  msgstr ""
3208
 
3209
- #: includes/form/class-ur-form-field-country.php:36
3210
  msgid "&#197;land Islands"
3211
  msgstr ""
3212
 
3213
- #: includes/form/class-ur-form-field-country.php:37
3214
  msgid "Albania"
3215
  msgstr ""
3216
 
3217
- #: includes/form/class-ur-form-field-country.php:38
3218
  msgid "Algeria"
3219
  msgstr ""
3220
 
3221
- #: includes/form/class-ur-form-field-country.php:39
3222
  msgid "American Samoa"
3223
  msgstr ""
3224
 
3225
- #: includes/form/class-ur-form-field-country.php:40
3226
  msgid "Andorra"
3227
  msgstr ""
3228
 
3229
- #: includes/form/class-ur-form-field-country.php:41
3230
  msgid "Angola"
3231
  msgstr ""
3232
 
3233
- #: includes/form/class-ur-form-field-country.php:42
3234
  msgid "Anguilla"
3235
  msgstr ""
3236
 
3237
- #: includes/form/class-ur-form-field-country.php:43
3238
  msgid "Antarctica"
3239
  msgstr ""
3240
 
3241
- #: includes/form/class-ur-form-field-country.php:44
3242
  msgid "Antigua and Barbuda"
3243
  msgstr ""
3244
 
3245
- #: includes/form/class-ur-form-field-country.php:45
3246
  msgid "Argentina"
3247
  msgstr ""
3248
 
3249
- #: includes/form/class-ur-form-field-country.php:46
3250
  msgid "Armenia"
3251
  msgstr ""
3252
 
3253
- #: includes/form/class-ur-form-field-country.php:47
3254
  msgid "Aruba"
3255
  msgstr ""
3256
 
3257
- #: includes/form/class-ur-form-field-country.php:48
3258
  msgid "Australia"
3259
  msgstr ""
3260
 
3261
- #: includes/form/class-ur-form-field-country.php:49
3262
  msgid "Austria"
3263
  msgstr ""
3264
 
3265
- #: includes/form/class-ur-form-field-country.php:50
3266
  msgid "Azerbaijan"
3267
  msgstr ""
3268
 
3269
- #: includes/form/class-ur-form-field-country.php:51
3270
  msgid "Bahamas"
3271
  msgstr ""
3272
 
3273
- #: includes/form/class-ur-form-field-country.php:52
3274
  msgid "Bahrain"
3275
  msgstr ""
3276
 
3277
- #: includes/form/class-ur-form-field-country.php:53
3278
  msgid "Bangladesh"
3279
  msgstr ""
3280
 
3281
- #: includes/form/class-ur-form-field-country.php:54
3282
  msgid "Barbados"
3283
  msgstr ""
3284
 
3285
- #: includes/form/class-ur-form-field-country.php:55
3286
  msgid "Belarus"
3287
  msgstr ""
3288
 
3289
- #: includes/form/class-ur-form-field-country.php:56
3290
  msgid "Belgium"
3291
  msgstr ""
3292
 
3293
- #: includes/form/class-ur-form-field-country.php:57
3294
  msgid "Belau"
3295
  msgstr ""
3296
 
3297
- #: includes/form/class-ur-form-field-country.php:58
3298
  msgid "Belize"
3299
  msgstr ""
3300
 
3301
- #: includes/form/class-ur-form-field-country.php:59
3302
  msgid "Benin"
3303
  msgstr ""
3304
 
3305
- #: includes/form/class-ur-form-field-country.php:60
3306
  msgid "Bermuda"
3307
  msgstr ""
3308
 
3309
- #: includes/form/class-ur-form-field-country.php:61
3310
  msgid "Bhutan"
3311
  msgstr ""
3312
 
3313
- #: includes/form/class-ur-form-field-country.php:62
3314
  msgid "Bolivia"
3315
  msgstr ""
3316
 
3317
- #: includes/form/class-ur-form-field-country.php:63
3318
  msgid "Bonaire, Saint Eustatius and Saba"
3319
  msgstr ""
3320
 
3321
- #: includes/form/class-ur-form-field-country.php:64
3322
  msgid "Bosnia and Herzegovina"
3323
  msgstr ""
3324
 
3325
- #: includes/form/class-ur-form-field-country.php:65
3326
  msgid "Botswana"
3327
  msgstr ""
3328
 
3329
- #: includes/form/class-ur-form-field-country.php:66
3330
  msgid "Bouvet Island"
3331
  msgstr ""
3332
 
3333
- #: includes/form/class-ur-form-field-country.php:67
3334
  msgid "Brazil"
3335
  msgstr ""
3336
 
3337
- #: includes/form/class-ur-form-field-country.php:68
3338
  msgid "British Indian Ocean Territory"
3339
  msgstr ""
3340
 
3341
- #: includes/form/class-ur-form-field-country.php:69
3342
  msgid "British Virgin Islands"
3343
  msgstr ""
3344
 
3345
- #: includes/form/class-ur-form-field-country.php:70
3346
  msgid "Brunei"
3347
  msgstr ""
3348
 
3349
- #: includes/form/class-ur-form-field-country.php:71
3350
  msgid "Bulgaria"
3351
  msgstr ""
3352
 
3353
- #: includes/form/class-ur-form-field-country.php:72
3354
  msgid "Burkina Faso"
3355
  msgstr ""
3356
 
3357
- #: includes/form/class-ur-form-field-country.php:73
3358
  msgid "Burundi"
3359
  msgstr ""
3360
 
3361
- #: includes/form/class-ur-form-field-country.php:74
3362
  msgid "Cambodia"
3363
  msgstr ""
3364
 
3365
- #: includes/form/class-ur-form-field-country.php:75
3366
  msgid "Cameroon"
3367
  msgstr ""
3368
 
3369
- #: includes/form/class-ur-form-field-country.php:76
3370
  msgid "Canada"
3371
  msgstr ""
3372
 
3373
- #: includes/form/class-ur-form-field-country.php:77
3374
  msgid "Cape Verde"
3375
  msgstr ""
3376
 
3377
- #: includes/form/class-ur-form-field-country.php:78
3378
  msgid "Cayman Islands"
3379
  msgstr ""
3380
 
3381
- #: includes/form/class-ur-form-field-country.php:79
3382
  msgid "Central African Republic"
3383
  msgstr ""
3384
 
3385
- #: includes/form/class-ur-form-field-country.php:80
3386
  msgid "Chad"
3387
  msgstr ""
3388
 
3389
- #: includes/form/class-ur-form-field-country.php:81
3390
  msgid "Chile"
3391
  msgstr ""
3392
 
3393
- #: includes/form/class-ur-form-field-country.php:82
3394
  msgid "China"
3395
  msgstr ""
3396
 
3397
- #: includes/form/class-ur-form-field-country.php:83
3398
  msgid "Christmas Island"
3399
  msgstr ""
3400
 
3401
- #: includes/form/class-ur-form-field-country.php:84
3402
  msgid "Cocos (Keeling) Islands"
3403
  msgstr ""
3404
 
3405
- #: includes/form/class-ur-form-field-country.php:85
3406
  msgid "Colombia"
3407
  msgstr ""
3408
 
3409
- #: includes/form/class-ur-form-field-country.php:86
3410
  msgid "Comoros"
3411
  msgstr ""
3412
 
3413
- #: includes/form/class-ur-form-field-country.php:87
3414
  msgid "Congo (Brazzaville)"
3415
  msgstr ""
3416
 
3417
- #: includes/form/class-ur-form-field-country.php:88
3418
  msgid "Congo (Kinshasa)"
3419
  msgstr ""
3420
 
3421
- #: includes/form/class-ur-form-field-country.php:89
3422
  msgid "Cook Islands"
3423
  msgstr ""
3424
 
3425
- #: includes/form/class-ur-form-field-country.php:90
3426
  msgid "Costa Rica"
3427
  msgstr ""
3428
 
3429
- #: includes/form/class-ur-form-field-country.php:91
3430
  msgid "Croatia"
3431
  msgstr ""
3432
 
3433
- #: includes/form/class-ur-form-field-country.php:92
3434
  msgid "Cuba"
3435
  msgstr ""
3436
 
3437
- #: includes/form/class-ur-form-field-country.php:93
3438
  msgid "Cura&ccedil;ao"
3439
  msgstr ""
3440
 
3441
- #: includes/form/class-ur-form-field-country.php:94
3442
  msgid "Cyprus"
3443
  msgstr ""
3444
 
3445
- #: includes/form/class-ur-form-field-country.php:95
3446
  msgid "Czech Republic"
3447
  msgstr ""
3448
 
3449
- #: includes/form/class-ur-form-field-country.php:96
3450
  msgid "Denmark"
3451
  msgstr ""
3452
 
3453
- #: includes/form/class-ur-form-field-country.php:97
3454
  msgid "Djibouti"
3455
  msgstr ""
3456
 
3457
- #: includes/form/class-ur-form-field-country.php:98
3458
  msgid "Dominica"
3459
  msgstr ""
3460
 
3461
- #: includes/form/class-ur-form-field-country.php:99
3462
  msgid "Dominican Republic"
3463
  msgstr ""
3464
 
3465
- #: includes/form/class-ur-form-field-country.php:100
3466
  msgid "Ecuador"
3467
  msgstr ""
3468
 
3469
- #: includes/form/class-ur-form-field-country.php:101
3470
  msgid "Egypt"
3471
  msgstr ""
3472
 
3473
- #: includes/form/class-ur-form-field-country.php:102
3474
  msgid "El Salvador"
3475
  msgstr ""
3476
 
3477
- #: includes/form/class-ur-form-field-country.php:103
3478
  msgid "Equatorial Guinea"
3479
  msgstr ""
3480
 
3481
- #: includes/form/class-ur-form-field-country.php:104
3482
  msgid "Eritrea"
3483
  msgstr ""
3484
 
3485
- #: includes/form/class-ur-form-field-country.php:105
3486
  msgid "Estonia"
3487
  msgstr ""
3488
 
3489
- #: includes/form/class-ur-form-field-country.php:106
3490
  msgid "Ethiopia"
3491
  msgstr ""
3492
 
3493
- #: includes/form/class-ur-form-field-country.php:107
3494
  msgid "Falkland Islands"
3495
  msgstr ""
3496
 
3497
- #: includes/form/class-ur-form-field-country.php:108
3498
  msgid "Faroe Islands"
3499
  msgstr ""
3500
 
3501
- #: includes/form/class-ur-form-field-country.php:109
3502
  msgid "Fiji"
3503
  msgstr ""
3504
 
3505
- #: includes/form/class-ur-form-field-country.php:110
3506
  msgid "Finland"
3507
  msgstr ""
3508
 
3509
- #: includes/form/class-ur-form-field-country.php:111
3510
  msgid "France"
3511
  msgstr ""
3512
 
3513
- #: includes/form/class-ur-form-field-country.php:112
3514
  msgid "French Guiana"
3515
  msgstr ""
3516
 
3517
- #: includes/form/class-ur-form-field-country.php:113
3518
  msgid "French Polynesia"
3519
  msgstr ""
3520
 
3521
- #: includes/form/class-ur-form-field-country.php:114
3522
  msgid "French Southern Territories"
3523
  msgstr ""
3524
 
3525
- #: includes/form/class-ur-form-field-country.php:115
3526
  msgid "Gabon"
3527
  msgstr ""
3528
 
3529
- #: includes/form/class-ur-form-field-country.php:116
3530
  msgid "Gambia"
3531
  msgstr ""
3532
 
3533
- #: includes/form/class-ur-form-field-country.php:117
3534
  msgid "Georgia"
3535
  msgstr ""
3536
 
3537
- #: includes/form/class-ur-form-field-country.php:118
3538
  msgid "Germany"
3539
  msgstr ""
3540
 
3541
- #: includes/form/class-ur-form-field-country.php:119
3542
  msgid "Ghana"
3543
  msgstr ""
3544
 
3545
- #: includes/form/class-ur-form-field-country.php:120
3546
  msgid "Gibraltar"
3547
  msgstr ""
3548
 
3549
- #: includes/form/class-ur-form-field-country.php:121
3550
  msgid "Greece"
3551
  msgstr ""
3552
 
3553
- #: includes/form/class-ur-form-field-country.php:122
3554
  msgid "Greenland"
3555
  msgstr ""
3556
 
3557
- #: includes/form/class-ur-form-field-country.php:123
3558
  msgid "Grenada"
3559
  msgstr ""
3560
 
3561
- #: includes/form/class-ur-form-field-country.php:124
3562
  msgid "Guadeloupe"
3563
  msgstr ""
3564
 
3565
- #: includes/form/class-ur-form-field-country.php:125
3566
  msgid "Guam"
3567
  msgstr ""
3568
 
3569
- #: includes/form/class-ur-form-field-country.php:126
3570
  msgid "Guatemala"
3571
  msgstr ""
3572
 
3573
- #: includes/form/class-ur-form-field-country.php:127
3574
  msgid "Guernsey"
3575
  msgstr ""
3576
 
3577
- #: includes/form/class-ur-form-field-country.php:128
3578
  msgid "Guinea"
3579
  msgstr ""
3580
 
3581
- #: includes/form/class-ur-form-field-country.php:129
3582
  msgid "Guinea-Bissau"
3583
  msgstr ""
3584
 
3585
- #: includes/form/class-ur-form-field-country.php:130
3586
  msgid "Guyana"
3587
  msgstr ""
3588
 
3589
- #: includes/form/class-ur-form-field-country.php:131
3590
  msgid "Haiti"
3591
  msgstr ""
3592
 
3593
- #: includes/form/class-ur-form-field-country.php:132
3594
  msgid "Heard Island and McDonald Islands"
3595
  msgstr ""
3596
 
3597
- #: includes/form/class-ur-form-field-country.php:133
3598
  msgid "Honduras"
3599
  msgstr ""
3600
 
3601
- #: includes/form/class-ur-form-field-country.php:134
3602
  msgid "Hong Kong"
3603
  msgstr ""
3604
 
3605
- #: includes/form/class-ur-form-field-country.php:135
3606
  msgid "Hungary"
3607
  msgstr ""
3608
 
3609
- #: includes/form/class-ur-form-field-country.php:136
3610
  msgid "Iceland"
3611
  msgstr ""
3612
 
3613
- #: includes/form/class-ur-form-field-country.php:137
3614
  msgid "India"
3615
  msgstr ""
3616
 
3617
- #: includes/form/class-ur-form-field-country.php:138
3618
  msgid "Indonesia"
3619
  msgstr ""
3620
 
3621
- #: includes/form/class-ur-form-field-country.php:139
3622
  msgid "Iran"
3623
  msgstr ""
3624
 
3625
- #: includes/form/class-ur-form-field-country.php:140
3626
  msgid "Iraq"
3627
  msgstr ""
3628
 
3629
- #: includes/form/class-ur-form-field-country.php:141
3630
  msgid "Ireland"
3631
  msgstr ""
3632
 
3633
- #: includes/form/class-ur-form-field-country.php:142
3634
  msgid "Isle of Man"
3635
  msgstr ""
3636
 
3637
- #: includes/form/class-ur-form-field-country.php:143
3638
  msgid "Israel"
3639
  msgstr ""
3640
 
3641
- #: includes/form/class-ur-form-field-country.php:144
3642
  msgid "Italy"
3643
  msgstr ""
3644
 
3645
- #: includes/form/class-ur-form-field-country.php:145
3646
  msgid "Ivory Coast"
3647
  msgstr ""
3648
 
3649
- #: includes/form/class-ur-form-field-country.php:146
3650
  msgid "Jamaica"
3651
  msgstr ""
3652
 
3653
- #: includes/form/class-ur-form-field-country.php:147
3654
  msgid "Japan"
3655
  msgstr ""
3656
 
3657
- #: includes/form/class-ur-form-field-country.php:148
3658
  msgid "Jersey"
3659
  msgstr ""
3660
 
3661
- #: includes/form/class-ur-form-field-country.php:149
3662
  msgid "Jordan"
3663
  msgstr ""
3664
 
3665
- #: includes/form/class-ur-form-field-country.php:150
3666
  msgid "Kazakhstan"
3667
  msgstr ""
3668
 
3669
- #: includes/form/class-ur-form-field-country.php:151
3670
  msgid "Kenya"
3671
  msgstr ""
3672
 
3673
- #: includes/form/class-ur-form-field-country.php:152
3674
  msgid "Kiribati"
3675
  msgstr ""
3676
 
3677
- #: includes/form/class-ur-form-field-country.php:153
3678
  msgid "Kuwait"
3679
  msgstr ""
3680
 
3681
- #: includes/form/class-ur-form-field-country.php:154
3682
  msgid "Kyrgyzstan"
3683
  msgstr ""
3684
 
3685
- #: includes/form/class-ur-form-field-country.php:155
3686
  msgid "Laos"
3687
  msgstr ""
3688
 
3689
- #: includes/form/class-ur-form-field-country.php:156
3690
  msgid "Latvia"
3691
  msgstr ""
3692
 
3693
- #: includes/form/class-ur-form-field-country.php:157
3694
  msgid "Lebanon"
3695
  msgstr ""
3696
 
3697
- #: includes/form/class-ur-form-field-country.php:158
3698
  msgid "Lesotho"
3699
  msgstr ""
3700
 
3701
- #: includes/form/class-ur-form-field-country.php:159
3702
  msgid "Liberia"
3703
  msgstr ""
3704
 
3705
- #: includes/form/class-ur-form-field-country.php:160
3706
  msgid "Libya"
3707
  msgstr ""
3708
 
3709
- #: includes/form/class-ur-form-field-country.php:161
3710
  msgid "Liechtenstein"
3711
  msgstr ""
3712
 
3713
- #: includes/form/class-ur-form-field-country.php:162
3714
  msgid "Lithuania"
3715
  msgstr ""
3716
 
3717
- #: includes/form/class-ur-form-field-country.php:163
3718
  msgid "Luxembourg"
3719
  msgstr ""
3720
 
3721
- #: includes/form/class-ur-form-field-country.php:164
3722
  msgid "Macao S.A.R., China"
3723
  msgstr ""
3724
 
3725
- #: includes/form/class-ur-form-field-country.php:165
3726
  msgid "Macedonia"
3727
  msgstr ""
3728
 
3729
- #: includes/form/class-ur-form-field-country.php:166
3730
  msgid "Madagascar"
3731
  msgstr ""
3732
 
3733
- #: includes/form/class-ur-form-field-country.php:167
3734
  msgid "Malawi"
3735
  msgstr ""
3736
 
3737
- #: includes/form/class-ur-form-field-country.php:168
3738
  msgid "Malaysia"
3739
  msgstr ""
3740
 
3741
- #: includes/form/class-ur-form-field-country.php:169
3742
  msgid "Maldives"
3743
  msgstr ""
3744
 
3745
- #: includes/form/class-ur-form-field-country.php:170
3746
  msgid "Mali"
3747
  msgstr ""
3748
 
3749
- #: includes/form/class-ur-form-field-country.php:171
3750
  msgid "Malta"
3751
  msgstr ""
3752
 
3753
- #: includes/form/class-ur-form-field-country.php:172
3754
  msgid "Marshall Islands"
3755
  msgstr ""
3756
 
3757
- #: includes/form/class-ur-form-field-country.php:173
3758
  msgid "Martinique"
3759
  msgstr ""
3760
 
3761
- #: includes/form/class-ur-form-field-country.php:174
3762
  msgid "Mauritania"
3763
  msgstr ""
3764
 
3765
- #: includes/form/class-ur-form-field-country.php:175
3766
  msgid "Mauritius"
3767
  msgstr ""
3768
 
3769
- #: includes/form/class-ur-form-field-country.php:176
3770
  msgid "Mayotte"
3771
  msgstr ""
3772
 
3773
- #: includes/form/class-ur-form-field-country.php:177
3774
  msgid "Mexico"
3775
  msgstr ""
3776
 
3777
- #: includes/form/class-ur-form-field-country.php:178
3778
  msgid "Micronesia"
3779
  msgstr ""
3780
 
3781
- #: includes/form/class-ur-form-field-country.php:179
3782
  msgid "Moldova"
3783
  msgstr ""
3784
 
3785
- #: includes/form/class-ur-form-field-country.php:180
3786
  msgid "Monaco"
3787
  msgstr ""
3788
 
3789
- #: includes/form/class-ur-form-field-country.php:181
3790
  msgid "Mongolia"
3791
  msgstr ""
3792
 
3793
- #: includes/form/class-ur-form-field-country.php:182
3794
  msgid "Montenegro"
3795
  msgstr ""
3796
 
3797
- #: includes/form/class-ur-form-field-country.php:183
3798
  msgid "Montserrat"
3799
  msgstr ""
3800
 
3801
- #: includes/form/class-ur-form-field-country.php:184
3802
  msgid "Morocco"
3803
  msgstr ""
3804
 
3805
- #: includes/form/class-ur-form-field-country.php:185
3806
  msgid "Mozambique"
3807
  msgstr ""
3808
 
3809
- #: includes/form/class-ur-form-field-country.php:186
3810
  msgid "Myanmar"
3811
  msgstr ""
3812
 
3813
- #: includes/form/class-ur-form-field-country.php:187
3814
  msgid "Namibia"
3815
  msgstr ""
3816
 
3817
- #: includes/form/class-ur-form-field-country.php:188
3818
  msgid "Nauru"
3819
  msgstr ""
3820
 
3821
- #: includes/form/class-ur-form-field-country.php:189
3822
  msgid "Nepal"
3823
  msgstr ""
3824
 
3825
- #: includes/form/class-ur-form-field-country.php:190
3826
  msgid "Netherlands"
3827
  msgstr ""
3828
 
3829
- #: includes/form/class-ur-form-field-country.php:191
3830
  msgid "New Caledonia"
3831
  msgstr ""
3832
 
3833
- #: includes/form/class-ur-form-field-country.php:192
3834
  msgid "New Zealand"
3835
  msgstr ""
3836
 
3837
- #: includes/form/class-ur-form-field-country.php:193
3838
  msgid "Nicaragua"
3839
  msgstr ""
3840
 
3841
- #: includes/form/class-ur-form-field-country.php:194
3842
  msgid "Niger"
3843
  msgstr ""
3844
 
3845
- #: includes/form/class-ur-form-field-country.php:195
3846
  msgid "Nigeria"
3847
  msgstr ""
3848
 
3849
- #: includes/form/class-ur-form-field-country.php:196
3850
  msgid "Niue"
3851
  msgstr ""
3852
 
3853
- #: includes/form/class-ur-form-field-country.php:197
3854
  msgid "Norfolk Island"
3855
  msgstr ""
3856
 
3857
- #: includes/form/class-ur-form-field-country.php:198
3858
  msgid "Northern Mariana Islands"
3859
  msgstr ""
3860
 
3861
- #: includes/form/class-ur-form-field-country.php:199
3862
  msgid "North Korea"
3863
  msgstr ""
3864
 
3865
- #: includes/form/class-ur-form-field-country.php:200
3866
  msgid "Norway"
3867
  msgstr ""
3868
 
3869
- #: includes/form/class-ur-form-field-country.php:201
3870
  msgid "Oman"
3871
  msgstr ""
3872
 
3873
- #: includes/form/class-ur-form-field-country.php:202
3874
  msgid "Pakistan"
3875
  msgstr ""
3876
 
3877
- #: includes/form/class-ur-form-field-country.php:203
3878
  msgid "Palestinian Territory"
3879
  msgstr ""
3880
 
3881
- #: includes/form/class-ur-form-field-country.php:204
3882
  msgid "Panama"
3883
  msgstr ""
3884
 
3885
- #: includes/form/class-ur-form-field-country.php:205
3886
  msgid "Papua New Guinea"
3887
  msgstr ""
3888
 
3889
- #: includes/form/class-ur-form-field-country.php:206
3890
  msgid "Paraguay"
3891
  msgstr ""
3892
 
3893
- #: includes/form/class-ur-form-field-country.php:207
3894
  msgid "Peru"
3895
  msgstr ""
3896
 
3897
- #: includes/form/class-ur-form-field-country.php:208
3898
  msgid "Philippines"
3899
  msgstr ""
3900
 
3901
- #: includes/form/class-ur-form-field-country.php:209
3902
  msgid "Pitcairn"
3903
  msgstr ""
3904
 
3905
- #: includes/form/class-ur-form-field-country.php:210
3906
  msgid "Poland"
3907
  msgstr ""
3908
 
3909
- #: includes/form/class-ur-form-field-country.php:211
3910
  msgid "Portugal"
3911
  msgstr ""
3912
 
3913
- #: includes/form/class-ur-form-field-country.php:212
3914
  msgid "Puerto Rico"
3915
  msgstr ""
3916
 
3917
- #: includes/form/class-ur-form-field-country.php:213
3918
  msgid "Qatar"
3919
  msgstr ""
3920
 
3921
- #: includes/form/class-ur-form-field-country.php:214
3922
  msgid "Reunion"
3923
  msgstr ""
3924
 
3925
- #: includes/form/class-ur-form-field-country.php:215
3926
  msgid "Romania"
3927
  msgstr ""
3928
 
3929
- #: includes/form/class-ur-form-field-country.php:216
3930
  msgid "Russia"
3931
  msgstr ""
3932
 
3933
- #: includes/form/class-ur-form-field-country.php:217
3934
  msgid "Rwanda"
3935
  msgstr ""
3936
 
3937
- #: includes/form/class-ur-form-field-country.php:218
3938
  msgid "Saint Barth&eacute;lemy"
3939
  msgstr ""
3940
 
3941
- #: includes/form/class-ur-form-field-country.php:219
3942
  msgid "Saint Helena"
3943
  msgstr ""
3944
 
3945
- #: includes/form/class-ur-form-field-country.php:220
3946
  msgid "Saint Kitts and Nevis"
3947
  msgstr ""
3948
 
3949
- #: includes/form/class-ur-form-field-country.php:221
3950
  msgid "Saint Lucia"
3951
  msgstr ""
3952
 
3953
- #: includes/form/class-ur-form-field-country.php:222
3954
  msgid "Saint Martin (French part)"
3955
  msgstr ""
3956
 
3957
- #: includes/form/class-ur-form-field-country.php:223
3958
  msgid "Saint Martin (Dutch part)"
3959
  msgstr ""
3960
 
3961
- #: includes/form/class-ur-form-field-country.php:224
3962
  msgid "Saint Pierre and Miquelon"
3963
  msgstr ""
3964
 
3965
- #: includes/form/class-ur-form-field-country.php:225
3966
  msgid "Saint Vincent and the Grenadines"
3967
  msgstr ""
3968
 
3969
- #: includes/form/class-ur-form-field-country.php:226
3970
  msgid "San Marino"
3971
  msgstr ""
3972
 
3973
- #: includes/form/class-ur-form-field-country.php:227
3974
  msgid "S&atilde;o Tom&eacute; and Pr&iacute;ncipe"
3975
  msgstr ""
3976
 
3977
- #: includes/form/class-ur-form-field-country.php:228
3978
  msgid "Saudi Arabia"
3979
  msgstr ""
3980
 
3981
- #: includes/form/class-ur-form-field-country.php:229
3982
  msgid "Senegal"
3983
  msgstr ""
3984
 
3985
- #: includes/form/class-ur-form-field-country.php:230
3986
  msgid "Serbia"
3987
  msgstr ""
3988
 
3989
- #: includes/form/class-ur-form-field-country.php:231
3990
  msgid "Seychelles"
3991
  msgstr ""
3992
 
3993
- #: includes/form/class-ur-form-field-country.php:232
3994
  msgid "Sierra Leone"
3995
  msgstr ""
3996
 
3997
- #: includes/form/class-ur-form-field-country.php:233
3998
  msgid "Singapore"
3999
  msgstr ""
4000
 
4001
- #: includes/form/class-ur-form-field-country.php:234
4002
  msgid "Slovakia"
4003
  msgstr ""
4004
 
4005
- #: includes/form/class-ur-form-field-country.php:235
4006
  msgid "Slovenia"
4007
  msgstr ""
4008
 
4009
- #: includes/form/class-ur-form-field-country.php:236
4010
  msgid "Solomon Islands"
4011
  msgstr ""
4012
 
4013
- #: includes/form/class-ur-form-field-country.php:237
4014
  msgid "Somalia"
4015
  msgstr ""
4016
 
4017
- #: includes/form/class-ur-form-field-country.php:238
4018
  msgid "South Africa"
4019
  msgstr ""
4020
 
4021
- #: includes/form/class-ur-form-field-country.php:239
4022
  msgid "South Georgia/Sandwich Islands"
4023
  msgstr ""
4024
 
4025
- #: includes/form/class-ur-form-field-country.php:240
4026
  msgid "South Korea"
4027
  msgstr ""
4028
 
4029
- #: includes/form/class-ur-form-field-country.php:241
4030
  msgid "South Sudan"
4031
  msgstr ""
4032
 
4033
- #: includes/form/class-ur-form-field-country.php:242
4034
  msgid "Spain"
4035
  msgstr ""
4036
 
4037
- #: includes/form/class-ur-form-field-country.php:243
4038
  msgid "Sri Lanka"
4039
  msgstr ""
4040
 
4041
- #: includes/form/class-ur-form-field-country.php:244
4042
  msgid "Sudan"
4043
  msgstr ""
4044
 
4045
- #: includes/form/class-ur-form-field-country.php:245
4046
  msgid "Suriname"
4047
  msgstr ""
4048
 
4049
- #: includes/form/class-ur-form-field-country.php:246
4050
  msgid "Svalbard and Jan Mayen"
4051
  msgstr ""
4052
 
4053
- #: includes/form/class-ur-form-field-country.php:247
4054
  msgid "Swaziland"
4055
  msgstr ""
4056
 
4057
- #: includes/form/class-ur-form-field-country.php:248
4058
  msgid "Sweden"
4059
  msgstr ""
4060
 
4061
- #: includes/form/class-ur-form-field-country.php:249
4062
  msgid "Switzerland"
4063
  msgstr ""
4064
 
4065
- #: includes/form/class-ur-form-field-country.php:250
4066
  msgid "Syria"
4067
  msgstr ""
4068
 
4069
- #: includes/form/class-ur-form-field-country.php:251
4070
  msgid "Taiwan"
4071
  msgstr ""
4072
 
4073
- #: includes/form/class-ur-form-field-country.php:252
4074
  msgid "Tajikistan"
4075
  msgstr ""
4076
 
4077
- #: includes/form/class-ur-form-field-country.php:253
4078
  msgid "Tanzania"
4079
  msgstr ""
4080
 
4081
- #: includes/form/class-ur-form-field-country.php:254
4082
  msgid "Thailand"
4083
  msgstr ""
4084
 
4085
- #: includes/form/class-ur-form-field-country.php:255
4086
  msgid "Timor-Leste"
4087
  msgstr ""
4088
 
4089
- #: includes/form/class-ur-form-field-country.php:256
4090
  msgid "Togo"
4091
  msgstr ""
4092
 
4093
- #: includes/form/class-ur-form-field-country.php:257
4094
  msgid "Tokelau"
4095
  msgstr ""
4096
 
4097
- #: includes/form/class-ur-form-field-country.php:258
4098
  msgid "Tonga"
4099
  msgstr ""
4100
 
4101
- #: includes/form/class-ur-form-field-country.php:259
4102
  msgid "Trinidad and Tobago"
4103
  msgstr ""
4104
 
4105
- #: includes/form/class-ur-form-field-country.php:260
4106
  msgid "Tunisia"
4107
  msgstr ""
4108
 
4109
- #: includes/form/class-ur-form-field-country.php:261
4110
  msgid "Turkey"
4111
  msgstr ""
4112
 
4113
- #: includes/form/class-ur-form-field-country.php:262
4114
  msgid "Turkmenistan"
4115
  msgstr ""
4116
 
4117
- #: includes/form/class-ur-form-field-country.php:263
4118
  msgid "Turks and Caicos Islands"
4119
  msgstr ""
4120
 
4121
- #: includes/form/class-ur-form-field-country.php:264
4122
  msgid "Tuvalu"
4123
  msgstr ""
4124
 
4125
- #: includes/form/class-ur-form-field-country.php:265
4126
  msgid "Uganda"
4127
  msgstr ""
4128
 
4129
- #: includes/form/class-ur-form-field-country.php:266
4130
  msgid "Ukraine"
4131
  msgstr ""
4132
 
4133
- #: includes/form/class-ur-form-field-country.php:267
4134
  msgid "United Arab Emirates"
4135
  msgstr ""
4136
 
4137
- #: includes/form/class-ur-form-field-country.php:268
4138
  msgid "United Kingdom (UK)"
4139
  msgstr ""
4140
 
4141
- #: includes/form/class-ur-form-field-country.php:269
4142
  msgid "United States (US)"
4143
  msgstr ""
4144
 
4145
- #: includes/form/class-ur-form-field-country.php:270
4146
  msgid "United States (US) Minor Outlying Islands"
4147
  msgstr ""
4148
 
4149
- #: includes/form/class-ur-form-field-country.php:271
4150
  msgid "United States (US) Virgin Islands"
4151
  msgstr ""
4152
 
4153
- #: includes/form/class-ur-form-field-country.php:272
4154
  msgid "Uruguay"
4155
  msgstr ""
4156
 
4157
- #: includes/form/class-ur-form-field-country.php:273
4158
  msgid "Uzbekistan"
4159
  msgstr ""
4160
 
4161
- #: includes/form/class-ur-form-field-country.php:274
4162
  msgid "Vanuatu"
4163
  msgstr ""
4164
 
4165
- #: includes/form/class-ur-form-field-country.php:275
4166
  msgid "Vatican"
4167
  msgstr ""
4168
 
4169
- #: includes/form/class-ur-form-field-country.php:276
4170
  msgid "Venezuela"
4171
  msgstr ""
4172
 
4173
- #: includes/form/class-ur-form-field-country.php:277
4174
  msgid "Vietnam"
4175
  msgstr ""
4176
 
4177
- #: includes/form/class-ur-form-field-country.php:278
4178
  msgid "Wallis and Futuna"
4179
  msgstr ""
4180
 
4181
- #: includes/form/class-ur-form-field-country.php:279
4182
  msgid "Western Sahara"
4183
  msgstr ""
4184
 
4185
- #: includes/form/class-ur-form-field-country.php:280
4186
  msgid "Samoa"
4187
  msgstr ""
4188
 
4189
- #: includes/form/class-ur-form-field-country.php:281
4190
  msgid "Yemen"
4191
  msgstr ""
4192
 
4193
- #: includes/form/class-ur-form-field-country.php:282
4194
  msgid "Zambia"
4195
  msgstr ""
4196
 
4197
- #: includes/form/class-ur-form-field-country.php:283
4198
  msgid "Zimbabwe"
4199
  msgstr ""
4200
 
4201
- #: includes/form/class-ur-form-field-country.php:347
4202
- #: includes/form/class-ur-form-field-country.php:352
4203
- #: includes/functions-ur-core.php:719
4204
  msgid "Country"
4205
  msgstr ""
4206
 
4207
- #: includes/form/class-ur-form-field-description.php:36
4208
- #: includes/form/class-ur-form-field-description.php:41
4209
  msgid "User Bio"
4210
  msgstr ""
4211
 
4212
- #: includes/form/class-ur-form-field-display-name.php:35
4213
- #: includes/form/class-ur-form-field-display-name.php:40
4214
- #: includes/functions-ur-core.php:713
4215
  msgid "Display Name"
4216
  msgstr ""
4217
 
4218
- #: includes/form/class-ur-form-field-email.php:35
4219
  msgid "Secondary Email "
4220
  msgstr ""
4221
 
4222
- #: includes/form/class-ur-form-field-email.php:40
4223
- #: includes/functions-ur-core.php:717
4224
  msgid "Secondary Email"
4225
  msgstr ""
4226
 
4227
- #: includes/form/class-ur-form-field-first-name.php:35
4228
- #: includes/form/class-ur-form-field-first-name.php:40
4229
- #: includes/functions-ur-core.php:710
 
 
 
 
 
4230
  msgid "First Name"
4231
  msgstr ""
4232
 
4233
- #: includes/form/class-ur-form-field-last-name.php:35
4234
  msgid "Last Name "
4235
  msgstr ""
4236
 
4237
- #: includes/form/class-ur-form-field-last-name.php:40
4238
- #: includes/functions-ur-core.php:711
4239
  msgid "Last Name"
4240
  msgstr ""
4241
 
4242
- #: includes/form/class-ur-form-field-nickname.php:35
4243
- #: includes/form/class-ur-form-field-nickname.php:40
4244
- #: includes/functions-ur-core.php:709
4245
  msgid "Nickname"
4246
  msgstr ""
4247
 
4248
- #: includes/form/class-ur-form-field-privacy-policy.php:35
4249
- #: includes/form/class-ur-form-field-privacy-policy.php:40
4250
- #: includes/functions-ur-core.php:724
 
 
 
 
 
4251
  msgid "Privacy Policy"
4252
  msgstr ""
4253
 
4254
- #: includes/form/class-ur-form-field-radio.php:38
4255
- #: includes/form/class-ur-form-field-radio.php:43
4256
- #: includes/functions-ur-core.php:725
4257
  msgid "Radio"
4258
  msgstr ""
4259
 
4260
- #: includes/form/class-ur-form-field-text.php:35
4261
- #: includes/form/class-ur-form-field-text.php:40
4262
  msgid "Input Field"
4263
  msgstr ""
4264
 
4265
- #: includes/form/class-ur-form-field-textarea.php:35
4266
- #: includes/form/class-ur-form-field-textarea.php:40
4267
- #: includes/functions-ur-core.php:720
4268
  msgid "Textarea"
4269
  msgstr ""
4270
 
4271
- #: includes/form/class-ur-form-field-user-confirm-email.php:49
4272
  msgid "Confirm Email "
4273
  msgstr ""
4274
 
4275
- #: includes/form/class-ur-form-field-user-confirm-password.php:35
4276
  msgid "Confirm Password "
4277
  msgstr ""
4278
 
4279
- #: includes/form/class-ur-form-field-user-email.php:35
4280
  msgid "Email "
4281
  msgstr ""
4282
 
4283
- #: includes/form/class-ur-form-field-user-email.php:40
4284
- #: includes/functions-ur-core.php:704
4285
  msgid "User Email"
4286
  msgstr ""
4287
 
4288
- #: includes/form/class-ur-form-field-user-email.php:59
4289
  msgid "Invalid email address."
4290
  msgstr ""
4291
 
4292
- #: includes/form/class-ur-form-field-user-login.php:35
4293
- #: includes/form/class-ur-form-field-user-login.php:40
4294
- #: includes/functions-ur-core.php:1151
4295
  msgid "Username"
4296
  msgstr ""
4297
 
4298
- #: includes/form/class-ur-form-field-user-login.php:57
4299
  msgid "Username already exists."
4300
  msgstr ""
4301
 
4302
- #: includes/form/class-ur-form-field-user-login.php:68
4303
  msgid "Invalid username ! "
4304
  msgstr ""
4305
 
4306
- #: includes/form/class-ur-form-field-user-pass.php:35
4307
  msgid "Password "
4308
  msgstr ""
4309
 
4310
- #: includes/form/class-ur-form-field-user-pass.php:40
4311
  msgid "User Password"
4312
  msgstr ""
4313
 
4314
- #: includes/form/class-ur-form-field-user-pass.php:57
4315
  msgid "Empty password."
4316
  msgstr ""
4317
 
4318
- #: includes/form/class-ur-form-field-user-url.php:35
4319
- #: includes/form/class-ur-form-field-user-url.php:40
4320
  msgid "Website"
4321
  msgstr ""
4322
 
@@ -4401,15 +4450,15 @@ msgstr ""
4401
 
4402
  #: includes/form/settings/class-ur-setting-checkbox.php:63
4403
  #: includes/form/settings/class-ur-setting-user_login.php:63
4404
- #: includes/functions-ur-core.php:784
4405
- #: includes/functions-ur-core.php:797
4406
  msgid "No"
4407
  msgstr ""
4408
 
4409
  #: includes/form/settings/class-ur-setting-checkbox.php:64
4410
  #: includes/form/settings/class-ur-setting-user_login.php:64
4411
- #: includes/functions-ur-core.php:785
4412
- #: includes/functions-ur-core.php:798
4413
  msgid "Yes"
4414
  msgstr ""
4415
 
@@ -4574,23 +4623,23 @@ msgstr ""
4574
  msgid "Required form field not found."
4575
  msgstr ""
4576
 
4577
- #: includes/frontend/class-ur-frontend-form-handler.php:400
4578
  msgid "Empty confirm password"
4579
  msgstr ""
4580
 
4581
- #: includes/frontend/class-ur-frontend-form-handler.php:402
4582
  msgid "Password and confirm password not matched"
4583
  msgstr ""
4584
 
4585
- #: includes/frontend/class-ur-frontend-form-handler.php:446
4586
  msgid "Empty confirm email"
4587
  msgstr ""
4588
 
4589
- #: includes/frontend/class-ur-frontend-form-handler.php:448
4590
  msgid "Email and confirm email not matched"
4591
  msgstr ""
4592
 
4593
- #: includes/frontend/class-ur-frontend-form-handler.php:508
4594
  msgid "Password should not match with Username or Email address."
4595
  msgstr ""
4596
 
@@ -4599,258 +4648,262 @@ msgstr ""
4599
  msgid "Invalid username. %1s"
4600
  msgstr ""
4601
 
4602
- #: includes/functions-ur-account.php:118
4603
  msgid "Dashboard"
4604
  msgstr ""
4605
 
4606
- #: includes/functions-ur-core.php:558
4607
  msgid "Username can not be changed."
4608
  msgstr ""
4609
 
4610
- #: includes/functions-ur-core.php:562
4611
  msgid "Passowrd can not be changed."
4612
  msgstr ""
4613
 
4614
- #: includes/functions-ur-core.php:566
4615
  msgid "Confirm password can not be changed."
4616
  msgstr ""
4617
 
4618
- #: includes/functions-ur-core.php:569
4619
  msgid "Confirm email can not be changed."
4620
  msgstr ""
4621
 
4622
- #: includes/functions-ur-core.php:705
4623
  msgid "User Confirm Email"
4624
  msgstr ""
4625
 
4626
- #: includes/functions-ur-core.php:706
4627
  msgid "User Pass"
4628
  msgstr ""
4629
 
4630
- #: includes/functions-ur-core.php:707
4631
  msgid "User Confirm Password"
4632
  msgstr ""
4633
 
4634
- #: includes/functions-ur-core.php:708
4635
  msgid "User Login"
4636
  msgstr ""
4637
 
4638
- #: includes/functions-ur-core.php:712
4639
  msgid "User URL"
4640
  msgstr ""
4641
 
4642
- #: includes/functions-ur-core.php:714
4643
- #: includes/functions-ur-core.php:751
4644
- #: includes/functions-ur-core.php:753
4645
  msgid "Description"
4646
  msgstr ""
4647
 
4648
- #: includes/functions-ur-core.php:715
4649
  msgid "Text"
4650
  msgstr ""
4651
 
4652
- #: includes/functions-ur-core.php:742
4653
- #: includes/functions-ur-core.php:744
4654
  msgid "Label"
4655
  msgstr ""
4656
 
4657
- #: includes/functions-ur-core.php:746
4658
  msgid "Enter text for the form field label. This is recommended and can be hidden in the Advanced Settings."
4659
  msgstr ""
4660
 
4661
- #: includes/functions-ur-core.php:755
4662
  msgid "Enter text for the form field description."
4663
  msgstr ""
4664
 
4665
- #: includes/functions-ur-core.php:760
4666
- #: includes/functions-ur-core.php:762
4667
  msgid "Field Name"
4668
  msgstr ""
4669
 
4670
- #: includes/functions-ur-core.php:764
4671
  msgid "Unique key for the field."
4672
  msgstr ""
4673
 
4674
- #: includes/functions-ur-core.php:770
4675
- #: includes/functions-ur-core.php:772
4676
  msgid "Placeholder"
4677
  msgstr ""
4678
 
4679
- #: includes/functions-ur-core.php:774
4680
  msgid "Enter placeholder for the field."
4681
  msgstr ""
4682
 
4683
- #: includes/functions-ur-core.php:787
4684
  msgid "Check this option to mark the field required. A form will not submit unless all required fields are provided."
4685
  msgstr ""
4686
 
4687
- #: includes/functions-ur-core.php:792
4688
  msgid "Hide Label"
4689
  msgstr ""
4690
 
4691
- #: includes/functions-ur-core.php:800
4692
  msgid "Check this option to hide the label of this field."
4693
  msgstr ""
4694
 
4695
- #: includes/functions-ur-core.php:827
4696
  msgid "Options"
4697
  msgstr ""
4698
 
4699
- #: includes/functions-ur-core.php:954
4700
  #: includes/RestApi/class-ur-rest-api.php:199
4701
  msgid "User login option"
4702
  msgstr ""
4703
 
4704
- #: includes/functions-ur-core.php:964
4705
  msgid "Login method that should be used by the users registered through this form."
4706
  msgstr ""
4707
 
4708
- #: includes/functions-ur-core.php:977
4709
  #: includes/RestApi/class-ur-rest-api.php:254
4710
  msgid "Default User Role"
4711
  msgstr ""
4712
 
4713
- #: includes/functions-ur-core.php:986
4714
  #: includes/RestApi/class-ur-rest-api.php:255
4715
  msgid "Default role for the users registered through this form."
4716
  msgstr ""
4717
 
4718
- #: includes/functions-ur-core.php:990
4719
  #: includes/RestApi/class-ur-rest-api.php:234
4720
  msgid "Enable Strong Password"
4721
  msgstr ""
4722
 
4723
- #: includes/functions-ur-core.php:998
4724
  #: includes/RestApi/class-ur-rest-api.php:235
4725
  msgid "Make strong password compulsary."
4726
  msgstr ""
4727
 
4728
- #: includes/functions-ur-core.php:1002
4729
  #: includes/RestApi/class-ur-rest-api.php:241
4730
  msgid "Minimum Password Strength"
4731
  msgstr ""
4732
 
4733
- #: includes/functions-ur-core.php:1016
4734
  #: includes/RestApi/class-ur-rest-api.php:242
4735
  msgid "Set minimum required password strength."
4736
  msgstr ""
4737
 
4738
- #: includes/functions-ur-core.php:1020
4739
  msgid "Redirect URL"
4740
  msgstr ""
4741
 
4742
- #: includes/functions-ur-core.php:1022
4743
  msgid "This option lets you enter redirect path after successful user registration."
4744
  msgstr ""
4745
 
4746
- #: includes/functions-ur-core.php:1027
4747
  msgid "URL to redirect to after registration."
4748
  msgstr ""
4749
 
4750
- #: includes/functions-ur-core.php:1031
4751
  msgid "Form Submit Button Custom Class"
4752
  msgstr ""
4753
 
4754
- #: includes/functions-ur-core.php:1039
4755
  msgid "Custom css class to embed in the submit button. You can enter multiple classes seperated with space."
4756
  msgstr ""
4757
 
4758
- #: includes/functions-ur-core.php:1043
4759
  msgid "Form Submit Button Label"
4760
  msgstr ""
4761
 
4762
- #: includes/functions-ur-core.php:1051
4763
  msgid "Set label for the submit button."
4764
  msgstr ""
4765
 
4766
- #: includes/functions-ur-core.php:1055
4767
  msgid "Success message position"
4768
  msgstr ""
4769
 
4770
- #: includes/functions-ur-core.php:1062
4771
  msgid "Top"
4772
  msgstr ""
4773
 
4774
- #: includes/functions-ur-core.php:1063
4775
  msgid "Bottom"
4776
  msgstr ""
4777
 
4778
- #: includes/functions-ur-core.php:1067
4779
  msgid "Display success message either at the top or bottom after successful registration."
4780
  msgstr ""
4781
 
4782
  #. translators: 1: Link tag open 2:: Link content 3:: Link tag close
4783
- #: includes/functions-ur-core.php:1073
4784
  msgid "Enable %1$s %2$s Captcha %3$s Support"
4785
  msgstr ""
4786
 
4787
- #: includes/functions-ur-core.php:1081
4788
  msgid "Enable Captcha for strong security from spams and bots."
4789
  msgstr ""
4790
 
4791
- #: includes/functions-ur-core.php:1100
4792
  #: includes/RestApi/class-ur-rest-api.php:221
4793
  msgid "Choose form template to use."
4794
  msgstr ""
4795
 
4796
- #: includes/functions-ur-core.php:1104
4797
  msgid "Custom CSS class"
4798
  msgstr ""
4799
 
4800
- #: includes/functions-ur-core.php:1112
4801
  msgid "Custom css class to embed in the registration form. You can enter multiple classes seperated with space."
4802
  msgstr ""
4803
 
4804
- #: includes/functions-ur-core.php:1132
4805
  msgid "Auto approval and manual login"
4806
  msgstr ""
4807
 
4808
- #: includes/functions-ur-core.php:1133
4809
  msgid "Auto approval and auto login "
4810
  msgstr ""
4811
 
4812
- #: includes/functions-ur-core.php:1134
4813
  msgid "Admin approval"
4814
  msgstr ""
4815
 
4816
- #: includes/functions-ur-core.php:1135
4817
  msgid "Auto approval after email confirmation"
4818
  msgstr ""
4819
 
4820
  #. translators: %s: Class
4821
- #: includes/functions-ur-core.php:1364
4822
  msgid "The class <code>%s</code> provided by user_registration_logging_class filter must implement <code>UR_Logger_Interface</code>."
4823
  msgstr ""
4824
 
4825
- #: includes/functions-ur-core.php:1465
4826
  msgid "Disable emails"
4827
  msgstr ""
4828
 
4829
- #: includes/functions-ur-core.php:1466
4830
  msgid "Disable all emails sent after registration."
4831
  msgstr ""
4832
 
4833
- #: includes/functions-ur-core.php:2246
 
 
 
 
4834
  msgid "Use conditional logic"
4835
  msgstr ""
4836
 
4837
- #: includes/functions-ur-core.php:2250
4838
  msgid "Conditional Rules"
4839
  msgstr ""
4840
 
4841
- #: includes/functions-ur-core.php:2251
4842
  msgid "Send data only if the following matches."
4843
  msgstr ""
4844
 
4845
- #: includes/functions-ur-core.php:2289
4846
  msgid "Checked"
4847
  msgstr ""
4848
 
4849
- #: includes/functions-ur-core.php:2408
4850
  msgid "Sorry, you are not allowed to install plugins on this site."
4851
  msgstr ""
4852
 
4853
- #: includes/functions-ur-core.php:2487
4854
  msgid "Unable to connect to the filesystem. Please confirm your credentials."
4855
  msgstr ""
4856
 
@@ -4864,11 +4917,15 @@ msgstr ""
4864
  msgid "This function should not be called before user_registration_init."
4865
  msgstr ""
4866
 
4867
- #: includes/functions-ur-template.php:197
4868
  msgid "required"
4869
  msgstr ""
4870
 
4871
- #: includes/functions-ur-template.php:508
 
 
 
 
4872
  msgid "Choose an option"
4873
  msgstr ""
4874
 
@@ -4896,14 +4953,6 @@ msgstr ""
4896
  msgid "Check to enable users to register"
4897
  msgstr ""
4898
 
4899
- #: includes/RestApi/class-ur-rest-api.php:207
4900
- msgid "Prevent dashboard access"
4901
- msgstr ""
4902
-
4903
- #: includes/RestApi/class-ur-rest-api.php:208
4904
- msgid "This option lets you limit which roles you are willing to prevent dashboard access."
4905
- msgstr ""
4906
-
4907
  #: includes/RestApi/class-ur-rest-api.php:281
4908
  msgid "Enable lost password"
4909
  msgstr ""
@@ -4956,24 +5005,24 @@ msgstr ""
4956
  msgid "Are you sure you want to log out?&nbsp;<a href=\"%s\">Confirm and log out</a>"
4957
  msgstr ""
4958
 
4959
- #: includes/shortcodes/class-ur-shortcode-my-account.php:224
4960
  msgid "No profile details found."
4961
  msgstr ""
4962
 
4963
- #: includes/shortcodes/class-ur-shortcode-my-account.php:325
4964
  msgid "Enter a username or email address."
4965
  msgstr ""
4966
 
4967
- #: includes/shortcodes/class-ur-shortcode-my-account.php:346
4968
- #: includes/shortcodes/class-ur-shortcode-my-account.php:351
4969
  msgid "Invalid username or email."
4970
  msgstr ""
4971
 
4972
- #: includes/shortcodes/class-ur-shortcode-my-account.php:361
4973
  msgid "Password reset is not allowed for this user"
4974
  msgstr ""
4975
 
4976
- #: includes/shortcodes/class-ur-shortcode-my-account.php:374
4977
  msgid "The email could not be sent. Contact your site administrator. "
4978
  msgstr ""
4979
 
@@ -5030,8 +5079,8 @@ msgid "Confirm new password"
5030
  msgstr ""
5031
 
5032
  #: templates/myaccount/form-edit-password.php:82
5033
- #: templates/myaccount/form-edit-profile.php:388
5034
- #: templates/myaccount/form-edit-profile.php:393
5035
  msgid "Save changes"
5036
  msgstr ""
5037
 
2
  # This file is distributed under the same license as the User Registration plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: User Registration 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/user-registration\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-09-06T08:53:28+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: user-registration\n"
37
  msgid "https://wpeverest.com"
38
  msgstr ""
39
 
40
+ #: includes/abstracts/abstract-ur-form-field.php:651
41
  #: src/components/App.js:60
42
  msgid "General Settings"
43
  msgstr ""
44
 
45
+ #: includes/abstracts/abstract-ur-form-field.php:661
46
  msgid "Advance Settings"
47
  msgstr ""
48
 
112
  msgid "Could not verify nonce"
113
  msgstr ""
114
 
115
+ #: includes/admin/class-ur-admin-assets.php:200
116
  msgid "Upload Profile Picture"
117
  msgstr ""
118
 
119
+ #: includes/admin/class-ur-admin-assets.php:201
120
  msgid "Select Image"
121
  msgstr ""
122
 
123
+ #: includes/admin/class-ur-admin-assets.php:224
124
  msgctxt "enhanced select"
125
  msgid "No matches found"
126
  msgstr ""
127
 
128
+ #: includes/admin/class-ur-admin-assets.php:225
129
  msgctxt "enhanced select"
130
  msgid "Loading failed"
131
  msgstr ""
132
 
133
+ #: includes/admin/class-ur-admin-assets.php:226
134
  msgctxt "enhanced select"
135
  msgid "Please enter 1 or more characters"
136
  msgstr ""
137
 
138
+ #: includes/admin/class-ur-admin-assets.php:227
139
  msgctxt "enhanced select"
140
  msgid "Please enter %qty% or more characters"
141
  msgstr ""
142
 
143
+ #: includes/admin/class-ur-admin-assets.php:228
144
  msgctxt "enhanced select"
145
  msgid "Please delete 1 character"
146
  msgstr ""
147
 
148
+ #: includes/admin/class-ur-admin-assets.php:229
149
  msgctxt "enhanced select"
150
  msgid "Please delete %qty% characters"
151
  msgstr ""
152
 
153
+ #: includes/admin/class-ur-admin-assets.php:230
154
  msgctxt "enhanced select"
155
  msgid "You can only select 1 item"
156
  msgstr ""
157
 
158
+ #: includes/admin/class-ur-admin-assets.php:231
159
  msgctxt "enhanced select"
160
  msgid "You can only select %qty% items"
161
  msgstr ""
162
 
163
+ #: includes/admin/class-ur-admin-assets.php:232
164
  msgctxt "enhanced select"
165
  msgid "Loading more results&hellip;"
166
  msgstr ""
167
 
168
+ #: includes/admin/class-ur-admin-assets.php:233
169
  msgctxt "enhanced select"
170
  msgid "Searching&hellip;"
171
  msgstr ""
172
 
173
+ #: includes/admin/class-ur-admin-assets.php:245
174
  msgid "Could not install."
175
  msgstr ""
176
 
177
+ #: includes/admin/class-ur-admin-assets.php:275
178
  msgid "Keyboard Shortcut Keys"
179
  msgstr ""
180
 
181
+ #: includes/admin/class-ur-admin-assets.php:277
182
  msgid "Save Builder"
183
  msgstr ""
184
 
185
+ #: includes/admin/class-ur-admin-assets.php:278
186
  msgid "Close Builder"
187
  msgstr ""
188
 
189
+ #: includes/admin/class-ur-admin-assets.php:279
190
  #: includes/admin/views/html-admin-page-forms.php:46
191
  msgid "Preview Form"
192
  msgstr ""
193
 
194
+ #: includes/admin/class-ur-admin-assets.php:280
195
  msgid "Go to Users"
196
  msgstr ""
197
 
198
+ #: includes/admin/class-ur-admin-assets.php:281
199
  msgid "Open Help"
200
  msgstr ""
201
 
202
+ #: includes/admin/class-ur-admin-assets.php:283
203
  #: includes/admin/class-ur-admin-menus.php:432
204
  #: includes/admin/class-ur-admin-menus.php:433
205
  #: includes/admin/class-ur-admin-menus.php:773
207
  msgid "Add New"
208
  msgstr ""
209
 
210
+ #: includes/admin/class-ur-admin-assets.php:301
211
  #: includes/admin/views/html-admin-page-import-export-forms.php:50
212
  msgid "No file selected."
213
  msgstr ""
214
 
215
+ #: includes/admin/class-ur-admin-assets.php:313
216
  msgid "Enabled"
217
  msgstr ""
218
 
219
+ #: includes/admin/class-ur-admin-assets.php:314
220
  msgid "Disabled"
221
  msgstr ""
222
 
223
+ #: includes/admin/class-ur-admin-assets.php:383
224
  msgid "Clone"
225
  msgstr ""
226
 
227
+ #: includes/admin/class-ur-admin-assets.php:383
228
  #: includes/admin/class-ur-admin-registrations-table-list.php:107
229
  msgid "Trash"
230
  msgstr ""
231
 
232
+ #: includes/admin/class-ur-admin-assets.php:405
233
  msgid "Delete"
234
  msgstr ""
235
 
236
+ #: includes/admin/class-ur-admin-assets.php:406
237
  #: includes/admin/class-ur-admin-form-modal.php:98
238
  msgid "Cancel"
239
  msgstr ""
240
 
241
+ #: includes/admin/class-ur-admin-assets.php:407
242
  msgctxt "user-registration admin"
243
  msgid "User Email"
244
  msgstr ""
245
 
246
+ #: includes/admin/class-ur-admin-assets.php:408
247
  msgctxt "user-registration admin"
248
  msgid "User Password"
249
  msgstr ""
250
 
251
+ #: includes/admin/class-ur-admin-assets.php:409
252
  msgctxt "user-registration admin"
253
  msgid "Payment"
254
  msgstr ""
255
 
256
+ #: includes/admin/class-ur-admin-assets.php:410
257
  msgctxt "user-registration admin"
258
  msgid "Stripe Gateway"
259
  msgstr ""
260
 
261
+ #: includes/admin/class-ur-admin-assets.php:411
262
  msgctxt "user registration admin"
263
  msgid "Are you sure want to delete this row?"
264
  msgstr ""
265
 
266
+ #: includes/admin/class-ur-admin-assets.php:412
267
  msgctxt "user registration admin"
268
  msgid "Are you sure want to delete this field?"
269
  msgstr ""
270
 
271
+ #: includes/admin/class-ur-admin-assets.php:413
272
  msgctxt "user registration admin"
273
  msgid "At least one row is required to create a registration form."
274
  msgstr ""
275
 
276
+ #: includes/admin/class-ur-admin-assets.php:414
277
  msgctxt "user registration admin"
278
  msgid "Cannot delete row"
279
  msgstr ""
280
 
281
+ #: includes/admin/class-ur-admin-assets.php:415
282
  msgctxt "user registration admin"
283
  msgid "This field is one time draggable."
284
  msgstr ""
285
 
286
+ #: includes/admin/class-ur-admin-assets.php:416
287
  msgctxt "user registration admin"
288
  msgid "Could not clone this field."
289
  msgstr ""
290
 
291
+ #: includes/admin/class-ur-admin-assets.php:417
292
  msgctxt "user registration admin"
293
  msgid "Form successfully saved."
294
  msgstr ""
295
 
296
+ #: includes/admin/class-ur-admin-assets.php:418
297
  msgctxt "user registration admin"
298
  msgid "Success"
299
  msgstr ""
300
 
301
+ #: includes/admin/class-ur-admin-assets.php:419
302
  msgctxt "user registration admin"
303
  msgid "Error"
304
  msgstr ""
305
 
306
+ #: includes/admin/class-ur-admin-assets.php:420
307
  msgid "Confirm Deletion"
308
  msgstr ""
309
 
310
+ #: includes/admin/class-ur-admin-assets.php:421
311
  msgctxt "user registration admin"
312
  msgid "At least one field needs to be selected."
313
  msgstr ""
314
 
315
+ #: includes/admin/class-ur-admin-assets.php:422
316
  msgctxt "user registration admin"
317
  msgid "Empty form name."
318
  msgstr ""
319
 
320
+ #: includes/admin/class-ur-admin-assets.php:423
321
  msgctxt "user registration admin"
322
  msgid "Previous save action on going."
323
  msgstr ""
324
 
325
+ #: includes/admin/class-ur-admin-assets.php:424
326
  msgctxt "user registration admin"
327
  msgid "Duplicate field name."
328
  msgstr ""
329
 
330
+ #: includes/admin/class-ur-admin-assets.php:425
331
  msgctxt "user registration admin"
332
  msgid "Empty field label."
333
  msgstr ""
334
 
335
+ #: includes/admin/class-ur-admin-assets.php:426
336
  msgctxt "user registration admin"
337
  msgid "Invalid field name. Please do not use space, empty or special character, you can use underscore."
338
  msgstr ""
339
 
340
+ #: includes/admin/class-ur-admin-assets.php:427
341
  msgctxt "user registration admin"
342
  msgid "Multiple field key "
343
  msgstr ""
344
 
345
+ #: includes/admin/class-ur-admin-assets.php:428
346
  msgctxt "user registration admin"
347
  msgid "field is required."
348
  msgstr ""
349
 
350
+ #: includes/admin/class-ur-admin-assets.php:429
351
  msgctxt "user registration admin"
352
  msgid "Drag your first form item here."
353
  msgstr ""
354
 
355
+ #: includes/admin/class-ur-admin-assets.php:430
356
  msgctxt "user registration admin"
357
  msgid "Please select at least one country."
358
  msgstr ""
359
 
360
+ #: includes/admin/class-ur-admin-assets.php:431
361
  msgctxt "user registration admin"
362
  msgid "input size must be greater than zero."
363
  msgstr ""
364
 
365
+ #: includes/admin/class-ur-admin-assets.php:432
366
  msgctxt "user registration admin"
367
  msgid "input of min value must be less than max value."
368
  msgstr ""
369
 
370
+ #: includes/admin/class-ur-admin-assets.php:433
371
  msgctxt "user registration admin"
372
  msgid "input of max upload size must less than "
373
  msgstr ""
452
  msgstr ""
453
 
454
  #: includes/admin/class-ur-admin-menus.php:399
455
+ #: includes/class-ur-install.php:653
456
  msgid "Settings"
457
  msgstr ""
458
 
526
 
527
  #: includes/admin/class-ur-admin-profile.php:155
528
  #: includes/admin/class-ur-admin-profile.php:167
529
+ #: includes/form/class-ur-form-field-select.php:44
530
+ #: includes/form/class-ur-form-field-select.php:49
531
+ #: includes/functions-ur-core.php:717
532
  msgid "Select"
533
  msgstr ""
534
 
549
  msgstr ""
550
 
551
  #: includes/admin/class-ur-admin-registrations-table-list.php:54
552
+ #: includes/form/class-ur-form-field-date.php:46
553
+ #: includes/form/class-ur-form-field-date.php:51
554
+ #: includes/functions-ur-core.php:721
555
  msgid "Date"
556
  msgstr ""
557
 
930
 
931
  #: includes/admin/settings/class-ur-settings-email.php:180
932
  #: includes/admin/settings/class-ur-settings-general.php:301
933
+ #: includes/functions-ur-core.php:1151
934
  msgid "Email"
935
  msgstr ""
936
 
968
  msgstr ""
969
 
970
  #: includes/admin/settings/class-ur-settings-general.php:75
971
+ #: includes/functions-ur-core.php:954
972
  #: includes/RestApi/class-ur-rest-api.php:200
973
  msgid "This option lets you choose login option after user registration."
974
  msgstr ""
975
 
976
  #: includes/admin/settings/class-ur-settings-general.php:85
977
+ #: includes/functions-ur-core.php:966
978
  msgid "Send User Approval Link in Email"
979
  msgstr ""
980
 
981
  #: includes/admin/settings/class-ur-settings-general.php:86
982
+ #: includes/functions-ur-core.php:970
983
  msgid "Check to receive a link with token in email to approve the users directly."
984
  msgstr ""
985
 
986
  #: includes/admin/settings/class-ur-settings-general.php:94
987
+ #: includes/RestApi/class-ur-rest-api.php:207
988
  msgid "Prevent WP Dashboard Access"
989
  msgstr ""
990
 
991
  #: includes/admin/settings/class-ur-settings-general.php:95
992
+ #: includes/RestApi/class-ur-rest-api.php:208
993
  msgid "Selected user roles will not be able to view and access the WP Dashboard area."
994
  msgstr ""
995
 
1079
 
1080
  #: includes/admin/settings/class-ur-settings-general.php:187
1081
  #: includes/class-ur-query.php:72
1082
+ #: includes/functions-ur-account.php:122
1083
  #: templates/myaccount/form-edit-password.php:35
1084
  msgid "Change Password"
1085
  msgstr ""
1165
  msgstr ""
1166
 
1167
  #: includes/admin/settings/class-ur-settings-general.php:283
1168
+ #: includes/functions-ur-core.php:778
1169
  msgid "Required"
1170
  msgstr ""
1171
 
1213
  msgstr ""
1214
 
1215
  #: includes/admin/settings/class-ur-settings-general.php:321
1216
+ #: includes/form/class-ur-form-field-number.php:46
1217
+ #: includes/form/class-ur-form-field-number.php:51
1218
+ #: includes/functions-ur-core.php:720
1219
  msgid "Number"
1220
  msgstr ""
1221
 
1229
  msgstr ""
1230
 
1231
  #: includes/admin/settings/class-ur-settings-general.php:331
1232
+ #: includes/form/class-ur-form-field-user-confirm-email.php:52
1233
  msgid "Confirm Email"
1234
  msgstr ""
1235
 
1243
  msgstr ""
1244
 
1245
  #: includes/admin/settings/class-ur-settings-general.php:341
1246
+ #: includes/form/class-ur-form-field-user-confirm-password.php:49
1247
  msgid "Confirm Password"
1248
  msgstr ""
1249
 
1273
  msgstr ""
1274
 
1275
  #: includes/admin/settings/class-ur-settings-general.php:385
1276
+ #: includes/functions-ur-core.php:1084
1277
  #: includes/RestApi/class-ur-rest-api.php:220
1278
  #: includes/RestApi/class-ur-rest-api.php:267
1279
  msgid "Form Template"
1285
  msgstr ""
1286
 
1287
  #: includes/admin/settings/class-ur-settings-general.php:393
1288
+ #: includes/functions-ur-core.php:1091
1289
  #: includes/RestApi/class-ur-rest-api.php:226
1290
  #: includes/RestApi/class-ur-rest-api.php:273
1291
  msgid "Default"
1292
  msgstr ""
1293
 
1294
  #: includes/admin/settings/class-ur-settings-general.php:394
1295
+ #: includes/functions-ur-core.php:1092
1296
  #: includes/RestApi/class-ur-rest-api.php:227
1297
  #: includes/RestApi/class-ur-rest-api.php:274
1298
  msgid "Bordered"
1299
  msgstr ""
1300
 
1301
  #: includes/admin/settings/class-ur-settings-general.php:395
1302
+ #: includes/functions-ur-core.php:1093
1303
  #: includes/RestApi/class-ur-rest-api.php:228
1304
  #: includes/RestApi/class-ur-rest-api.php:275
1305
  msgid "Flat"
1306
  msgstr ""
1307
 
1308
  #: includes/admin/settings/class-ur-settings-general.php:396
1309
+ #: includes/functions-ur-core.php:1094
1310
  #: includes/RestApi/class-ur-rest-api.php:229
1311
  #: includes/RestApi/class-ur-rest-api.php:276
1312
  msgid "Rounded"
1313
  msgstr ""
1314
 
1315
  #: includes/admin/settings/class-ur-settings-general.php:397
1316
+ #: includes/functions-ur-core.php:1095
1317
  #: includes/RestApi/class-ur-rest-api.php:230
1318
  #: includes/RestApi/class-ur-rest-api.php:277
1319
  msgid "Rounded Edge"
1445
 
1446
  #: includes/admin/settings/class-ur-settings-general.php:517
1447
  #: includes/admin/settings/class-ur-settings-general.php:523
1448
+ #: includes/functions-ur-core.php:1149
1449
  msgid "Username or Email"
1450
  msgstr ""
1451
 
1455
 
1456
  #: includes/admin/settings/class-ur-settings-general.php:527
1457
  #: includes/admin/settings/class-ur-settings-general.php:533
1458
+ #: includes/functions-ur-core.php:715
1459
  #: templates/myaccount/form-login.php:40
1460
  msgid "Password"
1461
  msgstr ""
1519
  msgstr ""
1520
 
1521
  #: includes/admin/settings/class-ur-settings-general.php:583
1522
+ #: includes/form/class-ur-form-field-password.php:44
1523
+ #: includes/form/class-ur-form-field-password.php:49
1524
  msgid "Password Field"
1525
  msgstr ""
1526
 
1812
  msgstr ""
1813
 
1814
  #: includes/admin/settings/emails/class-ur-settings-admin-email.php:69
1815
+ #: includes/class-ur-emailer.php:350
1816
  msgid "A New User Registered"
1817
  msgstr ""
1818
 
1877
  msgstr ""
1878
 
1879
  #: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:60
1880
+ #: includes/class-ur-emailer.php:287
1881
  msgid "Thank you for registration on {{blog_info}}"
1882
  msgstr ""
1883
 
1905
  msgstr ""
1906
 
1907
  #: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:51
1908
+ #: includes/class-ur-emailer.php:274
1909
  msgid "Please confirm your registration on {{blog_info}}"
1910
  msgstr ""
1911
 
1934
  msgstr ""
1935
 
1936
  #: includes/admin/settings/emails/class-ur-settings-profile-details-changed-email.php:70
1937
+ #: includes/class-ur-emailer.php:517
1938
  msgid "Profile Details Changed Email: {{blog_info}}"
1939
  msgstr ""
1940
 
1964
  msgstr ""
1965
 
1966
  #: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:60
1967
+ #: includes/class-ur-emailer.php:435
1968
  msgid "Congratulations! Registration approved on {{blog_info}}"
1969
  msgstr ""
1970
 
1993
  msgstr ""
1994
 
1995
  #: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:60
1996
+ #: includes/class-ur-emailer.php:300
1997
+ #: includes/class-ur-emailer.php:422
1998
  msgid "Sorry! Registration denied on {{blog_info}}"
1999
  msgstr ""
2000
 
2023
  msgstr ""
2024
 
2025
  #: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:61
2026
+ #: includes/class-ur-emailer.php:409
2027
  msgid "Sorry! Registration changed to pending on {{blog_info}}"
2028
  msgstr ""
2029
 
2054
  msgstr ""
2055
 
2056
  #: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:59
2057
+ #: includes/class-ur-emailer.php:467
2058
  msgid "Password Reset Email: {{blog_info}}"
2059
  msgstr ""
2060
 
2087
  msgstr ""
2088
 
2089
  #: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:60
2090
+ #: includes/class-ur-emailer.php:313
2091
  msgid "Congratulations! Registration Complete on {{blog_info}}"
2092
  msgstr ""
2093
 
2412
  #. translators: 1: Link and username of user 2: Logout url
2413
  #: includes/class-ur-ajax.php:188
2414
  #: includes/class-ur-shortcodes.php:191
2415
+ #: includes/functions-ur-account.php:123
2416
  msgid "Logout"
2417
  msgstr ""
2418
 
2419
  #: includes/class-ur-ajax.php:297
2420
+ #: includes/form/class-ur-form-field-user-email.php:87
2421
  msgid "Email already exists."
2422
  msgstr ""
2423
 
2604
  msgid "Email not verified! Verify your email by clicking on the link sent to your email."
2605
  msgstr ""
2606
 
2607
+ #: includes/class-ur-emailer.php:643
2608
+ #: includes/functions-ur-core.php:2151
2609
  msgid "Chosen Password"
2610
  msgstr ""
2611
 
2628
  #. translators: %s - Field Label
2629
  #. translators: %s - Field Label
2630
  #: includes/class-ur-form-handler.php:233
2631
+ #: includes/frontend/class-ur-frontend-form-handler.php:478
2632
  msgid "%s is a required field."
2633
  msgstr ""
2634
 
2747
  msgstr ""
2748
 
2749
  #: includes/class-ur-frontend-scripts.php:393
2750
+ #: includes/functions-ur-core.php:1008
2751
  #: includes/RestApi/class-ur-rest-api.php:247
2752
  msgid "Very Weak"
2753
  msgstr ""
2754
 
2755
  #: includes/class-ur-frontend-scripts.php:394
2756
+ #: includes/functions-ur-core.php:1009
2757
  #: includes/RestApi/class-ur-rest-api.php:248
2758
  msgid "Weak"
2759
  msgstr ""
2760
 
2761
  #: includes/class-ur-frontend-scripts.php:395
2762
+ #: includes/functions-ur-core.php:1010
2763
  #: includes/RestApi/class-ur-rest-api.php:249
2764
  msgid "Medium"
2765
  msgstr ""
2766
 
2767
  #: includes/class-ur-frontend-scripts.php:396
2768
+ #: includes/functions-ur-core.php:1011
2769
  #: includes/RestApi/class-ur-rest-api.php:250
2770
  msgid "Strong"
2771
  msgstr ""
2802
  msgid "Registration"
2803
  msgstr ""
2804
 
2805
+ #: includes/class-ur-install.php:378
2806
  msgid "Default form"
2807
  msgstr ""
2808
 
2809
+ #: includes/class-ur-install.php:653
2810
  msgid "View User Registration settings"
2811
  msgstr ""
2812
 
2813
+ #: includes/class-ur-install.php:669
2814
  msgid "View User Registration documentation"
2815
  msgstr ""
2816
 
2817
+ #: includes/class-ur-install.php:669
2818
  msgid "Docs"
2819
  msgstr ""
2820
 
2821
+ #: includes/class-ur-install.php:670
2822
  msgid "Visit free customer support"
2823
  msgstr ""
2824
 
2825
+ #: includes/class-ur-install.php:670
2826
  msgid "Free support"
2827
  msgstr ""
2828
 
2878
  #. translators: %1$s: Activation error message
2879
  #. translators: %1$s: Activation error message
2880
  #: includes/class-ur-plugin-updater.php:366
2881
+ #: includes/functions-ur-core.php:2438
2882
+ #: includes/functions-ur-core.php:2457
2883
+ #: includes/functions-ur-core.php:2480
2884
+ #: includes/functions-ur-core.php:2498
2885
+ #: includes/functions-ur-core.php:2504
2886
+ #: includes/functions-ur-core.php:2509
2887
+ #: includes/functions-ur-core.php:2522
2888
  msgid "<strong>Activation error:</strong> %1$s"
2889
  msgstr ""
2890
 
3149
  msgstr ""
3150
 
3151
  #: includes/class-ur-query.php:75
3152
+ #: includes/functions-ur-account.php:121
3153
  msgid "Profile Details"
3154
  msgstr ""
3155
 
3177
  msgid "Your account is still awaiting admin approval. Reset Password is not allowed."
3178
  msgstr ""
3179
 
3180
+ #: includes/form/class-ur-form-field-checkbox.php:44
3181
+ #: includes/form/class-ur-form-field-checkbox.php:49
3182
+ #: includes/functions-ur-core.php:722
3183
  msgid "Checkbox"
3184
  msgstr ""
3185
 
3186
+ #: includes/form/class-ur-form-field-checkbox.php:52
3187
+ #: includes/form/class-ur-form-field-radio.php:52
3188
+ #: includes/form/class-ur-form-field-select.php:52
3189
+ #: includes/functions-ur-core.php:831
3190
  msgid "First Choice"
3191
  msgstr ""
3192
 
3193
+ #: includes/form/class-ur-form-field-checkbox.php:53
3194
+ #: includes/form/class-ur-form-field-radio.php:53
3195
+ #: includes/form/class-ur-form-field-select.php:53
3196
+ #: includes/functions-ur-core.php:832
3197
  msgid "Second Choice"
3198
  msgstr ""
3199
 
3200
+ #: includes/form/class-ur-form-field-checkbox.php:54
3201
+ #: includes/form/class-ur-form-field-radio.php:54
3202
+ #: includes/form/class-ur-form-field-select.php:54
3203
+ #: includes/functions-ur-core.php:833
3204
  msgid "Third Choice"
3205
  msgstr ""
3206
 
3207
+ #. translators: %1$s - Field Label
3208
+ #. translators: %1$s - Field Label
3209
+ #. translators: %1$s - Field Label
3210
+ #. translators: %1$s - Field Label
3211
+ #. translators: %1$s - Field Label
3212
+ #. translators: %1$s - Field Label
3213
+ #. translators: %1$s - Field Label
3214
+ #. translators: %1$s - Field Label
3215
+ #. translators: %1$s - Field Label
3216
+ #. translators: %1$s - Field Label
3217
+ #. translators: %1$s - Field Label
3218
+ #. translators: %1$s - Field Label
3219
+ #. translators: %1$s - Field Label
3220
+ #. translators: %1$s - Field Label
3221
+ #. translators: %1$s - Field Label
3222
+ #. translators: %1$s - Field Label
3223
+ #. translators: %1$s - Field Label
3224
+ #: includes/form/class-ur-form-field-checkbox.php:87
3225
+ #: includes/form/class-ur-form-field-country.php:400
3226
+ #: includes/form/class-ur-form-field-date.php:86
3227
+ #: includes/form/class-ur-form-field-description.php:82
3228
+ #: includes/form/class-ur-form-field-display-name.php:82
3229
+ #: includes/form/class-ur-form-field-email.php:82
3230
+ #: includes/form/class-ur-form-field-first-name.php:82
3231
+ #: includes/form/class-ur-form-field-last-name.php:82
3232
+ #: includes/form/class-ur-form-field-nickname.php:82
3233
+ #: includes/form/class-ur-form-field-number.php:84
3234
+ #: includes/form/class-ur-form-field-password.php:82
3235
+ #: includes/form/class-ur-form-field-privacy-policy.php:83
3236
+ #: includes/form/class-ur-form-field-radio.php:87
3237
+ #: includes/form/class-ur-form-field-select.php:87
3238
+ #: includes/form/class-ur-form-field-text.php:83
3239
+ #: includes/form/class-ur-form-field-textarea.php:83
3240
+ #: includes/form/class-ur-form-field-user-url.php:83
3241
+ msgid "%1$s is required."
3242
+ msgstr ""
3243
+
3244
+ #: includes/form/class-ur-form-field-country.php:44
3245
  msgid "Afghanistan"
3246
  msgstr ""
3247
 
3248
+ #: includes/form/class-ur-form-field-country.php:45
3249
  msgid "&#197;land Islands"
3250
  msgstr ""
3251
 
3252
+ #: includes/form/class-ur-form-field-country.php:46
3253
  msgid "Albania"
3254
  msgstr ""
3255
 
3256
+ #: includes/form/class-ur-form-field-country.php:47
3257
  msgid "Algeria"
3258
  msgstr ""
3259
 
3260
+ #: includes/form/class-ur-form-field-country.php:48
3261
  msgid "American Samoa"
3262
  msgstr ""
3263
 
3264
+ #: includes/form/class-ur-form-field-country.php:49
3265
  msgid "Andorra"
3266
  msgstr ""
3267
 
3268
+ #: includes/form/class-ur-form-field-country.php:50
3269
  msgid "Angola"
3270
  msgstr ""
3271
 
3272
+ #: includes/form/class-ur-form-field-country.php:51
3273
  msgid "Anguilla"
3274
  msgstr ""
3275
 
3276
+ #: includes/form/class-ur-form-field-country.php:52
3277
  msgid "Antarctica"
3278
  msgstr ""
3279
 
3280
+ #: includes/form/class-ur-form-field-country.php:53
3281
  msgid "Antigua and Barbuda"
3282
  msgstr ""
3283
 
3284
+ #: includes/form/class-ur-form-field-country.php:54
3285
  msgid "Argentina"
3286
  msgstr ""
3287
 
3288
+ #: includes/form/class-ur-form-field-country.php:55
3289
  msgid "Armenia"
3290
  msgstr ""
3291
 
3292
+ #: includes/form/class-ur-form-field-country.php:56
3293
  msgid "Aruba"
3294
  msgstr ""
3295
 
3296
+ #: includes/form/class-ur-form-field-country.php:57
3297
  msgid "Australia"
3298
  msgstr ""
3299
 
3300
+ #: includes/form/class-ur-form-field-country.php:58
3301
  msgid "Austria"
3302
  msgstr ""
3303
 
3304
+ #: includes/form/class-ur-form-field-country.php:59
3305
  msgid "Azerbaijan"
3306
  msgstr ""
3307
 
3308
+ #: includes/form/class-ur-form-field-country.php:60
3309
  msgid "Bahamas"
3310
  msgstr ""
3311
 
3312
+ #: includes/form/class-ur-form-field-country.php:61
3313
  msgid "Bahrain"
3314
  msgstr ""
3315
 
3316
+ #: includes/form/class-ur-form-field-country.php:62
3317
  msgid "Bangladesh"
3318
  msgstr ""
3319
 
3320
+ #: includes/form/class-ur-form-field-country.php:63
3321
  msgid "Barbados"
3322
  msgstr ""
3323
 
3324
+ #: includes/form/class-ur-form-field-country.php:64
3325
  msgid "Belarus"
3326
  msgstr ""
3327
 
3328
+ #: includes/form/class-ur-form-field-country.php:65
3329
  msgid "Belgium"
3330
  msgstr ""
3331
 
3332
+ #: includes/form/class-ur-form-field-country.php:66
3333
  msgid "Belau"
3334
  msgstr ""
3335
 
3336
+ #: includes/form/class-ur-form-field-country.php:67
3337
  msgid "Belize"
3338
  msgstr ""
3339
 
3340
+ #: includes/form/class-ur-form-field-country.php:68
3341
  msgid "Benin"
3342
  msgstr ""
3343
 
3344
+ #: includes/form/class-ur-form-field-country.php:69
3345
  msgid "Bermuda"
3346
  msgstr ""
3347
 
3348
+ #: includes/form/class-ur-form-field-country.php:70
3349
  msgid "Bhutan"
3350
  msgstr ""
3351
 
3352
+ #: includes/form/class-ur-form-field-country.php:71
3353
  msgid "Bolivia"
3354
  msgstr ""
3355
 
3356
+ #: includes/form/class-ur-form-field-country.php:72
3357
  msgid "Bonaire, Saint Eustatius and Saba"
3358
  msgstr ""
3359
 
3360
+ #: includes/form/class-ur-form-field-country.php:73
3361
  msgid "Bosnia and Herzegovina"
3362
  msgstr ""
3363
 
3364
+ #: includes/form/class-ur-form-field-country.php:74
3365
  msgid "Botswana"
3366
  msgstr ""
3367
 
3368
+ #: includes/form/class-ur-form-field-country.php:75
3369
  msgid "Bouvet Island"
3370
  msgstr ""
3371
 
3372
+ #: includes/form/class-ur-form-field-country.php:76
3373
  msgid "Brazil"
3374
  msgstr ""
3375
 
3376
+ #: includes/form/class-ur-form-field-country.php:77
3377
  msgid "British Indian Ocean Territory"
3378
  msgstr ""
3379
 
3380
+ #: includes/form/class-ur-form-field-country.php:78
3381
  msgid "British Virgin Islands"
3382
  msgstr ""
3383
 
3384
+ #: includes/form/class-ur-form-field-country.php:79
3385
  msgid "Brunei"
3386
  msgstr ""
3387
 
3388
+ #: includes/form/class-ur-form-field-country.php:80
3389
  msgid "Bulgaria"
3390
  msgstr ""
3391
 
3392
+ #: includes/form/class-ur-form-field-country.php:81
3393
  msgid "Burkina Faso"
3394
  msgstr ""
3395
 
3396
+ #: includes/form/class-ur-form-field-country.php:82
3397
  msgid "Burundi"
3398
  msgstr ""
3399
 
3400
+ #: includes/form/class-ur-form-field-country.php:83
3401
  msgid "Cambodia"
3402
  msgstr ""
3403
 
3404
+ #: includes/form/class-ur-form-field-country.php:84
3405
  msgid "Cameroon"
3406
  msgstr ""
3407
 
3408
+ #: includes/form/class-ur-form-field-country.php:85
3409
  msgid "Canada"
3410
  msgstr ""
3411
 
3412
+ #: includes/form/class-ur-form-field-country.php:86
3413
  msgid "Cape Verde"
3414
  msgstr ""
3415
 
3416
+ #: includes/form/class-ur-form-field-country.php:87
3417
  msgid "Cayman Islands"
3418
  msgstr ""
3419
 
3420
+ #: includes/form/class-ur-form-field-country.php:88
3421
  msgid "Central African Republic"
3422
  msgstr ""
3423
 
3424
+ #: includes/form/class-ur-form-field-country.php:89
3425
  msgid "Chad"
3426
  msgstr ""
3427
 
3428
+ #: includes/form/class-ur-form-field-country.php:90
3429
  msgid "Chile"
3430
  msgstr ""
3431
 
3432
+ #: includes/form/class-ur-form-field-country.php:91
3433
  msgid "China"
3434
  msgstr ""
3435
 
3436
+ #: includes/form/class-ur-form-field-country.php:92
3437
  msgid "Christmas Island"
3438
  msgstr ""
3439
 
3440
+ #: includes/form/class-ur-form-field-country.php:93
3441
  msgid "Cocos (Keeling) Islands"
3442
  msgstr ""
3443
 
3444
+ #: includes/form/class-ur-form-field-country.php:94
3445
  msgid "Colombia"
3446
  msgstr ""
3447
 
3448
+ #: includes/form/class-ur-form-field-country.php:95
3449
  msgid "Comoros"
3450
  msgstr ""
3451
 
3452
+ #: includes/form/class-ur-form-field-country.php:96
3453
  msgid "Congo (Brazzaville)"
3454
  msgstr ""
3455
 
3456
+ #: includes/form/class-ur-form-field-country.php:97
3457
  msgid "Congo (Kinshasa)"
3458
  msgstr ""
3459
 
3460
+ #: includes/form/class-ur-form-field-country.php:98
3461
  msgid "Cook Islands"
3462
  msgstr ""
3463
 
3464
+ #: includes/form/class-ur-form-field-country.php:99
3465
  msgid "Costa Rica"
3466
  msgstr ""
3467
 
3468
+ #: includes/form/class-ur-form-field-country.php:100
3469
  msgid "Croatia"
3470
  msgstr ""
3471
 
3472
+ #: includes/form/class-ur-form-field-country.php:101
3473
  msgid "Cuba"
3474
  msgstr ""
3475
 
3476
+ #: includes/form/class-ur-form-field-country.php:102
3477
  msgid "Cura&ccedil;ao"
3478
  msgstr ""
3479
 
3480
+ #: includes/form/class-ur-form-field-country.php:103
3481
  msgid "Cyprus"
3482
  msgstr ""
3483
 
3484
+ #: includes/form/class-ur-form-field-country.php:104
3485
  msgid "Czech Republic"
3486
  msgstr ""
3487
 
3488
+ #: includes/form/class-ur-form-field-country.php:105
3489
  msgid "Denmark"
3490
  msgstr ""
3491
 
3492
+ #: includes/form/class-ur-form-field-country.php:106
3493
  msgid "Djibouti"
3494
  msgstr ""
3495
 
3496
+ #: includes/form/class-ur-form-field-country.php:107
3497
  msgid "Dominica"
3498
  msgstr ""
3499
 
3500
+ #: includes/form/class-ur-form-field-country.php:108
3501
  msgid "Dominican Republic"
3502
  msgstr ""
3503
 
3504
+ #: includes/form/class-ur-form-field-country.php:109
3505
  msgid "Ecuador"
3506
  msgstr ""
3507
 
3508
+ #: includes/form/class-ur-form-field-country.php:110
3509
  msgid "Egypt"
3510
  msgstr ""
3511
 
3512
+ #: includes/form/class-ur-form-field-country.php:111
3513
  msgid "El Salvador"
3514
  msgstr ""
3515
 
3516
+ #: includes/form/class-ur-form-field-country.php:112
3517
  msgid "Equatorial Guinea"
3518
  msgstr ""
3519
 
3520
+ #: includes/form/class-ur-form-field-country.php:113
3521
  msgid "Eritrea"
3522
  msgstr ""
3523
 
3524
+ #: includes/form/class-ur-form-field-country.php:114
3525
  msgid "Estonia"
3526
  msgstr ""
3527
 
3528
+ #: includes/form/class-ur-form-field-country.php:115
3529
  msgid "Ethiopia"
3530
  msgstr ""
3531
 
3532
+ #: includes/form/class-ur-form-field-country.php:116
3533
  msgid "Falkland Islands"
3534
  msgstr ""
3535
 
3536
+ #: includes/form/class-ur-form-field-country.php:117
3537
  msgid "Faroe Islands"
3538
  msgstr ""
3539
 
3540
+ #: includes/form/class-ur-form-field-country.php:118
3541
  msgid "Fiji"
3542
  msgstr ""
3543
 
3544
+ #: includes/form/class-ur-form-field-country.php:119
3545
  msgid "Finland"
3546
  msgstr ""
3547
 
3548
+ #: includes/form/class-ur-form-field-country.php:120
3549
  msgid "France"
3550
  msgstr ""
3551
 
3552
+ #: includes/form/class-ur-form-field-country.php:121
3553
  msgid "French Guiana"
3554
  msgstr ""
3555
 
3556
+ #: includes/form/class-ur-form-field-country.php:122
3557
  msgid "French Polynesia"
3558
  msgstr ""
3559
 
3560
+ #: includes/form/class-ur-form-field-country.php:123
3561
  msgid "French Southern Territories"
3562
  msgstr ""
3563
 
3564
+ #: includes/form/class-ur-form-field-country.php:124
3565
  msgid "Gabon"
3566
  msgstr ""
3567
 
3568
+ #: includes/form/class-ur-form-field-country.php:125
3569
  msgid "Gambia"
3570
  msgstr ""
3571
 
3572
+ #: includes/form/class-ur-form-field-country.php:126
3573
  msgid "Georgia"
3574
  msgstr ""
3575
 
3576
+ #: includes/form/class-ur-form-field-country.php:127
3577
  msgid "Germany"
3578
  msgstr ""
3579
 
3580
+ #: includes/form/class-ur-form-field-country.php:128
3581
  msgid "Ghana"
3582
  msgstr ""
3583
 
3584
+ #: includes/form/class-ur-form-field-country.php:129
3585
  msgid "Gibraltar"
3586
  msgstr ""
3587
 
3588
+ #: includes/form/class-ur-form-field-country.php:130
3589
  msgid "Greece"
3590
  msgstr ""
3591
 
3592
+ #: includes/form/class-ur-form-field-country.php:131
3593
  msgid "Greenland"
3594
  msgstr ""
3595
 
3596
+ #: includes/form/class-ur-form-field-country.php:132
3597
  msgid "Grenada"
3598
  msgstr ""
3599
 
3600
+ #: includes/form/class-ur-form-field-country.php:133
3601
  msgid "Guadeloupe"
3602
  msgstr ""
3603
 
3604
+ #: includes/form/class-ur-form-field-country.php:134
3605
  msgid "Guam"
3606
  msgstr ""
3607
 
3608
+ #: includes/form/class-ur-form-field-country.php:135
3609
  msgid "Guatemala"
3610
  msgstr ""
3611
 
3612
+ #: includes/form/class-ur-form-field-country.php:136
3613
  msgid "Guernsey"
3614
  msgstr ""
3615
 
3616
+ #: includes/form/class-ur-form-field-country.php:137
3617
  msgid "Guinea"
3618
  msgstr ""
3619
 
3620
+ #: includes/form/class-ur-form-field-country.php:138
3621
  msgid "Guinea-Bissau"
3622
  msgstr ""
3623
 
3624
+ #: includes/form/class-ur-form-field-country.php:139
3625
  msgid "Guyana"
3626
  msgstr ""
3627
 
3628
+ #: includes/form/class-ur-form-field-country.php:140
3629
  msgid "Haiti"
3630
  msgstr ""
3631
 
3632
+ #: includes/form/class-ur-form-field-country.php:141
3633
  msgid "Heard Island and McDonald Islands"
3634
  msgstr ""
3635
 
3636
+ #: includes/form/class-ur-form-field-country.php:142
3637
  msgid "Honduras"
3638
  msgstr ""
3639
 
3640
+ #: includes/form/class-ur-form-field-country.php:143
3641
  msgid "Hong Kong"
3642
  msgstr ""
3643
 
3644
+ #: includes/form/class-ur-form-field-country.php:144
3645
  msgid "Hungary"
3646
  msgstr ""
3647
 
3648
+ #: includes/form/class-ur-form-field-country.php:145
3649
  msgid "Iceland"
3650
  msgstr ""
3651
 
3652
+ #: includes/form/class-ur-form-field-country.php:146
3653
  msgid "India"
3654
  msgstr ""
3655
 
3656
+ #: includes/form/class-ur-form-field-country.php:147
3657
  msgid "Indonesia"
3658
  msgstr ""
3659
 
3660
+ #: includes/form/class-ur-form-field-country.php:148
3661
  msgid "Iran"
3662
  msgstr ""
3663
 
3664
+ #: includes/form/class-ur-form-field-country.php:149
3665
  msgid "Iraq"
3666
  msgstr ""
3667
 
3668
+ #: includes/form/class-ur-form-field-country.php:150
3669
  msgid "Ireland"
3670
  msgstr ""
3671
 
3672
+ #: includes/form/class-ur-form-field-country.php:151
3673
  msgid "Isle of Man"
3674
  msgstr ""
3675
 
3676
+ #: includes/form/class-ur-form-field-country.php:152
3677
  msgid "Israel"
3678
  msgstr ""
3679
 
3680
+ #: includes/form/class-ur-form-field-country.php:153
3681
  msgid "Italy"
3682
  msgstr ""
3683
 
3684
+ #: includes/form/class-ur-form-field-country.php:154
3685
  msgid "Ivory Coast"
3686
  msgstr ""
3687
 
3688
+ #: includes/form/class-ur-form-field-country.php:155
3689
  msgid "Jamaica"
3690
  msgstr ""
3691
 
3692
+ #: includes/form/class-ur-form-field-country.php:156
3693
  msgid "Japan"
3694
  msgstr ""
3695
 
3696
+ #: includes/form/class-ur-form-field-country.php:157
3697
  msgid "Jersey"
3698
  msgstr ""
3699
 
3700
+ #: includes/form/class-ur-form-field-country.php:158
3701
  msgid "Jordan"
3702
  msgstr ""
3703
 
3704
+ #: includes/form/class-ur-form-field-country.php:159
3705
  msgid "Kazakhstan"
3706
  msgstr ""
3707
 
3708
+ #: includes/form/class-ur-form-field-country.php:160
3709
  msgid "Kenya"
3710
  msgstr ""
3711
 
3712
+ #: includes/form/class-ur-form-field-country.php:161
3713
  msgid "Kiribati"
3714
  msgstr ""
3715
 
3716
+ #: includes/form/class-ur-form-field-country.php:162
3717
  msgid "Kuwait"
3718
  msgstr ""
3719
 
3720
+ #: includes/form/class-ur-form-field-country.php:163
3721
  msgid "Kyrgyzstan"
3722
  msgstr ""
3723
 
3724
+ #: includes/form/class-ur-form-field-country.php:164
3725
  msgid "Laos"
3726
  msgstr ""
3727
 
3728
+ #: includes/form/class-ur-form-field-country.php:165
3729
  msgid "Latvia"
3730
  msgstr ""
3731
 
3732
+ #: includes/form/class-ur-form-field-country.php:166
3733
  msgid "Lebanon"
3734
  msgstr ""
3735
 
3736
+ #: includes/form/class-ur-form-field-country.php:167
3737
  msgid "Lesotho"
3738
  msgstr ""
3739
 
3740
+ #: includes/form/class-ur-form-field-country.php:168
3741
  msgid "Liberia"
3742
  msgstr ""
3743
 
3744
+ #: includes/form/class-ur-form-field-country.php:169
3745
  msgid "Libya"
3746
  msgstr ""
3747
 
3748
+ #: includes/form/class-ur-form-field-country.php:170
3749
  msgid "Liechtenstein"
3750
  msgstr ""
3751
 
3752
+ #: includes/form/class-ur-form-field-country.php:171
3753
  msgid "Lithuania"
3754
  msgstr ""
3755
 
3756
+ #: includes/form/class-ur-form-field-country.php:172
3757
  msgid "Luxembourg"
3758
  msgstr ""
3759
 
3760
+ #: includes/form/class-ur-form-field-country.php:173
3761
  msgid "Macao S.A.R., China"
3762
  msgstr ""
3763
 
3764
+ #: includes/form/class-ur-form-field-country.php:174
3765
  msgid "Macedonia"
3766
  msgstr ""
3767
 
3768
+ #: includes/form/class-ur-form-field-country.php:175
3769
  msgid "Madagascar"
3770
  msgstr ""
3771
 
3772
+ #: includes/form/class-ur-form-field-country.php:176
3773
  msgid "Malawi"
3774
  msgstr ""
3775
 
3776
+ #: includes/form/class-ur-form-field-country.php:177
3777
  msgid "Malaysia"
3778
  msgstr ""
3779
 
3780
+ #: includes/form/class-ur-form-field-country.php:178
3781
  msgid "Maldives"
3782
  msgstr ""
3783
 
3784
+ #: includes/form/class-ur-form-field-country.php:179
3785
  msgid "Mali"
3786
  msgstr ""
3787
 
3788
+ #: includes/form/class-ur-form-field-country.php:180
3789
  msgid "Malta"
3790
  msgstr ""
3791
 
3792
+ #: includes/form/class-ur-form-field-country.php:181
3793
  msgid "Marshall Islands"
3794
  msgstr ""
3795
 
3796
+ #: includes/form/class-ur-form-field-country.php:182
3797
  msgid "Martinique"
3798
  msgstr ""
3799
 
3800
+ #: includes/form/class-ur-form-field-country.php:183
3801
  msgid "Mauritania"
3802
  msgstr ""
3803
 
3804
+ #: includes/form/class-ur-form-field-country.php:184
3805
  msgid "Mauritius"
3806
  msgstr ""
3807
 
3808
+ #: includes/form/class-ur-form-field-country.php:185
3809
  msgid "Mayotte"
3810
  msgstr ""
3811
 
3812
+ #: includes/form/class-ur-form-field-country.php:186
3813
  msgid "Mexico"
3814
  msgstr ""
3815
 
3816
+ #: includes/form/class-ur-form-field-country.php:187
3817
  msgid "Micronesia"
3818
  msgstr ""
3819
 
3820
+ #: includes/form/class-ur-form-field-country.php:188
3821
  msgid "Moldova"
3822
  msgstr ""
3823
 
3824
+ #: includes/form/class-ur-form-field-country.php:189
3825
  msgid "Monaco"
3826
  msgstr ""
3827
 
3828
+ #: includes/form/class-ur-form-field-country.php:190
3829
  msgid "Mongolia"
3830
  msgstr ""
3831
 
3832
+ #: includes/form/class-ur-form-field-country.php:191
3833
  msgid "Montenegro"
3834
  msgstr ""
3835
 
3836
+ #: includes/form/class-ur-form-field-country.php:192
3837
  msgid "Montserrat"
3838
  msgstr ""
3839
 
3840
+ #: includes/form/class-ur-form-field-country.php:193
3841
  msgid "Morocco"
3842
  msgstr ""
3843
 
3844
+ #: includes/form/class-ur-form-field-country.php:194
3845
  msgid "Mozambique"
3846
  msgstr ""
3847
 
3848
+ #: includes/form/class-ur-form-field-country.php:195
3849
  msgid "Myanmar"
3850
  msgstr ""
3851
 
3852
+ #: includes/form/class-ur-form-field-country.php:196
3853
  msgid "Namibia"
3854
  msgstr ""
3855
 
3856
+ #: includes/form/class-ur-form-field-country.php:197
3857
  msgid "Nauru"
3858
  msgstr ""
3859
 
3860
+ #: includes/form/class-ur-form-field-country.php:198
3861
  msgid "Nepal"
3862
  msgstr ""
3863
 
3864
+ #: includes/form/class-ur-form-field-country.php:199
3865
  msgid "Netherlands"
3866
  msgstr ""
3867
 
3868
+ #: includes/form/class-ur-form-field-country.php:200
3869
  msgid "New Caledonia"
3870
  msgstr ""
3871
 
3872
+ #: includes/form/class-ur-form-field-country.php:201
3873
  msgid "New Zealand"
3874
  msgstr ""
3875
 
3876
+ #: includes/form/class-ur-form-field-country.php:202
3877
  msgid "Nicaragua"
3878
  msgstr ""
3879
 
3880
+ #: includes/form/class-ur-form-field-country.php:203
3881
  msgid "Niger"
3882
  msgstr ""
3883
 
3884
+ #: includes/form/class-ur-form-field-country.php:204
3885
  msgid "Nigeria"
3886
  msgstr ""
3887
 
3888
+ #: includes/form/class-ur-form-field-country.php:205
3889
  msgid "Niue"
3890
  msgstr ""
3891
 
3892
+ #: includes/form/class-ur-form-field-country.php:206
3893
  msgid "Norfolk Island"
3894
  msgstr ""
3895
 
3896
+ #: includes/form/class-ur-form-field-country.php:207
3897
  msgid "Northern Mariana Islands"
3898
  msgstr ""
3899
 
3900
+ #: includes/form/class-ur-form-field-country.php:208
3901
  msgid "North Korea"
3902
  msgstr ""
3903
 
3904
+ #: includes/form/class-ur-form-field-country.php:209
3905
  msgid "Norway"
3906
  msgstr ""
3907
 
3908
+ #: includes/form/class-ur-form-field-country.php:210
3909
  msgid "Oman"
3910
  msgstr ""
3911
 
3912
+ #: includes/form/class-ur-form-field-country.php:211
3913
  msgid "Pakistan"
3914
  msgstr ""
3915
 
3916
+ #: includes/form/class-ur-form-field-country.php:212
3917
  msgid "Palestinian Territory"
3918
  msgstr ""
3919
 
3920
+ #: includes/form/class-ur-form-field-country.php:213
3921
  msgid "Panama"
3922
  msgstr ""
3923
 
3924
+ #: includes/form/class-ur-form-field-country.php:214
3925
  msgid "Papua New Guinea"
3926
  msgstr ""
3927
 
3928
+ #: includes/form/class-ur-form-field-country.php:215
3929
  msgid "Paraguay"
3930
  msgstr ""
3931
 
3932
+ #: includes/form/class-ur-form-field-country.php:216
3933
  msgid "Peru"
3934
  msgstr ""
3935
 
3936
+ #: includes/form/class-ur-form-field-country.php:217
3937
  msgid "Philippines"
3938
  msgstr ""
3939
 
3940
+ #: includes/form/class-ur-form-field-country.php:218
3941
  msgid "Pitcairn"
3942
  msgstr ""
3943
 
3944
+ #: includes/form/class-ur-form-field-country.php:219
3945
  msgid "Poland"
3946
  msgstr ""
3947
 
3948
+ #: includes/form/class-ur-form-field-country.php:220
3949
  msgid "Portugal"
3950
  msgstr ""
3951
 
3952
+ #: includes/form/class-ur-form-field-country.php:221
3953
  msgid "Puerto Rico"
3954
  msgstr ""
3955
 
3956
+ #: includes/form/class-ur-form-field-country.php:222
3957
  msgid "Qatar"
3958
  msgstr ""
3959
 
3960
+ #: includes/form/class-ur-form-field-country.php:223
3961
  msgid "Reunion"
3962
  msgstr ""
3963
 
3964
+ #: includes/form/class-ur-form-field-country.php:224
3965
  msgid "Romania"
3966
  msgstr ""
3967
 
3968
+ #: includes/form/class-ur-form-field-country.php:225
3969
  msgid "Russia"
3970
  msgstr ""
3971
 
3972
+ #: includes/form/class-ur-form-field-country.php:226
3973
  msgid "Rwanda"
3974
  msgstr ""
3975
 
3976
+ #: includes/form/class-ur-form-field-country.php:227
3977
  msgid "Saint Barth&eacute;lemy"
3978
  msgstr ""
3979
 
3980
+ #: includes/form/class-ur-form-field-country.php:228
3981
  msgid "Saint Helena"
3982
  msgstr ""
3983
 
3984
+ #: includes/form/class-ur-form-field-country.php:229
3985
  msgid "Saint Kitts and Nevis"
3986
  msgstr ""
3987
 
3988
+ #: includes/form/class-ur-form-field-country.php:230
3989
  msgid "Saint Lucia"
3990
  msgstr ""
3991
 
3992
+ #: includes/form/class-ur-form-field-country.php:231
3993
  msgid "Saint Martin (French part)"
3994
  msgstr ""
3995
 
3996
+ #: includes/form/class-ur-form-field-country.php:232
3997
  msgid "Saint Martin (Dutch part)"
3998
  msgstr ""
3999
 
4000
+ #: includes/form/class-ur-form-field-country.php:233
4001
  msgid "Saint Pierre and Miquelon"
4002
  msgstr ""
4003
 
4004
+ #: includes/form/class-ur-form-field-country.php:234
4005
  msgid "Saint Vincent and the Grenadines"
4006
  msgstr ""
4007
 
4008
+ #: includes/form/class-ur-form-field-country.php:235
4009
  msgid "San Marino"
4010
  msgstr ""
4011
 
4012
+ #: includes/form/class-ur-form-field-country.php:236
4013
  msgid "S&atilde;o Tom&eacute; and Pr&iacute;ncipe"
4014
  msgstr ""
4015
 
4016
+ #: includes/form/class-ur-form-field-country.php:237
4017
  msgid "Saudi Arabia"
4018
  msgstr ""
4019
 
4020
+ #: includes/form/class-ur-form-field-country.php:238
4021
  msgid "Senegal"
4022
  msgstr ""
4023
 
4024
+ #: includes/form/class-ur-form-field-country.php:239
4025
  msgid "Serbia"
4026
  msgstr ""
4027
 
4028
+ #: includes/form/class-ur-form-field-country.php:240
4029
  msgid "Seychelles"
4030
  msgstr ""
4031
 
4032
+ #: includes/form/class-ur-form-field-country.php:241
4033
  msgid "Sierra Leone"
4034
  msgstr ""
4035
 
4036
+ #: includes/form/class-ur-form-field-country.php:242
4037
  msgid "Singapore"
4038
  msgstr ""
4039
 
4040
+ #: includes/form/class-ur-form-field-country.php:243
4041
  msgid "Slovakia"
4042
  msgstr ""
4043
 
4044
+ #: includes/form/class-ur-form-field-country.php:244
4045
  msgid "Slovenia"
4046
  msgstr ""
4047
 
4048
+ #: includes/form/class-ur-form-field-country.php:245
4049
  msgid "Solomon Islands"
4050
  msgstr ""
4051
 
4052
+ #: includes/form/class-ur-form-field-country.php:246
4053
  msgid "Somalia"
4054
  msgstr ""
4055
 
4056
+ #: includes/form/class-ur-form-field-country.php:247
4057
  msgid "South Africa"
4058
  msgstr ""
4059
 
4060
+ #: includes/form/class-ur-form-field-country.php:248
4061
  msgid "South Georgia/Sandwich Islands"
4062
  msgstr ""
4063
 
4064
+ #: includes/form/class-ur-form-field-country.php:249
4065
  msgid "South Korea"
4066
  msgstr ""
4067
 
4068
+ #: includes/form/class-ur-form-field-country.php:250
4069
  msgid "South Sudan"
4070
  msgstr ""
4071
 
4072
+ #: includes/form/class-ur-form-field-country.php:251
4073
  msgid "Spain"
4074
  msgstr ""
4075
 
4076
+ #: includes/form/class-ur-form-field-country.php:252
4077
  msgid "Sri Lanka"
4078
  msgstr ""
4079
 
4080
+ #: includes/form/class-ur-form-field-country.php:253
4081
  msgid "Sudan"
4082
  msgstr ""
4083
 
4084
+ #: includes/form/class-ur-form-field-country.php:254
4085
  msgid "Suriname"
4086
  msgstr ""
4087
 
4088
+ #: includes/form/class-ur-form-field-country.php:255
4089
  msgid "Svalbard and Jan Mayen"
4090
  msgstr ""
4091
 
4092
+ #: includes/form/class-ur-form-field-country.php:256
4093
  msgid "Swaziland"
4094
  msgstr ""
4095
 
4096
+ #: includes/form/class-ur-form-field-country.php:257
4097
  msgid "Sweden"
4098
  msgstr ""
4099
 
4100
+ #: includes/form/class-ur-form-field-country.php:258
4101
  msgid "Switzerland"
4102
  msgstr ""
4103
 
4104
+ #: includes/form/class-ur-form-field-country.php:259
4105
  msgid "Syria"
4106
  msgstr ""
4107
 
4108
+ #: includes/form/class-ur-form-field-country.php:260
4109
  msgid "Taiwan"
4110
  msgstr ""
4111
 
4112
+ #: includes/form/class-ur-form-field-country.php:261
4113
  msgid "Tajikistan"
4114
  msgstr ""
4115
 
4116
+ #: includes/form/class-ur-form-field-country.php:262
4117
  msgid "Tanzania"
4118
  msgstr ""
4119
 
4120
+ #: includes/form/class-ur-form-field-country.php:263
4121
  msgid "Thailand"
4122
  msgstr ""
4123
 
4124
+ #: includes/form/class-ur-form-field-country.php:264
4125
  msgid "Timor-Leste"
4126
  msgstr ""
4127
 
4128
+ #: includes/form/class-ur-form-field-country.php:265
4129
  msgid "Togo"
4130
  msgstr ""
4131
 
4132
+ #: includes/form/class-ur-form-field-country.php:266
4133
  msgid "Tokelau"
4134
  msgstr ""
4135
 
4136
+ #: includes/form/class-ur-form-field-country.php:267
4137
  msgid "Tonga"
4138
  msgstr ""
4139
 
4140
+ #: includes/form/class-ur-form-field-country.php:268
4141
  msgid "Trinidad and Tobago"
4142
  msgstr ""
4143
 
4144
+ #: includes/form/class-ur-form-field-country.php:269
4145
  msgid "Tunisia"
4146
  msgstr ""
4147
 
4148
+ #: includes/form/class-ur-form-field-country.php:270
4149
  msgid "Turkey"
4150
  msgstr ""
4151
 
4152
+ #: includes/form/class-ur-form-field-country.php:271
4153
  msgid "Turkmenistan"
4154
  msgstr ""
4155
 
4156
+ #: includes/form/class-ur-form-field-country.php:272
4157
  msgid "Turks and Caicos Islands"
4158
  msgstr ""
4159
 
4160
+ #: includes/form/class-ur-form-field-country.php:273
4161
  msgid "Tuvalu"
4162
  msgstr ""
4163
 
4164
+ #: includes/form/class-ur-form-field-country.php:274
4165
  msgid "Uganda"
4166
  msgstr ""
4167
 
4168
+ #: includes/form/class-ur-form-field-country.php:275
4169
  msgid "Ukraine"
4170
  msgstr ""
4171
 
4172
+ #: includes/form/class-ur-form-field-country.php:276
4173
  msgid "United Arab Emirates"
4174
  msgstr ""
4175
 
4176
+ #: includes/form/class-ur-form-field-country.php:277
4177
  msgid "United Kingdom (UK)"
4178
  msgstr ""
4179
 
4180
+ #: includes/form/class-ur-form-field-country.php:278
4181
  msgid "United States (US)"
4182
  msgstr ""
4183
 
4184
+ #: includes/form/class-ur-form-field-country.php:279
4185
  msgid "United States (US) Minor Outlying Islands"
4186
  msgstr ""
4187
 
4188
+ #: includes/form/class-ur-form-field-country.php:280
4189
  msgid "United States (US) Virgin Islands"
4190
  msgstr ""
4191
 
4192
+ #: includes/form/class-ur-form-field-country.php:281
4193
  msgid "Uruguay"
4194
  msgstr ""
4195
 
4196
+ #: includes/form/class-ur-form-field-country.php:282
4197
  msgid "Uzbekistan"
4198
  msgstr ""
4199
 
4200
+ #: includes/form/class-ur-form-field-country.php:283
4201
  msgid "Vanuatu"
4202
  msgstr ""
4203
 
4204
+ #: includes/form/class-ur-form-field-country.php:284
4205
  msgid "Vatican"
4206
  msgstr ""
4207
 
4208
+ #: includes/form/class-ur-form-field-country.php:285
4209
  msgid "Venezuela"
4210
  msgstr ""
4211
 
4212
+ #: includes/form/class-ur-form-field-country.php:286
4213
  msgid "Vietnam"
4214
  msgstr ""
4215
 
4216
+ #: includes/form/class-ur-form-field-country.php:287
4217
  msgid "Wallis and Futuna"
4218
  msgstr ""
4219
 
4220
+ #: includes/form/class-ur-form-field-country.php:288
4221
  msgid "Western Sahara"
4222
  msgstr ""
4223
 
4224
+ #: includes/form/class-ur-form-field-country.php:289
4225
  msgid "Samoa"
4226
  msgstr ""
4227
 
4228
+ #: includes/form/class-ur-form-field-country.php:290
4229
  msgid "Yemen"
4230
  msgstr ""
4231
 
4232
+ #: includes/form/class-ur-form-field-country.php:291
4233
  msgid "Zambia"
4234
  msgstr ""
4235
 
4236
+ #: includes/form/class-ur-form-field-country.php:292
4237
  msgid "Zimbabwe"
4238
  msgstr ""
4239
 
4240
+ #: includes/form/class-ur-form-field-country.php:362
4241
+ #: includes/form/class-ur-form-field-country.php:367
4242
+ #: includes/functions-ur-core.php:718
4243
  msgid "Country"
4244
  msgstr ""
4245
 
4246
+ #: includes/form/class-ur-form-field-description.php:44
4247
+ #: includes/form/class-ur-form-field-description.php:49
4248
  msgid "User Bio"
4249
  msgstr ""
4250
 
4251
+ #: includes/form/class-ur-form-field-display-name.php:44
4252
+ #: includes/form/class-ur-form-field-display-name.php:49
4253
+ #: includes/functions-ur-core.php:712
4254
  msgid "Display Name"
4255
  msgstr ""
4256
 
4257
+ #: includes/form/class-ur-form-field-email.php:44
4258
  msgid "Secondary Email "
4259
  msgstr ""
4260
 
4261
+ #: includes/form/class-ur-form-field-email.php:49
4262
+ #: includes/functions-ur-core.php:716
4263
  msgid "Secondary Email"
4264
  msgstr ""
4265
 
4266
+ #. translators: %1$s - Field Label
4267
+ #: includes/form/class-ur-form-field-email.php:92
4268
+ msgid "%1$s must be a valid email address."
4269
+ msgstr ""
4270
+
4271
+ #: includes/form/class-ur-form-field-first-name.php:44
4272
+ #: includes/form/class-ur-form-field-first-name.php:49
4273
+ #: includes/functions-ur-core.php:709
4274
  msgid "First Name"
4275
  msgstr ""
4276
 
4277
+ #: includes/form/class-ur-form-field-last-name.php:44
4278
  msgid "Last Name "
4279
  msgstr ""
4280
 
4281
+ #: includes/form/class-ur-form-field-last-name.php:49
4282
+ #: includes/functions-ur-core.php:710
4283
  msgid "Last Name"
4284
  msgstr ""
4285
 
4286
+ #: includes/form/class-ur-form-field-nickname.php:44
4287
+ #: includes/form/class-ur-form-field-nickname.php:49
4288
+ #: includes/functions-ur-core.php:708
4289
  msgid "Nickname"
4290
  msgstr ""
4291
 
4292
+ #. translators: %1$s - Field Label
4293
+ #: includes/form/class-ur-form-field-number.php:94
4294
+ msgid "%1$s must be numeric value."
4295
+ msgstr ""
4296
+
4297
+ #: includes/form/class-ur-form-field-privacy-policy.php:44
4298
+ #: includes/form/class-ur-form-field-privacy-policy.php:49
4299
+ #: includes/functions-ur-core.php:723
4300
  msgid "Privacy Policy"
4301
  msgstr ""
4302
 
4303
+ #: includes/form/class-ur-form-field-radio.php:44
4304
+ #: includes/form/class-ur-form-field-radio.php:49
4305
+ #: includes/functions-ur-core.php:724
4306
  msgid "Radio"
4307
  msgstr ""
4308
 
4309
+ #: includes/form/class-ur-form-field-text.php:44
4310
+ #: includes/form/class-ur-form-field-text.php:49
4311
  msgid "Input Field"
4312
  msgstr ""
4313
 
4314
+ #: includes/form/class-ur-form-field-textarea.php:44
4315
+ #: includes/form/class-ur-form-field-textarea.php:49
4316
+ #: includes/functions-ur-core.php:719
4317
  msgid "Textarea"
4318
  msgstr ""
4319
 
4320
+ #: includes/form/class-ur-form-field-user-confirm-email.php:47
4321
  msgid "Confirm Email "
4322
  msgstr ""
4323
 
4324
+ #: includes/form/class-ur-form-field-user-confirm-password.php:44
4325
  msgid "Confirm Password "
4326
  msgstr ""
4327
 
4328
+ #: includes/form/class-ur-form-field-user-email.php:44
4329
  msgid "Email "
4330
  msgstr ""
4331
 
4332
+ #: includes/form/class-ur-form-field-user-email.php:49
4333
+ #: includes/functions-ur-core.php:703
4334
  msgid "User Email"
4335
  msgstr ""
4336
 
4337
+ #: includes/form/class-ur-form-field-user-email.php:78
4338
  msgid "Invalid email address."
4339
  msgstr ""
4340
 
4341
+ #: includes/form/class-ur-form-field-user-login.php:44
4342
+ #: includes/form/class-ur-form-field-user-login.php:49
4343
+ #: includes/functions-ur-core.php:1150
4344
  msgid "Username"
4345
  msgstr ""
4346
 
4347
+ #: includes/form/class-ur-form-field-user-login.php:76
4348
  msgid "Username already exists."
4349
  msgstr ""
4350
 
4351
+ #: includes/form/class-ur-form-field-user-login.php:87
4352
  msgid "Invalid username ! "
4353
  msgstr ""
4354
 
4355
+ #: includes/form/class-ur-form-field-user-pass.php:44
4356
  msgid "Password "
4357
  msgstr ""
4358
 
4359
+ #: includes/form/class-ur-form-field-user-pass.php:49
4360
  msgid "User Password"
4361
  msgstr ""
4362
 
4363
+ #: includes/form/class-ur-form-field-user-pass.php:77
4364
  msgid "Empty password."
4365
  msgstr ""
4366
 
4367
+ #: includes/form/class-ur-form-field-user-url.php:44
4368
+ #: includes/form/class-ur-form-field-user-url.php:49
4369
  msgid "Website"
4370
  msgstr ""
4371
 
4450
 
4451
  #: includes/form/settings/class-ur-setting-checkbox.php:63
4452
  #: includes/form/settings/class-ur-setting-user_login.php:63
4453
+ #: includes/functions-ur-core.php:783
4454
+ #: includes/functions-ur-core.php:796
4455
  msgid "No"
4456
  msgstr ""
4457
 
4458
  #: includes/form/settings/class-ur-setting-checkbox.php:64
4459
  #: includes/form/settings/class-ur-setting-user_login.php:64
4460
+ #: includes/functions-ur-core.php:784
4461
+ #: includes/functions-ur-core.php:797
4462
  msgid "Yes"
4463
  msgstr ""
4464
 
4623
  msgid "Required form field not found."
4624
  msgstr ""
4625
 
4626
+ #: includes/frontend/class-ur-frontend-form-handler.php:404
4627
  msgid "Empty confirm password"
4628
  msgstr ""
4629
 
4630
+ #: includes/frontend/class-ur-frontend-form-handler.php:406
4631
  msgid "Password and confirm password not matched"
4632
  msgstr ""
4633
 
4634
+ #: includes/frontend/class-ur-frontend-form-handler.php:450
4635
  msgid "Empty confirm email"
4636
  msgstr ""
4637
 
4638
+ #: includes/frontend/class-ur-frontend-form-handler.php:452
4639
  msgid "Email and confirm email not matched"
4640
  msgstr ""
4641
 
4642
+ #: includes/frontend/class-ur-frontend-form-handler.php:512
4643
  msgid "Password should not match with Username or Email address."
4644
  msgstr ""
4645
 
4648
  msgid "Invalid username. %1s"
4649
  msgstr ""
4650
 
4651
+ #: includes/functions-ur-account.php:120
4652
  msgid "Dashboard"
4653
  msgstr ""
4654
 
4655
+ #: includes/functions-ur-core.php:557
4656
  msgid "Username can not be changed."
4657
  msgstr ""
4658
 
4659
+ #: includes/functions-ur-core.php:561
4660
  msgid "Passowrd can not be changed."
4661
  msgstr ""
4662
 
4663
+ #: includes/functions-ur-core.php:565
4664
  msgid "Confirm password can not be changed."
4665
  msgstr ""
4666
 
4667
+ #: includes/functions-ur-core.php:568
4668
  msgid "Confirm email can not be changed."
4669
  msgstr ""
4670
 
4671
+ #: includes/functions-ur-core.php:704
4672
  msgid "User Confirm Email"
4673
  msgstr ""
4674
 
4675
+ #: includes/functions-ur-core.php:705
4676
  msgid "User Pass"
4677
  msgstr ""
4678
 
4679
+ #: includes/functions-ur-core.php:706
4680
  msgid "User Confirm Password"
4681
  msgstr ""
4682
 
4683
+ #: includes/functions-ur-core.php:707
4684
  msgid "User Login"
4685
  msgstr ""
4686
 
4687
+ #: includes/functions-ur-core.php:711
4688
  msgid "User URL"
4689
  msgstr ""
4690
 
4691
+ #: includes/functions-ur-core.php:713
4692
+ #: includes/functions-ur-core.php:750
4693
+ #: includes/functions-ur-core.php:752
4694
  msgid "Description"
4695
  msgstr ""
4696
 
4697
+ #: includes/functions-ur-core.php:714
4698
  msgid "Text"
4699
  msgstr ""
4700
 
4701
+ #: includes/functions-ur-core.php:741
4702
+ #: includes/functions-ur-core.php:743
4703
  msgid "Label"
4704
  msgstr ""
4705
 
4706
+ #: includes/functions-ur-core.php:745
4707
  msgid "Enter text for the form field label. This is recommended and can be hidden in the Advanced Settings."
4708
  msgstr ""
4709
 
4710
+ #: includes/functions-ur-core.php:754
4711
  msgid "Enter text for the form field description."
4712
  msgstr ""
4713
 
4714
+ #: includes/functions-ur-core.php:759
4715
+ #: includes/functions-ur-core.php:761
4716
  msgid "Field Name"
4717
  msgstr ""
4718
 
4719
+ #: includes/functions-ur-core.php:763
4720
  msgid "Unique key for the field."
4721
  msgstr ""
4722
 
4723
+ #: includes/functions-ur-core.php:769
4724
+ #: includes/functions-ur-core.php:771
4725
  msgid "Placeholder"
4726
  msgstr ""
4727
 
4728
+ #: includes/functions-ur-core.php:773
4729
  msgid "Enter placeholder for the field."
4730
  msgstr ""
4731
 
4732
+ #: includes/functions-ur-core.php:786
4733
  msgid "Check this option to mark the field required. A form will not submit unless all required fields are provided."
4734
  msgstr ""
4735
 
4736
+ #: includes/functions-ur-core.php:791
4737
  msgid "Hide Label"
4738
  msgstr ""
4739
 
4740
+ #: includes/functions-ur-core.php:799
4741
  msgid "Check this option to hide the label of this field."
4742
  msgstr ""
4743
 
4744
+ #: includes/functions-ur-core.php:826
4745
  msgid "Options"
4746
  msgstr ""
4747
 
4748
+ #: includes/functions-ur-core.php:953
4749
  #: includes/RestApi/class-ur-rest-api.php:199
4750
  msgid "User login option"
4751
  msgstr ""
4752
 
4753
+ #: includes/functions-ur-core.php:963
4754
  msgid "Login method that should be used by the users registered through this form."
4755
  msgstr ""
4756
 
4757
+ #: includes/functions-ur-core.php:976
4758
  #: includes/RestApi/class-ur-rest-api.php:254
4759
  msgid "Default User Role"
4760
  msgstr ""
4761
 
4762
+ #: includes/functions-ur-core.php:985
4763
  #: includes/RestApi/class-ur-rest-api.php:255
4764
  msgid "Default role for the users registered through this form."
4765
  msgstr ""
4766
 
4767
+ #: includes/functions-ur-core.php:989
4768
  #: includes/RestApi/class-ur-rest-api.php:234
4769
  msgid "Enable Strong Password"
4770
  msgstr ""
4771
 
4772
+ #: includes/functions-ur-core.php:997
4773
  #: includes/RestApi/class-ur-rest-api.php:235
4774
  msgid "Make strong password compulsary."
4775
  msgstr ""
4776
 
4777
+ #: includes/functions-ur-core.php:1001
4778
  #: includes/RestApi/class-ur-rest-api.php:241
4779
  msgid "Minimum Password Strength"
4780
  msgstr ""
4781
 
4782
+ #: includes/functions-ur-core.php:1015
4783
  #: includes/RestApi/class-ur-rest-api.php:242
4784
  msgid "Set minimum required password strength."
4785
  msgstr ""
4786
 
4787
+ #: includes/functions-ur-core.php:1019
4788
  msgid "Redirect URL"
4789
  msgstr ""
4790
 
4791
+ #: includes/functions-ur-core.php:1021
4792
  msgid "This option lets you enter redirect path after successful user registration."
4793
  msgstr ""
4794
 
4795
+ #: includes/functions-ur-core.php:1026
4796
  msgid "URL to redirect to after registration."
4797
  msgstr ""
4798
 
4799
+ #: includes/functions-ur-core.php:1030
4800
  msgid "Form Submit Button Custom Class"
4801
  msgstr ""
4802
 
4803
+ #: includes/functions-ur-core.php:1038
4804
  msgid "Custom css class to embed in the submit button. You can enter multiple classes seperated with space."
4805
  msgstr ""
4806
 
4807
+ #: includes/functions-ur-core.php:1042
4808
  msgid "Form Submit Button Label"
4809
  msgstr ""
4810
 
4811
+ #: includes/functions-ur-core.php:1050
4812
  msgid "Set label for the submit button."
4813
  msgstr ""
4814
 
4815
+ #: includes/functions-ur-core.php:1054
4816
  msgid "Success message position"
4817
  msgstr ""
4818
 
4819
+ #: includes/functions-ur-core.php:1061
4820
  msgid "Top"
4821
  msgstr ""
4822
 
4823
+ #: includes/functions-ur-core.php:1062
4824
  msgid "Bottom"
4825
  msgstr ""
4826
 
4827
+ #: includes/functions-ur-core.php:1066
4828
  msgid "Display success message either at the top or bottom after successful registration."
4829
  msgstr ""
4830
 
4831
  #. translators: 1: Link tag open 2:: Link content 3:: Link tag close
4832
+ #: includes/functions-ur-core.php:1072
4833
  msgid "Enable %1$s %2$s Captcha %3$s Support"
4834
  msgstr ""
4835
 
4836
+ #: includes/functions-ur-core.php:1080
4837
  msgid "Enable Captcha for strong security from spams and bots."
4838
  msgstr ""
4839
 
4840
+ #: includes/functions-ur-core.php:1099
4841
  #: includes/RestApi/class-ur-rest-api.php:221
4842
  msgid "Choose form template to use."
4843
  msgstr ""
4844
 
4845
+ #: includes/functions-ur-core.php:1103
4846
  msgid "Custom CSS class"
4847
  msgstr ""
4848
 
4849
+ #: includes/functions-ur-core.php:1111
4850
  msgid "Custom css class to embed in the registration form. You can enter multiple classes seperated with space."
4851
  msgstr ""
4852
 
4853
+ #: includes/functions-ur-core.php:1131
4854
  msgid "Auto approval and manual login"
4855
  msgstr ""
4856
 
4857
+ #: includes/functions-ur-core.php:1132
4858
  msgid "Auto approval and auto login "
4859
  msgstr ""
4860
 
4861
+ #: includes/functions-ur-core.php:1133
4862
  msgid "Admin approval"
4863
  msgstr ""
4864
 
4865
+ #: includes/functions-ur-core.php:1134
4866
  msgid "Auto approval after email confirmation"
4867
  msgstr ""
4868
 
4869
  #. translators: %s: Class
4870
+ #: includes/functions-ur-core.php:1363
4871
  msgid "The class <code>%s</code> provided by user_registration_logging_class filter must implement <code>UR_Logger_Interface</code>."
4872
  msgstr ""
4873
 
4874
+ #: includes/functions-ur-core.php:1464
4875
  msgid "Disable emails"
4876
  msgstr ""
4877
 
4878
+ #: includes/functions-ur-core.php:1465
4879
  msgid "Disable all emails sent after registration."
4880
  msgstr ""
4881
 
4882
+ #: includes/functions-ur-core.php:2264
4883
+ msgid "Conditional Logic"
4884
+ msgstr ""
4885
+
4886
+ #: includes/functions-ur-core.php:2273
4887
  msgid "Use conditional logic"
4888
  msgstr ""
4889
 
4890
+ #: includes/functions-ur-core.php:2277
4891
  msgid "Conditional Rules"
4892
  msgstr ""
4893
 
4894
+ #: includes/functions-ur-core.php:2278
4895
  msgid "Send data only if the following matches."
4896
  msgstr ""
4897
 
4898
+ #: includes/functions-ur-core.php:2316
4899
  msgid "Checked"
4900
  msgstr ""
4901
 
4902
+ #: includes/functions-ur-core.php:2435
4903
  msgid "Sorry, you are not allowed to install plugins on this site."
4904
  msgstr ""
4905
 
4906
+ #: includes/functions-ur-core.php:2514
4907
  msgid "Unable to connect to the filesystem. Please confirm your credentials."
4908
  msgstr ""
4909
 
4917
  msgid "This function should not be called before user_registration_init."
4918
  msgstr ""
4919
 
4920
+ #: includes/functions-ur-template.php:214
4921
  msgid "required"
4922
  msgstr ""
4923
 
4924
+ #: includes/functions-ur-template.php:326
4925
+ msgid "Select All"
4926
+ msgstr ""
4927
+
4928
+ #: includes/functions-ur-template.php:519
4929
  msgid "Choose an option"
4930
  msgstr ""
4931
 
4953
  msgid "Check to enable users to register"
4954
  msgstr ""
4955
 
 
 
 
 
 
 
 
 
4956
  #: includes/RestApi/class-ur-rest-api.php:281
4957
  msgid "Enable lost password"
4958
  msgstr ""
5005
  msgid "Are you sure you want to log out?&nbsp;<a href=\"%s\">Confirm and log out</a>"
5006
  msgstr ""
5007
 
5008
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:226
5009
  msgid "No profile details found."
5010
  msgstr ""
5011
 
5012
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:327
5013
  msgid "Enter a username or email address."
5014
  msgstr ""
5015
 
5016
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:348
5017
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:353
5018
  msgid "Invalid username or email."
5019
  msgstr ""
5020
 
5021
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:363
5022
  msgid "Password reset is not allowed for this user"
5023
  msgstr ""
5024
 
5025
+ #: includes/shortcodes/class-ur-shortcode-my-account.php:376
5026
  msgid "The email could not be sent. Contact your site administrator. "
5027
  msgstr ""
5028
 
5079
  msgstr ""
5080
 
5081
  #: templates/myaccount/form-edit-password.php:82
5082
+ #: templates/myaccount/form-edit-profile.php:406
5083
+ #: templates/myaccount/form-edit-profile.php:411
5084
  msgid "Save changes"
5085
  msgstr ""
5086
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: WPEverest
3
  Tags: user registration, registration, user profile, registration form, login form,
4
  Requires at least: 4.0
5
  Requires PHP: 5.3
6
- Tested up to: 6.0.1
7
- Stable tag: 2.2.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -277,6 +277,24 @@ Yes, the plugin has a shortcode for the login form.
277
 
278
  == Changelog ==
279
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  = 2.2.1 - 28/07/2022
281
  * Enhance - Display Keyboard Shortcuts Popup when (Ctrl + H) is pressed.
282
  * Enhance - Toggle introduced in metabox settings.
3
  Tags: user registration, registration, user profile, registration form, login form,
4
  Requires at least: 4.0
5
  Requires PHP: 5.3
6
+ Tested up to: 6.0.2
7
+ Stable tag: 2.2.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
277
 
278
  == Changelog ==
279
 
280
+ = 2.2.2 - 06/09/2022
281
+ * Enhance - Parse smart tag values in appropriate format to display​.
282
+ * Refactor - Remove field icon code.​
283
+ * Refactor - Replace jQuery tiptip with Tooltipster for tooltip​.
284
+ * Tweak - Double quoted main font family ignored by browsers.​
285
+ * Tweak - Replace incremental file name function with WordPress default.​
286
+ * Tweak - Revert content overrider not saving code back to old working one.​
287
+ * Tweak - Settings option label made consistent​.
288
+ * Fix - Flatpickr localization issue.
289
+ * Fix - File type valid value format.​
290
+ * Fix - Select All option translation issue.​
291
+ * Fix - Conditional Logic enabled required field issue. ​
292
+ * Fix - Invalid argument error in foreach when updating pro.​
293
+ * Fix - Redirection after registration not working with block.​
294
+ * Fix - Error thrown when uploaded file is not found in upload directory.​
295
+ * Fix - Ajax Submission not working in edit profile when required field empty.
296
+ * Fix - Lost password not working when no default account page with forgot password endpoint​.
297
+
298
  = 2.2.1 - 28/07/2022
299
  * Enhance - Display Keyboard Shortcuts Popup when (Ctrl + H) is pressed.
300
  * Enhance - Toggle introduced in metabox settings.
templates/myaccount/form-edit-profile.php CHANGED
@@ -291,6 +291,24 @@ do_action( 'user_registration_before_edit_profile_form' ); ?>
291
  if ( isset( $advance_data['advance_setting']->valid_file_type ) ) {
292
  $field['valid_file_type'] = $advance_data['advance_setting']->valid_file_type;
293
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  }
295
 
296
  if ( isset( $advance_data['general_setting']->required ) ) {
291
  if ( isset( $advance_data['advance_setting']->valid_file_type ) ) {
292
  $field['valid_file_type'] = $advance_data['advance_setting']->valid_file_type;
293
  }
294
+
295
+ // Remove files attachment id from user meta if file is deleted by admin.
296
+ if ( '' !== $field['value'] ) {
297
+ $attachment_ids = explode( ',', $field['value'] );
298
+
299
+ foreach ( $attachment_ids as $attachment_key => $attachment_id ) {
300
+ $attachment_url = get_attached_file( $attachment_id );
301
+
302
+ // Check to see if file actually exists or not.
303
+ if ( '' !== $attachment_url && file_exists( $attachment_url ) ) {
304
+ continue;
305
+ }
306
+ unset( $attachment_ids[ $attachment_key ] );
307
+ }
308
+
309
+ $field['value'] = ! empty( $attachment_ids ) ? implode( ',', $attachment_ids ) : '';
310
+ update_user_meta( get_current_user_id(), 'user_registration_' . $single_item->general_setting->field_name, $field['value'] );
311
+ }
312
  }
313
 
314
  if ( isset( $advance_data['general_setting']->required ) ) {
user-registration.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: User Registration
4
  * Plugin URI: https://wpeverest.com/plugins/user-registration
5
  * Description: Drag and Drop user registration form and login form builder.
6
- * Version: 2.2.1
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: user-registration
@@ -31,7 +31,7 @@ if ( ! class_exists( 'UserRegistration' ) ) :
31
  *
32
  * @var string
33
  */
34
- public $version = '2.2.1';
35
 
36
  /**
37
  * Session instance.
3
  * Plugin Name: User Registration
4
  * Plugin URI: https://wpeverest.com/plugins/user-registration
5
  * Description: Drag and Drop user registration form and login form builder.
6
+ * Version: 2.2.2
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: user-registration
31
  *
32
  * @var string
33
  */
34
+ public $version = '2.2.2';
35
 
36
  /**
37
  * Session instance.