cross-country 1.2.21 → 1.2.22
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.
- package/dist/Color-F6OSRLHC-BbLcUd-T.js +575 -0
- package/dist/{bolt-Bw4E_fgS.js → bolt-BLbYxvOV.js} +6 -5
- package/dist/bundle.css +36 -31
- package/dist/colour-util-Bzfca_cM.js +775 -0
- package/dist/components/atoms/circle/__tests__/circle.test.js +2 -2
- package/dist/components/atoms/column/__tests__/column.test.js +2 -2
- package/dist/components/atoms/index.js +1 -1
- package/dist/components/atoms/list/index.js +4 -0
- package/dist/components/atoms/list/list-item/index.js +4 -0
- package/dist/components/atoms/list/list-item/list-item.js +20 -0
- package/dist/components/atoms/list/list.js +33 -0
- package/dist/components/atoms/radio/index.js +2 -2
- package/dist/components/atoms/radio/radio.js +42 -3
- package/dist/components/atoms/text/animate-number/animate-number.js +1 -1
- package/dist/components/atoms/text/index.js +1 -1
- package/dist/components/atoms/text/input/__stories__/state-machine-fetch-dragons.js +3 -3
- package/dist/components/atoms/text/input/input-text-machine.js +3 -3
- package/dist/components/atoms/text/input/state-machine-text-input.js +1 -1
- package/dist/components/atoms/text/span/__stories__/span-story.js +6 -5
- package/dist/components/index.js +116 -116
- package/dist/components/molecules/autocomplete/autocomplete-machine.js +3 -3
- package/dist/components/molecules/autocomplete/autocomplete.js +1 -1
- package/dist/components/molecules/card/amazon/amazon-card.js +7 -6
- package/dist/components/molecules/card/builder/card-builder-machine/card-builder-machine.js +1 -1
- package/dist/components/molecules/card/builder/card-builder-machine/card-service-events.js +2 -2
- package/dist/components/molecules/card/builder/card-builder-machine/platform-states-amazon.js +1 -1
- package/dist/components/molecules/card/builder/card-builder-machine/platform-states-common.js +1 -1
- package/dist/components/molecules/card/builder/card-builder.js +1 -1
- package/dist/components/molecules/card/builder/card-editor.js +7 -6
- package/dist/components/molecules/card/card.js +6 -5
- package/dist/components/molecules/carousel/carousel.js +6 -5
- package/dist/components/molecules/day-number/day-number.js +6 -5
- package/dist/components/molecules/field/field.js +6 -5
- package/dist/components/molecules/gold-leaf/gold-leaf-view/__tests__/gold-leaf-view.test.js +3 -3
- package/dist/components/molecules/gold-leaf/gold-leaf-view/controls/gold-leaf-view-controls.js +8 -7
- package/dist/components/molecules/gold-leaf/gold-leaf-view/email/gold-leaf-email-view.js +7 -6
- package/dist/components/molecules/gold-leaf/gold-leaf-view/gold-leaf-view.js +7 -6
- package/dist/components/molecules/gold-leaf/gold-leaf-view/index.js +1 -1
- package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-leaf-image.js +7 -6
- package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.js +40 -0
- package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-image-card.js +8 -7
- package/dist/components/molecules/gold-leaf/gold-leaf.js +1 -1
- package/dist/components/molecules/header/Header.js +10 -9
- package/dist/components/molecules/hero/hero.js +7 -6
- package/dist/components/molecules/icons/index.js +4 -3
- package/dist/components/molecules/icons/x/x.js +6 -5
- package/dist/components/molecules/index.js +8 -7
- package/dist/components/molecules/key-value-pairs/__tests__/key-value-pairs.js +1 -1
- package/dist/components/molecules/key-value-pairs/key-value-pairs.js +10 -9
- package/dist/components/molecules/keywords/keywords.js +6 -5
- package/dist/components/molecules/loading/__tests__/loading.test.js +1 -1
- package/dist/components/molecules/log-error-boundary/__stories__/log-error-boundary-story.js +1 -1
- package/dist/components/molecules/log-error-boundary/__tests__/log-error-boundary.test.js +2 -2
- package/dist/components/molecules/log-error-boundary/log-error-boundary.js +6 -5
- package/dist/components/molecules/modal/modal.js +6 -5
- package/dist/components/molecules/policies/index.js +4 -3
- package/dist/components/molecules/policies/privacy-policy.js +8 -7
- package/dist/components/molecules/policies/terms-of-use.js +8 -7
- package/dist/components/molecules/quote/quote.js +6 -5
- package/dist/components/molecules/radiogroup/__stories__/radio-group-form-story.js +12 -11
- package/dist/components/molecules/radiogroup/__stories__/radio-group-react-hook-form-story.js +15 -14
- package/dist/components/molecules/radiogroup/radiogroup.js +9 -9
- package/dist/components/molecules/related-articles/related-articles.js +15 -14
- package/dist/components/molecules/search/search.js +6 -5
- package/dist/components/molecules/stagger/stagger.js +6 -5
- package/dist/components/molecules/tile/corners.js +1 -1
- package/dist/components/molecules/tile/index.js +1 -1
- package/dist/components/molecules/tile/tile-interactive.js +5 -4
- package/dist/components/molecules/tile/tile.js +1 -1
- package/dist/components/molecules/time-progress/__tests__/progress.test.js +1 -1
- package/dist/components/molecules/time-progress/pilot/index.js +2 -3
- package/dist/components/molecules/time-progress/progress-over-year.js +6 -5
- package/dist/components/molecules/time-progress/progress.js +6 -5
- package/dist/components/molecules/user/anon-user.js +6 -5
- package/dist/components/molecules/user/user.js +7 -6
- package/dist/components/molecules/venn-diagram/__tests__/venn-diagram.tests.js +2 -2
- package/dist/components/molecules/venn-diagram/venn-diagram-circle.js +6 -5
- package/dist/components/molecules/venn-diagram/venn-diagram.js +6 -5
- package/dist/components/molecules/wallpaper/__tests__/wallpaper.tests.js +2 -2
- package/dist/components/molecules/wallpaper/wallpaper.js +1 -1
- package/dist/components/molecules/wrapper/__stories__/wrapper-children-story.js +6 -5
- package/dist/components/organisms/actors/actor/actor-builder-machine.js +2 -2
- package/dist/components/organisms/actors/actor/actor-builder.js +6 -5
- package/dist/components/organisms/actors/actor/actor.js +5 -4
- package/dist/components/organisms/actors/actor/index.js +1 -1
- package/dist/components/organisms/actors/animal/animal.js +1 -1
- package/dist/components/organisms/actors/monsters/troll/troll-machine.js +2 -2
- package/dist/components/organisms/actors/monsters/troll/troll.js +6 -5
- package/dist/components/organisms/actors/party/cleric/cleric.js +1 -1
- package/dist/components/organisms/actors/party/hunter/hunter.js +1 -1
- package/dist/components/organisms/actors/party/warrior/warrior.js +1 -1
- package/dist/components/organisms/actors/party/wizard/wizard.js +1 -1
- package/dist/components/organisms/actors/wisp/wisp.js +1 -1
- package/dist/components/organisms/ads/ad-card.js +6 -5
- package/dist/components/organisms/animation/animate-actor/animate-actor.js +6 -5
- package/dist/components/organisms/animation/one-day/one-day.js +15 -14
- package/dist/components/organisms/animation/reverse-text-animation/reverse-text-animation.js +6 -5
- package/dist/components/organisms/bento/layouts/five-by-four/bento-five-by-four.js +9 -8
- package/dist/components/organisms/bento/layouts/four-by-four/bento-four-by-four.js +6 -5
- package/dist/components/organisms/bento/layouts/three-by-three/bento-three-by-three.js +6 -5
- package/dist/components/organisms/bento/layouts/two-by-two/bento-two-by-two.js +6 -5
- package/dist/components/organisms/blog/__stories__/blog-story.js +9 -8
- package/dist/components/organisms/blog/blog-post/__stories__/blog-post-story.js +6 -5
- package/dist/components/organisms/blog/blog-post/blog-post-machine/build-listicle-machine.js +1 -1
- package/dist/components/organisms/blog/blog-post/blog-post-machine/delete-listicle-item.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/load-listicle.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/manage-listicle-items.js +1 -1
- package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle-item.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/update-listice-item.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post.js +6 -5
- package/dist/components/organisms/blog/blog-post-list.js +12 -11
- package/dist/components/organisms/blog/blog.js +6 -5
- package/dist/components/organisms/branch/branch.js +6 -5
- package/dist/components/organisms/branches/__tests__/branch-list.test.js +6 -4
- package/dist/components/organisms/branches/branch-list.js +61 -39
- package/dist/components/organisms/branches/branches.js +7 -6
- package/dist/components/organisms/calendar/calendar.js +6 -5
- package/dist/components/organisms/charts/chart/__stories__/data-set.js +1 -1
- package/dist/components/organisms/charts/chart/chart-gold-leaf/chart-gold-leaf.js +4 -3
- package/dist/components/organisms/clusters/cluster.js +6 -5
- package/dist/components/organisms/json-map-tile-grid/index.js +1 -1
- package/dist/components/organisms/json-map-tile-grid/json-map-tile-grid.js +6 -4
- package/dist/components/organisms/listicle/__stories__/andor-right-click-story.js +6 -5
- package/dist/components/organisms/listicle/__stories__/listicle-fb-v-canada-story.js +6 -5
- package/dist/components/organisms/listicle/__stories__/listicle-story.js +6 -5
- package/dist/components/organisms/listicle/build-listicle-machine/build-listicle-machine.js +1 -1
- package/dist/components/organisms/listicle/build-listicle-machine/delete-listicle-item.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/load-listicle.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/manage-listicle-items.js +1 -1
- package/dist/components/organisms/listicle/build-listicle-machine/save-listicle-item.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/save-listicle.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/update-listice-item.js +2 -2
- package/dist/components/organisms/listicle/edit-listicle/edit-listicle.js +13 -12
- package/dist/components/organisms/listicle/edit-listicle-item-list/edit-listicle-item-list.js +6 -5
- package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item-input.js +12 -11
- package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item.js +6 -5
- package/dist/components/organisms/listicle/listicle-builder.js +14 -13
- package/dist/components/organisms/listicle/listicle-item-list.js +12 -11
- package/dist/components/organisms/listicle/listicle.js +6 -5
- package/dist/components/organisms/listicle/post-link.js +7 -6
- package/dist/components/organisms/login/__stories__/login-story.js +6 -5
- package/dist/components/organisms/login/login-fetching-transition.js +6 -5
- package/dist/components/organisms/login/login-fields-transition.js +21 -20
- package/dist/components/organisms/login/login-response-transition.js +66 -11
- package/dist/components/organisms/login/login-submit-transition.js +6 -5
- package/dist/components/organisms/login/login-view.js +7 -6
- package/dist/components/organisms/metrics/metrics.js +6 -5
- package/dist/components/organisms/palettes/palettes.js +14 -12
- package/dist/components/organisms/player/player.js +6 -5
- package/dist/components/organisms/registration/password-strength-helper.js +11 -10
- package/dist/components/organisms/registration/post-registration.js +2 -2
- package/dist/components/organisms/registration/registration-form.js +6 -5
- package/dist/components/organisms/registration/registration-machine.js +2 -2
- package/dist/components/organisms/registration/registration-response.js +6 -5
- package/dist/components/organisms/registration/registration.js +7 -6
- package/dist/components/organisms/stage/stage.js +9 -8
- package/dist/components/organisms/survey/__stories__/build-form-story.js +6 -5
- package/dist/components/organisms/survey/build-form-machine.js +2 -2
- package/dist/components/organisms/survey/build-form.js +8 -7
- package/dist/components/organisms/survey/final-form.js +8 -7
- package/dist/components/organisms/survey/question/edit/__stories__/edit-question-story.js +6 -5
- package/dist/components/organisms/survey/question/edit/add-media.js +6 -5
- package/dist/components/organisms/survey/question/edit/add-question/__stories__/add-question-story.js +6 -5
- package/dist/components/organisms/survey/question/edit/add-question/add-question.js +30 -29
- package/dist/components/organisms/survey/question/edit/answer/answer-input.js +6 -5
- package/dist/components/organisms/survey/question/edit/answer-input.js +6 -5
- package/dist/components/organisms/survey/question/edit/edit-multiple-choice.js +6 -5
- package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list-machine.js +2 -2
- package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list.js +7 -6
- package/dist/components/organisms/survey/question/edit/edit-option-list/option-input.js +6 -5
- package/dist/components/organisms/survey/question/edit/edit-option-list/option.js +7 -6
- package/dist/components/organisms/survey/question/edit/question-answer-input.js +6 -5
- package/dist/components/organisms/survey/question/take/__stories__/multiple-choice-story.js +6 -5
- package/dist/components/organisms/survey/question/take/__stories__/take-answer-date-time-input-story.js +6 -5
- package/dist/components/organisms/survey/question/take/__stories__/take-answer-input-story.js +6 -5
- package/dist/components/organisms/survey/question/take/inputs/input-manager.js +6 -5
- package/dist/components/organisms/survey/question/take/multiple-choice.js +6 -5
- package/dist/components/organisms/survey/question/take/take-answer-input.js +12 -11
- package/dist/components/organisms/tile-grid/__tests__/tile-grid.tests.js +3 -3
- package/dist/components/organisms/tile-grid/grid-row.js +6 -5
- package/dist/components/organisms/tile-grid/index.js +1 -1
- package/dist/components/organisms/tile-grid/island-tile-grid.js +12 -11
- package/dist/components/organisms/tile-grid/tile-grid.js +6 -4
- package/dist/components/organisms/worlds/area-of-effect/__stories__/area-of-affect-story.js +6 -5
- package/dist/components/organisms/worlds/area-of-effect/area-of-affect.js +31 -29
- package/dist/components/organisms/worlds/island/__stories__/island-story.js +18 -16
- package/dist/components/organisms/worlds/island/__stories__/island-util.js +25 -23
- package/dist/components/pages/home/headwinds/header/headwinds-header.js +6 -5
- package/dist/components/pages/home/headwinds/headwinds-footer.js +6 -5
- package/dist/components/pages/home/headwinds/headwinds-hero.js +6 -5
- package/dist/components/pages/home/headwinds/headwinds-sidequest.js +35 -34
- package/dist/components/pages/home/headwinds/home.js +9 -8
- package/dist/components/pages/index.js +6 -5
- package/dist/components/pages/profile/headwinds/headwinds-profile.js +21 -20
- package/dist/components/pages/profile/index.js +4 -3
- package/dist/components/templates/articles/article/article.js +6 -5
- package/dist/components/templates/home/headwinds/headwinds-home-hero.js +6 -5
- package/dist/components/templates/home/headwinds/headwinds-home.js +6 -5
- package/dist/components/templates/home/home.js +10 -9
- package/dist/fp-util-DZLSTUg5.js +8 -0
- package/dist/gold-leaf-view-CgRraK2i.js +183 -0
- package/dist/gold-leaf-view.module-p3mWnO60.js +17 -0
- package/dist/headline-DzDFQZ3e.js +11 -0
- package/dist/image-find-util-DMX6BcO-.js +1036 -0
- package/dist/index-BTF1caLu.js +2529 -0
- package/dist/{index-COQaJqs5.js → index-OdyFkztm.js} +3670 -2660
- package/dist/{index-DsigmIMS.js → index-_cvPLH70.js} +1 -1
- package/dist/index.esm-DGm91C_6.js +944 -0
- package/dist/index.js +143 -140
- package/dist/lib/components/atoms/list/index.d.ts +2 -0
- package/dist/lib/components/atoms/list/list-item/index.d.ts +2 -0
- package/dist/lib/components/atoms/list/list-item/list-item.d.ts +10 -0
- package/dist/lib/components/atoms/list/list.d.ts +12 -0
- package/dist/lib/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.d.ts +4 -0
- package/dist/lib/components/organisms/branch/branch.d.ts +3 -1
- package/dist/lib/components/organisms/branches/__stories__/branches.stories.d.ts +7 -0
- package/dist/lib/components/organisms/branches/branch-list.d.ts +4 -1
- package/dist/lib/models/TreeModel.d.ts +12 -0
- package/dist/lib/models/index.d.ts +1 -0
- package/dist/lib/utils/golds/feed-util.d.ts +17 -0
- package/dist/lib/utils/index.d.ts +5 -0
- package/dist/list.module-pjS_KHqp.js +10 -0
- package/dist/{log-2a4cc478.esm-HFv7vQ7j.js → log-2a4cc478.esm-BdzQp5f-.js} +15 -15
- package/dist/{log-error-boundary-story-BF8rmHhr.js → log-error-boundary-story-CcyM__Yt.js} +6541 -7185
- package/dist/{magic-string.es-VsGWiGpd.js → magic-string.es-QkQE39Zh.js} +11 -6
- package/dist/{radio-BTUtRmLM.js → mobile-detect-CWVWWCSg.js} +12 -51
- package/dist/models/TreeModel.js +12 -0
- package/dist/models/index.js +3 -2
- package/dist/{react-spring_web.modern-nSq5Xzxb.js → react-spring_web.modern-ClBJWBW2.js} +281 -273
- package/dist/{react.esm-BEaxtOYu.js → react.esm-BpVcViTQ.js} +2197 -2181
- package/dist/string-util-D7tmqJRS.js +35 -0
- package/dist/table-data-BnRZ5F7y.js +16 -0
- package/dist/utils/golds/feed-util.js +240 -0
- package/dist/utils/index.js +12 -0
- package/dist/{vi.YFlodzP_-CjWVzrI3.js → vi.YFlodzP_-C3qjkUdf.js} +2 -2
- package/dist/{xstate-actors.esm-Ba6reXm_.js → xstate-actors.esm-CcLF5JHw.js} +1 -1
- package/dist/{xstate-react.esm-Ct8KIFgA.js → xstate-react.esm-DWdE0_Ay.js} +1 -1
- package/dist/{xstate.esm-Bo02HSs2.js → xstate.esm-COAqQ2fq.js} +11 -11
- package/package.json +4 -2
- package/dist/Color-ERTF36HU-DRLqcX19.js +0 -358
- package/dist/_getTag-CqbPZ7Cl.js +0 -449
- package/dist/components/organisms/branches/__stories__/branches-story.js +0 -6
- package/dist/components/organisms/branches/branch-list.types.js +0 -1
- package/dist/feed-util-CZfVh6cR.js +0 -244
- package/dist/fp-util-4N0NK_eU.js +0 -8
- package/dist/gold-leaf-view-BAGw5McJ.js +0 -117
- package/dist/gold-leaf-view.module-BTNjKEeW.js +0 -17
- package/dist/headline-DuHL8hAt.js +0 -11
- package/dist/image-find-util-Cl2ZJHfC.js +0 -41
- package/dist/index-BsYJgl86.js +0 -3853
- package/dist/index-Cdg9lY68.js +0 -542
- package/dist/index.esm-BrPDxyfz.js +0 -933
- package/dist/lib/components/organisms/branches/__stories__/branches-story.d.ts +0 -2
- package/dist/lib/components/organisms/branches/branch-list.types.d.ts +0 -5
- package/dist/list-BkQjCFcb.js +0 -14
- package/dist/list-item-DyDjznkQ.js +0 -8
- package/dist/login-response-transition-Dws0eBbH.js +0 -123
- package/dist/table-data-PGM-_ef9.js +0 -16
package/dist/list-BkQjCFcb.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import { c as a } from "./clsx.m-BMVuQnLY.js";
|
|
4
|
-
const e = "_list_l7skf_1", L = "_listItem_l7skf_8", m = "_horizontalList_l7skf_17", c = "_horizontalListItem_l7skf_21", f = "_horizontalListWrap_l7skf_25", n = {
|
|
5
|
-
list: e,
|
|
6
|
-
listItem: L,
|
|
7
|
-
horizontalList: m,
|
|
8
|
-
horizontalListItem: c,
|
|
9
|
-
horizontalListWrap: f
|
|
10
|
-
}, z = ({ children: t, customClass: s = "", customStyle: i = {}, menuId: o = "menuID1", isOrdered: _ = !1, ...l }) => _ ? /* @__PURE__ */ r("ol", { ...l, className: a(n.list, s), style: i, id: o, children: t }) : /* @__PURE__ */ r("ul", { ...l, className: a(n.list, s), style: i, id: o, children: t }), k = z;
|
|
11
|
-
export {
|
|
12
|
-
k as L,
|
|
13
|
-
n as s
|
|
14
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import { s as r } from "./list-BkQjCFcb.js";
|
|
4
|
-
import { c as e } from "./clsx.m-BMVuQnLY.js";
|
|
5
|
-
const l = ({ children: s, customClass: t = "", customStyle: m = {}, ...o }) => /* @__PURE__ */ i("li", { ...o, className: e(r.listItem, t), style: m, children: s }), x = l;
|
|
6
|
-
export {
|
|
7
|
-
x as L
|
|
8
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
var d = Object.defineProperty;
|
|
2
|
-
var g = (r, t, e) => t in r ? d(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
-
var n = (r, t, e) => g(r, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
-
import { b as x, c as y, a as f } from "./react-spring_web.modern-nSq5Xzxb.js";
|
|
6
|
-
import { useState as h, useEffect as v } from "react";
|
|
7
|
-
import "./components/atoms/column/column.js";
|
|
8
|
-
import m from "./components/atoms/row/row.js";
|
|
9
|
-
import S from "./components/atoms/text/paragraph/paragraph.js";
|
|
10
|
-
import "./components/atoms/group/group.js";
|
|
11
|
-
import "./components/molecules/wrapper/wrapper.js";
|
|
12
|
-
import "./components/molecules/wallpaper/wallpaper.js";
|
|
13
|
-
import "./index-BsYJgl86.js";
|
|
14
|
-
import u from "./components/molecules/error/error.js";
|
|
15
|
-
import "./models/ActorModel.js";
|
|
16
|
-
import "./models/BookModel.js";
|
|
17
|
-
import "./models/ChapterModel.js";
|
|
18
|
-
import "./models/PlayerModel.js";
|
|
19
|
-
import "./models/EnemyModel.js";
|
|
20
|
-
import "./models/ItemModel.js";
|
|
21
|
-
import "./models/LeafModel.js";
|
|
22
|
-
import "./models/LevelModel.js";
|
|
23
|
-
import "./models/NeutralModel.js";
|
|
24
|
-
import "./models/NPCModel.js";
|
|
25
|
-
import "./models/PortholeBranchModel.js";
|
|
26
|
-
import "./models/SettingsModel.js";
|
|
27
|
-
import "./models/ShieldModel.js";
|
|
28
|
-
import "./models/TileModel.js";
|
|
29
|
-
import "./models/UserModel.js";
|
|
30
|
-
import "./models/WeaponModel.js";
|
|
31
|
-
import "./models/WorldModel.js";
|
|
32
|
-
import { s as b } from "./login.module-CqspwyQc.js";
|
|
33
|
-
import "./components/organisms/registration/registration-machine.js";
|
|
34
|
-
import "./transform-DGclBZTD.js";
|
|
35
|
-
import "./components/organisms/survey/question/edit/edit-option-list/edit-option-list-machine.js";
|
|
36
|
-
import "./index.esm-DI2C2CaF.js";
|
|
37
|
-
import "./react-masonry-css.module-CJ43viV7.js";
|
|
38
|
-
class w {
|
|
39
|
-
constructor() {
|
|
40
|
-
/**
|
|
41
|
-
* Returns a random number between min (inclusive) and max (exclusive)
|
|
42
|
-
*/
|
|
43
|
-
n(this, "reverse", function(t) {
|
|
44
|
-
return t.split("").reverse().join("");
|
|
45
|
-
});
|
|
46
|
-
n(this, "capitalize", function(t) {
|
|
47
|
-
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
48
|
-
});
|
|
49
|
-
/* some weird canvas function which is not used anywhere
|
|
50
|
-
getTextWidth = function (text, font) {
|
|
51
|
-
canvas = document.createElement('canvas');
|
|
52
|
-
var context = canvas.getContext('2d');
|
|
53
|
-
context.font = font;
|
|
54
|
-
var width = context.measureText(text).width;
|
|
55
|
-
delete canvas;
|
|
56
|
-
return width;
|
|
57
|
-
};*/
|
|
58
|
-
n(this, "replaceNumbersWithLetters", function(t) {
|
|
59
|
-
var e = t.split(""), s = "";
|
|
60
|
-
return _.each(e, function(o) {
|
|
61
|
-
String(Number(o)) !== "NaN" && (o = String.fromCharCode(Number(o) + 97)), s += o;
|
|
62
|
-
}), s;
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
const N = new w(), c = ({
|
|
67
|
-
user: r,
|
|
68
|
-
error: t
|
|
69
|
-
}) => {
|
|
70
|
-
const s = [
|
|
71
|
-
"Failed to fetch",
|
|
72
|
-
"NetworkError when attempting to fetch resource.",
|
|
73
|
-
"invalid username or password"
|
|
74
|
-
].includes(
|
|
75
|
-
t.message
|
|
76
|
-
) ? t.message : "Network error. Please try again later.";
|
|
77
|
-
if (t != null && t.message.toLowerCase().includes("Cannot read"))
|
|
78
|
-
return /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(
|
|
79
|
-
u,
|
|
80
|
-
{
|
|
81
|
-
message: "Account not found. Please try again or register.",
|
|
82
|
-
customStyle: { fontSize: 14 }
|
|
83
|
-
}
|
|
84
|
-
) });
|
|
85
|
-
if (t)
|
|
86
|
-
return /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(
|
|
87
|
-
u,
|
|
88
|
-
{
|
|
89
|
-
message: N.capitalize(s),
|
|
90
|
-
customStyle: { fontSize: 14 }
|
|
91
|
-
}
|
|
92
|
-
) });
|
|
93
|
-
if (r) {
|
|
94
|
-
const o = (r == null ? void 0 : r.username) ?? "", a = o !== "" ? `Welcome back, ${o}!` : "Welcome back!";
|
|
95
|
-
return /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(S, { customClass: b.login__response, children: a }) });
|
|
96
|
-
}
|
|
97
|
-
return null;
|
|
98
|
-
}, nt = ({
|
|
99
|
-
isAnimated: r,
|
|
100
|
-
user: t,
|
|
101
|
-
error: e
|
|
102
|
-
}) => {
|
|
103
|
-
const [s, o] = h([1]), a = x(), [l, C] = y(s, () => ({
|
|
104
|
-
ref: a,
|
|
105
|
-
from: { opacity: 0, transform: "translate3d(0px, 0px, 0px)" },
|
|
106
|
-
enter: {
|
|
107
|
-
opacity: 1,
|
|
108
|
-
transform: "translate3d(0px, 20px, 0px)",
|
|
109
|
-
delay: 500
|
|
110
|
-
},
|
|
111
|
-
leave: { opacity: 0, transform: "translate3d(0px, 0px, 0px)" }
|
|
112
|
-
}));
|
|
113
|
-
return v(() => {
|
|
114
|
-
r && (t || e ? a.start({
|
|
115
|
-
opacity: 1,
|
|
116
|
-
transform: "translate3d(0px, 20px, 0px)"
|
|
117
|
-
}) : a.start());
|
|
118
|
-
}, [r, t, e]), r && !e ? l((p) => /* @__PURE__ */ i(f.div, { style: p, children: /* @__PURE__ */ i(c, { user: t }) })) : r && e ? l((p) => /* @__PURE__ */ i(f.div, { style: p, children: /* @__PURE__ */ i(c, { error: e }) })) : /* @__PURE__ */ i(c, { user: t, error: e });
|
|
119
|
-
};
|
|
120
|
-
export {
|
|
121
|
-
nt as L,
|
|
122
|
-
N as S
|
|
123
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import { c as o } from "./clsx.m-BMVuQnLY.js";
|
|
4
|
-
const n = "_table_1rwap_1", d = "_tableRow_1rwap_7", _ = "_tableData_1rwap_12", r = "_tableDataHead_1rwap_21", s = {
|
|
5
|
-
table: n,
|
|
6
|
-
tableRow: d,
|
|
7
|
-
tableData: _,
|
|
8
|
-
tableDataHead: r
|
|
9
|
-
}, T = ({ children: a, customClass: t = "", customStyle: e = {}, ...l }) => /* @__PURE__ */ b("table", { className: o(s.table, t), style: e, ...l, children: a }), N = T, m = ({ children: a, customClass: t = "", customStyle: e = {}, ...l }) => /* @__PURE__ */ b("tbody", { className: o(s.tableBody, t), style: e, ...l, children: a }), $ = m, w = ({ children: a, customClass: t = "", customStyle: e = {}, ...l }) => /* @__PURE__ */ b("thead", { className: o(s.tableHead, t), style: e, ...l, children: a }), f = w, y = ({ children: a, customClass: t = "", customStyle: e = {}, ...l }) => /* @__PURE__ */ b("tr", { className: o(s.tableRow, t), style: e, ...l, children: a }), i = y, D = ({ isHead: a = !1, children: t, customClass: e = "", customStyle: l = {}, ...c }) => /* @__PURE__ */ b("td", { className: o(s.tableData, { [s.tableDataHead]: a }, e), style: l, ...c, children: t }), x = D;
|
|
10
|
-
export {
|
|
11
|
-
N as T,
|
|
12
|
-
$ as a,
|
|
13
|
-
f as b,
|
|
14
|
-
i as c,
|
|
15
|
-
x as d
|
|
16
|
-
};
|