@reltio/remotes 1.4.1046 → 1.4.1049
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/1041.js +1 -1
- package/1050.js +1 -0
- package/1242.js +1 -0
- package/1396.js +1 -0
- package/1707.js +1 -1
- package/2521.js +2 -0
- package/{5026.js.LICENSE.txt → 2521.js.LICENSE.txt} +0 -0
- package/2606.js +1 -0
- package/3124.js +1 -0
- package/3269.js +1 -0
- package/3431.js +1 -0
- package/39.js +1 -0
- package/4064.js +1 -0
- package/4589.js +1 -0
- package/4717.js +1 -0
- package/4887.js +1 -0
- package/5092.js +1 -0
- package/5127.js +2 -0
- package/{5637.js.LICENSE.txt → 5127.js.LICENSE.txt} +0 -0
- package/5271a9e7b6651c852e93.png +0 -0
- package/546.js +1 -0
- package/590.css +633 -0
- package/590.js +1 -0
- package/6071.js +1 -0
- package/64.js +1 -0
- package/658.js +1 -0
- package/6615.js +1 -0
- package/6784.js +1 -0
- package/6833.js +1 -0
- package/7478.js +2 -0
- package/{1135.js.LICENSE.txt → 7478.js.LICENSE.txt} +0 -0
- package/7827.js +1 -0
- package/7830.js +1 -1
- package/8040.js +1 -0
- package/{8348.js → 8148.js} +2 -2
- package/{8348.js.LICENSE.txt → 8148.js.LICENSE.txt} +0 -0
- package/861.js +2 -0
- package/{7440.js.LICENSE.txt → 861.js.LICENSE.txt} +0 -0
- package/8684.js +1 -1
- package/8694.js +1 -0
- package/888.js +2 -0
- package/{8828.js.LICENSE.txt → 888.js.LICENSE.txt} +0 -0
- package/8899.js +1 -0
- package/8911.js +1 -1
- package/9147.js +1 -0
- package/9810.js +1 -1
- package/9945.js +1 -0
- package/main.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/1135.js +0 -2
- package/2239.js +0 -1
- package/2882.js +0 -1
- package/3357.js +0 -1
- package/4162.js +0 -1
- package/5026.js +0 -2
- package/5637.js +0 -2
- package/6088.js +0 -1
- package/6290.js +0 -1
- package/6371.js +0 -1
- package/6539.js +0 -1
- package/7265.js +0 -1
- package/7440.js +0 -2
- package/7578.js +0 -1
- package/8072.js +0 -1
- package/8244.js +0 -1
- package/8332.js +0 -1
- package/8512.js +0 -1
- package/8828.js +0 -2
- package/9422.js +0 -1
- package/9915.js +0 -1
package/8694.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8694],{55234:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(71153),s=n.n(o),c=n(17440),u=n(52730),p=n(89810),d=n(18435),h=n(90436),f=n(15793),m=n(19602),E=n(59952),g=n(33117),b=n(79692);function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T={input:e=>y({},e,{fontSize:"14px"}),menuPortal:e=>y({},e,{zIndex:1300})},x=(0,b.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"},noOptionsMessage:{fontSize:"14px"}});const I=e=>{let{entityType:t,selectedAttributes:n,className:l,onChange:o,title:b,disableUnderline:y,menuPlacement:v="bottom"}=e;const I=(0,u.useSelector)(p.ZP.selectors.getMetadata),O=x(),S=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.reduce(((e,r)=>{if(r.hidden)return e;const i=`${n&&n+" / "}${r.label}`;e.push({label:r.label,value:r.uri,attrType:r,chipLabel:i,level:t});const l=(0,d.EUG)(I,r);return e.concat(l?S(l,t+1,i):[])}),[])}),[I]),N=(0,r.useMemo)((()=>S((null==t?void 0:t.attributes)||[])),[t,S]);return i().createElement("div",{className:s()(O.root,l)},i().createElement(h.Z,{className:O.title,variant:"subtitle1"},b||a().text("Attribute")),i().createElement(f.Z,{value:n,options:N,TextFieldProps:{InputProps:{disableUnderline:y},classes:{root:O.dropDownInput}},components:{DropdownIndicator:E.Z,MultiValue:e=>{let{data:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["data"]);return i().createElement(m.Z,n,t.chipLabel)},Option:e=>{let{isFocused:t,isSelected:n,data:r,label:l,innerProps:a}=e;return i().createElement("div",a,i().createElement(g.Z,{checked:n,level:r.level,data:r,label:l,labelInText:l,isFocused:t}))}},onChange:(0,c.pipe)((0,c.defaultTo)([]),o),styles:T,classes:O,menuPlacement:v,menuPortalTarget:document.body}))}},54238:(e,t,n)=>{n.d(t,{Z:()=>U});var r=n(24328),i=n.n(r),l=n(13980),a=n.n(l),o=n(53862);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const c=e=>i().createElement("svg",s({width:20,height:18,viewBox:"0 0 20 18",xmlns:"http://www.w3.org/2000/svg"},e),i().createElement("path",{d:"M16 7.24V6h-4v1.24a8.417 8.417 0 00-2 .768V6H6v6h.29a8.497 8.497 0 00-.15.358l-.29.733.29.733.07.176H2c-1.1 0-2-.9-2-2V2C0 .9.9 0 2 0h14c1.1 0 2 .9 2 2v6.008a8.417 8.417 0 00-2-.768zM4 12V6H2v6h2zm0-8V2H2v2h2zm6 0V2H6v2h4zm6 0V2h-4v2h4zm-2 5a6.451 6.451 0 00-6 4.09 6.451 6.451 0 006 4.092 6.451 6.451 0 006-4.091A6.451 6.451 0 0014 9zm0 6.818a2.728 2.728 0 010-5.454 2.728 2.728 0 010 5.454zm0-4.363c-.905 0-1.636.73-1.636 1.636 0 .905.73 1.636 1.636 1.636.905 0 1.636-.73 1.636-1.636 0-.906-.73-1.636-1.636-1.636z",fill:"#000",fillRule:"nonzero",stroke:"none",strokeWidth:1,opacity:.54}));var u=n(17440),p=n(18435);function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){h(e,t,n[t])}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=e=>e.id===e.groupId,m=(0,u.curry)(((e,t)=>{let{id:n,groupId:r}=e;return t.groupId===r&&(n===t.id||n.startsWith(`${t.id}.`))})),E=(0,u.curry)(((e,t)=>{let{groupId:n}=e;return n===t.id})),g=(0,u.propOr)(!0,"hideable"),b=(e,t)=>{const n=((e,t)=>e.find((0,u.either)(E(t),m(t))))(e,t);return n?(n.children=b(n.children||[],t),e):e.concat(t)},y=(0,u.curry)(((e,t)=>p.P6Y.strings.search(t.label,e)||(t.children||[]).some(y(e)))),v=(0,u.reduce)(((e,t)=>b(e,{id:t.id,groupId:t.groupId,label:t.label,attrType:t.dataTypeDefinition})),[]),T=(0,u.curry)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,u.pipe)((0,u.filter)(y(e)),(0,u.chain)((t=>[{item:d({},t,{filterText:e}),level:n},...t.children?T(e,t.children,n+1):[]])))(t)})),x=(0,u.has)("columns"),I=e=>{let{id:t,label:n,columns:r}=e;return[{id:t,groupId:t,label:n},...r.map((0,u.assoc)("groupId",t))]},O=e=>e.children?(0,u.chain)(O,e.children):[e],S=(e,t)=>{const n=O(t),r=t=>e.includes(t.id);return f(t)?n.every(r):n.some(r)};var N=n(39475),P=n(22311),C=n(63485),D=n(26638),_=n(41008),w=n(33117),R=n(94792),M=n(71153),A=n.n(M);const k=(0,n(79692).Z)({popup:{minWidth:"200px"},groupItem:{backgroundColor:"rgba(0,0,0,0.04)"}}),L=e=>{let{item:t,onClick:n,checked:r,level:l,style:a,isFocused:o,isGroupItem:s}=e;const c=k();return i().createElement(w.Z,{key:t.id,onClick:n,checked:r,level:l,data:t,label:i().createElement(R.Z,{text:t.label,highlight:t.filterText}),labelInText:t.label,style:a,isFocused:o,hideIcon:s,className:A()({[c.groupItem]:s})})};L.propTypes={item:a().shape({label:a().string,filterText:a().string}),level:a().number,onClick:a().func,checked:a().bool,style:a().object,isGroupItem:a().bool,isFocused:a().bool};const Z=L;var j=n(87918),H=n.n(j);const G=e=>{let{columnsData:t,selectedColumns:n,onChangeColumns:l,title:a,tooltipTitle:o}=e;const s=k(),[d,h]=(0,r.useState)(null),[m,E]=(0,r.useState)(""),b=(0,r.useMemo)((()=>((e,t)=>(0,u.pipe)((0,u.chain)((0,u.when)(x,I)),(0,u.filter)((0,u.either)(f,g)),v,T(t))(e))(t,m)),[t,m]),y=(0,p.fW1)("label")(b)||308,w=(0,r.useMemo)((()=>(0,_.LG)(b)),[b]),R=(0,r.useCallback)((e=>{const t=(0,u.pipe)(O,(0,u.pluck)("id"))(e),r=S(n,e);l(r?(0,u.difference)(n,t):(0,u.uniq)((0,u.concat)(n,t)))}),[n,l]),M=(0,r.useCallback)((e=>{let{item:t}=e;return R(t)}),[R]),{focusIndex:A,handleKeyDown:L}=(0,D.t)({items:w,open,onSelectFocusedItem:M,selectedItems:n}),j=Math.min(300,32*w.length),G=Math.max(140,j+108);return i().createElement(i().Fragment,null,i().createElement(N.k,{tooltipTitle:o||H().text("Show/hide columns"),size:"L",icon:c,onClick:e=>h(e.currentTarget)}),i().createElement(P.Z,{className:s.popup,open:!!d,anchorEl:d,onClose:(0,u.pipe)((()=>h(null)),(()=>E(""))),onSearch:E,title:a||H().text("Show/hide columns"),containerWidth:y,containerHeight:G,searchInputOnKeyDown:L},i().createElement(C.Z,{fixedTitle:!1,height:j,renderItem:(e,t,r)=>{let{item:l,level:a=0}=t;return i().createElement(Z,{style:e,item:l,level:a,isFocused:A===r,checked:S(n,l),isGroupItem:f(l),onClick:R})},items:w,getItemSize:()=>32,containerWidth:y,focusIndex:A})))};G.propTypes={columnsData:o.uz,selectedColumns:a().arrayOf(a().string),onChangeColumns:a().func,title:a().string,tooltipTitle:a().string};const U=G},77875:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(24328),i=n.n(r),l=n(17440),a=n(87918),o=n.n(a),s=n(6782),c=n(86619),u=n(90590),p=n(79573);const d=(0,n(79692).Z)({root:{display:"flex",flex:1},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px",fontSize:"14px"},inputNumber:{minWidth:"60px",marginRight:10,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.03)"},inputUnit:{width:"100%"}}),h=[o().text("minutes"),o().text("hours"),o().text("days"),o().text("weeks"),o().text("months"),o().text("years")],f=e=>{let{interval:[t,n],onChange:r,onFocus:a}=e;const o=d(),f=(0,l.pipe)(p.NA,parseInt,(e=>[e,n]),r),m=(0,l.pipe)((e=>{let{value:n}=e;return[t,n]}),r);return i().createElement("div",{className:o.root},i().createElement(c.Z,{type:"number",value:t||"",onChange:f,inputProps:{min:1,onFocus:a},InputProps:{classes:{root:o.input}},className:o.inputNumber}),i().createElement(u.Z,{label:"",placeholder:(0,s.Z)(n),className:o.inputUnit,value:{value:n,label:(0,s.Z)(n)},options:h.map((e=>({value:e,label:(0,s.Z)(e)}))),onChange:m,TextFieldProps:{inputProps:{onFocus:a},InputProps:{classes:{root:o.input}}}}))}},33109:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),i=n.n(r),l=n(13980),a=n.n(l),o=n(71153),s=n.n(o),c=n(52730),u=n(17440),p=n(90436),d=n(80030),h=n(87918),f=n.n(h),m=n(18435),E=n(89810),g=n(37573),b=n(20146);const y=(0,n(79692).Z)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}}}))),v=e=>{let{className:t,entity:n,children:l,classes:a}=e;const o=y({classes:a}),h=(0,c.useSelector)(E.ZP.selectors.getMetadata),v=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,m.BTI)(n))}),[n]);if((0,u.isNil)(n))return null;const T=(0,m.idV)(n.label),x=n.secondaryLabel,I=(0,m.ptG)(h,n),O=(0,m.Fn9)(n),S=n.uri,N=(0,m.BTI)(n);return i().createElement("div",{className:s()(o.profileBandWrapper,t)},i().createElement("div",{className:s()(o.profileBand,{[o.inactive]:!O}),"data-entity-uri":S},i().createElement(g.Z,{key:n.uri,entity:n,avatarClassName:o.profileIcon,imageClassName:o.imageProfileIcon}),i().createElement("div",{className:o.profileInfo},i().createElement("div",null,i().createElement(p.Z,{variant:"h6",className:o.label},T),x&&i().createElement(p.Z,{variant:"subtitle2",className:o.secondaryLabel},x),I&&i().createElement(p.Z,{variant:"subtitle1",className:o.businessCard},I)),i().createElement("div",{className:o.specialInfo},i().createElement("div",{className:o.entityType},i().createElement(b.Z,{entity:n,size:"medium",className:o.badge}),!(0,m.ZiX)(S)&&i().createElement(d.ZP,{title:f().text("Copy to clipboard")},i().createElement(p.Z,{display:"inline",variant:"body2",className:o.entityId,onClick:v},f().text("Entity ID"),": ",N))))),l&&i().createElement("div",null,l)))};v.propTypes={className:a().string,entity:a().object,children:a().node,classes:a().object};const T=v},76368:(e,t,n)=>{n.d(t,{a:()=>C});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(86689),s=n(78223),c=n(39475),u=n(67766),p=n(42767),d=n(18435);const h=(0,n(79692).Z)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),f=(0,s.Z)(o.Z),m=e=>{let{total:t=0,onPrev:n,onNext:r,onSearchResultsClick:l,isPrevDisabled:o,isNextDisabled:s}=e;const m=h();return i().createElement("div",{className:m.container},i().createElement(f,{className:m.link,component:"button",variant:"caption",onClick:l,underline:"none",tooltipTitle:a().text("Go to search results")},(0,d.k7L)(t,1e6)," ",1===t?a().text("Search result"):a().text("Search results")),i().createElement(c.k,{size:"L",icon:u.Z,tooltipTitle:a().text("Go to previous profile"),onClick:n,disabled:o,showForDisabled:!0}),i().createElement(c.k,{size:"L",icon:p.Z,tooltipTitle:a().text("Go to next profile"),onClick:r,disabled:s,showForDisabled:!0}))};var E=n(52730),g=n(89810),b=n(17440),y=n(12212),v=n(29627);function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class I{constructor(e){var t=this;let{data:{query:n,sortField:r,sortOrder:i},tenant:l,searchTenant:a,apiPath:o,dtssPath:s,globalSearchRequestOptions:c}=e;this.query=void 0,this.sortField=void 0,this.sortOrder=void 0,this.tenant=void 0,this.searchTenant=void 0,this.apiPath=void 0,this.dtssPath=void 0,this.globalSearchRequestOptions=void 0,this.isDT=()=>this.tenant!==this.searchTenant,this.getQueryFilter=()=>({rawFilter:this.query}),this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[t.getQueryFilter(),...e],i=T({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,d.uqV)({filters:r,options:i,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,d.ZOr)(r,i)},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"uri",values:[e]}],{offset:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{offset:t,max:e}),this.requestTotal=()=>{const e=[this.getQueryFilter()],t=this.globalSearchRequestOptions;return(this.isDT()?(0,d.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,d.j_Q)(e,t)).then((e=>e.total))},this.query=n,this.sortField=r,this.sortOrder=i,this.tenant=l,this.searchTenant=a,this.apiPath=o,this.dtssPath=s,this.globalSearchRequestOptions=c}}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){S(e,t,n[t])}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class N{constructor(e){var t=this;let{data:n,tenant:r,apiPath:i}=e;this.searchBody=void 0,this.tenant=void 0,this.apiPath=void 0,this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[{rawFilter:t.searchBody.filter},...e];return(0,d.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:O({},t.searchBody,{filter:e.length?(0,d.Uqd)()(r):t.searchBody.filter}),options:n})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,d.BTI)({uri:e})]}],{from:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{from:t,max:e}),this.requestTotal=()=>(0,d.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=n,this.tenant=r,this.apiPath=i}}const P=(e,t)=>(0,b.pipe)((0,b.map)((0,b.prop)("uri")),(0,b.reject)((e=>t.includes(e))))(e),C=()=>{const{total:e,onPrev:t,onNext:n,onSearchResultsClick:l,isPrevDisabled:a,isNextDisabled:o}=(()=>{const e=(0,v._)(),t=(0,v._)(),n=(0,v._)(),{uri:i,index:l,total:a,tenant:o,cache:s}=(0,E.useSelector)(g.ZP.selectors.getSearchNavigationData)||{},{type:c,data:u}=(0,E.useSelector)(g.ZP.selectors.getSearchProviderData)||{},p=(0,E.useSelector)(g.ZP.selectors.getTenant),h=(0,E.useSelector)(g.ZP.selectors.getApiPath),f=(0,E.useSelector)(g.ZP.selectors.getDtssPath),m=(0,E.useSelector)((e=>g.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),b=(0,r.useContext)(y.m),T=(0,E.useDispatch)(),[x,O]=(0,r.useState)(!1),S=(0,r.useMemo)((()=>((e,t)=>{switch(e){case"search":return new I(t);case"graphsearch":return new N(t)}})(c,{data:u,tenant:p,searchTenant:o,apiPath:h,dtssPath:f,globalSearchRequestOptions:m})),[c,u,p,o,h,f,m]),C=(0,r.useCallback)((e=>{T(g.yC.actions.updateSearchNavigationDataFields(e))}),[T]),D=(0,r.useCallback)((e=>{const t=p!==o?(0,d.wwR)({uri:e,dataTenant:o}):e;T(g.ui.actions.openEntity({uri:t,viewId:b,source:"navigation"}))}),[T,b,p,o]),_=(0,r.useCallback)((()=>{T(g.ui.actions.openPerspective({perspectiveId:c,viewId:b}))}),[T,c,b]);(0,r.useEffect)((()=>{l>=a?C({index:a-1}):l<0&&C({index:0})}),[a,l,C]);const w=(0,r.useCallback)(((e,r,i)=>{O(!0),t(S.requestTotal()).then((e=>C({total:e})));const l=i+1;return n(S.requestEntities(15,l)).then((t=>{if(t){if(t.length){const n=P(t,e);if(n.length>0)return C({cache:e.concat(n),uri:n[0],index:l+t.length-n.length}),void D(n[0]);if(i+t.length<r-1)return w(e,r-t.length,i+t.length)}C({index:l})}})).finally((()=>{O(!1)}))}),[S,C,D]),R=(0,r.useCallback)(((e,r)=>{O(!0),t(S.requestTotal()).then((e=>C({total:e})));const i=r-1,l=Math.max(0,r-15),a=15+Math.min(0,r-15);return n(S.requestEntities(a,l)).then((t=>{if(t){if(t.length){const n=P(t,e);if(n.length>0)return C({cache:n.concat(e),uri:n[n.length-1],index:i-(t.length-n.length)}),void D(n[n.length-1]);if(r-t.length>0)return R(e,r-t.length)}C({index:0})}})).finally((()=>{O(!1)}))}),[S,C,D]),M=(0,r.useCallback)(((t,n,r,i)=>{if(n<t.length){const l=t[n];return O(!0),e(S.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),M(e,n,r-1,i)}C({index:i+1,uri:l,cache:t,total:r}),D(l)})).finally((()=>{O(!1)}))}if(!(i>=r-1))return w(t,r,i);C({cache:t,total:r,index:r-1})}),[S,C,D,w]),A=(0,r.useCallback)(((t,n,r,i)=>{if(n>-1){const l=t[n];return O(!0),e(S.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),A(e,n-1,r-1,i-1)}C({index:i-1,uri:l,cache:t,total:r}),D(l)})).finally((()=>{O(!1)}))}if(!(i<=0))return R(t,i);C({index:0,cache:t,total:r})}),[S,C,D,R]),k=(0,r.useCallback)((()=>{if(s&&i){const e=s.indexOf(i)-1;A(s,e,a,l)}}),[A,s,i,a,l]),L=(0,r.useCallback)((()=>{if(s&&i){const e=s.indexOf(i)+1;M(s,e,a,l)}}),[M,s,i,a,l]);return{total:a,onPrev:k,onNext:L,onSearchResultsClick:_,isPrevDisabled:x||l<=0,isNextDisabled:x||l>=a-1}})();return(()=>{const{cache:e}=(0,E.useSelector)(g.ZP.selectors.getSearchNavigationData)||{},t=(0,E.useSelector)(g.ZP.selectors.getMode),n=(0,E.useSelector)(g.ZP.selectors.getEntity);return(0,d.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?i().createElement(m,{total:e,onPrev:t,onNext:n,onSearchResultsClick:l,isPrevDisabled:a,isNextDisabled:o}):null}},15793:(e,t,n)=>{n.d(t,{Z:()=>C});var r=n(24328),i=n.n(r),l=n(13980),a=n.n(l),o=n(17440),s=n(70347);const c=(0,n(4515).Z)(s.ZP);var u=n(49861),p=n(12350),d=n(12231),h=n(21324),f=n(71153),m=n.n(f),E=n(83088);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function b(e){const{innerProps:t,innerRef:n,children:r,isFocused:l,isSelected:a,selectProps:{classes:o},label:s}=e;return i().createElement(d.Z,g({className:m()(o.option,{[o["option--selected"]]:a}),ref:n,selected:l,component:"div"},t),i().createElement(h.Z,{color:"primary",checked:a}),i().createElement(E.C,{value:s},i().createElement("div",{className:o["option--item"]},r)))}b.propTypes={children:a().node,innerProps:a().shape({id:a().string.isRequired,key:a().string,onClick:a().func.isRequired,onMouseMove:a().func.isRequired,onMouseOver:a().func.isRequired,tabIndex:a().number.isRequired}).isRequired,innerRef:a().oneOfType([a().oneOf([null]),a().func,a().shape({current:a().any.isRequired})]),isFocused:a().bool.isRequired,isSelected:a().bool.isRequired,label:a().string,selectProps:a().shape({classes:a().shape({option:a().string})})};const y={Option:b};var v=n(79692),T=n(79573);function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S=(0,v.Z)((e=>({label:{top:6,left:16},placeholder:e=>({display:!e.placeholder||e.label?"none":void 0}),"option--selected":{fontWeight:400},clearIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)},dropdownIndicator:{padding:e.spacing(1),margin:e.spacing(.25,.5)}})));let N=0;function P(e){const{label:t,creatable:n,getOptions:l,loadingIndicator:a,components:s,classes:d,styles:h,onChange:f,onInputChange:m,menuPlacement:E="auto"}=e,g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["label","creatable","getOptions","loadingIndicator","components","classes","styles","onChange","onInputChange","menuPlacement"]),b=n?c:l?p.Z:u.Z,[v,O]=(0,r.useState)(""),P=S((0,o.omit)(["classes"],e)),C="custom-select-"+N++,D=I({},y,s),_=(0,T.ze)(P,d),w=I({indicatorSeparator:e=>I({},e,{margin:"10px 0"}),loadingIndicator:e=>I({},e,{display:a?e.display:"none"}),loadingMessage:e=>I({},e,{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'})},h),R=t?{inputId:C,TextFieldProps:I({label:t,InputLabelProps:{htmlFor:C,shrink:!(!e.value||!e.value.length)||void 0,className:_.label}},e.TextFieldProps)}:{};return i().createElement(b,x({isMulti:!0,inputId:C,inputValue:v,onChange:function(e,t){f(e,t),"create-option"===t.action&&(O(""),m("",{action:"input-change"}))},onInputChange:function(e,t){let{action:n}=t;m(e,{action:n}),"set-value"!==n&&O(e)},closeMenuOnSelect:!1,hideSelectedOptions:!1,classes:_,components:D,styles:w,menuPlacement:E,loadOptions:l},R,g))}P.defaultProps={creatable:!1,cacheOptions:!0,components:{},classes:{},placeholder:"",loadingIndicator:!1,onInputChange:()=>{},onChange:()=>{}},P.propTypes={creatable:a().bool,cacheOptions:a().bool,defaultOptions:a().bool,value:a().arrayOf(a().shape({label:a().string.isRequired,value:a().any})),options:a().arrayOf(a().shape({label:a().string.isRequired,value:a().any})),onChange:a().func,onInputChange:a().func,placeholder:a().string,label:a().string,loadingIndicator:a().bool,components:a().shape({ClearIndicator:a().func,Control:a().func,DropdownIndicator:a().func,DownChevron:a().func,CrossIcon:a().func,Group:a().func,GroupHeading:a().func,IndicatorsContainer:a().func,IndicatorSeparator:a().func,Input:a().func,LoadingIndicator:a().func,Menu:a().func,MenuList:a().func,MenuPortal:a().func,LoadingMessage:a().func,NoOptionsMessage:a().func,MultiValue:a().func,MultiValueContainer:a().func,MultiValueLabel:a().func,MultiValueRemove:a().func,Option:a().func,Placeholder:a().func,SelectContainer:a().func,SingleValue:a().func,ValueContainer:a().func}),classes:a().shape({control:a().string,valueContainer:a().string,multiValue:a().string,noOptionsMessage:a().string,singleValue:a().string,placeholder:a().string,menu:a().string,clearIndicator:a().string,dropdownIndicator:a().string,option:a().string,"option--selected":a().string,label:a().string}),styles:a().shape({clearIndicator:a().func,container:a().func,control:a().func,dropdownIndicator:a().func,group:a().func,groupHeading:a().func,indicatorsContainer:a().func,indicatorSeparator:a().func,input:a().func,loadingIndicator:a().func,loadingMessage:a().func,menu:a().func,menuList:a().func,menuPortal:a().func,multiValue:a().func,multiValueLabel:a().func,multiValueRemove:a().func,noOptionsMessage:a().func,option:a().func,placeholder:a().func,singleValue:a().func,valueContainer:a().func}),TextFieldProps:a().object,getOptions:a().func,menuPlacement:a().string,menuPortalTarget:a().object,getOptionValue:a().func,isSearchable:a().bool};const C=P},28101:(e,t,n)=>{n.d(t,{G:()=>h});var r=n(24328),i=n.n(r),l=n(71153),a=n.n(l),o=n(39475),s=n(79692),c=n(41128);const u=(0,s.Z)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,c.U1)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const h=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:l,classes:s={}}=e;const c=u(),{active:h,buttonWrapper:f}=s,m=d(s,["active","buttonWrapper"]);return i().createElement("div",{className:a()(c.container,r)},t.map((e=>{let{id:t}=e,r=d(e,["id"]);return i().createElement(o.k,p({},r,{classes:m,size:"S",key:t,className:a()({[a()(c.active,h)]:n===t},c.buttonWrapper,f),onClick:()=>l(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},15422:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),i=n.n(r),l=n(90436);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const o=e=>i().createElement("svg",a({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),i().createElement("mask",{id:"AttributesList_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},i().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),i().createElement("g",{mask:"url(#AttributesList_svg__a)"},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#AttributesList_svg__b)"}),i().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#AttributesList_svg__c)"}),i().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),i().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),i().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),i().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),i().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),i().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2v40.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),i().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),i().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zm90 0a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),i().createElement("defs",null,i().createElement("linearGradient",{id:"AttributesList_svg__b",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},i().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),i().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),i().createElement("linearGradient",{id:"AttributesList_svg__c",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},i().createElement("stop",{stopOpacity:.01}),i().createElement("stop",{offset:1})))),s=(0,n(79692).Z)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box",padding:"40px"},logo:{width:"190px",height:"190px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:400,marginTop:"24px"},text:{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"23px",textAlign:"center"},secondaryText:{color:e.palette.text.primary,fontSize:"14px",fontWeight:"normal",lineHeight:"16px",letterSpacing:"0.24px",textAlign:"center",paddingTop:"8px"}}))),c=e=>{let{IconRenderer:t=o,text:n,secondaryText:r}=e;const a=s();return i().createElement("div",{className:a.root},i().createElement(t,{className:a.logo}),i().createElement("div",{className:a.textBox},i().createElement(l.Z,{className:a.text},n),r&&i().createElement(l.Z,{className:a.secondaryText},r)))}},79935:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(24328),i=n.n(r);const l=()=>i().createElement("div",{style:{flex:1}})},15791:(e,t,n)=>{n.d(t,{Z:()=>T});var r=n(24328),i=n.n(r),l=n(52730),a=n(87918),o=n.n(a),s=n(17440),c=n(71153),u=n.n(c),p=n(90436),d=n(15793),h=n(59952),f=n(18435),m=n(89810),E=n(79692);function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){b(e,t,n[t])}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={input:e=>g({},e,{fontSize:"14px"}),loadingMessage:e=>g({},e,{fontSize:"14px"}),menuPortal:e=>g({},e,{zIndex:1300})},v=(0,E.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},option:{fontSize:"14px",height:"32px"}}),T=e=>{let{selectedUsers:t,onChange:n,className:a,disableUnderline:c}=e;const E=v(),g=e=>({value:e,label:e}),b=e=>e.map(g),T=(0,l.useSelector)(m.ZP.selectors.getTenant),x=(0,l.useSelector)(m.ZP.selectors.getServicesPath),I=(0,r.useRef)();return i().createElement("div",{className:u()(E.root,a)},i().createElement(p.Z,{className:E.title,variant:"subtitle1"},o().text("User")),i().createElement(d.Z,{value:b(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),n),defaultOptions:!0,getOptions:e=>(I.current||(I.current=(0,f.kz_)({tenant:T,servicesPath:x})),I.current.then((0,s.pipe)((0,s.prop)("array"),(0,s.pluck)("username"),(e=>t=>e?t.filter((t=>f.P6Y.strings.search(t,e))):t)(e),b))),TextFieldProps:{InputProps:{disableUnderline:c},className:E.dropDownInput},components:{DropdownIndicator:h.Z},styles:y,classes:E,menuPortalTarget:document.body}))}},20414:(e,t,n)=>{let r;n.d(t,{I:()=>r}),function(e){e.MODEL_UPDATED="MODEL_UPDATED",e.ENTITY_REMOVED="ENTITY_REMOVED",e.ENTITY_CREATED="ENTITY_CREATED",e.ENTITY_CHANGED="ENTITY_CHANGED",e.ENTITIES_MERGED="ENTITIES_MERGED",e.ENTITIES_SPLITTED="ENTITIES_SPLITTED",e.ENTITY_LOST_MERGE="ENTITY_LOST_MERGE",e.RELATIONSHIP_CREATED="RELATIONSHIP_CREATED",e.RELATIONSHIP_REMOVED="RELATIONSHIP_REMOVED",e.RELATIONSHIP_CHANGED="RELATIONSHIP_CHANGED",e.POTENTIAL_MATCHES_FOUND="POTENTIAL_MATCHES_FOUND",e.NOT_MATCHES_SET="NOT_MATCHES_SET",e.NOT_MATCHES_RESET="NOT_MATCHES_RESET",e.PERIODIC_TASK_SCHEDULED="PERIODIC_TASK_SCHEDULED",e.ENTITIES_MERGED_MANUALLY="ENTITIES_MERGED_MANUALLY",e.POTENTIAL_MATCHES_REMOVED="POTENTIAL_MATCHES_REMOVED",e.ENTITIES_MERGED_ON_THE_FLY="ENTITIES_MERGED_ON_THE_FLY",e.USER_LOGIN="USER_LOGIN",e.USER_LOGOUT="USER_LOGOUT",e.USER_SEARCH="USER_SEARCH",e.USER_PROFILE_VIEW="USER_PROFILE_VIEW",e.COMMENT_ADDED="COMMENT_ADDED",e.COMMENT_UPDATED="COMMENT_UPDATED",e.COMMENT_DELETED="COMMENT_DELETED",e.ANALYTICS_ATTRIBUTES_CHANGED="ANALYTICS_ATTRIBUTES_CHANGED",e.GROUP_CREATED="GROUP_CREATED",e.GROUP_REMOVED="GROUP_REMOVED",e.GROUP_CHANGED="GROUP_CHANGED"}(r||(r={}))},57312:(e,t,n)=>{n.d(t,{te:()=>c,VV:()=>u,rx:()=>p,_V:()=>d,Xr:()=>h});var r=n(17440),i=n(87918),l=n.n(i),a=n(20414);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=(0,r.path)(["data","type"]),c=e=>{const{items:t,label:n}=e,[r]=t||[];return s(r)||n},u=(0,r.pipe)(c,(e=>(0,r.pipe)(r.values,(0,r.includes)(e))(a.I))),p=e=>(0,r.pipe)((0,r.propOr)([],"items"),(0,r.groupBy)(s),r.values,(0,r.ifElse)((e=>{let{length:t}=e;return t>1}),(0,r.map)((t=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}({},e,{items:t,itemsTotal:t.length}))),(()=>[e])))(e),d=e=>(0,r.isNil)(e)?"":"string"==typeof e?e:Array.isArray(e)?e.map(d).join(", "):(0,r.is)(Object,e)?d("value"in e?e.value:Object.values(e)):e.toString(),h=e=>({[a.I.COMMENT_ADDED]:l().text("Comment added"),[a.I.COMMENT_DELETED]:l().text("Comment deleted"),[a.I.COMMENT_UPDATED]:l().text("Comment updated"),[a.I.ENTITIES_MERGED]:l().text("Profile merged"),[a.I.ENTITIES_MERGED_MANUALLY]:l().text("Profile merged manually"),[a.I.ENTITIES_MERGED_ON_THE_FLY]:l().text("Profile merged on the fly"),[a.I.ENTITIES_SPLITTED]:l().text("Profile un-merged"),[a.I.ENTITY_CHANGED]:l().text("Profile updated"),[a.I.ENTITY_CREATED]:l().text("Profile created"),[a.I.ENTITY_LOST_MERGE]:l().text("Profile lost merge"),[a.I.ENTITY_REMOVED]:l().text("Profile removed"),[a.I.GROUP_CHANGED]:l().text("Group updated"),[a.I.GROUP_CREATED]:l().text("Group created"),[a.I.GROUP_REMOVED]:l().text("Group removed"),[a.I.MODEL_UPDATED]:l().text("Model was updated"),[a.I.NOT_MATCHES_RESET]:l().text("Not matches reset"),[a.I.NOT_MATCHES_SET]:l().text("Not matches set"),[a.I.PERIODIC_TASK_SCHEDULED]:l().text("Periodic task was scheduled"),[a.I.POTENTIAL_MATCHES_FOUND]:l().text("Potential matches found"),[a.I.POTENTIAL_MATCHES_REMOVED]:l().text("Potential matches removed"),[a.I.RELATIONSHIP_CHANGED]:l().text("Relationship updated"),[a.I.RELATIONSHIP_CREATED]:l().text("Relationship created"),[a.I.RELATIONSHIP_REMOVED]:l().text("Relationship removed"),[a.I.USER_LOGIN]:l().text("Logged in"),[a.I.USER_LOGOUT]:l().text("Logged out"),[a.I.USER_PROFILE_VIEW]:l().text("Profile viewed"),[a.I.USER_SEARCH]:l().text("Searched"),[a.I.ANALYTICS_ATTRIBUTES_CHANGED]:l().text("Analytics attribute changed")}[e]||"")},27446:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(24328),i=n.n(r),l=n(95038),a=n.n(l),o=n(87918),s=n.n(o),c=n(17440),u=n(18435),p=n(86619),d=n(48348),h=n(59952),f=n(52346);const m=(0,n(79692).Z)({root:{flex:1},dropdownIndicator:{transition:"transform .15s ease"},inputRoot:{fontSize:"14px",height:46},input:{padding:"0 12px 0"},dateOptionLabel:{minWidth:"100px"},paper:{minWidth:"112px"}}),E=a().localeData().longDateFormat("L"),g=e=>{let{values:t,onChange:n,onFocus:l}=e;const a=E,o=(0,r.useRef)(null),[g,b]=(0,r.useState)(!1),y=m(),v=(0,r.useCallback)((()=>{b((e=>!e)),l()}),[l]),T=()=>{b(!1)};return i().createElement("div",{className:y.root},i().createElement(p.Z,{fullWidth:!0,value:t.map((e=>((e,t)=>(0,c.isNil)(e)?`${t}`:`${(0,u.mB6)({dataTypeDefinition:{type:u.oS0.TYPE_ACTIVENESS_DATE}},e)}`)(e,a))).join(" — "),onClick:v,variant:"filled",ref:o,InputProps:{endAdornment:i().createElement(h.Z,{selectProps:{classes:y,menuIsOpen:g},innerProps:{}}),disableUnderline:(0,c.isNil)(t),readOnly:!0,classes:{root:y.inputRoot,input:y.input}},InputLabelProps:{shrink:!1},placeholder:s().text(`${a} — ${a}`)}),i().createElement(d.Z,{variant:"menu",open:g,autoFocus:!1,classes:{paper:y.paper},anchorEl:o.current,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:g,style:{width:"100%"}}},i().createElement(f.Z,{values:t,onCancel:T,onApply:e=>{n(e),b(!1)},type:u.oS0.TYPE_ACTIVENESS_DATE})))}},70675:(e,t,n)=>{n.d(t,{Z:()=>ne});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(85256),s=n(90436),c=n(17440),u=n(79935),p=n(36444),d=n(77277),h=n(79784),f=n(40435),m=n(37696),E=n(15791),g=n(55234),b=n(71153),y=n.n(b),v=n(90590),T=n(39034);const x=[T.K.WITHIN,T.K.AGO,T.K.BETWEEN],I=e=>({[T.K.WITHIN]:a().text("Within the last"),[T.K.AGO]:a().text("More than"),[T.K.BETWEEN]:a().text("Date range")}[e]||"");var O=n(77875),S=n(55962),N=n(27446),P=n(79692);const C=(0,P.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),D=[null,null],_=[null,"hours"],w=e=>{let{value:t,onChange:n,className:l}=e;const o=C(),c=e=>e===T.K.WITHIN||e===T.K.AGO,u=e=>e===T.K.BETWEEN,p=u(null==t?void 0:t.type)?t.period:D,d=c(null==t?void 0:t.type)?t.period:_,[h,f]=(0,r.useState)(p),[m,E]=(0,r.useState)(d),g=(null==t?void 0:t.type)||T.K.WITHIN,b=e=>c(e)?m:u(e)?h:void 0,P=e=>{n({type:g,period:e})};return(0,S.D)((()=>{t?c(t.type)?E(t.period):u(t.type)&&f(t.period):(f(D),E(_))}),[t]),i().createElement("div",{className:y()(o.root,l)},i().createElement(s.Z,{className:o.title,variant:"subtitle1"},a().text("Date")),i().createElement("div",{className:o.intervalContainer},i().createElement(v.Z,{label:"",className:o.typeInput,value:{value:g,label:I(g)},options:x.map((e=>({value:e,label:I(e)}))),onChange:e=>{let{value:r}=e;(null==t?void 0:t.type)!==r&&n({period:b(r),type:r})}}),c(g)?i().createElement(O.Z,{interval:m,onChange:P}):i().createElement(N.Z,{values:h,onChange:P})))};var R=n(15793),M=n(59952),A=n(38323);const k=[A.M.UPDATE,A.M.MERGE,A.M.UNMERGE];function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Z(e,t,n[t])}))}return e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j={input:e=>L({},e,{fontSize:"14px"}),menuPortal:e=>L({},e,{zIndex:1300})},H=(0,P.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},valueContainer:{overflowY:"auto",height:44},option:{fontSize:"14px",height:"32px"}}),G=e=>{let{selectedHistoryActivityTypes:t,onChange:n,className:r}=e;const l=H(),o=e=>{return{value:e,label:(t=e,{[A.M.UPDATE]:a().text("Update"),[A.M.MERGE]:a().text("Merge"),[A.M.UNMERGE]:a().text("Unmerge")}[t]||"")};var t},u=e=>e.map(o),p=u(k);return i().createElement("div",{className:y()(l.root,r)},i().createElement(s.Z,{className:l.title,variant:"subtitle1"},a().text("Activity")),i().createElement(R.Z,{value:u(t),onChange:(0,c.pipe)((0,c.defaultTo)([]),(0,c.pluck)("value"),n),options:p,TextFieldProps:{classes:{root:l.dropDownInput}},components:{DropdownIndicator:M.Z},styles:j,classes:l,menuPlacement:"bottom",menuPortalTarget:document.body}))},U=(0,P.Z)({popup:{width:500,height:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{padding:20,height:410,display:"flex",flexDirection:"column"},filterContainerScrollable:{overflowY:"auto"},filterItem:{marginTop:15},filterControls:{display:"flex",padding:"10px 12px 0",borderTop:"solid 1px rgba(0, 0, 0, 0.12)"},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"}});function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const z=e=>{let{className:t,filter:n,onApplyFilter:l,onClearFilter:o,entityType:u}=e;const b=U(),[y,v]=(0,r.useState)(null),T=()=>v(null),[x,I]=(0,r.useState)(n);(0,r.useEffect)((()=>{I(n)}),[n]);const O=(0,c.curry)(((e,t)=>{I((n=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){F(e,t,n[t])}))}return e}({},n,{[e]:t})))})),{activities:S=[],attributes:N=[],dateRange:P=null,users:C=[]}=x||{};return i().createElement(i().Fragment,null,i().createElement(f.Z,{icon:p.Z,size:"L",onClick:e=>v(e.currentTarget),className:t}),i().createElement(h.ZP,{classes:{paper:b.popup},open:!!y,anchorEl:y,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},i().createElement("div",{className:b.filterContainer},i().createElement(s.Z,{variant:"h6"},a().text("Filter")),i().createElement("div",{className:b.filterContainerScrollable},i().createElement(w,{value:P,onChange:O("dateRange"),className:b.filterItem}),i().createElement(E.Z,{selectedUsers:C,onChange:O("users"),className:b.filterItem}),i().createElement(G,{selectedHistoryActivityTypes:S,onChange:O("activities"),className:b.filterItem}),i().createElement(g.Z,{selectedAttributes:N,entityType:u,onChange:O("attributes"),className:b.filterItem,title:a().text("Attribute updated")}))),i().createElement("div",{className:b.filterControls},i().createElement(d.Z,{onClick:o,className:b.clearButton},a().text("Clear all")),i().createElement(d.Z,{onClick:T},a().text("Cancel")),i().createElement(d.Z,{color:"primary",onClick:()=>{P&&(0,m.R)(P)?l(x):l((0,c.dissoc)("dateRange",x)),T()}},a().text("Apply")))))};var B=n(52730),V=n(43054),W=n(89810),Y=n(98538),$=n(12231),q=n(98281),K=n(79573);const X=(0,P.Z)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),Q=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=K.ZT}=e;const l=X(),{text:a,selected:o,onClick:c}=n;return i().createElement($.Z,{classes:{root:l.menuItem},onClick:e=>{r(),c(e)},ref:t},o&&i().createElement(q.Z,{className:l.checkIcon}),i().createElement(s.Z,{classes:{root:l.menuText}},a))}));Q.displayName="MenuItemRenderer";const J=Q,ee=()=>{const e=(0,B.useSelector)(W.ZP.selectors.getHistoryMode),t=(0,B.useDispatch)(),n=e=>{t(W.N5.history.actions.setHistoryMode(e))},r=[{text:a().text("Compare to Current view"),selected:e===W.Z9.Current,onClick:()=>n(W.Z9.Current)},{text:a().text("Compare to Previous view"),selected:e===W.Z9.Previous,onClick:()=>n(W.Z9.Previous)}];return i().createElement(Y.Z,{MenuItemRenderer:J,buttonComponent:f.Z,buttonProps:{icon:V.Z,size:"L"},menuId:"history-menu",menuItems:r})},te=(0,P.Z)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{backgroundColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),ne=e=>{let{total:t,entityType:n,filter:r,onApplyFilter:l,onClearFilter:p}=e;const d=te();return i().createElement("div",{className:d.root},i().createElement(s.Z,{variant:"h6"},a().text("History")),!(0,c.isNil)(t)&&i().createElement(i().Fragment,null,i().createElement(o.Z,{orientation:"vertical",flexItem:!0,className:d.divider}),i().createElement(s.Z,{variant:"body1",color:"textSecondary",className:d.count},1===t?a().text("${count} contributing profile",{count:t}):a().text("${count} contributing profiles",{count:t}))),i().createElement(u.Z,null),i().createElement(z,{className:d.filterButton,entityType:n,filter:r,onApplyFilter:l,onClearFilter:p}),i().createElement(ee,null))}},95085:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(15422);const s=()=>i().createElement(o.Z,{text:a().text("History in the making"),secondaryText:a().text("When you create an event or perform an activity, it will show up here.")})},32158:(e,t,n)=>{n.d(t,{Z:()=>H});var r=n(24328),i=n.n(r),l=n(52730),a=n(44443),o=n(87918),s=n.n(o),c=n(17440),u=n(71153),p=n.n(u),d=n(18435),h=n(89810),f=n(77277),m=n(90436),E=n(57312),g=n(79692);const b=(0,g.Z)((()=>({historyRow:{position:"relative",padding:"8px 12px 16px",cursor:"pointer"},selected:{background:"rgba(0,0,0,0.05)","&:before":{content:'""',background:"rgba(0,0,0,0.05)",width:"100%",height:"100%",position:"absolute",left:"-100%",top:0}},rowHeader:{display:"flex",position:"relative"},badge:e=>{let{color:t}=e;return{position:"absolute",width:"2px",height:"100%",left:"-9px",pointerEvents:"none",background:t,"&:before":{height:"100%",width:"3px",content:'""',left:"-3px",background:t,position:"absolute",opacity:.06}}},title:{color:"rgba(0,0,0,0.87)",fontSize:"13px",letterSpacing:0,lineHeight:"16px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&.bold":{fontWeight:500}},date:{marginLeft:"auto",color:"rgba(0,0,0,0.54)",fontSize:"11px",letterSpacing:0,lineHeight:"16px"},user:{color:"rgba(0,0,0,0.38)",fontSize:"12px",letterSpacing:0,lineHeight:"14px"}}))),y=e=>{let{change:t,isCurrent:n,isSelected:r,onClick:l}=e;const{uri:a,type:o,matchGroups:c,user:u,timestamp:h}=t,f=(0,d.GtP)(a),g=b({color:f});return i().createElement("div",{className:p()(g.historyRow,{[g.selected]:r}),onClick:l},i().createElement("div",{className:g.rowHeader},i().createElement("div",{className:g.badge}),i().createElement(m.Z,{className:p()(g.title,{bold:n})},n?s().text("Current view"):(0,E.Xr)(o)),!n&&i().createElement(m.Z,{className:g.date},s().date(h,"L LT"))),c&&i().createElement(m.Z,{className:g.title},s().text("Match rule:")," ",c.join(", ")),i().createElement(m.Z,{className:g.user},u))};var v=n(21256);const T=e=>e===v.b.FAKE_FILTERED_INCOMING||e===v.b.FAKE_FILTERED_OUTGOING,x=e=>{let{x:t,y:n,toX:r,toY:l,color:a,isDashed:o}=e;const s=((e,t,n,r)=>{const i=t>r,l=e<n,a=i?-6:6;return`M${e} ${t} L${l?n-12:n+12} ${t} ${l?`c 6 0 12 ${a} 12`:`c -6 0 -12 ${a} -12`} ${i?-12:12} L${n} ${r}`})(t,n,r,l);return i().createElement("path",{d:s,stroke:a,strokeWidth:2,fill:"none",strokeDasharray:o?"3,3":void 0})};function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}const O=(0,r.forwardRef)(((e,t)=>{let{x:n,y:r,color:l,isDashed:a,isCollapsed:o,showCollapseIcon:s,showLine:c}=e,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const p=s?6:3;return i().createElement("g",I({},u,{ref:t}),c&&i().createElement("rect",{id:"line",x:n-p-4,y:r-p-4,width:2*p+8,height:2,fill:l}),i().createElement("circle",{cx:n,cy:r,r:p,fill:a?"#fff":l,stroke:l,strokeDasharray:a?"1,1":void 0,strokeWidth:2}),s&&i().createElement("g",{id:"icon"},i().createElement("rect",{x:n-4,y:r-1,width:8,height:2,fill:"#fff"}),o&&i().createElement("rect",{x:n-1,y:r-4,width:2,height:8,fill:"#fff"})))}));const S=(0,n(78223).Z)(O),N=(0,r.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:n}=e;const{historyLanes:r,rows:l}=t,a=[16],{links:o,rowLines:s,circles:c}=l.reduce(((e,t,o)=>{let{uri:s,height:c,uris:u,type:p,fakeType:h,index:f,timestamp:m,label:E}=t;const g=16*r[s].index+24,b=a[o];a.push(b+c);const y=T(h),I=y?u[0]:s,O=!(null!=u&&u.some((e=>r[e])));e.circles.push(i().createElement(S,{tooltipTitle:E,tooltipPlacement:"top",onMouseOver:n?()=>n(s,m,f):void 0,key:`circle-${I}-${o}`,x:g,y:b,color:(0,d.GtP)(I),isDashed:y,isCollapsed:O,showCollapseIcon:!!u,showLine:h===v.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(i().createElement("rect",{key:`${I}-${f}`,x:g,y:b-8,width:"100%",height:16,fill:(0,d.GtP)(I),opacity:.06}));const N=p===v.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const n=r[t];if(!n)return;const a=l[o].height,s=16*n.index+24,c=N?b-a:b+a;g!==s&&e.links.push(i().createElement(x,{key:`link-${t}-${f}`,x:g,y:b,toX:s,toY:c,isDashed:T(h),color:(0,d.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(r).length+24,p=a[a.length-1]-16;return Object.entries(r).forEach((e=>{let[t,n]=e;const r=16*n.index+24;n.lifeTime.forEach(((e,s)=>{var u;let{start:p,end:h}=e;if((null===(u=l[null==h?void 0:h.index])||void 0===u?void 0:u.type)===v.b.ENTITIES_SPLITTED)return;const f=(null==p?void 0:p.type)===v.b.ENTITIES_SPLITTED?(null==p?void 0:p.index)-1:null==p?void 0:p.index,m=(null==h?void 0:h.type)===v.b.ENTITIES_MERGED_MANUALLY||(null==h?void 0:h.type)===v.b.ENTITIES_MERGED?(null==h?void 0:h.index)+1:null==h?void 0:h.index,E=a[f]||a[a.length-2],g=a[m]||16;if(E<=g)return;const b=(0,d.GtP)(t);!h&&n.index>0&&c.push(i().createElement(O,{key:`initCircle-${t}-${s}`,x:r,y:g,color:b,showLine:!0})),o.unshift(i().createElement("path",{key:`line-${t}-${s}`,d:`M${r} ${E} L${r} ${g}`,stroke:b,strokeWidth:2}))}))})),i().createElement("svg",{className:"chart",width:u,height:p},i().createElement("g",{id:"rowLines"},s),i().createElement("g",{id:"links"},o),i().createElement("g",{id:"circles"},c))}));var P=n(87378);const C=(0,g.Z)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"scroll",overflowY:"hidden"},history:{minWidth:344},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_(e,t,n[t])}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=e=>{let{historyData:t,isLoading:n,canLoadMore:o,onLoadMore:u,entityUri:m,historyEvent:E,findPreviousChange:g}=e;const b=C(),v=(0,l.useDispatch)(),T=(0,l.useSelector)(h.ZP.selectors.getIsEditableMode),x=(0,l.useSelector)(h.ZP.selectors.getMetadata),[I,O]=(0,r.useState)({historyLanes:{},rows:[]}),[S,_]=(0,r.useState)(!1),[w,R]=(0,r.useState)(-1);(0,r.useEffect)((()=>{if((0,c.isNil)(E))return void R(0);const e=e=>(null==e?void 0:e.uri)===((null==E?void 0:E.overrideUri)||m)&&(null==e?void 0:e.timestamp)===(null==E?void 0:E.aStamp),n=-1!==w?t.rows[w]:null,r=t.rows.findIndex((t=>e(t)));R(e(n)?w:r)}),[t.rows,E]);const M=(0,r.useRef)(null),A=(0,r.useCallback)((e=>{if(!(0,c.isNil)(e)){var n;const r=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var r;return D({},t,{height:null===(r=e.childNodes[n])||void 0===r?void 0:r.clientHeight})}));O({historyLanes:t.historyLanes,rows:r})}}),[t]),k=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==M?void 0:M.current)||{};_(n<e-t)};return i().createElement("div",{className:b.historyTree},n&&i().createElement(P.Z,null),i().createElement("div",{className:p()(b.graph,{[b.shadow]:S}),onScroll:k,ref:M},i().createElement(N,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,c.isNil)(I.rows[n].label)){const r={time:t,select:"crosswalks"};(0,d.HvW)(e,r).then((e=>{let{crosswalks:t}=e;const r=t?(0,c.uniqBy)((0,c.prop)("type"),t).map((e=>{const t=(0,d.s5)(x,e.type);return t?t.label:null})).filter(c.identity).join(", "):s().text("No data");O((e=>D({},e,{rows:e.rows.map((e=>e.index===n?D({},e,{label:r}):e))})))}))}},graphData:I}),i().createElement(a.Z,{handleWidth:!0,onResize:k})),i().createElement("div",{ref:A,className:b.history},t.rows.map(((e,t)=>{const n=t===w,r=0===t;return i().createElement(y,{key:`row-${t}`,change:e,isCurrent:r,isSelected:n,onClick:()=>((e,t,n,r)=>{if(T){if(!window.confirm(s().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;v(h.N5.mode.actions.modeUpdated(d.ARY.Viewing))}if(r&&!n||!r&&n)v(h.N5.history.actions.clearHistoryEvent()),R(0);else if(!r&&!n){const n=g(e-1,t.uri||m),r=g(e,t.uri||m),i=null==n?void 0:n.timestamp,l=null==r?void 0:r.timestamp,a=(null==t?void 0:t.uri)===m?null:null==t?void 0:t.uri;v(h.N5.history.actions.setHistoryEvent({aStamp:i,bStamp:l,overrideUri:a})),R(e)}})(t,e,n,r)})}))),o&&i().createElement("div",{className:b.buttonContainer},i().createElement(f.Z,{color:"primary",onClick:()=>u()},s().text("Show more"))))},R=(0,g.Z)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),M=(0,g.Z)({icon:e=>{let{color:t}=e;return{boxSizing:"border-box",borderWidth:2,borderStyle:"solid",borderColor:t,height:12,width:12,borderRadius:30,transition:"opacity 0.3s",margin:4}},active:e=>{let{color:t}=e;return{backgroundColor:t}},inactive:{backgroundColor:"white"},clickable:{cursor:"pointer"}}),A=e=>{let{value:t,isSelected:n=!0,onClick:r}=e;const l=(0,d.GtP)(t),a=M({color:l});return i().createElement("div",{className:p()(a.icon,{[a.inactive]:!n,[a.active]:n,[a.clickable]:!!r}),onClick:r})},k=e=>{let{values:t,selectedValues:n,entityUri:r,onSelectValues:l,className:a}=e;const o=R();return i().createElement("div",{className:p()(o.root,a)},i().createElement(A,{value:r}),(null==t?void 0:t.length)>0&&t.map((e=>i().createElement(A,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?l((0,c.without)([e],n)):l([...n||[],e])})(e)}))))};function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Z=(e,t)=>e.reduce(((e,n,r)=>{let{start:i,end:l}=n;if(i){const n=t-i.timestamp;((0,c.isNil)(e.startDistance)||Math.abs(e.startDistance)>Math.abs(n)&&n>0)&&(e.startIndex=r,e.startDistance=n)}if(l){const n=t-l.timestamp;((0,c.isNil)(e.endDistance)||Math.abs(e.endDistance)>Math.abs(n)&&n<0)&&(e.endIndex=r,e.endDistance=n)}return e}),{startIndex:null,endIndex:null,startDistance:null,endDistance:null}),j=(0,g.Z)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),H=(0,r.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:l,entityUri:a,canLoadMore:o,onLoadMore:s,historyEvent:u}=e;const p=j(),[d,h]=(0,r.useState)(null);(0,r.useEffect)((()=>{h(l)}),[l]);const{historyData:f,findPreviousChange:m}=(e=>{let{entityUri:t,historyChanges:n,selectedUris:i}=e;return(0,r.useMemo)((()=>{const e={[t]:{index:0,lifeTime:[]}},r=[{user:"",timestamp:0,uri:t}],l=(0,c.curry)(((e,n,r)=>{const i=r.uri||t;if(e)if(Array.isArray(e)){if(r.type!==v.b.ENTITY_LOST_MERGE)return null;if(e.includes(i))return r;if(n&&r.uris)return e.some((e=>r.uris.includes(e)))?r:null}else{var l;if(i===e||n&&null!==(l=r.uris)&&void 0!==l&&l.includes(e))return r}return null})),a=(e,t,r)=>(0,c.pipe)((0,c.drop)(e+1),(0,c.find)(l(t,r)))(n),o=t=>(e[t]||i&&!i.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),s=(e,t)=>{const n=e[e.length-1];!n||n.start&&(n.start.type!==v.b.ENTITY_CREATED||t.type!==v.b.ENTITIES_SPLITTED)?e.push({start:t,end:null}):n.start=t},u=(e,t)=>{let n=!0;if(e.length){const r=e[e.length-1];n=!((!r.start||r.start.timestamp<t.timestamp)&&(!r.end||r.end.timestamp>t.timestamp))}n&&e.push({start:null,end:null})},p=(e,t)=>{if(e.length){const n=e[e.length-1];n.start||(n.start=t)}e.push({start:null,end:t})},d=[];return null==n||n.forEach(((n,i)=>{var l;switch(n.type){case v.b.ENTITIES_SPLITTED:if(!a(i,n.uri||t,!1))return;{const e=n.uri,t=n.uris?[n.uris,e]:[e],r=a(i,t,!0);if(r&&(!e||e===r.uri))return}break;case v.b.ENTITY_LOST_MERGE:case v.b.RELATIONSHIP_CREATED:case v.b.RELATIONSHIP_REMOVED:case v.b.RELATIONSHIP_CHANGED:return}let c=!1;null===(l=n.uris)||void 0===l||l.forEach((e=>{o(e)||(c=!0)}));const h=o(n.uri||t);if(!h)return;const f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){L(e,t,n[t])}))}return e}({},n);((t,n)=>{var i,l;switch(n.type){case v.b.ENTITY_CREATED:s(t,n);break;case v.b.ENTITIES_MERGED_ON_THE_FLY:case v.b.ENTITY_CHANGED:u(t,n);break;case v.b.ENTITY_LOST_MERGE:case v.b.ENTITY_REMOVED:p(t,n);break;case v.b.ENTITIES_SPLITTED:u(t,n),null===(i=n.uris)||void 0===i||i.forEach((t=>{const i=e[t];if(!i)return;const l=i.lifeTime.length;l?s(i.lifeTime,n):p(i.lifeTime,n),r.push({uri:t,user:n.user,type:n.type,fakeType:l?v.b.FAKE_UPDATE:v.b.FAKE_NAVIGATE_PROFILE,timestamp:n.timestamp})}));break;case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:u(t,n),null===(l=n.uris)||void 0===l||l.forEach((t=>{const r=e[t];r&&p(r.lifeTime,n)}))}})(h.lifeTime,f),c&&d.push(f),r.push(f)})),d.forEach((t=>{t.uris.forEach((i=>{e[i]||n.forEach((n=>{let{uri:l,uris:a,timestamp:o,user:s,type:u}=n;l===i&&(null==a||a.forEach((n=>{const i=e[n];if(!i)return;let l=null;switch(u){case v.b.ENTITIES_MERGED:case v.b.ENTITIES_MERGED_MANUALLY:l=v.b.FAKE_FILTERED_INCOMING;break;case v.b.ENTITIES_SPLITTED:l=v.b.FAKE_FILTERED_OUTGOING;break;default:return}const a={fakeType:l,uri:t.uri,uris:[n],type:u,user:s,timestamp:o},p=Z(i.lifeTime,t.timestamp);l===v.b.FAKE_FILTERED_INCOMING?(0,c.isNil)(p.endIndex)||(i.lifeTime[p.endIndex].end=a):(0,c.isNil)(p.startIndex)||(i.lifeTime[p.startIndex].start=a),r.splice(r.indexOf(t),0,a)})))}))}))})),r.forEach(((e,n)=>{e.index=n,e.uri=e.uri||t})),{historyData:{historyLanes:e,rows:r},findPreviousChange:(e,t)=>(0,c.pipe)((0,c.slice)(e+1,1/0),(0,c.find)(l(t,!1)))(r)}}),[t,n,i])})({entityUri:a,historyChanges:null==n?void 0:n.changes,selectedUris:d});return i().createElement("div",{className:p.root},i().createElement(k,{values:l,selectedValues:d,onSelectValues:h,entityUri:a,className:p.borderBottom}),i().createElement(w,{historyData:f,isLoading:t,onLoadMore:s,canLoadMore:o,entityUri:a,historyEvent:u,findPreviousChange:m}))}))},75647:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(24328),i=n.n(r),l=n(52730),a=n(89810),o=n(77277),s=n(90436),c=n(17440),u=n(87918),p=n.n(u);const d=(0,n(79692).Z)({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),h=()=>{const e=d(),t=(0,l.useSelector)(a.ZP.selectors.getHistoryEvent),n=(0,l.useDispatch)(),r=(0,c.pipe)(a.N5.history.actions.clearHistoryEvent,n);return t?i().createElement("div",{className:e.root},i().createElement(s.Z,{component:"div"},p().text("You are viewing a historic slice:")," ",i().createElement("span",{className:e.slice},p().date(t.aStamp,"llll"))),i().createElement(o.Z,{className:e.cancelButton,variant:"contained",color:"primary",onClick:r},p().text("Cancel"))):null}},85457:(e,t,n)=>{n.d(t,{k:()=>p});var r=n(24328),i=n(18435),l=n(38323),a=n(37696),o=n(29627);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={activities:[l.M.MERGE,l.M.UNMERGE,l.M.UPDATE]},p=e=>{let{entity:t,enabled:n}=e;const[l,c]=(0,r.useState)(u),[p,d]=(0,r.useState)(0),h=(0,r.useMemo)((()=>(0,a.Z)(l)),[l]),[f,m]=(0,r.useState)(null),[E,g]=(0,r.useState)(null),[b,y]=(0,r.useState)(!1),v=(0,o._)(),T=null==t?void 0:t.uri,x={max:32,order:"desc"},I=(0,i.O27)(null==l?void 0:l.attributes)||void 0;(0,r.useEffect)((()=>{T&&n&&(y(!0),v((0,i.kgP)(s({entityUri:T,historicUris:f,filter:h,showAll:I},x))).then(g).catch((e=>{console.warn("Failed to load history data",e),g(null)})).finally((()=>{y(!1)})))}),[h,I,f]),(0,r.useEffect)((()=>{T&&n&&(y(!0),v((0,i.wdF)({entityUri:T})).then((e=>{m(e)})).catch((e=>{console.warn("Failed to load history data",e),m(null)})).finally((()=>{y(!1)})),d(0))}),[T,null==t?void 0:t.updatedTime,n]);const O=(0,r.useCallback)((e=>{T&&f&&n&&(y(!0),v((0,i.kgP)(s({entityUri:T,historicUris:f,filter:h,showAll:I,offset:e},x))).then((e=>{g((t=>s({},t,{changes:[...null==t?void 0:t.changes,...e.changes]})))})).catch((e=>{console.warn("Failed to load history data",e)})).finally((()=>{y(!1)})))}),[f,h,n]),S=(0,r.useMemo)((()=>32*(p+1)<(null==E?void 0:E.total)),[E,p]),N=(0,r.useCallback)((e=>{d(0),c(e)}),[]),P=(0,r.useCallback)((()=>{N(s({},u))}),[]),C=(0,r.useCallback)((()=>{S&&(O(32*(p+1)),d(p+1))}),[O,p,S]);return{isLoading:b,canLoadMore:S,onLoadMore:C,onApplyFilter:N,onClearFilter:P,historicUris:f,historyWithTotal:E,historyFilter:l}}},69409:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(24328),i=n(18435);const l=e=>{let{isHistoryTabActive:t,entity:n}=e;const[l,a]=(0,r.useState)(!1),o=null==n?void 0:n.uri;(0,r.useEffect)((()=>{t||a(!1)}),[o]),(0,r.useEffect)((()=>{t&&a(!0)}),[t]);const s=o&&!(0,i.ZiX)(o)&&!(0,i.biM)(n);return{isHistoryEnabled:l&&s,isProfilePersisted:s}}},35722:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(24328),i=n(52730),l=n(89810),a=n(18435),o=n(29627);const s=e=>{let{entity:t,historyEvent:n}=e;const[s,c]=(0,r.useState)(!1),u=(0,i.useSelector)(l.ZP.selectors.getHistorySlice),p=(0,i.useDispatch)(),d=(0,o._)(),{aStamp:h,bStamp:f,overrideUri:m}=n||{},E=m||(null==t?void 0:t.uri);return(0,r.useEffect)((()=>{n&&E&&(c(!0),d(Promise.all([(0,a.lrH)(E,h),f&&1!==f?(0,a.lrH)(E,f):Promise.resolve(null)])).then((e=>{let[t,n]=e;p(l.N5.history.actions.setHistorySlice({aEntity:t,bEntity:n}))})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{c(!1)})))}),[h,f,E]),{isLoading:s,historySlice:u}}},21256:(e,t,n)=>{n.d(t,{b:()=>a});var r,i=n(20414);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.FAKE_NAVIGATE_PROFILE="FAKE_NAVIGATE_PROFILE",e.FAKE_FILTERED_INCOMING="FAKE_FILTERED_INCOMING",e.FAKE_FILTERED_OUTGOING="FAKE_FILTERED_OUTGOING",e.FAKE_UPDATE="FAKE_UPDATE"}(r||(r={}));const a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}({},i.I,r)},38323:(e,t,n)=>{let r;n.d(t,{M:()=>r}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(r||(r={}))},37696:(e,t,n)=>{n.d(t,{Z:()=>f,R:()=>m});var r=n(95038),i=n.n(r),l=n(17440),a=n(18435),o=n(38323),s=n(20414),c=n(39034);const u=e=>(0,l.pipe)((0,l.map)(e),(0,l.join)(" or ")),p=e=>{const[t,n]=e;return i()().subtract(t,n).valueOf()},d=(0,l.chain)((0,l.cond)([[(0,l.equals)(o.M.MERGE),()=>[s.I.ENTITIES_MERGED,s.I.ENTITIES_MERGED_MANUALLY,s.I.ENTITIES_MERGED_ON_THE_FLY]],[(0,l.equals)(o.M.UNMERGE),()=>[s.I.ENTITIES_SPLITTED]],[(0,l.equals)(o.M.UPDATE),()=>[s.I.ENTITY_CHANGED]]])),h=(0,l.pipe)((0,l.defaultTo)([]),d,(0,l.concat)([s.I.ENTITY_CREATED,s.I.ENTITY_REMOVED,s.I.ENTITY_LOST_MERGE]),u((e=>`equals(type, '${e}')`))),f=(0,l.pipe)((0,l.defaultTo)({}),(0,l.reject)(a.O27),(0,l.evolve)({users:u((e=>`equals(user, '${(0,a.HRH)(e)}')`)),attributes:u((e=>`changes(${(0,a.HRH)(e.value)})`)),dateRange:e=>{let{type:t,period:n}=e;switch(t){case c.K.WITHIN:return`gte(timestamp, ${p(n)})`;case c.K.AGO:return`lte(timestamp, ${p(n)})`;case c.K.BETWEEN:{const[e,t]=n;return`gte(timestamp, ${e.valueOf()}) and lte(timestamp, ${i()(t).endOf("date").valueOf()})`}default:return""}}}),(0,l.over)((0,l.lensProp)("activities"),h),l.values,(0,l.reject)(a.O27),(0,l.append)("not equals(user, 'collaboration-service')"),(0,l.map)((e=>`(${e})`)),(0,l.join)(" and ")),m=e=>{if(e.type===c.K.AGO||e.type===c.K.WITHIN){const[t,n]=e.period;return"Number"===(0,l.type)(t)&&"String"===(0,l.type)(n)&&t>0}if(e.type===c.K.BETWEEN){const[t,n]=e.period;return t instanceof Date&&n instanceof Date}}},11326:(e,t,n)=>{n.d(t,{a:()=>i});var r=n(24328);const i=e=>{const[t,n]=(0,r.useState)(!1),[i,l]=(0,r.useState)({});return(0,r.useEffect)((()=>{e().then((e=>{l(e||{})})).then((e=>n(!0))).catch((e=>n(!0)))}),[]),{isLoaded:t,savedState:i}}},39034:(e,t,n)=>{let r;n.d(t,{K:()=>r}),function(e){e.WITHIN="within",e.AGO="ago",e.BETWEEN="between"}(r||(r={}))}}]);
|
package/888.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 888.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[888],{49429:(t,e,s)=>{s.d(e,{Z:()=>p});var n=s(7560),i=s(54530),o=s(24328),r=(s(13980),s(6277)),a=s(15459),l=o.forwardRef((function(t,e){var s=t.disableSpacing,a=void 0!==s&&s,l=t.classes,p=t.className,h=(0,i.Z)(t,["disableSpacing","classes","className"]);return o.createElement("div",(0,n.Z)({className:(0,r.Z)(l.root,p,!a&&l.spacing),ref:e},h))}));const p=(0,a.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(l)},55999:(t,e,s)=>{s.d(e,{Z:()=>l});var n=s(7560),i=s(24328),o=(s(13980),s(15459)),r=s(90436),a=i.forwardRef((function(t,e){return i.createElement(r.Z,(0,n.Z)({component:"p",variant:"body1",color:"textSecondary",ref:e},t))}));const l=(0,o.Z)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(a)},79249:(t,e,s)=>{s.d(e,{Z:()=>h});var n=s(7560),i=s(54530),o=s(24328),r=(s(13980),s(6277)),a=s(15459),l=s(90436),p=o.forwardRef((function(t,e){var s=t.children,a=t.classes,p=t.className,h=t.disableTypography,c=void 0!==h&&h,u=(0,i.Z)(t,["children","classes","className","disableTypography"]);return o.createElement("div",(0,n.Z)({className:(0,r.Z)(a.root,p),ref:e},u),c?s:o.createElement(l.Z,{component:"h2",variant:"h6"},s))}));const h=(0,a.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(p)},6782:(t,e,s)=>{e.Z=function(t){if("string"!=typeof t)throw new Error((0,n.formatMuiErrorMessage)(7));return t.charAt(0).toUpperCase()+t.slice(1)};var n=s(65144)},61932:(t,e,s)=>{var n=s(14859);e.Z=void 0;var i=n(s(24328)),o=(0,n(s(50175)).default)(i.default.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"}),"CloudDownload");e.Z=o},27604:(t,e,s)=>{var n=s(14859);e.Z=void 0;var i=n(s(24328)),o=(0,n(s(50175)).default)(i.default.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");e.Z=o},38016:(t,e,s)=>{var n=s(14859);e.Z=void 0;var i=n(s(24328)),o=(0,n(s(50175)).default)(i.default.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");e.Z=o},17871:(t,e,s)=>{s.d(e,{j_:()=>R,b6:()=>u,vD:()=>Q,Jx:()=>j,XL:()=>G,mg:()=>ut,Ji:()=>S});var n=s(24328),i=s(75047),o=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==s.g?s.g:"undefined"!=typeof self&&self,function(t,e,s,n,i,o,r,a){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[s,n,i,o,r,a],h=0;(l=new Error(e.replace(/%s/g,(function(){return p[h++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}});const r=(0,n.createContext)(null);function a(t){google.maps.event.removeListener(t)}function l(t=[]){t.forEach(a)}function p({updaterMap:t,eventMap:e,prevProps:s,nextProps:n,instance:i}){const o=function(t,e,s){const n=(i=s,o=function(s,n,i){return"function"==typeof t[i]&&s.push(google.maps.event.addListener(e,n,t[i])),s},r=[],Object.keys(i).reduce((function(t,e){return o(t,i[e],e)}),r));var i,o,r;return n}(n,i,e);return((t,e,s,n)=>{const i={};var o,r;o=t,r=(t,o)=>{const r=s[o];r!==e[o]&&(i[o]=r,t(n,r))},Object.keys(o).forEach((function(t){return r(o[t],t)}))})(t,s,n,i),o}const h={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},c={extraMapTypes(t,e){e.forEach((function(e,s){t.mapTypes.set(String(s),e)}))},center(t,e){t.setCenter(e)},clickableIcons(t,e){t.setClickableIcons(e)},heading(t,e){t.setHeading(e)},mapTypeId(t,e){t.setMapTypeId(e)},options(t,e){t.setOptions(e)},streetView(t,e){t.setStreetView(e)},tilt(t,e){t.setTilt(e)},zoom(t,e){t.setZoom(e)}};class u extends n.PureComponent{constructor(){super(...arguments),this.state={map:null},this.registeredEvents=[],this.mapRef=null,this.getInstance=()=>null===this.mapRef?null:new google.maps.Map(this.mapRef,this.props.options),this.panTo=t=>{const e=this.getInstance();e&&e.panTo(t)},this.setMapCallback=()=>{null!==this.state.map&&this.props.onLoad&&this.props.onLoad(this.state.map)},this.getRef=t=>{this.mapRef=t}}componentDidMount(){const t=this.getInstance();this.registeredEvents=p({updaterMap:c,eventMap:h,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{map:t}}),this.setMapCallback)}componentDidUpdate(t){null!==this.state.map&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:c,eventMap:h,prevProps:t,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),l(this.registeredEvents))}render(){return n.createElement("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},n.createElement(r.Provider,{value:this.state.map},null!==this.state.map?this.props.children:n.createElement(n.Fragment,null)))}}function d(t,e){var s={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(s[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(s[n[i]]=t[n[i]])}return s}const g="undefined"!=typeof document,m=({url:t,id:e,nonce:s})=>g?new Promise((function(n,i){const o=document.getElementById(e),r=window;if(o){const s=o.getAttribute("data-state");if(o.src===t&&"error"!==s){if("ready"===s)return n(e);{const t=r.initMap,s=o.onerror;return r.initMap=function(){t&&t(),n(e)},void(o.onerror=function(t){s&&s(t),i(t)})}}o.remove()}const a=document.createElement("script");a.type="text/javascript",a.src=t,a.id=e,a.async=!0,a.nonce=s,a.onerror=function(t){a.setAttribute("data-state","error"),i(t)},r.initMap=function(){a.setAttribute("data-state","ready"),n(e)},document.head.appendChild(a)})).catch((t=>{throw console.error("injectScript error: ",t),t})):Promise.reject(new Error("document is undefined")),f=t=>!((!t.href||0!==t.href.indexOf("https://fonts.googleapis.com/css?family=Roboto"))&&("style"===t.tagName.toLowerCase()&&t.styleSheet&&t.styleSheet.cssText&&0===t.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(t.styleSheet.cssText="",0):"style"===t.tagName.toLowerCase()&&t.innerHTML&&0===t.innerHTML.replace("\r\n","").indexOf(".gm-style")?(t.innerHTML="",0):"style"!==t.tagName.toLowerCase()||t.styleSheet||t.innerHTML)),v=()=>{const t=document.getElementsByTagName("head")[0],e=t.insertBefore.bind(t);t.insertBefore=function(s,n){f(s)||Reflect.apply(e,t,[s,n])};const s=t.appendChild.bind(t);t.appendChild=function(e){f(e)||Reflect.apply(s,t,[e])}};function y({googleMapsApiKey:t,googleMapsClientId:e,version:s="weekly",language:n,region:i,libraries:r,channel:a,mapIds:l}){const p=[];return o(t&&e||!(t&&e),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?p.push(`key=${t}`):e&&p.push(`client=${e}`),s&&p.push(`v=${s}`),n&&p.push(`language=${n}`),i&&p.push(`region=${i}`),r&&r.length&&p.push(`libraries=${r.sort().join(",")}`),a&&p.push(`channel=${a}`),l&&l.length&&p.push(`map_ids=${l.join(",")}`),p.push("callback=initMap"),`https://maps.googleapis.com/maps/api/js?${p.join("&")}`}let x=!1;function C(){return n.createElement("div",null,"Loading...")}const b={id:"script-loader",version:"weekly"};class M extends n.PureComponent{constructor(){super(...arguments),this.check=n.createRef(),this.state={loaded:!1},this.cleanupCallback=()=>{delete window.google.maps,this.injectScript()},this.isCleaningUp=()=>{return t=this,e=void 0,n=function*(){return new Promise((function(t){if(x){if(g){const e=window.setInterval((function(){x||(window.clearInterval(e),t())}),1)}}else t()}))},new((s=void 0)||(s=Promise))((function(i,o){function r(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(r,a)}l((n=n.apply(t,e||[])).next())}));var t,e,s,n},this.cleanup=()=>{x=!0;const t=document.getElementById(this.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(t){return"string"==typeof t.src&&t.src.includes("maps.googleapis")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(t){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===t.href})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(t){return void 0!==t.innerText&&t.innerText.length>0&&t.innerText.includes(".gm-")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))},this.injectScript=()=>{this.props.preventGoogleFontsLoading&&v(),o(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id);const t={id:this.props.id,nonce:this.props.nonce,url:y(this.props)};m(t).then((()=>{this.props.onLoad&&this.props.onLoad(),this.setState((function(){return{loaded:!0}}))})).catch((t=>{this.props.onError&&this.props.onError(t),console.error(`\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${this.props.googleMapsApiKey||"-"}) or Client ID (${this.props.googleMapsClientId||"-"}) to <LoadScript />\n Otherwise it is a Network issue.\n `)}))}}componentDidMount(){if(g){if(window.google&&window.google.maps&&!x)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(t){console.error("Error at injecting script after cleaning up: ",t)}))}}componentDidUpdate(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),g&&t.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))}componentWillUnmount(){if(g){this.cleanup();const t=()=>{this.check.current||(delete window.google,x=!1)};window.setTimeout(t,1),this.props.onUnmount&&this.props.onUnmount()}}render(){return n.createElement(n.Fragment,null,n.createElement("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||n.createElement(C,null))}}let w;M.defaultProps=b;const L=n.createElement(C,null);n.memo((function(t){var{loadingElement:e,onLoad:s,onError:i,onUnmount:r,children:a}=t,l=d(t,["loadingElement","onLoad","onError","onUnmount","children"]);const{isLoaded:p,loadError:h}=function({id:t=b.id,version:e=b.version,nonce:s,googleMapsApiKey:i,googleMapsClientId:r,language:a,region:l,libraries:p,preventGoogleFontsLoading:h,channel:c,mapIds:u}){const d=n.useRef(!1),[f,x]=n.useState(!1),[C,M]=n.useState(void 0);n.useEffect((function(){return d.current=!0,()=>{d.current=!1}}),[]),n.useEffect((function(){g&&h&&v()}),[h]),n.useEffect((function(){f&&o(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[f]);const L=y({version:e,googleMapsApiKey:i,googleMapsClientId:r,language:a,region:l,libraries:p,channel:c,mapIds:u});n.useEffect((function(){function e(){d.current&&(x(!0),w=L)}g&&(window.google&&window.google.maps&&w===L?e():m({id:t,url:L,nonce:s}).then(e).catch((function(t){d.current&&M(t),console.warn(`\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${i||"-"}) or Client ID (${r||"-"})\n Otherwise it is a Network issue.\n `),console.error(t)})))}),[t,L,s]);const k=n.useRef();return n.useEffect((function(){k.current&&p!==k.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),k.current=p}),[p]),{isLoaded:f,loadError:C,url:L}}(l);return n.useEffect((function(){p&&"function"==typeof s&&s()}),[p,s]),n.useEffect((function(){h&&"function"==typeof i&&i(h)}),[h,i]),n.useEffect((function(){return()=>{r&&r()}}),[r]),p?a:e||L}));var k=function t(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var n,i,o;if(Array.isArray(e)){if((n=e.length)!=s.length)return!1;for(i=n;0!=i--;)if(!t(e[i],s[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(s,o[i]))return!1;for(i=n;0!=i--;){var r=o[i];if(!t(e[r],s[r]))return!1}return!0}return e!=e&&s!=s};const P="__googleMapsScriptId";class E{constructor({apiKey:t,channel:e,client:s,id:n=P,libraries:i=[],language:o,region:r,version:a,mapIds:l,nonce:p,retries:h=3,url:c="https://maps.googleapis.com/maps/api/js"}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=a,this.apiKey=t,this.channel=e,this.client=s,this.id=n||P,this.libraries=i,this.language=o,this.region=r,this.mapIds=l,this.nonce=p,this.retries=h,this.url=c,E.instance){if(!k(this.options,E.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(E.instance.options)}`);return E.instance}E.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((s=>{s?e(s.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function S({id:t=b.id,version:e=b.version,nonce:s,googleMapsApiKey:i,language:o,region:r,libraries:a,preventGoogleFontsLoading:l,mapIds:p}){const h=n.useRef(!1),[c,u]=n.useState(!1),[d,m]=n.useState(void 0);n.useEffect((function(){return h.current=!0,()=>{h.current=!1}}),[]);const f=n.useMemo((function(){return new E({id:t,apiKey:i,version:e,libraries:a,language:o,region:r,mapIds:p,nonce:s})}),[t,i,e,a,o,r,p,s]);n.useEffect((function(){c||f.load().then((function(){h.current&&u(!0)})).catch((function(t){m(t)}))}),[]),n.useEffect((function(){g&&l&&v()}),[l]);const y=n.useRef();return n.useEffect((function(){y.current&&a!==y.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),y.current=a}),[a]),{isLoaded:c,loadError:d}}const _={},O={options(t,e){t.setOptions(e)}};class I extends n.PureComponent{constructor(){super(...arguments),this.state={trafficLayer:null},this.setTrafficLayerCallback=()=>{null!==this.state.trafficLayer&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)},this.registeredEvents=[]}componentDidMount(){const t=new google.maps.TrafficLayer(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:O,eventMap:_,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{trafficLayer:t}}),this.setTrafficLayerCallback)}componentDidUpdate(t){null!==this.state.trafficLayer&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:O,eventMap:_,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),l(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}}I.contextType=r;class D extends n.PureComponent{constructor(){super(...arguments),this.state={bicyclingLayer:null},this.setBicyclingLayerCallback=()=>{null!==this.state.bicyclingLayer&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))}}componentDidMount(){const t=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:t}}),this.setBicyclingLayerCallback)}componentWillUnmount(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}}D.contextType=r;class T extends n.PureComponent{constructor(){super(...arguments),this.state={transitLayer:null},this.setTransitLayerCallback=()=>{null!==this.state.transitLayer&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))}}componentDidMount(){const t=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:t}}),this.setTransitLayerCallback)}componentWillUnmount(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}}T.contextType=r;const B={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},U={drawingMode(t,e){t.setDrawingMode(e)},options(t,e){t.setOptions(e)}};class R extends n.PureComponent{constructor(t){super(t),this.registeredEvents=[],this.state={drawingManager:null},this.setDrawingManagerCallback=()=>{null!==this.state.drawingManager&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)},o(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){const t=new google.maps.drawing.DrawingManager(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:U,eventMap:B,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{drawingManager:t}}),this.setDrawingManagerCallback)}componentDidUpdate(t){null!==this.state.drawingManager&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:U,eventMap:B,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),l(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return n.createElement(n.Fragment,null)}}R.contextType=r;const z={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},A={animation(t,e){t.setAnimation(e)},clickable(t,e){t.setClickable(e)},cursor(t,e){t.setCursor(e)},draggable(t,e){t.setDraggable(e)},icon(t,e){t.setIcon(e)},label(t,e){t.setLabel(e)},map(t,e){t.setMap(e)},opacity(t,e){t.setOpacity(e)},options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},shape(t,e){t.setShape(e)},title(t,e){t.setTitle(e)},visible(t,e){t.setVisible(e)},zIndex(t,e){t.setZIndex(e)}};class j extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[]}componentDidMount(){const t=Object.assign(Object.assign(Object.assign({},this.props.options||{}),this.props.clusterer?{}:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(t),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=p({updaterMap:A,eventMap:z,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)}componentDidUpdate(t){this.marker&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:A,eventMap:z,prevProps:t,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),l(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){let t=null;return this.props.children&&(t=n.Children.map(this.props.children,(t=>{if(!n.isValidElement(t))return t;let e=t;return n.cloneElement(e,{anchor:this.marker})}))),t||null}}j.contextType=r;var Z=function(){function t(e,s){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=s,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.setMap(e.getMap())}return t.prototype.onAdd=function(){var t,e,s=this;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div),this.boundsChangedListener=google.maps.event.addListener(this.getMap(),"boundschanged",(function(){e=t})),google.maps.event.addDomListener(this.div,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div,"click",(function(n){if(t=!1,!e){var i=s.cluster.getClusterer();if(google.maps.event.trigger(i,"click",s.cluster),google.maps.event.trigger(i,"clusterclick",s.cluster),i.getZoomOnClick()){var o=i.getMaxZoom(),r=s.cluster.getBounds();i.getMap().fitBounds(r),setTimeout((function(){i.getMap().fitBounds(r),null!==o&&i.getMap().getZoom()>o&&i.getMap().setZoom(o+1)}),100)}n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation()}})),google.maps.event.addDomListener(this.div,"mouseover",(function(){google.maps.event.trigger(s.cluster.getClusterer(),"mouseover",s.cluster)})),google.maps.event.addDomListener(this.div,"mouseout",(function(){google.maps.event.trigger(s.cluster.getClusterer(),"mouseout",s.cluster)}))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),google.maps.event.clearInstanceListeners(this.div),this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var t=this.getPosFromLatLng(this.center),e=t.x,s=t.y;this.div.style.top=s+"px",this.div.style.left=e+"px"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){if(this.div&&this.center){var t,e="",s=this.backgroundPosition.split(" "),n=parseInt(s[0].replace(/^\s+|\s+$/g,""),10),i=parseInt(s[1].replace(/^\s+|\s+$/g,""),10),o=this.getPosFromLatLng(this.center);t=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,this.div.style.cssText=this.createCss(o),e="<img alt='"+t+"' src='"+this.url+"' style='position: absolute; top: "+i+"px; left: "+n+"px; ",this.cluster.getClusterer().enableRetinaIcons||(e+="clip: rect("+-1*i+"px, "+(-1*n+this.width)+"px, "+(-1*i+this.height)+"px, "+-1*n+"px);"),e+="'>",this.div.innerHTML=e+"<div style='position: absolute;top: "+this.anchorText[0]+"px;left: "+this.anchorText[1]+"px;color: "+this.textColor+";font-size: "+this.textSize+"px;font-family: "+this.fontFamily+";font-weight: "+this.fontWeight+";font-style: "+this.fontStyle+";text-decoration: "+this.textDecoration+";text-align: center;width: "+this.width+"px;line-height:"+this.height+"px;'>"+this.sums.text+"</div>",this.div.title=t,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(t){this.sums=t;var e=this.cluster.getClusterer().getStyles(),s=e[Math.min(e.length-1,Math.max(0,t.index-1))];this.url=s.url,this.height=s.height,this.width=s.width,s.className&&(this.className=this.clusterClassName+" "+s.className),this.anchorText=s.anchorText||[0,0],this.anchorIcon=s.anchorIcon||[this.height/2,this.width/2],this.textColor=s.textColor||"black",this.textSize=s.textSize||11,this.textDecoration=s.textDecoration||"none",this.fontWeight=s.fontWeight||"bold",this.fontStyle=s.fontStyle||"normal",this.fontFamily=s.fontFamily||"Arial,sans-serif",this.backgroundPosition=s.backgroundPosition||"0 0"},t.prototype.setCenter=function(t){this.center=t},t.prototype.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width+"px; height: "+this.height+"px;"),e.join("")},t.prototype.getPosFromLatLng=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon[1],e.y-=this.anchorIcon[0],e},t}(),W=function(){function t(t){this.markerClusterer=t,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new Z(this,this.markerClusterer.getStyles())}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),e=this.getMarkers(),s=0;s<e.length;s++){var n=e[s].getPosition();n&&t.extend(n)}return t},t.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;var e;if(this.center){if(this.averageCenter&&(e=t.getPosition())){var s=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(s-1)+e.lat())/s,(this.center.lng()*(s-1)+e.lng())/s),this.calculateBounds()}}else(e=t.getPosition())&&(this.center=e,this.calculateBounds());t.isAdded=!0,this.markers.push(t);var n=this.markers.length,i=this.markerClusterer.getMaxZoom(),o=this.map.getZoom();if(null!==i&&void 0!==o&&o>i)t.getMap()!==this.map&&t.setMap(this.map);else if(n<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(n===this.minClusterSize)for(var r=0;r<n;r++)this.markers[r].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){if(null!==this.bounds){var e=t.getPosition();if(e)return this.bounds.contains(e)}return!1},t.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.prototype.updateIcon=function(){var t=this.markers.length,e=this.markerClusterer.getMaxZoom(),s=this.map.getZoom();null!==e&&void 0!==s&&s>e||t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},t.prototype.isMarkerAlreadyAdded=function(t){if(this.markers.includes)return this.markers.includes(t);for(var e=0;e<this.markers.length;e++)if(t===this.markers[e])return!0;return!1},t}(),V=function(t,e){var s=t.length,n=s.toString().length,i=Math.min(n,e);return{text:s.toString(),index:i,title:""}},N=[53,56,66,78,90],H=function(){function t(e,s,n){void 0===s&&(s=[]),void 0===n&&(n={}),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=n.gridSize||60,this.minClusterSize=n.minimumClusterSize||2,this.maxZoom=n.maxZoom||null,this.styles=n.styles||[],this.title=n.title||"",this.zoomOnClick=!0,void 0!==n.zoomOnClick&&(this.zoomOnClick=n.zoomOnClick),this.averageCenter=!1,void 0!==n.averageCenter&&(this.averageCenter=n.averageCenter),this.ignoreHidden=!1,void 0!==n.ignoreHidden&&(this.ignoreHidden=n.ignoreHidden),this.enableRetinaIcons=!1,void 0!==n.enableRetinaIcons&&(this.enableRetinaIcons=n.enableRetinaIcons),this.imagePath=n.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=n.imageExtension||"png",this.imageSizes=n.imageSizes||N,this.calculator=n.calculator||V,this.batchSize=n.batchSize||2e3,this.batchSizeIE=n.batchSizeIE||500,this.clusterClass=n.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(s,!0),this.setMap(e)}return t.prototype.onAdd=function(){var t=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){t.resetViewport(!1),t.getMap().getZoom()!==(t.get("minZoom")||0)&&t.getMap().getZoom()!==t.get("maxZoom")||google.maps.event.trigger(t,"idle")})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw()}))]},t.prototype.onRemove=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].getMap()!==this.activeMap&&this.markers[t].setMap(this.activeMap);for(t=0;t<this.clusters.length;t++)this.clusters[t].remove();for(this.clusters=[],t=0;t<this.listeners.length;t++)google.maps.event.removeListener(this.listeners[t]);this.listeners=[],this.activeMap=null,this.ready=!1},t.prototype.draw=function(){},t.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:this.imagePath+(t+1)+"."+this.imageExtension,height:this.imageSizes[t],width:this.imageSizes[t]})},t.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),e=new google.maps.LatLngBounds,s=0;s<t.length;s++){var n=t[s].getPosition();n&&e.extend(n)}this.getMap().fitBounds(e)},t.prototype.getGridSize=function(){return this.gridSize},t.prototype.setGridSize=function(t){this.gridSize=t},t.prototype.getMinimumClusterSize=function(){return this.minClusterSize},t.prototype.setMinimumClusterSize=function(t){this.minClusterSize=t},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.setMaxZoom=function(t){this.maxZoom=t},t.prototype.getStyles=function(){return this.styles},t.prototype.setStyles=function(t){this.styles=t},t.prototype.getTitle=function(){return this.title},t.prototype.setTitle=function(t){this.title=t},t.prototype.getZoomOnClick=function(){return this.zoomOnClick},t.prototype.setZoomOnClick=function(t){this.zoomOnClick=t},t.prototype.getAverageCenter=function(){return this.averageCenter},t.prototype.setAverageCenter=function(t){this.averageCenter=t},t.prototype.getIgnoreHidden=function(){return this.ignoreHidden},t.prototype.setIgnoreHidden=function(t){this.ignoreHidden=t},t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},t.prototype.getImageExtension=function(){return this.imageExtension},t.prototype.setImageExtension=function(t){this.imageExtension=t},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setImagePath=function(t){this.imagePath=t},t.prototype.getImageSizes=function(){return this.imageSizes},t.prototype.setImageSizes=function(t){this.imageSizes=t},t.prototype.getCalculator=function(){return this.calculator},t.prototype.setCalculator=function(t){this.calculator=t},t.prototype.getBatchSizeIE=function(){return this.batchSizeIE},t.prototype.setBatchSizeIE=function(t){this.batchSizeIE=t},t.prototype.getClusterClass=function(){return this.clusterClass},t.prototype.setClusterClass=function(t){this.clusterClass=t},t.prototype.getMarkers=function(){return this.markers},t.prototype.getTotalMarkers=function(){return this.markers.length},t.prototype.getClusters=function(){return this.clusters},t.prototype.getTotalClusters=function(){return this.clusters.length},t.prototype.addMarker=function(t,e){this.pushMarkerTo(t),e||this.redraw()},t.prototype.addMarkers=function(t,e){for(var s in t)t.hasOwnProperty(s)&&this.pushMarkerTo(t[s]);e||this.redraw()},t.prototype.pushMarkerTo=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers.push(t)},t.prototype.removeMarker_=function(t){var e=-1;if(this.markers.indexOf)e=this.markers.indexOf(t);else for(var s=0;s<this.markers.length;s++)if(t===this.markers[s]){e=s;break}return-1!==e&&(t.setMap(null),this.markers.splice(e,1),!0)},t.prototype.removeMarker=function(t,e){var s=this.removeMarker_(t);return!e&&s&&this.repaint(),s},t.prototype.removeMarkers=function(t,e){for(var s=!1,n=0;n<t.length;n++)s=s||this.removeMarker_(t[n]);return!e&&s&&this.repaint(),s},t.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},t.prototype.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},t.prototype.getExtendedBounds=function(t){var e=this.getProjection(),s=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));s.x+=this.gridSize,s.y-=this.gridSize;var n=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));return n.x-=this.gridSize,n.y+=this.gridSize,t.extend(e.fromDivPixelToLatLng(s)),t.extend(e.fromDivPixelToLatLng(n)),t},t.prototype.redraw=function(){this.createClusters(0)},t.prototype.resetViewport=function(t){for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();for(this.clusters=[],e=0;e<this.markers.length;e++){var s=this.markers[e];s.isAdded=!1,t&&s.setMap(null)}},t.prototype.distanceBetweenPoints=function(t,e){var s=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,i=Math.sin(s/2)*Math.sin(s/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371},t.prototype.isMarkerInBounds=function(t,e){var s=t.getPosition();return!!s&&e.contains(s)},t.prototype.addToClosestCluster=function(t){for(var e,s=4e4,n=null,i=0;i<this.clusters.length;i++){var o=(e=this.clusters[i]).getCenter(),r=t.getPosition();if(o&&r){var a=this.distanceBetweenPoints(o,r);a<s&&(s=a,n=e)}}n&&n.isMarkerInClusterBounds(t)?n.addMarker(t):((e=new W(this)).addMarker(t),this.clusters.push(e))},t.prototype.createClusters=function(t){var e=this;if(this.ready){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var s=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),n=this.getExtendedBounds(s),i=Math.min(t+this.batchSize,this.markers.length),o=t;o<i;o++){var r=this.markers[o];!r.isAdded&&this.isMarkerInBounds(r,n)&&(!this.ignoreHidden||this.ignoreHidden&&r.getVisible())&&this.addToClosestCluster(r)}if(i<this.markers.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters(i)}),0);else for(this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this),o=0;o<this.clusters.length;o++)this.clusters[o].updateIcon()}},t.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},t}();const F={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},$={averageCenter(t,e){t.setAverageCenter(e)},batchSizeIE(t,e){t.setBatchSizeIE(e)},calculator(t,e){t.setCalculator(e)},clusterClass(t,e){t.setClusterClass(e)},enableRetinaIcons(t,e){t.setEnableRetinaIcons(e)},gridSize(t,e){t.setGridSize(e)},ignoreHidden(t,e){t.setIgnoreHidden(e)},imageExtension(t,e){t.setImageExtension(e)},imagePath(t,e){t.setImagePath(e)},imageSizes(t,e){t.setImageSizes(e)},maxZoom(t,e){t.setMaxZoom(e)},minimumClusterSize(t,e){t.setMinimumClusterSize(e)},styles(t,e){t.setStyles(e)},title(t,e){t.setTitle(e)},zoomOnClick(t,e){t.setZoomOnClick(e)}};class G extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={markerClusterer:null},this.setClustererCallback=()=>{null!==this.state.markerClusterer&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)}}componentDidMount(){if(this.context){const t=new H(this.context,[],this.props.options);this.registeredEvents=p({updaterMap:$,eventMap:F,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{markerClusterer:t}}),this.setClustererCallback)}}componentDidUpdate(t){this.state.markerClusterer&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:$,eventMap:F,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),l(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null}}G.contextType=r;var q=function(){function t(e){void 0===e&&(e={}),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===e.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),void 0===e.visible&&(void 0===e.isHidden?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var t=this;function e(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}if(!this.div){if(this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content)),this.getPanes()[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var s=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-s.left-s.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var n=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],i=0;i<n.length;i++)this.eventListeners.push(google.maps.event.addDomListener(this.div,n[i],e));this.eventListeners.push(google.maps.event.addDomListener(this.div,"mouseover",(function(){t.div&&(t.div.style.cursor="default")})))}this.contextListener=google.maps.event.addDomListener(this.div,"contextmenu",(function(s){s.returnValue=!1,s.preventDefault&&s.preventDefault(),t.enableEventPropagation||e(s)})),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg=function(){var t="";return""!==this.closeBoxURL&&(t='<img alt=""',t+=' aria-hidden="true"',t+=" src='"+this.closeBoxURL+"'",t+=" align=right",t+=" style='",t+=" position: relative;",t+=" cursor: pointer;",t+=" margin: "+this.closeBoxMargin+";",t+="'>"),t},t.prototype.addClickHandler=function(){if(this.div&&this.div.firstChild&&""!==this.closeBoxURL){var t=this.div.firstChild;this.closeListener=google.maps.event.addDomListener(t,"click",this.getCloseClickHandler())}else this.closeListener=null},t.prototype.getCloseClickHandler=function(){var t=this;return function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(t,"closeclick"),t.close()}},t.prototype.panBox=function(t){if(this.div&&!t){var e=this.getMap();if(e instanceof google.maps.Map){var s=0,n=0,i=e.getBounds();i&&!i.contains(this.position)&&e.setCenter(this.position);var o=e.getDiv(),r=o.offsetWidth,a=o.offsetHeight,l=this.pixelOffset.width,p=this.pixelOffset.height,h=this.div.offsetWidth,c=this.div.offsetHeight,u=this.infoBoxClearance.width,d=this.infoBoxClearance.height,g=this.getProjection().fromLatLngToContainerPixel(this.position);null!==g&&(g.x<-l+u?s=g.x+l-u:g.x+h+l+u>r&&(s=g.x+h+l+u-r),this.alignBottom?g.y<-p+d+c?n=g.y+p-d-c:g.y+p+d>a&&(n=g.y+p+d-a):g.y<-p+d?n=g.y+p-d:g.y+c+p+d>a&&(n=g.y+c+p+d-a)),0===s&&0===n||e.panBy(s,n)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var t=this.boxStyle;for(var e in t)t.hasOwnProperty(e)&&(this.div.style[e]=t[e]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var s=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*s+')"',this.div.style.filter="alpha(opacity="+100*s+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var t={top:0,bottom:0,left:0,right:0};if(!this.div)return t;if(document.defaultView&&document.defaultView.getComputedStyle){var e=this.div.ownerDocument,s=e&&e.defaultView?e.defaultView.getComputedStyle(this.div,""):null;s&&(t.top=parseInt(s.borderTopWidth||"",10)||0,t.bottom=parseInt(s.borderBottomWidth||"",10)||0,t.left=parseInt(s.borderLeftWidth||"",10)||0,t.right=parseInt(s.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var n=this.div.currentStyle;n&&(t.top=parseInt(n.borderTopWidth||"",10)||0,t.bottom=parseInt(n.borderBottomWidth||"",10)||0,t.left=parseInt(n.borderLeftWidth||"",10)||0,t.right=parseInt(n.borderRightWidth||"",10)||0)}return t},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var t=this.getProjection().fromLatLngToDivPixel(this.position);null!==t&&(this.div.style.left=t.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(t.y+this.pixelOffset.height)+"px":this.div.style.top=t.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(t){void 0===t&&(t={}),void 0!==t.boxClass&&(this.boxClass=t.boxClass,this.setBoxStyle()),void 0!==t.boxStyle&&(this.boxStyle=t.boxStyle,this.setBoxStyle()),void 0!==t.content&&this.setContent(t.content),void 0!==t.disableAutoPan&&(this.disableAutoPan=t.disableAutoPan),void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.pixelOffset&&(this.pixelOffset=t.pixelOffset),void 0!==t.alignBottom&&(this.alignBottom=t.alignBottom),void 0!==t.position&&this.setPosition(t.position),void 0!==t.zIndex&&this.setZIndex(t.zIndex),void 0!==t.closeBoxMargin&&(this.closeBoxMargin=t.closeBoxMargin),void 0!==t.closeBoxURL&&(this.closeBoxURL=t.closeBoxURL),void 0!==t.infoBoxClearance&&(this.infoBoxClearance=t.infoBoxClearance),void 0!==t.isHidden&&(this.isHidden=t.isHidden),void 0!==t.visible&&(this.isHidden=!t.visible),void 0!==t.enableEventPropagation&&(this.enableEventPropagation=t.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(t){this.content=t,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(t){this.position=t,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(t){this.isHidden=!t,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(t){this.zIndex=t,this.div&&(this.div.style.zIndex=t+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){return null!=this.getMap()&&!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(t,e){var s=this;e&&(this.position=e.getPosition(),this.moveListener=google.maps.event.addListener(e,"position_changed",(function(){var t=e.getPosition();s.setPosition(t)})),this.mapListener=google.maps.event.addListener(e,"map_changed",(function(){s.setMap(e.map)}))),this.setMap(t),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var t=0;t<this.eventListeners.length;t++)google.maps.event.removeListener(this.eventListeners[t]);this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype.hasOwnProperty(e)||(this.prototype[e]=t.prototype[e]);return this}.apply(t,[e])},t}();const K={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Y={options(t,e){t.setOptions(e)},position(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible(t,e){t.setVisible(e)},zIndex(t,e){t.setZIndex(e)}};class Q extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoBox:null},this.open=(t,e)=>{e?t.open(this.context,e):t.getPosition()?t.open(this.context):o(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},this.setInfoBoxCallback=()=>{const{anchor:t,onLoad:e}=this.props,{infoBox:s}=this.state;null!==s&&null!==this.containerElement&&(s.setContent(this.containerElement),this.open(s,t),e&&e(s))}}componentDidMount(){const{options:t}=this.props,e=t||{},{position:s}=e,n=d(e,["position"]);let i;!s||s instanceof google.maps.LatLng||(i=new google.maps.LatLng(s.lat,s.lng));const o=new q(Object.assign(Object.assign({},n),i?{position:i}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=p({updaterMap:Y,eventMap:K,prevProps:{},nextProps:this.props,instance:o}),this.setState({infoBox:o},this.setInfoBoxCallback)}componentDidUpdate(t){const{infoBox:e}=this.state;null!==e&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Y,eventMap:K,prevProps:t,nextProps:this.props,instance:e}))}componentWillUnmount(){const{onUnmount:t}=this.props,{infoBox:e}=this.state;null!==e&&(t&&t(e),l(this.registeredEvents),e.close())}render(){return this.containerElement?i.createPortal(n.Children.only(this.props.children),this.containerElement):null}}Q.contextType=r;var J={exports:{}};!function(t){function e(t,e,s,n){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,s,n)}e.prototype.run=function(t,e,s,n){this._init(t,e,s,n);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var r=this.clusters.length;this.clusters.push([]),this._addToCluster(i,r),this._expandCluster(r,o)}}return this.clusters},e.prototype._init=function(t,e,s,n){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),s&&(this.minPts=s),n&&(this.distance=n)},e.prototype._expandCluster=function(t,e){for(var s=0;s<e.length;s++){var n=e[s];if(1!==this._visited[n]){this._visited[n]=1;var i=this._regionQuery(n);i.length>=this.minPts&&(e=this._mergeArrays(e,i))}1!==this._assigned[n]&&this._addToCluster(n,t)}},e.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},e.prototype._regionQuery=function(t){for(var e=[],s=0;s<this._datasetLength;s++)this.distance(this.dataset[t],this.dataset[s])<this.epsilon&&e.push(s);return e},e.prototype._mergeArrays=function(t,e){for(var s=e.length,n=0;n<s;n++){var i=e[n];t.indexOf(i)<0&&t.push(i)}return t},e.prototype._euclideanDistance=function(t,e){for(var s=0,n=Math.min(t.length,e.length);n--;)s+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(s)},t.exports&&(t.exports=e)}(J);var X={exports:{}};!function(t){function e(t,e,s){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,s)}e.prototype.init=function(t,e,s){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==s&&(this.distance=s)},e.prototype.run=function(t,e){this.init(t,e);for(var s=this.dataset.length,n=0;n<this.k;n++)this.centroids[n]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var r=new Array(h),a=0,l=0;l<h;l++)r[l]=0;for(var p=0;p<s;p++){var h=this.dataset[p].length;if(o===this.assignments[p]){for(l=0;l<h;l++)r[l]+=this.dataset[p][l];a++}}if(a>0){for(l=0;l<h;l++)r[l]/=a;this.centroids[o]=r}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},e.prototype.randomCentroid=function(){var t,e,s=this.dataset.length-1;do{e=Math.round(Math.random()*s),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},e.prototype.assign=function(){for(var t,e=!1,s=this.dataset.length,n=0;n<s;n++)(t=this.argmin(this.dataset[n],this.centroids,this.distance))!=this.assignments[n]&&(this.assignments[n]=t,e=!0);return e},e.prototype.getClusters=function(){for(var t,e=new Array(this.k),s=0;s<this.assignments.length;s++)void 0===e[t=this.assignments[s]]&&(e[t]=[]),e[t].push(s);return e},e.prototype.argmin=function(t,e,s){for(var n,i=Number.MAX_VALUE,o=0,r=e.length,a=0;a<r;a++)(n=s(t,e[a]))<i&&(i=n,o=a);return o},e.prototype.distance=function(t,e){for(var s=0,n=Math.min(t.length,e.length);n--;){var i=t[n]-e[n];s+=i*i}return Math.sqrt(s)},t.exports&&(t.exports=e)}(X);var tt,et={exports:{}},st={exports:{}};!function(t){function e(t,e,s){this._queue=[],this._priorities=[],this._sorting="desc",this._init(t,e,s)}e.prototype.insert=function(t,e){for(var s=this._queue.length,n=s;n--;){var i=this._priorities[n];"desc"===this._sorting?e>i&&(s=n):e<i&&(s=n)}this._insertAt(t,e,s)},e.prototype.remove=function(t){for(var e=this._queue.length;e--;)if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}},e.prototype.forEach=function(t){this._queue.forEach(t)},e.prototype.getElements=function(){return this._queue},e.prototype.getElementPriority=function(t){return this._priorities[t]},e.prototype.getPriorities=function(){return this._priorities},e.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,s=this._queue.length;e<s;e++)t.push([this._queue[e],this._priorities[e]]);return t},e.prototype._init=function(t,e,s){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error("Arrays must have the same length");for(var n=0;n<t.length;n++)this.insert(t[n],e[n])}s&&(this._sorting=s)},e.prototype._insertAt=function(t,e,s){this._queue.length===s?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(s,0,t),this._priorities.splice(s,0,e))},t.exports&&(t.exports=e)}(st),function(t){if(t.exports)var e=st.exports;function s(t,e,s,n){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,s,n)}s.prototype.run=function(t,s,n,i){this._init(t,s,n,i);for(var o=0,r=this.dataset.length;o<r;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var a=this.clusters.length-1;this._orderedList.push(o);var l=new e(null,null,"asc"),p=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,p,l),this._expandCluster(a,l))}return this.clusters},s.prototype.getReachabilityPlot=function(){for(var t=[],e=0,s=this._orderedList.length;e<s;e++){var n=this._orderedList[e],i=this._reachability[n];t.push([n,i])}return t},s.prototype._init=function(t,e,s,n){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),s&&(this.minPts=s),n&&(this.distance=n)},s.prototype._updateQueue=function(t,e,s){var n=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===n._processed[e]){var i=n.distance(n.dataset[t],n.dataset[e]),o=Math.max(n._coreDistance,i);void 0===n._reachability[e]?(n._reachability[e]=o,s.insert(e,o)):o<n._reachability[e]&&(n._reachability[e]=o,s.remove(e),s.insert(e,o))}}))},s.prototype._expandCluster=function(t,e){for(var s=e.getElements(),n=0,i=s.length;n<i;n++){var o=s[n];if(void 0===this._processed[o]){var r=this._regionQuery(o);this._processed[o]=1,this.clusters[t].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,r,e),this._expandCluster(t,e))}}},s.prototype._distanceToCore=function(t){for(var e=this.epsilon,s=0;s<e;s++)if(this._regionQuery(t,s).length>=this.minPts)return s},s.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var s=[],n=0,i=this.dataset.length;n<i;n++)this.distance(this.dataset[t],this.dataset[n])<e&&s.push(n);return s},s.prototype._euclideanDistance=function(t,e){for(var s=0,n=Math.min(t.length,e.length);n--;)s+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(s)},t.exports&&(t.exports=s)}(et),(tt={exports:{}}).exports&&(tt.exports={DBSCAN:J.exports,KMEANS:X.exports,OPTICS:et.exports,PriorityQueue:st.exports});var nt;!function(t,e){t.exports=function(){function t(s,n,i,o,r,a){if(!(r-o<=i)){var l=o+r>>1;e(s,n,l,o,r,a%2),t(s,n,i,o,l-1,a+1),t(s,n,i,l+1,r,a+1)}}function e(t,n,i,o,r,a){for(;r>o;){if(r-o>600){var l=r-o+1,p=i-o+1,h=Math.log(l),c=.5*Math.exp(2*h/3),u=.5*Math.sqrt(h*c*(l-c)/l)*(p-l/2<0?-1:1);e(t,n,i,Math.max(o,Math.floor(i-p*c/l+u)),Math.min(r,Math.floor(i+(l-p)*c/l+u)),a)}var d=n[2*i+a],g=o,m=r;for(s(t,n,o,i),n[2*r+a]>d&&s(t,n,o,r);g<m;){for(s(t,n,g,m),g++,m--;n[2*g+a]<d;)g++;for(;n[2*m+a]>d;)m--}n[2*o+a]===d?s(t,n,o,m):s(t,n,++m,r),m<=i&&(o=m+1),i<=m&&(r=m-1)}}function s(t,e,s,i){n(t,s,i),n(e,2*s,2*i),n(e,2*s+1,2*i+1)}function n(t,e,s){var n=t[e];t[e]=t[s],t[s]=n}function i(t,e,s,n){var i=t-s,o=e-n;return i*i+o*o}var o=function(t){return t[0]},r=function(t){return t[1]},a=function(e,s,n,i,a){void 0===s&&(s=o),void 0===n&&(n=r),void 0===i&&(i=64),void 0===a&&(a=Float64Array),this.nodeSize=i,this.points=e;for(var l=e.length<65536?Uint16Array:Uint32Array,p=this.ids=new l(e.length),h=this.coords=new a(2*e.length),c=0;c<e.length;c++)p[c]=c,h[2*c]=s(e[c]),h[2*c+1]=n(e[c]);t(p,h,i,0,p.length-1,0)};a.prototype.range=function(t,e,s,n){return function(t,e,s,n,i,o,r){for(var a,l,p=[0,t.length-1,0],h=[];p.length;){var c=p.pop(),u=p.pop(),d=p.pop();if(u-d<=r)for(var g=d;g<=u;g++)a=e[2*g],l=e[2*g+1],a>=s&&a<=i&&l>=n&&l<=o&&h.push(t[g]);else{var m=Math.floor((d+u)/2);a=e[2*m],l=e[2*m+1],a>=s&&a<=i&&l>=n&&l<=o&&h.push(t[m]);var f=(c+1)%2;(0===c?s<=a:n<=l)&&(p.push(d),p.push(m-1),p.push(f)),(0===c?i>=a:o>=l)&&(p.push(m+1),p.push(u),p.push(f))}}return h}(this.ids,this.coords,t,e,s,n,this.nodeSize)},a.prototype.within=function(t,e,s){return function(t,e,s,n,o,r){for(var a=[0,t.length-1,0],l=[],p=o*o;a.length;){var h=a.pop(),c=a.pop(),u=a.pop();if(c-u<=r)for(var d=u;d<=c;d++)i(e[2*d],e[2*d+1],s,n)<=p&&l.push(t[d]);else{var g=Math.floor((u+c)/2),m=e[2*g],f=e[2*g+1];i(m,f,s,n)<=p&&l.push(t[g]);var v=(h+1)%2;(0===h?s-o<=m:n-o<=f)&&(a.push(u),a.push(g-1),a.push(v)),(0===h?s+o>=m:n+o>=f)&&(a.push(g+1),a.push(c),a.push(v))}}return l}(this.ids,this.coords,t,e,s,this.nodeSize)};var l,p={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},h=Math.fround||(l=new Float32Array(1),function(t){return l[0]=+t,l[0]}),c=function(t){this.options=y(Object.create(p),t),this.trees=new Array(this.options.maxZoom+1)};function u(t,e,s,n,i){return{x:h(t),y:h(e),zoom:1/0,id:s,parentId:-1,numPoints:n,properties:i}}function d(t,e){var s=t.geometry.coordinates,n=s[0],i=s[1];return{x:h(f(n)),y:h(v(i)),zoom:1/0,index:e,parentId:-1}}function g(t){return{type:"Feature",id:t.id,properties:m(t),geometry:{type:"Point",coordinates:[(n=t.x,360*(n-.5)),(e=t.y,s=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(s))/Math.PI-90)]}};var e,s,n}function m(t){var e=t.numPoints,s=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return y(y({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:s})}function f(t){return t/360+.5}function v(t){var e=Math.sin(t*Math.PI/180),s=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return s<0?0:s>1?1:s}function y(t,e){for(var s in e)t[s]=e[s];return t}function x(t){return t.x}function C(t){return t.y}return c.prototype.load=function(t){var e=this.options,s=e.log,n=e.minZoom,i=e.maxZoom,o=e.nodeSize;s&&console.time("total time");var r="prepare "+t.length+" points";s&&console.time(r),this.points=t;for(var l=[],p=0;p<t.length;p++)t[p].geometry&&l.push(d(t[p],p));this.trees[i+1]=new a(l,x,C,o,Float32Array),s&&console.timeEnd(r);for(var h=i;h>=n;h--){var c=+Date.now();l=this._cluster(l,h),this.trees[h]=new a(l,x,C,o,Float32Array),s&&console.log("z%d: %d clusters in %dms",h,l.length,+Date.now()-c)}return s&&console.timeEnd("total time"),this},c.prototype.getClusters=function(t,e){var s=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)s=-180,i=180;else if(s>i){var r=this.getClusters([s,n,180,o],e),a=this.getClusters([-180,n,i,o],e);return r.concat(a)}for(var l=this.trees[this._limitZoom(e)],p=[],h=0,c=l.range(f(s),v(o),f(i),v(n));h<c.length;h+=1){var u=c[h],d=l.points[u];p.push(d.numPoints?g(d):this.points[d.index])}return p},c.prototype.getChildren=function(t){var e=this._getOriginId(t),s=this._getOriginZoom(t),n="No cluster with the specified id.",i=this.trees[s];if(!i)throw new Error(n);var o=i.points[e];if(!o)throw new Error(n);for(var r=this.options.radius/(this.options.extent*Math.pow(2,s-1)),a=[],l=0,p=i.within(o.x,o.y,r);l<p.length;l+=1){var h=p[l],c=i.points[h];c.parentId===t&&a.push(c.numPoints?g(c):this.points[c.index])}if(0===a.length)throw new Error(n);return a},c.prototype.getLeaves=function(t,e,s){e=e||10,s=s||0;var n=[];return this._appendLeaves(n,t,e,s,0),n},c.prototype.getTile=function(t,e,s){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),o=this.options,r=o.extent,a=o.radius/r,l=(s-a)/i,p=(s+1+a)/i,h={features:[]};return this._addTileFeatures(n.range((e-a)/i,l,(e+1+a)/i,p),n.points,e,s,i,h),0===e&&this._addTileFeatures(n.range(1-a/i,l,1,p),n.points,i,s,i,h),e===i-1&&this._addTileFeatures(n.range(0,l,a/i,p),n.points,-1,s,i,h),h.features.length?h:null},c.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var s=this.getChildren(t);if(e++,1!==s.length)break;t=s[0].properties.cluster_id}return e},c.prototype._appendLeaves=function(t,e,s,n,i){for(var o=0,r=this.getChildren(e);o<r.length;o+=1){var a=r[o],l=a.properties;if(l&&l.cluster?i+l.point_count<=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,s,n,i):i<n?i++:t.push(a),t.length===s)break}return i},c.prototype._addTileFeatures=function(t,e,s,n,i,o){for(var r=0,a=t;r<a.length;r+=1){var l=e[a[r]],p=l.numPoints,h=void 0,c=void 0,u=void 0;if(p)h=m(l),c=l.x,u=l.y;else{var d=this.points[l.index];h=d.properties,c=f(d.geometry.coordinates[0]),u=v(d.geometry.coordinates[1])}var g={type:1,geometry:[[Math.round(this.options.extent*(c*i-s)),Math.round(this.options.extent*(u*i-n))]],tags:h},y=void 0;p?y=l.id:this.options.generateId?y=l.index:this.points[l.index].id&&(y=this.points[l.index].id),void 0!==y&&(g.id=y),o.features.push(g)}},c.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(+t,this.options.maxZoom+1))},c.prototype._cluster=function(t,e){for(var s=[],n=this.options,i=n.radius,o=n.extent,r=n.reduce,a=n.minPoints,l=i/(o*Math.pow(2,e)),p=0;p<t.length;p++){var h=t[p];if(!(h.zoom<=e)){h.zoom=e;for(var c=this.trees[e+1],d=c.within(h.x,h.y,l),g=h.numPoints||1,m=g,f=0,v=d;f<v.length;f+=1){var y=v[f],x=c.points[y];x.zoom>e&&(m+=x.numPoints||1)}if(m>g&&m>=a){for(var C=h.x*g,b=h.y*g,M=r&&g>1?this._map(h,!0):null,w=(p<<5)+(e+1)+this.points.length,L=0,k=d;L<k.length;L+=1){var P=k[L],E=c.points[P];if(!(E.zoom<=e)){E.zoom=e;var S=E.numPoints||1;C+=E.x*S,b+=E.y*S,E.parentId=w,r&&(M||(M=this._map(h,!0)),r(M,this._map(E)))}}h.parentId=w,s.push(u(C/m,b/m,w,m,M))}else if(s.push(h),m>1)for(var _=0,O=d;_<O.length;_+=1){var I=O[_],D=c.points[I];D.zoom<=e||(D.zoom=e,s.push(D))}}}return s},c.prototype._getOriginId=function(t){return t-this.points.length>>5},c.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},c.prototype._map=function(t,e){if(t.numPoints)return e?y({},t.properties):t.properties;var s=this.points[t.index].properties,n=this.options.map(s);return e&&n===s?y({},n):n},c}()}({exports:{}}),function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"}(nt||(nt={}));const it={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},ot={options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},zIndex(t,e){t.setZIndex(e)}};class rt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoWindow:null},this.open=(t,e)=>{e?t.open(this.context,e):t.getPosition()?t.open(this.context):o(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},this.setInfoWindowCallback=()=>{null!==this.state.infoWindow&&null!==this.containerElement&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))}}componentDidMount(){const t=new google.maps.InfoWindow(Object.assign({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=p({updaterMap:ot,eventMap:it,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{infoWindow:t}}),this.setInfoWindowCallback)}componentDidUpdate(t){null!==this.state.infoWindow&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:ot,eventMap:it,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){null!==this.state.infoWindow&&(l(this.registeredEvents),this.state.infoWindow.close())}render(){return this.containerElement?i.createPortal(n.Children.only(this.props.children),this.containerElement):n.createElement(n.Fragment,null)}}rt.contextType=r;const at={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},lt={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},visible(t,e){t.setVisible(e)}};class pt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={polyline:null},this.setPolylineCallback=()=>{null!==this.state.polyline&&this.props.onLoad&&this.props.onLoad(this.state.polyline)}}componentDidMount(){const t=new google.maps.Polyline(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:lt,eventMap:at,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polyline:t}}),this.setPolylineCallback)}componentDidUpdate(t){null!==this.state.polyline&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:lt,eventMap:at,prevProps:t,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),l(this.registeredEvents),this.state.polyline.setMap(null))}render(){return n.createElement(n.Fragment,null)}}pt.contextType=r;const ht={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},ct={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},paths(t,e){t.setPaths(e)},visible(t,e){t.setVisible(e)}};class ut extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={polygon:null},this.setPolygonCallback=()=>{null!==this.state.polygon&&this.props.onLoad&&this.props.onLoad(this.state.polygon)}}componentDidMount(){const t=new google.maps.Polygon(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:ct,eventMap:ht,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polygon:t}}),this.setPolygonCallback)}componentDidUpdate(t){null!==this.state.polygon&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:ct,eventMap:ht,prevProps:t,nextProps:this.props,instance:this.state.polygon}))}componentWillUnmount(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),l(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))}render(){return null}}ut.contextType=r;const dt={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},gt={bounds(t,e){t.setBounds(e)},draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},visible(t,e){t.setVisible(e)}};class mt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={rectangle:null},this.setRectangleCallback=()=>{null!==this.state.rectangle&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)}}componentDidMount(){const t=new google.maps.Rectangle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:gt,eventMap:dt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{rectangle:t}}),this.setRectangleCallback)}componentDidUpdate(t){null!==this.state.rectangle&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:gt,eventMap:dt,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),l(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return n.createElement(n.Fragment,null)}}mt.contextType=r;const ft={onCenterChanged:"center_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRadiusChanged:"radius_changed",onRightClick:"rightclick"},vt={center(t,e){t.setCenter(e)},draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},radius(t,e){t.setRadius(e)},visible(t,e){t.setVisible(e)}};class yt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={circle:null},this.setCircleCallback=()=>{null!==this.state.circle&&this.props.onLoad&&this.props.onLoad(this.state.circle)}}componentDidMount(){const t=new google.maps.Circle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:vt,eventMap:ft,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{circle:t}}),this.setCircleCallback)}componentDidUpdate(t){null!==this.state.circle&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:vt,eventMap:ft,prevProps:t,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),l(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))}render(){return n.createElement(n.Fragment,null)}}yt.contextType=r;const xt={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},Ct={add(t,e){t.add(e)},addgeojson(t,e,s){t.addGeoJson(e,s)},contains(t,e){t.contains(e)},foreach(t,e){t.forEach(e)},loadgeojson(t,e,s,n){t.loadGeoJson(e,s,n)},overridestyle(t,e,s){t.overrideStyle(e,s)},remove(t,e){t.remove(e)},revertstyle(t,e){t.revertStyle(e)},controlposition(t,e){t.setControlPosition(e)},controls(t,e){t.setControls(e)},drawingmode(t,e){t.setDrawingMode(e)},map(t,e){t.setMap(e)},style(t,e){t.setStyle(e)},togeojson(t,e){t.toGeoJson(e)}};class bt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={data:null},this.setDataCallback=()=>{null!==this.state.data&&this.props.onLoad&&this.props.onLoad(this.state.data)}}componentDidMount(){const t=new google.maps.Data(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:Ct,eventMap:xt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{data:t}}),this.setDataCallback)}componentDidUpdate(t){null!==this.state.data&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Ct,eventMap:xt,prevProps:t,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),l(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}}bt.contextType=r;const Mt={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},wt={options(t,e){t.setOptions(e)},url(t,e){t.setUrl(e)},zIndex(t,e){t.setZIndex(e)}};class Lt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={kmlLayer:null},this.setKmlLayerCallback=()=>{null!==this.state.kmlLayer&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)}}componentDidMount(){const t=new google.maps.KmlLayer(Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=p({updaterMap:wt,eventMap:Mt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{kmlLayer:t}}),this.setKmlLayerCallback)}componentDidUpdate(t){null!==this.state.kmlLayer&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:wt,eventMap:Mt,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),l(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}}Lt.contextType=r;const kt=(t,e)=>new e(t.lat,t.lng),Pt=(t,e)=>new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng)),Et=(t,e,s)=>t instanceof e?t:s(t,e);function St(t){return t?(t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng))+"":""}function _t(t){return t?(t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west)))+"":""}class Ot extends n.PureComponent{constructor(t){super(t),this.state={paneEl:null,containerStyle:{position:"absolute"}},this.updatePane=()=>{const t=this.props.mapPaneName,e=this.overlayView.getPanes();o(!!t,"OverlayView requires props.mapPaneName but got %s",t),e?this.setState({paneEl:e[t]}):this.setState({paneEl:null})},this.onAdd=()=>{var t,e;this.updatePane(),null===(e=(t=this.props).onLoad)||void 0===e||e.call(t,this.overlayView)},this.onPositionElement=()=>{var t,e;const s=(a=this.overlayView.getProjection(),l=Object.assign({x:0,y:0},this.containerRef.current?(t=this.containerRef.current,"function"==typeof(e=this.props.getPixelPositionOffset)?e(t.offsetWidth,t.offsetHeight):{}):{}),p=this.props.bounds,h=this.props.position,void 0!==p?((t,e,s)=>{const n=t&&t.fromLatLngToDivPixel(s.getNorthEast()),i=t&&t.fromLatLngToDivPixel(s.getSouthWest());return n&&i?{left:`${i.x+e.x}px`,top:`${n.y+e.y}px`,width:n.x-i.x-e.x+"px",height:i.y-n.y-e.y+"px"}:{left:"-9999px",top:"-9999px"}})(a,l,Et(p,google.maps.LatLngBounds,Pt)):((t,e,s)=>{const n=t&&t.fromLatLngToDivPixel(s);if(n){const{x:t,y:s}=n;return{left:`${t+e.x}px`,top:`${s+e.y}px`}}return{left:"-9999px",top:"-9999px"}})(a,l,Et(h,google.maps.LatLng,kt))),{left:n,top:i,width:o,height:r}=this.state.containerStyle;var a,l,p,h,c,u;u={left:n,top:i,width:o,height:r},((c=s).left!==u.left||c.top!==u.top||c.width!==u.height||c.height!==u.height)&&this.setState({containerStyle:Object.assign(Object.assign({},s),{position:"absolute"})})},this.draw=()=>{this.onPositionElement()},this.onRemove=()=>{var t,e;this.setState((()=>({paneEl:null}))),null===(e=(t=this.props).onUnmount)||void 0===e||e.call(t,this.overlayView)},this.containerRef=n.createRef();const e=new google.maps.OverlayView;e.onAdd=this.onAdd,e.draw=this.draw,e.onRemove=this.onRemove,this.overlayView=e}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(t){const e=St(t.position),s=St(this.props.position),n=_t(t.bounds),i=_t(this.props.bounds);e===s&&n===i||this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){const t=this.state.paneEl;return t?i.createPortal(n.createElement("div",{ref:this.containerRef,style:this.state.containerStyle},n.Children.only(this.props.children)),t):null}}Ot.FLOAT_PANE="floatPane",Ot.MAP_PANE="mapPane",Ot.MARKER_LAYER="markerLayer",Ot.OVERLAY_LAYER="overlayLayer",Ot.OVERLAY_MOUSE_TARGET="overlayMouseTarget",Ot.contextType=r;const It={onDblClick:"dblclick",onClick:"click"},Dt={opacity(t,e){t.setOpacity(e)}};class Tt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={groundOverlay:null},this.setGroundOverlayCallback=()=>{null!==this.state.groundOverlay&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)}}componentDidMount(){o(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");const t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=p({updaterMap:Dt,eventMap:It,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{groundOverlay:t}}),this.setGroundOverlayCallback)}componentDidUpdate(t){null!==this.state.groundOverlay&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Dt,eventMap:It,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}}Tt.defaultProps={onLoad:function(){}},Tt.contextType=r;const Bt={},Ut={data(t,e){t.setData(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)}};class Rt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={heatmapLayer:null},this.setHeatmapLayerCallback=()=>{null!==this.state.heatmapLayer&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)}}componentDidMount(){o(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),o(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);const t=new google.maps.visualization.HeatmapLayer(Object.assign(Object.assign({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=p({updaterMap:Ut,eventMap:Bt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{heatmapLayer:t}}),this.setHeatmapLayerCallback)}componentDidUpdate(t){l(this.registeredEvents),this.registeredEvents=p({updaterMap:Ut,eventMap:Bt,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),l(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}}Rt.contextType=r;const zt={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},At={register(t,e,s){t.registerPanoProvider(e,s)},links(t,e){t.setLinks(e)},motionTracking(t,e){t.setMotionTracking(e)},options(t,e){t.setOptions(e)},pano(t,e){t.setPano(e)},position(t,e){t.setPosition(e)},pov(t,e){t.setPov(e)},visible(t,e){t.setVisible(e)},zoom(t,e){t.setZoom(e)}};class jt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={streetViewPanorama:null},this.setStreetViewPanoramaCallback=()=>{null!==this.state.streetViewPanorama&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)}}componentDidMount(){const t=this.context.getStreetView();this.registeredEvents=p({updaterMap:At,eventMap:zt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{streetViewPanorama:t}}),this.setStreetViewPanoramaCallback)}componentDidUpdate(t){null!==this.state.streetViewPanorama&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:At,eventMap:zt,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),l(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}}jt.contextType=r;class Zt extends n.PureComponent{constructor(){super(...arguments),this.state={streetViewService:null},this.setStreetViewServiceCallback=()=>{null!==this.state.streetViewService&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)}}componentDidMount(){const t=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:t}}),this.setStreetViewServiceCallback)}componentWillUnmount(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}}Zt.contextType=r,n.PureComponent;const Wt={onDirectionsChanged:"directions_changed"},Vt={directions(t,e){t.setDirections(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},panel(t,e){t.setPanel(e)},routeIndex(t,e){t.setRouteIndex(e)}};class Nt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={directionsRenderer:null},this.setDirectionsRendererCallback=()=>{null!==this.state.directionsRenderer&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))}}componentDidMount(){const t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=p({updaterMap:Vt,eventMap:Wt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{directionsRenderer:t}}),this.setDirectionsRendererCallback)}componentDidUpdate(t){null!==this.state.directionsRenderer&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Vt,eventMap:Wt,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),l(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return n.createElement(n.Fragment,null)}}Nt.contextType=r,n.PureComponent;const Ht={onPlacesChanged:"places_changed"},Ft={bounds(t,e){t.setBounds(e)}};class $t extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=n.createRef(),this.state={searchBox:null},this.setSearchBoxCallback=()=>{null!==this.state.searchBox&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)}}componentDidMount(){if(o(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){const t=this.containerElement.current.querySelector("input");if(null!==t){const e=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=p({updaterMap:Ft,eventMap:Ht,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{searchBox:e}}),this.setSearchBoxCallback)}}}componentDidUpdate(t){null!==this.state.searchBox&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Ft,eventMap:Ht,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),l(this.registeredEvents))}render(){return n.createElement("div",{ref:this.containerElement},n.Children.only(this.props.children))}}$t.contextType=r;const Gt={onPlaceChanged:"place_changed"},qt={bounds(t,e){t.setBounds(e)},restrictions(t,e){t.setComponentRestrictions(e)},fields(t,e){t.setFields(e)},options(t,e){t.setOptions(e)},types(t,e){t.setTypes(e)}};class Kt extends n.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=n.createRef(),this.state={autocomplete:null},this.setAutocompleteCallback=()=>{null!==this.state.autocomplete&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)}}componentDidMount(){o(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);const t=this.containerElement.current.querySelector("input");if(t){const e=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=p({updaterMap:qt,eventMap:Gt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{autocomplete:e}}),this.setAutocompleteCallback)}}componentDidUpdate(t){l(this.registeredEvents),this.registeredEvents=p({updaterMap:qt,eventMap:Gt,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){null!==this.state.autocomplete&&l(this.registeredEvents)}render(){return n.createElement("div",{ref:this.containerElement,className:this.props.className||""},n.Children.only(this.props.children))}}Kt.contextType=r},70347:(t,e,s)=>{s.d(e,{ZP:()=>w}),s(22220);var n=s(7560),i=(s(51068),s(11720)),o=s(51119),r=s(64659),a=s(4730),l=(s(38111),s(96474)),p=s(50591),h=s(75630),c=s(24328),u=s.n(c),d=(s(27377),s(75047),s(58921),s(92391)),g=s(54573),m=(s(78951),s(19976),s(61950),s(64486));function f(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,n)}return s}var v,y,x,C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,s=String(t).toLowerCase(),n=String(e.value).toLowerCase(),i=String(e.label).toLowerCase();return n===s||i===s},b=function(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?f(Object(s),!0).forEach((function(e){(0,o.Z)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,e,s){return!(!t||e.some((function(e){return C(t,e)}))||s.some((function(e){return C(t,e)})))},getNewOptionData:function(t,e){return{label:e,value:t,__isNew__:!0}}}),M=(v=g.S,x=y=function(t){(0,l.Z)(c,t);var e,s,o=(e=c,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,h.Z)(e);if(s){var i=(0,h.Z)(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return(0,p.Z)(this,t)});function c(t){var e;(0,r.Z)(this,c),(e=o.call(this,t)).select=void 0,e.onChange=function(t,s){var n=e.props,o=n.getNewOptionData,r=n.inputValue,a=n.isMulti,l=n.onChange,p=n.onCreateOption,h=n.value,c=n.name;if("select-option"!==s.action)return l(t,s);var u=e.state.newOption,g=Array.isArray(t)?t:[t];if(g[g.length-1]!==u)l(t,s);else if(p)p(r);else{var m=o(r,r),f={action:"create-option",name:c};l(a?[].concat((0,i.Z)((0,d.C)(h)),[m]):m,f)}};var s=t.options||[];return e.state={newOption:void 0,options:s},e}return(0,a.Z)(c,[{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=t.allowCreateWhileLoading,s=t.createOptionPosition,n=t.formatCreateLabel,o=t.getNewOptionData,r=t.inputValue,a=t.isLoading,l=t.isValidNewOption,p=t.value,h=t.options||[],c=this.state.newOption;c=l(r,(0,d.C)(p),h)?o(r,n(r)):void 0,this.setState({newOption:c,options:!e&&a||!c?h:"first"===s?[c].concat((0,i.Z)(h)):[].concat((0,i.Z)(h),[c])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,e=this.state.options;return u().createElement(v,(0,n.Z)({},this.props,{ref:function(e){t.select=e},options:e,onChange:this.onChange}))}}]),c}(c.Component),y.defaultProps=b,x);const w=(0,m.m)(M)}}]);
|
|
File without changes
|
package/8899.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8899],{98287:(e,t,n)=>{n.d(t,{Z:()=>a});const a=n(24328).createContext()},49456:(e,t,n)=>{n.d(t,{Z:()=>a});const a=n(24328).createContext()},15584:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(54530),o=n(7560),i=n(24328),r=(n(13980),n(6277)),l=n(15459),c=n(97580),s=n(41128),d=n(98287),p=n(49456),g=i.forwardRef((function(e,t){var n,l,s=e.align,g=void 0===s?"inherit":s,u=e.classes,m=e.className,h=e.component,f=e.padding,x=e.scope,Z=e.size,v=e.sortDirection,P=e.variant,b=(0,a.Z)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),y=i.useContext(d.Z),k=i.useContext(p.Z),w=k&&"head"===k.variant;h?(l=h,n=w?"columnheader":"cell"):l=w?"th":"td";var R=x;!R&&w&&(R="col");var C=f||(y&&y.padding?y.padding:"default"),I=Z||(y&&y.size?y.size:"medium"),E=P||k&&k.variant,B=null;return v&&(B="asc"===v?"ascending":"descending"),i.createElement(l,(0,o.Z)({ref:t,className:(0,r.Z)(u.root,u[E],m,"inherit"!==g&&u["align".concat((0,c.Z)(g))],"default"!==C&&u["padding".concat((0,c.Z)(C))],"medium"!==I&&u["size".concat((0,c.Z)(I))],"head"===E&&y&&y.stickyHeader&&u.stickyHeader),"aria-sort":B,role:n,scope:R},b))}));const u=(0,l.Z)((function(e){return{root:(0,o.Z)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,s.$n)((0,s.U1)(e.palette.divider,1),.88):(0,s._j)((0,s.U1)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(g)},28899:(e,t,n)=>{n.d(t,{Z:()=>I});var a=n(7560),o=n(54530),i=n(24328),r=(n(13980),n(6277)),l=n(15459),c=n(74603),s=n(12231),d=n(73698),p=n(15584),g=n(15223),u=n(90436),m=n(92979),h=n(64656),f=n(60364),x=n(61837),Z=i.createElement(h.Z,null),v=i.createElement(m.Z,null),P=i.createElement(m.Z,null),b=i.createElement(h.Z,null);const y=i.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,l=e.nextIconButtonProps,c=e.onChangePage,s=e.page,d=e.rowsPerPage,p=(0,o.Z)(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),g=(0,f.Z)();return i.createElement("div",(0,a.Z)({ref:t},p),i.createElement(x.Z,(0,a.Z)({onClick:function(e){c(e,s-1)},disabled:0===s,color:"inherit"},n),"rtl"===g.direction?Z:v),i.createElement(x.Z,(0,a.Z)({onClick:function(e){c(e,s+1)},disabled:-1!==r&&s>=Math.ceil(r/d)-1,color:"inherit"},l),"rtl"===g.direction?P:b))}));var k=n(66049),w=function(e){var t=e.from,n=e.to,a=e.count;return"".concat(t,"-").concat(n," of ").concat(-1!==a?a:"more than ".concat(n))},R=[10,25,50,100],C=i.forwardRef((function(e,t){var n,l=e.ActionsComponent,m=void 0===l?y:l,h=e.backIconButtonProps,f=e.backIconButtonText,x=void 0===f?"Previous page":f,Z=e.classes,v=e.className,P=e.colSpan,b=e.component,C=void 0===b?p.Z:b,I=e.count,E=e.labelDisplayedRows,B=void 0===E?w:E,N=e.labelRowsPerPage,z=void 0===N?"Rows per page:":N,A=e.nextIconButtonProps,S=e.nextIconButtonText,L=void 0===S?"Next page":S,T=e.onChangePage,M=e.onChangeRowsPerPage,H=e.page,D=e.rowsPerPage,_=e.rowsPerPageOptions,j=void 0===_?R:_,K=e.SelectProps,O=void 0===K?{}:K,U=(0,o.Z)(e,["ActionsComponent","backIconButtonProps","backIconButtonText","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","nextIconButtonText","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);C!==p.Z&&"td"!==C||(n=P||1e3);var W=(0,k.Z)(),$=(0,k.Z)(),J=O.native?"option":s.Z;return i.createElement(C,(0,a.Z)({className:(0,r.Z)(Z.root,v),colSpan:n,ref:t},U),i.createElement(g.Z,{className:Z.toolbar},i.createElement("div",{className:Z.spacer}),j.length>1&&i.createElement(u.Z,{color:"inherit",variant:"body2",className:Z.caption,id:$},z),j.length>1&&i.createElement(d.Z,(0,a.Z)({classes:{select:Z.select,icon:Z.selectIcon},input:i.createElement(c.Z,{className:(0,r.Z)(Z.input,Z.selectRoot)}),value:D,onChange:M,id:W,labelId:$},O),j.map((function(e){return i.createElement(J,{className:Z.menuItem,key:e.value?e.value:e,value:e.value?e.value:e},e.label?e.label:e)}))),i.createElement(u.Z,{color:"inherit",variant:"body2",className:Z.caption},B({from:0===I?0:H*D+1,to:-1!==I?Math.min(I,(H+1)*D):(H+1)*D,count:-1===I?-1:I,page:H})),i.createElement(m,{className:Z.actions,backIconButtonProps:(0,a.Z)({title:x,"aria-label":x},h),count:I,nextIconButtonProps:(0,a.Z)({title:L,"aria-label":L},A),onChangePage:T,page:H,rowsPerPage:D})))}));const I=(0,l.Z)((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),overflow:"auto","&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(C)},92979:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(24328);const o=(0,n(3752).Z)(a.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},64656:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(24328);const o=(0,n(3752).Z)(a.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")}}]);
|