@sheerid/jslib 1.116.0 → 1.118.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.
- package/es5/Tmetrix.bundle.js +5 -5
- package/es5/messages_ar.bundle.js +5 -5
- package/es5/messages_bg.bundle.js +5 -5
- package/es5/messages_cs.bundle.js +5 -5
- package/es5/messages_da.bundle.js +5 -5
- package/es5/messages_de.bundle.js +5 -5
- package/es5/messages_el.bundle.js +5 -5
- package/es5/messages_en-GB.bundle.js +5 -5
- package/es5/messages_es-ES.bundle.js +5 -5
- package/es5/messages_es.bundle.js +5 -5
- package/es5/messages_fi.bundle.js +5 -5
- package/es5/messages_fr-CA.bundle.js +5 -5
- package/es5/messages_fr.bundle.js +5 -5
- package/es5/messages_ga.bundle.js +5 -5
- package/es5/messages_hr.bundle.js +5 -5
- package/es5/messages_hu.bundle.js +5 -5
- package/es5/messages_id.bundle.js +5 -5
- package/es5/messages_it.bundle.js +5 -5
- package/es5/messages_iw.bundle.js +5 -5
- package/es5/messages_ja.bundle.js +5 -5
- package/es5/messages_ko.bundle.js +5 -5
- package/es5/messages_lo.bundle.js +5 -5
- package/es5/messages_lt.bundle.js +5 -5
- package/es5/messages_ms.bundle.js +5 -5
- package/es5/messages_nl.bundle.js +5 -5
- package/es5/messages_no.bundle.js +5 -5
- package/es5/messages_pl.bundle.js +5 -5
- package/es5/messages_pt-BR.bundle.js +5 -5
- package/es5/messages_pt.bundle.js +5 -5
- package/es5/messages_ru.bundle.js +5 -5
- package/es5/messages_sk.bundle.js +5 -5
- package/es5/messages_sl.bundle.js +5 -5
- package/es5/messages_sr.bundle.js +5 -5
- package/es5/messages_sv.bundle.js +5 -5
- package/es5/messages_th.bundle.js +5 -5
- package/es5/messages_tr.bundle.js +5 -5
- package/es5/messages_zh-HK.bundle.js +5 -5
- package/es5/messages_zh.bundle.js +5 -5
- package/es6/{ar-be8a4ea7.es.js → ar-98e99567.es.js} +5 -6
- package/es6/{cs-76972631.es.js.map → ar-98e99567.es.js.map} +1 -1
- package/es6/{bg-7d68b084.es.js → bg-702603e3.es.js} +5 -6
- package/es6/{ar-be8a4ea7.es.js.map → bg-702603e3.es.js.map} +1 -1
- package/es6/{cs-76972631.es.js → cs-a320d5e4.es.js} +445 -446
- package/es6/{da-ac1717ad.es.js.map → cs-a320d5e4.es.js.map} +1 -1
- package/es6/{da-ac1717ad.es.js → da-80c2454e.es.js} +5 -6
- package/es6/{bg-7d68b084.es.js.map → da-80c2454e.es.js.map} +1 -1
- package/es6/{de-074f4e20.es.js → de-a2581478.es.js} +352 -353
- package/es6/de-a2581478.es.js.map +1 -0
- package/es6/el-325e1941.es.js +962 -0
- package/es6/el-325e1941.es.js.map +1 -0
- package/es6/{en-GB-a9ddb9ae.es.js → en-GB-e1441ff4.es.js} +5 -6
- package/es6/{en-GB-a9ddb9ae.es.js.map → en-GB-e1441ff4.es.js.map} +1 -1
- package/es6/{es-0b85cd1e.es.js → es-698c8234.es.js} +262 -263
- package/es6/es-698c8234.es.js.map +1 -0
- package/es6/{es-ES-09a85ab4.es.js → es-ES-c34afa10.es.js} +356 -357
- package/es6/{es-ES-09a85ab4.es.js.map → es-ES-c34afa10.es.js.map} +1 -1
- package/es6/{fi-e9d2aa76.es.js → fi-fae49b12.es.js} +5 -6
- package/es6/fi-fae49b12.es.js.map +1 -0
- package/es6/{fr-CA-e6486012.es.js → fr-CA-30c34f2e.es.js} +389 -390
- package/es6/{fr-CA-e6486012.es.js.map → fr-CA-30c34f2e.es.js.map} +1 -1
- package/es6/{fr-c29171e7.es.js → fr-ff4242b1.es.js} +511 -512
- package/es6/fr-ff4242b1.es.js.map +1 -0
- package/es6/{ga-9f436ad1.es.js → ga-d0e2aa7b.es.js} +5 -6
- package/es6/ga-d0e2aa7b.es.js.map +1 -0
- package/es6/{hr-98b6b845.es.js → hr-27eaee7a.es.js} +5 -6
- package/es6/hr-27eaee7a.es.js.map +1 -0
- package/es6/{hu-c24b11a8.es.js → hu-e3664793.es.js} +5 -6
- package/es6/hu-e3664793.es.js.map +1 -0
- package/es6/{id-7f3237d0.es.js → id-213d6401.es.js} +5 -6
- package/es6/id-213d6401.es.js.map +1 -0
- package/es6/{it-ee9d3e4d.es.js → it-6826ae41.es.js} +5 -6
- package/es6/it-6826ae41.es.js.map +1 -0
- package/es6/{iw-1105c657.es.js → iw-aa79df21.es.js} +5 -6
- package/es6/iw-aa79df21.es.js.map +1 -0
- package/es6/{ja-5a7bda14.es.js → ja-7463abcc.es.js} +423 -424
- package/es6/ja-7463abcc.es.js.map +1 -0
- package/es6/{ko-293bcc87.es.js → ko-a6c7728b.es.js} +5 -6
- package/es6/ko-a6c7728b.es.js.map +1 -0
- package/es6/{lo-d4965434.es.js → lo-9170ac48.es.js} +5 -6
- package/es6/lo-9170ac48.es.js.map +1 -0
- package/es6/{lt-1dd3f6bc.es.js → lt-5ab878c1.es.js} +5 -6
- package/es6/lt-5ab878c1.es.js.map +1 -0
- package/es6/{ms-a2b49f0e.es.js → ms-8029472e.es.js} +5 -6
- package/es6/ms-8029472e.es.js.map +1 -0
- package/es6/{nl-1c1caaa7.es.js → nl-577f06ab.es.js} +5 -6
- package/es6/nl-577f06ab.es.js.map +1 -0
- package/es6/{no-6b809f77.es.js → no-2cbcceb9.es.js} +5 -6
- package/es6/no-2cbcceb9.es.js.map +1 -0
- package/es6/pl-54311695.es.js +962 -0
- package/es6/pl-54311695.es.js.map +1 -0
- package/es6/{pt-6940ccd4.es.js → pt-279ac8bf.es.js} +453 -454
- package/es6/pt-279ac8bf.es.js.map +1 -0
- package/es6/{pt-BR-fd0de0f9.es.js → pt-BR-a0ceb834.es.js} +350 -351
- package/es6/{pt-BR-fd0de0f9.es.js.map → pt-BR-a0ceb834.es.js.map} +1 -1
- package/es6/{ru-5a707928.es.js → ru-a8b852f4.es.js} +5 -6
- package/es6/ru-a8b852f4.es.js.map +1 -0
- package/es6/{sk-89ce05be.es.js → sk-ec9866bc.es.js} +5 -6
- package/es6/sk-ec9866bc.es.js.map +1 -0
- package/es6/{sl-31c230c2.es.js → sl-de83f81c.es.js} +5 -6
- package/es6/sl-de83f81c.es.js.map +1 -0
- package/es6/{sr-b7ed8dda.es.js → sr-eddec6ba.es.js} +5 -6
- package/es6/sr-eddec6ba.es.js.map +1 -0
- package/es6/{sv-62e472d2.es.js → sv-4573019f.es.js} +5 -6
- package/es6/sv-4573019f.es.js.map +1 -0
- package/es6/{th-4b41f086.es.js → th-359b065f.es.js} +5 -6
- package/es6/th-359b065f.es.js.map +1 -0
- package/es6/{tr-57f74930.es.js → tr-3b0f2171.es.js} +317 -318
- package/es6/tr-3b0f2171.es.js.map +1 -0
- package/es6/{zh-077bb71f.es.js → zh-56631a55.es.js} +490 -491
- package/es6/zh-56631a55.es.js.map +1 -0
- package/es6/{zh-HK-f0861267.es.js → zh-HK-c1588b0f.es.js} +5 -6
- package/es6/zh-HK-c1588b0f.es.js.map +1 -0
- package/localized-messages/ar.json +5 -6
- package/localized-messages/bg.json +5 -6
- package/localized-messages/cs.json +445 -446
- package/localized-messages/da.json +5 -6
- package/localized-messages/de.json +352 -353
- package/localized-messages/el.json +528 -529
- package/localized-messages/en-GB.json +5 -6
- package/localized-messages/en-US.json +1 -2
- package/localized-messages/es-ES.json +356 -357
- package/localized-messages/es.json +262 -263
- package/localized-messages/fi.json +5 -6
- package/localized-messages/fr-CA.json +389 -390
- package/localized-messages/fr.json +511 -512
- package/localized-messages/ga.json +5 -6
- package/localized-messages/hr.json +5 -6
- package/localized-messages/hu.json +5 -6
- package/localized-messages/id.json +5 -6
- package/localized-messages/in.json +1 -1
- package/localized-messages/it.json +5 -6
- package/localized-messages/iw.json +5 -6
- package/localized-messages/ja.json +423 -424
- package/localized-messages/ko.json +5 -6
- package/localized-messages/lo.json +5 -6
- package/localized-messages/lt.json +5 -6
- package/localized-messages/ms.json +5 -6
- package/localized-messages/nl.json +5 -6
- package/localized-messages/no.json +5 -6
- package/localized-messages/pl.json +843 -844
- package/localized-messages/pt-BR.json +350 -351
- package/localized-messages/pt.json +453 -454
- package/localized-messages/ru.json +5 -6
- package/localized-messages/sk.json +5 -6
- package/localized-messages/sl.json +5 -6
- package/localized-messages/sr.json +5 -6
- package/localized-messages/sv.json +5 -6
- package/localized-messages/th.json +5 -6
- package/localized-messages/tr.json +317 -318
- package/localized-messages/zh-HK.json +5 -6
- package/localized-messages/zh.json +490 -491
- package/manifest.json +48 -48
- package/package.json +1 -2
- package/sheerid-requestOrg.css +5 -5
- package/sheerid-requestOrg.css.map +1 -1
- package/sheerid-requestOrg.js +14 -14
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +9 -9
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +5 -5
- package/sheerid.css.map +1 -1
- package/sheerid.js +18 -18
- package/sheerid.js.map +1 -1
- package/sheerides6.js +73 -1643
- package/sheerides6.js.map +1 -1
- package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +0 -1
- package/src/components/CustomCssWrapperComponent.d.ts +0 -1
- package/src/components/CustomTextWrapper.d.ts +0 -1
- package/src/components/ExtraMessage.d.ts +0 -1
- package/src/components/FaqLink/FaqLinkComponent.d.ts +0 -1
- package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +0 -1
- package/src/components/FormFields/OptIn/OptInComponent.d.ts +0 -1
- package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +0 -1
- package/src/components/FormFooter/FormFooterComponent.d.ts +0 -1
- package/src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.d.ts +0 -1
- package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +0 -1
- package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +0 -1
- package/src/components/FormInputs/OptInInput/OptInInputComponent.d.ts +0 -1
- package/src/components/FormInputs/Select/SelectButton/SelectButtonComponent.d.ts +0 -1
- package/src/components/FormInputs/Select/SelectComponent.d.ts +0 -1
- package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +0 -1
- package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +0 -1
- package/src/components/FormWrapper/FormWrapperComponent.d.ts +0 -1
- package/src/components/LoadStepComponent.d.ts +0 -1
- package/src/components/LoadingSpinner/LoadingSpinnerComponent.d.ts +0 -1
- package/src/components/LogoComponent/LogoComponent.d.ts +0 -1
- package/src/components/NewVerificationInnerComponent.d.ts +0 -1
- package/src/components/PoweredBy/PoweredByComponent.d.ts +0 -1
- package/src/components/RequestOrganization/NewRequestOrganizationComponent.d.ts +0 -1
- package/src/components/RequestOrganization/NewRequestOrganizationInnerComponent.d.ts +0 -1
- package/src/components/RequestOrganization/OrganizationResultComponent.d.ts +0 -1
- package/src/components/RequestOrganization/RequestOrganizationErrorComponent.d.ts +0 -1
- package/src/components/RequestOrganization/RequestOrganizationFormComponent.d.ts +0 -1
- package/src/components/RequestOrganization/RequestOrganizationFormFooterComponent.d.ts +0 -1
- package/src/components/RequestOrganization/RequestOrganizationLoadStepComponent.d.ts +0 -1
- package/src/components/RequestOrganization/RequestOrganizationSuccessComponent.d.ts +0 -1
- package/src/components/RequestOrganization/SearchFieldComponent.d.ts +0 -1
- package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +0 -1
- package/src/components/ScreenReaderLabelComponent.d.ts +0 -1
- package/src/components/StepConsolation/StepConsolationComponent.d.ts +0 -1
- package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +0 -1
- package/src/components/StepMilitaryPersonalInfo/StepCollectMilitaryStatusComponent.d.ts +0 -1
- package/src/components/StepPending/ReviewPendingComponent.d.ts +0 -1
- package/src/components/StepPending/SSOPendingComponent.d.ts +0 -1
- package/src/components/StepSSO/StepSSOComponent.d.ts +0 -1
- package/src/components/StepSocialSecurityNumber/SsnChoice.d.ts +0 -1
- package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +0 -1
- package/src/components/StepSuccess/StepSuccessComponent.d.ts +0 -1
- package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +0 -1
- package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +0 -1
- package/src/components/TryAgainButtonComponent.d.ts +0 -1
- package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +0 -1
- package/src/constants.d.ts +0 -10
- package/src/lib/types/runtimeTypes.d.ts +2 -1
- package/src/lib/types/types.d.ts +5 -3
- package/src/lib/utils/customTagReplacer/index.d.ts +0 -1
- package/types-reference.zip +0 -0
- package/es6/de-074f4e20.es.js.map +0 -1
- package/es6/el-3f65cd3e.es.js +0 -963
- package/es6/el-3f65cd3e.es.js.map +0 -1
- package/es6/es-0b85cd1e.es.js.map +0 -1
- package/es6/fi-e9d2aa76.es.js.map +0 -1
- package/es6/fr-c29171e7.es.js.map +0 -1
- package/es6/ga-9f436ad1.es.js.map +0 -1
- package/es6/hr-98b6b845.es.js.map +0 -1
- package/es6/hu-c24b11a8.es.js.map +0 -1
- package/es6/id-7f3237d0.es.js.map +0 -1
- package/es6/it-ee9d3e4d.es.js.map +0 -1
- package/es6/iw-1105c657.es.js.map +0 -1
- package/es6/ja-5a7bda14.es.js.map +0 -1
- package/es6/ko-293bcc87.es.js.map +0 -1
- package/es6/lo-d4965434.es.js.map +0 -1
- package/es6/lt-1dd3f6bc.es.js.map +0 -1
- package/es6/ms-a2b49f0e.es.js.map +0 -1
- package/es6/nl-1c1caaa7.es.js.map +0 -1
- package/es6/no-6b809f77.es.js.map +0 -1
- package/es6/pl-d19254aa.es.js +0 -963
- package/es6/pl-d19254aa.es.js.map +0 -1
- package/es6/pt-6940ccd4.es.js.map +0 -1
- package/es6/ru-5a707928.es.js.map +0 -1
- package/es6/sk-89ce05be.es.js.map +0 -1
- package/es6/sl-31c230c2.es.js.map +0 -1
- package/es6/sr-b7ed8dda.es.js.map +0 -1
- package/es6/sv-62e472d2.es.js.map +0 -1
- package/es6/th-4b41f086.es.js.map +0 -1
- package/es6/tr-57f74930.es.js.map +0 -1
- package/es6/zh-077bb71f.es.js.map +0 -1
- package/es6/zh-HK-f0861267.es.js.map +0 -1
- package/src/components/FeatureFlags/flags.d.ts +0 -14
- package/src/components/FeatureFlags/hooks.d.ts +0 -3
package/sheerides6.js
CHANGED
|
@@ -13,10 +13,6 @@ function createCommonjsModule(fn, module) {
|
|
|
13
13
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
function getCjsExportFromNamespace (n) {
|
|
17
|
-
return n && n['default'] || n;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
16
|
var clone_1 = createCommonjsModule(function (module) {
|
|
21
17
|
var clone = (function() {
|
|
22
18
|
|
|
@@ -474,7 +470,6 @@ const Locales = [
|
|
|
474
470
|
"hr",
|
|
475
471
|
"hu",
|
|
476
472
|
"id",
|
|
477
|
-
"in",
|
|
478
473
|
"it",
|
|
479
474
|
"iw",
|
|
480
475
|
"ja",
|
|
@@ -683,6 +678,7 @@ var HookNameEnum;
|
|
|
683
678
|
HookNameEnum["ON_VERIFICATION_READY"] = "ON_VERIFICATION_READY";
|
|
684
679
|
HookNameEnum["ON_VERIFICATION_SUCCESS"] = "ON_VERIFICATION_SUCCESS";
|
|
685
680
|
HookNameEnum["ON_VERIFICATION_STEP_CHANGE"] = "ON_VERIFICATION_STEP_CHANGE";
|
|
681
|
+
HookNameEnum["ON_FORM_LOCALE_CHANGE"] = "ON_FORM_LOCALE_CHANGE";
|
|
686
682
|
})(HookNameEnum || (HookNameEnum = {}));
|
|
687
683
|
const HookNames = Object.values(HookNameEnum);
|
|
688
684
|
/**
|
|
@@ -1564,7 +1560,7 @@ const getSheerIdScriptBasePath = () => {
|
|
|
1564
1560
|
};
|
|
1565
1561
|
|
|
1566
1562
|
const country = "country";
|
|
1567
|
-
const name
|
|
1563
|
+
const name = "name";
|
|
1568
1564
|
async function fetchProgramOrganizations(orgSearchUrl, searchTerm, countryCode, searchTags) {
|
|
1569
1565
|
if (!orgSearchUrl) {
|
|
1570
1566
|
return Promise.resolve([]);
|
|
@@ -1572,7 +1568,7 @@ async function fetchProgramOrganizations(orgSearchUrl, searchTerm, countryCode,
|
|
|
1572
1568
|
const searchUrl = new URL(orgSearchUrl);
|
|
1573
1569
|
const { origin, pathname, search } = searchUrl;
|
|
1574
1570
|
const searchParams = new URLSearchParams(search);
|
|
1575
|
-
searchParams.set(name
|
|
1571
|
+
searchParams.set(name, searchTerm);
|
|
1576
1572
|
if (countryCode) {
|
|
1577
1573
|
searchParams.set(country, countryCode);
|
|
1578
1574
|
}
|
|
@@ -2211,7 +2207,6 @@ var enUSMessages = {
|
|
|
2211
2207
|
"defaultMessages.locales.hr": "Croatian",
|
|
2212
2208
|
"defaultMessages.locales.hu": "Hungarian",
|
|
2213
2209
|
"defaultMessages.locales.id": "Indonesian",
|
|
2214
|
-
"defaultMessages.locales.in": "Indonesian",
|
|
2215
2210
|
"defaultMessages.locales.it": "Italian",
|
|
2216
2211
|
"defaultMessages.locales.iw": "Hebrew",
|
|
2217
2212
|
"defaultMessages.locales.ja": "Japanese",
|
|
@@ -2790,158 +2785,154 @@ const getMessagesModuleByLocale = async (locale) => {
|
|
|
2790
2785
|
switch (locale) {
|
|
2791
2786
|
case "ar":
|
|
2792
2787
|
localizedMessages = await import(
|
|
2793
|
-
/* webpackChunkName: "messages_ar" */ './es6/ar-
|
|
2788
|
+
/* webpackChunkName: "messages_ar" */ './es6/ar-98e99567.es.js').then((m) => m.default);
|
|
2794
2789
|
break;
|
|
2795
2790
|
case "bg":
|
|
2796
2791
|
localizedMessages = await import(
|
|
2797
|
-
/* webpackChunkName: "messages_bg" */ './es6/bg-
|
|
2792
|
+
/* webpackChunkName: "messages_bg" */ './es6/bg-702603e3.es.js').then((m) => m.default);
|
|
2798
2793
|
break;
|
|
2799
2794
|
case "cs":
|
|
2800
2795
|
localizedMessages = await import(
|
|
2801
|
-
/* webpackChunkName: "messages_cs" */ './es6/cs-
|
|
2796
|
+
/* webpackChunkName: "messages_cs" */ './es6/cs-a320d5e4.es.js').then((m) => m.default);
|
|
2802
2797
|
break;
|
|
2803
2798
|
case "da":
|
|
2804
2799
|
localizedMessages = await import(
|
|
2805
|
-
/* webpackChunkName: "messages_da" */ './es6/da-
|
|
2800
|
+
/* webpackChunkName: "messages_da" */ './es6/da-80c2454e.es.js').then((m) => m.default);
|
|
2806
2801
|
break;
|
|
2807
2802
|
case "de":
|
|
2808
2803
|
localizedMessages = await import(
|
|
2809
|
-
/* webpackChunkName: "messages_de" */ './es6/de-
|
|
2804
|
+
/* webpackChunkName: "messages_de" */ './es6/de-a2581478.es.js').then((m) => m.default);
|
|
2810
2805
|
break;
|
|
2811
2806
|
case "el":
|
|
2812
2807
|
localizedMessages = await import(
|
|
2813
|
-
/* webpackChunkName: "messages_el" */ './es6/el-
|
|
2808
|
+
/* webpackChunkName: "messages_el" */ './es6/el-325e1941.es.js').then((m) => m.default);
|
|
2814
2809
|
break;
|
|
2815
2810
|
case "en-GB":
|
|
2816
2811
|
localizedMessages = await import(
|
|
2817
|
-
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-
|
|
2812
|
+
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-e1441ff4.es.js').then((m) => m.default);
|
|
2818
2813
|
break;
|
|
2819
2814
|
case "en-US":
|
|
2820
2815
|
localizedMessages = enUSMessages;
|
|
2821
2816
|
break;
|
|
2822
2817
|
case "es-ES":
|
|
2823
2818
|
localizedMessages = await import(
|
|
2824
|
-
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-
|
|
2819
|
+
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-c34afa10.es.js').then((m) => m.default);
|
|
2825
2820
|
break;
|
|
2826
2821
|
case "es":
|
|
2827
2822
|
localizedMessages = await import(
|
|
2828
|
-
/* webpackChunkName: "messages_es" */ './es6/es-
|
|
2823
|
+
/* webpackChunkName: "messages_es" */ './es6/es-698c8234.es.js').then((m) => m.default);
|
|
2829
2824
|
break;
|
|
2830
2825
|
case "fi":
|
|
2831
2826
|
localizedMessages = await import(
|
|
2832
|
-
/* webpackChunkName: "messages_fi" */ './es6/fi-
|
|
2827
|
+
/* webpackChunkName: "messages_fi" */ './es6/fi-fae49b12.es.js').then((m) => m.default);
|
|
2833
2828
|
break;
|
|
2834
2829
|
case "fr-CA":
|
|
2835
2830
|
localizedMessages = await import(
|
|
2836
|
-
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-
|
|
2831
|
+
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-30c34f2e.es.js').then((m) => m.default);
|
|
2837
2832
|
break;
|
|
2838
2833
|
case "fr":
|
|
2839
2834
|
localizedMessages = await import(
|
|
2840
|
-
/* webpackChunkName: "messages_fr" */ './es6/fr-
|
|
2835
|
+
/* webpackChunkName: "messages_fr" */ './es6/fr-ff4242b1.es.js').then((m) => m.default);
|
|
2841
2836
|
break;
|
|
2842
2837
|
case "ga":
|
|
2843
2838
|
localizedMessages = await import(
|
|
2844
|
-
/* webpackChunkName: "messages_ga" */ './es6/ga-
|
|
2839
|
+
/* webpackChunkName: "messages_ga" */ './es6/ga-d0e2aa7b.es.js').then((m) => m.default);
|
|
2845
2840
|
break;
|
|
2846
2841
|
case "hr":
|
|
2847
2842
|
localizedMessages = await import(
|
|
2848
|
-
/* webpackChunkName: "messages_hr" */ './es6/hr-
|
|
2843
|
+
/* webpackChunkName: "messages_hr" */ './es6/hr-27eaee7a.es.js').then((m) => m.default);
|
|
2849
2844
|
break;
|
|
2850
2845
|
case "hu":
|
|
2851
2846
|
localizedMessages = await import(
|
|
2852
|
-
/* webpackChunkName: "messages_hu" */ './es6/hu-
|
|
2847
|
+
/* webpackChunkName: "messages_hu" */ './es6/hu-e3664793.es.js').then((m) => m.default);
|
|
2853
2848
|
break;
|
|
2854
2849
|
case "id":
|
|
2855
2850
|
localizedMessages = await import(
|
|
2856
|
-
/* webpackChunkName: "messages_id" */ './es6/id-
|
|
2857
|
-
break;
|
|
2858
|
-
case "in":
|
|
2859
|
-
localizedMessages = await import(
|
|
2860
|
-
/* webpackChunkName: "messages_in" */ './es6/id-7f3237d0.es.js').then((m) => m.default);
|
|
2851
|
+
/* webpackChunkName: "messages_id" */ './es6/id-213d6401.es.js').then((m) => m.default);
|
|
2861
2852
|
break;
|
|
2862
2853
|
case "it":
|
|
2863
2854
|
localizedMessages = await import(
|
|
2864
|
-
/* webpackChunkName: "messages_it" */ './es6/it-
|
|
2855
|
+
/* webpackChunkName: "messages_it" */ './es6/it-6826ae41.es.js').then((m) => m.default);
|
|
2865
2856
|
break;
|
|
2866
2857
|
case "iw":
|
|
2867
2858
|
localizedMessages = await import(
|
|
2868
|
-
/* webpackChunkName: "messages_iw" */ './es6/iw-
|
|
2859
|
+
/* webpackChunkName: "messages_iw" */ './es6/iw-aa79df21.es.js').then((m) => m.default);
|
|
2869
2860
|
break;
|
|
2870
2861
|
case "ja":
|
|
2871
2862
|
localizedMessages = await import(
|
|
2872
|
-
/* webpackChunkName: "messages_ja" */ './es6/ja-
|
|
2863
|
+
/* webpackChunkName: "messages_ja" */ './es6/ja-7463abcc.es.js').then((m) => m.default);
|
|
2873
2864
|
break;
|
|
2874
2865
|
case "ko":
|
|
2875
2866
|
localizedMessages = await import(
|
|
2876
|
-
/* webpackChunkName: "messages_ko" */ './es6/ko-
|
|
2867
|
+
/* webpackChunkName: "messages_ko" */ './es6/ko-a6c7728b.es.js').then((m) => m.default);
|
|
2877
2868
|
break;
|
|
2878
2869
|
case "lo":
|
|
2879
2870
|
localizedMessages = await import(
|
|
2880
|
-
/* webpackChunkName: "messages_lo" */ './es6/lo-
|
|
2871
|
+
/* webpackChunkName: "messages_lo" */ './es6/lo-9170ac48.es.js').then((m) => m.default);
|
|
2881
2872
|
break;
|
|
2882
2873
|
case "lt":
|
|
2883
2874
|
localizedMessages = await import(
|
|
2884
|
-
/* webpackChunkName: "messages_lt" */ './es6/lt-
|
|
2875
|
+
/* webpackChunkName: "messages_lt" */ './es6/lt-5ab878c1.es.js').then((m) => m.default);
|
|
2885
2876
|
break;
|
|
2886
2877
|
case "ms":
|
|
2887
2878
|
localizedMessages = await import(
|
|
2888
|
-
/* webpackChunkName: "messages_ms" */ './es6/ms-
|
|
2879
|
+
/* webpackChunkName: "messages_ms" */ './es6/ms-8029472e.es.js').then((m) => m.default);
|
|
2889
2880
|
break;
|
|
2890
2881
|
case "nl":
|
|
2891
2882
|
localizedMessages = await import(
|
|
2892
|
-
/* webpackChunkName: "messages_nl" */ './es6/nl-
|
|
2883
|
+
/* webpackChunkName: "messages_nl" */ './es6/nl-577f06ab.es.js').then((m) => m.default);
|
|
2893
2884
|
break;
|
|
2894
2885
|
case "no":
|
|
2895
2886
|
localizedMessages = await import(
|
|
2896
|
-
/* webpackChunkName: "messages_no" */ './es6/no-
|
|
2887
|
+
/* webpackChunkName: "messages_no" */ './es6/no-2cbcceb9.es.js').then((m) => m.default);
|
|
2897
2888
|
break;
|
|
2898
2889
|
case "pl":
|
|
2899
2890
|
localizedMessages = await import(
|
|
2900
|
-
/* webpackChunkName: "messages_pl" */ './es6/pl-
|
|
2891
|
+
/* webpackChunkName: "messages_pl" */ './es6/pl-54311695.es.js').then((m) => m.default);
|
|
2901
2892
|
break;
|
|
2902
2893
|
case "pt-BR":
|
|
2903
2894
|
localizedMessages = await import(
|
|
2904
|
-
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-
|
|
2895
|
+
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-a0ceb834.es.js').then((m) => m.default);
|
|
2905
2896
|
break;
|
|
2906
2897
|
case "pt":
|
|
2907
2898
|
localizedMessages = await import(
|
|
2908
|
-
/* webpackChunkName: "messages_pt" */ './es6/pt-
|
|
2899
|
+
/* webpackChunkName: "messages_pt" */ './es6/pt-279ac8bf.es.js').then((m) => m.default);
|
|
2909
2900
|
break;
|
|
2910
2901
|
case "ru":
|
|
2911
2902
|
localizedMessages = await import(
|
|
2912
|
-
/* webpackChunkName: "messages_ru" */ './es6/ru-
|
|
2903
|
+
/* webpackChunkName: "messages_ru" */ './es6/ru-a8b852f4.es.js').then((m) => m.default);
|
|
2913
2904
|
break;
|
|
2914
2905
|
case "sk":
|
|
2915
2906
|
localizedMessages = await import(
|
|
2916
|
-
/* webpackChunkName: "messages_sk" */ './es6/sk-
|
|
2907
|
+
/* webpackChunkName: "messages_sk" */ './es6/sk-ec9866bc.es.js').then((m) => m.default);
|
|
2917
2908
|
break;
|
|
2918
2909
|
case "sl":
|
|
2919
2910
|
localizedMessages = await import(
|
|
2920
|
-
/* webpackChunkName: "messages_sl" */ './es6/sl-
|
|
2911
|
+
/* webpackChunkName: "messages_sl" */ './es6/sl-de83f81c.es.js').then((m) => m.default);
|
|
2921
2912
|
break;
|
|
2922
2913
|
case "sr":
|
|
2923
2914
|
localizedMessages = await import(
|
|
2924
|
-
/* webpackChunkName: "messages_sr" */ './es6/sr-
|
|
2915
|
+
/* webpackChunkName: "messages_sr" */ './es6/sr-eddec6ba.es.js').then((m) => m.default);
|
|
2925
2916
|
break;
|
|
2926
2917
|
case "sv":
|
|
2927
2918
|
localizedMessages = await import(
|
|
2928
|
-
/* webpackChunkName: "messages_sv" */ './es6/sv-
|
|
2919
|
+
/* webpackChunkName: "messages_sv" */ './es6/sv-4573019f.es.js').then((m) => m.default);
|
|
2929
2920
|
break;
|
|
2930
2921
|
case "th":
|
|
2931
2922
|
localizedMessages = await import(
|
|
2932
|
-
/* webpackChunkName: "messages_th" */ './es6/th-
|
|
2923
|
+
/* webpackChunkName: "messages_th" */ './es6/th-359b065f.es.js').then((m) => m.default);
|
|
2933
2924
|
break;
|
|
2934
2925
|
case "tr":
|
|
2935
2926
|
localizedMessages = await import(
|
|
2936
|
-
/* webpackChunkName: "messages_tr" */ './es6/tr-
|
|
2927
|
+
/* webpackChunkName: "messages_tr" */ './es6/tr-3b0f2171.es.js').then((m) => m.default);
|
|
2937
2928
|
break;
|
|
2938
2929
|
case "zh-HK":
|
|
2939
2930
|
localizedMessages = await import(
|
|
2940
|
-
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-
|
|
2931
|
+
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-c1588b0f.es.js').then((m) => m.default);
|
|
2941
2932
|
break;
|
|
2942
2933
|
case "zh":
|
|
2943
2934
|
localizedMessages = await import(
|
|
2944
|
-
/* webpackChunkName: "messages_zh" */ './es6/zh-
|
|
2935
|
+
/* webpackChunkName: "messages_zh" */ './es6/zh-56631a55.es.js').then((m) => m.default);
|
|
2945
2936
|
break;
|
|
2946
2937
|
default:
|
|
2947
2938
|
logger.warn(`getMessagesModuleByLocale: Unable to load messages for ${locale}, falling back to en-US`);
|
|
@@ -3746,7 +3737,7 @@ const getEmptyRequestOrganizationViewModel = () => {
|
|
|
3746
3737
|
return requestOrganizationEmptyClone;
|
|
3747
3738
|
};
|
|
3748
3739
|
|
|
3749
|
-
function n$6(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];if("production"!==process.env.NODE_ENV){var i=Y$1[n],o=i?"function"==typeof i?i.apply(null,r):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t$5(n){return !!n&&!!n[Q$1]}function r$6(n){return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var t=Object.getPrototypeOf(n);if(null===t)return !0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Z$1}(n)||Array.isArray(n)||!!n[L$1]||!!n.constructor[L$1]||s$1(n)||v$5(n))}function i$1(n,t,r){void 0===r&&(r=!1),0===o$1(n)?(r?Object.keys:nn)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n);})):n.forEach((function(r,e){return t(e,r,n)}));}function o$1(n){var t=n[Q$1];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:s$1(n)?2:v$5(n)?3:0}function u$2(n,t){return 2===o$1(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function a$1(n,t){return 2===o$1(n)?n.get(t):n[t]}function f$5(n,t,r){var e=o$1(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r;}function c$5(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function s$1(n){return X$1&&n instanceof Map}function v$5(n){return q$5&&n instanceof Set}function p$5(n){return n.o||n.t}function l$5(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=tn(n);delete t[Q$1];for(var r=nn(t),e=0;e<r.length;e++){var i=r[e],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),t)}function d$5(n,e){return void 0===e&&(e=!1),y$5(n)||t$5(n)||!r$6(n)?n:(o$1(n)>1&&(n.set=n.add=n.clear=n.delete=h$5),Object.freeze(n),e&&i$1(n,(function(n,t){return d$5(t,!0)}),!0),n)}function h$5(){n$6(2);}function y$5(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b$5(t){var r=rn[t];return r||n$6(18,t),r}function m$5(n,t){rn[n]||(rn[n]=t);}function _$1(){return "production"===process.env.NODE_ENV||U$1||n$6(0),U$1}function j$1(n,t){t&&(b$5("Patches"),n.u=[],n.s=[],n.v=t);}function O$1(n){g$5(n),n.p.forEach(S$1),n.p=null;}function g$5(n){n===U$1&&(U$1=n.l);}function w$5(n){return U$1={p:[],l:U$1,h:n,m:!0,_:0}}function S$1(n){var t=n[Q$1];0===t.i||1===t.i?t.j():t.O=!0;}function P$1(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||b$5("ES5").S(e,t,o),o?(i[Q$1].P&&(O$1(e),n$6(4)),r$6(t)&&(t=M$1(e,t),e.l||x$5(e,t)),e.u&&b$5("Patches").M(i[Q$1],t,e.u,e.s)):t=M$1(e,i,[]),O$1(e),e.u&&e.v(e.u,e.s),t!==H$2?t:void 0}function M$1(n,t,r){if(y$5(t))return t;var e=t[Q$1];if(!e)return i$1(t,(function(i,o){return A$5(n,e,t,i,o,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x$5(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l$5(e.k):e.o;i$1(3===e.i?new Set(o):o,(function(t,i){return A$5(n,e,o,t,i,r)})),x$5(n,o,!1),r&&n.u&&b$5("Patches").R(e,r,n.u,n.s);}return e.o}function A$5(e,i,o,a,c,s){if("production"!==process.env.NODE_ENV&&c===o&&n$6(5),t$5(c)){var v=M$1(e,c,s&&i&&3!==i.i&&!u$2(i.D,a)?s.concat(a):void 0);if(f$5(o,a,v),!t$5(v))return;e.m=!1;}if(r$6(c)&&!y$5(c)){if(!e.h.F&&e._<1)return;M$1(e,c),i&&i.A.l||x$5(e,c);}}function x$5(n,t,r){void 0===r&&(r=!1),n.h.F&&n.m&&d$5(t,r);}function z$5(n,t){var r=n[Q$1];return (r?p$5(r):n)[t]}function I$2(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r);}}function k$5(n){n.P||(n.P=!0,n.l&&k$5(n.l));}function E$2(n){n.o||(n.o=l$5(n.t));}function R$1(n,t,r){var e=s$1(t)?b$5("MapSet").N(t,r):v$5(t)?b$5("MapSet").T(t,r):n.g?function(n,t){var r=Array.isArray(n),e={i:r?1:0,A:t?t.A:_$1(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;r&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(t,r):b$5("ES5").J(t,r);return (r?r.A:_$1()).p.push(e),e}function D$2(e){return t$5(e)||n$6(22,e),function n(t){if(!r$6(t))return t;var e,u=t[Q$1],c=o$1(t);if(u){if(!u.P&&(u.i<4||!b$5("ES5").K(u)))return u.t;u.I=!0,e=F$2(t,c),u.I=!1;}else e=F$2(t,c);return i$1(e,(function(t,r){u&&a$1(u.t,t)===r||f$5(e,t,n(r));})),3===c?new Set(e):e}(e)}function F$2(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return l$5(n)}function N$1(){function r(n,t){var r=s[n];return r?r.enumerable=t:s[n]=r={configurable:!0,enumerable:t,get:function(){var t=this[Q$1];return "production"!==process.env.NODE_ENV&&f(t),en.get(t,n)},set:function(t){var r=this[Q$1];"production"!==process.env.NODE_ENV&&f(r),en.set(r,n,t);}},r}function e(n){for(var t=n.length-1;t>=0;t--){var r=n[t][Q$1];if(!r.P)switch(r.i){case 5:a(r)&&k$5(r);break;case 4:o(r)&&k$5(r);}}}function o(n){for(var t=n.t,r=n.k,e=nn(r),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q$1){var a=t[o];if(void 0===a&&!u$2(t,o))return !0;var f=r[o],s=f&&f[Q$1];if(s?s.t!==a:!c$5(f,a))return !0}}var v=!!t[Q$1];return e.length!==nn(t).length+(v?0:1)}function a(n){var t=n.k;if(t.length!==n.t.length)return !0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return !(!r||r.get)}function f(t){t.O&&n$6(3,JSON.stringify(p$5(t)));}var s={};m$5("ES5",{J:function(n,t){var e=Array.isArray(n),i=function(n,t){if(n){for(var e=Array(t.length),i=0;i<t.length;i++)Object.defineProperty(e,""+i,r(i,!0));return e}var o=tn(t);delete o[Q$1];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=r(f,n||!!o[f].enumerable);}return Object.create(Object.getPrototypeOf(t),o)}(e,n),o={i:e?5:4,A:t?t.A:_$1(),P:!1,I:!1,D:{},l:t,t:n,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Q$1,{value:o,writable:!0}),i},S:function(n,r,o){o?t$5(r)&&r[Q$1].A===n&&e(n.p):(n.u&&function n(t){if(t&&"object"==typeof t){var r=t[Q$1];if(r){var e=r.t,o=r.k,f=r.D,c=r.i;if(4===c)i$1(o,(function(t){t!==Q$1&&(void 0!==e[t]||u$2(e,t)?f[t]||n(o[t]):(f[t]=!0,k$5(r)));})),i$1(e,(function(n){void 0!==o[n]||u$2(o,n)||(f[n]=!1,k$5(r));}));else if(5===c){if(a(r)&&(k$5(r),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)void 0===f[l]&&n(o[l]);}}}}(n.p[0]),e(n.p));},K:function(n){return 4===n.i?o(n):a(n)}});}var G$2,U$1,W$1="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X$1="undefined"!=typeof Map,q$5="undefined"!=typeof Set,B$2="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H$2=W$1?Symbol.for("immer-nothing"):((G$2={})["immer-nothing"]=!0,G$2),L$1=W$1?Symbol.for("immer-draftable"):"__$immer_draftable",Q$1=W$1?Symbol.for("immer-state"):"__$immer_state",Y$1={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z$1=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,tn=Object.getOwnPropertyDescriptors||function(n){var t={};return nn(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r);})),t},rn={},en={get:function(n,t){if(t===Q$1)return n;var e=p$5(n);if(!u$2(e,t))return function(n,t,r){var e,i=I$2(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.I||!r$6(i)?i:i===z$5(n.t,t)?(E$2(n),n.o[t]=R$1(n.A.h,i,n)):i},has:function(n,t){return t in p$5(n)},ownKeys:function(n){return Reflect.ownKeys(p$5(n))},set:function(n,t,r){var e=I$2(p$5(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(!n.P){var i=z$5(p$5(n),t),o=null==i?void 0:i[Q$1];if(o&&o.t===r)return n.o[t]=r,n.D[t]=!1,!0;if(c$5(r,i)&&(void 0!==r||u$2(n.t,t)))return !0;E$2(n),k$5(n);}return n.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in n.o)||(n.o[t]=r,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==z$5(n.t,t)||t in n.t?(n.D[t]=!1,E$2(n),k$5(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=p$5(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n$6(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n$6(12);}},on={};i$1(en,(function(n,t){on[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)};})),on.deleteProperty=function(t,r){return "production"!==process.env.NODE_ENV&&isNaN(parseInt(r))&&n$6(13),en.deleteProperty.call(this,t[0],r)},on.set=function(t,r,e){return "production"!==process.env.NODE_ENV&&"length"!==r&&isNaN(parseInt(r))&&n$6(14),en.set.call(this,t[0],r,e,t[0])};var un=function(){function e(t){var e=this;this.g=B$2,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var u=i;i=t;var a=e;return function(n){var t=this;void 0===n&&(n=u);for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var r;return (r=i).call.apply(r,[t,n].concat(e))}))}}var f;if("function"!=typeof i&&n$6(6),void 0!==o&&"function"!=typeof o&&n$6(7),r$6(t)){var c=w$5(e),s=R$1(e,t,void 0),v=!0;try{f=i(s),v=!1;}finally{v?O$1(c):g$5(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j$1(c,o),P$1(n,c)}),(function(n){throw O$1(c),n})):(j$1(c,o),P$1(f,c))}if(!t||"object"!=typeof t){if((f=i(t))===H$2)return;return void 0===f&&(f=t),e.F&&d$5(f,!0),f}n$6(21,t);},this.produceWithPatches=function(n,t){return "function"==typeof n?function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))}:[e.produce(n,t,(function(n,t){r=n,i=t;})),r,i];var r,i;},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){r$6(e)||n$6(8),t$5(e)&&(e=D$2(e));var i=w$5(this),o=R$1(this,e,void 0);return o[Q$1].C=!0,g$5(i),o},i.finishDraft=function(t,r){var e=t&&t[Q$1];"production"!==process.env.NODE_ENV&&(e&&e.C||n$6(9),e.I&&n$6(10));var i=e.A;return j$1(i,r),P$1(void 0,i)},i.setAutoFreeze=function(n){this.F=n;},i.setUseProxies=function(t){t&&!B$2&&n$6(20),this.g=t;},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var o=b$5("Patches").$;return t$5(n)?o(n,r):this.produce(n,(function(n){return o(n,r.slice(e+1))}))},e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);
|
|
3740
|
+
function n$5(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];if("production"!==process.env.NODE_ENV){var i=Y[n],o=i?"function"==typeof i?i.apply(null,r):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t$4(n){return !!n&&!!n[Q]}function r$5(n){return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var t=Object.getPrototypeOf(n);if(null===t)return !0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v$4(n))}function i(n,t,r){void 0===r&&(r=!1),0===o(n)?(r?Object.keys:nn)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n);})):n.forEach((function(r,e){return t(e,r,n)}));}function o(n){var t=n[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:s(n)?2:v$4(n)?3:0}function u$1(n,t){return 2===o(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function a(n,t){return 2===o(n)?n.get(t):n[t]}function f$4(n,t,r){var e=o(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r;}function c$4(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function s(n){return X&&n instanceof Map}function v$4(n){return q$4&&n instanceof Set}function p$4(n){return n.o||n.t}function l$4(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=tn(n);delete t[Q];for(var r=nn(t),e=0;e<r.length;e++){var i=r[e],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),t)}function d$4(n,e){return void 0===e&&(e=!1),y$4(n)||t$4(n)||!r$5(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h$4),Object.freeze(n),e&&i(n,(function(n,t){return d$4(t,!0)}),!0),n)}function h$4(){n$5(2);}function y$4(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b$4(t){var r=rn[t];return r||n$5(18,t),r}function m$4(n,t){rn[n]||(rn[n]=t);}function _(){return "production"===process.env.NODE_ENV||U||n$5(0),U}function j(n,t){t&&(b$4("Patches"),n.u=[],n.s=[],n.v=t);}function O(n){g$4(n),n.p.forEach(S),n.p=null;}function g$4(n){n===U&&(U=n.l);}function w$4(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var t=n[Q];0===t.i||1===t.i?t.j():t.O=!0;}function P(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||b$4("ES5").S(e,t,o),o?(i[Q].P&&(O(e),n$5(4)),r$5(t)&&(t=M(e,t),e.l||x$4(e,t)),e.u&&b$4("Patches").M(i[Q],t,e.u,e.s)):t=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),t!==H$1?t:void 0}function M(n,t,r){if(y$4(t))return t;var e=t[Q];if(!e)return i(t,(function(i,o){return A$4(n,e,t,i,o,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x$4(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l$4(e.k):e.o;i(3===e.i?new Set(o):o,(function(t,i){return A$4(n,e,o,t,i,r)})),x$4(n,o,!1),r&&n.u&&b$4("Patches").R(e,r,n.u,n.s);}return e.o}function A$4(e,i,o,a,c,s){if("production"!==process.env.NODE_ENV&&c===o&&n$5(5),t$4(c)){var v=M(e,c,s&&i&&3!==i.i&&!u$1(i.D,a)?s.concat(a):void 0);if(f$4(o,a,v),!t$4(v))return;e.m=!1;}if(r$5(c)&&!y$4(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x$4(e,c);}}function x$4(n,t,r){void 0===r&&(r=!1),n.h.F&&n.m&&d$4(t,r);}function z$4(n,t){var r=n[Q];return (r?p$4(r):n)[t]}function I$1(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r);}}function k$4(n){n.P||(n.P=!0,n.l&&k$4(n.l));}function E$1(n){n.o||(n.o=l$4(n.t));}function R(n,t,r){var e=s(t)?b$4("MapSet").N(t,r):v$4(t)?b$4("MapSet").T(t,r):n.g?function(n,t){var r=Array.isArray(n),e={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;r&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(t,r):b$4("ES5").J(t,r);return (r?r.A:_()).p.push(e),e}function D$1(e){return t$4(e)||n$5(22,e),function n(t){if(!r$5(t))return t;var e,u=t[Q],c=o(t);if(u){if(!u.P&&(u.i<4||!b$4("ES5").K(u)))return u.t;u.I=!0,e=F$1(t,c),u.I=!1;}else e=F$1(t,c);return i(e,(function(t,r){u&&a(u.t,t)===r||f$4(e,t,n(r));})),3===c?new Set(e):e}(e)}function F$1(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return l$4(n)}function N(){function r(n,t){var r=s[n];return r?r.enumerable=t:s[n]=r={configurable:!0,enumerable:t,get:function(){var t=this[Q];return "production"!==process.env.NODE_ENV&&f(t),en.get(t,n)},set:function(t){var r=this[Q];"production"!==process.env.NODE_ENV&&f(r),en.set(r,n,t);}},r}function e(n){for(var t=n.length-1;t>=0;t--){var r=n[t][Q];if(!r.P)switch(r.i){case 5:a(r)&&k$4(r);break;case 4:o(r)&&k$4(r);}}}function o(n){for(var t=n.t,r=n.k,e=nn(r),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=t[o];if(void 0===a&&!u$1(t,o))return !0;var f=r[o],s=f&&f[Q];if(s?s.t!==a:!c$4(f,a))return !0}}var v=!!t[Q];return e.length!==nn(t).length+(v?0:1)}function a(n){var t=n.k;if(t.length!==n.t.length)return !0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return !(!r||r.get)}function f(t){t.O&&n$5(3,JSON.stringify(p$4(t)));}var s={};m$4("ES5",{J:function(n,t){var e=Array.isArray(n),i=function(n,t){if(n){for(var e=Array(t.length),i=0;i<t.length;i++)Object.defineProperty(e,""+i,r(i,!0));return e}var o=tn(t);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=r(f,n||!!o[f].enumerable);}return Object.create(Object.getPrototypeOf(t),o)}(e,n),o={i:e?5:4,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,r,o){o?t$4(r)&&r[Q].A===n&&e(n.p):(n.u&&function n(t){if(t&&"object"==typeof t){var r=t[Q];if(r){var e=r.t,o=r.k,f=r.D,c=r.i;if(4===c)i(o,(function(t){t!==Q&&(void 0!==e[t]||u$1(e,t)?f[t]||n(o[t]):(f[t]=!0,k$4(r)));})),i(e,(function(n){void 0!==o[n]||u$1(o,n)||(f[n]=!1,k$4(r));}));else if(5===c){if(a(r)&&(k$4(r),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)void 0===f[l]&&n(o[l]);}}}}(n.p[0]),e(n.p));},K:function(n){return 4===n.i?o(n):a(n)}});}var G$1,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q$4="undefined"!=typeof Set,B$1="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H$1=W?Symbol.for("immer-nothing"):((G$1={})["immer-nothing"]=!0,G$1),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,tn=Object.getOwnPropertyDescriptors||function(n){var t={};return nn(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r);})),t},rn={},en={get:function(n,t){if(t===Q)return n;var e=p$4(n);if(!u$1(e,t))return function(n,t,r){var e,i=I$1(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.I||!r$5(i)?i:i===z$4(n.t,t)?(E$1(n),n.o[t]=R(n.A.h,i,n)):i},has:function(n,t){return t in p$4(n)},ownKeys:function(n){return Reflect.ownKeys(p$4(n))},set:function(n,t,r){var e=I$1(p$4(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(!n.P){var i=z$4(p$4(n),t),o=null==i?void 0:i[Q];if(o&&o.t===r)return n.o[t]=r,n.D[t]=!1,!0;if(c$4(r,i)&&(void 0!==r||u$1(n.t,t)))return !0;E$1(n),k$4(n);}return n.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in n.o)||(n.o[t]=r,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==z$4(n.t,t)||t in n.t?(n.D[t]=!1,E$1(n),k$4(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=p$4(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n$5(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n$5(12);}},on={};i(en,(function(n,t){on[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)};})),on.deleteProperty=function(t,r){return "production"!==process.env.NODE_ENV&&isNaN(parseInt(r))&&n$5(13),en.deleteProperty.call(this,t[0],r)},on.set=function(t,r,e){return "production"!==process.env.NODE_ENV&&"length"!==r&&isNaN(parseInt(r))&&n$5(14),en.set.call(this,t[0],r,e,t[0])};var un=function(){function e(t){var e=this;this.g=B$1,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var u=i;i=t;var a=e;return function(n){var t=this;void 0===n&&(n=u);for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var r;return (r=i).call.apply(r,[t,n].concat(e))}))}}var f;if("function"!=typeof i&&n$5(6),void 0!==o&&"function"!=typeof o&&n$5(7),r$5(t)){var c=w$4(e),s=R(e,t,void 0),v=!0;try{f=i(s),v=!1;}finally{v?O(c):g$4(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(c),n})):(j(c,o),P(f,c))}if(!t||"object"!=typeof t){if((f=i(t))===H$1)return;return void 0===f&&(f=t),e.F&&d$4(f,!0),f}n$5(21,t);},this.produceWithPatches=function(n,t){return "function"==typeof n?function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))}:[e.produce(n,t,(function(n,t){r=n,i=t;})),r,i];var r,i;},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){r$5(e)||n$5(8),t$4(e)&&(e=D$1(e));var i=w$4(this),o=R(this,e,void 0);return o[Q].C=!0,g$4(i),o},i.finishDraft=function(t,r){var e=t&&t[Q];"production"!==process.env.NODE_ENV&&(e&&e.C||n$5(9),e.I&&n$5(10));var i=e.A;return j(i,r),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n;},i.setUseProxies=function(t){t&&!B$1&&n$5(20),this.g=t;},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var o=b$4("Patches").$;return t$4(n)?o(n,r):this.produce(n,(function(n){return o(n,r.slice(e+1))}))},e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);
|
|
3750
3741
|
|
|
3751
3742
|
const requestOrganizationReducer = (state, action) => {
|
|
3752
3743
|
switch (action.type) {
|
|
@@ -5250,12 +5241,12 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
5250
5241
|
* This source code is licensed under the MIT license found in the
|
|
5251
5242
|
* LICENSE file in the root directory of this source tree.
|
|
5252
5243
|
*/
|
|
5253
|
-
var b$
|
|
5254
|
-
Symbol.for("react.suspense_list"):60120,r$
|
|
5255
|
-
function z$
|
|
5256
|
-
var Profiler$3=g$
|
|
5257
|
-
var isMemo$3=function(a){return z$
|
|
5258
|
-
var isValidElementType$3=function(a){return "string"===typeof a||"function"===typeof a||a===e$
|
|
5244
|
+
var b$3="function"===typeof Symbol&&Symbol.for,c$3=b$3?Symbol.for("react.element"):60103,d$3=b$3?Symbol.for("react.portal"):60106,e$4=b$3?Symbol.for("react.fragment"):60107,f$3=b$3?Symbol.for("react.strict_mode"):60108,g$3=b$3?Symbol.for("react.profiler"):60114,h$3=b$3?Symbol.for("react.provider"):60109,k$3=b$3?Symbol.for("react.context"):60110,l$3=b$3?Symbol.for("react.async_mode"):60111,m$3=b$3?Symbol.for("react.concurrent_mode"):60111,n$4=b$3?Symbol.for("react.forward_ref"):60112,p$3=b$3?Symbol.for("react.suspense"):60113,q$3=b$3?
|
|
5245
|
+
Symbol.for("react.suspense_list"):60120,r$4=b$3?Symbol.for("react.memo"):60115,t$3=b$3?Symbol.for("react.lazy"):60116,v$3=b$3?Symbol.for("react.block"):60121,w$3=b$3?Symbol.for("react.fundamental"):60117,x$3=b$3?Symbol.for("react.responder"):60118,y$3=b$3?Symbol.for("react.scope"):60119;
|
|
5246
|
+
function z$3(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$3:switch(a=a.type,a){case l$3:case m$3:case e$4:case g$3:case f$3:case p$3:return a;default:switch(a=a&&a.$$typeof,a){case k$3:case n$4:case t$3:case r$4:case h$3:return a;default:return u}}case d$3:return u}}}function A$3(a){return z$3(a)===m$3}var AsyncMode$2=l$3;var ConcurrentMode$2=m$3;var ContextConsumer$3=k$3;var ContextProvider$3=h$3;var Element$3=c$3;var ForwardRef$3=n$4;var Fragment$3=e$4;var Lazy$3=t$3;var Memo$3=r$4;var Portal$3=d$3;
|
|
5247
|
+
var Profiler$3=g$3;var StrictMode$3=f$3;var Suspense$3=p$3;var isAsyncMode$3=function(a){return A$3(a)||z$3(a)===l$3};var isConcurrentMode$3=A$3;var isContextConsumer$3=function(a){return z$3(a)===k$3};var isContextProvider$3=function(a){return z$3(a)===h$3};var isElement$3=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$3};var isForwardRef$3=function(a){return z$3(a)===n$4};var isFragment$3=function(a){return z$3(a)===e$4};var isLazy$3=function(a){return z$3(a)===t$3};
|
|
5248
|
+
var isMemo$3=function(a){return z$3(a)===r$4};var isPortal$3=function(a){return z$3(a)===d$3};var isProfiler$3=function(a){return z$3(a)===g$3};var isStrictMode$3=function(a){return z$3(a)===f$3};var isSuspense$3=function(a){return z$3(a)===p$3};
|
|
5249
|
+
var isValidElementType$3=function(a){return "string"===typeof a||"function"===typeof a||a===e$4||a===m$3||a===g$3||a===f$3||a===p$3||a===q$3||"object"===typeof a&&null!==a&&(a.$$typeof===t$3||a.$$typeof===r$4||a.$$typeof===h$3||a.$$typeof===k$3||a.$$typeof===n$4||a.$$typeof===w$3||a.$$typeof===x$3||a.$$typeof===y$3||a.$$typeof===v$3)};var typeOf$3=z$3;
|
|
5259
5250
|
|
|
5260
5251
|
var reactIs_production_min$3 = {
|
|
5261
5252
|
AsyncMode: AsyncMode$2,
|
|
@@ -6362,12 +6353,12 @@ propTypes.shape;
|
|
|
6362
6353
|
* This source code is licensed under the MIT license found in the
|
|
6363
6354
|
* LICENSE file in the root directory of this source tree.
|
|
6364
6355
|
*/
|
|
6365
|
-
var b$
|
|
6366
|
-
if("function"===typeof Symbol&&Symbol.for){var x$
|
|
6367
|
-
function y$
|
|
6368
|
-
var Suspense$2=I
|
|
6369
|
-
var isPortal$2=function(a){return y$
|
|
6370
|
-
var typeOf$2=y$
|
|
6356
|
+
var b$2=60103,c$2=60106,d$2=60107,e$3=60108,f$2=60114,g$2=60109,h$2=60110,k$2=60112,l$2=60113,m$2=60120,n$3=60115,p$2=60116,q$2=60121,r$3=60122,u=60117,v$2=60129,w$2=60131;
|
|
6357
|
+
if("function"===typeof Symbol&&Symbol.for){var x$2=Symbol.for;b$2=x$2("react.element");c$2=x$2("react.portal");d$2=x$2("react.fragment");e$3=x$2("react.strict_mode");f$2=x$2("react.profiler");g$2=x$2("react.provider");h$2=x$2("react.context");k$2=x$2("react.forward_ref");l$2=x$2("react.suspense");m$2=x$2("react.suspense_list");n$3=x$2("react.memo");p$2=x$2("react.lazy");q$2=x$2("react.block");r$3=x$2("react.server.block");u=x$2("react.fundamental");v$2=x$2("react.debug_trace_mode");w$2=x$2("react.legacy_hidden");}
|
|
6358
|
+
function y$2(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b$2:switch(a=a.type,a){case d$2:case f$2:case e$3:case l$2:case m$2:return a;default:switch(a=a&&a.$$typeof,a){case h$2:case k$2:case p$2:case n$3:case g$2:return a;default:return t}}case c$2:return t}}}var z$2=g$2,A$2=b$2,B=k$2,C=d$2,D=p$2,E=n$3,F=c$2,G=f$2,H=e$3,I=l$2;var ContextConsumer$2=h$2;var ContextProvider$2=z$2;var Element$2=A$2;var ForwardRef$2=B;var Fragment$2=C;var Lazy$2=D;var Memo$2=E;var Portal$2=F;var Profiler$2=G;var StrictMode$2=H;
|
|
6359
|
+
var Suspense$2=I;var isAsyncMode$2=function(){return !1};var isConcurrentMode$2=function(){return !1};var isContextConsumer$2=function(a){return y$2(a)===h$2};var isContextProvider$2=function(a){return y$2(a)===g$2};var isElement$2=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b$2};var isForwardRef$2=function(a){return y$2(a)===k$2};var isFragment$2=function(a){return y$2(a)===d$2};var isLazy$2=function(a){return y$2(a)===p$2};var isMemo$2=function(a){return y$2(a)===n$3};
|
|
6360
|
+
var isPortal$2=function(a){return y$2(a)===c$2};var isProfiler$2=function(a){return y$2(a)===f$2};var isStrictMode$2=function(a){return y$2(a)===e$3};var isSuspense$2=function(a){return y$2(a)===l$2};var isValidElementType$2=function(a){return "string"===typeof a||"function"===typeof a||a===d$2||a===f$2||a===v$2||a===e$3||a===l$2||a===m$2||a===w$2||"object"===typeof a&&null!==a&&(a.$$typeof===p$2||a.$$typeof===n$3||a.$$typeof===g$2||a.$$typeof===h$2||a.$$typeof===k$2||a.$$typeof===u||a.$$typeof===q$2||a[0]===r$3)?!0:!1};
|
|
6361
|
+
var typeOf$2=y$2;
|
|
6371
6362
|
|
|
6372
6363
|
var reactIs_production_min$2 = {
|
|
6373
6364
|
ContextConsumer: ContextConsumer$2,
|
|
@@ -6651,7 +6642,7 @@ reactIs$2.isValidElementType;
|
|
|
6651
6642
|
reactIs$2.isContextConsumer;
|
|
6652
6643
|
var reactIs_3 = reactIs$2.isForwardRef;
|
|
6653
6644
|
|
|
6654
|
-
function t$
|
|
6645
|
+
function t$2(t){return "object"==typeof t&&null!=t&&1===t.nodeType}function e$2(t,e){return (!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n$2(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e$2(r.overflowY,n)||e$2(r.overflowX,n)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return !!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return !1}function r$2(t,e,n,r,i,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-r:l>e&&d<n||o<t&&d>n?l-e+i:0}function computeScrollIntoView(e,i){var o=window,l=i.scrollMode,d=i.block,u=i.inline,h=i.boundary,a=i.skipOverflowHiddenElements,c="function"==typeof h?h:function(t){return t!==h};if(!t$2(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,s=[],p=e;t$2(p)&&c(p);){if((p=p.parentElement)===f){s.push(p);break}null!=p&&p===document.body&&n$2(p)&&!n$2(document.documentElement)||null!=p&&n$2(p,a)&&s.push(p);}for(var m=o.visualViewport?o.visualViewport.width:innerWidth,g=o.visualViewport?o.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,W=e.getBoundingClientRect(),b=W.height,H=W.width,y=W.top,E=W.right,M=W.bottom,V=W.left,x="start"===d||"nearest"===d?y:"end"===d?M:y+b/2,I="center"===u?V+H/2:"end"===u?E:V,C=[],T=0;T<s.length;T++){var k=s[T],B=k.getBoundingClientRect(),D=B.height,O=B.width,R=B.top,X=B.right,Y=B.bottom,L=B.left;if("if-needed"===l&&y>=0&&V>=0&&M<=g&&E<=m&&y>=R&&M<=Y&&V>=L&&E<=X)return C;var S=getComputedStyle(k),j=parseInt(S.borderLeftWidth,10),q=parseInt(S.borderTopWidth,10),z=parseInt(S.borderRightWidth,10),A=parseInt(S.borderBottomWidth,10),F=0,G=0,J="offsetWidth"in k?k.offsetWidth-k.clientWidth-j-z:0,K="offsetHeight"in k?k.offsetHeight-k.clientHeight-q-A:0;if(f===k)F="start"===d?x:"end"===d?x-g:"nearest"===d?r$2(v,v+g,g,q,A,v+x,v+x+b,b):x-g/2,G="start"===u?I:"center"===u?I-m/2:"end"===u?I-m:r$2(w,w+m,m,j,z,w+I,w+I+H,H),F=Math.max(0,F+v),G=Math.max(0,G+w);else {F="start"===d?x-R-q:"end"===d?x-Y+A+K:"nearest"===d?r$2(R,Y,D,q,A+K,x,x+b,b):x-(R+D/2)+K/2,G="start"===u?I-L-j:"center"===u?I-(L+O/2)+J/2:"end"===u?I-X+z+J:r$2(L,X,O,j,z+J,I,I+H,H);var N=k.scrollLeft,P=k.scrollTop;x+=P-(F=Math.max(0,Math.min(P+F,k.scrollHeight-D+K))),I+=N-(G=Math.max(0,Math.min(N+G,k.scrollWidth-O+J)));}C.push({el:k,top:F,left:G});}return C}
|
|
6655
6646
|
|
|
6656
6647
|
var idCounter = 0;
|
|
6657
6648
|
/**
|
|
@@ -12123,7 +12114,7 @@ const getHook = (hookName) => {
|
|
|
12123
12114
|
registeredHooks[hookName].length > 0) {
|
|
12124
12115
|
registeredHooks[hookName].forEach((hook) => {
|
|
12125
12116
|
if (hook.callback && typeof hook.callback === "function") {
|
|
12126
|
-
hook.callback({ ...value });
|
|
12117
|
+
hook.callback(typeof value === "string" ? value : { ...value });
|
|
12127
12118
|
}
|
|
12128
12119
|
else {
|
|
12129
12120
|
logger.warn("Expected typeof function for hook callback");
|
|
@@ -14078,6 +14069,7 @@ const createUpdateLocale = (dispatch, programId) => async (viewModel, programThe
|
|
|
14078
14069
|
const locale = getLocaleSafely(viewModel);
|
|
14079
14070
|
const newProgramTheme = await VerificationApiClient.fetchProgramTheme(programId, locale);
|
|
14080
14071
|
const themeMessages = getThemeMessages(newProgramTheme);
|
|
14072
|
+
getHook("ON_FORM_LOCALE_CHANGE")(locale);
|
|
14081
14073
|
return getMessages(locale, themeMessages, segment).then((messages) => Promise.all([
|
|
14082
14074
|
dispatch({ messages, type: "SET_MESSAGES" }),
|
|
14083
14075
|
dispatch({ viewModel, type: "VIEW_MODEL" }),
|
|
@@ -14949,12 +14941,12 @@ Provider.propTypes = {
|
|
|
14949
14941
|
* This source code is licensed under the MIT license found in the
|
|
14950
14942
|
* LICENSE file in the root directory of this source tree.
|
|
14951
14943
|
*/
|
|
14952
|
-
var b$
|
|
14953
|
-
Symbol.for("react.suspense_list"):60120,r$
|
|
14954
|
-
function z$
|
|
14955
|
-
var Profiler$1=g$
|
|
14956
|
-
var isMemo$1=function(a){return z$
|
|
14957
|
-
var isValidElementType$1=function(a){return "string"===typeof a||"function"===typeof a||a===e$
|
|
14944
|
+
var b$1="function"===typeof Symbol&&Symbol.for,c$1=b$1?Symbol.for("react.element"):60103,d$1=b$1?Symbol.for("react.portal"):60106,e$1=b$1?Symbol.for("react.fragment"):60107,f$1=b$1?Symbol.for("react.strict_mode"):60108,g$1=b$1?Symbol.for("react.profiler"):60114,h$1=b$1?Symbol.for("react.provider"):60109,k$1=b$1?Symbol.for("react.context"):60110,l$1=b$1?Symbol.for("react.async_mode"):60111,m$1=b$1?Symbol.for("react.concurrent_mode"):60111,n$1=b$1?Symbol.for("react.forward_ref"):60112,p$1=b$1?Symbol.for("react.suspense"):60113,q$1=b$1?
|
|
14945
|
+
Symbol.for("react.suspense_list"):60120,r$1=b$1?Symbol.for("react.memo"):60115,t$1=b$1?Symbol.for("react.lazy"):60116,v$1=b$1?Symbol.for("react.block"):60121,w$1=b$1?Symbol.for("react.fundamental"):60117,x$1=b$1?Symbol.for("react.responder"):60118,y$1=b$1?Symbol.for("react.scope"):60119;
|
|
14946
|
+
function z$1(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$1:switch(a=a.type,a){case l$1:case m$1:case e$1:case g$1:case f$1:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n$1:case t$1:case r$1:case h$1:return a;default:return u}}case d$1:return u}}}function A$1(a){return z$1(a)===m$1}var AsyncMode$1=l$1;var ConcurrentMode$1=m$1;var ContextConsumer$1=k$1;var ContextProvider$1=h$1;var Element$1=c$1;var ForwardRef$1=n$1;var Fragment$1=e$1;var Lazy$1=t$1;var Memo$1=r$1;var Portal$1=d$1;
|
|
14947
|
+
var Profiler$1=g$1;var StrictMode$1=f$1;var Suspense$1=p$1;var isAsyncMode$1=function(a){return A$1(a)||z$1(a)===l$1};var isConcurrentMode$1=A$1;var isContextConsumer$1=function(a){return z$1(a)===k$1};var isContextProvider$1=function(a){return z$1(a)===h$1};var isElement$1=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$1};var isForwardRef$1=function(a){return z$1(a)===n$1};var isFragment$1=function(a){return z$1(a)===e$1};var isLazy$1=function(a){return z$1(a)===t$1};
|
|
14948
|
+
var isMemo$1=function(a){return z$1(a)===r$1};var isPortal$1=function(a){return z$1(a)===d$1};var isProfiler$1=function(a){return z$1(a)===g$1};var isStrictMode$1=function(a){return z$1(a)===f$1};var isSuspense$1=function(a){return z$1(a)===p$1};
|
|
14949
|
+
var isValidElementType$1=function(a){return "string"===typeof a||"function"===typeof a||a===e$1||a===m$1||a===g$1||a===f$1||a===p$1||a===q$1||"object"===typeof a&&null!==a&&(a.$$typeof===t$1||a.$$typeof===r$1||a.$$typeof===h$1||a.$$typeof===k$1||a.$$typeof===n$1||a.$$typeof===w$1||a.$$typeof===x$1||a.$$typeof===y$1||a.$$typeof===v$1)};var typeOf$1=z$1;
|
|
14958
14950
|
|
|
14959
14951
|
var reactIs_production_min$1 = {
|
|
14960
14952
|
AsyncMode: AsyncMode$1,
|
|
@@ -15355,12 +15347,12 @@ var invariant_1 = invariant;
|
|
|
15355
15347
|
* This source code is licensed under the MIT license found in the
|
|
15356
15348
|
* LICENSE file in the root directory of this source tree.
|
|
15357
15349
|
*/
|
|
15358
|
-
var b
|
|
15359
|
-
Symbol.for("react.suspense_list"):60120,r
|
|
15360
|
-
function z
|
|
15361
|
-
var Profiler=g
|
|
15362
|
-
var isMemo=function(a){return z
|
|
15363
|
-
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e
|
|
15350
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
15351
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
15352
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
|
|
15353
|
+
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
15354
|
+
var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
15355
|
+
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
15364
15356
|
|
|
15365
15357
|
var reactIs_production_min = {
|
|
15366
15358
|
AsyncMode: AsyncMode,
|
|
@@ -16191,1567 +16183,6 @@ function createConnect(_temp) {
|
|
|
16191
16183
|
}
|
|
16192
16184
|
var connect = createConnect();
|
|
16193
16185
|
|
|
16194
|
-
var types$1 = createCommonjsModule(function (module, exports) {
|
|
16195
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16196
|
-
exports.defaultReactOptions = void 0;
|
|
16197
|
-
/**
|
|
16198
|
-
* Contains default values for the `reactOptions` object.
|
|
16199
|
-
*/
|
|
16200
|
-
exports.defaultReactOptions = { useCamelCaseFlagKeys: true };
|
|
16201
|
-
|
|
16202
|
-
});
|
|
16203
|
-
|
|
16204
|
-
unwrapExports(types$1);
|
|
16205
|
-
types$1.defaultReactOptions;
|
|
16206
|
-
|
|
16207
|
-
var context_1 = createCommonjsModule(function (module, exports) {
|
|
16208
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16209
|
-
exports.Consumer = exports.Provider = void 0;
|
|
16210
|
-
|
|
16211
|
-
/**
|
|
16212
|
-
* @ignore
|
|
16213
|
-
*/
|
|
16214
|
-
var context = (0, React.createContext)({ flags: {}, ldClient: undefined });
|
|
16215
|
-
var
|
|
16216
|
-
/**
|
|
16217
|
-
* @ignore
|
|
16218
|
-
*/
|
|
16219
|
-
Provider = context.Provider,
|
|
16220
|
-
/**
|
|
16221
|
-
* @ignore
|
|
16222
|
-
*/
|
|
16223
|
-
Consumer = context.Consumer;
|
|
16224
|
-
exports.Provider = Provider;
|
|
16225
|
-
exports.Consumer = Consumer;
|
|
16226
|
-
exports.default = context;
|
|
16227
|
-
|
|
16228
|
-
});
|
|
16229
|
-
|
|
16230
|
-
unwrapExports(context_1);
|
|
16231
|
-
context_1.Consumer;
|
|
16232
|
-
context_1.Provider;
|
|
16233
|
-
|
|
16234
|
-
function e(n){return (e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function n(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function t(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r);}return t}function r(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(o,!0).forEach((function(t){n(e,t,o[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(o).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n));}));}return e}function o(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e){function n(e,n){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=n;}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var a=i("LaunchDarklyUnexpectedResponseError"),u=i("LaunchDarklyInvalidEnvironmentIdError"),s=i("LaunchDarklyInvalidUserError"),c=i("LaunchDarklyInvalidEventKeyError"),l=i("LaunchDarklyInvalidArgumentError"),f=i("LaunchDarklyFlagFetchError"),d=i("LaunchDarklyInvalidDataError");function v(e){return !(e>=400&&e<500)||400===e||408===e||429===e}for(var g=Object.freeze({__proto__:null,LDUnexpectedResponseError:a,LDInvalidEnvironmentIdError:u,LDInvalidUserError:s,LDInvalidEventKeyError:c,LDInvalidArgumentError:l,LDFlagFetchError:f,LDInvalidDataError:d,isHttpErrorRecoverable:v}),p=[],m=[],h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,w=h.length;y<w;++y)p[y]=h[y],m[h.charCodeAt(y)]=y;function b(e,n,t){for(var r,o,i=[],a=n;a<t;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(p[(o=r)>>18&63]+p[o>>12&63]+p[o>>6&63]+p[63&o]);return i.join("")}m["-".charCodeAt(0)]=62,m["_".charCodeAt(0)]=63;var k=Array.isArray,E=Object.keys,D=Object.prototype.hasOwnProperty,S=["key","secondary","ip","country","email","firstName","lastName","avatar","name"];function O(e){return function(e){for(var n,t=e.length,r=t%3,o=[],i=0,a=t-r;i<a;i+=16383)o.push(b(e,i,i+16383>a?a:i+16383));return 1===r?(n=e[t-1],o.push(p[n>>2]+p[n<<4&63]+"==")):2===r&&(n=(e[t-2]<<8)+e[t-1],o.push(p[n>>10]+p[n>>4&63]+p[n<<2&63]+"=")),o.join("")}(function(e){for(var n=[],t=0;t<e.length;t++)n.push(e.charCodeAt(t));return n}(unescape(encodeURIComponent(e))))}function P(e){return O(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function U(e){return JSON.parse(JSON.stringify(e))}function R(e,n){return function e(n,t){if(n===t)return !0;if(n&&t&&"object"==typeof n&&"object"==typeof t){var r,o,i,a=k(n),u=k(t);if(a&&u){if((o=n.length)!=t.length)return !1;for(r=o;0!=r--;)if(!e(n[r],t[r]))return !1;return !0}if(a!=u)return !1;var s=n instanceof Date,c=t instanceof Date;if(s!=c)return !1;if(s&&c)return n.getTime()==t.getTime();var l=n instanceof RegExp,f=t instanceof RegExp;if(l!=f)return !1;if(l&&f)return n.toString()==t.toString();var d=E(n);if((o=d.length)!==E(t).length)return !1;for(r=o;0!=r--;)if(!D.call(t,d[r]))return !1;for(r=o;0!=r--;)if(!e(n[i=d[r]],t[i]))return !1;return !0}return n!=n&&t!=t}(e,n)}function j(e){setTimeout(e,0);}function I(e,n){var t=e.then((function(e){return n&&setTimeout((function(){n(null,e);}),0),e}),(function(e){if(!n)return Promise.reject(e);setTimeout((function(){n(e,null);}),0);}));return n?void 0:t}function T(e){var n={};for(var t in e)q(e,t)&&(n[t]={value:e[t],version:0});return n}function L(e){var n={};for(var t in e)q(e,t)&&(n[t]=e[t].value);return n}function N(e,n){for(var t,r=n.slice(0),o=[],i=e;r.length>0;){for(t=[];i>0;){var a=r.shift();if(!a)break;(i-=P(JSON.stringify(a)).length)<0&&t.length>0?r.unshift(a):t.push(a);}i=e,o.push(t);}return o}function x(e){var n=e.version||"3.5.1";return e.userAgent+"/"+n}function F(e,n){if(n&&!n.sendLDHeaders)return {};var t={"X-LaunchDarkly-User-Agent":x(e)};return n&&n.wrapperName&&(t["X-LaunchDarkly-Wrapper"]=n.wrapperVersion?n.wrapperName+"/"+n.wrapperVersion:n.wrapperName),t}function A(e,n){return n&&n.requestHeaderTransform?n.requestHeaderTransform(r({},e)):e}function C(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.reduce((function(e,n){return r({},e,{},n)}),{})}function q(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function V(e){if(!e)return e;var n;for(var t in S){var o=S[t],i=e[o];void 0!==i&&"string"!=typeof i&&((n=n||r({},e))[o]=String(i));}return n||e}Object.freeze({__proto__:null,btoa:O,base64URLEncode:P,clone:U,deepEquals:R,onNextTick:j,wrapPromiseCallback:I,transformValuesToVersionedValues:T,transformVersionedValuesToValues:L,chunkUserEventsForUrl:N,getLDUserAgentString:x,getLDHeaders:F,transformHeaders:A,extend:C,objectHasOwnProperty:q,sanitizeUser:V});for(var _=function(e,n){return function(e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var t=new Uint8Array(16);e.exports=function(){return n(t),t};}else {var r=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),r[n]=e>>>((3&n)<<3)&255;return r};}}(n={exports:{}}),n.exports}(),J=[],z=0;z<256;++z)J[z]=(z+256).toString(16).substr(1);var M,H,K=0,$=0,B=function(e,n,t){var r=n&&t||0,o=n||[],i=(e=e||{}).node||M,a=void 0!==e.clockseq?e.clockseq:H;if(null==i||null==a){var u=_();null==i&&(i=M=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==a&&(a=H=16383&(u[6]<<8|u[7]));}var s=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:$+1,l=s-K+(c-$)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||s>K)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");K=s,$=c,H=a;var f=(1e4*(268435455&(s+=122192928e5))+c)%4294967296;o[r++]=f>>>24&255,o[r++]=f>>>16&255,o[r++]=f>>>8&255,o[r++]=255&f;var d=s/4294967296*1e4&268435455;o[r++]=d>>>8&255,o[r++]=255&d,o[r++]=d>>>24&15|16,o[r++]=d>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var v=0;v<6;++v)o[r+v]=i[v];return n||function(e,n){var t=n||0,r=J;return [r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]]].join("")}(o)};function G(e,n,t){var r="/a/"+n+".gif",o=C({"Content-Type":"application/json"},F(e,t)),i=e.httpFallbackPing,a={sendChunk:function(n,a,u,s){var c=JSON.stringify(n),l=u?null:B();return s?function n(r){var i=u?o:C({},o,{"X-LaunchDarkly-Event-Schema":"3","X-LaunchDarkly-Payload-ID":l});return e.httpRequest("POST",a,A(i,t),c).promise.then((function(e){if(e)return e.status>=400&&v(e.status)&&r?n(!1):function(e){var n={status:e.status},t=e.header("date");if(t){var r=Date.parse(t);r&&(n.serverTime=r);}return n}(e)})).catch((function(){return r?n(!1):Promise.reject()}))}(!0).catch((function(){})):(i&&i(a+r+"?d="+P(c)),Promise.resolve())},sendEvents:function(n,t,r){if(!e.httpRequest)return Promise.resolve();var o,i=e.httpAllowsPost();o=i?[n]:N(2e3-t.length,n);for(var u=[],s=0;s<o.length;s++)u.push(a.sendChunk(o[s],t,r,i));return Promise.all(u)}};return a}function X(){var e={},n=0,t=0,r={};return e.summarizeEvent=function(e){if("feature"===e.kind){var o=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),i=r[o];i?i.count=i.count+1:r[o]={count:1,key:e.key,variation:e.variation,version:e.version,value:e.value,default:e.default},(0===n||e.creationDate<n)&&(n=e.creationDate),e.creationDate>t&&(t=e.creationDate);}},e.getSummary=function(){var e={},o=!0;for(var i in r){var a=r[i],u=e[a.key];u||(u={default:a.default,counters:[]},e[a.key]=u);var s={value:a.value,count:a.count};void 0!==a.variation&&null!==a.variation&&(s.variation=a.variation),a.version?s.version=a.version:s.unknown=!0,u.counters.push(s),o=!1;}return o?null:{startDate:n,endDate:t,features:e}},e.clearSummary=function(){n=0,t=0,r={};},e}function W(e){var n={},t=e.allAttributesPrivate,r=e.privateAttributeNames||[],o={key:!0,custom:!0,anonymous:!0},i={key:!0,secondary:!0,ip:!0,country:!0,email:!0,firstName:!0,lastName:!0,avatar:!0,name:!0,anonymous:!0,custom:!0};return n.filterUser=function(e){if(!e)return null;var n=e.privateAttributeNames||[],a=function(e,i){return Object.keys(e).reduce((function(a,u){var s=a;return i(u)&&(function(e){return !o[e]&&(t||-1!==n.indexOf(e)||-1!==r.indexOf(e))}(u)?s[1][u]=!0:s[0][u]=e[u]),s}),[{},{}])},u=a(e,(function(e){return i[e]})),s=u[0],c=u[1];if(e.custom){var l=a(e.custom,(function(){return !0}));s.custom=l[0],c=C({},c,l[1]);}var f=Object.keys(c);return f.length&&(f.sort(),s.privateAttrs=f),s},n}function Q(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}var Y=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client for instructions on SDK initialization.",Z=function(e){return 'Expected application/json content type but got "'+e+'"'},ee=function(e){return "local storage is unavailable: "+Q(e)},ne=function(e){return "network error"+(e?" ("+e+")":"")},te=function(e){return 'Custom event "'+e+'" does not exist'},re=function(){return "Environment not found. Double check that you specified a valid environment/client-side ID."+Y},oe=function(){return "No environment/client-side ID was specified."+Y},ie=function(e){return "Error fetching flag settings: "+Q(e)},ae=function(){return "No user specified."+Y},ue=function(){return "Invalid user specified."+Y},se=function(){return "LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+Y},ce=function(e,n){return n?'"'+e+'" is deprecated, please use "'+n+'"':'"'+e+'" is deprecated'},le=function(e,n,t){return "Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+n+" - "+(v(e)?t:"giving up permanently")},fe=function(){return "Cannot make HTTP requests in this environment."+Y},de=function(e){return "Opening stream connection to "+e},ve=function(e,n){return "Error on stream connection: "+Q(e)+", will continue retrying every "+n+" milliseconds."},ge=function(e){return 'Ignoring unknown config option "'+e+'"'},pe=function(e,n,t){return 'Config option "'+e+'" should be of type '+n+", got "+t+", using default value"},me=function(e,n){return 'Config option "'+e+'" should be a boolean, got '+n+", converting to boolean"},he=function(e,n,t){return 'Config option "'+e+'" was set to '+n+", changing to minimum value of "+t},ye=function(e){return "polling for feature flags at "+e},we=function(e){return 'received streaming update for flag "'+e+'"'},be=function(e){return 'received streaming update for flag "'+e+'" but ignored due to version check'},ke=function(e){return 'received streaming deletion for flag "'+e+'"'},Ee=function(e){return 'received streaming deletion for flag "'+e+'" but ignored due to version check'},De=function(e){return 'enqueueing "'+e+'" event'},Se=function(e){return "sending "+e+" events"},Oe=Object.freeze({__proto__:null,clientInitialized:function(){return "LaunchDarkly client initialized"},clientNotReady:function(){return "LaunchDarkly client is not ready"},eventCapacityExceeded:function(){return "Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutUser:function(){return "Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},invalidContentType:Z,invalidKey:function(){return "Event key must be a string"},localStorageUnavailable:ee,networkError:ne,unknownCustomEventKey:te,environmentNotFound:re,environmentNotSpecified:oe,errorFetchingFlags:ie,userNotSpecified:ae,invalidUser:ue,invalidData:function(){return "Invalid data received from LaunchDarkly; connection may have been interrupted"},bootstrapOldFormat:se,bootstrapInvalid:function(){return "LaunchDarkly bootstrap data is not available because the back end could not read the flags."},deprecated:ce,httpErrorMessage:le,httpUnavailable:fe,identifyDisabled:function(){return "identify() has no effect here; it must be called on the main client instance"},streamClosing:function(){return "Closing stream connection"},streamConnecting:de,streamError:ve,unknownOption:ge,wrongOptionType:pe,wrongOptionTypeBoolean:me,optionBelowMinimum:he,debugPolling:ye,debugStreamPing:function(){return "received ping message from stream"},debugStreamPut:function(){return "received streaming update for all flags"},debugStreamPatch:we,debugStreamPatchIgnored:be,debugStreamDelete:ke,debugStreamDeleteIgnored:Ee,debugEnqueueingEvent:De,debugPostingEvents:Se,debugPostingDiagnosticEvent:function(e){return "sending diagnostic event ("+e.kind+")"}});function Pe(e,n,t,r){var o={};function i(){var e="",o=r.getUser();return o&&(e=t||O(JSON.stringify(o))),"ld:"+n+":"+e}return o.loadFlags=function(){return e.get(i()).then((function(e){if(null==e)return null;try{var n=JSON.parse(e);if(n){var t=n.$schema;void 0===t||t<1?n=T(n):delete n.$schema;}return n}catch(e){return o.clearFlags().then((function(){return null}))}}))},o.saveFlags=function(n){var t=C({},n,{$schema:1});return e.set(i(),JSON.stringify(t))},o.clearFlags=function(){return e.clear(i())},o}function Ue(e,n,t,r){var o,i=n.streamUrl,a=n.logger,u={},s=i+"/eval/"+t,c=n.useReport,l=n.evaluationReasons,f=n.streamReconnectDelay,d=F(e,n),v=!1,g=null,p=null,m=null,h=null,y=null;function w(e){v||(a.warn(ve(e,f)),v=!0),D(!1),E(),b(f);}function b(e){p||(e?p=setTimeout(k,e):k());}function k(){var r;p=null;var u="",f={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){for(var v in null!=h&&(u="h="+h),c?e.eventSourceAllowsReport?(r=s,f.method="REPORT",f.headers["Content-Type"]="application/json",f.body=JSON.stringify(m)):(r=i+"/ping/"+t,u=""):r=s+"/"+P(JSON.stringify(m)),f.headers=A(f.headers,n),l&&(u=u+(u?"&":"")+"withReasons=true"),r=r+(u?"?":"")+u,E(),a.info(de(r)),o=(new Date).getTime(),g=e.eventSourceFactory(r,f),y)q(y,v)&&g.addEventListener(v,y[v]);g.onerror=w;}}function E(){g&&(a.info("Closing stream connection"),g.close(),g=null);}function D(e){o&&r&&r.recordStreamInit(o,!e,(new Date).getTime()-o),o=null;}return u.connect=function(e,n,t){m=e,h=n,y={};var r=function(e){y[e]=function(n){v=!1,D(!0),t[e]&&t[e](n);};};for(var o in t||{})r(o);b();},u.disconnect=function(){clearTimeout(p),p=null,E();},u.isConnected=function(){return !!(g&&e.eventSourceIsActive&&e.eventSourceIsActive(g))},u}function Re(e,n,t){var r=n.baseUrl,o=n.useReport,i=n.evaluationReasons,a=n.logger,s={},c={};function l(t,r){if(!e.httpRequest)return new Promise((function(e,n){n(new f(fe()));}));var o=r?"REPORT":"GET",i=F(e,n);r&&(i["Content-Type"]="application/json");var a=c[t];a||(a=function(e){var n,t,r,o,i={addPromise:function(i,a){n=i,t&&t(),t=a,i.then((function(t){n===i&&(r(t),e&&e());}),(function(t){n===i&&(o(t),e&&e());}));}};return i.resultPromise=new Promise((function(e,n){r=e,o=n;})),i}((function(){delete c[t];})),c[t]=a);var s=e.httpRequest(o,t,A(i,n),r),l=s.promise.then((function(e){if(200===e.status){if(e.header("content-type")&&"application/json"===e.header("content-type").substring(0,"application/json".length))return JSON.parse(e.body);var n=Z(e.header("content-type")||"");return Promise.reject(new f(n))}return Promise.reject(function(e){return 404===e.status?new u(re()):new f(ie(e.statusText||String(e.status)))}(e))}),(function(e){return Promise.reject(new f(ne(e)))}));return a.addPromise(l,(function(){s.cancel&&s.cancel();})),a.resultPromise}return s.fetchJSON=function(e){return l(r+e,null)},s.fetchFlagSettings=function(e,n){var u,s,c,f="";return o?(s=[r,"/sdk/evalx/",t,"/user"].join(""),c=JSON.stringify(e)):(u=P(JSON.stringify(e)),s=[r,"/sdk/evalx/",t,"/users/",u].join("")),n&&(f="h="+n),i&&(f=f+(f?"&":"")+"withReasons=true"),s=s+(f?"?":"")+f,a.debug(ye(s)),l(s,c)},s}function je(e){var n={validateUser:function(n){if(!n)return Promise.reject(new s(ae()));var t=U(n);return null!==t.key&&void 0!==t.key?(t.key=t.key.toString(),Promise.resolve(t)):t.anonymous?e.get("ld:$anonUserId").then((function(n){if(n)return t.key=n,t;var r=B();return t.key=r,function(n){return e.set("ld:$anonUserId",n)}(r).then((function(){return t}))})):Promise.reject(new s(ue()))}};return n}var Ie=["debug","info","warn","error","none"];function Te(e,n){return function(e,n){if(e&&e.destination&&"function"!=typeof e.destination)throw new Error("destination for basicLogger was set to a non-function");function t(e){return function(n){console&&console[e]&&console[e].call(console,n);}}var r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[t("log"),t("info"),t("warn"),t("error")],i=!(!e||!e.destination),a=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ",u=1;if(e&&e.level)for(var s=0;s<Ie.length;s++)Ie[s]===e.level&&(u=s);function c(e,t,u){if(!(u.length<1)){var s,c=i?t+": "+a:a;if(1!==u.length&&n){var l=o(u);l[0]=c+l[0],s=n.apply(void 0,o(l));}else s=c+u[0];try{r[e](s);}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+t+" method threw an exception: "+e);}}}for(var l={},f=function(e){var n=Ie[e];if("none"!==n)if(e<u)l[n]=function(){};else {var t=e;l[n]=function(){c(t,n,arguments);};}},d=0;d<Ie.length;d++)f(d);return l}({level:e,prefix:n})}var Le={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},inlineUsersInEvents:{default:!1},allowFrequentDuplicateEvents:{default:!1},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributeNames:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},autoAliasingOptOut:{default:!1}};function Ne(n,t,r,o){var i=C({logger:{default:o}},Le,r),a={all_attributes_private:"allAttributesPrivate",private_attribute_names:"privateAttributeNames",samplingInterval:null};function u(e){j((function(){t&&t.maybeReportError(new l(e));}));}var s=C({},n||{});return function(e){var n=e;Object.keys(a).forEach((function(e){if(void 0!==n[e]){var t=a[e];o&&o.warn(ce(e,t)),t&&(void 0===n[t]&&(n[t]=n[e]),delete n[e]);}}));}(s),function(e){Ie.forEach((function(n){if("none"!==n&&(!e[n]||"function"!=typeof e[n]))throw new Error("Provided logger instance must support logger."+n+"(...) method")}));}((s=function(n){var t=C({},n),r=function(n){if(null===n)return "any";if(void 0!==n){if(Array.isArray(n))return "array";var t=e(n);return "boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"}};return Object.keys(n).forEach((function(e){var o=n[e];if(null!=o){var a=i[e];if(void 0===a)u(ge(e));else {var s=a.type||r(a.default);if("any"!==s){var c=s.split("|"),l=r(o);c.indexOf(l)<0?"boolean"===s?(t[e]=!!o,u(me(e,l))):(u(pe(e,s,l)),t[e]=a.default):"number"===l&&void 0!==a.minimum&&o<a.minimum&&(u(he(e,o,a.minimum)),t[e]=a.minimum);}}}})),t}(s=function(e){var n=C({},e);return Object.keys(i).forEach((function(e){void 0!==n[e]&&null!==n[e]||(n[e]=i[e]&&i[e].default);})),n}(s))).logger),s}var xe=Object.freeze({__proto__:null,baseOptionDefs:Le,validate:Ne}).baseOptionDefs,Fe=function(e){var n={diagnosticId:B()};return e&&(n.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),n};function Ae(n,t,o,i,s){var l,g,p,m=o&&o.logger?o.logger:s&&s.logger&&s.logger.default||Te("warn"),h=function(e){var n={},t={};return n.on=function(e,n,r){t[e]=t[e]||[],t[e]=t[e].concat({handler:n,context:r});},n.off=function(e,n,r){if(t[e])for(var o=0;o<t[e].length;o++)t[e][o].handler===n&&t[e][o].context===r&&(t[e]=t[e].slice(0,o).concat(t[e].slice(o+1)));},n.emit=function(e){if(t[e])for(var n=t[e].slice(0),r=0;r<n.length;r++)n[r].handler.apply(n[r].context,Array.prototype.slice.call(arguments,1));},n.getEvents=function(){return Object.keys(t)},n.getEventListenerCount=function(e){return t[e]?t[e].length:0},n.maybeReportError=function(n){n&&(t.error?this.emit("error",n):(e||console).error(n.message));},n}(m),y=function(e){var n=!1,t=!1,r=null,o=null,i=new Promise((function(n){e.on("ready",(function t(){e.off("ready",t),n();}));})).catch((function(){}));return {getInitializationPromise:function(){return o||(n?Promise.resolve():t?Promise.reject(r):o=new Promise((function(n,t){e.on("initialized",(function t(){e.off("initialized",t),n();})),e.on("failed",(function n(r){e.off("failed",n),t(r);}));})))},getReadyPromise:function(){return i},signalSuccess:function(){n||t||(n=!0,e.emit("initialized"),e.emit("ready"));},signalFailure:function(o){n||t||(t=!0,r=o,e.emit("failed",o),e.emit("ready")),e.maybeReportError(o);}}}(h),w=Ne(o,h,s,m),b=w.sendEvents,k=n,E=w.hash,D=function(e,n){var t={},r=!1,o=function(e){r||(r=!0,n.warn(ee(e)));};return t.isEnabled=function(){return !!e},t.get=function(n){return new Promise((function(t){e?e.get(n).then(t).catch((function(e){o(e),t(void 0);})):t(void 0);}))},t.set=function(n,t){return new Promise((function(r){e?e.set(n,t).then((function(){return r(!0)})).catch((function(e){o(e),r(!1);})):r(!1);}))},t.clear=function(n){return new Promise((function(t){e?e.clear(n).then((function(){return t(!0)})).catch((function(e){o(e),t(!1);})):t(!1);}))},t}(i.localStorage,m),S=G(i,k,w),O=w.sendEvents&&!w.diagnosticOptOut,P=O?Fe(k):null,T=O?function(e){var n,t,r,o;function i(e){n=e,t=0,r=0,o=[];}return i(e),{getProps:function(){return {dataSinceDate:n,droppedEvents:t,eventsInLastBatch:r,streamInits:o}},setProps:function(e){n=e.dataSinceDate,t=e.droppedEvents||0,r=e.eventsInLastBatch||0,o=e.streamInits||[];},incrementDroppedEvents:function(){t++;},setEventsInLastBatch:function(e){r=e;},recordStreamInit:function(e,n,t){var r={timestamp:e,failed:n,durationMillis:t};o.push(r);},reset:i}}((new Date).getTime()):null,N=O?function(e,n,t,o,i,a,u){var s,c,l=!!e.diagnosticUseCombinedEvent,f="ld:"+i+":$diagnostics",d=a.eventsUrl+"/events/diagnostic/"+i,v=a.diagnosticRecordingInterval,g=t,p=!!a.streaming,m={};function h(){return {sdk:b(),configuration:(n={customBaseURI:a.baseUrl!==xe.baseUrl.default,customStreamURI:a.streamUrl!==xe.streamUrl.default,customEventsURI:a.eventsUrl!==xe.eventsUrl.default,eventsCapacity:a.eventCapacity,eventsFlushIntervalMillis:a.flushInterval,reconnectTimeMillis:a.streamReconnectDelay,streamingDisabled:!p,allAttributesPrivate:!!a.allAttributesPrivate,inlineUsersInEvents:!!a.inlineUsersInEvents,diagnosticRecordingIntervalMillis:a.diagnosticRecordingInterval,usingSecureMode:!!a.hash,bootstrapMode:!!a.bootstrap,fetchGoalsDisabled:!a.fetchGoals,allowFrequentDuplicateEvents:!!a.allowFrequentDuplicateEvents,sendEventsOnlyForVariation:!!a.sendEventsOnlyForVariation,autoAliasingOptOut:!!a.autoAliasingOptOut},n),platform:e.diagnosticPlatformData};var n;}function y(e){a.logger&&a.logger.debug(Oe.debugPostingDiagnosticEvent(e)),o.sendEvents(e,d,!0).then((function(){})).catch((function(){}));}function w(){var e,t;y((e=(new Date).getTime(),t=r({kind:l?"diagnostic-combined":"diagnostic",id:u,creationDate:e},g.getProps()),l&&(t=r({},t,{},h())),g.reset(e),t)),c=setTimeout(w,v),s=(new Date).getTime(),l&&function(){if(n.isEnabled()){var e=r({},g.getProps());n.set(f,JSON.stringify(e));}}();}function b(){var n=r({},e.diagnosticSdkData);return a.wrapperName&&(n.wrapperName=a.wrapperName),a.wrapperVersion&&(n.wrapperVersion=a.wrapperVersion),n}return m.start=function(){l?function(e){if(!n.isEnabled())return e(!1);n.get(f).then((function(n){if(n)try{var t=JSON.parse(n);g.setProps(t),s=t.dataSinceDate;}catch(e){}e(!0);})).catch((function(){e(!1);}));}((function(e){if(e){var n=(s||0)+v,t=(new Date).getTime();t>=n?w():c=setTimeout(w,n-t);}else 0===Math.floor(4*Math.random())?w():c=setTimeout(w,v);})):(y(r({kind:"diagnostic-init",id:u,creationDate:g.getProps().dataSinceDate},h())),c=setTimeout(w,v));},m.stop=function(){c&&clearTimeout(c);},m.setStreaming=function(e){p=e;},m}(i,D,T,S,k,w,P):null,x=Ue(i,w,k,T),F=w.eventProcessor||function(e,n,t){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s={},c=u||G(e,t,n),l=n.eventsUrl+"/events/bulk/"+t,f=X(),d=W(n),g=n.inlineUsersInEvents,p=n.samplingInterval,m=n.eventCapacity,h=n.flushInterval,y=n.logger,w=[],b=0,k=!1,E=!1;function D(){return 0===p||0===Math.floor(Math.random()*p)}function S(e){return !!e.debugEventsUntilDate&&e.debugEventsUntilDate>b&&e.debugEventsUntilDate>(new Date).getTime()}function O(e){var n=C({},e);return "alias"===e.kind||(g||"identify"===e.kind?n.user=d.filterUser(e.user):(n.userKey=e.user.key,delete n.user),"feature"===e.kind&&(delete n.trackEvents,delete n.debugEventsUntilDate)),n}function P(e){w.length<m?(w.push(e),E=!1):(E||(E=!0,y.warn("Exceeded event queue capacity. Increase capacity to avoid dropping events.")),o&&o.incrementDroppedEvents());}return s.enqueue=function(e){if(!k){var n=!1,t=!1;if(f.summarizeEvent(e),"feature"===e.kind?D()&&(n=!!e.trackEvents,t=S(e)):n=D(),n&&P(O(e)),t){var r=C({},e,{kind:"debug"});r.user=d.filterUser(r.user),delete r.trackEvents,delete r.debugEventsUntilDate,P(r);}}},s.flush=function(){if(k)return Promise.resolve();var e=w,n=f.getSummary();return f.clearSummary(),n&&(n.kind="summary",e.push(n)),o&&o.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(w=[],y.debug(Se(e.length)),c.sendEvents(e,l).then((function(e){e&&(e.serverTime&&(b=e.serverTime),v(e.status)||(k=!0),e.status>=400&&j((function(){i.maybeReportError(new a(le(e.status,"event posting","some events were dropped")));})));})))},s.start=function(){r=setTimeout((function e(){s.flush(),r=setTimeout(e,h);}),h);},s.stop=function(){clearTimeout(r);},s}(i,w,k,T,h,S),A=Re(i,w,k),_={},J={},z=w.streaming,M=!1,H=!1,K=!0,$=w.stateProvider,B=function(e,n){var t,r={setUser:function(e){var r=t&&U(t);(t=V(e))&&n&&n(U(t),r);},getUser:function(){return t?U(t):null}};return r}(0,(function(e,n){((function(e){$||e&&Z({kind:"identify",key:e.key,user:e,creationDate:(new Date).getTime()});}))(e),!w.autoAliasingOptOut&&n&&n.anonymous&&e&&!e.anonymous&&ce(e,n);})),Q=je(D),Y=D.isEnabled()?new Pe(D,k,E,B,m):null;function Z(e){if(k&&!($&&$.enqueueEvent&&$.enqueueEvent(e))){if("alias"!==e.kind){if(!e.user)return void(K&&(m.warn("Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"),K=!1));K=!1;}!b||H||i.isDoNotTrack()||(m.debug(De(e.kind)),F.enqueue(e));}}function ne(e,n,t,r){var o=B.getUser(),i=new Date,a=n?n.value:null;if(!w.allowFrequentDuplicateEvents){var u=JSON.stringify(a)+(o&&o.key?o.key:"")+e,s=_[u];if(s&&i-s<3e5)return;_[u]=i;}var c={kind:"feature",key:e,user:o,value:a,variation:n?n.variationIndex:null,default:t,creationDate:i.getTime()};o&&o.anonymous&&(c.contextKind=ue(o));var l=J[e];l&&(c.version=l.flagVersion?l.flagVersion:l.version,c.trackEvents=l.trackEvents,c.debugEventsUntilDate=l.debugEventsUntilDate),(r||l&&l.trackReason)&&n&&(c.reason=n.reason),Z(c);}function re(e,n,t,r){var o;if(J&&q(J,e)&&J[e]&&!J[e].deleted){var i=J[e];o=ae(i),null!==i.value&&void 0!==i.value||(o.value=n);}else o={value:n,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}};return t&&ne(e,o,n,r),o}function ae(e){return {value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function ue(e){return e.anonymous?"anonymousUser":"user"}function ce(e,n){$||e&&n&&Z({kind:"alias",key:e.key,contextKind:ue(e),previousKey:n.key,previousContextKind:ue(n),creationDate:(new Date).getTime()});}function fe(){if(g=!0,B.getUser()){var e=function(e){try{return JSON.parse(e)}catch(e){return void h.maybeReportError(new d("Invalid data received from LaunchDarkly; connection may have been interrupted"))}};x.connect(B.getUser(),E,{ping:function(){m.debug("received ping message from stream");var e=B.getUser();A.fetchFlagSettings(e,E).then((function(n){R(e,B.getUser())&&ve(n||{});})).catch((function(e){h.maybeReportError(new f(ie(e)));}));},put:function(n){var t=e(n.data);t&&(m.debug("received streaming update for all flags"),ve(t));},patch:function(n){var t=e(n.data);if(t){var r=J[t.key];if(!r||!r.version||!t.version||r.version<t.version){m.debug(we(t.key));var o={},i=C({},t);delete i.key,J[t.key]=i;var a=ae(i);o[t.key]=r?{previous:r.value,current:a}:{current:a},ge(o);}else m.debug(be(t.key));}},delete:function(n){var t=e(n.data);if(t)if(!J[t.key]||J[t.key].version<t.version){m.debug(ke(t.key));var r={};J[t.key]&&!J[t.key].deleted&&(r[t.key]={previous:J[t.key].value}),J[t.key]={version:t.version,deleted:!0},ge(r);}else m.debug(Ee(t.key));}});}}function de(){g&&(x.disconnect(),g=!1);}function ve(e){var n={};if(!e)return Promise.resolve();for(var t in J)q(J,t)&&J[t]&&(e[t]&&!R(e[t].value,J[t].value)?n[t]={previous:J[t].value,current:ae(e[t])}:e[t]&&!e[t].deleted||(n[t]={previous:J[t].value}));for(var o in e)q(e,o)&&e[o]&&(!J[o]||J[o].deleted)&&(n[o]={current:ae(e[o])});return J=r({},e),ge(n).catch((function(){}))}function ge(e){var n=Object.keys(e);if(n.length>0){var t={};n.forEach((function(n){var r=e[n].current,o=r?r.value:void 0,i=e[n].previous;h.emit("change:"+n,o,i),t[n]=r?{current:o,previous:i}:{previous:i};})),h.emit("change",t),h.emit("internal-change",J),w.sendEventsOnlyForVariation||$||n.forEach((function(n){ne(n,e[n].current);}));}return l&&Y?Y.saveFlags(J):Promise.resolve()}function pe(){var e=z||p&&void 0===z;e&&!g?fe():!e&&g&&de(),N&&N.setStreaming(e);}function me(e){return "change"===e||"change:"===e.substr(0,"change".length+1)}if("string"==typeof w.bootstrap&&"LOCALSTORAGE"===w.bootstrap.toUpperCase()&&(Y?l=!0:m.warn(ee())),"object"===e(w.bootstrap)&&(J=function(e){var n=Object.keys(e),t=e.$flagsState;!t&&n.length&&m.warn(se()),!1===e.$valid&&m.warn("LaunchDarkly bootstrap data is not available because the back end could not read the flags.");var r={};return n.forEach((function(n){if("$flagsState"!==n&&"$valid"!==n){var o={value:e[n]};t&&t[n]?o=C(o,t[n]):o.version=0,r[n]=o;}})),r}(w.bootstrap)),$){var he=$.getInitialState();he?ye(he):$.on("init",ye),$.on("update",(function(e){e.user&&B.setUser(e.user),e.flags&&ve(e.flags);}));}else (n?Q.validateUser(t).then((function(n){return B.setUser(n),"object"===e(w.bootstrap)?Ie():l?Y.loadFlags().then((function(e){return null==e?(J={},A.fetchFlagSettings(B.getUser(),E).then((function(e){return ve(e||{})})).then(Ie).catch((function(e){Le(new f(ie(e)));}))):(J=e,j(Ie),A.fetchFlagSettings(B.getUser(),E).then((function(e){return ve(e)})).catch((function(e){return h.maybeReportError(e)})))})):A.fetchFlagSettings(B.getUser(),E).then((function(e){J=e||{},Ie();})).catch((function(e){J={},Le(e);}))})):Promise.reject(new u(oe()))).catch(Le);function ye(e){k=e.environment,B.setUser(e.user),J=r({},e.flags),j(Ie);}function Ie(){m.info("LaunchDarkly client initialized"),M=!0,pe(),y.signalSuccess();}function Le(e){y.signalFailure(e);}return {client:{waitForInitialization:function(){return y.getInitializationPromise()},waitUntilReady:function(){return y.getReadyPromise()},identify:function(e,n,t){return H?I(Promise.resolve({}),t):$?(m.warn("identify() has no effect here; it must be called on the main client instance"),I(Promise.resolve(L(J)),t)):I((l&&Y?Y.clearFlags():Promise.resolve()).then((function(){return Q.validateUser(e)})).then((function(e){return A.fetchFlagSettings(e,n).then((function(t){var r=L(t);return B.setUser(e),E=n,t?ve(t).then((function(){return r})):r}))})).then((function(e){return g&&fe(),e})).catch((function(e){return h.maybeReportError(e),Promise.reject(e)})),t)},getUser:function(){return B.getUser()},variation:function(e,n){return re(e,n,!0,!1).value},variationDetail:function(e,n){return re(e,n,!0,!0)},track:function(e,n,t){if("string"==typeof e){i.customEventFilter&&!i.customEventFilter(e)&&m.warn(te(e));var r=B.getUser(),o={kind:"custom",key:e,user:r,url:i.getCurrentUrl(),creationDate:(new Date).getTime()};r&&r.anonymous&&(o.contextKind=ue(r)),null!=n&&(o.data=n),null!=t&&(o.metricValue=t),Z(o);}else h.maybeReportError(new c(te(e)));},alias:ce,on:function(e,n,t){me(e)?(p=!0,M&&pe(),h.on(e,n,t)):h.on.apply(h,arguments);},off:function(e){if(h.off.apply(h,arguments),me(e)){var n=!1;h.getEvents().forEach((function(e){me(e)&&h.getEventListenerCount(e)>0&&(n=!0);})),n||(p=!1,g&&void 0===z&&de());}},setStreaming:function(e){var n=null===e?void 0:e;n!==z&&(z=n,pe());},flush:function(e){return I(b?F.flush():Promise.resolve(),e)},allFlags:function(){var e={};if(!J)return e;for(var n in J)q(J,n)&&(e[n]=re(n,null,!w.sendEventsOnlyForVariation).value);return e},close:function(e){if(H)return I(Promise.resolve(),e);var n=function(){H=!0,J={};};return I(Promise.resolve().then((function(){if(de(),N&&N.stop(),b)return F.stop(),F.flush()})).then(n).catch(n),e)}},options:w,emitter:h,ident:B,logger:m,requestor:A,start:function(){b&&(N&&N.start(),F.start());},enqueueEvent:Z,getFlagsInternal:function(){return J},getEnvironmentId:function(){return k},internalChangeEventName:"internal-change"}}function Ce(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function qe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r);}return t}function Ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qe(Object(t),!0).forEach((function(n){Ce(e,n,t[n]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));}));}return e}var _e={promise:Promise.resolve({status:200,header:function(){return null},body:null})};function Je(e,n,t,r,o){if(o&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var n=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(n)return parseInt(n[2],10)<73}return !0}())return _e;var i=new window.XMLHttpRequest;for(var a in i.open(e,n,!o),t||{})Object.prototype.hasOwnProperty.call(t,a)&&i.setRequestHeader(a,t[a]);if(o)return i.send(r),_e;var u;return {promise:new Promise((function(e,n){i.addEventListener("load",(function(){u||e({status:i.status,header:function(e){return i.getResponseHeader(e)},body:i.responseText});})),i.addEventListener("error",(function(){u||n(new Error);})),i.send(r);})),cancel:function(){u=!0,i.abort();}}}function ze(e){var n,t={synchronousFlush:!1};if(window.XMLHttpRequest){var r=e&&e.disableSyncEventPost;t.httpRequest=function(e,n,o,i){var a=t.synchronousFlush&!r;return t.synchronousFlush=!1,Je(e,n,o,i,a)};}t.httpAllowsPost=function(){return void 0===n&&(n=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),n},t.httpFallbackPing=function(e){(new window.Image).src=e;};var o,i=e&&e.eventUrlTransformer;t.getCurrentUrl=function(){return i?i(window.location.href):window.location.href},t.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"yes"===e};try{window.localStorage&&(t.localStorage={get:function(e){return new Promise((function(n){n(window.localStorage.getItem(e));}))},set:function(e,n){return new Promise((function(t){window.localStorage.setItem(e,n),t();}))},clear:function(e){return new Promise((function(n){window.localStorage.removeItem(e),n();}))}});}catch(e){t.localStorage=null;}if(e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(t.eventSourceAllowsReport=!0,o=window.EventSourcePolyfill):(t.eventSourceAllowsReport=!1,o=window.EventSource),window.EventSource){var a=3e5;t.eventSourceFactory=function(e,n){var t=Ve(Ve({},{heartbeatTimeout:a,silentTimeout:a,skipDefaultHeaders:!0}),n);return new o(e,t)},t.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING};}return t.userAgent="JSClient",t.version="2.20.2",t.diagnosticSdkData={name:"js-client-sdk",version:"2.20.2"},t.diagnosticPlatformData={name:"JS"},t.diagnosticUseCombinedEvent=!0,t}var Me=/[|\\{}()[\]^$+*?.]/g,He=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Me,"\\$&")};function Ke(e,n,t,r){var o,i,a=(("substring"===e.kind||"regex"===e.kind)&&r.includes("/")?n:n.replace(r,"")).replace(t,"");switch(e.kind){case"exact":i=n,o=new RegExp("^"+He(e.url)+"/?$");break;case"canonical":i=a,o=new RegExp("^"+He(e.url)+"/?$");break;case"substring":i=a,o=new RegExp(".*"+He(e.substring)+".*$");break;case"regex":i=a,o=new RegExp(e.pattern);break;default:return !1}return o.test(i)}function $e(e,n){for(var t={},r=null,o=[],i=0;i<e.length;i++)for(var a=e[i],u=a.urls||[],s=0;s<u.length;s++)if(Ke(u[s],window.location.href,window.location.search,window.location.hash)){"pageview"===a.kind?n("pageview",a):(o.push(a),n("click_pageview",a));break}return o.length>0&&(r=function(e){for(var t=function(e,n){for(var t=[],r=0;r<n.length;r++)for(var o=e.target,i=n[r],a=i.selector,u=document.querySelectorAll(a);o&&u.length>0;){for(var s=0;s<u.length;s++)o===u[s]&&t.push(i);o=o.parentNode;}return t}(e,o),r=0;r<t.length;r++)n("click",t[r]);},document.addEventListener("click",r)),t.dispose=function(){document.removeEventListener("click",r);},t}function Be(e,n){var t,r;function o(){r&&r.dispose(),t&&t.length&&(r=$e(t,i));}function i(n,t){var r=e.ident.getUser(),o={kind:n,key:t.key,data:null,url:window.location.href,user:r,creationDate:(new Date).getTime()};return r&&r.anonymous&&(o.contextKind="anonymousUser"),"click"===n&&(o.selector=t.selector),e.enqueueEvent(o)}return e.requestor.fetchJSON("/sdk/goals/"+e.getEnvironmentId()).then((function(e){e&&e.length>0&&(r=$e(t=e,i),function(e,n){var t,r=window.location.href;function o(){(t=window.location.href)!==r&&(r=t,n());}!function e(n,t){n(),setTimeout((function(){e(n,t);}),t);}(o,e),window.history&&window.history.pushState?window.addEventListener("popstate",o):window.addEventListener("hashchange",o);}(300,o)),n();})).catch((function(t){e.emitter.maybeReportError(new g.LDUnexpectedResponseError((t&&t.message,t.message))),n();})),{}}var Ge={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function Xe(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ze(t),o=Ae(e,n,t,r,Ge),i=o.client,a=o.options,u=o.emitter,s=new Promise((function(e){var n=u.on("goalsReady",(function(){u.off("goalsReady",n),e();}));}));i.waitUntilGoalsReady=function(){return s},a.fetchGoals?Be(o,(function(){return u.emit("goalsReady")})):u.emit("goalsReady"),"complete"!==document.readyState?window.addEventListener("load",o.start):o.start();var c=function(){r.synchronousFlush=!0,i.flush().catch((function(){})),r.synchronousFlush=!1;};return window.addEventListener("beforeunload",c),window.addEventListener("unload",c),i}var Ye={initialize:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return console&&console.warn&&console.warn(Oe.deprecated("default export","named LDClient export")),Xe(e,n,t)},version:"2.20.2"};
|
|
16235
|
-
|
|
16236
|
-
/**
|
|
16237
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
16238
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
16239
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
16240
|
-
* Released under MIT license <https://lodash.com/license>
|
|
16241
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
16242
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
16243
|
-
*/
|
|
16244
|
-
|
|
16245
|
-
/** Used as references for various `Number` constants. */
|
|
16246
|
-
var INFINITY = 1 / 0;
|
|
16247
|
-
|
|
16248
|
-
/** `Object#toString` result references. */
|
|
16249
|
-
var symbolTag = '[object Symbol]';
|
|
16250
|
-
|
|
16251
|
-
/** Used to match words composed of alphanumeric characters. */
|
|
16252
|
-
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
16253
|
-
|
|
16254
|
-
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
|
16255
|
-
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
16256
|
-
|
|
16257
|
-
/** Used to compose unicode character classes. */
|
|
16258
|
-
var rsAstralRange = '\\ud800-\\udfff',
|
|
16259
|
-
rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
|
|
16260
|
-
rsComboSymbolsRange = '\\u20d0-\\u20f0',
|
|
16261
|
-
rsDingbatRange = '\\u2700-\\u27bf',
|
|
16262
|
-
rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
|
|
16263
|
-
rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
|
|
16264
|
-
rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
|
|
16265
|
-
rsPunctuationRange = '\\u2000-\\u206f',
|
|
16266
|
-
rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
|
|
16267
|
-
rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
|
|
16268
|
-
rsVarRange = '\\ufe0e\\ufe0f',
|
|
16269
|
-
rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
|
16270
|
-
|
|
16271
|
-
/** Used to compose unicode capture groups. */
|
|
16272
|
-
var rsApos = "['\u2019]",
|
|
16273
|
-
rsAstral = '[' + rsAstralRange + ']',
|
|
16274
|
-
rsBreak = '[' + rsBreakRange + ']',
|
|
16275
|
-
rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
|
|
16276
|
-
rsDigits = '\\d+',
|
|
16277
|
-
rsDingbat = '[' + rsDingbatRange + ']',
|
|
16278
|
-
rsLower = '[' + rsLowerRange + ']',
|
|
16279
|
-
rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
|
|
16280
|
-
rsFitz = '\\ud83c[\\udffb-\\udfff]',
|
|
16281
|
-
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
|
16282
|
-
rsNonAstral = '[^' + rsAstralRange + ']',
|
|
16283
|
-
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
|
16284
|
-
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
|
16285
|
-
rsUpper = '[' + rsUpperRange + ']',
|
|
16286
|
-
rsZWJ = '\\u200d';
|
|
16287
|
-
|
|
16288
|
-
/** Used to compose unicode regexes. */
|
|
16289
|
-
var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
|
|
16290
|
-
rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
|
|
16291
|
-
rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
|
|
16292
|
-
rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
|
|
16293
|
-
reOptMod = rsModifier + '?',
|
|
16294
|
-
rsOptVar = '[' + rsVarRange + ']?',
|
|
16295
|
-
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
|
16296
|
-
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
|
16297
|
-
rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
|
|
16298
|
-
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
|
|
16299
|
-
|
|
16300
|
-
/** Used to match apostrophes. */
|
|
16301
|
-
var reApos = RegExp(rsApos, 'g');
|
|
16302
|
-
|
|
16303
|
-
/**
|
|
16304
|
-
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
|
|
16305
|
-
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
|
|
16306
|
-
*/
|
|
16307
|
-
var reComboMark = RegExp(rsCombo, 'g');
|
|
16308
|
-
|
|
16309
|
-
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
|
|
16310
|
-
var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
|
16311
|
-
|
|
16312
|
-
/** Used to match complex or compound words. */
|
|
16313
|
-
var reUnicodeWord = RegExp([
|
|
16314
|
-
rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
|
|
16315
|
-
rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',
|
|
16316
|
-
rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
|
|
16317
|
-
rsUpper + '+' + rsOptUpperContr,
|
|
16318
|
-
rsDigits,
|
|
16319
|
-
rsEmoji
|
|
16320
|
-
].join('|'), 'g');
|
|
16321
|
-
|
|
16322
|
-
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
|
|
16323
|
-
var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
|
|
16324
|
-
|
|
16325
|
-
/** Used to detect strings that need a more robust regexp to match words. */
|
|
16326
|
-
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
16327
|
-
|
|
16328
|
-
/** Used to map Latin Unicode letters to basic Latin letters. */
|
|
16329
|
-
var deburredLetters = {
|
|
16330
|
-
// Latin-1 Supplement block.
|
|
16331
|
-
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
|
16332
|
-
'\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
|
|
16333
|
-
'\xc7': 'C', '\xe7': 'c',
|
|
16334
|
-
'\xd0': 'D', '\xf0': 'd',
|
|
16335
|
-
'\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
|
|
16336
|
-
'\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
|
|
16337
|
-
'\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
|
|
16338
|
-
'\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
|
|
16339
|
-
'\xd1': 'N', '\xf1': 'n',
|
|
16340
|
-
'\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
|
|
16341
|
-
'\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
|
|
16342
|
-
'\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
|
|
16343
|
-
'\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
|
|
16344
|
-
'\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
|
|
16345
|
-
'\xc6': 'Ae', '\xe6': 'ae',
|
|
16346
|
-
'\xde': 'Th', '\xfe': 'th',
|
|
16347
|
-
'\xdf': 'ss',
|
|
16348
|
-
// Latin Extended-A block.
|
|
16349
|
-
'\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
|
|
16350
|
-
'\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
|
|
16351
|
-
'\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
|
|
16352
|
-
'\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
|
|
16353
|
-
'\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
|
|
16354
|
-
'\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
|
|
16355
|
-
'\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
|
|
16356
|
-
'\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
|
|
16357
|
-
'\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
|
|
16358
|
-
'\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
|
|
16359
|
-
'\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
|
|
16360
|
-
'\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
|
|
16361
|
-
'\u0134': 'J', '\u0135': 'j',
|
|
16362
|
-
'\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
|
|
16363
|
-
'\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
|
|
16364
|
-
'\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
|
|
16365
|
-
'\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
|
|
16366
|
-
'\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
|
|
16367
|
-
'\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
|
|
16368
|
-
'\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
|
|
16369
|
-
'\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
|
|
16370
|
-
'\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
|
|
16371
|
-
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
|
|
16372
|
-
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
|
|
16373
|
-
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
|
|
16374
|
-
'\u0163': 't', '\u0165': 't', '\u0167': 't',
|
|
16375
|
-
'\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
|
|
16376
|
-
'\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
|
|
16377
|
-
'\u0174': 'W', '\u0175': 'w',
|
|
16378
|
-
'\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
|
|
16379
|
-
'\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
|
|
16380
|
-
'\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
|
|
16381
|
-
'\u0132': 'IJ', '\u0133': 'ij',
|
|
16382
|
-
'\u0152': 'Oe', '\u0153': 'oe',
|
|
16383
|
-
'\u0149': "'n", '\u017f': 'ss'
|
|
16384
|
-
};
|
|
16385
|
-
|
|
16386
|
-
/** Detect free variable `global` from Node.js. */
|
|
16387
|
-
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
16388
|
-
|
|
16389
|
-
/** Detect free variable `self`. */
|
|
16390
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
16391
|
-
|
|
16392
|
-
/** Used as a reference to the global object. */
|
|
16393
|
-
var root = freeGlobal || freeSelf || Function('return this')();
|
|
16394
|
-
|
|
16395
|
-
/**
|
|
16396
|
-
* A specialized version of `_.reduce` for arrays without support for
|
|
16397
|
-
* iteratee shorthands.
|
|
16398
|
-
*
|
|
16399
|
-
* @private
|
|
16400
|
-
* @param {Array} [array] The array to iterate over.
|
|
16401
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
16402
|
-
* @param {*} [accumulator] The initial value.
|
|
16403
|
-
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
16404
|
-
* the initial value.
|
|
16405
|
-
* @returns {*} Returns the accumulated value.
|
|
16406
|
-
*/
|
|
16407
|
-
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
16408
|
-
var index = -1,
|
|
16409
|
-
length = array ? array.length : 0;
|
|
16410
|
-
|
|
16411
|
-
if (initAccum && length) {
|
|
16412
|
-
accumulator = array[++index];
|
|
16413
|
-
}
|
|
16414
|
-
while (++index < length) {
|
|
16415
|
-
accumulator = iteratee(accumulator, array[index], index, array);
|
|
16416
|
-
}
|
|
16417
|
-
return accumulator;
|
|
16418
|
-
}
|
|
16419
|
-
|
|
16420
|
-
/**
|
|
16421
|
-
* Converts an ASCII `string` to an array.
|
|
16422
|
-
*
|
|
16423
|
-
* @private
|
|
16424
|
-
* @param {string} string The string to convert.
|
|
16425
|
-
* @returns {Array} Returns the converted array.
|
|
16426
|
-
*/
|
|
16427
|
-
function asciiToArray(string) {
|
|
16428
|
-
return string.split('');
|
|
16429
|
-
}
|
|
16430
|
-
|
|
16431
|
-
/**
|
|
16432
|
-
* Splits an ASCII `string` into an array of its words.
|
|
16433
|
-
*
|
|
16434
|
-
* @private
|
|
16435
|
-
* @param {string} The string to inspect.
|
|
16436
|
-
* @returns {Array} Returns the words of `string`.
|
|
16437
|
-
*/
|
|
16438
|
-
function asciiWords(string) {
|
|
16439
|
-
return string.match(reAsciiWord) || [];
|
|
16440
|
-
}
|
|
16441
|
-
|
|
16442
|
-
/**
|
|
16443
|
-
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
16444
|
-
*
|
|
16445
|
-
* @private
|
|
16446
|
-
* @param {Object} object The object to query.
|
|
16447
|
-
* @returns {Function} Returns the new accessor function.
|
|
16448
|
-
*/
|
|
16449
|
-
function basePropertyOf(object) {
|
|
16450
|
-
return function(key) {
|
|
16451
|
-
return object == null ? undefined : object[key];
|
|
16452
|
-
};
|
|
16453
|
-
}
|
|
16454
|
-
|
|
16455
|
-
/**
|
|
16456
|
-
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
16457
|
-
* letters to basic Latin letters.
|
|
16458
|
-
*
|
|
16459
|
-
* @private
|
|
16460
|
-
* @param {string} letter The matched letter to deburr.
|
|
16461
|
-
* @returns {string} Returns the deburred letter.
|
|
16462
|
-
*/
|
|
16463
|
-
var deburrLetter = basePropertyOf(deburredLetters);
|
|
16464
|
-
|
|
16465
|
-
/**
|
|
16466
|
-
* Checks if `string` contains Unicode symbols.
|
|
16467
|
-
*
|
|
16468
|
-
* @private
|
|
16469
|
-
* @param {string} string The string to inspect.
|
|
16470
|
-
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
|
|
16471
|
-
*/
|
|
16472
|
-
function hasUnicode(string) {
|
|
16473
|
-
return reHasUnicode.test(string);
|
|
16474
|
-
}
|
|
16475
|
-
|
|
16476
|
-
/**
|
|
16477
|
-
* Checks if `string` contains a word composed of Unicode symbols.
|
|
16478
|
-
*
|
|
16479
|
-
* @private
|
|
16480
|
-
* @param {string} string The string to inspect.
|
|
16481
|
-
* @returns {boolean} Returns `true` if a word is found, else `false`.
|
|
16482
|
-
*/
|
|
16483
|
-
function hasUnicodeWord(string) {
|
|
16484
|
-
return reHasUnicodeWord.test(string);
|
|
16485
|
-
}
|
|
16486
|
-
|
|
16487
|
-
/**
|
|
16488
|
-
* Converts `string` to an array.
|
|
16489
|
-
*
|
|
16490
|
-
* @private
|
|
16491
|
-
* @param {string} string The string to convert.
|
|
16492
|
-
* @returns {Array} Returns the converted array.
|
|
16493
|
-
*/
|
|
16494
|
-
function stringToArray(string) {
|
|
16495
|
-
return hasUnicode(string)
|
|
16496
|
-
? unicodeToArray(string)
|
|
16497
|
-
: asciiToArray(string);
|
|
16498
|
-
}
|
|
16499
|
-
|
|
16500
|
-
/**
|
|
16501
|
-
* Converts a Unicode `string` to an array.
|
|
16502
|
-
*
|
|
16503
|
-
* @private
|
|
16504
|
-
* @param {string} string The string to convert.
|
|
16505
|
-
* @returns {Array} Returns the converted array.
|
|
16506
|
-
*/
|
|
16507
|
-
function unicodeToArray(string) {
|
|
16508
|
-
return string.match(reUnicode) || [];
|
|
16509
|
-
}
|
|
16510
|
-
|
|
16511
|
-
/**
|
|
16512
|
-
* Splits a Unicode `string` into an array of its words.
|
|
16513
|
-
*
|
|
16514
|
-
* @private
|
|
16515
|
-
* @param {string} The string to inspect.
|
|
16516
|
-
* @returns {Array} Returns the words of `string`.
|
|
16517
|
-
*/
|
|
16518
|
-
function unicodeWords(string) {
|
|
16519
|
-
return string.match(reUnicodeWord) || [];
|
|
16520
|
-
}
|
|
16521
|
-
|
|
16522
|
-
/** Used for built-in method references. */
|
|
16523
|
-
var objectProto = Object.prototype;
|
|
16524
|
-
|
|
16525
|
-
/**
|
|
16526
|
-
* Used to resolve the
|
|
16527
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
16528
|
-
* of values.
|
|
16529
|
-
*/
|
|
16530
|
-
var objectToString = objectProto.toString;
|
|
16531
|
-
|
|
16532
|
-
/** Built-in value references. */
|
|
16533
|
-
var Symbol$1 = root.Symbol;
|
|
16534
|
-
|
|
16535
|
-
/** Used to convert symbols to primitives and strings. */
|
|
16536
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
16537
|
-
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
16538
|
-
|
|
16539
|
-
/**
|
|
16540
|
-
* The base implementation of `_.slice` without an iteratee call guard.
|
|
16541
|
-
*
|
|
16542
|
-
* @private
|
|
16543
|
-
* @param {Array} array The array to slice.
|
|
16544
|
-
* @param {number} [start=0] The start position.
|
|
16545
|
-
* @param {number} [end=array.length] The end position.
|
|
16546
|
-
* @returns {Array} Returns the slice of `array`.
|
|
16547
|
-
*/
|
|
16548
|
-
function baseSlice(array, start, end) {
|
|
16549
|
-
var index = -1,
|
|
16550
|
-
length = array.length;
|
|
16551
|
-
|
|
16552
|
-
if (start < 0) {
|
|
16553
|
-
start = -start > length ? 0 : (length + start);
|
|
16554
|
-
}
|
|
16555
|
-
end = end > length ? length : end;
|
|
16556
|
-
if (end < 0) {
|
|
16557
|
-
end += length;
|
|
16558
|
-
}
|
|
16559
|
-
length = start > end ? 0 : ((end - start) >>> 0);
|
|
16560
|
-
start >>>= 0;
|
|
16561
|
-
|
|
16562
|
-
var result = Array(length);
|
|
16563
|
-
while (++index < length) {
|
|
16564
|
-
result[index] = array[index + start];
|
|
16565
|
-
}
|
|
16566
|
-
return result;
|
|
16567
|
-
}
|
|
16568
|
-
|
|
16569
|
-
/**
|
|
16570
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
16571
|
-
* values to empty strings.
|
|
16572
|
-
*
|
|
16573
|
-
* @private
|
|
16574
|
-
* @param {*} value The value to process.
|
|
16575
|
-
* @returns {string} Returns the string.
|
|
16576
|
-
*/
|
|
16577
|
-
function baseToString(value) {
|
|
16578
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
16579
|
-
if (typeof value == 'string') {
|
|
16580
|
-
return value;
|
|
16581
|
-
}
|
|
16582
|
-
if (isSymbol(value)) {
|
|
16583
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
16584
|
-
}
|
|
16585
|
-
var result = (value + '');
|
|
16586
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
16587
|
-
}
|
|
16588
|
-
|
|
16589
|
-
/**
|
|
16590
|
-
* Casts `array` to a slice if it's needed.
|
|
16591
|
-
*
|
|
16592
|
-
* @private
|
|
16593
|
-
* @param {Array} array The array to inspect.
|
|
16594
|
-
* @param {number} start The start position.
|
|
16595
|
-
* @param {number} [end=array.length] The end position.
|
|
16596
|
-
* @returns {Array} Returns the cast slice.
|
|
16597
|
-
*/
|
|
16598
|
-
function castSlice(array, start, end) {
|
|
16599
|
-
var length = array.length;
|
|
16600
|
-
end = end === undefined ? length : end;
|
|
16601
|
-
return (!start && end >= length) ? array : baseSlice(array, start, end);
|
|
16602
|
-
}
|
|
16603
|
-
|
|
16604
|
-
/**
|
|
16605
|
-
* Creates a function like `_.lowerFirst`.
|
|
16606
|
-
*
|
|
16607
|
-
* @private
|
|
16608
|
-
* @param {string} methodName The name of the `String` case method to use.
|
|
16609
|
-
* @returns {Function} Returns the new case function.
|
|
16610
|
-
*/
|
|
16611
|
-
function createCaseFirst(methodName) {
|
|
16612
|
-
return function(string) {
|
|
16613
|
-
string = toString(string);
|
|
16614
|
-
|
|
16615
|
-
var strSymbols = hasUnicode(string)
|
|
16616
|
-
? stringToArray(string)
|
|
16617
|
-
: undefined;
|
|
16618
|
-
|
|
16619
|
-
var chr = strSymbols
|
|
16620
|
-
? strSymbols[0]
|
|
16621
|
-
: string.charAt(0);
|
|
16622
|
-
|
|
16623
|
-
var trailing = strSymbols
|
|
16624
|
-
? castSlice(strSymbols, 1).join('')
|
|
16625
|
-
: string.slice(1);
|
|
16626
|
-
|
|
16627
|
-
return chr[methodName]() + trailing;
|
|
16628
|
-
};
|
|
16629
|
-
}
|
|
16630
|
-
|
|
16631
|
-
/**
|
|
16632
|
-
* Creates a function like `_.camelCase`.
|
|
16633
|
-
*
|
|
16634
|
-
* @private
|
|
16635
|
-
* @param {Function} callback The function to combine each word.
|
|
16636
|
-
* @returns {Function} Returns the new compounder function.
|
|
16637
|
-
*/
|
|
16638
|
-
function createCompounder(callback) {
|
|
16639
|
-
return function(string) {
|
|
16640
|
-
return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
|
|
16641
|
-
};
|
|
16642
|
-
}
|
|
16643
|
-
|
|
16644
|
-
/**
|
|
16645
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
16646
|
-
* and has a `typeof` result of "object".
|
|
16647
|
-
*
|
|
16648
|
-
* @static
|
|
16649
|
-
* @memberOf _
|
|
16650
|
-
* @since 4.0.0
|
|
16651
|
-
* @category Lang
|
|
16652
|
-
* @param {*} value The value to check.
|
|
16653
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
16654
|
-
* @example
|
|
16655
|
-
*
|
|
16656
|
-
* _.isObjectLike({});
|
|
16657
|
-
* // => true
|
|
16658
|
-
*
|
|
16659
|
-
* _.isObjectLike([1, 2, 3]);
|
|
16660
|
-
* // => true
|
|
16661
|
-
*
|
|
16662
|
-
* _.isObjectLike(_.noop);
|
|
16663
|
-
* // => false
|
|
16664
|
-
*
|
|
16665
|
-
* _.isObjectLike(null);
|
|
16666
|
-
* // => false
|
|
16667
|
-
*/
|
|
16668
|
-
function isObjectLike(value) {
|
|
16669
|
-
return !!value && typeof value == 'object';
|
|
16670
|
-
}
|
|
16671
|
-
|
|
16672
|
-
/**
|
|
16673
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
16674
|
-
*
|
|
16675
|
-
* @static
|
|
16676
|
-
* @memberOf _
|
|
16677
|
-
* @since 4.0.0
|
|
16678
|
-
* @category Lang
|
|
16679
|
-
* @param {*} value The value to check.
|
|
16680
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
16681
|
-
* @example
|
|
16682
|
-
*
|
|
16683
|
-
* _.isSymbol(Symbol.iterator);
|
|
16684
|
-
* // => true
|
|
16685
|
-
*
|
|
16686
|
-
* _.isSymbol('abc');
|
|
16687
|
-
* // => false
|
|
16688
|
-
*/
|
|
16689
|
-
function isSymbol(value) {
|
|
16690
|
-
return typeof value == 'symbol' ||
|
|
16691
|
-
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
16692
|
-
}
|
|
16693
|
-
|
|
16694
|
-
/**
|
|
16695
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
16696
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
16697
|
-
*
|
|
16698
|
-
* @static
|
|
16699
|
-
* @memberOf _
|
|
16700
|
-
* @since 4.0.0
|
|
16701
|
-
* @category Lang
|
|
16702
|
-
* @param {*} value The value to process.
|
|
16703
|
-
* @returns {string} Returns the string.
|
|
16704
|
-
* @example
|
|
16705
|
-
*
|
|
16706
|
-
* _.toString(null);
|
|
16707
|
-
* // => ''
|
|
16708
|
-
*
|
|
16709
|
-
* _.toString(-0);
|
|
16710
|
-
* // => '-0'
|
|
16711
|
-
*
|
|
16712
|
-
* _.toString([1, 2, 3]);
|
|
16713
|
-
* // => '1,2,3'
|
|
16714
|
-
*/
|
|
16715
|
-
function toString(value) {
|
|
16716
|
-
return value == null ? '' : baseToString(value);
|
|
16717
|
-
}
|
|
16718
|
-
|
|
16719
|
-
/**
|
|
16720
|
-
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
|
16721
|
-
*
|
|
16722
|
-
* @static
|
|
16723
|
-
* @memberOf _
|
|
16724
|
-
* @since 3.0.0
|
|
16725
|
-
* @category String
|
|
16726
|
-
* @param {string} [string=''] The string to convert.
|
|
16727
|
-
* @returns {string} Returns the camel cased string.
|
|
16728
|
-
* @example
|
|
16729
|
-
*
|
|
16730
|
-
* _.camelCase('Foo Bar');
|
|
16731
|
-
* // => 'fooBar'
|
|
16732
|
-
*
|
|
16733
|
-
* _.camelCase('--foo-bar--');
|
|
16734
|
-
* // => 'fooBar'
|
|
16735
|
-
*
|
|
16736
|
-
* _.camelCase('__FOO_BAR__');
|
|
16737
|
-
* // => 'fooBar'
|
|
16738
|
-
*/
|
|
16739
|
-
var camelCase = createCompounder(function(result, word, index) {
|
|
16740
|
-
word = word.toLowerCase();
|
|
16741
|
-
return result + (index ? capitalize(word) : word);
|
|
16742
|
-
});
|
|
16743
|
-
|
|
16744
|
-
/**
|
|
16745
|
-
* Converts the first character of `string` to upper case and the remaining
|
|
16746
|
-
* to lower case.
|
|
16747
|
-
*
|
|
16748
|
-
* @static
|
|
16749
|
-
* @memberOf _
|
|
16750
|
-
* @since 3.0.0
|
|
16751
|
-
* @category String
|
|
16752
|
-
* @param {string} [string=''] The string to capitalize.
|
|
16753
|
-
* @returns {string} Returns the capitalized string.
|
|
16754
|
-
* @example
|
|
16755
|
-
*
|
|
16756
|
-
* _.capitalize('FRED');
|
|
16757
|
-
* // => 'Fred'
|
|
16758
|
-
*/
|
|
16759
|
-
function capitalize(string) {
|
|
16760
|
-
return upperFirst(toString(string).toLowerCase());
|
|
16761
|
-
}
|
|
16762
|
-
|
|
16763
|
-
/**
|
|
16764
|
-
* Deburrs `string` by converting
|
|
16765
|
-
* [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
|
|
16766
|
-
* and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
|
|
16767
|
-
* letters to basic Latin letters and removing
|
|
16768
|
-
* [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
|
|
16769
|
-
*
|
|
16770
|
-
* @static
|
|
16771
|
-
* @memberOf _
|
|
16772
|
-
* @since 3.0.0
|
|
16773
|
-
* @category String
|
|
16774
|
-
* @param {string} [string=''] The string to deburr.
|
|
16775
|
-
* @returns {string} Returns the deburred string.
|
|
16776
|
-
* @example
|
|
16777
|
-
*
|
|
16778
|
-
* _.deburr('déjà vu');
|
|
16779
|
-
* // => 'deja vu'
|
|
16780
|
-
*/
|
|
16781
|
-
function deburr(string) {
|
|
16782
|
-
string = toString(string);
|
|
16783
|
-
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
|
|
16784
|
-
}
|
|
16785
|
-
|
|
16786
|
-
/**
|
|
16787
|
-
* Converts the first character of `string` to upper case.
|
|
16788
|
-
*
|
|
16789
|
-
* @static
|
|
16790
|
-
* @memberOf _
|
|
16791
|
-
* @since 4.0.0
|
|
16792
|
-
* @category String
|
|
16793
|
-
* @param {string} [string=''] The string to convert.
|
|
16794
|
-
* @returns {string} Returns the converted string.
|
|
16795
|
-
* @example
|
|
16796
|
-
*
|
|
16797
|
-
* _.upperFirst('fred');
|
|
16798
|
-
* // => 'Fred'
|
|
16799
|
-
*
|
|
16800
|
-
* _.upperFirst('FRED');
|
|
16801
|
-
* // => 'FRED'
|
|
16802
|
-
*/
|
|
16803
|
-
var upperFirst = createCaseFirst('toUpperCase');
|
|
16804
|
-
|
|
16805
|
-
/**
|
|
16806
|
-
* Splits `string` into an array of its words.
|
|
16807
|
-
*
|
|
16808
|
-
* @static
|
|
16809
|
-
* @memberOf _
|
|
16810
|
-
* @since 3.0.0
|
|
16811
|
-
* @category String
|
|
16812
|
-
* @param {string} [string=''] The string to inspect.
|
|
16813
|
-
* @param {RegExp|string} [pattern] The pattern to match words.
|
|
16814
|
-
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
16815
|
-
* @returns {Array} Returns the words of `string`.
|
|
16816
|
-
* @example
|
|
16817
|
-
*
|
|
16818
|
-
* _.words('fred, barney, & pebbles');
|
|
16819
|
-
* // => ['fred', 'barney', 'pebbles']
|
|
16820
|
-
*
|
|
16821
|
-
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
|
16822
|
-
* // => ['fred', 'barney', '&', 'pebbles']
|
|
16823
|
-
*/
|
|
16824
|
-
function words(string, pattern, guard) {
|
|
16825
|
-
string = toString(string);
|
|
16826
|
-
pattern = guard ? undefined : pattern;
|
|
16827
|
-
|
|
16828
|
-
if (pattern === undefined) {
|
|
16829
|
-
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
16830
|
-
}
|
|
16831
|
-
return string.match(pattern) || [];
|
|
16832
|
-
}
|
|
16833
|
-
|
|
16834
|
-
var lodash_camelcase = camelCase;
|
|
16835
|
-
|
|
16836
|
-
var utils = createCommonjsModule(function (module, exports) {
|
|
16837
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
16838
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16839
|
-
};
|
|
16840
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16841
|
-
exports.fetchFlags = exports.getFlattenedFlagsFromChangeset = exports.camelCaseKeys = void 0;
|
|
16842
|
-
var lodash_camelcase_1 = __importDefault(lodash_camelcase);
|
|
16843
|
-
|
|
16844
|
-
/**
|
|
16845
|
-
* Transforms a set of flags so that their keys are camelCased. This function ignores
|
|
16846
|
-
* flag keys which start with `$`.
|
|
16847
|
-
*
|
|
16848
|
-
* @param rawFlags A mapping of flag keys and their values
|
|
16849
|
-
* @return A transformed `LDFlagSet` with camelCased flag keys
|
|
16850
|
-
*/
|
|
16851
|
-
var camelCaseKeys = function (rawFlags) {
|
|
16852
|
-
var flags = {};
|
|
16853
|
-
for (var rawFlag in rawFlags) {
|
|
16854
|
-
// Exclude system keys
|
|
16855
|
-
if (rawFlag.indexOf('$') !== 0) {
|
|
16856
|
-
flags[(0, lodash_camelcase_1.default)(rawFlag)] = rawFlags[rawFlag]; // tslint:disable-line:no-unsafe-any
|
|
16857
|
-
}
|
|
16858
|
-
}
|
|
16859
|
-
return flags;
|
|
16860
|
-
};
|
|
16861
|
-
exports.camelCaseKeys = camelCaseKeys;
|
|
16862
|
-
/**
|
|
16863
|
-
* Gets the flags to pass to the provider from the changeset.
|
|
16864
|
-
*
|
|
16865
|
-
* @param changes the `LDFlagChangeset` from the ldClient onchange handler.
|
|
16866
|
-
* @param targetFlags if targetFlags are specified, changes to other flags are ignored and not returned in the
|
|
16867
|
-
* flattened `LDFlagSet`
|
|
16868
|
-
* @param reactOptions reactOptions.useCamelCaseFlagKeys determines whether to change the flag keys to camelCase
|
|
16869
|
-
* @return an `LDFlagSet` with the current flag values from the LDFlagChangeset filtered by `targetFlags`. The returned
|
|
16870
|
-
* object may be empty `{}` if none of the targetFlags were changed.
|
|
16871
|
-
*/
|
|
16872
|
-
var getFlattenedFlagsFromChangeset = function (changes, targetFlags, reactOptions) {
|
|
16873
|
-
var flattened = {};
|
|
16874
|
-
for (var key in changes) {
|
|
16875
|
-
if (!targetFlags || targetFlags[key] !== undefined) {
|
|
16876
|
-
// tslint:disable-next-line:no-unsafe-any
|
|
16877
|
-
var flagKey = reactOptions.useCamelCaseFlagKeys ? (0, lodash_camelcase_1.default)(key) : key;
|
|
16878
|
-
flattened[flagKey] = changes[key].current;
|
|
16879
|
-
}
|
|
16880
|
-
}
|
|
16881
|
-
return flattened;
|
|
16882
|
-
};
|
|
16883
|
-
exports.getFlattenedFlagsFromChangeset = getFlattenedFlagsFromChangeset;
|
|
16884
|
-
/**
|
|
16885
|
-
* Retrieves flag values.
|
|
16886
|
-
*
|
|
16887
|
-
* @param ldClient LaunchDarkly client
|
|
16888
|
-
* @param reactOptions Initialization options for the LaunchDarkly React SDK
|
|
16889
|
-
* @param targetFlags If specified, `launchdarkly-react-client-sdk` will only request and listen to these flags.
|
|
16890
|
-
*
|
|
16891
|
-
* @returns an `LDFlagSet` with the current flag values from LaunchDarkly filtered by `targetFlags`.
|
|
16892
|
-
*/
|
|
16893
|
-
var fetchFlags = function (ldClient, reactOptions, targetFlags) {
|
|
16894
|
-
if (reactOptions === void 0) { reactOptions = types$1.defaultReactOptions; }
|
|
16895
|
-
var rawFlags = {};
|
|
16896
|
-
if (targetFlags) {
|
|
16897
|
-
for (var flag in targetFlags) {
|
|
16898
|
-
rawFlags[flag] = ldClient.variation(flag, targetFlags[flag]);
|
|
16899
|
-
}
|
|
16900
|
-
}
|
|
16901
|
-
else {
|
|
16902
|
-
rawFlags = ldClient.allFlags();
|
|
16903
|
-
}
|
|
16904
|
-
return reactOptions.useCamelCaseFlagKeys ? (0, exports.camelCaseKeys)(rawFlags) : rawFlags;
|
|
16905
|
-
};
|
|
16906
|
-
exports.fetchFlags = fetchFlags;
|
|
16907
|
-
/**
|
|
16908
|
-
* @deprecated The `camelCaseKeys.camelCaseKeys` property will be removed in a future version,
|
|
16909
|
-
* please update your code to use the `camelCaseKeys` function directly.
|
|
16910
|
-
*/
|
|
16911
|
-
// tslint:disable-next-line deprecation
|
|
16912
|
-
exports.camelCaseKeys.camelCaseKeys = exports.camelCaseKeys;
|
|
16913
|
-
exports.default = { camelCaseKeys: exports.camelCaseKeys, getFlattenedFlagsFromChangeset: exports.getFlattenedFlagsFromChangeset, fetchFlags: exports.fetchFlags };
|
|
16914
|
-
|
|
16915
|
-
});
|
|
16916
|
-
|
|
16917
|
-
unwrapExports(utils);
|
|
16918
|
-
utils.fetchFlags;
|
|
16919
|
-
utils.getFlattenedFlagsFromChangeset;
|
|
16920
|
-
utils.camelCaseKeys;
|
|
16921
|
-
|
|
16922
|
-
var name = "launchdarkly-react-client-sdk";
|
|
16923
|
-
var version = "2.25.1";
|
|
16924
|
-
var description = "LaunchDarkly SDK for React";
|
|
16925
|
-
var author = "LaunchDarkly <team@launchdarkly.com>";
|
|
16926
|
-
var license = "Apache-2.0";
|
|
16927
|
-
var keywords = [
|
|
16928
|
-
"launchdarkly",
|
|
16929
|
-
"launch",
|
|
16930
|
-
"darkly",
|
|
16931
|
-
"react",
|
|
16932
|
-
"sdk",
|
|
16933
|
-
"bindings"
|
|
16934
|
-
];
|
|
16935
|
-
var main = "lib/index.js";
|
|
16936
|
-
var types = "lib/index.d.ts";
|
|
16937
|
-
var files = [
|
|
16938
|
-
"lib",
|
|
16939
|
-
"src",
|
|
16940
|
-
"!**/*.test.*",
|
|
16941
|
-
"!**/__snapshots__"
|
|
16942
|
-
];
|
|
16943
|
-
var scripts = {
|
|
16944
|
-
test: "jest",
|
|
16945
|
-
"test:junit": "jest --ci --reporters=default --reporters=jest-junit",
|
|
16946
|
-
build: "rimraf lib/* && tsc && mv lib/src/* lib && rimraf lib/package.json lib/src lib/*.test.*",
|
|
16947
|
-
lint: "tslint -p tsconfig.json 'src/**/*.ts*'",
|
|
16948
|
-
"lint:all": "npm run lint",
|
|
16949
|
-
"check-typescript": "tsc",
|
|
16950
|
-
prepublishOnly: "npm run build",
|
|
16951
|
-
prettier: "prettier --write 'src/*.@(js|ts|tsx|json|css)'",
|
|
16952
|
-
"link-dev": "./link-dev.sh"
|
|
16953
|
-
};
|
|
16954
|
-
var repository = {
|
|
16955
|
-
type: "git",
|
|
16956
|
-
url: "git://github.com/launchdarkly/react-client-sdk.git"
|
|
16957
|
-
};
|
|
16958
|
-
var homepage = "https://github.com/launchdarkly/react-client-sdk";
|
|
16959
|
-
var devDependencies = {
|
|
16960
|
-
"@testing-library/jest-dom": "^5.16.1",
|
|
16961
|
-
"@testing-library/react": "^12.1.2",
|
|
16962
|
-
"@types/enzyme": "^3.10.3",
|
|
16963
|
-
"@types/hoist-non-react-statics": "^3.3.1",
|
|
16964
|
-
"@types/jest": "^27.0.3",
|
|
16965
|
-
"@types/lodash.camelcase": "^4.3.6",
|
|
16966
|
-
"@types/prop-types": "^15.7.4",
|
|
16967
|
-
"@types/react": "^17.0.37",
|
|
16968
|
-
"@types/react-dom": "^17.0.11",
|
|
16969
|
-
"@types/react-test-renderer": "^17.0.1",
|
|
16970
|
-
"@types/uuid": "^3.4.5",
|
|
16971
|
-
enzyme: "^3.10.0",
|
|
16972
|
-
"enzyme-adapter-react-16": "^1.14.0",
|
|
16973
|
-
jest: "^27.4.4",
|
|
16974
|
-
"jest-environment-jsdom-global": "^3.0.0",
|
|
16975
|
-
"jest-junit": "^13.0.0",
|
|
16976
|
-
prettier: "^1.18.2",
|
|
16977
|
-
"prop-types": "^15.7.2",
|
|
16978
|
-
react: "^17.0.0",
|
|
16979
|
-
"react-dom": "^17.0.0",
|
|
16980
|
-
"react-test-renderer": "^17.0.2",
|
|
16981
|
-
rimraf: "^3.0.0",
|
|
16982
|
-
"ts-jest": "^27.1.1",
|
|
16983
|
-
tslint: "^6.1.3",
|
|
16984
|
-
"tslint-config-prettier": "^1.18.0",
|
|
16985
|
-
"tslint-plugin-prettier": "^2.3.0",
|
|
16986
|
-
typescript: "^4.5.3"
|
|
16987
|
-
};
|
|
16988
|
-
var dependencies = {
|
|
16989
|
-
"hoist-non-react-statics": "^3.3.2",
|
|
16990
|
-
"launchdarkly-js-client-sdk": "2.20.2",
|
|
16991
|
-
"lodash.camelcase": "^4.3.0",
|
|
16992
|
-
uuid: "^3.3.2"
|
|
16993
|
-
};
|
|
16994
|
-
var peerDependencies = {
|
|
16995
|
-
react: "^16.6.3 || ^17.0.0",
|
|
16996
|
-
"react-dom": "^16.8.4 || ^17.0.0"
|
|
16997
|
-
};
|
|
16998
|
-
var _resolved = "https://registry.npmjs.org/launchdarkly-react-client-sdk/-/launchdarkly-react-client-sdk-2.25.1.tgz";
|
|
16999
|
-
var _integrity = "sha512-OejNEZs8QvW1q/qn/ey1o6lfdLw3aW8tWfLucUmRTeazp0MtBXARnEZoqHWGmgRkRlxkTul3HqecksnoXC/wBg==";
|
|
17000
|
-
var _from = "launchdarkly-react-client-sdk@2.25.1";
|
|
17001
|
-
var _package = {
|
|
17002
|
-
name: name,
|
|
17003
|
-
version: version,
|
|
17004
|
-
description: description,
|
|
17005
|
-
author: author,
|
|
17006
|
-
license: license,
|
|
17007
|
-
keywords: keywords,
|
|
17008
|
-
main: main,
|
|
17009
|
-
types: types,
|
|
17010
|
-
files: files,
|
|
17011
|
-
scripts: scripts,
|
|
17012
|
-
repository: repository,
|
|
17013
|
-
homepage: homepage,
|
|
17014
|
-
devDependencies: devDependencies,
|
|
17015
|
-
dependencies: dependencies,
|
|
17016
|
-
peerDependencies: peerDependencies,
|
|
17017
|
-
_resolved: _resolved,
|
|
17018
|
-
_integrity: _integrity,
|
|
17019
|
-
_from: _from
|
|
17020
|
-
};
|
|
17021
|
-
|
|
17022
|
-
var _package$1 = /*#__PURE__*/Object.freeze({
|
|
17023
|
-
__proto__: null,
|
|
17024
|
-
name: name,
|
|
17025
|
-
version: version,
|
|
17026
|
-
description: description,
|
|
17027
|
-
author: author,
|
|
17028
|
-
license: license,
|
|
17029
|
-
keywords: keywords,
|
|
17030
|
-
main: main,
|
|
17031
|
-
types: types,
|
|
17032
|
-
files: files,
|
|
17033
|
-
scripts: scripts,
|
|
17034
|
-
repository: repository,
|
|
17035
|
-
homepage: homepage,
|
|
17036
|
-
devDependencies: devDependencies,
|
|
17037
|
-
dependencies: dependencies,
|
|
17038
|
-
peerDependencies: peerDependencies,
|
|
17039
|
-
_resolved: _resolved,
|
|
17040
|
-
_integrity: _integrity,
|
|
17041
|
-
_from: _from,
|
|
17042
|
-
'default': _package
|
|
17043
|
-
});
|
|
17044
|
-
|
|
17045
|
-
var package_json_1 = getCjsExportFromNamespace(_package$1);
|
|
17046
|
-
|
|
17047
|
-
var initLDClient_1 = createCommonjsModule(function (module, exports) {
|
|
17048
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
17049
|
-
__assign = Object.assign || function(t) {
|
|
17050
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17051
|
-
s = arguments[i];
|
|
17052
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17053
|
-
t[p] = s[p];
|
|
17054
|
-
}
|
|
17055
|
-
return t;
|
|
17056
|
-
};
|
|
17057
|
-
return __assign.apply(this, arguments);
|
|
17058
|
-
};
|
|
17059
|
-
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17060
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17061
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17062
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17063
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17064
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17065
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17066
|
-
});
|
|
17067
|
-
};
|
|
17068
|
-
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
17069
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
17070
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17071
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17072
|
-
function step(op) {
|
|
17073
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17074
|
-
while (_) try {
|
|
17075
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
17076
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
17077
|
-
switch (op[0]) {
|
|
17078
|
-
case 0: case 1: t = op; break;
|
|
17079
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
17080
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
17081
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
17082
|
-
default:
|
|
17083
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
17084
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
17085
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
17086
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
17087
|
-
if (t[2]) _.ops.pop();
|
|
17088
|
-
_.trys.pop(); continue;
|
|
17089
|
-
}
|
|
17090
|
-
op = body.call(thisArg, _);
|
|
17091
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
17092
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
17093
|
-
}
|
|
17094
|
-
};
|
|
17095
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
/**
|
|
17101
|
-
* Internal function to initialize the `LDClient`.
|
|
17102
|
-
*
|
|
17103
|
-
* @param clientSideID Your project and environment specific client side ID
|
|
17104
|
-
* @param user A LaunchDarkly user object
|
|
17105
|
-
* @param reactOptions Initialization options for the LaunchDarkly React SDK
|
|
17106
|
-
* @param options LaunchDarkly initialization options
|
|
17107
|
-
* @param targetFlags If specified, `launchdarkly-react-client-sdk` will only request and listen to these flags.
|
|
17108
|
-
*
|
|
17109
|
-
* @see `ProviderConfig` for more details about the parameters
|
|
17110
|
-
* @return An initialized client and flags
|
|
17111
|
-
*/
|
|
17112
|
-
var initLDClient = function (clientSideID, user, reactOptions, options, targetFlags) {
|
|
17113
|
-
if (user === void 0) { user = { anonymous: true }; }
|
|
17114
|
-
if (reactOptions === void 0) { reactOptions = types$1.defaultReactOptions; }
|
|
17115
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
17116
|
-
var allOptions, ldClient;
|
|
17117
|
-
return __generator(this, function (_a) {
|
|
17118
|
-
allOptions = __assign({ wrapperName: 'react-client-sdk', wrapperVersion: package_json_1.version }, options);
|
|
17119
|
-
ldClient = (0, Ye.initialize)(clientSideID, user, allOptions);
|
|
17120
|
-
return [2 /*return*/, new Promise(function (resolve) {
|
|
17121
|
-
ldClient.on('ready', function () {
|
|
17122
|
-
var flags = (0, utils.fetchFlags)(ldClient, reactOptions, targetFlags);
|
|
17123
|
-
resolve({ flags: flags, ldClient: ldClient });
|
|
17124
|
-
});
|
|
17125
|
-
})];
|
|
17126
|
-
});
|
|
17127
|
-
});
|
|
17128
|
-
};
|
|
17129
|
-
exports.default = initLDClient;
|
|
17130
|
-
|
|
17131
|
-
});
|
|
17132
|
-
|
|
17133
|
-
unwrapExports(initLDClient_1);
|
|
17134
|
-
|
|
17135
|
-
var provider = createCommonjsModule(function (module, exports) {
|
|
17136
|
-
var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
17137
|
-
var extendStatics = function (d, b) {
|
|
17138
|
-
extendStatics = Object.setPrototypeOf ||
|
|
17139
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17140
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
17141
|
-
return extendStatics(d, b);
|
|
17142
|
-
};
|
|
17143
|
-
return function (d, b) {
|
|
17144
|
-
if (typeof b !== "function" && b !== null)
|
|
17145
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17146
|
-
extendStatics(d, b);
|
|
17147
|
-
function __() { this.constructor = d; }
|
|
17148
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17149
|
-
};
|
|
17150
|
-
})();
|
|
17151
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
17152
|
-
__assign = Object.assign || function(t) {
|
|
17153
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17154
|
-
s = arguments[i];
|
|
17155
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17156
|
-
t[p] = s[p];
|
|
17157
|
-
}
|
|
17158
|
-
return t;
|
|
17159
|
-
};
|
|
17160
|
-
return __assign.apply(this, arguments);
|
|
17161
|
-
};
|
|
17162
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17163
|
-
if (k2 === undefined) k2 = k;
|
|
17164
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17165
|
-
}) : (function(o, m, k, k2) {
|
|
17166
|
-
if (k2 === undefined) k2 = k;
|
|
17167
|
-
o[k2] = m[k];
|
|
17168
|
-
}));
|
|
17169
|
-
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17170
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17171
|
-
}) : function(o, v) {
|
|
17172
|
-
o["default"] = v;
|
|
17173
|
-
});
|
|
17174
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
17175
|
-
if (mod && mod.__esModule) return mod;
|
|
17176
|
-
var result = {};
|
|
17177
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
17178
|
-
__setModuleDefault(result, mod);
|
|
17179
|
-
return result;
|
|
17180
|
-
};
|
|
17181
|
-
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17182
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17183
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17184
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17185
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17186
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17187
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17188
|
-
});
|
|
17189
|
-
};
|
|
17190
|
-
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
17191
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
17192
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17193
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17194
|
-
function step(op) {
|
|
17195
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17196
|
-
while (_) try {
|
|
17197
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
17198
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
17199
|
-
switch (op[0]) {
|
|
17200
|
-
case 0: case 1: t = op; break;
|
|
17201
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
17202
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
17203
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
17204
|
-
default:
|
|
17205
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
17206
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
17207
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
17208
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
17209
|
-
if (t[2]) _.ops.pop();
|
|
17210
|
-
_.trys.pop(); continue;
|
|
17211
|
-
}
|
|
17212
|
-
op = body.call(thisArg, _);
|
|
17213
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
17214
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
17215
|
-
}
|
|
17216
|
-
};
|
|
17217
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17218
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17219
|
-
};
|
|
17220
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17221
|
-
var React$1 = __importStar(React);
|
|
17222
|
-
|
|
17223
|
-
|
|
17224
|
-
var initLDClient_1$1 = __importDefault(initLDClient_1);
|
|
17225
|
-
|
|
17226
|
-
/**
|
|
17227
|
-
* The `LDProvider` is a component which accepts a config object which is used to
|
|
17228
|
-
* initialize `launchdarkly-js-client-sdk`.
|
|
17229
|
-
*
|
|
17230
|
-
* This Provider does three things:
|
|
17231
|
-
* - It initializes the ldClient instance by calling `launchdarkly-js-client-sdk` initialize on `componentDidMount`
|
|
17232
|
-
* - It saves all flags and the ldClient instance in the context API
|
|
17233
|
-
* - It subscribes to flag changes and propagate them through the context API
|
|
17234
|
-
*
|
|
17235
|
-
* Because the `launchdarkly-js-client-sdk` in only initialized on `componentDidMount`, your flags and the
|
|
17236
|
-
* ldClient are only available after your app has mounted. This can result in a flicker due to flag changes at
|
|
17237
|
-
* startup time.
|
|
17238
|
-
*
|
|
17239
|
-
* This component can be used as a standalone provider. However, be mindful to only include the component once
|
|
17240
|
-
* within your application. This provider is used inside the `withLDProviderHOC` and can be used instead to initialize
|
|
17241
|
-
* the `launchdarkly-js-client-sdk`. For async initialization, check out the `asyncWithLDProvider` function
|
|
17242
|
-
*/
|
|
17243
|
-
var LDProvider = /** @class */ (function (_super) {
|
|
17244
|
-
__extends(LDProvider, _super);
|
|
17245
|
-
function LDProvider(props) {
|
|
17246
|
-
var _this = _super.call(this, props) || this;
|
|
17247
|
-
_this.getReactOptions = function () { return (__assign(__assign({}, types$1.defaultReactOptions), _this.props.reactOptions)); };
|
|
17248
|
-
_this.subscribeToChanges = function (ldClient) {
|
|
17249
|
-
var targetFlags = _this.props.flags;
|
|
17250
|
-
ldClient.on('change', function (changes) {
|
|
17251
|
-
var flattened = (0, utils.getFlattenedFlagsFromChangeset)(changes, targetFlags, _this.getReactOptions());
|
|
17252
|
-
if (Object.keys(flattened).length > 0) {
|
|
17253
|
-
_this.setState(function (_a) {
|
|
17254
|
-
var flags = _a.flags;
|
|
17255
|
-
return ({ flags: __assign(__assign({}, flags), flattened) });
|
|
17256
|
-
});
|
|
17257
|
-
}
|
|
17258
|
-
});
|
|
17259
|
-
};
|
|
17260
|
-
_this.initLDClient = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
17261
|
-
var _a, clientSideID, flags, options, user, ldClient, reactOptions, fetchedFlags, initialisedOutput;
|
|
17262
|
-
return __generator(this, function (_b) {
|
|
17263
|
-
switch (_b.label) {
|
|
17264
|
-
case 0:
|
|
17265
|
-
_a = this.props, clientSideID = _a.clientSideID, flags = _a.flags, options = _a.options, user = _a.user;
|
|
17266
|
-
return [4 /*yield*/, this.props.ldClient];
|
|
17267
|
-
case 1:
|
|
17268
|
-
ldClient = _b.sent();
|
|
17269
|
-
reactOptions = this.getReactOptions();
|
|
17270
|
-
if (!ldClient) return [3 /*break*/, 2];
|
|
17271
|
-
fetchedFlags = (0, utils.fetchFlags)(ldClient, reactOptions, flags);
|
|
17272
|
-
return [3 /*break*/, 4];
|
|
17273
|
-
case 2: return [4 /*yield*/, (0, initLDClient_1$1.default)(clientSideID, user, reactOptions, options, flags)];
|
|
17274
|
-
case 3:
|
|
17275
|
-
initialisedOutput = _b.sent();
|
|
17276
|
-
fetchedFlags = initialisedOutput.flags;
|
|
17277
|
-
ldClient = initialisedOutput.ldClient;
|
|
17278
|
-
_b.label = 4;
|
|
17279
|
-
case 4:
|
|
17280
|
-
this.setState({ flags: fetchedFlags, ldClient: ldClient });
|
|
17281
|
-
this.subscribeToChanges(ldClient);
|
|
17282
|
-
return [2 /*return*/];
|
|
17283
|
-
}
|
|
17284
|
-
});
|
|
17285
|
-
}); };
|
|
17286
|
-
var options = props.options;
|
|
17287
|
-
_this.state = {
|
|
17288
|
-
flags: {},
|
|
17289
|
-
ldClient: undefined,
|
|
17290
|
-
};
|
|
17291
|
-
if (options) {
|
|
17292
|
-
var bootstrap = options.bootstrap;
|
|
17293
|
-
if (bootstrap && bootstrap !== 'localStorage') {
|
|
17294
|
-
var useCamelCaseFlagKeys = _this.getReactOptions().useCamelCaseFlagKeys;
|
|
17295
|
-
var flags = useCamelCaseFlagKeys ? (0, utils.camelCaseKeys)(bootstrap) : bootstrap;
|
|
17296
|
-
_this.state = {
|
|
17297
|
-
flags: flags,
|
|
17298
|
-
ldClient: undefined,
|
|
17299
|
-
};
|
|
17300
|
-
}
|
|
17301
|
-
}
|
|
17302
|
-
return _this;
|
|
17303
|
-
}
|
|
17304
|
-
LDProvider.prototype.componentDidMount = function () {
|
|
17305
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17306
|
-
var _a, user, deferInitialization;
|
|
17307
|
-
return __generator(this, function (_b) {
|
|
17308
|
-
switch (_b.label) {
|
|
17309
|
-
case 0:
|
|
17310
|
-
_a = this.props, user = _a.user, deferInitialization = _a.deferInitialization;
|
|
17311
|
-
if (deferInitialization && !user) {
|
|
17312
|
-
return [2 /*return*/];
|
|
17313
|
-
}
|
|
17314
|
-
return [4 /*yield*/, this.initLDClient()];
|
|
17315
|
-
case 1:
|
|
17316
|
-
_b.sent();
|
|
17317
|
-
return [2 /*return*/];
|
|
17318
|
-
}
|
|
17319
|
-
});
|
|
17320
|
-
});
|
|
17321
|
-
};
|
|
17322
|
-
LDProvider.prototype.componentDidUpdate = function (prevProps) {
|
|
17323
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17324
|
-
var _a, user, deferInitialization, userJustLoaded;
|
|
17325
|
-
return __generator(this, function (_b) {
|
|
17326
|
-
switch (_b.label) {
|
|
17327
|
-
case 0:
|
|
17328
|
-
_a = this.props, user = _a.user, deferInitialization = _a.deferInitialization;
|
|
17329
|
-
userJustLoaded = !prevProps.user && user;
|
|
17330
|
-
if (!(deferInitialization && userJustLoaded)) return [3 /*break*/, 2];
|
|
17331
|
-
return [4 /*yield*/, this.initLDClient()];
|
|
17332
|
-
case 1:
|
|
17333
|
-
_b.sent();
|
|
17334
|
-
_b.label = 2;
|
|
17335
|
-
case 2: return [2 /*return*/];
|
|
17336
|
-
}
|
|
17337
|
-
});
|
|
17338
|
-
});
|
|
17339
|
-
};
|
|
17340
|
-
LDProvider.prototype.render = function () {
|
|
17341
|
-
return React$1.createElement(context_1.Provider, { value: this.state }, this.props.children);
|
|
17342
|
-
};
|
|
17343
|
-
return LDProvider;
|
|
17344
|
-
}(React$1.Component));
|
|
17345
|
-
exports.default = LDProvider;
|
|
17346
|
-
|
|
17347
|
-
});
|
|
17348
|
-
|
|
17349
|
-
unwrapExports(provider);
|
|
17350
|
-
|
|
17351
|
-
var withLDProvider_1 = createCommonjsModule(function (module, exports) {
|
|
17352
|
-
var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
17353
|
-
var extendStatics = function (d, b) {
|
|
17354
|
-
extendStatics = Object.setPrototypeOf ||
|
|
17355
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17356
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
17357
|
-
return extendStatics(d, b);
|
|
17358
|
-
};
|
|
17359
|
-
return function (d, b) {
|
|
17360
|
-
if (typeof b !== "function" && b !== null)
|
|
17361
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17362
|
-
extendStatics(d, b);
|
|
17363
|
-
function __() { this.constructor = d; }
|
|
17364
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17365
|
-
};
|
|
17366
|
-
})();
|
|
17367
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
17368
|
-
__assign = Object.assign || function(t) {
|
|
17369
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17370
|
-
s = arguments[i];
|
|
17371
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17372
|
-
t[p] = s[p];
|
|
17373
|
-
}
|
|
17374
|
-
return t;
|
|
17375
|
-
};
|
|
17376
|
-
return __assign.apply(this, arguments);
|
|
17377
|
-
};
|
|
17378
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17379
|
-
if (k2 === undefined) k2 = k;
|
|
17380
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17381
|
-
}) : (function(o, m, k, k2) {
|
|
17382
|
-
if (k2 === undefined) k2 = k;
|
|
17383
|
-
o[k2] = m[k];
|
|
17384
|
-
}));
|
|
17385
|
-
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17386
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17387
|
-
}) : function(o, v) {
|
|
17388
|
-
o["default"] = v;
|
|
17389
|
-
});
|
|
17390
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
17391
|
-
if (mod && mod.__esModule) return mod;
|
|
17392
|
-
var result = {};
|
|
17393
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
17394
|
-
__setModuleDefault(result, mod);
|
|
17395
|
-
return result;
|
|
17396
|
-
};
|
|
17397
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17398
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17399
|
-
};
|
|
17400
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17401
|
-
exports.withLDProvider = void 0;
|
|
17402
|
-
var React$1 = __importStar(React);
|
|
17403
|
-
|
|
17404
|
-
var provider_1 = __importDefault(provider);
|
|
17405
|
-
var hoist_non_react_statics_1 = __importDefault(hoistNonReactStatics_cjs);
|
|
17406
|
-
/**
|
|
17407
|
-
* `withLDProvider` is a function which accepts a config object which is used to
|
|
17408
|
-
* initialize `launchdarkly-js-client-sdk`.
|
|
17409
|
-
*
|
|
17410
|
-
* This HOC handles passing configuration to the `LDProvider`, which does the following:
|
|
17411
|
-
* - It initializes the ldClient instance by calling `launchdarkly-js-client-sdk` initialize on `componentDidMount`
|
|
17412
|
-
* - It saves all flags and the ldClient instance in the context API
|
|
17413
|
-
* - It subscribes to flag changes and propagate them through the context API
|
|
17414
|
-
*
|
|
17415
|
-
* The difference between `withLDProvider` and `asyncWithLDProvider` is that `withLDProvider` initializes
|
|
17416
|
-
* `launchdarkly-js-client-sdk` at `componentDidMount`. This means your flags and the ldClient are only available after
|
|
17417
|
-
* your app has mounted. This can result in a flicker due to flag changes at startup time.
|
|
17418
|
-
*
|
|
17419
|
-
* `asyncWithLDProvider` initializes `launchdarkly-js-client-sdk` at the entry point of your app prior to render.
|
|
17420
|
-
* This means that your flags and the ldClient are ready at the beginning of your app. This ensures your app does not
|
|
17421
|
-
* flicker due to flag changes at startup time.
|
|
17422
|
-
*
|
|
17423
|
-
* @param config - The configuration used to initialize LaunchDarkly's JS SDK
|
|
17424
|
-
* @return A function which accepts your root React component and returns a HOC
|
|
17425
|
-
*/
|
|
17426
|
-
function withLDProvider(config) {
|
|
17427
|
-
return function withLDProviderHoc(WrappedComponent) {
|
|
17428
|
-
var userReactOptions = config.reactOptions;
|
|
17429
|
-
var reactOptions = __assign(__assign({}, types$1.defaultReactOptions), userReactOptions);
|
|
17430
|
-
var providerProps = __assign(__assign({}, config), { reactOptions: reactOptions });
|
|
17431
|
-
var HoistedComponent = /** @class */ (function (_super) {
|
|
17432
|
-
__extends(HoistedComponent, _super);
|
|
17433
|
-
function HoistedComponent() {
|
|
17434
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
17435
|
-
}
|
|
17436
|
-
HoistedComponent.prototype.render = function () {
|
|
17437
|
-
return (React$1.createElement(provider_1.default, __assign({}, providerProps),
|
|
17438
|
-
React$1.createElement(WrappedComponent, __assign({}, this.props))));
|
|
17439
|
-
};
|
|
17440
|
-
return HoistedComponent;
|
|
17441
|
-
}(React$1.Component));
|
|
17442
|
-
(0, hoist_non_react_statics_1.default)(HoistedComponent, WrappedComponent);
|
|
17443
|
-
return HoistedComponent;
|
|
17444
|
-
};
|
|
17445
|
-
}
|
|
17446
|
-
exports.withLDProvider = withLDProvider;
|
|
17447
|
-
exports.default = withLDProvider;
|
|
17448
|
-
|
|
17449
|
-
});
|
|
17450
|
-
|
|
17451
|
-
unwrapExports(withLDProvider_1);
|
|
17452
|
-
withLDProvider_1.withLDProvider;
|
|
17453
|
-
|
|
17454
|
-
var asyncWithLDProvider_1 = createCommonjsModule(function (module, exports) {
|
|
17455
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
17456
|
-
__assign = Object.assign || function(t) {
|
|
17457
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17458
|
-
s = arguments[i];
|
|
17459
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17460
|
-
t[p] = s[p];
|
|
17461
|
-
}
|
|
17462
|
-
return t;
|
|
17463
|
-
};
|
|
17464
|
-
return __assign.apply(this, arguments);
|
|
17465
|
-
};
|
|
17466
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17467
|
-
if (k2 === undefined) k2 = k;
|
|
17468
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17469
|
-
}) : (function(o, m, k, k2) {
|
|
17470
|
-
if (k2 === undefined) k2 = k;
|
|
17471
|
-
o[k2] = m[k];
|
|
17472
|
-
}));
|
|
17473
|
-
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17474
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17475
|
-
}) : function(o, v) {
|
|
17476
|
-
o["default"] = v;
|
|
17477
|
-
});
|
|
17478
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
17479
|
-
if (mod && mod.__esModule) return mod;
|
|
17480
|
-
var result = {};
|
|
17481
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
17482
|
-
__setModuleDefault(result, mod);
|
|
17483
|
-
return result;
|
|
17484
|
-
};
|
|
17485
|
-
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17486
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17487
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17488
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17489
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17490
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17491
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17492
|
-
});
|
|
17493
|
-
};
|
|
17494
|
-
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
17495
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
17496
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17497
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17498
|
-
function step(op) {
|
|
17499
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17500
|
-
while (_) try {
|
|
17501
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
17502
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
17503
|
-
switch (op[0]) {
|
|
17504
|
-
case 0: case 1: t = op; break;
|
|
17505
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
17506
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
17507
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
17508
|
-
default:
|
|
17509
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
17510
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
17511
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
17512
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
17513
|
-
if (t[2]) _.ops.pop();
|
|
17514
|
-
_.trys.pop(); continue;
|
|
17515
|
-
}
|
|
17516
|
-
op = body.call(thisArg, _);
|
|
17517
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
17518
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
17519
|
-
}
|
|
17520
|
-
};
|
|
17521
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17522
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17523
|
-
};
|
|
17524
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17525
|
-
var react_1 = __importStar(React);
|
|
17526
|
-
|
|
17527
|
-
|
|
17528
|
-
var initLDClient_1$1 = __importDefault(initLDClient_1);
|
|
17529
|
-
|
|
17530
|
-
/**
|
|
17531
|
-
* This is an async function which initializes LaunchDarkly's JS SDK (`launchdarkly-js-client-sdk`)
|
|
17532
|
-
* and awaits it so all flags and the ldClient are ready before the consumer app is rendered.
|
|
17533
|
-
*
|
|
17534
|
-
* The difference between `withLDProvider` and `asyncWithLDProvider` is that `withLDProvider` initializes
|
|
17535
|
-
* `launchdarkly-js-client-sdk` at componentDidMount. This means your flags and the ldClient are only available after
|
|
17536
|
-
* your app has mounted. This can result in a flicker due to flag changes at startup time.
|
|
17537
|
-
*
|
|
17538
|
-
* `asyncWithLDProvider` initializes `launchdarkly-js-client-sdk` at the entry point of your app prior to render.
|
|
17539
|
-
* This means that your flags and the ldClient are ready at the beginning of your app. This ensures your app does not
|
|
17540
|
-
* flicker due to flag changes at startup time.
|
|
17541
|
-
*
|
|
17542
|
-
* `asyncWithLDProvider` accepts a config object which is used to initialize `launchdarkly-js-client-sdk`.
|
|
17543
|
-
*
|
|
17544
|
-
* `asyncWithLDProvider` does not support the `deferInitialization` config option because `asyncWithLDProvider` needs
|
|
17545
|
-
* to be initialized at the entry point prior to render to ensure your flags and the ldClient are ready at the beginning
|
|
17546
|
-
* of your app.
|
|
17547
|
-
*
|
|
17548
|
-
* It returns a provider which is a React FunctionComponent which:
|
|
17549
|
-
* - saves all flags and the ldClient instance in the context API
|
|
17550
|
-
* - subscribes to flag changes and propagate them through the context API
|
|
17551
|
-
*
|
|
17552
|
-
* @param config - The configuration used to initialize LaunchDarkly's JS SDK
|
|
17553
|
-
*/
|
|
17554
|
-
function asyncWithLDProvider(config) {
|
|
17555
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17556
|
-
var clientSideID, user, targetFlags, options, userReactOptions, reactOptions, ldClient, LDProvider;
|
|
17557
|
-
return __generator(this, function (_a) {
|
|
17558
|
-
switch (_a.label) {
|
|
17559
|
-
case 0:
|
|
17560
|
-
clientSideID = config.clientSideID, user = config.user, targetFlags = config.flags, options = config.options, userReactOptions = config.reactOptions;
|
|
17561
|
-
reactOptions = __assign(__assign({}, types$1.defaultReactOptions), userReactOptions);
|
|
17562
|
-
return [4 /*yield*/, (0, initLDClient_1$1.default)(clientSideID, user, reactOptions, options, targetFlags)];
|
|
17563
|
-
case 1:
|
|
17564
|
-
ldClient = (_a.sent()).ldClient;
|
|
17565
|
-
LDProvider = function (_a) {
|
|
17566
|
-
var children = _a.children;
|
|
17567
|
-
var _b = (0, react_1.useState)({
|
|
17568
|
-
flags: (0, utils.fetchFlags)(ldClient, reactOptions, targetFlags),
|
|
17569
|
-
ldClient: ldClient,
|
|
17570
|
-
}), ldData = _b[0], setLDData = _b[1];
|
|
17571
|
-
(0, react_1.useEffect)(function () {
|
|
17572
|
-
if (options) {
|
|
17573
|
-
var bootstrap = options.bootstrap;
|
|
17574
|
-
if (bootstrap && bootstrap !== 'localStorage') {
|
|
17575
|
-
var bootstrappedFlags_1 = reactOptions.useCamelCaseFlagKeys ? (0, utils.camelCaseKeys)(bootstrap) : bootstrap;
|
|
17576
|
-
setLDData(function (prev) { return (__assign(__assign({}, prev), { flags: bootstrappedFlags_1 })); });
|
|
17577
|
-
}
|
|
17578
|
-
}
|
|
17579
|
-
ldClient.on('change', function (changes) {
|
|
17580
|
-
var flattened = (0, utils.getFlattenedFlagsFromChangeset)(changes, targetFlags, reactOptions);
|
|
17581
|
-
if (Object.keys(flattened).length > 0) {
|
|
17582
|
-
setLDData(function (prev) { return (__assign(__assign({}, prev), { flags: __assign(__assign({}, prev.flags), flattened) })); });
|
|
17583
|
-
}
|
|
17584
|
-
});
|
|
17585
|
-
}, []);
|
|
17586
|
-
return react_1.default.createElement(context_1.Provider, { value: ldData }, children);
|
|
17587
|
-
};
|
|
17588
|
-
return [2 /*return*/, LDProvider];
|
|
17589
|
-
}
|
|
17590
|
-
});
|
|
17591
|
-
});
|
|
17592
|
-
}
|
|
17593
|
-
exports.default = asyncWithLDProvider;
|
|
17594
|
-
|
|
17595
|
-
});
|
|
17596
|
-
|
|
17597
|
-
unwrapExports(asyncWithLDProvider_1);
|
|
17598
|
-
|
|
17599
|
-
var withLDConsumer_1 = createCommonjsModule(function (module, exports) {
|
|
17600
|
-
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
17601
|
-
__assign = Object.assign || function(t) {
|
|
17602
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17603
|
-
s = arguments[i];
|
|
17604
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17605
|
-
t[p] = s[p];
|
|
17606
|
-
}
|
|
17607
|
-
return t;
|
|
17608
|
-
};
|
|
17609
|
-
return __assign.apply(this, arguments);
|
|
17610
|
-
};
|
|
17611
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17612
|
-
if (k2 === undefined) k2 = k;
|
|
17613
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17614
|
-
}) : (function(o, m, k, k2) {
|
|
17615
|
-
if (k2 === undefined) k2 = k;
|
|
17616
|
-
o[k2] = m[k];
|
|
17617
|
-
}));
|
|
17618
|
-
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17619
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17620
|
-
}) : function(o, v) {
|
|
17621
|
-
o["default"] = v;
|
|
17622
|
-
});
|
|
17623
|
-
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
17624
|
-
if (mod && mod.__esModule) return mod;
|
|
17625
|
-
var result = {};
|
|
17626
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
17627
|
-
__setModuleDefault(result, mod);
|
|
17628
|
-
return result;
|
|
17629
|
-
};
|
|
17630
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17631
|
-
var React$1 = __importStar(React);
|
|
17632
|
-
|
|
17633
|
-
/**
|
|
17634
|
-
* withLDConsumer is a function which accepts an optional options object and returns a function
|
|
17635
|
-
* which accepts your React component. This function returns a HOC with flags
|
|
17636
|
-
* and the ldClient instance injected via props.
|
|
17637
|
-
*
|
|
17638
|
-
* @param options - If you need only the `ldClient` instance and not flags, then set `{ clientOnly: true }`
|
|
17639
|
-
* to only pass the ldClient prop to your component. Defaults to `{ clientOnly: false }`.
|
|
17640
|
-
* @return A HOC with flags and the `ldClient` instance injected via props
|
|
17641
|
-
*/
|
|
17642
|
-
function withLDConsumer(options) {
|
|
17643
|
-
if (options === void 0) { options = { clientOnly: false }; }
|
|
17644
|
-
return function withLDConsumerHoc(WrappedComponent) {
|
|
17645
|
-
return function (props) { return (React$1.createElement(context_1.Consumer, null, function (_a) {
|
|
17646
|
-
var flags = _a.flags, ldClient = _a.ldClient;
|
|
17647
|
-
if (options.clientOnly) {
|
|
17648
|
-
return React$1.createElement(WrappedComponent, __assign({ ldClient: ldClient }, props));
|
|
17649
|
-
}
|
|
17650
|
-
return React$1.createElement(WrappedComponent, __assign({ flags: flags, ldClient: ldClient }, props));
|
|
17651
|
-
})); };
|
|
17652
|
-
};
|
|
17653
|
-
}
|
|
17654
|
-
exports.default = withLDConsumer;
|
|
17655
|
-
|
|
17656
|
-
});
|
|
17657
|
-
|
|
17658
|
-
unwrapExports(withLDConsumer_1);
|
|
17659
|
-
|
|
17660
|
-
var useFlags_1 = createCommonjsModule(function (module, exports) {
|
|
17661
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17662
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17663
|
-
};
|
|
17664
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17665
|
-
|
|
17666
|
-
var context_1$1 = __importDefault(context_1);
|
|
17667
|
-
/**
|
|
17668
|
-
* `useFlags` is a custom hook which returns all feature flags. It uses the `useContext` primitive
|
|
17669
|
-
* to access the LaunchDarkly context set up by `withLDProvider`. As such you will still need to
|
|
17670
|
-
* use the `withLDProvider` HOC at the root of your app to initialize the React SDK and populate the
|
|
17671
|
-
* context with `ldClient` and your flags.
|
|
17672
|
-
*
|
|
17673
|
-
* @return All the feature flags configured in your LaunchDarkly project
|
|
17674
|
-
*/
|
|
17675
|
-
var useFlags = function () {
|
|
17676
|
-
var flags = (0, React.useContext)(context_1$1.default).flags;
|
|
17677
|
-
return flags;
|
|
17678
|
-
};
|
|
17679
|
-
exports.default = useFlags;
|
|
17680
|
-
|
|
17681
|
-
});
|
|
17682
|
-
|
|
17683
|
-
unwrapExports(useFlags_1);
|
|
17684
|
-
|
|
17685
|
-
var useLDClient_1 = createCommonjsModule(function (module, exports) {
|
|
17686
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17687
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17688
|
-
};
|
|
17689
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17690
|
-
|
|
17691
|
-
var context_1$1 = __importDefault(context_1);
|
|
17692
|
-
// tslint:disable:max-line-length
|
|
17693
|
-
/**
|
|
17694
|
-
* `useLDClient` is a custom hook which returns the underlying [LaunchDarkly JavaScript SDK client object](https://launchdarkly.github.io/js-client-sdk/interfaces/_launchdarkly_js_client_sdk_.ldclient.html).
|
|
17695
|
-
* Like the `useFlags` custom hook, `useLDClient` also uses the `useContext` primitive to access the LaunchDarkly
|
|
17696
|
-
* context set up by `withLDProvider`. You will still need to use the `withLDProvider` HOC
|
|
17697
|
-
* to initialise the react sdk to use this custom hook.
|
|
17698
|
-
*
|
|
17699
|
-
* @return The `launchdarkly-js-client-sdk` `LDClient` object
|
|
17700
|
-
*/
|
|
17701
|
-
// tslint:enable:max-line-length
|
|
17702
|
-
var useLDClient = function () {
|
|
17703
|
-
var ldClient = (0, React.useContext)(context_1$1.default).ldClient;
|
|
17704
|
-
return ldClient;
|
|
17705
|
-
};
|
|
17706
|
-
exports.default = useLDClient;
|
|
17707
|
-
|
|
17708
|
-
});
|
|
17709
|
-
|
|
17710
|
-
unwrapExports(useLDClient_1);
|
|
17711
|
-
|
|
17712
|
-
var lib$1 = createCommonjsModule(function (module, exports) {
|
|
17713
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17714
|
-
if (k2 === undefined) k2 = k;
|
|
17715
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17716
|
-
}) : (function(o, m, k, k2) {
|
|
17717
|
-
if (k2 === undefined) k2 = k;
|
|
17718
|
-
o[k2] = m[k];
|
|
17719
|
-
}));
|
|
17720
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
17721
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17722
|
-
};
|
|
17723
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17724
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17725
|
-
};
|
|
17726
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17727
|
-
exports.withLDConsumer = exports.withLDProvider = exports.useLDClient = exports.useFlags = exports.camelCaseKeys = exports.asyncWithLDProvider = exports.LDProvider = void 0;
|
|
17728
|
-
var provider_1 = __importDefault(provider);
|
|
17729
|
-
exports.LDProvider = provider_1.default;
|
|
17730
|
-
var withLDProvider_1$1 = __importDefault(withLDProvider_1);
|
|
17731
|
-
exports.withLDProvider = withLDProvider_1$1.default;
|
|
17732
|
-
var asyncWithLDProvider_1$1 = __importDefault(asyncWithLDProvider_1);
|
|
17733
|
-
exports.asyncWithLDProvider = asyncWithLDProvider_1$1.default;
|
|
17734
|
-
var withLDConsumer_1$1 = __importDefault(withLDConsumer_1);
|
|
17735
|
-
exports.withLDConsumer = withLDConsumer_1$1.default;
|
|
17736
|
-
var useFlags_1$1 = __importDefault(useFlags_1);
|
|
17737
|
-
exports.useFlags = useFlags_1$1.default;
|
|
17738
|
-
var useLDClient_1$1 = __importDefault(useLDClient_1);
|
|
17739
|
-
exports.useLDClient = useLDClient_1$1.default;
|
|
17740
|
-
|
|
17741
|
-
Object.defineProperty(exports, "camelCaseKeys", { enumerable: true, get: function () { return utils.camelCaseKeys; } });
|
|
17742
|
-
__exportStar(types$1, exports);
|
|
17743
|
-
|
|
17744
|
-
});
|
|
17745
|
-
|
|
17746
|
-
unwrapExports(lib$1);
|
|
17747
|
-
lib$1.withLDConsumer;
|
|
17748
|
-
lib$1.withLDProvider;
|
|
17749
|
-
lib$1.useLDClient;
|
|
17750
|
-
lib$1.useFlags;
|
|
17751
|
-
lib$1.camelCaseKeys;
|
|
17752
|
-
lib$1.asyncWithLDProvider;
|
|
17753
|
-
var lib_7 = lib$1.LDProvider;
|
|
17754
|
-
|
|
17755
16186
|
/**
|
|
17756
16187
|
* Copyright 2015, Yahoo! Inc.
|
|
17757
16188
|
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
@@ -20498,9 +18929,9 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
20498
18929
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
20499
18930
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
20500
18931
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
20501
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title
|
|
18932
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Special Offer", tagName: "h1" })),
|
|
20502
18933
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
20503
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle
|
|
18934
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you have a professional license in your field." })),
|
|
20504
18935
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
20505
18936
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
20506
18937
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
@@ -23494,7 +21925,7 @@ class NewVerification extends React.Component {
|
|
|
23494
21925
|
}
|
|
23495
21926
|
}
|
|
23496
21927
|
componentDidMount() {
|
|
23497
|
-
N
|
|
21928
|
+
N(); // https://sheerid.atlassian.net/browse/UX-362
|
|
23498
21929
|
maintainFocusInLightbox();
|
|
23499
21930
|
listenToInstallPage((event) => {
|
|
23500
21931
|
if (event.data.action === "setViewModel") {
|
|
@@ -23573,9 +22004,8 @@ const VerificationForm = React.forwardRef(({ programId, trackingId = undefined }
|
|
|
23573
22004
|
};
|
|
23574
22005
|
}
|
|
23575
22006
|
return (React.createElement(Provider, { store: store },
|
|
23576
|
-
React.createElement(
|
|
23577
|
-
React.createElement(
|
|
23578
|
-
React.createElement(NewVerificationComponent, { programId: programId, trackingId: trackingId })))));
|
|
22007
|
+
React.createElement(FormWrapperComponent, null,
|
|
22008
|
+
React.createElement(NewVerificationComponent, { programId: programId, trackingId: trackingId }))));
|
|
23579
22009
|
});
|
|
23580
22010
|
|
|
23581
22011
|
const State = ({ value, isErrored, onChange, intl, onKeyDown = undefined, placeholder = "", }) => (React.createElement("div", { className: "sid-field sid-state" },
|