datastake-daf 0.6.294 β 0.6.296
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.js +49 -479
- package/dist/utils/index.js +9 -0
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobe.jsx +40 -108
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobe.stories.js +0 -32
- package/src/@daf/core/components/Dashboard/Steps/Steps.stories.js +76 -2
- package/src/@daf/core/components/Dashboard/Steps/index.jsx +8 -5
- package/src/@daf/core/components/Dashboard/Steps/style.js +7 -0
- package/src/@daf/core/components/EditForm/storyConfig.js +1 -1
- package/src/@daf/core/components/EditForm/storyConfig2.js +12945 -114
- package/src/constants/locales/en/translation.js +3 -0
- package/src/constants/locales/fr/translation.js +3 -0
- package/src/constants/locales/sp/translation.js +3 -0
- package/src/index.js +0 -2
- package/dist/style/datastake/mapbox-gl.css +0 -330
- package/src/@daf/core/components/Dashboard/Globe/CSSInJSGlobe.jsx +0 -415
- package/src/@daf/core/components/Dashboard/Globe/IsolatedGlobe.jsx +0 -345
- package/src/@daf/core/components/Dashboard/Globe/NoConflictGlobe.jsx +0 -488
- package/src/styles/datastake/mapbox-gl.css +0 -330
package/dist/components/index.js
CHANGED
|
@@ -11066,7 +11066,7 @@ var unitlessKeys = {
|
|
|
11066
11066
|
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.12",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},React.useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L$1(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,W=G?Symbol.for("react.forward_ref"):60112,q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[W]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:q;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,!1)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=!1,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c$1=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c$1.slice();u.push(function(e){e.type===c&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(de$1),u.push(he$1);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=ue$1(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return pe$1(l,be$1(u.concat(we$1(function(e){return p.push(e)})))),p};return p.hash=c$1.length?c$1.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,ze=Fe(),$e=React__default["default"].createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;React__default["default"].createContext(void 0);function Ge(){return React.useContext($e)}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),qe=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;qe(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(He(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof We||ce(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(r,t,n,o)}var s;return e instanceof We?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),et=React__default["default"].createContext(void 0);et.Consumer;var rt={},st=new Set;function it(e,r,s){var i=se(e),a=e,c=!L$1(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat($(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L$1(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React__default["default"].useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&React.useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&React.useDebugValue(o),o}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L$1(S)&&!A.has(S)?"class":"className"]=N,w.ref=s,React.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React__default["default"].forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign(__assign({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var St="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[St]||(window[St]=0),1===window[St]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[St]+=1);
|
|
11067
11067
|
|
|
11068
11068
|
var _templateObject$d;
|
|
11069
|
-
const Style$
|
|
11069
|
+
const Style$K = dt.div(_templateObject$d || (_templateObject$d = _taggedTemplateLiteral(["\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n\n\t.p-placeholder {\n\t\tposition: absolute;\n\t\ttop: 0px;\n\t\tleft: 0px;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: transparent;\n\t\tz-index: 100;\n\t}\n"])));
|
|
11070
11070
|
|
|
11071
11071
|
/**
|
|
11072
11072
|
* ComponentWithFocus
|
|
@@ -11126,7 +11126,7 @@ function ComponentWithFocus(_ref) {
|
|
|
11126
11126
|
setClosed(false);
|
|
11127
11127
|
}
|
|
11128
11128
|
}, [closed]);
|
|
11129
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
11129
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Style$K, {
|
|
11130
11130
|
className: className,
|
|
11131
11131
|
ref: ref,
|
|
11132
11132
|
style: style,
|
|
@@ -11171,7 +11171,7 @@ function StickyTable(_ref) {
|
|
|
11171
11171
|
return data.length > 5 ? ComponentWithFocus : "div";
|
|
11172
11172
|
}, [data.length]);
|
|
11173
11173
|
return /*#__PURE__*/jsxRuntime.jsx(Wrapper, {
|
|
11174
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
11174
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Style$J, {
|
|
11175
11175
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
11176
11176
|
className: "daf-table-wrapper",
|
|
11177
11177
|
style: {
|
|
@@ -11196,7 +11196,7 @@ function StickyTable(_ref) {
|
|
|
11196
11196
|
})
|
|
11197
11197
|
});
|
|
11198
11198
|
}
|
|
11199
|
-
const Style$
|
|
11199
|
+
const Style$J = dt.div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteral(["\n\tmax-width: calc(100% - 48px);\n\tmargin-left: var(--size-lg);\n\toverflow: hidden;\n\n\t.daf-table {\n\t\tpadding: 0px;\n\t\tmargin-top: 0px;\n\n\t\t.ant-tag {\n\t\t\ttext-align: center;\n\t\t}\n\t}\n\n\t.daf-select-filters .filters {\n\t\tpadding-top: 16px;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t}\n\n\t.daf-table {\n\t\tpadding-top: 16px;\n\t}\n"])));
|
|
11200
11200
|
StickyTable.propTypes = {
|
|
11201
11201
|
size: PropTypes__default["default"].any,
|
|
11202
11202
|
maxHeight: PropTypes__default["default"].number,
|
|
@@ -11724,7 +11724,7 @@ FilterButton.propTypes = {
|
|
|
11724
11724
|
const MOBILE_W = 850;
|
|
11725
11725
|
const MOBILE_WIDTH = `max-width: ${MOBILE_W}px`;
|
|
11726
11726
|
|
|
11727
|
-
const Style$
|
|
11727
|
+
const Style$I = dt.div`
|
|
11728
11728
|
.ant-btn {
|
|
11729
11729
|
border-radius: 100px 100px 100px 0;
|
|
11730
11730
|
padding: 10px;
|
|
@@ -11785,7 +11785,7 @@ const BorderedButton = _ref => {
|
|
|
11785
11785
|
children
|
|
11786
11786
|
} = _ref,
|
|
11787
11787
|
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
11788
|
-
return /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
11788
|
+
return /*#__PURE__*/jsxRuntime.jsx(Style$I, {
|
|
11789
11789
|
className: "d-btn-cont",
|
|
11790
11790
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
11791
11791
|
children: children
|
|
@@ -11896,7 +11896,7 @@ function Badge(_ref) {
|
|
|
11896
11896
|
}, [tooltip]);
|
|
11897
11897
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
11898
11898
|
title: tooltipTitle,
|
|
11899
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
11899
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Style$H, {
|
|
11900
11900
|
className: "".concat((_variantConfig$varian = variantConfig[variant]) === null || _variantConfig$varian === void 0 ? void 0 : _variantConfig$varian.className, " ").concat(roundedConfig[rounded], " ").concat(className ? className : ""),
|
|
11901
11901
|
style: _objectSpread2({
|
|
11902
11902
|
width: size === "icon" ? "fit-content" : isNumberSize ? "".concat(size, "px") : "100%"
|
|
@@ -11911,7 +11911,7 @@ function Badge(_ref) {
|
|
|
11911
11911
|
})
|
|
11912
11912
|
});
|
|
11913
11913
|
}
|
|
11914
|
-
const Style$
|
|
11914
|
+
const Style$H = dt.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteral(["\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: 4px;\n\tpadding: 4px;\n\tmax-width: 100%;\n\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n\n\t> svg {\n\t\tflex-shrink: 0;\n\t}\n\n\t> span {\n\t\tall: unset;\n\t\tmargin-left: 4px;\n\t\tfont-weight: 600;\n\t\tfont-size: 12px;\n\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t\tdisplay: block;\n\t\tmax-width: 100%;\n\t}\n"])));
|
|
11915
11915
|
Badge.propTypes = {
|
|
11916
11916
|
children: PropTypes__default["default"].node,
|
|
11917
11917
|
className: PropTypes__default["default"].string,
|
|
@@ -16276,7 +16276,7 @@ function FlowWidget(_ref) {
|
|
|
16276
16276
|
className: "with-border-header ".concat(widgetClassname),
|
|
16277
16277
|
tabsConfig: tabConfig
|
|
16278
16278
|
}, rest), {}, {
|
|
16279
|
-
children: !isEmpty ? /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
16279
|
+
children: !isEmpty ? /*#__PURE__*/jsxRuntime.jsx(Style$G, {
|
|
16280
16280
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Steps, {
|
|
16281
16281
|
current: currentForActiveTab,
|
|
16282
16282
|
initial: initialForActiveTab,
|
|
@@ -16318,7 +16318,7 @@ function Icon(_ref2) {
|
|
|
16318
16318
|
return icon(status);
|
|
16319
16319
|
}
|
|
16320
16320
|
}
|
|
16321
|
-
const Style$
|
|
16321
|
+
const Style$G = dt.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteral(["\n\toverflow-x: auto;\n\toverflow-y: hidden;\n\n\t::-webkit-scrollbar {\n\t\tdisplay: none;\n\t}\n\n\tscrollbar-width: none;\n\n\t-ms-overflow-style: none;\n\n\t@media (max-width: 532px) {\n\t\toverflow-x: hidden;\n\t}\n\n\t:where(.ant-steps-horizontal):not(.ant-steps-label-vertical) {\n\t\t.ant-steps-item-content {\n\t\t\twidth: 100%;\n\n\t\t\t.ant-steps-item-description {\n\t\t\t\tmin-width: 205px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n"])));
|
|
16322
16322
|
FlowWidget.propTypes = {
|
|
16323
16323
|
title: PropTypes__default["default"].string,
|
|
16324
16324
|
loading: PropTypes__default["default"].bool,
|
|
@@ -16380,7 +16380,7 @@ ActionWidget.propTypes = {
|
|
|
16380
16380
|
onClick: PropTypes__default["default"].func
|
|
16381
16381
|
};
|
|
16382
16382
|
|
|
16383
|
-
const Style$
|
|
16383
|
+
const Style$F = dt.div`
|
|
16384
16384
|
overflow-x: auto;
|
|
16385
16385
|
|
|
16386
16386
|
@media (${MOBILE_WIDTH}) {
|
|
@@ -16571,7 +16571,7 @@ function KeyIndicatorsWidget$1(_ref) {
|
|
|
16571
16571
|
className: formatClassname(["flex-1 with-border-header", widgetClassName]),
|
|
16572
16572
|
title: noTitle ? undefined : t(title),
|
|
16573
16573
|
noTitle: noTitle,
|
|
16574
|
-
children: [children, /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
16574
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(Style$F, {
|
|
16575
16575
|
className: formatClassname(["flex", className]),
|
|
16576
16576
|
children: config.map((c, i) => /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16577
16577
|
className: "row-item",
|
|
@@ -16624,7 +16624,7 @@ function TooltipIcon(_ref) {
|
|
|
16624
16624
|
});
|
|
16625
16625
|
}
|
|
16626
16626
|
|
|
16627
|
-
const Style$
|
|
16627
|
+
const Style$E = dt.div`
|
|
16628
16628
|
display: flex;
|
|
16629
16629
|
flex-direction: row;
|
|
16630
16630
|
position: relative;
|
|
@@ -18051,7 +18051,7 @@ function LocationIcon({
|
|
|
18051
18051
|
});
|
|
18052
18052
|
}
|
|
18053
18053
|
|
|
18054
|
-
const Style$
|
|
18054
|
+
const Style$D = dt.div`
|
|
18055
18055
|
.main {
|
|
18056
18056
|
width: 24px;
|
|
18057
18057
|
height: 24px;
|
|
@@ -18193,7 +18193,7 @@ function StakeholderIcon({
|
|
|
18193
18193
|
link,
|
|
18194
18194
|
onClickLink: () => onClickLink(marker)
|
|
18195
18195
|
}),
|
|
18196
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
18196
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Style$D
|
|
18197
18197
|
// onClick={toggleOpen}
|
|
18198
18198
|
, {
|
|
18199
18199
|
className: `map-marker marker closed`,
|
|
@@ -18206,7 +18206,7 @@ function StakeholderIcon({
|
|
|
18206
18206
|
})
|
|
18207
18207
|
});
|
|
18208
18208
|
}
|
|
18209
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
18209
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Style$D, {
|
|
18210
18210
|
onClick: toggleOpen,
|
|
18211
18211
|
className: `map-marker marker ${isActive ? "opened" : "closed"}`,
|
|
18212
18212
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -18882,7 +18882,7 @@ const useMap$1 = ({
|
|
|
18882
18882
|
};
|
|
18883
18883
|
};
|
|
18884
18884
|
|
|
18885
|
-
const Style$
|
|
18885
|
+
const Style$C = dt.div`
|
|
18886
18886
|
position: absolute;
|
|
18887
18887
|
top: 24px;
|
|
18888
18888
|
left: 24px;
|
|
@@ -19057,7 +19057,7 @@ function Filters({
|
|
|
19057
19057
|
return null;
|
|
19058
19058
|
}
|
|
19059
19059
|
};
|
|
19060
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
19060
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Style$C, {
|
|
19061
19061
|
children: [/*#__PURE__*/jsxRuntime.jsxs(antd.Button, {
|
|
19062
19062
|
onClick: () => setOpened(p => !p),
|
|
19063
19063
|
children: [t("Filter"), /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
@@ -19134,7 +19134,7 @@ function Map$3(_ref) {
|
|
|
19134
19134
|
isSatellite
|
|
19135
19135
|
});
|
|
19136
19136
|
return /*#__PURE__*/jsxRuntime.jsx(ComponentWithFocus, {
|
|
19137
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
19137
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Style$E, {
|
|
19138
19138
|
className: formatClassname([showSider && activeMarker && "with-sider"]),
|
|
19139
19139
|
children: [filtersConfig ? /*#__PURE__*/jsxRuntime.jsx(Filters, {
|
|
19140
19140
|
t: t,
|
|
@@ -19315,7 +19315,7 @@ function InExpandableWidgetMap(_ref) {
|
|
|
19315
19315
|
});
|
|
19316
19316
|
}
|
|
19317
19317
|
|
|
19318
|
-
const Style$
|
|
19318
|
+
const Style$B = dt.div`
|
|
19319
19319
|
display: flex;
|
|
19320
19320
|
flex-direction: row;
|
|
19321
19321
|
position: relative;
|
|
@@ -20832,7 +20832,7 @@ function Globe(_ref) {
|
|
|
20832
20832
|
}
|
|
20833
20833
|
}, [forceResize]);
|
|
20834
20834
|
return /*#__PURE__*/jsxRuntime.jsx(ComponentWithFocus, {
|
|
20835
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
20835
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Style$B, {
|
|
20836
20836
|
className: formatClassname([showSider && activeMarker && "with-sider"]),
|
|
20837
20837
|
children: [filtersConfig ? /*#__PURE__*/jsxRuntime.jsx(Filters, {
|
|
20838
20838
|
t: t,
|
|
@@ -20959,26 +20959,27 @@ const SimpleGlobe = _ref => {
|
|
|
20959
20959
|
// Set Mapbox access token
|
|
20960
20960
|
mapboxgl.accessToken = 'pk.eyJ1IjoicmVkaXM5OTkiLCJhIjoiY2x4YWV5MzA5MmtuZzJpcXM5Y201Z2E2YiJ9.m5bwPg-Tj4Akesl1yQUa3w';
|
|
20961
20961
|
|
|
20962
|
-
// Create map with custom Straatos style
|
|
20962
|
+
// Create map with custom Straatos style
|
|
20963
20963
|
map.current = new mapboxgl.Map({
|
|
20964
20964
|
container: mapContainer.current,
|
|
20965
20965
|
style: 'mapbox://styles/pietragottardo/cm9tt9zfi00d101pg1vdx26si',
|
|
20966
20966
|
center: [0, 0],
|
|
20967
20967
|
zoom: mapConfig.maxZoom || 3,
|
|
20968
20968
|
projection: 'globe',
|
|
20969
|
-
// 3D globe settings for proper rendering
|
|
20970
|
-
pitch: 0,
|
|
20971
|
-
bearing: 0,
|
|
20972
|
-
antialias: true,
|
|
20973
|
-
fadeDuration: 0,
|
|
20974
20969
|
attributionControl: false
|
|
20975
20970
|
});
|
|
20976
20971
|
|
|
20977
|
-
//
|
|
20978
|
-
map.current.on('
|
|
20979
|
-
console.log('
|
|
20972
|
+
// Add markers when map loads
|
|
20973
|
+
map.current.on('load', () => {
|
|
20974
|
+
console.log('πΊοΈ [SIMPLE GLOBE] Map loaded, adding markers...');
|
|
20975
|
+
|
|
20976
|
+
// Hide Mapbox logo and attribution completely
|
|
20977
|
+
map.current.getContainer();
|
|
20978
|
+
const style = document.createElement('style');
|
|
20979
|
+
style.textContent = "\n .mapboxgl-ctrl-logo,\n .mapboxgl-ctrl-attrib,\n .mapboxgl-ctrl-bottom-left,\n .mapboxgl-ctrl-bottom-right {\n display: none !important;\n }\n .mapboxgl-canvas-container {\n overflow: hidden !important;\n }\n .mapboxgl-canvas {\n overflow: hidden !important;\n }\n /* CRITICAL: Override Leaflet CSS interference with Mapbox */\n .daf-simple-globe-container .mapboxgl-canvas-container {\n position: relative !important;\n left: auto !important;\n top: auto !important;\n }\n .daf-simple-globe-container .mapboxgl-canvas-container canvas {\n position: relative !important;\n left: auto !important;\n top: auto !important;\n transform: none !important;\n }\n /* Prevent Leaflet styles from affecting Mapbox markers */\n .daf-simple-globe-container .daf-globe-marker {\n position: relative !important;\n left: auto !important;\n top: auto !important;\n }\n ";
|
|
20980
|
+
document.head.appendChild(style);
|
|
20980
20981
|
|
|
20981
|
-
// Set
|
|
20982
|
+
// Set the space background with stars
|
|
20982
20983
|
try {
|
|
20983
20984
|
map.current.setFog({
|
|
20984
20985
|
'color': 'rgb(0, 0, 0)',
|
|
@@ -21003,29 +21004,6 @@ const SimpleGlobe = _ref => {
|
|
|
21003
21004
|
}
|
|
21004
21005
|
}
|
|
21005
21006
|
|
|
21006
|
-
// Set lighting for better 3D globe visibility
|
|
21007
|
-
try {
|
|
21008
|
-
map.current.setLight({
|
|
21009
|
-
'anchor': 'viewport',
|
|
21010
|
-
'color': 'white',
|
|
21011
|
-
'intensity': 0.4
|
|
21012
|
-
});
|
|
21013
|
-
console.log('π‘ [SIMPLE GLOBE] Lighting configured for 3D globe');
|
|
21014
|
-
} catch (e) {
|
|
21015
|
-
console.log('β οΈ [SIMPLE GLOBE] Could not set lighting');
|
|
21016
|
-
}
|
|
21017
|
-
});
|
|
21018
|
-
|
|
21019
|
-
// Add markers when map loads
|
|
21020
|
-
map.current.on('load', () => {
|
|
21021
|
-
console.log('πΊοΈ [SIMPLE GLOBE] Map loaded, adding markers...');
|
|
21022
|
-
|
|
21023
|
-
// Hide Mapbox logo and attribution completely
|
|
21024
|
-
map.current.getContainer();
|
|
21025
|
-
const style = document.createElement('style');
|
|
21026
|
-
style.textContent = "\n .mapboxgl-ctrl-logo,\n .mapboxgl-ctrl-attrib,\n .mapboxgl-ctrl-bottom-left,\n .mapboxgl-ctrl-bottom-right {\n display: none !important;\n }\n .mapboxgl-canvas-container {\n overflow: hidden !important;\n }\n .mapboxgl-canvas {\n overflow: hidden !important;\n }\n \n /* Namespace Mapbox styles to avoid Leaflet interference */\n .daf-simple-globe-container .mapboxgl-marker {\n position: absolute !important; /* let Mapbox control positioning */\n transform: none !important; /* let Mapbox handle positioning for 3D globe */\n left: auto !important;\n top: auto !important;\n z-index: 1000 !important; /* ensure markers are visible */\n }\n \n .daf-simple-globe-container .mapboxgl-marker-pane {\n position: absolute !important;\n z-index: 1000 !important;\n }\n \n .daf-simple-globe-container .mapboxgl-canvas {\n position: absolute !important;\n top: 0;\n left: 0;\n }\n \n .daf-simple-globe-container .mapboxgl-canvas-container {\n position: relative !important;\n left: auto !important;\n top: auto !important;\n }\n \n .daf-simple-globe-container .mapboxgl-canvas-container canvas {\n position: absolute !important;\n top: 0;\n left: 0;\n transform: none !important;\n }\n ";
|
|
21027
|
-
document.head.appendChild(style);
|
|
21028
|
-
|
|
21029
21007
|
// Calculate bounds to fit all markers
|
|
21030
21008
|
const bounds = new mapboxgl.LngLatBounds();
|
|
21031
21009
|
let hasValidCoordinates = false;
|
|
@@ -21101,50 +21079,30 @@ const SimpleGlobe = _ref => {
|
|
|
21101
21079
|
const lat = Number(project.latitude);
|
|
21102
21080
|
console.log("\uD83D\uDCCD [SIMPLE GLOBE] Marker ".concat(index, " coordinates:"), {
|
|
21103
21081
|
lng,
|
|
21104
|
-
lat
|
|
21105
|
-
project: project.name
|
|
21082
|
+
lat
|
|
21106
21083
|
});
|
|
21107
21084
|
|
|
21108
21085
|
// Validate coordinates
|
|
21109
21086
|
if (isNaN(lng) || isNaN(lat) || lng < -180 || lng > 180 || lat < -90 || lat > 90) {
|
|
21110
21087
|
console.error("\u274C [SIMPLE GLOBE] Invalid coordinates for project ".concat(index, ":"), {
|
|
21111
21088
|
lng,
|
|
21112
|
-
lat
|
|
21113
|
-
project: project.name
|
|
21089
|
+
lat
|
|
21114
21090
|
});
|
|
21115
21091
|
return;
|
|
21116
21092
|
}
|
|
21117
|
-
console.log("\uD83D\uDCCD Marker ".concat(index, " coordinates:"), {
|
|
21118
|
-
lng,
|
|
21119
|
-
lat
|
|
21120
|
-
});
|
|
21121
21093
|
|
|
21122
21094
|
// Add coordinates to bounds
|
|
21123
21095
|
bounds.extend([lng, lat]);
|
|
21124
21096
|
hasValidCoordinates = true;
|
|
21125
21097
|
|
|
21126
|
-
//
|
|
21127
|
-
|
|
21128
|
-
element: el,
|
|
21129
|
-
anchor: 'center' // Use center anchor for 3D globe positioning
|
|
21130
|
-
}).setLngLat([lng, lat]).setPopup(popup).addTo(map.current);
|
|
21098
|
+
// Add marker to map with proper coordinate order [lng, lat]
|
|
21099
|
+
new mapboxgl.Marker(el).setLngLat([lng, lat]).setPopup(popup).addTo(map.current);
|
|
21131
21100
|
|
|
21132
21101
|
// Add click handler
|
|
21133
21102
|
el.addEventListener('click', () => {
|
|
21134
21103
|
console.log('π [SIMPLE GLOBE] Marker clicked:', project);
|
|
21135
21104
|
onProjectClick(project);
|
|
21136
21105
|
});
|
|
21137
|
-
|
|
21138
|
-
// Verify marker position after a short delay (like other Globe components)
|
|
21139
|
-
setTimeout(() => {
|
|
21140
|
-
const markerLngLat = marker.getLngLat();
|
|
21141
|
-
console.log("\uD83D\uDD0D [SIMPLE GLOBE] Marker ".concat(index, " position verification:"), {
|
|
21142
|
-
expected: [lng, lat],
|
|
21143
|
-
actual: [markerLngLat.lng, markerLngLat.lat],
|
|
21144
|
-
project: project.name,
|
|
21145
|
-
match: Math.abs(markerLngLat.lng - lng) < 0.0001 && Math.abs(markerLngLat.lat - lat) < 0.0001
|
|
21146
|
-
});
|
|
21147
|
-
}, 100);
|
|
21148
21106
|
console.log("\u2705 [SIMPLE GLOBE] Marker ".concat(index, " added at:"), [lng, lat]);
|
|
21149
21107
|
});
|
|
21150
21108
|
|
|
@@ -21165,14 +21123,6 @@ const SimpleGlobe = _ref => {
|
|
|
21165
21123
|
} else {
|
|
21166
21124
|
boundsRef.current = null;
|
|
21167
21125
|
}
|
|
21168
|
-
|
|
21169
|
-
// Force resize for 3D globe rendering
|
|
21170
|
-
setTimeout(() => {
|
|
21171
|
-
if (map.current && map.current.resize) {
|
|
21172
|
-
map.current.resize();
|
|
21173
|
-
console.log('π [SIMPLE GLOBE] Map resized for 3D globe rendering');
|
|
21174
|
-
}
|
|
21175
|
-
}, 100);
|
|
21176
21126
|
});
|
|
21177
21127
|
return () => {
|
|
21178
21128
|
if (map.current) {
|
|
@@ -21216,7 +21166,7 @@ const SimpleGlobe = _ref => {
|
|
|
21216
21166
|
const next = Math.max((((_map$current$getPitch2 = (_map$current2 = map.current).getPitch) === null || _map$current$getPitch2 === void 0 ? void 0 : _map$current$getPitch2.call(_map$current2)) || 0) - 10, 0);
|
|
21217
21167
|
map.current.setPitch(next);
|
|
21218
21168
|
};
|
|
21219
|
-
return /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
21169
|
+
return /*#__PURE__*/jsxRuntime.jsx(Style$B, {
|
|
21220
21170
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
21221
21171
|
className: "daf-simple-globe-container",
|
|
21222
21172
|
style: {
|
|
@@ -21267,392 +21217,6 @@ const SimpleGlobe = _ref => {
|
|
|
21267
21217
|
});
|
|
21268
21218
|
};
|
|
21269
21219
|
|
|
21270
|
-
const IsolatedGlobe = _ref => {
|
|
21271
|
-
let {
|
|
21272
|
-
projects = [],
|
|
21273
|
-
mapConfig = {},
|
|
21274
|
-
onProjectClick = () => {},
|
|
21275
|
-
type = "default",
|
|
21276
|
-
color = "#00809E"
|
|
21277
|
-
} = _ref;
|
|
21278
|
-
const mapContainer = React.useRef(null);
|
|
21279
|
-
const map = React.useRef(null);
|
|
21280
|
-
const shadowRoot = React.useRef(null);
|
|
21281
|
-
const boundsRef = React.useRef(null);
|
|
21282
|
-
React.useEffect(() => {
|
|
21283
|
-
if (map.current) return;
|
|
21284
|
-
console.log('πΊοΈ [ISOLATED GLOBE] Creating isolated map...');
|
|
21285
|
-
|
|
21286
|
-
// Set Mapbox access token
|
|
21287
|
-
mapboxgl.accessToken = 'pk.eyJ1IjoicmVkaXM5OTkiLCJhIjoiY2x4YWV5MzA5MmtuZzJpcXM5Y201Z2E2YiJ9.m5bwPg-Tj4Akesl1yQUa3w';
|
|
21288
|
-
|
|
21289
|
-
// Create shadow DOM for complete isolation
|
|
21290
|
-
const container = mapContainer.current;
|
|
21291
|
-
shadowRoot.current = container.attachShadow({
|
|
21292
|
-
mode: 'open'
|
|
21293
|
-
});
|
|
21294
|
-
|
|
21295
|
-
// Create isolated styles
|
|
21296
|
-
const style = document.createElement('style');
|
|
21297
|
-
style.textContent = "\n :host {\n display: block;\n width: 100%;\n height: 100%;\n position: relative;\n overflow: hidden;\n }\n \n .mapboxgl-map {\n font: 12px/20px Helvetica Neue, Arial, Helvetica, sans-serif;\n overflow: hidden;\n position: relative;\n width: 100%;\n height: 100%;\n -webkit-tap-highlight-color: rgb(0 0 0/0);\n }\n \n .mapboxgl-canvas {\n left: 0;\n position: absolute;\n top: 0;\n }\n \n .mapboxgl-canvas-container {\n position: relative;\n width: 100%;\n height: 100%;\n }\n \n .mapboxgl-marker {\n position: absolute;\n z-index: 1;\n }\n \n .mapboxgl-marker svg {\n display: block;\n }\n \n .mapboxgl-popup {\n position: absolute;\n text-align: center;\n margin-bottom: 20px;\n }\n \n .mapboxgl-popup-content-wrapper {\n padding: 1px;\n text-align: left;\n border-radius: 12px;\n background: white;\n color: #333;\n box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);\n }\n \n .mapboxgl-popup-content {\n margin: 13px 24px 13px 20px;\n line-height: 1.3;\n font-size: 13px;\n min-height: 1px;\n }\n \n .mapboxgl-popup-tip-container {\n width: 40px;\n height: 20px;\n position: absolute;\n left: 50%;\n margin-top: -1px;\n margin-left: -20px;\n overflow: hidden;\n pointer-events: none;\n }\n \n .mapboxgl-popup-tip {\n width: 17px;\n height: 17px;\n padding: 1px;\n margin: -10px auto 0;\n pointer-events: auto;\n transform: rotate(45deg);\n background: white;\n box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);\n }\n \n .mapboxgl-popup-close-button {\n position: absolute;\n top: 0;\n right: 0;\n border: none;\n text-align: center;\n width: 24px;\n height: 24px;\n font: 16px/24px Tahoma, Verdana, sans-serif;\n color: #757575;\n text-decoration: none;\n background: transparent;\n cursor: pointer;\n }\n \n .mapboxgl-popup-close-button:hover {\n color: #585858;\n }\n \n .mapboxgl-ctrl-attribution,\n .mapboxgl-ctrl-logo {\n display: none !important;\n }\n ";
|
|
21298
|
-
shadowRoot.current.appendChild(style);
|
|
21299
|
-
|
|
21300
|
-
// Create map container inside shadow DOM
|
|
21301
|
-
const mapDiv = document.createElement('div');
|
|
21302
|
-
mapDiv.style.width = '100%';
|
|
21303
|
-
mapDiv.style.height = '100%';
|
|
21304
|
-
shadowRoot.current.appendChild(mapDiv);
|
|
21305
|
-
|
|
21306
|
-
// Create map
|
|
21307
|
-
map.current = new mapboxgl.Map({
|
|
21308
|
-
container: mapDiv,
|
|
21309
|
-
style: 'mapbox://styles/mapbox/satellite-v9',
|
|
21310
|
-
center: [0, 0],
|
|
21311
|
-
zoom: mapConfig.maxZoom || 3,
|
|
21312
|
-
projection: 'globe',
|
|
21313
|
-
attributionControl: false
|
|
21314
|
-
});
|
|
21315
|
-
|
|
21316
|
-
// Add markers when map loads
|
|
21317
|
-
map.current.on('load', () => {
|
|
21318
|
-
console.log('πΊοΈ [ISOLATED GLOBE] Map loaded, adding markers...');
|
|
21319
|
-
|
|
21320
|
-
// Calculate bounds to fit all markers
|
|
21321
|
-
const bounds = new mapboxgl.LngLatBounds();
|
|
21322
|
-
let hasValidCoordinates = false;
|
|
21323
|
-
projects.forEach((project, index) => {
|
|
21324
|
-
console.log("\uD83D\uDCCD [ISOLATED GLOBE] Adding marker ".concat(index, ":"), project);
|
|
21325
|
-
|
|
21326
|
-
// Create marker element
|
|
21327
|
-
const el = document.createElement('div');
|
|
21328
|
-
el.style.cursor = 'pointer';
|
|
21329
|
-
el.style.boxShadow = '0px 3.45px 3.45px 0px #00000029';
|
|
21330
|
-
el.style.display = 'flex';
|
|
21331
|
-
el.style.alignItems = 'center';
|
|
21332
|
-
el.style.justifyContent = 'center';
|
|
21333
|
-
el.style.position = 'relative';
|
|
21334
|
-
el.style.left = 'auto';
|
|
21335
|
-
el.style.top = 'auto';
|
|
21336
|
-
el.style.transform = 'none';
|
|
21337
|
-
el.style.zIndex = '1000';
|
|
21338
|
-
if (type === "location") {
|
|
21339
|
-
// Location marker - SVG map pin style
|
|
21340
|
-
el.style.width = '28px';
|
|
21341
|
-
el.style.height = '33px';
|
|
21342
|
-
el.innerHTML = "\n <svg\n width=\"28\"\n height=\"33\"\n viewBox=\"0 0 28 33\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.14346 4.87419C10.0688 -0.15896 18.0528 -0.162058 22.9757 4.86861C27.6563 9.65161 27.8841 17.2616 23.6622 22.3255H23.6608C23.427 22.6141 23.1808 22.894 22.9211 23.1623L14.0671 32.2101L5.44057 23.3948L5.13868 23.096C0.215857 18.0655 0.218422 9.90737 5.14346 4.87419Z\"\n fill=\"".concat(color, "\"\n stroke=\"white\"\n />\n </svg>\n ");
|
|
21343
|
-
} else {
|
|
21344
|
-
// Default circular marker style
|
|
21345
|
-
el.style.width = '30px';
|
|
21346
|
-
el.style.height = '30px';
|
|
21347
|
-
el.style.backgroundColor = color;
|
|
21348
|
-
el.style.borderRadius = '50%';
|
|
21349
|
-
el.style.border = '2px solid white';
|
|
21350
|
-
el.style.color = 'white';
|
|
21351
|
-
el.style.fontWeight = 'bold';
|
|
21352
|
-
el.style.fontSize = '14px';
|
|
21353
|
-
el.style.textAlign = 'center';
|
|
21354
|
-
el.style.lineHeight = '1';
|
|
21355
|
-
el.innerHTML = "<span style=\"display: block; line-height: 1;\">".concat(project.percentageCompletion || 0, "</span>");
|
|
21356
|
-
}
|
|
21357
|
-
|
|
21358
|
-
// Create popup content
|
|
21359
|
-
const popupContent = "\n <div style=\"padding: 12px; min-width: 200px;\">\n <h3 style=\"margin: 0 0 8px 0; font-size: 16px; color: #333;\">".concat(project.name, "</h3>\n <p style=\"margin: 0 0 4px 0; font-size: 12px; color: #666;\">\n <strong>Country:</strong> ").concat(project.country || 'N/A', "\n </p>\n <p style=\"margin: 0 0 4px 0; font-size: 12px; color: #666;\">\n <strong>Sector:</strong> ").concat(project.sectoralScope || 'Project', "\n </p>\n <p style=\"margin: 0 0 4px 0; font-size: 12px; color: #666;\">\n <strong>Completion:</strong> ").concat(project.percentageCompletion || 0, "%\n </p>\n <p style=\"margin: 4px 0 0 0; font-size: 12px; color: #666;\">\n <strong>Coordinates:</strong> ").concat(Number(project.latitude).toFixed(4), ", ").concat(Number(project.longitude).toFixed(4), "\n </p>\n </div>\n ");
|
|
21360
|
-
|
|
21361
|
-
// Create popup
|
|
21362
|
-
const popup = new mapboxgl.Popup({
|
|
21363
|
-
offset: 25,
|
|
21364
|
-
closeButton: true,
|
|
21365
|
-
closeOnClick: false
|
|
21366
|
-
}).setHTML(popupContent);
|
|
21367
|
-
|
|
21368
|
-
// Ensure coordinates are valid numbers
|
|
21369
|
-
const lng = Number(project.longitude);
|
|
21370
|
-
const lat = Number(project.latitude);
|
|
21371
|
-
console.log("\uD83D\uDCCD [ISOLATED GLOBE] Marker ".concat(index, " coordinates:"), {
|
|
21372
|
-
original: {
|
|
21373
|
-
longitude: project.longitude,
|
|
21374
|
-
latitude: project.latitude
|
|
21375
|
-
},
|
|
21376
|
-
processed: {
|
|
21377
|
-
lng,
|
|
21378
|
-
lat
|
|
21379
|
-
},
|
|
21380
|
-
project: project.name
|
|
21381
|
-
});
|
|
21382
|
-
|
|
21383
|
-
// Validate coordinates
|
|
21384
|
-
if (isNaN(lng) || isNaN(lat) || lng < -180 || lng > 180 || lat < -90 || lat > 90) {
|
|
21385
|
-
console.error("\u274C [ISOLATED GLOBE] Invalid coordinates for project ".concat(index, ":"), {
|
|
21386
|
-
lng,
|
|
21387
|
-
lat,
|
|
21388
|
-
original: {
|
|
21389
|
-
longitude: project.longitude,
|
|
21390
|
-
latitude: project.latitude
|
|
21391
|
-
},
|
|
21392
|
-
project: project.name
|
|
21393
|
-
});
|
|
21394
|
-
return;
|
|
21395
|
-
}
|
|
21396
|
-
|
|
21397
|
-
// Add coordinates to bounds
|
|
21398
|
-
bounds.extend([lng, lat]);
|
|
21399
|
-
hasValidCoordinates = true;
|
|
21400
|
-
|
|
21401
|
-
// Create marker with explicit positioning
|
|
21402
|
-
const marker = new mapboxgl.Marker({
|
|
21403
|
-
element: el,
|
|
21404
|
-
anchor: 'center'
|
|
21405
|
-
}).setLngLat([lng, lat]).setPopup(popup).addTo(map.current);
|
|
21406
|
-
|
|
21407
|
-
// Add click handler
|
|
21408
|
-
el.addEventListener('click', () => {
|
|
21409
|
-
console.log('π [ISOLATED GLOBE] Marker clicked:', project);
|
|
21410
|
-
onProjectClick(project);
|
|
21411
|
-
});
|
|
21412
|
-
|
|
21413
|
-
// Verify marker position after a short delay
|
|
21414
|
-
setTimeout(() => {
|
|
21415
|
-
const markerLngLat = marker.getLngLat();
|
|
21416
|
-
console.log("\uD83D\uDD0D [ISOLATED GLOBE] Marker ".concat(index, " position verification:"), {
|
|
21417
|
-
expected: [lng, lat],
|
|
21418
|
-
actual: [markerLngLat.lng, markerLngLat.lat],
|
|
21419
|
-
project: project.name,
|
|
21420
|
-
match: Math.abs(markerLngLat.lng - lng) < 0.0001 && Math.abs(markerLngLat.lat - lat) < 0.0001
|
|
21421
|
-
});
|
|
21422
|
-
}, 100);
|
|
21423
|
-
console.log("\u2705 [ISOLATED GLOBE] Marker ".concat(index, " added at:"), [lng, lat]);
|
|
21424
|
-
});
|
|
21425
|
-
|
|
21426
|
-
// Fit map to show all markers if we have valid coordinates
|
|
21427
|
-
if (hasValidCoordinates && !bounds.isEmpty()) {
|
|
21428
|
-
console.log('πΊοΈ [ISOLATED GLOBE] Fitting map to bounds:', bounds);
|
|
21429
|
-
map.current.fitBounds(bounds, {
|
|
21430
|
-
padding: {
|
|
21431
|
-
top: 20,
|
|
21432
|
-
bottom: 20,
|
|
21433
|
-
left: 20,
|
|
21434
|
-
right: 20
|
|
21435
|
-
},
|
|
21436
|
-
maxZoom: 6,
|
|
21437
|
-
duration: 1000
|
|
21438
|
-
});
|
|
21439
|
-
boundsRef.current = bounds;
|
|
21440
|
-
} else {
|
|
21441
|
-
boundsRef.current = null;
|
|
21442
|
-
}
|
|
21443
|
-
});
|
|
21444
|
-
return () => {
|
|
21445
|
-
if (map.current) {
|
|
21446
|
-
map.current.remove();
|
|
21447
|
-
map.current = null;
|
|
21448
|
-
}
|
|
21449
|
-
};
|
|
21450
|
-
}, [projects, onProjectClick, mapConfig]);
|
|
21451
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
21452
|
-
ref: mapContainer,
|
|
21453
|
-
style: {
|
|
21454
|
-
width: '100%',
|
|
21455
|
-
height: '100%',
|
|
21456
|
-
position: 'relative'
|
|
21457
|
-
}
|
|
21458
|
-
});
|
|
21459
|
-
};
|
|
21460
|
-
|
|
21461
|
-
const NoConflictGlobe = _ref => {
|
|
21462
|
-
let {
|
|
21463
|
-
projects = [],
|
|
21464
|
-
mapConfig = {},
|
|
21465
|
-
onProjectClick = () => {},
|
|
21466
|
-
type = "default",
|
|
21467
|
-
color = "#00809E"
|
|
21468
|
-
} = _ref;
|
|
21469
|
-
const mapContainer = React.useRef(null);
|
|
21470
|
-
const map = React.useRef(null);
|
|
21471
|
-
const boundsRef = React.useRef(null);
|
|
21472
|
-
React.useEffect(() => {
|
|
21473
|
-
if (map.current) return;
|
|
21474
|
-
console.log('πΊοΈ [NO CONFLICT GLOBE] Creating map with aggressive isolation...');
|
|
21475
|
-
|
|
21476
|
-
// Set Mapbox access token
|
|
21477
|
-
mapboxgl.accessToken = 'pk.eyJ1IjoicmVkaXM5OTkiLCJhIjoiY2x4YWV5MzA5MmtuZzJpcXM5Y201Z2E2YiJ9.m5bwPg-Tj4Akesl1yQUa3w';
|
|
21478
|
-
|
|
21479
|
-
// Create map
|
|
21480
|
-
map.current = new mapboxgl.Map({
|
|
21481
|
-
container: mapContainer.current,
|
|
21482
|
-
style: 'mapbox://styles/mapbox/satellite-v9',
|
|
21483
|
-
center: [0, 0],
|
|
21484
|
-
zoom: mapConfig.maxZoom || 3,
|
|
21485
|
-
projection: 'globe',
|
|
21486
|
-
attributionControl: false
|
|
21487
|
-
});
|
|
21488
|
-
|
|
21489
|
-
// Add markers when map loads
|
|
21490
|
-
map.current.on('load', () => {
|
|
21491
|
-
console.log('πΊοΈ [NO CONFLICT GLOBE] Map loaded, adding markers...');
|
|
21492
|
-
|
|
21493
|
-
// Inject aggressive CSS isolation
|
|
21494
|
-
const styleId = 'no-conflict-globe-styles';
|
|
21495
|
-
let existingStyle = document.getElementById(styleId);
|
|
21496
|
-
if (!existingStyle) {
|
|
21497
|
-
const style = document.createElement('style');
|
|
21498
|
-
style.id = styleId;
|
|
21499
|
-
style.textContent = "\n /* NO CONFLICT GLOBE - Aggressive CSS Isolation */\n .no-conflict-globe-container {\n position: relative !important;\n width: 100% !important;\n height: 100% !important;\n overflow: hidden !important;\n font: 12px/20px Helvetica Neue, Arial, Helvetica, sans-serif !important;\n -webkit-tap-highlight-color: rgb(0 0 0/0) !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-canvas-container {\n position: relative !important;\n left: 0 !important;\n top: 0 !important;\n transform: none !important;\n width: 100% !important;\n height: 100% !important;\n overflow: hidden !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-canvas-container canvas {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n transform: none !important;\n width: 100% !important;\n height: 100% !important;\n isolation: isolate !important;\n }\n \n /* Override ALL possible Leaflet CSS interference */\n .no-conflict-globe-container .mapboxgl-marker {\n position: absolute !important;\n left: auto !important;\n top: auto !important;\n transform: none !important;\n pointer-events: auto !important;\n z-index: 1000 !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-marker .no-conflict-marker {\n position: relative !important;\n left: auto !important;\n top: auto !important;\n transform: none !important;\n pointer-events: auto !important;\n cursor: pointer !important;\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n isolation: isolate !important;\n }\n \n /* Override Leaflet pane positioning */\n .no-conflict-globe-container .mapboxgl-marker-pane {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n transform: none !important;\n z-index: 600 !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-tile-container {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n transform: none !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-zoom-animated {\n transform-origin: 0 0 !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-marker.leaflet-interactive {\n cursor: pointer !important;\n }\n \n /* Popup styles with isolation */\n .no-conflict-globe-container .mapboxgl-popup {\n position: absolute !important;\n left: auto !important;\n top: auto !important;\n transform: none !important;\n z-index: 700 !important;\n text-align: center !important;\n margin-bottom: 20px !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-popup-content-wrapper {\n padding: 1px !important;\n text-align: left !important;\n border-radius: 12px !important;\n background: white !important;\n color: #333 !important;\n box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-popup-content {\n margin: 13px 24px 13px 20px !important;\n line-height: 1.3 !important;\n font-size: 13px !important;\n min-height: 1px !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-popup-content p {\n margin: 17px 0 !important;\n }\n \n .no-conflict-globe-container .mapboxgl-popup-tip-container {\n width: 40px !important;\n height: 20px !important;\n position: absolute !important;\n left: 50% !important;\n margin-top: -1px !important;\n margin-left: -20px !important;\n overflow: hidden !important;\n pointer-events: none !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-popup-tip {\n width: 17px !important;\n height: 17px !important;\n padding: 1px !important;\n margin: -10px auto 0 !important;\n pointer-events: auto !important;\n transform: rotate(45deg) !important;\n background: white !important;\n box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-popup-close-button {\n position: absolute !important;\n top: 0 !important;\n right: 0 !important;\n border: none !important;\n text-align: center !important;\n width: 24px !important;\n height: 24px !important;\n font: 16px/24px Tahoma, Verdana, sans-serif !important;\n color: #757575 !important;\n text-decoration: none !important;\n background: transparent !important;\n cursor: pointer !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-popup-close-button:hover {\n color: #585858 !important;\n }\n \n /* Hide Mapbox attribution completely */\n .no-conflict-globe-container .mapboxgl-ctrl-attribution {\n display: none !important;\n }\n \n .no-conflict-globe-container .mapboxgl-ctrl-logo {\n display: none !important;\n }\n \n /* Override any Leaflet pane positioning */\n .no-conflict-globe-container .mapboxgl-overlay-pane {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n transform: none !important;\n z-index: 400 !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-shadow-pane {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n transform: none !important;\n z-index: 500 !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-tooltip-pane {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n transform: none !important;\n z-index: 650 !important;\n isolation: isolate !important;\n }\n \n .no-conflict-globe-container .mapboxgl-popup-pane {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n transform: none !important;\n z-index: 700 !important;\n isolation: isolate !important;\n }\n \n /* Override any Leaflet div icon styles */\n .no-conflict-globe-container .mapboxgl-marker .leaflet-div-icon {\n background: none !important;\n border: none !important;\n position: relative !important;\n left: auto !important;\n top: auto !important;\n transform: none !important;\n }\n \n /* Override any Leaflet marker icon styles */\n .no-conflict-globe-container .mapboxgl-marker .leaflet-marker-icon {\n position: relative !important;\n left: auto !important;\n top: auto !important;\n transform: none !important;\n }\n \n /* Override any Leaflet marker shadow styles */\n .no-conflict-globe-container .mapboxgl-marker .leaflet-marker-shadow {\n display: none !important;\n }\n \n /* Override any Leaflet interactive styles */\n .no-conflict-globe-container .mapboxgl-marker.leaflet-interactive {\n cursor: pointer !important;\n pointer-events: auto !important;\n }\n \n /* Override any Leaflet zoom animations */\n .no-conflict-globe-container .mapboxgl-zoom-animated {\n transform-origin: 0 0 !important;\n }\n \n /* Override any Leaflet tile styles */\n .no-conflict-globe-container .mapboxgl-tile {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n transform: none !important;\n }\n \n /* Override any Leaflet image layer styles */\n .no-conflict-globe-container .mapboxgl-image-layer {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n transform: none !important;\n }\n ";
|
|
21500
|
-
document.head.appendChild(style);
|
|
21501
|
-
}
|
|
21502
|
-
|
|
21503
|
-
// Calculate bounds to fit all markers
|
|
21504
|
-
const bounds = new mapboxgl.LngLatBounds();
|
|
21505
|
-
let hasValidCoordinates = false;
|
|
21506
|
-
projects.forEach((project, index) => {
|
|
21507
|
-
console.log("\uD83D\uDCCD [NO CONFLICT GLOBE] Adding marker ".concat(index, ":"), project);
|
|
21508
|
-
|
|
21509
|
-
// Create marker element with unique class
|
|
21510
|
-
const el = document.createElement('div');
|
|
21511
|
-
el.className = 'no-conflict-marker';
|
|
21512
|
-
el.style.cursor = 'pointer';
|
|
21513
|
-
el.style.boxShadow = '0px 3.45px 3.45px 0px #00000029';
|
|
21514
|
-
el.style.display = 'flex';
|
|
21515
|
-
el.style.alignItems = 'center';
|
|
21516
|
-
el.style.justifyContent = 'center';
|
|
21517
|
-
el.style.position = 'relative';
|
|
21518
|
-
el.style.left = 'auto';
|
|
21519
|
-
el.style.top = 'auto';
|
|
21520
|
-
el.style.transform = 'none';
|
|
21521
|
-
el.style.zIndex = '1000';
|
|
21522
|
-
el.style.isolation = 'isolate';
|
|
21523
|
-
if (type === "location") {
|
|
21524
|
-
// Location marker - SVG map pin style
|
|
21525
|
-
el.style.width = '28px';
|
|
21526
|
-
el.style.height = '33px';
|
|
21527
|
-
el.innerHTML = "\n <svg\n width=\"28\"\n height=\"33\"\n viewBox=\"0 0 28 33\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.14346 4.87419C10.0688 -0.15896 18.0528 -0.162058 22.9757 4.86861C27.6563 9.65161 27.8841 17.2616 23.6622 22.3255H23.6608C23.427 22.6141 23.1808 22.894 22.9211 23.1623L14.0671 32.2101L5.44057 23.3948L5.13868 23.096C0.215857 18.0655 0.218422 9.90737 5.14346 4.87419Z\"\n fill=\"".concat(color, "\"\n stroke=\"white\"\n />\n </svg>\n ");
|
|
21528
|
-
} else {
|
|
21529
|
-
// Default circular marker style
|
|
21530
|
-
el.style.width = '30px';
|
|
21531
|
-
el.style.height = '30px';
|
|
21532
|
-
el.style.backgroundColor = color;
|
|
21533
|
-
el.style.borderRadius = '50%';
|
|
21534
|
-
el.style.border = '2px solid white';
|
|
21535
|
-
el.style.color = 'white';
|
|
21536
|
-
el.style.fontWeight = 'bold';
|
|
21537
|
-
el.style.fontSize = '14px';
|
|
21538
|
-
el.style.textAlign = 'center';
|
|
21539
|
-
el.style.lineHeight = '1';
|
|
21540
|
-
el.innerHTML = "<span style=\"display: block; line-height: 1;\">".concat(project.percentageCompletion || 0, "</span>");
|
|
21541
|
-
}
|
|
21542
|
-
|
|
21543
|
-
// Create popup content
|
|
21544
|
-
const popupContent = "\n <div style=\"padding: 12px; min-width: 200px;\">\n <h3 style=\"margin: 0 0 8px 0; font-size: 16px; color: #333;\">".concat(project.name, "</h3>\n <p style=\"margin: 0 0 4px 0; font-size: 12px; color: #666;\">\n <strong>Country:</strong> ").concat(project.country || 'N/A', "\n </p>\n <p style=\"margin: 0 0 4px 0; font-size: 12px; color: #666;\">\n <strong>Sector:</strong> ").concat(project.sectoralScope || 'Project', "\n </p>\n <p style=\"margin: 0 0 4px 0; font-size: 12px; color: #666;\">\n <strong>Completion:</strong> ").concat(project.percentageCompletion || 0, "%\n </p>\n <p style=\"margin: 4px 0 0 0; font-size: 12px; color: #666;\">\n <strong>Coordinates:</strong> ").concat(Number(project.latitude).toFixed(4), ", ").concat(Number(project.longitude).toFixed(4), "\n </p>\n </div>\n ");
|
|
21545
|
-
|
|
21546
|
-
// Create popup
|
|
21547
|
-
const popup = new mapboxgl.Popup({
|
|
21548
|
-
offset: 25,
|
|
21549
|
-
closeButton: true,
|
|
21550
|
-
closeOnClick: false
|
|
21551
|
-
}).setHTML(popupContent);
|
|
21552
|
-
|
|
21553
|
-
// Ensure coordinates are valid numbers
|
|
21554
|
-
const lng = Number(project.longitude);
|
|
21555
|
-
const lat = Number(project.latitude);
|
|
21556
|
-
console.log("\uD83D\uDCCD [NO CONFLICT GLOBE] Marker ".concat(index, " coordinates:"), {
|
|
21557
|
-
original: {
|
|
21558
|
-
longitude: project.longitude,
|
|
21559
|
-
latitude: project.latitude
|
|
21560
|
-
},
|
|
21561
|
-
processed: {
|
|
21562
|
-
lng,
|
|
21563
|
-
lat
|
|
21564
|
-
},
|
|
21565
|
-
project: project.name
|
|
21566
|
-
});
|
|
21567
|
-
|
|
21568
|
-
// Validate coordinates
|
|
21569
|
-
if (isNaN(lng) || isNaN(lat) || lng < -180 || lng > 180 || lat < -90 || lat > 90) {
|
|
21570
|
-
console.error("\u274C [NO CONFLICT GLOBE] Invalid coordinates for project ".concat(index, ":"), {
|
|
21571
|
-
lng,
|
|
21572
|
-
lat,
|
|
21573
|
-
original: {
|
|
21574
|
-
longitude: project.longitude,
|
|
21575
|
-
latitude: project.latitude
|
|
21576
|
-
},
|
|
21577
|
-
project: project.name
|
|
21578
|
-
});
|
|
21579
|
-
return;
|
|
21580
|
-
}
|
|
21581
|
-
|
|
21582
|
-
// Add coordinates to bounds
|
|
21583
|
-
bounds.extend([lng, lat]);
|
|
21584
|
-
hasValidCoordinates = true;
|
|
21585
|
-
|
|
21586
|
-
// Create marker with explicit positioning
|
|
21587
|
-
const marker = new mapboxgl.Marker({
|
|
21588
|
-
element: el,
|
|
21589
|
-
anchor: 'center'
|
|
21590
|
-
}).setLngLat([lng, lat]).setPopup(popup).addTo(map.current);
|
|
21591
|
-
|
|
21592
|
-
// Add click handler
|
|
21593
|
-
el.addEventListener('click', () => {
|
|
21594
|
-
console.log('π [NO CONFLICT GLOBE] Marker clicked:', project);
|
|
21595
|
-
onProjectClick(project);
|
|
21596
|
-
});
|
|
21597
|
-
|
|
21598
|
-
// Verify marker position after a short delay
|
|
21599
|
-
setTimeout(() => {
|
|
21600
|
-
const markerLngLat = marker.getLngLat();
|
|
21601
|
-
console.log("\uD83D\uDD0D [NO CONFLICT GLOBE] Marker ".concat(index, " position verification:"), {
|
|
21602
|
-
expected: [lng, lat],
|
|
21603
|
-
actual: [markerLngLat.lng, markerLngLat.lat],
|
|
21604
|
-
project: project.name,
|
|
21605
|
-
match: Math.abs(markerLngLat.lng - lng) < 0.0001 && Math.abs(markerLngLat.lat - lat) < 0.0001
|
|
21606
|
-
});
|
|
21607
|
-
}, 100);
|
|
21608
|
-
console.log("\u2705 [NO CONFLICT GLOBE] Marker ".concat(index, " added at:"), [lng, lat]);
|
|
21609
|
-
});
|
|
21610
|
-
|
|
21611
|
-
// Fit map to show all markers if we have valid coordinates
|
|
21612
|
-
if (hasValidCoordinates && !bounds.isEmpty()) {
|
|
21613
|
-
console.log('πΊοΈ [NO CONFLICT GLOBE] Fitting map to bounds:', bounds);
|
|
21614
|
-
map.current.fitBounds(bounds, {
|
|
21615
|
-
padding: {
|
|
21616
|
-
top: 20,
|
|
21617
|
-
bottom: 20,
|
|
21618
|
-
left: 20,
|
|
21619
|
-
right: 20
|
|
21620
|
-
},
|
|
21621
|
-
maxZoom: 6,
|
|
21622
|
-
duration: 1000
|
|
21623
|
-
});
|
|
21624
|
-
boundsRef.current = bounds;
|
|
21625
|
-
} else {
|
|
21626
|
-
boundsRef.current = null;
|
|
21627
|
-
}
|
|
21628
|
-
});
|
|
21629
|
-
return () => {
|
|
21630
|
-
if (map.current) {
|
|
21631
|
-
map.current.remove();
|
|
21632
|
-
map.current = null;
|
|
21633
|
-
}
|
|
21634
|
-
};
|
|
21635
|
-
}, [projects, onProjectClick, mapConfig]);
|
|
21636
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
21637
|
-
className: "no-conflict-globe-container",
|
|
21638
|
-
style: {
|
|
21639
|
-
width: '100%',
|
|
21640
|
-
height: '100%',
|
|
21641
|
-
position: 'relative',
|
|
21642
|
-
isolation: 'isolate'
|
|
21643
|
-
},
|
|
21644
|
-
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
21645
|
-
ref: mapContainer,
|
|
21646
|
-
style: {
|
|
21647
|
-
width: '100%',
|
|
21648
|
-
height: '100%',
|
|
21649
|
-
position: 'relative',
|
|
21650
|
-
isolation: 'isolate'
|
|
21651
|
-
}
|
|
21652
|
-
})
|
|
21653
|
-
});
|
|
21654
|
-
};
|
|
21655
|
-
|
|
21656
21220
|
function WidgetPlaceholder(_ref) {
|
|
21657
21221
|
let {
|
|
21658
21222
|
icon = "",
|
|
@@ -21733,6 +21297,12 @@ WidgetPlaceholder.propTypes = {
|
|
|
21733
21297
|
inDevelopment: PropTypes__default["default"].bool
|
|
21734
21298
|
};
|
|
21735
21299
|
|
|
21300
|
+
const Style$A = dt.div`
|
|
21301
|
+
.ant-steps-item-title {
|
|
21302
|
+
line-height: normal !important;
|
|
21303
|
+
}
|
|
21304
|
+
`;
|
|
21305
|
+
|
|
21736
21306
|
const DAFSteps = _ref => {
|
|
21737
21307
|
let {
|
|
21738
21308
|
direction = "vertical",
|
|
@@ -21760,10 +21330,12 @@ const DAFSteps = _ref => {
|
|
|
21760
21330
|
className: "with-border-header",
|
|
21761
21331
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
21762
21332
|
style: scrollableStyles,
|
|
21763
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
21764
|
-
|
|
21765
|
-
|
|
21766
|
-
|
|
21333
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Style$A, {
|
|
21334
|
+
children: /*#__PURE__*/jsxRuntime.jsx(antd.Steps, {
|
|
21335
|
+
direction: direction,
|
|
21336
|
+
current: current,
|
|
21337
|
+
items: items
|
|
21338
|
+
})
|
|
21767
21339
|
})
|
|
21768
21340
|
})
|
|
21769
21341
|
});
|
|
@@ -62433,7 +62005,6 @@ exports.InformationChannelsDataPoint = DataPoint;
|
|
|
62433
62005
|
exports.InformationChannelsSubject = Subject;
|
|
62434
62006
|
exports.InformationChannelsView = InformationChannel;
|
|
62435
62007
|
exports.InformationUnavailable = InformationUnavailable;
|
|
62436
|
-
exports.IsolatedGlobe = IsolatedGlobe;
|
|
62437
62008
|
exports.KeyIndicators = KeyIndicatorsWidget$1;
|
|
62438
62009
|
exports.KeyIndicatorsDetails = KeyIndicatorsDetails;
|
|
62439
62010
|
exports.LineChart = LineChart;
|
|
@@ -62448,7 +62019,6 @@ exports.MoreTags = MoreTags;
|
|
|
62448
62019
|
exports.MultiBarProgress = MultiBarProgress;
|
|
62449
62020
|
exports.MultiColorProgressBar = MultiColorProgressBar;
|
|
62450
62021
|
exports.Multiselect = Multiselect;
|
|
62451
|
-
exports.NoConflictGlobe = NoConflictGlobe;
|
|
62452
62022
|
exports.NotFound = NotFound;
|
|
62453
62023
|
exports.Pagination = Pagination;
|
|
62454
62024
|
exports.PdfForm = PdfForm;
|