@bigbinary/neeto-commons-frontend 4.13.87 → 4.13.88
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/README.md +0 -1
- package/configs/nanos/webpack/resolve.js +1 -1
- package/configs/webpack/resolve.js +22 -0
- package/dist/_commonjsHelpers-BFTU3MAI.js +8 -0
- package/dist/_commonjsHelpers-BFTU3MAI.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +11 -0
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js.map +1 -0
- package/dist/cjs/{index-BskY8dVw.js → index-bFmfHzbL.js} +4 -6
- package/dist/cjs/index-bFmfHzbL.js.map +1 -0
- package/dist/cjs/initializers/dayjs.js +10 -5
- package/dist/cjs/initializers/dayjs.js.map +1 -1
- package/dist/cjs/initializers/index.js +6 -8
- package/dist/cjs/initializers/index.js.map +1 -1
- package/dist/cjs/lodash-yQg9l0eZ.js +17210 -0
- package/dist/cjs/lodash-yQg9l0eZ.js.map +1 -0
- package/dist/cjs/react-utils/BrowserPushNotifications/index.js +2 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/index.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js +2 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js +2 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -1
- package/dist/cjs/react-utils/PageTitle/PageTitle.js +1 -2
- package/dist/cjs/react-utils/PageTitle/PageTitle.js.map +1 -1
- package/dist/cjs/react-utils/PageTitle/index.js +0 -1
- package/dist/cjs/react-utils/PageTitle/index.js.map +1 -1
- package/dist/cjs/react-utils/index.js +3 -3
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js +2 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +2 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/index.js +3 -2
- package/dist/cjs/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js +3 -2
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/index.js +2 -1
- package/dist/cjs/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js +2 -1
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/index.js +2 -1
- package/dist/cjs/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js +2 -1
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js +2 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +2 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/cjs/utils/captureAnalyticsEvent.js +4 -4
- package/dist/cjs/utils/captureAnalyticsEvent.js.map +1 -1
- package/dist/cjs/utils/captureAnalyticsPageView.js +4 -10
- package/dist/cjs/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/cjs/utils/createSubscription.js +2 -1
- package/dist/cjs/utils/createSubscription.js.map +1 -1
- package/dist/cjs/utils/customParseFormatPlugin.js +2 -2
- package/dist/cjs/utils/customParseFormatPlugin.js.map +1 -1
- package/dist/cjs/utils/deviceInformation.js +2 -1
- package/dist/cjs/utils/deviceInformation.js.map +1 -1
- package/dist/cjs/utils/general.js +2 -1
- package/dist/cjs/utils/general.js.map +1 -1
- package/dist/cjs/utils/index.js +3 -2
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/localePlugin.js +2 -1
- package/dist/cjs/utils/localePlugin.js.map +1 -1
- package/dist/cjs/utils/timezonePlugin.js +2 -2
- package/dist/cjs/utils/timezonePlugin.js.map +1 -1
- package/dist/{index-CoBEoJgD.js → index-DbuxAQMD.js} +3 -5
- package/dist/index-DbuxAQMD.js.map +1 -0
- package/dist/initializers/dayjs.js +8 -3
- package/dist/initializers/dayjs.js.map +1 -1
- package/dist/initializers/index.js +6 -8
- package/dist/initializers/index.js.map +1 -1
- package/dist/lodash-M8VRFvKw.js +17208 -0
- package/dist/lodash-M8VRFvKw.js.map +1 -0
- package/dist/react-utils/BrowserPushNotifications/index.js +2 -1
- package/dist/react-utils/BrowserPushNotifications/index.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/pushHelper.js +2 -1
- package/dist/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/registerServiceWorker.js +2 -1
- package/dist/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -1
- package/dist/react-utils/PageTitle/PageTitle.js +0 -1
- package/dist/react-utils/PageTitle/PageTitle.js.map +1 -1
- package/dist/react-utils/PageTitle/index.js +0 -1
- package/dist/react-utils/PageTitle/index.js.map +1 -1
- package/dist/react-utils/index.js +3 -3
- package/dist/react-utils/useFetchNeetoApps/index.js +2 -1
- package/dist/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +2 -1
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/react-utils/useLocalStorage/index.js +3 -2
- package/dist/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/react-utils/useLocalStorage/useLocalStorage.js +3 -2
- package/dist/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/index.js +2 -1
- package/dist/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js +2 -1
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/react-utils/useQueryParams/index.js +2 -1
- package/dist/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/react-utils/useQueryParams/useQueryParams.js +2 -1
- package/dist/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js +2 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +2 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/utils/captureAnalyticsEvent.js +4 -4
- package/dist/utils/captureAnalyticsEvent.js.map +1 -1
- package/dist/utils/captureAnalyticsPageView.js +4 -10
- package/dist/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/utils/createSubscription.js +2 -1
- package/dist/utils/createSubscription.js.map +1 -1
- package/dist/utils/customParseFormatPlugin.js +2 -2
- package/dist/utils/customParseFormatPlugin.js.map +1 -1
- package/dist/utils/deviceInformation.js +2 -1
- package/dist/utils/deviceInformation.js.map +1 -1
- package/dist/utils/general.js +2 -1
- package/dist/utils/general.js.map +1 -1
- package/dist/utils/index.js +3 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/localePlugin.js +2 -1
- package/dist/utils/localePlugin.js.map +1 -1
- package/dist/utils/timezonePlugin.js +2 -2
- package/dist/utils/timezonePlugin.js.map +1 -1
- package/package.json +1 -4
- package/utils.d.ts +0 -30
- package/dist/cjs/index-BskY8dVw.js.map +0 -1
- package/dist/cjs/initializers/mixpanel.js +0 -29
- package/dist/cjs/initializers/mixpanel.js.map +0 -1
- package/dist/cjs/mixpanel.module-ajRn5e0J.js +0 -22401
- package/dist/cjs/mixpanel.module-ajRn5e0J.js.map +0 -1
- package/dist/index-CoBEoJgD.js.map +0 -1
- package/dist/initializers/mixpanel.js +0 -27
- package/dist/initializers/mixpanel.js.map +0 -1
- package/dist/mixpanel.module-Bu2zrBMQ.js +0 -22399
- package/dist/mixpanel.module-Bu2zrBMQ.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var reactUtils_BrowserPushNotifications_pushHelper = require('./pushHelper.js');
|
|
4
|
-
require('../../index-
|
|
4
|
+
require('../../index-bFmfHzbL.js');
|
|
5
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
5
6
|
require('./devices.js');
|
|
6
7
|
require('axios');
|
|
7
8
|
require('./registerServiceWorker.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('../../index-
|
|
3
|
+
var index = require('../../index-bFmfHzbL.js');
|
|
4
4
|
var reactUtils_BrowserPushNotifications_devices = require('./devices.js');
|
|
5
5
|
var reactUtils_BrowserPushNotifications_registerServiceWorker = require('./registerServiceWorker.js');
|
|
6
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
6
7
|
require('axios');
|
|
7
8
|
|
|
8
9
|
var createBrowserSubscription = /*#__PURE__*/function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pushHelper.js","sources":["../../../../src/react-utils/BrowserPushNotifications/pushHelper.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nimport devicesApi from \"./devices\";\nimport {\n unsubscribeBrowserNotifications,\n registerServiceWorker,\n} from \"./registerServiceWorker\";\n\nconst createBrowserSubscription = async subscription => {\n if (subscription) {\n const payload = { device: { subscription, platform: \"browser\" } };\n try {\n await devicesApi.create(payload);\n localStorage.setItem(\n \"deviceId\",\n JSON.stringify(subscription.toJSON().keys.auth)\n );\n } catch (err) {\n logger.error(\"Device registration Failed: \", err);\n }\n } else {\n logger.error(\n \"Something went wrong while registering device for browser subscription\"\n );\n }\n};\n\nexport const destroyBrowserSubscription = async () => {\n try {\n await unsubscribeBrowserNotifications();\n const deviceId = JSON.parse(localStorage.getItem(\"deviceId\"));\n await devicesApi.destroy(deviceId);\n localStorage.removeItem(\"deviceId\");\n } catch (err) {\n logger.error(\n \"Something went wrong while unsubscribing browser notification:\",\n err\n );\n }\n};\n\nexport const registerBrowserNotifications = async (\n vapidPublicKey = process.env.VAPID_PUBLIC_KEY\n) => {\n const response = await registerServiceWorker(vapidPublicKey);\n await createBrowserSubscription(response);\n};\n"],"names":["createBrowserSubscription","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","subscription","payload","wrap","_callee$","_context","prev","next","device","platform","devicesApi","create","localStorage","setItem","JSON","stringify","toJSON","keys","auth","t0","logger","error","stop","_x","apply","arguments","destroyBrowserSubscription","_ref2","_callee2","deviceId","_callee2$","_context2","unsubscribeBrowserNotifications","parse","getItem","destroy","removeItem","registerBrowserNotifications","_ref3","_callee3","vapidPublicKey","response","_args3","_callee3$","_context3","length","undefined","process","env","VAPID_PUBLIC_KEY","registerServiceWorker","sent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pushHelper.js","sources":["../../../../src/react-utils/BrowserPushNotifications/pushHelper.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nimport devicesApi from \"./devices\";\nimport {\n unsubscribeBrowserNotifications,\n registerServiceWorker,\n} from \"./registerServiceWorker\";\n\nconst createBrowserSubscription = async subscription => {\n if (subscription) {\n const payload = { device: { subscription, platform: \"browser\" } };\n try {\n await devicesApi.create(payload);\n localStorage.setItem(\n \"deviceId\",\n JSON.stringify(subscription.toJSON().keys.auth)\n );\n } catch (err) {\n logger.error(\"Device registration Failed: \", err);\n }\n } else {\n logger.error(\n \"Something went wrong while registering device for browser subscription\"\n );\n }\n};\n\nexport const destroyBrowserSubscription = async () => {\n try {\n await unsubscribeBrowserNotifications();\n const deviceId = JSON.parse(localStorage.getItem(\"deviceId\"));\n await devicesApi.destroy(deviceId);\n localStorage.removeItem(\"deviceId\");\n } catch (err) {\n logger.error(\n \"Something went wrong while unsubscribing browser notification:\",\n err\n );\n }\n};\n\nexport const registerBrowserNotifications = async (\n vapidPublicKey = process.env.VAPID_PUBLIC_KEY\n) => {\n const response = await registerServiceWorker(vapidPublicKey);\n await createBrowserSubscription(response);\n};\n"],"names":["createBrowserSubscription","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","subscription","payload","wrap","_callee$","_context","prev","next","device","platform","devicesApi","create","localStorage","setItem","JSON","stringify","toJSON","keys","auth","t0","logger","error","stop","_x","apply","arguments","destroyBrowserSubscription","_ref2","_callee2","deviceId","_callee2$","_context2","unsubscribeBrowserNotifications","parse","getItem","destroy","removeItem","registerBrowserNotifications","_ref3","_callee3","vapidPublicKey","response","_args3","_callee3$","_context3","length","undefined","process","env","VAPID_PUBLIC_KEY","registerServiceWorker","sent"],"mappings":";;;;;;;;AAUA,IAAMA,yBAAyB,gBAAA,YAAA;EAAA,IAAAC,IAAA,GAAAC,uBAAA,cAAAC,yBAAA,CAAAC,IAAA,CAAG,SAAAC,OAAAA,CAAMC,YAAY,EAAA;AAAA,IAAA,IAAAC,OAAA;AAAA,IAAA,OAAAJ,yBAAA,CAAAK,IAAA,CAAA,SAAAC,SAAAC,QAAA,EAAA;AAAA,MAAA,OAAA,CAAA,EA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AA;GAC1C,CAAA,CAAA;AAAA,EAAA,OAAA,SALYF,4BAA4BA,GAAA;AAAA,IAAA,OAAAC,KAAA,CAAAd,KAAA,CAAA,IAAA,EAAAC,SAAA,CAAA;AAAA,GAAA;AAAA,CAKxC;;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('../../index-
|
|
3
|
+
var index = require('../../index-bFmfHzbL.js');
|
|
4
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
4
5
|
|
|
5
6
|
// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE
|
|
6
7
|
// AND IS USED FOR BROWSER NOTIFICATIONS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerServiceWorker.js","sources":["../../../../src/react-utils/BrowserPushNotifications/registerServiceWorker.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nfunction urlB64ToUint8Array(base64String) {\n const padding = \"=\".repeat((4 - (base64String.length % 4)) % 4);\n const base64 = (base64String + padding).replace(/-/g, \"+\").replace(/_/g, \"/\");\n\n const rawData = window.atob(base64);\n const outputArray = new Uint8Array(rawData.length);\n\n for (let i = 0; i < rawData.length; ++i) {\n outputArray[i] = rawData.charCodeAt(i);\n }\n\n return outputArray;\n}\n\nconst subscribeBrowserNotifications = async vapidPublicKey => {\n let subscription = {};\n try {\n const permission = await Notification.requestPermission();\n if (permission !== \"denied\") {\n await navigator.serviceWorker.register(\"/serviceworker.js\");\n const sw = await navigator.serviceWorker.ready;\n subscription = await sw.pushManager.subscribe({\n userVisibleOnly: true,\n applicationServerKey: urlB64ToUint8Array(vapidPublicKey),\n });\n\n return subscription;\n }\n logger.error(\"Notification Permission Denied\");\n } catch (error) {\n logger.error(error);\n }\n\n return null;\n};\nexport const unsubscribeBrowserNotifications = async () => {\n try {\n const sw = await navigator.serviceWorker.ready;\n const subscription = await sw.pushManager.getSubscription();\n if (subscription) {\n const res = await subscription.unsubscribe();\n logger.error(res);\n }\n } catch (error) {\n logger.error(error);\n }\n};\n\nexport const registerServiceWorker = async vapidPublicKey => {\n if (navigator.serviceWorker && vapidPublicKey) {\n const res = await subscribeBrowserNotifications(vapidPublicKey);\n\n return res;\n }\n logger.error(\"Service worker is not supported in this Browser\");\n\n return null;\n};\n"],"names":["urlB64ToUint8Array","base64String","padding","repeat","length","base64","replace","rawData","window","atob","outputArray","Uint8Array","i","charCodeAt","subscribeBrowserNotifications","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","vapidPublicKey","subscription","permission","sw","wrap","_callee$","_context","prev","next","Notification","requestPermission","sent","navigator","serviceWorker","register","ready","pushManager","subscribe","userVisibleOnly","applicationServerKey","abrupt","logger","error","t0","stop","_x","apply","arguments","unsubscribeBrowserNotifications","_ref2","_callee2","res","_callee2$","_context2","getSubscription","unsubscribe","registerServiceWorker","_ref3","_callee3","_callee3$","_context3","_x2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"registerServiceWorker.js","sources":["../../../../src/react-utils/BrowserPushNotifications/registerServiceWorker.js"],"sourcesContent":["// THIS FILE HAS BEEN ADDED BY NEETO NOTIFICATIONS ENGINE\n// AND IS USED FOR BROWSER NOTIFICATIONS\n// CONTACT NEETO NOTIFICATIONS TEAM BEFORE MODIFYING THIS FILE\n\nfunction urlB64ToUint8Array(base64String) {\n const padding = \"=\".repeat((4 - (base64String.length % 4)) % 4);\n const base64 = (base64String + padding).replace(/-/g, \"+\").replace(/_/g, \"/\");\n\n const rawData = window.atob(base64);\n const outputArray = new Uint8Array(rawData.length);\n\n for (let i = 0; i < rawData.length; ++i) {\n outputArray[i] = rawData.charCodeAt(i);\n }\n\n return outputArray;\n}\n\nconst subscribeBrowserNotifications = async vapidPublicKey => {\n let subscription = {};\n try {\n const permission = await Notification.requestPermission();\n if (permission !== \"denied\") {\n await navigator.serviceWorker.register(\"/serviceworker.js\");\n const sw = await navigator.serviceWorker.ready;\n subscription = await sw.pushManager.subscribe({\n userVisibleOnly: true,\n applicationServerKey: urlB64ToUint8Array(vapidPublicKey),\n });\n\n return subscription;\n }\n logger.error(\"Notification Permission Denied\");\n } catch (error) {\n logger.error(error);\n }\n\n return null;\n};\nexport const unsubscribeBrowserNotifications = async () => {\n try {\n const sw = await navigator.serviceWorker.ready;\n const subscription = await sw.pushManager.getSubscription();\n if (subscription) {\n const res = await subscription.unsubscribe();\n logger.error(res);\n }\n } catch (error) {\n logger.error(error);\n }\n};\n\nexport const registerServiceWorker = async vapidPublicKey => {\n if (navigator.serviceWorker && vapidPublicKey) {\n const res = await subscribeBrowserNotifications(vapidPublicKey);\n\n return res;\n }\n logger.error(\"Service worker is not supported in this Browser\");\n\n return null;\n};\n"],"names":["urlB64ToUint8Array","base64String","padding","repeat","length","base64","replace","rawData","window","atob","outputArray","Uint8Array","i","charCodeAt","subscribeBrowserNotifications","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","vapidPublicKey","subscription","permission","sw","wrap","_callee$","_context","prev","next","Notification","requestPermission","sent","navigator","serviceWorker","register","ready","pushManager","subscribe","userVisibleOnly","applicationServerKey","abrupt","logger","error","t0","stop","_x","apply","arguments","unsubscribeBrowserNotifications","_ref2","_callee2","res","_callee2$","_context2","getSubscription","unsubscribe","registerServiceWorker","_ref3","_callee3","_callee3$","_context3","_x2"],"mappings":";;;;;AAAA;AACA;AACA;;AAEA,SAASA,kBAAkBA,CAACC,YAAY,EAAE;AACxC,EAAA,IAAMC,OAAO,GAAG,GAAG,CAACC,MAAM,CAAC,CAAC,CAAC,GAAIF,YAAY,CAACG,MAAM,GAAG,CAAE,IAAI,CAAC,CAAC;AAC/D,EAAA,IAAMC,MAAM,GAAG,CAACJ,YAAY,GAAGC,OAAO,EAAEI,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAACA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A,EAEFW,GAAG,CAAA;AAAA,QAAA,KAAA,CAAA;AAEZV,UAAAA,MAAM,CAACC,KAAK,CAAC,iDAAiD,CAAC;AAAC,UAAA,OAAAkB,SAAA,CAAApB,MAAA,CAAA,QAAA,EAEzD,IAAI,CAAA;AAAA,QAAA,KAAA,CAAA;AAAA,QAAA,KAAA,KAAA;UAAA,OAAAoB,SAAA,CAAAhB,IAAA,EAAA;AAAA;AAAA,KAAA,EAAAc,QAAA,CAAA;GACZ,CAAA,CAAA;EAAA,OATYF,SAAAA,qBAAqBA,CAAAK,GAAA,EAAA;AAAA,IAAA,OAAAJ,KAAA,CAAAX,KAAA,CAAA,IAAA,EAAAC,SAAA,CAAA;AAAA,GAAA;AAAA,CASjC;;;;;"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
4
3
|
var Helmet = require('react-helmet');
|
|
5
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
5
|
|
|
7
6
|
var PageTitle = function PageTitle(_ref) {
|
|
8
7
|
var title = _ref.title;
|
|
9
|
-
var pageTitle = title ? "".concat(title, " | ").concat(
|
|
8
|
+
var pageTitle = title ? "".concat(title, " | ").concat(globalProps.appName) : globalProps.appName;
|
|
10
9
|
return /*#__PURE__*/jsxRuntime.jsx(Helmet, {
|
|
11
10
|
children: /*#__PURE__*/jsxRuntime.jsx("title", {
|
|
12
11
|
children: pageTitle
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageTitle.js","sources":["../../../../src/react-utils/PageTitle/PageTitle.jsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"PageTitle.js","sources":["../../../../src/react-utils/PageTitle/PageTitle.jsx"],"sourcesContent":["import PropTypes from \"prop-types\";\nimport Helmet from \"react-helmet\";\n\nconst PageTitle = ({ title }) => {\n const pageTitle = title\n ? `${title} | ${globalProps.appName}`\n : globalProps.appName;\n\n return (\n <Helmet>\n <title>{pageTitle}</title>\n </Helmet>\n );\n};\n\nPageTitle.propTypes = {\n /**\n * Title to be set to the page.\n */\n title: PropTypes.string,\n};\n\nexport default PageTitle;\n"],"names":["PageTitle","_ref","title","pageTitle","concat","globalProps","appName","_jsx","Helmet","children"],"mappings":";;;;;AAGA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAAkB;AAAA,EAAA,IAAZC,KAAK,GAAAD,IAAA,CAALC,KAAK;AACxB,EAAA,IAAMC,SAAS,GAAGD,KAAK,GAAAE,EAAAA,CAAAA,MAAA,CAChBF,KAAK,EAAA,KAAA,CAAA,CAAAE,MAAA,CAAMC,WAAW,CAACC,OAAO,CACjCD,GAAAA,WAAW,CAACC,OAAO;EAEvB,oBACEC,cAAA,CAACC,MAAM,EAAA;AAAAC,IAAAA,QAAA,eACLF,cAAA,CAAA,OAAA,EAAA;AAAAE,MAAAA,QAAA,EAAQN;KAAiB;AAAC,GACpB,CAAC;AAEb;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -47,7 +47,6 @@ require('./HoneybadgerErrorBoundary/utils.js');
|
|
|
47
47
|
require('../objectWithoutProperties-wSsbHFcG.js');
|
|
48
48
|
require('@bigbinary/neeto-molecules/ErrorPage');
|
|
49
49
|
require('react-router-dom');
|
|
50
|
-
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
51
50
|
require('react-helmet');
|
|
52
51
|
require('../slicedToArray-BcL7fKuL.js');
|
|
53
52
|
require('../unsupportedIterableToArray-BoHMiKNA.js');
|
|
@@ -61,7 +60,8 @@ require('./useIsElementVisibleInDom/useForceUpdate.js');
|
|
|
61
60
|
require('zustand/shallow');
|
|
62
61
|
require('../initializers/constants.js');
|
|
63
62
|
require('../utils/general.js');
|
|
64
|
-
require('../index-
|
|
63
|
+
require('../index-bFmfHzbL.js');
|
|
64
|
+
require('../_commonjsHelpers-BJu3ubxk.js');
|
|
65
65
|
require('i18next');
|
|
66
66
|
require('@bigbinary/neetoui/Toastr');
|
|
67
67
|
require('qs');
|
|
@@ -71,7 +71,7 @@ require('dayjs');
|
|
|
71
71
|
require('../utils/createSubscription.js');
|
|
72
72
|
require('@rails/actioncable');
|
|
73
73
|
require('yup');
|
|
74
|
-
require('../
|
|
74
|
+
require('../lodash-yQg9l0eZ.js');
|
|
75
75
|
require('@bigbinary/neeto-time-zones');
|
|
76
76
|
require('ua-parser-js');
|
|
77
77
|
require('@tanstack/react-query');
|
|
@@ -13,7 +13,8 @@ require('../../utils/general.js');
|
|
|
13
13
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
14
14
|
require('../../slicedToArray-BcL7fKuL.js');
|
|
15
15
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
16
|
-
require('../../index-
|
|
16
|
+
require('../../index-bFmfHzbL.js');
|
|
17
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
17
18
|
require('i18next');
|
|
18
19
|
require('@bigbinary/neetoui/Toastr');
|
|
19
20
|
require('qs');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -14,7 +14,8 @@ require('../../utils/general.js');
|
|
|
14
14
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
15
15
|
require('../../slicedToArray-BcL7fKuL.js');
|
|
16
16
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
17
|
-
require('../../index-
|
|
17
|
+
require('../../index-bFmfHzbL.js');
|
|
18
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
18
19
|
require('i18next');
|
|
19
20
|
require('@bigbinary/neetoui/Toastr');
|
|
20
21
|
require('qs');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchNeetoApps.js","sources":["../../../../src/react-utils/useFetchNeetoApps/useFetchNeetoApps.js"],"sourcesContent":["import { isNotPresent } from \"neetocist\";\nimport usePersistedQuery from \"react-utils/usePersistedQuery\";\n\nimport neetoAppsApi from \"./apis/neeto_apps\";\n\nimport { NEETO_APPS_LIST_STALE_TIME } from \"../constants\";\nimport { QUERY_KEYS } from \"../constants/query\";\n\nconst useFetchNeetoApps = options => {\n const scopedQueryKey = [\n `${QUERY_KEYS.NEETO_APPS_LIST}-${globalProps.user?.id}`,\n ];\n\n const { data, modifiedAt } = usePersistedQuery.getCache(scopedQueryKey) || {};\n const expired = modifiedAt <= Date.now() - NEETO_APPS_LIST_STALE_TIME;\n\n return usePersistedQuery(scopedQueryKey, neetoAppsApi.fetch, {\n staleTime: NEETO_APPS_LIST_STALE_TIME,\n enabled: expired || isNotPresent(data),\n ...options,\n });\n};\n\nexport default useFetchNeetoApps;\n"],"names":["useFetchNeetoApps","options","_globalProps$user","scopedQueryKey","concat","QUERY_KEYS","NEETO_APPS_LIST","globalProps","user","id","_ref","usePersistedQuery","getCache","data","modifiedAt","expired","Date","now","NEETO_APPS_LIST_STALE_TIME","neetoAppsApi","fetch","_objectSpread","staleTime","enabled","isNotPresent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFetchNeetoApps.js","sources":["../../../../src/react-utils/useFetchNeetoApps/useFetchNeetoApps.js"],"sourcesContent":["import { isNotPresent } from \"neetocist\";\nimport usePersistedQuery from \"react-utils/usePersistedQuery\";\n\nimport neetoAppsApi from \"./apis/neeto_apps\";\n\nimport { NEETO_APPS_LIST_STALE_TIME } from \"../constants\";\nimport { QUERY_KEYS } from \"../constants/query\";\n\nconst useFetchNeetoApps = options => {\n const scopedQueryKey = [\n `${QUERY_KEYS.NEETO_APPS_LIST}-${globalProps.user?.id}`,\n ];\n\n const { data, modifiedAt } = usePersistedQuery.getCache(scopedQueryKey) || {};\n const expired = modifiedAt <= Date.now() - NEETO_APPS_LIST_STALE_TIME;\n\n return usePersistedQuery(scopedQueryKey, neetoAppsApi.fetch, {\n staleTime: NEETO_APPS_LIST_STALE_TIME,\n enabled: expired || isNotPresent(data),\n ...options,\n });\n};\n\nexport default useFetchNeetoApps;\n"],"names":["useFetchNeetoApps","options","_globalProps$user","scopedQueryKey","concat","QUERY_KEYS","NEETO_APPS_LIST","globalProps","user","id","_ref","usePersistedQuery","getCache","data","modifiedAt","expired","Date","now","NEETO_APPS_LIST_STALE_TIME","neetoAppsApi","fetch","_objectSpread","staleTime","enabled","isNotPresent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAGC,OAAO,EAAI;AAAA,EAAA,IAAAC,iBAAA;EACnC,IAAMC,cAAc,GAAG,CAAAC,EAAAA,CAAAA,MAAA,CAClBC,qCAAU,CAACC,eAAe,EAAA,GAAA,CAAA,CAAAF,MAAA,CAAA,CAAAF,iBAAA,GAAIK,WAAW,CAACC,IAAI,MAAA,IAAA,IAAAN,iBAAA,KAAhBA,MAAAA,GAAAA,MAAAA,GAAAA,iBAAA,CAAkBO,EAAE,CACtD,CAAA;EAED,IAAAC,IAAA,GAA6BC,8CAAiB,CAACC,QAAQ,CAACT,cAAc,CAAC,IAAI,EAAE;IAArEU,IAAI,GAAAH,IAAA,CAAJG,IAAI;IAAEC,UAAU,GAAAJ,IAAA,CAAVI,UAAU;EACxB,IAAMC,OAAO,GAAGD,UAAU,IAAIE,IAAI,CAACC,GAAG,EAAE,GAAGC,yDAA0B;EAErE,OAAOP,8CAAiB,CAACR,cAAc,EAAEgB,4CAAY,CAACC,KAAK,EAAAC,aAAA,CAAA;AACzDC,IAAAA,SAAS,EAAEJ,yDAA0B;AACrCK,IAAAA,OAAO,EAAER,OAAO,IAAIS,sBAAY,CAACX,IAAI;GAClCZ,EAAAA,OAAO,CACX,CAAC;AACJ;;;;"}
|
|
@@ -9,7 +9,8 @@ require('axios');
|
|
|
9
9
|
require('../../initializers/constants.js');
|
|
10
10
|
require('../../utils/general.js');
|
|
11
11
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
12
|
-
require('../../index-
|
|
12
|
+
require('../../index-bFmfHzbL.js');
|
|
13
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
13
14
|
require('../../defineProperty-lChFfVqi.js');
|
|
14
15
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
15
16
|
require('i18next');
|
|
@@ -22,7 +23,7 @@ require('dayjs');
|
|
|
22
23
|
require('../../utils/createSubscription.js');
|
|
23
24
|
require('@rails/actioncable');
|
|
24
25
|
require('yup');
|
|
25
|
-
require('../../
|
|
26
|
+
require('../../lodash-yQg9l0eZ.js');
|
|
26
27
|
require('@bigbinary/neeto-time-zones');
|
|
27
28
|
require('ua-parser-js');
|
|
28
29
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -11,9 +11,9 @@ require('../../utils/createSubscription.js');
|
|
|
11
11
|
require('dayjs');
|
|
12
12
|
require('i18next');
|
|
13
13
|
require('yup');
|
|
14
|
-
require('../../
|
|
14
|
+
require('../../lodash-yQg9l0eZ.js');
|
|
15
15
|
require('@bigbinary/neeto-cist');
|
|
16
|
-
require('../../index-
|
|
16
|
+
require('../../index-bFmfHzbL.js');
|
|
17
17
|
require('@bigbinary/neeto-time-zones');
|
|
18
18
|
require('ua-parser-js');
|
|
19
19
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
@@ -24,6 +24,7 @@ require('@bigbinary/neetoui/Toastr');
|
|
|
24
24
|
require('qs');
|
|
25
25
|
require('../../toConsumableArray-tBKHqzE3.js');
|
|
26
26
|
require('@rails/actioncable');
|
|
27
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
27
28
|
|
|
28
29
|
var getStorageValue = function getStorageValue(key, defaultValue) {
|
|
29
30
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalStorage.js","sources":["../../../../src/react-utils/useLocalStorage/useLocalStorage.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/no-local-storage */\n\nimport { useState } from \"react\";\n\nimport { isNil } from \"ramda\";\nimport { removeFromLocalStorage, setToLocalStorage } from \"utils\";\n\nconst getStorageValue = (key, defaultValue) => {\n try {\n const storedValue = localStorage.getItem(key);\n\n return storedValue ? JSON.parse(storedValue) : defaultValue;\n } catch (error) {\n logger.error(error);\n\n return defaultValue;\n }\n};\n\nconst useLocalStorage = (key, defaultValue) => {\n const [storedValue, setStoredValue] = useState(() =>\n getStorageValue(key, defaultValue)\n );\n\n const setValue = value =>\n setStoredValue(prevStoredValue => {\n const newValue =\n typeof value === \"function\" ? value(prevStoredValue) : value;\n\n if (isNil(newValue)) {\n removeFromLocalStorage(key);\n } else {\n setToLocalStorage(key, newValue);\n }\n\n return newValue;\n });\n\n return [storedValue, setValue];\n};\n\nexport default useLocalStorage;\n"],"names":["getStorageValue","key","defaultValue","storedValue","localStorage","getItem","JSON","parse","error","logger","useLocalStorage","_useState","useState","_useState2","_slicedToArray","setStoredValue","setValue","value","prevStoredValue","newValue","isNil","removeFromLocalStorage","setToLocalStorage"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocalStorage.js","sources":["../../../../src/react-utils/useLocalStorage/useLocalStorage.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/no-local-storage */\n\nimport { useState } from \"react\";\n\nimport { isNil } from \"ramda\";\nimport { removeFromLocalStorage, setToLocalStorage } from \"utils\";\n\nconst getStorageValue = (key, defaultValue) => {\n try {\n const storedValue = localStorage.getItem(key);\n\n return storedValue ? JSON.parse(storedValue) : defaultValue;\n } catch (error) {\n logger.error(error);\n\n return defaultValue;\n }\n};\n\nconst useLocalStorage = (key, defaultValue) => {\n const [storedValue, setStoredValue] = useState(() =>\n getStorageValue(key, defaultValue)\n );\n\n const setValue = value =>\n setStoredValue(prevStoredValue => {\n const newValue =\n typeof value === \"function\" ? value(prevStoredValue) : value;\n\n if (isNil(newValue)) {\n removeFromLocalStorage(key);\n } else {\n setToLocalStorage(key, newValue);\n }\n\n return newValue;\n });\n\n return [storedValue, setValue];\n};\n\nexport default useLocalStorage;\n"],"names":["getStorageValue","key","defaultValue","storedValue","localStorage","getItem","JSON","parse","error","logger","useLocalStorage","_useState","useState","_useState2","_slicedToArray","setStoredValue","setValue","value","prevStoredValue","newValue","isNil","removeFromLocalStorage","setToLocalStorage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,GAAG,EAAEC,YAAY,EAAK;EAC7C,IAAI;AACF,IAAA,IAAMC,WAAW,GAAGC,YAAY,CAACC,OAAO,CAACJ,GAAG,CAAC;IAE7C,OAAOE,WAAW,GAAGG,IAAI,CAACC,KAAK,CAACJ,WAAW,CAAC,GAAGD,YAAY;GAC5D,CAAC,OAAOM,KAAK,EAAE;AACdC,IAAAA,MAAM,CAACD,KAAK,CAACA,KAAK,CAAC;AAEnB,IAAA,OAAON,YAAY;AACrB;AACF,CAAC;AAEKQ,IAAAA,eAAe,GAAG,SAAlBA,eAAeA,CAAIT,GAAG,EAAEC,YAAY,EAAK;EAC7C,IAAAS,SAAA,GAAsCC,cAAQ,CAAC,YAAA;AAAA,MAAA,OAC7CZ,eAAe,CAACC,GAAG,EAAEC,YAAY,CAAC;AAAA,KACpC,CAAC;IAAAW,UAAA,GAAAC,4BAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAFMR,IAAAA,WAAW,GAAAU,UAAA,CAAA,CAAA,CAAA;AAAEE,IAAAA,cAAc,GAAAF,UAAA,CAAA,CAAA,CAAA;AAIlC,EAAA,IAAMG,QAAQ,GAAG,SAAXA,QAAQA,CAAGC,KAAK,EAAA;AAAA,IAAA,OACpBF,cAAc,CAAC,UAAAG,eAAe,EAAI;AAChC,MAAA,IAAMC,QAAQ,GACZ,OAAOF,KAAK,KAAK,UAAU,GAAGA,KAAK,CAACC,eAAe,CAAC,GAAGD,KAAK;AAE9D,MAAA,IAAIG,WAAK,CAACD,QAAQ,CAAC,EAAE;QACnBE,oCAAsB,CAACpB,GAAG,CAAC;AAC7B,OAAC,MAAM;AACLqB,QAAAA,+BAAiB,CAACrB,GAAG,EAAEkB,QAAQ,CAAC;AAClC;AAEA,MAAA,OAAOA,QAAQ;AACjB,KAAC,CAAC;AAAA,GAAA;AAEJ,EAAA,OAAO,CAAChB,WAAW,EAAEa,QAAQ,CAAC;AAChC;;;;"}
|
|
@@ -11,7 +11,8 @@ require('../../utils/general.js');
|
|
|
11
11
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
12
12
|
require('../../slicedToArray-BcL7fKuL.js');
|
|
13
13
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
14
|
-
require('../../index-
|
|
14
|
+
require('../../index-bFmfHzbL.js');
|
|
15
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
15
16
|
require('i18next');
|
|
16
17
|
require('@bigbinary/neeto-cist');
|
|
17
18
|
require('@bigbinary/neetoui/Toastr');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -10,7 +10,8 @@ require('../../typeof-D4ZZ_FlZ.js');
|
|
|
10
10
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
11
11
|
require('../../slicedToArray-BcL7fKuL.js');
|
|
12
12
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
13
|
-
require('../../index-
|
|
13
|
+
require('../../index-bFmfHzbL.js');
|
|
14
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
14
15
|
require('i18next');
|
|
15
16
|
require('@bigbinary/neeto-cist');
|
|
16
17
|
require('@bigbinary/neetoui/Toastr');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePersistedQuery.js","sources":["../../../../src/react-utils/usePersistedQuery/usePersistedQuery.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { useQuery } from \"@tanstack/react-query\";\nimport { isNil } from \"ramda\";\nimport { QUERY_CACHE_NAME_SPACE } from \"react-utils/constants\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\n\nconst localStorageQueryCache = {\n set: (key, data) => {\n const cache = localStorageQueryCache.getAll();\n const newCache = { ...cache, [key]: { data, modifiedAt: Date.now() } };\n setToLocalStorage(QUERY_CACHE_NAME_SPACE, newCache);\n },\n getAll: () => {\n const cache = getFromLocalStorage(QUERY_CACHE_NAME_SPACE);\n if (!cache) return {};\n\n return cache;\n },\n get: key => localStorageQueryCache.getAll()[key],\n};\n\nconst isOutdated = (localCache, staleTime) => {\n if (isNil(localCache)) return true;\n\n if (isNil(staleTime)) return false;\n\n return localCache.modifiedAt <= Date.now() - staleTime;\n};\n\nconst usePersistedQuery = (queryKey, fetch, options) => {\n const queryResult = useQuery({\n queryKey,\n queryFn: fetch,\n ...options,\n });\n const localCache = localStorageQueryCache.get(queryKey);\n\n useEffect(() => {\n if (!queryResult.isSuccess) return;\n localStorageQueryCache.set(queryKey, queryResult.data);\n }, [queryKey, queryResult.data, queryResult.isSuccess]);\n\n if (isOutdated(localCache, options?.staleTime)) {\n return { ...queryResult, isFreshLoading: queryResult.isLoading };\n }\n\n return {\n ...queryResult,\n data: queryResult.data || localCache.data,\n isFreshLoading: false,\n };\n};\n\nusePersistedQuery.getCache = localStorageQueryCache.get;\n\nexport default usePersistedQuery;\n"],"names":["localStorageQueryCache","set","key","data","cache","getAll","newCache","_objectSpread","_defineProperty","modifiedAt","Date","now","setToLocalStorage","QUERY_CACHE_NAME_SPACE","getFromLocalStorage","get","isOutdated","localCache","staleTime","isNil","usePersistedQuery","queryKey","fetch","options","queryResult","useQuery","queryFn","useEffect","isSuccess","isFreshLoading","isLoading","getCache"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePersistedQuery.js","sources":["../../../../src/react-utils/usePersistedQuery/usePersistedQuery.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { useQuery } from \"@tanstack/react-query\";\nimport { isNil } from \"ramda\";\nimport { QUERY_CACHE_NAME_SPACE } from \"react-utils/constants\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\n\nconst localStorageQueryCache = {\n set: (key, data) => {\n const cache = localStorageQueryCache.getAll();\n const newCache = { ...cache, [key]: { data, modifiedAt: Date.now() } };\n setToLocalStorage(QUERY_CACHE_NAME_SPACE, newCache);\n },\n getAll: () => {\n const cache = getFromLocalStorage(QUERY_CACHE_NAME_SPACE);\n if (!cache) return {};\n\n return cache;\n },\n get: key => localStorageQueryCache.getAll()[key],\n};\n\nconst isOutdated = (localCache, staleTime) => {\n if (isNil(localCache)) return true;\n\n if (isNil(staleTime)) return false;\n\n return localCache.modifiedAt <= Date.now() - staleTime;\n};\n\nconst usePersistedQuery = (queryKey, fetch, options) => {\n const queryResult = useQuery({\n queryKey,\n queryFn: fetch,\n ...options,\n });\n const localCache = localStorageQueryCache.get(queryKey);\n\n useEffect(() => {\n if (!queryResult.isSuccess) return;\n localStorageQueryCache.set(queryKey, queryResult.data);\n }, [queryKey, queryResult.data, queryResult.isSuccess]);\n\n if (isOutdated(localCache, options?.staleTime)) {\n return { ...queryResult, isFreshLoading: queryResult.isLoading };\n }\n\n return {\n ...queryResult,\n data: queryResult.data || localCache.data,\n isFreshLoading: false,\n };\n};\n\nusePersistedQuery.getCache = localStorageQueryCache.get;\n\nexport default usePersistedQuery;\n"],"names":["localStorageQueryCache","set","key","data","cache","getAll","newCache","_objectSpread","_defineProperty","modifiedAt","Date","now","setToLocalStorage","QUERY_CACHE_NAME_SPACE","getFromLocalStorage","get","isOutdated","localCache","staleTime","isNil","usePersistedQuery","queryKey","fetch","options","queryResult","useQuery","queryFn","useEffect","isSuccess","isFreshLoading","isLoading","getCache"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,sBAAsB,GAAG;AAC7BC,EAAAA,GAAG,EAAE,SAALA,GAAGA,CAAGC,GAAG,EAAEC,IAAI,EAAK;AAClB,IAAA,IAAMC,KAAK,GAAGJ,sBAAsB,CAACK,MAAM,EAAE;IAC7C,IAAMC,QAAQ,GAAAC,aAAA,CAAAA,aAAA,CAAQH,EAAAA,EAAAA,KAAK,CAAAI,EAAAA,EAAAA,EAAAA,8BAAA,CAAGN,EAAAA,EAAAA,GAAG,EAAG;AAAEC,MAAAA,IAAI,EAAJA,IAAI;AAAEM,MAAAA,UAAU,EAAEC,IAAI,CAACC,GAAG;AAAG,KAAC,CAAE,CAAA;AACtEC,IAAAA,+BAAiB,CAACC,qDAAsB,EAAEP,QAAQ,CAAC;GACpD;AACDD,EAAAA,MAAM,EAAE,SAARA,MAAMA,GAAQ;AACZ,IAAA,IAAMD,KAAK,GAAGU,iCAAmB,CAACD,qDAAsB,CAAC;AACzD,IAAA,IAAI,CAACT,KAAK,EAAE,OAAO,EAAE;AAErB,IAAA,OAAOA,KAAK;GACb;AACDW,EAAAA,GAAG,EAAE,SAALA,GAAGA,CAAEb,GAAG,EAAA;AAAA,IAAA,OAAIF,sBAAsB,CAACK,MAAM,EAAE,CAACH,GAAG,CAAC;AAAA;AAClD,CAAC;AAED,IAAMc,UAAU,GAAG,SAAbA,UAAUA,CAAIC,UAAU,EAAEC,SAAS,EAAK;AAC5C,EAAA,IAAIC,WAAK,CAACF,UAAU,CAAC,EAAE,OAAO,IAAI;AAElC,EAAA,IAAIE,WAAK,CAACD,SAAS,C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sB,CAACe,GAAG;;;;"}
|
|
@@ -6,7 +6,8 @@ require('../../utils/general.js');
|
|
|
6
6
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
7
7
|
require('../../slicedToArray-BcL7fKuL.js');
|
|
8
8
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
9
|
-
require('../../index-
|
|
9
|
+
require('../../index-bFmfHzbL.js');
|
|
10
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
10
11
|
require('../../defineProperty-lChFfVqi.js');
|
|
11
12
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
12
13
|
require('i18next');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,7 +5,8 @@ var utils_general = require('../../utils/general.js');
|
|
|
5
5
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
6
6
|
require('../../slicedToArray-BcL7fKuL.js');
|
|
7
7
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
8
|
-
require('../../index-
|
|
8
|
+
require('../../index-bFmfHzbL.js');
|
|
9
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
9
10
|
require('../../defineProperty-lChFfVqi.js');
|
|
10
11
|
require('../../typeof-D4ZZ_FlZ.js');
|
|
11
12
|
require('i18next');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQueryParams.js","sources":["../../../../src/react-utils/useQueryParams/useQueryParams.js"],"sourcesContent":["import { useLocation } from \"react-router-dom\";\nimport { parseQueryParams } from \"utils/general\";\n\nconst useQueryParams = options => {\n const location = useLocation();\n\n return parseQueryParams(location.search, options);\n};\n\nexport default useQueryParams;\n"],"names":["useQueryParams","options","location","useLocation","parseQueryParams","search"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useQueryParams.js","sources":["../../../../src/react-utils/useQueryParams/useQueryParams.js"],"sourcesContent":["import { useLocation } from \"react-router-dom\";\nimport { parseQueryParams } from \"utils/general\";\n\nconst useQueryParams = options => {\n const location = useLocation();\n\n return parseQueryParams(location.search, options);\n};\n\nexport default useQueryParams;\n"],"names":["useQueryParams","options","location","useLocation","parseQueryParams","search"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,OAAO,EAAI;AAChC,EAAA,IAAMC,QAAQ,GAAGC,0BAAW,EAAE;AAE9B,EAAA,OAAOC,8BAAgB,CAACF,QAAQ,CAACG,MAAM,EAAEJ,OAAO,CAAC;AACnD;;;;"}
|
|
@@ -13,7 +13,8 @@ require('../../utils/general.js');
|
|
|
13
13
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
14
14
|
require('../../slicedToArray-BcL7fKuL.js');
|
|
15
15
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
16
|
-
require('../../index-
|
|
16
|
+
require('../../index-bFmfHzbL.js');
|
|
17
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
17
18
|
require('i18next');
|
|
18
19
|
require('@bigbinary/neeto-cist');
|
|
19
20
|
require('@bigbinary/neetoui/Toastr');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js
CHANGED
|
@@ -14,7 +14,8 @@ require('../../typeof-D4ZZ_FlZ.js');
|
|
|
14
14
|
require('../../objectWithoutProperties-wSsbHFcG.js');
|
|
15
15
|
require('../../slicedToArray-BcL7fKuL.js');
|
|
16
16
|
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
17
|
-
require('../../index-
|
|
17
|
+
require('../../index-bFmfHzbL.js');
|
|
18
|
+
require('../../_commonjsHelpers-BJu3ubxk.js');
|
|
18
19
|
require('i18next');
|
|
19
20
|
require('@bigbinary/neeto-cist');
|
|
20
21
|
require('@bigbinary/neetoui/Toastr');
|
package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRegisterNavigationCheckpoint.js","sources":["../../../../src/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { mergeDeepLeft, pick, prop, dissoc } from \"ramda\";\nimport { STORAGE_KEY } from \"react-utils/constants\";\nimport withImmutableActions from \"react-utils/withImmutableActions\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\nimport { create } from \"zustand\";\nimport { shallow } from \"zustand/shallow\";\n\nconst getLocalStorageData = () => getFromLocalStorage(STORAGE_KEY) || {};\n\nconst setLocalStorageData = data => setToLocalStorage(STORAGE_KEY, data);\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCheckpointStore = create(\n withImmutableActions(set => ({\n checkpoints: {},\n setCheckpoint: (key, path) =>\n set(mergeDeepLeft({ checkpoints: { [key]: path } })),\n removeCheckpoint: key =>\n set(state => ({ checkpoints: dissoc(key, state.checkpoints) })),\n }))\n);\n\nconst useRegisterNavigationCheckpoint = (\n key,\n path = window.location.pathname + window.location.search,\n persistInLocalStorage = false\n) => {\n const setCheckpoint = useCheckpointStore(prop(\"setCheckpoint\"));\n\n useEffect(() => {\n setCheckpoint(key, path);\n if (persistInLocalStorage) {\n const localStorageData = getLocalStorageData();\n setLocalStorageData({ ...localStorageData, [key]: path });\n }\n }, [key, path, persistInLocalStorage]);\n};\n\nexport const useNavigationCheckpoints = (...keys) => {\n const getCheckpoints = useCheckpointStore(\n store => pick(keys, store.checkpoints),\n shallow\n );\n\n const localStorageData = getLocalStorageData();\n const localStorageCheckpoints = pick(keys, localStorageData);\n\n return { ...getCheckpoints, ...localStorageCheckpoints };\n};\n\nexport const useRemoveNavigationCheckpoint = () => {\n const removeCheckpoint = useCheckpointStore(prop(\"removeCheckpoint\"));\n\n return key => {\n removeCheckpoint(key);\n const localStorageData = getLocalStorageData();\n setLocalStorageData(dissoc(key, localStorageData));\n };\n};\n\nexport default useRegisterNavigationCheckpoint;\n"],"names":["getLocalStorageData","getFromLocalStorage","STORAGE_KEY","setLocalStorageData","data","setToLocalStorage","useCheckpointStore","create","withImmutableActions","set","checkpoints","setCheckpoint","key","path","mergeDeepLeft","_defineProperty","removeCheckpoint","state","dissoc","useRegisterNavigationCheckpoint","arguments","length","undefined","window","location","pathname","search","persistInLocalStorage","prop","useEffect","localStorageData","_objectSpread","useNavigationCheckpoints","_len","keys","Array","_key","getCheckpoints","store","pick","shallow","localStorageCheckpoints","useRemoveNavigationCheckpoint"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRegisterNavigationCheckpoint.js","sources":["../../../../src/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { mergeDeepLeft, pick, prop, dissoc } from \"ramda\";\nimport { STORAGE_KEY } from \"react-utils/constants\";\nimport withImmutableActions from \"react-utils/withImmutableActions\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\nimport { create } from \"zustand\";\nimport { shallow } from \"zustand/shallow\";\n\nconst getLocalStorageData = () => getFromLocalStorage(STORAGE_KEY) || {};\n\nconst setLocalStorageData = data => setToLocalStorage(STORAGE_KEY, data);\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCheckpointStore = create(\n withImmutableActions(set => ({\n checkpoints: {},\n setCheckpoint: (key, path) =>\n set(mergeDeepLeft({ checkpoints: { [key]: path } })),\n removeCheckpoint: key =>\n set(state => ({ checkpoints: dissoc(key, state.checkpoints) })),\n }))\n);\n\nconst useRegisterNavigationCheckpoint = (\n key,\n path = window.location.pathname + window.location.search,\n persistInLocalStorage = false\n) => {\n const setCheckpoint = useCheckpointStore(prop(\"setCheckpoint\"));\n\n useEffect(() => {\n setCheckpoint(key, path);\n if (persistInLocalStorage) {\n const localStorageData = getLocalStorageData();\n setLocalStorageData({ ...localStorageData, [key]: path });\n }\n }, [key, path, persistInLocalStorage]);\n};\n\nexport const useNavigationCheckpoints = (...keys) => {\n const getCheckpoints = useCheckpointStore(\n store => pick(keys, store.checkpoints),\n shallow\n );\n\n const localStorageData = getLocalStorageData();\n const localStorageCheckpoints = pick(keys, localStorageData);\n\n return { ...getCheckpoints, ...localStorageCheckpoints };\n};\n\nexport const useRemoveNavigationCheckpoint = () => {\n const removeCheckpoint = useCheckpointStore(prop(\"removeCheckpoint\"));\n\n return key => {\n removeCheckpoint(key);\n const localStorageData = getLocalStorageData();\n setLocalStorageData(dissoc(key, localStorageData));\n };\n};\n\nexport default useRegisterNavigationCheckpoint;\n"],"names":["getLocalStorageData","getFromLocalStorage","STORAGE_KEY","setLocalStorageData","data","setToLocalStorage","useCheckpointStore","create","withImmutableActions","set","checkpoints","setCheckpoint","key","path","mergeDeepLeft","_defineProperty","removeCheckpoint","state","dissoc","useRegisterNavigationCheckpoint","arguments","length","undefined","window","location","pathname","search","persistInLocalStorage","prop","useEffect","localStorageData","_objectSpread","useNavigationCheckpoints","_len","keys","Array","_key","getCheckpoints","store","pick","shallow","localStorageCheckpoints","useRemoveNavigationCheckpoint"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAA;AAAA,EAAA,OAASC,iCAAmB,CAACC,0CAAW,CAAC,IAAI,EAAE;AAAA,CAAA;AAExE,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAGC,IAAI,EAAA;AAAA,EAAA,OAAIC,+BAAiB,CAACH,0CAAW,EAAEE,IAAI,CAAC;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AAE;AAC9CG,IAAAA,mBAAmB,CAACe,YAAM,CAACN,GAAG,EAAEkB,gBAAgB,CAAC,CAAC;GACnD;AACH;;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var lodash = require('../lodash-yQg9l0eZ.js');
|
|
4
|
+
require('../_commonjsHelpers-BJu3ubxk.js');
|
|
4
5
|
|
|
5
|
-
var captureAnalyticsEvent = function captureAnalyticsEvent(
|
|
6
|
-
|
|
7
|
-
return mixpanel_module.mixpanel.track(name, properties);
|
|
6
|
+
var captureAnalyticsEvent = function captureAnalyticsEvent(_name) {
|
|
7
|
+
return lodash.lodashExports.noop();
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
exports.captureAnalyticsEvent = captureAnalyticsEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captureAnalyticsEvent.js","sources":["../../../src/utils/captureAnalyticsEvent.js"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"captureAnalyticsEvent.js","sources":["../../../src/utils/captureAnalyticsEvent.js"],"sourcesContent":["import { noop } from \"lodash\";\n\nexport const captureAnalyticsEvent = (_name, _properties = {}) => noop();\n"],"names":["captureAnalyticsEvent","_name","noop"],"mappings":";;;;;IAEaA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,KAAK,EAAA;EAAkB,OAAKC,yBAAI,EAAE;AAAA;;;;"}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
require('../typeof-D4ZZ_FlZ.js');
|
|
3
|
+
var lodash = require('../lodash-yQg9l0eZ.js');
|
|
4
|
+
require('../_commonjsHelpers-BJu3ubxk.js');
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var captureAnalyticsPageView = function captureAnalyticsPageView(page) {
|
|
10
|
-
var properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
11
|
-
return mixpanel_module.mixpanel.track_pageview(_objectSpread({
|
|
12
|
-
page: page
|
|
13
|
-
}, properties));
|
|
6
|
+
var captureAnalyticsPageView = function captureAnalyticsPageView(_page) {
|
|
7
|
+
return lodash.lodashExports.noop();
|
|
14
8
|
};
|
|
15
9
|
|
|
16
10
|
exports.captureAnalyticsPageView = captureAnalyticsPageView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captureAnalyticsPageView.js","sources":["../../../src/utils/captureAnalyticsPageView.js"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"captureAnalyticsPageView.js","sources":["../../../src/utils/captureAnalyticsPageView.js"],"sourcesContent":["import { noop } from \"lodash\";\n\nexport const captureAnalyticsPageView = (_page, _properties = {}) => noop();\n"],"names":["captureAnalyticsPageView","_page","noop"],"mappings":";;;;;IAEaA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIC,KAAK,EAAA;EAAkB,OAAKC,yBAAI,EAAE;AAAA;;;;"}
|
|
@@ -5,7 +5,8 @@ var utils_general = require('./general.js');
|
|
|
5
5
|
require('../objectWithoutProperties-wSsbHFcG.js');
|
|
6
6
|
require('../slicedToArray-BcL7fKuL.js');
|
|
7
7
|
require('../unsupportedIterableToArray-BoHMiKNA.js');
|
|
8
|
-
require('../index-
|
|
8
|
+
require('../index-bFmfHzbL.js');
|
|
9
|
+
require('../_commonjsHelpers-BJu3ubxk.js');
|
|
9
10
|
require('../defineProperty-lChFfVqi.js');
|
|
10
11
|
require('../typeof-D4ZZ_FlZ.js');
|
|
11
12
|
require('i18next');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSubscription.js","sources":["../../../src/utils/createSubscription.js"],"sourcesContent":["import { createConsumer } from \"@rails/actioncable\";\nimport { buildUrl } from \"utils/general\";\n\nconst getWebsocketURL = () => {\n const websocketURL = document.querySelector(\n 'meta[name=\"action-cable-url\"]'\n )?.content;\n\n return buildUrl(websocketURL, {\n subdomain: globalProps.organization.subdomain,\n });\n};\n\nconst consumer = createConsumer(getWebsocketURL);\n\nexport const createSubscription = (channelName, callbacks) =>\n consumer.subscriptions.create(channelName, callbacks);\n"],"names":["getWebsocketURL","_document$querySelect","websocketURL","document","querySelector","content","buildUrl","subdomain","globalProps","organization","consumer","createConsumer","createSubscription","channelName","callbacks","subscriptions","create"],"mappings":"
|
|
1
|
+
{"version":3,"file":"createSubscription.js","sources":["../../../src/utils/createSubscription.js"],"sourcesContent":["import { createConsumer } from \"@rails/actioncable\";\nimport { buildUrl } from \"utils/general\";\n\nconst getWebsocketURL = () => {\n const websocketURL = document.querySelector(\n 'meta[name=\"action-cable-url\"]'\n )?.content;\n\n return buildUrl(websocketURL, {\n subdomain: globalProps.organization.subdomain,\n });\n};\n\nconst consumer = createConsumer(getWebsocketURL);\n\nexport const createSubscription = (channelName, callbacks) =>\n consumer.subscriptions.create(channelName, callbacks);\n"],"names":["getWebsocketURL","_document$querySelect","websocketURL","document","querySelector","content","buildUrl","subdomain","globalProps","organization","consumer","createConsumer","createSubscription","channelName","callbacks","subscriptions","create"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,GAAS;AAAA,EAAA,IAAAC,qBAAA;AAC5B,EAAA,IAAMC,YAAY,GAAA,CAAAD,qBAAA,GAAGE,QAAQ,CAACC,aAAa,CACzC,+BACF,CAAC,MAAAH,IAAAA,IAAAA,qBAAA,KAFoBA,MAAAA,GAAAA,MAAAA,GAAAA,qBAAA,CAElBI,OAAO;EAEV,OAAOC,sBAAQ,CAACJ,YAAY,EAAE;AAC5BK,IAAAA,SAAS,EAAEC,WAAW,CAACC,YAAY,CAACF;AACtC,GAAC,CAAC;AACJ,CAAC;AAED,IAAMG,QAAQ,GAAGC,0BAAc,CAACX,eAAe,CAAC;AAEzC,IAAMY,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,WAAW,EAAEC,SAAS,EAAA;EAAA,OACvDJ,QAAQ,CAACK,aAAa,CAACC,MAAM,CAACH,WAAW,EAAEC,SAAS,CAAC;AAAA;;;;"}
|
|
@@ -247,7 +247,7 @@ var parseFormattedInput = function parseFormattedInput(input, format, utc, dayjs
|
|
|
247
247
|
return new Date(""); // Invalid Date
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
var
|
|
250
|
+
var customParseFormat = (function (o, C, d) {
|
|
251
251
|
d.p.customParseFormat = true;
|
|
252
252
|
if (o && o.parseTwoDigitYear) {
|
|
253
253
|
parseTwoDigitYear = o.parseTwoDigitYear;
|
|
@@ -304,5 +304,5 @@ var customParseFormatPlugin = (function (o, C, d) {
|
|
|
304
304
|
};
|
|
305
305
|
});
|
|
306
306
|
|
|
307
|
-
module.exports =
|
|
307
|
+
module.exports = customParseFormat;
|
|
308
308
|
//# sourceMappingURL=customParseFormatPlugin.js.map
|