@cling-se/widget 0.14.3 → 0.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/.eslintrc.cjs +4 -4
  2. package/README.md +40 -40
  3. package/package.json +1 -1
  4. package/tsconfig.json +26 -26
  5. package/tsconfig.node.json +10 -10
  6. package/tsconfig.paths.json +17 -17
  7. package/vite.config.ts +61 -61
  8. package/dist/AddClientCallout-DKH-LP5B.js +0 -46
  9. package/dist/AnswerModal-BCbq8wc4.js +0 -3869
  10. package/dist/AttachmentItem-60CSZnkF.js +0 -78
  11. package/dist/BaseDatePicker-Cl8SnC1k.js +0 -3183
  12. package/dist/BaseUpload-D4FCjlhL.js +0 -1977
  13. package/dist/BlockMedia-CqkwdGnE.js +0 -76
  14. package/dist/CCallout-BTBgU8f-.js +0 -59
  15. package/dist/CCurrencyDropdown-CL32Mo-Y.js +0 -246
  16. package/dist/CDropdownItem-DlWtQwO6.js +0 -538
  17. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  18. package/dist/CFormField-BxJv-nUO.js +0 -241
  19. package/dist/CPhoneFormat-CJ9kndtJ.js +0 -62
  20. package/dist/CPriceInput-BpXI5X2j.js +0 -112
  21. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  22. package/dist/ClientAutocomplete-D9Dj9iBW.js +0 -78
  23. package/dist/ClientModal-JOt8NGcR.js +0 -625
  24. package/dist/ColorPicker-uPKD-Gvm.js +0 -2879
  25. package/dist/CompanyModal-7bG0iIRd.js +0 -141
  26. package/dist/ContentWrapper-B2nyZHL4.js +0 -183
  27. package/dist/CoverBlockSettings-C1O_FAde.js +0 -275
  28. package/dist/DocAnswer-B9G-y4Px.js +0 -36
  29. package/dist/DocDetails-DYHxKChO.js +0 -246
  30. package/dist/DocForm-BktEXjML.js +0 -7273
  31. package/dist/DocFormSend-DM6QgUOj.js +0 -143
  32. package/dist/DocLinks-BIGwfB3H.js +0 -38
  33. package/dist/DocModalBase-D5GdwTI7.js +0 -28
  34. package/dist/DocPrint-HqbaIGms.js +0 -240
  35. package/dist/DocReceipt-WXo6vWyW.js +0 -210
  36. package/dist/DocSendReminder-C8dNEpLg.js +0 -137
  37. package/dist/DocTextEditor-BfOZFDTP.js +0 -17177
  38. package/dist/DocTimeline-CitwS9px.js +0 -481
  39. package/dist/DocumentClient-CQ_z8ajY.js +0 -136
  40. package/dist/DocumentLayout-BA7mFfZh.js +0 -4909
  41. package/dist/DocumentLogotype-woc_hfll.js +0 -87
  42. package/dist/DocumentVoided-DC4FzpxG.js +0 -25
  43. package/dist/EmbedInput-CheqYcNr.js +0 -113
  44. package/dist/EmbedSettings-YcwM8hJw.js +0 -72
  45. package/dist/ErrorCallout-6pCYcx00.js +0 -28
  46. package/dist/FilePreviewModal-T8AiphqO.js +0 -81
  47. package/dist/Flag-Ddm6a4Il.js +0 -114
  48. package/dist/HeaderSettings-DHdZweJH.js +0 -392
  49. package/dist/ImageSelectModal-CAoBhnI8.js +0 -84
  50. package/dist/ImageUploadWrapper-CNv59Lhh.js +0 -1604
  51. package/dist/Index-B6S9U4Z-.js +0 -26
  52. package/dist/Index-BHX0D5fW.js +0 -559
  53. package/dist/Index-BL_7m5Ca.js +0 -70
  54. package/dist/Index-BXMXEUfo.js +0 -223
  55. package/dist/Index-BhVBvMu6.js +0 -32
  56. package/dist/Index-Bl_SNW80.js +0 -25
  57. package/dist/Index-BsguntKl.js +0 -21
  58. package/dist/Index-CGYjPfsf.js +0 -2402
  59. package/dist/Index-CKrGb3of.js +0 -61
  60. package/dist/Index-CMNrQo5a.js +0 -140
  61. package/dist/Index-CU50Al5c.js +0 -642
  62. package/dist/Index-CdqrrZxd.js +0 -77
  63. package/dist/Index-CfnL9dAw.js +0 -58
  64. package/dist/Index-CuW0MYrT.js +0 -171
  65. package/dist/Index-D-z8JSn6.js +0 -154
  66. package/dist/Index-D8giJ_bs.js +0 -84
  67. package/dist/Index-DDvfqy_h.js +0 -24
  68. package/dist/Index-DQDalqZ-.js +0 -107
  69. package/dist/Index-DTIPKKkV.js +0 -150
  70. package/dist/Index-DWxzUBff.js +0 -754
  71. package/dist/Index-DaNGeDQw.js +0 -144
  72. package/dist/Index-DfLU_AyN.js +0 -49
  73. package/dist/Index-DkVav_I7.js +0 -25
  74. package/dist/Index-Dxp8QAtB.js +0 -57
  75. package/dist/Index-DzjxFkcv.js +0 -52
  76. package/dist/Index-EwUJJWaB.js +0 -69
  77. package/dist/Index-I60qAqLl.js +0 -31
  78. package/dist/Index-LfF-7lQK.js +0 -292
  79. package/dist/Index-P0_dyc2V.js +0 -45
  80. package/dist/Index-RQMPSeHw.js +0 -98
  81. package/dist/Index-oipNLl3Y.js +0 -46
  82. package/dist/Index-sJq2Iyvt.js +0 -62
  83. package/dist/Index-uubi3NHX.js +0 -33
  84. package/dist/Index-vNj2kYZT.js +0 -55
  85. package/dist/InputToggleRow-B2pWvVyx.js +0 -57
  86. package/dist/ManualPopover-BI_Sf1zG.js +0 -54
  87. package/dist/MediaWrapper-eFpWxv3n.js +0 -23
  88. package/dist/NotBindingText-DA5NpePz.js +0 -32
  89. package/dist/PackageGroup-DOSijBdN.js +0 -699
  90. package/dist/PdfTerms-Q5YuVtrJ.js +0 -36
  91. package/dist/PdfViewer-zcWl8XZT.js +0 -374
  92. package/dist/PlainHtml-BmA83UAm.js +0 -20
  93. package/dist/PriceHeader-C14L5zgG.js +0 -339
  94. package/dist/SearchApi-CGT7-jVf.js +0 -161
  95. package/dist/Setup-RJQvZlDO.js +0 -50
  96. package/dist/SmartList-YosKRPVn.js +0 -83
  97. package/dist/TermsSettings-C5JTv7rT.js +0 -102
  98. package/dist/ThemeColorRow-D-C_tm2f.js +0 -63
  99. package/dist/ToggleBinding-KEVHHvKf.js +0 -38
  100. package/dist/UploadModal-DOYoWELI.js +0 -95
  101. package/dist/VideoPlayerInput-Dxb6CNk-.js +0 -93
  102. package/dist/VideoPlayerSettings-DsVN4Ix-.js +0 -61
  103. package/dist/VideoSelectModal-BpfzNx61.js +0 -100
  104. package/dist/anime.es-BrPTThYb.js +0 -858
  105. package/dist/answerDocumentMixin-BJMGrfUs.js +0 -51
  106. package/dist/color-TdtKxwVa.js +0 -19
  107. package/dist/debounce-BN83gOVd.js +0 -84
  108. package/dist/dom-CJxkno7i.js +0 -91
  109. package/dist/favicon.ico +0 -0
  110. package/dist/focusDrawerMixin-CawyQaGq.js +0 -22
  111. package/dist/formComponentsInstall-jcnyQ1zw.js +0 -2494
  112. package/dist/formDrawerState-BdNohvZH.js +0 -20
  113. package/dist/formValidationMixin-DOwgebZk.js +0 -49
  114. package/dist/i18nMessages-Chz_lxGG.js +0 -17
  115. package/dist/index-BBJIOkm_.js +0 -347
  116. package/dist/index-BNq9YCWc.js +0 -166
  117. package/dist/index-BdhbkLLU.js +0 -81
  118. package/dist/index-COf8F6CL.js +0 -3916
  119. package/dist/index-D0WvZHX_.js +0 -102
  120. package/dist/index-DTzZP4yq.js +0 -492
  121. package/dist/index.es.js +0 -35
  122. package/dist/index.umd.js +0 -3148
  123. package/dist/main-DE5THsiR.js +0 -56739
  124. package/dist/mapFormMixin-y2txvLw9.js +0 -72
  125. package/dist/omit-BrsWQAtU.js +0 -31
  126. package/dist/publicSenderState-BYsq95Vt.js +0 -21
  127. package/dist/splitpanes-BHUVsCZF.js +0 -382
  128. package/dist/style.css +0 -4
  129. package/dist/throttle-C2srA2wa.js +0 -18
  130. package/dist/tinycolor-SjV_ROuP.js +0 -633
  131. package/dist/tippy.esm-Dj7DQppr.js +0 -1799
  132. package/dist/utils-16HMuRfY.js +0 -108
  133. package/dist/vuedraggable.umd-Cd1g2Hr7.js +0 -3161
  134. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,102 +0,0 @@
1
- import { g as s, N as l, O as r, n as d, V as n } from "./main-DE5THsiR.js";
2
- import { m as p, a as c } from "./vuex.esm-DKGl8mcw.js";
3
- const m = {
4
- name: "ClientLinks",
5
- props: {
6
- id: {
7
- type: String,
8
- required: !0
9
- }
10
- },
11
- i18nOptions: {
12
- namespaces: "ClientLinks",
13
- messages: {
14
- en: {
15
- title: "Document links",
16
- text: "Share the document links below with your recipients. Each recipient has their own unique link.",
17
- copied: "Link copied to clipboard",
18
- tooltip: "Copy link",
19
- placeholder: "No links available.",
20
- hint: "Note that visting a link will trigger a viewed event in the events timeline."
21
- },
22
- sv: {
23
- title: "Dokumentlänkar",
24
- text: "Dela dokumentlänkarna nedan med dina mottagare. Varje mottagare har sin egen unika länk.",
25
- copied: "Länk kopierat till urklipp",
26
- tooltip: "Kopiera länk",
27
- placeholder: "Inga länkar finns tillgängliga.",
28
- hint: "Notera att ett sidbesök på en länk kommer att skapa en visad-händelse i tidslinjen."
29
- }
30
- }
31
- },
32
- computed: {
33
- ...p({
34
- docById: "documents2/byId"
35
- }),
36
- document() {
37
- return this.docById(this.id);
38
- },
39
- clients() {
40
- if (!this.document)
41
- return [];
42
- const { clients: o } = this.document;
43
- return o.map((t) => ({
44
- ...t,
45
- primaryTitle: t.name,
46
- secondaryTitle: t.type === "company" ? t.companyName : ""
47
- }));
48
- }
49
- },
50
- created() {
51
- this.loadDocument({ id: this.id });
52
- },
53
- methods: {
54
- ...c({
55
- loadDocument: s.LOAD_DOCUMENT2
56
- }),
57
- async copyToClipboard(o) {
58
- var i, a;
59
- (i = o.target.previousElementSibling) == null || i.select();
60
- const t = (a = o.target.previousElementSibling) == null ? void 0 : a.value;
61
- if (!t)
62
- return;
63
- await l(t) && r("info", this.$t("copied"));
64
- }
65
- }
66
- };
67
- var u = function() {
68
- var t = this, e = t._self._c;
69
- return e("div", { staticClass: "font-inter", staticStyle: { "background-color": "white", "border-radius": "10px", overflow: "hidden" } }, [e("div", { staticStyle: { padding: "40px 30px", position: "relative" } }, [e("CButton", { staticStyle: { position: "absolute", right: "1em", top: "1em", color: "hsl(0, 0%, 55%)" }, attrs: { icon: "x", circle: "", size: "normal" }, on: { click: function(i) {
70
- return t.$emit("close");
71
- } } }), e("div", { staticStyle: { padding: "0 0 2.5em" } }, [e("div", { staticClass: "x-title", domProps: { textContent: t._s(t.$t("title")) } }), e("div", { staticClass: "x-text", domProps: { textContent: t._s(t.$t("text")) } })]), t.clients.length ? t._l(t.clients, function(i, a) {
72
- return e("div", { key: a, staticClass: "client-card" }, [e("div", { staticStyle: { padding: "4px 6px 8px 6px" } }, [e("div", { staticClass: "client-title truncate-text" }, [t._v(" " + t._s(i.primaryTitle) + " "), i.secondaryTitle ? e("span", { staticStyle: { opacity: "0.5", "padding-left": "0.125ch" } }, [t._v("· " + t._s(i.secondaryTitle))]) : t._e()]), i.documentRole ? e("div", { domProps: { textContent: t._s(t.$t(`_common:documentRole.${i.documentRole}.label`)) } }) : t._e(), e("div", [i.email ? e("a", { attrs: { href: `mailto:${i.email}?&body=${i.docLink}` } }, [t._v(t._s(i.email))]) : t._e(), i.email && i.cellphone ? e("span", { staticStyle: { padding: "0 0.5ch" } }, [t._v("·")]) : t._e(), i.cellphone ? e("a", { attrs: { href: `sms:${i.cellphone}?&body=${i.docLink}` } }, [e("CPhoneFormat", { attrs: { phone: i.cellphone, region: i.cellphoneRegion } })], 1) : t._e()])]), e("div", { staticStyle: { display: "flex", position: "relative" } }, [e("input", { ref: "key", refInFor: !0, staticClass: "link-field truncate-text", attrs: { placeholder: t.$t("placeholder"), type: "text", readonly: "readonly" }, domProps: { value: i.docLink } }), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("tooltip"), expression: "$t('tooltip')" }], staticClass: "clipboard-button", on: { click: t.copyToClipboard } }, [e("CIcon", { staticStyle: { "pointer-events": "none" }, attrs: { type: "copy", size: "17" } })], 1)])]);
73
- }) : e("div", { staticStyle: { padding: "2em", "font-size": "14px", "text-align": "center", color: "hsl(0, 0%, 55%)", border: "1px solid hsl(0, 0%, 88%)", "border-radius": "6px" }, domProps: { textContent: t._s(t.$t("placeholder")) } }), e("div", { staticClass: "x-hint" }, [e("CIcon", { staticClass: "text-primary-500", staticStyle: { flex: "0 0 auto", "margin-right": "8px", "margin-top": "3px" }, attrs: { type: "info", size: "16" } }), e("div", { domProps: { textContent: t._s(t.$t("hint")) } })], 1)], 2)]);
74
- }, h = [], y = /* @__PURE__ */ d(
75
- m,
76
- u,
77
- h,
78
- !1,
79
- null,
80
- "8273cadb"
81
- );
82
- const v = y.exports, g = v, _ = ({ id: o }) => {
83
- if (!n.prototype.$modal)
84
- throw Error("Open client modal requires plugin vue-js-modal");
85
- n.prototype.$modal.show(
86
- g,
87
- {
88
- id: o
89
- },
90
- {
91
- adaptive: !0,
92
- maxWidth: 400,
93
- width: "90%",
94
- height: "auto",
95
- scrollable: !0
96
- }
97
- );
98
- };
99
- export {
100
- g as C,
101
- _ as o
102
- };
@@ -1,492 +0,0 @@
1
- import { a5 as T } from "./main-DE5THsiR.js";
2
- var pe = {}, P = {}, f = {}, b = {}, O = {};
3
- Object.defineProperty(O, "__esModule", {
4
- value: !0
5
- });
6
- O.withParams = void 0;
7
- function h(e) {
8
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? h = function(r) {
9
- return typeof r;
10
- } : h = function(r) {
11
- return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
12
- }, h(e);
13
- }
14
- var X = typeof window < "u" ? window : typeof T < "u" ? T : {}, he = function(t, r) {
15
- return h(t) === "object" && r !== void 0 ? r : t(function() {
16
- });
17
- }, Pe = X.vuelidate ? X.vuelidate.withParams : he;
18
- O.withParams = Pe;
19
- Object.defineProperty(b, "__esModule", {
20
- value: !0
21
- });
22
- b.default = void 0;
23
- var be = O.withParams, Oe = be;
24
- b.default = Oe;
25
- (function(e) {
26
- Object.defineProperty(e, "__esModule", {
27
- value: !0
28
- }), Object.defineProperty(e, "withParams", {
29
- enumerable: !0,
30
- get: function() {
31
- return t.default;
32
- }
33
- }), e.regex = e.ref = e.len = e.req = void 0;
34
- var t = r(b);
35
- function r(d) {
36
- return d && d.__esModule ? d : { default: d };
37
- }
38
- function u(d) {
39
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(l) {
40
- return typeof l;
41
- } : u = function(l) {
42
- return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
43
- }, u(d);
44
- }
45
- var _ = function(a) {
46
- if (Array.isArray(a))
47
- return !!a.length;
48
- if (a == null)
49
- return !1;
50
- if (a === !1)
51
- return !0;
52
- if (a instanceof Date)
53
- return !isNaN(a.getTime());
54
- if (u(a) === "object") {
55
- for (var l in a)
56
- return !0;
57
- return !1;
58
- }
59
- return !!String(a).length;
60
- };
61
- e.req = _;
62
- var m = function(a) {
63
- return Array.isArray(a) ? a.length : u(a) === "object" ? Object.keys(a).length : String(a).length;
64
- };
65
- e.len = m;
66
- var v = function(a, l, y) {
67
- return typeof a == "function" ? a.call(l, y) : y[a];
68
- };
69
- e.ref = v;
70
- var o = function(a, l) {
71
- return (0, t.default)({
72
- type: a
73
- }, function(y) {
74
- return !_(y) || l.test(y);
75
- });
76
- };
77
- e.regex = o;
78
- })(f);
79
- Object.defineProperty(P, "__esModule", {
80
- value: !0
81
- });
82
- P.default = void 0;
83
- var $e = f, we = (0, $e.regex)("alpha", /^[a-zA-Z]*$/);
84
- P.default = we;
85
- var $ = {};
86
- Object.defineProperty($, "__esModule", {
87
- value: !0
88
- });
89
- $.default = void 0;
90
- var qe = f, je = (0, qe.regex)("alphaNum", /^[a-zA-Z0-9]*$/);
91
- $.default = je;
92
- var w = {};
93
- Object.defineProperty(w, "__esModule", {
94
- value: !0
95
- });
96
- w.default = void 0;
97
- var Me = f, Ae = (0, Me.regex)("numeric", /^[0-9]*$/);
98
- w.default = Ae;
99
- var q = {};
100
- Object.defineProperty(q, "__esModule", {
101
- value: !0
102
- });
103
- q.default = void 0;
104
- var Y = f, Se = function(t, r) {
105
- return (0, Y.withParams)({
106
- type: "between",
107
- min: t,
108
- max: r
109
- }, function(u) {
110
- return !(0, Y.req)(u) || (!/\s/.test(u) || u instanceof Date) && +t <= +u && +r >= +u;
111
- });
112
- };
113
- q.default = Se;
114
- var j = {};
115
- Object.defineProperty(j, "__esModule", {
116
- value: !0
117
- });
118
- j.default = void 0;
119
- var Ve = f, ze = /(^$|^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$)/, De = (0, Ve.regex)("email", ze);
120
- j.default = De;
121
- var M = {};
122
- Object.defineProperty(M, "__esModule", {
123
- value: !0
124
- });
125
- M.default = void 0;
126
- var x = f, Le = (0, x.withParams)({
127
- type: "ipAddress"
128
- }, function(e) {
129
- if (!(0, x.req)(e))
130
- return !0;
131
- if (typeof e != "string")
132
- return !1;
133
- var t = e.split(".");
134
- return t.length === 4 && t.every(Re);
135
- });
136
- M.default = Le;
137
- var Re = function(t) {
138
- if (t.length > 3 || t.length === 0 || t[0] === "0" && t !== "0" || !t.match(/^\d+$/))
139
- return !1;
140
- var r = +t | 0;
141
- return r >= 0 && r <= 255;
142
- }, A = {};
143
- Object.defineProperty(A, "__esModule", {
144
- value: !0
145
- });
146
- A.default = void 0;
147
- var k = f, We = function() {
148
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ":";
149
- return (0, k.withParams)({
150
- type: "macAddress"
151
- }, function(r) {
152
- if (!(0, k.req)(r))
153
- return !0;
154
- if (typeof r != "string")
155
- return !1;
156
- var u = typeof t == "string" && t !== "" ? r.split(t) : r.length === 12 || r.length === 16 ? r.match(/.{2}/g) : null;
157
- return u !== null && (u.length === 6 || u.length === 8) && u.every(Ne);
158
- });
159
- };
160
- A.default = We;
161
- var Ne = function(t) {
162
- return t.toLowerCase().match(/^[0-9a-f]{2}$/);
163
- }, S = {};
164
- Object.defineProperty(S, "__esModule", {
165
- value: !0
166
- });
167
- S.default = void 0;
168
- var E = f, Ie = function(t) {
169
- return (0, E.withParams)({
170
- type: "maxLength",
171
- max: t
172
- }, function(r) {
173
- return !(0, E.req)(r) || (0, E.len)(r) <= t;
174
- });
175
- };
176
- S.default = Ie;
177
- var V = {};
178
- Object.defineProperty(V, "__esModule", {
179
- value: !0
180
- });
181
- V.default = void 0;
182
- var F = f, Ue = function(t) {
183
- return (0, F.withParams)({
184
- type: "minLength",
185
- min: t
186
- }, function(r) {
187
- return !(0, F.req)(r) || (0, F.len)(r) >= t;
188
- });
189
- };
190
- V.default = Ue;
191
- var z = {};
192
- Object.defineProperty(z, "__esModule", {
193
- value: !0
194
- });
195
- z.default = void 0;
196
- var H = f, Ze = (0, H.withParams)({
197
- type: "required"
198
- }, function(e) {
199
- return typeof e == "string" ? (0, H.req)(e.trim()) : (0, H.req)(e);
200
- });
201
- z.default = Ze;
202
- var D = {};
203
- Object.defineProperty(D, "__esModule", {
204
- value: !0
205
- });
206
- D.default = void 0;
207
- var J = f, Ce = function(t) {
208
- return (0, J.withParams)({
209
- type: "requiredIf",
210
- prop: t
211
- }, function(r, u) {
212
- return (0, J.ref)(t, this, u) ? (0, J.req)(r) : !0;
213
- });
214
- };
215
- D.default = Ce;
216
- var L = {};
217
- Object.defineProperty(L, "__esModule", {
218
- value: !0
219
- });
220
- L.default = void 0;
221
- var K = f, Be = function(t) {
222
- return (0, K.withParams)({
223
- type: "requiredUnless",
224
- prop: t
225
- }, function(r, u) {
226
- return (0, K.ref)(t, this, u) ? !0 : (0, K.req)(r);
227
- });
228
- };
229
- L.default = Be;
230
- var R = {};
231
- Object.defineProperty(R, "__esModule", {
232
- value: !0
233
- });
234
- R.default = void 0;
235
- var ee = f, Ge = function(t) {
236
- return (0, ee.withParams)({
237
- type: "sameAs",
238
- eq: t
239
- }, function(r, u) {
240
- return r === (0, ee.ref)(t, this, u);
241
- });
242
- };
243
- R.default = Ge;
244
- var W = {};
245
- Object.defineProperty(W, "__esModule", {
246
- value: !0
247
- });
248
- W.default = void 0;
249
- var Ee = f, Fe = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i, He = (0, Ee.regex)("url", Fe);
250
- W.default = He;
251
- var N = {};
252
- Object.defineProperty(N, "__esModule", {
253
- value: !0
254
- });
255
- N.default = void 0;
256
- var Je = f, Ke = function() {
257
- for (var t = arguments.length, r = new Array(t), u = 0; u < t; u++)
258
- r[u] = arguments[u];
259
- return (0, Je.withParams)({
260
- type: "or"
261
- }, function() {
262
- for (var _ = this, m = arguments.length, v = new Array(m), o = 0; o < m; o++)
263
- v[o] = arguments[o];
264
- return r.length > 0 && r.reduce(function(d, a) {
265
- return d || a.apply(_, v);
266
- }, !1);
267
- });
268
- };
269
- N.default = Ke;
270
- var I = {};
271
- Object.defineProperty(I, "__esModule", {
272
- value: !0
273
- });
274
- I.default = void 0;
275
- var Qe = f, Te = function() {
276
- for (var t = arguments.length, r = new Array(t), u = 0; u < t; u++)
277
- r[u] = arguments[u];
278
- return (0, Qe.withParams)({
279
- type: "and"
280
- }, function() {
281
- for (var _ = this, m = arguments.length, v = new Array(m), o = 0; o < m; o++)
282
- v[o] = arguments[o];
283
- return r.length > 0 && r.reduce(function(d, a) {
284
- return d && a.apply(_, v);
285
- }, !0);
286
- });
287
- };
288
- I.default = Te;
289
- var U = {};
290
- Object.defineProperty(U, "__esModule", {
291
- value: !0
292
- });
293
- U.default = void 0;
294
- var te = f, Xe = function(t) {
295
- return (0, te.withParams)({
296
- type: "not"
297
- }, function(r, u) {
298
- return !(0, te.req)(r) || !t.call(this, r, u);
299
- });
300
- };
301
- U.default = Xe;
302
- var Z = {};
303
- Object.defineProperty(Z, "__esModule", {
304
- value: !0
305
- });
306
- Z.default = void 0;
307
- var re = f, Ye = function(t) {
308
- return (0, re.withParams)({
309
- type: "minValue",
310
- min: t
311
- }, function(r) {
312
- return !(0, re.req)(r) || (!/\s/.test(r) || r instanceof Date) && +r >= +t;
313
- });
314
- };
315
- Z.default = Ye;
316
- var C = {};
317
- Object.defineProperty(C, "__esModule", {
318
- value: !0
319
- });
320
- C.default = void 0;
321
- var ne = f, xe = function(t) {
322
- return (0, ne.withParams)({
323
- type: "maxValue",
324
- max: t
325
- }, function(r) {
326
- return !(0, ne.req)(r) || (!/\s/.test(r) || r instanceof Date) && +r <= +t;
327
- });
328
- };
329
- C.default = xe;
330
- var B = {};
331
- Object.defineProperty(B, "__esModule", {
332
- value: !0
333
- });
334
- B.default = void 0;
335
- var ke = f, et = (0, ke.regex)("integer", /(^[0-9]*$)|(^-[0-9]+$)/);
336
- B.default = et;
337
- var G = {};
338
- Object.defineProperty(G, "__esModule", {
339
- value: !0
340
- });
341
- G.default = void 0;
342
- var tt = f, rt = (0, tt.regex)("decimal", /^[-]?\d*(\.\d+)?$/);
343
- G.default = rt;
344
- (function(e) {
345
- function t(n) {
346
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? t = function(c) {
347
- return typeof c;
348
- } : t = function(c) {
349
- return c && typeof Symbol == "function" && c.constructor === Symbol && c !== Symbol.prototype ? "symbol" : typeof c;
350
- }, t(n);
351
- }
352
- Object.defineProperty(e, "__esModule", {
353
- value: !0
354
- }), Object.defineProperty(e, "alpha", {
355
- enumerable: !0,
356
- get: function() {
357
- return r.default;
358
- }
359
- }), Object.defineProperty(e, "alphaNum", {
360
- enumerable: !0,
361
- get: function() {
362
- return u.default;
363
- }
364
- }), Object.defineProperty(e, "numeric", {
365
- enumerable: !0,
366
- get: function() {
367
- return _.default;
368
- }
369
- }), Object.defineProperty(e, "between", {
370
- enumerable: !0,
371
- get: function() {
372
- return m.default;
373
- }
374
- }), Object.defineProperty(e, "email", {
375
- enumerable: !0,
376
- get: function() {
377
- return v.default;
378
- }
379
- }), Object.defineProperty(e, "ipAddress", {
380
- enumerable: !0,
381
- get: function() {
382
- return o.default;
383
- }
384
- }), Object.defineProperty(e, "macAddress", {
385
- enumerable: !0,
386
- get: function() {
387
- return d.default;
388
- }
389
- }), Object.defineProperty(e, "maxLength", {
390
- enumerable: !0,
391
- get: function() {
392
- return a.default;
393
- }
394
- }), Object.defineProperty(e, "minLength", {
395
- enumerable: !0,
396
- get: function() {
397
- return l.default;
398
- }
399
- }), Object.defineProperty(e, "required", {
400
- enumerable: !0,
401
- get: function() {
402
- return y.default;
403
- }
404
- }), Object.defineProperty(e, "requiredIf", {
405
- enumerable: !0,
406
- get: function() {
407
- return ue.default;
408
- }
409
- }), Object.defineProperty(e, "requiredUnless", {
410
- enumerable: !0,
411
- get: function() {
412
- return ae.default;
413
- }
414
- }), Object.defineProperty(e, "sameAs", {
415
- enumerable: !0,
416
- get: function() {
417
- return fe.default;
418
- }
419
- }), Object.defineProperty(e, "url", {
420
- enumerable: !0,
421
- get: function() {
422
- return ie.default;
423
- }
424
- }), Object.defineProperty(e, "or", {
425
- enumerable: !0,
426
- get: function() {
427
- return de.default;
428
- }
429
- }), Object.defineProperty(e, "and", {
430
- enumerable: !0,
431
- get: function() {
432
- return oe.default;
433
- }
434
- }), Object.defineProperty(e, "not", {
435
- enumerable: !0,
436
- get: function() {
437
- return le.default;
438
- }
439
- }), Object.defineProperty(e, "minValue", {
440
- enumerable: !0,
441
- get: function() {
442
- return ce.default;
443
- }
444
- }), Object.defineProperty(e, "maxValue", {
445
- enumerable: !0,
446
- get: function() {
447
- return me.default;
448
- }
449
- }), Object.defineProperty(e, "integer", {
450
- enumerable: !0,
451
- get: function() {
452
- return ve.default;
453
- }
454
- }), Object.defineProperty(e, "decimal", {
455
- enumerable: !0,
456
- get: function() {
457
- return _e.default;
458
- }
459
- }), e.helpers = void 0;
460
- var r = i(P), u = i($), _ = i(w), m = i(q), v = i(j), o = i(M), d = i(A), a = i(S), l = i(V), y = i(z), ue = i(D), ae = i(L), fe = i(R), ie = i(W), de = i(N), oe = i(I), le = i(U), ce = i(Z), me = i(C), ve = i(B), _e = i(G), se = ye(f);
461
- e.helpers = se;
462
- function Q() {
463
- if (typeof WeakMap != "function")
464
- return null;
465
- var n = /* @__PURE__ */ new WeakMap();
466
- return Q = function() {
467
- return n;
468
- }, n;
469
- }
470
- function ye(n) {
471
- if (n && n.__esModule)
472
- return n;
473
- if (n === null || t(n) !== "object" && typeof n != "function")
474
- return { default: n };
475
- var s = Q();
476
- if (s && s.has(n))
477
- return s.get(n);
478
- var c = {}, ge = Object.defineProperty && Object.getOwnPropertyDescriptor;
479
- for (var g in n)
480
- if (Object.prototype.hasOwnProperty.call(n, g)) {
481
- var p = ge ? Object.getOwnPropertyDescriptor(n, g) : null;
482
- p && (p.get || p.set) ? Object.defineProperty(c, g, p) : c[g] = n[g];
483
- }
484
- return c.default = n, s && s.set(n, c), c;
485
- }
486
- function i(n) {
487
- return n && n.__esModule ? n : { default: n };
488
- }
489
- })(pe);
490
- export {
491
- pe as v
492
- };