math-main-components 0.0.196 → 0.0.197

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 (257) hide show
  1. package/dist/components/Accordeon/Accordeon.d.ts +4 -1
  2. package/dist/components/Accordeon/Accordeon.stories.d.ts +13 -0
  3. package/dist/components/Button/Button.d.ts +3 -3
  4. package/dist/components/Button/Button.stories.d.ts +13 -0
  5. package/dist/components/{AuthButton/AuthButton.d.ts → Button2/Button2.d.ts} +2 -2
  6. package/dist/components/Button2/Button2.stories.d.ts +13 -0
  7. package/dist/components/Button2/index.d.ts +1 -0
  8. package/dist/components/CardButton/CardButton.d.ts +3 -3
  9. package/dist/components/CardButton/CardButton.stories.d.ts +13 -0
  10. package/dist/components/Checkbox/Checkbox.stories.d.ts +13 -0
  11. package/dist/components/ChooseRole/ChooseRole.d.ts +3 -4
  12. package/dist/components/ChooseRole/ChooseRole.stories.d.ts +13 -0
  13. package/dist/components/ChooseRole/index.d.ts +1 -1
  14. package/dist/components/CopyCode/CopyCode.d.ts +3 -4
  15. package/dist/components/CopyCode/CopyCode.stories.d.ts +13 -0
  16. package/dist/components/EmptyCard/EmptyCard.stories.d.ts +13 -0
  17. package/dist/components/FormButton/FormButton.d.ts +4 -4
  18. package/dist/components/FormButton/FormButton.stories.d.ts +13 -0
  19. package/dist/components/FormText/FormText.stories.d.ts +13 -0
  20. package/dist/components/ForwardButton/ForwardButton.stories.d.ts +13 -0
  21. package/dist/index.cjs.js +39 -48
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.esm.js +39 -47
  24. package/dist/styles/font.scss +5 -0
  25. package/dist/styles/material-symbols.scss +24 -0
  26. package/dist/styles/theme-colors.scss +164 -0
  27. package/dist/styles/theme-styles.scss +8 -0
  28. package/package.json +18 -3
  29. package/dist/_virtual/_interop_require_default.cjs.js +0 -3
  30. package/dist/_virtual/_interop_require_wildcard.cjs.js +0 -3
  31. package/dist/_virtual/add-base-path.js +0 -3
  32. package/dist/_virtual/add-locale.js +0 -3
  33. package/dist/_virtual/add-locale2.js +0 -3
  34. package/dist/_virtual/add-path-prefix.js +0 -3
  35. package/dist/_virtual/add-path-suffix.js +0 -3
  36. package/dist/_virtual/app-paths.js +0 -3
  37. package/dist/_virtual/app-router-context.shared-runtime.js +0 -3
  38. package/dist/_virtual/app-router-headers.js +0 -3
  39. package/dist/_virtual/bloom-filter.js +0 -3
  40. package/dist/_virtual/compare-states.js +0 -3
  41. package/dist/_virtual/denormalize-page-path.js +0 -3
  42. package/dist/_virtual/detect-domain-locale.js +0 -3
  43. package/dist/_virtual/detect-domain-locale2.js +0 -3
  44. package/dist/_virtual/ensure-leading-slash.js +0 -3
  45. package/dist/_virtual/escape-regexp.js +0 -3
  46. package/dist/_virtual/format-next-pathname-info.js +0 -3
  47. package/dist/_virtual/format-url.js +0 -3
  48. package/dist/_virtual/get-asset-path-from-route.js +0 -3
  49. package/dist/_virtual/get-cookie-parser.js +0 -3
  50. package/dist/_virtual/get-domain-locale.js +0 -3
  51. package/dist/_virtual/get-next-pathname-info.js +0 -3
  52. package/dist/_virtual/handle-smooth-scroll.js +0 -3
  53. package/dist/_virtual/has-base-path.js +0 -3
  54. package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
  55. package/dist/_virtual/head-manager.js +0 -3
  56. package/dist/_virtual/index.js +0 -3
  57. package/dist/_virtual/index2.js +0 -3
  58. package/dist/_virtual/index3.js +0 -3
  59. package/dist/_virtual/index4.js +0 -3
  60. package/dist/_virtual/index5.js +0 -3
  61. package/dist/_virtual/interception-routes.js +0 -3
  62. package/dist/_virtual/interpolate-as.js +0 -3
  63. package/dist/_virtual/is-api-route.js +0 -3
  64. package/dist/_virtual/is-bot.js +0 -3
  65. package/dist/_virtual/is-dynamic.js +0 -3
  66. package/dist/_virtual/is-error.js +0 -3
  67. package/dist/_virtual/is-local-url.js +0 -3
  68. package/dist/_virtual/is-plain-object.js +0 -3
  69. package/dist/_virtual/link.js +0 -3
  70. package/dist/_virtual/link2.js +0 -3
  71. package/dist/_virtual/mitt.js +0 -3
  72. package/dist/_virtual/normalize-locale-path.js +0 -3
  73. package/dist/_virtual/normalize-locale-path2.js +0 -3
  74. package/dist/_virtual/normalize-path-sep.js +0 -3
  75. package/dist/_virtual/normalize-trailing-slash.js +0 -3
  76. package/dist/_virtual/omit.js +0 -3
  77. package/dist/_virtual/parse-path.js +0 -3
  78. package/dist/_virtual/parse-relative-url.js +0 -3
  79. package/dist/_virtual/parse-url.js +0 -3
  80. package/dist/_virtual/path-has-prefix.js +0 -3
  81. package/dist/_virtual/path-match.js +0 -3
  82. package/dist/_virtual/prepare-destination.js +0 -3
  83. package/dist/_virtual/querystring.js +0 -3
  84. package/dist/_virtual/react-is.development.js +0 -3
  85. package/dist/_virtual/react-is.production.min.js +0 -3
  86. package/dist/_virtual/remove-base-path.js +0 -3
  87. package/dist/_virtual/remove-locale.js +0 -3
  88. package/dist/_virtual/remove-path-prefix.js +0 -3
  89. package/dist/_virtual/remove-trailing-slash.js +0 -3
  90. package/dist/_virtual/request-idle-callback.js +0 -3
  91. package/dist/_virtual/resolve-href.js +0 -3
  92. package/dist/_virtual/resolve-rewrites.js +0 -3
  93. package/dist/_virtual/route-loader.js +0 -3
  94. package/dist/_virtual/route-matcher.js +0 -3
  95. package/dist/_virtual/route-regex.js +0 -3
  96. package/dist/_virtual/router-context.shared-runtime.js +0 -3
  97. package/dist/_virtual/router-reducer-types.js +0 -3
  98. package/dist/_virtual/router.js +0 -3
  99. package/dist/_virtual/router2.js +0 -3
  100. package/dist/_virtual/router3.js +0 -3
  101. package/dist/_virtual/script.js +0 -3
  102. package/dist/_virtual/segment.js +0 -3
  103. package/dist/_virtual/sorted-routes.js +0 -3
  104. package/dist/_virtual/trusted-types.js +0 -3
  105. package/dist/_virtual/use-intersection.js +0 -3
  106. package/dist/_virtual/utils.js +0 -3
  107. package/dist/_virtual/with-router.js +0 -3
  108. package/dist/components/Accordeon/Accordeon.types.d.ts +0 -4
  109. package/dist/components/AuthButton/index.d.ts +0 -1
  110. package/dist/components/Dialog/Dialog.types.d.ts +0 -7
  111. package/dist/components/PrimaryButton/PrimaryButton.d.ts +0 -8
  112. package/dist/components/PrimaryButton/index.d.ts +0 -1
  113. package/dist/components/SvgIcon/SvgIcon.types.d.ts +0 -8
  114. package/dist/components/index.d.ts +0 -31
  115. package/dist/components/useDimensions.d.ts +0 -4
  116. package/dist/components/useOrientation.d.ts +0 -3
  117. package/dist/components/useScroll.d.ts +0 -4
  118. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs.js +0 -7
  119. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs.js +0 -48
  120. package/dist/node_modules/clsx/dist/clsx.m.js +0 -3
  121. package/dist/node_modules/external-svg-loader/dist/svg-loader.min.js +0 -1
  122. package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
  123. package/dist/node_modules/next/dist/client/add-locale.js +0 -42
  124. package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -78
  125. package/dist/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -69
  126. package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -39
  127. package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -51
  128. package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
  129. package/dist/node_modules/next/dist/client/head-manager.js +0 -212
  130. package/dist/node_modules/next/dist/client/link.js +0 -431
  131. package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -40
  132. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -50
  133. package/dist/node_modules/next/dist/client/remove-base-path.js +0 -45
  134. package/dist/node_modules/next/dist/client/remove-locale.js +0 -41
  135. package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
  136. package/dist/node_modules/next/dist/client/resolve-href.js +0 -99
  137. package/dist/node_modules/next/dist/client/route-loader.js +0 -327
  138. package/dist/node_modules/next/dist/client/router.js +0 -202
  139. package/dist/node_modules/next/dist/client/script.js +0 -353
  140. package/dist/node_modules/next/dist/client/trusted-types.js +0 -54
  141. package/dist/node_modules/next/dist/client/use-intersection.js +0 -129
  142. package/dist/node_modules/next/dist/client/with-router.js +0 -52
  143. package/dist/node_modules/next/dist/compiled/cookie/index.js +0 -18
  144. package/dist/node_modules/next/dist/compiled/gzip-size/index.js +0 -15
  145. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -416
  146. package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +0 -230
  147. package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js +0 -26
  148. package/dist/node_modules/next/dist/compiled/react-is/index.js +0 -21
  149. package/dist/node_modules/next/dist/lib/is-api-route.js +0 -27
  150. package/dist/node_modules/next/dist/lib/is-error.js +0 -53
  151. package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +0 -35
  152. package/dist/node_modules/next/dist/server/future/helpers/interception-routes.js +0 -97
  153. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -63
  154. package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +0 -96
  155. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -33
  156. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -33
  157. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -38
  158. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -42
  159. package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +0 -50
  160. package/dist/node_modules/next/dist/shared/lib/mitt.js +0 -57
  161. package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +0 -32
  162. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -32
  163. package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +0 -33
  164. package/dist/node_modules/next/dist/shared/lib/router/router.js +0 -1771
  165. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -42
  166. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -33
  167. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -33
  168. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -61
  169. package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +0 -46
  170. package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -43
  171. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -99
  172. package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +0 -29
  173. package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -69
  174. package/dist/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js +0 -49
  175. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -36
  176. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -67
  177. package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +0 -27
  178. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -28
  179. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -40
  180. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -33
  181. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -47
  182. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +0 -43
  183. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +0 -44
  184. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -33
  185. package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +0 -62
  186. package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +0 -245
  187. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -80
  188. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -52
  189. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -35
  190. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +0 -136
  191. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -53
  192. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -200
  193. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -182
  194. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -33
  195. package/dist/node_modules/next/dist/shared/lib/segment.js +0 -28
  196. package/dist/node_modules/next/dist/shared/lib/utils.js +0 -196
  197. package/dist/node_modules/next/link.js +0 -7
  198. package/dist/node_modules/next/router.js +0 -6
  199. package/dist/node_modules/react-toastify/dist/react-toastify.esm.mjs.js +0 -7
  200. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -28
  201. package/dist/services/prisma.service.d.ts +0 -2
  202. package/dist/src/components/Accordeon/Accordeon.js +0 -14
  203. package/dist/src/components/Accordeon/styles.module.scss.js +0 -7
  204. package/dist/src/components/AuthButton/styles.module.scss.js +0 -4
  205. package/dist/src/components/CardButton/styles.module.scss.js +0 -4
  206. package/dist/src/components/Checkbox/styles.module.scss.js +0 -4
  207. package/dist/src/components/ChooseRole/styles.module.scss.js +0 -4
  208. package/dist/src/components/CopyCode/styles.module.scss.js +0 -4
  209. package/dist/src/components/Dialog/Dialog.js +0 -14
  210. package/dist/src/components/Dialog/styles.module.scss.js +0 -7
  211. package/dist/src/components/FormButton/styles.module.scss.js +0 -4
  212. package/dist/src/components/FormText/styles.module.scss.js +0 -4
  213. package/dist/src/components/ForwardButton/styles.module.scss.js +0 -4
  214. package/dist/src/components/Gap/Gap.js +0 -7
  215. package/dist/src/components/InputMail/styles.module.scss.js +0 -4
  216. package/dist/src/components/InputNames/styles.module.scss.js +0 -4
  217. package/dist/src/components/InputNumber/styles.module.scss.js +0 -4
  218. package/dist/src/components/InputPassword/styles.module.scss.js +0 -4
  219. package/dist/src/components/InputPin/styles.module.scss.js +0 -4
  220. package/dist/src/components/InputText/styles.module.scss.js +0 -4
  221. package/dist/src/components/OptionField/styles.module.scss.js +0 -4
  222. package/dist/src/components/OptionFieldHorizontal/styles.module.scss.js +0 -4
  223. package/dist/src/components/PrimaryButton/styles.module.scss.js +0 -4
  224. package/dist/src/components/ProgressBar/styles.module.scss.js +0 -4
  225. package/dist/src/components/RadioButtons/styles.module.scss.js +0 -4
  226. package/dist/src/components/RedirectButton/styles.module.scss.js +0 -4
  227. package/dist/src/components/SearchChips/styles.module.scss.js +0 -4
  228. package/dist/src/components/Searchbar/styles.module.scss.js +0 -4
  229. package/dist/src/components/Slider/styles.module.scss.js +0 -4
  230. package/dist/src/components/StepBack/styles.module.scss.js +0 -4
  231. package/dist/src/components/SvgIcon/SvgIcon.js +0 -9
  232. package/dist/src/components/Table/Table.js +0 -12
  233. package/dist/src/components/Table/styles.module.scss.js +0 -4
  234. package/dist/src/components/TextWithIcon/styles.module.scss.js +0 -4
  235. package/dist/src/components/UsageCard/styles.module.scss.js +0 -4
  236. package/dist/src/index.js +0 -36
  237. package/dist/types/Concept.d.ts +0 -7
  238. package/dist/types/Content.d.ts +0 -15
  239. package/dist/types/CourseAnnouncement.d.ts +0 -13
  240. package/dist/types/CourseAnnouncementAsset.d.ts +0 -22
  241. package/dist/types/CourseAnnouncementAssset.d.ts +0 -21
  242. package/dist/types/CourseMessage.d.ts +0 -13
  243. package/dist/types/CourseParticipant.d.ts +0 -9
  244. package/dist/types/CoursePin.d.ts +0 -8
  245. package/dist/types/File.d.ts +0 -13
  246. package/dist/types/HelpData.d.ts +0 -8
  247. package/dist/types/News.d.ts +0 -13
  248. package/dist/types/OrganizationMember.d.ts +0 -12
  249. package/dist/types/Page.d.ts +0 -8
  250. package/dist/types/ProductFeature.d.ts +0 -8
  251. package/dist/types/ProductLimit.d.ts +0 -8
  252. package/dist/types/PublicUser.d.ts +0 -7
  253. package/dist/types/index.d.ts +0 -2
  254. package/dist/types/marketing/BenefitForIndividuals.d.ts +0 -9
  255. package/dist/types/marketing/BenefitForSchools.d.ts +0 -9
  256. package/dist/types/marketing/Page.d.ts +0 -8
  257. package/dist/types/marketing/WebsiteData.d.ts +0 -23
@@ -1,39 +0,0 @@
1
- import { d as detectDomainLocale } from '../../../../_virtual/detect-domain-locale.js';
2
- import { __require as requireDetectDomainLocale$1 } from '../shared/lib/i18n/detect-domain-locale.js';
3
-
4
- var hasRequiredDetectDomainLocale;
5
-
6
- function requireDetectDomainLocale () {
7
- if (hasRequiredDetectDomainLocale) return detectDomainLocale.exports;
8
- hasRequiredDetectDomainLocale = 1;
9
- (function (module, exports) {
10
- Object.defineProperty(exports, "__esModule", {
11
- value: true
12
- });
13
- Object.defineProperty(exports, "detectDomainLocale", {
14
- enumerable: true,
15
- get: function() {
16
- return detectDomainLocale;
17
- }
18
- });
19
- const detectDomainLocale = function() {
20
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
21
- args[_key] = arguments[_key];
22
- }
23
- if (process.env.__NEXT_I18N_SUPPORT) {
24
- return requireDetectDomainLocale$1().detectDomainLocale(...args);
25
- }
26
- };
27
-
28
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
29
- Object.defineProperty(exports.default, '__esModule', { value: true });
30
- Object.assign(exports.default, exports);
31
- module.exports = exports.default;
32
- }
33
-
34
-
35
- } (detectDomainLocale, detectDomainLocale.exports));
36
- return detectDomainLocale.exports;
37
- }
38
-
39
- export { requireDetectDomainLocale as __require };
@@ -1,51 +0,0 @@
1
- import { g as getDomainLocale } from '../../../../_virtual/get-domain-locale.js';
2
- import { __require as requireNormalizeTrailingSlash } from './normalize-trailing-slash.js';
3
- import { __require as requireNormalizeLocalePath } from './normalize-locale-path.js';
4
- import { __require as requireDetectDomainLocale } from './detect-domain-locale.js';
5
-
6
- var hasRequiredGetDomainLocale;
7
-
8
- function requireGetDomainLocale () {
9
- if (hasRequiredGetDomainLocale) return getDomainLocale.exports;
10
- hasRequiredGetDomainLocale = 1;
11
- (function (module, exports) {
12
- Object.defineProperty(exports, "__esModule", {
13
- value: true
14
- });
15
- Object.defineProperty(exports, "getDomainLocale", {
16
- enumerable: true,
17
- get: function() {
18
- return getDomainLocale;
19
- }
20
- });
21
- const _normalizetrailingslash = requireNormalizeTrailingSlash();
22
- const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
23
- function getDomainLocale(path, locale, locales, domainLocales) {
24
- if (process.env.__NEXT_I18N_SUPPORT) {
25
- const normalizeLocalePath = requireNormalizeLocalePath().normalizeLocalePath;
26
- const detectDomainLocale = requireDetectDomainLocale().detectDomainLocale;
27
- const target = locale || normalizeLocalePath(path, locales).detectedLocale;
28
- const domain = detectDomainLocale(domainLocales, undefined, target);
29
- if (domain) {
30
- const proto = "http" + (domain.http ? "" : "s") + "://";
31
- const finalLocale = target === domain.defaultLocale ? "" : "/" + target;
32
- return "" + proto + domain.domain + (0, _normalizetrailingslash.normalizePathTrailingSlash)("" + basePath + finalLocale + path);
33
- }
34
- return false;
35
- } else {
36
- return false;
37
- }
38
- }
39
-
40
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
41
- Object.defineProperty(exports.default, '__esModule', { value: true });
42
- Object.assign(exports.default, exports);
43
- module.exports = exports.default;
44
- }
45
-
46
-
47
- } (getDomainLocale, getDomainLocale.exports));
48
- return getDomainLocale.exports;
49
- }
50
-
51
- export { requireGetDomainLocale as __require };
@@ -1,36 +0,0 @@
1
- import { h as hasBasePath } from '../../../../_virtual/has-base-path.js';
2
- import { __require as requirePathHasPrefix } from '../shared/lib/router/utils/path-has-prefix.js';
3
-
4
- var hasRequiredHasBasePath;
5
-
6
- function requireHasBasePath () {
7
- if (hasRequiredHasBasePath) return hasBasePath.exports;
8
- hasRequiredHasBasePath = 1;
9
- (function (module, exports) {
10
- Object.defineProperty(exports, "__esModule", {
11
- value: true
12
- });
13
- Object.defineProperty(exports, "hasBasePath", {
14
- enumerable: true,
15
- get: function() {
16
- return hasBasePath;
17
- }
18
- });
19
- const _pathhasprefix = requirePathHasPrefix();
20
- const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
21
- function hasBasePath(path) {
22
- return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
23
- }
24
-
25
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
26
- Object.defineProperty(exports.default, '__esModule', { value: true });
27
- Object.assign(exports.default, exports);
28
- module.exports = exports.default;
29
- }
30
-
31
-
32
- } (hasBasePath, hasBasePath.exports));
33
- return hasBasePath.exports;
34
- }
35
-
36
- export { requireHasBasePath as __require };
@@ -1,212 +0,0 @@
1
- import { h as headManager } from '../../../../_virtual/head-manager.js';
2
-
3
- var hasRequiredHeadManager;
4
-
5
- function requireHeadManager () {
6
- if (hasRequiredHeadManager) return headManager.exports;
7
- hasRequiredHeadManager = 1;
8
- (function (module, exports) {
9
- Object.defineProperty(exports, "__esModule", {
10
- value: true
11
- });
12
- function _export(target, all) {
13
- for(var name in all)Object.defineProperty(target, name, {
14
- enumerable: true,
15
- get: all[name]
16
- });
17
- }
18
- _export(exports, {
19
- DOMAttributeNames: function() {
20
- return DOMAttributeNames;
21
- },
22
- isEqualNode: function() {
23
- return isEqualNode;
24
- },
25
- default: function() {
26
- return initHeadManager;
27
- }
28
- });
29
- const DOMAttributeNames = {
30
- acceptCharset: "accept-charset",
31
- className: "class",
32
- htmlFor: "for",
33
- httpEquiv: "http-equiv",
34
- noModule: "noModule"
35
- };
36
- function reactElementToDOM(param) {
37
- let { type, props } = param;
38
- const el = document.createElement(type);
39
- for(const p in props){
40
- if (!props.hasOwnProperty(p)) continue;
41
- if (p === "children" || p === "dangerouslySetInnerHTML") continue;
42
- // we don't render undefined props to the DOM
43
- if (props[p] === undefined) continue;
44
- const attr = DOMAttributeNames[p] || p.toLowerCase();
45
- if (type === "script" && (attr === "async" || attr === "defer" || attr === "noModule")) {
46
- el[attr] = !!props[p];
47
- } else {
48
- el.setAttribute(attr, props[p]);
49
- }
50
- }
51
- const { children, dangerouslySetInnerHTML } = props;
52
- if (dangerouslySetInnerHTML) {
53
- el.innerHTML = dangerouslySetInnerHTML.__html || "";
54
- } else if (children) {
55
- el.textContent = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : "";
56
- }
57
- return el;
58
- }
59
- function isEqualNode(oldTag, newTag) {
60
- if (oldTag instanceof HTMLElement && newTag instanceof HTMLElement) {
61
- const nonce = newTag.getAttribute("nonce");
62
- // Only strip the nonce if `oldTag` has had it stripped. An element's nonce attribute will not
63
- // be stripped if there is no content security policy response header that includes a nonce.
64
- if (nonce && !oldTag.getAttribute("nonce")) {
65
- const cloneTag = newTag.cloneNode(true);
66
- cloneTag.setAttribute("nonce", "");
67
- cloneTag.nonce = nonce;
68
- return nonce === oldTag.nonce && oldTag.isEqualNode(cloneTag);
69
- }
70
- }
71
- return oldTag.isEqualNode(newTag);
72
- }
73
- let updateElements;
74
- if (process.env.__NEXT_STRICT_NEXT_HEAD) {
75
- updateElements = (type, components)=>{
76
- const headEl = document.querySelector("head");
77
- if (!headEl) return;
78
- const headMetaTags = headEl.querySelectorAll('meta[name="next-head"]') || [];
79
- const oldTags = [];
80
- if (type === "meta") {
81
- const metaCharset = headEl.querySelector("meta[charset]");
82
- if (metaCharset) {
83
- oldTags.push(metaCharset);
84
- }
85
- }
86
- for(let i = 0; i < headMetaTags.length; i++){
87
- var _headTag_tagName;
88
- const metaTag = headMetaTags[i];
89
- const headTag = metaTag.nextSibling;
90
- if ((headTag == null ? void 0 : (_headTag_tagName = headTag.tagName) == null ? void 0 : _headTag_tagName.toLowerCase()) === type) {
91
- oldTags.push(headTag);
92
- }
93
- }
94
- const newTags = components.map(reactElementToDOM).filter((newTag)=>{
95
- for(let k = 0, len = oldTags.length; k < len; k++){
96
- const oldTag = oldTags[k];
97
- if (isEqualNode(oldTag, newTag)) {
98
- oldTags.splice(k, 1);
99
- return false;
100
- }
101
- }
102
- return true;
103
- });
104
- oldTags.forEach((t)=>{
105
- var _t_parentNode;
106
- const metaTag = t.previousSibling;
107
- if (metaTag && metaTag.getAttribute("name") === "next-head") {
108
- var _t_parentNode1;
109
- (_t_parentNode1 = t.parentNode) == null ? void 0 : _t_parentNode1.removeChild(metaTag);
110
- }
111
- (_t_parentNode = t.parentNode) == null ? void 0 : _t_parentNode.removeChild(t);
112
- });
113
- newTags.forEach((t)=>{
114
- var _t_tagName;
115
- const meta = document.createElement("meta");
116
- meta.name = "next-head";
117
- meta.content = "1";
118
- // meta[charset] must be first element so special case
119
- if (!(((_t_tagName = t.tagName) == null ? void 0 : _t_tagName.toLowerCase()) === "meta" && t.getAttribute("charset"))) {
120
- headEl.appendChild(meta);
121
- }
122
- headEl.appendChild(t);
123
- });
124
- };
125
- } else {
126
- updateElements = (type, components)=>{
127
- const headEl = document.getElementsByTagName("head")[0];
128
- const headCountEl = headEl.querySelector("meta[name=next-head-count]");
129
- if (process.env.NODE_ENV !== "production") {
130
- if (!headCountEl) {
131
- console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");
132
- return;
133
- }
134
- }
135
- const headCount = Number(headCountEl.content);
136
- const oldTags = [];
137
- for(let i = 0, j = headCountEl.previousElementSibling; i < headCount; i++, j = (j == null ? void 0 : j.previousElementSibling) || null){
138
- var _j_tagName;
139
- if ((j == null ? void 0 : (_j_tagName = j.tagName) == null ? void 0 : _j_tagName.toLowerCase()) === type) {
140
- oldTags.push(j);
141
- }
142
- }
143
- const newTags = components.map(reactElementToDOM).filter((newTag)=>{
144
- for(let k = 0, len = oldTags.length; k < len; k++){
145
- const oldTag = oldTags[k];
146
- if (isEqualNode(oldTag, newTag)) {
147
- oldTags.splice(k, 1);
148
- return false;
149
- }
150
- }
151
- return true;
152
- });
153
- oldTags.forEach((t)=>{
154
- var _t_parentNode;
155
- return (_t_parentNode = t.parentNode) == null ? void 0 : _t_parentNode.removeChild(t);
156
- });
157
- newTags.forEach((t)=>headEl.insertBefore(t, headCountEl));
158
- headCountEl.content = (headCount - oldTags.length + newTags.length).toString();
159
- };
160
- }
161
- function initHeadManager() {
162
- return {
163
- mountedInstances: new Set(),
164
- updateHead: (head)=>{
165
- const tags = {};
166
- head.forEach((h)=>{
167
- if (// If the font tag is loaded only on client navigation
168
- // it won't be inlined. In this case revert to the original behavior
169
- h.type === "link" && h.props["data-optimized-fonts"]) {
170
- if (document.querySelector('style[data-href="' + h.props["data-href"] + '"]')) {
171
- return;
172
- } else {
173
- h.props.href = h.props["data-href"];
174
- h.props["data-href"] = undefined;
175
- }
176
- }
177
- const components = tags[h.type] || [];
178
- components.push(h);
179
- tags[h.type] = components;
180
- });
181
- const titleComponent = tags.title ? tags.title[0] : null;
182
- let title = "";
183
- if (titleComponent) {
184
- const { children } = titleComponent.props;
185
- title = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : "";
186
- }
187
- if (title !== document.title) document.title = title;
188
- [
189
- "meta",
190
- "base",
191
- "link",
192
- "style",
193
- "script"
194
- ].forEach((type)=>{
195
- updateElements(type, tags[type] || []);
196
- });
197
- }
198
- };
199
- }
200
-
201
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
202
- Object.defineProperty(exports.default, '__esModule', { value: true });
203
- Object.assign(exports.default, exports);
204
- module.exports = exports.default;
205
- }
206
-
207
-
208
- } (headManager, headManager.exports));
209
- return headManager.exports;
210
- }
211
-
212
- export { requireHeadManager as __require };