@capillarytech/blaze-ui 4.33.9 → 4.33.10

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.
@@ -3881,49 +3881,6 @@ _dayjs.default.extend(_utc.default);
3881
3881
  _dayjs.default.extend(_dayjsTimezoneIanaPlugin.default);
3882
3882
  _dayjs.default.extend(_dayjsAbbrTimezone.default);
3883
3883
 
3884
- // Verify timezone plugin was properly extended immediately after extending
3885
- // This ensures we catch issues early and helps with webpack bundling
3886
- const testInstance = (0, _dayjs.default)();
3887
- if (typeof testInstance.tz !== 'function') {
3888
- console.error('[dayjs-timezone-iana-plugin] CRITICAL: Plugin not properly extended!', 'dayjs().tz type:', typeof testInstance.tz, 'This indicates the plugin extension failed. Check plugin import and order.');
3889
- // Try to re-extend as a fallback (shouldn't be necessary, but helps with bundling issues)
3890
- try {
3891
- _dayjs.default.extend(_dayjsTimezoneIanaPlugin.default);
3892
- const retestInstance = (0, _dayjs.default)();
3893
- if (typeof retestInstance.tz === 'function') {
3894
- console.warn('[dayjs-timezone-iana-plugin] Plugin extension succeeded on retry.');
3895
- }
3896
- } catch (error) {
3897
- console.error('[dayjs-timezone-iana-plugin] Failed to extend plugin:', error);
3898
- }
3899
- }
3900
-
3901
- // dayjs-timezone-iana-plugin only provides instance method dayjs().tz(), not static dayjs.tz()
3902
- // Add a static wrapper function to match the API used throughout the codebase
3903
- // Check if dayjs.tz is callable as a function (it might be an object with setDefault)
3904
- const tzIsCallable = typeof _dayjs.default.tz === 'function';
3905
- if (!tzIsCallable) {
3906
- // Preserve existing properties (like setDefault) if they exist
3907
- const existingTz = _dayjs.default.tz;
3908
- const existingSetDefault = existingTz && typeof existingTz.setDefault === 'function' ? existingTz.setDefault : null;
3909
-
3910
- // Create a static tz function that wraps the instance method
3911
- // This wrapper ensures dayjs.tz() works even if the instance method is available
3912
- _dayjs.default.tz = function (date, tzName) {
3913
- // Verify instance method is available before using it
3914
- const instance = !date ? (0, _dayjs.default)() : _dayjs.default.isDayjs(date) ? date : (0, _dayjs.default)(date);
3915
- if (typeof instance.tz !== 'function') {
3916
- throw new Error('dayjs().tz() is not available. The timezone plugin may not be properly extended. ' + 'Check that dayjs-timezone-iana-plugin is correctly imported and extended.');
3917
- }
3918
- return instance.tz(tzName);
3919
- };
3920
-
3921
- // Restore setDefault if it existed
3922
- if (existingSetDefault) {
3923
- _dayjs.default.tz.setDefault = existingSetDefault;
3924
- }
3925
- }
3926
-
3927
3884
  // Core functionality plugins
3928
3885
  _dayjs.default.extend(_relativeTime.default);
3929
3886
  _dayjs.default.extend(_customParseFormat.default);