admin/patches/mapir-react-component@2.0.7.patch
alisaza e1eaf5eff5 feat: initial ghabilee-admin backoffice app
Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js
app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
2026-09-05 13:12:59 +03:30

40 lines
4.2 KiB
Diff

diff --git a/dist/index.cjs.js b/dist/index.cjs.js
index d47bcec3f82e25bef04b87f60eea5cb790bd53f1..f4d9aba38287d75669eb5a9efb905dce727e0d82 100644
--- a/dist/index.cjs.js
+++ b/dist/index.cjs.js
@@ -4472,7 +4472,7 @@ DrawControl.defaultProps = {
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
-mapboxGl.exports.setRTLTextPlugin('https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js');
+mapboxGl.exports.setRTLTextPlugin(((typeof window !== 'undefined' && window.__NEXT_DATA__ && window.__NEXT_DATA__.assetPrefix) || '') + '/vendor/mapbox-gl-rtl-text.js');
var Mapir = /*#__PURE__*/function (_React$Component) {
_inherits__default['default'](Mapir, _React$Component);
diff --git a/dist/index.esm.js b/dist/index.esm.js
index dc53c3669c0ed30c85a969997b259930ba714c32..e8b5861958c3a15852ab8ada8e2db2b14c7f33cd 100644
--- a/dist/index.esm.js
+++ b/dist/index.esm.js
@@ -4439,7 +4439,7 @@ DrawControl.defaultProps = {
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
-mapboxGl.exports.setRTLTextPlugin('https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js');
+mapboxGl.exports.setRTLTextPlugin(((typeof window !== 'undefined' && window.__NEXT_DATA__ && window.__NEXT_DATA__.assetPrefix) || '') + '/vendor/mapbox-gl-rtl-text.js');
var Mapir = /*#__PURE__*/function (_React$Component) {
_inherits(Mapir, _React$Component);
diff --git a/dist/index.js b/dist/index.js
index e944f5b7433fe837146290d80f23af10cf84ddc7..d9d43eca503d3beb01d7d465595551d43877df29 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -4564,7 +4564,7 @@
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
- mapboxGl.exports.setRTLTextPlugin('https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js');
+ mapboxGl.exports.setRTLTextPlugin(((typeof window !== 'undefined' && window.__NEXT_DATA__ && window.__NEXT_DATA__.assetPrefix) || '') + '/vendor/mapbox-gl-rtl-text.js');
var Mapir = /*#__PURE__*/function (_React$Component) {
_inherits(Mapir, _React$Component);