@star-insure/sdk 6.4.0 → 6.5.0

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 (172) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/sdk.es101.js +1 -1
  3. package/dist/sdk.es102.js +1 -1
  4. package/dist/sdk.es103.js +1 -1
  5. package/dist/sdk.es104.js +2 -2
  6. package/dist/sdk.es105.js +3 -3
  7. package/dist/sdk.es106.js +3 -3
  8. package/dist/sdk.es107.js +2 -2
  9. package/dist/sdk.es108.js +2 -2
  10. package/dist/sdk.es109.js +2 -2
  11. package/dist/sdk.es110.js +3 -3
  12. package/dist/sdk.es111.js +3 -3
  13. package/dist/sdk.es112.js +5 -5
  14. package/dist/sdk.es113.js +5 -5
  15. package/dist/sdk.es114.js +3 -3
  16. package/dist/sdk.es115.js +3 -3
  17. package/dist/sdk.es116.js +2 -2
  18. package/dist/sdk.es117.js +3 -3
  19. package/dist/sdk.es118.js +3 -3
  20. package/dist/sdk.es119.js +3 -3
  21. package/dist/sdk.es120.js +2 -2
  22. package/dist/sdk.es121.js +2 -2
  23. package/dist/sdk.es122.js +2 -2
  24. package/dist/sdk.es123.js +3 -3
  25. package/dist/sdk.es124.js +3 -3
  26. package/dist/sdk.es125.js +3 -3
  27. package/dist/sdk.es126.js +3 -3
  28. package/dist/sdk.es127.js +3 -3
  29. package/dist/sdk.es128.js +3 -3
  30. package/dist/sdk.es129.js +2 -2
  31. package/dist/sdk.es130.js +3 -3
  32. package/dist/sdk.es131.js +3 -3
  33. package/dist/sdk.es132.js +2 -2
  34. package/dist/sdk.es133.js +2 -2
  35. package/dist/sdk.es139.js +5 -7
  36. package/dist/sdk.es139.js.map +1 -1
  37. package/dist/sdk.es140.js +7 -10
  38. package/dist/sdk.es140.js.map +1 -1
  39. package/dist/sdk.es141.js +10 -13
  40. package/dist/sdk.es141.js.map +1 -1
  41. package/dist/sdk.es142.js +12 -12
  42. package/dist/sdk.es142.js.map +1 -1
  43. package/dist/sdk.es143.js +13 -5
  44. package/dist/sdk.es143.js.map +1 -1
  45. package/dist/sdk.es144.js +6 -25
  46. package/dist/sdk.es144.js.map +1 -1
  47. package/dist/sdk.es145.js +5 -99
  48. package/dist/sdk.es145.js.map +1 -1
  49. package/dist/sdk.es146.js +11 -47
  50. package/dist/sdk.es146.js.map +1 -1
  51. package/dist/sdk.es147.js +7 -9
  52. package/dist/sdk.es147.js.map +1 -1
  53. package/dist/sdk.es148.js +6 -9
  54. package/dist/sdk.es148.js.map +1 -1
  55. package/dist/sdk.es149.js +25 -14
  56. package/dist/sdk.es149.js.map +1 -1
  57. package/dist/sdk.es150.js +99 -10
  58. package/dist/sdk.es150.js.map +1 -1
  59. package/dist/sdk.es151.js +47 -6
  60. package/dist/sdk.es151.js.map +1 -1
  61. package/dist/sdk.es152.js +9 -5
  62. package/dist/sdk.es152.js.map +1 -1
  63. package/dist/sdk.es153.js +9 -10
  64. package/dist/sdk.es153.js.map +1 -1
  65. package/dist/sdk.es154.js +13 -7
  66. package/dist/sdk.es154.js.map +1 -1
  67. package/dist/sdk.es155.js +10 -6
  68. package/dist/sdk.es155.js.map +1 -1
  69. package/dist/sdk.es160.js +1 -1
  70. package/dist/sdk.es36.js +5 -5
  71. package/dist/sdk.es37.js +11 -11
  72. package/dist/sdk.es38.js +14 -14
  73. package/dist/sdk.es39.js +1 -1
  74. package/dist/sdk.es40.js +3 -3
  75. package/dist/sdk.es42.js +1 -1
  76. package/dist/sdk.es43.js +7 -21
  77. package/dist/sdk.es43.js.map +1 -1
  78. package/dist/sdk.es44.js +2 -80
  79. package/dist/sdk.es44.js.map +1 -1
  80. package/dist/sdk.es45.js +24 -75
  81. package/dist/sdk.es45.js.map +1 -1
  82. package/dist/sdk.es46.js +597 -227
  83. package/dist/sdk.es46.js.map +1 -1
  84. package/dist/sdk.es47.js +21 -25
  85. package/dist/sdk.es47.js.map +1 -1
  86. package/dist/sdk.es48.js +79 -7
  87. package/dist/sdk.es48.js.map +1 -1
  88. package/dist/sdk.es49.js +77 -2
  89. package/dist/sdk.es49.js.map +1 -1
  90. package/dist/sdk.es50.js +231 -25
  91. package/dist/sdk.es50.js.map +1 -1
  92. package/dist/sdk.es51.js +25 -601
  93. package/dist/sdk.es51.js.map +1 -1
  94. package/dist/sdk.es52.js +1 -1
  95. package/dist/sdk.es53.js +9 -2
  96. package/dist/sdk.es53.js.map +1 -1
  97. package/dist/sdk.es54.js +7 -2
  98. package/dist/sdk.es54.js.map +1 -1
  99. package/dist/sdk.es55.js +7 -8
  100. package/dist/sdk.es55.js.map +1 -1
  101. package/dist/sdk.es56.js +3 -5
  102. package/dist/sdk.es56.js.map +1 -1
  103. package/dist/sdk.es57.js +15 -7
  104. package/dist/sdk.es57.js.map +1 -1
  105. package/dist/sdk.es58.js +8 -4
  106. package/dist/sdk.es58.js.map +1 -1
  107. package/dist/sdk.es59.js +9 -15
  108. package/dist/sdk.es59.js.map +1 -1
  109. package/dist/sdk.es60.js +8 -8
  110. package/dist/sdk.es60.js.map +1 -1
  111. package/dist/sdk.es61.js +638 -9
  112. package/dist/sdk.es61.js.map +1 -1
  113. package/dist/sdk.es62.js +74 -9
  114. package/dist/sdk.es62.js.map +1 -1
  115. package/dist/sdk.es63.js +4 -638
  116. package/dist/sdk.es63.js.map +1 -1
  117. package/dist/sdk.es64.js +20 -74
  118. package/dist/sdk.es64.js.map +1 -1
  119. package/dist/sdk.es65.js +4 -4
  120. package/dist/sdk.es65.js.map +1 -1
  121. package/dist/sdk.es66.js +18 -20
  122. package/dist/sdk.es66.js.map +1 -1
  123. package/dist/sdk.es67.js +5 -4
  124. package/dist/sdk.es67.js.map +1 -1
  125. package/dist/sdk.es68.js +9 -18
  126. package/dist/sdk.es68.js.map +1 -1
  127. package/dist/sdk.es69.js +48 -5
  128. package/dist/sdk.es69.js.map +1 -1
  129. package/dist/sdk.es70.js +7 -8
  130. package/dist/sdk.es70.js.map +1 -1
  131. package/dist/sdk.es71.js +54 -46
  132. package/dist/sdk.es71.js.map +1 -1
  133. package/dist/sdk.es72.js +65 -8
  134. package/dist/sdk.es72.js.map +1 -1
  135. package/dist/sdk.es73.js +9 -57
  136. package/dist/sdk.es73.js.map +1 -1
  137. package/dist/sdk.es74.js +4 -65
  138. package/dist/sdk.es74.js.map +1 -1
  139. package/dist/sdk.es75.js +2 -9
  140. package/dist/sdk.es75.js.map +1 -1
  141. package/dist/sdk.es76.js +2 -4
  142. package/dist/sdk.es76.js.map +1 -1
  143. package/dist/sdk.es79.js +3 -53
  144. package/dist/sdk.es79.js.map +1 -1
  145. package/dist/sdk.es80.js +8 -10
  146. package/dist/sdk.es80.js.map +1 -1
  147. package/dist/sdk.es81.js +6 -20
  148. package/dist/sdk.es81.js.map +1 -1
  149. package/dist/sdk.es82.js +3675 -4
  150. package/dist/sdk.es82.js.map +1 -1
  151. package/dist/sdk.es83.js +5 -7
  152. package/dist/sdk.es83.js.map +1 -1
  153. package/dist/sdk.es84.js +2 -7
  154. package/dist/sdk.es84.js.map +1 -1
  155. package/dist/sdk.es85.js +52 -3673
  156. package/dist/sdk.es85.js.map +1 -1
  157. package/dist/sdk.es86.js +10 -6
  158. package/dist/sdk.es86.js.map +1 -1
  159. package/dist/sdk.es87.js +21 -2
  160. package/dist/sdk.es87.js.map +1 -1
  161. package/dist/sdk.es88.js +1 -1
  162. package/dist/sdk.es89.js +2 -2
  163. package/dist/sdk.es90.js +4 -4
  164. package/dist/sdk.es91.js +3 -3
  165. package/dist/sdk.es92.js +4 -4
  166. package/dist/sdk.es93.js +5 -5
  167. package/dist/sdk.es96.js +1 -1
  168. package/dist/sdk.es98.js +1 -1
  169. package/dist/sdk.es99.js +3 -3
  170. package/package.json +1 -1
  171. package/src/types/models/quotes/PromoCode.ts +1 -0
  172. package/src/types/models/quotes/QuoteRequestOptions.ts +2 -0
package/dist/sdk.es151.js CHANGED
@@ -1,9 +1,50 @@
1
- function e(o, r) {
2
- return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
3
- return t.__proto__ = n, t;
4
- }, e(o, r);
5
- }
1
+ var d = {
2
+ month: /^(1[0-2]|0?\d)/,
3
+ // 0 to 12
4
+ date: /^(3[0-1]|[0-2]?\d)/,
5
+ // 0 to 31
6
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
7
+ // 0 to 366
8
+ week: /^(5[0-3]|[0-4]?\d)/,
9
+ // 0 to 53
10
+ hour23h: /^(2[0-3]|[0-1]?\d)/,
11
+ // 0 to 23
12
+ hour24h: /^(2[0-4]|[0-1]?\d)/,
13
+ // 0 to 24
14
+ hour11h: /^(1[0-1]|0?\d)/,
15
+ // 0 to 11
16
+ hour12h: /^(1[0-2]|0?\d)/,
17
+ // 0 to 12
18
+ minute: /^[0-5]?\d/,
19
+ // 0 to 59
20
+ second: /^[0-5]?\d/,
21
+ // 0 to 59
22
+ singleDigit: /^\d/,
23
+ // 0 to 9
24
+ twoDigits: /^\d{1,2}/,
25
+ // 0 to 99
26
+ threeDigits: /^\d{1,3}/,
27
+ // 0 to 999
28
+ fourDigits: /^\d{1,4}/,
29
+ // 0 to 9999
30
+ anyDigitsSigned: /^-?\d+/,
31
+ singleDigitSigned: /^-?\d/,
32
+ // 0 to 9, -0 to -9
33
+ twoDigitsSigned: /^-?\d{1,2}/,
34
+ // 0 to 99, -0 to -99
35
+ threeDigitsSigned: /^-?\d{1,3}/,
36
+ // 0 to 999, -0 to -999
37
+ fourDigitsSigned: /^-?\d{1,4}/
38
+ // 0 to 9999, -0 to -9999
39
+ }, i = {
40
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
41
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
42
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
43
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
44
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
45
+ };
6
46
  export {
7
- e as default
47
+ d as numericPatterns,
48
+ i as timezonePatterns
8
49
  };
9
50
  //# sourceMappingURL=sdk.es151.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.es151.js","sources":["../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"],"sourcesContent":["function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };"],"names":["_setPrototypeOf","t","e"],"mappings":"AAAA,SAASA,EAAgBC,GAAGC,GAAG;AAC7B,SAAOF,IAAkB,OAAO,iBAAiB,OAAO,eAAe,KAAM,IAAG,SAAU,GAAGE,GAAG;AAC9F,WAAO,EAAE,YAAYA,GAAG;AAAA,EAC5B,GAAKF,EAAgBC,GAAGC,CAAC;AACzB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"sdk.es151.js","sources":["../node_modules/date-fns/esm/parse/_lib/constants.js"],"sourcesContent":["export var numericPatterns = {\n month: /^(1[0-2]|0?\\d)/,\n // 0 to 12\n date: /^(3[0-1]|[0-2]?\\d)/,\n // 0 to 31\n dayOfYear: /^(36[0-6]|3[0-5]\\d|[0-2]?\\d?\\d)/,\n // 0 to 366\n week: /^(5[0-3]|[0-4]?\\d)/,\n // 0 to 53\n hour23h: /^(2[0-3]|[0-1]?\\d)/,\n // 0 to 23\n hour24h: /^(2[0-4]|[0-1]?\\d)/,\n // 0 to 24\n hour11h: /^(1[0-1]|0?\\d)/,\n // 0 to 11\n hour12h: /^(1[0-2]|0?\\d)/,\n // 0 to 12\n minute: /^[0-5]?\\d/,\n // 0 to 59\n second: /^[0-5]?\\d/,\n // 0 to 59\n\n singleDigit: /^\\d/,\n // 0 to 9\n twoDigits: /^\\d{1,2}/,\n // 0 to 99\n threeDigits: /^\\d{1,3}/,\n // 0 to 999\n fourDigits: /^\\d{1,4}/,\n // 0 to 9999\n\n anyDigitsSigned: /^-?\\d+/,\n singleDigitSigned: /^-?\\d/,\n // 0 to 9, -0 to -9\n twoDigitsSigned: /^-?\\d{1,2}/,\n // 0 to 99, -0 to -99\n threeDigitsSigned: /^-?\\d{1,3}/,\n // 0 to 999, -0 to -999\n fourDigitsSigned: /^-?\\d{1,4}/ // 0 to 9999, -0 to -9999\n};\n\nexport var timezonePatterns = {\n basicOptionalMinutes: /^([+-])(\\d{2})(\\d{2})?|Z/,\n basic: /^([+-])(\\d{2})(\\d{2})|Z/,\n basicOptionalSeconds: /^([+-])(\\d{2})(\\d{2})((\\d{2}))?|Z/,\n extended: /^([+-])(\\d{2}):(\\d{2})|Z/,\n extendedOptionalSeconds: /^([+-])(\\d{2}):(\\d{2})(:(\\d{2}))?|Z/\n};"],"names":["numericPatterns","timezonePatterns"],"mappings":"AAAU,IAACA,IAAkB;AAAA,EAC3B,OAAO;AAAA;AAAA,EAEP,MAAM;AAAA;AAAA,EAEN,WAAW;AAAA;AAAA,EAEX,MAAM;AAAA;AAAA,EAEN,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,QAAQ;AAAA;AAAA,EAER,QAAQ;AAAA;AAAA,EAGR,aAAa;AAAA;AAAA,EAEb,WAAW;AAAA;AAAA,EAEX,aAAa;AAAA;AAAA,EAEb,YAAY;AAAA;AAAA,EAGZ,iBAAiB;AAAA,EACjB,mBAAmB;AAAA;AAAA,EAEnB,iBAAiB;AAAA;AAAA,EAEjB,mBAAmB;AAAA;AAAA,EAEnB,kBAAkB;AAAA;AACpB,GAEWC,IAAmB;AAAA,EAC5B,sBAAsB;AAAA,EACtB,OAAO;AAAA,EACP,sBAAsB;AAAA,EACtB,UAAU;AAAA,EACV,yBAAyB;AAC3B;","x_google_ignoreList":[0]}
package/dist/sdk.es152.js CHANGED
@@ -1,9 +1,13 @@
1
- function e(o) {
2
- return e = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
3
- return t.__proto__ || Object.getPrototypeOf(t);
4
- }, e(o);
1
+ import f from "./sdk.es54.js";
2
+ import i from "./sdk.es55.js";
3
+ import g from "./sdk.es92.js";
4
+ import n from "./sdk.es56.js";
5
+ function C(t, r, o) {
6
+ n(2, arguments);
7
+ var e = i(t), a = f(r), m = g(e, o) - a;
8
+ return e.setUTCDate(e.getUTCDate() - m * 7), e;
5
9
  }
6
10
  export {
7
- e as default
11
+ C as default
8
12
  };
9
13
  //# sourceMappingURL=sdk.es152.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.es152.js","sources":["../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"],"sourcesContent":["function _getPrototypeOf(t) {\n return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, _getPrototypeOf(t);\n}\nexport { _getPrototypeOf as default };"],"names":["_getPrototypeOf","t"],"mappings":"AAAA,SAASA,EAAgBC,GAAG;AAC1B,SAAOD,IAAkB,OAAO,iBAAiB,OAAO,eAAe,KAAI,IAAK,SAAU,GAAG;AAC3F,WAAO,EAAE,aAAa,OAAO,eAAe,CAAC;AAAA,EACjD,GAAKA,EAAgBC,CAAC;AACtB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"sdk.es152.js","sources":["../node_modules/date-fns/esm/_lib/setUTCWeek/index.js"],"sourcesContent":["import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport getUTCWeek from \"../getUTCWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nexport default function setUTCWeek(dirtyDate, dirtyWeek, options) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var week = toInteger(dirtyWeek);\n var diff = getUTCWeek(date, options) - week;\n date.setUTCDate(date.getUTCDate() - diff * 7);\n return date;\n}"],"names":["setUTCWeek","dirtyDate","dirtyWeek","options","requiredArgs","date","toDate","week","toInteger","diff","getUTCWeek"],"mappings":";;;;AAIe,SAASA,EAAWC,GAAWC,GAAWC,GAAS;AAChE,EAAAC,EAAa,GAAG,SAAS;AACzB,MAAIC,IAAOC,EAAOL,CAAS,GACvBM,IAAOC,EAAUN,CAAS,GAC1BO,IAAOC,EAAWL,GAAMF,CAAO,IAAII;AACvC,SAAAF,EAAK,WAAWA,EAAK,WAAU,IAAKI,IAAO,CAAC,GACrCJ;AACT;","x_google_ignoreList":[0]}
package/dist/sdk.es153.js CHANGED
@@ -1,14 +1,13 @@
1
- function c() {
2
- try {
3
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
4
- }));
5
- } catch {
6
- }
7
- return (c = function() {
8
- return !!t;
9
- })();
1
+ import m from "./sdk.es54.js";
2
+ import f from "./sdk.es55.js";
3
+ import i from "./sdk.es90.js";
4
+ import s from "./sdk.es56.js";
5
+ function d(t, r) {
6
+ s(2, arguments);
7
+ var e = f(t), o = m(r), a = i(e) - o;
8
+ return e.setUTCDate(e.getUTCDate() - a * 7), e;
10
9
  }
11
10
  export {
12
- c as default
11
+ d as default
13
12
  };
14
13
  //# sourceMappingURL=sdk.es153.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.es153.js","sources":["../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js"],"sourcesContent":["function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n}\nexport { _isNativeReflectConstruct as default };"],"names":["_isNativeReflectConstruct"],"mappings":"AAAA,SAASA,IAA4B;AACnC,MAAI;AACF,QAAI,IAAI,CAAC,QAAQ,UAAU,QAAQ,KAAK,QAAQ,UAAU,SAAS,IAAI,WAAY;AAAA,IAAE,CAAA,CAAC;AAAA,EACvF,QAAW;AAAA,EAAA;AACZ,UAAQA,IAA4B,WAAqC;AACvE,WAAO,CAAC,CAAC;AAAA,EACb,GAAM;AACN;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"sdk.es153.js","sources":["../node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js"],"sourcesContent":["import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport getUTCISOWeek from \"../getUTCISOWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nexport default function setUTCISOWeek(dirtyDate, dirtyISOWeek) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var isoWeek = toInteger(dirtyISOWeek);\n var diff = getUTCISOWeek(date) - isoWeek;\n date.setUTCDate(date.getUTCDate() - diff * 7);\n return date;\n}"],"names":["setUTCISOWeek","dirtyDate","dirtyISOWeek","requiredArgs","date","toDate","isoWeek","toInteger","diff","getUTCISOWeek"],"mappings":";;;;AAIe,SAASA,EAAcC,GAAWC,GAAc;AAC7D,EAAAC,EAAa,GAAG,SAAS;AACzB,MAAIC,IAAOC,EAAOJ,CAAS,GACvBK,IAAUC,EAAUL,CAAY,GAChCM,IAAOC,EAAcL,CAAI,IAAIE;AACjC,SAAAF,EAAK,WAAWA,EAAK,WAAU,IAAKI,IAAO,CAAC,GACrCJ;AACT;","x_google_ignoreList":[0]}
package/dist/sdk.es154.js CHANGED
@@ -1,11 +1,17 @@
1
- import o from "./sdk.es70.js";
2
- import e from "./sdk.es97.js";
3
- function f(t, r) {
4
- if (r && (o(r) == "object" || typeof r == "function")) return r;
5
- if (r !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
6
- return e(t);
1
+ import k from "./sdk.es55.js";
2
+ import D from "./sdk.es56.js";
3
+ import O from "./sdk.es54.js";
4
+ import { getDefaultOptions as S } from "./sdk.es65.js";
5
+ function U(p, v, e) {
6
+ var t, d, r, a, l, u, f, i;
7
+ D(2, arguments);
8
+ var s = S(), o = O((t = (d = (r = (a = e?.weekStartsOn) !== null && a !== void 0 ? a : e == null || (l = e.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : s.weekStartsOn) !== null && d !== void 0 ? d : (f = s.locale) === null || f === void 0 || (i = f.options) === null || i === void 0 ? void 0 : i.weekStartsOn) !== null && t !== void 0 ? t : 0);
9
+ if (!(o >= 0 && o <= 6))
10
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
11
+ var n = k(p), m = O(v), w = n.getUTCDay(), c = m % 7, _ = (c + 7) % 7, g = (_ < o ? 7 : 0) + m - w;
12
+ return n.setUTCDate(n.getUTCDate() + g), n;
7
13
  }
8
14
  export {
9
- f as default
15
+ U as default
10
16
  };
11
17
  //# sourceMappingURL=sdk.es154.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.es154.js","sources":["../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nfunction _possibleConstructorReturn(t, e) {\n if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return assertThisInitialized(t);\n}\nexport { _possibleConstructorReturn as default };"],"names":["_possibleConstructorReturn","e","_typeof","assertThisInitialized"],"mappings":";;AAEA,SAASA,EAA2B,GAAGC,GAAG;AACxC,MAAIA,MAAkBC,EAAQD,CAAC,KAArB,YAAwC,OAAOA,KAArB,YAAyB,QAAOA;AACpE,MAAeA,MAAX,OAAc,OAAM,IAAI,UAAU,0DAA0D;AAChG,SAAOE,EAAsB,CAAC;AAChC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"sdk.es154.js","sources":["../node_modules/date-fns/esm/_lib/setUTCDay/index.js"],"sourcesContent":["import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function setUTCDay(dirtyDate, dirtyDay, options) {\n var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(2, arguments);\n var defaultOptions = getDefaultOptions();\n var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n\n // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n var date = toDate(dirtyDate);\n var day = toInteger(dirtyDay);\n var currentDay = date.getUTCDay();\n var remainder = day % 7;\n var dayIndex = (remainder + 7) % 7;\n var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}"],"names":["setUTCDay","dirtyDate","dirtyDay","options","_ref","_ref2","_ref3","_options$weekStartsOn","_options$locale","_options$locale$optio","_defaultOptions$local","_defaultOptions$local2","requiredArgs","defaultOptions","getDefaultOptions","weekStartsOn","toInteger","date","toDate","day","currentDay","remainder","dayIndex","diff"],"mappings":";;;;AAIe,SAASA,EAAUC,GAAWC,GAAUC,GAAS;AAC9D,MAAIC,GAAMC,GAAOC,GAAOC,GAAuBC,GAAiBC,GAAuBC,GAAuBC;AAC9G,EAAAC,EAAa,GAAG,SAAS;AACzB,MAAIC,IAAiBC,EAAmB,GACpCC,IAAeC,GAAWZ,KAAQC,KAASC,KAASC,IAA0EJ,GAAQ,kBAAkB,QAAQI,MAA0B,SAASA,IAAwBJ,KAAY,SAAuCK,IAAkBL,EAAQ,YAAY,QAAQK,MAAoB,WAAmBC,IAAwBD,EAAgB,aAAa,QAAQC,MAA0B,SAAtL,SAAwMA,EAAsB,kBAAkB,QAAQH,MAAU,SAASA,IAAQO,EAAe,kBAAkB,QAAQR,MAAU,SAASA,KAASK,IAAwBG,EAAe,YAAY,QAAQH,MAA0B,WAAmBC,IAAyBD,EAAsB,aAAa,QAAQC,MAA2B,SAAzG,SAA2HA,EAAuB,kBAAkB,QAAQP,MAAS,SAASA,IAAO,CAAC;AAGp4B,MAAI,EAAEW,KAAgB,KAAKA,KAAgB;AACzC,UAAM,IAAI,WAAW,kDAAkD;AAEzE,MAAIE,IAAOC,EAAOjB,CAAS,GACvBkB,IAAMH,EAAUd,CAAQ,GACxBkB,IAAaH,EAAK,UAAW,GAC7BI,IAAYF,IAAM,GAClBG,KAAYD,IAAY,KAAK,GAC7BE,KAAQD,IAAWP,IAAe,IAAI,KAAKI,IAAMC;AACrD,SAAAH,EAAK,WAAWA,EAAK,WAAU,IAAKM,CAAI,GACjCN;AACT;","x_google_ignoreList":[0]}
package/dist/sdk.es155.js CHANGED
@@ -1,10 +1,14 @@
1
- import o from "./sdk.es70.js";
2
- import i from "./sdk.es160.js";
3
- function f(t) {
4
- var r = i(t, "string");
5
- return o(r) == "symbol" ? r : r + "";
1
+ import m from "./sdk.es55.js";
2
+ import v from "./sdk.es56.js";
3
+ import s from "./sdk.es54.js";
4
+ function y(t, a) {
5
+ v(2, arguments);
6
+ var r = s(a);
7
+ r % 7 === 0 && (r = r - 7);
8
+ var o = 1, e = m(t), n = e.getUTCDay(), d = r % 7, f = (d + 7) % 7, i = (f < o ? 7 : 0) + r - n;
9
+ return e.setUTCDate(e.getUTCDate() + i), e;
6
10
  }
7
11
  export {
8
- f as default
12
+ y as default
9
13
  };
10
14
  //# sourceMappingURL=sdk.es155.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.es155.js","sources":["../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };"],"names":["toPropertyKey","i","toPrimitive","_typeof"],"mappings":";;AAEA,SAASA,EAAc,GAAG;AACxB,MAAIC,IAAIC,EAAY,GAAG,QAAQ;AAC/B,SAAmBC,EAAQF,CAAC,KAArB,WAAyBA,IAAIA,IAAI;AAC1C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"sdk.es155.js","sources":["../node_modules/date-fns/esm/_lib/setUTCISODay/index.js"],"sourcesContent":["import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nexport default function setUTCISODay(dirtyDate, dirtyDay) {\n requiredArgs(2, arguments);\n var day = toInteger(dirtyDay);\n if (day % 7 === 0) {\n day = day - 7;\n }\n var weekStartsOn = 1;\n var date = toDate(dirtyDate);\n var currentDay = date.getUTCDay();\n var remainder = day % 7;\n var dayIndex = (remainder + 7) % 7;\n var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}"],"names":["setUTCISODay","dirtyDate","dirtyDay","requiredArgs","day","toInteger","weekStartsOn","date","toDate","currentDay","remainder","dayIndex","diff"],"mappings":";;;AAGe,SAASA,EAAaC,GAAWC,GAAU;AACxD,EAAAC,EAAa,GAAG,SAAS;AACzB,MAAIC,IAAMC,EAAUH,CAAQ;AAC5B,EAAIE,IAAM,MAAM,MACdA,IAAMA,IAAM;AAEd,MAAIE,IAAe,GACfC,IAAOC,EAAOP,CAAS,GACvBQ,IAAaF,EAAK,UAAW,GAC7BG,IAAYN,IAAM,GAClBO,KAAYD,IAAY,KAAK,GAC7BE,KAAQD,IAAWL,IAAe,IAAI,KAAKF,IAAMK;AACrD,SAAAF,EAAK,WAAWA,EAAK,WAAU,IAAKK,CAAI,GACjCL;AACT;","x_google_ignoreList":[0]}
package/dist/sdk.es160.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./sdk.es70.js";
1
+ import o from "./sdk.es68.js";
2
2
  function u(r, e) {
3
3
  if (o(r) != "object" || !r) return r;
4
4
  var i = r[Symbol.toPrimitive];
package/dist/sdk.es36.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { j as t } from "./sdk.es39.js";
2
2
  import n from "react";
3
3
  import d from "./sdk.es42.js";
4
- import { BackButton as $ } from "./sdk.es43.js";
5
- import X from "./sdk.es44.js";
6
- import Y from "./sdk.es45.js";
7
- import { FilterItem as q } from "./sdk.es46.js";
8
- import { HiXMark as z, HiChevronLeft as D, HiChevronRight as F } from "./sdk.es47.js";
4
+ import { BackButton as $ } from "./sdk.es47.js";
5
+ import X from "./sdk.es48.js";
6
+ import Y from "./sdk.es49.js";
7
+ import { FilterItem as q } from "./sdk.es50.js";
8
+ import { HiXMark as z, HiChevronLeft as D, HiChevronRight as F } from "./sdk.es51.js";
9
9
  function N({
10
10
  title: a,
11
11
  search: c,
package/dist/sdk.es37.js CHANGED
@@ -1,14 +1,14 @@
1
- import P from "./sdk.es61.js";
2
- import L from "./sdk.es62.js";
3
- import T from "./sdk.es57.js";
4
- import I from "./sdk.es63.js";
5
- import M from "./sdk.es64.js";
6
- import Y from "./sdk.es65.js";
7
- import { isProtectedWeekYearToken as j, throwProtectedError as $, isProtectedDayOfYearToken as q } from "./sdk.es66.js";
8
- import D from "./sdk.es56.js";
9
- import y from "./sdk.es58.js";
10
- import { getDefaultOptions as A } from "./sdk.es67.js";
11
- import Q from "./sdk.es68.js";
1
+ import P from "./sdk.es59.js";
2
+ import L from "./sdk.es60.js";
3
+ import T from "./sdk.es55.js";
4
+ import I from "./sdk.es61.js";
5
+ import M from "./sdk.es62.js";
6
+ import Y from "./sdk.es63.js";
7
+ import { isProtectedWeekYearToken as j, throwProtectedError as $, isProtectedDayOfYearToken as q } from "./sdk.es64.js";
8
+ import D from "./sdk.es54.js";
9
+ import y from "./sdk.es56.js";
10
+ import { getDefaultOptions as A } from "./sdk.es65.js";
11
+ import Q from "./sdk.es66.js";
12
12
  var F = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, H = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, K = /^'([^]*?)'?$/, V = /''/g, Z = /[a-zA-Z]/;
13
13
  function ie(r, t, G) {
14
14
  var f, d, u, c, m, p, s, v, g, w, h, k, O, _;
package/dist/sdk.es38.js CHANGED
@@ -1,17 +1,17 @@
1
- import X from "./sdk.es70.js";
2
- import H from "./sdk.es71.js";
3
- import ee from "./sdk.es68.js";
4
- import re from "./sdk.es62.js";
5
- import Q from "./sdk.es57.js";
6
- import ne from "./sdk.es72.js";
7
- import K from "./sdk.es64.js";
8
- import te from "./sdk.es65.js";
9
- import { isProtectedWeekYearToken as ae, throwProtectedError as Z, isProtectedDayOfYearToken as ie } from "./sdk.es66.js";
10
- import B from "./sdk.es56.js";
11
- import oe from "./sdk.es58.js";
12
- import { DateToSystemTimezoneSetter as fe } from "./sdk.es73.js";
13
- import { parsers as le } from "./sdk.es74.js";
14
- import { getDefaultOptions as ue } from "./sdk.es67.js";
1
+ import X from "./sdk.es68.js";
2
+ import H from "./sdk.es69.js";
3
+ import ee from "./sdk.es66.js";
4
+ import re from "./sdk.es60.js";
5
+ import Q from "./sdk.es55.js";
6
+ import ne from "./sdk.es70.js";
7
+ import K from "./sdk.es62.js";
8
+ import te from "./sdk.es63.js";
9
+ import { isProtectedWeekYearToken as ae, throwProtectedError as Z, isProtectedDayOfYearToken as ie } from "./sdk.es64.js";
10
+ import B from "./sdk.es54.js";
11
+ import oe from "./sdk.es56.js";
12
+ import { DateToSystemTimezoneSetter as fe } from "./sdk.es71.js";
13
+ import { parsers as le } from "./sdk.es72.js";
14
+ import { getDefaultOptions as ue } from "./sdk.es65.js";
15
15
  var se = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, de = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ce = /^'([^]*?)'?$/, me = /''/g, pe = /\S/, ve = /[a-zA-Z]/;
16
16
  function Ce(i, G, P, a) {
17
17
  var p, v, g, h, w, k, _, y, O, D, E, N, S, T;
package/dist/sdk.es39.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __require as r } from "./sdk.es48.js";
1
+ import { __require as r } from "./sdk.es43.js";
2
2
  var i = r();
3
3
  export {
4
4
  i as j
package/dist/sdk.es40.js CHANGED
@@ -1,6 +1,6 @@
1
- import n from "./sdk.es82.js";
2
- import m from "./sdk.es83.js";
3
- import { unsafeStringify as t } from "./sdk.es84.js";
1
+ import n from "./sdk.es79.js";
2
+ import m from "./sdk.es80.js";
3
+ import { unsafeStringify as t } from "./sdk.es81.js";
4
4
  function x(r, e, a) {
5
5
  if (n.randomUUID && !r)
6
6
  return n.randomUUID();
package/dist/sdk.es42.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./sdk.es86.js";
1
+ import { getDefaultExportFromCjs as r } from "./sdk.es83.js";
2
2
  import { __require as s } from "./sdk.es77.js";
3
3
  var e = s();
4
4
  const t = /* @__PURE__ */ r(e);
package/dist/sdk.es43.js CHANGED
@@ -1,25 +1,11 @@
1
- import { j as n } from "./sdk.es39.js";
2
- import { Link as c } from "@inertiajs/react";
3
- import i from "react";
4
- import { HiArrowLeft as a } from "./sdk.es47.js";
5
- import { usePage as l } from "./sdk.es41.js";
6
- import u from "./sdk.es42.js";
7
- function w({ back: e, className: s }) {
8
- const [f, m] = i.useState(typeof e == "string" ? e : void 0), { breadcrumbs: t } = l().props;
9
- return i.useEffect(() => {
10
- if (typeof window < "u") {
11
- if (!t) return;
12
- if (e && typeof e == "boolean") {
13
- const r = t.slice(t.length - 2, t.length - 1);
14
- if (r && r.length === 1) {
15
- const o = r[0].url;
16
- o && m(new URL(o).pathname);
17
- }
18
- }
19
- }
20
- }, [t]), /* @__PURE__ */ n.jsx(c, { href: f || "/", className: u(s, "flex items-center justify-center text-primary hover:text-accent transition-all"), children: /* @__PURE__ */ n.jsx(a, { className: "h-5 w-5 stroke-[1.25]" }) });
1
+ import { __module as e } from "./sdk.es44.js";
2
+ import { __require as i } from "./sdk.es45.js";
3
+ import { __require as t } from "./sdk.es46.js";
4
+ var r;
5
+ function m() {
6
+ return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = i() : e.exports = t(), e.exports);
21
7
  }
22
8
  export {
23
- w as BackButton
9
+ m as __require
24
10
  };
25
11
  //# sourceMappingURL=sdk.es43.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.es43.js","sources":["../src/components/filter/Back.tsx"],"sourcesContent":["import { Link } from \"@inertiajs/react\";\nimport React from \"react\";\nimport { HiArrowLeft } from \"react-icons/hi2\";\nimport { usePage } from \"../../lib/page\";\nimport cn from 'classnames';\n\nexport function BackButton({ back, className }: { back?: string | boolean; className?: string; }) {\n const [backUrl, setBackUrl] = React.useState<string | undefined>(typeof back === 'string' ? back : undefined);\n const { breadcrumbs } = usePage().props;\n\n /**\n * Set the back URL on mount\n */\n React.useEffect(() => {\n if (typeof window !== 'undefined') {\n if (!breadcrumbs) return;\n // Set back button URL\n if (back && typeof back === 'boolean') {\n // If we haven't provided a path as a prop, use the last breadcrumb that's not the current one\n const crumb = breadcrumbs.slice(breadcrumbs.length - 2, breadcrumbs.length - 1);\n if (crumb && crumb.length === 1) {\n // Strip off everything but the path so the <Link> component works\n const url = crumb[0].url;\n if (url) {\n setBackUrl(new URL(url).pathname);\n }\n }\n }\n }\n }, [breadcrumbs]);\n\n return (\n <Link href={backUrl || '/'} className={cn(className, 'flex items-center justify-center text-primary hover:text-accent transition-all')}>\n <HiArrowLeft className=\"h-5 w-5 stroke-[1.25]\" />\n </Link>\n );\n}"],"names":["BackButton","back","className","backUrl","setBackUrl","React","breadcrumbs","usePage","crumb","url","jsx","Link","cn","HiArrowLeft"],"mappings":";;;;;;AAMO,SAASA,EAAW,EAAE,MAAAC,GAAM,WAAAC,KAA+D;AACxF,QAAA,CAACC,GAASC,CAAU,IAAIC,EAAM,SAA6B,OAAOJ,KAAS,WAAWA,IAAO,MAAS,GACtG,EAAE,aAAAK,EAAA,IAAgBC,EAAA,EAAU;AAKlCF,SAAAA,EAAM,UAAU,MAAM;AACd,QAAA,OAAO,SAAW,KAAa;AAC/B,UAAI,CAACC,EAAa;AAEd,UAAAL,KAAQ,OAAOA,KAAS,WAAW;AAE7B,cAAAO,IAAQF,EAAY,MAAMA,EAAY,SAAS,GAAGA,EAAY,SAAS,CAAC;AAC1E,YAAAE,KAASA,EAAM,WAAW,GAAG;AAEvB,gBAAAC,IAAMD,EAAM,CAAC,EAAE;AACrB,UAAIC,KACAL,EAAW,IAAI,IAAIK,CAAG,EAAE,QAAQ;AAAA,QACpC;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ,GACD,CAACH,CAAW,CAAC,GAGXI,gBAAAA,EAAAA,IAAAC,GAAA,EAAK,MAAMR,KAAW,KAAK,WAAWS,EAAGV,GAAW,gFAAgF,GACjI,UAAAQ,gBAAAA,MAACG,GAAY,EAAA,WAAU,wBAAwB,CAAA,GACnD;AAER;"}
1
+ {"version":3,"file":"sdk.es43.js","sources":["../node_modules/react/jsx-runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["jsxRuntimeModule","require$$0","require$$1"],"mappings":";;;;;iCAEI,QAAQ,IAAI,aAAa,eAC3BA,EAAA,UAAiBC,EAAoD,IAErED,EAAA,UAAiBE,EAAiD;;","x_google_ignoreList":[0]}
package/dist/sdk.es44.js CHANGED
@@ -1,83 +1,5 @@
1
- import { j as e } from "./sdk.es39.js";
2
- import { router as w } from "@inertiajs/react";
3
- import c from "react";
4
- import { HiMagnifyingGlass as h, HiXMark as g } from "./sdk.es47.js";
5
- import { useClickOutside as x } from "./sdk.es6.js";
6
- import "./sdk.es9.js";
7
- import "./sdk.es10.js";
8
- import "./sdk.es11.js";
9
- import "./sdk.es12.js";
10
- function E({ search: u, active: l, onActive: s, placeholder: m, focusSearchShortcut: f = !1 }) {
11
- const [a, o] = c.useState(""), d = c.useRef(null);
12
- c.useEffect(() => {
13
- if (typeof window < "u") {
14
- const t = new URLSearchParams(window.location.search).get("search");
15
- t && (o(t), s(!0));
16
- }
17
- const r = (n) => {
18
- f && n.key === "/" && (n.preventDefault(), s(!0)), n.key === "Escape" && s(!1);
19
- };
20
- return window.addEventListener("keydown", r), () => {
21
- window.removeEventListener("keydown", r);
22
- };
23
- }, [f]), x(d, () => {
24
- a || s(!1);
25
- });
26
- function p(r, n) {
27
- if (r?.preventDefault(), typeof u != "string") return;
28
- let t = u;
29
- t[0] !== "/" && (t = `/${t}`);
30
- const i = new URLSearchParams(window?.location.search);
31
- i.set("search", n ?? a), i.set("page", "1"), w.get(`${t}?${i.toString()}`);
32
- }
33
- return /* @__PURE__ */ e.jsxs("div", { ref: d, className: "", children: [
34
- !l && /* @__PURE__ */ e.jsx(
35
- "button",
36
- {
37
- title: "Open Search Bar",
38
- type: "button",
39
- onClick: () => s(!0),
40
- className: "flex items-center justify-center rounded-full hover:text-accent p-1 hover:bg-gray-100",
41
- children: /* @__PURE__ */ e.jsx(h, { className: "h-5 w-5 stroke-[1.25]" })
42
- }
43
- ),
44
- l && /* @__PURE__ */ e.jsxs(
45
- "form",
46
- {
47
- onSubmit: p,
48
- className: "group flex items-center gap-2 rounded-full bg-white pr-4 pl-1 shadow transition-all focus-within:outline-none focus-within:ring-1 focus-within:ring-accent",
49
- children: [
50
- /* @__PURE__ */ e.jsx(
51
- "input",
52
- {
53
- type: "text",
54
- name: "search",
55
- id: "search",
56
- value: a,
57
- onChange: (r) => o(r.currentTarget.value || ""),
58
- className: "no-focus-shadow !focus:border-0 !border-0 !bg-transparent !shadow-none !ring-opacity-0 !transition-none placeholder:text-gray-400 !py-1.5 text-sm",
59
- autoFocus: !0,
60
- placeholder: m
61
- }
62
- ),
63
- a && /* @__PURE__ */ e.jsx(
64
- "button",
65
- {
66
- type: "button",
67
- title: "Clear Search",
68
- onClick: () => {
69
- o(""), p(void 0, "");
70
- },
71
- children: /* @__PURE__ */ e.jsx(g, { className: "h-5 w-5" })
72
- }
73
- ),
74
- /* @__PURE__ */ e.jsx("button", { type: "submit", children: /* @__PURE__ */ e.jsx(h, { className: "h-5 w-5" }) })
75
- ]
76
- }
77
- )
78
- ] });
79
- }
1
+ var e = { exports: {} };
80
2
  export {
81
- E as default
3
+ e as __module
82
4
  };
83
5
  //# sourceMappingURL=sdk.es44.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.es44.js","sources":["../src/components/filter/SearchBar.tsx"],"sourcesContent":["import { router } from \"@inertiajs/react\";\nimport React from \"react\";\nimport { HiMagnifyingGlass, HiXMark } from \"react-icons/hi2\";\nimport { useClickOutside } from \"../../lib\";\n\ninterface Props {\n search?: string;\n active: boolean;\n onActive: Function;\n placeholder?: string;\n focusSearchShortcut?: boolean;\n}\n\nexport default function SearchBar({ search, active, onActive, placeholder, focusSearchShortcut = false }: Props) {\n const [query, setQuery] = React.useState<string>('');\n\n const searchRef = React.useRef<HTMLDivElement | null>(null);\n\n /**\n * Populate search input on load\n */\n React.useEffect(() => {\n if (typeof window !== 'undefined') {\n // Populate search\n const search = new URLSearchParams(window.location.search);\n\n const q = search.get('search') as string;\n\n if (q) {\n setQuery(q);\n onActive(true);\n }\n }\n\n const listener = (e: KeyboardEvent) => {\n if (focusSearchShortcut && e.key === '/') {\n e.preventDefault();\n onActive(true);\n }\n\n if (e.key === 'Escape') {\n onActive(false);\n }\n };\n\n window.addEventListener('keydown', listener);\n\n return () => {\n window.removeEventListener('keydown', listener);\n };\n }, [focusSearchShortcut]);\n\n /**\n * Minimise the search bar on click outside if there's no search query\n */\n useClickOutside(searchRef, () => {\n if (!query) {\n onActive(false);\n }\n });\n\n /**\n * Handle the search function\n */\n function handleSearch(e?: React.FormEvent, queryOverride?: string) {\n e?.preventDefault();\n\n if (typeof search !== 'string') return;\n\n let path: string = search;\n if (path[0] !== '/') {\n path = `/${path}`;\n }\n\n const params = new URLSearchParams(window?.location.search);\n params.set('search', queryOverride ?? query);\n params.set('page', '1');\n\n router.get(`${path}?${params.toString()}`);\n }\n\n return (\n <div ref={searchRef} className=\"\">\n {!active && (\n <button\n title=\"Open Search Bar\"\n type=\"button\"\n onClick={() => onActive(true)}\n className=\"flex items-center justify-center rounded-full hover:text-accent p-1 hover:bg-gray-100\"\n >\n <HiMagnifyingGlass className=\"h-5 w-5 stroke-[1.25]\" />\n </button>\n )}\n {active && (\n <form\n onSubmit={handleSearch}\n className=\"group flex items-center gap-2 rounded-full bg-white pr-4 pl-1 shadow transition-all focus-within:outline-none focus-within:ring-1 focus-within:ring-accent\"\n >\n <input\n type=\"text\"\n name=\"search\"\n id=\"search\"\n value={query}\n onChange={(e) => setQuery(e.currentTarget.value || '')}\n className=\"no-focus-shadow !focus:border-0 !border-0 !bg-transparent !shadow-none !ring-opacity-0 !transition-none placeholder:text-gray-400 !py-1.5 text-sm\"\n autoFocus\n placeholder={placeholder}\n />\n {query && (\n <button\n type=\"button\"\n title=\"Clear Search\"\n onClick={() => {\n setQuery('');\n handleSearch(undefined, '');\n }}\n >\n <HiXMark className=\"h-5 w-5\" />\n </button>\n )}\n <button type=\"submit\">\n <HiMagnifyingGlass className=\"h-5 w-5\" />\n </button>\n </form>\n )}\n </div>\n );\n}\n"],"names":["SearchBar","search","active","onActive","placeholder","focusSearchShortcut","query","setQuery","React","searchRef","q","listener","e","useClickOutside","handleSearch","queryOverride","path","params","router","jsxs","jsx","HiMagnifyingGlass","HiXMark"],"mappings":";;;;;;;;;AAawB,SAAAA,EAAU,EAAE,QAAAC,GAAQ,QAAAC,GAAQ,UAAAC,GAAU,aAAAC,GAAa,qBAAAC,IAAsB,MAAgB;AAC7G,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAM,SAAiB,EAAE,GAE7CC,IAAYD,EAAM,OAA8B,IAAI;AAK1DA,EAAAA,EAAM,UAAU,MAAM;AACd,QAAA,OAAO,SAAW,KAAa;AAIzB,YAAAE,IAFS,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAExC,IAAI,QAAQ;AAE7B,MAAIA,MACAH,EAASG,CAAC,GACVP,EAAS,EAAI;AAAA,IACjB;AAGE,UAAAQ,IAAW,CAACC,MAAqB;AAC/B,MAAAP,KAAuBO,EAAE,QAAQ,QACjCA,EAAE,eAAe,GACjBT,EAAS,EAAI,IAGbS,EAAE,QAAQ,YACVT,EAAS,EAAK;AAAA,IAEtB;AAEO,kBAAA,iBAAiB,WAAWQ,CAAQ,GAEpC,MAAM;AACF,aAAA,oBAAoB,WAAWA,CAAQ;AAAA,IAClD;AAAA,EAAA,GACD,CAACN,CAAmB,CAAC,GAKxBQ,EAAgBJ,GAAW,MAAM;AAC7B,IAAKH,KACDH,EAAS,EAAK;AAAA,EAClB,CACH;AAKQ,WAAAW,EAAaF,GAAqBG,GAAwB;AAG3D,QAFJH,GAAG,eAAe,GAEd,OAAOX,KAAW,SAAU;AAEhC,QAAIe,IAAef;AACf,IAAAe,EAAK,CAAC,MAAM,QACZA,IAAO,IAAIA,CAAI;AAGnB,UAAMC,IAAS,IAAI,gBAAgB,QAAQ,SAAS,MAAM;AACnD,IAAAA,EAAA,IAAI,UAAUF,KAAiBT,CAAK,GACpCW,EAAA,IAAI,QAAQ,GAAG,GAEtBC,EAAO,IAAI,GAAGF,CAAI,IAAIC,EAAO,SAAU,CAAA,EAAE;AAAA,EAAA;AAG7C,SACKE,gBAAAA,EAAAA,KAAA,OAAA,EAAI,KAAKV,GAAW,WAAU,IAC1B,UAAA;AAAA,IAAA,CAACP,KACEkB,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,OAAM;AAAA,QACN,MAAK;AAAA,QACL,SAAS,MAAMjB,EAAS,EAAI;AAAA,QAC5B,WAAU;AAAA,QAEV,UAAAiB,gBAAAA,EAAAA,IAACC,GAAkB,EAAA,WAAU,wBAAwB,CAAA;AAAA,MAAA;AAAA,IACzD;AAAA,IAEHnB,KACGiB,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,UAAUL;AAAA,QACV,WAAU;AAAA,QAEV,UAAA;AAAA,UAAAM,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACG,MAAK;AAAA,cACL,MAAK;AAAA,cACL,IAAG;AAAA,cACH,OAAOd;AAAA,cACP,UAAU,CAACM,MAAML,EAASK,EAAE,cAAc,SAAS,EAAE;AAAA,cACrD,WAAU;AAAA,cACV,WAAS;AAAA,cACT,aAAAR;AAAA,YAAA;AAAA,UACJ;AAAA,UACCE,KACGc,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACG,MAAK;AAAA,cACL,OAAM;AAAA,cACN,SAAS,MAAM;AACX,gBAAAb,EAAS,EAAE,GACXO,EAAa,QAAW,EAAE;AAAA,cAC9B;AAAA,cAEA,UAAAM,gBAAAA,EAAAA,IAACE,GAAQ,EAAA,WAAU,UAAU,CAAA;AAAA,YAAA;AAAA,UACjC;AAAA,UAEJF,gBAAAA,EAAAA,IAAC,YAAO,MAAK,UACT,gCAACC,GAAkB,EAAA,WAAU,UAAU,CAAA,EAC3C,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACJ,GAER;AAER;"}
1
+ {"version":3,"file":"sdk.es44.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/sdk.es45.js CHANGED
@@ -1,80 +1,29 @@
1
- import { j as t } from "./sdk.es39.js";
2
- import x from "react";
3
- import { Tooltip as p } from "react-tooltip";
4
- import { Link as z, router as F } from "@inertiajs/react";
5
- import { useClickOutside as T } from "./sdk.es6.js";
6
- import "./sdk.es9.js";
7
- import "./sdk.es10.js";
8
- import "./sdk.es11.js";
9
- import "./sdk.es12.js";
10
- import $ from "./sdk.es42.js";
11
- function C({ title: r, href: i, as: l = "Link", target: h = "_self", type: v, onClick: d = () => {
12
- }, shortcutKey: a, backgroundColor: f, hoverBackgroundColor: u, textColor: g, actions: c }) {
13
- const m = $("rounded-full font-bold px-4 py-1.5 text-sm whitespace-nowrap hover:border-gray-400 transition-colors border border-gray-300", {
14
- "bg-white": !f,
15
- [`bg-${f}`]: !!f,
16
- [`text-${g}`]: !!g,
17
- "hover:bg-gray-100": !u,
18
- [`hover:bg-${u}`]: !!u
19
- }), o = `action-${r}`, s = a ? `Ctrl + ${a}` : void 0, j = x.useRef(null), L = c && c.length > 0, N = "relative cursor-pointer " + m, [w, b] = x.useState(!1), E = () => {
20
- b(!w);
21
- };
22
- T(j, () => b(!1));
23
- function I() {
24
- if (l === "Link" && i)
25
- return F.get(i);
26
- if (l === "a" && i)
27
- return window.location.href = i;
28
- d();
1
+ import { __exports as t } from "./sdk.es75.js";
2
+ import R from "react";
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var p;
13
+ function x() {
14
+ if (p) return t;
15
+ p = 1;
16
+ var s = R, d = Symbol.for("react.element"), m = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, c = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function _(n, e, f) {
18
+ var r, o = {}, u = null, i = null;
19
+ f !== void 0 && (u = "" + f), e.key !== void 0 && (u = "" + e.key), e.ref !== void 0 && (i = e.ref);
20
+ for (r in e) l.call(e, r) && !a.hasOwnProperty(r) && (o[r] = e[r]);
21
+ if (n && n.defaultProps) for (r in e = n.defaultProps, e) o[r] === void 0 && (o[r] = e[r]);
22
+ return { $$typeof: d, type: n, key: u, ref: i, props: o, _owner: c.current };
29
23
  }
30
- return x.useEffect(() => {
31
- if (typeof window > "u" || !a) return;
32
- const n = (e) => {
33
- const k = e.ctrlKey || e.metaKey, y = e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement, A = e.target instanceof Element && e.target.closest("form");
34
- k && !y && !A && e.key === a && (e.preventDefault(), I());
35
- };
36
- return window.addEventListener("keydown", n), () => {
37
- window.removeEventListener("keydown", n);
38
- };
39
- }, [a]), L ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
40
- s && /* @__PURE__ */ t.jsx(p, { id: o, className: "z-10" }),
41
- /* @__PURE__ */ t.jsxs(
42
- "div",
43
- {
44
- ref: j,
45
- "data-tooltip-id": o,
46
- "data-tooltip-content": s,
47
- className: N,
48
- onClick: E,
49
- children: [
50
- r,
51
- w && /* @__PURE__ */ t.jsx("div", { className: "absolute top-[120%] right-[-20%] z-10", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2 bg-white rounded-lg shadow-xl p-3", children: c && c.map((n, e) => n.hidden ? null : /* @__PURE__ */ t.jsx(
52
- C,
53
- {
54
- title: n.title,
55
- as: n.as,
56
- href: n.href,
57
- target: n.target,
58
- onClick: n.onClick,
59
- type: "button"
60
- },
61
- e
62
- )) }) })
63
- ]
64
- }
65
- )
66
- ] }) : l === "Link" && i ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
67
- s && /* @__PURE__ */ t.jsx(p, { id: o, className: "z-10" }),
68
- /* @__PURE__ */ t.jsx(z, { "data-tooltip-id": o, "data-tooltip-content": s, className: m, href: i, onClick: () => d(), children: r })
69
- ] }) : l === "a" && i ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
70
- s && /* @__PURE__ */ t.jsx(p, { id: o, className: "z-10" }),
71
- /* @__PURE__ */ t.jsx("a", { "data-tooltip-id": o, "data-tooltip-content": s, className: m, target: h, href: i, onClick: () => d(), children: r })
72
- ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
73
- s && /* @__PURE__ */ t.jsx(p, { id: o, className: "z-10" }),
74
- /* @__PURE__ */ t.jsx("button", { "data-tooltip-id": o, "data-tooltip-content": s, className: m, type: v, onClick: () => d(), children: r })
75
- ] });
24
+ return t.Fragment = m, t.jsx = _, t.jsxs = _, t;
76
25
  }
77
26
  export {
78
- C as default
27
+ x as __require
79
28
  };
80
29
  //# sourceMappingURL=sdk.es45.js.map