1/*! For license information please see main.616433781da6d7183c35.js.LICENSE.txt */ 2(()=>{var e,t,n,r={725:(e,t,n)=>{"use strict";e.exports=n.p+"83b29979fd7089491989.svg"},802:(e,t,n)=>{"use strict";n.d(t,{A:()=>v}),n(14041);var r=n(39067),o=n.n(r),a=n(9260),i=n(62720),l=n(72686),s=n(30021),c=n(28426),u=n(30556),d=n(89748),f=n(99018),p=n(50324),m=n(41647),g=n.n(m),y=n(36344),h=n(31085),x=(0,f.createUseStyles)(function(e){return{description:{color:(0,f.findColour)(e,"grey",500),paddingTop:e.spacing[2]},saveButton:{marginTop:e.spacing[4]}}});function b(e){var t=x(),n=e.data,r={workspace_name:null==n?void 0:n.name},o={default_currency:null==n?void 0:n.default_currency},f=g().map(function(e){return{label:e.currency_code,value:e.currency_code}});return(0,h.jsx)(c.A.Page,{type:"settings",children:(0,h.jsxs)(u.default,{style:{margin:0,padding:0},children:[(0,h.jsxs)(u.default.Row,{children:[(0,h.jsxs)(u.default.Col,{md:4,children:[(0,h.jsx)(s.default,{preset:"pageHeading",children:(0,d.A)("Workspace Details")}),(0,h.jsx)(s.default,{preset:"pageSubHeading",className:t.description,children:(0,d.A)("These are the settings that define how this workspace appears in dashboards.")})]}),(0,h.jsxs)(u.default.Col,{children:[(0,h.jsx)(p.A,{initialFormValues:r,submitUrl:"/workspaces
2/".concat(null==n?void 0:n.id),submitType:"PATCH",queriesToInvalidate:["/workspaces","/workspaces/".concat(null==n?void 0:n.id),"/user_sync"],clearFormOnSuccess:!1,children:(0,h.jsxs)(l.default,{className:"mb-4",children:[(0,h.jsx)(i.default,{"data-testId":"workspace-name-input",label:(0,d.A)("Workspace Name"),name:"workspace_name"}),(0,h.jsx)(a.default,{size:"sm",className:t.saveButton,type:"submit","data-testid":"submit-workspace-name",children:(0,d.A)("Save")})]})}),(0,h.jsx)(p.A,{initialFormValues:o,submitUrl:"/workspaces/".concat(null==n?void 0:n.id),submitType:"PATCH",submitSuccessMessage:(0,d.A)("Workspace currency was saved"),queriesToInvalidate:["/workspaces","/workspaces/".concat(null==n?void 0:n.id)],clearFormOnSuccess:!1,children:(0,h.jsxs)(l.default,{children:[(0,h.jsx)(i.default.Select,{label:(0,d.A)("Workspace Currency"),"data-testId":"workspace-currency-select","aria-label":(0,d.A)("Workspace Currency"),options:f,name:"default_currency",singleValueInterface:!0}),(0,h.jsx)(a.default,{size:"sm",className:t.saveButton,type:"submit","data-testid":"submit-workspace-currency",children:(0,d.A)("Save")})]})})]})]}),(0,h.jsx)("div",{className:"h-align-right mt-4",children:(0,h.jsx)(y.A,{workspaceId:null==n?void 0:n.id})})]})})}b.propTypes={data:o().shape({id:o().string,name:o().string,default_currency:o().string,protection_status:o().number}).isRequired};const v=b},812:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(14041),o=n(88133),a=n(97475),i=n(89748),l=n(77730),s=n(47352),c=n(24284),u=n(9260),d=n(13571),f=n(46389),p=n(62683),m=n(28426),g=n(27805),y=n(62161),h=n(36990),x=n(47318),b=n(93033),v=n(99018),A=n(73657),_=n(98536),S=n(6387),w=n(92523),O=n(31085);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function N(e,t,n){return(t=function(e){var t=function(e){if("object"!=j(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var T=(0,v.createUseStyles)(function(e){return{receivingClicksContainer:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.green[600]),display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.green[600]},notReceivingClicksContainer:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.neutralBorderStrong),display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.neutralBorderStrong},protectedBadge:{borderRadius:"50%",width:24,height:24,backgroundColor:e.colors.successBackgroun
2d,display:"flex",justifyContent:"center",alignItems:"center",marginRight:12,fontSize:15,color:e.colors.green[600],"&.warning":{backgroundColor:"unset",border:"solid 1px ".concat(e.colors.grey[200]),color:e.colors.grey[200]}},monitoredBadge:{borderRadius:"50%",width:24,height:24,backgroundColor:e.colors.purple[200],display:"flex",justifyContent:"center",alignItems:"center",marginRight:12,marginLeft:24,fontSize:12,color:e.colors.purple[600]},warningBadge:{borderRadius:"50%",width:24,height:24,border:"solid 2px",borderColor:e.colors.red[200],display:"flex",justifyContent:"center",alignItems:"center",marginRight:12,marginLeft:24,fontSize:12,color:e.colors.red[600]},dropOption:{opacity:.2,cursor:"pointer",width:"fit-content","&.active":{opacity:1,cursor:"default",pointerEvents:"none"},"&:hover":{opacity:.6,"&.active":{opacity:1,cursor:"default",pointerEvents:"none"}}},campaignsLink:{color:e.colors.neutralTextWeak,opacity:.7,fontSize:20,marginRight:12,"&:hover":{opacity:1,cursor:"pointer"}}}});const C=function(){var e,t=(0,a.jE)(),n=I((0,l.A)(),1)[0],j=T(),k=I((0,A.useSearchParams)(),1)[0];function N(){t.getQueryCache().findAll().forEach(function(e){t.invalidateQueries(e.queryKey)})}var P=(0,o.gC)("/aw/campaigns/batch?workspace_context=".concat((0,s.A)(null==n||null===(e=n.selectedWorkspace)||void 0===e?void 0:e.id)),"POST"),C=P.isLoading,R=k.get("ac"),M=[{label:(0,i.A)("Campaign Name or ID"),name:"campaignName",type:"radio",queryKey:"name",queryTranslator:"textSearch",options:[{label:(0,i.A)("Starts With"),name:"startsWith",type:"text",queryKey:"name"}]},{label:(0,i.A)("Account ID"),name:"accountId",type:"radio",queryKey:"df_customer_ids",queryTranslator:"textSearchAsArray",options:[{label:(0,i.A)("Equals"),name:"equals",type:"text",queryKey:"df_customer_ids",value:R||null}]},{label:(0,i.A)("Protection Status"),name:"accountStatus",type:"checkbox",options:[{label:(0,i.A)("Include Protected"),shortLabel:(0,i.A)("Protected"),type:"checkbox",name:"include_protected",queryKey:"include_protected",value:!1},{label:(0,i.A)("Include Monitored"),shortLabel:(0,i.A)("Monitored"),type:"checkbox",name:"include_monitored",queryKey:"include_monitored",value:!1},{label:(0,i.A)("Include Disabled"),shortLabel:(0,i.A)("Disabled"),type:"checkbox",name:"include_disabled",queryKey:"include_disabled",value:!1}]},{label:(0,i.A)("Campaign Status"),name:"campaignStatus",type:"checkbox",queryKey:"campaign_status",queryTranslator:"arrayOfNames",options:[{label:(0,i.A)("Enabled"),shortLabel:(0,i.A)("Enabled"),type:"checkbox",name:"ENABLED",value:!1},{label:(0,i.A)("Paused"),shortLabel:(0,i.A)("Paused"),type:"checkbox",name:"PAUSED",value:!1},{label:(0,i.A)("Removed"),shortLabel:(0,i.A)("Removed"),type:"checkbox",name:"REMOVED",value:!1}]}],L=(0,_.useApi)({url:"/aw/campaigns",noPlatform:!0,sortKey:"descriptive_name",sortOrder:"asc",responseDataKey:"campaigns",customQueryString:"&recalc=1&only_show_hidden=false&include_hidden=false&show_empty=true",filters:M}),D=I((0,r.useState)(-1),2),B=D[0],U=D[1],F=I((0,r.useState)(-1),2),G=F[0],W=F[1],z=I((0,r.useState)(-1),2),V=z[0],q=z[1],K=I((0,r.useState)(-1),2),H=K[0],Y=K[1],$=I((0,r.useState)([]),2),Z=$[0],X=$[1];function J(e){return 2===e?"Protected":1===e?"Monitored":"Disabled"}return(0,O.jsx)(b.A,{roles:["ADMIN","MANAGER","EDITOR","ROOT"],children:(0,O.jsxs)(m.A.Page,{type:"main",children:[(0,O.jsx)(g.default,{title:(0,i.A)("Google Ads Campaigns"),text:(0,i.A)("Set the protection status of your Google Ads Campaigns"),contentRight:(0,O.jsxs)(O.Fragment,{children:[Z.length>0&&(0,O.jsx)(u.default,{size:"md",onClick:function(){return W(2)},disabled:C,"data-testid":"update-selected-campaigns-button",children:(0,i.A)("Update :count Selected Campaign:s",{s:Z.length>1?"s":"",count:Z.length})}),(0,O.jsx)(u.default,{className:"ml-3",size:"md",onClick:function(){return q(2)},disabled:C,"data-testid":"update-all-campaigns-button",children:(0,i.A)("Update All Campaigns")})]})}),(0,O.jsxs)("div",{className:"flex distribute-space-between mb-4",children:[(0,O.jsx)(f.A,E({},L.filterConnector)),(0,O.jsx)(w.default,{})]}),(0,O.jsx)(y.A,E(E({},L.tableConnector),{},{isSelectable:!0,onSelectedRows:X,leftPinnedColumns:1,children:function(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("thead",{children:(0,O.jsxs)("tr",{children:[(0,O.jsx)("th",{children:(0,i.A)("Protection")}),(0,O.jsxs)("th",{children:[(0,i.A)("Campaign Name"),(0,O.jsx)(h.A,{header:!0,groupedCols:!0,children:(0,i.A)("Campaign ID")})]}),(0,O.jsxs)("th",{children:[(0,i.A)("Account Name"),(0,O.jsx)(h.A,{header:!0,groupedCols:!0,children:(0,i.A)("Account ID")})]}),(0,O.jsx)("th",{children:(0,i.A)("Campaign Status")}),(0,O.jsx)("th",{children:(0,i.A)("Campaign Type")})]})}),(0,O.jsxs)("tbody",{children:[(0,O.jsx)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col2"),children:(0,O.jsx)(S.A,{campaign:e,disabled:C,id:"row-".concat(null==e?void 0:e.aw_id,"-campaign-protection-toggle")})}),(0,O.jsxs)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col1"),children:[(0,O.jsx)(x.A,{maxLength:30,children:null==e?void 0:e.name}),(0,O.jsx)(h.A,{groupedCols:!0,children:null==e?void 0:e.aw_id})]}),(0,O.jsxs)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col3"),children:[null==e?void 0:e.descriptive_name,(0,O.jsx)(h.A,{groupedCols:!0,children:null==e?void 0:e.aw_customer_id})]}),(0,O.jsx)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col5"),children:(null==e?void 0:e.campaign_status)||"-"}),(0,O.jsx)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col4"),children:(t=null==e?void 0:e.channel_type,t?t.slice(0,1).toUpperCase()+t.slice(1).toLowerCase():"")})]})]});var t}})),(0,O.jsxs)(d.default,{open:-1!==G,onClose:function(){return W(-1)},children:[(0,O.jsx)(d.default.Header,{title:(0,i.A)("Set the protection of status of :count selected campaign:s to :status",{count:Z.length,status:J(G),s:Z.length>
21?"s":""})}),(0,O.jsx)(d.default.Content,{children:(0,O.jsxs)("div",{className:"flex direction-column",children:[(0,O.jsx)(b.A,{isNotTrialStatus:!0,orIsImpersonating:!0,children:(0,O.jsx)("button",{type:"button","data-testid":"selected-campaigns-to-protected-button",className:(0,v.classNames)(j.dropOption,2===G&&"active"),onClick:function(){return W(2)},children:(0,O.jsx)(p.A,{status:2,className:"mb-2"})})}),(0,O.jsx)("button",{type:"button","data-testid":"selected-campaigns-to-monitored-button",className:(0,v.classNames)(j.dropOption,1===G&&"active"),onClick:function(){return W(1)},children:(0,O.jsx)(p.A,{status:1,className:"mb-2"})}),(0,O.jsx)("button",{type:"button","data-testid":"selected-campaigns-to-disabled-button",className:(0,v.classNames)(j.dropOption,0===G&&"active"),onClick:function(){return W(0)},children:(0,O.jsx)(p.A,{status:0})})]})}),(0,O.jsxs)(d.default.Actions,{children:[(0,O.jsx)(u.default,{preset:"outline",onClick:function(){W(-1)},children:(0,i.A)("Cancel")}),(0,O.jsx)(u.default,{onClick:function(){U(G),W(-1)},"data-testid":"update-selected-campaigns-continue-button",children:(0,i.A)("Continue")})]})]}),(0,O.jsxs)(d.default,{open:-1!==B,onClose:function(){return U(-1)},children:[(0,O.jsx)(d.default.Header,{title:(0,i.A)("Do you want to continue?")}),(0,O.jsx)(d.default.Content,{children:(0,i.A)("Are you sure you want to do this. You are about to set the status for the selected campaigns.")}),(0,O.jsxs)(d.default.Actions,{children:[(0,O.jsx)(u.default,{preset:"outline",onClick:function(){U(-1)},children:(0,i.A)("Cancel")}),(0,O.jsx)(u.default,{onClick:function(){return function(){var e=B;U(-1);var t={};2===e&&(t.monitoring_enabled=!0,t.protection_enabled=!0),1===e&&(t.monitoring_enabled=!0,t.protection_enabled=!1),0===e&&(t.monitoring_enabled=!1,t.protection_enabled=!1),t.awIds=Z.map(function(e){return e.aw_id}),function(e){P.mutate({_method:"PATCH",df_campaign_aw_ids:e.awIds,monitoring_enabled:e.monitoring_enabled,protection_enabled:e.protection_enabled},{onSuccess:function(){(0,c.A)((0,i.A)("Status was updated for multiple campaigns"),"success"),N()},onError:function(){(0,c.A)((0,i.A)("Something went wrong!"),"error")}})}(t)}()},"data-testid":"update-selected-campaigns-confirm-button",children:(0,i.A)("Continue")})]})]}),(0,O.jsxs)(d.default,{open:-1!==V,onClose:function(){return q(-1)},children:[(0,O.jsx)(d.default.Header,{title:(0,i.A)("Set the protection status of all campaigns to :status",{status:J(V)})}),(0,O.jsx)(d.default.Content,{children:(0,O.jsxs)("div",{className:"flex direction-column",children:[(0,O.jsx)(b.A,{isNotTrialStatus:!0,orIsImpersonating:!0,children:(0,O.jsx)("button",{type:"button",className:(0,v.classNames)(j.dropOption,2===V&&"active"),onClick:function(){return q(2)},"data-testid":"all-campaigns-to-protected-button",children:(0,O.jsx)(p.A,{status:2,className:"mb-2"})})}),(0,O.jsx)("button",{type:"button",className:(0,v.classNames)(j.dropOption,1===V&&"active"),onClick:function(){return q(1)},"data-testid":"all-campaigns-to-monitored-button",children:(0,O.jsx)(p.A,{status:1,className:"mb-2"})}),(0,O.jsx)("button",{type:"button",className:(0,v.classNames)(j.dropOption,0===V&&"active"),onClick:function(){return q(0)},"data-testid":"all-campaigns-to-disabled-button",children:(0,O.jsx)(p.A,{status:0,className:""})})]})}),(0,O.jsxs)(d.default.Actions,{children:[(0,O.jsx)(u.default,{"data-testid":"update-all-campaigns-cancel-continue-button",onClick:function(){q(-1)},preset:"outline",children:(0,i.A)("Cancel")}),(0,O.jsx)(u.default,{onClick:function(){Y(V),q(-1)},"data-testid":"update-all-campaigns-continue-button",children:(0,i.A)("Continue")})]})]}),(0,O.jsxs)(d.default,{open:-1!==H,onClose:function(){return Y(-1)},children:[(0,O.jsx)(d.default.Header,{title:(0,i.A)("Do you want to continue?")}),(0,O.jsx)(d.default.Content,{children:(0,i.A)("Are you sure you want to do this. This will set the protection status of all campaigns within this workspace.")}),(0,O.jsxs)(d.default.Actions,{children:[(0,O.jsx)(u.default,{onClick:function(){Y(-1)},"data-testid":"update-all-campaigns-cancel-confirm-button",preset:"outline",children:(0,i.A)("Cancel")}),(0,O.jsx)(u.default,{onClick:function(){return function(){var e=H;Y(-1);var t={};2===e&&(t.monitoring_enabled=!0,t.protection_enabled=!0),1===e&&(t.monitoring_enabled=!0,t.protection_enabled=!1),0===e&&(t.monitoring_enabled=!1,t.protection_enabled=!1),function(e){P.mutate({_method:"PATCH",monitoring_enabled:e.monitoring_enabled,protection_enabled:e.protection_enabled,show_empty:e.show_empty,include_monitored:e.include_monitored,include_protected:e.include_protected,include_disabled:e.include_disabled,aw_account_ids:"null"},{onSuccess:function(){N(),(0,c.A)((0,i.A)("All Campaign statuses were successfully updated - note: you can only set a campaign to protected if its parent account is also protected"),"success")},onError:function(){(0,c.A)((0,i.A)("Something went wrong!"),"error")}})}(t)}()},"data-testid":"update-all-campaigns-confirm-button",children:(0,i.A)("Continue")})]})]})]})})}}
2,1048:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){var t=e.getValue,n=e.options,r=e.index,o=t().length,a=n.length-1;return 0!==r?null:"".concat(o," out of ").concat(a," selected")}},1348:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(21710),a=n(31085);const i=function(){var e,t=(0,r.R7)({}),n=t.filters,i=t.handlePagination,l=t.setFilters,s=t.handleSort,c="";return null!==(e=n["accounts.selection"])&&void 0!==e&&e.length&&(c+="&df_customer_ids=".concat(JSON.stringify(n["accounts.selection"]))),(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:n,onFilterChange:l,dynamicQuery:c,handlePagination:i,handleSort:s})})}},1469:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(20939),o=n.n(r),a=n(4156),i=n.n(a),l=n(93353),s=n.n(l),c=n(11624),u=n(89748);function d(e,t,n){return e.push({ruleName:t,userMessage:n}),e}function f(e,t,n){if(void 0===t)return[];var r=[];return"{}"===JSON.stringify(e)||Object.keys(e).forEach(function(a){"isEmail"===a&&(r=function(e,t,n){var r;return i()(e)||""===e?n:d(n,"isEmail",null!==(r=t.errorMessage)&&void 0!==r?r:(0,u.A)("Must be a valid email"))}(t,e[a],r)),"isInt"===a&&(r=function(e,t,n){var r;return s()(String(e))||""===e?n:d(n,"isInt",null!==(r=t.errorMessage)&&void 0!==r?r:(0,u.A)("Must be a whole number"))}(t,e[a],r)),"isNotEmpty"===a&&(r=function(e,t,n){var r;return""!==e?n:d(n,"isNotEmpty",null!==(r=t.errorMessage)&&void 0!==r?r:(0,u.A)("Must not be empty"))}(t,e[a],r)),"isAlpha"===a&&(r=function(e,t,n){var r;return(0,c.Ay)(e,"en-GB",{ignore:" "})||""===e?n:d(n,"isAlpha",null!==(r=t.errorMessage)&&void 0!==r?r:(0,u.A)("Must be letters only"))}(t,e[a],r)),"valuesMatch"===a&&(r=function(e,t,n,r){var a;return o()(String(e),String(n[t.match]))||void 0===n[t.match]?r:d(r,"valuesMatch",null!==(a=t.errorMessage)&&void 0!==a?a:(0,u.A)("Values don't match"))}(t,e[a],n,r)),"hasLowercaseLetter"===a&&(r=function(e,t,n){var r;return/^(?=.*[a-z])/.test(e)||""===e?n:d(n,"hasLowercaseLetter",null!==(r=t.errorMessage)&&void 0!==r?r:(0,u.A)("Must must contain lower case letter"))}(t,e[a],r)),"hasUppercaseLetter"===a&&(r=function(e,t,n){var r;return/^(?=.*[A-Z])/.test(e)||""===e?n:d(n,"hasUppercaseLetter",null!==(r=t.errorMessage)&&void 0!==r?r:(0,u.A)("Must contain an upper case letter"))}(t,e[a],r)),"hasSpecialCharacter"===a&&(r=function(e,t,n){var r;return/^(?=.*[!"#$%&()])/.test(e)||""===e?n:d(n,"hasSpecialCharacter",null!==(r=t.errorMessage)&&void 0!==r?r:(0,u.A)("Must be contain a special character"))}(t,e[a],r)),"hasNumber"===a&&(r=function(e,t,n){var r;return/^(?=.*[0-9])/.test(e)||""===e?n:d(n,"hasNumber",null!==(r=t.errorMessage)&&void 0!==r?r:(0,u.A)("Must contain a number"))}(t,e[a],r)),"hasMinimumLength"===a&&(r=function(e,t,n){var r,o,a=null!==(r=t.match)&&void 0!==r?r:8;return e.length>=a||""===e?n:d(n,"hasMinimumLength",null!==(o=t.errorMessage)&&void 0!==o?o:(0,u.A)("Must be min length of :min"))}(t,e[a],r)),"hasSpaces"===a&&(r=function(e,t,n){var r;return/^(?=.*[\s])/.test(e)===t.match||""===e?n:d(n,"hasSpaces",null!==(r=t.errorMessage)&&void 0!==r?r:(0,u.A)("Must not contain space"))}(t,e[a],r))}),r}},1582:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(69912),o=n(34730),a=n(93938),i=n(71509),l=n(72996);function s(){}s.Stacked=r.A,s.Group=o.A,s.GroupHorizontal=a.A,s.Horizontal=i.A,s.HorizontalStacked=l.A;const c=s},1781:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=p(n(25751)),a=f(n(14041)),i=n(43144),l=f(n(76969)),s=n(86957),c=n(45647),u=p(n(79135)),d=n(31085);function f(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(f=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}
vendor: 4,678 bytes, line 2
2function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var v=o.default;v(".position-x1n2onr6{position:relative}",3e3),v(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),v(".display-x1rg5ohu{display:inline-block}",3e3),v(".maxWidth-x193iq5w{max-width:100%}",4e3),v(".verticalAlign-xxymvpz{vertical-align:middle}",3e3),v(".display-x1lliihq{display:block}",3e3),v(".width-xh8yej3{width:100%}",4e3),v(".whiteSpace-xeaf4i8{white-space:normal}",3e3),v(".display-x3nfvp2{display:inline-flex}",3e3),v(".alignItems-x6s0dn4{align-items:center}",3e3),v(".gap-x1jnr06f{gap:4px}",2e3),v(".display-x78zum5{display:flex}",3e3),v(".minWidth-xeuugli{min-width:0}",4e3),v(".justifyContent-xl56j7k{justify-content:center}",3e3),v(".width-x6jxa94{width:14px}",4e3),v(".height-x1v9usgg{height:14px}",4e3),v(".borderRadius-x1e6avla{border-radius:999px}",2e3),v(".borderWidth-xmkeg23{border-width:1px}",2e3),v(".borderStyle-x1y0btm7{border-style:solid}",2e3),v(".borderColor-x1wcvari{border-color:var(--gray300-x1xk3734)}",2e3),v(".backgroundColor-xgji3v1{background-color:var(--gray300-x1xk3734)}",3e3),v(".marginRight-x1db2dqx{margin-right:8px}",4e3),v(".borderColor-x1mij5n8:hover{border-color:var(--gray400-x79zdqj)}",2130),v(".backgroundColor-xs7ic1z:hover{background-color:var(--gray400-x79zdqj)}",3130),v(".cursor-x1277o0a:hover{cursor:pointer}",3130),v(".lineHeight-xo5v014{line-height:1}",3e3),v(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),v(".fontSize-xdzlmae{font-size:8px}",3e3),v(".position-x10l6tqk{position:absolute}",3e3),v(".padding-xc7ga6q{padding:12px}",1e3),v(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),v(".borderRadius-xur7f20{border-radius:8px}",2e3),v(".zIndex-x1q2oy4v{z-index:9999}",3e3),v(".maxWidth-xw5ewwj{max-width:300px}",4e3),v(".boxShadow-x1o4up06{box-shadow:0 -4px 6px rgba(10,13,18,.03),0 12px 16px rgba(10,13,18,.08)}",3e3,".boxShadow-x1o4up06{box-shadow:0 -4px 6px rgba(10,13,18,.03), 0 12px 16px rgba(10,13,18,.08)}"),v(".wordBreak-x13faqbe{word-break:break-word}",3e3),v(".fontSize-xfifm61{font-size:12px}",3e3),v(".fontWeight-x1s688f{font-weight:600}",3e3),v(".fontWeight-xo1l8bm{font-weight:400}",3e3),v(".color-x1heor9g{color:inherit}",3e3),v(".textDecoration-x1bvjpef{text-decoration:underline}",2e3),v(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),v(".backgroundColor-x1wow9py{background-color:var(--gray900-xevft2h)}",3e3);var A={anchor:{position:"position-x1n2onr6",whiteSpace:"whiteSpace-xuxw1ft",dis
2play:"display-x1rg5ohu",maxWidth:"maxWidth-x193iq5w",verticalAlign:"verticalAlign-xxymvpz",$$css:"ToolTip/index.tsx:9"},anchorFullWidth:{display:"display-x1lliihq",width:"width-xh8yej3",whiteSpace:"whiteSpace-xeaf4i8",$$css:"ToolTip/index.tsx:16"},anchorContent:{position:"position-x1n2onr6",display:"display-x3nfvp2",alignItems:"alignItems-x6s0dn4",gap:"gap-x1jnr06f",rowGap:null,columnGap:null,verticalAlign:"verticalAlign-xxymvpz",maxWidth:"maxWidth-x193iq5w",$$css:"ToolTip/index.tsx:21"},anchorContentFullWidth:{display:"display-x78zum5",width:"width-xh8yej3",minWidth:"minWidth-xeuugli",$$css:"ToolTip/index.tsx:29"},childContent:{display:"display-x1rg5ohu",maxWidth:"maxWidth-x193iq5w",$$css:"ToolTip/index.tsx:34"},childContentFullWidth:{display:"display-x1lliihq",width:"width-xh8yej3",minWidth:"minWidth-xeuugli",$$css:"ToolTip/index.tsx:38"},infoIconContainer:{display:"display-x3nfvp2",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",width:"width-x6jxa94",height:"height-x1v9usgg",borderRadius:"borderRadius-x1e6avla",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"borderWidth-xmkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:"borderStyle-x1y0btm7",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:"borderColor-x1wcvari",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,backgroundColor:"backgroundColor-xgji3v1",marginRight:"marginRight-x1db2dqx",marginInlineStart:null,marginInlineEnd:null,":hover_borderColor":"borderColor-x1mij5n8",":hover_borderInlineColor":null,":hover_borderInlineStartColor":null,":hover_borderLeftColor":null,":hover_borderInlineEndColor":null,":hover_borderRightColor":null,":hover_borderBlockColor":null,":hover_borderTopColor":null,":hover_borderBottomColor":null,":hover_backgroundColor":"backgroundColor-xs7ic1z",":hover_cursor":"cursor-x1277o0a",lineHeight:"lineHeight-xo5v014",$$css:"ToolTip/index.tsx:43"},infoIcon:{color:"color-xf72ejy",fontSize:"fontSize-xdzlmae",$$css:"ToolTip/index.tsx:62"},popup:{position:"position-x10l6tqk",padding:"padding-xc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,backgroundColor:"backgroundColor-x18oya0d",borderRadius:"borderRadius-xur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,zIndex:"zIndex-x1q2oy4v",maxWidth:"maxWidth-xw5ewwj",boxShadow:"boxShadow-x1o4up06",$$css:"ToolTip/index.tsx:66"},heading:{whiteSpace:"whiteSpace-xeaf4i8",wordBreak:"wordBreak-x13faqbe",fontSize:"fontSize-xfifm61",fontWeight:"fontWeight-x1s688f",$$css:"ToolTip/index.tsx:75"},content:{whiteSpace:"whiteSpace-xeaf4i8",wordBreak:"wordBreak-x13faqbe",fontWeight:"fontWeight-xo1l8bm",fontSize:"fontSize-xfifm61",$$css:"ToolTip/index.tsx:81"},link:{color:"color-x1heor9g",textDecoration:"textDecoration-x1bvjpef",textDecorationColor:null,textDecorationLine:null,textDecorationStyle:null,textDecorationThickness:null,$$css:"ToolTip/index.tsx:87"},light:{backgroundColor:"backgroundColor-x18oya0d",color:"color-x5tu7p5",$$css:"ToolTip/index.tsx:91"},dark:{backgroundColor:"backgroundColor-x1wow9py",color:"color-xf72ejy",$$css:"ToolTip/index.tsx:95"}};function _(e){return"Button"===e}function S(e){var t;if(function(e){if(!a.default.isValidElement(e))return!1;if("button"===e.type)return!0;var t=e.type;return _(null==t?void 0:t.name)||_(null==t?void 0:t.displayName)}(e))return!0;
2if(!a.default.isValidElement(e))return!1;var n=null===(t=e.props)||void 0===t?void 0:t.children;return null!=n&&a.default.Children.toArray(n).some(S)}t.default=function(e){var t=e.heading,n=void 0===t?"":t,r=e.content,o=e.children,f=e.preset,p=void 0===f?"light":f,m=e.anchorAs,g=void 0===m?"span":m,h=e["data-testid"],b=void 0===h?"":h,v=e.hidden,_=void 0!==v&&v,w=e.showIcon,O=void 0===w||w,j=e.fullWidth,k=void 0!==j&&j,E=x((0,c.useSyncState)(),1)[0],N=x((0,a.useState)(E.dimmerIsActive||!1),2),I=N[0],P=N[1],T=x((0,a.useState)(!1),2),C=T[0],R=T[1],M=x((0,a.useState)(null),2),L=M[0],D=M[1],B=(0,a.useRef)(null),U=(0,a.useRef)(null),F=(0,a.useRef)(null),G=x((0,a.useState)({top:0,left:0}),2),W=G[0],z=G[1],V=(0,a.useRef)(null),q=x((0,a.useState)({top:"auto",bottom:-8,left:"50%"}),2),K=q[0],H=q[1],Y=(0,a.useId)(),$=O&&!S(o);function Z(){B.current&&(clearTimeout(B.current),B.current=null)}function X(){Z(),B.current=setTimeout(function(){R(!1)},150)}function J(){return $?(0,d.jsx)("span",y(y({ref:F,tabIndex:0,role:"button","aria-label":"More information"},{className:"display-x3nfvp2 alignItems-x6s0dn4 justifyContent-xl56j7k width-x6jxa94 height-x1v9usgg borderRadius-x1e6avla borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x1wcvari backgroundColor-xgji3v1 marginRight-x1db2dqx borderColor-x1mij5n8 backgroundColor-xs7ic1z cursor-x1277o0a lineHeight-xo5v014","data-style-src":"ToolTip/index.tsx:43"}),{},{children:(0,d.jsx)(u.default,y(y({name:["fas","info"]},{className:"color-xf72ejy fontSize-xdzlmae","data-style-src":"ToolTip/index.tsx:62"}),{},{"aria-hidden":"true"}))})):null}(0,a.useEffect)(function(){if(C&&U.current&&V.current){var e,t,n,r=U.current.getBoundingClientRect(),o=null!==(e=null===(t=F.current)||void 0===t?void 0:t.getBoundingClientRect())&&void 0!==e?e:null,a=$&&null!=o?o:r,i=(null===(n=V.current)||void 0===n?void 0:n.getBoundingClientRect())||{width:0,height:0},l=window.innerWidth,s=a.left+window.scrollX+a.width/2,c=s-i.width/2,u=a.top+window.scrollY-i.height-8,d={top:"auto",bottom:-8,left:"50%"};u<32&&(u=a.bottom+window.scrollY+8,d={top:-8,bottom:"auto",left:"50%"}),c+i.width>l-32?c=l-i.width-28:c<32&&(c=32);var f=i.width-16,p=s-c,m=Math.min(Math.max(p,16),f);d.left="".concat(m,"px"),z({top:u,left:c}),H(d)}},[o,C,$]),(0,a.useEffect)(function(){return function(){L&&clearTimeout(L),Z()}},[L]);var Q=C&&!I?(0,d.jsxs)("div",y(y({ref:V,id:Y,role:"tooltip"},l.props(A.popup,A[p])),{},{style:{top:"".concat(W.top,"px"),left:"".concat(W.left,"px")},onMouseEnter:function(){Z()},onMouseLeave:function(){X()},children:[(0,d.jsx)("div",{style:y({position:"absolute",transform:"translateX(-50%)",width:0,height:0,borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderTop:-8===K.top?"none":"8px solid ".concat("light"===p?s.colours.white:s.colours.gray900),borderBottom:-8===K.bottom?"none":"8px solid ".concat("light"===p?s.colours.white:s.colours.gray900)},K)}),n?(0,d.jsx)("div",y(y({},l.props(A.heading,A[p])),{},{children:n})):null,(0,d.jsx)("div",y(y({},l.props(n?null:A.heading,n?A.content:null,A[p])),{},{children:function(e){for(var t=/\[(.+?)]\s*=?\s*\((.+?)\)/g,n=[],r=0,o=t.exec(e);o;){var a=x(o,3),i=a[0],l=a[1],s=a[2];o.index>r&&n.push(e.slice(r,o.index)),n.push((0,d.jsx)("a",y(y({href:s,target:"_blank",rel:"noopener noreferrer"},{className:"color-x1heor9g textDecoration-x1bvjpef","data-style-src":"ToolTip/index.tsx:87"}),{},{children:l}),"tooltip-link-".concat(o.index,"-").concat(s))),r=o.index+i.length,o=t.exec(e)}return r<e.length&&n.push(e.slice(r)),n.length>0?n:e}(r)}))]})):null,ee=g,te=y(y({ref:U},l.props(A.anchor,k?A.anchorFullWidth:null)),b?{"data-testid":b}:{});return(0,a.useEffect)(function(){if(!E.dimmerIsActive){var e=setTimeout(function(){return P(!1)},300);return function(){return clearTimeout(e)}}P(!0)},[E.dimmerIsActive]),_?(0,d.jsx)(ee,y(y({},te),{},{children:(0,d.jsxs)("span",y(y({},l.props(A.anchorContent,k?A.anchorContentFullWidth:null)),{},{children:[(0,d.jsx)("span",y(y({},l.props(A.childContent,k?A.childContentFullWidth:null)),{},{children:o})),J()]}))})):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ee,y(y({},te),{},{"aria-describedby":C?Y:void 0,onMouseEnter:function(){Z(),L&&clearTimeout(L);var e=setTimeout(function(){return R(!0)},1e3);D(e)},onMouseLeave:function(){L&&clearTimeout(L),X()},onFocus:function(){Z(),L&&clearTimeout(L),R(!0)},onBlur:function(){X()},children:(0,d.jsxs)("span",y(y({},l.props(A.anchorContent,k?A.anchorContentFullWidth:null)),{},{children:[(0,d.jsx)("span",y(y({},l.props(A.childContent,k?A.childContentFullWidth:null)),{},{children:o})),J()]}))})),Q&&"undefined"!=typeof document&&null!=document.body?(0,i.createPortal)(Q,document.body):null]})}},1841:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=A(n(25751)),o=n(14041),a=n(34016),i=n(60156),l=n(45647),s=n(18141),c=A(n(55618)),u=A(n(62720)),d=A(n(4665)),f=A(n(9260)),p=A(n(30021)),m=A(n(37270)),g=A(n(65462)),y=A(n(79135)),h=A(n(48734)),x=n(4386),b=A(n(71902)),v=n(31085);function A(e){return e&&e.__esModule?e:{default:e}}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t,n){return(t=function(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var I=r.default;function P(e,t){return t?"".concat(e,"-").concat(t):e}function T(e){var t=null==e?void 0:e.value;return"boolean"==typeof t?t:"string"==typeof t?t.trim().length>0:"number"==typeof t}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(function(t){return(0,x.shouldShowFilter)(t,e)})}I(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),I(".position-x1n2onr6{position:relative}",3e3),I(".height-xaymia4{height:51px}",4e3),I(".padding-xe8ttls{padding:8px}",1e3),I(".display-x78zum5{display:flex}",3e3),I(".alignItems-x6s0dn4{align-items:center}",3e3),I(".width-xeq5yr9{width:fit-content}",4e3),I(".maxWidth-x193iq5w{max-width:100%}",4e3),I(".border-xysfnd{border:1px solid var(--gray100-x1llswo5)}",1e3),I(".borderRadius-x12oqio5{border-radius:4px}",2e3),I(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),I(".textAlign-xdpxx8g{text-align:left}",3e3),I(".overflow-xb3r6kr{overflow:hidden}",2e3),I(".boxShadow-x179fj1{box-shadow:0 4px 8px -2px rgba(34,34,34,.1)}",3e3),I(".fontWeight-x1s688f{font-weight:600}",3e3),I(".fontSize-xfifm61{font-size:12px}",3e3),I(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),I(".textTransform-xtvhhri{text-transform:uppercase}",3e3),I(".fontWeight-xo1l8bm{font-weight:400}",3e3),I(".fontSize-xif65rj{font-size:14px}",3e3),I(".marginBottom-x1yztbdb{margin-bottom:16px}",4e3),I(".marginRight-x1db2dqx{margin-right:8px}",4e3),I(".justifyContent-xl56j7k{justify-content:center}",3e3),I(".height-xc9qbxq{height:36px}",4e3),I(".width-x14qfxbe{width:36px}",4e3),I(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),I(".backgroundColor-x1vuwhqn{background-color:var(--primary100-x1s8hf8c)}",3e3),I(".textAlign-x2b8uid{text-align:center}",3e3),I(".fontWeight-x1xlr1w8{font-weight:700}",3e3),I(".lineHeight-xt9i1p0{line-height:36}",3e3),I(".fontSize-x1j61zf2{font-size:16px}",3e3),I(".flexShrink-x2lah0s{flex-shrink:0}",3e3),I(".fontWeight-xk50ysn{font-weight:500}",3e3),I(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),I(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),I(".marginRight-xl010v5{margin-right:4px}",4e3),I(".width-xgd8bvy{width:28px}",4e3),I(".padding-x1717udv{padding:0}",1e3),I(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),I(".fontSize-x1pvqxga{font-size:24px}",3e3),I(".marginTop-x1xmf6yo{margin-top:8px}",4e3),I(".marginBottom-x1iymm2a{margin-bottom:32px}",4e3),I(".gap-xou54vl{gap:16px}",2e3),I(".marginTop-xg87l8a{margin-top:32px}",4e3),I(".padding-xggk2y7{padding:24px}",1e3),I(".borderBottom-x1na7oll{border-bottom:1px solid var(--gray300-x1xk3734)}",2e3),I(".paddingTop-x1iorvi4{padding-top:4px}",4e3),I(".paddingBottom-x1gan7if{padding-bottom:32px}",4e3),I(".overflowY-x1odjw0f{overflow-y:auto}",4e3),I(".flex-x98rzlu{flex:1}",2e3),I(".minHeight-x2lwn1j{min-height:0}",4e3),I(".borderTop-x1gzighp{border-top:1px solid var(--gray300-x1xk3734)}",2e3),I(".flexDirection-xdt5ytf{flex-direction:column}",3e3),I(".height-x1dr59a3{height:100vh}",4e3),I(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),I(".marginRight-x1wsuqlk{margin-right:12px}",4e3),t.default=function(e){var t,n,r,A,_,S,O,E,N,I,R,M,L,D,B,U=e.filters,F=void 0===U?[]:U,G=e.isOpen,W=e.apiUrl,z=e.title,V=e.description,q=e.dataTestIdInstance,K=e.dateRangePerio
2d,H=e.hasGroupByOrder,Y=void 0!==H&&H,$=e.onClose,Z=e.columnGroupingOrder,X=P((0,x.getFilterTestId)(z,"filter-panel-export"),q),J=P("export-cancel-button",q),Q=P("export-submit-button",q),ee=k((0,l.useWorkspacesState)(),1)[0],te=k((0,l.usePlatformsState)(),1)[0],ne=k((0,l.useSyncState)(),1)[0],re=k((0,l.useGlobalFiltersState)(),1)[0],oe=k((0,o.useState)(""),2),ae=oe[0],ie=oe[1],le=k((0,o.useState)([]),2),se=le[0],ce=le[1],ue=(0,a.useMutation)(W,"POST"),de=(0,o.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return C(e).reduce(function(t,n){var r,o,a,l,s;if(null!==(r=n.filterGroup)&&void 0!==r&&r.name&&!(0,x.filterGroupHasSelections)(n.filterGroup.name,e))return t;var c=(null!==(o=n.options)&&void 0!==o?o:[]).filter(function(e){return T(e)}).map(function(e){return function(e){var t,n,r;return e?"boolean"==typeof e.value?null!==(n=e.label)&&void 0!==n?n:e.name:e.label&&e.label!==e.name?"".concat(e.label,": ").concat(null!==(r=e.value)&&void 0!==r?r:""):"".concat(null!==(t=e.value)&&void 0!==t?t:""):""}(e)}).filter(function(e){return e.length>0});return 0===c.length||t.push({label:null!==(a=null!==(l=n.label)&&void 0!==l?l:n.name)&&void 0!==a?a:(0,i.language)("Filter"),values:c,queryKey:n.queryKey,exportColumnOrder:!0===(null===(s=n.filterGroup)||void 0===s?void 0:s.exportColumnOrder)}),t},[])}(F)},[F]),fe=(0,o.useMemo)(function(){return function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){return t.queryKey&&!0===t.exportColumnOrder?(e.push({label:t.label,value:t.queryKey}),e):e},[])}(de)},[de]),pe=k((0,o.useState)(fe),2),me=pe[0],ge=pe[1],ye=null!==(t=null==ee||null===(n=ee.selectedWorkspace)||void 0===n?void 0:n.name)&&void 0!==t?t:"-",he=null!==(r=null==te||null===(A=te.selectedPlatform)||void 0===A?void 0:A.platform_name)&&void 0!==r?r:"",xe="Twitter"===(L=null!==(_=null!==(S=null==te||null===(O=te.selectedPlatform)||void 0===O?void 0:O.platform_title)&&void 0!==S?S:he)&&void 0!==_?_:"-")?"X":L,be=P("".concat(xe,"-platform-icon"),q),ve=he.length>0,Ae=K?d.default.getDateRange(K):null==re?void 0:re.dataFilterDates,_e=(0,o.useMemo)(function(){var e,t,n,r,o,a,i=null!==(e=null==Ae||null===(t=Ae.min)||void 0===t?void 0:t.localTimestamp)&&void 0!==e?e:null==Ae||null===(n=Ae.min)||void 0===n?void 0:n.timestamp,l=null!==(r=null==Ae||null===(o=Ae.max)||void 0===o?void 0:o.localTimestamp)&&void 0!==r?r:null==Ae||null===(a=Ae.max)||void 0===a?void 0:a.timestamp;if(!i||!l)return"-";var c=(0,s.toDate)(new Date(1e3*i)),u=(0,s.toDate)(new Date(1e3*l));return"".concat((0,s.format)(c,"do LLL yy")," - ").concat((0,s.format)(u,"do LLL yy"))},[null==re||null===(E=re.dataFilterDates)||void 0===E||null===(E=E.max)||void 0===E?void 0:E.localTimestamp,null==re||null===(N=re.dataFilterDates)||void 0===N||null===(N=N.max)||void 0===N?void 0:N.timestamp,null==re||null===(I=re.dataFilterDates)||void 0===I||null===(I=I.min)||void 0===I?void 0:I.localTimestamp,null==re||null===(R=re.dataFilterDates)||void 0===R||null===(R=R.min)||void 0===R?void 0:R.timestamp,Ae]);function Se(){ce([]),$()}return(0,o.useEffect)(function(){var e=new Map(fe.map(function(e){return[e.value,e]}));ge(function(t){var n=t.filter(function(t){return e.has(t.value)}).map(function(t){var n;return null!==(n=e.get(t.value))&&void 0!==n?n:t}),r=new Set(n.map(function(e){return e.value})),o=fe.filter(function(e){return!r.has(e.value)});return[].concat(j(n),j(o))})},[fe]),(0,o.useEffect)(function(){var e,t;if(G){var n=null!==(e=null==ne||null===(t=ne.user)||void 0===t?void 0:t.email)&&void 0!==e?e:"";ie(n)}},[G,null==ne||null===(M=ne.user)||void 0===M?void 0:M.email]),(0,v.jsx)(c.default,{open:G,onClose:Se,noPadding:!0,children:(0,v.jsxs)("div",w(w({},{className:"display-x78zum5 flexDirection-xdt5ytf height-x1dr59a3","data-style-src":"ExportPanel/index.tsx:146"}),{},{"data-testid":X,children:[(0,v.jsxs)("div",w(w({},{className:"padding-xggk2y7 borderBottom-x1na7oll flexShrink-x2lah0s","data-style-src":"ExportPanel/index.tsx:128"}),{},{"data-testid":"".concat(X,"-header"),children:[(0,v.jsx)(p.default,{preset:"formHeading",as:"h4",children:z}),(0,v.jsx)(p.default,w(w({preset:"formSubHeading"},{className:"marginBottom-x1e56ztr","data-style-src":"ExportPanel/index.tsx:37"}),{},{children:V}))]})),(0,v.jsxs)("div",w(w({},{className:"padding-xggk2y7 paddingTop-x1iorvi4 paddingBottom-x1gan7if overflowY-x1odjw0f flex-x98rzlu minHeight-x2lwn1j","data-style-src":"ExportPanel/index.tsx:133"}),{},{"data-testid":"".concat(X,"-body"),children:[(0,v.jsxs)("div",w(w({},{className:"marginTop-xg87l8a marginBottom-x1iymm2a","data-style-src":"ExportPanel/index.tsx:124"}),{},{"data-testid":"".concat(X,"-delivery"),children:[(0,v.jsx)("h3",w(w({},{className:"fontWeight-x1s688f fontSize-xfifm61 color-xd87uto textTransform-xtvhhri marginBottom-x1e56ztr","data-style-src":"ExportPanel/index.tsx:55"}),{},{children:(0,i.language)("Delivery")})),(0,v.jsx)("h4",w(w({},{className:"fontWeight-xo1l8bm fontSize-xif65rj color-xd87uto marginBottom-x1yztbdb","data-style-src":"ExportPanel/index.tsx:62"}),{},{children:(0,i.language)("Send to")})),(0,v.jsx)(u.default,{placeholder:(0,i.language)("Enter email address"),name:"recipient_email",type:"email",onFormValue:function(e){var t;ie(null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"")},id:"export-email-input",value:ae,errors:se,showErrors:!0,"data-testid":"".concat(X,"-export-email-input")})]})),de.length>0&&(0,v.jsx)("h3",w(w({},{className:"fontWeight-x1s688f fontSize-xfifm61 color-xd87uto textTransform-xtvhhri marginBottom-x1e56ztr","data-style-src":"ExportPanel/index.tsx:55"}),{},{children:(0,i.language)("WORKSPACE & PLATFORM")})),(0,v.jsxs)("div",w(w({},{className:"display-x78zum5 marginTop-x1xmf6yo marginBottom-x1iymm2a gap-xou54vl","data-style-src":"ExportPanel/index.tsx:118"}),{},{"data-testid":"".concat(X,"-selector-row"),children:[(0,v.jsxs)("div",w(w({},{className:"position-x1n2onr6 height-xaymia4 padding-xe8ttls display-x78zum5 alignItems-x6s0dn4 width-xeq5yr9 maxWidth-x193iq5w border-xysfnd borderRadius-x12oqio5 backgroundColor-x18oya0d textAlign-xdpxx8g overflow-xb3r6kr boxSh
2adow-x179fj1","data-style-src":"ExportPanel/index.tsx:40"}),{},{"data-testid":"".concat(X,"-workspace"),children:[(0,v.jsx)("div",w(w({},{className:"marginRight-x1db2dqx display-x78zum5 justifyContent-xl56j7k alignItems-x6s0dn4 height-xc9qbxq width-x14qfxbe borderRadius-x12oqio5 color-x1jsblnb backgroundColor-x1vuwhqn textAlign-x2b8uid fontWeight-x1xlr1w8 lineHeight-xt9i1p0 fontSize-x1j61zf2 flexShrink-x2lah0s","data-style-src":"ExportPanel/index.tsx:68"}),{},{children:(D=ye,D&&"-"!==D&&null!==(B=D[0])&&void 0!==B?B:"W")})),(0,v.jsx)("span",w(w({},{className:"fontSize-x1j61zf2 fontWeight-xk50ysn color-x1jsblnb whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv marginRight-xl010v5","data-style-src":"ExportPanel/index.tsx:84"}),{},{children:ye}))]})),(0,v.jsxs)("div",w(w({},{className:"position-x1n2onr6 height-xaymia4 padding-xe8ttls display-x78zum5 alignItems-x6s0dn4 width-xeq5yr9 maxWidth-x193iq5w border-xysfnd borderRadius-x12oqio5 backgroundColor-x18oya0d textAlign-xdpxx8g overflow-xb3r6kr boxShadow-x179fj1","data-style-src":"ExportPanel/index.tsx:40"}),{},{"data-testid":"".concat(X,"-platform"),children:[(0,v.jsx)("div",w(w({},{className:"marginRight-x1db2dqx display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k borderRadius-x12oqio5 flexShrink-x2lah0s","data-style-src":"ExportPanel/index.tsx:93"}),{},{children:ve?(0,v.jsx)(h.default,w({platformName:he,"data-testid":be,id:"".concat(xe,"-platform-icon")},{className:"width-xgd8bvy padding-x1717udv","data-style-src":"ExportPanel/index.tsx:101"})):(0,v.jsx)(y.default,w(w({},{className:"color-xnx9fn3 fontSize-x1pvqxga","data-style-src":"ExportPanel/index.tsx:105"}),{},{name:["far","layer-group"]}))})),(0,v.jsx)("span",w(w({},{className:"fontSize-x1j61zf2 fontWeight-xk50ysn color-x1jsblnb whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv marginRight-xl010v5","data-style-src":"ExportPanel/index.tsx:109"}),{},{children:xe}))]}))]})),(0,v.jsx)(b.default,{filters:F,selectedDateRange:_e}),Y&&me.length>1&&(0,v.jsxs)("div",w(w({},{className:"marginTop-xg87l8a marginBottom-x1iymm2a","data-style-src":"ExportPanel/index.tsx:124"}),{},{"data-testid":"".concat(X,"-group-by-order"),children:[(0,v.jsx)("h3",w(w({},{className:"fontWeight-x1s688f fontSize-xfifm61 color-xd87uto textTransform-xtvhhri marginBottom-x1e56ztr","data-style-src":"ExportPanel/index.tsx:55"}),{},{children:(0,i.language)("Group By Order")})),(0,v.jsx)("h4",w(w({},{className:"fontWeight-xo1l8bm fontSize-xif65rj color-xd87uto marginBottom-x1yztbdb","data-style-src":"ExportPanel/index.tsx:62"}),{},{children:(0,i.language)("Drag to set the order in which your data is grouped and aggregated in the export.")})),(0,v.jsx)(m.default,{list:me,onListChange:ge})]})),(0,x.filterGroupHasSelections)("breakdownFilter",F)&&(0,v.jsx)(g.default,{message:(0,i.language)("For this filter configuration you will not see eCPC, Spend, Adjusted Spend columns in your export file"),preset:"warning",className:"mt-3"})]})),(0,v.jsx)("div",w(w({},{className:"padding-xggk2y7 borderTop-x1gzighp flexShrink-x2lah0s","data-style-src":"ExportPanel/index.tsx:141"}),{},{"data-testid":"".concat(X,"-footer"),children:(0,v.jsxs)("div",w(w({},{className:"display-x78zum5 justifyContent-x13a6bvl","data-style-src":"ExportPanel/index.tsx:151"}),{},{"data-testid":"".concat(X,"-actions"),children:[(0,v.jsx)(f.default,w(w({},{className:"marginRight-x1wsuqlk","data-style-src":"ExportPanel/index.tsx:155"}),{},{onClick:Se,preset:"outline","data-testid":J,children:(0,i.language)("Cancel")})),(0,v.jsx)(f.default,{onClick:function(){var e,t,n,r,o,a,l=(0,s.quickValidate)("isEmail",ae,(0,i.language)("Enter an email address"));if(l)ce(l);else{var c=w(w(w({recipient_email:ae,stat_page:"data_explorer_export",platform:null!==(e=null==te||null===(t=te.selectedPlatform)||void 0===t?void 0:t.platform_name)&&void 0!==e?e:"",df_dmin:null!==(n=null==Ae||null===(r=Ae.min)||void 0===r?void 0:r.timestamp)&&void 0!==n?n:0,df_dmax:null!==(o=null==Ae||null===(a=Ae.max)||void 0===a?void 0:a.timestamp)&&void 0!==o?o:0},function(){return C(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){var n,r,o=null!==(n=t.queryKey)&&void 0!==n?n:t.name;if(!o)return e;var a=(null!==(r=t.options)&&void 0!==r?r:[]).filter(function(e){return T(e)}),i=function(e){return"arrayOfNames"===e.queryTranslator}(t);if(0===a.length)return e;if(a.every(function(e){return"boolean"==typeof e.value})){var l=[];
2if(a.forEach(function(e){e.name.length>0&&l.push(e.name)}),1===l.length){if(i)return e[o]=[l[0]],e;var s=l[0];e[o]=s}return l.length>1&&(e[o]=l),e}var c=[];if(a.forEach(function(e){"string"!=typeof e.value&&"number"!=typeof e.value||c.push(e.value)}),0===c.length)return e;if(1===c.length){if(i)return e[o]=c.map(function(e){return"".concat(e)}),e;var u=c[0];return e[o]=u,e}return i?(e[o]=c.map(function(e){return"".concat(e)}),e):(e[o]=c,e)},{})}(F)),Y?{grouping_order:me.map(function(e){return e.value})}:{}),Z&&!Y?{grouping_order:Z}:{});ue.mutate(c,{onSuccess:function(){(0,s.toastNotification)((0,i.language)("Your export is being prepared and will be with you shortly"),"success"),Se()},onError:function(){(0,s.toastNotification)((0,i.language)("Export failed to process"),"error")}})}},"data-testid":Q,iconRight:["far","download"],children:(0,i.language)("Export CSV")})]}))}))]}))})}},1850:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(14041),o=n(76902),a=n.n(o),i=n(88080),l=n(47087),s=n(55436),c=n(31085),u=a().icon({iconUrl:i,shadowUrl:l,iconAnchor:[12,40]});const d=function(e){var t,n,o=e.locations,i=void 0===o?[]:o,l=e.zoom,d=void 0===l?2:l,f=e.scrollWheelZoom,p=void 0===f||f,m=e.height,g=void 0===m?400:m,y=(0,r.useRef)(null),h=(0,r.useRef)(null),x=(null==i?void 0:i.length)>0&&void 0!==(null===(t=i[0])||void 0===t?void 0:t.lat)&&void 0!==(null===(n=i[0])||void 0===n?void 0:n.lng);return(0,r.useEffect)(function(){if(y.current&&x){h.current&&(h.current.remove(),h.current=null);var e=a().map(y.current,{scrollWheelZoom:p});return a().tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(e),i.forEach(function(t){null!=t&&t.lat&&null!=t&&t.lng&&a().marker([t.lat,t.lng],{icon:u}).addTo(e).bindPopup("\n <b>Title:</b> ".concat(t.title,"<br/>\n <b>Lat:</b> ").concat(t.lat,"<br/>\n <b>Lng:</b> ").concat(t.lng,"\n "))}),i.length>1?e.fitBounds(i.filter(function(e){return e.lat&&e.lng}).map(function(e){return[e.lat,e.lng]})):e.setView([i[0].lat,i[0].lng],d),h.current=e,function(){e.remove(),h.current=null}}},[i,d,p,x]),x?(0,c.jsx)("div",{ref:y,style:{height:g,overflow:"hidden",zIndex:0}}):(0,c.jsx)("div",{style:{height:400,width:800,overflow:"hidden"},children:(0,c.jsx)(s.default,{loading:!0,preset:"dark",size:"responsive"})})}},1929:(e,t,n)=>{"use strict";e.exports=n.p+"2e02bab13f31a55c92cc.svg"},2043:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>M,Eq:()=>R});var r=n(20939),o=n.n(r),a=n(4156),i=n.n(a),l=n(93353),s=n.n(l),c=n(98515),u=n.n(c),d=n(11624),f=n(94121),p=n.n(f),m=n(21881),g=n.n(m),y=n(89748),h=n(69900),x=n(35112);function b(e,t,n){return e.push({ruleName:t,userMessage:n}),e}function v(e,t,n,r){var a=n;return o()(String(e),String(a[String(t.match)]))?r:b(r,"valuesMatch",t.errorMessage||(0,y.A)("Values don't match"))}function A(e,t,n){return i()(String(e))||""===e?n:b(n,"isEmail",t.errorMessage||(0,y.A)("Must be a valid email"))}function _(e,t,n){return s()(String(e))||""===e?n:b(n,"isInt",t.errorMessage||(0,y.A)("Must be a whole number"))}function S(e,t,n){return u()(String(e))||""===e?n:b(n,"isDecimal",t.errorMessage||(0,y.A)("Must be a decimal number"))}function w(e,t,n){return(0,d.Ay)(String(e),"en-GB",{ignore:" "})||""===e?n:b(n,"isAlpha",t.errorMessage||(0,y.A)("Must be letters only"))}function O(e,t,n){return/^(?=.*[a-z])/.test(String(e))||""===e?n:b(n,"hasLowercaseLetter",t.errorMessage||(0,y.A)("Must must contain lower case letter"))}function j(e,t,n){return/^(?=.*[A-Z])/.test(String(e))||""===e?n:b(n,"hasUppercaseLetter",t.errorMessage||(0,y.A)("Must contain an upper case letter"))}function k(e,t,n){return/^(?=.*[!"#$%&()])/.test(String(e))||""===e?n:b(n,"hasSpecialCharacter",t.errorMessage||(0,y.A)("Must be contain a special character"))}function E(e,t,n){return/^(?=.*[0-9])/.test(String(e))||""===e?n:b(n,"hasNumber",t.errorMessage||(0,y.A)("Must contain a number"))}function N(e,t,n){var r=Number(t.match)||8;return String(e).length>=r||""===e?n:b(n,"hasMinimumLength",t.errorMessage||(0,y.A)("Must be min length"))}function I(e,t,n){return/^(?=.*[\s])/.test(String(e))===t.match||""===e?n:b(n,"hasSpaces",t.errorMessage||(0,y.A)("Must not contain space"))}function P(e,t,n){return""!==e&&null!=e?n:b(n,"isNotEmpty",t.errorMessage||(0,y.A)("Must not be empty"))}function T(e,t,n){return 4===(0,x.A)(String(e))||6===(0,x.A)(String(e))||(0,h.ei)(String(e))?n:b(n,"isIpAddress",t.errorMessage||(0,y.A)("Must not contain a valid IP address"))}
2function C(e,t,n){return g()(String(e))||""===e?n:b(n,"isDomain",t.errorMessage||(0,y.A)("Must be a valid domain"))}var R={isEmail:A,isIpAddress:T,valuesMatch:function(e,t,n){return v(e,t,null,n)},isInt:_,isDecimal:S,isAlpha:w,hasLowercaseLetter:O,hasUppercaseLetter:j,hasSpecialCharacter:k,hasNumber:E,hasMinimumLength:N,hasSpaces:I,isDomain:C,isNotEmpty:P};function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=[];return"{}"===JSON.stringify(e)||Object.keys(e).forEach(function(o){"isEmail"===o&&(r=A(t,e[o],r)),"isInt"===o&&(r=_(t,e[o],r)),"isDecimal"===o&&(r=S(t,e[o],r)),"isAlpha"===o&&(r=w(t,e[o],r)),"valuesMatch"===o&&(r=v(t,e[o],n,r)),"hasLowercaseLetter"===o&&(r=O(t,e[o],r)),"hasUppercaseLetter"===o&&(r=j(t,e[o],r)),"hasSpecialCharacter"===o&&(r=k(t,e[o],r)),"hasNumber"===o&&(r=E(t,e[o],r)),"hasMinimumLength"===o&&(r=N(t,e[o],r)),"hasSpaces"===o&&(r=I(t,e[o],r)),"isIpAddress"===o&&(r=T(t,e[o],r)),"isDomain"===o&&(r=C(t,e[o],r)),"isURL"===o&&(r=function(e,t,n){return p()(String(e))||""===e?n:b(n,"isURL",t.errorMessage||(0,y.A)("Must be a valid URL"))}(t,e[o],r)),"isNotEmpty"===o&&(r=P(t,e[o],r))}),r}},2300:(e,t,n)=>{"use strict";n.d(t,{A:()=>m}),n(14041);var r=n(51836),o=n(27333),a=n(88133),i=n(97475),l=n(89748),s=n(24284),c=n(60112),u=n(31085);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m=function(){var e,t=(0,r.g)().id,n=(0,i.jE)();function d(){n.getQueryCache().findAll().forEach(function(e){n.invalidateQueries(e.queryKey)})}var m=(0,o.R7)({nothing:2,id:0}),g=m.filters,y=m.handlePagination,h=m.setFilters,x=(0,o.st)("/workspaces
2/".concat(t,"/mplat_configurations"),g,function(e){var t=null!=e&&e.id?"&id=".concat(e.id):"";null!=e&&e["configurationName.contains"]&&(t+="&name=".concat(e["configurationName.contains"]));var n=Object.keys(null!=e?e:{}).filter(function(t){return t.startsWith("platform.")&&!0===e[t]}).map(function(e){return e.slice(9)});return n.length>0&&(t+="&platform=".concat(JSON.stringify(n))),t},{noPlatform:!0}),b=x.data,v=x.isLoading,A=(0,o.R7)({id:0}),_=A.filters,S=A.handlePagination,w=A.setFilters,O=(0,o.st)("/workspaces/mplat_configurations",_,function(e){return null!=e&&e.id?"&id=".concat(e.id):""}),j=O.data,k=O.isLoading,E=(0,a.gC)("/workspaces/".concat(t,"/mplat_configurations"),"POST"),N=(0,a.Ay)("/settings/supported-platforms"),I=N.data,P=N.isLoading,T=(0,o.st)("/settings/configured-platforms",g).data;function C(e){E.mutate({_method:"POST",mplat_configurations:e},{onSuccess:function(){d(),(0,s.A)((0,l.A)("The platform was added."),"success")},onError:function(){}})}var R=(0,a.gC)("/workspaces/".concat(t,"/mplat_configurations"),"DELETE"),M=(0,a.gC)("/settings/create-platform","POST");return(0,u.jsx)(c.A,{data:null==b?void 0:b.result,isLoading:v&&P,handlePagination:y,onFilterChange:h,filters:g,onAddMplatConfiguration:C,onRemoveAccount:function(e){R.mutate({_method:"DELETE",mplat_configurations:e},{onSuccess:function(){d(),(0,s.A)((0,l.A)("The platform was removed."),"success")},onError:function(){}})},nonAssignedMplatAPIResponse:null==j?void 0:j.result,isLoadingNonAssigned:k,handlePaginationNonAssigned:S,filtersNonAssigned:_,setFiltersNonAssigned:w,supportedPlatforms:(null==I||null===(e=I.result)||void 0===e?void 0:e.data)||[],configuredPlatforms:null==T?void 0:T.result,createMplat:function(e){M.mutate(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{onSuccess:function(t){var n;d(),C([{configuration_id:null==t||null===(n=t.data)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.configuration_id,platform_id:e.platform_id}])},onError:function(){(0,s.A)((0,l.A)("Something went wrong!"),"error")}})}})}},2315:(e,t,n)=>{"use strict";e.exports=n.p+"c76eda78a8f7bd33ebeb.svg"},2492:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=h(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(60156),s=h(n(79135)),c=h(n(9260)),u=h(n(37157)),d=h(n(1841)),f=h(n(12502)),p=h(n(77223)),m=n(4386),g=h(n(26614)),y=n(31085);function h(e){return e&&e.__esModule?e:{default:e}}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=o.default;w(".display-x78zum5{display:flex}",3e3),w(".flexDirection-xdt5ytf{flex-direction:column}",3e3),w(".gap-xou54vl{gap:16px}",2e3),w(".paddingBottom-x18d9i69{padding-bottom:0}",4e3),w(".justifyContent-x1qughib{justify-content:space-between}",3e3),w(".alignItems-x6s0dn4{align-items:center}",3e3),w(".display-x1lliihq{display:block}",3e3),w(".display-x1s85apg{display:none}",3e3),w(".height-x1vqgdyp{height:40px}",4e3),w(".width-xw22qcb{width:179px}",4e3),w(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),w(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),w(".borderRadius-xur7f20{border-radius:8px}",2e3),w(".paddingLeft-x1k8dnhd{padding-left:18px}",4e3),w(".paddingRight-x18a8kpn{padding-right:18px}",4e3),w(".cursor-x1ypdohk{cursor:pointer}",3e3),w(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),w(".fontSize-x1j61zf2{font-size:16px}",3e3),w(".fontWeight-x1s688f{font-weight:600}",3e3),w(".marginLeft-x1swdo50{margin-left:2px}",4e3),w(".color-xqi5lc6{color:var(--black300-xmkl1o)}",3e3),w(".gap-x167g77z{gap:8px}",2e3),w(".marginRight-xl010v5{margin-right:4px}",4e3);var O={content:{display:"display-x1s85apg",$$css:"FilterPanel/index.tsx:37"},expanded:{display:"display-x1lliihq",$$css:"FilterPanel/index.tsx:40"}};function j(e){var t=e.filters,n=e.setFilters,r=e.contentRight,o=_((0,a.useState)(!0),2),d=o[0],f=o[1],h=_((0,a.useState)(t),2),x=h[0],v=h[1],S=(0,m.getFilterTestId)("filter-panel","filter-panel"),w=(0,m.getFilterTestId)((0,l.language)("Show Filter Panel"),"filter-panel-toggle"),j=(0,m.getFilterTestId)((0,l.language)("Update Filters"),"filter-panel-action");(0,a.useEffect)(function(){v(t)},[t]);var k=(0,m.haveFiltersChanged)(x,t)?"primary":"outline";return(0,y.jsxs)("div",b(b({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-xou54vl paddingBottom-x18d9i69","data-style-src":"FilterPanel/index.tsx:23"}),{},{"data-testid":S,children:[(0,y.jsxs)("div",b(b({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4","data-style-src":"FilterPanel/index.tsx:29"}),{},{"data-testid":"".concat(S,"-header"),children:[(0,y.jsx)("div",b(b({},{className:"display-x1lliihq","data-style-src":"FilterPanel/index.tsx:34"}),{},{children:(0,y.jsxs)("button",b(b({type:"button",onClick:function(){return f(!d)}},{className:"height-x1vqgdyp width-xw22qcb display-x78zum5 alignItems-x6s0dn4 justifyContent-x1qughib backgroundColor-x18oya0d border-x180m19u borderRadius-xur7f20 paddingLeft-x1k8dnhd paddingRight-x18a8kpn cursor-x1ypdohk color-x5tu7p5 fontSize-x1j61zf2 fontWeight-x1s688f","data-style-src":"FilterPanel/index.tsx:43"}),{},{"data-testid":w,children:[(0,y.jsxs)("span",{className:"display-x78zum5 alignItems-x6s0dn4 gap-x167g77z",children:[(0,y.jsx)(s.default,{name:"bars-filter",className:"fontSize-x1j61zf2 color-xqi5lc6 marginRight-xl010v5"}
2),(0,l.language)("Filter Panel")]}),(0,y.jsx)(s.default,{name:d?"chevron-down":"chevron-up",className:"marginLeft-x1swdo50 color-xqi5lc6"})]}))})),(0,y.jsx)("div",{children:r})]})),(0,y.jsxs)("div",b(b({},i.props(O.content,d&&O.expanded)),{},{"data-testid":"".concat(S,"-content"),children:[(0,y.jsx)(u.default,{filters:x,setFilters:v,showGroupLabels:!0}),(0,y.jsx)("div",{className:"flex justify-start mt-4","data-testid":"".concat(S,"-actions"),children:(0,y.jsx)(c.default,{size:"sm",preset:k,onClick:function(){var e,t=(e=x).reduce(function(e,t){var n,r;return null!==(n=null===(r=t.options)||void 0===r?void 0:r.some(function(e){return!(!(t=e.validationErrors)||"object"!==A(t))&&Object.keys(t).length>0;var t}))&&void 0!==n&&n?(0,m.clearFilter)(e,t.name):e},e);v(t),n(t)},"data-testid":j,children:(0,l.language)("Update Filters")})})]})),(0,y.jsx)(p.default,{className:"mt-3"}),(0,y.jsx)(g.default,{filters:t,setFilters:function(e){v(e),n(e)}})]}))}j.displayName="FilterPanel",j.FilterGroups=u.default,j.ExportPanel=d.default,j.PreDefinedExports=f.default,j.utils={shouldShowFilter:m.shouldShowFilter,filterOptionHasValue:m.filterOptionHasValue,filterGroupHasSelections:m.filterGroupHasSelections},t.A=j},2702:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(93033),o=n(32420),a=n(31085);const i=function(){return(0,a.jsx)(r.A,{impersonatingOnly:!0,children:(0,a.jsx)(o.A,{})})}},3036:(e,t,n)=>{"use strict";e.exports=n.p+"8136bcff53a2e867e98a.svg"},3078:(e,t,n)=>{"use strict";e.exports=n.p+"747ca19c89edc2f98145.svg"}
2,3343:(e,t,n)=>{"use strict";e.exports=n.p+"57848da60bf0d639bd06.svg"},3373:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(66773),s=n(24284),c=n(9260),u=n(62720),d=n(13571),f=n(30021),p=n(99018),m=n(88133),g=n(31085);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A=(0,p.createUseStyles)(function(e){return{content:{fontWeight:"normal"},subcontent:{marginTop:e.spacing[3]},button:{marginRight:e.spacing[2]},colourBlock:{marginTop:24,width:"100%",padding:16,borderRadius:8,backgroundColor:e.colors.grey[50]}}});function _(e){var t=e.selectedAccounts,n=void 0===t?[]:t,o=b((0,r.useState)(!1),2),a=o[0],p=o[1],y=b((0,r.useState)("accounts"),1)[0],v=b((0,r.useState)(""),2),_=v[0],S=v[1],w=b((0,r.useState)([]),2),O=w[0],j=w[1],k=A(),E=(null==n?void 0:n.length)||(0,i.A)("all"),N=(0,m.gC)("/ip/blacklist","POST");function I(){S(""),j([])}return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(c.default,{id:"add-ip-to-exclusions-button-open",onClick:function(){return p(!0)},preset:"outline",iconRight:["far","download"],"data-testid":"exclusion-button",className:k.button,children:(0,i.A)("Add IP")}),(0,g.jsxs)(d.default,{open:a,onClose:function(){return p(!1)},className:k.content,children:[(0,g.jsx)(d.default.Header,{title:(0,i.A)("Add IP Exclusions")}),(0,g.jsxs)(d.default.Content,{children:[(0,g.jsx)(f.default,{preset:"formSectionTitle",as:"h6",className:"mb-3",children:(0,i.A)("You have selected :count Google account:s",{count:E,s:E>1||"all"===E?"s":""})}),(0,g.jsx)(u.default,{name:"ip_address",type:"text",onFormValue:function(e){S(e.value)},id:"ip-to-exclude-input","data-testId":"ip-to-exclude-input",placeholder:(0,i.A)("Enter IP Address"),value:_,errors:O,showErrors:!0}),(0,g.jsxs)(f.default,{className:k.subcontent,children:[(0,g.jsx)("strong",{children:(0,i.A)("Examples")})," ",(0,g.jsx)("br",{}),"123.1.5.67"," ",(0,g.jsx)("br",{}),"2620:0:1003:1011:fa1e:dfff:fee6:2711"," "]}),(0,g.jsx)(f.default,{className:k.colourBlock,children:(0,i.A)("Lunio applies a maximum of 500 IP Exclusions at Account level. Adding addresses manually may remove IP addresses added by our system.")}),(0,g.jsx)(f.default,{preset:"subText",className:"mt-3",children:(0,i.A)("A maximum of 50 IP addresses can be manually excluded.")})]}),(0,g.jsxs)(d.default.Actions,{children:[(0,g.jsx)(c.default,{id:"add-ip-to-exclusions-button-cancel",onClick:function(){p(!1),I()},preset:"outline","data-testid":"exclusion-close-button",children:(0,i.A)("Cancel")}),(0,g.jsx)(c.default,{id:"add-ip-to-exclusions-button-submit",onClick:function(){return function(){var e=(0,l.A)("isIpAddress",_.replaceAll("*",0),(0,i.A)("Must be a valid ip address")),t=[];if(n&&n.length>0&&(t=n),e)j(e);else{j([]);var r={flag:9e3,ips:_,reason:9e3,apply_to:y,customer_ids:t};N.mutate(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?h(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({_method:"POST"},r),{onSuccess:function(e){var t;(0,s.A)(null==e||null===(t=e.data)||void 0===t?void 0:t.message,"success"),I()},onError:function(){(0,s.A)((0,i.A)("Something went wrong!"),"error")}}),p(!1)}}()},"data-testid":"exclusion-submit-button",children:(0,i.A)("Apply Exclusions")})]})]})]})}_.propTypes={selectedAccounts:a().array};const S=_},3448:(e,t,n)=>{"use strict";n.d(t,{A:()=>S}),n(14041);var r=n(89748),o=n(19863),a=n(27333),i=n(17419),l=n(28426),s=n(96956),c=n(27805),u=n(62161),d=n(96182),f=n(93033),p=n(99226),m=n(89541),g=n(13497),y=n(31085);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const S=function(e){var t,n,h,x,v,S,w,O,j=e.filters,k=e.onFilterChange,E=e.handlePagination,N=e.handleSort,I="google"===(null===(t=(w=(0,d.A)(),O=1,function(e){if(Array.isArray(e))return e}(w)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(w,O)||A(w,O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].selectedPlatform)||void 0===t?void 0:t.platform_name),P=I?"/analytics/fraud-stats/account":"/platform/analytics/campaigns",T=(0,p.A)(),C=T.lunioStatus,R=T.activePlatform,M="TRIAL"===C,L=b(b(b({},j),j["search.contains"]&&{search:j["search.contains"]}),I&&j["campaign_id.contains"]&&{campaign_id:j["campaign_id.contains"]}),D=[{label:(0,r.A)("Campaign Name"),name:"search",type:"radio",options:[{label:(0,r.A)("Contains"),name:"contains",type:"text"}]}].concat(function(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(I?[{label:(0,r.A)("Campaign ID"),name:"campaign_id",type:"radio",options:[{label:(0,r.A)("Contains"),name:"contains",type:"text"}]}]:[])),B=(0,a.st)(P,L),U=B.data,F=B.isLoading;return(0,y.jsxs)(l.A.Page,{type:"main",children:[(0,y.jsx)(c.default,{title:"".concat((0,r.A)("Ad Stats")," - ").concat((0,r.A)("Campaign")),text:(0,r.A)("See which interactions with your ads triggered an invali
2d flag within the Lunio system."),contentRight:(0,y.jsx)(g.A,{filters:j,exportType:I?"google_campaign":"mplat_campaign"})}),(0,y.jsx)(m.A,{filters:j,onFilterChange:k,filterConfig:D}),(0,y.jsx)("div",{className:"mt-4"}),(0,y.jsx)(u.A,{rows:I?null==U||null===(n=U.result)||void 0===n?void 0:n.data:null==U?void 0:U.data,isLoading:F,totalItems:(null==U||null===(h=U.result)||void 0===h||null===(h=h.pagination)||void 0===h?void 0:h.total)||(null==U||null===(x=U.pagination)||void 0===x?void 0:x.total),totalPages:I?null==U||null===(v=U.result)||void 0===v||null===(v=v.pagination)||void 0===v?void 0:v.last_page:null==U||null===(S=U.pagination)||void 0===S?void 0:S.last_page,pageNumber:j.page,handlePagination:E,handleSorting:N,limit:j.limit,sorting:{sortKey:j.sortKey,sortOrder:j.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"affiliate"===R?(0,r.A)("Affiliate"):(0,r.A)("Campaign")}),(0,y.jsx)(f.A,{platforms:["google"],children:(0,y.jsx)("th",{children:(0,r.A)("Campaign ID")})}),(0,y.jsx)(f.A,{platforms:["google"],children:(0,y.jsx)("th",{children:(0,r.A)("Account Name")})}),(0,y.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,r.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,r.A)("Legitimate")}),(0,y.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,r.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,r.A)("Suspicious")}),(0,y.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,r.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,r.A)("SIVT Clicks")}),(0,y.jsx)(f.A,{AND:!M,children:(0,y.jsx)("th",{"data-testid":"givt","data-tooltip":(0,r.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,r.A)("GIVT Clicks")})}),(0,y.jsx)("th",{"data-tooltip":(0,r.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,r.A)("Total IVT")}),(0,y.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,r.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,r.A)("Total Clicks")}),(0,y.jsx)("th",{"data-tooltip":(0,r.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,r.A)("All Tracked Clicks")}),(0,y.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,r.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,r.A)("SIVT Clicks %")}),(0,y.jsx)("th",{"data-tooltip":(0,r.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,r.A)("Total IVT %")}),(0,y.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,r.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,r.A)("Health")})]})}),(0,y.jsxs)("tbody",{children:[(0,y.jsx)("td",{children:I?null==e?void 0:e.name:null==e?void 0:e.campaign_name}),(0,y.jsx)(f.A,{platforms:["google"],children:(0,y.jsx)("td",{children:null==e?void 0:e.campaign_id})}),(0,y.jsx)(f.A,{platforms:["google"],children:(0,y.jsx)("td",{children:null==e?void 0:e.customer_name})}),(0,y.jsx)("td",{children:(0,y.jsx)(i.A,{type:"legitimate",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_protected)})}),(0,y.jsx)("td",{children:(0,y.jsx)(i.A,{type:"suspicious",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_suspicious)})}),(0,y.jsx)("td",{children:(0,y.jsx)(i.A,{type:"invalid",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,y.jsx)(f.A,{AND:!M,children:(0,y.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,y.jsx)("td",{children:(0,o.m)(null==e?void 0:e.total_ivt)}),(0,y.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_total)}),(0,y.jsx)("td",{children:(0,o.m)(null==e?void 0:e.all_tracked_clicks)}),(0,y.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,y.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,y.jsx)("td",{children:(0,y.jsx)(s.A,{health:null==e?void 0:e.health})})]})]})}})]})}},3475:(e,t,n)=>{"use strict";e.exports=n.p+"35ee55dae83d979faf5d.svg"},3515:(e,t,n)=>{"use strict";n.d(t,{A:()=>c}),n(14041);var r=n(89748),o=n(88133),a=n(80111),i=n(59250),l=n(31085);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(){var e,t,n,c,u,d=(c=(0,a.A)(),u=1,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(c,u)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(c,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],f=(0,o.Ay)("/affiliates/key-metrics?df_dmin=".concat(null==d||null===(e=d.dataFilterDates)||void 0===e||null===(e=e.min)||void 0===e?void 0:e.timestamp,"&df_dmax=").concat(null==d||null===(t=d.dataFilterDates)||void 0===t||null===(t=t.max)||void 0===t?void 0:t.timestamp,"&df_interval=day&platform=affiliate\n&recalc=1")),p=f.data,m=f.isLoading,g=null==p||null===(n=p.result)||void 0===n?void 0:n.data;return(0,l.jsx)(i.A,{isLoading:m,title:(0,r.A)("Key Metrics"),total:{title:(0,r.A)("Total Conversions"),count:null==g?void 0:g.total_conversions,icon:["far","filter"]},invalid:{title:(0,r.A)("Invalid Conversions"),count:null==g?void 0:g.invali
2d_conversions,icon:["far","triangle-exclamation"]},ivt:{title:(0,r.A)("Invalid Conversion Rate%"),count:null==g?void 0:g.invalid_conversion_percent,icon:["far","chart-pie"]}})}},3742:(e,t,n)=>{"use strict";e.exports=n.p+"23f45096f02672e7f812.svg"},3965:(e,t,n)=>{"use strict";e.exports=n.p+"aaee085192801260496d.svg"},4109:(e,t,n)=>{"use strict";e.exports=n.p+"edc7be6abbeaff523a73.svg"},4161:(e,t,n)=>{"use strict";n.d(t,{A:()=>O}),n(14041);var r=n(24131),o=n(89748),a=n(72686),i=n(55436),l=n(17419),s=n(28426),c=n(96956),u=n(27805),d=n(19863),f=n(27333),p=n(62161),m=n(96182),g=n(93033),y=n(99226),h=n(89541),x=n(13497),b=n(31085);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const O=function(e){var t,n,v,A,S,O,j,k=e.filters,E=e.onFilterChange,N=e.handlePagination,I=e.handleSort,P="google"===(null===(t=(O=(0,m.A)(),j=1,function(e){if(Array.isArray(e))return e}(O)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(O,j)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(O,j)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].selectedPlatform)||void 0===t?void 0:t.platform_name),T="TRIAL"===(0,y.A)().lunioStatus,C=(0,f.st)("/analytics/fraud-stats/account",_(_({},k),{},{type:"kws"},k["search.contains"]&&{search:k["search.contains"]})),R=C.data,M=C.isLoading,L=(0,f.st)("/analytics/fraud-stats/account",_(_({},k),{},{type:"kws",limit:1e3,page:1},k["search.contains"]&&{search:k["search.contains"]})),D=L.data,B=L.isLoading,U=[{label:(0,o.A)("Keyword"),name:"search",type:"radio",options:[{label:(0,o.A)("Contains"),name:"contains",type:"text"}]}];return(0,b.jsxs)(s.A.Page,{type:"main",children:[(0,b.jsx)(u.default,{title:"".concat((0,o.A)("Ad Stats")," - ").concat((0,o.A)("Keyword")),text:(0,o.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,b.jsx)(x.A,{filters:k,exportType:P?"google_keyword":"mplat_keyword"})}),(0,b.jsx)(h.A,{filters:k,onFilterChange:E,filterConfig:U}),(0,b.jsx)(a.default,{className:"p-6",children:(0,b.jsx)(i.default,{loading:B,preset:"dark",size:"responsive",height:400,children:(0,b.jsx)(r.default,{isLoading:B,data:(null==D||null===(n=D.result)||void 0===n?void 0:n.data.map(function(e){return{total:e.clicks_total,fraudulent:e.clicks_fraudulent/e.clicks_total*100,rawFraudulent:e.clicks_fraudulent,label:e.kw||e.pl||e.placement||e.name,matchType:e.mt||e.advertising_channel_type}}))||[],xTitle:(0,o.A)("Number of Clicks"),yTitle:(0,o.A)("SIVT Percentage")})})}),(0,b.jsx)("div",{className:"mt-8"}),(0,b.jsx)(p.A,{rows:null==R||null===(v=R.result)||void 0===v?void 0:v.data,isLoading:M,totalPages:null==R||null===(A=R.result)||void 0===A||null===(A=A.pagination)||void 0===A?void 0:A.last_page,totalItems:null==R||null===(S=R.result)||void 0===S||null===(S=S.pagination)||void 0===S?void 0:S.total,pageNumber:k.page,handlePagination:N,handleSorting:I,limit:k.limit,sorting:{sortKey:k.sortKey,sortOrder:k.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:(0,o.A)("Keyword")}),(0,b.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,o.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,o.A)("Legitimate")}),(0,b.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,o.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,o.A)("Suspicious")}),(0,b.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,o.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,o.A)("SIVT Clicks")}),(0,b.jsx)(g.A,{AND:!T,children:(0,b.jsx)("th",{"data-testid":"givt","data-tooltip":(0,o.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,o.A)("GIVT Clicks")})}),(0,b.jsx)("th",{"data-tooltip":(0,o.A)("The total number of clicks Lunio has identified as invali
2d, including both GIVT and SIVT."),children:(0,o.A)("Total IVT")}),(0,b.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,o.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,o.A)("Total Clicks")}),(0,b.jsx)("th",{"data-tooltip":(0,o.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,o.A)("All Tracked Clicks")}),(0,b.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,o.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,o.A)("SIVT Clicks %")}),(0,b.jsx)("th",{"data-tooltip":(0,o.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,o.A)("Total IVT %")}),(0,b.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,o.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,o.A)("Health")})]})}),(0,b.jsxs)("tbody",{children:[(0,b.jsx)("td",{children:null==e?void 0:e.kw}),(0,b.jsx)("td",{children:(0,b.jsx)(l.A,{type:"legitimate",size:"sm",textRight:(0,d.m)(null==e?void 0:e.clicks_protected)})}),(0,b.jsx)("td",{children:(0,b.jsx)(l.A,{type:"suspicious",size:"sm",textRight:(0,d.m)(null==e?void 0:e.clicks_suspicious)})}),(0,b.jsx)("td",{children:(0,b.jsx)(l.A,{type:"invalid",size:"sm",textRight:(0,d.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,b.jsx)(g.A,{AND:!T,children:(0,b.jsx)("td",{children:(0,d.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,b.jsx)("td",{children:(0,d.m)(null==e?void 0:e.total_ivt)}),(0,b.jsx)("td",{children:(0,d.m)(null==e?void 0:e.clicks_total)}),(0,b.jsx)("td",{children:(0,d.m)(null==e?void 0:e.all_tracked_clicks)}),(0,b.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,b.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,b.jsx)("td",{children:(0,b.jsx)(c.A,{health:null==e?void 0:e.health})})]})]})}})]})}},4162:(e,t,n)=>{"use strict";e.exports=n.p+"d25f2ce91925ea7caef0.svg"},4186:(e,t,n)=>{"use strict";e.exports=n.p+"4c51c77aa02fdb3b8de8.svg"},4208:(e,t,n)=>{"use strict";e.exports=n.p+"2889e1462e52f746c8d8.svg"},4386:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.r(t),n.d(t,{SELECT_ALL_OPTION_NAME:()=>u,clearAllFilters:()=>j,clearFilter:()=>O,filterGroupHasSelections:()=>w,filterOptionHasValue:()=>k,getFilterGroupByName:()=>_,getFilterTestId:()=>E,haveFiltersChanged:()=>m,isSelectAllOption:()=>x,shouldShowFilter:()=>S,shouldShowSelectAllOption:()=>h,sortFilterOptions:()=>y,updateFilter:()=>b,updateFilterOptions:()=>A,updateFilters:()=>v});var u="__filter_panel_select_all__";function d(e){return e.defaultState}function f(e){var t;return!(null==e||null===(t=e.options)||void 0===t||!t.length)&&e.options.some(function(e){var t=e.value;return"boolean"==typeof t?t:"string"==typeof t?t.trim().length>0:null!=t})}function p(e){var t=new Map;return e.forEach(function(e){var n,r;
2t.set(e.name,(n=e.options,r=new Map,null==n||n.forEach(function(e){r.set(e.name,e.value)}),r))}),t}function m(e,t){var n=p(e),r=p(t);return n.size!==r.size||Array.from(n.entries()).some(function(e){var t=l(e,2),n=t[0],o=t[1],a=r.get(n);return!a||o.size!==a.size||Array.from(o.entries()).some(function(e){var t=l(e,2),n=t[0],r=t[1];if(!a.has(n))return!0;var o=a.get(n);return!Object.is(r,o)})})}function g(e){var t,n,r=null===(t=e.label)||void 0===t?void 0:t.trim(),o=null!==(n=e.name)&&void 0!==n?n:"";return"".concat(r||o).toLowerCase()}function y(e,t){return"asc"!==t&&"desc"!==t?e:(n=e,function(e){if(Array.isArray(e))return c(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||s(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,n){var r=g(e),o=g(n),a=r.localeCompare(o,void 0,{numeric:!0,sensitivity:"base"});return"asc"===t?a:-1*a});var n}function h(e){return!0===e.hasSelect||!0===e.hasSelectAll}function x(e){return e===u}function b(e,t){return e.map(function(e){return e.name===t.name?t:e})}function v(e,t){var n=new Map(t.map(function(e){return[e.name,e]}));return e.map(function(e){var t;return null!==(t=n.get(e.name))&&void 0!==t?t:e})}function A(e,t,n){return e.map(function(e){return e.name===t?a(a({},e),{},{options:n}):e})}function _(e,t){var n;return null===(n=e.find(function(e){var n;return(null===(n=e.filterGroup)||void 0===n?void 0:n.name)===t}))||void 0===n?void 0:n.filterGroup}function S(e,t){var n;return null===(n=e.filterTreeLogic)||void 0===n||!n.dependantFilters||e.filterTreeLogic.dependantFilters.every(function(e){var n,r,o,a,i=t.find(function(t){return t.name===e.filterName}),l=Boolean(i),s=!!i&&S(i,t),c=!0!==e.mustBeVisible||s,u=!0!==e.mustNotBeVisible||!s,d=!f(i),p=!0===e.orHasNoSelections&&d,m=null!==(n=e.mustHaveAnyOfValues)&&void 0!==n?n:[],g=null!==(r=e.orHasAnyOfValues)&&void 0!==r?r:[],y=null!==(o=e.mustHaveExactValues)&&void 0!==o?o:[],h=null!==(a=e.mustNotHaveAnyOfValues)&&void 0!==a?a:[],x=m.length>0,b=g.length>0,v=y.length>0,A=h.length>0,_=!1,w=!1,O=!1;x&&(_=m.some(function(e){var t,n=null==i||null===(t=i.options)||void 0===t?void 0:t.find(function(t){return t.name===e.optionName});return(null==n?void 0:n.value)===e.value})),b&&(w=g.some(function(e){var t,n=null==i||null===(t=i.options)||void 0===t?void 0:t.find(function(t){return t.name===e.optionName});return(null==n?void 0:n.value)===e.value})),v&&(O=y.every(function(e){var t,n=null==i||null===(t=i.options)||void 0===t?void 0:t.find(function(t){return t.name===e.optionName});return(null==n?void 0:n.value)===e.value}));var j=!Boolean(x||b||v)||_||w||O,k=h.some(function(e){var t,n=null==i||null===(t=i.options)||void 0===t?void 0:t.find(function(t){return t.name===e.optionName});return(null==n?void 0:n.value)===e.value});return!(!(l&&c&&u)||!w&&!p&&(!j||A&&k))})}function w(e,t){return t.some(function(t){var n;return!((null===(n=t.filterGroup)||void 0===n?void 0:n.name)!==e)&&f(t)})}function O(e,t){return e.map(function(e){var n=d(e);return e.name===t&&e.options?a(a({},e),{},{options:e.options.map(function(e){var t;return t=(null==n?void 0:n.name)===e.name?n.value:"boolean"!=typeof e.value&&"",a(a({},e),{},{value:t})})}):e})}function j(e){return e.map(function(e){var t;return a(a({},e),{},{options:null===(t=e.options)||void 0===t?void 0:t.map(function(t){var n,r=d(e);return n=(null==r?void 0:r.name)===t.name?r.value:"boolean"!=typeof t.value&&"",a(a({},t),{},{value:n})})})})}function k(e,t,n,r){var o,a=e.find(function(e){return e.name===t}),i=null==a||null===(o=a.options)||void 0===o?void 0:o.find(function(e){return e.name===n});return(null==i?void 0:i.value)===r}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"filter",n=(null!=e?e:"").toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"unknown";return"".concat(t,"-").concat(n)}},4414:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=u(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=u(n(4186)),s=u(n(72297)),c=n(31085);function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=o.default;y(".position-x1n2onr6{position:relative}",3e3),y(".width-x8yj6t5{width:20%}",4e3),y(".height-xoverlg{height:20%}",4e3),y(".display-x3nfvp2{display:inline-flex}",3e3),y(".position-x10l6tqk{position:absolute}",3e3),y(".width-xh8yej3{width:100%}",4e3),y(".bottom-xfwxh34{bottom:-50px}",4e3),y(".textAlign-x2b8uid{text-align:center}",3e3),y(".fontFamily-xjc5pbd{font-family:Axiforma,sans-serif}",3e3),y(".fontSize-xosj86m{font-size:18px}",3e3),y(".color-x4g5gcn{color:var(--black800-x1ueousw)}",3e3),y(".visibility-xnpuxes{visibility:visible}",3e3),y(".visibility-xlshs6z{visibility:hidden}",3e3);var h={visible:{visibility:"visibility-xnpuxes",$$css:"LunioLoaderAnimation/index.tsx:31"},hidden:{visibility:"visibility-xlshs6z",$$css:"LunioLoaderAnimation/index.tsx:34"}};function x(e){var t,n,r=e.message,o=void 0===r?"":r,u=(t=(0,a.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],f=u[1];return(0,c.jsxs)("div",p(p({},{className:"position-x1n2onr6 width-x8yj6t5 height-xoverlg display-x3nfvp2","data-style-src":"LunioLoaderAnimation/index.tsx:8"}),{},{children:[(0,c.jsx)("div",p(p({},{className:"position-x10l6tqk width-xh8yej3","data-style-src":"LunioLoaderAnimation/index.tsx:23"}),{},{children:(0,c.jsx)("img",p({width:"100%",alt:"*",src:l.default},i.props(d?h.visible:h.hidden)))})),(0,c.jsx)("div",p(p({},{className:"position-x10l6tqk width-xh8yej3","data-style-src":"LunioLoaderAnimation/index.tsx:27"}),{},{children:(0,c.jsx)("img",p(p({width:"100%",alt:"*",src:s.default},i.props(d?h.visible:h.hidden)),{},{onLoad:function(){f(!0)}}))})),(0,c.jsx)("div",p(p({},{className:"position-x10l6tqk width-xh8yej3 bottom-xfwxh34 textAlign-x2b8uid fontFamily-xjc5pbd fontSize-xosj86m color-x4g5gcn","data-style-src":"LunioLoaderAnimation/index.tsx:14"}),{},{children:o}))]}))}x.displayName="LunioLoaderAnimation",t.A=x},4665:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=x(n(25751)),a=n(14041),i=x(n(57553)),l=n(60156),s=n(18141),c=n(45647),u=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),d=x(n(93513)),f=x(n(79135)),p=x(n(1781)),m=x(n(30021)),g=x(n(62720)),y=x(n(9260));n(55112),n(13159);var h=n(31085);function x(e){return e&&e.__esModule?e:{default:e}}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}var v=["value","instanceId","onFormValue","onRangeChange","selectedOption","maxRangeDays","ranges","includeTodayInRange"];function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var E=o.default;E(".position-x1n2onr6{position:relative}",3e3),E(".width-xezivpi{width:max-content}",4e3),E(".display-x78zum5{display:flex}",3e3),E(".height-xn3w4p2{height:44px}",4e3),E(".zIndex-x1vjfegm{z-index:1}",3e3),E(".borderRadius-xur7f20{border-radius:8px}",2e3),E(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),E(".alignItems-x6s0dn4{align-items:center}",3e3),E(".paddingLeft-xf18ygs{padding-left:12px}",4e3),E(".paddingRight-x18a8kpn{padding-right:18px}",4e3),E(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),E(".fontSize-x1j61zf2{font-size:16px}",3e3),E(".boxSizing-x9f619{box-sizing:border-box}",3e3),E(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}
2",1e3),E(".cursor-x1ypdohk{cursor:pointer}",3e3),E(".marginRight-x1wsuqlk{margin-right:12px}",4e3),E(".color-xqi5lc6{color:var(--black300-xmkl1o)}",3e3),E(".fontSize-xosj86m{font-size:18px}",3e3),E(".position-x10l6tqk{position:absolute}",3e3),E(".zIndex-x11uqc5h{z-index:100}",3e3),E(".top-xbssg55{top:50px}",4e3),E(".right-x3m8u43{right:0}",4e3),E(".minHeight-x11md1zd{min-height:100px}",4e3),E(".width-x1rpcrrh{width:676px}",4e3),E(".overflow-xb3r6kr{overflow:hidden}",2e3),E(".width-xfejy7t{width:430px!important}",4e3),E(".width-x107s8ep{width:153px!important}",4e3),E(".flexShrink-x2lah0s{flex-shrink:0}",3e3),E(".flexGrow-x1c4vz4f{flex-grow:0}",3e3),E(".width-xrostsh{width:150px}",4e3),E(".padding-xfawy5m{padding:4px}",1e3),E(".paddingTop-xz9dl7a{padding-top:12px}",4e3),E(".paddingBottom-xsag5q8{padding-bottom:12px}",4e3),E(".height-x5yr21d{height:100%}",4e3),E(".height-xc9qbxq{height:36px}",4e3),E(".width-xh8yej3{width:100%}",4e3),E(".color-x75csi3{color:var(--black400-x1u7ngzx)}",3e3),E(".borderRadius-x12oqio5{border-radius:4px}",2e3),E(".paddingRight-xnuq7ks{padding-right:12px}",4e3),E(".fontSize-xif65rj{font-size:14px}",3e3),E(".fontWeight-xk50ysn{font-weight:500}",3e3),E(".marginBottom-x12nagc{margin-bottom:4px}",4e3),E(".color-x1hxxw9p:hover{color:var(--black900-x1vm5mv1)}",3130),E(".cursor-x1277o0a:hover{cursor:pointer}",3130),E(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3),E(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),E(".flexDirection-xdt5ytf{flex-direction:column}",3e3),E(".justifyContent-x1qughib{justify-content:space-between}",3e3),E(".flex-x98rzlu{flex:1}",2e3),E(".width-x1wrwqlu{width:524px}",4e3),E(".height-x1jmesrl:first-child{height:100%}",4052),E(".width-x1fepime{width:278px}",4e3),E(".justifyContent-xl56j7k{justify-content:center}",3e3),E(".paddingLeft-xnm25rq{padding-left:16px}",4e3),E(".paddingRight-xyfqnmn{padding-right:16px}",4e3),E(".display-x3nfvp2{display:inline-flex}",3e3),E(".height-xnnlda6{height:56px}",4e3),E(".borderTop-x3uyll0{border-top:solid 1px var(--gray300-x1xk3734)}",2e3),E(".borderRight-xxnq8bf{border-right:solid 1px var(--gray300-x1xk3734)}",2e3),E(".color-x1pjugul{color:var(--grey500-xcup54l)}",3e3),E(".fontSize-x1eqnyfr{font-size:var(--font-size-sm)}",3e3),E(".fontWeight-xxz3jql{font-weight:var(--font-weight-sm)}",3e3),E(".marginRight-x1db2dqx{margin-right:8px}",4e3),E(".display-x1s85apg{display:none}",3e3),E(".marginLeft-x1tpqehw{margin-left:12px}",4e3);var N={datepickerButton:{height:"height-xn3w4p2",zIndex:"zIndex-x1vjfegm",width:"width-xezivpi",borderRadius:"borderRadius-xur7f20",backgroundColor:"backgroundColor-x18oya0d",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",paddingLeft:"paddingLeft-xf18ygs",paddingRight:"paddingRight-x18a8kpn",color:"color-x5tu7p5",fontSize:"fontSize-x1j61zf2",boxSizing:"boxSizing-x9f619",border:"border-x180m19u",$$css:"DatePicker/index.tsx:25"},activeButton:{cursor:"cursor-x1ypdohk",$$css:"DatePicker/index.tsx:40"},dropDownContainer:{position:"position-x10l6tqk",zIndex:"zIndex-x11uqc5h",top:"top-xbssg55",right:"right-x3m8u43",display:"display-x78zum5",minHeight:"minHeight-x11md1zd",width:"width-x1rpcrrh",backgroundColor:"backgroundColor-x18oya0d",borderRadius:"borderRadius-xur7f20",border:"border-x180m19u",overflow:"overflow-xb3r6kr",$$css:"DatePicker/index.tsx:48"},narrowerDropDownContainer:{width:"width-xfejy7t",$$css:"DatePicker/index.tsx:61"},noCalendarDropDownContainer:{width:"width-x107s8ep",$$css:"DatePicker/index.tsx:64"},menuItem:{height:"height-xc9qbxq",width:"width-xh8yej3",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",color:"color-x75csi3",borderRadius:"borderRadius-x12oqio5",paddingLeft:"paddingLeft-xf18ygs",paddingRight:"paddingRight-xnuq7ks",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xk50ysn",marginBottom:"marginBottom-x12nagc",":hover_color":"color-x1hxxw9p",":hover_cursor":"cursor-x1277o0a",$$css:"DatePicker/index.tsx:76"},activeMenuItem:{backgroundColor:"backgroundColor-x6fdw8f",color:"color-x1jsblnb",$$css:"DatePicker/index.tsx:93"}};function I(e,t){if(t){var n=e,r=(0,l.utcToLocalDateOffset)(new Date(1e3*Math.trunc(t)));return(0,s.isAfter)(r,n[0])&&(n[0]=r),(0,s.isAfter)(r,n[1])&&(n[1]=(0,s.endOfDay)(new Date)),n}return e}function P(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"7d",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,s.endOfDay)(new Date):(0,s.endOfDay)((0,s.sub)(new Date,{days:1})),r={min:{date:(0,s.startOfDay)(new Date),timestamp:Math.floor((0,l.localToUtcDateOffset)((0,s.startOfDay)(new Date)).valueOf()/1e3),localTimestamp:Math.floor((0,s.startOfDay)(new Date).valueOf()/1e3)},max:{date:(0,s.endOfDay)(new Date),timestamp:Math.floor((0,l.localToUtcDateOffset)((0,s.endOfDay)(new Date)).valueOf()/1e3),localTimestamp:Math.floor((0,s.endOfDay)(new Date).valueOf()/1e3)},rangeName:t};if("1d"===t)r.min.date=(0,s.startOfDay)(new Date),r.max.date=(0,s.endOfDay)(new Date);else if("7d"===t)r.min.date=(0,s.startOfDay)((0,s.sub)(new Date,{days:7})),r.max.date=n;else if("30d"===t)r.min.date=(0,s.startOfDay)((0,s.sub)(new Date,{days:30})),r.max.date=n;else if("90d"===t)r.min.date=(0,s.startOfDay)((0,s.sub)(new Date,{days:90})),r.max.date=n;else if("yesterday"===t)r.min.date=(0,s.startOfDay)((0,s.sub)(new Date,{days:1})),r.max.date=n;else if("prevMonth"===t){var o=(0,s.subMonths)(new Date,1);r.min.date=(0,s.startOfMonth)(o),r.max.date=(0,s.endOfMonth)(o)}else"last4Weeks"===t&&(r.min.date=(0,s.startOfDay)((0,s.sub)(new Date,{days:28})),r.max.date=n);var a=null!==(e=sessionStorage.getItem("subscription_info"))&&void 0!==e?e:null,i=a?Math.trunc(JSON.parse(a).end_date):null,c=O(null!==i?I([r.min.date,r.max.date],i):[r.min.date,r.max.date],2),u=c[0],d=c[1];return r.min.date=u,r.max.date=d,r.min.timestamp=Math.floor((0,l.localToUtcDateOffset)(r.min.date).valueOf()/1e3),r.min.localTimestamp=Math.floor(r.min.date.valueOf()/1e3),r.max.timestamp=Math.floor((0,l.localToUtcDateOffset)(r.max.date).valueOf()/1e3),r.max.localTimestamp=Math.floor(r.max.date.valueOf()/1e3),r}function T(e){var t,n,r,o,x,b=e.value,A=void 0===b?[new Date,new Date]:b,S=e.instanceId,j=void 0===S?""
2:S,k=e.onFormValue,E=void 0===k?function(){}:k,T=e.onRangeChange,C=void 0===T?function(){}:T,R=e.selectedOption,M=void 0===R?"7d":R,L=e.maxRangeDays,D=void 0===L?0:L,B=e.ranges,U=void 0===B?["yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]:B,F=e.includeTodayInRange,G=void 0!==F&&F,W=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,v),z=(0,a.useRef)(null),V=!(U.includes("customRange")&&U.includes("customMonth")),q="en-US"===(navigator.language||"en-GB")?"MM/dd/yyyy":"dd/MM/yyyy",K=O((0,c.useSyncState)(),1)[0],H=null!==(t=null==K||null===(n=K.subscription_info)||void 0===n?void 0:n.end_date)&&void 0!==t?t:null,Y=O((0,a.useState)(!1),2),$=Y[0],Z=Y[1],X=O((0,a.useState)(0),2),J=X[0],Q=X[1],ee=O((0,a.useState)([(0,s.sub)(new Date,{days:2e4}),(0,s.addDays)(new Date,500)]),2),te=ee[0],ne=ee[1],re=O((0,a.useState)("calendar"),2),oe=re[0],ae=re[1],ie=O((0,a.useState)(M),2),le=ie[0],se=ie[1],ce=O((0,a.useState)(function(){return[A[0],A[1]]}),2),ue=ce[0],de=ce[1],fe=O((0,a.useState)(q),2),pe=fe[0],me=fe[1],ge=(0,s.format)(null==A?void 0:A[0],pe!==q?pe:"do LLL yy"),ye=(0,s.format)(null==A?void 0:A[1],pe!==q?pe:"do LLL yy");(0,a.useEffect)(function(){},[A]);var he=[q,"yyyy/MM/dd","dd/MM/yy","d-MM-yyyy","dd.MM.yyyy","dd MMMM yyyy","MMM dd yyyy","dd MMM yy","MMM-dd-yy","do LLL yy","MMM dd, yyyy","MMM, dd yyyy"];function xe(e){if("string"==typeof e){var t=null,n=null;return he.some(function(r){var o=(0,s.parse)(e,r,new Date);if((0,s.isValid)(o)){var a=o.getFullYear();return a<100&&o.setFullYear(a+2e3),t=o,n=r,!0}return!1}),{parsedDate:t,usedFormat:n}}return{parsedDate:e,usedFormat:null}}function be(e){if("string"==typeof e){var t=xe(e);return t?(0,s.format)(t,pe):""}return(0,s.format)(e,pe)}var ve=O((0,a.useState)([be(A[0]),be(A[1])]),2),Ae=ve[0],_e=ve[1],Se=O((0,a.useState)(w(Ae)),2),we=Se[0],Oe=Se[1];function je(e){Q(0),Z(e)}function ke(e,t,n){var r=I(t,H),o=n;de(r),E(e,[r[0],r[1]]),o.min.date=r[0],o.min.timestamp=Math.floor((0,l.localToUtcDateOffset)(r[0]).valueOf()/1e3),o.min.localTimestamp=Math.floor(r[0].valueOf()/1e3),o.max.date=r[1],o.max.timestamp=Math.floor((0,l.localToUtcDateOffset)(r[1]).valueOf()/1e3),o.max.localTimestamp=Math.floor(r[1].valueOf()/1e3),C(o),je(!1)}function Ee(e,t){if(se(e),"1d"===e){var n=P("1d",G);ke(e,[n.min.date,n.max.date],n)}else if("7d"===e){var r=P("7d",G);ke(e,[r.min.date,r.max.date],r)}else if("30d"===e){var o=P("30d",G);ke(e,[o.min.date,o.max.date],o)}else if("90d"===e){var a=P("90d",G);ke(e,[a.min.date,a.max.date],a)}else if("prevMonth"===e){var i=P("prevMonth",G);ke(e,[i.min.date,i.max.date],i)}else if("yesterday"===e){var c=P("yesterday",G);ke(e,[c.min.date,c.max.date],c)}else if("last4Weeks"===e){var u=P("last4Weeks",G);ke(e,[u.min.date,u.max.date],u)}else if("customMonth"===e){if(t&&!("action"in t)&&t instanceof Date){var d=(0,s.startOfMonth)(new Date(t)),f=(0,s.endOfMonth)(new Date(t));ke(e,[d,f],{min:{date:d,timestamp:Math.floor((0,l.localToUtcDateOffset)(d).valueOf()/1e3),localTimestamp:Math.floor(d.valueOf()/1e3)},max:{date:f,timestamp:Math.floor((0,l.localToUtcDateOffset)(f).valueOf()/1e3),localTimestamp:Math.floor(f.valueOf()/1e3)},rangeName:e})}}else"customRange"===e&&Array.isArray(t)&&2===t.length&&(0,s.isBefore)(t[1],t[0])&&(0,s.toastNotification)((0,l.language)("Make sure the end date is not before the start date"),"error")}function Ne(e){var t=[(0,s.startOfDay)(new Date(e[0])),(0,s.endOfDay)(new Date(e[1]))];return(0,s.differenceInDays)(t[1],t[0])>D-1&&0!==D&&((0,s.toastNotification)((0,l.language)("Please select a range of no more than :maxRangeDays days",{maxRangeDays:D.toString()}),"error"),de([A[0],A[1]]),Q(0),!0)}function Ie(e){var t=0===U.length;return!!("1d"===e&&(U.includes("1d")||t)||"7d"===e&&(U.includes("7d")||t)&&(0===D||D>=7)||"30d"===e&&(U.includes("30d")||t)&&(0===D||D>=30)||"90d"===e&&(U.includes("90d")||t)&&(0===D||D>=90)||"yesterday"===e&&(U.includes("yesterday")||t)&&(0===D||D>=2)||"prevMonth"===e&&(U.includes("prevMonth")||t)&&(0===D||D>=31)||"last4Weeks"===e&&(U.includes("last4Weeks")||t)&&(0===D||D>=28)||"customMonth"===e&&(U.includes("customMonth")||t)&&(0===D||D>=31)||"customRange"===e&&(U.includes("customRange")||t))}return(0,a.useEffect)(function(){0!==D&&(ue[0]&&!ue[1]?ne([(0,s.sub)(ue[0],{days:D-1}),(0,s.addDays)(ue[0],D-1)]):ne([(0,s.sub)(new Date,{days:2e4}),(0,s.addDays)(new Date,500)])),ue[0]&&ue[1]&&(Oe([(0,s.format)(ue[0],pe),(0,s.format)(ue[1],pe)]),_e([(0,s.format)(ue[0],pe),(0,s.format)(ue[1],pe)]))},[ue]),(0,h.jsxs)("div",_(_(_({},{className:"position-x1n2onr6 width-xezivpi display-x78zum5","data-style-src":"DatePicker/index.tsx:20"}),W),{},{id:"date-selector-container".concat(j),"data-testid":"date-picker-container",children:[H&&(0,h.jsx)("p",_(_({},{className:"color-x1pjugul fontSize-x1eqnyfr fontWeight-xxz3jql marginRight-x1db2dqx display-x78zum5 alignItems-x6s0dn4","data-style-src":"DatePicker/index.tsx:136"}),{},{children:(0,h.jsx)(p.default,{content:(0,l.language)("For subscription reasons your allowed date range is limited."),children:(0,h.jsx)(m.default,{style:{cursor:"pointer"}
2,preset:"mediumError",children:(0,l.language)("Limited!")})})})),(0,h.jsxs)(d.default,{onClickOutside:function(){je(!1),ae("calendar")},children:[(0,h.jsxs)("button",_(_({id:"date-selector-open".concat(j),"data-testid":"date-selector-open-button",type:"button"},u.props(N.datepickerButton,$&&N.activeButton)),{},{onClick:function(){return je(!$)},children:[(0,h.jsx)(f.default,_({"data-testid":"controlIcon",name:["far","calendar"]},{className:"marginRight-x1wsuqlk color-xqi5lc6 fontSize-xosj86m","data-style-src":"DatePicker/index.tsx:43"})),!V&&(0,h.jsxs)(h.Fragment,{children:[ge," ","-"," ",ye]}),V&&("1d"===le?(0,l.language)("Today"):"yesterday"===le?(0,l.language)("Yesterday"):"7d"===le?(0,l.language)("Last 7 days"):"30d"===le?(0,l.language)("Last 30 days"):"90d"===le?(0,l.language)("Last 90 days"):"prevMonth"===le?(0,l.language)("Previous Month"):"last4Weeks"===le?(0,l.language)("Last 4 Weeks"):"customMonth"===le?(0,l.language)("Calendar Month"):"customRange"===le?(0,l.language)("Custom Range"):"Date Range"),!$&&(0,h.jsx)(f.default,_({name:"chevron-up"},{className:"marginLeft-x1tpqehw","data-style-src":"DatePicker/index.tsx:147"})),$&&(0,h.jsx)(f.default,_({name:"chevron-down"},{className:"marginLeft-x1tpqehw","data-style-src":"DatePicker/index.tsx:147"}))]})),(0,h.jsx)("div",{ref:z,style:{width:"auto",height:"auto"},children:$&&(0,h.jsxs)("div",_(_({},u.props(N.dropDownContainer,"month"===oe&&N.narrowerDropDownContainer,V&&N.noCalendarDropDownContainer)),{},{"data-testid":"dropdown-container",children:[!V&&(0,h.jsxs)("div",_(_({},{className:"display-x78zum5 flexDirection-xdt5ytf justifyContent-x1qughib flexShrink-x2lah0s flexGrow-x1c4vz4f","data-style-src":"DatePicker/index.tsx:97"}),{},{children:[(0,h.jsxs)("div",_(_({},{className:"flex-x98rzlu display-x78zum5 flexDirection-xdt5ytf height-x5yr21d","data-style-src":"DatePicker/index.tsx:104"}),{},{children:["month"===oe&&(0,h.jsx)("div",_(_({"data-testid":"customMonthContainer"},{className:"width-x1fepime height-x5yr21d display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k","data-style-src":"DatePicker/index.tsx:116"}),{},{children:(0,h.jsx)(i.default,{inline:!0,showMonthYearPicker:!0,onChange:function(e){e&&Ee("customMonth",e)},selected:null!==(r=null==ue?void 0:ue[1])&&void 0!==r?r:new Date})})),"calendar"===oe&&(0,h.jsx)("div",_(_({},{className:"width-x1wrwqlu height-x1jmesrl","data-style-src":"DatePicker/index.tsx:110"}),{},{"data-testid":"customRangeContainer",children:(0,h.jsx)(i.default,{inline:!0,selectsRange:!0,onChange:function(e){return function(e,t){if(se("customRange"),0===t)de([e[0],e[1]]);else if((0,s.isBefore)(e[0],ue[0])){if(Ne([e[0],ue[0]]))return;de([e[0],ue[0]]),ke("customRange",[e[0],ue[0]],{min:{date:e[0],timestamp:Math.floor((0,l.localToUtcDateOffset)(e[0]).valueOf()/1e3),localTimestamp:Math.floor(e[0].valueOf()/1e3)},max:{date:ue[0],timestamp:Math.floor((0,l.localToUtcDateOffset)(ue[0]).valueOf()/1e3),localTimestamp:Math.floor(ue[0].valueOf()/1e3)},rangeName:"customRange"})}else{if(Ne([e[0],e[1]]))return;de([e[0],e[1]]),ke("customRange",[e[0],e[1]],{min:{date:e[0],timestamp:Math.floor((0,l.localToUtcDateOffset)(e[0]).valueOf()/1e3),localTimestamp:Math.floor(e[0].valueOf()/1e3)},max:{date:e[1],timestamp:Math.floor((0,l.localToUtcDateOffset)(e[1]).valueOf()/1e3),localTimestamp:Math.floor(e[1].valueOf()/1e3)},rangeName:"customRange"})}Q(t+1)}(e,J)},startDate:null!==(o=null==ue?void 0:ue[0])&&void 0!==o?o:null,endDate:null!==(x=null==ue?void 0:ue[1])&&void 0!==x?x:null,minDate:te[0],maxDate:te[1],monthsShown:2})}))]})),"calendar"===oe&&(0,h.jsx)("div",_(_({},{className:"width-xh8yej3 overflow-xb3r6kr paddingLeft-xnm25rq paddingRight-xyfqnmn display-x3nfvp2 alignItems-x6s0dn4 justifyContent-x1qughib height-xnnlda6 borderTop-x3uyll0 borderRight-xxnq8bf flexGrow-x1c4vz4f","data-style-src":"DatePicker/index.tsx:123"}),{},{children:(0,h.jsxs)("form",{onSubmit:function(e){e.preventDefault(),function(){se("customRange");var e=xe(we[0]),t=xe(we[1]);if((0,s.isValid)(e.parsedDate)&&(0,s.isValid)(t.parsedDate)){if((0,s.isAfter)(e.parsedDate,t.parsedDate)){var n=e.parsedDate;e.parsedDate=t.parsedDate,t.parsedDate=n;var r=e.usedFormat;e.usedFormat=t.usedFormat,t.usedFormat=r}if(_e(w(we)),pe!==e.usedFormat&&e.usedFormat?me(e.usedFormat):pe!==t.usedFormat&&t.usedFormat&&me(t.usedFormat),e.parsedDate&&t.parsedDate){var o,a,i,c,u,d,f,p,m,g;if(Ne([e.parsedDate,t.parsedDate]))return;de([null!==(o=e.parsedDate)&&void 0!==o?o:new Date,null!==(a=t.parsedDate)&&void 0!==a?a:new Date]),ke("customRange",[null!==(i=e.parsedDate)&&void 0!==i?i:new Date,null!==(c=t.parsedDate)&&void 0!==c?c:new Date],{min:{date:null!==(u=e.parsedDate)&&void 0!==u?u:new Date,timestamp:Math.floor((0,l.localToUtcDateOffset)(null!==(d=e.parsedDate)&&void 0!==d?d:new Date).valueOf()/1e3),localTimestamp:Math.floor((null!==(f=e.parsedDate)&&void 0!==f?f:new Date).valueOf()/1e3)},max:{date:null!==(p=t.parsedDate)&&void 0!==p?p:new Date,timestamp:Math.floor((0,l.localToUtcDateOffset)(null!==(m=t.parsedDate)&&void 0!==m?m:new Date).valueOf()/1e3),localTimestamp:Math.floor((null!==(g=t.parsedDate)&&void 0!==g?g:new Date).valueOf()/1e3)},rangeName:"customRange"}),Q(2)}}else Oe(w(Ae)),(0,s.toastNotification)((0,l.language)("Invalid date format"),"error")}()},style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,h.jsx)(g.default,{size:"sm",style:{width:144},value:we[0],id:"type-in-start-date-input",onChange:function(e){e.target instanceof HTMLInputElement&&Oe([e.target.value,we[1]])}})," ","-"," ",(0,h.jsx)(g.default,{size:"sm",style:{width:144},value:we[1],id:"type-in-end-date-input",onChange:function(e){e.target instanceof HTMLInputElement&&Oe([we[0],e.target.value])}})]}),(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,h.jsx)(y.default,{type:"button",size:"sm",preset:"outline","data-testid":"cancel-type-in-date",onClick:function(){Q(0),Oe(w(Ae)),je(!1)},children:(0,l.language)("Cancel")}),(0,h.jsx)(y.default,{type:"submit",size:"sm",preset:"primary","data-testid":"apply-type-in-date",children:(0,l.language)("Apply")})]})]})}))]})),(0,h.jsxs)("div",_(_({},{className:"flexShrink-x2lah0s flexGrow-x1c4vz4f width-xrostsh padding-xfawy5m paddingTop-xz9dl7a paddingBottom-xsag5q8 height-x5yr21d","data-style-src":"DatePicker/index.tsx:67"}),{},{children:[Ie("1d")&&(0,h.jsx)("button",_(_({"data-testid":"1d",type:"button"},u.props(N.menuItem,"1d"===le&&N.activeMenuItem)),{},{onClick:function(){Ee("1d"),ae("calendar")},children:(0,l.language)("Today")})),Ie("yesterday")&&(0,h.jsx)("button",_(_({"data-testid":"yesterday",type:"button"},u.props(N.menuItem,"yesterday"===le&&N.activeMenuItem)),{},{onClick:function(){Ee("yesterday"),ae("calendar")},children:(0,l.language)("Yesterday")})),Ie("7d")&&(0,h.jsx)("button",_(_({"data-testid":"7d",type:"button"},u.props(N.menuItem,"7d"===le&&N.activeMenuItem)),{},{onClick:function(){Ee("7d"),ae("calendar")},children:(0,l.language)("Last 7 days")})),Ie("30d")&&(0,h.jsx)("button",_(_({"data-testid":"30d",type:"button"},u.props(N.menuItem,"30d"===le&&N.activeMenuItem)),{},{onClick:function(){Ee("30d"),ae("calendar")},children:(0,l.language)("Last 30 days")})),Ie("90d")&&(0,h.jsx)("button",_(_({"data-testid":"90d",type:"button"},u.props(N.menuItem,"90d"===le&&N.activeMenuItem)),{},{onClick:function(){Ee("90d"),ae("calendar")},children:(0,l.language)("Last 90 days")})),Ie("customMonth")&&(0,h.jsx)("button",_(_({"data-testid":"customMonth",type:"button"},u.props(N.menuItem,"customMonth"===le&&N.activeMenuItem)),{},{onClick:function(){return ae("month")},children:(0,l.language)("Calendar Month")})),Ie("prevMonth")&&(0,h.jsx)("button",_(_({"data-testid":"prevMonth",type:"button"},u.props(N.menuItem,"prevMonth"===le&&N.activeMenuItem)),{},{onClick:function(){Ee("prevMonth"),ae("calendar")},children:(0,l.language)("Previous Month")})),Ie("last4Weeks")&&(0,h.jsx)("button",_(_({"data-testid":"last4Weeks",type:"button"},u.props(N.menuItem,"last4Weeks"===le&&N.activeMenuItem)),{},{onClick:function(){Ee("last4Weeks"),ae("calendar")},children:(0,l.language)("Last 4 weeks")})),(Ie("customRange")&&"month"===oe||"customRange"===le)&&(0,h.jsx)("button",_(_({"data-testid":"customRange",type:"button"},u.props(N.menuItem,"customRange"===le&&N.activeMenuItem)),{},{onClick:function(){ae("calendar"),se("customRange")},children:"Custom Range"}))]}))]}))})]})]}))}T.displayName="Input.Date",T.getDateRange=P,t.default=T},4921:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=n(44146),l=c(n(79135)),s=n(31085);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=o.default;m(".display-x78zum5{display:flex}",3e3),m(".justifyContent-x1qughib{justify-content:space-between}",3e3),m(".height-xc9qbxq{height:36px}",4e3),m(".width-xh8yej3{width:100%}",4e3),m(".alignItems-x6s0dn4{align-items:center}",3e3),m(".textAlign-xdpxx8g{text-align:left}",3e3),m(".color-x75csi3{color:var(--black400-x1u7ngzx)}",3e3),m(".borderRadius-x12oqio5{border-radius:4px}",2e3),m(".paddingLeft-xf18ygs{padding-left:12px}",4e3),m(".paddingRight-xnuq7ks{padding-right:12px}",4e3),m(".fontSize-xif65rj{font-size:14px}",3e3),m(".fontWeight-xk50ysn{font-weight:500}",3e3),m(".color-x1hxxw9p:hover{color:var(--black900-x1vm5mv1)}",3130),m(".cursor-x1277o0a:hover{cursor:pointer}",3130),m(".backgroundColor-x1i1cpqc{background-color:var(--gray50-x1bw8p5w)!important}",3e3),m(".color-xmk75u9{color:var(--black900-x1vm5mv1)!important}",3e3),m(".flexDirection-x15zctf7{flex-direction:row-reverse}",3e3),m(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),m(".textAlign-x1hr2gdg{text-align:right}",3e3),m(".transform-x19jd1h0{transform:rotate(180deg)}",3e3),m(".marginLeft-xj3b58b{margin-left:0}",4e3),m(".marginRight-x1db2dqx{margin-right:8px}",4e3),m(".display-x1lliihq{display:block}",3e3);var g={FiltersMenuItemContainer:{display:"display-x78zum5",justifyContent:"justifyContent-x1qughib",height:"height-xc9qbxq",width:"width-xh8yej3",alignItems:"alignItems-x6s0dn4",textAlign:"textAlign-xdpxx8g",color:"color-x75csi3",borderRadius:"borderRadius-x12oqio5",paddingLeft:"paddingLeft-xf18ygs",paddingRight:"paddingRight-xnuq7ks",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xk50ysn",":hover_color":"color-x1hxxw9p",":hover_cursor":"cursor-x1277o0a",$$css:"FilterMenuItems/index.tsx:9"},activeFilterMenuItemContainer:{backgroundColor:"backgroundColor-x1i1cpqc",color:"color-xmk75u9",$$css:"FilterMenuItems/index.tsx:27"},rightSide:{flexDirection:"flexDirection-x15zctf7",justifyContent:"justifyContent-x13a6bvl",textAlign:"textAlign-x1hr2gdg",$$css:"FilterMenuItems/index.tsx:31"},flippedIcon:{transform:"transform-x19jd1h0",marginLeft:"marginLeft-xj3b58b",marginRight:"marginRight-x1db2dqx",$$css:"FilterMenuItems/index.tsx:36"},icon:{$$css:"FilterMenuItems/index.tsx:45"}};function y(e){var t=e.configItem,n=e.selectedConfigItem,r=e.onSelectedConfigItem,o=e.leftSide,c=void 0===o||o,u=t.name===(null==n?void 0:n.name),d=t.accessControl||{};return(0,s.jsx)(i.AccessControl,f(f({},d),{},{children:(0,s.jsxs)("button",f(f({id:"filters-menu-item-".concat(t.name),"data-testid":"filters-menu-item-".concat(t.name),type:"button"},a.props(g.FiltersMenuItemContainer,u&&g.activeFilterMenuItemContainer,!1===c&&g.rightSide)),{},{"aria-selected":u,onMouseEnter:function(){return r(t)},children:[(0,s.jsx)("div",f(f({},{className:"display-x1lliihq width-xh8yej3","data-style-src":"FilterMenuItems/index.tsx:41"}),{},{children:t.label})),u&&(0,s.jsx)(l.default,f({name:"chevron-right"},a.props(c?g.icon:[g.icon,g.flippedIcon])))]}))}))}y.displayName="FiltersMenuItem",t.default=y}
2,4928:(e,t,n)=>{"use strict";e.exports=n.p+"8b1b143f3f16e0597c7d.svg"},4990:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(14041),o=n(51836),a=n(8122);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e){var t,n=(0,o.zy)().state,i=u((0,a.A)(),2),l=i[0],c=i[1],d=s(s({},{page:null!==(t=null==n?void 0:n.page)&&void 0!==t?t:1,limit:l,sortKey:"created_at",sortOrder:"desc"}),e),f=u((0,r.useState)(d),2),p=f[0],m=f[1];return{filters:p,setFilters:m,handlePagination:function(e,t){t?(m(s(s({},p),{},{limit:t,page:t!==l?1:e})),c(t)):m(s(s({},p),{},{page:e}))},handleSort:function(e){m(s(s({},p),e))}}}},5201:(e,t,n)=>{"use strict";e.exports=n.p+"0916a391e9e2d2e14772.svg"},5205:(e,t,n)=>{"use strict";e.exports=n.p+"e28cc83434c3e308979d.svg"},5219:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(92820);function o(e){if(e.queryTranslator&&r.A[e.queryTranslator])return r.A[e.queryTranslator](e);var t="";return e.options.forEach(function(n){!0!==n.value&&!1!==n.value||!n.queryKey&&!e.queryKey||(t+="&".concat(n.queryKey||e.queryKey,"=").concat(n.value))}),t}function a(e){if(e.queryTranslator&&r.A[e.queryTranslator])return r.A[e.queryTranslator](e);var t="";return e.options.forEach(function(n){n.value&&(n.queryKey||e.queryKey)&&(t+="&".concat(n.queryKey||e.queryKey,"=").concat(n.name))}),t}function i(e){var t="";return e.forEach(function(e){"checkbox"===e.type&&(t+=o(e)),"dropdown-multi-select"===e.type&&(t+=o(e)),"dropdown-select"===e.type&&(t+=o(e)),"flat-select"===e.type&&(t+=o(e)),"searched-dropdown"===e.type&&(t+=o(e)),"dropdown"===e.type&&(t+=a(e)),"radio"===e.type&&(t+=a(e)),"input-dropdown"===e.type&&(t+=a(e))}),t}},5555:(e,t,n)=>{"use strict";e.exports=n.p+"f965dbed764b8159d1e8.svg"},5667:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(13571),s=n(76449),c=n(30021),u=n(28426),d=n(30556),f=n(27805),p=n(89748),m=n(99018),g=n(62161),y=n(36990),h=n(47318),x=n(59818),b=n(92523),v=n(7259),A=n(31085);function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=(0,m.createUseStyles)(function(e){return{clickFilterContainer:{display:"flex",justifyContent:"space-between",marginTop:e.spacing[5],marginBottom:e.spacing[5]},left:{display:"flex"}}});function O(e){var t,n,o=e.filters,a=e.handlePagination,m=e.handleRemoveIps,S=e.isRemovingIp,O=e.handleSort,j=e.data,k=void 0===j?null:j,E=e.isLoading,N=void 0!==E&&E,I=e.onFilterChange,P=void 0===I?function(){}:I,T=_((0,r.useState)(!1),2),C=T[0],R=T[1],M=_((0,r.useState)([]),2),L=M[0],D=M[1],B=w(),U=[{label:(0,p.A)("IP Address"),name:"ip_address",type:"radio",options:[{label:(0,p.A)("Starts With"),name:"startsWith",type:"text"}]}];function F(e){return e?e.is_client_conversion?'<div style="color:#2ECC71">Conversion</div>':e.first_name?"".concat(e.first_name," ").concat(e.last_name):(0,p.A)("User"):""}return(0,A.jsx)("div",{children:(0,A.jsxs)(u.A.Page,{type:"main",children:[(0,A.jsx)(f.default,{title:(0,p.A)("Allow List"),text:(0,p.A)("Whitelist IPs that will never be blocked by our system"),contentRight:(0,A.jsx)(v.A,{})}),(0,A.jsx)("div",{className:"mt-3",children:(0,A.jsx)(d.default.Col,{children:(0,A.jsx)(c.default,{color:"grey-500",className:"mb-3 mt-4",children:(0,p.A)("This page contains a list of IP addresses automatically added to your allow list by Lunio. These are IPs that have been used to log in to the Lunio system or have recorded conversions, if you have conversion tracking enabled. Clicks from these IPs will never be blocked for any reason, unless you remove them from the allow list.")})})}),(0,A.jsxs)("div",{className:B.clickFilterContainer,children:[(0,A.jsx)("div",{className:B.left,children:(0,A.jsx)(s.default,{filterConfig:U,initialValues:o,onFilterChange:P})}),(0,A.jsxs)("div",{className:"flex",children:[(0,A.jsx)(b.default,{}),L.length>0&&(0,A.jsx)(i.default,{id:"delete-selected-ips",preset:"destructive",disabled:S||N,className:"ml-3",onClick:function(){return R(!0)},children:(0,p.A)("Delete Selected IPs")})]})]}),(0,A.jsx)(g.A,{isLoading:N,rows:null==k?void 0:k.whitelist,totalPages:null==k||null===(t=k.pagination)||void 0===t?void 0:t.last_page,totalItems:null==k||null===(n=k.pagination)||void 0===n?void 0:n.total,pageNumber:o.page,limit:o.limit,handlePagination:a,sorting:{sortKey:o.sortKey,sortOrder:o.sortOrder},handleSorting:O,isSelectable:!0,onSelectedRows:D,noDataTitle:(0,p.A)("No whitelisted IPs found"),noDataSubTitle:(0,p.A)("Click the add button to create an IP that will never get blocked by our system"),noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsxs)("th",{"data-sortable-id":"ip",children:[(0,p.A)("IP Address"),(0,A.jsx)(y.A,{header:!0,children:(0,p.A)("Account ID")})]}),(0,A.jsxs)("th",{"data-sortable-id":"updated_at",children:[(0,p.A)("Date Updated"),(0,A.jsx)(y.A,{header:!0,groupedCols:!0,"data-sortable-id":"none",children:(0,p.A)("Updated By")})]}),(0,A.jsxs)("th",{"data-sortable-id":"created_at",children:[(0,p.A)("Date Added"),(0,A.jsx)(y.A,{header:!0,groupedCols:!0,"data-sortable-id":"none",children:(0,p.A)("Added By")})]}),(0,A.jsx)("th",{"data-align":"right",children:(0,p.A)("Remove")})]})}),(0,A.jsxs)("tbody",{children:[(0,A.jsxs)("td",{children:[(0,A.jsx)(h.A,{maxLength:15,clickToCopy:!0,children:(t=null==e?void 0:e.ip,t?-1!==t.indexOf("/")?t.split("/")[0]:t:"")}),(0,A.jsx)(y.A,{children:(0,p.A)("All")})]}),(0,A.jsxs)("td",{children:[(0,x.yJ)(null==e?void 0:e.updated_at),(0,A.jsx)(y.A,{groupedCols:!0,children:F(e)})]}),(0,A.jsxs)("td",{children:[(0,x.yJ)(null==e?void 0:e.created_at),(0,A.jsx)(y.A,{groupedCols:!0,children:F(e)})]}),(0,A.jsx)("td",{"data-align":"right",children:(0,A.jsx)(i.default,{id:"delete-ip-button-start-".concat(null==e?void 0:e.ip),"data-testid":"delete-ip-button-start-".concat(null==e?void 0:e.ip),preset:"outline","aria-label":"icon button",disabled:S||N,iconLeft:["far","minus"],size:"sm",onClick:function(){return m([e]),void D([])}})})]})]});var t}}),(0,A.jsxs)(l.default,{open:C,onClose:function(){return R(!1)},children:[(0,A.jsx)(l.default.Header,{title:(0,A.jsxs)(A.Fragment,{children:[(0,p.A)("You are about to delete")," ",L.length," ",(0,p.A)(" Whitelisted IPs")]})}),(0,A.jsx)(l.default.Content,{children:(0,p.A)("Deleting these IPs will remove them from your Google Ads exclusions list. Users from these IPs will be able to interact with your ads again")}),(0,A.jsxs)(l.default.Actions,{children:[(0,A.jsx)(i.default,{id:"cancel-delete-ips","data-testid":"cancel-delete-ips",preset:"outline",onClick:function(){return R(!1)},children:(0,p.A)("Cancel")}),(0,A.jsx)(i.default,{id:"confirm-delete-ips","data-testid":"confirm-delete-ips",preset:"destructive",onClick:function(){R(!1),m(L)},children:(0,p.A)("Delete IPâs")})]})]})]})})}O.propTypes={onFilterChange:a().func,data:a().object,isLoading:a().bool,filters:a().object.isRequired,handlePagination:a().func.isRequired,handleRemoveIps:a().func.isRequired,isRemovingIp:a().bool.isRequired,handleSort:a().func.isRequired};const j=O},5753:(e,t,n)=>{"use strict";n.d(t,{A:()=>l}),n(14041);var r=n(88133),o=n(24284),a=n(29973),i=n(31085);const l=function(){var e=(0,r.gC)("/subscriptions/customer-portal","POST");return(0,i.jsx)(a.A,{gotToSubscriptionPortal:function(){e.mutate({return_url:"https://dashboard.lunio.ai/subscription"},{onSuccess:function(e){window.open(e.data.session_url,"_blank").focus()},onError:function(){(0,o.A)("You do not have access to this area","error")}})}})}},5961:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(14041),o=n(88133),a=n(97475),i=n(24284),l=n(96182);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){var n=i.A;"function"==typeof n&&n(e,t)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.jE)(),n=f((0,l.A)(),1)[0],i=f((0,r.useState)([]),2),s=i[0],c=i[1];var d,y,h=f((0,r.useState)({url:(d=e).url||"",googleUrl:d.googleUrl||"",mplatUrl:d.mplatUrl||"",affiliateUrl:d.affiliateUrl||"",metaUrl:d.metaUrl||"",prependUrl:d.prependUrl||"",appendUrl:d.appendUrl||"",successMessage:d.successMessage||"",googleSuccessMessage:d.googleSuccessMessage||"",mplatSuccessMessage:d.mplatSuccessMessage||"",affiliateSuccessMessage:d.affiliateSuccessMessage||"",metaSuccessMessage:d.metaSuccessMessage||"",errorMessage:d.errorMessage||"",googleErrorMessage:d.googleErrorMessage||"",mplatErrorMessage:d.mplatErrorMessage||"",affiliateErrorMessage:d.affiliateErrorMessage||"",metaErrorMessage:d.metaErrorMessage||"",invalidateQueries:d.invalidateQueries||[],googleInvalidateQueries:d.googleInvalidateQueries||[],mplatInvalidateQueries:d.mplatInvalidateQueries||[],affiliateInvalidateQueries:d.affiliateInvalidateQueries||[],metaInvalidateQueries:d.metaInvalidateQueries||[],method:d.method||"POST",payload:null!==(y=d.payload)&&void 0!==y?y:{},onSend:d.onSend||null,onSuccess:d.onSuccess||null,onError:d.onError||null,isLoading:!1,invalidateAllQueriesOnSuccess:d.invalidateAllQueriesOnSuccess||!1}),2),x=h[0],b=h[1];function v(e){b(function(t){return u(u({},t),{},{isLoading:e})})}var A,_,S,w=(0,o.gC)(x.prependUrl+(A=x,"google"===(S=null==n||null===(_=n.selectedPlatform)||void 0===_?void 0:_.platform_name)&&A.googleUrl?A.googleUrl:"affiliate"===S&&A.affiliateUrl?A.affiliateUrl:"meta"===S&&A.metaUrl?A.metaUrl:"google"!==S&&"affiliate"!==S&&"meta"!==S&&A.mplatUrl?A.mplatUrl:A.url?A.url:"")+x.appendUrl,function(e){return e.method||"POST"}(x));function O(e){c(function(t){return t.filter(function(t){return t!==e})})}function j(e){var r;v(!0),r=e.payload,c(function(e){return[].concat(function(e){if(Array.isArray(e))return m(e)}(t=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[r]);var t}),e.onSend&&e.onSend({apiPayload:e.payload,configUsed:e}),w.mutate(e.payload,{onSuccess:function(r){var o=function(e){var t,r=null==n||null===(t=n.selectedPlatform)||void 0===t?void 0:t.platform_name;return"google"===r&&e.googleSuccessMessage?e.googleSuccessMessage:"affiliate"===r&&e.affiliateSuccessMessage?e.affiliateSuccessMessage:"meta"===r&&e.metaSuccessMessage?e.metaSuccessMessage:"google"!==r&&"affiliate"!==r&&"meta"!==r&&e.mplatSuccessMessage?e.mplatSuccessMessage:e.successMessage?e.successMessage:""}(e);o&&g(o,"success"),e.onSuccess&&e.onSuccess({apiPayload:e.payload,apiResponse:r,configUsed:e}),v(!1),O(e.payload),function(e){t.invalidateQueries(function(e){var t,r=null==n||null===(t=n.selectedPlatform)||void 0===t?void 0:t.platform_name;return"google"===r&&e.googleInvalidateQueries?e.googleInvalidateQueries:"affiliate"===r&&e.affiliateInvalidateQueries?e.affiliateInvalidateQueries:"meta"===r&&e.metaInvalidateQueries?e.metaInvalidateQueries:"google"!==r&&"affiliate"!==r&&"meta"!==r&&e.mplatInvalidateQueries?e.mplatInvalidateQueries:e.invalidateQueries?e.invali
2dateQueries:[]}(e))}(x),e.invalidateAllQueriesOnSuccess&&t.getQueryCache().findAll().forEach(function(e){t.invalidateQueries(e.queryKey)})},onError:function(t){var r=function(e){var t,r=null==n||null===(t=n.selectedPlatform)||void 0===t?void 0:t.platform_name;return"google"===r&&e.googleErrorMessage?e.googleErrorMessage:"affiliate"===r&&e.affiliateErrorMessage?e.affiliateErrorMessage:"meta"===r&&e.metaErrorMessage?e.metaErrorMessage:"google"!==r&&"affiliate"!==r&&"meta"!==r&&e.mplatErrorMessage?e.mplatErrorMessage:e.errorMessage?e.errorMessage:""}(e);r&&g(r,"error"),e.onError&&e.onError({apiError:t,apiPayload:e.payload,configUsed:e}),v(!1),O(e.payload)}})}return{submit:function(e){var t=null!=e?e:{};b(function(e){return u(u({},e),{},{payload:t})}),j(u(u({},x),{},{payload:t}))},isLoading:x.isLoading,updateConfig:function(e){b(u(u({},x),e))},config:x,payload:x.payload,isLoadingArray:s,isLoadingPayload:function(e,t){return s.some(function(n){return(null==n?void 0:n[e])===t})}}}},6230:(e,t,n)=>{"use strict";e.exports=n.p+"19c040e29f53118a2a6a.svg"},6296:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(14041),o=n(39067),a=n.n(o),i=n(62720),l=n(78806),s=n(31085);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t,n,o=e.className,a=void 0===o?null:o,u=e.maxRangeDays,d=void 0===u?0:u,f=e.onDatesChange,p=e.displayRangeText,m=void 0===p||p,g=e.instanceId,y=void 0===g?"":g,h=e.ranges,x=void 0===h?["yesterday","7d","1d","30d","90d","prevMonth","customRange"]:h,b=e.defaultRange,v=void 0===b?"1d":b,A=e.includeTodayInRange,_=void 0!==A&&A,S=e.initialStartDate,w=void 0===S?null:S,O=e.initialEndDate,j=void 0===O?null:O,k=(t=(0,r.useState)(function(){if(w)return{startDate:w,endDate:null!=j?j:(0,l.D)(new Date),selectedOption:"customRange"};var e=v.split("-")[0],t=i.default.DatePicker.getDateRange(e||v,_);return v.includes("inc")?{startDate:t.min.date,endDate:_?(0,l.D)(new Date):t.max.date,selectedOption:"customRange"}:{startDate:t.min.date,endDate:t.max.date,selectedOption:v}}()),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=k[0],N=k[1];return(0,s.jsx)("div",{"data-testid":"non-global-dates",className:a,children:(0,s.jsx)(i.default.DatePicker,{value:[E.startDate,E.endDate],onFormValue:function(e,t){return function(e,t){N({startDate:t[0],endDate:t[1],selectedOption:e}),f({startDate:t[0],endDate:t[1],selectedOption:e})}(e,t)},selectedOption:E.selectedOption,maxRangeDays:d,displayRangeText:m,instanceId:y,ranges:x,includeTodayInRange:_})})}u.propTypes={className:a().string,maxRangeDays:a().number,onDatesChange:a().func,displayRangeText:a().bool,instanceId:a().string,ranges:a().array,defaultRange:a().string,includeTodayInRange:a().bool,initialStartDate:a().instanceOf(Date),initialEndDate:a().instanceOf(Date)};const d=u},6387:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(99018),s=n(88133),c=n(97475),u=n(10430),d=n(24284),f=n(93033),p=n(9260),m=n(13571),g=n(62683),y=n(93513),h=n(31085);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var v=(0,l.createUseStyles)(function(e){return{container:{position:"relative",width:120,height:24},dropOptions:{position:"absolute",display:"flex",flexDirection:"column",top:-8,right:-8,zIndex:1e3,backgroundColor:e.colors.constants.white,padding:8,borderRadius:12,boxShadow:e.shadow.md},dropOption:{opacity:.8,cursor:"pointer","&:hover":{opacity:1,"&.active":{opacity:.8,cursor:"default",pointerEvents:"none"}}},disabled:{opacity:.5,cursor:"default",pointerEvents:"none","&:hover":{opacity:.5,cursor:"default",pointerEvents:"none"}}}});function A(e){var t=e.account,n=void 0===t?{}:t,o=e.campaign,a=void 0===o?{}:o,b=e.disabled,A=void 0!==b&&b,_=e.id,S=void 0===_?null:_,w=e.noOfRows,O=void 0===w?1:w,j=e.thisRow,k=void 0===j?1:j,E=v(),N=x((0,r.useState)(!1),2),I=N[0],P=N[1],T=x((0,r.useState)(-1),2),C=T[0],R=T[1],M=x((0,r.useState)(!1),2),L=M[0],D=M[1],B=x((0,r.useState)(""),2),U=B[0],F=B[1],G=k===O,W=(0,c.jE)();function z(e){return e.protection_enabled&&e.monitoring_enabled?2:e.protection_enabled||e.monitoring_enabled?1:0}var V=x((0,r.useState)(z((0,u.I)(n)?a:n)),2),q=V[0],K=V[1],H=(0,s.gC)("/aw/".concat(null!=n&&n.id?"customers/".concat(null==n?void 0:n.id):"campaigns/".concat(null==a?void 0:a.id)),"POST");function Y(e){e!==q&&(P(!1),R(e),null!=n&&n.aw_id?(2===e&&F((0,i.A)("Are you sure you want to protect this account? This will protect the account and all of its campaigns.")),1===e&&F((0,i.A)("Are you sure you want to only monitor this account? The account and all of its campaigns will be monitored only, but not protected.")),0===e&&F((0,i.A)("Are you sure you want to disable this account? This will disable the account and all of its campaigns and stop monitoring & protection on them."))):(2===e&&F((0,i.A)("Are you sure you want to protect this campaign?")),1===e&&F((0,i.A)("Are you sure you want to only monitor this campaign?")),0===e&&F((0,i.A)("Are you sure you want to disable this campaign?"))))}return(0,r.useEffect)(function(){z((0,u.I)(n)?a:n)===q||L||K(z((0,u.I)(n)?a:n))},[n.protection_enabled,n.monitoring_enabled,a.protection_enabled,a.monitoring_enabled]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(y.default,{className:E.container,onClickOutside:function(){return P(!1)},children:[!I&&(0,h.jsx)("button",{type:"button",onClick:function(){L||P(!0)},className:(L||A)&&E.disabled,"data-testid":S?"account-open-button-".concat(S):"account-open-button",children:(0,h.jsx)(g.A,{status:q})}),I&&(0,h.jsxs)("div",{className:E.dropOptions,style:{top:G?-73:-8},children:[(0,h.jsx)(f.A,{isNotTrialStatus:!0,orIsImpersonating:!0,children:(0,h.jsx)("button",{type:"button",className:(0,l.classNames)(E.dropOption,2===q&&"active"),onClick:function(){return Y(2)},"data-testid":S?"account-protect-button-".concat(S):"account-protect-button",children:(0,h.jsx)(g.A,{status:2,className:"mb-2"})})}),(0,h.jsx)("button",{type:"button",className:(0,l.classNames)(E.dropOption,1===q&&"active"),onClick:function(){return Y(1)},"data-testid":S?"account-monitor-button-".concat(S):"account-monitor-button",children:(0,h.jsx)(g.A,{status:1,className:"mb-2"})}),(0,h.jsx)("button",{type:"button",className:(0,l.classNames)(E.dropOption,0===q&&"active"),onClick:function(){return Y(0)},"data-testid":S?"account-disable-button-".concat(S):"account-disable-button",children:(0,h.jsx)(g.A,{status:0,className:""})})]})]}),(0,h.jsxs)(m.default,{open:-1!==C,onClose:function(){return R(-1)},children:[(0,h.jsx)(m.default.Header,{title:(0,i.A)("Do you want to continue?")}),(0,h.jsx)(m.default.Content,{children:U}),(0,h.jsxs)(m.default.Actions,{children:[(0,h.jsx)(p.default,{onClick:function(){R(-1),F("")},"data-testid":S?"account-cancel-".concat(S):"account-cancel",preset:"outline",children:(0,i.A)("Cancel")}),(0,h.jsx)(p.default,{onClick:function(){return function(){if(!L){var e=C,t=q;R(-1),K(e);var r={};2===e&&(r.monitoring_enabled=!0,r.protection_enabled=!0),1===e&&(r.monitoring_enabled=!0,r.protection_enabled=!1),0===e&&(r.monitoring_enabled=!1,r.protection_enabled=!1),function(e,t){D(!0),H.mutate({_method:"PATCH",monitoring_enabled:e.monitoring_enabled,protection_enabled:e.protection_enabled,is_hidden:!1}
2,{onSuccess:function(){D(!1),W.getQueryCache().findAll().forEach(function(e){W.invalidateQueries(e.queryKey)}),(0,d.A)((0,i.A)("Protection status was changed for :name",{name:(null==n?void 0:n.descriptive_name)||(null==a?void 0:a.name)}),"success")},onError:function(){D(!1),K(t),(0,d.A)((0,i.A)("Something went wrong!"),"error")}})}(r,t)}}()},"data-testid":S?"account-continue-".concat(S):"account-continue",children:(0,i.A)("Continue")})]})]})]})}A.propTypes={account:a().object,campaign:a().object,disabled:a().bool,id:a().string,noOfRows:a().number,thisRow:a().number};const _=A},6435:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a="";if(!n&&t.includes("-")){var l=o(t.split("-"),2);return i(e,l[0],l[1])}return Object.entries(e).forEach(function(e){var l=o(e,2),s=l[0],c=l[1];return!(a.length>0||("object"===r(c)?s===t&&void 0!==c[n]?(a=c[n],0):(a=i(c,t,n),0):s===t&&(a=c,0)))}),a}n.d(t,{A:()=>i})},6441:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(14041),o=n(9260),a=n(1781),i=n(55618),l=n(28426),s=n(27805),c=n(89748),u=n(62161),d=n(98536),f=n(60769),p=n(83223),m=n(29874),g=n(80303),y=n(31085);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const S=function(){var e,t,n=A((0,r.useState)(""),2),h=n[0],x=n[1],v=A((0,r.useState)(null),2),_=v[0],S=v[1],w=(0,d.useApi)({url:"/brand-protection/keywords"}),O=(null!==(e=null===(t=w.response)||void 0===t||null===(t=t.result)||void 0===t?void 0:t.remaining_slots)&&void 0!==e?e:0)>0;function j(){x(""),S(null)}return(0,y.jsxs)(l.A.Page,{type:"settings",children:[(0,y.jsx)(s.default,{title:(0,c.A)("Branded Protection Configuration"),text:(0,c.A)("The base configuration for your branded keywords"),contentRight:(0,y.jsx)(a.default,{content:(0,c.A)("No remaining slots available"),hidden:O,showIcon:!1,children:(0,y.jsx)(o.default,{className:"mr-3","data-testid":"add-keyword-button",onClick:function(){S(null),x("creatingKeyword")},iconRight:"plus",disabled:!O,children:(0,c.A)("Add Keyword")})})}),(0,y.jsx)(u.A,b(b({},w.tableConnector),{},{leftPinnedColumns:1,noDataSubTitle:"",children:function(e){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:(0,c.A)("Created at")}),(0,y.jsx)("th",{children:(0,c.A)("Keywords")}),(0,y.jsx)("th",{children:(0,c.A)("Locations")}),(0,y.jsx)("th",{children:(0,c.A)("Ad count / Ads found")}),(0,y.jsx)("th",{children:(0,c.A)("Frequency")}),(0,y.jsx)("th",{children:(0,c.A)("Workspace")}),(0,y.jsx)("th",{children:(0,c.A)("Edit")})]})}),(0,y.jsxs)("tbody",{children:[(0,y.jsx)("td",{children:null!=e&&e.created_at?(0,p.GP)(new Date(e.created_at),"MMM d, yyyy"):""}),(0,y.jsx)("td",{children:null==e?void 0:e.keyword}),(0,y.jsx)("td",{children:(0,g.default)(null==e?void 0:e.location)}),(0,y.jsx)("td",{children:null==e?void 0:e.ad_count}),(0,y.jsx)("td",{children:(0,f.o)(null==e?void 0:e.scan_frequency)}),(0,y.jsx)("td",{children:null==e?void 0:e.workspace_name}),(0,y.jsx)("td",{children:(0,y.jsx)(o.default,{onClick:function(){return function(e){S(e),x("editingKeyword")}(e)},preset:"outline","data-testid":"edit-keyword-button",children:(0,c.A)("Edit")})})]})]})}})),(0,y.jsx)(i.default,{open:"creatingKeyword"===h,onClose:j,heading:(0,c.A)("Create Keyword"),children:(0,y.jsx)(m.A,{onClose:j})}),(0,y.jsx)(i.default,{open:"editingKeyword"===h,onClose:j,heading:(0,c.A)("Edit Keyword"),children:(0,y.jsx)(m.A,{onClose:j,keyword:_})})]})}},6558:(e,t,n)=>{"use strict";e.exports=n.p+"66959621c8fcbf97daf2.svg"},6702:(e,t,n)=>{"use strict";e.exports=n.p+"3a9c3fb41e3ba16662cd.svg"},6862:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={user:{id:10336,first_name:"Demo",last_name:"Administrator",account_id:7430,display_name:"Demo Administrator",role_identifier:"ADMIN",beta_enabled:!0,email:"[email protected]",created_at:"2023-03-28T13:38:35.003Z",user_hash:"85a0c95ea1fba365872c24e131f43d4ad305d5182c5ce36ed8b31f20c6ddcaf1",default_workspace:null},account:{account_id:7430,google_sync_status:"red",title:"Lunio test account",mfa_enabled:1},settings:{reporting_enabled:1,reporting_recipients:["[email protected]","[email protected]","[email protected]","[email protected]"],reporting_interval:"weekly",account_title:"Lunio Demo",id:2,account_id:7430,display_simplified_number_format:1,account_industry:"People and Society",default_currency:"CAD"},subscription_info:{subscription_status:"ACTIVE",end_date:null},isImpersonating:!0,isLoading:!1,hasNoDataScope:{},alerts:{recommendationsCount:8,recommendations:[{recommendation_id:13,name:"meta_token_expiry_warning",actioned_at:null,dismissed_at:null,resolved_at:null,external_title:"Meta token expiring soon",external_description:"Your Meta integration token will expire soon.",external_description_values:null,link:null,severity:"high"},{recommendation_id:14,name:"meta_token_not_synced",actioned_at:null,dismissed_at:null,resolved_at:null,external_title:"Meta integration is not syncing",external_description:"Your Meta integration has not synced recently.",external_description_values:null,link:null,severity:"critical"}],notifications:[{recommendation_id:13,recommendation_name:"meta_token_expiry_warning",title:"Meta token expiring soon",description:"Your Meta integration token will expire soon.",text_values:null,link_path:"/platform-settings/meta-tokens",link_text:"View",severity:"high",actioned_at:null,dismissed_at:null,resolved_at:null},{recommendation_id:14,recommendation_name:"meta_token_not_synced",title:"Meta integration is not syncing",description:"Your Meta integration has not synced recently.",text_values:null,link_path:"/platform-settings/meta-tokens",link_text:"View",severity:"critical",actioned_at:null,dismissed_at:null,resolved_at:null}]},agency:[]}},7046:(e,t,n)=>{"use strict";e.exports=n.p+"2f8ec170c974fab32ec0.svg"},7111:(e,t,n)=>{"use strict";e.exports=n.p+"c05217b75d438c9a6f0b.svg"},7121:(e,t,n)=>{"use strict";e.exports=n.p+"27009f7beeba37519fd0.svg"},7187:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(14041),o=n(99018),a=n(39067),i=n.n(a),l=n(89748),s=n(9260),c=n(77223),u=n(62720),d=n(72686),f=n(30021),p=n(28426),m=n(27805),g=n(36549),y=n(24284),h=n(85611),x=n(31085);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t,n){return(t=function(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=(0,o.createUseStyles)(function(e){return _(_(_(_({formContainer:{marginTop:e.spacing[4],width:"50%"}},"@media (max-width: ".concat(e.breakpoints.xl,")"),{formContainer:{width:"100%"}}),"centredRow",{display:"flex",alignItems:"center"}),"greyText",{color:"".concat(e.colors.grey[100]," !important")}),"scriptContainer",{backgroundColor:e.colors.neutralBackgroundMedium,borderRadius:12,padding:12,color:e.colors.neutralTextStrong,fontFamily:e.fonts.text,fontSize:e.fontSizes.sm,fontWeight:e.fontWeights.xs,lineHeight:"20px","& pre":{whiteSpace:"pre-wrap",wordWrap:"break-word"}})});function w(e){var t,n=e.configuredPlatforms,o=v((0,g.A)(),1)[0],a=S(),i=v((0,r.useState)(!0),2),b=i[0],A=i[1],_=v((0,r.useState)(""),2),w=_[0],O=_[1],j=v((0,r.useState)(""),2),k=j[0],E=j[1],N=v((0,r.useState)(-1),2),I=N[0],P=N[1];function T(){return"https://monitor.lunio.ai/v3.0/template?accid=".concat(o.account.account_id,b?"&urldecode=1&kw={keyword}&mt={matchtype}&nw={network}&cpn={campaignid}&devi={device}&devm={devicemodel}&locp={loc_physical_ms}&loci={loc_interest_ms}&pl={placement}&cr={creative}&adp={adposition}&sadt={adtype}&url={lpurl}":"&kw={keyword}&mt={matchtype}&nw={network}&cpn={campaignid}&devi={device}&devm={devicemodel}&locp={loc_physical_ms}&loci={loc_interest_ms}&pl={placement}&cr={creative}&adp={adposition}&sadt={adtype}&url={unescapedlpurl}")}function C(e,t){var n=document.getElementById(e).textContent;navigator.clipboard.writeText(n).then(function(){return(0,y.A)(t,"success")}),O(!0)}return(0,r.useEffect)(function(){A(1===I||0!==I)},[I]),(0,x.jsxs)(p.A.Page,{type:"settings",children:[(0,x.jsx)(m.default,{type:"settings",title:(0,l.A)("Integrations"),text:(0,l.A)("Add and copy all of your tracking codes here"),noDivider:!0}),(0,x.jsxs)(d.default,{className:a.formContainer,children:[(0,x.jsx)(f.default,{preset:"formSectionTitle",className:"mb-5",children:(0,l.A)("Google Tracking Template")}),(0,x.jsxs)(f.default,{preset:"formSectionText",className:"mb-3",children:[(0,l.A)("Copy and paste the tracking template below into any Google Ads account you wish to protect by following our guide"),(0,x.jsxs)("a",{href:"https://help.lunio.ai/en/articles/9388813-how-to-connect-your-google-ads-account-video-guide",target:"_blank",rel:"noreferrer",children:[" ",(0,l.A)("here.")]})]}),(0,x.jsx)("div",{className:a.scriptContainer,children:(0,x.jsx)("pre",{id:"googleTrackingScript",children:T()})}),(0,x.jsxs)("div",{className:"flex items-center mb-5 mt-5",children:[(0,x.jsx)(u.default.Checkbox,{"data-testid":"encode-final-url-button",className:"mr-3",value:b,onChange:function(){return A(!b)},"aria-label":(0,l.A)("Encode final URLs?"),disabled:1===I}),(0,x.jsxs)("div",{children:[(0,x.jsxs)(f.default,{preset:"formSectionTitle",children:[" ",(0,l.A)("Encode final URLs?")]}),(0,x.jsx)(f.default,{preset:"formSectionSubTitle",children:(0,l.A)('We recommend setting this to "Yes" unless using 3rd party tracking solutions.')})]})]}),(0,x.jsxs)(s.default,{className:"","data-testid":"copy-google-tracking-script-button",onClick:function(){return C("googleTrackingScript",(0,l.A)("Google Tracking Template copied to clipboard."))},iconRight:"far fa-clone",children:["googleTrackingScript"!==w&&(0,l.A)("Copy Google Script"),"googleTrackingScript"===w&&(0,l.A)("Copied")]}),(0,x.jsx)(h.A,{trackingScript:T(),onForcedEncodeChange:P}),(0,x.jsx)(c.default,{className:"mt-5 mb-5"}),(0,x.jsx)(f.default,{preset:"formSectionTitle",className:"mb-5",children:(0,l.A)("Multiplatform Tracking Script")}),(0,x.jsx)(f.default,{preset:"formSectionText",className:"mb-3",children:(0,l.A)("To allow protection and monitoring of other platforms you will need to use this multiplatform tracking script. You can add this to a tag manager like Google Tag Manager. You can use the same multiplatform tracking script for any website or landing page you want to protect. Reach out to your account manager if you need help installing this.")}),(0,x.jsx)("div",{className:a.scriptContainer,children:(0,x.jsx)("pre",{id:"mplatTrackingScript",children:null==n?void 0:n.mplat_script})}),(0,x.jsxs)(s.default,{className:"mt-5","data-testid":"copy-mplat-tracking-script-button",onClick:function(){return C("mplatTrackingScript",(0,l.A)("Multi Platform Tracking Template copied to clipboard."))},iconRight:"far fa-clone",children:["mplatTrackingScript"!==w&&(0,l.A)("Copy Multiplatform Script"),"mplatTrackingScript"===w&&(0,l.A)("Copied")]}),(0,x.jsx)(c.default,{className:"mt-5 mb-5"}),(0,x.jsx)(f.default,{preset:"formSectionTitle",className:"mb-5",children:(0,l.A)("Google Tag Manager Template")}),(0,x.jsx)(f.default,{preset:"formLabel",children:(0,l.A)("Use our Google Tag Manager tag template")}),(0,x.jsx)("div",{className:a.scriptContainer,children:(0,x.jsx)("pre",{id:"apiKey",children:null==n||null===(t=n.mplat_script.match(/\/([a-zA-Z0-9_]+)\.js/))||void 0===t?void 0:t[1]})}),(0,x.jsxs)(s.default,{className:"mt-5","data-testid":"copy-apikey-tracking-script-button",onClick:function(){return e=(0,l.A)("Template Key copied to clipboard."),t=document.getElementById("apiKey").textContent,navigator.clipboard.writeText(t).then(function(){return(0,y.A)(e,"success")}),void E(!0);var e,t},iconRight:"far fa-clone",children:["mplatTrackingScript"!==k&&(0,l.A)("Copy Template Key"),"mplatTrackingScript"===k&&(0,l.A)("Copied")]})]})]})}w.propTypes={configuredPlatforms:i().array.isRequired};const O=w},7259:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(14041),o=n(89748),a=n(66773),i=n(24284),l=n(9260),s=n(62720),c=n(13571),u=n(30021),d=n(30556),f=n(99018),p=n(88133),m=n(97475),g=n(31085);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A=(0,f.createUseStyles)(function(e){return{content:{fontWeight:"normal"},subcontent:{marginTop:e.spacing[3]},button:{marginRight:e.spacing[2]}}});const _=function(){var e=(0,m.jE)(),t=b((0,r.useState)(!1),2),n=t[0],f=t[1],y=b((0,r.useState)(""),2),v=y[0],_=y[1],S=b((0,r.useState)([]),2),w=S[0],O=S[1],j=A();function k(){_(""),O([])}var E=(0,p.gC)("/ip/whitelist","POST");return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.default,{id:"add-ip-to-allow-list-button",onClick:function(){k(),f(!0)},iconRight:"plus","data-testid":"allowlist-button",className:j.button,children:(0,o.A)("Add IP")}),(0,g.jsxs)(c.default,{open:n,onClose:function(){return f(!1)},className:j.content,size:"md",children:[(0,g.jsx)(c.default.Header,{title:(0,o.A)("Add IP to Allow List")}),(0,g.jsx)(c.default.Content,{children:(0,g.jsxs)(d.default.Row,{children:[(0,g.jsxs)(d.default.Col,{children:[(0,g.jsx)(s.default,{label:(0,o.A)("IP Address"),name:"ip_address",type:"text",onFormValue:function(e){_(e.value)},id:"ip-to-add-input","data-testId":"ip-to-add-input",value:v,errors:w,showErrors:!0}),(0,g.jsx)(u.default,{preset:"formSectionTitle",className:"mt-3 mb-3",children:(0,o.A)("Examples")}),(0,g.jsxs)(u.default,{preset:"formSectionSubText",children:["123.1.5.67"," ",(0,g.jsx)("br",{}),"2620:0:1003:1011:fa1e:dfff:fee6:2711"]})]}),(0,g.jsxs)(d.default.Col,{children:[(0,g.jsx)(u.default,{preset:"formSectionTitle",className:"mb-3",children:(0,o.A)("IP to Add")}),(0,g.jsx)(u.default,{preset:"formSectionText",children:(0,o.A)("Any IP you add will then not get blocked by any of your Accounts and Campaigns.")})]})]})}),(0,g.jsxs)(c.default.Actions,{children:[(0,g.jsx)(l.default,{onClick:function(){k(),f(!1)},preset:"outline","data-testid":"allowlist-close-button",children:(0,o.A)("Cancel")}),(0,g.jsx)(l.default,{onClick:function(){return function(){var t=(0,a.A)("isIpAddress",v.replaceAll("/","_"),(0,o.A)("Must be a valid ip address"));if(t)O(t);else{O([]);var n={ips:v,label:"lunio",type:"user"};E.mutate(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({_method:"PUT"},n),{onSuccess:function(){(0,i.A)((0,o.A)("Whitelisted IP created successfully"),"success"),e.getQueryCache().findAll().forEach(function(t){e.invalidateQueries(t.queryKey)}),k()},onError:function(){(0,i.A)((0,o.A)("Something went wrong!"),"error")}}),f(!1)}}()},"data-testid":"allowlist-submit-button",children:(0,o.A)("Add IP")})]})]})]})}},7450:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);const o={title:(0,r.A)("IVT by Placement across Campaigns"),description:(0,r.A)("Compare IVT rates by placement to spot where campaign traffic quality drops."),iconName:"bullseye-arrow",colourName:"Green",period:(0,r.A)("Last 30 days"),periodKey:"30d",columnGroupingOrder:["level","placement"],keyWords:[(0,r.A)("IVT"),(0,r.A)("Placement"),(0,r.A)("Campaign"),(0,r.A)("L30 Days")],filters:[{label:(0,r.A)("Level"),type:"flat-select",name:"level",queryKey:"level",queryTranslator:"singleTextValueRadio",filterGroup:{label:(0,r.A)("LEVEL"),name:"level",displayOrder:1},filterTreeLogic:{dependantFilters:[]},defaultState:{name:"campaign",value:!0},applyFilterOnUpdate:!0,options:[{label:(0,r.A)("Campaign"),name:"campaign",type:"radio",value:!0}]},{label:(0,r.A)("Placement"),name:"placement",type:"dropdown-multi-select",queryKey:"placement",queryTranslator:"arrayOfNames",filterGroup:{label:(0,r.A)("Breakdown Filter"),name:"breakdownFilter",displayOrder:3},options:[{label:(0,r.A)("Audience Network Classic"),type:"checkbox",name:"audience_network_classic",value:!0},{label:(0,r.A)("Audience Network Rewarded Video"),type:"checkbox",name:"audience_network_rewarded_video",value:!0},{label:(0,r.A)("Facebook Feed"),type:"checkbox",name:"facebook_feed",value:!0},{label:(0,r.A)("Facebook Instream"),type:"checkbox",name:"facebook_instream",value:!0},{label:(0,r.A)("Facebook Marketplace"),type:"checkbox",name:"facebook_marketplace",value:!0},{label:(0,r.A)("Facebook Right Column"),type:"checkbox",name:"facebook_right_column",value:!0},{label:(0,r.A)("Instagram Feed"),type:"checkbox",name:"instagram_feed",value:!0}
2,{label:(0,r.A)("Instagram Stories"),type:"checkbox",name:"instagram_stories",value:!0},{label:(0,r.A)("Messenger Inbox"),type:"checkbox",name:"messenger_inbox",value:!0},{label:(0,r.A)("Messenger Sponsored Messages"),type:"checkbox",name:"messenger_sponsored_messages",value:!0},{label:(0,r.A)("Threads Stream"),type:"checkbox",name:"threads_stream",value:!0}]}]}},7575:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(62720),s=n(13571),c=n(1781),u=n(55618),d=n(30021),f=n(28426),p=n(27805),m=n(62161),g=n(36990),y=n(89748),h=n(99018),x=n(11525),b=n(93033),v=n(11182),A=n(19758),_=n(76678),S=n(31085);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function N(e,t,n){return(t=function(e){var t=function(e){if("object"!=w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==w(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=(0,h.createUseStyles)(function(e){return N(N(N(N(N(N({formContainer:{marginTop:e.spacing[4],width:"50%"}},"@media (max-width: ".concat(e.breakpoints.xl,")"),{formContainer:{width:"100%"}}),"centredRow",{display:"flex",alignItems:"center"}),"logo",{backgroundColor:e.colors.purple[100],borderRadius:10,overflow:"hidden",width:89,height:89,padding:10}),"greyText",{color:"".concat(e.colors.grey[100]," !important")}),"alignTextRight",{textAlign:"right"}),"button",{marginLeft:e.spacing[2]})});function P(e){var t,n,o=e.data,a=e.filters,h=e.isLoading,w=e.handlePagination,O=e.onFilterChange,E=e.deleteUser,N=e.updateUser,P=e.updatePassword,T=e.isUpdatingUser,C=e.createUser,R=k((0,v.A)(),1)[0],M=k((0,r.useState)((null==o?void 0:o.users)||[]),2),L=M[0],D=M[1];(0,r.useEffect)(function(){D((null==o?void 0:o.users)||[])},[o]);var B,U,F,G=I(),W=k((0,r.useState)(!1),2),z=W[0],V=W[1],q=k((0,r.useState)(!1),2),K=q[0],H=q[1],Y=k((0,r.useState)(null),2),$=Y[0],Z=Y[1];function X(e){return L.findIndex(function(t){return t.id===e})}function J(e){Z(e)}function Q(e){if(!e)return!1;var t=R.accountRoleIdentifier;return!("ROOT"===e&&"ROOT"!==t||"ROOT"!==t&&"ADMIN"!==t)}return(0,S.jsxs)(f.A.Page,{type:"settings",children:[(0,S.jsx)(p.default,{type:"settings",title:(0,y.A)("Manage Users"),text:null!=o&&o.pagination?"".concat(null==o||null===(B=o.pagination)||void 0===B?void 0:B.total," ").concat((0,y.A)("Users")," | ").concat((0,y.A)("Page")," ").
2concat(null==o||null===(U=o.pagination)||void 0===U?void 0:U.current_page," of ").concat(null==o||null===(F=o.pagination)||void 0===F?void 0:F.last_page):""}),(0,S.jsxs)("div",{className:"flex distribute-space-between shrink-0 mb-8",children:[(0,S.jsx)(l.default,{size:"md",value:a.search_key,placeholder:(0,y.A)("Search..."),iconRight:"fas fa-search","data-testid":"search-input",onChange:function(e){return O(j(j({},a),{},{search_key:e.target.value}))},"aria-label":(0,y.A)("Search...")}),(0,S.jsx)(b.A,{accountRoles:["ROOT","ADMIN"],children:(0,S.jsx)(i.default,{className:"shrink-0","data-testid":"add-user-button",onClick:function(){return H(!0)},children:"Add User"})})]}),(0,S.jsx)(m.A,{rows:L,isLoading:h,totalPages:null==o||null===(t=o.pagination)||void 0===t?void 0:t.last_page,totalItems:null==o||null===(n=o.pagination)||void 0===n?void 0:n.total,pageNumber:a.page,handlePagination:w,limit:a.limit,noDataTitle:(0,y.A)("No users found"),noDataSubTitle:(0,y.A)("Click the add button to create your first user"),noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("thead",{children:(0,S.jsxs)("tr",{children:[(0,S.jsxs)("th",{children:[(0,S.jsx)(d.default,{size:"xs","data-testid":"header-name",children:(0,y.A)("Name")}),(0,S.jsx)(g.A,{header:!0,children:(0,y.A)("Email")})]}),(0,S.jsxs)("th",{children:[(0,S.jsx)(d.default,{size:"xs","data-testid":"header-status",children:(0,y.A)("Account Status")}),(0,S.jsx)(g.A,{header:!0,children:(0,y.A)("Active, Inactive")})]}),(0,S.jsx)("th",{children:(null==e?void 0:e.company_mfa)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(d.default,{size:"xs","data-testid":"header-multi-auth",children:(0,y.A)("Multifactor Auth")}),(0,S.jsx)(g.A,{header:!0,children:(0,y.A)("Enabled, Disabled")})]})}),(0,S.jsx)("th",{children:(0,S.jsx)(d.default,{size:"xs","data-testid":"header-role",children:(0,y.A)("Account Role")})}),(0,S.jsxs)("th",{"data-align":"right",children:[(0,S.jsx)(d.default,{size:"xs","data-testid":"header-user-access",style:{textAlign:"right"}
2,children:(0,y.A)("Manage User Access")}),(0,S.jsx)(g.A,{header:!0,children:(0,y.A)("Manage Accounts")})]})]})}),(0,S.jsxs)("tbody",{children:[(0,S.jsxs)("td",{children:[(0,S.jsxs)(d.default,{size:"xs",weight:"lg",children:[null==e?void 0:e.first_name," ",null==e?void 0:e.last_name]}),(0,S.jsx)(g.A,{header:!0,children:null==e?void 0:e.email})]}),(0,S.jsx)("td",{children:Q(null==e?void 0:e.role_identifier)&&"ROOT"!==(null==e?void 0:e.role_identifier)&&(0,S.jsx)(l.default.Checkbox,{onClick:function(){return t=e,n=(0,x.A)(t),r=(0,x.A)(L),n.status=!t.status,r[X(t.id)]=n,N(n),void D(r);var t,n,r},"data-testid":"status-checkbox-".concat(null==e?void 0:e.id),value:null==e?void 0:e.status,"aria-label":(0,y.A)("Account Status")})}),(0,S.jsx)("td",{children:(null==e?void 0:e.company_mfa)&&(0,S.jsx)(l.default.Checkbox,{onClick:function(){return t=e,n=(0,x.A)(t),r=(0,x.A)(L),n.multifactor=!t.multifactor,r[X(t.id)].multifactor=!t.multifactor,N(n),void D(r);var t,n,r},value:null==e?void 0:e.multifactor,"data-testid":"mfa-checkbox-".concat(null==e?void 0:e.id),disabled:!Q(null==e?void 0:e.role_identifier)||"ROOT"===(null==e?void 0:e.role_identifier),"aria-label":(0,y.A)("Multifactor Auth")})}),(0,S.jsx)("td",{children:(0,S.jsx)(d.default,{size:"xs",weight:"lg",children:(t=e,"ROOT"===(null==t?void 0:t.role_identifier)?"Owner":"ADMIN"===(null==t?void 0:t.role_identifier)?"Admin":"ENROL"===(null==t?void 0:t.role_identifier)||"MANAGER"===(null==t?void 0:t.role_identifier)||"USER"===(null==t?void 0:t.role_identifier)?"Enrolled":"")})}),(0,S.jsxs)("td",{"data-align":"right",children:[(Q(null==e?void 0:e.role_identifier)&&"ROOT"!==(null==e?void 0:e.role_identifier)||"ROOT"===R.accountRoleIdentifier)&&(0,S.jsx)(c.default,{content:(0,y.A)("Edit this user"),children:(0,S.jsx)(i.default,{id:"edit-user-button","data-testid":"edit-user-button-".concat(null==e?void 0:e.id),preset:"outline",size:"sm",className:G.button,onClick:function(){return function(e){V(e)}(e)},"aria-label":(0,y.A)("Edit User"),iconLeft:"far fa-pencil"})}),Q(null==e?void 0:e.role_identifier)&&"ROOT"!==(null==e?void 0:e.role_identifier)&&(0,S.jsx)(c.default,{content:(0,y.A)("Delete this user"),children:(0,S.jsx)(i.default,{id:"delete-user-button","data-testid":"delete-user-button-".concat(null==e?void 0:e.id),onClick:function(){return J(e)},className:G.button,size:"sm",preset:"outline","aria-label":(0,y.A)("Delete User"),iconLeft:"far fa-trash"})})]})]})]});var t}}),(0,S.jsxs)(s.default,{open:$,onClose:function(){return Z(null)},className:G.content,children:[(0,S.jsx)(s.default.Header,{title:(0,y.A)("Confirm Deletion")}),(0,S.jsx)(s.default.Content,{children:(0,S.jsx)(d.default,{children:$&&(0,y.A)("Are you sure you want to delete :user",{user:$.email})})}),(0,S.jsxs)(s.default.Actions,{children:[(0,S.jsx)(i.default,{onClick:function(){return function(){E($);var e=(0,x.A)(L);e.splice(X($.id),1),D(e),Z(null)}()},"data-testid":"confirm-delete-user-button",preset:"destructive",children:(0,y.A)("Continue")}),(0,S.jsx)(i.default,{onClick:function(){Z(null)},preset:"outline","data-testid":"cancel-delete-user-button",children:(0,y.A)("Cancel")})]})]}),(0,S.jsx)(u.default,{open:z,onClose:function(){return V(!1)},heading:(0,y.A)("Edit User"),children:(0,S.jsx)(A.A,{editingUser:z,updateUser:function(e){var t=(0,x.A)(L);t[X(e.id)]=e,N(e),D(t),V(!1)},updatePassword:P,isUpdating:T,deleteUser:function(e){V(!1),J(e)},onClose:V})}),(0,S.jsx)(u.default,{open:K,onClose:function(){return H(!1)},heading:(0,y.A)("Create User"),children:(0,S.jsx)(_.default,{createUser:function(e){H(!1),C(e)},creatingUser:K,onClose:H})})]})}P.propTypes={data:a().object.isRequired,filters:a().object.isRequired,onFilterChange:a().func.isRequired,handlePagination:a().func.isRequired,updateUser:a().func.isRequired,updatePassword:a().func.isRequired,isUpdatingUser:a().bool.isRequired,deleteUser:a().func.isRequired,isLoading:a().bool.isRequired,createUser:a().func.isRequired};const T=P},7626:(e,t,n)=>{"use strict";e.exports=n.p+"093f6557ed166664b55f.svg"},7706:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(37816),a=n(31085);const i=function(){var e=(0,r.R7)({}),t=e.filters,n=e.handlePagination,i=e.setFilters,l=e.handleSort;return(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:t,onFilterChange:i,dynamicQuery:"",handlePagination:n,handleSort:l})})}}
2,7787:(e,t,n)=>{"use strict";e.exports=n.p+"83b22875a9704f2018b4.svg"},7801:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t){var r=e.find(function(e){return e.platform_name===t});if(r)return r}if(n){var o=e.find(function(e){return e.platform_name===(null==n?void 0:n.platform_name)});if(o)return o}return e[0]}},7935:(e,t,n)=>{"use strict";e.exports=n.p+"9121e641226b370b6980.svg"},8122:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>l});const l=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return[null!==(e=null===(t=JSON.parse(sessionStorage.getItem("dashboardData")))||void 0===t||null===(t=t.pagination)||void 0===t||null===(t=t.paginationParams)||void 0===t?void 0:t.limit)&&void 0!==e?e:n,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=JSON.parse(sessionStorage.getItem("dashboardData"));sessionStorage.setItem("dashboardData",JSON.stringify(a(a({},t),{},{pagination:{paginationParams:{limit:e}}})))}]}},8169:(e,t,n)=>{"use strict";e.exports=n.p+"ccca0c48d817c1f4dcc6.svg"},8713:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(62720),s=n(55618),c=n(30021),u=n(89748),d=n(99226),f=n(66773),p=n(24284),m=n(83223),g=n(39665),y=n(9511),h=n(88133),x=n(96182),b=n(77730),v=n(80111),A=n(31085);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t,n){return(t=function(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function N(e){var t,n,o,a=e.filters,_=void 0===a?{}:a,S=e.exportType,O=void 0===S?"Keyword":S,N=j((0,b.A)(),1)[0],I=j((0,x.A)(),1)[0],P=j((0,v.A)(),1)[0],T=j((0,r.useState)(!1),2),C=T[0],R=T[1],M=j((0,r.useState)(function(){return"mplat_campaign"===O||"google_campaign"===O?["campaign"]:"google_keyword"===O||"mplat_keyword"===O?["keyword"]:"google_match_types"===O||"mplat_match_types"===O?["match_type"]:["campaign"]}),2),L=M[0],D=M[1],B=(0,d.A)().activePlatformTitle,U=(null==I||null===(t=I.selectedPlatform)||void 0===t?void 0:t.platform_name)||"",F=j((0,r.useState)(""),2),G=F[0],W=F[1],z=j((0,r.useState)({label:"Daily",value:"daily"}),2),V=z[0],q=z[1],K=j((0,r.useState)([]),2),H=K[0],Y=K[1],$=(0,h.gC)("/analytics/stats/export","POST"),Z=(0,g.a)(new Date(1e3*P.dataFilterDates.min.localTimestamp)),X=(0,g.a)(new Date(1e3*P.dataFilterDates.max.localTimestamp));function J(e){switch(e){case"google_keyword":return(0,u.A)("Keyword");case"google_placement":return(0,u.A)("Placement");case"google_campaign":case"mplat_campaign":return(0,u.A)("Campaign");case"google_match_types":return(0,u.A)("Match Types");case"google_network":return(0,u.A)("Network");case"google_country":case"mplat_country":return(0,u.A)("Location");case"google_state":return(0,u.A)("State");case"google_day":case"mplat_day":return(0,u.A)("Day");case"mplat_protected":return(0,u.A)("Websites Protected");case"mplat_device":return(0,u.A)("Device");case"affiliate_partner":return(0,u.A)("Partner")}return""}function Q(){return"google_campaign"===O||"google_keyword"===O||"mplat_keyword"===O||"google_match_types"===O||"mplat_match_types"===O}function ee(e){var t,n=L.indexOf(e);if(-1===n)L.push(e);else{if(1===L.length)return;L.splice(n,1)}D(function(e){if(Array.isArray(e))return E(e)}(t=L)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||k(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(i.default,{id:"export-button-open",onClick:function(){return R(!0)},iconRight:["far","download"],"data-testid":"export-button",children:(0,u.A)("Export")}),(0,A.jsxs)(s.default,{open:C,onClose:function(){return R(!1)},children:[(0,A.jsx)(c.default,{preset:"formHeading",as:"h4",children:(0,u.A)("Ad Stats Export Summary")}),(0,A.jsx)(c.default,{preset:"formSubHeading",className:"mb-8",children:(0,u.A)("Export Ad stats in CSV files")}),(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Workspace"),noSpacer:!0,children:null==N||null===(n=N.selectedWorkspace)||void 0===n?void 0:n.name}),(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Platform"),noSpacer:!0,children:B}),(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Ad Stats"),noSpacer:!0,children:J(O)}),(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Date Range"),noSpacer:!0,children:(0,A.jsxs)(c.default,{children:[(0,m.GP)(Z,"LLL d, yyyy")," - ",(0,m.GP)(X,"LLL d, yyyy")]})}),(J(O)===(0,u.A)("Day")||Q())&&(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Group By"),noSpacer:!0,children:(0,A.jsx)(l.default.Select,{"aria-label":(0,u.A)("Group By"),className:"width-50 mt-3",id:"segment-select",options:[{label:(0,u.A)("Daily"),value:"daily"},{label:(0,u.A)("Weekly"),value:"weekly"},{label:(0,u.A)("Monthly"),value:"monthly"}],onChange:function(e){return q({label:e.label,value:e.value})},dataTestId:"industry-select-dropdown",value:{label:V.label,value:V.value}})}),(0,A.jsx)(c.default,{preset:"formSectionTitle",className:"mt-5",children:(0,u.A)("Accounts")}),(0,A.jsx)(c.default,{children:(0,y.A)(null===(o=_["accounts.selection"])||void 0===o?void 0:o.length)}),(_["search.contains"]||_["partner.contains"])&&"google"===U&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(c.default,{preset:"formSectionTitle",className:"mt-5",children:(0,u.A)("Search Contains")}),(0,A.jsxs)(c.default,{children:['"',_["search.contains"],_["partner.contains"],'"']})]}),Q()&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(c.default,{preset:"formSectionTitle",className:"mt-5",children:(0,u.A)("Type")}),(0,A.jsxs)("div",{children:[(0,A.jsx)(l.default.Checkbox,{className:"mt-2",label:(0,u.A)("Campaign"),"aria-label":(0,u.A)("Select camapign type"),value:L.includes("campaign"),onChange:function(){return ee("campaign")}}),(0,A.jsx)(l.default.Checkbox,{className:"mt-2",label:(0,u.A)("Keyword"),"aria-label":(0,u.A)("Select keyword type"),value:L.includes("keyword"),onChange:function(){return ee("keyword")}}),(0,A.jsx)(l.default.Checkbox,{className:"mt-2",label:(0,u.A)("Match Type"),"aria-label":(0,u.A)("Select match type"),value:L.includes("match_type"),onChange:function(){return ee("match_type")}})]})]}),(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Email"),children:(0,A.jsx)(l.default,{placeholder:(0,u.A)("Enter email address"),name:"recipient_email",type:"email",onFormValue:function(e){W(e.value)},id:"export-email-input",value:G,errors:H,showErrors:!0})}),(0,A.jsxs)("div",{className:"flex justify-end",children:[(0,A.jsx)(i.default,{className:"mr-3",onClick:function(){Y([]),R(!1)},preset:"outline","data-testid":"export-cancel-button",children:(0,u.A)("Cancel")}),(0,A.jsx)(i.default,{onClick:function(){var e,t,n,r=(0,f.A)("isEmail",G,(0,u.A)("Enter an email address"));if(r)Y(r);else{Y([]);var o=_["accounts.selection"]||[];$.mutate(w(w(w(w({recipient_email:G},function(e){switch(e){case"google_keyword":return{ad_stat_type:"keyword"};case"google_placement":return{ad_stat_type:"placement"};case"google_campaign":case"mplat_campaign":return{ad_stat_type:"campaign"};case"google_match_types":return{ad_stat_type:"match_type"};case"google_network":return{ad_stat_type:"network"};case"google_country":case"mplat_country":return{ad_stat_type:"location_country"};case"google_state":return{ad_stat_type:"location_state"};case"google_day":case"mplat_day":return{ad_stat_type:V.value};case"mplat_protected":return{ad_stat_type:"protected_domain"};case"mplat_device":return{ad_stat_type:"device"};case"affiliate_partner":return{ad_stat_type:"affiliate_partner"}}return{}}(O)),{},{stat_page:"click_stats",platform:null==I||null===(e=I.selectedPlatform)||void 0===e?void 0:e.platform_name}
2,!0===Q()?{include:L}:{}),!0===Q()?{period:V.value}:{}),{},{filters:w(w(w(w({df_dmin:(null==P||null===(t=P.dataFilterDates)||void 0===t||null===(t=t.min)||void 0===t?void 0:t.timestamp)||0,df_dmax:(null==P||null===(n=P.dataFilterDates)||void 0===n||null===(n=n.max)||void 0===n?void 0:n.timestamp)||0},o.length>0&&{df_customer_ids:o}),_["search.contains"]?{search:_["search.contains"]}:{}),_["partner.contains"]?{partner_contains:_["partner.contains"]}:{}),"google_state"===O?{filter_type:"country",filter:"United States of America"}:{})}),{onSuccess:function(){(0,p.A)((0,u.A)("Your export is being prepared and will be with you shortly"),"success")},onError:function(){(0,p.A)((0,u.A)("Export failed to process"),"error")}}),Y([]),R(!1)}},"data-testid":"export-export-button",children:(0,u.A)("Export")})]})]})]})}N.propTypes={filters:a().object,exportType:a().string};const I=N},9219:(e,t,n)=>{"use strict";e.exports=n.p+"fb16ad765622cdb84d01.svg"},9260:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(n(25751)),a=n(99018),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(86957),s=u(n(79135)),c=n(31085);function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var f=["type","as","className","buttonTextClassName","children","size","fullWidth","contentPosition","preset","disabled","iconRight","iconLeft","backgroundColour","textColour","loading","loadingText","formData","data-testid"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default;y(".borderRadius-x1f96onm{border-radius:50px}",2e3),y(".cursor-x1ypdohk{cursor:pointer}",3e3),y(".fontWeight-x1s688f{font-weight:600}",3e3),y(".padding-xbnpv00{padding:8px 14px}",1e3),y(".flexShrink-x2lah0s{flex-shrink:0}",3e3),y(".flexGrow-x1c4vz4f{flex-grow:0}",3e3),y(".display-x3nfvp2{display:inline-flex}",3e3),y(".alignItems-x6s0dn4{align-items:center}",3e3),y(".width-xeq5yr9{width:fit-content}",4e3),y(".display-x78zum5{display:flex}",3e3),y(".justifyContent-x1nhvcw1{justify-content:flex-start}",3e3),y(".width-xh8yej3{width:100%}",4e3),y(".justifyContent-xl56j7k{justify-content:center}",3e3),y(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),y(".marginRight-x1db2dqx{margin-right:8px}",4e3),y(".marginLeft-xet2fuk{margin-left:8px}",4e3),y(".backgroundColor-xirq6vt{background-color:var(--oldBrand600-x1t41vhw)}",3e3),y(".backgroundColor-xm75nw3:hover{background-color:var(--oldBrand700-xx6j7i3)}",3130),y(".backgroundColor-x17v1cmk:disabled{background-color:var(--oldBrand200-xdr76h5)}",3092),y(".backgroundColor-x19re0dr:disabled:hover{background-color:var(--oldBrand200-xdr76h5)}",3040),y(".outline-x1a2a7pz{outline:none}",2e3),y(".outline-xdy6q9j:focus{outline:4px solid var(--oldBrand200-xdr76h5)}",2150),y(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),y(".boxShadow-x1qzktc2{box-shadow:0 1px 2px 0 #0A0D120D}",3e3),y(".boxShadow-xewqxn7:focused{box-shadow:none}",3040),y(".backgroundColor-xf6q9j8{background-color:var(--oldBrand100-x1o59ms7)}",3e3),y(".backgroundColor-x1nz0k6i:hover{background-color:var(--oldBrand200-xdr76h5)}",3130),y(".backgroundColor-xf1jt2g:disabled{background-color:var(--oldBrand25-x1tpghg1)}",3092),y(".backgroundColor-x1jk55uq:focused{background-color:var(--oldBrand50-x1t4s9vw)}",3040),y(".backgroundColor-xhsjwk4:disabled:hover{background-color:var(--oldBrand25-x1tpghg1)}",3040),y(".outline-x1012sv:focus{outline:4px solid var(--secondary100-x4dhzhb)}",2150),y(".color-xb0o5a8{color:var(--oldBrand700-xx6j7i3)}",3e3),y(".color-xx5zty2:disabled{color:var(--oldBrand400-xg3037r)}",3092),y(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),y(".backgroundColor-x1a33ojm:hover{background-color:var(--gray50-x1bw8p5w)}",3130),y(".backgroundColor-xztep5i:disabled{background-color:var(--white-x3n8fk9)}",3092),y(".backgroundColor-xsqspj:disabled:hover{background-color:var(--white-x3n8fk9)}",3040),y(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),y(".border-xmboeho:disabled{border:1px solid var(--gray200-x1cfnqzm)}",1092),y(".outline-xj7fviw:focus{outline:4px solid var(--gray200-x1cfnqzm)}",2150),y(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),y(".color-x9wgy78:disabled{color:var(--gray300-x1xk3734)}",3092),y(".width-x4pn7vq{width:unset}",4e3),y(".backgroundColor-xjbqb8w{background-color:transparent}",3e3),y(".color-x1iefhkx:hover{color:var(--oldBrand900-xuu3kei)}",3130),y(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),y(".color-xnzxj8q:hover{color:var(--gray700-x15a2rb)}",3130),y(".color-x17qgrxy:disabled:hover{color:var(--gray300-x1xk3734)}",3040),y(".backgroundColor-x1q72j15{background-color:var(--error600-x1indqeg)}",3e3),y(".backgroundColor-xul6e3s:hover{background-color:var(--error700-x1brey9)}",3130),y(".backgroundColor-x1bxprki:disabled{background-color:var(--error200-xxycodf)}",3092),y(".backgroundColor-x1kq34uw:disabled:hover{background-color:var(--error200-xxycodf)}",3040),y(".outline-x1ifa96h:focus{outline:4px solid var(--error100-x13jjcv4)}",2150),y(".backgroundColor-x1ssdy5{background-color:var(--error50-x1f3qy36)}",3e3),y(".backgroundColor-x13lx0zu:hover{background-color:var(--error100-x13jjcv4)}",3130),y(".backgroundColor-xzuhbpc:disabled{background-color:var(--error25-x18c0m9r)}",3092),y(".backgroundColor-xaoijza:disabled:hover{background-color:var(--error25-x18c0m9r)}",3040),y(".color-xqy16mm{color:var(--error700-x1brey9)}",3e3),y(".color-xhgucok:disabled{color:var(--error300-x1etg42b)}",3092),y(".backgroundColor-x1ch7e23:hover{background-color:var(--error50-x1f3qy36)}",3130),y(".border-xdghze2{border:1px solid var(--error300-x1etg42b)}",1e3),y(".border-xlmw6hz:disabled{border:1px solid var(--error200-xxycodf)}",1092),y(".color-x4cau6h:hover{color:var(--error800-xffvesf)}
2",3130),y(".color-xypw6f6:disabled:hover{color:var(--error300-x1etg42b)}",3040),y(".backgroundColor-x1k74hu9{background-color:none}",3e3),y(".backgroundColor-x1eqo6io:disabled:hover{background-color:transparent}",3040),y(".fontSize-xif65rj{font-size:14px}",3e3),y(".height-x10w6t97{height:32px}",4e3),y(".height-xc9qbxq{height:36px}",4e3),y(".height-x1vqgdyp{height:40px}",4e3),y(".fontSize-x1j61zf2{font-size:16px}",3e3),y(".height-xn3w4p2{height:44px}",4e3),y(".height-xsdox4t{height:48px}",4e3),y(".padding-x1717udv{padding:0}",1e3),y(".width-x3bjnre{width:32px!important}",4e3),y(".width-x1q05la3{width:36px!important}",4e3),y(".width-x17uf5m7{width:40px!important}",4e3),y(".width-x1bpxcim{width:44px!important}",4e3),y(".width-x6an0f7{width:48px!important}",4e3);var h={base:{borderRadius:"borderRadius-x1f96onm",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,cursor:"cursor-x1ypdohk",fontWeight:"fontWeight-x1s688f",padding:"padding-xbnpv00",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,flexShrink:"flexShrink-x2lah0s",flexGrow:"flexGrow-x1c4vz4f",display:"display-x3nfvp2",alignItems:"alignItems-x6s0dn4",width:"width-xeq5yr9",$$css:"Button/index.tsx:8"},text:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",flexShrink:"flexShrink-x2lah0s",flexGrow:"flexGrow-x1c4vz4f",$$css:"Button/index.tsx:19"},textLeft:{justifyContent:"justifyContent-x1nhvcw1",width:"width-xh8yej3",$$css:"Button/index.tsx:25"},textCenter:{justifyContent:"justifyContent-xl56j7k",width:"width-xh8yej3",$$css:"Button/index.tsx:29"},textRight:{justifyContent:"justifyContent-x13a6bvl",width:"width-xh8yej3",$$css:"Button/index.tsx:33"},iconLeft:{marginRight:"marginRight-x1db2dqx",marginInlineStart:null,marginInlineEnd:null,$$css:"Button/index.tsx:37"},iconRight:{marginLeft:"marginLeft-xet2fuk",marginInlineStart:null,marginInlineEnd:null,$$css:"Button/index.tsx:40"},primary:{backgroundColor:"backgroundColor-xirq6vt backgroundColor-xm75nw3 backgroundColor-x17v1cmk backgroundColor-x19re0dr",outline:"outline-x1a2a7pz outline-xdy6q9j",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,color:"color-xf72ejy",boxShadow:"boxShadow-x1qzktc2 boxShadow-xewqxn7",$$css:"Button/index.tsx:43"},secondary:{backgroundColor:"backgroundColor-xf6q9j8 backgroundColor-x1nz0k6i backgroundColor-xf1jt2g backgroundColor-x1jk55uq backgroundColor-xhsjwk4",outline:"outline-x1a2a7pz outline-x1012sv",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,color:"color-xb0o5a8 color-xx5zty2",boxShadow:"boxShadow-x1qzktc2 boxShadow-xewqxn7",$$css:"Button/index.tsx:62"},outline:{backgroundColor:"backgroundColor-x18oya0d backgroundColor-x1a33ojm backgroundColor-xztep5i backgroundColor-xsqspj",border:"border-xct47cs border-xmboeho",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,outline:"outline-x1a2a7pz outline-xj7fviw",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,color:"color-x5tu7p5 color-x9wgy78",boxShadow:"boxShadow-x1qzktc2 boxShadow-xewqxn7",$$css:"Button/index.tsx:83"},link:{width:"width-x4pn7vq",backgroundColor:"backgroundColor-xjbqb8w",color:"color-xb0o5a8 color-x9wgy78 color-x1iefhkx",$$css:"Button/index.tsx:107"},ghost:{width:"width-x4pn7vq",backgroundColor:"backgroundColor-xjbqb8w",color:"color-x1r9fet4 color-x9wgy78 color-xnzxj8q color-x17qgrxy",$$css:"Button/index.tsx:118"},destructive:{backgroundColor:"backgroundColor-x1q72j15 backgroundColor-xul6e3s backgroundColor-x1bxprki backgroundColor-x1kq34uw",outline:"outline-x1a2a7pz outline-x1ifa96h",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,color:"color-xf72ejy",boxShadow:"boxShadow-x1qzktc2 boxSh
2adow-xewqxn7",$$css:"Button/index.tsx:130"},destructiveSecondary:{backgroundColor:"backgroundColor-x1ssdy5 backgroundColor-x13lx0zu backgroundColor-xzuhbpc backgroundColor-xaoijza",outline:"outline-x1a2a7pz outline-x1ifa96h",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,color:"color-xqy16mm color-xhgucok",boxShadow:"boxShadow-x1qzktc2 boxShadow-xewqxn7",$$css:"Button/index.tsx:147"},destructiveOutline:{backgroundColor:"backgroundColor-x18oya0d backgroundColor-x1ch7e23 backgroundColor-xztep5i backgroundColor-xsqspj",border:"border-xdghze2 border-xlmw6hz",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,outline:"outline-x1a2a7pz outline-x1ifa96h",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,color:"color-xqy16mm color-x4cau6h color-xhgucok color-xypw6f6",$$css:"Button/index.tsx:167"},destructiveLink:{backgroundColor:"backgroundColor-x1k74hu9 backgroundColor-x1ch7e23 backgroundColor-x1eqo6io",color:"color-xqy16mm color-xhgucok color-xypw6f6",$$css:"Button/index.tsx:189"},destructiveBold:{backgroundColor:"backgroundColor-x1q72j15 backgroundColor-xul6e3s backgroundColor-x1bxprki backgroundColor-x1kq34uw",outline:"outline-x1a2a7pz outline-x1ifa96h",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,color:"color-xf72ejy",boxShadow:"boxShadow-x1qzktc2 boxShadow-xewqxn7",$$css:"Button/index.tsx:201"},xs:{fontSize:"fontSize-xif65rj",height:"height-x10w6t97",$$css:"Button/index.tsx:218"},sm:{fontSize:"fontSize-xif65rj",height:"height-xc9qbxq",$$css:"Button/index.tsx:222"},md:{fontSize:"fontSize-xif65rj",height:"height-x1vqgdyp",$$css:"Button/index.tsx:226"},lg:{fontSize:"fontSize-x1j61zf2",height:"height-xn3w4p2",$$css:"Button/index.tsx:230"},xl:{fontSize:"fontSize-x1j61zf2",height:"height-xsdox4t",$$css:"Button/index.tsx:234"},fullWidth:{width:"width-xh8yej3",$$css:"Button/index.tsx:238"},xsmallIconOnly:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",flexShrink:"flexShrink-x2lah0s",flexGrow:"flexGrow-x1c4vz4f",padding:"padding-x1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,width:"width-x3bjnre",$$css:"Button/index.tsx:241"},smallIconOnly:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",flexShrink:"flexShrink-x2lah0s",flexGrow:"flexGrow-x1c4vz4f",padding:"padding-x1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,width:"width-x1q05la3",$$css:"Button/index.tsx:250"},mediumIconOnly:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",flexShrink:"flexShrink-x2lah0s",flexGrow:"flexGrow-x1c4vz4f",padding:"padding-x1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,width:"width-x17uf5m7",$$css:"Button/index.tsx:259"},largeIconOnly:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",flexShrink:"flexShrink-x2lah0s",flexGrow:"flexGrow-x1c4vz4f",padding:"padding-x1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,width:"width-x1bpxcim",$$css:"Button/index.tsx:268"},xlargeIconOnly:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",flexShrink:"flexShrink-x2lah0s",flexGrow:"flexGrow-x1c4vz4f",padding:"padding-x1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,width:"width-x6an0f7",$$css:"Button/index.tsx:277"}};function x(e){return"primary-alt"===e?h.primary:"tertiary"===e||"link-colour"===e?h.link:"destructive-bold"===e?h.destructiveBold:h[e]}function b(e){return"xs"===e?h.xs:"sm"===e?h.sm:"md"===e?h.md:"lg"===e?h.lg:h.xl}function v(e){var t=e.type,n=void 0===t?"button":t,r=e.as,o=void 0===r?"button":r,u=e.className,d=void 0===u?"":u,p=e.buttonTextClassName,g=void 0===p?"":p,y=e.children,v=void 0===y?null:y,A=e.size,_=void 0===A?"sm":A,S=e.fullWidth,w=void 0!==S&&S,O=e.contentPosition,j=void 0===O?"center":O,k=e.preset,E=void 0===k?"primary":k,N=e.disabled,I=void 0!==N&&N,P=e.iconRight,T=void 0===P?"":P,C=e.iconLeft,R=void 0===C?"":C,M=e.backgroundColour,L=e.textColour,D=e.loading,B=void 0!==D&&D,U=e.loadingText,F=void 0===U?"":U,G=e.formData,W=void 0===G?null:G,z=e["data-testid"],V=void 0===z?"":z,q=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,f);function K(){return B||"submit"===n&&"loading"===(null==W?void 0:W.status)}var H=I?"button":o,Y=Boolean(v),$=function(e,t){return e?"xs"===t?h.xsmallIconOnly:"sm"===t?h.smallIconOnly:"md"===t?h.mediumIconOnly:"lg"===t?h.largeIconOnly:h.xlargeIconOnly:null}(Boolean((R||T)&&!v),_),Z=function(e){return"left"===e?h.textLeft:"right"===e?h.textRight:h.textCenter}(j);return(0,c.jsx)(H,m(m({type:n,disabled:I,"data-testid":V,className:(0,a.classNames)(i.props(h.base,x(E),b(_)).className,w&&"width-xh8yej3",$&&i.props($).className,d),style:m(m({},M?{backgroundColor:l.colours[M]}:{}),L?{color:l.colours[L],borderColor:l.colours[L]}:{})},q),{},{children:(0,c.jsxs)("div",{"data-testid":"".concat(V,"-text"),className:(0,a.classNames)(i.props(h.text,Z).className,g),children:[R&&(0,c.jsx)("div",m(m({"data-testid":"".concat(V,"-left-icon")},i.props(Y&&h.iconLeft)),{},{children:(0,c.jsx)(s.default,{name:R})})),F||v,K()&&(0,c.jsx)("div",{"data-testid":"".concat(V,"-loading-icon"),className:"ml-2",children:(0,c.jsx)(s.default,{name:"spinner",spin:!0})}),T&&!K()&&(0,c.jsx)("div",m(m({"data-testid":"".concat(V,"-right-icon")},i.props(Y&&h.iconRight)),{},{children:(0,c.jsx)(s.default,{name:T})}))]})}))}v.displayName="Button",t.default=v},9265:(e,t,n)=>{"use strict";e.exports=n.p+"b7c00bb7738e18db928e.svg"},9326:(e,t,n)=>{"use strict";n.d(t,{A:()=>g}),n(14041);var r=n(88133),o=n(1582),a=n(55436),i=n(83405),l=n(89748),s=n(19863),c=n(96182),u=n(80111),d=n(35597),f=n(31085);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const g=function(e){var t,n,m,g,y,h,x,b=e.campaignId,v=void 0===b?0:b,A=e.dataType,_=p((0,u.A)(),1)[0],S=p((0,c.A)(),1)[0],w=0!==v?"/analytics/fraud-stats/campaign/".concat(v):"/analytics/fraud-stats/account",O=(0,r.Ay)("".concat(w,"?df_dmin=").concat(null==_||null===(t=_.dataFilterDates)||void 0===t||null===(t=t.min)||void 0===t?void 0:t.timestamp,"&df_dmax=").concat(null==_||null===(n=_.dataFilterDates)||void 0===n||null===(n=n.max)||void 0===n?void 0:n.timestamp,"&type=").concat(A,"&limit=100&page=1&platform=").concat(null==S?void 0:S.selectedPlatform.platform_name)),j=O.data,k=O.isLoading,E=null==j||null===(m=j.result)||void 0===m?void 0:m.data.reduce(function(e,t){return e+Number(t.clicks_total)},0),N=null==j||null===(g=j.result)||void 0===g?void 0:g.data.reduce(function(e,t){return e+Number(t.clicks_fraudulent)},0),I=null==j||null===(y=j.result)||void 0===y?void 0:y.data.map(function(e){var t;return{name:null!==(t=null==e?void 0:e.pl)&&void 0!==t?t:(0,d.A)(e.nw),value1:(0,s.o)(Number(e.clicks_total),E),value2:(0,s.o)(Number(e.clicks_fraudulent),N)}});return(0,f.jsxs)(f.Fragment,{children:[k&&(0,f.jsx)(a.default,{loading:!0,height:400,preset:"dark",size:"responsive"}),!k&&(null==j||null===(h=j.result)||void 0===h||null===(h=h.data)||void 0===h?void 0:h.length)>1&&(0,f.jsx)(o.default.GroupHorizontal,{data:I,titles:[(0,l.A)("% Total Clicks"),(0,l.A)("% SIVT Clicks")]}),!k&&(null==j||null===(x=j.result)||void 0===x||null===(x=x.data)||void 0===x?void 0:x.length)<2&&(0,f.jsx)(i.A,{title:(0,l.A)("Not enough data to display this chart"),hasNoData:!0,style:{height:"300px"}})]})}},9331:(e,t,n)=>{"use strict";e.exports=n.p+"e881216f800564d1d4ae.svg"},9449:(e,t,n)=>{"use strict";e.exports=n.p+"663e0bd36f5a7596d558.svg"},9486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(99018),i=n(31085);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=o.default;function f(e){var t=e.as,n=void 0===t?"label":t,r=e.children,o=void 0===r?null:r,l=e.htmlFor,s=void 0===l?"":l,u=e.className,d=void 0===u?"":u,f=e.size,p=void 0===f?"md":f,m=e.disabled,g=void 0!==m&&m,y=e["data-testid"],h=void 0===y?"":y;return(0,i.jsx)(n,c(c({className:(0,a.classNames)(d,"color-x1jsblnb display-x1lliihq","sm"===p&&"fontWeight-xo1l8bm fontSize-xif65rj lineHeight-x1d3mw78","md"===p&&"fontSize-xif65rj fontWeight-xo1l8bm lineHeight-x1fc57z9","lg"===p&&"fontSize-x1j61zf2 fontWeight-xk50ysn lineHeight-x1o2sk6j",g&&"color-xkv09jl")},h?{"data-testid":h}:{}),{},{htmlFor:s,children:o}))}d(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),d(".display-x1lliihq{display:block}",3e3),d(".fontWeight-xo1l8bm{font-weight:400}",3e3),d(".fontSize-xif65rj{font-size:14px}",3e3),d(".lineHeight-x1d3mw78{line-height:16px}",3e3),d(".lineHeight-x1fc57z9{line-height:20px}",3e3),d(".fontSize-x1j61zf2{font-size:16px}",3e3),d(".fontWeight-xk50ysn{font-weight:500}",3e3),d(".lineHeight-x1o2sk6j{line-height:24px}",3e3),d(".color-xkv09jl{color:var(--black200-xao0axe)!important}
2",3e3),f.displayName="Label",t.default=f},9500:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(76449);function o(e,t){var n="";return(0,r.getActiveFilterConfig)(e,t).forEach(function(e){"checkbox"===e.type&&(n+=function(e){if("translateToStatusArray"===e.queryTranslator)return function(e){var t,n;console.log("filter transalteToStatusArray",e);var r=[],o=null===(t=e.options.find(function(e){return"include_protected"===e.name}))||void 0===t?void 0:t.value,a=null===(n=e.options.find(function(e){return"include_monitored"===e.name}))||void 0===n?void 0:n.value;return o&&a&&(r=[1,2]),!o&&a&&(r=[1]),o&&!a&&(r=[2]),"&protection_status=".concat(JSON.stringify(r))}(e);if("arrayOfNames"===e.queryTranslator&&e.queryKey)return function(e){var t=[];return e.options.forEach(function(e){e.value&&t.push(e.name)}),t.length>0?"&".concat(e.queryKey,"=").concat(JSON.stringify(t)):""}(e);var t="";return e.options.forEach(function(e){t+="&".concat(e.name,"=").concat(e.value)}),t}(e)),"radio"===e.type&&(n+=function(e){var t="";return e.options.forEach(function(n){""!==n.value&&!1!==n.value&&n.value&&(t+="&".concat(e.queryKey||e.name,"=").concat(n.value))}),t}(e))}),n}},9511:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 0===e?(0,r.A)("All accounts"):1===e?"1 ".concat((0,r.A)("account")):"".concat(e," ").concat((0,r.A)("accounts"))}},9559:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>l});const l=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,r=sessionStorage.getItem("dashboardData")||"null";return[null!==(e=null===(t=JSON.parse(r))||void 0===t||null===(t=t.pagination)||void 0===t||null===(t=t.paginationParams)||void 0===t?void 0:t.limit)&&void 0!==e?e:n,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=sessionStorage.getItem("dashboardData")||"null",n=JSON.parse(t);sessionStorage.setItem("dashboardData",JSON.stringify(a(a({},n),{},{pagination:{paginationParams:{limit:e}}})))}]}},9613:(e,t,n)=>{"use strict";e.exports=n.p+"6e82cd1fe64ebc2f1fc7.svg"},9646:(e,t,n)=>{"use strict";function r(e,t,n){var r="string"==typeof e?document.getElementById(e):e;if(!r)return t;var o=r.getBoundingClientRect(),a=window.innerWidth;return o.left+o.width/2>a/2?n:t}n.d(t,{A:()=>r})},9685:(e,t,n)=>{"use strict";n.d(t,{A:()=>u}),n(14041);var r=n(29557),o=n(31085);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var i=["countryCode"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e,t,n){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=e.countryCode,n=void 0===t?"GB":t,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i),c=r.A[n]?n:"earth";return(0,o.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?l(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({src:r.A[c],alt:"".concat(c,"-icon"),"data-testid":"countryicon"},a))}c.displayName="CountryIcon";const u=c},9752:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=d(n(14041)),l=d(n(76969)),s=n(60156),c=n(45365),u=n(31085);function d(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(d=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=a.default;x(".display-x78zum5{display:flex}",3e3),x(".justifyContent-x1qughib{justify-content:space-between}",3e3),x(".overflowY-xryxfnj{overflow-y:visible}",4e3),x(".fontSize-xif65rj{font-size:14px}",3e3),x(".fontWeight-xo1l8bm{font-weight:400}",3e3),x(".color-xh3519o{color:var(--black500-x161om0q)}",3e3),x(".paddingTop-xyinxu5{padding-top:14px}",4e3),x(".paddingBottom-x1g2khh7{padding-bottom:14px}",4e3),x(".paddingLeft-xd3ty66{padding-left:24px}",4e3),x(".paddingRight-x8e5d8q{padding-right:24px}",4e3),x(".wordSpacing-x1gpl5al{word-spacing:2px}",3e3),x(".borderBottom-x8dxnfb{border-bottom:solid 1px var(--gray250-x1kpk87u)}",2e3),x(".pointerEvents-x47corl{pointer-events:none}",3e3),x(".alignItems-x6s0dn4{align-items:center}",3e3),x(".marginRight-x1db2dqx{margin-right:8px}",4e3),x(".minWidth-x6c5l4p{min-width:80px}",4e3),x(".padding-x1717udv{padding:0}",1e3),x(".height-x10w6t97{height:32px}",4e3),x(".width-x1td3qas{width:32px}",4e3),x(".gap-xxhr3t{gap:0}",2e3),x(".justifyContent-xl56j7k{justify-content:center}",3e3),x(".borderRadius-x12oqio5{border-radius:4px}",2e3),x(".border-xws9wp6{border:solid 1px var(--gray250-x1kpk87u)}",1e3),x(".width-xlu33ui{width:155px}",4e3);var b={pagination:{display:"display-x78zum5",justifyContent:"justifyContent-x1qughib",overflowY:"overflowY-xryxfnj",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",color:"color-xh3519o",paddingTop:"paddingTop-xyinxu5",paddingBottom:"paddingBottom-x1g2khh7",paddingLeft:"paddingLeft-xd3ty66",paddingRight:"paddingRight-x8e5d8q",wordSpacing:"wordSpacing-x1gpl5al",borderBottom:"borderBottom-x8dxnfb",$$css:"Pagination/index.tsx:13"},disabled:{pointerEvents:"pointerEvents-x47corl",$$css:"Pagination/index.tsx:27"}};t.default=function(e){var t=e.hiddenLimitSelect,n=void 0!==t&&t,r=e.limit,o=void 0===r?20:r,a=e.handlePagination,d=void 0===a?function(){}:a,f=e.pageNumber,p=void 0===f?1:f,g=e.totalPages,h=void 0===g?1:g,x=e.totalItems,v=void 0===x?0:x,A=y(i.useState("..."),2),_=A[0],S=A[1],w=y(i.useState(0),2),O=w[0],j=w[1],k=[{label:"20 / page",value:20},{label:"50 / page",value:50},{label:"100 / page",value:100},{label:"200 / page",value:200}];return i.useEffect(function(){"number"==typeof h&&S(h),"number"==typeof v&&j(v)},[h,v]),(0,u.jsxs)("div",m(m({},l.props(b.pagination,!h&&b.disabled)),{},{children:[(0,u.jsxs)("div",m(m({},{className:"display-x78zum5 alignItems-x6s0dn4","data-style-src":"Pagination/index.tsx:30"}),{},{children:[(0,u.jsx)("div",m(m({},{className:"height-x10w6t97 width-x1td3qas display-x78zum5 gap-xxhr3t alignItems-x6s0dn4 justifyContent-xl56j7k borderRadius-x12oqio5 border-xws9wp6 marginRight-x1db2dqx","data-style-src":"Pagination/index.tsx:49"}),{},{children:(0,u.jsx)(c.Button,{buttonTextClassName:"padding-x1717udv color-xh3519o",type:"button",preset:"ghost",iconLeft:"chevrons-left","data-testid":"paginationFirst",onClick:function(){return d(1)},disabled:1===p,"aria-label":(0,s.language)("First page of results")})})),(0,u.jsx)("div",m(m({},{className:"height-x10w6t97 width-x1td3qas display-x78zum5 gap-xxhr3t alignItems-x6s0dn4 justifyContent-xl56j7k borderRadius-x12oqio5 border-xws9wp6 marginRight-x1db2dqx","data-style-src":"Pagination/index.tsx:49"}),{},{children:(0,u.jsx)(c.Button,{buttonTextClassName:"color-xh3519o",type:"button",preset:"ghost",iconLeft:"chevron-left","data-testid":"paginationPrevious","aria-label":(0,s.language)("Previous page of results"),onClick:function(){return d((null!=p?p:1)-1)},disabled:1===p})})),(0,u.jsxs)("span",m(m({"data-testid":"pageNumber"},{className:"marginRight-x1db2dqx minWidth-x6c5l4p","data-style-src":"Pagination/index.tsx:34"}),{},{children:[(0,s.language)("Page")," ",p," ",(0,s.language)("of")," ",_]})),(0,u.jsx)("div",m(m({},{className:"height-x10w6t97 width-x1td3qas display-x78zum5 gap-xxhr3t alignItems-x6s0dn4 justifyContent-xl56j7k borderRadius-x12oqio5 border-xws9wp6 marginRight-x1db2dqx","data-style-src":"Pagination/index.tsx:49"}),{},{children:(0,u.jsx)(c.Button,{buttonTextClassName:"color-xh3519o",type:"button",preset:"ghost",iconLeft:"chevron-right","data-testid":"paginationNext","aria-label":(0,s.language)("Next page of results"),onClick:function(){return d((null!=p?p:1)+1)},disabled:p===h})})),(0,u.jsx)("div",m(m({},{className:"height-x10w6t97 width-x1td3qas display-x78zum5 gap-xxhr3t alignItems-x6s0dn4 justifyContent-xl56j7k borderRadius-x12oqio5 border-xws9wp6 marginRight-x1db2dqx","data-style-src":"Pagination/index.tsx:49"}),{},{children:(0,u.jsx)(c.Button,{buttonTextClassName:"padding-x1717udv color-xh3519o",type:"button",preset:"ghost",iconLeft:"chevrons-right","data-testid":"paginationLast","aria-label":(0,s.language)("Last page of results"),onClick:function(){return d(null!=h?h:1)},disabled:p===h})}))]})),(0,u.jsxs)("div",m(m({},{className:"display-x78zum5 alignItems-x6s0dn4","data-style-src":"Pagination/index.tsx:38"}),{},{children:[(0,u.jsxs)("span",m(m({},{className:"marginRight-x1db2dqx minWidth-x6c5l4p","data-style-src":"Pagination/index.tsx:34"}),{},{children:["(",O," ",(0,s.language)("total items"),")"]})),!n&&(0,u.jsx)("div",m(m({},{className:"width-xlu33ui","data-style-src":"Pagination/index.tsx:60"}),{}
2,{children:(0,u.jsx)(c.Input.Select,{options:k,value:k.filter(function(e){return e.value===o}),onChange:function(e){return d(null!=p?p:1,e.value)},menuHeight:180})}))]}))]}))}},9991:(e,t,n)=>{"use strict";e.exports=n.p+"006f011fac97ce166aa5.svg"},10068:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(14041),o=n(76449),a=n(57250),i=n(62161),l=n(88133),s=n(96182),c=n(80111),u=n(92523),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function x(e){var t,n,f,p,g,h,x,b,v,A=e.dataModel,_=void 0===A?{}:A,S=e.onDataModelChange,w=void 0===S?function(){}:S,O=e.children,j=void 0===O?null:O,k=e.className,E=e.noDataTitle,N=void 0===E?void 0:E,I=e.noDataSubTitle,P=void 0===I?void 0:I,T=e.isSelectable,C=void 0!==T&&T,R=e.onSelectedRows,M=void 0===R?function(){}:R,L=e.resetSelectionTrigger,D=void 0===L?0:L,B=e.leftPinnedColumns,U=void 0===B?0:B,F=e.groupColsBreakpoint,G=void 0===F?1900:F,W=e.contentRight,z=void 0===W?null:W,V=y((0,s.A)(),1)[0],q=y((0,c.A)(),2),K=q[0],H=q[1],Y=null==V||null===(t=V.selectedPlatform)||void 0===t?void 0:t.platform_name;function $(e){if("google"===Y&&e.googleOnly)return e.googleOnly;if(e.googleOnly){var t=m({},e);return delete t.googleOnly,t}return e}function Z(){var e,t,n,r;return m(m({},_),{},{api:m(m({},$(_.defaults.api)),{},{selectedPlatform:V.selectedPlatform.platform_name,queryString:o.default.getQueryString(_.filters,Y)}),sorting:$(_.defaults.sorting),pagination:{page:1,limit:20},dates:{min:{timestamp:null==K||null===(e=K.dataFilterDates)||void 0===e||null===(e=e.min)||void 0===e?void 0:e.timestamp,date:null==K||null===(t=K.dataFilterDates)||void 0===t||null===(t=t.min)||void 0===t?void 0:t.date},max:{timestamp:null==K||null===(n=K.dataFilterDates)||void 0===n||null===(n=n.max)||void 0===n?void 0:n.timestamp,date:null==K||null===(r=K.dataFilterDates)||void 0===r||null===(r=r.max)||void 0===r?void 0:r.date}}})}var X=y((0,r.useState)(Z()),2),J=X[0],Q=X[1];function ee(e){w(e),Q(e)}(0,r.useEffect)(function(){ee(Z())},[V.selectedPlatform.platform_name,K.selectedAwAccounts]);var te=(0,l.Ay)("".concat(J.api.endpoint,"?sort_key=").concat(J.sorting.sortKey,"&sort_order=").concat(J.sorting.sortOrder,"&limit=").concat(J.pagination.limit,"&page=").concat(J.pagination.page,"&df_dmin=").concat(J.dates.min.timestamp,"&df_dmax=").concat(J.dates.max.timestamp,"&platform=").concat(J.api.selectedPlatform).concat(J.api.additionalQueryString||"").concat(J.api.queryString||"").concat(null!==(n=J.accountFilter)&&void 0!==n&&n.globalAccountFilter&&(null===(f=K.selectedAwAccounts)||void 0===f?void 0:f.length)>0?"&df_customer_ids=[".concat(K.selectedAwAccounts,"]"):"")),ne=te.data,re=te.isLoading;return(0,r.useEffect)(function(){var e,t,n,r,o;null!=K&&K.dataFilterDates&&null!=J&&null!==(e=J.datePicker)&&void 0!==e&&e.globalDates&&ee(m(m({},J),{},{dates:{min:{timestamp:null==K||null===(t=K.dataFilterDates)||void 0===t||null===(t=t.min)||void 0===t?void 0:t.t
2imestamp,date:null==K||null===(n=K.dataFilterDates)||void 0===n||null===(n=n.min)||void 0===n?void 0:n.date},max:{timestamp:null==K||null===(r=K.dataFilterDates)||void 0===r||null===(r=r.max)||void 0===r?void 0:r.timestamp,date:null==K||null===(o=K.dataFilterDates)||void 0===o||null===(o=o.max)||void 0===o?void 0:o.date}}}))},[null==K?void 0:K.dataFilterDates]),(0,d.jsxs)("div",{className:k,children:[(0,d.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(null===(p=J.accountFilter)||void 0===p?void 0:p.globalAccountFilter)&&(0,d.jsx)("div",{className:"mr-2",children:(0,d.jsx)(a.A,{filters:{"accounts.selection":K.selectedAwAccounts},onFilterChange:function(e){return H(m(m({},K),{},{selectedAwAccounts:e["accounts.selection"]||[]}))}})}),J.filters.length>0&&(0,d.jsx)(o.default,{onFiltersUpdate:function(e){ee(m(m({},J),{},{api:m(m({},J.api),{},{queryString:o.default.getQueryString(e,Y)}),filters:e}))},filterConfig:J.filters}),(0,d.jsxs)("div",{className:"flex justify-end width-100",children:[z,J.datePicker.globalDates&&(0,d.jsx)(u.default,m({},J.datePicker.ranges?{ranges:J.datePicker.ranges}:{}))]})]}),(0,d.jsx)(i.A,{rows:null==ne||null===(g=ne.result)||void 0===g?void 0:g[J.api.responseDataKey],isLoading:re,totalItems:(null==ne||null===(h=ne.pagination)||void 0===h?void 0:h.total)||(null==ne||null===(x=ne.result)||void 0===x||null===(x=x.pagination)||void 0===x?void 0:x.total),totalPages:(null==ne||null===(b=ne.pagination)||void 0===b?void 0:b.last_page)||(null==ne||null===(v=ne.result)||void 0===v||null===(v=v.pagination)||void 0===v?void 0:v.last_page),pageNumber:J.pagination.page,handlePagination:function(e,t){ee(m(m({},J),{},t?{pagination:{limit:t,page:t!==J.pagination.limit?1:e}}:{pagination:{page:e,limit:J.pagination.limit}}))},handleSorting:function(e){ee(m(m({},J),{},{sorting:m({},e)}))},leftPinnedColumns:U,sorting:{sortKey:J.sorting.sortKey,sortOrder:J.sorting.sortOrder},limit:J.pagination.limit,noDataTitle:N,noDataSubTitle:P,isSelectable:C,onSelectedRows:M,resetSelectionTrigger:D,groupColsBreakpoint:G,children:j})]})}x.getActiveFilters=function(e,t){var n=o.default.getActiveFilterConfig(e.filters,t),r={};return n.forEach(function(e){var t=e.name,n=e.options;r[t]||(r[t]={}),n.forEach(function(e){r[t][e.name]=e})}),r.dates=e.dates,r};const b=x},10203:(e,t,n)=>{"use strict";e.exports=n.p+"f703a8a31d393f5b719c.svg"},10220:(e,t,n)=>{"use strict";e.exports=n.p+"07254b4eb5c30979898c.svg"},10266:(e,t,n)=>{"use strict";e.exports=n.p+"edbfcc3930355cd58460.svg"},10430:(e,t,n)=>{"use strict";function r(e,t){return JSON.stringify(e)===JSON.stringify(t)}function o(e){return 0===Object.keys(e).length}n.d(t,{A:()=>r,I:()=>o})},10585:(e,t,n)=>{"use strict";e.exports=n.p+"99e38004a75059d4c123.svg"},10770:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(14041),o=n(56197),a=n(62720),i=n(76449),l=n(28426),s=n(44949),c=n(89748),u=n(51836),d=n(73657),f=n(40699),p=n(83223),m=n(62161),g=n(27333),y=n(59250),h=n(32881),x=n(41574),b=n(31085);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j(){var e,t,n,v,A,S,O,j,k,E,N=w((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),I=N[0],P=N[1],T=w((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),C=T[0],R=T[1],M=w((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),L=M[0],D=M[1],B=(0,u.g)().partner,U=w((0,d.useSearchParams)(),1)[0].get("network"),F=(0,g.R7)({sortKey:"partner"}),G=F.filters,W=F.setFilters,z=(0,g.R7)({sortKey:"conversion_timestamp"}),V=z.filters,q=z.handlePagination,K=z.setFilters,H=z.handleSort;function Y(e){var t='&group_by=partner&partner=["'.concat(encodeURIComponent(B),'"]'),n=Object.keys(e).filter(function(t){return t.startsWith("fraud_type.")&&e[t]}).map(function(e){return e.replace("fraud_type.","")});return e["campaign.contains"]&&(t+="&campaign_contains=".concat(e["campaign.contains"])),n.length>0&&(t+='&fraud_type=["'.concat(n.join('","'),'"]')),t}var $=(0,g.st)("/analytics/conversions",_(_({},G),{},{startDate:new Date(I.min.date),endDate:new Date(I.max.date)}),Y),Z=$.data,X=$.isLoading,J=Object.entries(f.zG).map(function(e){var t=w(e,2),n=t[0],r=t[1];return{label:(0,c.A)(r),shortLabel:(0,c.A)(r),type:"checkbox",name:n,value:!1}}),Q=[{label:(0,c.A)("Fraud Type"),name:"fraud_type",type:"checkbox",queryTranslator:"arrayOfNames",queryKey:"type",options:J},{label:(0,c.A)("Campaign"),name:"campaign",type:"radio",options:[{label:(0,c.A)("contains"),name:"contains",type:"text"}]}],ee=(0,g.st)("/analytics/conversions",{startDate:new Date(C.min.date),endDate:new Date(C.max.date),group_by:"partner",page:1,limit:100,sortKey:"partner",sortOrder:"asc"}),te=ee.data,ne=ee.isLoading,re=(0,g.st)("/conversions/attributed",_(_({},V),{},{startDate:new Date(L.min.date),endDate:new Date(L.max.date)}),Y),oe=re.data,ae=re.isLoading,ie=null==Z?void 0:Z.result,le=null==te||null===(e=te.result)||void 0===e||null===(e=e.overall)||void 0===e?void 0:e.overall_invalid_labels_percent;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s.A,{title:(0,c.A)(":partner Overview",{partner:B}),size:"sm",menuItems:[],subTitle:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.Link,{style:{color:"#7F56D9"},to:"/conversion-analytics/partners",children:(0,c.A)("Partners")})," ",B&&" / ",B]}),subText:U,contentRight:(0,b.jsx)(x.A,{filters:V,dates:L,exportType:"partner",exportValue:B,exportCategory:"conversions"})}),(0,b.jsxs)(l.A.Page,{type:"settings",children:[(0,b.jsx)(y.A,{title:(0,c.A)(":partner Summary",{partner:B}),isLoading:X,total:{title:(0,c.A)("Total Conversions"),count:null==ie||null===(t=ie.overall)||void 0===t?void 0:t.overall_conversions},invalid:{title:(0,c.A)("Invalid Conversions"),count:null==ie||null===(n=ie.overall)||void 0===n?void 0:n.overall_conversions_invalid},ivt:{count:null==ie||null===(v=ie.overall)||void 0===v?void 0:v.overall_conversions_invalid_percent},setTime:P,time:I,filters:G,setFilters:W,filterConfig:Q}),(0,b.jsx)(h.A,{data:(0,f.J8)(le),isLoading:ne,setTime:R,time:C,title:(0,c.A)("Fraud Type")}),(0,b.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,b.jsx)("div",{className:"left",children:(0,b.jsx)(i.default,{filterConfig:Q,initialValues:V,onFilterChange:K})}),(0,b.jsx)(a.default.DatePicker,{value:[L.min.date,L.max.date],onRangeChange:function(e){return D(e)},selectedOption:L.rangeName,showCalenderIcon:!1,displayRangeText:!1})]}),(0,b.jsx)(m.A,{rows:null==oe||null===(A=oe.result)||void 0===A?void 0:A.data,isLoading:ae,totalResults:null==oe||null===(S=oe.result)||void 0===S||null===(S=S.pagination)||void 0===S?void 0:S.total,totalPages:null==oe||null===(O=oe.result)||void 0===O||null===(O=O.pagination)||void 0===O?void 0:O.last_page,totalItems:null==oe||null===(j=oe.result)||void 0===j||null===(j=j.pagination)||void 0===j?void 0:j.total,pageNumber:null==oe||null===(k=oe.result)||void 0===k||null===(k=k.pagination)||void 0===k?void 0:k.current_page,handlePagination:q,limit:null==oe||null===(E=oe.result)||void 0===E||null===(E=E.pagination)||void 0===E?void 0:E.limit,handleSorting:H,sorting:{sortKey:V.sortKey,sortOrder:V.sortOrder},leftPinnedColumns:1,children:function(e){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{"data-sortable-id":"conversion_timestamp",children:(0,c.A)("Timestamp")}),(0,b.jsx)("th",{"data-sortable-id":"campaign",children:(0,c.A)("Campaign")}),(0,b.jsx)("th",{children:(0,c.A)("Fraud Type")})]})}),(0,b.jsxs)("tbody",{children:[(0,b.jsx)("td",{children:(null==e?void 0:e.conversion_timestamp)&&(0,p.GP)(e.conversion_timestamp,"MMM d, HH:mm")}
2),(0,b.jsx)("td",{children:null==e?void 0:e.campaign}),(0,b.jsx)("td",{children:(0,f.ic)(null==e?void 0:e.invalid_labels_counts).map(function(e){return(0,b.jsx)(o.default,{style:{display:"inline-block",marginRight:"12px",lineHeight:"24px"},colourName:"error",children:e},e)})})]})]})}})]})]})}},10780:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),n(14041);var r=n(39067),o=n.n(r),a=n(89748),i=n(99018),l=n(1781),s=n(79135),c=n(31085),u=(0,i.createUseStyles)(function(e){return{circle:{height:32,width:32,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:500,boxSizing:"content-box","& svg":{width:16,height:16}},legitimate:{backgroundColor:(0,i.findColour)(e,"green",100),border:"4px solid ".concat((0,i.findColour)(e,"green",25))},suspicious:{backgroundColor:(0,i.findColour)(e,"yellow",200),border:"4px solid ".concat((0,i.findColour)(e,"yellow",50))},invalid:{backgroundColor:(0,i.findColour)(e,"red",100),border:"4px solid ".concat((0,i.findColour)(e,"red",50))},givt_invalid:{backgroundColor:(0,i.findColour)(e,"red",100),border:"4px solid ".concat((0,i.findColour)(e,"red",50)),color:(0,i.findColour)(e,"red",300)}}});function d(e){var t,n=e.statusCode,r=void 0===n?0:n,o=u(),d=[{type:0,name:(0,a.A)("Allowed-List"),icon:(0,c.jsx)(s.default,{name:["far","thumbs-up"]}),className:"legitimate",tooltip:(0,a.A)("Allowed-List")},{type:10,name:(0,a.A)("Legitimate"),icon:(0,c.jsx)(s.default,{name:["far","thumbs-up"]}),className:"legitimate",tooltip:(0,a.A)("Legitimate")},{type:20,name:(0,a.A)("Suspicious"),icon:(0,c.jsx)(s.default,{name:["far","glasses-round"]}),className:"suspicious",tooltip:(0,a.A)("Suspicious")},{type:30,name:(0,a.A)("SIVT"),icon:(0,c.jsx)(s.default,{name:["far","thumbs-down"]}),className:"invalid",tooltip:(0,a.A)("SIVT")},{type:50,name:(0,a.A)("Manually ignored IP"),icon:(0,c.jsx)(s.default,{name:["far","thumbs-down"]}),className:"givt_invalid",tooltip:(0,a.A)("GIVT - manually ignored IP")},{type:60,name:(0,a.A)("Duplicate click"),icon:(0,c.jsx)(s.default,{name:["far","thumbs-down"]}),className:"givt_invalid",tooltip:(0,a.A)("GIVT - Duplicate click (matched by click ID)")},{type:70,name:(0,a.A)("Crawler/Bot"),icon:(0,c.jsx)(s.default,{name:["far","thumbs-down"]}),className:"givt_invalid",tooltip:(0,a.A)("GIVT - Crawler/Bot")}],f=null!==(t=d.find(function(e){return e.type===r}))&&void 0!==t?t:d[1],p=(0,i.classNames)(o.circle,o[f.className]);return(0,c.jsx)(l.default,{content:f.tooltip,showIcon:!1,children:(0,c.jsx)("div",{"data-testid":"ShowClickStatus",className:p,children:f.icon})})}d.propTypes={statusCode:o().number};const f=d},10873:(e,t,n)=>{"use strict";n.d(t,{A:()=>m}),n(14041);var r=n(88133),o=n(97475),a=n(89748),i=n(27333),l=n(24284),s=n(24327),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m=function(){var e=(0,o.jE)();function t(){e.getQueryCache().findAll().forEach(function(t){e.invalidateQueries(t.queryKey)})}var n=(0,i.R7)(),u=n.filters,d=n.handlePagination,p=(0,r.Ay)("/settings/supported-platforms").data,m=(0,i.st)("/settings/configured-platforms",u),g=m.data,y=m.isLoading,h=(0,r.gC)("/settings/create-platform","POST"),x=(0,r.gC)("/settings/update-platform","PUT");return(0,c.jsx)(s.A,{configuredPlatforms:null==g?void 0:g.result,isLoading:y,onUpdatePlatform:function(e){x.mutate(f({},e),{onSuccess:function(){t(),(0,l.A)((0,a.A)("The platform was successfully updated"),"success")},onError:function(){(0,l.A)((0,a.A)("Something went wrong!"),"error")}})},onCreatePlatform:function(e){h.mutate(f({},e),{onSuccess:function(){t(),(0,l.A)((0,a.A)("The platform was successfully added"),"success")},onError:function(){(0,l.A)((0,a.A)("Something went wrong!"),"error")}})},supportedPlatforms:null==p?void 0:p.result,handlePagination:d,filters:u})}},10908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s}),n(14041);var r=n(9260),o=n(30021),a=n(89748),i=n(65053),l=n(31085);
2const s=function(e){var t=e.reason,n=e.ip,s=null==t?void 0:t.title,c=null==t?void 0:t.type,u=t.description;return(0,l.jsxs)("div",{className:"mb-10",children:[(0,l.jsxs)(o.default,{preset:"widgetHeading",as:"h6",children:[s,c&&(0,l.jsxs)("span",{children:[" - ",(0,l.jsx)(i.default,{reason:{type:c,title:c}})]})]}),(0,l.jsx)(o.default,{size:"lg",children:u}),"Reported to abuse IP database"===s&&(0,l.jsx)(r.default,{preset:"secondary",as:"a",href:"https://www.abuseipdb.com/check/".concat(n),target:"_blank",rel:"noopener noreferrer",children:(0,a.A)("View on AbuseIPDB")})]})}},11070:(e,t,n)=>{"use strict";n.d(t,{A:()=>d}),n(14041);var r=n(39067),o=n.n(r),a=n(51836),i=n(99018),l=n(22392),s=n(31085),c=(0,i.createUseStyles)(function(e){return{beta:{background:"#fff",border:"2px solid #000"},content:{padding:10},warning:{background:"repeating-linear-gradient(45deg, ".concat(e.colors.purple[600],", ").concat(e.colors.purple[600]," 10px, ").concat(e.colors.yellow[600]," 10px, ").concat(e.colors.yellow[600]," 20px)"),height:30}}});function u(e){var t=e.beta,n=void 0!==t&&t,r=c();return(0,s.jsxs)(s.Fragment,{children:[n&&(0,s.jsxs)("div",{className:r.beta,children:[(0,s.jsx)("div",{className:r.warning}),(0,s.jsx)("div",{className:r.content,children:"This page is only available for Lunio staff for internal dev testing. Please don't share this page or make any changes here."})]}),(0,s.jsxs)("div",{className:"settings-outer-container",children:[(0,s.jsx)("div",{className:"top-bar",children:(0,s.jsx)("div",{className:"ppc table-page-title",children:(0,s.jsx)("div",{className:"ppc ui-block v-align-center h-align-right mr-12"})})}),(0,s.jsx)("div",{className:"content-area",children:(0,s.jsx)("div",{className:"page",children:(0,s.jsx)("div",{className:"ppc settings-container",children:(0,s.jsx)(a.sv,{})})})})]})]})}u.propTypes={beta:o().bool},u.Workspace=l.A;const d=u},11073:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);const o=function(e){return"g"===e?(0,r.A)("Search"):"d"===e?(0,r.A)("Display Network"):"s"===e?(0,r.A)("Search Partner"):"y"===e||"yt"===e?(0,r.A)("Youtube"):"gm"===e?(0,r.A)("Gmail"):"ytis"===e?(0,r.A)("YouTube in-stream"):"ytif"===e?(0,r.A)("YouTube in-feed"):"a"===e?(0,r.A)("Search Partner (AI Max)"):"e"===e?(0,r.A)("App campaigns for engagement (ACe)"):"vp"===e?(0,r.A)("Google Video Partners"):"ytv"===e?(0,r.A)("YouTube Videos"):"yts"===e?(0,r.A)("YouTube Search"):"u"===e?(0,r.A)("Smart Shopping Campaign"):"x"===e?(0,r.A)("Performance Max Campaigns"):"dsc"===e?(0,r.A)("Google Owned Channels"):"gtv"===e?(0,r.A)("Google TV"):"No network reported by Google"===e?(0,r.A)("N/A ?"):(0,r.A)("Unknown")}},11091:(e,t,n)=>{"use strict";e.exports=n.p+"bfd36975fa85afad9c13.svg"},11094:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(14041),o=n(44992),a=n(31085);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const l=function(e){var t,n,l=e.children,s=e.controlState,c=(t=(0,r.useState)(s),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],d=c[1];return(0,r.useEffect)(function(){d(s)},[s]),(0,a.jsx)(o.A.Provider,{value:{userContext:u},children:l})}},11130:(e,t,n)=>{"use strict";e.exports=n.p+"15daa261767f1df26725.svg"},11182:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(36537),o=n(89414);function a(){return(0,r.fp)(o.A)}}
2,11204:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=d(n(25751)),a=d(n(14041)),i=n(60156),l=n(45365),s=n(99018),c=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b=o.default;b(".display-x3nfvp2{display:inline-flex}",3e3),b(".display-x78zum5{display:flex}",3e3),b(".flexDirection-xdt5ytf{flex-direction:column}",3e3),b(".justifyContent-xl56j7k{justify-content:center}",3e3),b(".marginRight-xaz8w3f{margin-right:var(--2-x17wbp3g)}",4e3),b(".marginRight-x1yf7rl7{margin-right:0}",4e3),b(".alignItems-x6s0dn4{align-items:center}",3e3),b(".width-xsmyaan{width:12px}",4e3),b(".height-xmix8c7{height:18px}",4e3),b(".fontSize-xfifm61{font-size:12px}",3e3),b(".fontWeight-xuv8nkb{font-weight:800}",3e3),b(".lineHeight-xd4r4e8{line-height:18px}",3e3),b(".textAlign-xdpxx8g{text-align:left}",3e3),b(".color-x1bk3paq{color:var(--black700-xoh1s16)}",3e3),b(".cursor-x1ypdohk{cursor:pointer}",3e3),b(".textAlign-x1hr2gdg{text-align:right}",3e3),b(".paddingRight-x1sai7j1{padding-right:28px}",4e3),b(".display-x1s85apg{display:none}",3e3),b(".display-x1lliihq{display:block}",3e3),b(".color-xqi5lc6{color:var(--black300-xmkl1o)}",3e3);var v={th:{fontSize:"fontSize-xfifm61",fontWeight:"fontWeight-xuv8nkb",lineHeight:"lineHeight-xd4r4e8",textAlign:"textAlign-xdpxx8g",color:"color-x1bk3paq",$$css:"ThElement/index.tsx:32"},sortableTh:{cursor:"cursor-x1ypdohk",$$css:"ThElement/index.tsx:39"},alignRight:{textAlign:"textAlign-x1hr2gdg",paddingRight:"paddingRight-x1sai7j1",paddingInlineStart:null,paddingInlineEnd:null,$$css:"ThElement/index.tsx:42"}
2,hoverContentHidden:{display:"display-x1s85apg",$$css:"ThElement/index.tsx:46"},hoverContentVisible:{display:"display-x1lliihq",$$css:"ThElement/index.tsx:49"}};t.default=function(e){var t,n,r,o,d=e.data,f=e.sorting,m=e.handleSorting,y=e.thStyles,x=void 0===y?[]:y,b=e.sortableId,A=void 0===b?"":b,_=d,S=(r=a.default.useState(!1),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(r,o)||h(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=S[0],O=S[1],j=null!==(t=null==_||null===(n=_.props)||void 0===n?void 0:n["data-tooltip"])&&void 0!==t?t:"";function k(e){return j?(0,u.jsx)(l.ToolTip,{content:j,anchorAs:"div",children:(0,u.jsx)("div",g(g({},{className:"display-x78zum5 flexDirection-xdt5ytf justifyContent-xl56j7k marginRight-x1yf7rl7","data-style-src":"ThElement/index.tsx:19"}),{},{children:e}))}):(0,u.jsx)("div",g(g({},{className:"display-x78zum5 flexDirection-xdt5ytf justifyContent-xl56j7k marginRight-xaz8w3f","data-style-src":"ThElement/index.tsx:13"}),{},{children:e}))}var E=f.sortOrder,N=f.sortKey;function I(e){if(!e)return"";var t=a.default.Children.toArray(e);if(0===t.length)return"";var n=t[0];return"string"==typeof n||"number"==typeof n?String(n).toLowerCase().replace(/\s+/g,"-"):""}if((null!=_&&_.props["data-sortable-id"]||A)&&"none"!==(null==_?void 0:_.props["data-sortable-id"])){var P,T=null!==(P=_.props["data-sortable-id"])&&void 0!==P?P:A,C=N!==T||"asc"===E?"desc":"asc",R=N===T&&"desc"===E?(0,i.language)("Sort by :id descending",{id:_.props["data-sortable-id"]}):(0,i.language)("Sort by :id ascending",{id:_.props["data-sortable-id"]});return(0,u.jsx)("th",g(g({},c.props.apply(c,[v.th,v.sortableTh,"right"===(null==_?void 0:_.props["data-align"])&&v.alignRight].concat(p(x)))),{},{onClick:function(){return m({sortKey:T,sortOrder:C})},"aria-label":R,"data-testid":"th-".concat(I(_.props.children)),onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},children:(0,u.jsxs)("div",g(g({},{className:"display-x3nfvp2","data-style-src":"ThElement/index.tsx:10"}),{},{children:[k(_.props.children),(0,u.jsxs)("div",g(g({},{className:"display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k width-xsmyaan height-xmix8c7","data-style-src":"ThElement/index.tsx:25"}),{},{children:["asc"===f.sortOrder&&T===f.sortKey&&(0,u.jsx)(l.Icon,{name:["fas","arrow-up"],className:"color-xqi5lc6"}),"desc"===f.sortOrder&&T===f.sortKey&&(0,u.jsx)(l.Icon,{name:["fas","arrow-up"],rotation:180,className:"color-xqi5lc6"}),T!==f.sortKey&&(0,u.jsx)("span",g(g({},c.props(v.hoverContentHidden,w&&v.hoverContentVisible)),{},{children:(0,u.jsx)(l.Icon,{name:["fas","arrow-up-arrow-down"],rotation:180,className:"color-xqi5lc6"})}))]}))]}))}))}var M=_.props,L=M.children,D=M.className,B=M.style;if("td"===d.type){var U=c.props.apply(c,[v.th].concat(p(x)));return(0,u.jsx)("td",{className:(0,s.classNames)(U.className,null!=D?D:""),style:g(g({},U.style),B),"data-testid":"th-".concat(I(L)),children:L})}var F=c.props.apply(c,[v.th,"right"===(null==_?void 0:_.props["data-align"])&&v.alignRight].concat(p(x)));return(0,u.jsx)("th",{className:(0,s.classNames)(F.className,null!=D?D:""),style:g(g({},F.style),B),"data-testid":"th-".concat(I(L)),children:k(L)})}},11401:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(14041)),l=n(99018),s=n(31085);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=a.default;u(".width-xh8yej3{width:100%}",4e3),u(".display-x78zum5{display:flex}",3e3),u(".justifyContent-x1qughib{justify-content:space-between}",3e3),u(".marginBottom-xieb3on{margin-bottom:20px}",4e3),u(".height-xng8ra{height:60px}",4e3),u(".alignItems-x6s0dn4{align-items:center}",3e3),u(".justifyContent-xl56j7k{justify-content:center}",3e3),u(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),u(".color-x75csi3{color:var(--black400-x1u7ngzx)}",3e3),u(".fontWeight-x1s688f{font-weight:600}",3e3),u(".fontSize-xosj86m{font-size:18px}",3e3),u(".borderBottom-xkegzi8{border-bottom:2px solid var(--gray300-x1xk3734)}",2e3),u(".cursor-x1ypdohk{cursor:pointer}",3e3),u(".opacity-xj34u2y:hover{opacity:.5}",3130),u(".borderBottomColor-x18ewvbt{border-bottom-color:var(--oldBrand600-x1t41vhw)}",4e3),u(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3),u(".cursor-xt0e3qv{cursor:default}",3e3),u(".opacity-x1o7uuvo:hover{opacity:1}",3130),u(".color-xji313y:hover{color:var(--oldBrand600-x1t41vhw)}",3130),u(".color-x1iviald{color:var(--error600-x1indqeg)}",3e3);var d={container:{width:"width-xh8yej3",$$css:"TabbedContent/index.tsx:7"},tabBar:{width:"width-xh8yej3",display:"display-x78zum5",justifyContent:"justifyContent-x1qughib",marginBottom:"marginBottom-xieb3on",$$css:"TabbedContent/index.tsx:10"},contentArea:{width:"width-xh8yej3",$$css:"TabbedContent/index.tsx:16"},tab:{height:"height-xng8ra",width:"width-xh8yej3",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",backgroundColor:"backgroundColor-x18oya0d",color:"color-x75csi3",fontWeight:"fontWeight-x1s688f",fontSize:"fontSize-xosj86m",borderBottom:"borderBottom-xkegzi8",borderBottomWidth:null,borderBottomStyle:null,borderBottomColor:null,cursor:"cursor-x1ypdohk",":hover_opacity":"opacity-xj34u2y",$$css:"TabbedContent/index.tsx:19"},activeTab:{borderBottomColor:"borderBottomColor-x18ewvbt",color:"color-x14ptq3k",cursor:"cursor-xt0e3qv",":hover_opacity":"opacity-x1o7uuvo",":hover_color":"color-xji313y",$$css:"TabbedContent/index.tsx:35"},errorTab:{color:"color-x1iviald",$$css:"TabbedContent/index.tsx:44"}};t.A=function(e){var t=e.tabs,n=void 0===t?[]:t,r=e.children,o=e.activeTab,a=void 0===o?0:o,u=e.onTabChange,f=e.className,p=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)(a),2),m=p[0],g=p[1];return(0,i.useEffect)(function(){g(a)},[a]),(0,s.jsxs)("div",{className:(0,l.cx)(d.container,f),children:[(0,s.jsx)("div",{className:(0,l.cx)(d.tabBar),children:n.map(function(e,t){return(0,s.jsx)("button",{type:"button",className:(0,l.cx)(d.tab,t===m&&d.activeTab,e.hasError&&d.errorTab),onClick:function(){return function(e){g(e),u&&u(e)}(t)},children:e.label},e.label)})}),(0,s.jsx)("div",{className:(0,l.cx)(d.contentArea),children:i.default.Children.map(r,function(e,t){return(0,s.jsx)("div",{role:"tabpanel",style:{display:t===m?"block":"none"},children:e})})})]})}},11515:(e,t,n)=>{"use strict";e.exports=n.p+"006f011fac97ce166aa5.svg"},11525:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(72846),o=n.n(r);function a(e){return o()(e)}},12017:(e,t,n)=>{"use strict";n.d(t,{A:()=>y}),n(14041);var r=n(76449),o=n(28426),a=n(27805),i=n(89748),l=n(62161),s=n(36990),c=n(19863),u=n(40699),d=n(73657),f=n(27333),p=n(92523),m=n(41574),g=n(31085);
2function y(){var e,t,n,y,h=(0,f.R7)({sortKey:"percent_invalid"}),x=h.filters,b=h.handlePagination,v=h.setFilters,A=h.handleSort,_=(0,f.st)("/analytics/conversions",x,function(e){var t="&group_by=network";return e["network.equals"]&&(t+='&network=["'.concat(e["network.equals"],'"]')),t}),S=_.data,w=_.isLoading,O=[{label:(0,i.A)("Network"),name:"network",type:"radio",options:[{label:(0,i.A)("equals"),name:"equals",type:"text"}]}];return(0,g.jsxs)(o.A.Page,{type:"overview",children:[(0,g.jsx)(a.default,{type:"overview",title:(0,i.A)("Affiliate Network Conversion Analytics"),text:(0,i.A)("Monitor affiliate conversion quality across all of your networks"),contentRight:(0,g.jsx)(m.A,{filters:x,exportType:"network",exportCategory:"conversions",exportLevel:"summary"})}),(0,g.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,g.jsx)("div",{className:"left",children:(0,g.jsx)(r.default,{filterConfig:O,initialValues:x,onFilterChange:v})}),(0,g.jsx)(p.default,{})]}),(0,g.jsx)(l.A,{rows:null==S||null===(e=S.result)||void 0===e?void 0:e.data,isLoading:w,totalResults:null==S||null===(t=S.result)||void 0===t||null===(t=t.pagination)||void 0===t?void 0:t.total,totalPages:null==S||null===(n=S.result)||void 0===n||null===(n=n.pagination)||void 0===n?void 0:n.last_page,totalItems:null==S||null===(y=S.result)||void 0===y||null===(y=y.pagination)||void 0===y?void 0:y.total,pageNumber:x.page,handlePagination:b,handleSorting:A,sorting:{sortKey:x.sortKey,sortOrder:x.sortOrder},limit:x.limit,leftPinnedColumns:1,children:function(e){var t,n,r,o;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{"data-sortable-id":"network",children:(0,i.A)("Network")}),(0,g.jsx)("th",{"data-sortable-id":"total",children:(0,i.A)("Total Conversions")}),(0,g.jsx)("th",{"data-sortable-id":"fraudulent",children:(0,i.A)("Invalid Conversions")}),(0,g.jsx)("th",{"data-sortable-id":"percent_invalid",children:(0,i.A)("IVT%")}),(0,g.jsx)("th",{children:(0,i.A)("Top Reasons")}),(0,g.jsx)("th",{children:(0,i.A)("Occurrences")})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsx)("td",{children:(0,g.jsx)(d.Link,{to:"/conversion-analytics/networks/".concat(null==e?void 0:e.network),children:null==e?void 0:e.network})}),(0,g.jsx)("td",{children:(0,c.m)(null==e?void 0:e.conversions_total)}),(0,g.jsx)("td",{children:(0,c.m)(null==e?void 0:e.conversions_fraudulent)}),(0,g.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,g.jsxs)("td",{children:[null===(t=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===t?void 0:t.topReason.name,(0,g.jsx)(s.A,{children:null===(n=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===n?void 0:n.secondReason.name})]}),(0,g.jsxs)("td",{children:[null===(r=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===r?void 0:r.topReason.value,(0,g.jsx)(s.A,{children:null===(o=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===o?void 0:o.secondReason.value})]})]})]})}})]})}},12096:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=f(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(60156),s=f(n(79135)),c=n(4386),u=f(n(36313)),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}var b=o.default;b(".flex-x98rzlu{flex:1}",2e3),b(".overflow-xb3r6kr{overflow:hidden}",2e3),b(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),b(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),b(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),b(".padding-xfawy5m{padding:4px}",1e3),b(".maxHeight-x1sslpiy{max-height:320px}",4e3),b(".overflowY-x1odjw0f{overflow-y:auto}",4e3),b(".display-x78zum5{display:flex}",3e3),b(".alignItems-x6s0dn4{align-items:center}",3e3),b(".height-x1fgtraw{height:28px}",4e3),b(".cursor-x1ypdohk{cursor:pointer}",3e3),b(".borderRadius-x12oqio5{border-radius:4px}",2e3),b(".fontSize-xif65rj{font-size:14px}",3e3),b(".marginBottom-x12nagc{margin-bottom:4px}",4e3),b(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),b(".background-x1h3gynt{background:var(--white-x3n8fk9)}",1e3),b(".background-x1we27kq:hover{background:var(--gray100-x1llswo5)}",1130),b(".fontFamily-x122x9cr{font-family:Inter}",3e3),b(".fontWeight-x1s688f{font-weight:600}",3e3),b(".color-x75csi3{color:var(--black400-x1u7ngzx)}",3e3),b(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3);var v={dropdown:{padding:"padding-xfawy5m",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,maxHeight:"maxHeight-x1sslpiy",overflowY:"overflowY-x1odjw0f",$$css:"DropdownSelect/index.tsx:26"},optionLabel:{flex:"flex-x98rzlu",fontFamily:"fontFamily-x122x9cr",fontWeight:"fontWeight-x1s688f",fontSize:"fontSize-xif65rj",color:"color-x75csi3",$$css:"DropdownSelect/index.tsx:47"},optionLabelSelected:{color:"color-x14ptq3k",$$css:"DropdownSelect/index.tsx:54"}};function A(e){var t,n,r,o,f,p,g=e.filter,b=e.setFilter,A=e.filters,_=(f=(0,a.useState)(!1),p=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(f,p)||y(f,p)||function(){throw new TypeError("Invalid attempt to de
2structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),S=_[0],w=_[1],O=(0,a.useRef)(null),j=(0,c.getFilterTestId)(null!==(t=g.label)&&void 0!==t?t:g.name),k=(0,c.shouldShowSelectAllOption)(g);function E(e){var t,n=(0,c.isSelectAllOption)(e),r=(null===(t=g.options)||void 0===t?void 0:t.map(function(t){return m(m({},t),{},{value:!n&&t.name===e})}))||[];b(m(m({},g),{},{options:r})),w(!1)}function N(e){var t=e.target;O.current&&t instanceof Node&&!O.current.contains(t)&&w(!1)}(0,a.useEffect)(function(){return document.addEventListener("mousedown",N),function(){document.removeEventListener("mousedown",N)}},[]);var I,P=null!==(n=A.find(function(e){return e.name===g.name}))&&void 0!==n?n:g,T=null!==(r=P.options)&&void 0!==r?r:[],C=T.find(function(e){return!0===e.value}),R=(0,c.sortFilterOptions)(T,null!==(o=P.sortOrder)&&void 0!==o?o:g.sortOrder),M={label:(0,l.language)("Select all"),name:c.SELECT_ALL_OPTION_NAME,type:"checkbox",value:!C},L=k?[M].concat(function(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(R)):R,D=C?C.label:"All",B="All"!==D,U=T.some(function(e){return!(!(t=e.validationErrors)||"object"!==x(t))&&Object.keys(t).length>0;var t});return U?I=u.default.errorButton:B&&(I=u.default.activeButton),(0,d.jsxs)("div",m(m({},i.props(u.default.container)),{},{ref:O,"data-testid":"".concat(j,"-container"),children:[(0,d.jsx)("div",{"data-testid":U?"".concat(j,"-error-container"):void 0,children:(0,d.jsxs)("button",m(m({type:"button"},i.props(u.default.button,I,S&&u.default.buttonOpen)),{},{onClick:function(){w(function(e){return!e})},"aria-haspopup":"listbox","aria-expanded":S,"data-testid":"".concat(j,"-trigger"),children:[(0,d.jsx)("span",m(m({},i.props(u.default.buttonLabel)),{},{children:g.label})),(0,d.jsx)("span",m(m({},i.props(u.default.selectedValue)),{},{children:D})),(0,d.jsxs)("span",m(m({},i.props(u.default.iconWrapper)),{},{children:[!S&&(0,d.jsx)(s.default,{name:"chevron-up"}),S&&(0,d.jsx)(s.default,{name:"chevron-down"})]}))]}))}),S&&(0,d.jsx)("div",m(m({},i.props(u.default.dropdown,v.dropdown)),{},{role:"listbox","aria-label":"Select option","data-testid":"".concat(j,"-menu"),children:L.map(function(e){var t,n,r=!0===e.value,o=(0,c.getFilterTestId)(null!==(t=e.label)&&void 0!==t?t:e.name,"".concat(j,"-option"));return(0,d.jsx)("div",m(m({},{className:"display-x78zum5 alignItems-x6s0dn4 height-x1fgtraw padding-xfawy5m cursor-x1ypdohk borderRadius-x12oqio5 fontSize-xif65rj marginBottom-x12nagc color-x18k1rwp whiteSpace-xuxw1ft background-x1h3gynt background-x1we27kq","data-style-src":"DropdownSelect/index.tsx:31"}),{},{role:"option","aria-selected":r,onClick:function(){return E(e.name)},onKeyDown:function(t){return"Enter"===t.key&&E(e.name)},tabIndex:0,"data-testid":o,children:(0,d.jsx)("span",m(m({},i.props(v.optionLabel,r&&v.optionLabelSelected)),{},{children:null!==(n=e.label)&&void 0!==n?n:e.name}))}),e.name)})}))]}))}A.displayName="DropdownSelect",t.A=A},12174:(e,t,n)=>{"use strict";e.exports=n.p+"8287d8e41c01f4be5486.svg"},12207:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(14041),o=n(56197),a=n(62720),i=n(76449),l=n(28426),s=n(44949),c=n(89748),u=n(51836),d=n(73657),f=n(27333),p=n(99226),m=n(62161),g=n(40699),y=n(83223),h=n(59250),x=n(32881),b=n(41574),v=n(31085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(){var e,t,n,A,_,w,j,k,E,N,I,P,T="TRIAL"===(0,p.A)().lunioStatus,C=O((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),R=C[0],M=C[1],L=O((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),D=L[0],B=L[1],U=O((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),F=U[0],G=U[1],W=(0,u.g)().campaign,z=O((0,d.useSearchParams)(),1)[0],V=z.get("network"),q=z.get("partner"),K=(0,f.R7)({sortKey:"campaign"}),H=K.filters,Y=K.setFilters,$=(0,f.R7)({sortKey:"created_at"}),Z=$.filters,X=$.handlePagination,J=$.setFilters,Q=$.handleSort;function ee(e){var t='&group_by=campaign&campaign=["'.concat(encodeURIComponent(W),'"]'),n=Object.keys(e).filter(function(t){return t.startsWith("fraud_type.")&&e[t]}).map(function(e){return e.replace("fraud_type.","")});return n.length>0&&(t+='&fraud_type=["'.concat(n.join('","'),'"]')),t}var te=(0,f.st)("/affiliates/clicks/log",S(S({},Z),{},{startDate:new Date(F.min.date),endDate:new Date(F.max.date)}),ee),ne=te.data,re=te.isLoading,oe=Object.entries((0,g.T5)("analytics")).map(function(e){var t=O(e,2),n=t[0],r=t[1];return{label:(0,c.A)(r),shortLabel:(0,c.A)(r),type:"checkbox",name:n,value:!1}}),ae=[{label:(0,c.A)("Fraud Type"),name:"fraud_type",type:"checkbox",queryTranslator:"arrayOfNames",queryKey:"type",options:oe}],ie=(0,f.st)("/affiliates/clicks",S(S({},H),{},{startDate:new Date(R.min.date),endDate:new Date(R.max.date)}),ee),le=ie.data,se=ie.isLoading,ce=(0,f.st)("/affiliates/clicks",{startDate:new Date(D.min.date),endDate:new Date(D.max.date),group_by:"network",page:1,limit:100,sortKey:"network",sortOrder:"asc"}),ue=ce.data,de=ce.isLoading,fe=null==le?void 0:le.result,pe=null==ue||null===(e=ue.result)||void 0===e||null===(e=e.overall)||void 0===e?void 0:e.overall_invalid_labels_percent;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s.A,{title:(0,c.A)(":campaign Overview",{campaign:W}),size:"sm",menuItems:[],subTitle:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(d.Link,{style:{color:"#7F56D9"},to:"/analytics/affiliate/campaigns",children:(0,c.A)("Campaigns")})," ",W&&" / ",W]}),subText:"".concat(V," | ").concat(q),contentRight:(0,v.jsx)(b.A,{filters:Z,dates:F,exportType:"campaign",exportValue:W})}),(0,v.jsxs)(l.A.Page,{type:"settings",children:[(0,v.jsx)(h.A,{title:(0,c.A)(":campaign Summary",{campaign:W}),isLoading:se,total:{title:(0,c.A)("Total Clicks"),count:null==fe||null===(t=fe.overall)||void 0===t?void 0:t.overall_clicks},allTrackedClicks:{title:(0,c.A)("All Tracked Clicks"),count:null==fe||null===(n=fe.overall)||void 0===n?void 0:n.overall_all_tracked_clicks,tooltip:(0,c.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks.")},invalid:{title:(0,c.A)("SIVT Clicks"),count:null==fe||null===(A=fe.overall)||void 0===A?void 0:A.overall_clicks_invali
2d},givt:T?void 0:{title:(0,c.A)("GIVT Clicks"),count:null==fe||null===(_=fe.overall)||void 0===_?void 0:_.overall_clicks_general_invalid,tooltip:(0,c.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction.")},totalIvt:{title:(0,c.A)("Total IVT"),count:null==fe||null===(w=fe.overall)||void 0===w?void 0:w.overall_total_ivt,tooltip:(0,c.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT.")},ivt:{count:null==fe||null===(j=fe.overall)||void 0===j?void 0:j.overall_clicks_invalid_percent},totalIvtPercent:{title:(0,c.A)("Total IVT %"),count:null==fe||null===(k=fe.overall)||void 0===k?void 0:k.overall_total_ivt_percent,tooltip:(0,c.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT).")},setTime:M,time:R,filters:H,setFilters:Y,filterConfig:ae}),(0,v.jsx)(x.A,{data:(0,g.J8)(pe,"analytics"),isLoading:de,setTime:B,time:D,title:(0,c.A)("Fraud Type")}),(0,v.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,v.jsx)("div",{className:"left",children:(0,v.jsx)(i.default,{filterConfig:ae,initialValues:Z,onFilterChange:J})}),(0,v.jsx)(a.default.DatePicker,{value:[F.min.date,F.max.date],onRangeChange:function(e){return G(e)},selectedOption:F.rangeName,showCalenderIcon:!1,displayRangeText:!1})]}),(0,v.jsx)(m.A,{rows:null==ne||null===(E=ne.result)||void 0===E?void 0:E.data,isLoading:re,totalResults:null==ne||null===(N=ne.result)||void 0===N||null===(N=N.pagination)||void 0===N?void 0:N.total,totalPages:null==ne||null===(I=ne.result)||void 0===I||null===(I=I.pagination)||void 0===I?void 0:I.last_page,totalItems:null==ne||null===(P=ne.result)||void 0===P||null===(P=P.pagination)||void 0===P?void 0:P.total,pageNumber:Z.page,handlePagination:X,limit:Z.limit,leftPinnedColumns:1,handleSorting:Q,sorting:{sortKey:Z.sortKey,sortOrder:Z.sortOrder},"data-testid":"fraud-type-table",children:function(e){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("thead",{children:(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{"data-sortable-id":"created_at",children:(0,c.A)("Timestamp")}),(0,v.jsx)("th",{children:(0,c.A)("Fraud Type")})]})}),(0,v.jsxs)("tbody",{children:[(0,v.jsx)("td",{children:(null==e?void 0:e.created_at)&&(0,y.GP)(e.created_at,"MMM d, HH:mm")}),(0,v.jsx)("td",{children:(0,g.ic)(null==e?void 0:e.invalid_labels,"analytics").map(function(e){return(0,v.jsx)(o.default,{style:{display:"inline-block",marginRight:"12px",lineHeight:"24px"},colourName:"error",children:e},e)})})]})]})}})]})]})}},12251:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(14041),o=n(39067),a=n.n(o),i=n(77223),l=n(62720),s=n(72686),c=n(30021),u=n(55436),d=n(64517),f=n(30556),p=n(89748),m=n(34406),g=n(88133),y=n(93033),h=n(99226),x=n(96182),b=n(31085);function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e){var t,n,o,a,A,_=e.cpn,S=v((0,r.useState)(l.default.DatePicker.getDateRange("30d")),2),w=S[0],O=S[1],j="TRIAL"===(0,h.A)().lunioStatus,k=v((0,x.A)(),1)[0],E="google"!==k.selectedPlatform.platform_name,N=E?"&platform=".concat(k.selectedPlatform.platform_name):"";function I(e){return Math.floor((0,m.Ay)(e).valueOf()/1e3)}var P,T=(0,g.Ay)("".concat(E?"/platform/campaigns-data/":"/aw/campaigns-data/").concat(_,"?df_dmin=").concat(I(w.min.date),"&df_dmax=").concat(I(w.max.date)).concat(N)),C=T.data,R=T.isLoading;return(0,b.jsx)("div",{className:"mt-8 mb-4",children:(0,b.jsxs)(s.default,{children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)(c.default,{preset:"widgetHeading",children:(0,p.A)("Invalid Clicks Summary")}
2),(0,b.jsx)(l.default.DatePicker,{value:[w.min.date,w.max.date],ranges:["yesterday","7d","30d","90d","prevMonth","customMonth","customRange"],onRangeChange:O,showCalenderIcon:!1,displayRangeText:!1})]}),(0,b.jsx)(i.default,{className:"mt-4 "}),(0,b.jsx)(f.default,{children:(0,b.jsx)(u.default,{loading:R,preset:"dark",size:"responsive",height:100,children:(0,b.jsxs)(f.default.Row,{children:[!C&&!R&&(0,b.jsx)("div",{children:(0,p.A)("No data")}),(0,b.jsx)(f.default.Col,{children:(0,b.jsx)(d.A,{title:(0,p.A)("SIVT Clicks"),icon:["far","exclamation-triangle"],value:null==C||null===(t=C.result)||void 0===t||null===(t=t.data[0])||void 0===t?void 0:t.total_invalid,deltaHideText:!0,deltaNumber:String((null==C||null===(n=C.result)||void 0===n||null===(n=n.data[0])||void 0===n?void 0:n.percent_invalid_change)||"").replaceAll("-",""),deltaDirection:(P=null==C||null===(o=C.result)||void 0===o||null===(o=o.data[0])||void 0===o?void 0:o.percent_invalid_change,Number(P)>0?"up":Number(P)<0?"down":"right")})}),(0,b.jsx)(y.A,{AND:!j,children:(0,b.jsx)(f.default.Col,{children:(0,b.jsx)(d.A,{title:(0,p.A)("GIVT Clicks"),icon:["far","network-wired"],value:null==C||null===(a=C.result)||void 0===a||null===(a=a.data[0])||void 0===a?void 0:a.total_general_invalid})})}),(0,b.jsx)(f.default.Col,{children:(0,b.jsx)(d.A,{title:(0,p.A)("Avg IVT%"),icon:["far","percent"],percentage:null==C||null===(A=C.result)||void 0===A||null===(A=A.data[0])||void 0===A?void 0:A.percent_invalid})})]})})})]})})}_.propTypes={cpn:a().number.isRequired};const S=_},12342:(e,t,n)=>{"use strict";e.exports=n.p+"f6352ae0ccdb7c833f61.svg"},12351:(e,t,n)=>{"use strict";e.exports=n.p+"9761b793f54b41b1633d.svg"},12502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(25751)),o=f(n(14041)),a=n(60156),i=f(n(9260)),l=f(n(79135)),s=f(n(92275)),c=f(n(1841)),u=n(4386),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b=r.default;
2b(".display-xrvj5dj{display:grid}",3e3),b(".gridTemplateColumns-x1sipb5g{grid-template-columns:repeat(4,minmax(0,1fr))}",3e3),b(".gap-xou54vl{gap:16px}",2e3),b(".paddingBottom-x1gan7if{padding-bottom:32px}",4e3),b(".alignItems-x1cy8zhl{align-items:flex-start}",3e3),b(".display-x78zum5{display:flex}",3e3),b(".flexDirection-xdt5ytf{flex-direction:column}",3e3),b(".gap-x167g77z{gap:8px}",2e3),b(".height-x5yr21d{height:100%}",4e3),b(".justifyContent-x1nhvcw1{justify-content:flex-start}",3e3),b(".width-xh8yej3{width:100%}",4e3),b(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),b(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),b(".borderRadius-xugzpu4{border-radius:18px}",2e3),b(".padding-x1tamke2{padding:16px}",1e3),b(".alignItems-x6s0dn4{align-items:center}",3e3),b(".borderRadius-xur7f20{border-radius:8px}",2e3),b(".flexShrink-x2lah0s{flex-shrink:0}",3e3),b(".height-xsdox4t{height:48px}",4e3),b(".width-x1useyqa{width:48px}",4e3),b(".justifyContent-xl56j7k{justify-content:center}",3e3),b(".marginBottom-xod5an3{margin-bottom:12px}",4e3),b(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3),b(".backgroundColor-xf6q9j8{background-color:var(--oldBrand100-x1o59ms7)}",3e3),b(".color-x1heor9g{color:inherit}",3e3),b(".fontSize-xosj86m{font-size:18px}",3e3),b(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),b(".fontSize-x1j61zf2{font-size:16px}",3e3),b(".fontWeight-x1s688f{font-weight:600}",3e3),b(".margin-x1ghz6dp{margin:0}",1e3),b(".textAlign-xdpxx8g{text-align:left}",3e3),b(".lineHeight-xdod15v{line-height:21px}",3e3),b(".alignSelf-xkh2ocl{align-self:stretch}",3e3),b(".color-x75csi3{color:var(--black400-x1u7ngzx)}",3e3),b(".fontSize-xif65rj{font-size:14px}",3e3),b(".fontWeight-xo1l8bm{font-weight:400}",3e3),b(".flexGrow-x1c4vz4f{flex-grow:0}",3e3),b(".flexWrap-x1a02dak{flex-wrap:wrap}",3e3),b(".gap-x17d4w8g{gap:6px}",2e3),b(".marginTop-x14vqqas{margin-top:12px}",4e3),b(".backgroundColor-x1itpvea{background-color:var(--oldBrand50-x1t4s9vw)}",3e3),b(".border-x1onvrke{border:1px solid var(--oldBrand300-x1eifvzy)}",1e3),b(".borderRadius-xgqmno8{border-radius:16px}",2e3),b(".fontSize-xfifm61{font-size:12px}",3e3),b(".fontWeight-xk50ysn{font-weight:500}",3e3),b(".height-xd7y6wv{height:26px}",4e3),b(".paddingLeft-x163pfp{padding-left:8px}",4e3),b(".paddingRight-xy13l1i{padding-right:8px}",4e3),b(".marginTop-xr1yuqi{margin-top:auto}",4e3),b(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3);var v=s.default.map(function(e){return{title:null!==(n=(t=e).title)&&void 0!==n?n:"",description:null!==(r=t.description)&&void 0!==r?r:"",iconName:null!==(o=t.iconName)&&void 0!==o?o:"chart-line",colourName:null!==(a=t.colourName)&&void 0!==a?a:"Red",period:null!==(i=t.period)&&void 0!==i?i:"",periodKey:null!==(l=t.periodKey)&&void 0!==l?l:"",keyWords:null!==(s=t.keyWords)&&void 0!==s?s:[],filters:null!==(c=t.filters)&&void 0!==c?c:[],columnGroupingOrder:null!==(u=t.columnGroupingOrder)&&void 0!==u?u:[]};var t,n,r,o,a,i,l,s,c,u});function A(e){switch(e){case"1d":case"7d":case"30d":case"90d":case"yesterday":case"prevMonth":case"last4Weeks":return e;default:return"30d"}}function _(){var e,t,n,r,s=h(o.default.useState(!1),2),f=s[0],p=s[1],m=h(o.default.useState(null!==(e=v[0])&&void 0!==e?e:null),2),y=m[0],x=m[1],b=(0,u.getFilterTestId)("predefined-exports","filter-panel");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",g(g({},{className:"display-xrvj5dj gridTemplateColumns-x1sipb5g gap-xou54vl paddingBottom-x1gan7if","data-style-src":"PreDefinedExports/index.tsx:13"}),{},{"data-testid":b,children:v.map(function(e,t){var n,r="".concat(e.title,"-").concat(null!==(n=e.periodKey)&&void 0!==n?n:t),o=(0,u.getFilterTestId)(e.title,"".concat(b,"-card"));return(0,d.jsx)("div",g(g({},{className:"backgroundColor-x18oya0d border-xct47cs borderRadius-xugzpu4 display-x78zum5 justifyContent-x1nhvcw1 padding-x1tamke2","data-style-src":"PreDefinedExports/index.tsx:28"}),{},{"data-testid":o,children:(0,d.jsxs)("div",g(g({},{className:"alignItems-x1cy8zhl display-x78zum5 flexDirection-xdt5ytf gap-x167g77z height-x5yr21d justifyContent-x1nhvcw1 width-xh8yej3","data-style-src":"PreDefinedExports/index.tsx:19"}),{},{children:[(0,d.jsx)("div",g(g({},{className:"alignItems-x6s0dn4 borderRadius-xur7f20 display-x78zum5 flexShrink-x2lah0s height-xsdox4t width-x1useyqa justifyContent-xl56j7k marginBottom-xod5an3 color-x14ptq3k backgroundColor-xf6q9j8","data-style-src":"PreDefinedExports/index.tsx:36"}),{},{children:(0,d.jsx)(l.default,g({name:["far",e.iconName]},{className:"color-x1heor9g fontSize-xosj86m","data-style-src":"PreDefinedExports/index.tsx:48"}))})),(0,d.jsx)("h3",g(g({},{className:"color-x1jsblnb fontSize-x1j61zf2 fontWeight-x1s688f margin-x1ghz6dp textAlign-xdpxx8g lineHeight-xdod15v","data-style-src":"PreDefinedExports/index.tsx:52"}),{},{children:e.title})),(0,d.jsx)("p",g(g({},{className:"alignSelf-xkh2ocl color-x75csi3 fontSize-xif65rj fontWeight-xo1l8bm flexGrow-x1c4vz4f margin-x1ghz6dp textAlign-xdpxx8g","data-style-src":"PreDefinedExports/index.tsx:60"}),{},{children:e.description})),(0,d.jsx)("div",g(g({},{className:"display-x78zum5 flexWrap-x1a02dak gap-x17d4w8g marginTop-x14vqqas width-xh8yej3","data-style-src":"PreDefinedExports/index.tsx:69"}),{},{"data-testid":"".concat(o,"-keywords"),children:e.keyWords.map(function(e){return(0,d.jsx)("div",g(g({},{className:"alignItems-x6s0dn4 backgroundColor-x1itpvea border-x1onvrke borderRadius-xgqmno8 color-x14ptq3k dis
2play-x78zum5 fontSize-xfifm61 fontWeight-xk50ysn height-xd7y6wv paddingLeft-x163pfp paddingRight-xy13l1i","data-style-src":"PreDefinedExports/index.tsx:76"}),{},{children:e}),"".concat(r,"-").concat(e))})})),(0,d.jsx)("div",g(g({},{className:"marginTop-xr1yuqi display-x78zum5 width-xh8yej3 justifyContent-x13a6bvl","data-style-src":"PreDefinedExports/index.tsx:89"}),{},{children:(0,d.jsx)(i.default,{preset:"link",iconRight:["far","download"],onClick:function(){return function(e){p(!0),x(e)}(e)},"data-testid":"".concat(o,"-export"),children:(0,a.language)("Export")})}))]}))}),r)})})),(0,d.jsx)(c.default,{filters:null!==(t=null==y?void 0:y.filters)&&void 0!==t?t:[],isOpen:f,onClose:function(){p(!1),x(v[0])},apiUrl:"/platform/data-explorer/export",dataTestIdInstance:"predefined-exports",title:null!==(n=null==y?void 0:y.title)&&void 0!==n?n:(0,a.language)("Predefined Export"),description:null!==(r=null==y?void 0:y.description)&&void 0!==r?r:(0,a.language)("Export data to your email via CSV."),dateRangePeriod:A(null==y?void 0:y.periodKey)})]})}_.displayName="PreDefinedExports",t.default=_},12636:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(14041),l=n(45365),s=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),c=n(60156),u=n(18141),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=a.default;x(".display-x78zum5{display:flex}",3e3),x(".justifyContent-x1qughib{justify-content:space-between}",3e3),x(".alignItems-x1cy8zhl{align-items:flex-start}",3e3),x(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),x(".marginLeft-x1tpqehw{margin-left:12px}",4e3),x(".marginTop-x14vqqas{margin-top:12px}",4e3),x(".marginTop-x1gslohp{margin-top:4px}",4e3),x(".textAlign-x1hr2gdg{text-align:right}",3e3),x(".marginRight-x1wsuqlk{margin-right:12px}",4e3),x(".lineHeight-xdod15v{line-height:21px}",3e3),x(".letterSpacing-x12oo3zp{letter-spacing:0}",3e3),x(".lineHeight-x1o2sk6j{line-height:24px}",3e3),x(".display-xrvj5dj{display:grid}",3e3),x(".gridTemplateColumns-xsifena{grid-template-columns:3fr 1fr 1fr}",3e3),x(".gap-x1665zp3{gap:24px}",2e3),x(".marginTop-xqui205{margin-top:24px}",4e3),x(".paddingBottom-xsag5q8{padding-bottom:12px}",4e3),x(".borderBottomWidth-xso031l{border-bottom-width:1px}",4e3),x(".borderBottomStyle-x1q0q8m5{border-bottom-style:solid}",4e3),x(".borderColor-x2ci420{border-color:var(--gray200-x1cfnqzm)}",2e3),x(".backgroundColor-x1a33ojm:hover{background-color:var(--gray50-x1bw8p5w)}",3130),x(".width-xh8yej3{width:100%}",4e3),x(".paddingTop-x1cnzs8{padding-top:20px}",4e3),x(".paddingBottom-xx6bls6{padding-bottom:20px}",4e3),x(".background-x11g6tue{background:none}",1e3),x(".border-x1gs6z28{border:none}",1e3),x(".textAlign-xdpxx8g{text-align:left}",3e3),x(".cursor-x1ypdohk{cursor:pointer}",3e3),x(".paddingLeft-xf18ygs{padding-left:12px}",4e3),x(".paddingRight-xnuq7ks{padding-right:12px}",4e3),x(".alignItems-x6s0dn4{align-items:center}",3e3),x(".gap-x167g77z{gap:8px}",2e3),x(".textTransform-xn80e1m{text-transform:capitalize}",3e3),x(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),x(".fontSize-xif65rj{font-size:14px}",3e3),x(".marginTop-xvijh9v{margin-top:1px}",4e3),x(".gap-x1v2ro7d{gap:12px}",2e3),x(".width-x15yg21f{width:56px}",4e3),x(".flexShrink-x2lah0s{flex-shrink:0}",3e3),x(".lineHeight-xenc4b3{line-height:22.5px}",3e3),x(".lineHeight-xxyn1md{line-height:19.5px}",3e3),x(".flex-x98rzlu{flex:1}",2e3),x(".height-x1v9usgg{height:14px}",4e3),x(".borderRadius-xu4hgxq{border-radius:7px}",2e3),x(".overflow-xb3r6kr{overflow:hidden}",2e3),x(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),x(".backgroundColor-xirq6vt{background-color:var(--oldBrand600-x1t41vhw)}",3e3),x(".position-x1n2onr6{position:relative}",3e3),x(".position-x10l6tqk{position:absolute}",3e3),x(".left-xpnmzw7{left:12px}",4e3),x(".top-xs7f9wi{top:2px}",4e3),x(".bottom-xjnlgov{bottom:20px}",4e3),x(".width-xfo62xy{width:2px}",4e3),x(".backgroundColor-x18thdbb{background-color:var(--gray200-x1cfnqzm)}",3e3),x(".marginBottom-xod5an3{margin-bottom:12px}",4e3),x(".paddingLeft-x10de0yr{padding-left:36px}",4e3),x(".paddingTop-x1y1aw1k{padding-top:8px}",4e3),x(".paddingBottom-xwib8y2{padding-bottom:8px}",4e3),x(".width-x1exxlbk{width:100px}",4e3),x(".height-xqu0tyb{height:4px}",4e3),x(".borderRadius-x1cum3z5{border-radius:2px}",2e3);var b={height:"height-x1v9usgg",borderRadius:"borderRadius-xu4hgxq",backgroundColor:"backgroundColor-xirq6vt",$$css:"WasteBreakdownCard/index.tsx:130"},v={height:"height-xqu0tyb",borderRadius:"borderRadius-x1cum3z5",backgroundColor:"backgroundColor-xirq6vt",$$css:"WasteBreakdownCard/index.tsx:175"};function A(e){return"".concat(Number(e.toFixed(2)),"%")}t.A=function(e){var t=e.invalidClicks,n=void 0===t?0:t,r=e.wasteTypes,o=void 0===r?[]:r,a=e.isLoading,f
2=void 0!==a&&a,p=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)([]),2),g=p[0],x=p[1];return(0,d.jsxs)(l.Card,{className:"mt-4",children:[(0,d.jsxs)("div",m(m({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x1cy8zhl marginBottom-x1e56ztr","data-style-src":"WasteBreakdownCard/index.tsx:13"}),{},{children:[(0,d.jsxs)("div",m(m({},{className:"marginLeft-x1tpqehw marginTop-x14vqqas","data-style-src":"WasteBreakdownCard/index.tsx:19"}),{},{children:[(0,d.jsx)(l.Text,{fontSize:20,weight:600,colour:"gray900",children:(0,c.language)("Waste breakdown")}),(0,d.jsx)(l.Text,m(m({fontSize:14,weight:400,colour:"gray500"},{className:"marginTop-x1gslohp","data-style-src":"WasteBreakdownCard/index.tsx:23"}),{},{children:(0,c.language)("Click on a row to see the top 3 campaigns.")}))]})),(0,d.jsxs)("div",m(m({},{className:"textAlign-x1hr2gdg marginRight-x1wsuqlk marginTop-x14vqqas","data-style-src":"WasteBreakdownCard/index.tsx:26"}),{},{children:[(0,d.jsx)(l.Text,m(m({fontSize:14,weight:400,colour:"gray600",textAlign:"right"},{className:"lineHeight-xdod15v letterSpacing-x12oo3zp","data-style-src":"WasteBreakdownCard/index.tsx:31"}),{},{children:(0,c.language)("Total invalid clicks")})),(0,d.jsx)(l.Text,m(m({fontSize:24,weight:500,colour:"black900",textAlign:"right"},{className:"lineHeight-x1o2sk6j letterSpacing-x12oo3zp","data-style-src":"WasteBreakdownCard/index.tsx:35"}),{},{children:(0,u.localiseNumber)(n)}))]}))]})),(0,d.jsx)(l.LunioLoader,{loading:f,preset:"dark",height:200,children:(0,d.jsxs)(l.EmptyState,{hasNoData:0===o.length,minHeight:200,children:[(0,d.jsxs)("div",m(m({},{className:"display-xrvj5dj gridTemplateColumns-xsifena gap-x1665zp3 marginTop-xqui205 paddingBottom-xsag5q8 borderBottomWidth-xso031l borderBottomStyle-x1q0q8m5 borderColor-x2ci420","data-style-src":"WasteBreakdownCard/index.tsx:39"}),{},{children:[(0,d.jsx)(l.Text,m(m({fontSize:14,colour:"gray500"},{className:"paddingLeft-xf18ygs","data-style-src":"WasteBreakdownCard/index.tsx:70"}),{},{children:(0,c.language)("Waste type")})),(0,d.jsx)(l.Text,{fontSize:14,colour:"gray500",children:(0,c.language)("Invalid Clicks")}),(0,d.jsx)(l.Text,m(m({fontSize:14,colour:"gray500"},{className:"paddingRight-xnuq7ks","data-style-src":"WasteBreakdownCard/index.tsx:73"}),{},{children:(0,c.language)("Percent")}))]})),o.map(function(e){var t=g.includes(e.id);return(0,i.createElement)("div",m(m({},{className:"borderBottomWidth-xso031l borderBottomStyle-x1q0q8m5 borderColor-x2ci420 backgroundColor-x1a33ojm","data-style-src":"WasteBreakdownCard/index.tsx:49"}),{},{key:e.id}),(0,d.jsxs)("button",m(m({type:"button",onClick:function(){return t=e.id,void x(function(e){return e.includes(t)?e.filter(function(e){return e!==t}):[].concat(function(e){if(Array.isArray(e))return h(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||y(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t]);var n});var t}},{className:"width-xh8yej3 display-xrvj5dj gridTemplateColumns-xsifena gap-x1665zp3 alignItems-x1cy8zhl paddingTop-x1cnzs8 paddingBottom-xx6bls6 background-x11g6tue border-x1gs6z28 textAlign-xdpxx8g cursor-x1ypdohk","data-style-src":"WasteBreakdownCard/index.tsx:57"}),{},{"data-testid":"waste-type-row-".concat(e.id),"aria-expanded":t,"aria-controls":"waste-type-detail-".concat(e.id),children:[(0,d.jsxs)("div",m(m({},{className:"paddingLeft-xf18ygs","data-style-src":"WasteBreakdownCard/index.tsx:70"}),{},{children:[(0,d.jsxs)("div",m(m({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x167g77z","data-style-src":"WasteBreakdownCard/index.tsx:76"}),{},{children:[(0,d.jsx)(l.Text,m(m({fontSize:16,weight:400,colour:"black900"},{className:"lineHeight-x1o2sk6j letterSpacing-x12oo3zp textTransform-xn80e1m","data-style-src":"WasteBreakdownCard/index.tsx:81; WasteBreakdownCard/index.tsx:85"}),{},{children:e.name})),(0,d.jsx)(l.Icon,m({name:t?"chevron-up":"chevron-down"},{className:"color-xnx9fn3 fontSize-xif65rj","data-style-src":"WasteBreakdownCard/index.tsx:88"}))]})),(0,d.jsx)(l.Text,m(m({fontSize:14,colour:"gray500"},{className:"marginTop-x1gslohp","data-style-src":"WasteBreakdownCard/index.tsx:92"}),{},{children:e.description}))]})),(0,d.jsx)(l.Text,m(m({fontSize:16,weight:400,colour:"gray900"},{className:"marginTop-xvijh9v lineHeight-x1o2sk6j letterSpacing-x12oo3zp","data-style-src":"WasteBreakdownCard/index.tsx:95"}),{},{children:(0,u.localiseNumber)(e.invalid_clicks)})),(0,d.jsxs)("div",m(m({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d paddingRight-xnuq7ks","data-style-src":"WasteBreakdownCard/index.tsx:104"}),{},{children:[(0,d.jsx)(l.Text,m(m({fontSize:15,weight:500,colour:"black900"},{className:"width-x15yg21f flexShrink-x2lah0s marginTop-xvijh9v lineHeight-xenc4b3 letterSpacing-x12oo3zp","data-style-src":"WasteBreakdownCard/index.tsx:110; WasteBreakdownCard/index.tsx:115"}),{},{children:A(e.percent)}
2)),(0,d.jsx)("div",m(m({},{className:"flex-x98rzlu height-x1v9usgg borderRadius-xu4hgxq overflow-xb3r6kr backgroundColor-xq18l50","data-style-src":"WasteBreakdownCard/index.tsx:123"}),{},{children:(0,d.jsx)("div",m({},s.props(b,{width:"".concat(Math.min(e.percent,100),"%")})))}))]}))]})),t&&(0,d.jsxs)("div",m(m({id:"waste-type-detail-".concat(e.id)},{className:"position-x1n2onr6 paddingBottom-xx6bls6","data-style-src":"WasteBreakdownCard/index.tsx:135"}),{},{"data-testid":"waste-type-detail-".concat(e.id),children:[(0,d.jsx)("div",m({},{className:"position-x10l6tqk left-xpnmzw7 top-xs7f9wi bottom-xjnlgov width-xfo62xy backgroundColor-x18thdbb","data-style-src":"WasteBreakdownCard/index.tsx:139"})),(0,d.jsx)("div",m(m({},{className:"display-xrvj5dj gridTemplateColumns-xsifena gap-x1665zp3 marginBottom-xod5an3","data-style-src":"WasteBreakdownCard/index.tsx:147"}),{},{children:(0,d.jsxs)(l.Text,m(m({fontSize:14,colour:"gray500"},{className:"paddingLeft-x10de0yr","data-style-src":"WasteBreakdownCard/index.tsx:153"}),{},{children:[(0,c.language)("Top 3 campaigns affected by")," ",(0,d.jsx)("span",m(m({},{className:"textTransform-xn80e1m","data-style-src":"WasteBreakdownCard/index.tsx:85"}),{},{children:e.name}))]}))})),e.top_campaigns.map(function(e){return(0,i.createElement)("div",m(m({},{className:"display-xrvj5dj gridTemplateColumns-xsifena gap-x1665zp3 alignItems-x6s0dn4 paddingTop-x1y1aw1k paddingBottom-xwib8y2","data-style-src":"WasteBreakdownCard/index.tsx:156"}),{},{key:e.campaign_id}),(0,d.jsxs)(l.Text,m(m({fontSize:14,colour:"gray600"},{className:"paddingLeft-x10de0yr","data-style-src":"WasteBreakdownCard/index.tsx:164"}),{},{children:[e.campaign_name,e.campaign_type&&(0,d.jsxs)(d.Fragment,{children:[" ","-"," ",e.campaign_type]})]})),(0,d.jsx)(l.Text,m(m({fontSize:14,weight:400,colour:"gray600"},{className:"lineHeight-xdod15v letterSpacing-x12oo3zp","data-style-src":"WasteBreakdownCard/index.tsx:100"}),{},{children:(0,u.localiseNumber)(e.invalid_clicks)})),(0,d.jsxs)("div",m(m({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d paddingRight-xnuq7ks","data-style-src":"WasteBreakdownCard/index.tsx:104"}),{},{children:[(0,d.jsx)(l.Text,m(m({fontSize:13,weight:500,colour:"gray600"},{className:"width-x15yg21f flexShrink-x2lah0s marginTop-xvijh9v lineHeight-xxyn1md letterSpacing-x12oo3zp","data-style-src":"WasteBreakdownCard/index.tsx:110; WasteBreakdownCard/index.tsx:119"}),{},{children:A(e.percent)})),(0,d.jsx)("div",m(m({},{className:"width-x1exxlbk flexShrink-x2lah0s height-xqu0tyb borderRadius-x1cum3z5 overflow-xb3r6kr backgroundColor-xq18l50","data-style-src":"WasteBreakdownCard/index.tsx:167"}),{},{children:(0,d.jsx)("div",m({},s.props(v,{width:"".concat(Math.min(e.percent,100),"%")})))}))]})))})]})))})]})})]})}},12727:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=f(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=f(n(30805)),s=f(n(42793)),c=f(n(77223)),u=f(n(9260)),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=o.default;x(".position-x1n2onr6{position:relative}",3e3),x(".width-x1hfn5x7{width:260px}",4e3),x(".padding-xfawy5m{padding:4px}",1e3),x(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),x(".borderRadius-xur7f20{border-radius:8px}",2e3),x(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),x(".position-x10l6tqk{position:absolute}",3e3),x(".left-xtmbad2{left:268px}",4e3),x(".top-x13vifvy{top:0}",4e3),x(".width-x1wfbf8w{width:%100}",4e3),x(".padding-x1tamke2{padding:16px}",1e3),x(".paddingBottom-x18d9i69{padding-bottom:0}",4e3),x(".padding-xe8ttls{padding:8px}",1e3),x(".display-x78zum5{display:flex}",3e3),x(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),x(".left-x1nx7grf{left:unset}",4e3),x(".right-x1tl44f9{right:268px}",4e3);var b={FiltersInputMenuContainer:{position:"position-x10l6tqk",left:"left-xtmbad2",top:"top-x13vifvy",width:"width-x1hfn5x7",backgroundColor:"backgroundColor-x18oya0d",borderRadius:"borderRadius-xur7f20",border:"border-x180m19u",$$css:"FilterMenu/index.tsx:18"},right:{left:"left-x1nx7grf",right:"right-x1tl44f9",$$css:"FilterMenu/index.tsx:38"}};function v(e){var t,n,r,o=e.filterData,f=e.onFilterChange,p=e.onFilterApply,m=e.leftSide,y=void 0===m||m,x=(n=(0,a.useState)(null),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=x[0],A=x[1];function _(e){A(e)}return(0,d.jsxs)("div",g(g({},{className:"position-x1n2onr6 width-x1hfn5x7 padding-xfawy5m backgroundColor-x18oya0d borderRadius-xur7f20 border-x180m19u","data-style-src":"FilterMenu/index.tsx:10"}),{},{children:[v&&(0,d.jsxs)("div",g(g({},i.props(b.FiltersInputMenuContainer,!y&&b.right)),{},{children:[(0,d.jsx)("div",g(g({},{className:"width-x1wfbf8w padding-x1tamke2 paddingBottom-x18d9i69","data-style-src":"FilterMenu/index.tsx:27"}),{},{children:null==v||null===(t=v.options)||void 0===t?void 0:t.map(function(e){var t=e;return(0,d.jsx)(s.default,{filterOption:t,filterData:o,selectedConfigItem:v,onFilterChange:f},t.label)})})),(0,d.jsx)(c.default,{}),(0,d.jsx)("div",g(g({},{className:"width-x1wfbf8w padding-xe8ttls display-x78zum5 justifyContent-x13a6bvl","data-style-src":"FilterMenu/index.tsx:32"}),{},{children:(0,d.jsx)(u.default,{"data-testid":"filters-menu-apply-button",onClick:function(){return p()},size:"sm",children:"Apply filter"})}))]})),o.map(function(e){return(0,d.jsx)(l.default,{configItem:e,onSelectedConfigItem:_,selectedConfigItem:v,leftSide:y},e.name)})]}))}v.displayName="FiltersMenu",t.default=v},12786:(e,t,n)=>{"use strict";e.exports=n.p+"fba658f1e8c93b5c9e17.svg"},12847:(e,t,n)=>{"use strict";e.exports=n.p+"f9c42e9697c6986272d0.svg"},12973:(e,t,n)=>{"use strict";e.exports=n.p+"33ffb51c59dec02d9f68.svg"},13159:(e,t,n)=>{"use strict";n.r(t)}
2,13248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(14041),i=n(60156),l=n(45365),s=n(34016),c=n(18141),u=n(73657),d=n(44146),f=n(99018),p=n(79405),m=n(31085);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A=o.default;A(".containerType-x12h1iku{container-type:inline-size}",3e3),A(".flexShrink-x2lah0s{flex-shrink:0}",3e3),A("@container (max-width: 570px){.width-xlljupm.width-xlljupm{width:100%}}",4300),A("@container (min-width: 571px) and (max-width: 700px){.width-x1ln3v53.width-x1ln3v53{width:50%}}",4300),A("@container (min-width: 571px) and (max-width: 700px){.float-x10bid9n.float-x10bid9n{float:left}}",3300),A("@container (min-width: 571px) and (max-width: 700px){.paddingRight-x1qcqsp4.paddingRight-x1qcqsp4{padding-right:6px}}",4300),A("@container (min-width: 701px){.width-x27fdbf.width-x27fdbf{width:30%}}",4300),A("@container (min-width: 701px){.float-xlmqacv.float-xlmqacv{float:left}}",3300),A("@container (min-width: 701px){.marginRight-x15kwys2.marginRight-x15kwys2{margin-right:12px}}",4300),A("@container (max-width: 570px){.display-x1c652i3.display-x1c652i3{display:none}}",3300),A("@container (min-width: 571px) and (max-width: 700px){.display-xa1ay9q.display-xa1ay9q{display:none}}",3300),A("@container (min-width: 701px){.display-x1nsg621.display-x1nsg621{display:none}}",3300),A(".display-x1rg5ohu{display:inline-block}",3e3),A(".width-x6jxa94{width:14px}",4e3),A(".height-x1v9usgg{height:14px}",4e3),A(".borderRadius-x16rqkct{border-radius:50%}",2e3),A(".border-xmu6hhq{border:solid 1px}",1e3),A(".backgroundColor-x1ssdy5{background-color:var(--error50-x1f3qy36)}",3e3),A(".borderColor-xk0t9l9{border-color:var(--error500-x1idp37q)}",2e3),A(".marginRight-x1db2dqx{margin-right:8px}",4e3),A(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),A(".fontWeight-xo1l8bm{font-weight:400}",3e3),A(".fontSize-x1j61zf2{font-size:16px}",3e3),A(".width-xvue9z{width:500px}",4e3),t.default=function(e){var t,n,r,o=e.accountsSelection,g=b((0,a.useState)("cpns"),2),y=g[0],x=g[1],v=b((0,a.useState)(l.Input.DatePicker.getDateRange("7d")),2),A=v[0],_=v[1],S=(0,d.useAccessControl)().activePlatform,w=[{label:(0,i.language)("By: Campaign"),value:"cpns"}];"google"===S&&(w.unshift({label:(0,i.language)("By: Keyword"),value:"kws"}),w.push({label:(0,i.language)("By: Placement"),value:"placements"})),(0,a.useEffect)(function(){"google"!==S&&"cpns"!==y&&x("cpns")},[S]);var O=(0,s.useQuery)("".concat("google"!==S?"/platform":"","/analytics/top-ivt-change?df_dmin=").concat(A.min.timestamp,"&df_dmax=").concat(A.max.timestamp,"&df_interval=day&
2sort_key=health&sort_order=asc&limit=5&page=1&platform=").concat(S||"google","&category=").concat(y,"&period=").concat(A.rangeName.replace(/d/g,"")).concat(o,"\n"),void 0,"top-ivt-change-".concat(A.rangeName,"-").concat(y,"-").concat(S||"google","-").concat(o)),j=O.data,k=O.isLoading;function E(e){if(null==e)return"0";var t=e.toString().split(".");return t[0]+(t[1]?".".concat(t[1].substring(0,2)):"")}function N(e){var t;if(!e)return{changeInIVT:"0",changeInIVTColour:"success",changeInIVTText:(0,i.language)("DOWN")};var n=E(null!==(t=e.change_in_percentage)&&void 0!==t?t:0),r=n.includes("-")?"success":"error",o=n.includes("-")?(0,i.language)("DOWN"):(0,i.language)("UP");return{changeInIVT:n,changeInIVTColour:r,changeInIVTText:o}}return(0,m.jsxs)("div",h(h({},{className:"containerType-x12h1iku flexShrink-x2lah0s","data-style-src":"IVTChange/index.tsx:16"}),{},{children:[(0,m.jsxs)("div",{className:"flex distribute-space-between mb-4",children:[(0,m.jsx)("div",{className:"flex items-center",children:(0,m.jsx)(l.Text,{preset:"widgetHeading",as:"h1",children:(0,i.language)("Top 5 change in Traffic")})}),(0,m.jsxs)("div",{className:(0,f.classNames)("display-x1c652i3","flex justify-right"),style:{flexShrink:0},children:[(0,m.jsx)(l.Input.Select,{options:w,onChange:function(e){var t=e.value;return x(t)},value:w.filter(function(e){return e.value===y}),className:"mr-3",style:{width:170}}),(0,m.jsx)(l.Input.DatePicker,{value:[A.min.date,A.max.date],ranges:["yesterday","7d","1d","30d"],onRangeChange:function(e){return _(e)},showCalenderIcon:!1,displayRangeText:!1})]})]}),(0,m.jsx)("div",h(h({},{className:"width-xlljupm width-x1ln3v53 float-x10bid9n paddingRight-x1qcqsp4 width-x27fdbf float-xlmqacv marginRight-x15kwys2","data-style-src":"IVTChange/index.tsx:20"}),{},{children:(0,m.jsxs)("div",{className:(0,f.classNames)("display-x1nsg621","display-xa1ay9q"),children:[(0,m.jsx)(l.Input.DatePicker,{value:[A.min.date,A.max.date],ranges:["yesterday","7d","1d","30d"],onRangeChange:function(e){return _(e)},className:"mb-3",showCalenderIcon:!1,displayRangeText:!1}),(0,m.jsx)(l.Input.Select,{options:w,onChange:function(e){var t=e.value;return x(t)},value:w.filter(function(e){return e.value===y})})]})})),(0,m.jsx)(l.Divider,{className:"mb-4"}),"cpns"===y&&(0,m.jsx)(p.Table,{rows:null==j||null===(t=j.result)||void 0===t?void 0:t.data,isLoading:k,leftPinnedColumns:1,children:function(e){var t,n,r,o;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("th",{children:(0,i.language)("Campaign")}),(0,m.jsx)("th",{"data-tooltip":(0,i.language)("Shows whether Lunio is actively protecting or only monitoring this account or campaign."),children:(0,i.language)("Protection")}),(0,m.jsx)("th",{"data-tooltip":(0,i.language)("The percentage of total clicks Lunio has classified as invalid."),children:(0,i.language)("SIVT Clicks %")}),(0,m.jsx)("th",{"data-align":"right","data-tooltip":(0,i.language)("The change in percentage between the selected date period and the equivalent previous period."),children:(0,i.language)("vs previous :time",{time:"".concat(A.rangeName)})})]})}),(0,m.jsxs)("tbody",{children:[(0,m.jsxs)("td",{children:[(0,m.jsx)(d.AccessControl,{isNotAllWorkspaces:!0,children:(0,m.jsxs)(l.ToolTip,{heading:null==e?void 0:e.name,content:null==e?void 0:e.adword_descriptive_name,style:{width:"fit-content"},children:[(null==e?void 0:e.campaign_id)&&(0,m.jsx)(u.Link,{to:"".concat("meta"===S?"/meta":"","/campaign/").concat(null==e?void 0:e.campaign_id,"?name=").concat(null==e?void 0:e.name,"&status=").concat(null==e?void 0:e.protection_status),style:{textDecoration:"none",width:"100%"},children:(0,m.jsx)("div",{className:"flex",style:{wordBreak:"break-word"},children:(0,c.restrictLengthOfString)(null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"",50)})}),!(null!=e&&e.campaign_id)&&(0,m.jsx)("span",{style:{wordBreak:"break-word"},children:(0,c.restrictLengthOfString)(null!==(n=null==e?void 0:e.name)&&void 0!==n?n:"",50)})]})}),(0,m.jsx)(d.AccessControl,{isAllWorkspaces:!0,children:(0,m.jsx)(l.ToolTip,{heading:null==e?void 0:e.name,content:null==e?void 0:e.adword_descriptive_name,children:(0,m.jsx)("span",{style:{wordBreak:"break-word"},children:(0,c.restrictLengthOfString)(null!==(r=null==e?void 0:e.name)&&void 0!==r?r:"",50)})})})]}),(0,m.jsx)("td",{children:(0,m.jsx)(l.ProtectionStatus,{status:null==e?void 0:e.protection_status})}),(0,m.jsxs)("td",{children:[E(null!==(o=null==e?void 0:e.current_ivt_percentage)&&void 0!==o?o:0),"%"]}),(0,m.jsxs)("td",{"data-align":"right",style:{display:"flex",justifyContent:"flex-end",alignItems:"center"},children:[1!==(null==e?void 0:e.is_new_campaign)&&(0,m.jsx)(l.Badge,{colourName:N(e).changeInIVTColour,iconLeft:"arrow-".concat(N(e).changeInIVTText.toLowerCase()),children:"".concat(N(e).changeInIVTText," ").concat(N(e).changeInIVT.replace("-",""))}),1===(null==e?void 0:e.is_new_campaign)&&(0,m.jsx)(l.Badge,{colourName:"default",iconLeft:["far","star"],children:(0,i.language)("New")})]})]})]})}}),"placements"===y&&(0,m.jsx)(p.Table,{rows:null==j||null===(n=j.result)||void 0===n?void 0:n.data,isLoading:k,leftPinnedColumns:1,children:function(e){var t,n;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("th",{children:(0,i.language)("Placement")}),(0,m.jsx)("th",{"data-tooltip":(0,i.language)("The percentage of total clicks Lunio has classified as invali
2d."),children:(0,i.language)("SIVT Clicks %")}),(0,m.jsx)("th",{"data-align":"right","data-tooltip":(0,i.language)("The change in percentage between the selected date period and the equivalent previous period."),children:(0,i.language)("vs previous :time",{time:"".concat(A.rangeName)})})]})}),(0,m.jsxs)("tbody",{children:[(0,m.jsx)("td",{children:(0,m.jsx)(l.ToolTip,{heading:null==e?void 0:e.placement,children:(0,m.jsx)("span",{style:{wordBreak:"break-word"},children:(0,c.restrictLengthOfString)(null!==(t=null==e?void 0:e.placement)&&void 0!==t?t:"",50)})})}),(0,m.jsxs)("td",{children:[E(null!==(n=null==e?void 0:e.current_ivt_percentage)&&void 0!==n?n:0),"%"]}),(0,m.jsxs)("td",{"data-align":"right",style:{display:"flex",justifyContent:"flex-end",alignItems:"center"},children:[1!==(null==e?void 0:e.is_new_campaign)&&(0,m.jsx)(l.Badge,{colourName:N(e).changeInIVTColour,iconLeft:"arrow-".concat(N(e).changeInIVTText.toLowerCase()),children:"".concat(N(e).changeInIVTText," ").concat(N(e).changeInIVT.replace("-",""))}),1===(null==e?void 0:e.is_new_campaign)&&(0,m.jsx)(l.Badge,{colourName:"default",iconLeft:["far","star"],children:(0,i.language)("New")})]})]})]})}}),"kws"===y&&(0,m.jsx)(p.Table,{rows:null==j||null===(r=j.result)||void 0===r?void 0:r.data,isLoading:k,leftPinnedColumns:1,children:function(e){var t,n;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("th",{children:(0,i.language)("Keyword")}),(0,m.jsx)("th",{"data-tooltip":(0,i.language)("The percentage of total clicks Lunio has classified as invalid."),children:(0,i.language)("SIVT Clicks %")}),(0,m.jsx)("th",{"data-align":"right","data-tooltip":(0,i.language)("The change in percentage between the selected date period and the equivalent previous period."),children:(0,i.language)("vs previous :time",{time:"".concat(A.rangeName)})})]})}),(0,m.jsxs)("tbody",{children:[(0,m.jsx)("td",{children:(0,m.jsx)(l.ToolTip,{heading:null==e?void 0:e.keyword,children:(0,m.jsx)("span",{style:{wordBreak:"break-word"},children:(0,c.restrictLengthOfString)(null!==(t=null==e?void 0:e.keyword)&&void 0!==t?t:"",50)})})}),(0,m.jsxs)("td",{children:[E(null!==(n=null==e?void 0:e.current_ivt_percentage)&&void 0!==n?n:0),"%"]}),(0,m.jsxs)("td",{"data-align":"right",style:{display:"flex",justifyContent:"flex-end",alignItems:"center"},children:[1!==(null==e?void 0:e.is_new_campaign)&&(0,m.jsx)(l.Badge,{colourName:N(e).changeInIVTColour,iconLeft:"arrow-".concat(N(e).changeInIVTText.toLowerCase()),children:"".concat(N(e).changeInIVTText," ").concat(N(e).changeInIVT.replace("-",""))}),1===(null==e?void 0:e.is_new_campaign)&&(0,m.jsx)(l.Badge,{colourName:"default",iconLeft:["far","star"],children:(0,i.language)("New")})]})]})]})}}),(0,m.jsx)(d.AccessControl,{isNotAllWorkspaces:!0,AND:"cpns"===y,children:(0,m.jsx)("div",{className:"mt-4 flex justify-right",children:(0,m.jsx)(u.Link,{to:"".concat("meta"===S?"/meta":"","/analytics/campaigns"),children:(0,i.language)("Show All")})})})]}))}},13273:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(3448),a=n(31085);const i=function(){var e,t=(0,r.R7)({sortKey:"health",sortOrder:"asc"}),n=t.filters,i=t.handlePagination,l=t.setFilters,s=t.handleSort,c="";return null!==(e=n["accounts.selection"])&&void 0!==e&&e.length&&(c+="&df_customer_ids=".concat(JSON.stringify(n["accounts.selection"]))),(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:n,onFilterChange:l,dynamicQuery:c,handlePagination:i,handleSort:s})})}},13285:(e,t,n)=>{"use strict";e.exports=n.p+"ae2b0e7d7d14a7106954.svg"},13373:(e,t,n)=>{"use strict";t.A=void 0;var r=l(n(25751)),o=n(73657),a=l(n(1781)),i=n(31085);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=r.default;function p(e){var t,n,r=e.children,l=void 0===r?null:r,s=e.linkTo,c=void 0===s?"":s,d=e.maxLength,f="string"==typeof l?l:"",p=(n=void 0===d?500:d,(t=f).length>n?"".concat(t.slice(0,n),"..."):t);return(0,i.jsx)(a.default,{content:f,showIcon:!1,anchorAs:"div",fullWidth:!0,children:(0,i.jsx)("div",u(u({},{className:"width-xh8yej3","data-style-src":"TextLength/index.tsx:7"}),{},{children:(0,i.jsx)("div",u(u({},{className:"whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv width-xh8yej3","data-style-src":"TextLength/index.tsx:10"}),{},{children:c?(0,i.jsx)(o.Link,u(u({to:c},{className:"whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv width-xh8yej3","data-style-src":"TextLength/index.tsx:10"}),{},{children:l})):p}))}))})}f(".width-xh8yej3{width:100%}",4e3),f(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),f(".overflow-xb3r6kr{overflow:hidden}",2e3),f(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),p.displayName="TextLength",t.A=p},13418:(e,t,n)=>{"use strict";n.d(t,{A:()=>g}),n(14041);var r=n(72686),o=n(30021),a=n(55436),i=n(28426),l=n(27805),s=n(88133),c=n(80111),u=n(89748),d=n(93033),f=n(92523),p=n(31085);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const g=function(){var e,t,n,g,y,h,x=(y=(0,c.A)(),h=1,function(e){if(Array.isArray(e))return e}(y)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(y,h)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(y,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],b=null==x||null===(e=x.dataFilterDates)||void 0===e||null===(e=e.min)||void 0===e?void 0:e.timestamp,v=null==x||null===(t=x.dataFilterDates)||void 0===t||null===(t=t.max)||void 0===t?void 0:t.timestamp,A=(0,s.Ay)("/spend-tracking?df_dmin=".concat(b,"&df_dmax=").concat(v)),_=A.data,S=A.isLoading;return(0,p.jsx)(d.A,{impersonatingOnly:!0,children:(0,p.jsxs)(i.A.Page,{type:"overview",children:[(0,p.jsx)(l.default,{title:(0,u.A)("Spend Tracker"),text:(0,u.A)("View the total ad spend protected by Lunio across all your connected Google accounts."),contentRight:(0,p.jsx)(f.default,{})}),(0,p.jsx)(r.default,{children:(0,p.jsx)(a.default,{loading:S,preset:"dark",size:"xs",children:(0,p.jsx)(o.default,{preset:"pageHeading",children:void 0!==(null==_||null===(n=_.result)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.cost)?new Intl.NumberFormat("en-US",{style:"currency",currency:(null==_||null===(g=_.result)||void 0===g||null===(g=g.data)||void 0===g?void 0:g.currency_code)||"USD"}).format(_.result.data.cost):""})})}),(0,p.jsx)(o.default,{preset:"formSectionSubTitle",className:"mt-4",children:"This figure approximately represents the Lunio protected Google spend across all Google accounts within this Lunio account."})]})})}},13497:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(62720),s=n(55618),c=n(30021),u=n(89748),d=n(99226),f=n(66773),p=n(24284),m=n(83223),g=n(39665),y=n(9511),h=n(88133),x=n(96182),b=n(77730),v=n(80111),A=n(31085);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?S(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t,n){return(t=function(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function N(e){var t,n,o,a=e.filters,_=void 0===a?{}:a,S=e.exportType,O=void 0===S?"Keyword":S,N=j((0,b.A)(),1)[0],I=j((0,x.A)(),1)[0],P=j((0,v.A)(),1)[0],T=j((0,r.useState)(!1),2),C=T[0],R=T[1],M=j((0,r.useState)(function(){return"mplat_campaign"===O||"google_campaign"===O?["campaign"]:"google_keyword"===O||"mplat_keyword"===O?["keyword"]:"google_match_types"===O||"mplat_match_types"===O?["match_type"]:["campaign"]}),2),L=M[0],D=M[1],B=(0,d.A)().activePlatformTitle,U=(null==I||null===(t=I.selectedPlatform)||void 0===t?void 0:t.platform_name)||"",F=j((0,r.useState)(""),2),G=F[0],W=F[1],z=j((0,r.useState)({label:"Daily",value:"daily"}),2),V=z[0],q=z[1],K=j((0,r.useState)([]),2),H=K[0],Y=K[1],$=(0,h.gC)("/analytics/stats/export","POST"),Z=(0,g.a)(new Date(1e3*P.dataFilterDates.min.localTimestamp)),X=(0,g.a)(new Date(1e3*P.dataFilterDates.max.localTimestamp));function J(e){switch(e){case"google_keyword":return(0,u.A)("Keyword");case"google_placement":return(0,u.A)("Placement");case"google_campaign":case"mplat_campaign":return(0,u.A)("Campaign");case"google_match_types":return(0,u.A)("Match Types");case"google_network":return(0,u.A)("Network");case"google_country":case"mplat_country":return(0,u.A)("Location");case"google_state":return(0,u.A)("State");case"google_day":case"mplat_day":return(0,u.A)("Day");case"mplat_protected":return(0,u.A)("Websites Protected");case"mplat_device":return(0,u.A)("Device");case"affiliate_partner":return(0,u.A)("Partner")}return""}function Q(){return"google_campaign"===O||"google_keyword"===O||"mplat_keyword"===O||"google_match_types"===O||"mplat_match_types"===O}function ee(e){var t,n=L.indexOf(e);if(-1===n)L.push(e);else{if(1===L.length)return;L.splice(n,1)}D(function(e){if(Array.isArray(e))return E(e)}(t=L)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||k(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(i.default,{id:"export-button-open",onClick:function(){return R(!0)},iconRight:["far","download"],"data-testid":"export-button",children:(0,u.A)("Export")}),(0,A.jsxs)(s.default,{open:C,onClose:function(){return R(!1)},children:[(0,A.jsx)(c.default,{preset:"formHeading",as:"h4",children:(0,u.A)("Ad Stats Export Summary")}
2),(0,A.jsx)(c.default,{preset:"formSubHeading",className:"mb-8",children:(0,u.A)("Export Ad stats in CSV files")}),(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Workspace"),noSpacer:!0,children:null==N||null===(n=N.selectedWorkspace)||void 0===n?void 0:n.name}),(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Platform"),noSpacer:!0,children:B}),(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Ad Stats"),noSpacer:!0,children:J(O)}),(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Date Range"),noSpacer:!0,children:(0,A.jsxs)(c.default,{children:[(0,m.GP)(Z,"LLL d, yyyy")," - ",(0,m.GP)(X,"LLL d, yyyy")]})}),(J(O)===(0,u.A)("Day")||Q())&&(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Group By"),noSpacer:!0,children:(0,A.jsx)(l.default.Select,{"aria-label":(0,u.A)("Group By"),className:"width-50 mt-3",id:"segment-select",options:[{label:(0,u.A)("Daily"),value:"daily"},{label:(0,u.A)("Weekly"),value:"weekly"},{label:(0,u.A)("Monthly"),value:"monthly"}],onChange:function(e){return q({label:e.label,value:e.value})},dataTestId:"industry-select-dropdown",value:{label:V.label,value:V.value}})}),(0,A.jsx)(c.default,{preset:"formSectionTitle",className:"mt-5",children:(0,u.A)("Accounts")}),(0,A.jsx)(c.default,{children:(0,y.A)(null===(o=_["accounts.selection"])||void 0===o?void 0:o.length)}),(_["search.contains"]||_["partner.contains"])&&"google"===U&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(c.default,{preset:"formSectionTitle",className:"mt-5",children:(0,u.A)("Search Contains")}),(0,A.jsxs)(c.default,{children:['"',_["search.contains"],_["partner.contains"],'"']})]}),Q()&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(c.default,{preset:"formSectionTitle",className:"mt-5",children:(0,u.A)("Type")}),(0,A.jsxs)("div",{children:[(0,A.jsx)(l.default.Checkbox,{className:"mt-2",label:(0,u.A)("Campaign"),"aria-label":(0,u.A)("Select camapign type"),value:L.includes("campaign"),onChange:function(){return ee("campaign")}}),(0,A.jsx)(l.default.Checkbox,{className:"mt-2",label:(0,u.A)("Keyword"),"aria-label":(0,u.A)("Select keyword type"),value:L.includes("keyword"),onChange:function(){return ee("keyword")}}),(0,A.jsx)(l.default.Checkbox,{className:"mt-2",label:(0,u.A)("Match Type"),"aria-label":(0,u.A)("Select match type"),value:L.includes("match_type"),onChange:function(){return ee("match_type")}})]})]}),(0,A.jsx)(s.default.Section,{heading:(0,u.A)("Email"),children:(0,A.jsx)(l.default,{placeholder:(0,u.A)("Enter email address"),name:"recipient_email",type:"email",onFormValue:function(e){W(e.value)},id:"export-email-input",value:G,errors:H,showErrors:!0})}),(0,A.jsxs)("div",{className:"flex justify-end",children:[(0,A.jsx)(i.default,{className:"mr-3",onClick:function(){Y([]),R(!1)},preset:"outline","data-testid":"export-cancel-button",children:(0,u.A)("Cancel")}),(0,A.jsx)(i.default,{onClick:function(){var e,t,n,r=(0,f.A)("isEmail",G,(0,u.A)("Enter an email address"));if(r)Y(r);else{Y([]);var o=_["accounts.selection"]||[];$.mutate(w(w(w(w({recipient_email:G},function(e){switch(e){case"google_keyword":return{ad_stat_type:"keyword"};case"google_placement":return{ad_stat_type:"placement"};case"google_campaign":case"mplat_campaign":return{ad_stat_type:"campaign"};case"google_match_types":return{ad_stat_type:"match_type"};case"google_network":return{ad_stat_type:"network"};case"google_country":case"mplat_country":return{ad_stat_type:"location_country"};case"google_state":return{ad_stat_type:"location_state"};case"google_day":case"mplat_day":return{ad_stat_type:V.value};case"mplat_protected":return{ad_stat_type:"protected_domain"};case"mplat_device":return{ad_stat_type:"device"};case"affiliate_partner":return{ad_stat_type:"affiliate_partner"}}return{}}(O)),{},{stat_page:"click_stats",platform:null==I||null===(e=I.selectedPlatform)||void 0===e?void 0:e.platform_name}
2,!0===Q()?{include:L}:{}),!0===Q()?{period:V.value}:{}),{},{filters:w(w(w(w({df_dmin:(null==P||null===(t=P.dataFilterDates)||void 0===t||null===(t=t.min)||void 0===t?void 0:t.timestamp)||0,df_dmax:(null==P||null===(n=P.dataFilterDates)||void 0===n||null===(n=n.max)||void 0===n?void 0:n.timestamp)||0},o.length>0&&{df_customer_ids:o}),_["search.contains"]?{search:_["search.contains"]}:{}),_["partner.contains"]?{partner_contains:_["partner.contains"]}:{}),"google_state"===O?{filter_type:"country",filter:"United States of America"}:{})}),{onSuccess:function(){(0,p.A)((0,u.A)("Your export is being prepared and will be with you shortly"),"success")},onError:function(){(0,p.A)((0,u.A)("Export failed to process"),"error")}}),Y([]),R(!1)}},"data-testid":"export-export-button",children:(0,u.A)("Export")})]})]})]})}N.propTypes={filters:a().object,exportType:a().string};const I=N},13571:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=g(n(25751)),a=n(14041),i=g(n(43144)),l=n(45647),s=n(60156),c=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),u=n(99018),d=g(n(48037)),f=g(n(62823)),p=g(n(88709)),m=n(31085);function g(e){return e&&e.__esModule?e:{default:e}}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A=o.default;A(".position-xixxii4{position:fixed}",3e3),A(".backgroundColor-x1ba4oyk{background-color:var(--black900-x1vm5mv1)}",3e3),A(".opacity-x1ks1olk{opacity:.7}",3e3),A(".bottom-x1ey2m1c{bottom:0}",4e3),A(".left-xu96u03{left:0}",4e3),A(".right-x3m8u43{right:0}",4e3),A(".top-x13vifvy{top:0}",4e3),A(".zIndex-xxbqhct{z-index:9998}",3e3),A(".whiteSpace-xeaf4i8{white-space:normal}",3e3),A(".display-x78zum5{display:flex}",3e3),A(".justifyContent-xl56j7k{justify-content:center}",3e3),A(".alignItems-x6s0dn4{align-items:center}",3e3),A(".flexDirection-xdt5ytf{flex-direction:column}",3e3),A(".minHeight-xz65tgg{min-height:200px}",4e3),A(".width-xh8yej3{width:100%}",4e3),A(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3),A(".borderRadius-xur7f20{border-radius:8px}",2e3),A(".zIndex-x1q2oy4v{z-index:9999}",3e3),A(".padding-x194x5j8{padding:24px!important}",1e3),A(".overflow-x1rea2x4{overflow:visible}",2e3),A(".display-x1s85apg{display:none}",3e3),A(".maxWidth-x1w1gysb{max-width:442px}",4e3),A(".maxWidth-xrlsmeg{max-width:600px}",4e3),A(".maxWidth-x1dtb55y{max-width:900px}",4e3),A(".backgroundColor-x2hcil6{background-color:var(--white-x3n8fk9)!important}",3e3);var _={background:{position:"position-xixxii4",backgroundColor:"backgroundColor-x1ba4oyk",opacity:"opacity-x1ks1olk",bottom:"bottom-x1ey2m1c",left:"left-xu96u03",right:"right-x3m8u43",insetInlineStart:null,insetInlineEnd:null,top:"top-x13vifvy",zIndex:"zIndex-xxbqhct",$$css:"Modal/index.tsx:19"},modalContainer:{whiteSpace:"whiteSpace-xeaf4i8",display:"display-x78zum5",justifyContent:"justifyContent-xl56j7k",alignItems:"alignItems-x6s0dn4",flexDirection:"flexDirection-xdt5ytf",position:"position-xixxii4",top:"top-x13vifvy",left:"left-xu96u03",insetInlineStart:null,insetInlineEnd:null,minHeight:"minHeight-xz65tgg",width:"width-xh8yej3",backgroundColor:"backgroundColor-x6fdw8f",borderRadius:"borderRadius-xur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,zIndex:"zIndex-x1q2oy4v",padding:"padding-x194x5j8",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,overflow:"overflow-x1rea2x4",overflowX:null,overflowY:null,$$css:"Modal/index.tsx:29"},hidden:{display:"display-x1s85apg",$$css:"Modal/index.tsx:46"},sm:{maxWidth:"maxWidth-x1w1gysb",$$css:"Modal/index.tsx:49"},md:{maxWidth:"maxWidth-xrlsmeg",$$css:"Modal/index.tsx:52"},lg:{maxWidth:"maxWidth-x1dtb55y",$$css:"Modal/index.tsx:55"}
2,whiteBackground:{backgroundColor:"backgroundColor-x2hcil6",$$css:"Modal/index.tsx:58"}};function S(e){var t,n,r=e.children,o=e.open,d=e.onClose,f=void 0===d?function(){}:d,p=e.size,g=void 0===p?"sm":p,y=e.disableClickOutside,h=void 0!==y&&y,b=e.whiteBackground,A=void 0!==b&&b,S=e.className,w=void 0===S?"":S,O=(t=(0,l.useSyncState)(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),j=O[0],k=O[1],E=o?"":"hidden";function N(e){"Escape"===e.key&&f()}(0,a.useEffect)(function(){k(x(x({},j),{},{dimmerIsActive:o}))},[o]),(0,a.useEffect)(function(){return document.addEventListener("keydown",N),function(){return document.removeEventListener("keydown",N)}},[f]);var I,P=(0,m.jsxs)("div",x(x({className:(0,u.classNames)(c.props(!o&&_.hidden).className,w)},c.props(!o&&_.hidden)),{},{"data-testid":"modal-container","aria-hidden":"hidden"===E,id:"modal-container-".concat(o?"open":"closed"),children:[(0,m.jsx)("div",x(x({},c.props(_.modalContainer,_[g],A&&_.whiteBackground)),{},{style:{top:"50%",left:"50%",height:"auto",transform:"translate(-50% ,-50%)",padding:"24px"},"data-testid":"modal-foreground",children:(0,m.jsx)("div",{children:(I=r,a.Children.map(I,function(e){if(!(0,a.isValidElement)(e))return e;var t=e.type;return"Modal.Header"===(null==t?void 0:t.displayName)?(0,a.cloneElement)(e,{onClose:f}):e}))})})),(0,m.jsx)("div",x({onKeyDown:function(e){return N(e)},"aria-label":(0,s.language)("Close modal"),tabIndex:0,role:"button",onClick:function(){return h||f()},"data-testid":"modal-background"},null==c?void 0:c.props(o&&_.background)))]}));if(null==document.body)throw new Error("document.body is not available");return i.default.createPortal(P,document.body)}S.Header=d.default,S.Actions=f.default,S.Content=p.default,t.default=S},13667:(e,t,n)=>{"use strict";e.exports=n.p+"9d0c9e76c45d3fcdd7ce.svg"},13686:(e,t,n)=>{"use strict";e.exports=n.p+"7230ba1dc329817c3627.svg"},13734:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(14041),i=n(45365),l=n(60156),s=n(98536),c=n(45647),u=n(31085);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=o.default;h(".display-x78zum5{display:flex}",3e3),h(".justifyContent-x1qughib{justify-content:space-between}",3e3),h(".alignItems-x6s0dn4{align-items:center}",3e3),h(".marginBottom-x1yztbdb{margin-bottom:16px}",4e3),h(".display-xrvj5dj{display:grid}",3e3),h(".gridTemplateColumns-x1sipb5g{grid-template-columns:repeat(4,minmax(0,1fr))}",3e3),h(".gap-xou54vl{gap:16px}",2e3),h(".alignItems-x1qjc9v5{align-items:stretch}",3e3),h("@media (max-width: 1279px){.gridTemplateColumns-xxvfdhd.gridTemplateColumns-xxvfdhd{grid-template-columns:repeat(3,minmax(0,1fr))}}",3200),h("@media (max-width: 959px){.gridTemplateColumns-x3ugiz7.gridTemplateColumns-x3ugiz7{grid-template-columns:repeat(2,minmax(0,1fr))}}",3200),t.A=function(e){var t,n,r,o,d,f,m,y,h,x,b,v,A,_,S,w=e.className,O=e.allPlatforms,j=void 0!==O&&O,k=e.accounts,E=e.campaignType,N=e.hideCost,I=void 0!==N&&N,P=e.optOutWorkspaceContext,T=void 0!==P&&P,C=g((0,a.useState)(i.Input.DatePicker.getDateRange("7d")),2),R=C[0],M=C[1],L=g((0,c.usePlatformsState)(),1)[0],D=null==L||null===(t=L.selectedPlatform)||void 0===t?void 0:t.platform_name,B=(null!==(n=null==k?void 0:k.length)&&void 0!==n?n:0)>0&&"google"===D?k:null,U=(0,s.useApi)({url:"/analytics/from_sources",noPagination:!0,includeInterval:!0,optOutWorkspaceContext:T,allPlatforms:j,accountFilter:B,customQueryString:"&recalc=1",customFilters:E?{campaignType:{queryKey:"campaign_type",value:E}}:void 0,startDate:R.min.date,endDate:R.max.date}),F=U.response,G=U.isLoading,W=U.setDates,z=U.setCustomFilters,V=U.setAccountsFilter;(0,a.useEffect)(function(){z({campaignType:{queryKey:"campaign_type",value:E}})},[E]),(0,a.useEffect)(function(){V(null!=B?B:[])},[k,D]);var q=null!==(r=null==F||null===(o=F.result)||void 0===o?void 0:o.data)&&void 0!==r?r:{},K=(null!==(d=q.legitimate_source)&&void 0!==d?d:0)+(null!==(f=q.suspicious_source)&&void 0!==f?f:0)+(null!==(m=q.fraudulent_source)&&void 0!==m?m:0);return(0,u.jsxs)(i.Card,{className:w,children:[(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4 marginBottom-x1yztbdb","data-style-src":"ClickSourceBreakdownV3/index.tsx:41"}),{},{children:[(0,u.jsx)(i.Text,{preset:"widgetHeading",as:"h2",children:(0,l.language)("Active Sources")}),(0,u.jsx)(i.Input.DatePicker,{value:[R.min.date,R.max.date],onRangeChange:function(e){M(e),W({startDate:e.min.date,endDate:e.max.date})},showCalenderIcon:!1,displayRangeText:!1,selectedOption:R.rangeName,ranges:["1d","yesterday","7d","30d","90d","prevMonth","customMonth","customRange"],maxRangeDays:31})]})),(0,u.jsx)(i.LunioLoader,{loading:G,preset:"dark",size:"responsive",height:220,children:(0,u.jsxs)("div",p(p({},{className:"display-xrvj5dj gridTemplateColumns-x1sipb5g gap-xou54vl alignItems-x1qjc9v5 gridTemplateColumns-xxvfdhd gridTemplateColumns-x3ugiz7","data-style-src":"ClickSourceBreakdownV3/index.tsx:47"}),{},{children:[(0,u.jsx)(i.SourceCard,{type:"legitimate",title:(0,l.language)("Legitimate Sources"),clickCount:null!==(y=q.legitimate_source)&&void 0!==y?y:0,totalSources:null!==(h=q.legitimate_source_ips)&&void 0!==h?h:0,total:K}),(0,u.jsx)(i.SourceCard,{type:"suspicious",title:(0,l.language)("Suspicious Sources"),clickCount:null!==(x=q.suspicious_source)&&void 0!==x?x:0,totalSources:null!==(b=q.suspicious_source_ips)&&void 0!==b?b:0,total:K}),(0,u.jsx)(i.SourceCard,{type:"invalid",title:(0,l.language)("Invalid Sources"),clickCount:null!==(v=q.fraudulent_source)&&void 0!==v?v:0,totalSources:null!==(A=q.fraudulent_source_ips)&&void 0!==A?A:0,total:K}),!I&&(0,u.jsx)(i.SourceCard,{type:"invalid-sources-cost",title:(0,l.language)("Cost of Invalid Sources"),cost:null!==(_=q.invalid_source_costs)&&void 0!==_?_:0,currencySymbol:null!==(S=q.currency_symbol)&&void 0!==S?S:"",extraInfoLabel:(0,l.language)("Calculation Info"),extraInfoTooltipContent:(0,l.language)("Cost is calculated based on the CPC of clicks from invalid sources within the selected date range."),fullWidthMedium:!0})]}))})]})}}
2,13738:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=m(n(14041)),l=n(45365),s=(m(n(76969)),n(60156)),c=n(19838),u=n(34016),d=n(18141),f=n(86957),p=n(31085);function m(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _=a.default;_(".display-x78zum5{display:flex}",3e3),_(".justifyContent-x1qughib{justify-content:space-between}",3e3),_(".alignItems-x6s0dn4{align-items:center}",3e3),t.A=function(){var e,t,n=b((0,i.useState)(l.Input.DatePicker.getDateRange("30d")),2),r=n[0],o=n[1],a=(0,u.useQuery)("/affiliates/daily-ivt?df_dmin=".concat(Math.floor((0,s.localToUtcDateOffset)(r.min.date).valueOf()/1e3),"&df_dmax=").concat(Math.floor((0,s.localToUtcDateOffset)(r.max.date).valueOf()/1e3),"&limit=1000&platform=affiliate"),void 0,"daily-ivt-affiliates-".concat(r.min.date,"-").concat(r.max.date)),m=a.data,g=a.isLoading,y=(null==m||null===(e=m.result)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.map(function(e){return h({date:e.day_timestamp},e.invalid_labels_percent)}).reverse())||[],x=y.some(function(e){return Object.entries(e).some(function(e){var t=b(e,2),n=t[0],r=t[1];return"date"!==n&&0!==r})}),_=[];if(x){var S=y.map(function(e){return Object.keys(e).filter(function(e){return"date"!==e}).length}),w=Math.max.apply(Math,function(e){if(Array.isArray(e))return A(e)}(t=S)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());_=(0,d.getIvtClassificationColours)(f.colourValues,w)}return(0,p.jsxs)(l.Card,{className:"mb-32",children:[(0,p.jsxs)("div",h(h({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4","data-style-src":"DailyIVT/index.jsx:14"}),{},{children:[(0,p.jsx)(l.Text,{preset:"widgetHeading",as:"h2",children:(0,s.language)("Daily IVT")}),(0,p.jsx)("div",{className:"flex distribute-space-between",children:(0,p.jsx)(l.Input.DatePicker,{value:[r.min.date,r.max.date],onRangeChange:function(e){return o(e)},selectedOption:r.rangeName,showCalenderIcon:!1,displayRangeText:!1,ranges:["yesterday","7d","1d","30d","prevMonth"],maxRangeDays:90})})]})),(0,p.jsx)(l.Divider,{className:"mt-4"}),(0,p.jsxs)(l.LunioLoader,{loading:g,preset:"dark",size:"responsive",height:100,children:[!g&&!x&&(0,p.jsx)(l.NoData,{hasNoData:!0,style:{height:"300px",marginTop:16}}),!g&&x&&(0,p.jsx)(c.Bar.Stacked,{data:y,colors:_,affiliateLebalTypes:"analytics"})]})]})}},13780:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),n(14041);var r=n(51836),o=n(28426),a=n(22050),i=n(93033),l=n(99226),s=n(12251),c=n(44442),u=n(59764),d=n(31085);const f=function(){var e=(0,r.g)().cpn,t=(0,l.A)(),n=t.allowedFeatureFlags,f=t.lunioStatus;return(0,d.jsxs)(o.A.Page,{type:"main",children:[(0,d.jsx)("div",{className:"mt-8 mb-4",children:(0,d.jsx)(s.A,{cpn:e})}),(0,d.jsx)("div",{className:"mt-4 mb-4",children:(0,d.jsx)(c.A,{cpn:e})}),(0,d.jsx)(i.A,{isNotTrialStatus:!0,OR:"TRIAL"===f&&n(["TRIAL_CLICK_LOG_ANALYTICS"]),orIsImpersonating:!0,children:(0,d.jsx)("div",{className:"mt-8",children:(0,d.jsx)(a.A,{delta:!1,cpn:e})})}),(0,d.jsx)("div",{className:"mt-8",children:(0,d.jsx)(u.A,{})})]})}},13967:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(25751)),o=n(14041),a=n(60156),i=s(n(79135)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=r.default;function g(e){var t=e.filters,n=e.setFilters,r={equals:(0,a.language)("is equal to"),contains:(0,a.language)("contains"),startsWith:(0,a.language)("starts with"),greaterThan:(0,a.language)("is greater than"),lessThan:(0,a.language)("is less than")};function s(){var e={checkbox:[],radio:[],text:[]};return t.forEach(function(t){t.options.forEach(function(n){n.isActive&&void 0!==n.value&&null!==n.value&&""!==n.value&&("checkbox"===n.type&&!0===n.value&&e.checkbox.push(f({parentConfig:f({},t)},n)),"radio"===n.type&&e.radio.push(f({parentConfig:f({},t)},n)),"text"===n.type&&e.text.push(f({parentConfig:f({},t)},n)))})}),e}var d,p,m=(d=(0,o.useState)(s()),p=2,function(e){if(Array.isArray(e))return e}(d)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(d,p)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(d,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=m[0],y=m[1];function h(e){var r=t.map(function(t){var n;if(t.name===(null===(n=e.parentConfig)||void 0===n?void 0:n.name)){var r=t.options.map(function(t){return t.name===e.name?f(f({},t),{},{isActive:!1,value:"checkbox"!==t.type&&"radio"!==t.type&&""}):t});return f(f({},t),{},{options:r})}return t});n(r)}function x(e){var t=c(e.value);return"boolean"===t?e.value?(0,a.language)("True"):(0,a.language)("False"):"string"===t?e.value:String(e.value)}return(0,o.useEffect)(function(){y(s())},[t]),(0,l.jsxs)("div",f(f({},{className:"display-x78zum5 position-x1n2onr6 marginRight-x1db2dqx maxWidth-xrlsmeg flexWrap-x1a02dak gap-x167g77z zIndex-x1vjfegm","data-style-src":"FilterSelectedItems/index.tsx:9"}),{},{children:[g.checkbox.map(function(e){var t,n,r,o,s,c,u,d;return(0,l.jsxs)("button",{id:"filters-activeFilter-button-checkbox-".concat(null!==(t=null===(n=e.parentConfig)||void 0===n?void 0:n.name)&&void 0!==t?t:""),type:"button",className:"paddingLeft-xnm25rq paddingRight-xyfqnmn fontSize-xif65rj fontWeight-xk50ysn height-xn3w4p2 zIndex-x1vjfegm width-xezivpi borderRadius-xur7f20 backgroundColor-x18oya0d display-x78zum5 alignItems-x6s0dn4 color-x5tu7p5 boxSizing-x9f619 border-x180m19u","data-testid":"activeFilter-button-checkbox-".concat(null!==(r=null===(o=e.parentConfig)||void 0===o?void 0:o.name)&&void 0!==r?r:""),children:[(0,l.jsxs)("span",f(f({},{className:"marginRight-xl010v5 color-x18k1rwp","data-style-src":"FilterSelectedItems/index.tsx:43"}),{},{children:[null===(c=e.parentConfig)||void 0===c?void 0:c.label," ","-"," "]})),(0,l.jsx)("span",f(f({},{className:"marginRight-xl010v5 color-x18k1rwp","data-style-src":"FilterSelectedItems/index.tsx:43"}),{},{children:(0,a.language)(e.label)})),(0,l.jsx)(i.default,{name:"close",onClick:function(){return h(e)},className:"marginLeft-xet2fuk fontSize-x1j61zf2 color-xbdn2ka cursor-x1277o0a color-x1mda8oq","data-testid":"clearFilter-icon-".concat(null!==(u=null===(d=e.parentConfig)||void 0===d?void 0:d.name)&&void 0!==u?u:"",".").concat(e.name)}
2)]},null===(s=e.parentConfig)||void 0===s?void 0:s.name)}),g.radio.map(function(e){var t,n,o,a;return(0,l.jsxs)("button",{id:"filters-activeFilter-button-close-".concat(e.name),type:"button",className:"paddingLeft-xnm25rq paddingRight-xyfqnmn fontSize-xif65rj fontWeight-xk50ysn height-xn3w4p2 zIndex-x1vjfegm width-xezivpi borderRadius-xur7f20 backgroundColor-x18oya0d display-x78zum5 alignItems-x6s0dn4 color-x5tu7p5 boxSizing-x9f619 border-x180m19u","data-testid":"activeFilter-button-".concat(e.name),children:[(0,l.jsx)("span",f(f({},{className:"marginRight-xl010v5 color-x18k1rwp","data-style-src":"FilterSelectedItems/index.tsx:43"}),{},{children:null===(t=e.parentConfig)||void 0===t?void 0:t.label})),(0,l.jsx)("span",f(f({},{className:"marginRight-xl010v5 color-xbdn2ka","data-style-src":"FilterSelectedItems/index.tsx:47"}),{},{children:null!==(n=r[e.name])&&void 0!==n?n:""})),(0,l.jsx)("span",f(f({},{className:"color-x18k1rwp","data-style-src":"FilterSelectedItems/index.tsx:51"}),{},{children:x(e)})),(0,l.jsx)(i.default,{name:"close",onClick:function(){return h(e)},className:"marginLeft-xet2fuk fontSize-x1j61zf2 color-xbdn2ka cursor-x1277o0a color-x1mda8oq","data-testid":"clearFilter-icon-".concat(null!==(o=null===(a=e.parentConfig)||void 0===a?void 0:a.name)&&void 0!==o?o:"",".").concat(e.name)})]},e.name)}),g.text.map(function(e){var t,n,o,a;return(0,l.jsxs)("button",{id:"filters-activeFilter-button-close-".concat(e.name),type:"button",className:"paddingLeft-xnm25rq paddingRight-xyfqnmn fontSize-xif65rj fontWeight-xk50ysn height-xn3w4p2 zIndex-x1vjfegm width-xezivpi borderRadius-xur7f20 backgroundColor-x18oya0d display-x78zum5 alignItems-x6s0dn4 color-x5tu7p5 boxSizing-x9f619 border-x180m19u","data-testid":"activeFilter-button-".concat(e.name),children:[(0,l.jsx)("span",f(f({},{className:"marginRight-xl010v5 color-x18k1rwp","data-style-src":"FilterSelectedItems/index.tsx:43"}),{},{children:null===(t=e.parentConfig)||void 0===t?void 0:t.label})),(0,l.jsx)("span",f(f({},{className:"marginRight-xl010v5 color-xbdn2ka","data-style-src":"FilterSelectedItems/index.tsx:47"}),{},{children:null!==(n=r[e.name])&&void 0!==n?n:""})),(0,l.jsx)("span",f(f({},{className:"color-x18k1rwp","data-style-src":"FilterSelectedItems/index.tsx:51"}),{},{children:x(e)})),(0,l.jsx)(i.default,{name:"close",onClick:function(){return h(e)},className:"marginLeft-xet2fuk fontSize-x1j61zf2 color-xbdn2ka cursor-x1277o0a color-x1mda8oq","data-testid":"clearFilter-icon-".concat(null!==(o=null===(a=e.parentConfig)||void 0===a?void 0:a.name)&&void 0!==o?o:"",".").concat(e.name)})]},e.name)})]}))}m(".display-x78zum5{display:flex}",3e3),m(".position-x1n2onr6{position:relative}",3e3),m(".marginRight-x1db2dqx{margin-right:8px}",4e3),m(".maxWidth-xrlsmeg{max-width:600px}",4e3),m(".flexWrap-x1a02dak{flex-wrap:wrap}",3e3),m(".gap-x167g77z{gap:8px}",2e3),m(".zIndex-x1vjfegm{z-index:1}",3e3),m(".paddingLeft-xnm25rq{padding-left:16px}",4e3),m(".paddingRight-xyfqnmn{padding-right:16px}",4e3),m(".fontSize-xif65rj{font-size:14px}",3e3),m(".fontWeight-xk50ysn{font-weight:500}",3e3),m(".height-xn3w4p2{height:44px}",4e3),m(".width-xezivpi{width:max-content}",4e3),m(".borderRadius-xur7f20{border-radius:8px}",2e3),m(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),m(".alignItems-x6s0dn4{align-items:center}",3e3),m(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),m(".boxSizing-x9f619{box-sizing:border-box}",3e3),m(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),m(".marginLeft-xet2fuk{margin-left:8px}",4e3),m(".fontSize-x1j61zf2{font-size:16px}",3e3),m(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),m(".cursor-x1277o0a:hover{cursor:pointer}",3130),m(".color-x1mda8oq:hover{color:var(--gray900-xevft2h)}",3130),m(".marginRight-xl010v5{margin-right:4px}",4e3),m(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),g.displayName="FiltersSelectedItems",t.default=g},13996:(e,t,n)=>{"use strict";e.exports=n.p+"71f3b9764d71a5648455.svg"},14233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.text;return(0,i.jsx)("div",b(b({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-x167g77z fontSize-xfifm61 lineHeight-x1dbl2gt color-x1jsblnb","data-style-src":"ChatMarkdown/index.tsx:11"}),{},{children:(0,i.jsx)(o.default,{remarkPlugins:[a.default],components:S,children:t})}))};var r=l(n(25751)),o=l(n(52549)),a=l(n(9927)),i=n(31085);
2function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var c=["node"],u=["node"],d=["node"],f=["node"],p=["node"],m=["node","children"],g=["node"],y=["node"],h=["node"];function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _=r.default;_(".display-x78zum5{display:flex}",3e3),_(".flexDirection-xdt5ytf{flex-direction:column}",3e3),_(".gap-x167g77z{gap:8px}",2e3),_(".fontSize-xfifm61{font-size:12px}",3e3),_(".lineHeight-x1dbl2gt{line-height:1.6}",3e3),_(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),_(".margin-x1ghz6dp{margin:0}",1e3),_(".paddingLeft-xnm25rq{padding-left:16px}",4e3),_(".listStyleType-xtaz4m5{list-style-type:disc}",3e3),_(".listStyleType-x3yw8vx{list-style-type:decimal}",3e3),_(".paddingLeft-xj9uezu{padding-left:2px}",4e3),_(".fontWeight-x1s688f{font-weight:600}",3e3),_(".color-x183cm2b{color:var(--primary400-x6nrv7m)}",3e3),_(".textDecoration-x1bvjpef{text-decoration:underline}",2e3),_(".textUnderlineOffset-xrys4gj{text-underline-offset:2px}",3e3),_(".borderRadius-x12oqio5{border-radius:4px}",2e3),_(".backgroundColor-x12etjex{background-color:rgba(0,0,0,.06)}",3e3),_(".paddingTop-x1nn3v0j{padding-top:2px}",4e3),_(".paddingBottom-x1120s5i{padding-bottom:2px}",4e3),_(".paddingLeft-x6wrskw{padding-left:4px}",4e3),_(".paddingRight-xmzs88n{padding-right:4px}",4e3),_(".fontFamily-x1ey7xld{font-family:monospace}",3e3),_(".overflowX-xw2csxc{overflow-x:auto}",4e3),_(".borderRadius-x1kogg8i{border-radius:6px}",2e3),_(".padding-xe8ttls{padding:8px}",1e3),_(".borderLeftWidth-x19sr0n1{border-left-width:2px}",4e3),_(".borderLeftStyle-x19ypqd9{border-left-style:solid}",4e3),_(".borderLeftColor-x16ovj2n{border-left-color:var(--gray300-x1xk3734)}",4e3),_(".paddingLeft-x163pfp{padding-left:8px}",4e3),_(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3);var S={p:function(e){e.node;var t=A(e,c);return(0,i.jsx)("p",b(b({},{className:"margin-x1ghz6dp","data-style-src":"ChatMarkdown/index.tsx:19"}),t))},ul:function(e){e.node;var t=A(e,u);return(0,i.jsx)("ul",b(b({},{className:"margin-x1ghz6dp paddingLeft-xnm25rq listStyleType-xtaz4m5","data-style-src":"ChatMarkdown/index.tsx:22"}),t))},ol:function(e){e.node;var t=A(e,d);return(0,i.jsx)("ol",b(b({},{className:"margin-x1ghz6dp paddingLeft-xnm25rq listStyleType-x3yw8vx","data-style-src":"ChatMarkdown/index.tsx:27"}),t))},li:function(e){e.node;var t=A(e,f);return(0,i.jsx)("li",b(b({},{className:"paddingLeft-xj9uezu","data-style-src":"ChatMarkdown/index.tsx:32"}),t))},strong:function(e){e.node;var t=A(e,p);return(0,i.jsx)("strong",b(b({},{className:"fontWeight-x1s688f color-x1jsblnb","data-style-src":"ChatMarkdown/index.tsx:35"}),t))},a:function(e){e.node;var t=e.children,n=A(e,m);return(0,i.jsx)("a",b(b(b({},{className:"color-x183cm2b textDecoration-x1bvjpef textUnderlineOffset-xrys4gj","data-style-src":"ChatMarkdown/index.tsx:39"}),n),{},{children:t}))},code:function(e){e.node;var t=A(e,g);return(0,i.jsx)("code",b(b({},{className:"borderRadius-x12oqio5 backgroundColor-x12etjex paddingTop-x1nn3v0j paddingBottom-x1120s5i paddingLeft-x6wrskw paddingRight-xmzs88n fontFamily-x1ey7xld","data-style-src":"ChatMarkdown/index.tsx:44"}),t))},pre:function(e){e.node;var t=A(e,y);return(0,i.jsx)("pre",b(b({},{className:"overflowX-xw2csxc borderRadius-x1kogg8i backgroundColor-x12etjex padding-xe8ttls","data-style-src":"ChatMarkdown/index.tsx:53"}),t))},blockquote:function(e){e.node;var t=A(e,h);return(0,i.jsx)("blockquote",b(b({},{className:"borderLeftWidth-x19sr0n1 borderLeftStyle-x19ypqd9 borderLeftColor-x16ovj2n paddingLeft-x163pfp color-xbdn2ka margin-x1ghz6dp","data-style-src":"ChatMarkdown/index.tsx:59"}),t))}}},14363:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=f(n(25751)),a=n(14041),i=n(99018),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),s=f(n(79135)),c=f(n(9486)),u=f(n(40803)),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b=o.default;b(".position-x1n2onr6{position:relative}",3e3),b(".width-xh8yej3{width:100%}",4e3),b(".display-x1lliihq{display:block}",3e3),b(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),b(".backgroundColor-x13ihzrn:disabled{background-color:var(--gray250-x1kpk87u)}",3092),b(".backgroundColor-x6x3n68:disabled:hover{background-color:var(--gray250-x1kpk87u)}",3040),b(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),b(".color-x1atpp90:disabled{color:var(--black200-xao0axe)}",3092),b(".color-xe4m138::placeholder{color:var(--black200-xao0axe)}",8e3),b(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),b(".border-x1r62wwx:focus{border:1px solid var(--oldBrand600-x1t41vhw)}",1150),b(".outline-x1a2a7pz{outline:none}",2e3),b(".outline-x27j11:focus{outline:4px solid var(--secondary200-xut29wu)}",2150),b(".boxShadow-x1qzktc2{box-shadow:0 1px 2px 0 #0A0D120D}",3e3),b(".borderRadius-x12oqio5{border-radius:4px}",2e3),b(".fontWeight-xk50ysn{font-weight:500}",3e3),b(".fontWeight-x1rr6dy7:disabled{font-weight:400}",3092),b(".fontWeight-x1livwk2::placeholder{font-weight:400}",8e3),b(".border-x1vbwh7a{border:1px solid var(--error500-x1idp37q)!important}",1e3),b(".outline-xzd0ubt{outline:none!important}",2e3),b(".height-x10w6t97{height:32px}",4e3),b(".padding-x153ncpu{padding:8px 12px}",1e3),b(".lineHeight-x1xxsxie{line-height:14px}",3e3),b(".fontSize-xif65rj{font-size:14px}",3e3),b(".height-xn3w4p2{height:44px}",4e3),b(".padding-x1iwkndl{padding:12px 16px}",1e3),b(".lineHeight-x1d3mw78{line-height:16px}",3e3),b(".fontSize-x1j61zf2{font-size:16px}",3e3),b(".height-xng8ra{height:60px}",4e3),b(".padding-xmbxx08{padding:18px 20px}",1e3),b(".lineHeight-x1fc57z9{line-height:20px}",3e3),b(".fontSize-xosj86m{font-size:18px}",3e3),b(".paddingLeft-x1tudf5h{padding-left:32px}",4e3),b(".paddingLeft-xg3sno2{padding-left:44px}",4e3),b(".paddingLeft-x1jcchly{padding-left:52px}",4e3),b(".position-x10l6tqk{position:absolute}",3e3),b(".display-x78zum5{display:flex}",3e3),b(".alignItems-x6s0dn4{align-items:center}",3e3),b(".color-xh3519o{color:var(--black500-x161om0q)}
2",3e3),b(".top-x13vifvy{top:0}",4e3),b(".bottom-x1ey2m1c{bottom:0}",4e3),b(".zIndex-xhtitgo{z-index:2}",3e3),b(".left-x12lbrt0{left:10px}",4e3),b(".left-x1qpfodn{left:16px}",4e3),b(".left-x1u0e7iy{left:18px}",4e3),b(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),b(".fontWeight-xo1l8bm{font-weight:400}",3e3),b(".marginTop-x1xmf6yo{margin-top:8px}",4e3),b(".color-xkv09jl{color:var(--black200-xao0axe)!important}",3e3),b(".top-x1d1n87m{top:calc(100% + 8px)}",4e3),b(".borderRadius-xur7f20{border-radius:8px}",2e3),b(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),b(".padding-xfawy5m{padding:4px}",1e3),b(".zIndex-xfo81ep{z-index:1000}",3e3),b(".overflowY-x1odjw0f{overflow-y:auto}",4e3),b(".boxShadow-x1qq5eqi{box-shadow:0 8px 24px 0 rgba(10,13,18,.08)}",3e3),b(".padding-x6yrr3s{padding:10px 12px}",1e3),b(".cursor-x1ypdohk{cursor:pointer}",3e3),b(".marginBottom-x12nagc{margin-bottom:4px}",4e3),b(".backgroundColor-x1is1enf:hover{background-color:var(--gray100-x1llswo5)}",3130),b(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3);var v={option:{padding:"padding-x6yrr3s",cursor:"cursor-x1ypdohk",borderRadius:"borderRadius-x12oqio5",color:"color-x1jsblnb",fontSize:"fontSize-x1j61zf2",marginBottom:"marginBottom-x12nagc",backgroundColor:"backgroundColor-x18oya0d backgroundColor-x1is1enf",$$css:"SearchSelect/index.tsx:137"},selectedOption:{backgroundColor:"backgroundColor-xq18l50",$$css:"SearchSelect/index.tsx:150"}};function A(e){var t,n=e.label,r=void 0===n?"":n,o=e.name,f=void 0===o?"":o,p=e.id,m=void 0===p?"":p,y=e.value,x=void 0===y?"":y,b=e.selected,A=void 0===b?null:b,_=e.results,S=void 0===_?[]:_,w=e.placeholder,O=void 0===w?"":w,j=e.hintText,k=void 0===j?"":j,E=e.disabled,N=void 0!==E&&E,I=e.required,P=void 0!==I&&I,T=e.errors,C=void 0===T?[]:T,R=e.showErrors,M=void 0!==R&&R,L=e.hideErrorStyles,D=void 0!==L&&L,B=e.size,U=void 0===B?"md":B,F=e.menuHeight,G=void 0===F?320:F,W=e.debounceMs,z=void 0===W?300:W,V=e.maxResults,q=void 0===V?10:V,K=e.iconLeft,H=void 0===K?"search":K,Y=e.isLoading,$=void 0!==Y&&Y,Z=e.noResultsText,X=void 0===Z?"No results found":Z,J=e.dataTestId,Q=void 0===J?"search-select":J,ee=e.onSearch,te=void 0===ee?function(){}:ee,ne=e.onInputChange,re=void 0===ne?function(){}:ne,oe=e.onSelect,ae=void 0===oe?function(){}:oe,ie=e.onFormValue,le=void 0===ie?function(){}:ie,se=h((0,a.useState)(null!==(t=null==A?void 0:A.label)&&void 0!==t?t:""),2),ce=se[0],ue=se[1],de=h((0,a.useState)(!1),2),fe=de[0],pe=de[1],me=(0,a.useRef)(null),ge=(0,a.useRef)(!1);function ye(e){ue(e.label),pe(!1),ge.current=!1,ae(e),le({name:f,value:e.value})}(0,a.useEffect)(function(){null!=A&&A.label?ue(A.label):A||""!==x||ue("")},[A,x]),(0,a.useEffect)(function(){if(ge.current){var e=setTimeout(function(){te(ce)},z);return function(){return clearTimeout(e)}}},[ce,z,te]),(0,a.useEffect)(function(){function e(e){me.current&&!me.current.contains(e.target)&&pe(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[]);var he=S.slice(0,q),xe=(0,i.classNames)("display-x1lliihq backgroundColor-x18oya0d backgroundColor-x13ihzrn backgroundColor-x6x3n68 color-x1jsblnb color-x1atpp90 color-xe4m138 border-xct47cs border-x1r62wwx outline-x1a2a7pz outline-x27j11 boxShadow-x1qzktc2 borderRadius-x12oqio5 width-xh8yej3 fontWeight-xk50ysn fontWeight-x1rr6dy7 fontWeight-x1livwk2","sm"===U&&"height-x10w6t97 padding-x153ncpu lineHeight-x1xxsxie fontSize-xif65rj","md"===U&&"height-xn3w4p2 padding-x1iwkndl lineHeight-x1d3mw78 fontSize-x1j61zf2","lg"===U&&"height-xng8ra padding-xmbxx08 lineHeight-x1fc57z9 fontSize-xosj86m",H&&"sm"===U&&"paddingLeft-x1tudf5h",H&&"md"===U&&"paddingLeft-xg3sno2",H&&"lg"===U&&"paddingLeft-x1jcchly",C.length>0&&M&&!D&&"border-x1vbwh7a outline-xzd0ubt"),be=(0,i.classNames)("position-x10l6tqk display-x78zum5 alignItems-x6s0dn4 color-xh3519o top-x13vifvy bottom-x1ey2m1c zIndex-xhtitgo","sm"===U&&"left-x12lbrt0 fontSize-xif65rj","md"===U&&"left-x1qpfodn fontSize-x1j61zf2","lg"===U&&"left-x1u0e7iy fontSize-xosj86m");return(0,d.jsxs)("div",g(g({ref:me},{className:"position-x1n2onr6 width-xh8yej3","data-style-src":"SearchSelect/index.tsx:10"}),{},{children:[r&&(0,d.jsx)(c.default,{htmlFor:m||f,className:"marginBottom-x1e56ztr",size:U,disabled:N,children:r}),(0,d.jsxs)("div",g(g({},{className:"position-x1n2onr6","data-style-src":"SearchSelect/index.tsx:15"}),{},{children:[H&&(0,d.jsx)("div",{className:be,"data-testid":"".concat(Q,"-icon-left"),children:(0,d.jsx)(s.default,{name:H})}),(0,d.jsx)("input",{id:m||f,name:f,type:"text",role:"combobox",value:ce,className:xe,onChange:function(e){var t,n=null!==(t=e.target.value)&&void 0!==t?t:"";ge.current=!0,ue(n),pe(!0),re({name:f,value:n})},onFocus:function(){ce&&pe(!0)},onBlur:function(){A||(ue(""),le({name:f,value:""}))},disabled:N,placeholder:O,required:P,autoComplete:"off","data-testid":Q,"aria-autocomplete":"list","aria-expanded":fe,"aria-controls":"".concat(m||f,"-results")})]})),fe&&!N&&ce&&(0,d.jsxs)("ul",g(g({id:"".concat(m||f,"-results")},{className:"top-x1d1n87m backgroundColor-x18oya0d borderRadius-xur7f20 border-x180m19u padding-xfawy5m zIndex-xfo81ep position-x10l6tqk width-xh8yej3 overflowY-x1odjw0f boxShadow-x1qq5eqi","data-style-src":"SearchSelect/index.tsx:124"}),{},{style:{maxHeight:G},role:"listbox","aria-label":"".concat(r||f," search results"),children:[$&&(0,d.jsx)("li",g(g({},{className:"padding-x6yrr3s color-xh3519o fontSize-xif65rj","data-style-src":"SearchSelect/index.tsx:154"}),{},{children:"Searching..."})),!$&&he.map(function(e){var t=(null==A?void 0:A.value)===e.value;return(0,d.jsx)("li",g(g({},l.props(v.option,t?v.selectedOption:null)),{},{role:"option","aria-selected":t,tabIndex:-1,"data-testid":"".concat(Q,"-option-").concat(e.value),onMouseDown:function(){return ye(e)},onKeyDown:function(t){return"Enter"===t.key&&ye(e)},children:e.label}),e.value)}),!$&&ce&&0===he.length&&(0,d.jsx)("li",g(g({},{className:"padding-x6yrr3s color-xh3519o fontSize-xif65rj","data-style-src":"SearchSelect/index.tsx:154"}),{},{children:X}))]})),k&&(C.length<1||!M)&&(0,d.jsx)("div",{className:(0,i.classNames)("fontSize-xif65rj fontWeight-xo1l8bm lineHeight-x1fc57z9 marginTop-x1xmf6yo color-x1jsblnb",N&&"color-xkv09jl"),children:k}
2),C.length>0&&M&&(0,d.jsx)(u.default,{errors:C,dataTestId:"".concat(Q,"-error")})]}))}A.displayName="Input.SearchSelect",t.default=A},14485:(e,t,n)=>{"use strict";e.exports=n.p+"681472b139e9e881efae.svg"},14934:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(86957),s=n(31085);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=a.default;p(".marginTop-x11b91bh{margin-top:var(--8-x13c0zs8)}",4e3),p(".marginBottom-xw3mk49{margin-bottom:var(--8-x13c0zs8)}",4e3),p(".marginBottom-xjvafs4{margin-bottom:var(--6-x7nl04)}",4e3),t.default=function(e){var t=e.children,n=void 0===t?null:t,r=e.heading,o=void 0===r?"":r,a=e.subtitle,c=void 0===a?"":a,u=e.noSpacer,f=void 0!==u&&u;return(0,s.jsxs)("section",d(d({},{className:"marginTop-x11b91bh marginBottom-xw3mk49","data-style-src":"Section/index.tsx:6"}),{},{children:[o&&(0,s.jsx)("h5",d(d({},i.props(l.textStyles.formSectionTitle)),{},{children:o})),c&&(0,s.jsx)("p",d(d({},i.props(l.textStyles.formSectionSubTitle)),{},{children:c})),!f&&(0,s.jsx)("div",d({},{className:"marginBottom-xjvafs4","data-style-src":"Section/index.tsx:10"})),n]}))}},15065:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(99018);const o=function(e){return e<=46?r.defaultTheme.colors.green[300]:e<=63?r.defaultTheme.colors.yellow[300]:e<=84?r.defaultTheme.colors.orange[300]:e<=100?r.defaultTheme.colors.red[300]:r.defaultTheme.colors.grey[300]}},15226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r,o,l=e.adData,s=function(e){if(Array.isArray(e))return e}(o=(0,a.useState)(!1))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,a,i=[],l=!0,s=!1;try{for(o=(t=t.call(e)).next,!2;!(l=(n=o.call(t)).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return i}}(o)||function(e){if(e){if("string"==typeof e)return d(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,2):void 0}}
2(o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=s[0],f=s[1],p=null!==(t=null===(n=l.sitelinks)||void 0===n?void 0:n.expanded)&&void 0!==t?t:[];return(0,a.useEffect)(function(){f(!1)},[l.favicon]),(0,i.jsxs)("div",c(c({},{className:"fontFamily-xmy0v6l maxWidth-xic84rp padding-xc7ga6q display-x78zum5 flexDirection-xdt5ytf gap-x17d4w8g","data-style-src":"Ad/index.tsx:6"}),{},{children:[(0,i.jsxs)("div",c(c({className:"flex"},{className:"display-x78zum5 flexDirection-x1q0g3np alignItems-x6s0dn4 gap-x167g77z","data-style-src":"Ad/index.tsx:64"}),{},{children:[(0,i.jsx)("div",c(c({},{className:"width-x23j0i4 height-xd7y6wv borderRadius-x16rqkct backgroundColor-xcjqq7w borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x8nafk6 flexShrink-x2lah0s marginRight-xl010v5 overflow-xb3r6kr display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k","data-style-src":"Ad/index.tsx:70"}),{},{children:l.favicon&&!u&&(0,i.jsx)("img",c({src:l.favicon,alt:"","aria-hidden":"true",onError:function(){return f(!0)}}
2,{className:"width-x1kky2od height-xlup9mm objectFit-x19kjcj4 border-x1gs6z28","data-style-src":"Ad/index.tsx:85"}))})),(0,i.jsxs)("div",c(c({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-xxhr3t","data-style-src":"Ad/index.tsx:14"}),{},{children:[(0,i.jsx)("span",c(c({},{className:"fontFamily-xmy0v6l color-x1n69cu3 fontSize-xif65rj lineHeight-x1fc57z9 fontWeight-xk50ysn","data-style-src":"Ad/index.tsx:19"}),{},{children:l.source})),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("span",c(c({},{className:"fontFamily-xmy0v6l color-x1n69cu3 fontSize-xfifm61 lineHeight-xd4r4e8 fontWeight-xk50ysn","data-style-src":"Ad/index.tsx:26"}),{},{children:null!==(r=l.displayed_link)&&void 0!==r?r:l.domain})),(0,i.jsx)("span",c(c({},{className:"display-x78zum5 height-xmix8c7 lineHeight-xd4r4e8 width-x1xp8n7a overflow-xb3r6kr marginLeft-x1iog12x","data-style-src":"Ad/index.tsx:56"}),{},{children:(0,i.jsx)("svg",{focusable:"false","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})})}))]})]}))]})),(0,i.jsx)("a",c(c({href:l.link,target:"_blank",rel:"noopener noreferrer"},{className:"fontFamily-xmy0v6l fontSize-xwsyq91 fontWeight-xo1l8bm lineHeight-xeqr9p9 color-x15j8vgk textDecoration-x1hl2dhg color-x1jildi textDecoration-xt0b8zv","data-style-src":"Ad/index.tsx:33"}),{},{children:l.title})),(0,i.jsx)("p",c(c({},{className:"fontSize-xif65rj color-x1n69cu3 fontWeight-xk50ysn lineHeight-x19v9tvf margin-x1ghz6dp overflow-xb3r6kr maxHeight-xwvgpe2","data-style-src":"Ad/index.tsx:47"}),{},{children:l.snippet})),p.length>0&&(0,i.jsx)("div",c(c({},{className:"paddingTop-x109j2v6 paddingLeft-xnm25rq maxWidth-x7ijh3a","data-style-src":"Ad/index.tsx:91"}),{},{children:p.map(function(e){return(0,i.jsxs)("div",c(c({},{className:"paddingBottom-xwib8y2 borderBottomWidth-x1p5c90x borderBottomStyle-x1l1angv borderBottomColor-x1vgs763","data-style-src":"Ad/index.tsx:96"}),{},{children:[(0,i.jsx)("div",c({},{className:"marginBottom-xod5an3 borderBottomWidth-xso031l borderBottomStyle-x1q0q8m5 borderBottomColor-x1f9zcv0","data-style-src":"Ad/index.tsx:104"})),(0,i.jsx)("a",c(c({href:e.link,target:"_blank",rel:"noopener noreferrer"},{className:"fontFamily-xmy0v6l fontSize-xosj86m fontWeight-xk50ysn color-x15j8vgk textDecoration-x1hl2dhg display-x1lliihq lineHeight-x1fc57z9 textDecoration-xt0b8zv","data-style-src":"Ad/index.tsx:110"}),{},{children:e.title})),(0,i.jsx)("div",c(c({},{className:"fontFamily-xmy0v6l fontSize-xif65rj fontWeight-x1twfotg color-x1n69cu3 overflow-xb3r6kr textOverflow-xlyipyv whiteSpace-xuxw1ft lineHeight-xcgk4ki","data-style-src":"Ad/index.tsx:122"}),{},{children:e.snippet}))]}),e.link)})}))]}))};var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(14041),i=n(31085);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var f=o.default;f(".fontFamily-xmy0v6l{font-family:Arial,sans-serif}",3e3),f(".maxWidth-xic84rp{max-width:650px}",4e3),f(".padding-xc7ga6q{padding:12px}",1e3),f(".display-x78zum5{display:flex}",3e3),f(".flexDirection-xdt5ytf{flex-direction:column}",3e3),f(".gap-x17d4w8g{gap:6px}",2e3),f(".gap-xxhr3t{gap:0}",2e3),f(".color-x1n69cu3{color:#111111}",3e3),f(".fontSize-xif65rj{font-size:14px}",3e3),f(".lineHeight-x1fc57z9{line-height:20px}",3e3),f(".fontWeight-xk50ysn{font-weight:500}",3e3),f(".fontSize-xfifm61{font-size:12px}",3e3),f(".lineHeight-xd4r4e8{line-height:18px}",3e3),f(".fontSize-xwsyq91{font-size:20px}",3e3),f(".fontWeight-xo1l8bm{font-weight:400}",3e3),f(".lineHeight-xeqr9p9{line-height:26px}",3e3),f(".color-x15j8vgk{color:var(--googleLinkBlue-xlx5hoo)}",3e3),f(".textDecoration-x1hl2dhg{text-decoration:none}",2e3),f(".color-x1jildi:visited{color:var(--googleLinkBlueVisited-x1wmfq6o)}",3085),f(".textDecoration-xt0b8zv:hover{text-decoration:underline}",2130),f(".lineHeight-x19v9tvf{line-height:22px}",3e3),f(".margin-x1ghz6dp{margin:0}",1e3),f(".overflow-xb3r6kr{overflow:hidden}",2e3),f(".maxHeight-xwvgpe2{max-height:44px}",4e3),f(".height-xmix8c7{height:18px}",4e3),f(".width-x1xp8n7a{width:18px}",4e3),f(".marginLeft-x1iog12x{margin-left:4px}",4e3),f(".flexDirection-x1q0g3np{flex-direction:row}",3e3),f(".alignItems-x6s0dn4{align-items:center}",3e3),f(".gap-x167g77z{gap:8px}",2e3),f(".width-x23j0i4{width:26px}",4e3),f(".height-xd7y6wv{height:26px}",4e3),f(".borderRadius-x16rqkct{border-radius:50%}",2e3),f(".backgroundColor-xcjqq7w{background-color:#f3f5f6}",3e3),f(".borderWidth-xmkeg23{border-width:1px}",2e3),f(".borderStyle-x1y0btm7{border-style:solid}",2e3),f(".borderColor-x8nafk6{border-color:#d2d3d4}",2e3),f(".flexShrink-x2lah0s{flex-shrink:0}",3e3),f(".marginRight-xl010v5{margin-right:4px}",4e3),f(".justifyContent-xl56j7k{justify-content:center}",3e3),f(".width-x1kky2od{width:16px}",4e3),f(".height-xlup9mm{height:16px}",4e3),f(".objectFit-x19kjcj4{object-fit:contain}",3e3),f(".border-x1gs6z28{border:none}",1e3),f(".paddingTop-x109j2v6{padding-top:18px}",4e3),f(".paddingLeft-xnm25rq{padding-left:16px}",4e3),f(".maxWidth-x7ijh3a{max-width:568px}",4e3),f(".paddingBottom-xwib8y2{padding-bottom:8px}",4e3),f(".borderBottomWidth-x1p5c90x:last-child{border-bottom-width:1px}",4054),f(".borderBottomStyle-x1l1angv:last-child{border-bottom-style:solid}",4054),f(".borderBottomColor-x1vgs763:last-child{border-bottom-color:var(--gray300-x1xk3734)}",4054),f(".marginBottom-xod5an3{margin-bottom:12px}",4e3),f(".borderBottomWidth-xso031l{border-bottom-width:1px}",4e3),f(".borderBottomStyle-x1q0q8m5{border-bottom-style:solid}",4e3),f(".borderBottomColor-x1f9zcv0{border-bottom-color:var(--gray300-x1xk3734)}",4e3),f(".fontSize-xosj86m{font-size:18px}",3e3),f(".display-x1lliihq{display:block}",3e3),f(".fontWeight-x1twfotg{font-weight:500!important}",3e3),f(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),f(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),f(".lineHeight-xcgk4ki{line-height:32px}",3e3)},15256:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(60156),i=n(18141),l=n(45365),s=n(31085);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=o.default;p(".display-x1s85apg{display:none}",3e3),p(".position-x10l6tqk{position:absolute}",3e3),p(".width-xlrdbfi{width:370px}",4e3),p(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),p(".boxShadow-x1d485q3{box-shadow:0 2px 4px -2px rgba(34,34,34,.06),0 4px 8px -2px rgba(34,34,34,.1)}",3e3,".boxShadow-x1d485q3{box-shadow:0 2px 4px -2px rgba(34,34,34,.06), 0 4px 8px -2px rgba(34,34,34,.1)}"),p(".zIndex-xa9119d{z-index:50}",3e3),p(".float-x18mqm2i{float:right}",3e3),t.default=function(e){var t,n,r,o=e.data,c=void 0===o?{}:o;return c.name?(0,s.jsxs)(l.Card,d(d({id:"hover"},{className:"display-x1s85apg position-x10l6tqk width-xlrdbfi backgroundColor-x18oya0d boxShadow-x1d485q3 zIndex-xa9119d","data-style-src":"Hover/index.tsx:9"}),{},{children:[(0,s.jsx)(l.Text,{children:(0,s.jsx)("strong",{children:(0,i.format)(null==c?void 0:c.name,"MMM d, yyyy")})}),(0,s.jsxs)(l.Text,{children:[(0,a.language)("Control"),(0,s.jsxs)("span",d(d({},{className:"float-x18mqm2i","data-style-src":"Hover/index.tsx:17"}),{},{children:[null==c||null===(t=c.value2)||void 0===t?void 0:t.toFixed(2),"%"]}))]}),(0,s.jsxs)(l.Text,{children:[(0,a.language)("Exposed"),(0,s.jsxs)("span",d(d({},{className:"float-x18mqm2i","data-style-src":"Hover/index.tsx:17"}),{},{children:[null==c||null===(n=c.value1)||void 0===n?void 0:n.toFixed(2),"%"]}))]}),(0,s.jsxs)(l.Text,{children:[(0,a.language)("% Difference in IVT rate"),(0,s.jsxs)("span",d(d({},{className:"float-x18mqm2i","data-style-src":"Hover/index.tsx:17"}),{},{children:[null==c||null===(r=c.lineValue)||void 0===r?void 0:r.toFixed(2),"%"]}))]})]})):(0,s.jsx)(l.Card,d({id:"hover"},{className:"display-x1s85apg position-x10l6tqk width-xlrdbfi backgroundColor-x18oya0d boxShadow-x1d485q3 zIndex-xa9119d","data-style-src":"Hover/index.tsx:9"}))}},15270:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(99018),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),s=n(31085);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=["as","children","className"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=a.default;m(".fontFamily-xjc5pbd{font-family:Axiforma,sans-serif}",3e3),m(".fontSize-x1j61zf2{font-size:16px}",3e3),m(".color-xzsd2i0{color:var(--black600-x738gfh)}",3e3),m(".fontWeight-xuv8nkb{font-weight:800}",3e3),m(".fontFamily-x1cc2d69{font-family:Inter,sans-serif}",3e3),m(".fontWeight-x1xlr1w8{font-weight:700}",3e3);var g={heading1:{fontFamily:"fontFamily-xjc5pbd",fontSize:"fontSize-x1j61zf2",color:"color-xzsd2i0",fontWeight:"fontWeight-xuv8nkb",$$css:"WidgetHeading/index.tsx:17"},heading2:{fontFamily:"fontFamily-x1cc2d69",fontSize:"fontSize-x1j61zf2",color:"color-xzsd2i0",fontWeight:"fontWeight-x1xlr1w8",$$css:"WidgetHeading/index.tsx:23"},heading3:{fontFamily:"fontFamily-x1cc2d69",fontSize:"fontSize-x1j61zf2",color:"color-xzsd2i0",fontWeight:"fontWeight-x1xlr1w8",$$css:"WidgetHeading/index.tsx:29"}};function y(e){var t=e.as,n=e.children,r=void 0===n?null:n,o=e.className,a=void 0===o?"":o,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u),d=function(e){return"heading1"===e?"h3":"div"}(t),p=t?l.props(g[t]).className:"",m=(0,i.classNames)(p,a);return(0,s.jsx)(d,f(f({className:m},c),{},{children:r}))}y.displayName="WidgetHeading",t.A=y},15627:(e,t,n)=>{"use strict";n.d(t,{A:()=>h}),n(14041);var r=n(73657),o=n(51836),a=n(44949),i=n(89748),l=n(96182),s=n(78806),c=n(44925),u=n(6616),d=n(98536),f=n(36827),p=n(43321),m=n(31085);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const h=function(){var e,t,n,y,h=g((0,r.useSearchParams)(),1)[0],x=g((0,l.A)(),1)[0],b=h.get("dsp"),v=h.get("ip"),A=(0,o.zy)().pathname,_=[{label:(0,i.A)("Keyword"),name:"keyword",type:"radio",queryKey:"keyword",queryTranslator:"textSearch",accessControl:{platforms:["google"]},options:[{label:(0,i.A)("Contains"),name:"contains",type:"text"}]},{label:(0,i.A)("Campaign Name"),name:"campaignName",type:"radio",queryKey:"campaign_name",queryTranslator:"textSearch",accessControl:{platforms:["google"]},options:[{label:(0,i.A)("Contains"),name:"contains",type:"text"}]},{label:(0,i.A)("Campaign Name"),name:"campaignNameMplat",type:"radio",queryKey:"utm_campaign",queryTranslator:"textSearch",accessControl:{platforms:["mplat"]},options:[{label:(0,i.A)("Contains"),name:"contains",type:"text"}]},{label:(0,i.A)("Campaign ID"),name:"campaignId",type:"radio",queryKey:"campaign_id",queryTranslator:"textSearch",accessControl:{platforms:["google"]},options:[{label:(0,i.A)("Contains"),name:"contains",type:"text"}]},{label:(0,i.A)("Device"),name:"device",type:"checkbox",queryKey:"device",queryTranslator:"arrayOfNames",options:[{label:(0,i.A)("Desktop"),shortLabel:(0,i.A)("Desktop"),t
2ype:"checkbox",name:"c",value:!1},{label:(0,i.A)("Mobile"),shortLabel:(0,i.A)("Mobile"),type:"checkbox",name:"m",value:!1},{label:(0,i.A)("Tablet"),shortLabel:(0,i.A)("Tablet"),type:"checkbox",name:"t",value:!1}]},{label:(0,i.A)("Country"),name:"country",type:"radio",queryKey:"country",queryTranslator:"textSearch",accessControl:{platforms:["google"]},options:[{label:(0,i.A)("Contains"),name:"contains",type:"text"}]},{label:(0,i.A)("Country"),name:"countryMplat",type:"radio",queryKey:"ip_country",queryTranslator:"textSearch",accessControl:{platforms:["mplat"]},options:[{label:(0,i.A)("Contains"),name:"contains",type:"text"}]}],S=(0,d.useApi)({url:"/analytics/fraud-stats/ip",responseDataKey:"data",filters:_,startDate:(0,c.o)((0,u.j)(new Date,{days:31})),endDate:(0,s.D)(new Date),includeInterval:!0,isGlobalAccountFilter:!0,sortKey:"created_at",sortOrder:"asc",customQueryString:v?"&ip=".concat(v):""}),w=[{name:(0,i.A)("Log"),to:"/audit-trail".concat(v?"?ip=".concat(v):"").concat(b?"&dsp=".concat(b):"")}];return"google"===(null==x||null===(e=x.selectedPlatform)||void 0===e?void 0:e.platform_name)&&w.push({name:(0,i.A)("Map"),to:"/audit-trail-map".concat(v?"?ip=".concat(v):"").concat(b?"&dsp=".concat(b):"")}),(0,m.jsxs)("div",{children:[(0,m.jsx)(a.A,{menuItems:w,title:"".concat(null==x||null===(t=x.selectedPlatform)||void 0===t?void 0:t.platform_title," ").concat((0,i.A)("Audit Trail")),clickLogBacklink:!0,size:"sm"}),!A.includes("audit-trail-map")&&(0,m.jsx)(f.A,{ip:v,data:null===(n=S.response)||void 0===n?void 0:n.result,isLoading:S.isLoading,filters:{page:S.request.paginationPage,limit:S.request.paginationLimit,sortKey:S.request.sortKey,sortOrder:S.request.sortOrder},setDates:S.setDates,handlePagination:S.handlePagination,handleSort:S.handleSort,filterConnector:S.filterConnector,accountSelectConnector:S.accountSelectConnector}),A.includes("audit-trail-map")&&(0,m.jsx)(p.A,{ip:v,data:null===(y=S.response)||void 0===y?void 0:y.result,setDates:S.setDates,handlePagination:S.handlePagination,handleSort:S.handleSort})]})}},15742:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(14041),o=n(88133),a=n(97475),i=n(96182),l=n(77730),s=n(80111),c=n(11182),u=n(36549),d=n(51836),f=n(50510),p=n(40566),m=n(9559),g=n(93845),y=n(5219);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},h=(0,a.jE)(),x=(0,d.zy)().state,v=A((0,m.A)(),2),_=v[0],S=v[1],w=A((0,l.A)(),1)[0],O=A((0,c.A)(),1)[0],j=A((0,u.A)(),1)[0],k=A((0,i.A)(),1)[0],E=A((0,s.A)(),1)[0],N={permissionsState:O,platformsState:k,workspacesState:w,syncState:j};function I(e){var t;if(e.platform)return"google"===e.platform&&e.googleUrl?e.googleUrl:"mplat"===e.platform&&e.mplatUrl?e.mplatUrl:"affiliate"===e.platform&&e.affiliateUrl?e.affiliateUrl:"meta"===e.platform&&e.metaUrl?e.metaUrl:e.url;var n=null==k||null===(t=k.selectedPlatform)||void 0===t?void 0:t.platform_name;return"google"===n&&e.googleUrl?e.googleUrl:"affiliate"===n&&e.affiliateUrl?e.affiliateUrl:"meta"===n&&e.metaUrl?e.metaUrl:"google"!==n&&"affiliate"!==n&&"meta"!==n&&e.mplatUrl?e.mplatUrl:e.url}function P(e){return"?sort_key=".concat(e.sortKey||"created_at","&sort_order=").concat(e.sortOrder)}function T(e){var t,n=null==k||null===(t=k.selectedPlatform)||void 0===t?void 0:t.platform_name;return"google"===n&&e.googleSortKey?e.googleSortKey:"affiliate"===n&&e.affiliateSortKey?e.affiliateSortKey:"meta"===n&&e.metaSortKey?e.metaSortKey:"google"!==n&&"affiliate"!==n&&"meta"!==n&&e.mplatSortKey?e.mplatSortKey:e.sortKey?e.sortKey:""}function C(e){return e.noPagination?"":"&page=".concat(e.paginationPage,"&limit=").concat(e.paginationStaticLimit?e.paginationStaticLimit:e.paginationLimit)}function R(e){var t,n;if(e.noDates)return"";var r=e.startDate?(0,g.A)(e.startDate):null==E||null===(t=E.dataFilterDates)||void 0===t||null===(t=t.min)||void 0===t?void 0:t.timestamp,o=e.endDate?(0,g.A)(e.endDate):null==E||null===(n=E.dataFilterDates)||void 0===n||null===(n=n.max)||void 0===n?void 0:n.timestamp;return"&df_dmin=".concat(r,"&df_dmax=").concat(o)}function M(e){return e.includeInterval?"&df_interval=day":""}function L(e){var t;return e.noPlatform?"":e.allPlatforms?"&platform=all":e.platform?"&platform=".concat(e.platform):"&platform=".concat(null==k||null===(t=k.selectedPlatform)||void 0===t?void 0:t.platform_name)}function D(e){if(!e.filters)return"";var t=[];return e.filters.forEach(function(n){var r=[];n.options.forEach(function(t){(0,f.A)(t.accessControl||{},N)&&(0,p.A)(n,e.filters)&&!t.validationErrors&&r.push(t)}),(0,f.A)(n.accessControl||{},N)&&t.push(b(b({},n),{},{options:r}))}),(0,y.A)(t)}function B(e){return e.accountFilter&&0!==e.accountFilter.length?"&df_customer_ids=".concat(JSON.stringify(e.accountFilter)):""}function U(e){return e.campaignFilter&&0!==e.campaignFilter.length?"&df_campaign_ids=".concat(JSON.stringify(e.campaignFilter)):""}function F(e){if(!e.customFilters)return"";var t="";return Object.keys(e.customFilters).forEach(function(n){var r=e.customFilters[n];r.queryKey&&(r.value||0===r.value||1===r.value)&&(t+="&".concat(r.queryKey,"=").concat(r.value))}),t}function G(e){return e.customQueryString?e.customQueryString:""}function W(e){var t;if(e.platform)return"google"===e.platform&&e.googleResponseDataKey?e.googleResponseDataKey:"mplat"===e.platform&&e.mplatResponseDataKey?e.mplatResponseDataKey:"affiliate"===e.platform&&e.affiliateResponseDataKey?e.affiliateResponseDataKey:"meta"===e.platform&&e.metaResponseDataKey?e.metaResponseDataKey:e.responseDataKey;var n=null==k||null===(t=k.selectedPlatform)||void 0===t?void 0:t.platform_name;return"google"===n&&e.googleResponseDataKey?e.googleResponseDataKey:"mplat"===n&&e.mplatResponseDataKey?e.mplatResponseDataKey:"affiliate"===n&&e.affiliateResponseDataKey?e.affiliateResponseDataKey:"meta"===n&&e.metaResponseDataKey?e.metaResponseDataKey:e.responseDataKey}function z(e,t){if(null!=e&&e.dummyData){var n,r,o,a=null!==(n=W(e))&&void 0!==n?n:"data",i=null===(r=e.dummyData)||void 0===r?void 0:r.result;return null!==(o=null==i?void 0:i[a])&&void 0!==o?o:[]}if(!t)return[];var l,s,c,u=W(e),d=t;return null!=d&&d.result?null!==(l=null===(s=d.result)||void 0===s?void 0:s[u])&&void 0!==l?l:[]:void 0!==(null==t?void 0:t[u])&&null!==(c=null==t?void 0:t[u])&&void 0!==c?c:[]}function V(e){if(e.disabled)return"";var t=[I(e),P(e),C(e),R(e),M(e),L(e),D(e),F(e),B(e),U(e),G(e)].filter(
2Boolean).join("");return"?"===t.slice(-1)?t.slice(0,-1):t}function q(e){var t,n={};if(!e||!Array.isArray(e.filters))return n;if(e.filters.forEach(function(e){e&&e.name&&Array.isArray(e.options)&&(n[e.name]||(n[e.name]={}),e.options.forEach(function(t){t&&t.name&&(n[e.name][t.name]={value:t.value})}))}),e.accountFilter&&e.accountFilter.length>0?(n.selectedAccounts=e.accountFilter,n["accounts.selection"]=e.accountFilter):e.isGlobalAccountFilter&&(null==E||null===(t=E.selectedAwAccounts)||void 0===t?void 0:t.length)>0&&(n.selectedAccounts=null==E?void 0:E.selectedAwAccounts,n["accounts.selection"]=null==E?void 0:E.selectedAwAccounts),e.customFilters&&Object.keys(e.customFilters).forEach(function(t){var r=e.customFilters[t];r&&void 0!==r.value&&(n[t]||(n[t]={}),n[t].value=r.value)}),!e.noDates){var r,o,a,i,l,s,c=e.startDate?(0,g.A)(e.startDate):null==E||null===(r=E.dataFilterDates)||void 0===r||null===(r=r.min)||void 0===r?void 0:r.timestamp,u=e.endDate?(0,g.A)(e.endDate):null==E||null===(o=E.dataFilterDates)||void 0===o||null===(o=o.max)||void 0===o?void 0:o.timestamp,d=e.startDate?Math.floor(new Date(e.startDate).getTime()/1e3):null==E||null===(a=E.dataFilterDates)||void 0===a||null===(a=a.min)||void 0===a?void 0:a.timestamp,f=e.endDate?Math.floor(new Date(e.endDate).getTime()/1e3):null==E||null===(i=E.dataFilterDates)||void 0===i||null===(i=i.max)||void 0===i?void 0:i.timestamp;n.dateRange={min:{date:e.startDate||(null==E||null===(l=E.dataFilterDates)||void 0===l||null===(l=l.min)||void 0===l?void 0:l.date),timestamp:c,localTimestamp:d},max:{date:e.endDate||(null==E||null===(s=E.dataFilterDates)||void 0===s||null===(s=s.max)||void 0===s?void 0:s.date),timestamp:u,localTimestamp:f}}}return n}var K,H,Y,$,Z,X,J,Q,ee,te=A((0,r.useState)(((ee={url:(K=n).url||"",googleUrl:K.googleUrl||"",mplatUrl:K.mplatUrl||"",affiliateUrl:K.affiliateUrl||"",metaUrl:K.metaUrl||"",responseDataKey:K.responseDataKey||"data",googleResponseDataKey:K.googleResponseDataKey||null,mplatResponseDataKey:K.mplatResponseDataKey||null,affiliateResponseDataKey:K.affiliateResponseDataKey||null,metaResponseDataKey:K.metaResponseDataKey||null,sortKey:T(K),sortOrder:K.sortOrder||"desc",googleSortKey:K.googleSortKey||null,mplatSortKey:K.mplatSortKey||null,affiliateSortKey:K.affiliateSortKey||null,metaSortKey:K.metaSortKey||null,paginationLimit:K.paginationLimit||_||20,paginationStaticLimit:K.paginationStaticLimit||0,paginationPage:null!==(H=null==x?void 0:x.page)&&void 0!==H?H:1,noPagination:K.noPagination||!1,startDate:K.startDate||null,endDate:K.endDate||null,noDates:K.noDates||!1,platform:K.platform||null,allPlatforms:K.allPlatforms||!1,noPlatform:K.noPlatform||!1,accountFilter:null!==(Y=K.accountFilter)&&void 0!==Y?Y:K.isGlobalAccountFilter&&(null!==($=null==E||null===(Z=E.selectedAwAccounts)||void 0===Z?void 0:Z.length)&&void 0!==$?$:0)>0?E.selectedAwAccounts:null,isGlobalAccountFilter:K.isGlobalAccountFilter||!1,"accounts.selection":null!==(X=K.accountFilter)&&void 0!==X?X:K.isGlobalAccountFilter&&(null!==(J=null==E||null===(Q=E.selectedAwAccounts)||void 0===Q?void 0:Q.length)&&void 0!==J?J:0)>0?E.selectedAwAccounts:null,campaignFilter:K.campaignFilter||null,filters:K.filters||[],customFilters:K.customFilters||{},customQueryString:K.customQueryString||"",includeInterval:K.includeInterval||!1,fullOutgoingQuery:"",disabled:K.disabled||!!K.dummyData,dummyData:K.dummyData||null,optOutWorkspaceContext:K.optOutWorkspaceContext||!1}).fullOutgoingQuery=V(ee),ee)),2),ne=te[0],re=te[1];function oe(e){var t=b(b({},ne),e);t.fullOutgoingQuery=V(t),re(t)}function ae(e){re(b(b({},e),{},{fullOutgoingQuery:V(e)}))}function ie(e,t){t?(oe(b(b({},ne),{},{paginationLimit:t,paginationPage:t!==_?1:e})),S(t)):oe(b(b({},ne),{},{paginationPage:e}))}function le(e){oe(b(b(b({},ne),e),{},{paginationPage:1}))}function se(e){oe(b(b({},ne),{},{filters:e,paginationPage:1}))}function ce(e){var t,n=Array.isArray(e)?e:null!==(t=null==e?void 0:e["accounts.selection"])&&void 0!==t?t:[];oe(b(b({},ne),{},{accountFilter:n,"accounts.selection":n,paginationPage:1}))}var ue=(0,o.Ay)(ne.fullOutgoingQuery,{},ne.fullOutgoingQuery,{enabled:!ne.disabled,optOutWorkspaceContext:ne.optOutWorkspaceContext}),de=ue.data,fe=ue.isLoading;(0,r.useEffect)(function(){ae(ne)},[null==E?void 0:E.dataFilterDates]),(0,r.useEffect)(function(){ae(b(b({},ne),{},{sortKey:T(ne)}))},[null==k?void 0:k.selectedPlatform]);var pe=de&&null!==(e=null==de||null===(t=de.result)||void 0===t?void 0:t.pagination)&&void 0!==e?e:null;return{response:function(e,t){var n,r;return null!=e&&e.dummyData?null!==(r=null==e?void 0:e.dummyData)&&void 0!==r?r:{}:null!==(n=t)&&void 0!==n?n:{}}(ne,de),data:z(ne,de),pagination:pe,isLoading:fe,request:ne,sorting:{sortKey:ne.sortKey,sortOrder:ne.sortOrder},updateRequest:oe,handlePagination:ie,handleSort:le,setFilters:se,setCustomFilters:function(e){oe(b(b({},ne),{},{customFilters:b(b({},ne.customFilters),e),paginationPage:1}))},setDates:function(e){oe(b(b({},ne),{}
2,{startDate:e.startDate,endDate:e.endDate,paginationPage:1}))},setAccountsFilter:ce,setCampaignsFilter:function(e){oe(b(b({},ne),{},{campaignFilter:e,paginationPage:1}))},invalidateCache:function(){h.invalidateQueries([ne.fullOutgoingQuery])},filters:ne.filters,tableConnector:{rows:z(ne,de),isLoading:fe,totalResults:null==pe?void 0:pe.total,totalPages:fe?null:null==pe?void 0:pe.last_page,totalItems:null==pe?void 0:pe.total,pageNumber:ne.paginationPage,handlePagination:ie,limit:ne.paginationLimit,handleSorting:le,sorting:{sortKey:ne.sortKey,sortOrder:ne.sortOrder}},filterConnector:{filters:ne.filters,setFilters:se},accountSelectConnector:{filters:q(ne),onFilterChange:ce},activeFilters:q(ne),fullOutgoingQuery:ne.fullOutgoingQuery}}},15806:(e,t,n)=>{"use strict";e.exports=n.p+"4182d44f1564f52d06f6.svg"},15877:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r,o,x=e.onClose,b=e.onProfile,v=e.onLogout,_=S((0,a.useState)(""),2),w=_[0],j=_[1],k=S((0,a.useState)(-1),2),I=k[0],P=k[1],T=S((0,a.useState)("asc"),2),C=T[0],R=T[1],M=S((0,d.useSyncState)(),1)[0],L=S((0,d.useWorkspacesState)(),1)[0],D=S((0,a.useState)(!1),2),B=D[0],U=D[1],F=S((0,d.usePermissionsState)(),1)[0],G=(0,c.useMutation)("/auth/change-account","POST"),W=S((0,a.useState)([]),2),z=W[0],V=W[1],q=(0,p.useLocation)(),K=(0,a.useRef)("".concat(q.pathname).concat(q.search).concat(q.hash)),H=(0,f.usePostHog)();(0,a.useEffect)(function(){var e=(Array.isArray(null==M?void 0:M.agency)?M.agency:[]).map(function(e,t){return function(e,t){var n,r,o;return{id:"".concat(null!==(n=e.account_id)&&void 0!==n?n:t),name:null!==(r=e.account_name)&&void 0!==r?r:"Account ".concat(t+1),role:E(e.role),workspaces:null!==(o=e.workspaces)&&void 0!==o?o:0}}(e,t)});V(e)},[null==M?void 0:M.agency]);var Y=null!==(t=null==M||null===(n=M.account)||void 0===n?void 0:n.account_name)&&void 0!==t?t:"Account Name",$={id:"".concat(null!==(r=null==M||null===(o=M.account)||void 0===o?void 0:o.account_id)&&void 0!==r?r:0),name:Y,role:E(null==F?void 0:F.roleIdentifier),workspaces:null==L?void 0:L.workspaceCount},Z=[];z.length>0&&(Z=z.some(function(e){return e.id===$.id})?z:[$].concat(O(z)));var X=Z.length>0;function J(e){if(e.id===$.id||B)x();else if(0!==e.workspaces){var t,n,r,o;U(!0),M.isImpersonating||null==H||H.capture("agency_account_changed",{account_id:e.id,user_email:null!==(t=null===(n=M.user)||void 0===n?void 0:n.email)&&void 0!==t?t:"",user_id:null!==(r=null===(o=M.user)||void 0===o?void 0:o.id)&&void 0!==r?r:""}),G.mutate({account_id:e.id},{onSuccess:function(e){var t,n,r=null!==(t=null==e||null===(n=e.data)||void 0===n?void 0:n.token)&&void 0!==t?t:null==e?void 0:e.token;if(200===(null==e?void 0:e.status)&&r)return localStorage.setItem("token",r),void window.location.assign("/overview");U(!1),x()},onError:function(){U(!1),x()}})}else(0,u.toastNotification)((0,s.language)("This Account has no workspaces. It will need a workspace assigned to it before you can log into it"),"error")}var Q,ee,te,ne,re,oe,ae,ie,le,se,ce,ue,de,fe,pe,me,ge,ye=Z.filter(function(e){return e.id!==$.id}),he=ye.length>5,xe=function(e,t,n){var r=t.trim().toLowerCase(),o=O(r?e.filter(function(e){return e.name.toLowerCase().includes(r)||e.role.toLowerCase().includes(r)}):e).sort(function(e,t){return e.name.localeCompare(t.name)});return"desc"===n&&o.reverse(),o}(ye,w,C);return(0,a.useEffect)(function(){P(-1)},[w]),(0,a.useEffect)(function(){function e(e){"Escape"!==e.key?("ArrowDown"===e.key&&(e.preventDefault(),P(function(e){return Math.min(e+1,xe.length-1)})),"ArrowUp"===e.key&&(e.preventDefault(),P(function(e){return Math.max(e-1,0)})),"Enter"===e.key&&xe[I]&&(e.preventDefault(),J(xe[I]))):x()}return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[xe,I,J,x]),(0,a.useEffect)(function(){var e="".concat(q.pathname).concat(q.search).concat(q.hash);e!==K.current&&(K.current=e,x())},[q.pathname,q.search,q.hash,x]),(0,h.jsxs)("div",A(A({},{className:"position-x10l6tqk top-x7vlisz right-x3m8u43 width-xwl9fdd background-x1h3gynt border-x180m19u borderRadius-xgqmno8 boxShadow-xfacyfx zIndex-xa9119d overflow-xb3r6kr animationName-x10fu69u animationDuration-x5hsz1j animationTimingFunction-xatqbsq transformOrigin-x1h1bmdg color-x18k1rwp","data-style-src":"UserDropdown/index.tsx:119"}),{},{role:"menu","data-testid":"user-dropdown-menu",children:[(0,h.jsxs)("div",A(A({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d padding-x1tamke2 borderBottom-x5eohbv","data-style-src":"UserDropdown/index.tsx:138"}),{},{children:[(0,h.jsx)("div",A(A({},{className:"flexShrink-x2lah0s width-xq14iec height-x1aekv1k borderRadius-x16rqkct backgroundColor-x1vuwhqn color-x1jsblnb display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k fontSize-xif65rj fontWeight-xk50ysn border-xxk0nts curs
2or-x1ypdohk opacity-x18uuni6","data-style-src":"UserDropdown/index.tsx:145"}),{},{children:(me=(null!==(ue=null===(de=M.user)||void 0===de?void 0:de.first_name)&&void 0!==ue?ue:"F").charAt(0).toUpperCase(),ge=(null!==(fe=null===(pe=M.user)||void 0===pe?void 0:pe.last_name)&&void 0!==fe?fe:"S").charAt(0).toUpperCase(),"".concat(me).concat(ge))})),(0,h.jsxs)("div",A(A({},{className:"display-x78zum5 flexDirection-xdt5ytf minWidth-xeuugli","data-style-src":"UserDropdown/index.tsx:163"}),{},{children:[(0,h.jsx)("div",A(A({},{className:"fontSize-xif65rj fontWeight-x1s688f","data-style-src":"UserDropdown/index.tsx:164"}),{},{"data-testid":"user-dropdown-user-name",children:(le=null!==(te=null===(ne=M.user)||void 0===ne?void 0:ne.first_name)&&void 0!==te?te:"",se=null!==(re=null===(oe=M.user)||void 0===oe?void 0:oe.last_name)&&void 0!==re?re:"",ce="".concat(le," ").concat(se).trim(),ce||(null!==(ae=null===(ie=M.user)||void 0===ie?void 0:ie.display_name)&&void 0!==ae?ae:"User"))})),(0,h.jsx)("div",A(A({},{className:"fontSize-xfifm61 color-xbdn2ka whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv","data-style-src":"UserDropdown/index.tsx:165"}),{},{"data-testid":"user-dropdown-user-email",children:null!==(Q=null===(ee=M.user)||void 0===ee?void 0:ee.email)&&void 0!==Q?Q:""}))]}))]})),X&&(0,h.jsxs)("div",A(A({},{className:"padding-x4ezw8m borderBottom-x5eohbv","data-style-src":"UserDropdown/index.tsx:174"}),{},{children:[(0,h.jsxs)("div",A(A({},{className:"display-x78zum5 alignItems-x6s0dn4 justifyContent-x1qughib padding-x1xgjrfl","data-style-src":"UserDropdown/index.tsx:178"}),{},{children:[(0,h.jsx)("h3",A(A({},{className:"margin-x1ghz6dp fontSize-x1j6dyjg fontWeight-x1xlr1w8 letterSpacing-x9pfba7 textTransform-xtvhhri color-xnx9fn3","data-style-src":"UserDropdown/index.tsx:184"}),{},{children:"Account"})),(0,h.jsxs)("span",A(A({},{className:"fontSize-x1j6dyjg fontWeight-x1s688f color-xbdn2ka background-x1hab0n0 padding-xpzpvjg borderRadius-x1e6avla whiteSpace-xuxw1ft flex-x1okw0bk","data-style-src":"UserDropdown/index.tsx:192"}),{},{"data-testid":"account-switcher-count",children:[Z.length," ",1===Z.length?"account":"accounts"]}))]})),(0,h.jsxs)("div",A(A({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d padding-x6yrr3s background-xtsyte4 border-xk00q7d borderRadius-x1q4ynmn position-x1n2onr6 marginBottom-x1yztbdb","data-style-src":"UserDropdown/index.tsx:204"}),{},{"aria-label":"Current account","data-testid":"account-switcher-current-account",children:[(0,h.jsxs)("div",A(A({},{className:"flex-x98rzlu minWidth-xeuugli display-x78zum5 flexDirection-xdt5ytf gap-x195vfkc","data-style-src":"UserDropdown/index.tsx:215"}),{},{children:[(0,h.jsx)("div",A(A({},{className:"fontSize-xif65rj fontWeight-x1s688f color-x18k1rwp whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv","data-style-src":"UserDropdown/index.tsx:222"}),{},{children:$.name})),(0,h.jsxs)("div",A(A({},{className:"fontSize-xfifm61 lineHeight-x1xxsxie color-xb0o5a8 display-x3nfvp2 alignItems-x6s0dn4 gap-x17d4w8g","data-style-src":"UserDropdown/index.tsx:230"}),{},{children:[(0,h.jsx)("span",A({},{className:"width-x1v4s8kt height-xols6we borderRadius-x1e6avla background-x1btybh9 boxShadow-x1kno7bu flex-x1okw0bk","data-style-src":"UserDropdown/index.tsx:238"})),(0,s.language)("Currently active")," ","·"," ",$.workspaces," ",1===$.workspaces?(0,s.language)("workspace"):(0,s.language)("workspaces")]}))]})),(0,h.jsx)("span",A(A({},{className:"fontSize-x1k6wstc fontWeight-x1xlr1w8 letterSpacing-x1vyo3qp textTransform-xtvhhri color-xb0o5a8 background-xtsyte4 border-x1onvrke padding-x1asu97y borderRadius-x1e6avla flex-x1okw0bk","data-style-src":"UserDropdown/index.tsx:246"}),{},{children:"Current"}))]})),ye.length>0&&(0,h.jsxs)(h.Fragment,{children:[he&&(0,h.jsx)("div",A(A({},{className:"display-x78zum5 alignItems-x6s0dn4 width-xh8yej3 gap-x167g77z marginBottom-x1e56ztr","data-style-src":"UserDropdown/index.tsx:260"}),{},{children:(0,h.jsx)("div",A(A({},{className:"flex-x98rzlu minWidth-xeuugli","data-style-src":"UserDropdown/index.tsx:267"}),{},{children:(0,h.jsx)(g.default,{type:"search",size:"sm","aria-label":(0,s.language)("Search accounts"),placeholder:(0,s.language)("Search accounts..."),value:w,onChange:function(e){return j(e.target.value)},iconLeft:"search",className:"flex-x98rzlu border-x1wty727 outline-x1b6ykf0 background-x1md70p1 fontFamily-xjb2p0i fontSize-x4z9k3i color-x18k1rwp minWidth-xeuugli","data-testid":"account-switcher-search-input",contentRight:(0,h.jsx)("button",A(A({type:"button",onClick:function(){R("asc"!==C?"asc":"desc")},"aria-label":"Sort accounts ".concat("asc"===C?"descending":"ascending"),"data-testid":"account-switcher-sort-button"}
2,{className:"display-x3nfvp2 alignItems-x6s0dn4 justifyContent-xl56j7k fontSize-x1k6wstc fontWeight-x1s688f color-xnx9fn3 background-x1h3gynt border-xct47cs borderRadius-x12oqio5 padding-x1987f1p cursor-x1ypdohk fontFamily-xjb2p0i appearance-xjyslct background-x1s6ko4t border-xmy35o7 outline-x27j11","data-style-src":"UserDropdown/index.tsx:281; UserDropdown/index.tsx:293"}),{},{children:"asc"===C?"A-Z":"Z-A"}))})}))})),(0,h.jsxs)("div",A(A({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-x195vfkc maxHeight-xq3t0pi overflowY-x1odjw0f margin-xrqwdhd padding-xnexn6u scrollbarWidth-x1597r2g scrollbarColor-x1p7pwec","data-style-src":"UserDropdown/index.tsx:307"}),{},{children:[0===xe.length&&(0,h.jsxs)("div",A(A({},{className:"padding-x1bngs31 textAlign-x2b8uid fontSize-x4z9k3i color-xbdn2ka","data-style-src":"UserDropdown/index.tsx:370"}),{},{"data-testid":"account-switcher-no-results",children:[(0,s.language)("No accounts match")," ","â",w,"â"]})),(0,h.jsx)(y.default,{preset:"dark",size:"xs",height:250,loading:B,children:xe.map(function(e,t){return(0,h.jsxs)("button",A(A({type:"button","data-testid":"account-switcher-account-row",onMouseEnter:function(){return P(t)},onMouseLeave:function(){return P(-1)},onClick:function(){return J(e)}},i.props(N.switchRow,t===I&&N.switchRowFocus)),{},{children:[(0,h.jsxs)("div",A(A({},{className:"flex-x98rzlu minWidth-xeuugli display-x78zum5 flexDirection-xdt5ytf gap-x12mrbbr","data-style-src":"UserDropdown/index.tsx:335"}),{},{children:[(0,h.jsx)("div",A(A({},{className:"fontSize-x4z9k3i fontWeight-xk50ysn color-x18k1rwp whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv","data-style-src":"UserDropdown/index.tsx:342"}),{},{"data-testid":"account-switcher-account-name",children:e.name})),(0,h.jsxs)("div",A(A({},{className:"fontSize-x1j6dyjg color-xbdn2ka display-x3nfvp2 alignItems-x6s0dn4 gap-x17d4w8g whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv maxWidth-x193iq5w","data-style-src":"UserDropdown/index.tsx:350"}),{},{"data-testid":"account-switcher-account-workspaces",children:[e.workspaces," ",1===e.workspaces?(0,s.language)("workspace"):(0,s.language)("workspaces")]}))]})),(0,h.jsx)("span",A(A({},i.props(N.switchArrow,t===I&&N.switchArrowVisible)),{},{children:(0,h.jsx)(m.default,{name:"chevron-right",fontSize:14})}))]}),e.id)})})]}))]})]})),(0,h.jsxs)("div",A(A({},{className:"display-x78zum5 flexDirection-xdt5ytf padding-x1ruevkc","data-style-src":"UserDropdown/index.tsx:378"}),{},{children:[(0,h.jsxs)(p.Link,A(A({to:"/user-profile"},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d padding-x1uzaqoa borderRadius-xur7f20 fontSize-x4z9k3i fontWeight-xk50ysn color-xbdn2ka cursor-x1ypdohk width-xh8yej3 textAlign-x1yc453h background-x1md70p1 border-x1wty727 fontFamily-xjb2p0i background-x1s6ko4t color-x1mda8oq","data-style-src":"UserDropdown/index.tsx:379"}),{},{onClick:function(){null==b||b(),x()},"data-testid":"user-dropdown-profile-link",children:[(0,h.jsx)("span",A(A({}
2,{className:"width-x1kky2od height-xlup9mm color-xqi5lc6 flex-x1okw0bk","data-style-src":"UserDropdown/index.tsx:403"}),{},{children:(0,h.jsx)(m.default,{name:["far","user"],fontSize:16})})),(0,h.jsx)("span",{children:(0,s.language)("Profile")})]})),(0,h.jsxs)("div",A(A({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d padding-x1uzaqoa borderRadius-xur7f20 fontSize-x4z9k3i fontWeight-xk50ysn color-xbdn2ka width-xh8yej3 textAlign-x1yc453h background-x1md70p1 border-x1wty727 fontFamily-xjb2p0i cursor-xt0e3qv background-x1avruku color-x184d4by","data-style-src":"UserDropdown/index.tsx:379; UserDropdown/index.tsx:399"}),{},{"data-testid":"user-dropdown-timezone",children:[(0,h.jsx)("span",A(A({},{className:"width-x1kky2od height-xlup9mm color-xqi5lc6 flex-x1okw0bk","data-style-src":"UserDropdown/index.tsx:403"}),{},{children:(0,h.jsx)(m.default,{name:["far","globe"],fontSize:16})})),(0,h.jsx)("span",{children:(0,s.language)("UTC Timezone")})]})),!1,(0,h.jsx)(l.AccessControl,{impersonatingOnly:!0,children:(0,h.jsxs)(p.Link,A(A({to:"/internal-tools"},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d padding-x1uzaqoa borderRadius-xur7f20 fontSize-x4z9k3i fontWeight-xk50ysn color-xbdn2ka cursor-x1ypdohk width-xh8yej3 textAlign-x1yc453h background-x1md70p1 border-x1wty727 fontFamily-xjb2p0i background-x1s6ko4t color-x1mda8oq","data-style-src":"UserDropdown/index.tsx:379"}),{},{onClick:function(){x()},"data-testid":"user-dropdown-internal-tools-link",children:[(0,h.jsx)("span",A(A({}
2,{className:"width-x1kky2od height-xlup9mm color-xqi5lc6 flex-x1okw0bk","data-style-src":"UserDropdown/index.tsx:403"}),{},{children:(0,h.jsx)(m.default,{name:["far","screwdriver-wrench"],fontSize:16})})),(0,h.jsx)("span",{children:(0,s.language)("Internal Tools")})]}))}),(0,h.jsxs)(p.Link,A(A({to:"/logout"},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d padding-x1uzaqoa borderRadius-xur7f20 fontSize-x4z9k3i fontWeight-xk50ysn color-xbdn2ka cursor-x1ypdohk width-xh8yej3 textAlign-x1yc453h background-x1md70p1 border-x1wty727 fontFamily-xjb2p0i background-x1ioqvmd color-x1dy0gbq","data-style-src":"UserDropdown/index.tsx:379; UserDropdown/index.tsx:396"}),{},{onClick:function(){null==v||v(),x()},"data-testid":"user-dropdown-logout-link",children:[(0,h.jsx)("span",A(A({},{className:"width-x1kky2od height-xlup9mm color-xqi5lc6 flex-x1okw0bk","data-style-src":"UserDropdown/index.tsx:403"}),{},{children:(0,h.jsx)(m.default,{name:"right-from-bracket",fontSize:16})})),(0,h.jsx)("span",{children:(0,s.language)("Log out")})]}))]}))]}))};var o=x(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(44146),s=n(60156),c=n(34016),u=n(18141),d=n(45647),f=n(75267),p=n(73657),m=x(n(79135)),g=x(n(62720)),y=x(n(55436)),h=n(31085);function x(e){return e&&e.__esModule?e:{default:e}}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return(t=function(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var w=o.default;function O(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e){var t=null==e?void 0:e.toUpperCase();return"ROOT"===t?"ROOT":"OWNER"===t?"OWNER":"ADMIN"===t?"ADMIN":"EDITOR"===t?"EDITOR":"MANAGER"===t?"MANAGER":"USER"===t?"USER":"ADMIN"}w("@keyframes x1us164w-B{from{opacity:0;transform:scale(.96) translateY(-4px);}to{opacity:1;transform:scale(1) translateY(0);}}",1),w(".position-x10l6tqk{position:absolute}",3e3),w(".top-x7vlisz{top:calc(100% + 12px)}",4e3),w(".right-x3m8u43{right:0}",4e3),w(".width-xwl9fdd{width:380px}",4e3),w(".background-x1h3gynt{background:var(--white-x3n8fk9)}",1e3),w(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),w(".borderRadius-xgqmno8{border-radius:16px}",2e3),w(".boxShadow-xfacyfx{box-shadow:0 24px 48px -12px rgba(10,13,18,.22),0 0 0 1px rgba(10,13,18,.04)}",3e3,".boxShadow-xfacyfx{box-shadow:0 24px 48px -12px rgba(10,13,18,.22), 0 0 0 1px rgba(10,13,18,.04)}"),w(".zIndex-xa9119d{z-index:50}",3e3),w(".overflow-xb3r6kr{overflow:hidden}",2e3),w(".animationName-x10fu69u{animation-name:x1us164w-B}",3e3),w(".animationDuration-x5hsz1j{animation-duration:.2s}",3e3),w(".animationTimingFunction-xatqbsq{animation-timing-function:cubic-bezier(.2,.8,.2,1)}",3e3),w(".transformOrigin-x1h1bmdg{transform-origin:top right}",3e3),w(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),w(".display-x78zum5{display:flex}",3e3),w(".alignItems-x6s0dn4{align-items:center}",3e3),w(".gap-x1v2ro7d{gap:12px}",2e3),w(".padding-x1tamke2{padding:16px}",1e3),w(".borderBottom-x5eohbv{border-bottom:1px solid var(--gray100-x1llswo5)}",2e3),w(".flexShrink-x2lah0s{flex-shrink:0}",3e3),w(".width-xq14iec{width:31px}",4e3),w(".height-x1aekv1k{height:31px}",4e3),w(".borderRadius-x16rqkct{border-radius:50%}",2e3),w(".backgroundColor-x1vuwhqn{background-color:var(--primary100-x1s8hf8c)}",3e3),w(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),w(".justifyContent-xl56j7k{justify-content:center}",3e3),w(".fontSize-xif65rj{font-size:14px}",3e3),w(".fontWeight-xk50ysn{font-weight:500}",3e3),w(".border-xxk0nts{border:solid 3px var(--primary50-xfg0wjs)}
2",1e3),w(".cursor-x1ypdohk{cursor:pointer}",3e3),w(".opacity-x18uuni6:hover{opacity:.9}",3130),w(".flexDirection-xdt5ytf{flex-direction:column}",3e3),w(".minWidth-xeuugli{min-width:0}",4e3),w(".fontWeight-x1s688f{font-weight:600}",3e3),w(".fontSize-xfifm61{font-size:12px}",3e3),w(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),w(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),w(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),w(".padding-x4ezw8m{padding:12px 12px 8px}",1e3),w(".justifyContent-x1qughib{justify-content:space-between}",3e3),w(".padding-x1xgjrfl{padding:0 6px 8px}",1e3),w(".margin-x1ghz6dp{margin:0}",1e3),w(".fontSize-x1j6dyjg{font-size:11px}",3e3),w(".fontWeight-x1xlr1w8{font-weight:700}",3e3),w(".letterSpacing-x9pfba7{letter-spacing:.08em}",3e3),w(".textTransform-xtvhhri{text-transform:uppercase}",3e3),w(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),w(".background-x1hab0n0{background:var(--gray100-x1llswo5)}",1e3),w(".padding-xpzpvjg{padding:2px 7px}",1e3),w(".borderRadius-x1e6avla{border-radius:999px}",2e3),w(".flex-x1okw0bk{flex:none}",2e3),w(".padding-x6yrr3s{padding:10px 12px}",1e3),w(".background-xtsyte4{background:var(--oldBrand25-x1tpghg1)}",1e3),w(".border-xk00q7d{border:1.5px solid var(--oldBrand300-x1eifvzy)}",1e3),w(".borderRadius-x1q4ynmn{border-radius:10px}",2e3),w(".position-x1n2onr6{position:relative}",3e3),w(".marginBottom-x1yztbdb{margin-bottom:16px}",4e3),w(".flex-x98rzlu{flex:1}",2e3),w(".gap-x195vfkc{gap:2px}",2e3),w(".lineHeight-x1xxsxie{line-height:14px}",3e3),w(".color-xb0o5a8{color:var(--oldBrand700-xx6j7i3)}",3e3),w(".display-x3nfvp2{display:inline-flex}",3e3),w(".gap-x17d4w8g{gap:6px}",2e3),w(".width-x1v4s8kt{width:6px}",4e3),w(".height-xols6we{height:6px}",4e3),w(".background-x1btybh9{background:var(--oldBrand400-xg3037r)}",1e3),w(".boxShadow-x1kno7bu{box-shadow:0 0 0 3px var(--oldBrand200-xdr76h5)}",3e3),w(".fontSize-x1k6wstc{font-size:10px}",3e3),w(".letterSpacing-x1vyo3qp{letter-spacing:.04em}",3e3),w(".border-x1onvrke{border:1px solid var(--oldBrand300-x1eifvzy)}",1e3),w(".padding-x1asu97y{padding:3px 8px}",1e3),w(".width-xh8yej3{width:100%}",4e3),w(".gap-x167g77z{gap:8px}",2e3),w(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),w(".border-x1wty727{border:0}",1e3),w(".outline-x1b6ykf0{outline:0}",2e3),w(".background-x1md70p1{background:transparent}",1e3),w(".fontFamily-xjb2p0i{font-family:inherit}",3e3),w(".fontSize-x4z9k3i{font-size:13px}",3e3),w(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),w(".borderRadius-x12oqio5{border-radius:4px}",2e3),w(".padding-x1987f1p{padding:2px 5px}",1e3),w(".appearance-xjyslct{appearance:none}",3e3),w(".background-x1s6ko4t:hover{background:var(--gray50-x1bw8p5w)}",1130),w(".border-xmy35o7:focus{border:none}",1150),w(".outline-x27j11:focus{outline:4px solid var(--secondary200-xut29wu)}",2150),w(".maxHeight-xq3t0pi{max-height:280px}",4e3),w(".overflowY-x1odjw0f{overflow-y:auto}",4e3),w(".margin-xrqwdhd{margin:0 -4px}",1e3),w(".padding-xnexn6u{padding:0 4px 4px}",1e3),w(".scrollbarWidth-x1597r2g{scrollbar-width:thin}",3e3),w(".scrollbarColor-x1p7pwec{scrollbar-color:var(--gray300-x1xk3734) transparent}",3e3),w(".padding-xe8ttls{padding:8px}",1e3),w(".borderRadius-xur7f20{border-radius:8px}",2e3),w(".transition-xmdpkp8{transition:background .1s}",2e3),w(".textAlign-x1yc453h{text-align:start}",3e3),w(".color-x1heor9g{color:inherit}",3e3),w(".background-xiji0q7{background:var(--gray50-x1bw8p5w)}",1e3),w(".gap-x12mrbbr{gap:1px}",2e3),w(".maxWidth-x193iq5w{max-width:100%}",4e3),w(".opacity-xg01cxk{opacity:0}",3e3),w(".transform-x1kd3vib{transform:translateX(-4px)}",3e3),w(".transition-x17mwqh7{transition:opacity .1s,transform .1s}",2e3),w(".opacity-x1hc1fzr{opacity:1}",3e3),w(".transform-xbryuvx{transform:translateX(0)}",3e3),w(".padding-x1bngs31{padding:20px 12px}",1e3),w(".textAlign-x2b8uid{text-align:center}",3e3),w(".padding-x1ruevkc{padding:6px}",1e3),w(".padding-x1uzaqoa{padding:9px 10px}",1e3),w(".color-x1mda8oq:hover{color:var(--gray900-xevft2h)}",3130),w(".background-x1ioqvmd:hover{background:var(--error50-x1f3qy36)}",1130),w(".color-x1dy0gbq:hover{color:var(--error700-x1brey9)}",3130),w(".cursor-xt0e3qv{cursor:default}",3e3),w(".background-x1avruku:hover{background:transparent}",1130),w(".color-x184d4by:hover{color:var(--gray500-xplr4j6)}",3130),w(".width-x1kky2od{width:16px}",4e3),w(".height-xlup9mm{height:16px}",4e3),w(".color-xqi5lc6{color:var(--black300-xmkl1o)}",3e3);var N={switchRow:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",gap:"gap-x1v2ro7d",padding:"padding-xe8ttls",borderRadius:"borderRadius-xur7f20",cursor:"cursor-x1ypdohk",transition:"transition-xmdpkp8",textAlign:"textAlign-x1yc453h",width:"width-xh8yej3",background:"background-x1md70p1",border:"border-x1wty727",fontFamily:"fontFamily-xjb2p0i",color:"color-x1heor9g",":hover_background":"background-x1s6ko4t",$$css:"UserDropdown/index.tsx:318"},switchRowFocus:{background:"background-xiji0q7",$$css:"UserDropdown/index.tsx:334"}
2,switchArrow:{color:"color-xnx9fn3",opacity:"opacity-xg01cxk",transform:"transform-x1kd3vib",transition:"transition-x17mwqh7",flex:"flex-x1okw0bk",$$css:"UserDropdown/index.tsx:361"},switchArrowVisible:{opacity:"opacity-x1hc1fzr",transform:"transform-xbryuvx",$$css:"UserDropdown/index.tsx:368"}}},15896:(e,t,n)=>{"use strict";e.exports=n.p+"d55bad40caac7d1bc415.svg"},16222:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(14041)),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(0,a.default)(".width-xh8yej3{width:100%}",4e3),t.default=function(e){var t=e.children,n=e.containerBreakpoints,r=void 0===n?{xs:960,sm:1280,md:1400,lg:1700,xl:2e3,xxl:2500}:n,o=(0,i.useRef)(null),a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)(1200),2),s=a[0],c=a[1];return(0,i.useEffect)(function(){var e=new ResizeObserver(function(e){e[0]&&c(e[0].contentRect.width)});return o.current&&e.observe(o.current),function(){return e.disconnect()}},[]),(0,l.jsx)("div",u(u({ref:o},{className:"width-xh8yej3","data-style-src":"ContainerResponsiveGrid/index.tsx:7"}),{},{children:function e(t){return i.default.Children.map(t,function(t){if(!i.default.isValidElement(t))return t;var n,o,a,l,c,d,f,p,m=t.type,g=t.props;if("Row"===(null==m?void 0:m.displayName))return i.default.cloneElement(t,{children:e(g.children)});if("Col"===(null==m?void 0:m.displayName)){var y=(n=g,p="",s<(null!==(o=r.xs)&&void 0!==o?o:960)?p="xs":s<(null!==(a=r.sm)&&void 0!==a?a:1280)?p="sm":s<(null!==(l=r.md)&&void 0!==l?l:1400)?p="md":s<(null!==(c=r.lg)&&void 0!==c?c:1700)?p="lg":s<(null!==(d=r.xl)&&void 0!==d?d:2e3)?p="xl":s<(null!==(f=r.xxl)&&void 0!==f?f:2500)&&(p="xxl"),p&&n[p]&&!n.viewportResponsive?{xs:n[p],sm:n[p],md:n[p],lg:n[p],xl:n[p],xxl:n[p]}:{});return i.default.cloneElement(t,u(u({},g),y))}return t})}(t)}))}},16563:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=[0,5,20,50,95],o=["#ece7f2","#dbbac0","#cd8e90","#bf605d","#c0d1e8","#b4a3b7","#a9788d","#8e4d62","#95bbde","#8d8cae","#84648b","#773d69","#6aa5d5","#6575a5","#5f4e89","#5b176f"];function a(e){return e<r[1]?0:e<r[2]?1:e<r[3]?2:3}const i=function(e,t){var n,r,i,l=e.clicksInvalid,s=e.clicksTotal;return n=Number(l/s*100),r=a(0!==t?Number(s/t*100):0),i=a(n),o[4*r+i]}},16942:(e,t,n)=>{"use strict";e.exports=n.p+"a7fd4752c19ca9456876.svg"},17015:(e,t,n)=>{"use strict";n.d(t,{A:()=>y}),n(14041);var r=n(39067),o=n.n(r),a=n(76449),i=n(28426),l=n(30556),s=n(27805),c=n(89748),u=n(99018),d=n(62161),f=n(92523),p=n(31085),m=(0,u.createUseStyles)(function(e){return{clickFilterContainer:{display:"flex",justifyContent:"space-between",marginTop:e.spacing[5],marginBottom:e.spacing[5]},left:{display:"flex"}}});function g(e){var t,n,r=e.filters,o=e.handlePagination,u=e.handleSort,g=e.data,y=void 0===g?{}:g,h=e.isLoading,x=void 0!==h&&h,b=e.onFilterChange,v=void 0===b?function(){}:b,A=m(),_=[{label:(0,c.A)("IP Address"),name:"ip_address",type:"radio",options:[{label:(0,c.A)("Starts With"),name:"startsWith",type:"text"}]}];return(0,p.jsx)("div",{children:(0,p.jsxs)(i.A.Page,{type:"main",children:[(0,p.jsx)(s.default,{title:(0,c.A)("Conversions"),text:(0,c.A)("Track & audit conversions across your campaigns")}),(0,p.jsx)(l.default,{style:{paddingLeft:0,paddingRight:0,paddingTop:0,marginTop:0,marginLeft:0,marginRight:0,width:"100%",maxWidth:"100%"},children:(0,p.jsx)(l.default.Row,{children:(0,p.jsxs)(l.default.Col,{children:[(0,p.jsxs)("div",{className:A.clickFilterContainer,children:[(0,p.jsx)("div",{className:A.left,children:(0,p.jsx)(a.default,{filterConfig:_,initialValues:r,onFilterChange:v})}),(0,p.jsx)("div",{children:(0,p.jsx)(f.default,{})})]}),(0,p.jsx)(d.A,{isLoading:x,rows:null==y?void 0:y.conversions,totalPages:null==y||null===(t=y.pagination)||void 0===t?void 0:t.last_page,totalItems:null==y||null===(n=y.pagination)||void 0===n?void 0:n.total,pageNumber:r.page,limit:r.limit,handlePagination:o,sorting:{sortKey:r.sortKey,sortOrder:r.sortOrder},handleSorting:u,leftPinnedColumns:1,children:function(e){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:(0,c.A)("IP Address")}),(0,p.jsx)("th",{"data-sortable-id":"created_at",children:"Timestamp"})]})}),(0,p.jsxs)("tbody",{children:[(0,p.jsx)("td",{children:null==e?void 0:e.ip}),(0,p.jsx)("td",{children:null==e?void 0:e.created_at})]})]})}})]})})})]})})}g.propTypes={onFilterChange:o().func,isLoading:o().bool,data:o().shape({conversions:o().arrayOf(o().shape({aw_account_name:o().string,aw_customer_id:o().string,ip:o().string,created_at:o().string})),pagination:o().shape({last_page:o().number})}),filters:o().object.isRequired,handlePagination:o().func.isRequired,handleSort:o().func.isRequired};const y=g},17070:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(32354),o=n(35859),a=n(19863),i=n(52356);function l(e){var t=Number(e);if(!Number.isFinite(t))return"0.00";var n=Math.trunc(100*t)/100;return(0,a.m)(n,2)}const s={getCurrencySymbol:o.A,restrictLengthOfString:r.A,localiseNumber:a.m,stringDefaultIfEmpty:i.A,valueOrDash:function(e){return null==e?"-":"".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").concat((0,a.m)(e))},currencyValueOrDash:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==e)return"-";var r=null!==(t=(0,o.A)(n))&&void 0!==t?t:"";return"".concat(r).concat(l(e))},twoDecimalsNoRound:l,percentageValueOrDash:function(e){return null==e?"-":"".concat(e,"%")}
2,pipeSeparatedStrings:function(e,t,n){return[e,t,n].filter(Boolean).join(" | ")},deltaDirection:function(e){return Number(e)>0?"up":Number(e)<0?"down":"right"}}},17161:(e,t,n)=>{"use strict";e.exports=n.p+"7d2c69ced4de65a93dd2.svg"},17419:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(99018),s=n(31085);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=a.default;p(".display-x78zum5{display:flex}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".borderRadius-x1f96onm{border-radius:50px}",2e3),p(".verticalAlign-xxymvpz{vertical-align:middle}",3e3),p(".backgroundColor-x71x0l8{background-color:var(--success300-xj807bz)}",3e3),p(".backgroundColor-xn1qtim{background-color:var(--warning200-xgv5m4l)}",3e3),p(".backgroundColor-x1ovo3ll{background-color:var(--error300-x1etg42b)}",3e3),p(".height-x18gnavp{height:13px}",4e3),p(".width-x1fxhmyf{width:13px}",4e3),p(".height-xlup9mm{height:16px}",4e3),p(".width-x1kky2od{width:16px}",4e3),p(".height-xhvdbge{height:19px}",4e3),p(".width-xn6xy2s{width:19px}",4e3),p(".marginLeft-xet2fuk{margin-left:8px}",4e3);var m={container:{display:"display-x78zum5",$$css:"StatusDot/index.tsx:7"},containerWithText:{alignItems:"alignItems-x6s0dn4",$$css:"StatusDot/index.tsx:10"},circle:{borderRadius:"borderRadius-x1f96onm",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,display:"display-x78zum5",verticalAlign:"verticalAlign-xxymvpz",$$css:"StatusDot/index.tsx:13"},legitimate:{backgroundColor:"backgroundColor-x71x0l8",$$css:"StatusDot/index.tsx:18"},suspicious:{backgroundColor:"backgroundColor-xn1qtim",$$css:"StatusDot/index.tsx:21"},invalid:{backgroundColor:"backgroundColor-x1ovo3ll",$$css:"StatusDot/index.tsx:24"},sm:{height:"height-x18gnavp",width:"width-x1fxhmyf",$$css:"StatusDot/index.tsx:27"},md:{height:"height-xlup9mm",width:"width-x1kky2od",$$css:"StatusDot/index.tsx:31"},lg:{height:"height-xhvdbge",width:"width-xn6xy2s",$$css:"StatusDot/index.tsx:35"},textRight:{marginLeft:"marginLeft-xet2fuk",marginInlineStart:null,marginInlineEnd:null,$$css:"StatusDot/index.tsx:39"}};function g(e){var t=e.className,n=void 0===t?"":t,r=e.type,o=void 0===r?"legitimate":r,a=e.size,c=void 0===a?"lg":a,u=e.textRight;return(0,s.jsxs)("div",d(d({},i.props(m.container,null!=u&&""!==u?m.containerWithText:null)),{},{"data-testid":"status-dot-container",children:[(0,s.jsx)("span",{className:(0,l.classNames)(n,"borderRadius-x1f96onm display-x78zum5 verticalAlign-xxymvpz",i.props(m[o]).className,i.props(m[c]).className),"data-testid":"status-dot-circle","data-status":o}),u&&(0,s.jsx)("span",d(d({},{className:"marginLeft-xet2fuk","data-style-src":"StatusDot/index.tsx:39"}),{},{children:u}))]}))}g.displayName="StatusDot",t.A=g},17427:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(77223),s=n(62720),c=n(72686),u=n(9486),d=n(1781),f=n(55618),p=n(30021),m=n(55436),g=n(28426),y=n(27805),h=n(62161),x=n(89748),b=n(99018),v=n(77730),A=n(98536),_=n(82725),S=n(70437),w=n(69499),O=n(31085);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?k(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function N(e,t,n){return(t=function(e){var t=function(e){if("object"!=j(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var T=(0,b.createUseStyles)(function(e){return{userProfilePageContainer:{width:"70%"},greyText:{color:(0,b.findColour)(e,"grey",700)},alignTextRight:{textAlign:"right"},disabledRow:{opacity:.3},button:{marginLeft:e.spacing[2]}}});function C(e){var t,n,o,a,b=e.user,j=e.updateProfile,k=e.isSaving,P=T(),C=I((0,v.A)(),1)[0],R=I((0,r.useState)(!1),2),M=R[0],L=R[1],D=I((0,r.useState)(!1),2),B=D[0],U=D[1],F=I((0,r.useState)(!1),2),G=F[0],W=F[1],z=I((0,r.useState)(b),2),V=z[0],q=z[1],K=[{label:(0,x.A)("Owner"),value:"ROOT"},{label:(0,x.A)("Admin"),value:"ADMIN"},{label:(0,x.A)("Manager"),value:"MANAGER"},{label:(0,x.A)("Client"),value:"USER"}];if(null==b||!b.email)return(0,O.jsx)(m.default,{loading:!0,preset:"dark",size:"responsive"});var H,Y,$,Z,X,J,Q,ee,te,ne=(0,A.useApi)({url:"/settings/reports",paginationStaticLimit:100}),re=(0,A.useApiSubmit)({url:"/settings/reports/delete",method:"POST",successMessage:(0,x.A)("The Report was deleted"),errorMessage:(0,x.A)("Something went wrong!"),invalidateQueries:[ne.fullOutgoingQuery]});function oe(e){return e?e.charAt(0).toUpperCase()+e.slice(1):e}function ae(e,t){q(function(n){return E(E({},n),{},N({},e,t))})}return(0,r.useEffect)(function(){q(b)},[b]),(0,O.jsx)(g.A.Page,{type:"settings",children:(0,O.jsxs)("div",{className:P.userProfilePageContainer,children:[(0,O.jsx)(y.default,{type:"settings",title:(0,x.A)("User Profile"),text:(0,x.A)("Here you can see your user details and manage settings for your user account.")}),(0,O.jsxs)(c.default,{children:[(0,O.jsx)(p.default,{preset:"pageHeading",as:"h3",children:b.display_name}),(0,O.jsx)(p.default,{preset:"pageSubHeader",className:P.greyText,children:{ROOT:"Owner",ADMIN:"Admin",MANAGER:"Manager",USER:"Client"}[b.role_identifier]}),(0,O.jsx)(l.default,{className:"mt-4 mb-4"}),(0,O.jsx)(u.default,{size:"lg",as:"p",children:(0,x.A)("Name")}),G?(0,O.jsx)(s.default,{className:"mb-2","data-testid":"user-profile-first-name-input","aria-label":(0,x.A)("First Name"),value:null!==(t=null==V?void 0:V.first_name)&&void 0!==t?t:"",onChange:function(e){var t;return ae("first_name",null==e||null===(t=e.target)||void 0===t?void 0:t.value)}}):(0,O.jsx)(p.default,{preset:"subText",className:"mb-2",children:null==b?void 0:b.first_name}),(0,O.jsx)(u.default,{size:"lg",as:"p",children:(0,x.A)("Surname")}),G?(0,O.jsx)(s.default,{className:"mb-2","data-testid":"user-profile-last-name-input","aria-label":(0,x.A)("Surname"),value:null!==(n=null==V?void 0:V.last_name)&&void 0!==n?n:"",onCh
2ange:function(e){var t;return ae("last_name",null==e||null===(t=e.target)||void 0===t?void 0:t.value)}}):(0,O.jsx)(p.default,{preset:"subText",className:"mb-2",children:null==b?void 0:b.last_name}),(0,O.jsx)(u.default,{size:"lg",as:"p",children:(0,x.A)("Email Address")}),G?(0,O.jsx)(s.default,{className:"mb-2","data-testid":"user-profile-email-input","aria-label":(0,x.A)("Email Address"),type:"email",value:null!==(o=null==V?void 0:V.email)&&void 0!==o?o:"",onChange:function(e){var t;return ae("email",null==e||null===(t=e.target)||void 0===t?void 0:t.value)}}):(0,O.jsx)(p.default,{preset:"subText",className:"mb-2",children:null==b?void 0:b.email}),(0,O.jsx)(u.default,{size:"lg",as:"p",children:(0,x.A)("Lunio Account Role")}),(0,O.jsx)(p.default,{preset:"subText",className:"mb-2",children:null===(a=K.find(function(e){return e.value===b.role_identifier}))||void 0===a?void 0:a.label}),(0,O.jsx)("div",{className:"flex justify-end mt-6",children:G?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(i.default,{preset:"outline","data-testid":"user-profile-cancel-button",onClick:function(){return q(b),void W(!1)},children:(0,x.A)("Cancel Changes")}),(0,O.jsx)(i.default,{className:"ml-3",preset:"primary","data-testid":"user-profile-save-button",loading:k,onClick:function(){var e,t,n,r,o,a;j({first_name:null!==(e=null==V||null===(t=V.first_name)||void 0===t?void 0:t.trim())&&void 0!==e?e:"",last_name:null!==(n=null==V||null===(r=V.last_name)||void 0===r?void 0:r.trim())&&void 0!==n?n:"",email:null!==(o=null==V||null===(a=V.email)||void 0===a?void 0:a.trim())&&void 0!==o?o:""},{onSuccess:function(){W(!1)}})},disabled:(Q=null!==(H=null==V||null===(Y=V.first_name)||void 0===Y?void 0:Y.trim())&&void 0!==H?H:"",ee=null!==($=null==V||null===(Z=V.last_name)||void 0===Z?void 0:Z.trim())&&void 0!==$?$:"",te=null!==(X=null==V||null===(J=V.email)||void 0===J?void 0:J.trim())&&void 0!==X?X:"",!Boolean(Q&&ee&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(te))),children:(0,x.A)("Save Changes")})]}):(0,O.jsx)(i.default,{preset:"outline","data-testid":"user-profile-edit-button",onClick:function(){return W(!0)},children:(0,x.A)("Edit")})})]}),(0,O.jsx)(w.A,{className:"mt-4"}),(null==C?void 0:C.workspaces.length)>0&&(0,O.jsxs)(c.default,{className:"mt-4",children:[(0,O.jsxs)("div",{className:"flex justify-between",children:[(0,O.jsxs)("div",{children:[(0,O.jsx)(p.default,{preset:"pageHeading",as:"h3",children:"Reports"}),(0,O.jsx)(p.default,{className:P.greyText,children:"Manage all your reports and frequency"})]}),(0,O.jsx)("div",{children:(0,O.jsx)(i.default,{preset:"primary",onClick:function(){return U(!0)},iconLeft:["fas","plus"],"data-testid":"create-new-report-button",children:(0,x.A)("Add Report")})})]}),(0,O.jsx)(l.default,{className:"mt-4 mb-4"}),(0,O.jsx)(h.A,E(E({},ne.tableConnector),{},{noDataTitle:(0,x.A)("You don't have any reports set up yet"),noDataSubTitle:(0,x.A)("Click the Add Report button to set up a regular email report"),noDataStyle:"secondary",hideTopPagination:!0,leftPinnedColumns:1,children:function(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("thead",{children:(0,O.jsxs)("tr",{children:[(0,O.jsx)("th",{children:(0,x.A)("Report Type")}
2),(0,O.jsx)("th",{children:(0,x.A)("Workspace")}),(0,O.jsx)("th",{children:(0,x.A)("Frequency")}),(0,O.jsx)("th",{"data-align":"right",children:(0,x.A)("Manage Report")})]})}),(0,O.jsxs)("tbody",{children:[(0,O.jsx)("td",{className:null!=e&&e.deleted_at?P.disabledRow:"",children:null!=e&&e.deleted_at?(0,O.jsx)(d.default,{content:(0,x.A)("this report was deleted on :date",{date:new Date(null==e?void 0:e.deleted_at)}),children:null==e?void 0:e.template_name}):null==e?void 0:e.template_name}),(0,O.jsx)("td",{className:null!=e&&e.deleted_at?P.disabledRow:"",children:null!=e&&e.deleted_at?(0,O.jsx)(d.default,{content:(0,x.A)("This report was deleted on :date",{date:new Date(null==e?void 0:e.deleted_at)}),children:(0,O.jsx)("span",{children:null==e?void 0:e.scope_name})}):null==e?void 0:e.scope_name}),(0,O.jsx)("td",{className:null!=e&&e.deleted_at?P.disabledRow:"",children:null!=e&&e.deleted_at?(0,O.jsx)(d.default,{content:(0,x.A)("This report was deleted on :date",{date:new Date(null==e?void 0:e.deleted_at)}),children:oe(null==e?void 0:e.frequency)}):oe(null==e?void 0:e.frequency)}),(0,O.jsxs)("td",{"data-align":"right",children:[(0,O.jsx)(d.default,{content:null!=e&&e.deleted_at?(0,x.A)("This report was deleted on :date",{date:new Date(null==e?void 0:e.deleted_at)}):(0,x.A)("Edit Report"),children:(0,O.jsx)(i.default,{id:"edit-user-button","data-testid":"edit-report-button-".concat(null==e?void 0:e.id),preset:"outline",size:"sm",className:P.button,onClick:function(){return function(e){U(!1),L(e)}(e)},"aria-label":(0,x.A)("Edit Report"),iconLeft:"far fa-pencil",disabled:!(null==e||!e.deleted_at)||re.isLoadingPayload("report_id",null==e?void 0:e.id)})}),(0,O.jsx)(d.default,{content:(0,x.A)("Delete Report"),children:(0,O.jsx)(i.default,{id:"delete-user-button","data-testid":"delete-report-button-".concat(null==e?void 0:e.id),onClick:function(){return re.submit({report_id:null==e?void 0:e.id})},className:P.button,size:"sm",preset:"outline","aria-label":(0,x.A)("Delete Report"),iconLeft:"far fa-trash",disabled:re.isLoadingPayload("report_id",null==e?void 0:e.id)})})]})]})]})}}))]}),(0,O.jsx)(f.default,{open:M,onClose:function(){return L(!1)},theme:"light",children:(0,O.jsx)(_.A,{report:M,onClose:function(){return L(!1)}})}),(0,O.jsx)(f.default,{open:B,onClose:function(){return U(!1)},theme:"light",children:(0,O.jsx)(S.A,{onClose:function(){return U(!1)}})})]})})}C.propTypes={user:a().object.isRequired,updateProfile:a().func.isRequired,isSaving:a().bool.isRequired};const R=C},17723:(e,t,n)=>{"use strict";n.d(t,{A:()=>c}),n(14041);var r=n(89748),o=n(88133),a=n(80111),i=n(59250),l=n(31085);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(){var e,t,n,c,u,d=(c=(0,a.A)(),u=1,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(c,u)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(c,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],f=(0,o.Ay)("/affiliates/invalid-conversion-summary?df_dmin=".concat(null==d||null===(e=d.dataFilterDates)||void 0===e||null===(e=e.min)||void 0===e?void 0:e.timestamp,"&df_dmax=").concat(null==d||null===(t=d.dataFilterDates)||void 0===t||null===(t=t.max)||void 0===t?void 0:t.timestamp,"&df_interval=day&platform=affiliate\n&recalc=1")),p=f.data,m=f.isLoading,g=null==p||null===(n=p.result)||void 0===n?void 0:n.data;return(0,l.jsx)(i.A,{isLoading:m,title:(0,r.A)("Invalid Conversions"),total:{title:(0,r.A)("Cookie Stuffing"),count:null==g?void 0:g.cookie_stuffing,icon:["far","cookie-bite"]},invalid:{title:(0,r.A)("Conversion Hijacking"),count:null==g?void 0:g.conversion_hijacking,icon:["far","masks-theater"]}})}},18007:(e,t,n)=>{"use strict";e.exports=n.p+"77cb6f0ae57ab6fa7ca5.png"},18136:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(14041),o=n(9260),a=n(1781),i=n(28426),l=n(27805),s=n(89748),c=n(99018),u=n(36990),d=n(47318),f=n(93033),p=n(99226),m=n(73657),g=n(77730),y=n(80111),h=n(36549),x=n(80982),b=n(3373),v=n(41255),A=n(36539),_=n(10068),S=n(31085);function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j=(0,c.createUseStyles)(function(e){return{clickFilterContainer:{display:"flex",justifyContent:"space-between",marginTop:e.spacing[5],marginBottom:e.spacing[5]},left:{display:"flex"}}});const k=function(){var e,t,n=w((0,g.A)(),1)[0],c=w((0,y.A)(),1)[0],O=(0,p.A)().allowedRoles,k=j(),E=w((0,h.A)(),1)[0],N=w((0,r.useState)({}),2),I=N[0],P=N[1],T=w((0,r.useState)({defaults:{sorting:{sortKey:"updated_at",sortOrder:"desc"},api:{endpoint:"/ip/blacklist",responseDataKey:"blacklist"}},accountFilter:{globalAccountFilter:!0},campaignFilter:!1,datePicker:{globalDates:!0,ranges:["1d","yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]},filters:[{label:(0,s.A)("IP Address"),name:"ip_address",type:"radio",options:[{label:(0,s.A)("Starts With"),name:"startsWith",type:"text"}]}]}),2),C=T[0],R=T[1];return(0,S.jsxs)(i.A.Page,{type:"main",children:[(0,S.jsx)(l.default,{title:(0,s.A)("IP Exclusions"),text:(0,s.A)("Track & audit IP exclusions across your campaigns"),contentRight:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(f.A,{roles:["ROOT","ADMIN"],AND:(null==n||null===(e=n.selectedWorkspace)||void 0===e?void 0:e.id)>0,children:(0,S.jsx)(a.default,{content:(0,s.A)("Manually add this IP to exclusion list"),showIcon:!1,children:(0,S.jsx)(b.A,{selectedAccounts:c.selectedAwAccounts})})}),(0,S.jsx)(A.A,{selectedAccounts:c.selectedAwAccounts||[]})]})}),(0,S.jsx)("div",{className:"flex justify-end mb-4",children:(0,S.jsx)(v.A,{selectedItems:I})}),(0,S.jsx)(_.A,{onDataModelChange:R,dataModel:C,className:"mb-4",isSelectable:O(["ROOT","ADMIN"])&&(null==n||null===(t=n.selectedWorkspace)||void 0===t?void 0:t.id)>0,onSelectedRows:function(e){return P(e)},leftPinnedColumns:1,children:function(e){var t,n,r;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("thead",{children:(0,S.jsxs)("tr",{children:[(0,S.jsxs)("th",{"data-sortable-id":"ip_address",children:[(0,s.A)("IP Address"),(0,S.jsx)(u.A,{header:!0,children:(0,s.A)("CIDR")})]}),(0,S.jsxs)("th",{"data-sortable-id":"ip_range_start",children:[(0,s.A)("IP Ranges"),(0,S.jsx)(u.A,{header:!0,groupedCols:!0,children:(0,s.A)("From, To")})]}),(0,S.jsxs)("th",{"data-sortable-id":"customer_id",children:[(0,s.A)("Account"),(0,S.jsx)(u.A,{header:!0,groupedCols:!0,children:(0,s.A)("Campaign")})]}),(0,S.jsx)("th",{children:(0,s.A)("Campaign Type")}),(0,S.jsxs)("th",{"data-sortable-id":"updated_at",children:[(0,s.A)("Date Updated"),(0,S.jsx)(u.A,{header:!0,children:(0,s.A)("Added By")})]}),(0,S.jsx)("th",{"data-align":"right",children:(0,s.A)("Audit Trail")})]})}),(0,S.jsxs)("tbody",{children:[(0,S.jsxs)("td",{children:[(0,S.jsx)(d.A,{maxLength:15,clickToCopy:!0,children:null==e?void 0:e.ip_address}),(0,S.jsx)(u.A,{groupedCols:!0,children:null==e?void 0:e.ip_cidr})]}),(0,S.jsxs)("td",{children:[(0,S.jsx)(d.A,{maxLength:15,clickToCopy:!0,children:null==e?void 0:e.ip_range_start}),(0,S.jsx)(u.A,{groupedCols:!0,children:(0,S.jsx)(d.A,{maxLength:15,clickToCopy:!0,children:null==e?void 0:e.ip_range_stop})})]}),(0,S.jsxs)("td",{children:[(0,S.jsx)(d.A,{maxLength:15,clickToCopy:!0,children:null==e||null===(t=e.customer)||void 0===t?void 0:t.descriptive_name}),(0,S.jsx)(u.A,{groupedCols:!0,children:(0,S.jsx)(d.A,{maxLength:15,clickToCopy:!0,children:null==e||null===(n=e.campaign)||void 0===n?void 0:n.name})})]}),(0,S.jsx)("td",{children:null==e||null===(r=e.campaign)||void 0===r?void 0:r.type}),(0,S.jsxs)("td",{children:[null==e?void 0:e.updated_at,(0,S.jsx)(u.A,{children:(0,x.d)(e)})]}),(0,S.jsx)("td",{"data-align":"right",children:(0,S.jsx)(a.default,{content:!0!==(null==E?void 0:E.user.obfuscate)?(0,s.A)("View an audit history of this IP"):(0,s.A)("Audit trail feature not available with obfuscated IPs"),children:(0,S.jsx)(o.default,{id:"audit-trail-".concat(null==e?void 0:e.ip_address),"data-testid":null==e?void 0:e.ip_address,preset
2:"outline",size:"sm",as:m.Link,className:k.button,to:"/audit-trail?ip=".concat(null==e?void 0:e.ip_address,"&dsp=exclusions"),"aria-label":(0,s.A)("Audit Trail"),iconLeft:["far","timeline-arrow"],style:{width:"fit-content"},disabled:!0===(null==E?void 0:E.user.obfuscate)})})})]})]})}})]})}},18141:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CountryCodes:()=>M.A,GetViewportSizeHook:()=>d.A,LocalizeDate:()=>le.yJ,ToastContainer:()=>R.N9,addDays:()=>D.f,addMonths:()=>B.P,affiliateLabels:()=>w.zG,areObjectsEqual:()=>p.A,calcPercentage:()=>g.o,capitaliseFirstLetter:()=>b.o,clone:()=>o.A,cloneDeep:()=>a.A,compareAsc:()=>U.z,dateRestriction:()=>E.A,debounce:()=>r.A,defaultDateRange:()=>N.A,differenceInDays:()=>F.c,differenceInHours:()=>G.M,differenceInMinutes:()=>W.o,differenceInSeconds:()=>z.O,endOfDay:()=>V.D,endOfMonth:()=>q.p,format:()=>K.GP,formatFraudTypes:()=>w.J8,fromZonedTime:()=>L.uk,getAWIds:()=>s.B,getAffiliateLabels:()=>w.T5,getCurrencySymbol:()=>m.A,getDay:()=>H.P,getFraudTypeLabels:()=>w.ic,getHasNoDataScope:()=>I.A,getHours:()=>Y.q,getIpReasons:()=>y.A,getIvtClassificationColours:()=>T.A,getRiskLevelColour:()=>h.A,getScopedPlatforms:()=>P.A,getSelectedPlatform:()=>k.A,getSelectedWorkspace:()=>j.A,getTopReasons:()=>w.Bn,getUnixTime:()=>$._,isAfter:()=>Z.d,isBefore:()=>X.Y,isEmpty:()=>p.I,isEmptyObject:()=>S.A,isImpersonationToken:()=>O.A,isUserOrManager:()=>c.A,isValid:()=>J.f,localiseNumber:()=>g.m,normaliseWorkspaceId:()=>_.A,parse:()=>Q.qg,parseISO:()=>se.H,parseJWT:()=>f.A,quickValidate:()=>l.A,restrictLengthOfString:()=>u.A,shouldShowFilter:()=>A.A,sideChoice:()=>x.A,startOfDay:()=>ee.o,startOfMonth:()=>te.w,stringDefaultIfEmpty:()=>v.A,sub:()=>ne.j,subDays:()=>re.e,subMonths:()=>oe.a,subYears:()=>ae.d,toDate:()=>ie.a,toZonedTime:()=>L.L_,toastNotification:()=>C.A,validateFormField:()=>i.Ay,validation:()=>i.Eq});var r=n(49917),o=n(11525),a=n(71027),i=n(2043),l=n(66773),s=n(67677),c=n(86119),u=n(32354),d=n(49714),f=n(92458),p=n(10430),m=n(35859),g=n(19863),y=n(72748),h=n(15065),x=n(9646),b=n(60769),v=n(52356),A=n(40566),_=n(47352),S=n(64534),w=n(40699),O=n(46622),j=n(85981),k=n(7801),E=n(69800),N=n(90219),I=n(88004),P=n(45949),T=n(68646),C=n(24284),R=n(65349),M=n(59370),L=n(63648),D=n(59562),B=n(71174),U=n(9352),F=n(74623),G=n(70737),W=n(10331),z=n(70747),V=n(78806),q=n(34774),K=n(83223),H=n(19706),Y=n(89623),$=n(71449),Z=n(62208),X=n(24752),J=n(30508),Q=n(45493),ee=n(44925),te=n(71073),ne=n(6616),re=n(47491),oe=n(45459),ae=n(99468),ie=n(39665),le=n(59818),se=n(336)},18485:(e,t,n)=>{"use strict";e.exports=n.p+"382071c11ffecac2a48e.svg"},18580:(e,t,n)=>{"use strict";n.d(t,{A:()=>c}),n(14041);var r=n(20340),o=n(36549),a=n(89748),i=n(93033),l=n(31085);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const c=function(e){var t,n,c,u,d=e.className,f=(c=(0,o.A)(),u=1,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(c,u)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(c,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],p=null!==(t=null==f||null===(n=f.alerts)||void 0===n?void 0:n.notifications)&&void 0!==t?t:[];if(0===p.length)return null;function m(e,t){return t?(0,a.A)(e,t):(0,a.A)(e)}return(0,l.jsx)(i.A,{accountRoles:["ADMIN","ROOT","OWNER"],children:(0,l.jsx)("div",{className:d,children:p.map(function(e){return(0,l.jsx)(r.A,{title:m((null==e?void 0:e.title)||"",null==e?void 0:e.text_values)||"",text:m((null==e?void 0:e.description)||"",null==e?void 0:e.text_values)||"",to:(t=(null==e?void 0:e.link_path)||"",n=(null==e?void 0:e.recommendation_id)||-1,o=(null==e?void 0:e.recommendation_name)||"",t||"/insights/alerts?id=".concat(n,"&name=").concat(o)),className:"mb-8",severity:null==e?void 0:e.severity,buttonText:(null==e?void 0:e.link_text)||"View"},e.recommendation_id||-1);var t,n,o})})})}},19192:(e,t,n)=>{"use strict";n.d(t,{A:()=>A}),n(14041);
2var r=n(46389),o=n(28426),a=n(27805),i=n(89748),l=n(93033),s=n(98536),c=n(83223),u=n(62161),d=n(36990),f=n(92523),p=n(53145),m=n(77538),g=n(31085);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){if(!e)return"";var t=e.indexOf("_");return-1===t?e:e.slice(t+1)}const A=function(){var e=[{label:(0,i.A)("Account"),type:"radio",name:"account",queryKey:"account",queryTranslator:"textSearch",options:[{label:(0,i.A)("contains"),name:"contains",type:"text",value:""}]},{label:(0,i.A)("Campaign"),type:"radio",name:"campaign",queryKey:"campaign",queryTranslator:"textSearch",options:[{label:(0,i.A)("contains"),name:"contains",type:"text",value:""}]},{label:(0,i.A)("User Email"),type:"radio",name:"userEmail",queryKey:"user_email",queryTranslator:"textSearch",options:[{label:(0,i.A)("contains"),name:"contains",type:"text",value:""}]},{label:(0,i.A)("Protection Status"),type:"radio",name:"toStatus",queryKey:"to_status",options:[{label:(0,i.A)("All"),shortLabel:(0,i.A)("All"),type:"radio",name:"all",queryTranslator:"singleTextValueRadio",value:!0},{label:(0,i.A)("Protected"),shortLabel:(0,i.A)("Protected"),type:"radio",name:"protected",queryTranslator:"singleTextValueRadio",value:!1},{label:(0,i.A)("Monitored"),shortLabel:(0,i.A)("Monitored"),type:"radio",name:"monitored",queryTranslator:"singleTextValueRadio",value:!1},{label:(0,i.A)("Disabled"),shortLabel:(0,i.A)("Disabled"),type:"radio",name:"disabled",queryTranslator:"singleTextValueRadio",value:!1}]}],t=(0,s.useApi)({url:"/protection_change_log",sortKey:"change_date",filters:e});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.A,{impersonatingOnly:!0,platforms:["google"],children:(0,g.jsxs)(o.A.Page,{type:"settings",children:[(0,g.jsx)(a.default,{title:(0,i.A)("Protection Change Log"),text:(0,i.A)("View details of changes made to Google Account and Campaign protection statuses."),contentRight:(0,g.jsx)(m.A,{filters:t.activeFilters})}),(0,g.jsxs)("div",{className:"flex distribute-space-between mb-4",children:[(0,g.jsxs)("div",{className:"flex",children:[(0,g.jsx)(l.A,{platforms:["google"],children:(0,g.jsx)("div",{className:"mr-2",children:(0,g.jsx)(p.A,x({},t.accountSelectConnector))})}),(0,g.jsx)(r.A,x({},t.filterConnector))]}),(0,g.jsx)(f.default,{})]}),(0,g.jsx)(u.A,x(x({},t.tableConnector),{},{noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{"data-sortable-id":"change_date",children:(0,i.A)("Change Date")}),(0,g.jsxs)("th",{"data-sortable-id":"account_name",children:[(0,i.A)("Account Name"),(0,g.jsx)(d.A,{header:!0,children:(0,i.A)("Account ID")})]}),(0,g.jsxs)("th",{"data-sortable-id":"campaign_name",children:[(0,i.A)("Campaign Name"),(0,g.jsx)(d.A,{header:!0,children:(0,i.A)("Campaign ID")})]}),(0,g.jsx)("th",{"data-tooltip":(0,i.A)("Shows whether Lunio is actively protecting or only monitoring this account or campaign."),children:(0,i.A)("Protection Status")}),(0,g.jsxs)("th",{"data-sortable-id":"user_email",children:[(0,i.A)("User Email"),(0,g.jsx)(d.A,{header:!0,children:(0,i.A)("User Name")}
2)]}),(0,g.jsx)("th",{children:(0,i.A)("Impersonated By")})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsx)("td",{children:(null==e?void 0:e.change_date)&&(0,c.GP)(new Date(null==e?void 0:e.change_date),"MMM d, H:mm")}),(0,g.jsxs)("td",{children:[null==e?void 0:e.account_name,(0,g.jsx)(d.A,{children:null==e?void 0:e.account_id})]}),(0,g.jsxs)("td",{children:[null==e?void 0:e.campaign_name,(0,g.jsx)(d.A,{children:null==e?void 0:e.campaign_id})]}),(0,g.jsx)("td",{children:(t=null==e?void 0:e.to_status,t?t.charAt(0).toUpperCase()+t.slice(1):"")}),(0,g.jsxs)("td",{children:[null==e?void 0:e.user_email,(0,g.jsx)(d.A,{children:null==e?void 0:e.user_name})]}),(0,g.jsx)("td",{children:v(null==e?void 0:e.impersonated_by)})]})]});var t}}))]})}),(0,g.jsx)(l.A,{impersonatingOnly:!0,isNotGoogle:!0,children:(0,g.jsxs)(o.A.Page,{type:"settings",children:[(0,g.jsx)(a.default,{title:(0,i.A)("Protection Change Log"),text:(0,i.A)("View details of changes made to Google Account and Campaign protection statuses.")}),(0,g.jsx)("div",{className:"flex justify-center",children:(0,i.A)("The Change Log is only available for Google accounts. Please switch to the Google platform to see the page.")})]})})]})}},19325:(e,t,n)=>{"use strict";e.exports=n.p+"74713893d7c625050b4c.svg"},19383:(e,t,n)=>{"use strict";n.d(t,{A:()=>_}),n(14041);var r=n(77223),o=n(30021),a=n(82138),i=n(31085);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var s=["node"],c=["node"],u=["node"],d=["node"],f=["node"],p=["node"],m=["node"],g=["node"],y=["node"],h=["node","inline","className","children"];function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const _={h1:function(e){e.node;var t=A(e,s);return(0,i.jsx)(a.default,b({as:"h4",className:"mt-5"},t))},h2:function(e){e.node;var t=A(e,c);return(0,i.jsx)(a.default,b({as:"h5",className:"mt-5"},t))},h3:function(e){e.node;var t=A(e,u);return(0,i.jsx)(a.default,b({as:"h6",className:"mt-4"},t))},p:function(e){e.node;var t=A(e,d);return(0,i.jsx)(o.default,b({className:"mb-2",style:{fontSize:16}},t))},ul:function(e){e.node;var t=A(e,f);return(0,i.jsx)("ul",b({style:{listStyleType:"disc",listStylePosition:"inside",marginTop:12}},t))},ol:function(e){e.node;var t=A(e,p);return(0,i.jsx)("ol",b({style:{listStyleType:"decimal",listStylePosition:"inside",marginTop:12}},t))},li:function(e){e.node;var t=A(e,m);return(0,i.jsx)("li",b({},t))},hr:function(e){e.node;var t=A(e,g);return(0,i.jsx)(r.default,b({className:"mb-10 mt-10"},t))},blockquote:function(e){e.node;var t=A(e,y);return(0,i.jsx)("blockquote",b({style:{borderLeft:"4px solid #e5e7eb",margin:"1rem 0",paddingLeft:"1rem",color:"#6b7280",fontStyle:"italic"}},t))},code:function(e){e.node;var t=e.inline,n=(e.className,e.children),r=A(e,h);return(0,i.jsx)("code",b(b({style:{backgroundColor:"#F5F5F5",padding:t?"0.15rem 0.4rem":"0.75rem 1rem",borderRadius:"12px",fontSize:"0.9rem",fontFamily:"monospace",display:t?"inline":"block",whiteSpace:t?"pre":"pre-wrap"}},r),{},{children:n}))}}},19559:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96895),o=(0,r.KU)(function(){return sessionStorage});const a=(0,r.tG)("globalFiltersAtom",{pagination:{},dataFilterDates:{interval:"day",min:{localTimestamp:1e9,timestamp:1e9},max:{localTimestamp:1e9,timestamp:1e9}
2,preset:null,selected:{label:"Custom Range",value:"customRange"}},filteredGoogleAwIds:[],selectedAwAccounts:[]},o)},19664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.disabled,r=e.onSend,s=function(e){if(Array.isArray(e))return e}(t=o.default.useState(""))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,a,i=[],l=!0,s=!1;try{for(o=(t=t.call(e)).next,!2;!(l=(n=o.call(t)).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return p(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=s[0],u=s[1],f=(0,i.usePostHog)();function m(){var e=c.trim();if(e&&!n){var t=r(e);null==f||f.capture("chat_message_sent",{message_length:e.length,turn_id:t}),u("")}}return(0,l.jsxs)("div",d(d({},{className:"display-x78zum5 flexShrink-x2lah0s alignItems-x6s0dn4 gap-x167g77z borderTopWidth-x178xt8z borderTopStyle-x13fuv20 borderTopColor-xlwlnjq backgroundColor-x18oya0d padding-xc7ga6q","data-style-src":"ChatComposer/index.tsx:8"}),{},{children:[(0,l.jsx)("textarea",d(d({value:c,rows:1,placeholder:"Ask Lunio anything..."},{className:"flex-x98rzlu height-x1vqgdyp maxHeight-xctk3hg boxSizing-x9f619 resize-xtt52l0 borderRadius-xur7f20 borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x2ci420 paddingTop-xexx8yu paddingBottom-x18d9i69 paddingLeft-xf18ygs paddingRight-xnuq7ks fontSize-x4z9k3i lineHeight-x1bsvlme color-x1jsblnb outline-x1a2a7pz fontFamily-xjb2p0i borderColor-x1jttkha color-x20kg4l","data-style-src":"ChatComposer/index.tsx:19"}),{},{onChange:function(e){return u(e.target.value)},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),m())}})),(0,l.jsx)(a.ToolTip,{content:"Send (Enter)",children:(0,l.jsx)("button",d(d({type:"button","aria-label":"Send",disabled:n||!c.trim()},{className:"width-x100vrsf height-x1vqgdyp flexShrink-x2lah0s borderRadius-xur7f20 backgroundColor-x4x7r6d color-xf72ejy border-x1gs6z28 cursor-x1ypdohk display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k backgroundColor-x1i4z515 opacity-xijokvz cursor-x1s07b3s","data-style-src":"ChatComposer/index.tsx:45"}),{},{onClick:m,children:(0,l.jsx)(a.Icon,{name:["fas","arrow-up"]})}))})]}))};var r=s(n(25751)),o=s(n(14041)),a=n(45365),i=n(75267),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var m=r.default;m(".display-x78zum5{display:flex}",3e3),m(".flexShrink-x2lah0s{flex-shrink:0}",3e3),m(".alignItems-x6s0dn4{align-items:center}",3e3),m(".gap-x167g77z{gap:8px}",2e3),m(".borderTopWidth-x178xt8z{border-top-width:1px}",4e3),m(".borderTopStyle-x13fuv20{border-top-style:solid}",4e3),m(".borderTopColor-xlwlnjq{border-top-color:var(--gray200-x1cfnqzm)}",4e3),m(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),m(".padding-xc7ga6q{padding:12px}",1e3),m(".flex-x98rzlu{flex:1}",2e3),m(".height-x1vqgdyp{height:40px}",4e3),m(".maxHeight-xctk3hg{max-height:160px}",4e3),m(".boxSizing-x9f619{box-sizing:border-box}",3e3),m(".resize-xtt52l0{resize:none}",3e3),m(".borderRadius-xur7f20{border-radius:8px}",2e3),m(".borderWidth-xmkeg23{border-width:1px}",2e3),m(".borderStyle-x1y0btm7{border-style:solid}",2e3),m(".borderColor-x2ci420{border-color:var(--gray200-x1cfnqzm)}",2e3),m(".paddingTop-xexx8yu{padding-top:0}",4e3),m(".paddingBottom-x18d9i69{padding-bottom:0}",4e3),m(".paddingLeft-xf18ygs{padding-left:12px}",4e3),m(".paddingRight-xnuq7ks{padding-right:12px}",4e3),m(".fontSize-x4z9k3i{font-size:13px}",3e3),m(".lineHeight-x1bsvlme{line-height:38px}",3e3),m(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),m(".outline-x1a2a7pz{outline:none}",2e3),m(".fontFamily-xjb2p0i{font-family:inherit}",3e3),m(".borderColor-x1jttkha:focus{border-color:var(--primary400-x6nrv7m)}",2150),m(".color-x20kg4l::placeholder{color:var(--gray400-x79zdqj)}",8e3),m(".width-x100vrsf{width:40px}",4e3),m(".backgroundColor-x4x7r6d{background-color:var(--primary400-x6nrv7m)}",3e3),m(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),m(".border-x1gs6z28{border:none}
2",1e3),m(".cursor-x1ypdohk{cursor:pointer}",3e3),m(".justifyContent-xl56j7k{justify-content:center}",3e3),m(".backgroundColor-x1i4z515:hover{background-color:var(--primary500-x1h2cyxj)}",3130),m(".opacity-xijokvz:disabled{opacity:.5}",3092),m(".cursor-x1s07b3s:disabled{cursor:not-allowed}",3092)},19758:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(62720),s=n(9486),c=n(55618),u=n(30021),d=n(50324),f=n(89748),p=n(99018),m=n(88133),g=n(11182),y=n(36549),h=n(47548),x=n(31085);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return(t=function(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O=(0,p.createUseStyles)(function(e){return{iconImage:{width:"50px",height:"50px",borderRadius:"50%",marginRight:"10px"},right:{display:"flex",justifyContent:"flex-end",textAlign:"right",paddingBottom:e.spacing[3]},greyOut:{opacity:.5,pointerEvents:"none"}}});function j(e){var t,n=e.editingUser,o=e.updateUser,a=e.updatePassword,p=e.isUpdating,b=e.deleteUser,v=e.onClose;if(!n)return null;var _=(0,m.Ay)("/users/".concat(n.id)).data,w=O(),j=S((0,y.A)(),1)[0],k=S((0,g.A)(),1)[0],E=S((0,r.useState)(!0),2),N=E[0],I=E[1],P=S((0,r.useState)(!1),2),T=P[0],C=P[1],R=S((0,r.useState)(A(A({},n),{},{newPassword:"",confirmPassword:""})),2),M=R[0],L=R[1];(0,r.useEffect)(function(){L(n?A(A({},n),{},{newPassword:"",confirmPassword:""}):{})},[n]);var D,B,U=[{label:"Admin",value:"ADMIN"},{label:"Enrolled",value:"ENROL"}];function F(e){return"USER"===e.role_identifier||"MANAGER"===e.role_identifier?"ENROL":e.role_identifier}function G(e){if(!e)return!1;var t=k.accountRoleIdentifier;return!("ROOT"===e&&"ROOT"!==t||"ROOT"!==t&&"ADMIN"!==t)}return(0,x.jsxs)("div",{children:[(0,x.jsxs)(c.default.Section,{children:[(0,x.jsxs)(u.default,{preset:"formSectionTitle",children:[M.first_name," ",M.last_name]}),(0,x.jsx)(u.default,{preset:"formSectionSubTitle",className:"mb-4",children:void 0===(null===(B=j.user)||void 0===B||null===(B=B.settings)||void 0===B?void 0:B.account_title)?(0,f.A)("Your Name Here"):j.user.settings.account_title})]}),(0,x.jsx)(c.default.Section,{children:(0,x.jsxs)("div",{className:"flex content-center items-center mb-10",children:[(0,x.jsx)("div",{className:w.iconImage,children:(0,x.jsx)("img",{alt:"",src:h})}),(0,x.jsxs)("div",{className:"flex content-center items-center",children:[(0,x.jsxs)("div",{className:"mr-8",children:[M.status&&(0,x.jsx)(u.default,{children:(0,f.A)("Active User")}),M.status&&(0,x.jsx)(u.default,{children:(0,f.A)("User can log in")}),!M.status&&(0,x.jsx)(u.default,{children:(0,f.A)("Inactive User")}),!M.status&&(0,x.jsx)(u.default,{children:(0,f.A)("User can't log in")})]}),(0,x.jsx)(l.default.Checkbox,{onClick:function(){L(A(A({},M),{},{status:!M.status}))},"data-testid":"edit-user-status-checkbox",value:M.status,disabled:!(G(M.role_identifier)&&"ROOT"!==M.role_identifier)})]})]})}),(0,x.jsxs)(d.A,{initialFormValues:M,onFormDataChange:function(e){I(d.A.isValid(e)),L(A(A({},M),{},{first_name:e.values.first_name,last_name:e.values.last_name,email:e.values.email,newPassword:e.values.newPassword,confirmPassword:e.values.confirmPassword}))},hideBottomErrors:!0,rules:{first_name:{validation:{isNotEmpty:{match:!0,errorMessage:(0,f.A)("First Name must not be empty")}}},last_name:{validation:{isNotEmpty:{match:!0,errorMessage:(0,f.A)("Last Name must not be empty")}}}
2,email:{validation:{isEmail:{match:3,errorMessage:(0,f.A)("Must use a valid email address")},isNotEmpty:{match:!0,errorMessage:(0,f.A)("Email must not be empty")}}},newPassword:{validation:{hasMinimumLength:{match:6,errorMessage:(0,f.A)("Password must be at least 6 characters long")}}},confirmPassword:{validation:{hasMinimumLength:{match:6,errorMessage:(0,f.A)("Confirm Password must be at least 6 characters long")},valuesMatch:{match:"newPassword",errorMessage:(0,f.A)("Passwords must match")}}}},children:[(0,x.jsxs)(c.default.Section,{heading:(0,f.A)("User details"),children:[(0,x.jsx)(l.default,{className:"mb-4",name:"first_name","data-testid":"edit-first-name-input",label:(0,f.A)("First Name"),hideErrorStyles:!T,showErrors:T}),(0,x.jsx)(l.default,{className:"mb-4",name:"last_name","data-testid":"edit-last-name-input",label:(0,f.A)("Last Name"),hideErrorStyles:!T,showErrors:T}),(0,x.jsx)(l.default,{className:"mb-4",name:"email","data-testid":"edit-email-input",label:(0,f.A)("Email Address"),hideErrorStyles:!T,showErrors:T})]}),G(M.role_identifier)&&(0,x.jsxs)(c.default.Section,{heading:(0,f.A)("Password"),children:[(0,x.jsx)(l.default,{className:"mb-3",type:"password",name:"newPassword","data-testid":"edit-password-input",label:(0,f.A)("New Password"),hideErrorStyles:!T,showErrors:T}),(0,x.jsx)(l.default,{className:"mb-4",type:"password",name:"confirmPassword","data-testid":"edit-password-confirm-input",label:(0,f.A)("Confirm New Password"),hideErrorStyles:!T,showErrors:T})]})]}),1===(null===(t=j.user)||void 0===t||null===(t=t.account)||void 0===t?void 0:t.mfa_enabled)&&G(M.role_identifier)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.default,{className:"mb-4",children:(0,f.A)("Multifactor Authentication")}),(0,x.jsx)(l.default.Checkbox,{onClick:function(){L(A(A({},M),{},{multifactor:!M.multifactor}))},value:M.multifactor,className:"mb-4"})]}),G(M.role_identifier)&&(null==_?void 0:_.result)&&(0,x.jsx)(c.default.Section,{heading:(0,f.A)("Permissions"),children:(0,x.jsx)(l.default.Select,{className:"mb-4",options:U,onChange:function(e){(["ROOT","ADMIN"].includes(k.accountRoleIdentifier)||G(M.role_identifier)||"ROOT"===M.role_identifier)&&L(A(A({},M),{},{role_identifier:e.value}))},label:(0,f.A)("Role"),value:{label:null===(D=U.find(function(e){return(null==e?void 0:e.value)===F(M)}))||void 0===D?void 0:D.label,value:F(M)}})}),(0,x.jsx)(c.default.Section,{children:(0,x.jsxs)("div",{className:w.right,children:[G(M.role_identifier)&&"ROOT"!==M.role_identifier&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.default,{className:"mb-6 mr-4 justify-end text-align-left",children:(0,f.A)("WARNING. Deleting this user is permanent. It will remove all of their data. This user cannot be recovered in the future.")}),(0,x.jsx)(i.default,{preset:"destructive",className:"shrink-0 mr-2",onClick:function(){return b(M)},"data-testid":"edit-user-delete-user-button",disabled:p,children:(0,f.A)("Delete User")})]}),(0,x.jsx)(i.default,{className:"mr-2",onClick:function(){return v(!1)},preset:"outline",children:(0,f.A)("Cancel")}),(0,x.jsx)(i.default,{id:"edit-user-save-changes-button","data-testid":"edit-user-save-changes-button",className:"mr-4",loading:p,onClick:function(){return C(!0),void(N&&(o(A(A({},M),{},{role_identifier:F(M)})),(null==M||null===(e=M.newPassword)||void 0===e?void 0:e.length)>5&&(null==M||null===(t=M.confirmPassword)||void 0===t?void 0:t.length)>5&&(null==M?void 0:M.newPassword)===(null==M?void 0:M.confirmPassword)&&a(M)));var e,t},disabled:!N&&T||p,children:(0,f.A)("Save Changes")})]})})]})}j.propTypes={editingUser:a().object.isRequired,updateUser:a().func.isRequired,updatePassword:a().func.isRequired,isUpdating:a().bool.isRequired,deleteUser:a().func.isRequired,onClose:a().func.isRequired};const k=j},19838:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Bar:()=>a.default,BarAndLine:()=>o.A,Discrete:()=>l.A,Geo:()=>s.A,GroupedBarWithList:()=>p.A,Line:()=>r.A,Pie:()=>u.A,Scatter:()=>i.default,ScatterWithSidebar:()=>f.A,Time:()=>c.A,colourScale:()=>d.default,default:()=>m});var r=n(76937),o=n(48915),a=n(1582),i=n(24131),l=n(34614),s=n(59446),c=n(74704),u=n(43451),d=n(16563),f=n(40016),p=n(61323);const m=r.A},19863:(e,t,n)=>{"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.round(e/t*100*Math.pow(10,n))/Math.pow(10,n)||0}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return"string"==typeof e?e:null===e?"":t>
2-1?e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t}):e.toLocaleString()}n.d(t,{m:()=>o,o:()=>r})},19870:(e,t,n)=>{"use strict";n.d(t,{A:()=>y}),n(14041);var r=n(89748),o=n(56197),a=n(76449),i=n(28426),l=n(78484),s=n(27805),c=n(62161),u=n(36990),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=function(e){var t,n,f,p=e.data,g=e.handlePagination,y=e.isLoading,h=e.activeFilters,x=e.onFilterChange,b=[{label:(0,r.A)("Account Name"),name:"accountName",type:"radio",options:[{label:(0,r.A)("Starts With"),name:"startsWith",type:"text"}]},{label:(0,r.A)("Account ID"),name:"accountId",type:"radio",options:[{label:(0,r.A)("Starts With"),name:"startsWith",type:"text"}]},{label:(0,r.A)("Account Status"),name:"accountStatus",type:"checkbox",options:[{label:(0,r.A)("Include Protected"),shortLabel:(0,r.A)("Protected"),type:"checkbox",name:"include_protected"},{label:(0,r.A)("Include Monitored"),shortLabel:(0,r.A)("Monitored"),type:"checkbox",name:"include_monitored"},{label:(0,r.A)("Include Disabled"),shortLabel:(0,r.A)("Disabled"),type:"checkbox",name:"include_disabled"}]}];function v(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=m({},h),n={};return Object.keys(t).forEach(function(r){var o=b.some(function(e){return r.startsWith(e.name)});(e?!o:o)&&(n[r]=t[r])}),n}function A(e){return null!=e&&e.protection_enabled?{icon:["far","shield-check"],colourName:"success",text:(0,r.A)("Protected")}:null!=e&&e.monitoring_enabled?{icon:["far","wave-pulse"],colourName:"purple-weak",text:(0,r.A)("Monitored")}:{icon:["far","ban"],colourName:"danger",text:(0,r.A)("Disabled")}}return(0,d.jsxs)(i.A.Page,{type:"settings",children:[(0,d.jsx)(s.default,{type:"settings",title:(0,r.A)("Google Accounts")}),(0,d.jsx)(a.default,{filterConfig:b,initialValues:v(),onFilterChange:function(e){x(m(m({},v(!0)),e))}}),(0,d.jsx)("div",{className:"mb-5"}),(0,d.jsx)(c.A,{rows:null==p?void 0:p.adwords_customers,totalItems:null==p||null===(t=p.pagination)||void 0===t?void 0:t.total,totalPages:null==p||null===(n=p.pagination)||void 0===n?void 0:n.last_page,pageNumber:null==p||null===(f=p.pagination)||void 0===f?void 0:f.current_page,handlePagination:g,isLoading:y,limit:null==h?void 0:h.limit,noDataTitle:(0,r.A)("No Google Accounts found"),noDataSubTitle:(0,r.A)("You may not have added a Google token yet or if you have then it may take a few hours to sync your data"),noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){var t,n,a,i;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{children:[(0,d.jsxs)("th",{children:[(0,r.A)("Account Name"),(0,d.jsx)(u.A,{header:!0,children:(0,r.A)("Account ID")})]}),(0,d.jsx)("th",{children:(0,r.A)("Status")}),(0,d.jsx)("th",{children:(0,r.A)("Workspace")})]})}),(0,d.jsxs)("tbody",{children:[(0,d.jsxs)("td",{children:[(null==e?void 0:e.descriptive_name)||"undefined",(0,d.jsx)(u.A,{children:(null==e?void 0:e.aw_id_formatted)||"undefined"})]}),(0,d.jsx)("td",{children:(0,d.jsx)(o.default,{colourName:A(e).colourName,iconLeft:A(e).icon,children:A(e).text})}),(0,d.jsxs)("td",{children:[(null==e||null===(t=e.assigned_workspace)||void 0===t?void 0:t.name)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.A,{name:null==e||null===(n=e.assigned_workspace)||void 0===n?void 0:n.name})," ",null==e||null===(a=e.assigned_workspace)||void 0===a?void 0:a.name]}),!(null!=e&&null!==(i=e.assigned_workspace)&&void 0!==i&&i.name)&&(0,d.jsx)(d.Fragment,{children:(0,r.A)("Unassigned")})]})]})]})}})]})}},19895:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.chart,r=e.messageId,c=function(e){if(Array.isArray(e))return e}(t=o.default.useState(void 0!==n.message_id))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,a,i=[],l=!0,s=!1;try{for(o=(t=t.call(e)).next,!2;!(l=(n=o.call(t)).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return m(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=c[0],d=c[1],p=(0,l.usePostHog)(),g=(0,i.useChartFrame)(n,r,{enabled:u,hostInfo:{name:"lunio-dashboard",version:"1.0.0"}}),y=g.iframeRef,h=g.rendered,x=g.sandbox,b=g.exportPng,v=g.exportCsv,A=g.exportingPng,_=g.exportingCsv,S=g.canExportCsv;return(0,s.jsxs)("div",f(f({},{className:"width-xh8yej3 maxWidth-x193iq5w overflow-xb3r6kr borderRadius-xur7f20 borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x2ci420 backgroundColor-x1ex0zz8","data-style-src":"ChartFrame/index.tsx:15"}),{},{children:[(0,s.jsxs)("div",f(f({},{className:"display-x78zum5 width-xh8yej3 alignItems-x6s0dn4 gap-x1jnr06f paddingTop-x1iorvi4 paddingBottom-xjkvuk6 paddingLeft-x11iknt3 paddingRight-x1ug7bdz","data-style-src":"ChartFrame/index.tsx:25"}),{},{children:[(0,s.jsx)(a.ToolTip,{content:u?"Collapse chart":"Expand chart",children:(0,s.jsxs)("button",f(f({type:"button","aria-label":u?"Collapse chart":"Expand chart"},{className:"display-x78zum5 minWidth-xeuugli flex-x98rzlu cursor-x1ypdohk alignItems-x6s0dn4 gap-x167g77z borderRadius-x1kogg8i paddingTop-x1iorvi4 paddingBottom-xjkvuk6 paddingLeft-x11iknt3 paddingRight-x1ug7bdz fontSize-xfifm61 fontWeight-xk50ysn color-x1jsblnb background-x11g6tue border-x1gs6z28 textAlign-xdpxx8g backgroundColor-x1is1enf","data-style-src":"ChartFrame/index.tsx:35"}),{},{onClick:function(){return d(function(e){return!e})},children:[(0,s.jsx)("span",f(f({},{className:"color-xbdn2ka flexShrink-x2lah0s","data-style-src":"ChartFrame/index.tsx:57"}),{},{children:(0,s.jsx)(a.Icon,{name:u?["far","chevron-down"]:["far","chevron-right"]})})),(0,s.jsx)("span",f(f({},{className:"color-x183cm2b flexShrink-x2lah0s","data-style-src":"ChartFrame/index.tsx:61"}),{},{children:(0,s.jsx)(a.Icon,{name:["far","chart-line"]})})),(0,s.jsx)("span",f(f({},{className:"minWidth-xeuugli flex-x98rzlu overflow-xb3r6kr textOverflow-xlyipyv whiteSpace-xuxw1ft","data-style-src":"ChartFrame/index.tsx:65"}),{},{children:n.tool}))]}))}),h&&(0,s.jsx)(a.ToolTip,{content:"Download as PNG - a snapshot of what's on screen right now",children:(0,s.jsx)("button",f(f({type:"button","aria-label":"Download chart as PNG",disabled:A},{className:"flexShrink-x2lah0s cursor-x1ypdohk borderRadius-x1kogg8i padding-x1ruevkc color-xbdn2ka background-x11g6tue border-x1gs6z28 backgroundColor-x1is1enf color-x1hxxw9p opacity-xijokvz cursor-x1s07b3s","data-style-src":"ChartFrame/index.tsx:72"}),{},{onClick:function(){null==p||p.capture("chat_chart_exported",{format:"png",tool:n.tool}),b()},children:(0,s.jsx)(a.Icon,{name:["far","download"]})}))}),S&&(0,s.jsx)(a.ToolTip,{content:"Export the underlying data as CSV",children:(0,s.jsx)("button",f(f({type:"button","aria-label":"Export chart data as CSV",disabled:_},{className:"flexShrink-x2lah0s cursor-x1ypdohk borderRadius-x1kogg8i padding-x1ruevkc color-xbdn2ka background-x11g6tue border-x1gs6z28 backgroundColor-x1is1enf color-x1hxxw9p opacity-xijokvz cursor-x1s07b3s","data-style-src":"ChartFrame/index.tsx:72"}),{},{onClick:function(){null==p||p.capture("chat_chart_exported",{format:"csv",tool:n.tool}),v()},children:(0,s.jsx)(a.Icon,{name:["far","file-arrow-down"]})}))})]})),u&&n.rendererHtml&&(0,s.jsx)("iframe",f({ref:y,title:n.tool,srcDoc:n.rendererHtml,sandbox:x},{className:"height-xcx40h0 width-xh8yej3 borderTopWidth-x178xt8z borderTopStyle-x13fuv20 borderTopColor-xlwlnjq backgroundColor-x18oya0d display-x1lliihq","data-style-src":"ChartFrame/index.tsx:89"})),u&&!n.rendererHtml&&(0,s.jsx)("p",f(f({},{className:"borderTopWidth-x178xt8z borderTopStyle-x13fuv20 borderTopColor-xlwlnjq paddingTop-xyamay9 paddingBottom-x1l90r2v paddingLeft-xf18ygs paddingRight-xnuq7ks fontSize-xfifm61 color-xbdn2ka","data-style-src":"ChartFrame/index.tsx:98"}),{},{children:"This chart wasn't saved with its renderer."}))]}))};var r=c(n(25751)),o=c(n(14041)),a=n(45365),i=n(66753),l=n(75267),s=n(31085);
2function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g=r.default;g(".width-xh8yej3{width:100%}",4e3),g(".maxWidth-x193iq5w{max-width:100%}",4e3),g(".overflow-xb3r6kr{overflow:hidden}",2e3),g(".borderRadius-xur7f20{border-radius:8px}",2e3),g(".borderWidth-xmkeg23{border-width:1px}",2e3),g(".borderStyle-x1y0btm7{border-style:solid}",2e3),g(".borderColor-x2ci420{border-color:var(--gray200-x1cfnqzm)}",2e3),g(".backgroundColor-x1ex0zz8{background-color:var(--gray25-x1nef6k3)}",3e3),g(".display-x78zum5{display:flex}",3e3),g(".alignItems-x6s0dn4{align-items:center}",3e3),g(".gap-x1jnr06f{gap:4px}",2e3),g(".paddingTop-x1iorvi4{padding-top:4px}",4e3),g(".paddingBottom-xjkvuk6{padding-bottom:4px}",4e3),g(".paddingLeft-x11iknt3{padding-left:6px}",4e3),g(".paddingRight-x1ug7bdz{padding-right:6px}",4e3),g(".minWidth-xeuugli{min-width:0}",4e3),g(".flex-x98rzlu{flex:1}",2e3),g(".cursor-x1ypdohk{cursor:pointer}",3e3),g(".gap-x167g77z{gap:8px}",2e3),g(".borderRadius-x1kogg8i{border-radius:6px}",2e3),g(".fontSize-xfifm61{font-size:12px}",3e3),g(".fontWeight-xk50ysn{font-weight:500}",3e3),g(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),g(".background-x11g6tue{background:none}",1e3),g(".border-x1gs6z28{border:none}",1e3),g(".textAlign-xdpxx8g{text-align:left}",3e3),g(".backgroundColor-x1is1enf:hover{background-color:var(--gray100-x1llswo5)}",3130),g(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),g(".flexShrink-x2lah0s{flex-shrink:0}",3e3),g(".color-x183cm2b{color:var(--primary400-x6nrv7m)}",3e3),g(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),g(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),g(".padding-x1ruevkc{padding:6px}",1e3),g(".color-x1hxxw9p:hover{color:var(--black900-x1vm5mv1)}",3130),g(".opacity-xijokvz:disabled{opacity:.5}",3092),g(".cursor-x1s07b3s:disabled{cursor:not-allowed}",3092),g(".height-xcx40h0{height:420px}",4e3),g(".borderTopWidth-x178xt8z{border-top-width:1px}",4e3),g(".borderTopStyle-x13fuv20{border-top-style:solid}",4e3),g(".borderTopColor-xlwlnjq{border-top-color:var(--gray200-x1cfnqzm)}",4e3),g(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),g(".display-x1lliihq{display:block}",3e3),g(".paddingTop-xyamay9{padding-top:16px}",4e3),g(".paddingBottom-x1l90r2v{padding-bottom:16px}",4e3),g(".paddingLeft-xf18ygs{padding-left:12px}",4e3),g(".paddingRight-xnuq7ks{padding-right:12px}",4e3)},19969:(e,t,n)=>{"use strict";n.d(t,{A:()=>S}),n(14041);var r=n(1781),o=n(62683),a=n(28426),i=n(23151),l=n(27805),s=n(89748),c=n(62161),u=n(36990),d=n(17070),f=n(93033),p=n(99226),m=n(73657),g=n(68022),y=n(98536),h=n(92523),x=n(31085);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?v(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return(t=function(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S=function(){var e="TRIAL"===(0,p.A)().lunioStatus,t=[{label:(0,s.A)("Campaign Name"),name:"name",type:"radio",mplatOnly:!1,options:[{label:(0,s.A)("Contains"),name:"contains",type:"text"}]},{label:(0,s.A)("Campaign Type"),name:"campaignType",type:"checkbox",googleOnly:!0,queryTranslator:"arrayOfNames",queryKey:"type",options:[{label:(0,s.A)("Search"),shortLabel:(0,s.A)("Search"),type:"checkbox",name:"SEARCH",value:!1},{label:(0,s.A)("Display"),shortLabel:(0,s.A)("Display"),type:"checkbox",name:"DISPLAY",value:!1},{label:(0,s.A)("Video"),shortLabel:(0,s.A)("Video"),type:"checkbox",name:"VIDEO",value:!1},{label:(0,s.A)("Shopping"),shortLabel:(0,s.A)("Shopping"),type:"checkbox",name:"SHOPPING",value:!1},{label:(0,s.A)("PMax"),shortLabel:(0,s.A)("PMax"),type:"checkbox",name:"PERFORMANCE_MAX",value:!1},{label:(0,s.A)("Demand Gen"),shortLabel:(0,s.A)("Demand Gen"),type:"checkbox",name:"DEMAND_GEN",value:!1},{label:(0,s.A)("Local"),shortLabel:(0,s.A)("Local"),type:"checkbox",name:"LOCAL",value:!1},{label:(0,s.A)("Local Services"),shortLabel:(0,s.A)("Local Services"),type:"checkbox",name:"LOCAL_SERVICES",value:!1},{label:(0,s.A)("Travel"),shortLabel:(0,s.A)("Travel"),type:"checkbox",name:"TRAVEL",value:!1},{label:(0,s.A)("Discovery"),shortLabel:(0,s.A)("Discovery"),type:"checkbox",name:"DISCOVERY",value:!1},{label:(0,s.A)("Multi Channel"),shortLabel:(0,s.A)("Multi Channel"),type:"checkbox",name:"MULTI_CHANNEL",value:!1},{label:(0,s.A)("Hotel"),shortLabel:(0,s.A)("Hotel"),type:"checkbox",name:"HOTEL",value:!1},{label:(0,s.A)("Smart"),shortLabel:(0,s.A)("Smart"),type:"checkbox",name:"SMART",value:!1},{label:(0,s.A)("Express"),shortLabel:(0,s.A)("Express"),type:"checkbox",name:"EXPRESS",value:!1}]},{label:(0,s.A)("Protection Status"),name:"protectionStatus",type:"checkbox",googleOnly:!0,options:[{label:(0,s.A)("Include Protected"),shortLabel:(0,s.A)("Protected"),type:"checkbox",name:"include_protected",value:!1},{label:(0,s.A)("Include Monitored"),shortLabel:(0,s.A)("Monitored"),type:"checkbox",name:"include_monitored",value:!1}]},{label:(0,s.A)("Protection Status"),name:"protectionStatus",type:"checkbox",queryTranslator:"translateToStatusArray",mplatOnly:!0,options:[{label:(0,s.A)("Include Protected"),shortLabel:(0,s.A)("Protected"),type:"checkbox",name:"include_protected",value:!1},{label:(0,s.A)("Include Monitored"),shortLabel:(0,s.A)("Monitored"),type:"checkbox",name:"include_monitored",value:!1}]}],n=(0,y.useApi)({url:"/platform/campaigns-data",filters:t,sortKey:"invalid",sortOrder:"desc",customQueryString:"&df_interval=day&min_clicks=1"});function b(e){return e?e.protection_status?e.protection_status:1===e.protection_enabled&&1===e.monitoring_enabled?2:0===e.protection_enabled&&1===e.monitoring_enabled?1:0:0}return(0,x.jsxs)(a.A.Page,{type:"main",children:[(0,x.jsx)(l.default,{title:(0,s.A)("Campaigns"),text:(0,s.A)("Explore all your active campaigns that received clicks during this period"),contentRight:(0,x.jsx)(f.A,{integrationsNOT:["meta"],children:(0,x.jsx)(g.A,{exportType:"campaigns"})})}),(0,x.jsx)("div",{className:"mt-4 mb-4 justify-end",children:(0,x.jsx)(h.default,{})}),(0,x.jsx)(c.A,A(A({},n.tableConnector),{},{className:"mb-4",leftPinnedColumns:1,groupColsBreakpoint:500,children:function(t){var n;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("thead",{children:(0,x.jsxs)("tr",{children:[(0,x.jsxs)("th",{"data-sortable-id":"name",children:[(0,s.A)("Campaign Name"),(0,x.jsx)(f.A,{integrations:["meta"],children:(0,x.jsx)(u.A,{header:!0,groupedCols:!0,children:(0,s.A)("Campaign Type | Effe
2ctive Status")})})]}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("Shows whether Lunio is actively protecting or only monitoring this account or campaign."),children:(0,s.A)("Protection Status")}),(0,x.jsx)("th",{"data-sortable-id":"invalid","data-tooltip":(0,s.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,s.A)("SIVT Clicks")}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,s.A)("Total IVT")}),(0,x.jsxs)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,s.A)("The percentage of total clicks Lunio has classified as invalid."),children:[(0,s.A)("SIVT Clicks")," ","%"]}),(0,x.jsxs)("th",{"data-tooltip":(0,s.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:[(0,s.A)("Total IVT")," ","%"]}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("The change in percentage between the selected date period and the equivalent previous period."),children:(0,s.A)("%pt Change")}),(0,x.jsx)(f.A,{AND:!e,children:(0,x.jsx)("th",{"data-testid":"givt","data-tooltip":(0,s.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,x.jsx)("div",{className:"flex align-items-center",children:(0,s.A)("GIVT Clicks")})})}),(0,x.jsx)("th",{"data-sortable-id":"activity","data-tooltip":(0,s.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,s.A)("Total Clicks")}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,s.A)("All Tracked Clicks")}),(0,x.jsx)(f.A,{integrations:["meta"],children:(0,x.jsx)("th",{children:(0,s.A)("eCPC")})}),(0,x.jsx)(f.A,{integrations:["meta"],children:(0,x.jsx)("th",{children:(0,s.A)("Cost Model")})}),(0,x.jsxs)("th",{children:[(0,x.jsx)(f.A,{integrations:["meta"],children:(0,s.A)("Avg. Cost")}),(0,x.jsx)(f.A,{integrationsNOT:["meta"],children:(0,x.jsx)(r.default,{heading:(0,s.A)("Self Defined CPC"),content:(0,s.A)("This value was manually set by a user of this workspace."),children:(0,s.A)("Self Defined CPC")})})]}),(0,x.jsxs)("th",{children:[(0,x.jsx)(f.A,{integrations:["meta"],children:(0,s.A)("Spend")}),(0,x.jsx)(f.A,{integrationsNOT:["meta"],children:(0,x.jsx)(r.default,{content:(0,s.A)("Estimated based on our click data combined with your latest CPC values."),children:(0,s.A)("Approx Spend")})})]}),(0,x.jsx)("th",{children:(0,x.jsx)(r.default,{content:(0,s.A)("The value of your campaign spend with invalid clicks factored out"),children:(0,s.A)("Adjusted Spend")})})]})}),(0,x.jsxs)("tbody",{children:[(0,x.jsxs)("td",{children:[!(null!=t&&t.cpn)&&(0,x.jsx)("span",{style:{wordBreak:"break-word"},children:d.A.stringDefaultIfEmpty(d.A.restrictLengthOfString(null==t?void 0:t.campaign_name,50),(0,s.A)("Unknown"))}),(null==t?void 0:t.cpn)&&(0,x.jsx)(m.Link,{to:"/meta/campaign/".concat(null==t?void 0:t.cpn,"?name=").concat(encodeURIComponent((null==t?void 0:t.campaign_name)||""),"&status=").concat(b(t)),children:(0,x.jsx)("span",{style:{wordBreak:"break-word"},children:d.A.stringDefaultIfEmpty(d.A.restrictLengthOfString(null==t?void 0:t.campaign_name,50),(0,s.A)("Unknown"))})}),(0,x.jsx)(f.A,{integrations:["meta"],children:(0,x.jsx)(u.A,{header:!0,groupedCols:!0,children:d.A.pipeSeparatedStrings(null==t?void 0:t.campaign_objective,null==t?void 0:t.campaign_status)})}),(0,x.jsx)(f.A,{integrationsNOT:["meta"],children:(0,x.jsx)(u.A,{children:d.A.pipeSeparatedStrings(null==t?void 0:t.ad_type,null==t?void 0:t.status)})})]}),(0,x.jsx)("td",{children:(0,x.jsx)(o.A,{status:t})}),(0,x.jsx)("td",{children:d.A.valueOrDash(null==t?void 0:t.total_invalid)}),(0,x.jsx)("td",{children:d.A.valueOrDash(null==t?void 0:t.total_ivt)}),(0,x.jsx)("td",{children:d.A.percentageValueOrDash(null==t?void 0:t.percent_invalid)}),(0,x.jsx)("td",{children:d.A.percentageValueOrDash(null==t?void 0:t.total_ivt_percent)}
2),(0,x.jsx)("td",{children:(0,x.jsx)(i.default,{number:String((null==t?void 0:t.percent_invalid_change)||"").replace(/-/g,""),direction:d.A.deltaDirection(null==t?void 0:t.percent_invalid_change),hideText:!0})}),!e&&(0,x.jsx)("td",{children:d.A.valueOrDash(null==t?void 0:t.total_general_invalid)}),(0,x.jsx)("td",{children:d.A.valueOrDash(null==t?void 0:t.total_clicks)}),(0,x.jsx)("td",{children:d.A.valueOrDash(null==t?void 0:t.all_tracked_clicks)}),(0,x.jsx)(f.A,{integrations:["meta"],children:(0,x.jsx)("td",{children:d.A.currencyValueOrDash(null==t?void 0:t.effective_cpc,null==t?void 0:t.currency)})}),(0,x.jsx)(f.A,{integrations:["meta"],children:(0,x.jsx)("td",{children:d.A.valueOrDash(null==t?void 0:t.campaign_cost_model)})}),(0,x.jsxs)("td",{children:[(0,x.jsx)(f.A,{integrations:["meta"],children:d.A.currencyValueOrDash(null==t?void 0:t.campaign_cost_model_value,null==t?void 0:t.currency)}),(0,x.jsx)(f.A,{integrationsNOT:["meta"],children:d.A.currencyValueOrDash(null==t?void 0:t.avg_cpc,null==t?void 0:t.currency)})]}),(0,x.jsxs)("td",{children:[(0,x.jsx)(f.A,{integrations:["meta"],children:d.A.currencyValueOrDash(null==t||null===(n=t.campaign_stats)||void 0===n?void 0:n.spend,null==t?void 0:t.currency)}),(0,x.jsx)(f.A,{integrationsNOT:["meta"],children:(0,x.jsx)(r.default,{content:(0,s.A)("Estimated based on our click data combined with your latest CPC values."),children:d.A.currencyValueOrDash(null==t?void 0:t.estimated_cost,null==t?void 0:t.currency)})})]}),(0,x.jsxs)("td",{children:[(0,x.jsx)(f.A,{integrations:["meta"],children:d.A.currencyValueOrDash(null==t?void 0:t.meta_actual_value,null==t?void 0:t.currency)}),(0,x.jsx)(f.A,{integrationsNOT:["meta"],children:d.A.currencyValueOrDash(null==t?void 0:t.actual_value,null==t?void 0:t.currency)})]})]})]})}}))]})}},20213:(e,t,n)=>{"use strict";e.exports=n.p+"64f6e1350d7865f849f5.svg"},20232:(e,t,n)=>{"use strict";e.exports=n.p+"632db2d7c5c3f8995c67.svg"},20340:(e,t,n)=>{"use strict";t.A=void 0;var r=d(n(25751)),o=n(73657),a=n(60156),i=d(n(72686)),l=d(n(79135)),s=d(n(30021)),c=d(n(9260)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=r.default;y(".display-x78zum5{display:flex}",3e3),y(".alignItems-x6s0dn4{align-items:center}",3e3),y(".gap-x1v2ro7d{gap:12px}",2e3),y(".flex-x98rzlu{flex:1}",2e3),t.A=function(e){var t=e.title,n=e.text,r=e.to,d=e.className,f=e.buttonText,p=e.icon,g=void 0===p?["far","circle-exclamation"]:p,y=e.backgroundColour,h=void 0===y?"warning50":y,x=e.borderColour,b=void 0===x?"warning500":x,v=e.buttonPreset,A=void 0===v?"primary":v,_=e.severity,S={backgroundColour:h,borderColour:b,icon:g,buttonPreset:A};return _&&("medium"!==_&&"low"!==_&&"optimisation"!==_&&"info"!==_||(S.backgroundColour="oldBrand50",S.borderColour="oldBrand500",S.icon=["far","bell"],S.buttonPreset="primary"),"high"===_&&(S.backgroundColour="warning50",S.borderColour="warning500",S.icon=["far","circle-exclamation"],S.buttonPreset="primary"),"critical"===_&&(S.backgroundColour="error50",S.borderColour="error500",S.icon=["far","triangle-exclamation"],S.buttonPreset="destructive-bold")),(0,u.jsx)(i.default,{backgroundColour:S.backgroundColour,borderColour:S.borderColour,className:d,children:(0,u.jsxs)("div",m(m({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d","data-style-src":"AlertActBanner/index.tsx:13"}),{},{children:[(0,u.jsx)(l.default,{name:S.icon,colour:S.borderColour,fontSize:22}),(0,u.jsxs)("div",m(m({},{className:"flex-x98rzlu","data-style-src":"AlertActBanner/index.tsx:18"}),{},{children:[(0,u.jsx)(s.default,{weight:"600",fontSize:"14",colour:"black900",children:t}),(0,u.jsx)(s.default,{weight:"400",fontSize:"12",colour:"black400",children:n})]})),(0,u.jsx)(c.default,{as:o.Link,to:r,preset:S.buttonPreset,size:"sm",iconRight:"arrow-right",children:null!=f?f:(0,a.language)("View")})]}))})}},20544:(e,t,n)=>{"use strict";n.d(t,{A:()=>d}),n(14041);var r=n(51836),o=n(27333),a=n(88133),i=n(97475),l=n(89748),s=n(24284),c=n(30092),u=n(31085);const d=function(){var e=(0,r.g)().id,t=(0,i.jE)();
2function n(){t.getQueryCache().findAll().forEach(function(e){t.invalidateQueries(e.queryKey)})}var d=(0,o.R7)({}),f=d.filters,p=d.handlePagination,m=d.setFilters,g=(0,o.st)("/workspaces/".concat(e,"/adword_customers"),f,function(e){var t=null!=e&&e.id?"&id=".concat(e.id):"";return null!=e&&e["account.contains"]&&(t+="&search=".concat(e["account.contains"])),t}),y=g.data,h=g.isLoading,x=(0,o.R7)({}),b=x.filters,v=x.handlePagination,A=x.setFilters,_=(0,o.st)("/workspaces/adword_customers",b),S=_.data,w=_.isLoading,O=(0,a.gC)("/workspaces/".concat(e,"/adword_customers"),"POST"),j=(0,a.gC)("/workspaces/".concat(e,"/adword_customers"),"DELETE");return(0,u.jsx)(c.A,{data:null==y?void 0:y.result,isLoading:h,handlePagination:p,onFilterChange:m,filters:f,onAddAccount:function(e){O.mutate({_method:"POST",adword_customer_ids:e},{onSuccess:function(){n(),(0,s.A)((0,l.A)("The account was added."),"success")},onError:function(){(0,s.A)((0,l.A)("It is not possible to add this account to the workspace."),"error")}})},onRemoveAccount:function(e){j.mutate({_method:"DELETE",adword_customer_ids:e},{onSuccess:function(){n(),(0,s.A)((0,l.A)("The account was removed."),"success")},onError:function(){(0,s.A)((0,l.A)("It is not possible to remove this account from the workspace."),"error")}})},nonAssignedAccountsAPIResponse:null==S?void 0:S.result,isLoadingNonAssigned:w,handlePaginationNonAssigned:v,filtersNonAssigned:b,setFiltersNonAssigned:A})}},20627:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(14041),o=n(62720),a=n(89748),i=n(34406),l=n(88133),s=n(40699),c=n(32881),u=n(31085);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(){var e,t=d((0,r.useState)(o.default.DatePicker.getDateRange("30d")),2),n=t[0],f=t[1],p=(0,l.Ay)("/affiliates/fraud-classifications?df_dmin=".concat(Math.floor((0,i.Ay)(n.min.date).valueOf()/1e3),"&df_dmax=").concat(Math.floor((0,i.Ay)(n.max.date).valueOf()/1e3),"&limit=1000&platform=affiliate")),m=p.data,g=p.isLoading,y=null==m||null===(e=m.result)||void 0===e?void 0:e.data,h=Object.entries((null==y?void 0:y.invalid_labels_percent)||{}).map(function(e){var t=d(e,2),n=t[0],r=t[1];return{name:(0,s.T5)("analytics")[n]||n,value:r}});return(0,u.jsx)(c.A,{data:h,isLoading:g,setTime:f,time:n,title:(0,a.A)("Fraud Type")})}},20714:(e,t,n)=>{"use strict";e.exports=n.p+"7460d9ffbd66ee9d9622.svg"},20793:(e,t,n)=>{"use strict";n.d(t,{A:()=>a}),n(14041);var r=n(77185),o=n(31085);const a=function(){return(0,o.jsx)("div",{children:(0,o.jsx)(r.A,{})})}},20875:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(14041),o=n(51836),a=n(73657),i=n(75267),l=n(39067),s=n.n(l),c=n(96182),u=n(77730),d=n(80111),f=n(11182),p=n(36549),m=n(89748),g=n(88133),y=n(46622),h=n(85981),x=n(7801),b=n(69800),v=n(90219),A=n(88004),_=n(45949),S=n(38300),w=n(79173),O=n(73618),j=n(31085);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?E(Object(n),!0).forEach(function(t){I(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I(e,t,n){return(t=function(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function C(e){var t,n,l=e.noPlatformSelector,s=void 0!==l&&l,k=e.pageSupportedPlatforms,E=void 0===k?[]:k,I=e.alternateRoute,T=void 0===I?"":I,C=e.affiliateAlternateRoute,R=void 0===C?"":C,M=e.metaAlternateRoute,L=void 0===M?"":M,D=e.googleAlternateRoute,B=void 0===D?"":D,U=e.mplatAlternateRoute,F=void 0===U?"":U,G=e.forceAlternateRouteOnSwitchPlatform,W=void 0!==G&&G,z=(0,o.zy)(),V=(0,i.usePostHog)(),q=P((0,p.A)(),2),K=q[0],H=q[1],Y=P((0,u.A)(),2),$=Y[0],Z=Y[1],X=P((0,d.A)(),2),J=X[0],Q=X[1],ee=P((0,c.A)(),2),te=ee[0],ne=ee[1],re=P((0,f.A)(),2),oe=re[0],ae=re[1],ie=P((0,r.useState)(!1),2),le=ie[0],se=ie[1],ce=(0,y.A)(localStorage.getItem("token"));n=null!=="https://api.lunio.ai/"&&"https://api.lunio.ai/".includes("stg")?"Staging":null!=="https://api.lunio.ai/"&&"https://api.lunio.ai/".includes("dev")?"Development":"Production";var ue=P((0,a.useSearchParams)(),1)[0],de=ue.get("ws"),fe=ue.get("pl");if(de){var pe=new URL(document.location);pe.searchParams.delete("ws"),window.history.replaceState(null,null,pe)}if(fe){var me=new URL(document.location);me.searchParams.delete("pl"),window.history.replaceState(null,null,me)}var ge,ye,he,xe,be,ve=(0,g.Ay)("/user_sync"),Ae=ve.data,_e=ve.isLoading;return(0,r.useEffect)(function(){var e;void 0!==(null==Ae||null===(e=Ae.result)||void 0===e?void 0:e.all_platforms)&&(le||(0,S.A)(Ae,ce),function(e){var t,r,o,a,i,l=N({},e),c=[];l.workspaces.forEach(function(e){e.platforms&&e.platforms.forEach(function(e){c.find(function(t){return t.platform_name===e.platform_name})||c.push(e)})});var u=l.all_platforms.filter(function(e){return 1===e.state||2===e.state});l.workspaces.length>0&&(l.workspaces.find(function(e){return-1===e.id})||l.workspaces.unshift({id:-1,name:(0,m.A)("All Workspaces"),default_currency:l.settings.default_currency,protection_status:2,platforms:c}
2));var d=(0,h.A)(l.workspaces,l.user,$,de),f=(0,_.A)(l.workspaces,d,c,u),p=(0,x.A)(f,fe,te.selectedPlatform),g=N(N({},K),{},{user:l.user,account:N(N({},l.account),{},{meta_enabled:null==l||null===(t=l.feature_flags)||void 0===t?void 0:t.includes("META_INTEGRATION")}),agency:(null==l?void 0:l.agency)||[],settings:l.settings,subscription_info:l.subscription_info,isImpersonating:ce,isLoading:!1,environment:n}),y=N(N({},$),{},{selectedWorkspace:d,workspaces:l.workspaces,workspaceCount:l.workspaces.filter(function(e){return-1!==e.id}).length}),S=N(N({},te),{},{selectedPlatform:p,platforms:f,allUserPlatforms:c,allAdminPlatforms:u,noPlatformSelector:s,platformContext:{pageSupportedPlatforms:E,alternateRoute:T,googleAlternateRoute:B,metaAlternateRoute:L,mplatAlternateRoute:F,affiliateAlternateRoute:R,forceAlternateRouteOnSwitchPlatform:W}}),O=N(N({},oe),{},{featureFlags:l.feature_flags,integrations:null!=l&&null!==(r=l.feature_flags)&&void 0!==r&&r.includes("META_INTEGRATION")?["meta"]:[],roleIdentifier:-1===(null==d?void 0:d.id)?"USER":null!==(o=null==d?void 0:d.role)&&void 0!==o?o:l.user.role_identifier,accountRoleIdentifier:(0,w.A)(l),isImpersonating:ce});H(N(N({},g),{},{hasNoDataScope:(0,A.A)(O,y.workspaces,f,null==d?void 0:d.id),isLoading:!1})),sessionStorage.setItem("subscription_info",JSON.stringify(null==g?void 0:g.subscription_info)),Z(N({},y)),ne(N({},S)),ae(N({},O));var j=(null==g||null===(a=g.subscription_info)||void 0===a?void 0:a.end_date)||null;(1e9===(null==J||null===(i=J.dataFilterDates)||void 0===i||null===(i=i.min)||void 0===i?void 0:i.timestamp)||(0,b.A)(j))&&Q(N(N({},J),{},{dataFilterDates:(0,b.A)(j)?(0,b.A)(j):(0,v.A)()}))}(Ae.result),se(!0))},[null==Ae||null===(t=Ae.result)||void 0===t?void 0:t.workspaces,_e]),ce||null==V||V.identify(null==Ae||null===(ge=Ae.result)||void 0===ge||null===(ge=ge.user)||void 0===ge?void 0:ge.id,{account_id:null==Ae||null===(ye=Ae.result)||void 0===ye||null===(ye=ye.user)||void 0===ye?void 0:ye.account_id,display_name:null==Ae||null===(he=Ae.result)||void 0===he||null===(he=he.user)||void 0===he?void 0:he.display_name,email:null==Ae||null===(xe=Ae.result)||void 0===xe||null===(xe=xe.user)||void 0===xe?void 0:xe.email,workspaces:null==Ae||null===(be=Ae.result)||void 0===be?void 0:be.workspaces.length}),(0,r.useEffect)(function(){var e;if(fe&&null!=Ae&&null!==(e=Ae.result)&&void 0!==e&&e.all_platforms){var t,n=null==Ae||null===(t=Ae.result)||void 0===t?void 0:t.all_platforms.find(function(e){return e.platform_name===fe});n&&ne(N(N({},te),{},{selectedPlatform:n}))}},[fe]),(0,r.useEffect)(function(){function e(){H(function(e){return N(N({},e),{},{isLoading:!0})})}return window.addEventListener("beforeunload",e),function(){return window.removeEventListener("beforeunload",e)}},[]),(0,r.useEffect)(function(){le&&ne(N(N({},te),{},{platformContext:{pageSupportedPlatforms:E,alternateRoute:T,affiliateAlternateRoute:R,googleAlternateRoute:B,metaAlternateRoute:L,mplatAlternateRoute:F,forceAlternateRouteOnSwitchPlatform:W}}))},[E.join(","),T,R,B,L,F,W]),localStorage.getItem("token")?"/"===z.pathname?(0,j.jsx)(o.C5,{to:"/overview",replace:!0}):(0,j.jsx)(O.A,{noPlatformSelector:s,children:(0,j.jsx)(o.sv,{})}):(0,j.jsx)(o.C5,{to:"/login"})}C.propTypes={noPlatformSelector:s().bool,pageSupportedPlatforms:s().arrayOf(s().string),alternateRoute:s().string,affiliateAlternateRoute:s().string,googleAlternateRoute:s().string,metaAlternateRoute:s().string,mplatAlternateRoute:s().string,forceAlternateRouteOnSwitchPlatform:s().bool};const R=C},21093:(e,t,n)=>{"use strict";e.exports=n.p+"f8f3fe3557baae0261f1.svg"},21100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n(14041);var r=n(31085);function o(){throw new Error("Test")}function a(){return(0,r.jsx)(o,{})}a.displayName="ThrowError";const i=a},21134:(e,t,n)=>{"use strict";e.exports=n.p+"5b42058157d0735e062c.svg"},21445:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(80589),a=n(31085);const i=function(){var e,t=(0,r.R7)({}),n=t.filters,i=t.handlePagination,l=t.setFilters,s=t.handleSort,c="";return null!==(e=n["accounts.selection"])&&void 0!==e&&e.length&&(c+="&df_customer_ids=".concat(JSON.stringify(n["accounts.selection"]))),n["search.contains"]&&(c+="&search=".concat(encodeURIComponent(n["search.contains"]))),(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:n,onFilterChange:l,dynamicQuery:c,handlePagination:i,handleSort:s})})}}
2,21504:(e,t,n)=>{"use strict";n.d(t,{A:()=>p}),n(14041);var r=n(51836),o=n(28426),a=n(22050),i=n(74984),l=n(93033),s=n(99226),c=n(12251),u=n(44442),d=n(59764),f=n(31085);const p=function(){var e=(0,r.g)().cpn,t=(0,s.A)(),n=t.allowedFeatureFlags,p=t.lunioStatus;return(0,f.jsxs)(o.A.Page,{type:"main",children:[(0,f.jsx)("div",{className:"mt-8 mb-4",children:(0,f.jsx)(c.A,{cpn:e})}),(0,f.jsx)("div",{className:"mt-4 mb-4",children:(0,f.jsx)(u.A,{cpn:e})}),(0,f.jsx)(l.A,{isNotTrialStatus:!0,OR:"TRIAL"===p&&n(["TRIAL_CLICK_LOG_ANALYTICS"]),orIsImpersonating:!0,children:(0,f.jsx)("div",{className:"mt-8",children:(0,f.jsx)(a.A,{delta:!1,cpn:e})})}),(0,f.jsx)("div",{className:"mt-8",children:(0,f.jsx)(d.A,{})}),(0,f.jsx)(l.A,{platforms:["google"],children:(0,f.jsx)("div",{className:"mt-8",children:(0,f.jsx)(i.A,{cpn:e})})})]})}},21547:(e,t,n)=>{"use strict";e.exports=n.p+"7c16018eba25c51fec25.svg"},21576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(45365),i=n(60156),l=n(18141),s=n(31085);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=o.default;function m(e){return e?"p"===e?(0,i.language)("Phrase"):"b"===e?(0,i.language)("Broad"):"e"===e?(0,i.language)("Exact"):"No match type reported by Google"===e?"?":"":""}p(".position-x10l6tqk{position:absolute}",3e3),p(".width-xlrdbfi{width:370px}",4e3),p(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),p(".boxShadow-x1d485q3{box-shadow:0 2px 4px -2px rgba(34,34,34,.06),0 4px 8px -2px rgba(34,34,34,.1)}",3e3,".boxShadow-x1d485q3{box-shadow:0 2px 4px -2px rgba(34,34,34,.06), 0 4px 8px -2px rgba(34,34,34,.1)}"),p(".zIndex-xa9119d{z-index:50}",3e3),p(".float-x18mqm2i{float:right}",3e3),p(".overflowWrap-x1mzt3pk{overflow-wrap:break-word}",3e3),p(".wordBreak-x13faqbe{word-break:break-word}",3e3),p(".whiteSpace-xeaf4i8{white-space:normal}",3e3),t.default=function(e){var t,n=e.data;return(0,s.jsxs)(a.Card,d(d({id:"scatter-hover"},{className:"position-x10l6tqk width-xlrdbfi backgroundColor-x18oya0d boxShadow-x1d485q3 zIndex-xa9119d","data-style-src":"Hover/index.tsx:9"}),{},{children:[(0,s.jsx)(a.Text,d(d({preset:"chartLabelHeader",as:"h3"},{className:"overflowWrap-x1mzt3pk wordBreak-x13faqbe whiteSpace-xeaf4i8","data-style-src":"Hover/index.tsx:19"}),{},{children:n.label})),(0,s.jsx)(a.Badge,d(d({colourName:(t=n.matchType,t?"p"===t?"purple-weak":"b"===t?"success":"e"===t?"default":""===t?"?":"":"")},{className:"float-x18mqm2i","data-style-src":"Hover/index.tsx:16"}),{},{children:m(n.matchType)})),(0,s.jsxs)(a.Text,{children:[n.total.toLocaleString("en-GB")," ",(0,i.language)("Clicks")," "]}),(0,s.jsxs)(a.Text,{children:[(0,l.calcPercentage)(n.fraudulent,n.total),"%"," ",(0,i.language)("SIVT")]})]}))}},21592:(e,t,n)=>{"use strict";e.exports=n.p+"48790b41aa8163847ffa.svg"},21710:(e,t,n)=>{"use strict";n.d(t,{A:()=>j}),n(14041);var r=n(1582),o=n(72686),a=n(55436),i=n(17419),l=n(28426),s=n(83405),c=n(96956),u=n(27805),d=n(89748),f=n(19863),p=n(27333),m=n(62161),g=n(96182),y=n(93033),h=n(99226),x=n(11073),b=n(89541),v=n(13497),A=n(31085);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const j=function(e){var t,n,_,j,k,E,N,I,P,T,C,R=e.filters,M=e.onFilterChange,L=e.handlePagination,D=e.handleSort,B="google"===(null===(t=(T=(0,g.A)(),C=1,function(e){if(Array.isArray(e))return e}(T)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(T,C)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(T,C)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].selectedPlatform)||void 0===t?void 0:t.platform_name),U="TRIAL"===(0,h.A)().lunioStatus,F=(0,p.st)("/analytics/fraud-stats/network",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},R)),G=F.data,W=F.isLoading,z=null==G||null===(n=G.result)||void 0===n?void 0:n.data.reduce(function(e,t){return e+Number(t.clicks_total)},0),V=null==G||null===(_=G.result)||void 0===_?void 0:_.data.reduce(function(e,t){return e+Number(t.clicks_fraudulent)},0),q=null==G||null===(j=G.result)||void 0===j?void 0:j.data.map(function(e){return{name:(0,x.A)(e.network),value1:(0,f.o)(e.clicks_total,z),value2:(0,f.o)(e.clicks_fraudulent,V)}});return(0,A.jsxs)(l.A.Page,{type:"main",children:[(0,A.jsx)(u.default,{title:"".concat((0,d.A)("Ad Stats")," - ").concat((0,d.A)("Network")),text:(0,d.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,A.jsx)(v.A,{filters:R,exportType:B?"google_network":"mplat_network"})}),(0,A.jsx)(b.A,{filters:R,onFilterChange:M}),(0,A.jsx)(o.default,{children:(0,A.jsxs)("div",{className:"pt-6",children:[W&&(0,A.jsx)(a.default,{loading:!0,height:400,preset:"dark",size:"responsive"}),!W&&(null==G||null===(k=G.result)||void 0===k||null===(k=k.data)||void 0===k?void 0:k.length)>1&&(0,A.jsx)(r.default.GroupHorizontal,{data:q,titles:[(0,d.A)("% Total Clicks"),(0,d.A)("% SIVT Clicks")]}),!W&&(null==G||null===(E=G.result)||void 0===E||null===(E=E.data)||void 0===E?void 0:E.length)<2&&(0,A.jsx)(s.A,{title:(0,d.A)("Not enough data to display this chart"),hasNoData:!0,style:{height:"300px"}})]})}),(0,A.jsx)("div",{className:"mt-8"}),(0,A.jsx)(m.A,{rows:null==G||null===(N=G.result)||void 0===N?void 0:N.data,isLoading:W,totalPages:null==G||null===(I=G.result)||void 0===I||null===(I=I.pagination)||void 0===I?void 0:I.last_page,totalItems:null==G||null===(P=G.result)||void 0===P||null===(P=P.pagination)||void 0===P?void 0:P.total,pageNumber:R.page,handlePagination:L,handleSorting:D,limit:R.limit,sorting:{sortKey:R.sortKey,sortOrder:R.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{children:(0,d.A)("Network")}),(0,A.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,d.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,d.A)("Legitimate")}),(0,A.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,d.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,d.A)("Suspicious")}),(0,A.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,d.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,d.A)("SIVT Clicks")}),(0,A.jsx)(y.A,{AND:!U,children:(0,A.jsx)("th",{"data-testid":"givt","data-tooltip":(0,d.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,d.A)("GIVT Clicks")})}),(0,A.jsx)("th",{"data-tooltip":(0,d.A)("The total number of clicks Lunio has identified as invali
2d, including both GIVT and SIVT."),children:(0,d.A)("Total IVT")}),(0,A.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,d.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,d.A)("Total Clicks")}),(0,A.jsx)("th",{"data-tooltip":(0,d.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,d.A)("All Tracked Clicks")}),(0,A.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,d.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,d.A)("SIVT Clicks %")}),(0,A.jsx)("th",{"data-tooltip":(0,d.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,d.A)("Total IVT %")}),(0,A.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,d.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,d.A)("Health")})]})}),(0,A.jsxs)("tbody",{children:[(0,A.jsx)("td",{children:(0,x.A)(null==e?void 0:e.network)}),(0,A.jsx)("td",{children:(0,A.jsx)(i.A,{type:"legitimate",size:"sm",textRight:(0,f.m)(null==e?void 0:e.clicks_protected)})}),(0,A.jsx)("td",{children:(0,A.jsx)(i.A,{type:"suspicious",size:"sm",textRight:(0,f.m)(null==e?void 0:e.clicks_suspicious)})}),(0,A.jsx)("td",{children:(0,A.jsx)(i.A,{type:"invalid",size:"sm",textRight:(0,f.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,A.jsx)(y.A,{AND:!U,children:(0,A.jsx)("td",{children:(0,f.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,A.jsx)("td",{children:(0,f.m)(null==e?void 0:e.total_ivt)}),(0,A.jsx)("td",{children:(0,f.m)(null==e?void 0:e.clicks_total)}),(0,A.jsx)("td",{children:(0,f.m)(null==e?void 0:e.all_tracked_clicks)}),(0,A.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,A.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,A.jsx)("td",{children:(0,A.jsx)(c.A,{health:null==e?void 0:e.health})})]})]})}})]})}},21892:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(99018),i=n(31085);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var s=["as","children","className"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=o.default;function p(e){var t=e.as,n=void 0===t?"h1":t,r=e.children,o=void 0===r?null:r,l=e.className,c=void 0===l?"":l,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s),f=(0,a.classNames)("fontSize-x1kj9fbh fontFamily-x14of51k",c);return o?(0,i.jsx)(n,u(u({className:f},d),{},{children:o})):null}f(".fontSize-x1kj9fbh{font-size:96px}",3e3),f(".fontFamily-x14of51k{font-family:Axiforma}",3e3),p.displayName="BigTitle",t.A=p},22050:(e,t,n)=>{"use strict";t.A=void 0;var r=p(n(25751)),o=n(14041),a=n(45365),i=n(60156),l=n(34016),s=n(18141),c=n(19838),u=n(45647),d=p(n(54374)),f=n(31085);
2function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var v=r.default;v(".display-x78zum5{display:flex}",3e3),v(".justifyContent-x1qughib{justify-content:space-between}",3e3),v(".alignItems-x6s0dn4{align-items:center}",3e3),v(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),v(".width-x1oysuqx{width:200px}",4e3),v(".marginRight-x1yf7rl7{margin-right:0}",4e3),v(".textTransform-xtvhhri{text-transform:uppercase}",3e3),t.A=function(e){var t,n,r,p=e.className,m=void 0===p?"":p,g=e.delta,h=void 0===g||g,b=e.cpn,v=void 0===b?"":b,A=e.allAccounts,_=void 0!==A&&A,S=e.allWorkspaces,w=void 0!==S&&S,O=e.optOutWorkspaceContext,j=void 0!==O&&O,k=e.accounts,E=x((0,o.useState)(a.Input.DatePicker.getDateRange("7d")),2),N=E[0],I=E[1],P=x((0,u.usePlatformsState)(),1)[0],T=x((0,o.useState)(!1),2),C=T[0],R=T[1],M=null==P||null===(t=P.selectedPlatform)||void 0===t?void 0:t.platform_name,L=k&&k.length>0&&"google"===M?"&df_customer_ids=".concat(JSON.stringify(k)):"",D=N.max.timestamp-N.min.timestamp,B=Math.ceil(D/86400),U=(0,l.useQuery)("/analytics/invalid_over_time?df_dmin=".concat(N.min.timestamp,"&df_dmax=").concat(N.max.timestamp,"&limit=1000").concat(v?"&cpn=".concat(encodeURIComponent(v)):"").concat(L).concat(w?"&workspace_context=all":"","&platform=").concat(_?"all":P.selectedPlatform.platform_name),void 0,"invalid-over-time-".concat(N.min.timestamp,"-").concat(N.max.timestamp,"-").concat(v,"-").concat(_?"all":P.selectedPlatform.platform_name,"-").concat(L),{optOutWorkspaceContext:j}),F=U.data,G=U.isLoading,W=(null==F||null===(n=F.result)||void 0===n?void 0:n.data)||[],z=W.reduce(function(e,t){return e+Number(t.clicks_legitimate)},0),V=W.reduce(function(e,t){return e+Number(t.clicks_suspicious)},0),q=W.reduce(function(e,t){return e+Number(t.total_invalid)},0),K=W.reduce(function(e,t){return e+Number(t.previous_clicks_legitimate)},0),H=W.reduce(function(e,t){return e+Number(t.previous_clicks_suspicious)},0),Y=W.reduce(function(e,t){return e+Number(t.previous_total_invalid)},0),$=z+V+q,Z=K+H+Y,X=[{label:(0,i.language)("Click Totals"),value:!1},{label:(0,i.language)("Percentage"),value:!0}],J="".concat("https://help.lunio.ai/en/articles/9583931-introduction-to-the-workspace-dashboard").concat("#h_c7a74666d5"),Q=(0,i.language)("The percentage of individual clicks classified by Lunio as legitimate, suspicious, or invalid. Learn more [here](".concat(J,")."));return(0,f.jsx)(a.Card,{className:m,children:(0,f.jsxs)(a.Grid,{children:[(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4","data-style-src":"OverTime/index.tsx:14"}),{},{children:[(0,f.jsx)("div",{className:"flex items-center",children:(0,f.jsx)(a.ToolTip,{"data-testid":"individual-categorised-clicks-tooltip",content:Q,children:(0,f.jsx)(a.Text,{preset:"widgetHeading",as:"h2",className:"mr-1",children:(0,i.language)("Individual Categorised Clicks")})})}),(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 alignItems-x6s0dn4 justifyContent-x13a6bvl","data-style-src":"OverTime/index.tsx:19"}),{},{children:[(0,f.jsx)("div",{className:"mr-3",children:(0,f.jsx)(a.Input.Select,y({options:X,value:X.filter(function(e){return e.value===C}),onChange:function(e){return R(e.value)}},{className:"width-x1oysuqx","data-style-src":"OverTime/index.tsx:24"}))}),(0,f.jsx)(a.Input.DatePicker,{value:[N.min.date,N.max.date],onRangeChange:function(e){return I(e)},showCalenderIcon:!1,displayRangeText:!1,selectedOption:N.rangeName,ranges:["1d","yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]})]}))]})),(0,f.jsx)(a.Divider,{className:"mt-4"}),(0,f.jsxs)(a.Grid.Row,{className:"mt-1",children:[!G&&0!==$&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Grid.Col,{children:(0,f.jsx)(d.default,{type:"legitimate",percentage:(0,s.calcPercentage)(z,$,2),clickCount:z})}),(0,f.jsx)(a.Grid.Col,{children:(0,f.jsx)(d.default,{type:"suspicious",percentage:(0,s.calcPercentage)(V,$,2),clickCount:V})}),(0,f.jsx)(a.Grid.Col,{children:(0,f.jsx)(d.default,{type:"invalid",percentage:(0,s.calcPercentage)(q,$,2),clickCount:q,delta:h?(r=(0,s.calcPercentage)(Y,Z)-(0,s.calcPercentage)(q,$),{number:String(r.toFixed(1)).replace("-",""),direction:r>0?"down":"up",time:B}):void 0})})]}),(0,f.jsxs)(a.Grid.Col,{sm:12,style:{paddingLeft:0,paddingRight:22,marginTop:24},children:[G&&(0,f.jsx)(a.LunioLoader,{loading:!0,height:400,preset
2:"dark",size:"responsive"}),0===$&&!G&&(0,f.jsx)(a.NoData,{hasNoData:!0,subTitle:(0,i.language)("We are currently gathering data to give you your traffic insights"),style:{height:"fit-content"}}),!G&&0!==$&&(0,f.jsx)(c.Bar.Stacked.Diverging,{data:W,percentage:C})]})]})]})})}},22108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(25751)),o=n(14041),a=n(99018),i=s(n(9486)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=["className","label","secondaryLabel","name","id","onFormValue","disabled","errors","value","formData","size","type"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=r.default;function g(e){var t=e.className,n=void 0===t?null:t,r=e.label,s=void 0===r?"":r,c=e.secondaryLabel,d=void 0===c?"":c,p=e.name,m=void 0===p?"":p,g=e.id,y=void 0===g?"":g,h=e.onFormValue,x=void 0===h?function(){}:h,b=e.disabled,v=void 0!==b&&b,A=(e.errors,e.value),_=void 0!==A&&A,S=(e.formData,e.size),w=void 0===S?"md":S,O=e.type,j=void 0===O?"checkbox":O,k=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u),E="check-circle"===j?"checkbox":j,N=(0,a.classNames)("display-x78zum5",n),I=(0,a.classNames)("-webkit-appearance-x1lugfcp appearance-xjyslct backgroundColor-x83z2og backgroundColor-x13ihzrn border-x1kylzug borderColor-xmmyy0b borderColor-x16s6om2 margin-x1ghz6dp position-x1n2onr6","sm"===w&&"borderRadius-x12oqio5 width-x1kky2od he
2ight-xlup9mm","md"===w&&"borderRadius-x1kogg8i width-xw4jnvo height-x1qx5ct2",null===_&&"sm"===w&&"content-x1cpjm7i position-x1hmns74 top-x1i2bxd left-x1ku2df0 width-xpslbdi height-xuuc98b borderRadius-xty4yez backgroundColor-x17h300y",null===_&&"md"===w&&"content-x1cpjm7i position-x1hmns74 top-x18ntydv left-x1b0xmzb width-x5bgxoj height-xuuc98b borderRadius-xty4yez backgroundColor-x17h300y","check-circle"===j&&"sm"===w&&"borderRadius-xkcpdhr","check-circle"===j&&"md"===w&&"borderRadius-xkcpdhr",!0===_&&"sm"===w&&"backgroundColor-x1bruzxa backgroundColor-x1nkl2ld borderColor-xsksl2b borderColor-x1pugs2j content-x1cpjm7i position-x1hmns74 backgroundColor-xxvlkim top-x6tf9tk left-xmnqsde width-xjuy2up height-x1yd0sln borderRadius-x10ws7ij transform-x1wdwgm0 content-x1s928wv position-x1j6awrg top-x1milq8b left-x1r8uy42 height-xtf7t35 width-x13694x8 borderRadius-x1ib2b0o backgroundColor-xn9wcvw transform-x1u96j6x",!0===_&&"md"===w&&"backgroundColor-x1bruzxa backgroundColor-x1nkl2ld borderColor-xsksl2b borderColor-x1x4ktn3 content-x1cpjm7i position-x1hmns74 height-x1mtoes2 backgroundColor-xxvlkim top-xw9j58 left-x1jgmywl width-xjuy2up borderRadius-x10ws7ij transform-x1wdwgm0 content-x1s928wv position-x1j6awrg height-x13r0tq7 backgroundColor-xn9wcvw top-x68zsf1 left-x1xce5h width-x13694x8 borderRadius-x1ib2b0o transform-x1u96j6x",!0===_&&v&&"backgroundColor-x1dkd3vz backgroundColor-x2yd7e1",!v&&"borderColor-x1la2hv2 background-x7lhch2 cursor-x1277o0a"),P=(0,a.classNames)("position-x1n2onr6 marginLeft-xet2fuk","sm"===w&&"top-x1l6apta","md"===w&&"top-x1pdr0v7"),T=(0,a.classNames)("marginLeft-x1swdo50 fontWeight-xo1l8bm color-x1jsblnb","sm"===w&&"fontSize-xfifm61 lineHeight-x1fc57z9","md"===w&&"fontSize-xif65rj lineHeight-x1o2sk6j"),C=(0,a.classNames)("marginLeft-x1iog12x fontWeight-xo1l8bm color-x75csi3","sm"===w&&"fontSize-xfifm61 lineHeight-x1fc57z9","md"===w&&"fontSize-xif65rj lineHeight-x1o2sk6j"),R=(0,o.useRef)(null);return(0,o.useEffect)(function(){R.current&&(R.current.checked=null!=_&&_,R.current.indeterminate="checkbox"===j&&null===_)},[_,j]),(0,l.jsxs)("div",{className:N,children:[(0,l.jsx)("div",f(f({},{className:"display-x78zum5","data-style-src":"Checkbox/index.tsx:11"}),{},{children:(0,l.jsx)("input",f({type:E,checked:null!=_?_:void 0,value:String(_),className:I,ref:R,id:y||m,"data-testid":y||m,onChange:function(e){x({name:m,value:e.target.checked})},disabled:v},k))})),s&&(0,l.jsxs)("div",{className:P,children:[(0,l.jsx)(i.default,{htmlFor:y||m,className:T,children:s}),d&&(0,l.jsx)(i.default,{as:"div",className:C,children:d})]})]})}m(".display-x78zum5{display:flex}",3e3),m(".-webkit-appearance-x1lugfcp{-webkit-appearance:none}",3e3),m(".appearance-xjyslct{appearance:none}",3e3),m(".backgroundColor-x83z2og{background-color:#fff}",3e3),m(".backgroundColor-x13ihzrn:disabled{background-color:var(--gray250-x1kpk87u)}",3092),m(".border-x1kylzug{border:1px solid}",1e3),m(".borderColor-xmmyy0b{border-color:var(--gray250-x1kpk87u)}",2e3),m(".borderColor-x16s6om2:disabled{border-color:var(--gray400-x79zdqj)}",2092),m(".margin-x1ghz6dp{margin:0}",1e3),m(".position-x1n2onr6{position:relative}",3e3),m(".borderColor-x1la2hv2:hover{border-color:var(--oldBrand600-x1t41vhw)}",2130),m(".background-x7lhch2:hover{background:var(--oldBrand50-x1t4s9vw)!important}",1130),m(".cursor-x1277o0a:hover{cursor:pointer}",3130),m(".borderRadius-x12oqio5{border-radius:4px}",2e3),m(".width-x1kky2od{width:16px}",4e3),m(".height-xlup9mm{height:16px}",4e3),m(".borderRadius-x1kogg8i{border-radius:6px}",2e3),m(".width-xw4jnvo{width:20px}",4e3),m(".height-x1qx5ct2{height:20px}",4e3),m(".backgroundColor-x1bruzxa{background-color:var(--oldBrand50-x1t4s9vw)!important}",3e3),m(".backgroundColor-x1nkl2ld:disabled{background-color:var(--gray250-x1kpk87u)!important}",3092),m(".borderColor-xsksl2b{border-color:var(--oldBrand600-x1t41vhw)!important}",2e3),m(".borderColor-x1pugs2j:disabled{border-color:var(--gray600-x139mciy)!important}",2092),m('.content-x1cpjm7i::before{content:""}',8e3),m(".position-x1hmns74::before{position:absolute}",8e3),m(".backgroundColor-xxvlkim::before{background-color:var(--oldBrand600-x1t41vhw)}",8e3),m(".top-x6tf9tk::before{top:3.5px}",9e3),m(".left-xmnqsde::before{left:8px}",9e3),m(".width-xjuy2up::before{width:2px}",9e3),m(".height-x1yd0sln::before{height:8px}",9e3),m(".borderRadius-x10ws7ij::before{border-radius:5px}",7e3),m(".transform-x1wdwgm0::before{transform:rotate(45deg)}",8e3),m('.content-x1s928wv::after{content:""}',8e3),m(".position-x1j6awrg::after{position:absolute}",8e3),m(".top-x1milq8b::after{top:6px}",9e3),m(".left-x1r8uy42::after{left:4px}",9e3),m(".height-xtf7t35::after{height:5px}",9e3),m(".width-x13694x8::after{width:2px}",9e3),m(".borderRadius-x1ib2b0o::after{border-radius:5px}",7e3),m(".backgroundColor-xn9wcvw::after{background-color:var(--oldBrand600-x1t41vhw)}",8e3),m(".transform-x1u96j6x::after{transform:rotate(135deg)}",8e3),m(".borderColor-x1x4ktn3:disabled{border-color:var(--gray400-x79zdqj)!important}",2092),m(".height-x1mtoes2::before{height:11px}",9e3),m(".top-xw9j58::before{top:4px}",9e3),m(".left-x1jgmywl::before{left:10px}",9e3),m(".height-x13r0tq7::after{height:6px}",9e3),m(".top-x68zsf1::after{top:8px}",9e3),m(".left-x1xce5h::after{left:5px}",9e3),m(".backgroundColor-x1dkd3vz::before{background-color:var(--gray400-x79zdqj)!important}",8e3),m(".backgroundColor-x2yd7e1::after{background-color:var(--gray400-x79zdqj)!important}",8e3),m(".top-x1i2bxd::before{top:6px}",9e3),m(".left-x1ku2df0::before{left:4px}",9e3),m(".width-xpslbdi::before{width:6px}",9e3),m(".height-xuuc98b::before{height:2px}",9e3),m(".borderRadius-xty4yez::before{border-radius:2px}",7e3),m(".backgroundColor-x17h300y::before{background-color:var(--gray400-x79zdqj)}",8e3),m(".top-x18ntydv::before{top:8px}",9e3),m(".left-x1b0xmzb::before{left:5px}",9e3),m(".width-x5bgxoj::before{width:8px}",9e3),m(".borderRadius-xkcpdhr{border-radius:50%!important}",2e3),m(".marginLeft-xet2fuk{margin-left:8px}",4e3),m(".top-x1l6apta{top:-2.5px}",4e3),m(".top-x1pdr0v7{top:-1px}",4e3),m(".marginLeft-x1swdo50{margin-left:2px}",4e3),m(".fontWeight-xo1l8bm{font-weight:400}",3e3),m(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),m(".fontSize-xfifm61{font-size:12px}",3e3),m(".lineHeight-x1fc57z9{line-height:20px}",3e3),m(".fontSize-xif65rj{font-size:14px}",3e3),m(".lineHeight-x1o2sk6j{line-height:24px}",3e3),m(".marginLeft-x1iog12x{margin-left:4px}",4e3),m(".color-x75csi3{color:var(--black400-x1u7ngzx)}
2",3e3),g.displayName="Input.Checkbox",t.default=g},22228:(e,t,n)=>{"use strict";n.d(t,{A:()=>a}),n(14041);var r=n(30042),o=n(31085);const a=function(){return(0,o.jsx)(r.A,{})}},22317:(e,t,n)=>{"use strict";n.d(t,{A:()=>m}),n(14041);var r=n(9260),o=n(62720),a=n(30021),i=n(28426),l=n(30556),s=n(99018),c=n(89748),u=n(33559),d=n(26923),f=n(31085),p=(0,s.createUseStyles)(function(e){return{"@global":{body:{background:e.background.galaxyDust}},textContainer:{marginLeft:22,maxWidth:"70%"},title:{marginTop:60,fontSize:48,fontFamily:e.fonts.heading,color:e.colors.neutralTextDefault},text:{marginTop:22,fontSize:16,fontFamily:e.fonts.text,color:e.colors.neutralTextWeak},image:{height:500},wrapper:{display:"flex",alignItems:"center",minHeight:"80vh"}}});const m=function(){var e=p(),t=(0,d.A)(),n=t.workspaceName,s=t.setWorkspaceName,m=t.createWorkspace;return(0,f.jsx)(i.A.Page,{type:"overview",children:(0,f.jsx)("div",{className:e.wrapper,children:(0,f.jsx)(l.default,{children:(0,f.jsxs)(l.default.Row,{children:[(0,f.jsx)(l.default.Col,{md:7,children:(0,f.jsxs)("div",{className:e.textContainer,children:[(0,f.jsx)("div",{className:e.title,children:(0,c.A)("Welcome to Lunio")}),(0,f.jsx)(a.default,{preset:"subText",className:"mt-2",children:(0,c.A)("Lunio is organised in workspaces to allow you to access your data easily for different brands, teams or clients.")}),(0,f.jsx)(a.default,{preset:"subText",className:"mt-6 mb-8",children:(0,c.A)("Let's get you set up with your first workspace.")}),(0,f.jsx)(o.default,{label:(0,c.A)("Enter a name here"),placeholder:(0,c.A)("My First Workspace"),value:n,onChange:function(e){return s(e.target.value)}}),(0,f.jsx)(r.default,{className:"mt-4",iconRight:["far","circle-check"],onClick:function(){return m()},children:(0,c.A)("Create Workspace")})]})}),(0,f.jsx)(l.default.Col,{children:(0,f.jsx)("img",{className:e.image,src:u,"data-testid":"no-workspaces-image",alt:"-"})})]})})})})}},22392:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(14041),o=n(51836),a=n(73657),i=n(44949),l=n(99018),s=n(89748),c=n(77730),u=n(99226),d=n(31085);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g=(0,l.createUseStyles)(function(){return{settingsPageContainer:{width:"100%",padding:0}}});const y=function(){var e=g(),t=f((0,c.A)(),1)[0],n=f((0,r.useState)(""),2),l=n[0],y=n[1],h=(0,o.g)().id,x=(0,(0,u.A)().allowedAccountRoles)(["ROOT","ADMIN"]);(0,r.useEffect)(function(){null!=t&&t.workspaces.length&&h&&(null==t||t.workspaces.forEach(function(e){e.id===parseInt(h,10)&&y((null==e?void 0:e.name)||"")}))},[t.workspaces]);var b,v=[{name:(0,s.A)("General"),to:"/workspace-settings/workspace/".concat(h,"/general")},{name:(0,s.A)("Accounts"),to:"/workspace-settings/workspace/".concat(h,"/accounts")}].concat(function(e){if(Array.isArray(e))return m(e)}(b=x?[{name:(0,s.A)("Multi Platform"),to:"/workspace-settings/workspace/".concat(h,"/multi-platform")}]:[])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(b)||p(b)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}
2(),[{name:(0,s.A)("Members"),to:"/workspace-settings/workspace/".concat(h,"/members")}]);return(0,d.jsxs)("div",{className:e.settingsPageContainer,id:"lunio-idenfitier-workspaces",children:[(0,d.jsx)(i.A,{menuItems:v,title:(0,s.A)("Workspace Settings"),size:"sm",subTitle:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.Link,{style:{color:"#7F56D9"},to:"/workspace-settings/workspaces",children:(0,s.A)("Workspaces")})," ",l&&" / ",l]})}),(0,d.jsx)("div",{children:(0,d.jsx)(o.sv,{})})]})}},22433:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=(o=n(36313))&&o.__esModule?o:{default:o},l=n(4386),s=n(31085);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t,n,r=e.filter,o=null!==(t=r.options)&&void 0!==t?t:[],c=o.filter(function(e){return!0===e.value}).length,u=(0,l.getFilterTestId)(null!==(n=r.label)&&void 0!==n?n:r.name,"filter-active-selection-count");if(0===c)return null;var f=o.length>0&&c===o.length?"All":c;return(0,s.jsx)("span",d(d({},a.props(i.default.selectedBadge)),{},{"data-testid":u,children:f}))}p.displayName="ActiveSelectionCountBadge",t.default=p},22453:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(14041),o=n(56197),a=n(9260),i=n(1781),l=n(30021),s=n(30556),c=n(99018),u=n(89748),d=n(31085),f=(0,c.createUseStyles)(function(e){return{container:{paddingTop:e.spacing[2],paddingRight:0,paddingBottom:e.spacing[2],paddingLeft:e.spacing[4]},badges:{display:"flex",alignItems:"center",height:"100%",gap:e.spacing[2],justifyContent:"flex-end"}}});function p(e){var t=e.item,n=e.handleClick,r=f(),p=(0,c.classNames)(r.container);return(0,d.jsx)("div",{className:p,children:(0,d.jsxs)(s.default.Row,{style:{marginRight:0,marginLeft:0},children:[(0,d.jsx)(s.default.Col,{children:(0,d.jsxs)("div",{className:"flex items-center",children:[(0,d.jsx)(l.default,{weight:"lg",size:"sm",children:null==t?void 0:t.name}),("United States of America"===(null==t?void 0:t.name)||"USA"===(null==t?void 0:t.name))&&(0,d.jsx)(i.default,{content:(0,u.A)("Set Geo Targeting to USA Sates"),children:(0,d.jsx)(a.default,{"data-testid":"usa-trigger-button",preset:"outline",size:"sm",className:"ml-3",iconLeft:["far","location-crosshairs"],style:{width:"fit-content"},onClick:function(){return n(t)}})})]})}),(0,d.jsx)(s.default.Col,{style:{paddingRight:0},children:(0,d.jsxs)("div",{className:r.badges,children:[(0,d.jsx)(i.default,{content:(0,u.A)("% Total Clicks"),children:(0,d.jsx)(o.default,{colourName:"primary",style:{width:65},children:t.value1.toFixed(2)})}),(0,d.jsx)(i.default,{content:(0,u.A)("% SIVT Clicks"),children:(0,d.jsx)(o.default,{colourName:"error",style:{width:65},children:t.value2.toFixed(2)})})]})})]})})}const m=(0,r.forwardRef)(p)},22496:(e,t,n)=>{"use strict";e.exports=n.p+"814c2bcefa091130b5cb.svg"},22636:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(14041),o=n(31085);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var i=["data"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e){var t,n,a,l=e.data,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i),d=(n=(0,r.useState)(null!==(t=l.value)&&void 0!==t?t:""),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,a)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=d[0],p=d[1];return(0,o.jsxs)("div",{children:[null!=l.label&&(0,o.jsx)("label",{htmlFor:l.name,children:l.label}),(0,o.jsx)("input",s({id:l.name,type:"text",name:l.name,"data-testid":l.name,placeholder:l.placeholder,disabled:l.disabled,value:f,onChange:function(e){p(e.target.value)},onBlur:function(){l.onFormValue(f)}},c))]})}d.displayName="TableInput";const f=d},22898:(e,t,n)=>{"use strict";n.d(t,{A:()=>v}),n(14041);var r=n(89748),o=n(19863),a=n(27333),i=n(17419),l=n(28426),s=n(96956),c=n(27805),u=n(62161),d=n(93033),f=n(99226),p=n(89541),m=n(13497),g=n(31085);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v=function(e){var t,n,y,h=e.filters,b=e.onFilterChange,v=e.handlePagination,A=e.handleSort,_="TRIAL"===(0,f.A)().lunioStatus,S=[{label:(0,r.A)("Partner"),name:"partner",type:"radio",options:[{label:(0,r.A)("Contains"),name:"contains",type:"text"}]}],w=(0,a.st)("/affiliates/analytics/partners",x(x({},h),h["partner.contains"]&&{partner:h["partner.contains"]})),O=w.data,j=w.isLoading;return(0,g.jsxs)(l.A.Page,{type:"main",children:[(0,g.jsx)(c.default,{title:"".concat((0,r.A)("Ad Stats")," - ").concat((0,r.A)("Partner")),text:(0,r.A)("See which interactions with your ads triggered an invali
2d flag within the Lunio system."),contentRight:(0,g.jsx)(m.A,{filters:h,exportType:"affiliate_partner"})}),(0,g.jsx)(p.A,{filters:h,onFilterChange:b,filterConfig:S}),(0,g.jsx)("div",{className:"mt-4"}),(0,g.jsx)(u.A,{rows:null==O||null===(t=O.result)||void 0===t?void 0:t.data,isLoading:j,totalItems:null==O||null===(n=O.result)||void 0===n||null===(n=n.pagination)||void 0===n?void 0:n.total,totalPages:null==O||null===(y=O.result)||void 0===y||null===(y=y.pagination)||void 0===y?void 0:y.last_page,pageNumber:h.page,handlePagination:v,handleSorting:A,limit:h.limit,sorting:{sortKey:h.sortKey,sortOrder:h.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,r.A)("Partner")}),(0,g.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,r.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,r.A)("Legitimate")}),(0,g.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,r.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,r.A)("Suspicious")}),(0,g.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,r.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,r.A)("SIVT Clicks")}),(0,g.jsx)(d.A,{AND:!_,children:(0,g.jsx)("th",{"data-testid":"givt","data-tooltip":(0,r.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,r.A)("GIVT Clicks")})}),(0,g.jsx)("th",{"data-tooltip":(0,r.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,r.A)("Total IVT")}),(0,g.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,r.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,r.A)("Total Clicks")}),(0,g.jsx)("th",{"data-tooltip":(0,r.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,r.A)("All Tracked Clicks")}),(0,g.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,r.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,r.A)("SIVT Clicks %")}),(0,g.jsx)("th",{"data-tooltip":(0,r.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,r.A)("Total IVT %")}),(0,g.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,r.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,r.A)("Health")})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsx)("td",{children:(null==e?void 0:e.affiliate_partner)||(0,g.jsx)("span",{className:"italic text-gray-400",children:(0,r.A)("unassigned")})}),(0,g.jsx)("td",{children:(0,g.jsx)(i.A,{type:"legitimate",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_legitimate)})}),(0,g.jsx)("td",{children:(0,g.jsx)(i.A,{type:"suspicious",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_suspicious)})}),(0,g.jsx)("td",{children:(0,g.jsx)(i.A,{type:"invalid",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,g.jsx)(d.A,{AND:!_,children:(0,g.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,g.jsx)("td",{children:(0,o.m)(null==e?void 0:e.total_ivt)}),(0,g.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_total)}),(0,g.jsx)("td",{children:(0,o.m)(null==e?void 0:e.all_tracked_clicks)}),(0,g.jsxs)("td",{children:[null==e?void 0:e.percent_fraudulent,"%"]}),(0,g.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,g.jsx)("td",{children:(0,g.jsx)(s.A,{health:null==e?void 0:e.health})})]})]})}})]})}},23151:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(25751)),o=n(60156),a=s(n(56197)),i=s(n(9486)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return"up"===e?"error":"down"===e?"success":"default"}function u(e){return"prevMonth"===e?(0,o.language)("month"):"".concat(e,"d")}function d(e){var t=e.number,n=e.time,r=e.direction,s=void 0===r?"right":r,d=e.hideText,f=void 0!==d&&d;return(0,l.jsxs)("div",{children:[(0,l.jsx)(a.default,{className:"minWidth-x173qytb",colourName:c(s),iconLeft:"arrow-".concat(s),children:Number(t).toFixed(2)}),!f&&(0,l.jsx)(i.default,{children:(0,l.jsx)("em",{children:(0,o.language)("vs previous :time",{time:u(n)})})})]})}(0,r.default)(".minWidth-x173qytb{min-width:75px}",4e3),d.displayName="DeltaBadge",t.default=d},23232:(e,t,n)=>{"use strict";e.exports=n.p+"3cee57f2b50d1d6a71ac.png"},23687:(e,t,n)=>{"use strict";e.exports=n.p+"5041d390fbf69beec834.svg"},23695:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.organicPosition,n=e.paidPosition;if(null==t||!t.length)return null;var r=function(e,t){var n,r=e.find(function(e){return"You"===e.domain||"You"===e.advertiser});return 1!==(null!==(n=null==r?void 0:r.position)&&void 0!==n?n:null)?"increase":t.some(function(e){return"You"!==e.domain&&"You"!==e.advertiser})?"monitor":"decrease"}(t,n),o=y[r],a=o.icon,u=o.iconStyle,d=o.title,p=o.body;return(0,c.jsxs)("div",f(f({},{className:"display-x78zum5 flexDirection-x1q0g3np gap-x167g77z","data-style-src":"Recommendations/index.tsx:8"}),{},{children:[(0,c.jsx)("div",f(f({},i.props(g.icon,u)),{},{children:(0,c.jsx)(s.Icon,{name:a})})),(0,c.jsxs)("div",f(f({},{className:"maxWidth-x256u9z wordWrap-x1vvkbs whiteSpace-xeaf4i8","data-style-src":"Recommendations/index.tsx:13"}),{},{children:[(0,c.jsx)(s.Text,{preset:"statLabel",as:"h2",children:(0,l.language)(d)}),(0,c.jsx)(s.Text,f(f({preset:"cardSubText"},{className:"lineHeight-xd4r4e8","data-style-src":"Recommendations/index.tsx:18"}),{},{children:(0,l.language)(p)}))]}))]}))};var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(60156),s=n(45365),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=a.default;m(".display-x78zum5{display:flex}",3e3),m(".flexDirection-x1q0g3np{flex-direction:row}",3e3),m(".gap-x167g77z{gap:8px}",2e3),m(".maxWidth-x256u9z{max-width:250px}",4e3),m(".wordWrap-x1vvkbs{word-wrap:break-word}",3e3),m(".whiteSpace-xeaf4i8{white-space:normal}",3e3),m(".lineHeight-xd4r4e8{line-height:18px}",3e3),m(".height-xxk0z11{height:24px}",4e3),m(".width-xvy4d1p{width:24px}",4e3),m(".borderRadius-x12oqio5{border-radius:4px}",2e3),m(".alignItems-x6s0dn4{align-items:center}",3e3),m(".justifyContent-xl56j7k{justify-content:center}",3e3),m(".marginTop-x1xmf6yo{margin-top:8px}",4e3),m(".flexShrink-x2lah0s{flex-shrink:0}",3e3),m(".backgroundColor-x1ctoai6{background-color:var(--error100-x13jjcv4)}",3e3),m(".color-x1iviald{color:var(--error600-x1indqeg)}",3e3),m(".backgroundColor-x17behm0{background-color:var(--success100-x14um8e)}",3e3),m(".color-x1rhnk1{color:var(--success600-x1k6hy5b)}",3e3),m(".backgroundColor-xf6q9j8{background-color:var(--oldBrand100-x1o59ms7)}",3e3),m(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3);var g={icon:{height:"height-xxk0z11",width:"width-xvy4d1p",borderRadius:"borderRadius-x12oqio5",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",marginTop:"marginTop-x1xmf6yo",flexShrink:"flexShrink-x2lah0s",$$css:"Recommendations/index.tsx:21"},iconIncrease:{backgroundColor:"backgroundColor-x1ctoai6",color:"color-x1iviald",$$css:"Recommendations/index.tsx:31"},iconDecrease:{backgroundColor:"backgroundColor-x17behm0",color:"color-x1rhnk1",$$css:"Recommendations/index.tsx:35"},iconMonitor:{backgroundColor:"backgroundColor-xf6q9j8",color:"color-x14ptq3k",$$css:"Recommendations/index.tsx:39"}},y={increase:{icon:["fas","arrow-up"],iconStyle:g.iconIncrease,title:"Increase bid",body:"You're not ranking #1 organically. Increase paid spend to protect visibility."},decrease:{icon:["fas","arrow-down"],iconStyle:g.iconDecrease,title:"Reduce spend",body:"You rank #1 organically with no competitors. Consider reducing your paid bid."},monitor:{icon:["far","wave-pulse"],iconStyle:g.iconMonitor,title:"Monitor competitors",body:"You rank #1 organically but have competing advertisers. Monitor competitor presence."}}},24131:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=d(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),l=n(86957),s=d(n(47066)),c=d(n(21576)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(0,o.default)(".position-x10l6tqk{position:absolute}",3e3),t.default=function(e){var t=e.data,n=e.xTitle,r=e.yTitle,o=e.onUserSelect,d=(0,a.useRef)(null),f=y((0,a.useState)({}),2),p=f[0],g=f[1],h=y((0,a.useState)({x:0,y:0}),2),x=h[0],b=h[1],v=window.innerWidth;return(0,a.useEffect)(function(){var e;i.select(d.current).selectAll("*").remove();var a=i.select(d.current),c=+a.node().getBoundingClientRect().width-28-20,u=+a.attr("height")-34-44,f=a.append("g").attr("transform","translate(".concat(28,",").concat(34,")")),p=null!==(e=i.max(t,function(e){return e.total}))&&void 0!==e?e:1,m=Math.pow(10,Math.ceil(Math.log10(p))),h=i.scaleLog().domain([1,m>100?m:100]).range([0,c]),x=i.scaleLinear().domain([0,100]).range([u,0]),A=f.append("g").attr("transform","translate(0,".concat(u,")")).call(i.axisBottom(h).tickValues(function(e){for(var t=y(e.domain().map(Math.log10),2),n=t[0],r=t[1],o=[],a=Math.ceil(n);a<=Math.floor(r);a+=1)o.push(Math.pow(10,a));return o}(h)).tickSizeInner(-u)).style("font-size","11px");A.select(".domain").remove(),A.selectAll(".tick line").style("stroke",l.colourValues.gray100),A.selectAll(".tick text").attr("transform","translate(0, 8)"),f.append("text").attr("transform","translate(0,".concat(u+40,")")).attr("text-anchor","end").attr("x",c).style("font-size","12px").style("font-weight",600).style("fill",l.colourValues.gray500).text(null!=n?n:"");var _=f.append("g").call(i.axisLeft(x).ticks(4).tickFormat(function(e){return String(e)}).tickSizeInner(-c)).style("font-size","11px");f.append("text").attr("transform","translate(".concat(-28,",").concat(-22,")")).attr("text-anchor","start").style("font-size","12px").style("font-weight",600).style("fill",l.colourValues.gray500).text(null!=r?r:""),_.select(".domain").remove(),_.selectAll(".tick line").style("stroke",l.colourValues.gray100),A.selectAll(".tick text").attr("dy","10px"),_.selectAll(".tick text").attr("dx","-8px"),a.append("g").attr("transform","translate(".concat(28,",").concat(34,")")).selectAll("dot").data(t).enter().append("circle").attr("cx",function(e){return h(e.total)}).attr("cy",function(e){return x(e.fraudulent)}).attr("r",4).style("fill",function(e){return(0,s.default)(h(e.total),x(e.fraudulent),p,e.label)}).style("cursor","pointer").on("click",function(e,n){if(o){var r=t.indexOf(n);o(r)}}).on("mouseover",function(e,t){g({fraudulent:t.rawFraudulent,total:t.total,label:t.label,matchType:t.matchType}),e.pageX+370>v?b({x:e.offsetX-370,y:e.offsetY,align:"right"}):b({x:e.offsetX+30,y:e.offsetY,align:"left"})}).on("mouseleave",function(){g({})})},[t]),(0,u.jsxs)("div",{children:[(0,u.jsx)("svg",{ref:d,"data-testid":"scatter-chart",width:"100%",height:"500"}),(null==p?void 0:p.label)&&(0,u.jsx)("div",m(m({},{className:"position-x10l6tqk","data-style-src":"Scatter/index.tsx:9"}),{}
2,{style:{top:"".concat(x.y,"px"),left:"".concat(x.x,"px")},children:(0,u.jsx)(c.default,{data:p})}))]})}},24149:(e,t,n)=>{"use strict";e.exports=n.p+"389d3b0db6fb6fb7dcef.svg"},24284:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65349);n(68629);const o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";return r.oR[t](e)}},24316:(e,t,n)=>{"use strict";e.exports=n.p+"843ee3d97ec1fe1db548.svg"},24327:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(14041),o=n(39067),a=n.n(o),i=n(62161),l=n(9260),s=n(1781),c=n(55618),u=n(30021),d=n(62683),f=n(28426),p=n(90405),m=n(27805),g=n(73657),y=n(89748),h=n(99018),x=n(78395),b=n(90275),v=n(31085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=(0,h.createUseStyles)(function(e){return w(w(w(w(w(w(w(w(w(w({formContainer:{marginTop:e.spacing[4],width:"50%"}},"@media (max-width: ".concat(e.breakpoints.xl,")"),{formContainer:{width:"100%"}}),"centredRow",{display:"flex",alignItems:"center"}),"logo",{backgroundColor:e.colors.purple[100],borderRadius:10,overflow:"hidden",width:89,height:89,padding:10}),"greyText",{color:"".concat(e.colors.grey[100]," !important")}),"alignTextRight",{textAlign:"right"}),"statusBlock",{borderRadius:50,textAlign:"center",width:120,padding:"4px 12px 4px 12px",display:"flex",alignItems:"center"}),"protected",{backgroundColor:e.colors.green[25],color:e.colors.green[700]}),"monitored",{backgroundColor:e.colors.purple[50],color:e.colors.purple[500]}),"disabled",{backgroundColor:e.colors.red[50],color:e.colors.red[600]}),"platformIcon",{marginRight:12,width:24,height:24})});function j(e){var t,n,o=e.configuredPlatforms,a=e.isLoading,h=e.onUpdatePlatform,A=e.onCreatePlatform,S=e.supportedPlatforms,w=e.handlePagination,j=e.filters,k=O(),E=_((0,r.useState)(""),2),N=E[0],I=E[1],P=_((0,r.useState)(null),2),T=P[0],C=P[1];return(0,v.jsxs)(f.A.Page,{type:"settings",children:[(0,v.jsx)(m.default,{type:"settings",title:(0,y.A)("Multi Platform Settings"),text:(0,y.A)("See the platforms inside of your workspaces"),contentRight:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(l.default,{className:"mr-3","data-testid":"add-platform-button",onClick:function(){return I("creatingPlatform")},"aria-label":(0,y.A)("Add Mew Platforms"),iconRight:"plus",children:(0,y.A)("Add New Mplat")}),(0,v.jsx)(l.default,{as:g.Link,to:"/integrations-settings/integrations",id:"mplat-script-button",preset:"link","data-testid":"mplat-script-button",onClick:function(){},"aria-label":(0,y.A)("Mplat Script"),iconRight:"chevron-right",children:(0,y.A)("Mplat Script")})]})}),(0,v.jsx)(i.A,{rows:null==o?void 0:o.data,isLoading:a,pageNumber:j.page,handlePagination:w,limit:j.limit,totalItems:null==o||null===(t=o.pagination)||void 0===t?void 0:t.total,totalPages:null==o||null===(n=o.pagination)||void 0===n?void 0:n.last_page,noDataTitle:(0,y.A)("No platforms found"),noDataSubTitle:(0,y.A)("Click the add button to setup your first platform"),noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("thead",{children:(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{children:(0,y.A)("Platform")}),(0,v.jsx)("th",{children:(0,y.A)("Name")}
2),(0,v.jsx)("th",{children:(0,y.A)("Status")}),(0,v.jsx)("th",{"data-align":"right",children:(0,y.A)("Edit")})]})}),(0,v.jsxs)("tbody",{children:[(0,v.jsx)("td",{children:(0,v.jsxs)("div",{className:"flex items-center",children:[(0,v.jsx)(p.A,{platformName:null==e?void 0:e.code_name,className:k.platformIcon}),(0,v.jsx)(u.default,{preset:"cellText",children:null==e?void 0:e.descriptive_name})]})}),(0,v.jsx)("td",{children:null==e?void 0:e.configuration_name}),(0,v.jsx)("td",{children:(0,v.jsx)(d.A,{status:null==e?void 0:e.protection_status})}),(0,v.jsx)("td",{"data-align":"right",children:(0,v.jsx)(s.default,{content:(0,y.A)("Edit this platform"),children:(0,v.jsx)(l.default,{id:"edit-platform-button","data-testid":"edit-platform-button-".concat(null==e?void 0:e.code_name),size:"sm",preset:"outline",className:k.button,onClick:function(){C(e),I("editingPlatform")},"aria-label":(0,y.A)("Edit Platform"),iconLeft:"far fa-pencil"})})})]})]})}}),(0,v.jsx)(c.default,{open:"creatingPlatform"===N,onClose:function(){return I("")},heading:(0,y.A)("Create Platform"),children:(0,v.jsx)(x.A,{onCreatePlatform:A,onClose:function(){return I("")},supportedPlatforms:S,configuredPlatforms:o})}),(0,v.jsx)(c.default,{open:"editingPlatform"===N,onClose:function(){C(null),I("")},heading:(0,y.A)("Edit Platform"),children:(0,v.jsx)(b.A,{onUpdatePlatform:h,editingPlatform:T,supportedPlatforms:S,configuredPlatforms:o,onClose:function(){return I("")}})})]})}j.propTypes={configuredPlatforms:a().object.isRequired,isLoading:a().bool.isRequired,onUpdatePlatform:a().func.isRequired,onCreatePlatform:a().func.isRequired,supportedPlatforms:a().object.isRequired,handlePagination:a().func.isRequired,filters:a().object.isRequired};const k=j},24414:(e,t,n)=>{"use strict";e.exports=n.p+"040295f28589af415c22.svg"},24678:(e,t,n)=>{"use strict";e.exports=n.p+"920c7a7a5aefe8855d50.svg"},25396:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.datum,r=e.affiliateLebalTypes,o=void 0===r?"default":r;return(0,l.jsxs)("div",u(u({},{className:"borderRadius-xur7f20 padding-x2g7vr0 background-x1h3gynt boxShadow-xm7jpje","data-style-src":"Tooltip/index.tsx:8"}),{},{children:[(0,l.jsx)(a.Text,{preset:"h6",children:(0,i.format)(n.date,"dd MMM yyyy")}),null===(t=n.value)||void 0===t?void 0:t.map(function(e){return(0,l.jsxs)("div",{children:[(0,l.jsx)("span",u(u({},{className:"height-x18gnavp width-x1fxhmyf borderRadius-x1f96onm display-x1rg5ohu marginRight-xaz8w3f","data-style-src":"Tooltip/index.tsx:25"}),{},{style:{backgroundColor:e.color}})),(0,l.jsx)("strong",u(u({},{className:"fontSize-xosj86m fontWeight-xk50ysn paddingRight-x1vvpot1 whitespace-x1q6r1km","data-style-src":"Tooltip/index.tsx:19"}),{},{children:(0,i.getAffiliateLabels)(o)[e.name]||e.name})),(0,l.jsxs)("span",{children:[e.value,"%"]})]},e.name)})]}))};var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(45365),i=n(18141),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=o.default;f(".borderRadius-xur7f20{border-radius:8px}",2e3),f(".padding-x2g7vr0{padding:var(--2-x17wbp3g)}",1e3),f(".background-x1h3gynt{background:var(--white-x3n8fk9)}",1e3),f(".boxShadow-xm7jpje{box-shadow:0 4px 6px -2px #0A0D1208}",3e3),f(".display-x78zum5{display:flex}",3e3),f(".flexDirection-xdt5ytf{flex-direction:column}",3e3),f(".justifyContent-xl56j7k{justify-content:center}",3e3),f(".fontSize-xosj86m{font-size:18px}",3e3),f(".fontWeight-xk50ysn{font-weight:500}",3e3),f(".paddingRight-x1vvpot1{padding-right:var(--2-x17wbp3g)}",4e3),f(".whitespace-x1q6r1km{whitespace:nowrap}",3e3),f(".height-x18gnavp{height:13px}",4e3),f(".width-x1fxhmyf{width:13px}",4e3),f(".borderRadius-x1f96onm{border-radius:50px}",2e3),f(".display-x1rg5ohu{display:inline-block}",3e3),f(".marginRight-xaz8w3f{margin-right:var(--2-x17wbp3g)}",4e3)},25592:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(25751)),o=n(99018),a=l(n(9486)),i=n(31085);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var c=["value","data-testid","content","label","size","disabled","formValue","checkmark","name","ariaLabel"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=r.default;function m(e){var t=e.value,n=e["data-testid"],r=void 0===n?"radio":n,l=e.content,s=void 0===l?"":l,u=e.label,f=void 0===u?"":u,p=e.size,m=void 0===p?"sm":p,g=e.disabled,y=void 0!==g&&g,h=e.formValue,x=void 0===h?"":h,b=e.checkmark,v=void 0!==b&&b,A=e.name,_=void 0===A?"":A,S=e.ariaLabel,w=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c),O=(0,o.classNames)("visibility-xlshs6z marginLeft-xmvh4l2",x===t&&!v&&"opacity-x1lrwx1k display-x1fhgk32"),j=(0,o.classNames)("borderRadius-x16rqkct position-x1n2onr6 transform-x1c1b4dv display-xrvj5dj flexShrink-x2lah0s placeContent-x11x033 border-x6atct3 border-x1yud34n backgroundColor-x1p15dez backgroundColor-x11kw77v content-x1cpjm7i borderRadius-x9msap3 opacity-x124lp2h","sm"===m?"width-x1kky2od he
2ight-xlup9mm fontSize-xif65rj width-xpslbdi height-x1rcpbj6 opacity-x124lp2h backgroundColor-xxvlkim backgroundColor-xbvluqd":"width-xw4jnvo height-x1qx5ct2 fontSize-x1j61zf2 width-x5bgxoj height-x1yd0sln opacity-x124lp2h backgroundColor-xxvlkim backgroundColor-xbvluqd",x===t&&!v&&"backgroundColor-x1itpvea border-xnq5hr opacity-xfbg1o9 border-xuysb7s opacity-x15agv38",x!==t&&!v&&"backgroundColor-x18oya0d border-x8msmez border-xuysb7s backgroundColor-x1mmd2lx",y&&"border-x1u8hsne backgroundColor-xo2uq5v cursor-x1h6gzvc backgroundColor-x17h300y",v&&"opacity-xrm9amh display-xm6ihj8",v&&x===t&&"backgroundColor-xq4hiby backgroundColor-x1nkl2ld"),k=(0,o.classNames)("sm"===m?"width-x1kky2od height-xlup9mm fontSize-xif65rj width-xpslbdi height-x1rcpbj6 opacity-x124lp2h backgroundColor-xxvlkim backgroundColor-xbvluqd":"width-xw4jnvo height-x1qx5ct2 fontSize-x1j61zf2 width-x5bgxoj height-x1yd0sln opacity-x124lp2h backgroundColor-xxvlkim backgroundColor-xbvluqd",y&&v&&"filter-x1t95n9z","sm"===m?"width-xuja7k9 height-x1oxkl7l":"width-xi6700n height-xecje49"),E=(0,o.classNames)("display-x78zum5 flexDirection-xdt5ytf","sm"===m?"marginLeft-xet2fuk":"marginLeft-x1tpqehw"),N=(0,o.classNames)("fontWeight-xk50ysn fontSize-xif65rj color-x1jsblnb",y&&"color-xkv09jl"),I=(0,o.classNames)("color-xh3519o fontWeight-xo1l8bm fontSize-xif65rj",y&&"color-xkv09jl");return(0,i.jsxs)("label",{htmlFor:t,className:"display-x78zum5 alignItems-x6s0dn4","aria-label":S,children:[(0,i.jsx)("input",d({value:t,name:_,id:t,"data-testid":"".concat(r,"-input"),className:O,type:"radio",checked:x===t,disabled:y},w)),(0,i.jsx)("span",{"data-testid":r,className:j,children:v&&x===t&&(0,i.jsx)("svg",{className:k,"data-testid":"".concat(r,"-checkmark-svg"),viewBox:"0 0 12 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M10.6666 1.5L4.24998 7.91667L1.33331 5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,i.jsxs)("div",{className:E,children:[(0,i.jsx)(a.default,{className:N,children:f}),s&&(0,i.jsx)(a.default,{as:"div",className:I,children:s})]})]})}p(".display-x78zum5{display:flex}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".flexDirection-xdt5ytf{flex-direction:column}",3e3),p(".marginLeft-xet2fuk{margin-left:8px}",4e3),p(".marginLeft-x1tpqehw{margin-left:12px}",4e3),p(".fontWeight-xk50ysn{font-weight:500}",3e3),p(".fontSize-xif65rj{font-size:14px}",3e3),p(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),p(".color-xkv09jl{color:var(--black200-xao0axe)!important}",3e3),p(".color-xh3519o{color:var(--black500-x161om0q)}",3e3),p(".fontWeight-xo1l8bm{font-weight:400}",3e3),p(".visibility-xlshs6z{visibility:hidden}",3e3),p(".marginLeft-xmvh4l2{margin-left:-12px}",4e3),p(".opacity-x1lrwx1k::before{opacity:1!important}",8e3),p(".display-x1fhgk32::before{display:inline-block}",8e3),p(".borderRadius-x16rqkct{border-radius:50%}",2e3),p(".position-x1n2onr6{position:relative}",3e3),p(".transform-x1c1b4dv{transform:translateY(0px)}",3e3),p(".display-xrvj5dj{display:grid}",3e3),p(".flexShrink-x2lah0s{flex-shrink:0}",3e3),p(".placeContent-x11x033{place-content:center}",2e3),p(".border-x6atct3:hover{border:1px solid var(--oldBrand600-x1t41vhw)}",1130),p(".border-x1yud34n:disabled:hover{border:1px solid var(--gray200-x1cfnqzm)}",1222),p(".backgroundColor-x1p15dez:hover{background-color:var(--white-x3n8fk9)}",3130),p(".backgroundColor-x11kw77v:disabled:hover{background-color:var(--gray100-x1llswo5)}",3222),p('.content-x1cpjm7i::before{content:""}',8e3),p(".borderRadius-x9msap3::before{border-radius:50%}",7e3),p(".opacity-x124lp2h::before{opacity:0}",8e3),p(".width-x1kky2od{width:16px}",4e3),p(".height-xlup9mm{height:16px}",4e3),p(".width-xpslbdi::before{width:6px}",9e3),p(".height-x1rcpbj6::before{height:6px}",9e3),p(".backgroundColor-xxvlkim::before{background-color:var(--oldBrand600-x1t41vhw)}",8e3),p(".backgroundColor-xbvluqd::before:disabled{background-color:var(--gray300-x1xk3734)}",8092),p(".width-xw4jnvo{width:20px}",4e3),p(".height-x1qx5ct2{height:20px}",4e3),p(".fontSize-x1j61zf2{font-size:16px}",3e3),p(".width-x5bgxoj::before{width:8px}",9e3),p(".height-x1yd0sln::before{height:8px}",9e3),p(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),p(".border-x8msmez{border:1px solid var(--gray250-x1kpk87u)}",1e3),p(".border-xuysb7s:hover{border:1px solid var(--oldBrand800-x1i07km4)}",1130),p(".backgroundColor-x1mmd2lx:hover{background-color:var(--oldBrand50-x1t4s9vw)!important}",3130),p(".backgroundColor-x1itpvea{background-color:var(--oldBrand50-x1t4s9vw)}",3e3),p(".border-xnq5hr{border:1px solid var(--oldBrand600-x1t41vhw)}",1e3),p(".opacity-xfbg1o9::before{opacity:1}",8e3),p(".opacity-x15agv38:hover{opacity:8}",3130),p(".border-x1u8hsne{border:1px var(--gray400-x79zdqj) solid!important}",1e3),p(".backgroundColor-xo2uq5v{background-color:var(--gray250-x1kpk87u)!important}",3e3),p(".cursor-x1h6gzvc{cursor:not-allowed}",3e3),p(".backgroundColor-x17h300y::before{background-color:var(--gray400-x79zdqj)}",8e3),p(".opacity-xrm9amh::before{opacity:0!important}",8e3),p(".display-xm6ihj8::before{display:none!important}",8e3),p(".backgroundColor-xq4hiby{background-color:var(--oldBrand700-xx6j7i3)!important}",3e3),p(".backgroundColor-x1nkl2ld:disabled{background-color:var(--gray250-x1kpk87u)!important}",3092),p(".width-xuja7k9{width:10px!important}",4e3),p(".height-x1oxkl7l{height:10px!important}",4e3),p(".width-xi6700n{width:12px!important}",4e3),p(".height-xecje49{height:12px!important}",4e3),p(".filter-x1t95n9z{filter:invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(50%) contrast(0%)}",3e3),m.displayName="Input.Radio",t.default=m},25787:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(14041),o=n(27333),a=n(51836),i=n(17015),l=n(31085);const s=function(){var e=(0,a.zy)().state,t=(0,o.R7)(),n=t.filters,s=t.handlePagination,c=t.setFilters,u=t.handleSort,d=(0,o.st)("/tracking/conversion",n,function(e){var t;return(null!=e&&e["ip_address.startsWith"]?"&ip_address=".concat(encodeURIComponent(e["ip_address.startsWith"])):"")+((null==e||null===(t=e["accounts.selection"])||void 0===t?void 0:t.length)>0?"&df_customer_ids=".concat(JSON.stringify(e["accounts.selection"])):"")}),f=d.data,p=d.isLoading;return(0,r.useEffect)(function(){if(null!=e&&e.page){var t=document.getElementById(null==e?void 0:e.rowId);t&&t.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}window.history.replaceState({},document.title)},[]),(0,l.jsx)(i.A,{onFilterChange:c,data:null==f?void 0:f.result,isLoading:p,filters:n,handlePagination:s,handleSort:u})}},26191:(e,t,n)=>{"use strict";e.exports=n.p+"150a5e639381acb85a96.svg"},26366:(e,t,n)=>{"use strict";e.exports=n.p+"8cf9311f4ec89a7fa448.svg"}
2,26374:(e,t,n)=>{"use strict";e.exports=n.p+"7246303991928983b21a.svg"},26383:(e,t,n)=>{"use strict";n.d(t,{A:()=>L});var r=n(14041),o=n(9260),a=n(77223),i=n(62720),l=n(72686),s=n(30021),c=n(28426),u=n(79135),d=n(27805),f=n(44949),p=n(89748),m=n(62161),g=n(36990),y=n(47318),h=n(73657),x=n(93033),b=n(78806),v=n(44925),A=n(98536),_=n(99018),S=n(32452),w=n(34908),O=n(74364),j=n(51592),k=n(71893),E=n(31085);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T(e,t,n){return(t=function(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var M=(0,_.createUseStyles)(function(e){return{tickBox:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.green[600]),display:"inline-flex",justifyContent:"center",alignItems:"center",color:e.colors.green[600]},dashBox:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.neutralBorderStrong),display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.neutralBorderStrong}}});const L=function(){var e,t=M(),n=C((0,h.useSearchParams)(),1)[0],_=n.get("dsp"),N=n.get("ip"),I=C((0,r.useState)(""),2),T=I[0],R=I[1],L=(0,A.useApi)({url:"/analytics/adclicks",responseDataKey:"adclicks",customFilters:{ip:{queryKey:"ip",value:N}},startDate:(0,v.o)(new Date),endDate:(0,b.D)(new Date)});return(0,r.useEffect)(function(){R("")},[N]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(f.A,{menuItems:[{name:(0,p.A)("Log"),to:"/meta/audit-trail".concat(N?"?ip=".concat(N):"").concat(_?"&dsp=".concat(_):"")}],title:(0,p.A)("Meta Audit Trail"),clickLogBacklink:!0,size:"sm"}),(0,E.jsxs)(c.A.Page,{type:"settings",children:[(0,E.jsx)(d.default,{title:(0,p.A)("Meta Audit Trail"),text:N,contentRight:(0,E.jsx)(x.A,{isImpersonating:!0,children:(0,E.jsxs)("div",{className:"flex v-align-center mb-5",children:[(0,E.jsx)(i.default,{"aria-label":(0,p.A)("Search IP"),value:T,onChange:function(e){return R(e.target.value)}}),(0,E.jsx)(o.default,{className:"ml-3",as:h.Link,to:(null==T?void 0:T.length)>0?"/audit-trail?ip=".concat(T,"&dsp=").concat(_):"/audit-trail?ip=".concat(N,"&dsp=").concat(_),preset
2:"outline",children:(0,p.A)("Change IP")})]})})}),(0,E.jsxs)(l.default,{children:[(0,E.jsxs)("div",{className:"distribute-space-between v-align-center",children:[(0,E.jsx)(s.default,{preset:"widgetHeading",children:(0,p.A)("IP Summary")}),(0,E.jsx)(k.A,{onDatesChange:L.setDates,defaultRange:"30d-inc",maxRangeDays:31,sharedDateRef:"clicks-log",ranges:["1d","yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]})]}),(0,E.jsx)(a.default,{className:"mb-4 mt-4"}),["clicks","internal-tools","internal-tools-ip"].includes(_||"")&&(0,E.jsx)(j.A,{data:null==L||null===(e=L.response)||void 0===e||null===(e=e.result)||void 0===e?void 0:e.ip_summary,className:"mb-4"}),(0,E.jsx)(m.A,P(P({},L.tableConnector),{},{leftPinnedColumns:2,noDataTitle:(0,p.A)("No data available for this IP address"),noDataSubTitle:(0,p.A)("try a different IP address"),children:function(e){var n,r;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("thead",{children:(0,E.jsxs)("tr",{children:[(0,E.jsx)("th",{children:(0,p.A)("Status")}),(0,E.jsx)("th",{"data-sortable-id":"ip",children:(0,p.A)("IP Address")}),(0,E.jsx)("th",{"data-sortable-id":"clicked_at",children:(0,p.A)("Clicked at")}),(0,E.jsxs)("th",{"data-sortable-id":"domain",children:[(0,p.A)("Domain"),(0,E.jsx)(g.A,{groupedCols:!0,header:!0,"data-sortable-id":"campaign",children:(0,p.A)("Campaign")})]}),(0,E.jsx)("th",{"data-sortable-id":"country",children:(0,p.A)("Country")}),(0,E.jsx)(x.A,{featureFlags:["DATA_SAMPLING"],children:(0,E.jsx)("th",{"data-sortable-id":"in_control_group",children:(0,p.A)("Sampled")})})]})}),(0,E.jsxs)("tbody",{children:[(0,E.jsx)("td",{children:(0,E.jsx)(S.A,{statusCode:null==e?void 0:e.flag})}),(0,E.jsx)("td",{children:(0,E.jsx)(y.A,{maxLength:15,clickToCopy:!0,children:null==e?void 0:e.ip})}),(0,E.jsx)("td",{children:(0,E.jsx)(O.A,{row:e})}),(0,E.jsxs)("td",{children:[null==e?void 0:e.domain,(0,E.jsx)(g.A,{groupedCols:!0,children:null==e?void 0:e.campaign_name})]}),(0,E.jsx)("td",{children:(0,E.jsx)(w.A,{countryCode:(null==e||null===(n=e.location_physical)||void 0===n?void 0:n.country_code)||(null==e||null===(r=e.location_physical)||void 0===r?void 0:r.country)})}),(0,E.jsx)(x.A,{featureFlags:["DATA_SAMPLING"],children:(0,E.jsxs)("td",{children:[1===(null==e?void 0:e.in_control_group)&&(0,E.jsx)("div",{className:t.tickBox,"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-in-control"),children:(0,E.jsx)(u.default,{name:"check"})}),0===(null==e?void 0:e.in_control_group)&&(0,E.jsx)("div",{className:t.dashBox,"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-not-in-control"),children:(0,E.jsx)(u.default,{name:"dash"})})]})})]})]})}}))]})]})]})}},26465:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n;if("RESET"===t.type)return t.payload;var i=t.name.split("."),l=null!==(n=i.pop())&&void 0!==n?n:"",s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e);return i.reduce(function(e,t){return"object"===r(e[t])&&null!==e[t]||(e[t]={}),e[t]},s)[l]=t.value,s}n.d(t,{A:()=>i})}
2,26614:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=d(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=n(60156),l=d(n(79135)),s=n(4386),c=d(n(78661)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var y=o.default;function h(e){var t=e.filters,n=e.setFilters,r=(0,s.getFilterTestId)("active-filters","filter-panel");function o(){var e=(0,s.clearAllFilters)(t);n(e)}function d(e){var t;if(1===e.count&&null!==(t=e.activeOptions)&&void 0!==t&&t[0]){var n=e.activeOptions[0],r=n.value;return"string"==typeof r&&""!==r.trim()?"".concat(e.filter.label,": ").concat(r):"".concat(e.filter.label,": ").concat(n.shortLabel||n.label)}return"".concat(e.filter.label,": ").concat(e.count)}var f=function(){var e=[];return t.forEach(function(t){if(t.options){var n=t.options.filter(function(e){var t,n=Boolean(e.value),r=!((t=e.validationErrors)&&"object"===g(t)&&Object.keys(t).length>0);return n&&r});n.length>0&&e.push({filter:t,activeOptions:n,count:n.length})}}),e}();return 0===f.length?null:(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 flexWrap-x1a02dak gap-x167g77z alignItems-x6s0dn4","data-style-src":"ActiveFilters/index.tsx:11"}),{},{"data-testid":r,children:[(0,u.jsxs)("span",p(p({},{className:"fontSize-x1j6dyjg fontWeight-x1s688f color-xnx9fn3 marginRight-xl010v5","data-style-src":"ActiveFilters/index.tsx:28"}),{},{"data-testid":"".concat(r,"-label"),children:[(0,i.language)("Filters"),":"]})),f.map(function(e){var r=(0,s.getFilterTestId)(e.filter.label,"active-filter");return(0,u.jsxs)("div",p(p({},a.props(c.default.badgeContainer,c.default.filterButton)),{},{"data-testid":r,children:[d(e),(0,u.jsx)("button",{type:"button",onClick:function(){return r=e.filter.name,o=(0,s.clearFilter)(t,r),void n(o);var r,o},"data-testid":"".concat(r,"-clear"),children:(0,u.jsx)("span",p(p({},a.props(c.default.closeIcon)),{},{"aria-hidden":"true",children:(0,u.jsx)(l.default,{name:"close"})}))})]}),e.filter.name)}),(0,u.jsx)("span",p(p({},{className:"fontFamily-x122x9cr fontSize-x1j6dyjg fontWeight-x1s688f textAlign-x2b8uid color-xd87uto cursor-x1ypdohk color-x5cnphy","data-style-src":"ActiveFilters/index.tsx:17"}),{},{onClick:o,role:"button",tabIndex:0,"data-testid":"".concat(r,"-clear-all"),onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||o()},children:(0,i.language)("Clear all")}))]}))}y(".display-x78zum5{display:flex}",3e3),y(".flexWrap-x1a02dak{flex-wrap:wrap}",3e3),y(".gap-x167g77z{gap:8px}",2e3),y(".alignItems-x6s0dn4{align-items:center}",3e3),y(".fontFamily-x122x9cr{font-family:Inter}",3e3),y(".fontSize-x1j6dyjg{font-size:11px}",3e3),y(".fontWeight-x1s688f{font-weight:600}",3e3),y(".textAlign-x2b8uid{text-align:center}",3e3),y(".color-xd87uto{color:var(--grey400-x1nkqcqr)}
2",3e3),y(".cursor-x1ypdohk{cursor:pointer}",3e3),y(".color-x5cnphy:hover{color:var(--grey500-xcup54l)}",3130),y(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),y(".marginRight-xl010v5{margin-right:4px}",4e3),h.displayName="ActiveFilters",t.default=h},26902:(e,t,n)=>{"use strict";e.exports=n.p+"67a940e41a495015ef7e.svg"},26920:(e,t,n)=>{"use strict";e.exports=n.p+"e44647d215ebd639aa53.svg"},26923:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14041),o=n(88133);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(){var e,t,n=(e=(0,r.useState)(""),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=n[0],l=n[1],s=(0,o.gC)("/workspaces","POST");return{workspaceName:i,setWorkspaceName:l,createWorkspace:function(){s.mutate({_method:"POST",workspace_name:i},{onSuccess:function(){window.location.href="/overview"}})}}}},27105:(e,t,n)=>{"use strict";e.exports=n.p+"b6cbed3fbcb6186b7090.svg"},27273:(e,t,n)=>{"use strict";e.exports=n.p+"1e7c46e4671aef49c8e6.svg"},27333:(e,t,n)=>{"use strict";n.d(t,{R7:()=>o.A,st:()=>r.A});var r=n(80665),o=n(4990)},27427:(e,t,n)=>{"use strict";e.exports=n.p+"27fdd7a3347fe5748745.svg"},27558:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={colors:{constants:{consistentWhite:"#f1f1f1",white:"#ffffff",black:"#000000"},purple:{25:"#F7F2FC",50:"#F3EBFC",100:"#E8D8FA",200:"#E4C6FF",300:"#D9ADFF",400:"#B173E9",500:"#7E33D5",600:"#6223A9",700:"#4B0E75",800:"#311155",900:"#230637"},pink:{25:"#FAC6F3",50:"#FFAADE",100:"#F366E0",200:"#EB1ED0",300:"#CE12B5"},blue:{25:"#C3C5FD",50:"#898DFB",100:"#575CFC",200:"#373EFB",300:"#040CDC",400:"#03078C",500:"#020564"},teal:{10:"#F2FBFB",20:"#E5F8F8",25:"#C2FFFE",50:"#70FFFD",100:"#99f5f1",200:"#00E0DD",300:"#00B8B5",400:"#007A78",500:"#003D3C"},grey:{25:"#FAF9FA",50:"#F5F5F5",100:"#E6E4E7",150:"#DFE6E9",200:"#CCC9CF",300:"#A9A4AE",400:"#88828C",500:"#67616B",600:"#4D4851",700:"#38343B",800:"#2A272C",900:"#010415",925:"#0a0a0a",950:"#000000"},red:{25:"#FEF4F4",50:"#FEEAEB",100:"#FFBDBF",200:"#FD9B9E",300:"#FB4B51",400:"#FB232A",500:"#FA0F17",550:"#F04438",600:"#DC040C",700:"#A1060B",800:"#720408",900:"#4D0305"},orange:{25:"#F7D8B9",50:"#FFC170",100:"#FFC170",200:"#FF6D00",300:"#F56A00",400:"#FB9364",500:"#DD7546"},yellow:{25:"#FFFBF0",50:"#FFF8E5",100:"#FFF1CC",200:"#FFEB9F",300:"#F5D250",400:"#FFC31F",500:"#F5B400",600:"#D29A00",700:"#A27700",800:"#795900",900:"#503B00"},brown:{25:"#E5BB90",50:"#BD9368",100:"#99734C",200:"#854D27",300:"#7A5A3A"},green:{25:"#ECFAEA",50:"#DCF6D8",100:"#B9EDB1",200:"#96E48A",300:"#79D66B",400:"#5ED64C",425:"#8ECD4F",450:"#7CB642",475:"#699E32",500:"#2ECA16",550:"#31D618",600:"#26A812",700:"#1E860F",800:"#17640B",900:"#0F4207"},greenTwo:{25:"#F5FBF0",50:"#EDF7E3",100:"#DBEFC7",200:"#C9E7AA",300:"#B7DF8E",400:"#A5D772",500:"#93CF56",600:"#7DB546",700:"#669439",800:"#50732C",900:"#395220"},get primaryTextDefault(){return this.purple[500]},get primaryTextStrong(){return this.purple[700]},get primaryTextWeak(){return this.purple[400]},get primaryTextOnBackground(){return this.constants.white},get primaryBackground(){return this.purple[500]},get primaryBackgroundWeak(){return this.purple[50]},get primaryBackgroundStrong(){return this.purple[700]}
2,get primaryBackgroundHover(){return this.purple[700]},get primaryBorder(){return this.purple[500]},get primaryBorderHover(){return this.purple[600]},get primaryIcon(){return this.purple[500]},get primaryIconHover(){return this.purple[700]},get primaryIconOnBackground(){return this.constants.white},get neutralTextDefault(){return this.grey[700]},get neutralTextStrong(){return this.grey[900]},get neutralTextWeak(){return this.grey[500]},get neutralTextDisabled(){return this.grey[300]},get neutralBackground(){return this.constants.white},get neutralBackgroundMedium(){return this.grey[50]},get neutralBackgroundStrong(){return this.grey[100]},get neutralBackgroundHover(){return this.grey[50]},get neutralBackgroundActive(){return this.grey[100]},get neutralBackgroundDisabled(){return this.grey[100]},get neutralBorder(){return this.grey[100]},get neutralBorderStrong(){return this.grey[200]},get neutralBorderHover(){return this.grey[200]},get neutralBorderActive(){return this.grey[300]},get neutralIcon(){return this.grey[500]},get neutralIconHover(){return this.grey[700]},get neutralIconStrong(){return this.grey[900]},get neutralIconDisabled(){return this.grey[300]},get successTextDefault(){return this.green[900]},get successTextHover(){return this.green[800]},get successBackground(){return this.green[25]},get successBackgroundHover(){return this.green[50]},get successBorder(){return this.green[600]},get successBorderHover(){return this.green[700]},get successIcon(){return this.green[700]},get successIconHover(){return this.green[700]},get warningTextDefault(){return this.yellow[600]},get warningTextHover(){return this.yellow[900]},get warningBackground(){return this.yellow[50]},get warningBackgroundHover(){return this.yellow[100]},get warningBorder(){return this.yellow[600]},get warningBorderHover(){return this.yellow[700]},get warningIcon(){return this.yellow[600]},get warningIconHover(){return this.yellow[700]},get dangerTextDefault(){return this.red[700]},get dangerTextHover(){return this.constants.white},get dangerTextDisabled(){return this.red[200]},get dangerBackground(){return this.red[50]},get dangerBackgroundDisabled(){return this.red[25]},get dangerBackgroundHover(){return this.red[500]},get dangerBorder(){return this.red[200]},get dangerBorderHover(){return this.red[300]},get dangerIcon(){return this.red[300]},get dangerIconHover(){return this.constants.white},get dangerIconDisabled(){return this.red[200]}},typography:{buttons:{xs:{fontSize:"12px",lineHeight:"16px"},sm:{fontSize:"14px",lineHeight:"20px"},md:{fontSize:"16px",lineHeight:"24px"},lg:{fontSize:"18px",lineHeight:"28px"},xl:{fontSize:"24px",lineHeight:"28px"}},headings:{h1:{fontSize:"56px",lineHeight:"80px"},h2:{fontSize:"48px",lineHeight:"68px"},h3:{fontSize:"32px",lineHeight:"48px"},h4:{fontSize:"24px",lineHeight:"36px"},h5:{fontSize:"20px",lineHeight:"32px"},h6:{fontSize:"18px",lineHeight:"24px"}}},fonts:{axiforma:'"Axiforma", sans-serif',inter:'"Inter", sans-serif',heading:'"Axiforma", sans-serif',text:'"Inter", sans-serif'},fontSizes:{xs:12,sm:14,md:16,lg:24,xl:32},fontWeights:{xs:400,sm:500,md:600,lg:700,xl:800},spacing:{1:"4px",2:"8px",3:"12px",4:"16px",5:"20px",6:"24px",8:"32px",10:"40px",12:"48px",16:"64px",20:"80px",24:"96px",32:"128px",40:"160px",48:"192px",56:"224px",64:"256px"},shadow:{xs:"0px 1px 2px rgba(16, 40, 34, 0.05)",sm:"0px 1px 2px rgba(34, 34, 34, 0.06), 0px 1px 3px rgba(34, 34, 34, 0.1)",md:"0px 2px 4px -2px rgba(34, 34, 34, 0.06), 0px 4px 8px -2px rgba(34, 34, 34, 0.1)",lg:"0px 4px 6px -2px rgba(34, 34, 34, 0.03), 0px 12px 16px -4px rgba(34, 34, 34, 0.08)",xl:"0px 8px 8px -4px rgba(34, 34, 34, 0.03), 0px 20px 24px -4px rgba(34, 34, 34, 0.08)","2xl":"0px 24px 48px -12px rgba(34, 34, 34, 0.18)","3xl":"0px 32px 64px -12px rgba(34, 34, 34, 0.14)"},background:{galaxyDust:"linear-gradient(154deg, #FAE5FF 16.49%, #F5EDDF 94.29%, #FBBC04 156.51%)"},breakpoints:{lg:"1280px",xl:"1900px"}}},27586:(e,t,n)=>{"use strict";e.exports=n.p+"1e3fc21b0a5badd2ede8.svg"},27770:(e,t,n)=>{"use strict";e.exports=n.p+"94d740f7c3ca1267e9d5.svg"},27805:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(25751)),o=i(n(77223)),a=n(31085);function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=r.default;function f(e){var t=e.title,n=e.contentRight,r=void 0===n?null:n,i=e.text,l=void 0===i?"":i,s=e.noDivider,u=void 0!==s&&s;return(0,a.jsxs)("div",{style:{marginBottom:32},"data-testid":"page-header",children:[(0,a.jsxs)("div",c(c({},{className:"paddingBottom-x1l90r2v display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4","data-style-src":"PageHeader/index.tsx:20"}),{},{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",c(c({},{className:"fontSize-x1pvqxga fontWeight-x1xlr1w8 color-x1va3id6 fontFamily-x122x9cr lineHeight-xcgk4ki","data-style-src":"PageHeader/index.tsx:7"}),{},{"data-testid":"page-header-title",children:t})),l&&(0,a.jsx)("span",c(c({},{className:"marginTop-x1xmf6yo fontSize-x1j61zf2 fontWeight-xo1l8bm color-x1r9fet4","data-style-src":"PageHeader/index.tsx:14"}),{},{"data-testid":"page-header-text",children:l}))]}),(0,a.jsx)("div",c(c({},{className:"display-x78zum5 alignItems-xuk3077 flexShrink-x2lah0s flexGrow-x1c4vz4f","data-style-src":"PageHeader/index.tsx:26"}),{},{"data-testid":"page-header-content-right",children:r&&r}))]})),!u&&(0,a.jsx)(o.default,{})]})}d(".fontSize-x1pvqxga{font-size:24px}",3e3),d(".fontWeight-x1xlr1w8{font-weight:700}",3e3),d(".color-x1va3id6{color:var(--black-xh6hbh8)}",3e3),d(".fontFamily-x122x9cr{font-family:Inter}",3e3),d(".lineHeight-xcgk4ki{line-height:32px}",3e3),d(".marginTop-x1xmf6yo{margin-top:8px}",4e3),d(".fontSize-x1j61zf2{font-size:16px}",3e3),d(".fontWeight-xo1l8bm{font-weight:400}",3e3),d(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),d(".paddingBottom-x1l90r2v{padding-bottom:16px}",4e3),d(".display-x78zum5{display:flex}",3e3),d(".justifyContent-x1qughib{justify-content:space-between}",3e3),d(".alignItems-x6s0dn4{align-items:center}",3e3),d(".alignItems-xuk3077{align-items:flex-end}",3e3),d(".flexShrink-x2lah0s{flex-shrink:0}",3e3),d(".flexGrow-x1c4vz4f{flex-grow:0}",3e3),f.displayName="PageHeader",t.default=f},27820:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(14041);var r=n(99018),o=n(61402),a=n(93902),i=n(31085),l=(0,r.createUseStyles)(function(e){return{error404Container:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",backgroundColor:"#0b0d0c",backgroundImage:"url(".concat(o,")"),backgroundPosition:"bottom",backgroundSize:"cover",backgroundRepeat:"no-repeat",overflow:"visible"},block:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},logo:{width:"70%",height:265,backgroundImage:"url(".concat(a,")"),backgroundSize:"100%",backgroundPosition:"bottom",backgroundRepeat:"no-repeat"},text:{width:"70%",display:"flex",flexDirection:"column",alignItems:"center",color:e.colors.constants.white,marginTop:44,marginBottom:e.spacing[10],fontWeight:400,fontSize:24,fontFamily:e.fonts.text,textAlign:"center","& a":{marginTop:16,fontSize:20,color:"#C3C5FD",marginLeft:22,marginRight:22,textDecoration:"underline"}}}});const s=function(){var e=l();return(0,i.jsx)("div",{className:e.error404Container,children:(0,i.jsxs)("div",{className:e.block,children:[(0,i.jsx)("div",{className:e.logo}),(0,i.jsxs)("div",{className:e.text,children:["We canât find what youâre looking for, but the links below may help.",(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("a",{href:"/",children:"Back to Overview"}),(0,i.jsx)("a",{href:"https://help.lunio.ai/",children:"Visit Intercom"})]})]})]})})}},28071:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(14041),o=n(62720),a=n(89748),i=n(34406),l=n(88133),s=n(40699),c=n(27333),u=n(32881),d=n(31085);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(){var e,t,n=f((0,r.useState)(o.default.DatePicker.getDateRange("30d")),2),p=n[0],m=n[1],g=(0,c.R7)(),y=g.filters,h=g.setFilters,x=(0,l.Ay)("/analytics/conversions?df_dmin=".concat(Math.floor((0,i.Ay)(p.min.date).valueOf()/1e3),"&df_dmax=").concat(Math.floor((0,i.Ay)(p.max.date).valueOf()/1e3),"&limit=1").concat((t="",y["partner.contains"]&&(t+="&partner_contains=".concat(y["partner.contains"])),y["network.contains"]&&(t+="&network_contains=".concat(y["network.contains"])),y["campaign.contains"]&&(t+="&campaign_contains=".concat(y["campaign.contains"])),t),"&group_by=network&sortKey=network&platform=affiliate")),b=x.data,v=x.isLoading,A=null==b||null===(e=b.result)||void 0===e?void 0:e.overall,_=Object.entries((null==A?void 0:A.overall_invalid_labels_percent)||{}).map(function(e){var t=f(e,2),n=t[0],r=t[1];return{name:s.zG[n]||n,value:r}});return(0,d.jsx)(u.A,{data:_,isLoading:v,setTime:m,time:p,title:(0,a.A)("Fraud Type"),filters:y,setFilters:h})}},28264:(e,t,n)=>{"use strict";e.exports=n.p+"b5f4448a15ec720e49e5.svg"},28352:(e,t,n)=>{"use strict";e.exports=n.p+"24c5b6c9f606cefeacd5.svg"}
2,28389:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),n(14041);var r=n(99018),o=n(89748),a=n(35149),i=n(31085);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=(0,r.createUseStyles)(function(e){return{screenLimitWarningPageContainer:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",backgroundColor:(0,r.findColour)(e,"constants-white")},block:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"20%"},text:{display:"flex",flexDirection:"column",alignItems:"center",color:e.colors.neutralTextWeak,marginTop:e.spacing[4],marginBottom:e.spacing[10],fontWeight:500,textAlign:"center","& h4":c(c({color:e.colors.neutralTextStrong},e.typography.headings.h4),{},{marginTop:e.spacing[4],fontWeight:500}),"& p":{color:e.colors.neutralTextWeak,marginTop:e.spacing[4],fontWeight:500}},logo:{width:"70%",marginBottom:32}}});const f=function(){var e=d();return(0,i.jsx)("div",{className:e.screenLimitWarningPageContainer,children:(0,i.jsxs)("div",{className:e.block,children:[(0,i.jsx)("img",{className:e.logo,src:a,alt:""}),(0,i.jsxs)("div",{className:e.text,children:[(0,i.jsx)("h4",{children:(0,o.A)("Uh Oh!")}),(0,i.jsx)("p",{children:(0,o.A)("Your screen size isnât supported - please access Lunio from a screen with a resolution of 960px or greater")})]})]})})}},28426:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(72044),o=n(86461),a=n(79854),i=n(63631);function l(){return null}l.Page=r.A,l.Spacer=o.A,l.Filters=a.A,l.ContentHeader=i.A;const s=l},28529:(e,t,n)=>{"use strict";e.exports=n.p+"c813acf4caa9426f7135.svg"},28547:(e,t,n)=>{"use strict";e.exports=n.p+"875693aaefa8da7b0819.svg"},28552:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(31085);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=o.default;function d(e){var t=e.objectKey,n=e.selectedItems,r=void 0===n?[]:n,o=e.onRemove,i=void 0===o?function(){}:o,l=e.className,c=void 0===l?"":l,u=e.labelLengthLimit,d=void 0===u?50:u;return 0===r.length?null:(0,a.jsx)("div",s(s({className:c},{className:"width-xh8yej3 display-x78zum5 flexWrap-x1a02dak maxHeight-x1hkcv85 overflowY-x1odjw0f borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x1wcvari borderRadius-xur7f20 padding-xe8ttls paddingBottom-x18d9i69","data-style-src":"SelectedTags/index.tsx:20"}),{},{children:r.map(function(e,n){var r,o,l=function(e,t){return e.length>t?"".concat(e.slice(0,t),"..."):e}(function(e,t){return null!=(null==e?void 0:e[t])&&String(e[t]).length>0?String(e[t]):null!=(null==e?void 0:e.aw_id)&&String(e.aw_id).length>0?"Adword ID: ".concat(String(e.aw_id)):null!=(null==e?void 0:e.id)?String(e.id):""}(e,t),d);return(0,a.jsxs)("div",s(s({},{className:"marginRight-x1db2dqx marginBottom-x1e56ztr display-x3nfvp2 al
2ignItems-x6s0dn4 gap-x167g77z paddingLeft-x163pfp paddingRight-xy13l1i height-x1fgtraw borderRadius-x1e6avla backgroundColor-xq18l50 color-x5tu7p5 fontSize-xfifm61 borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-xmmyy0b","data-style-src":"SelectedTags/index.tsx:33"}),{},{"data-testid":"selected-tag-item".concat(l),children:[(0,a.jsx)("span",{children:l}),(0,a.jsx)("button",s(s({type:"button","data-testid":"tag-close-button"},{className:"borderWidth-xc342km backgroundColor-xjbqb8w color-x1r9fet4 cursor-x1ypdohk padding-x1717udv lineHeight-xo5v014","data-style-src":"SelectedTags/index.tsx:50"}),{},{onClick:function(){i(e)},children:"x"}))]}),"".concat(String(null!==(r=null!==(o=e.id)&&void 0!==o?o:e.aw_id)&&void 0!==r?r:n)))})}))}u(".width-xh8yej3{width:100%}",4e3),u(".display-x78zum5{display:flex}",3e3),u(".flexWrap-x1a02dak{flex-wrap:wrap}",3e3),u(".maxHeight-x1hkcv85{max-height:200px}",4e3),u(".overflowY-x1odjw0f{overflow-y:auto}",4e3),u(".borderWidth-xmkeg23{border-width:1px}",2e3),u(".borderStyle-x1y0btm7{border-style:solid}",2e3),u(".borderColor-x1wcvari{border-color:var(--gray300-x1xk3734)}",2e3),u(".borderRadius-xur7f20{border-radius:8px}",2e3),u(".padding-xe8ttls{padding:8px}",1e3),u(".paddingBottom-x18d9i69{padding-bottom:0}",4e3),u(".marginRight-x1db2dqx{margin-right:8px}",4e3),u(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),u(".display-x3nfvp2{display:inline-flex}",3e3),u(".alignItems-x6s0dn4{align-items:center}",3e3),u(".gap-x167g77z{gap:8px}",2e3),u(".paddingLeft-x163pfp{padding-left:8px}",4e3),u(".paddingRight-xy13l1i{padding-right:8px}",4e3),u(".height-x1fgtraw{height:28px}",4e3),u(".borderRadius-x1e6avla{border-radius:999px}",2e3),u(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),u(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),u(".fontSize-xfifm61{font-size:12px}",3e3),u(".borderColor-xmmyy0b{border-color:var(--gray250-x1kpk87u)}",2e3),u(".borderWidth-xc342km{border-width:0}",2e3),u(".backgroundColor-xjbqb8w{background-color:transparent}",3e3),u(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),u(".cursor-x1ypdohk{cursor:pointer}",3e3),u(".padding-x1717udv{padding:0}",1e3),u(".lineHeight-xo5v014{line-height:1}",3e3),d.displayName="SelectedTags",t.A=d},28840:(e,t,n)=>{"use strict";e.exports=n.p+"d11beffc26379ec81a84.svg"},28870:(e,t,n)=>{"use strict";n.d(t,{A:()=>m}),n(14041);var r=n(72686),o=n(28426),a=n(30556),i=n(27805),l=n(96182),s=n(89748),c=n(85854),u=n(47357),d=n(43460),f=n(31085);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(){var e,t,n=(e=(0,l.A)(),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].platforms.filter(function(e){return"google"!==e.platform_name});return(0,f.jsxs)(o.A.Page,{type:"settings",children:[(0,f.jsx)(i.default,{type:"settings",title:(0,s.A)("Platforms and Scripts"),text:(0,s.A)("Monitor the status of your platforms, tokens and scripts.")}),(0,f.jsxs)(r.default,{children:[(0,f.jsx)(i.default,{type:"settings",title:(0,s.A)("Platform Integrations"),text:(0,s.A)("Connection status for advertising platforms")}),(0,f.jsx)(a.default,{children:(0,f.jsxs)(a.default.Row,{children:[(0,f.jsx)(a.default.Col,{md:4,children:(0,f.jsx)(c.A,{})}),(0,f.jsx)(a.default.Col,{md:4,children:(0,f.jsx)(u.A,{platform:n[0]})})]})})]}),(0,f.jsxs)(r.default,{className:"mt-4",children:[(0,f.jsx)(i.default,{type:"settings",title:(0,s.A)("Script & Tracking"),text:(0,s.A)("Monitor script installation and tracking implementation")}),(0,f.jsx)(a.default,{children:(0,f.jsx)(a.default.Row,{children:(0,f.jsx)(a.default.Col,{md:4,children:(0,f.jsx)(d.A,{})})})})]})]})}}
2,29098:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(14041),o=n(46389),a=n(28426),i=n(27805),l=n(89748),s=n(98536),c=n(92523),u=n(12636),d=n(76911),f=n(31085);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x="wasteType";const b=function(){var e,t=(0,d.A)().wasteTypes,n=(0,r.useMemo)(function(){return[{label:(0,l.A)("Campaign Name"),name:"campaignName",type:"radio",queryKey:"campaign_name",queryTranslator:"textSearch",options:[{label:(0,l.A)("Contains"),name:"contains",type:"text"}]},{label:(0,l.A)("Campaign Type"),name:"campaignType",type:"checkbox",accessControl:{platforms:["google"]},queryTranslator:"arrayOfNames",queryKey:"campaign_types",options:[{label:(0,l.A)("Search"),shortLabel:(0,l.A)("Search"),type:"checkbox",name:"SEARCH",value:!1},{label:(0,l.A)("Display"),shortLabel:(0,l.A)("Display"),type:"checkbox",name:"DISPLAY",value:!1},{label:(0,l.A)("Video"),shortLabel:(0,l.A)("Video"),type:"checkbox",name:"VIDEO",value:!1},{label:(0,l.A)("Shopping"),shortLabel:(0,l.A)("Shopping"),type:"checkbox",name:"SHOPPING",value:!1},{label:(0,l.A)("PMax"),shortLabel:(0,l.A)("PMax"),type:"checkbox",name:"PERFORMANCE_MAX",value:!1},{label:(0,l.A)("Demand Gen"),shortLabel:(0,l.A)("Demand Gen"),type:"checkbox",name:"DEMAND_GEN",value:!1},{label:(0,l.A)("Local"),shortLabel:(0,l.A)("Local"),type:"checkbox",name:"LOCAL",value:!1},{label:(0,l.A)("Local Services"),shortLabel:(0,l.A)("Local Services"),type:"checkbox",name:"LOCAL_SERVICES",value:!1},{label:(0,l.A)("Travel"),shortLabel:(0,l.A)("Travel"),type:"checkbox",name:"TRAVEL",value:!1},{label:(0,l.A)("Discovery"),shortLabel:(0,l.A)("Discovery"),type:"checkbox",name:"DISCOVERY",value:!1},{label:(0,l.A)("Multi Channel"),shortLabel:(0,l.A)("Multi Channel"),type:"checkbox",name:"MULTI_CHANNEL",value:!1},{label:(0,l.A)("Hotel"),shortLabel:(0,l.A)("Hotel"),type:"checkbox",name:"HOTEL",value:!1},{label:(0,l.A)("Smart"),shortLabel:(0,l.A)("Smart"),type:"checkbox",name:"SMART",value:!1},{label:(0,l.A)("Express"),shortLabel:(0,l.A)("Express"),type:"checkbox",name:"EXPRESS",value:!1}]}]},[]),p=(0,s.useApi)({url:"/v2/analytics/waste-analysis",responseDataKey:"data",noPagination:!0,filters:n});return(0,r.useEffect)(function(){var e,n;p.filters.some(function(e){return e.name===x})||0===t.length||p.setFilters([].concat(function(e){if(Array.isArray(e))return h(e)}(n=p.filters)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[(e=t,{label:(0,l.A)("Waste Type"),name:x,type:"checkbox",queryKey:"waste_types",queryTranslator:"arrayOfNames",options:e.map(function(e){return{label:e.name,shortLabel:e.name,type:"checkbox",name:e.id,value:!1}})})]))},[t,p.filters]),(0,f.jsxs)(a.A.Page,{type:"main",children:[(0,f.jsx)(i.default,{title:(0,l.A)("Waste Analysis"),text:(0,l.A)("Data available from 1st July 2026 onwards. Click on a row to see the top 3 campaigns.")}),(0,f.jsxs)("div",{className:"mt-4 mb-4 flex distribute-space-between",children:[(0,f.jsx)(o.A,g({},p.filterConnector)),(0,f.jsx)(c.default,{})]}),(0,f.jsx)(u.A,{invalidClicks:null===(e=p.response)||void 0===e||null===(e=e.result)||void 0===e?void 0:e.invalid_clicks,wasteTypes:p.data,isLoading:p.isLoading})]})}},29279:(e,t,n)=>{"use strict";n.d(t,{A:()=>j}),n(14041);var r=n(61323),o=n(19863),a=n(89748),i=n(27333),l=n(9260),s=n(1781),c=n(17419),u=n(28426),d=n(96956),f=n(27805),p=n(62161),m=n(93
2033),g=n(99226),y=n(96182),h=n(73657),x=n(89541),b=n(13497),v=n(31085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const j=function(e){var t,n,A,_,w,j,k,E=e.filters,N=e.onFilterChange,I=e.handlePagination,P=e.handleSort,T="google"===(null===(t=(j=(0,y.A)(),k=1,function(e){if(Array.isArray(e))return e}(j)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(j,k)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(j,k)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].selectedPlatform)||void 0===t?void 0:t.platform_name),C=(0,i.st)("/analytics/fraud-stats/location",S(S({},E),{},{type:"country"},E["search.contains"]&&{search:E["search.contains"]})),R=C.data,M=C.isLoading,L="TRIAL"===(0,g.A)().lunioStatus,D=[{label:(0,a.A)("Country"),name:"search",type:"radio",options:[{label:(0,a.A)("Contains"),name:"contains",type:"text"}]}];return(0,v.jsxs)(u.A.Page,{type:"main",children:[(0,v.jsx)(f.default,{title:"".concat((0,a.A)("Ad Stats")," - ").concat((0,a.A)("Location")),text:(0,a.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,v.jsx)(b.A,{filters:E,exportType:T?"google_country":"mplat_country"})}),(0,v.jsx)(x.A,{filters:E,onFilterChange:N,filterConfig:D}),(0,v.jsx)(r.A,{isLoading:M,data:function(e){if(!e)return[];var t=e.reduce(function(e,t){return e+Number(t.clicks_total)},0),n=e.reduce(function(e,t){return e+Number(t.clicks_invalid)},0),r=[];return null==e||e.forEach(function(e){var a;r.push({name:(a=e.location,"Netherlands, The"===a||"Netherlands the"===a?"Netherlands":"United States of America"===a?"USA":a),value1:(0,o.o)(e.clicks_total,t),value2:(0,o.o)(e.clicks_invalid,n)})}),r}(null==R||null===(n=R.result)||void 0===n?void 0:n.location)}),(0,v.jsx)("div",{className:"mt-8"}),(0,v.jsx)(p.A,{rows:null==R||null===(A=R.result)||void 0===A?void 0:A.location,isLoading:M,totalPages:null==R||null===(_=R.result)||void 0===_||null===(_=_.pagination)||void 0===_?void 0:_.last_page,totalItems:null==R||null===(w=R.result)||void 0===w||null===(w=w.pagination)||void 0===w?void 0:w.total,pageNumber:E.page,handlePagination:I,handleSorting:P,limit:E.limit,sorting:{sortKey:E.sortKey,sortOrder:E.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("thead",{children:(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{children:(0,a.A)("Country")}),(0,v.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,a.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,a.A)("Legitimate")}),(0,v.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,a.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,a.A)("Suspicious")}),(0,v.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,a.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,a.A)("SIVT Clicks")}),(0,v.jsx)(m.A,{AND:!L,children:(0,v.jsx)("th",{"data-testid":"givt","data-tooltip":(0,a.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,a.A)("GIVT Clicks")})}),(0,v.jsx)("th",{"data-tooltip":(0,a.A)("The total number of clicks Lunio has identified as invali
2d, including both GIVT and SIVT."),children:(0,a.A)("Total IVT")}),(0,v.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,a.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,a.A)("Total Clicks")}),(0,v.jsx)("th",{"data-tooltip":(0,a.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,a.A)("All Tracked Clicks")}),(0,v.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,a.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,a.A)("SIVT Clicks %")}),(0,v.jsx)("th",{"data-tooltip":(0,a.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,a.A)("Total IVT %")}),(0,v.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,a.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,a.A)("Health")})]})}),(0,v.jsxs)("tbody",{children:[(0,v.jsxs)("td",{children:[null==e?void 0:e.location,"United States of America"===(null==e?void 0:e.location)&&(0,v.jsx)(s.default,{content:"View States",children:(0,v.jsx)(l.default,{"data-testid":"usa-trigger-button",preset:"outline",size:"sm",className:"ml-3",as:h.Link,to:"/stats/region?country=United States of America",iconLeft:["far","location-crosshairs"],style:{width:"fit-content"}})})]}),(0,v.jsx)("td",{children:(0,v.jsx)(c.A,{type:"legitimate",size:"sm",textRight:(0,o.m)((null==e?void 0:e.clicks_protected)||(null==e?void 0:e.clicks_legitimate))})}),(0,v.jsx)("td",{children:(0,v.jsx)(c.A,{type:"suspicious",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_suspicious)})}),(0,v.jsx)("td",{children:(0,v.jsx)(c.A,{type:"invalid",size:"sm",textRight:(0,o.m)((null==e?void 0:e.clicks_fraudulent)||(null==e?void 0:e.clicks_invalid))})}),(0,v.jsx)(m.A,{AND:!L,children:(0,v.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,v.jsx)("td",{children:(0,o.m)(null==e?void 0:e.total_ivt)}),(0,v.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_total)}),(0,v.jsx)("td",{children:(0,o.m)(null==e?void 0:e.all_tracked_clicks)}),(0,v.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,v.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,v.jsx)("td",{children:(0,v.jsx)(d.A,{health:null==e?void 0:e.health})})]})]})}})]})}},29323:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var c=["url","name","colourIndex"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=a.default;p(".borderRadius-xtmh8zg{border-radius:300px}",2e3),p(".overflow-xb3r6kr{overflow:hidden}",2e3),p(".height-xn3w4p2{height:44px}",4e3),p(".width-x187nhsf{width:44px}",4e3),p(".width-xh8yej3{width:100%}",4e3),p(".height-x5yr21d{height:100%}",4e3),p(".objectFit-xl1xv1r{object-fit:cover}",3e3),p(".borderRadius-x1e6avla{border-radius:999px}",2e3),p(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),p(".display-x78zum5{display:flex}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".fontSize-x1j6dyjg{font-size:11px}",3e3),p(".fontWeight-x1xlr1w8{font-weight:700}",3e3),p(".height-x1fgtraw{height:28px}",4e3),p(".justifyContent-xl56j7k{justify-content:center}",3e3),p(".lineHeight-xo5v014{line-height:1}",3e3),p(".width-xgd8bvy{width:28px}",4e3);var m={borderRadius:"borderRadius-x1e6avla",color:"color-xf72ejy",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",fontSize:"fontSize-x1j6dyjg",fontWeight:"fontWeight-x1xlr1w8",height:"height-x1fgtraw",justifyContent:"justifyContent-xl56j7k",lineHeight:"lineHeight-xo5v014",width:"width-xgd8bvy",$$css:"Avatar/index.tsx:17"};p(".backgroundColor-x5f6v9k{background-color:var(--secondary500-x3dx61e)}",3e3),p(".backgroundColor-x14r5o67{background-color:var(--primary500-x1h2cyxj)}",3e3),p(".backgroundColor-x13lb71y{background-color:var(--warning600-xx2fi3s)}",3e3),p(".backgroundColor-xptrma{background-color:var(--success600-x1k6hy5b)}",3e3),p(".backgroundColor-x1yz7wgl{background-color:var(--error500-x1idp37q)}",3e3),p(".backgroundColor-x3r3zc0{background-color:var(--gray600-x139mciy)}",3e3);var g={secondary500:{backgroundColor:"backgroundColor-x5f6v9k",$$css:"Avatar/index.tsx:32"},primary500:{backgroundColor:"backgroundColor-x14r5o67",$$css:"Avatar/index.tsx:33"},warning600:{backgroundColor:"backgroundColor-x13lb71y",$$css:"Avatar/index.tsx:34"},success600:{backgroundColor:"backgroundColor-xptrma",$$css:"Avatar/index.tsx:35"},error500:{backgroundColor:"backgroundColor-x1yz7wgl",$$css:"Avatar/index.tsx:36"},gray600:{backgroundColor:"backgroundColor-x3r3zc0",$$css:"Avatar/index.tsx:37"}},y=["secondary500","primary500","warning600","success600","error500","gray600"];function h(e){var t,n,r,o,a,i;if(!e)return"";var l=e.trim().split(/\s+/).filter(Boolean),s=null!==(t=null===(n=l[0])||void 0===n?void 0:n[0])&&void 0!==t?t:"",c=l.length>1&&null!==(r=null===(o=l[l.length-1])||void 0===o?void 0:o[0])&&void 0!==r?r:"";if(c)return"".concat(s).concat(c).toUpperCase();var u=null!==(a=null===(i=l[0])||void 0===i?void 0:i[1])&&void 0!==a?a:"";return"".concat(s).concat(u).toUpperCase()}function x(e){var t=e.url,n=void 0===t?"":t,r=e.name,o=void 0===r?"":r,a=e.colourIndex,s=void 0===a?0:a,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c),f=o.trim();return f&&!n?(0,l.jsx)("div",d(d(d({"data-testid":"avatar-container",role:"img","aria-label":"".concat(f," avatar")},i.props(m,g[y[s%y.length]])),u),{},{children:h(f)})):(0,l.jsx)("div",d(d(d({"data-testid":"avatar-container"},{className:"borderRadius-xtmh8zg overflow-xb3r6kr height-xn3w4p2 width-x187nhsf","data-style-src":"Avatar/index.tsx:6"}),u),{},{children:(0,l.jsx)("img",d({alt:"avatar","data-testid":"avatar-image",src:n},{className:"width-xh8yej3 height-x5yr21d objectFit-xl1xv1r","data-style-src":"Avatar/index.tsx:12"}))}))}x.displayName="Avatar",t.A=x}
2,29352:(e,t,n)=>{"use strict";e.exports=n.p+"2fe968d084e48706508e.svg"},29470:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(34016),i=n(45365),l=n(45647),s=n(19838),c=n(60156),u=n(18141),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(0,o.default)(".fontSize-xwsyq91{font-size:20px}",3e3),t.A=function(){var e,t,n,r,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,l.useGlobalFiltersState)(),1)[0],f=(0,a.useQuery)("/analytics/control_group_over_time?df_dmin=".concat(null==o||null===(e=o.dataFilterDates)||void 0===e||null===(e=e.min)||void 0===e?void 0:e.timestamp,"&df_dmax=").concat(null==o||null===(t=o.dataFilterDates)||void 0===t||null===(t=t.max)||void 0===t?void 0:t.timestamp)),p=f.data,g=f.isLoading,h=(null==p||null===(n=p.result)||void 0===n?void 0:n.data)||[],x=(null==p||null===(r=p.result)||void 0===r?void 0:r.total_period)||{ivt_c:0,ivt:0,ivt_diff:0,ivt_change:0},b=h.map(function(e){return{name:(0,u.format)(e.period,"PP"),value1:e.ivt,value2:e.ivt_c,lineValue:e.ivt_diff}});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Card,{children:[(0,d.jsx)(i.Text,{preset:"widgetHeading",as:"h2",className:"mt-2 mb-4",children:(0,c.language)("Average IVT rates for A/B Testing")}),(0,d.jsx)(i.LunioLoader,{preset:"dark",loading:g,size:"responsive",children:(0,d.jsx)(s.BarAndLine,{data:b,hideNumbers:!0,titles:[(0,c.language)("Exposed Group"),(0,c.language)("Control Group")]})})]}),(0,d.jsx)(i.Text,{preset:"pageHeading",as:"h5",className:"mt-5 mb-4",children:(0,c.language)("Avg. IVT rate for the time period (workspace)")}),(0,d.jsxs)("div",{className:"flex distribute-space-between mb-4 align-dead-center",style:{gap:"16px"},children:[(0,d.jsxs)(i.Card,{className:"flex-1",children:[(0,d.jsx)(i.Text,{preset:"widgetHeading",as:"h3",children:(0,c.language)("Control Group")}),(0,d.jsx)(i.LunioLoader,{preset:"dark",loading:g,size:"responsive",children:(0,d.jsxs)("div",m(m({},{className:"fontSize-xwsyq91","data-style-src":"ControlGroupOverTime/index.tsx:11"}),{},{children:[x.ivt_c.toFixed(2),"%"]}))})]}),(0,d.jsxs)(i.Card,{className:"flex-1",children:[(0,d.jsx)(i.Text,{preset:"widgetHeading",as:"h3",children:(0,c.language)("Exposed Group")}),(0,d.jsx)(i.LunioLoader,{preset:"dark",loading:g,size:"responsive",children:(0,d.jsxs)("div",m(m({},{className:"fontSize-xwsyq91","data-style-src":"ControlGroupOverTime/index.tsx:11"}),{},{children:[x.ivt.toFixed(2),"%"]}))})]}),(0,d.jsxs)(i.Card,{className:"flex-1",children:[(0,d.jsx)(i.Text,{preset:"widgetHeading",as:"h3",children:(0,c.language)("Average IVT difference")}),(0,d.jsx)(i.LunioLoader,{preset:"dark",size:"responsive",loading:g,children:(0,d.jsxs)("div",m(m({},{className:"fontSize-xwsyq91","data-style-src":"ControlGroupOverTime/index.tsx:11"}),{},{children:[x.ivt_diff.toFixed(2),"%"]}))})]}),(0,d.jsxs)(i.Card,{className:"flex-1",children:[(0,d.jsx)(i.Text,{preset:"widgetHeading",as:"h3",children:(0,c.language)("% Difference in IVT")}),(0,d.jsx)(i.LunioLoader,{preset:"dark",loading:g,size:"responsive",children:(0,d.jsxs)("div",m(m({},{className:"fontSize-xwsyq91","data-style-src":"ControlGroupOverTime/index.tsx:11"}),{},{children:[x.ivt_change.toFixed(2),"%"]}))})]})]})]})}},29557:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={AD:n(21134),AE:n(35775),AF:n(56748),AG:n(4109),AI:n(83627),AL:n(65158),AM:n(70487),AO:n(13285),AR:n(42064),AS:n(33185),AT:n(15806),AU:n(35855),AW:n(62077),AX:n(66954),AZ:n(20232),BA:n(7046),BB:n(68210),BD:n(82987),BE:n(68378),BF:n(36489),BG:n(48600),BH:n(35135),BI:n(6702),BJ:n(55053),BL:n(90003),BM:n(84834),BN:n(52
201),BO:n(85600),BQ:n(52278),"BQ-1":n(74060),"BQ-2":n(53087),BR:n(24149),BS:n(67892),BT:n(77659),BW:n(26920),BY:n(49790),BZ:n(3965),CA:n(97109),CC:n(23687),CD:n(86088),"CD-1":n(70310),CF:n(41834),CH:n(81564),CK:n(60591),CL:n(43120),CM:n(41569),CN:n(59826),CO:n(9219),CR:n(66214),CU:n(9449),CW:n(72779),CX:n(57804),CY:n(9613),CZ:n(98894),DE:n(76836),DJ:n(66963),DK:n(52738),DM:n(10220),DO:n(51310),DS:n(94250),DZ:n(61635),EC:n(38589),EE:n(42595),EG:n(93345),EH:n(86902),ER:n(33260),ES:n(12973),ET:n(38306),FI:n(74266),FJ:n(89353),FK:n(54488),FM:n(86758),FO:n(31172),FR:n(62113),GA:n(90433),GB:n(85394),"GB-2":n(48419),GD:n(90780),GE:n(19325),GG:n(93103),GH:n(77480),GI:n(89849),GL:n(31668),GM:n(53301),GN:n(33014),GQ:n(89937),GR:n(32834),GT:n(13996),GU:n(61357),GW:n(93023),GY:n(8169),HK:n(16942),HN:n(50387),HR:n(7111),HT:n(95225),HU:n(87304),ID:n(13686),IE:n(60551),IL:n(53726),IM:n(73775),IN:n(71452),IO:n(99997),IQ:n(21547),IR:n(63480),IS:n(88841),IT:n(3078),JE:n(65922),JM:n(80090),JO:n(15896),JP:n(26191),KE:n(53505),KG:n(75011),KH:n(58228),KI:n(14485),KM:n(99001),KN:n(7626),KP:n(46444),KR:n(97038),KW:n(80339),KY:n(36165),KZ:n(97382),LA:n(28352),LB:n(32755),LC:n(27586),LI:n(91352),LK:n(11130),LR:n(27427),LS:n(12786),LT:n(46717),LU:n(57244),LV:n(36271),LY:n(69672),MA:n(71767),MC:n(45189),MD:n(10266),ME:n(31883),MG:n(52201),MH:n(41646),MK:n(52365),ML:n(43074),MM:n(57299),MN:n(66560),MO:n(7121),MP:n(26902),MQ:n(66439),MR:n(94932),MS:n(39861),MT:n(84586),MU:n(10203),MV:n(28840),MW:n(10585),MX:n(24414),MY:n(3343),MZ:n(24316),NA:n(91722),NE:n(77238),NF:n(18485),NG:n(76500),NI:n(94994),NL:n(37327),NO:n(58300),NP:n(31243),NR:n(27273),NU:n(24678),NZ:n(99537),OM:n(55725),PA:n(75436),PE:n(4928),PF:n(9331),PG:n(4162),PH:n(65157),PK:n(26374),PL:n(55817),PN:n(2315),PR:n(12847),PS:n(69118),PT:n(82497),PW:n(89362),PY:n(87220),QA:n(28547),RO:n(48016),RS:n(45668),RU:n(88762),RW:n(52632),SA:n(52805),SB:n(53670),SC:n(41207),SE:n(56265),SG:n(60235),SI:n(32301),SK:n(7935),SL:n(43347),SM:n(28529),SN:n(57634),SO:n(36627),SR:n(6230),SS:n(93351),ST:n(73544),SV:n(20714),SX:n(87292),SY:n(57917),SZ:n(3742),TC:n(91114),TD:n(20213),TG:n(83574),TH:n(57345),TJ:n(55619),TK:n(52306),TL:n(86237),TM:n(57692),TN:n(60015),TO:n(39966),TR:n(7787),TT:n(21093),TV:n(94647),TW:n(89318),TZ:n(3475),UA:n(12351),UG:n(9265),US:n(38653),UY:n(99207),UZ:n(50996),VC:n(4208),VE:n(26366),VG:n(91068),VI:n(93866),VN:n(725),VU:n(83278),WS:n(13667),YE:n(31095),ZA:n(91326),ZM:n(51498),ZW:n(11091),earth:n(41515)}},29833:(e,t,n)=>{"use strict";e.exports=n.p+"863797208b18791bfb77.svg"},29874:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(14041),o=n(50324),a=n(9260),i=n(62720),l=n(13571),s=n(55618),c=n(89748),u=n(98536),d=n(99226),f=n(77730),p=n(31085);function m(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function x(e){var t,n,y,h,x,b=e.onClose,v=e.keyword,A=Boolean(null==v?void 0:v.id),_=g((0,r.useState)(null!==(t=null==v?void 0:v.id)&&void 0!==t?t:"create"),2),S=_[0],w=_[1],O=g((0,r.useState)(!1),2),j=O[0],k=O[1],E=(0,u.useApiSubmit)({method:"DELETE",invali
2dateQueries:["/brand-protection/keywords"],onSuccess:function(){k(!1),b()},successMessage:(0,c.A)("The keyword was deleted"),errorMessage:(0,c.A)("Something went wrong!")}),N=g((0,r.useState)(null!=v&&v.location?{label:v.location,value:v.location}:null),2),I=N[0],P=N[1];function T(){P(null),w(Date.now()),b()}(0,r.useEffect)(function(){null!=v&&v.location?P({label:v.location,value:v.location}):P(null)},[v]);var C=(0,u.useApi)({url:"/google/location?",responseDataKey:"data",noPagination:!0,noDates:!0,noPlatform:!0,disabled:!0,customFilters:{query:{queryKey:"q",value:""}}}),R=C.data,M=C.isLoading,L=C.updateRequest,D=(0,r.useMemo)(function(){return Array.isArray(R)?R.slice(0,10).map(function(e){return{label:e.canonical_name,value:e.canonical_name}}):[]},[R]),B=g((0,f.A)(),1)[0],U=(null!==(n=null==B?void 0:B.workspaces)&&void 0!==n?n:[]).filter(function(e){return e.id>0}).map(function(e){return{label:e.name,value:e.id}}),F=(0,(0,d.A)().allowedFeatureFlags)(["BRAND_PROTECTION"]),G=null==v?void 0:v.scan_frequency,W=F||"WEEKLY"===G,z=[].
2concat(m(F||"HOURLY"===G?[{label:(0,c.A)("Hourly"),value:"HOURLY"}]:[]),[{label:(0,c.A)("Daily"),value:"DAILY"}],m(W?[{label:(0,c.A)("Weekly"),value:"WEEKLY"}]:[]));return(0,r.useEffect)(function(){w(v?"edit-".concat(v.id):"create-".concat(Date.now()))},[v]),(0,p.jsxs)(o.A,{initialFormValues:{keywords:(null==v?void 0:v.keyword)||"",location:(null==v?void 0:v.location)||"",scan_frequency:(null==v?void 0:v.scan_frequency)||"DAILY",workspace_id:null!==(y=null!==(h=null==v?void 0:v.workspace_id)&&void 0!==h?h:null===(x=U[0])||void 0===x?void 0:x.value)&&void 0!==y?y:null},submitUrl:A?"/brand-protection/keyword/".concat(null==v?void 0:v.id):"/brand-protection/keyword",submitType:A?"PUT":"POST",onSuccess:T,queriesToInvalidate:["/brand-protection/keywords"],hideBottomErrors:!0,rules:{keywords:{validation:{isNotEmpty:{match:!0,errorMessage:(0,c.A)("Keywords must not be empty")}}},location:{validation:{isNotEmpty:{match:!0,errorMessage:(0,c.A)("Location must not be empty")}}}},children:[(0,p.jsxs)(s.default.Section,{children:[(0,p.jsx)(i.default,{label:(0,c.A)("Keyword"),"aria-label":(0,c.A)("Keyword"),placeholder:(0,c.A)("Type keyword here"),name:"keywords",className:"mb-5","data-testid":"keyword-input",required:!0}),(0,p.jsx)(i.default.SearchSelect,{name:"location",label:(0,c.A)("Location"),"aria-label":(0,c.A)("Location"),placeholder:(0,c.A)("Type location here eg, UK, London"),selected:I,results:D,isLoading:M,onSearch:function(e){var t=e.trim();t.length<2?L({disabled:!0,customFilters:{query:{queryKey:"q",value:""}}}):L({disabled:!1,customFilters:{query:{queryKey:"q",value:t}}})},onInputChange:function(e){e.value||P(null)},onSelect:function(e){P(e)},className:"mb-5",dataTestId:"location-input"}),(0,p.jsx)(i.default.Select,{className:"mt-5",options:z,name:"scan_frequency",label:(0,c.A)("Scan Frequency"),dataTestId:"scan-frequency-select"}),(0,p.jsx)(i.default.Select,{className:"mt-5",options:U,name:"workspace_id",label:(0,c.A)("Workspace"),dataTestId:"workspace-select"})]}),(0,p.jsxs)("div",{className:"h-align-right",children:[(0,p.jsx)(a.default,{type:"button",preset:"outline",className:"mt-4","data-testid":"cancel-keyword-button",onClick:T,children:(0,c.A)("Cancel")}),A&&(0,p.jsx)(a.default,{type:"button",preset:"destructive",className:"mt-4 ml-3","data-testid":"delete-keyword-button",onClick:function(){return k(!0)},children:(0,c.A)("Delete")}),(0,p.jsx)(a.default,{type:"submit",preset:"primary","data-testid":"create-keyword-button",className:"mt-4 ml-3",children:(0,c.A)("Save")})]}),(0,p.jsxs)(l.default,{open:j,onClose:function(){return k(!1)},children:[(0,p.jsx)(l.default.Header,{}),(0,p.jsx)(l.default.Content,{children:(0,p.jsx)("div",{children:(0,p.jsx)("p",{children:(0,c.A)("Are you sure you want to delete this keyword?")})})}),(0,p.jsxs)(l.default.Actions,{children:[(0,p.jsx)(a.default,{type:"button",onClick:function(){return k(!1)},"data-testid":"delete-keyword-cancel",preset:"outline",children:(0,c.A)("Cancel")}),(0,p.jsx)(a.default,{type:"button",onClick:function(){null!=v&&v.id&&(E.updateConfig({url:"/brand-protection/keyword/".concat(v.id)}),E.submit())},"data-testid":"delete-keyword-confirm",children:(0,c.A)("Delete Keyword")})]})]})]},S)}},29882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(31085);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}
2function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=o.default;u(".height-x1gnnpzl{height:30px}",4e3),u(".width-x1849jeq{width:30px}",4e3),u(".display-x1rg5ohu{display:inline-block}",3e3),u(".marginRight-x1wh8b8d{margin-right:20px}",4e3),u(".marginTop-x1ok221b{margin-top:5px}",4e3),u(".display-x78zum5{display:flex}",3e3),u(".alignItems-x6s0dn4{align-items:center}",3e3),u(".margin-x1ghk45w{margin:0 10px}",1e3),t.default=function(e){var t=e.colour,n=e.text;return(0,a.jsxs)("div",s(s({},{className:"display-x78zum5 alignItems-x6s0dn4 margin-x1ghk45w","data-style-src":"Legend/index.tsx:12"}),{},{children:[(0,a.jsx)("div",s(s({},{className:"height-x1gnnpzl width-x1849jeq display-x1rg5ohu marginRight-x1wh8b8d marginTop-x1ok221b","data-style-src":"Legend/index.tsx:5"}),{},{style:{backgroundColor:t}})),(0,a.jsx)("span",{children:n})]}))}},29907:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(14041);var r=n(9260),o=n(88133),a=n(89748),i=n(24284),l=n(31085);const s=function(e){var t=e.email,n=e.awId,s=(0,o.gC)("/ngram/request-pmax-analysis","POST");return(0,l.jsx)(r.default,{onClick:function(){return e=n,void s.mutate({customer_id:e,recipient_email:t},{onSuccess:function(e){var t;(0,i.A)(null==e||null===(t=e.data)||void 0===t?void 0:t.message,"success")},onError:function(){(0,i.A)((0,a.A)("Something went wrong!"),"error")}});var e},loading:s.isLoading,disabled:s.isLoading,children:(0,a.A)("Send email")})}},29973:(e,t,n)=>{"use strict";n.d(t,{A:()=>x}),n(14041);var r=n(39067),o=n.n(r),a=n(89748),i=n(9260),l=n(77223),s=n(72686),c=n(30021),u=n(28426),d=n(27805),f=n(99018),p=n(31085);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=(0,f.createUseStyles)(function(e){return g(g(g(g(g({container:{width:"50%"}},"@media (max-width: ".concat(e.breakpoints.xl,")"),{container:{width:"100%"}}),"frame",{display:"flex",padding:16,justifyContent:"space-between",borderRadius:16,border:"1px solid",borderColor:(0,f.findColour)(e,"grey-200"),marginTop:22}),"littleIcon",{width:32,marginRight:10}),"centredRow",{display:"flex",alignItems:"center"}),"alignToEnds",{display:"flex",justifyContent:"space-between"})});function h(e){var t=e.gotToSubscriptionPortal,n=y();return(0,p.jsxs)(u.A.Page,{type:"settings",children:[(0,p.jsx)(d.default,{type:"settings",title:(0,a.A)("Subscriptions"),text:(0,a.A)("See all of your subscriptions here")}),(0,p.jsxs)(s.default,{className:n.container,children:[(0,p.jsxs)("div",{className:"justify-between align-center",children:[(0,p.jsxs)("div",{className:"width-50",children:[(0,p.jsx)(c.default,{preset:"formSectionTitle",children:(0,a.A)("Manage Subscriptions")}),(0,p.jsx)(c.default,{preset:"subText",className:"mb-3",children:(0,a.A)("To request invoices prior to 2021 please contact us at [email protected]")})]}),(0,p.jsx)(i.default,{"data-testid":"manage-subscription-button",onClick:function(){return t()},iconRight:"chevron-right",children:(0,a.A)("Manage Subscriptions")})]}),(0,p.jsx)(l.default,{className:"mb-6"}),(0,p.jsx)("div",{className:"w-75",children:(0,p.jsx)(c.default,{preset:"subText",children:(0,a.A)("View the details of your existing Lunio subscription below. If you wish to upgrade your subscription to increase your budget allowance, please contact your Client Success Manager using the button below, or the live chat widget.")})}),(0,p.jsx)(i.default,{"data-testid":"get-in-touch-button",className:"mt-4 mb-3",as:"a",preset:"outline",href:"mailto:[email protected]",iconRight:"chevron-right",children:(0,a.A)("Email us")})]})]})}h.propTypes={gotToSubscriptionPortal:o().func.isRequired};const x=h},30021:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(99018),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),s=n(86957),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var d=["as","children","className","textAlign","preset","colour","weight","fontSize","allCaps","style"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=a.default;g(".textAlign-xdpxx8g{text-align:left}",3e3),g(".textAlign-x2b8uid{text-align:center}",3e3),g(".textAlign-x1hr2gdg{text-align:right}",3e3);var y={left:{textAlign:"textAlign-xdpxx8g",$$css:"Text/index.tsx:7"},center:{textAlign:"textAlign-x2b8uid",$$css:"Text/index.tsx:10"},right:{textAlign:"textAlign-x1hr2gdg",$$css:"Text/index.tsx:13"}};function h(e){var t=e.as,n=void 0===t?"p":t,r=e.children,o=e.className,a=void 0===o?"":o,u=e.textAlign,f=void 0===u?"left":u,m=e.preset,g=void 0===m?"text":m,h=e.colour,x=e.weight,b=e.fontSize,v=e.allCaps,A=void 0!==v&&v,_=e.style,S=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d),w=(0,i.classNames)(l.props(s.textStyles[g]).className,l.props(y[f]).className,a),O=null!=_?_:{};if(null!=x&&(O=p(p({},O),{},{fontWeight:x})),null!=b){var j="string"!=typeof b||Number.isNaN(Number(b))?b:Number(b);O=p(p({},O),{},{fontSize:j})}return null!=h&&(O=p(p({},O),{},{color:null===s.colours||void 0===s.colours?void 0:s.colours[h]})),A&&(O=p(p({},O),{},{textTransform:"uppercase"})),(0,c.jsx)(n,p(p({className:w,style:O},S),{},{children:r}))}h.displayName="Text",t.default=h},30042:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(14041),o=n(44576),a=n(28426),i=n(30556),l=n(27805),s=n(89748),c=n(70863),u=n(90364),d=n(79206),f=n(72237),p=n(31085);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const y=function(){var e=m((0,r.useState)(!1),2),t=e[0],n=e[1],g=m((0,r.useState)(!1),2),y=g[0],h=g[1];return(0,p.jsxs)(a.A.Page,{type:"overview",children:[(0,p.jsx)(l.default,{type:"overview",title:(0,s.A)("PMax Tools"),text:(0,p.jsxs)(p.Fragment,{children:[(0,s.A)("Here you can find additional tools built on Lunio data to help accelerate your PMax performance."),(0,p.jsx)("br",{}),(0,s.A)("Got an idea for a tool or feature that youâd like to see? Let us know at "),(0,p.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]!"})]})}),(0,p.jsx)(i.default,{children:(0,p.jsx)(i.default.Row,{children:(0,p.jsxs)(i.default.Col,{children:[(0,p.jsx)(o.A,{title:(0,s.A)("PMax Junk Exclusions List"),logo:f,text:(0,s.A)("Up to 41% of PMax placements consist of ad junk. Use this handy list based on global Lunio data to exclude the worst offending placements from your account and accelerate your performance."),onClick:function(){return n(!0)},onKeyDown:function(){return n(!0)},role:"button",id:"pmax-tile"}),(0,p.jsx)(o.A,{title:(0,s.A)("PMax N-Grams Finder (Powered by Opteo)"),logo:d,text:(0,s.A)("Create negative keywords from N-Grams, reduce wasted spend and improve ad relevance."),onClick:function(){return h(!0)},onKeyDown:function(){return h(!0)},role:"button",id:"opteo-tile"})]})})}),(0,p.jsx)(u.A,{sidebarIsOpen:t,setSidebarIsOpen:n}),(0,p.jsx)(c.A,{sidebarIsOpen:y,setSidebarIsOpen:h})]})}},30087:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m}),n(14041);var r=n(13145),o=n(5604),a=n(31085);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var l=["children","className"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=r.A;function f(e){var t=e.children,n=void 0===t?null:t,r=e.className,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l);return(0,a.jsx)(d,c(c({className:r},o),{},{children:n}))}f.displayName="Placeholder";var p=f;p.TextBlock=o.TextBlock,p.MediaBlock=o.MediaBlock,p.TextRow=o.TextRow,p.RectShape=o.RectShape,p.RoundShape=o.RoundShape;const m=p},30092:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(14041),o=n(49917),a=n(39067),i=n.n(a),l=n(9260),s=n(62720),c=n(76449),u=n(55618),d=n(28426),f=n(27805),p=n(89748),m=n(89789),g=n(31085);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?h(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e){var t=e.data,n=void 0===t?{}:t,a=e.isLoading,i=e.handlePagination,y=e.filters,h=e.onFilterChange,b=e.onRemoveAccount,A=e.onAddAccount,_=e.nonAssignedAccountsAPIResponse,S=e.isLoadingNonAssigned,w=e.handlePaginationNonAssigned,O=e.filtersNonAssigned,j=e.setFiltersNonAssigned,k=v((0,r.useState)(!1),2),E=k[0],N=k[1],I=v((0,r.useState)(""),2),P=I[0],T=I[1],C=[{label:(0,p.A)("Account Name / ID"),name:"account",type:"radio",options:[{label:(0,p.A)("Contains"),name:"contains",type:"text"}]}],R=(0,r.useCallback)((0,o.A)(function(e){j(e)},800),[]);return(0,r.useEffect)(function(){O.search||T(""),!O.search||null!=O&&O.id||T(O.search)},[O]),(0,g.jsxs)(d.A.Page,{type:"settings",children:[(0,g.jsx)(f.default,{type:"settings",title:(0,p.A)("Accounts"),text:(0,p.A)("Manage the ad accounts assigned to this workspace"),contentRight:(0,g.jsx)(l.default,{iconLeft:["far","tags"],id:"open-ad-accounts-button",name:"open-ad-accounts-button","data-testid":"open-ad-accounts-button",onClick:function(){return N(!0)},children:(0,p.A)("Add Accounts")})}),(0,g.jsx)("div",{className:"mb-4",children:(0,g.jsx)(c.default,{filterConfig:C,initialValues:y,onFilterChange:h})}),(0,g.jsx)(m.A,{onAction:b,accountsAPIResponse:n,isLoading:a,handlePagination:i,filters:y,setFilters:h,action:"remove",actionDisabled:function(e){return e&&e.children_selected_count!==e.children_unavailable_count}}),(0,g.jsxs)(u.default,{open:E,onClose:function(){return N(!1)},heading:(0,p.A)("Add accounts to this workspace"),subtitle:(0,p.A)("View the clicks being monitored by your Lunio account"),children:[(0,g.jsx)(s.default,{placeholder:(0,p.A)("Search all accounts"),value:P,iconLeft:["fas","search"],onChange:function(e){return function(e){T(e);var t=x(x({},O),{},{search:e,page:1});delete t.id,R(t)}(e.target.value)},className:"mb-8","data-testId":"search-accounts-input","aria-label":(0,p.A)("Search all accounts")}),(0,g.jsx)(m.A,{onAction:A,accountsAPIResponse:_,isLoading:S,handlePagination:w,filters:O,setFilters:j,action:"add",actionDisabled:function(e){return e&&e.children_unavailable_count>0},onClose:N,search:P})]})]})}_.propTypes={data:i().object,isLoading:i().bool.isRequired,handlePagination:i().func.isRequired,filters:i().object.isRequired,onFilterChange:i().func.isRequired,onRemoveAccount:i().func.isRequired,onAddAccount:i().func.isRequired,nonAssignedAccountsAPIResponse:i().object.isRequired,isLoadingNonAssigned:i().bool.isRequired,handlePaginationNonAssigned:i().func.isRequired,filtersNonAssigned:i().object.isRequired,setFiltersNonAssigned:i().func.isRequired};const S=_},30486:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(14041),o=n(9260),a=n(62720),i=n(72686),l=n(30021),s=n(62683),c=n(28426),u=n(79135),d=n(30556),f=n(69222),p=n(90405),m=n(27805),g=n(88133),y=n(62161),h=n(96182),x=n(80111),b=n(73657),v=n(89748),A=n(93033),_=n(31085);function S(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||O(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const k=function(){var e,t,n,O,j,k,E,N,I,P=w((0,r.useState)(""),2),T=P[0],C=P[1],R=w((0,x.A)(),1)[0],M=w((0,h.A)(),1)[0],L=null==R||null===(e=R.dataFilterDates)||void 0===e||null===(e=e.min)||void 0===e?void 0:e.timestamp,D=null==R||null===(t=R.dataFilterDates)||void 0===t||null===(t=t.max)||void 0===t?void 0:t.timestamp,B=(0,g.Ay)("/analyse?url=".concat(T),void 0,"/analyse",{enabled:!1,retry:0}),U=B.data,F=B.refetch,G=B.isFetching,W=(0,g.Ay)("settings/configured-platforms?limit=100").data,z=(0,g.Ay)("settings/supported-platforms?limit=100").data,V=(0,g.Ay)("/tracking/conversion?df_dmin=".concat(Math.floor(L),"&df_dmax=").concat(Math.floor(D),"&platform=all")).data,q=null==W||null===(n=W.result)||void 0===n?void 0:n.data,K=null==z||null===(O=z.result)||void 0===O?void 0:O.data;if(!q||!K)return null;var H=[];Object.entries((null==U?void 0:U.platforms)||{}).forEach(function(e){var t=w(e,2),n=t[0],r=t[1];H.push({name:n,value:r})});var Y={adroll:"AdRoll",bing:"Bing",linkedin:"LinkedIn",outbrain:"Outbrain",pinterest:"Pinterest",reddit:"Reddit",taboola:"Taboola",meta:"Meta",x:"X",yahooJapan:"Yahoo Japan",tiktok:"Tiktok"},$=T.replace("https://","").replace("http://",""),Z=!1;q.forEach(function(e){var t=!1;e.sources.forEach(function(e){$===e&&(t=!0)}),t&&(Z=e.configuration_id)});var X=H.filter(function(e){return e.value}),J=H.filter(function(e){return!e.value});function Q(e){return e.every(Boolean)?"success":e.some(Boolean)?"warning":"error"}var ee=Q([null==U||null===(j=U.scripts)||void 0===j?void 0:j.clientScript,null==U||null===(k=U.scripts)||void 0===k?void 0:k.clickScript]),te=Q([Z]),ne=Q([0!==(null==V||null===(E=V.result)||void 0===E||null===(E=E.conversions)||void 0===E?void 0:E.length)]),re=M.platforms,oe=[].concat(S(X),S(J)).filter(function(e){return re.some(function(t){return t.platform_name===e.name})});return(0,_.jsx)(A.A,{impersonatingOnly:!0,children:(0,_.jsxs)(c.A.Page,{type:"settings",children:[(0,_.jsx)(m.default,{title:(0,v.A)("Script Debugging"),text:(0,v.A)("Check if Lunio scripts are installed and working correctly on any URL.")}),(0,_.jsxs)(i.default,{children:[(0,_.jsxs)("div",{style:{display:U?"
2none":"block"},children:[(0,_.jsx)(l.default,{preset:"subText",children:"To use this, make sure you're impersonating the right account."}),(0,_.jsx)(l.default,{preset:"subText",className:"mb-4",children:"This won't work for every site, we might be blocked by the site's security."}),(0,_.jsx)(a.default,{name:"url",value:T,onFormValue:function(e){var t=e.value;return C(t)},placeholder:"https://www.example.com"}),(0,_.jsxs)(o.default,{onClick:function(){return F()},loading:G,className:"mt-6",children:[!G&&"Analyse!",G&&"This might take a literal minute"]})]}),(0,_.jsxs)("div",{style:{display:U?"block":"none"},children:[(0,_.jsxs)(l.default,{preset:"pageHeading",children:[T," ",(0,_.jsx)(o.default,{onClick:function(){return window.location.reload()},children:"Reset"})]}),(0,_.jsx)(d.default.Row,{children:(0,_.jsx)(d.default.Col,{md:6,children:(0,_.jsxs)(f.A,{children:[(0,_.jsxs)(i.default,{children:[(0,_.jsx)(f.A.Title,{status:ee,children:"Lunio Scripts"}),(0,_.jsxs)(f.A.Content,{children:["success"===ee&&(0,_.jsx)(l.default,{children:"Lunio tracking scripts are present"}),"success"!==ee&&(0,_.jsx)(l.default,{children:"Lunio tracking scripts are missing"}),(0,_.jsx)("br",{}),(0,_.jsx)("br",{}),(0,_.jsxs)(d.default.Row,{children:[(0,_.jsx)(d.default.Col,{children:"Lunio Client Script"}),(0,_.jsx)(d.default.Col,{children:(0,_.jsx)(u.default,{name:null!=U&&null!==(N=U.scripts)&&void 0!==N&&N.clientScript?"check":"xmark"})})]}),(0,_.jsxs)(d.default.Row,{children:[(0,_.jsx)(d.default.Col,{children:"Lunio Click Script"}),(0,_.jsx)(d.default.Col,{children:(0,_.jsx)(u.default,{name:null!=U&&null!==(I=U.scripts)&&void 0!==I&&I.clickScript?"check":"xmark"})})]}),(0,_.jsx)(d.default.Row,{children:(0,_.jsx)(d.default.Col,{children:"success"!==ee&&(0,_.jsx)(l.default,{children:(0,_.jsx)("a",{href:"https://help.lunio.ai/en/articles/9389465-how-to-integrate-lunio-s-multiplatform-script",target:"_blank",rel:"noopener noreferrer",children:(0,v.A)("Support Documentation")})})})})]})]}),(0,_.jsxs)(i.default,{className:"mt-5",children:[(0,_.jsxs)(f.A.Title,{status:ne,hideOpen:"success"===ne,children:["success"===ne&&(0,_.jsx)(_.Fragment,{children:"We are receiving conversions"}),"success"!==ne&&(0,_.jsx)(_.Fragment,{children:"We are NOT receiving conversions"})]}),(0,_.jsx)(f.A.Content,{children:"success"!==ne&&(0,_.jsxs)(l.default,{children:["We aren't receiving conversions. Make sure you have the right conversion tracking set up.",(0,_.jsx)("br",{}),(0,_.jsx)("a",{href:"https://help.lunio.ai/en/articles/9389283-how-to-install-the-lunio-conversion-tracking-script",target:"_blank",rel:"noopener noreferrer",children:(0,v.A)("Support Documentation")})]})})]}),(0,_.jsxs)(i.default,{className:"mt-5",children:[(0,_.jsx)(f.A.Title,{status:te,children:"Platform Configuration"}),(0,_.jsxs)(f.A.Content,{children:["success"===te&&(0,_.jsx)(l.default,{children:"The URL is attached to a platform configuration"}),"success"!==te&&(0,_.jsxs)(l.default,{children:["The URL is not attached to a platform configuration.",(0,_.jsx)("br",{}),(0,_.jsx)(b.Link,{to:"/platform-settings/multi-platform",children:"Please add it to one here."}),(0,_.jsx)("br",{}),"Remember you'll need to add two different domains for `www.` and without `www.`."]})]})]})]})})}),(0,_.jsx)(d.default.Row,{children:(0,_.jsx)(d.default.Col,{children:(0,_.jsx)(y.A,{rows:oe,leftPinnedColumns:1,children:function(e){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("thead",{children:(0,_.jsxs)("tr",{children:[(0,_.jsx)("th",{children:"Platform"}),(0,_.jsx)("th",{children:"Configured Status"}),(0,_.jsx)("th",{children:"Connected Status"})]})}),(0,_.jsxs)("tbody",{children:[(0,_.jsxs)("td",{children:[(0,_.jsx)(p.A,{platformName:null==e?void 0:e.name,style:{maxWidth:24,display:"inline-block"},className:"mr-2"}),Y[null==e?void 0:e.name]]}),(0,_.jsx)("td",{children:(t={},q.find(function(n){return n.descriptive_name===Y[null==e?void 0:e.name]&&(t=n,n.sources.includes($))})?(0,_.jsx)(s.A,{status:t.protection_status}):(0,_.jsx)(u.default.Status,{status:"error",size:"2xl"}))}),(0,_.jsx)("td",{children:(0,_.jsx)(u.default.Status,{status:null!=e&&e.value?"success":"error",size:"2xl"})})]})]});var t}})})})]})]})]})})}},30556:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(25751)),o=n(55221),a=l(n(16222)),i=n(31085);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var c=["className","style"],u=["className","style"],d=["children","containterResponsive","containerBreakpoints","style"],f=["children","noEdgeGutters"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var h=r.default;function x(e,t){var n,r=e.className,o=e.style,a=y(e,c),i=t.className,l=t.style,s=y(t,u),d=(n=[r,i].filter(Boolean)).length>0?n.join(" "):void 0,f=m(m({},null!=o?o:{}),null!=l?l:{});return m(m(m({},a),s),{},{className:d,style:Object.keys(f).length>0?f:void 0})}function b(e){var t=e.children,n=void 0===t?null:t,r=e.containterResponsive,l=void 0!==r&&r,s=e.containerBreakpoints,c=void 0===s?{xs:960,sm:1280,md:1400,lg:1700,xl:2e3,xxl:2500}:s,u=e.style,f=void 0===u?{}:u,p=y(e,d),g=m({padding:0,paddingLeft:0,paddingRight:0,marginLeft:0,marginRight:0,width:"100%",maxWidth:"100%"},null!=f?f:{});if(l){var h=x({className:"padding-x1717udv marginLeft-xj3b58b marginRight-x1yf7rl7 width-xh8yej3 maxWidth-x193iq5w","data-style-src":"Grid/index.tsx:31"},m(m({},p),{},{style:g}));return(0,i.jsx)(o.Container,m(m({id:"triton-grid-component-responsive",fluid:!0},h),{},{children:(0,i.jsx)(a.default,{containerBreakpoints:c,children:n})}))}var b=x({className:"padding-x1717udv marginLeft-xj3b58b marginRight-x1yf7rl7 width-xh8yej3 maxWidth-x193iq5w","data-style-src":"Grid/index.tsx:31"},m(m({},p),{},{style:g}));return(0,i.jsx)(o.Container,m(m({id:"triton-grid-component",fluid:!0},b),{},{children:n}))}function v(e){var t=e.children,n=void 0===t?null:t,r=e.noEdgeGutters,a=x(void 0===r||r?{className:"padding-x1717udv columnGap-x40hh3e paddingLeft-x1uhho1l paddingRight-x1xpa7k","data-style-src":"Grid/index.tsx:44"}:{className:"padding-x1717udv columnGap-x40hh3e paddingLeft-x163pfp paddingRight-xy13l1i","data-style-src":"Grid/index.tsx:38"},m({gutterWidth:0},y(e,f)));return(0,i.jsx)(o.Row,m(m({},a),{},{children:n}))}function A(e){var t=x({className:"padding-x1717udv marginTop-xw7yly9","data-style-src":"Grid/index.tsx:50"},e);return(0,i.jsx)(o.Col,m({},t))}(0,o.setConfiguration)({breakpoints:[960,1280,170,2e3,2e3,2500],containerWidths:[960,1280,170,2e3,2e3,2500]}),h(".padding-x1717udv{padding:0}",1e3),h(".marginLeft-xj3b58b{margin-left:0}",4e3),h(".marginRight-x1yf7rl7{margin-right:0}",4e3),h(".width-xh8yej3{width:100%}",4e3),h(".maxWidth-x193iq5w{max-width:100%}",4e3),h(".columnGap-x40hh3e{column-gap:16px}",3e3),h(".paddingLeft-x163pfp{padding-left:8px}",4e3),h(".paddingRight-xy13l1i{padding-right:8px}",4e3),h(".paddingLeft-x1uhho1l{padding-left:0}",4e3),h(".paddingRight-x1xpa7k{padding-right:0}",4e3),h(".marginTop-xw7yly9{margin-top:16px}
2",4e3),b.displayName="Grid",v.displayName="Row",A.displayName="Col",b.Row=v,b.Col=A,t.default=b},30739:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=f(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),l=n(86957),s=n(45365),c=f(n(95576)),u=f(n(16563)),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(0,o.default)(".marginTop-x14vqqas{margin-top:12px}",4e3),t.A=function(e){var t=e.densityMap,n=(0,a.useRef)(null),r=h((0,a.useState)(0),2),o=r[0],f=r[1],p=h((0,a.useState)(!1),2),g=p[0],x=p[1];return(0,a.useEffect)(function(){var e;return g&&(e=i.timer(function(e){f(e/25)})),function(){return e&&e.stop()}},[g]),(0,a.useEffect)(function(){i.select(n.current).selectAll("*").remove();var e,r=i.select(n.current),a=+r.node().getBoundingClientRect().width-80-20,s=+r.attr("height")-20-55;e=g?i.geoOrthographic().scale(160).rotate([o,0,0]).translate([a/2,s/2]):i.geoNaturalEarth1().scale(160).translate([a/2,s/2+25]);var d=i.geoPath().projection(e),f=c.default,p=i.scaleSequential(i.interpolatePurples).domain([0,1]);r.append("g").selectAll("path").data(f.features).enter().append("path").attr("d",d).attr("fill",function(e){var n=e.properties.ADMIN,r=t.get(n);if("object"===y(r)){var o=i.max(Array.from(t.values()).map(function(e){return e.clicksTotal}));return(0,u.default)(r,null!=o?o:0)}var a=p(r);return void 0!==r?a:l.colourValues.purple50}).style("stroke",l.colourValues.white).append("title").text(function(e){var n=e.properties.ADMIN,r=t.get(n);if(!r)return"".concat(n,": No data");if("object"===y(r)){var o=r.clicksInvalid,a=r.clicksTotal,l=o/a,s=i.max(Array.from(t.values()).map(function(e){return e.clicksTotal})),c=null!=s&&0!==s?a/s*100:0,u=o/a*100;return"".concat(n,":\n Fraudulent clicks: ").concat(o,"\n Total clicks: ").concat(a,"\n Fraudulent: ").concat(Number(100*l).toFixed(2),"%\n \n \n Chart key\n Percentage total: ").concat(c.toFixed(2),"%\n Percentage invalid: ").concat(u.toFixed(2),"%\n ")}return"".concat(n,": ").concat(r)})},[t,o,g]),(0,d.jsxs)("div",{children:[(0,d.jsx)("svg",{ref:n,width:"100%",height:"500"}),(0,d.jsx)("div",m(m({},{className:"marginTop-x14vqqas","data-style-src":"World/index.tsx:10"}),{},{children:(0,d.jsx)(s.Button,{onClick:function(){return x(!g)}
2,iconLeft:["far","earth-europe"],preset:"secondary"})}))]})}},30805:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=s(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=s(n(79135)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=o.default;p(".display-x78zum5{display:flex}",3e3),p(".justifyContent-x1qughib{justify-content:space-between}",3e3),p(".height-xc9qbxq{height:36px}",4e3),p(".width-xh8yej3{width:100%}",4e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".textAlign-xdpxx8g{text-align:left}",3e3),p(".color-x75csi3{color:var(--black400-x1u7ngzx)}",3e3),p(".borderRadius-x12oqio5{border-radius:4px}",2e3),p(".paddingLeft-xf18ygs{padding-left:12px}",4e3),p(".paddingRight-xnuq7ks{padding-right:12px}",4e3),p(".fontSize-xif65rj{font-size:14px}",3e3),p(".fontWeight-xk50ysn{font-weight:500}",3e3),p(".color-x1hxxw9p:hover{color:var(--black900-x1vm5mv1)}",3130),p(".cursor-x1277o0a:hover{cursor:pointer}",3130),p(".backgroundColor-x1i1cpqc{background-color:var(--gray50-x1bw8p5w)!important}",3e3),p(".color-xmk75u9{color:var(--black900-x1vm5mv1)!important}",3e3),p(".flexDirection-x15zctf7{flex-direction:row-reverse}",3e3),p(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),p(".textAlign-x1hr2gdg{text-align:right}",3e3),p(".transform-x19jd1h0{transform:rotate(180deg)}",3e3),p(".marginLeft-xj3b58b{margin-left:0}",4e3),p(".marginRight-x1db2dqx{margin-right:8px}",4e3),p(".display-x1lliihq{display:block}",3e3);var m={FiltersMenuItemContainer:{display:"display-x78zum5",justifyContent:"justifyContent-x1qughib",height:"height-xc9qbxq",width:"width-xh8yej3",alignItems:"alignItems-x6s0dn4",textAlign:"textAlign-xdpxx8g",color:"color-x75csi3",borderRadius:"borderRadius-x12oqio5",paddingLeft:"paddingLeft-xf18ygs",paddingRight:"paddingRight-xnuq7ks",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xk50ysn",":hover_color":"color-x1hxxw9p",":hover_cursor":"cursor-x1277o0a",$$css:"FilterMenuItems/index.tsx:7"},activeFilterMenuItemContainer:{backgroundColor:"backgroundColor-x1i1cpqc",color:"color-xmk75u9",$$css:"FilterMenuItems/index.tsx:25"},rightSide:{flexDirection:"flexDirection-x15zctf7",justifyContent:"justifyContent-x13a6bvl",textAlign:"textAlign-x1hr2gdg",$$css:"FilterMenuItems/index.tsx:29"},flippedIcon:{transform:"transform-x19jd1h0",marginLeft:"marginLeft-xj3b58b",marginRight:"marginRight-x1db2dqx",$$css:"FilterMenuItems/index.tsx:34"},icon:{$$css:"FilterMenuItems/index.tsx:43"}};function g(e){var t=e.configItem,n=e.selectedConfigItem,r=e.onSelectedConfigItem,o=e.leftSide,s=void 0===o||o,c=t.name===(null==n?void 0:n.name);return(0,l.jsxs)("button",d(d({id:"filters-menu-item-".concat(t.name),"data-testid":"filters-menu-item-".concat(t.name),type:"button"},a.props(m.FiltersMenuItemContainer,c&&m.activeFilterMenuItemContainer,!1===s&&m.rightSide)),{},{"aria-selected":c,onMouseEnter:function(){return r(t)},children:[(0,l.jsx)("div",d(d({},{className:"display-x1lliihq width-xh8yej3","data-style-src":"FilterMenuItems/index.tsx:39"}),{},{children:t.label})),c&&(0,l.jsx)(i.default,d({name:"chevron-right"},a.props(s?m.icon:[m.icon,m.flippedIcon])))]}))}g.displayName="FiltersMenuItem",t.default=g},31095:(e,t,n)=>{"use strict";
2e.exports=n.p+"f33292e8985514133152.svg"},31172:(e,t,n)=>{"use strict";e.exports=n.p+"8714d4b784067660463b.svg"},31243:(e,t,n)=>{"use strict";e.exports=n.p+"d7d7c35273606a600c6f.svg"},31387:(e,t,n)=>{"use strict";n.d(t,{A:()=>p}),n(14041);var r=n(39067),o=n.n(r),a=n(99018),i=n(83223),l=n(89748),s=n(30021),c=n(79135),u=n(31085),d=(0,a.createUseStyles)(function(e){return{wrapper:{minWidth:180},icon:{minWidth:30,textAlign:"center",float:"left",lineHeight:"36px",fontSize:e.fontSizes.lg,marginRight:0,color:(0,a.findColour)(e,"grey",500)}}});function f(e){var t=e.row,n=void 0===t?{}:t,r=[{type:"c",name:(0,l.A)("Desktop"),icon:(0,u.jsx)(c.default,{name:["far","laptop"]})},{type:"m",name:(0,l.A)("Mobile"),icon:(0,u.jsx)(c.default,{name:["far","mobile-button"]})},{type:"t",name:(0,l.A)("Tablet"),icon:(0,u.jsx)(c.default,{name:["far","tablet-button"]})},{type:"ct",name:(0,l.A)("Connected TV"),icon:(0,u.jsx)(c.default,{name:["far","tablet-button"]})},{type:"bot",name:(0,l.A)("Bot"),icon:(0,u.jsx)(c.default,{name:["far","robot"]})},{type:"b",name:(0,l.A)("Bot"),icon:(0,u.jsx)(c.default,{name:["far","robot"]})},{type:"ZZ",name:(0,l.A)("Other"),icon:(0,u.jsx)(c.default,{name:["far","question"]})}],o=d(),a=r.find(function(e){return e.type===n.devi});return(0,u.jsxs)("div",{"data-testid":"ShowClickInfo",className:"flex v-align-center ".concat(o.wrapper),children:[(0,u.jsx)("div",{className:o.icon,children:null==a?void 0:a.icon}),(0,u.jsxs)("div",{className:"ml-3",children:[(0,u.jsx)(s.default,{preset:"cellText",children:(0,i.GP)(new Date(n.created_at),"MMM d, H:mm")}),(0,u.jsx)(s.default,{preset:"cellSubText",children:null==a?void 0:a.name})]})]})}f.propTypes={row:o().object};const p=f},31668:(e,t,n)=>{"use strict";e.exports=n.p+"3d6a53e35c51e924c63a.svg"},31712:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(29279),a=n(31085);const i=function(){var e,t=(0,r.R7)({}),n=t.filters,i=t.handlePagination,l=t.setFilters,s=t.handleSort,c="";return null!==(e=n["accounts.selection"])&&void 0!==e&&e.length&&(c+="&df_customer_ids=".concat(JSON.stringify(n["accounts.selection"]))),n["search.contains"]&&(c+="&search=".concat(encodeURIComponent(n["search.contains"]))),(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:n,onFilterChange:l,dynamicQuery:c,handlePagination:i,handleSort:s})})}},31805:(e,t,n)=>{"use strict";e.exports=n.p+"61077fa0dadd269c8538.svg"},31830:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(4161),a=n(31085);const i=function(){var e,t=(0,r.R7)({}),n=t.filters,i=t.handlePagination,l=t.setFilters,s=t.handleSort,c="";return null!==(e=n["accounts.selection"])&&void 0!==e&&e.length&&(c+="&df_customer_ids=".concat(JSON.stringify(n["accounts.selection"]))),n["search.contains"]&&(c+="&search=".concat(encodeURIComponent(n["search.contains"]))),(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:n,onFilterChange:l,dynamicQuery:c,handlePagination:i,handleSort:s})})}},31848:(e,t,n)=>{"use strict";e.exports=n.p+"f8b65f67de2174704b50.svg"},31883:(e,t,n)=>{"use strict";e.exports=n.p+"52d688aca25386a7ef5a.svg"},32141:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(14041),o=n(88133),a=n(89748),i=n(51836),l=n(24284),s=n(40521),c=n(31085);const u=function(){var e=(0,i.zy)().state,t=(0,o.gC)("/ip/blacklist","POST");return(0,r.useEffect)(function(){if(null!=e&&e.page){var t=document.getElementById(null==e?void 0:e.rowId);t&&t.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}window.history.replaceState({},document.title)},[]),(0,c.jsx)(s.A,{handleIpExclusion:function(e){t.mutate({apply_to:"campaigns",campaign_ids:[e.cpn],ips:e.ip,reason:9e3,_method:"PUT"},{onSuccess:function(){(0,l.A)((0,a.A)("IP successfully added to exclusions list."),"success")},onError:function(){(0,l.A)((0,a.A)("Error adding IP to exclusions - please contact support."),"error")}})}})}},32271:(e,t,n)=>{"use strict";n.d(t,{A:()=>m}),n(14041);var r=n(88133),o=n(97475),a=n(27333),i=n(89748),l=n(77730),s=n(47352),c=n(24284),u=n(93033),d=n(91779),f=n(31085);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const m=function(){var e,t,n,m=(0,o.jE)(),g=(t=(0,l.A)(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];function y(){m.getQueryCache().findAll().forEach(function(e){m.invalidateQueries(e.queryKey)})}var h=(0,a.R7)({recalc:1,only_show_hidden:!1,include_hidden:!1,show_empty:!0,sortKey:"descriptive_name",sortOrder:"asc","clicksReceived.clicks_received":!1}),x=h.filters,b=h.handlePagination,v=h.setFilters,A=(0,a.st)("/aw/customers",x,function(e){var t="&include_monitored=".concat(Boolean(null==e?void 0:e["accountStatus.include_monitored"]).toString(),"&include_protected=").concat(Boolean(null==e?void 0:e["accountStatus.include_protected"]).toString(),"&include_disabled=").concat(Boolean(null==e?void 0:e["accountStatus.include_disabled"]).toString());return null!=e&&e["clicksReceived.clicks_received"]&&(t+="&clicks_received=true"),(null!=e&&e["accountName.contains"]||null!=e&&e["accountId.startsWith"])&&(t+="&descriptive_name=".concat(null!=e&&e["accountName.contains"]?encodeURIComponent(null==e?void 0:e["accountName.contains"]):encodeURIComponent(null==e?void 0:e["accountId.startsWith"]))),t}),_=A.data,S=A.isLoading,w=(0,r.gC)("/aw/customers/batch?workspace_context=".concat((0,s.A)(null==g||null===(e=g.selectedWorkspace)||void 0===e?void 0:e.id)),"POST");return(0,f.jsx)(u.A,{roles:["ADMIN","MANAGER","EDITOR","ROOT"],children:(0,f.jsx)(d.A,{data:null==_?void 0:_.result,isLoading:S,handlePagination:b,onFilterChange:v,filters:x,updateSelectedAccounts:function(e){w.mutate({_method:"PATCH",df_customer_aw_ids:e.awIds,monitoring_enabled:e.monitoring_enabled,protection_enabled:e.protection_enabled,is_hidden:!1},{onSuccess:function(){(0,c.A)((0,i.A)("Status was updated for multiple accounts"),"success"),y()},onError:function(){(0,c.A)((0,i.A)("Something went wrong!"),"error")}})},handleUpdateAllState:function(e){w.mutate({_method:"PATCH",monitoring_enabled:e.monitoring_enabled,protection_enabled:e.protection_enabled,is_hidden:!1,only_show_hidden:!1,include_hidden:!1,show_empty:!0,include_monitored:!0,include_protected:!0,include_disabled:!0,aw_account_ids:[]},{onSuccess:function(){y(),(0,c.A)((0,i.A)("All statuses were successfully updated for all Accounts and their Campaigns"),"success")},onError:function(){(0,c.A)((0,i.A)("Something went wrong!"),"error")}})},isUpdating:w.isLoading||S})})}},32301:(e,t,n)=>{"use strict";e.exports=n.p+"526fd99f974c15dc3437.svg"},32354:(e,t,n)=>{"use strict";function r(e,t){return e?e.length>t?"".concat(e.substring(0,t),"..."):e:""}n.d(t,{A:()=>r})},32419:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(14041),o=n(77223),a=n(72686),i=n(30021),l=n(55436),s=n(64517),c=n(28426),u=n(30556),d=n(44949),f=n(98962),p=n(89748),m=n(83223),g=n(73657),y=n(51836),h=n(98536),x=n(80303),b=n(31085);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const O=function(){var e,t,n,v,A,S,O,j=(S=(0,g.useSearchParams)(),O=1,function(e){if(Array.isArray(e))return e}(S)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(S,O)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(S,O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].get("advertiser"),k=(0,y.g)().keywordId,E=(0,h.useApi)({url:"/brand-protection/keyword/".concat(k,"?advertiser_id=").concat(j,"&"),responseDataKey:"result"}),N=E.response,I=E.isLoading,P=null==N?void 0:N.result,T=null==P?void 0:P.created_at,C=null==P?void 0:P.last_scan_at,R=(0,x.default)(null==P?void 0:P.location),M=null!==(e=null==P?void 0:P.ads)&&void 0!==e?e:[];return(0,b.jsxs)(l.default,{loading:I,error:!I&&!P,preset:"dark",children:[(0,b.jsx)(d.A,{menuItems:[],title:null==P?void 0:P.keywords,subText:null!==(t=null==P||null===(n=P.ads)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.advertiser)&&void 0!==t?t:"",subTitle:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.Link,{style:{color:"#7F56D9"},to:"/brand-bidding/bidding",children:(0,p.A)("Brand Bidding")})," / ",null==P?void 0:P.keywords]})}),(0,b.jsxs)(c.A.Page,{type:"settings",children:[(0,b.jsxs)(u.default.Row,{children:[(0,b.jsx)(u.default.Col,{children:(0,b.jsx)(s.A,{title:(0,p.A)("Ads detected"),value:null!==(v=null==P||null===(A=P.ads)||void 0===A?void 0:A.length)&&void 0!==v?v:0,icon:["far","hashtag"],statBlockValueSmall:!0})}),(0,b.jsx)(u.default.Col,{children:(0,b.jsx)(s.A,{title:(0,p.A)("First detected"),value:T?(0,m.GP)(new Date(T),"dd MMM, yyyy"):"",icon:["far","calendar"],statBlockValueSmall:!0})}),(0,b.jsx)(u.default.Col,{children:(0,b.jsx)(s.A,{title:(0,p.A)("Last detected"),value:C?(0,m.GP)(new Date(C),"dd MMM, yyyy"):"",icon:["far","calendar"],statBlockValueSmall:!0})})]}),(0,b.jsx)(u.default.Row,{children:(0,b.jsx)(u.default.Col,{children:(0,b.jsxs)(a.default,{children:[(0,b.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,b.jsx)(i.default,{preset:"widgetHeading",as:"h2",children:(0,p.A)("Ad Creative")})}),(0,b.jsx)(o.default,{className:"mb-4"}),0===M.length&&(0,b.jsx)(i.default,{children:(0,p.A)("No ads found for this keyword")}),M.length>0&&M.map(function(e,t){return(0,b.jsxs)(r.Fragment,{children:[0!==t&&(0,b.jsx)(o.default,{}),(0,b.jsx)(f.A,{adData:_(_({},e),{},{keywords:null==P?void 0:P.keywords,location:R})})]},e.ad_id)})]})})})]})]})}},32420:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(14041),o=n(9260),a=n(62720),i=n(72686),l=n(64705),s=n(28426),c=n(91788),u=n(63729),d=n(67303),f=n(13734),p=n(22050),m=n(87611),g=n(9326),y=n(93033),h=n(89748),x=n(92523),b=n(31085);function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const _=function(){var e,t=v(r.useState("keyword"),2),n=t[0],A=t[1],_=v(r.useState(null),2),S=_[0],w=_[1],O=[{label:(0,h.A)("Keyword"),value:"keyword"},{label:(0,h.A)("Placement"),value:"placement"},{label:(0,h.A)("Network"),value:"network"}];return(0,b.jsx)(y.A,{impersonatingOnly:!0,children:(0,b.jsxs)(s.A.Page,{type:"settings",children:[(0,b.jsx)(c.A,{style:{height:"300px"},children:(0,b.jsx)(p.A,{datepicker:(0,b.jsx)(x.default,{})})}),(0,b.jsx)("div",{className:"mt-8 mb-8"}),(0,b.jsx)(c.A,{style:{height:"300px"},children:(0,b.jsx)(d.A,{})}),(0,b.jsx)("div",{className:"mt-8 mb-8"}),(0,b.jsx)(c.A,{style:{height:"300px"},children:(0,b.jsx)(u.A,{})}),(0,b.jsx)("div",{className:"mt-8 mb-8"}),(0,b.jsxs)(y.A,{platforms:["google"],children:[(0,b.jsxs)(i.default,{className:"mb-4",children:[(0,b.jsx)("div",{style:{width:"100%",overflowX:"auto",paddingBottom:"16
2px"},children:(0,b.jsxs)(l.A,{currentSelection:S,onSelectionChange:function(e){return w(e)},preset:"secondary",children:[(0,b.jsx)(o.default,{children:(0,h.A)("All")}),(0,b.jsx)(o.default,{children:(0,h.A)("Search")}),(0,b.jsx)(o.default,{children:(0,h.A)("Shopping")}),(0,b.jsx)(o.default,{children:(0,h.A)("Display")}),(0,b.jsx)(o.default,{children:(0,h.A)("Video")}),(0,b.jsx)(o.default,{children:(0,h.A)("Performance Max")}),(0,b.jsx)(o.default,{children:(0,h.A)("Discovery")}),(0,b.jsx)(o.default,{children:(0,h.A)("Multi-Channel")}),(0,b.jsx)(o.default,{children:(0,h.A)("Hotel")}),(0,b.jsx)(o.default,{children:(0,h.A)("Smart")}),(0,b.jsx)(o.default,{children:(0,h.A)("Express")})]})}),(0,b.jsx)(f.A,{useGlobalDates:!0,campaignType:[null,"SEARCH","SHOPPING","DISPLAY","VIDEO","PERFORMANCE_MAX","DISCOVERY","MULTI_CHANNEL","HOTEL","SMART","EXPRESS","TRAVEL","LOCAL_SERVICES","LOCAL","DEMAND_GEN"][S]})]}),(0,b.jsxs)(i.default,{children:[(0,b.jsxs)("div",{className:"flex justify-end",children:[(0,b.jsx)(a.default.Select,{options:O,onChange:function(e){return A(e.value)},"data-testid":"create-user-role-select-dropdown",value:{label:null===(e=O.find(function(e){return e.value===n}))||void 0===e?void 0:e.label,value:n}}),(0,b.jsx)(x.default,{className:"ml-3"})]}),"country"!==n&&(0,b.jsx)("div",{children:(0,b.jsx)(c.A,{style:{height:"300px"},children:(0,b.jsxs)("div",{className:"mt-6",children:["network"!==n&&(0,b.jsx)(m.A,{type:n}),"network"===n&&(0,b.jsx)(g.A,{dataType:n})]})})})]})]})]})})}},32452:(e,t,n)=>{"use strict";n.d(t,{A:()=>c}),n(14041);var r=n(89748),o=n(99018),a=n(1781),i=n(79135),l=n(31085),s=(0,o.createUseStyles)(function(e){return{circle:{height:32,width:32,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:500,boxSizing:"content-box","& svg":{width:16,height:16}},legitimate:{backgroundColor:(0,o.findColour)(e,"green",100),border:"4px solid ".concat((0,o.findColour)(e,"green",25))},suspicious:{backgroundColor:(0,o.findColour)(e,"yellow",200),border:"4px solid ".concat((0,o.findColour)(e,"yellow",50))},invalid:{backgroundColor:(0,o.findColour)(e,"red",100),border:"4px solid ".concat((0,o.findColour)(e,"red",50))},givt_invalid:{backgroundColor:(0,o.findColour)(e,"red",100),border:"4px solid ".concat((0,o.findColour)(e,"red",50)),color:(0,o.findColour)(e,"red",300)}}});const c=function(e){var t,n=e.statusCode,c=void 0===n?0:n,u=s(),d=[{type:0,name:(0,r.A)("Allowed-List"),icon:(0,l.jsx)(i.default,{name:["far","thumbs-up"]}),className:"legitimate",tooltip:(0,r.A)("Allowed-List")},{type:10,name:(0,r.A)("Legitimate"),icon:(0,l.jsx)(i.default,{name:["far","thumbs-up"]}),className:"legitimate",tooltip:(0,r.A)("Legitimate")},{type:20,name:(0,r.A)("Suspicious"),icon:(0,l.jsx)(i.default,{name:["far","glasses-round"]}),className:"suspicious",tooltip:(0,r.A)("Suspicious")},{type:30,name:(0,r.A)("SIVT"),icon:(0,l.jsx)(i.default,{name:["far","thumbs-down"]}),className:"invalid",tooltip:(0,r.A)("SIVT")},{type:50,name:(0,r.A)("Manually ignored IP"),icon:(0,l.jsx)(i.default,{name:["far","thumbs-down"]}),className:"givt_invalid",tooltip:(0,r.A)("GIVT - manually ignored IP")},{type:60,name:(0,r.A)("Duplicate click"),icon:(0,l.jsx)(i.default,{name:["far","thumbs-down"]}),className:"givt_invalid",tooltip:(0,r.A)("GIVT - Duplicate click (matched by click ID)")},{type:70,name:(0,r.A)("Crawler/Bot"),icon:(0,l.jsx)(i.default,{name:["far","thumbs-down"]}),className:"givt_invalid",tooltip:(0,r.A)("GIVT - Crawler/Bot")}],f=null!==(t=d.find(function(e){return e.type===c}))&&void 0!==t?t:d[1],p=(0,o.classNames)(u.circle,u[f.className]);return(0,l.jsx)(a.default,{content:f.tooltip,showIcon:!1,children:(0,l.jsx)("div",{"data-testid":"ShowClickStatus",className:p,children:f.icon})})}},32755:(e,t,n)=>{"use strict";e.exports=n.p+"e8ec167988b15f16719b.svg"},32834:(e,t,n)=>{"use strict";e.exports=n.p+"578ce2edf3f539f01313.svg"},32881:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=function(e){var t,n=e.isLoading,r=e.time,o=e.setTime,m=e.data,g=e.title,y=e.f
2ilters,h=e.setFilters,b=[{label:(0,u.language)("Partner"),name:"partner",type:"radio",options:[{label:(0,u.language)("contains"),name:"contains",type:"text"}]},{label:(0,u.language)("Network"),name:"network",type:"radio",options:[{label:(0,u.language)("contains"),name:"contains",type:"text"}]},{label:(0,u.language)("Campaign"),name:"campaign",type:"radio",options:[{label:(0,u.language)("contains"),name:"contains",type:"text"}]}],A=function(e){if(Array.isArray(e))return e}(t=a.default.useState(null))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,a,i=[],l=!0,s=!1;try{for(o=(t=t.call(e)).next,!2;!(l=(n=o.call(t)).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return v(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),_=A[0],S=A[1],w=m.every(function(e){return 0===e.value}),O=(0,c.getIvtClassificationColours)(s.colourValues,null==m?void 0:m.length),j=i.scaleOrdinal(O);return(0,p.jsxs)(l.Card,{className:"mb-4",children:[(0,p.jsxs)("div",x(x({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4","data-style-src":"Classifications/index.jsx:19"}),{},{children:[(0,p.jsx)(l.Text,{preset:"widgetHeading",as:"h2",children:g}),(0,p.jsxs)("div",{className:"flex distribute-space-between",children:[y&&(0,p.jsx)(l.Filters,{filterConfig:b,initialValues:y,onFilterChange:h}),(0,p.jsx)(l.Input.DatePicker,{value:[r.min.date,r.max.date],onRangeChange:function(e){return o(e)},selectedOption:r.rangeName,showCalenderIcon:!1,displayRangeText:!1,ranges:["yesterday","7d","1d","30d","prevMonth"],maxRangeDays:90})]})]})),(0,p.jsx)(l.Divider,{className:"mt-4"}),!n&&w&&(0,p.jsx)(l.NoData,{hasNoData:!0,style:{height:"300px",width:"100%",marginTop:16}}),(0,p.jsx)(l.Grid,{children:(0,p.jsx)(l.Grid.Row,{children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(l.Grid.Col,{lg:6,children:(0,p.jsx)(l.LunioLoader,{loading:n,preset:"dark",size:"responsive",height:408,children:!n&&!w&&(0,p.jsx)(d.Pie.Donut,{data:m,colors:O,onSliceHover:S})})}),(0,p.jsx)(l.Grid.Col,{children:(0,p.jsx)(l.LunioLoader,{loading:n,preset:"dark",size:"responsive",height:408,children:!n&&!w&&(0,p.jsx)("div",{style:{maxHeight:408,overflow:"auto"},children:m.map(function(e,t){return(0,p.jsx)(f.default,{title:(0,u.language)(e.name),percentage:e.value,color:j(t),isActive:_===t},e.name)})})})})]})})})]})};var o=g(n(25751)),a=g(n(14041)),i=m(n(64746)),l=n(45365),s=(m(n(76969)),n(86957)),c=n(18141),u=n(60156),d=n(19838),f=g(n(37579)),p=n(31085);function m(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function g(e){return e&&e.__esModule?e:{default:e}}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A=o.default;A(".display-x78zum5{display:flex}",3e3),A(".justifyContent-x1qughib{justify-content:space-between}",3e3),A(".alignItems-x6s0dn4{align-items:center}",3e3)},32998:(e,t,n)=>{"use strict";t.A=void 0;var r=l(n(25751)),o=l(n(31805)),a=l(n(22496)),i=n(31085);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=r.default;function p(e){var t=e.loading,n=e.message,r=void 0===n?"":n,l=e.className,s=void 0===l?"":l,c=e.children,d=void 0===c?null:c,f=e.data,p=void 0===f?[!0]:f;return t?(0,i.jsx)("div",u(u({className:s},{className:"width-xh8yej3 height-x5yr21d padding-x1717udv paddingBottom-xsmwaxf margin-x1ghz6dp listStyle-xe8uvvx display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k","data-style-src":"WorkspaceLoader/index.tsx:8"}),{},{children:(0,i.jsxs)("div",u(u({},{className:"width-x8yj6t5","data-style-src":"WorkspaceLoader/index.tsx:19"}),{},{children:[(0,i.jsxs)("div",u(u({},{className:"position-x1n2onr6 aspectRatio-x1y5e3q9 width-xh8yej3 display-x3nfvp2 marginBottom-x156bchz","data-style-src":"WorkspaceLoader/index.tsx:22"}),{},{children:[(0,i.jsx)("div",u(u({},{className:"position-x10l6tqk top-x9ri80z width-xh8yej3 opacity-x1iy03kw","data-style-src":"WorkspaceLoader/index.tsx:36"}),{},{children:(0,i.jsx)("img",{"data-testid":"lunio-page-loader-loading-image",width:"100%",src:a.default,alt:"loading logo"})})),(0,i.jsx)("div",u(u({},{className:"opacity-x1us6l5c position-x10l6tqk width-xh8yej3","data-style-src":"WorkspaceLoader/index.tsx:42"}),{},{children:(0,i.jsx)("img",{alt:"",width:"150%",src:o.default})}))]})),(0,i.jsx)("div",u(u({},{className:"width-xh8yej3 textAlign-x2b8uid fontFamily-xjc5pbd fontSize-xif65rj color-x4g5gcn","data-style-src":"WorkspaceLoader/index.tsx:29"}),{},{children:r}))]}))})):0===p.length?(0,i.jsx)("div",{children:"No Results"}):d}f(".width-xh8yej3{width:100%}",4e3),f(".height-x5yr21d{height:100%}",4e3),f(".padding-x1717udv{padding:0}",1e3),f(".paddingBottom-xsmwaxf{padding-bottom:5%}",4e3),f(".margin-x1ghz6dp{margin:0}",1e3),f(".listStyle-xe8uvvx{list-style:none}",2e3),f(".display-x78zum5{display:flex}",3e3),f(".alignItems-x6s0dn4{align-items:center}",3e3),f(".justifyContent-xl56j7k{justify-content:center}",3e3),f(".width-x8yj6t5{width:20%}",4e3),f(".position-x1n2onr6{position:relative}",3e3),f(".aspectRatio-x1y5e3q9{aspect-ratio:1 / 1}",3e3),f(".display-x3nfvp2{display:inline-flex}",3e3),f(".marginBottom-x156bchz{margin-bottom:0%}",4e3),f(".textAlign-x2b8uid{text-align:center}",3e3),f(".fontFamily-xjc5pbd{font-family:Axiforma,sans-serif}",3e3),f(".fontSize-xif65rj{font-size:14px}",3e3),f(".color-x4g5gcn{color:var(--black800-x1ueousw)}",3e3),f(".position-x10l6tqk{position:absolute}",3e3),f(".top-x9ri80z{top:40px}",4e3),f(".opacity-x1iy03kw{opacity:.9}",3e3),f(".opacity-x1us6l5c{opacity:.8}",3e3),p.displayName="WorkspaceLoader",t.A=p}
2,33014:(e,t,n)=>{"use strict";e.exports=n.p+"b3e3a620495b4f6684c6.svg"},33185:(e,t,n)=>{"use strict";e.exports=n.p+"d036d15b079a51dc3b5f.svg"},33260:(e,t,n)=>{"use strict";e.exports=n.p+"f07d951159214df11a79.svg"},33300:(e,t,n)=>{"use strict";e.exports=n.p+"3e7b9debf12f01f00ace.svg"},33347:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=p(n(25751)),a=p(n(14041)),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(45365),s=n(66753),c=n(75267),u=p(n(14233)),d=p(n(19895)),f=n(31085);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=o.default,b={help:"Help",diagnose:"Diagnosing",report:"Reporting",optimise:"Optimising",proof:"Calculating"},v={help:"Answering a how-to or product question",diagnose:"Digging into your account's own data",report:"Putting together a summary report",optimise:"Suggesting an improvement or fix",proof:"Asked to validate Lunio's own ROI or value"},A={"unknown session_id":"This conversation isn't available here - it may belong to a different session.","workspace not permitted":"You don't have access to that workspace.","not authenticated":"Your session has expired - refresh the page and try again."};x("@keyframes x1f9q4kp-B{0%{opacity:.2;}40%{opacity:1;}80%{opacity:.2;}100%{opacity:.2;}}",1),x(".display-x78zum5{display:flex}",3e3),x(".alignItems-x1cy8zhl{align-items:flex-start}",3e3),x(".gap-x167g77z{gap:8px}",2e3),x(".width-xh8yej3{width:100%}",4e3),x(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),x(".width-xgd8bvy{width:28px}",4e3),x(".height-x1fgtraw{height:28px}",4e3),x(".borderRadius-x12oqio5{border-radius:4px}",2e3),x(".backgroundColor-x1ba4oyk{background-color:var(--black900-x1vm5mv1)}",3e3),x(".alignItems-x6s0dn4{align-items:center}",3e3),x(".justifyContent-xl56j7k{justify-content:center}",3e3),x(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),x(".flexShrink-x2lah0s{flex-shrink:0}",3e3),x(".fontSize-xfifm61{font-size:12px}",3e3),x(".flexDirection-xdt5ytf{flex-direction:column}",3e3),x(".gap-x17d4w8g{gap:6px}",2e3),x(".minWidth-xeuugli{min-width:0}",4e3),x(".maxWidth-x14r61f{max-width:80%}",4e3),x(".alignItems-xuk3077{align-items:flex-end}",3e3),x(".backgroundColor-x4x7r6d{background-color:var(--primary400-x6nrv7m)}",3e3),x(".borderRadius-x4pepcl{border-radius:12px}",2e3),x(".borderBottomRightRadius-xra8837{border-bottom-right-radius:2px}",4e3),x(".paddingTop-x1y1aw1k{padding-top:8px}",4e3),x(".paddingBottom-xwib8y2{padding-bottom:8px}",4e3),x(".paddingLeft-xf18ygs{padding-left:12px}",4e3),x(".paddingRight-xnuq7ks{padding-right:12px}",4e3),x(".fontSize-x4z9k3i{font-size:13px}",3e3),x(".lineHeight-x1evy7pa{line-height:1.5}",3e3),x(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),x(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),x(".borderBottomLeftRadius-x1fnwnyj{border-bottom-left-radius:2px}",4e3),x(".backgroundColor-x1ssdy5{background-color:var(--error50-x1f3qy36)}",3e3),x(".color-xqy16mm{color:var(--error700-x1brey9)}",3e3),x(".gap-x1jnr06f{gap:4px}",2e3),x(".width-x1v4s8kt{width:6px}",4e3),x(".height-xols6we{height:6px}",4e3),x(".borderRadius-x16rqkct{border-radius:50%}",2e3),x(".backgroundColor-x1u8ybml{background-color:var(--gray400-x79zdqj)}",3e3),x(".animationName-xt70ul{animation-name:x1f9q4kp-B}",3e3),x(".animationDuration-x1m9vv7p{animation-duration:1.2s}",3e3),x(".animationIterationCount-xa4qsjk{animation-iteration-count:infinite}",3e3),x(".animationTimingFunction-x4hg4is{animation-timing-function:ease-in-out}",3e3),x(".animationDelay-x1t83zlg{animation-delay:.2s}",3e3),x(".animationDelay-x1xwhvez{animation-delay:.4s}",3e3),x(".borderRadius-x1kogg8i{border-radius:6px}",2e3),x(".borderWidth-xmkeg23{border-width:1px}",2e3),x(".borderStyle-x1y0btm7{border-style:solid}",2e3),x(".borderColor-x2ci420{border-color:var(--gray200-x1cfnqzm)}",2e3),x(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3),x(".paddingTop-x1iorvi4{padding-top:4px}",4e3),x(".paddingBottom-xjkvuk6{padding-bottom:4px}",4e3),x(".paddingLeft-x163pfp{padding-left:8px}",4e3),x(".paddingRight-xy13l1i{padding-right:8px}",4e3),x(".fontSize-x1j6dyjg{font-size:11px}",3e3),x(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),x(".width-xeq5yr9{width:fit-content}",4e3),x(".color-x183cm2b{color:var(--primary400-x6nrv7m)}",3e3),x(".flexWrap-x1a02dak{flex-wrap:wrap}",3e3),x(".borderColor-x1xw5qz2{border-color:var(--warning200-xgv5m4l)}",2e3),x(".backgroundColor-x1c48dnr{background-color:var(--warning50-xtmumxw)}",3e3),x(".paddingTop-x1yrsyyn{padding-top:6px}",4e3),x(".paddingBottom-x10b6aqq{padding-bottom:6px}
2",4e3),x(".color-xmnt0z5{color:var(--warning600-xx2fi3s)}",3e3),x(".maxWidth-x193iq5w{max-width:100%}",4e3),x(".fontWeight-x1s688f{font-weight:600}",3e3),x(".backgroundColor-xftg0ou{background-color:rgba(255,255,255,.7)}",3e3),x(".paddingTop-x1nn3v0j{padding-top:2px}",4e3),x(".paddingBottom-x1120s5i{padding-bottom:2px}",4e3),x(".paddingLeft-x6wrskw{padding-left:4px}",4e3),x(".paddingRight-xmzs88n{padding-right:4px}",4e3),x(".fontFamily-x1ey7xld{font-family:monospace}",3e3),x(".gap-x195vfkc{gap:2px}",2e3),x(".marginTop-xr9ek0c{margin-top:2px}",4e3),x(".cursor-x1ypdohk{cursor:pointer}",3e3),x(".padding-xfawy5m{padding:4px}",1e3),x(".background-x11g6tue{background:none}",1e3),x(".border-x1gs6z28{border:none}",1e3),x(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),x(".backgroundColor-x1is1enf:hover{background-color:var(--gray100-x1llswo5)}",3130),x(".color-x1hxxw9p:hover{color:var(--black900-x1vm5mv1)}",3130),x(".color-x116vv80{color:var(--error500-x1idp37q)}",3e3);var _={feedbackButton:{cursor:"cursor-x1ypdohk",borderRadius:"borderRadius-x12oqio5",padding:"padding-xfawy5m",background:"background-x11g6tue",border:"border-x1gs6z28",color:"color-xnx9fn3",":hover_backgroundColor":"backgroundColor-x1is1enf",":hover_color":"color-x1hxxw9p",$$css:"ChatMessage/index.tsx:204"},feedbackButtonActive:{color:"color-x183cm2b",$$css:"ChatMessage/index.tsx:216"},feedbackButtonActiveDown:{color:"color-x116vv80",$$css:"ChatMessage/index.tsx:219"}};function S(){return(0,f.jsx)("div",y(y({},{className:"width-xgd8bvy height-x1fgtraw borderRadius-x12oqio5 backgroundColor-x1ba4oyk display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k color-xf72ejy flexShrink-x2lah0s fontSize-xfifm61","data-style-src":"ChatMessage/index.tsx:62"}),{},{children:(0,f.jsx)(l.Icon,{name:["far","sparkles"]})}))}function w(){return(0,f.jsxs)("div",y(y({},{className:"backgroundColor-xq18l50 borderRadius-x4pepcl borderBottomLeftRadius-x1fnwnyj paddingTop-x1y1aw1k paddingBottom-xwib8y2 paddingLeft-xf18ygs paddingRight-xnuq7ks display-x78zum5 alignItems-x6s0dn4 gap-x1jnr06f","data-style-src":"ChatMessage/index.tsx:117"}),{},{children:[(0,f.jsx)("div",y({},{className:"width-x1v4s8kt height-xols6we borderRadius-x16rqkct backgroundColor-x1u8ybml animationName-xt70ul animationDuration-x1m9vv7p animationIterationCount-xa4qsjk animationTimingFunction-x4hg4is","data-style-src":"ChatMessage/index.tsx:129"})),(0,f.jsx)("div",y({},{className:"width-x1v4s8kt height-xols6we borderRadius-x16rqkct backgroundColor-x1u8ybml animationName-xt70ul animationDuration-x1m9vv7p animationIterationCount-xa4qsjk animationTimingFunction-x4hg4is animationDelay-x1t83zlg","data-style-src":"ChatMessage/index.tsx:129; ChatMessage/index.tsx:139"})),(0,f.jsx)("div",y({},{className:"width-x1v4s8kt height-xols6we borderRadius-x16rqkct backgroundColor-x1u8ybml animationName-xt70ul animationDuration-x1m9vv7p animationIterationCount-xa4qsjk animationTimingFunction-x4hg4is animationDelay-x1xwhvez","data-style-src":"ChatMessage/index.tsx:129; ChatMessage/index.tsx:142"}))]}))}function O(e){var t=e.messageId,n=e.feedback,r=(0,s.useChatCommands)(),o=(0,c.usePostHog)(),u=a.default.useCallback(function(e){var a=n===e;null==o||o.capture("chat_feedback_given",{feedback:a?null:e}),r.setFeedback(t,a?null:e)},[r,n,t,o]);return(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x195vfkc marginTop-xr9ek0c","data-style-src":"ChatMessage/index.tsx:198"}),{},{children:[(0,f.jsx)(l.ToolTip,{content:"Good response",children:(0,f.jsx)("button",y(y({type:"button","aria-label":"Good response"},i.props(_.feedbackButton,"up"===n&&_.feedbackButtonActive)),{},{onClick:function(){return u("up")},children:(0,f.jsx)(l.Icon,{name:["far","thumbs-up"]})}))}),(0,f.jsx)(l.ToolTip,{content:"Bad response",children:(0,f.jsx)("button",y(y({type:"button","aria-label":"Bad response"},i.props(_.feedbackButton,"down"===n&&_.feedbackButtonActiveDown)),{},{onClick:function(){return u("down")},children:(0,f.jsx)(l.Icon,{name:["far","thumbs-down"]})}))})]}))}function j(e){var t,n,r=e.entryId,o=(0,s.useChatEntry)(r);if(!o)return null;if("user"===o.kind)return(0,f.jsx)("div",y(y({},{className:"display-x78zum5 alignItems-x1cy8zhl gap-x167g77z width-xh8yej3 justifyContent-x13a6bvl","data-style-src":"ChatMessage/index.tsx:53; ChatMessage/index.tsx:59"}),{},{children:(0,f.jsx)("div",y(y({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-x17d4w8g minWidth-xeuugli maxWidth-x14r61f alignItems-xuk3077","data-style-src":"ChatMessage/index.tsx:74; ChatMessage/index.tsx:81"}),{},{children:(0,f.jsx)("div",y(y({},{className:"backgroundColor-x4x7r6d color-xf72ejy borderRadius-x4pepcl borderBottomRightRadius-xra8837 paddingTop-x1y1aw1k paddingBottom-xwib8y2 paddingLeft-xf18ygs paddingRight-xnuq7ks fontSize-x4z9k3i lineHeight-x1evy7pa","data-style-src":"ChatMessage/index.tsx:84"}),{},{children:o.text}))}))}));if("chart"===o.kind)return(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 alignItems-x1cy8zhl gap-x167g77z width-xh8yej3","data-style-src":"ChatMessage/index.tsx:53"}),{},{children:[(0,f.jsx)(S,{}),(0,f.jsx)("div",y(y({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-x17d4w8g minWidth-xeuugli maxWidth-x14r61f","data-style-src":"ChatMessage/index.tsx:74"}),{},{children:(0,f.jsx)(d.default,{chart:o.chart,messageId:o.messageId})}))]}));var a,i,c=0===o.text.length&&0===o.toolCalls.length;return(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 alignItems-x1cy8zhl gap-x167g77z width-xh8yej3","data-style-src":"ChatMessage/index.tsx:53"}),{},{children:[(0,f.jsx)(S,{}),(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-x17d4w8g minWidth-xeuugli maxWidth-x14r61f","data-style-src":"ChatMessage/index.tsx:74"}),{},{children:[o.triage?(0,f.jsx)(l.ToolTip,{content:null!==(t=v[o.triage.bucket])&&void 0!==t?t:o.triage.reason,children:(0,f.jsx)("div",{style:{width:"fit-content"},children:(0,f.jsx)(l.Badge,{colourName:"default",children:null!==(n=b[o.triage.bucket])&&void 0!==n?n:o.triage.bucket})})}):null,o.toolCalls.map(function(e,t){return(0,f.jsx)(l.ToolTip,{content:"Pulled live data using the ".concat(e.tool," tool"),children:(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x17d4w8g borderRadius-x1kogg8i borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x2ci420 backgroundColor-x6fdw8f paddingTop-x1iorvi4 paddingBottom-xjkvuk6 paddingLeft-x163pfp paddingRight-xy13l1i fontSize-x1j6dyjg color-x1r9fet4 width-xeq5yr9","data-style-src":"ChatMessage/index.tsx:145"}),{},{children:[(0,f.jsx)("span",y(y({},{className:"color-x183cm2b flexShrink-x2lah0s","data-style-src":"ChatMessage/index.tsx:162"}),{},{children:(0,f.jsx)(l.Icon,{name:["far","wrench"]})})),e.tool]}))},t)}),"streaming"===o.status&&c?(0,f.jsx)(w,{}):null,o.text?(0,f.jsx)("div",y(y({},{className:"backgroundColor-xq18l50 color-x1jsblnb borderRadius-x4pepcl borderBottomLeftRadius-x1fnwnyj paddingTop-x1y1aw1k paddingBottom-xwib8y2 paddingLeft-xf18ygs paddingRight-xnuq7ks","data-style-src":"ChatMessage/index.tsx:96"}),{},{children:(0,f.jsx)(u.default,{text:o.text})})):null,o.ungroundedNumbers&&o.ungroundedNumbers.length>0?(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 flexWrap-x1a02dak alignItems-x6s0dn4 gap-x17d4w8g borderRadius-x1kogg8i borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x1xw5qz2 backgroundColor-x1c48dnr paddingTop-x1yrsyyn paddingBottom-x10b6aqq paddingLeft-x163pfp paddingRight-xy13l1i fontSize-x1j6dyjg color-xmnt0z5 width-xeq5yr9 maxWidth-x193iq5w","data-style-src":"ChatMessage/index.tsx:166"}),{},{children:[(0,f.jsx)(l.Icon,{name:["far","triangle-exclamation"]}),(0,f.jsx)("span",y(y({},{className:"fontWeight-x1s688f flexShrink-x2lah0s","data-style-src":"ChatMessage/index.tsx:185"}),{},{children:"Not found in this turn's data:"})),o.ungroundedNumbers.map(function(e,t){return(0,f.jsx)("span",y(y({},{className:"borderRadius-x12oqio5 backgroundColor-xftg0ou paddingTop-x1nn3v0j paddingBottom-x1120s5i paddingLeft-x6wrskw paddingRight-xmzs88n fontFamily-x1ey7xld","data-style-src":"ChatMessage/index.tsx:189"}),{},{children:e}),t)})]})):null,"error"===o.status?(0,f.jsx)("div",y(y({},{className:"backgroundColor-x1ssdy5 color-xqy16mm borderRadius-x4pepcl borderBottomLeftRadius-x1fnwnyj paddingTop-x1y1aw1k paddingBottom-xwib8y2 paddingLeft-xf18ygs paddingRight-xnuq7ks fontSize-x4z9k3i","data-style-src":"ChatMessage/index.tsx:106"}),{},{children:o.error?(a=o.error,null!==(i=A[a])&&void 0!==i?i:a):"Something went wrong."})):null,"done"===o.status&&void 0!==o.messageId?(0,f.jsx)(O,{messageId:o.messageId,feedback:o.feedback}):null]}))]}))}var k=a.default.memo(j);t.default=k},33559:(e,t,n)=>{"use strict";e.exports=n.p+"188adf6b5c176ef9bf14.svg"},34016:(e,t,n)=>{"use strict";n.r(t),n.d(t,{QueryClient:()=>a.E,QueryClientProvider:()=>r.Ht,fetch:()=>i.A,useMutation:()=>o.gC,useQuery:()=>o.Ay,useQueryCache:()=>o.s6,useQueryClient:()=>r.jE});var r=n(97475),o=n(88133),a=n(73196),i=n(85596)},34406:(e,t,n)=>{"use strict";function r(e){return new Date(e.getTime()-6e4*e.getTimezoneOffset())}function o(e){return new Date(e.getTime()+6e4*e.getTimezoneOffset())}function a(e){return Math.floor(r(e).valueOf()/1e3)}n.d(t,{Ay:()=>r,YQ:()=>a,k5:()=>o})}
2,34614:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=d(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),l=n(86957),s=n(45365),c=d(n(29882)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(0,o.default)(".position-x1n2onr6{position:relative}",3e3);var x=[l.colourValues.success100,l.colourValues.warning100,l.colourValues.error300];t.A=function(e){var t,n=e.data,r=(0,a.useRef)(null);return(0,a.useEffect)(function(){i.select(r.current).selectAll("*").remove();var e=i.select(r.current),t=80,o=+e.node().getBoundingClientRect().width-t-20,a=+e.attr("height")-20-55,s=e.append("g").attr("transform","translate(".concat(t,",").concat(20,")")),c=o/4,u=3*o/4,d=1.1*Math.max.apply(Math,y(n.map(function(e){return e.total}))),f=n.reduce(function(e,t){return e+Number(t.total)},0),p=c,m=u;i.scaleLinear().domain([0,d]).range([p-t,0]);var g=i.scaleLinear().domain([0,d]).range([0,p-t]),h=i.scaleBand().range([a,0]).padding(.1).domain(n.map(function(e){return e.name}));s.selectAll(".leftBar").data(n).enter().append("rect").attr("class","leftBar").attr("fill",l.colourValues.oldBrand400).attr("x",function(e){return p-g(e.total)}).attr("y",function(e){var t;return null!==(t=h(e.name))&&void 0!==t?t:0}).attr("width",function(e){return g(e.total)}).attr("height",h.bandwidth()).each(function(e){var t;e.total/f*100>7&&s.append("text").attr("x",function(){return p-g(e.total)+g(e.total)-70}).attr("y",(null!==(t=h(e.name))&&void 0!==t?t:0)+h.bandwidth()/2).attr("dy","0.35em").text(e.total)});var b=y(new Set(n.flatMap(function(e){return e.bands.map(function(e){return e.name})}))),v=n.map(function(e){var t={name:e.name},n=e.bands.reduce(function(e,t){return e+t.value},0);return e.bands.forEach(function(e){t[e.name]=Number(e.value/n*100)}),t}),A=i.stack().keys(b)(v),_=i.scaleLinear().domain([0,100]).range([20,m-20]),S=i.scaleBand().range([a,0]).padding(.1).domain(n.map(function(e){return e.name}));s.selectAll(".layer").data(A).enter().append("g").attr("fill",function(e,t){return x[t]}).selectAll("rect").data(function(e){return e}).enter().append("rect").attr("y",function(e){var t;return null!==(t=S(e.data.name))&&void 0!==t?t:0}).attr("x",function(e){return p+_(e[0])}).attr("width",function(e){return _(e[1])-_(e[0])}).attr("height",S.bandwidth()).each(function(e){var t,n=(e[1]-e[0])/100*100;n>7&&s.append("text").attr("x",p+_(e[0])+5).attr("y",(null!==(t=S(e.data.name))&&void 0!==t?t:0)+S.bandwidth()/2).attr("dy","0.35em").text("".concat(n.toFixed(1),"%"))});var w=s.append("g").call(i.axisLeft(S)).attr("class","y-axis").attr("transform","translate(".concat(t,", 0)"));w.select(".domain").remove(),w.selectAll(".tick line").remove();var O=s.append("g").call(i.axisBottom(_).tickFormat(function(e){return"".concat(e,"%")}
2)).attr("class","x-axis-right").attr("transform","translate(".concat(t,", 0)")).attr("transform","translate(".concat(p,",").concat(a,")"));O.select(".domain").remove(),O.selectAll(".tick line").remove()},[n]),(0,u.jsx)("div",m(m({},{className:"position-x1n2onr6","data-style-src":"Discrete/index.tsx:9"}),{},{children:(0,u.jsx)(s.Grid,{children:(0,u.jsxs)(s.Grid.Row,{children:[(0,u.jsx)(s.Grid.Col,{md:10,children:(0,u.jsx)("svg",{ref:r,width:"100%",height:"500"})}),(0,u.jsxs)(s.Grid.Col,{children:[(0,u.jsx)(s.Text,{preset:"chartSubHeader",as:"h2",children:"Legend"}),(0,u.jsx)(c.default,{colour:l.colourValues.oldBrand400,text:"total_clicks"}),null==n||null===(t=n[0])||void 0===t?void 0:t.bands.map(function(e,t){return(0,u.jsx)(c.default,{colour:x[t],text:e.name},e.name)})]})]})})}))}},34730:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=d(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),l=n(86957),s=n(45365),c=d(n(88682)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default;y(".width-xh8yej3{width:100%}",4e3),y(".display-x78zum5{display:flex}",3e3),y(".gap-x883omv{gap:10px}",2e3),y(".padding-xe4h0g2{padding:var(--10-x17itaz4)}",1e3),y(".overflow-x1rea2x4{overflow:visible}",2e3),t.A=function(e){var t=e.data,n=void 0===t?[]:t,r=e.titles,o=void 0===r?[]:r,d=e.hideNumbers,f=void 0!==d&&d,p=[{id:"value1",background:l.colourValues.secondary200,labelBackground:l.colourValues.purple50,text:l.colourValues.oldBrand700},{id:"value2",background:l.colourValues.error300,labelBackground:l.colourValues.error100,text:l.colourValues.error500}],g=(0,a.useRef)(null);return(0,a.useEffect)(function(){i.select(g.current).selectAll("*").remove();var e=i.select(g.current),t={top:0,right:0,bottom:0,left:40},r=+e.node().getBoundingClientRect().width-t.left-t.right,o=+e.attr("height")-t.top-t.bottom;(0,c.default)({svgRef:g,margin:t,height:o,width:r,data:n,colourConfig:p,hideNumbers:f})},[n]),(0,u.jsxs)("div",m(m({},{className:"width-xh8yej3","data-style-src":"Group/index.tsx:9"}),{},{children:[(0,u.jsx)("div",m(m({},{className:"display-x78zum5 gap-x883omv padding-xe4h0g2","data-style-src":"Group/index.tsx:12"}),{},{children:o.map(function(e,t){return(0,u.jsx)(s.Badge,{style:{backgroundColor:p[t].labelBackground,color:p[t].text},children:e},e)})}
2)),(0,u.jsx)("svg",m({ref:g,width:"100%",height:"378"},{className:"width-xh8yej3 overflow-x1rea2x4","data-style-src":"Group/index.tsx:17"}))]}))}},34908:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),n(14041);var r=n(39067),o=n.n(r),a=n(99018),i=n(30021),l=n(9685),s=n(89748),c=n(31085),u=(0,a.createUseStyles)(function(e){return{wrapper:{display:"flex",alignItems:"center","& img":{display:"inline-block",float:"left"}},text:{verticalAlign:"top",color:e.colors.neutralTextStrong,fontWeight:500},subText:{verticalAlign:"top",color:(0,a.findColour)(e,"grey-400"),fontWeight:500}}});function d(e){var t=e.countryCode,n=void 0===t?"":t,r=e.location,o=void 0===r?"":r,a=u();return(0,c.jsxs)("div",{"data-testid":"ShowFlag",className:a.wrapper,children:[(0,c.jsx)(l.A,{countryCode:n,className:"mr-3"}),(0,c.jsxs)("div",{children:[(0,c.jsx)(i.default,{preset:"cellText",children:n||(0,s.A)("Unidentified")}),o&&(0,c.jsx)(i.default,{preset:"cellSubText",children:o})]})]})}d.propTypes={countryCode:o().string,location:o().string};const f=d},35135:(e,t,n)=>{"use strict";e.exports=n.p+"e3c5e5b0f023fc922403.svg"},35149:(e,t,n)=>{"use strict";e.exports=n.p+"b6cbed3fbcb6186b7090.svg"},35414:(e,t,n)=>{"use strict";n.d(t,{A:()=>u}),n(14041);var r=n(30021),o=n(28426),a=n(29470),i=n(89748),l=n(93033),s=n(92523),c=n(31085);const u=function(){return(0,c.jsx)(l.A,{impersonatingOnly:!0,children:(0,c.jsxs)(o.A.Page,{type:"settings",children:[(0,c.jsxs)("div",{className:"flex distribute-space-between mb-4 mt-12",children:[(0,c.jsx)(r.default,{preset:"pageHeading",as:"h5",children:(0,i.A)("IVT A/B Testing")}),(0,c.jsx)(s.default,{})]}),(0,c.jsx)(a.A,{})]})})}},35597:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);const o=function(e){return"g"===e?(0,r.A)("Search"):"d"===e?(0,r.A)("Display Network"):"s"===e?(0,r.A)("Search Partner"):"y"===e||"yt"===e?(0,r.A)("Youtube"):"gm"===e?(0,r.A)("Gmail"):"ytis"===e?(0,r.A)("YouTube in-stream"):"ytif"===e?(0,r.A)("YouTube in-feed"):"a"===e?(0,r.A)("Search Partner (AI Max)"):"e"===e?(0,r.A)("App campaigns for engagement (ACe)"):"vp"===e?(0,r.A)("Google Video Partners"):"ytv"===e?(0,r.A)("YouTube Videos"):"yts"===e?(0,r.A)("YouTube Search"):"u"===e?(0,r.A)("Smart Shopping Campaign"):"x"===e?(0,r.A)("Performance Max Campaigns"):"dsc"===e?(0,r.A)("Google Owned Channels"):"gtv"===e?(0,r.A)("Google TV"):"No network reported by Google"===e?(0,r.A)("N/A ?"):(0,r.A)("Unknown")}},35775:(e,t,n)=>{"use strict";e.exports=n.p+"797b532278d47b70a2dc.svg"},35855:(e,t,n)=>{"use strict";e.exports=n.p+"5c75976952763831cd8d.svg"},35859:(e,t,n)=>{"use strict";function r(){return(0).toLocaleString("en-GB",{style:"currency",currency:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"GBP",minimumFractionDigits:0,maximumFractionDigits:0}).replace(/\d/g,"").trim()}n.d(t,{A:()=>r})},36059:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(88133),o=n(7187),a=n(31085);const i=function(){var e=(0,r.Ay)("/settings/configured-platforms").data;return(0,a.jsx)(o.A,{configuredPlatforms:null==e?void 0:e.result})}},36165:(e,t,n)=>{"use strict";e.exports=n.p+"3c3f2d29eeb04ca62c60.svg"},36271:(e,t,n)=>{"use strict";e.exports=n.p+"51ea748d7a551bb04f7d.svg"},36313:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(25751))&&r.__esModule?r:{default:r}).default;o(".position-x1n2onr6{position:relative}",3e3),o(".display-x1rg5ohu{display:inline-block}",3e3),o(".borderRadius-xur7f20{border-radius:8px}",2e3),o(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),o(".fontSize-xif65rj{font-size:14px}",3e3),o(".fontWeight-x1s688f{font-weight:600}",3e3),o(".height-x10w6t97{height:32px}",4e3),o(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),o(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),o(".textAlign-xdpxx8g{text-align:left}",3e3),o(".display-x78zum5{display:flex}",3e3),o(".alignItems-x6s0dn4{align-items:center}",3e3),o(".justifyContent-x1qughib{justify-content:space-between}",3e3),o(".padding-x1arfzav{padding:6px 12px}",1e3),o(".cursor-x1ypdohk{cursor:pointer}",3e3),o(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),o(".backgroundColor-x1bruzxa{background-color:var(--oldBrand50-x1t4s9vw)!important}",3e3),o(".border-x1xsyb0l{border:1px solid var(--oldBrand300-x1eifvzy)!important}",1e3),o(".color-x1oayuxb{color:var(--oldBrand700-xx6j7i3)!important}",3e3),o(".backgroundColor-x18zbwpl{background-color:var(--error50-x1f3qy36)!important}",3e3),o(".border-x1k242eh{border:1px solid var(--error300-x1etg42b)!important}",1e3),o(".color-x57c9ay{color:var(--error300-x1etg42b)!important}",3e3),o(".border-xnq5hr{border:1px solid var(--oldBrand600-x1t41vhw)}",1e3),o(".outline-x1ly2zzd{outline:4px solid var(--secondary200-xut29wu)}",2e3),o(".color-x1heor9g{color:inherit}",3e3),o(".marginLeft-x16vho4v{margin-left:6px}",4e3),o(".backgroundColor-xirq6vt{background-color:var(--oldBrand600-x1t41vhw)}",3e3),o(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),o(".borderRadius-x1q4ynmn{border-radius:10px}",2e3),o(".paddingTop-x1nn3v0j{padding-top:2px}",4e3),o(".paddingBottom-x1120s5i{padding-bottom:2px}",4e3),o(".paddingLeft-x11iknt3{padding-left:6px}",4e3),o(".paddingRight-x1ug7bdz{padding-right:6px}",4e3),o(".fontSize-x1j6dyjg{font-size:11px}",3e3),o(".minWidth-xt4ypqs{min-width:20px}",4e3),o(".textAlign-x2b8uid{text-align:center}",3e3),o(".marginLeft-xdq9ekp{margin-left:9px}",4e3),o(".fontSize-xdzlmae{font-size:8px}",3e3),o(".top-x9ri80z{top:40px}",4e3),o(".borderRadius-x12oqio5{border-radius:4px}",2e3),o(".zIndex-xfo81ep{z-index:1000}",3e3),o(".position-x10l6tqk{position:absolute}",3e3),o(".minWidth-xgqtt45{min-width:100%}",4e3),o(".padding-xe8ttls{padding:8px}",1e3),o(".maxHeight-x1sslpiy{max-height:320px}",4e3),o(".overflowY-x1odjw0f{overflow-y:auto}",4e3),o(".boxShadow-x154w072{box-shadow:0 1px 2px 0 var(--gray900-xevft2h)0F,0 1px 3px 0 var(--gray900-xevft2h)1A}",3e3,".boxShadow-x154w072{box-shadow:0 1px 2px 0 var(--gray900-xevft2h)0F, 0 1px 3px 0 var(--gray900-xevft2h)1A}"),o(".minHeight-xu0aao5{min-height:36px}",4e3),o(".padding-xfawy5m{padding:4px}",1e3),o(".paddingRight-xyfqnmn{padding-right:16px}",4e3),o(".marginBottom-x12nagc{margin-bottom:4px}",4e3),o(".color-x75csi3{color:var(--black400-x1u7ngzx)}",3e3),o(".backgroundColor-x1is1enf:hover{background-color:var(--gray100-x1llswo5)}",3130),o(".overflow-xb3r6kr{overflow:hidden}",2e3),o(".flex-x98rzlu{flex:1}",2e3),o(".minWidth-xt7fyls{min-width:150px}",4e3),o(".marginLeft-xet2fuk{margin-left:8px}",4e3),o(".fontFamily-x122x9cr{font-family:Inter}",3e3),o(".whiteSpace-xeaf4i8{white-space:normal}",3e3),o(".overflowWrap-x1mzt3pk{overflow-wrap:break-word}",3e3),o(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3),o(".width-xh8yej3{width:100%}",4e3),o(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),o(".minWidth-x1i9suas{min-width:120px}",4e3);var a={container:{position:"position-x1n2onr6",display:"display-x1rg5ohu",$$css:"styles/sharedDropdownStyles.ts:5"},button:{borderRadius:"borderRadius-xur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,border:"border-xct47cs",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-x1s688f",height:"height-x10w6t97",color:"color-xd87uto",backgroundColor:"backgroundColor-x18oya0d",textAlign:"textAlign-xdpxx8g",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-x1qughib",padding:"padding-x1arfzav",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"cursor-x1ypdohk",whiteSpace:"whiteSpace-xuxw1ft",$$css:"styles/sharedDropdownStyles.ts:9"},activeButton:{backgroundColor:"backgroundColor-x1bruzxa",border:"border-x1xsyb0l",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,color:"color-x1oayuxb",$$css:"styles/sharedDropdownStyles.ts:25"},errorButton:{backgroundColor:"backgroundColor-x18zbwpl",border:"border-x1k242eh",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,color:"color-x57c9ay",$$css:"styles/sharedDropdownStyles.ts:30"},buttonOpen:{border:"border-xnq5hr",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,outline:"outline-x1ly2zzd",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,$$css:"styles/sharedDropdownStyles.ts:35"},buttonLabel:{fontWeight:"fontWeight-x1s688f",$$css:"styles/sharedDropdownStyles.ts:39"},selectedValue:{color:"color-x1heor9g",fontWeight:"fontWeight-x1s688f",marginLeft:"marginLeft-x16vho4v",marginInlineStart:null,marginInlineEnd:null,$$css:"styles/sharedDropdownStyles.ts:42"},selectedBadge:{backgroundColor:"backgroundColor-xirq6vt",color:"color-xf72ejy",borderRadius:"borderRadius-x1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,paddingTop:"paddingTop-x1nn3v0j",paddingBottom:"paddingBottom-x1120s5i",paddingLeft:"paddingLeft-x11iknt3",paddingRight:"paddingRight-x1ug7bdz",paddingInlineStart:null,paddingInlineEnd:null,fontSize:"fontSize-x1j6dyjg",fontWeight:"fontWeight-x1s688f",marginLeft:"marginLeft-x16vho4v",marginInlineStart:null,marginInlineEnd:null,minWidth:"minWidth-xt4ypqs",textAlign:"textAlign-x2b8uid",$$css:"styles/sharedDropdownStyles.ts:47"},iconWrapper:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",marginLeft:"marginLeft-xdq9ekp",marginInlineStart:null,marginInlineEnd:null,color:"color-xd87uto",fontSize:"fontSize-xdzlmae",$$css:"styles/sharedDropdownStyles.ts:61"},dropdown:{top:"top-x9ri80z",backgroundColor:"backgroundColor-x18oya0d",borderRadius:"borderRadius-x12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,border:"border-xct47cs",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,zIndex:"zIndex-xfo81ep",position:"position-x10l6tqk",minWidth:"minWidth-xgqtt45",padding:"padding-xe8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,maxHeight:"maxHeight-x1sslpiy",overflowY:"overflowY-x1odjw0f",boxShadow:"boxShadow-x154w072",$$css:"styles/sharedDropdownStyles.ts:68"},dropdownOption:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",minHeight:"minHeight-xu0aao5",padding:"padding-xfawy5m",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingBlock:null,paddingTop:null,paddingBottom:null,paddingRight:"paddingRight-xyfqnmn",paddingInlineStart:null,paddingInlineEnd:null,cursor:"cursor-x1ypdohk",borderRadius:"borderRadius-x12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-x1s688f",marginBottom:"marginBottom-x12nagc",color:"color-x75csi3",backgroundColor:"backgroundColor-x18oya0d backgroundColor-x1is1enf",overflow:"overflow-xb3r6kr",overflowX:null,overflowY:null,$$css:"styles/sharedDropdownStyles.ts:81"},optionLabel:{flex:"flex-x98rzlu",flexGrow:null,flexShrink:null,flexBasis:null,minWidth:"minWidth-xt7fyls",marginLeft:"marginLeft-xet2fuk",marginInlineStart:null,marginInlineEnd:null,fontFamily:"fontFamily-x122x9cr",fontWeight:"fontWeight-x1s688f",fontSize:"fontSize-xif65rj",color:"color-x75csi3",whiteSpace:"whiteSpace-xeaf4i8",overflowWrap:"overflowWrap-x1mzt3pk",textAlign:"textAlign-xdpxx8g",overflow:"overflow-xb3r6kr",overflowX:null,overflowY:null,$$css:"styles/sharedDropdownStyles.ts:99"},optionLabelSelected:{color:"color-x14ptq3k",$$css:"styles/sharedDropdownStyles.ts:112"},searchContainer:{width:"width-xh8yej3",marginBottom:"marginBottom-x1e56ztr",minWidth:"minWidth-x1i9suas",$$css:"styles/sharedDropdownStyles.ts:115"}};o(".appearance-xjyslct{appearance:none}",3e3),o(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),o(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),o(".borderRadius-x12oqio5{border-radius:4px}",2e3),o(".width-x1kky2od{width:16px}",4e3),o(".height-xlup9mm{height:16px}",4e3),o(".position-x1n2onr6{position:relative}",3e3),o(".flexShrink-x2lah0s{flex-shrink:0}
2",3e3),o(".cursor-x1ypdohk{cursor:pointer}",3e3),o(".backgroundColor-x1bruzxa{background-color:var(--oldBrand50-x1t4s9vw)!important}",3e3),o(".borderColor-xsksl2b{border-color:var(--oldBrand600-x1t41vhw)!important}",2e3),o('.content-x1cpjm7i::before{content:""}',8e3),o(".position-x1hmns74::before{position:absolute}",8e3),o(".backgroundColor-xxvlkim::before{background-color:var(--oldBrand600-x1t41vhw)}",8e3),o(".top-x6tf9tk::before{top:3.5px}",9e3),o(".left-xmnqsde::before{left:8px}",9e3),o(".width-xjuy2up::before{width:2px}",9e3),o(".height-x1yd0sln::before{height:8px}",9e3),o(".borderRadius-x10ws7ij::before{border-radius:5px}",7e3),o(".transform-x1wdwgm0::before{transform:rotate(45deg)}",8e3),o('.content-x1s928wv::after{content:""}',8e3),o(".position-x1j6awrg::after{position:absolute}",8e3),o(".top-x1milq8b::after{top:6px}",9e3),o(".left-x1r8uy42::after{left:4px}",9e3),o(".height-xtf7t35::after{height:5px}",9e3),o(".width-x13694x8::after{width:2px}",9e3),o(".borderRadius-x1ib2b0o::after{border-radius:5px}",7e3),o(".backgroundColor-xn9wcvw::after{background-color:var(--oldBrand600-x1t41vhw)}",8e3),o(".transform-x1u96j6x::after{transform:rotate(135deg)}",8e3);var i={checkbox:{appearance:"appearance-xjyslct",backgroundColor:"backgroundColor-x18oya0d",border:"border-xct47cs",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,borderRadius:"borderRadius-x12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,width:"width-x1kky2od",height:"height-xlup9mm",position:"position-x1n2onr6",flexShrink:"flexShrink-x2lah0s",cursor:"cursor-x1ypdohk",$$css:"styles/sharedDropdownStyles.ts:123"},checkboxChecked:{backgroundColor:"backgroundColor-x1bruzxa",borderColor:"borderColor-xsksl2b",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,"::before_content":"content-x1cpjm7i","::before_position":"position-x1hmns74","::before_backgroundColor":"backgroundColor-xxvlkim","::before_top":"top-x6tf9tk","::before_left":"left-xmnqsde","::before_insetInlineStart":null,"::before_insetInlineEnd":null,"::before_width":"width-xjuy2up","::before_height":"height-x1yd0sln","::before_borderRadius":"borderRadius-x10ws7ij","::before_borderStartStartRadius":null,"::before_borderStartEndRadius":null,"::before_borderEndStartRadius":null,"::before_borderEndEndRadius":null,"::before_borderTopLeftRadius":null,"::before_borderTopRightRadius":null,"::before_borderBottomLeftRadius":null,"::before_borderBottomRightRadius":null,"::before_transform":"transform-x1wdwgm0","::after_content":"content-x1s928wv","::after_position":"position-x1j6awrg","::after_top":"top-x1milq8b","::after_left":"left-x1r8uy42","::after_insetInlineStart":null,"::after_insetInlineEnd":null,"::after_height":"height-xtf7t35","::after_width":"width-x13694x8","::after_borderRadius":"borderRadius-x1ib2b0o","::after_borderStartStartRadius":null,"::after_borderStartEndRadius":null,"::after_borderEndStartRadius":null,"::after_borderEndEndRadius":null,"::after_borderTopLeftRadius":null,"::after_borderTopRightRadius":null,"::after_borderBottomLeftRadius":null,"::after_borderBottomRightRadius":null,"::after_backgroundColor":"backgroundColor-xn9wcvw","::after_transform":"transform-x1u96j6x",$$css:"styles/sharedDropdownStyles.ts:134"}},l={container:a.container,button:a.button,activeButton:a.activeButton,errorButton:a.errorButton,buttonOpen:a.buttonOpen,buttonLabel:a.buttonLabel,selectedValue:a.selectedValue,selectedBadge:a.selectedBadge,iconWrapper:a.iconWrapper,dropdown:a.dropdown,searchContainer:a.searchContainer,dropdownOption:a.dropdownOption,optionLabel:a.optionLabel,optionLabelSelected:a.optionLabelSelected,checkbox:i.
2checkbox,checkboxChecked:i.checkboxChecked};t.default=l},36344:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(14041),o=n(9260),a=n(13571),i=n(89748),l=n(88133),s=n(97475),c=n(51836),u=n(93033),d=n(24284),f=n(31085);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const g=function(e){var t=e.workspaceId,n=(0,c.Zp)(),m=(0,s.jE)(),g=p((0,r.useState)(!1),2),y=g[0],h=g[1],x=p((0,r.useState)(!1),2),b=x[0],v=x[1],A=(0,l.gC)("/workspaces
2/".concat(t),"DELETE");return(0,f.jsx)(u.A,{accountRoles:["ROOT","ADMIN"],children:(0,f.jsxs)("div",{children:[(0,f.jsx)(o.default,{preset:"destructive","data-testid":"start-deletion-button",onClick:function(){return h(!0)},loading:b,disabled:b,children:(0,i.A)("Delete Workspace")}),(0,f.jsxs)(a.default,{open:y,onClose:function(){return h(!1)},children:[(0,f.jsx)(a.default.Header,{title:(0,i.A)("Are you sure about this?")}),(0,f.jsx)(a.default.Content,{children:(0,i.A)("Are you sure you want to delete this workspace. Be aware that to delete a workspace, you must first remove accounts, platforms and users from it.")}),(0,f.jsxs)(a.default.Actions,{children:[(0,f.jsx)(o.default,{onClick:function(){return h(!1)},"data-testid":"cancel-deletion-button",preset:"outline",children:(0,i.A)("Cancel")}),(0,f.jsx)(o.default,{onClick:function(){return v(!0),void A.mutate({},{onSuccess:function(){(0,d.A)("The workspace was successfully deleted","success"),h(!1),h(!1),m.invalidateQueries("workspaces?admin_overview=1"),n("/workspace-settings/workspaces")},onError:function(){h(!1),v(!1)}})},"data-testid":"continue-deletion-button",loading:b,disabled:b,children:(0,i.A)("Continue")})]})]})]})})}}
2,36354:(e,t,n)=>{"use strict";e.exports=n.p+"bf3697ffc03cf6ef21cb.svg"},36461:(e,t,n)=>{"use strict";e.exports=n.p+"863797208b18791bfb77.svg"},36482:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(14041);var r=n(73657),o=n(51836),a=n(75079),i=n(31085);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const s=function(){var e,t,n=(e=(0,r.useSearchParams)(),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],s=n.get("bearer_token"),c=n.get("code"),u=n.get("state"),d=n.get("topage");!d||u||c||(n.delete("topage"),n.delete("token"),d="".concat(d,"?").concat(n.toString()));var f=(0,o.Zp)(),p=!!localStorage.getItem("storedRedirect")&&JSON.parse(localStorage.getItem("storedRedirect")),m=localStorage.getItem("token");function g(e){return d?(localStorage.setItem("storedRedirect",""),d):null!=p&&p.topage&&(localStorage.setItem("storedRedirect",""),p.timestamp+3e5>Date.now())?p.topage:e}return d&&localStorage.setItem("storedRedirect",JSON.stringify({topage:d,timestamp:Date.now()})),s?(localStorage.setItem("token",s),(0,i.jsx)(o.C5,{to:g("/overview"),state:{login:!0}})):m?(0,i.jsx)(o.C5,{to:g("/overview"),state:{login:!0}}):(c&&u&&fetch("".concat("https://api.lunio.ai/","exchange-token?code=").concat(encodeURIComponent(c),"&state=").concat(encodeURIComponent(u)),{credentials:"include"}).then(function(e){return e.text()}).then(function(e){if(e){var t=JSON.parse(e);t.token?(localStorage.setItem("token",t.token),f(g("/overview"),{state:{login:!0}})):t.location?f(t.location,{state:{login:!0}}):f(g("/overview"),{state:{login:!0}})}}),s||c||fetch("".concat("https://api.lunio.ai/","login")).then(function(e){return e.text()}).then(function(e){JSON.parse(e).location&&window.open(JSON.parse(e).location,"_self")}),(0,i.jsx)(a.A,{}))}},36489:(e,t,n)=>{"use strict";e.exports=n.p+"d9830bafefed44ac5814.svg"},36539:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(66773),s=n(47352),c=n(24284),u=n(83223),d=n(99018),f=n(9260),p=n(62720),m=n(13571),g=n(30021),y=n(30556),h=n(88133),x=n(96182),b=n(77730),v=n(80111),A=n(40579),_=n(31085);function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){j(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function j(e,t,n){return(t=function(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var N=(0,d.createUseStyles)({exportButton:{float:"right"}});function I(e){var t,n,o,a,d,S,w=e.selectedAccounts,j=void 0===w?[]:w,E=k((0,b.A)(),1)[0],I=k((0,r.useState)(!1),2),P=I[0],T=I[1],C=k((0,v.A)(),1)[0],R=k((0,x.A)(),1)[0],M=k((0,r.useState)(""),2),L=M[0],D=M[1],B=k((0,r.useState)([]),2),U=B[0],F=B[1],G=N(),W=(0,h.gC)("/ip/blacklist/export?workspace_context=".concat((0,s.A)(null==E||null===(t=E.selectedWorkspace)||void 0===t?void 0:t.id)),"POST"),z=(null==C||null===(n=C.dataFilterDates)||void 0===n||null===(n=n.max)||void 0===n?void 0:n.timestamp)||0,V=(null==C||null===(o=C.dataFilterDates)||void 0===o||null===(o=o.min)||void 0===o?void 0:o.timestamp)||0,q=(null==C||null===(a=C.dataFilterDates)||void 0===a||null===(a=a.max)||void 0===a?void 0:a.localTimestamp)||0,K=(null==C||null===(d=C.dataFilterDates)||void 0===d||null===(d=d.min)||void 0===d?void 0:d.localTimestamp)||0;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f.default,{id:"export-button",onClick:function(){return T(!0)},iconRight:["far","download"],className:G.exportButton,"data-testid":"export-button",children:(0,i.A)("Export")}),(0,_.jsxs)(m.default,{open:P,size:"md",onClose:function(){return T(!1)},children:[(0,_.jsx)(m.default.Header,{title:(0,i.A)("Export")}),(0,_.jsx)(m.default.Content,{children:(0,_.jsxs)(y.default.Row,{children:[(0,_.jsxs)(y.default.Col,{children:[(0,_.jsxs)(g.default,{preset:"formSectionTitle",as:"h6",className:"mb-3",children:[(0,i.A)("You're exporting"),":"]}),(0,_.jsxs)(g.default,{preset:"sormSectionSubtitle",children:[(0,i.A)("Workspace"),":"]}),(0,_.jsx)(g.default,{preset:"formSectionSubText",className:"mb-3",children:null==E||null===(S=E.selectedWorkspace)||void 0===S?void 0:S.name}),(0,_.jsxs)(g.default,{preset:"sormSectionSubtitle",children:[(0,i.A)("Date range"),":"]}),(0,_.jsxs)(g.default,{preset:"formSectionSubText",className:"mb-3",children:[(0,u.GP)(1e3*K,"dd/MM/yyyy")," ","-"," ",(0,u.GP)(1e3*q,"dd/MM/yyyy")]}),(0,_.jsxs)(g.default,{preset:"sormSectionSubtitle",children:[(0,i.A)("Click type"),":"]}),(0,_.jsx)(g.default,{preset:"formSectionSubText",className:"mb-3",children:(0,A.A)(null==j?void 0:j.length)})]}),(0,_.jsxs)(y.default.Col,{children:[(0,_.jsxs)(g.default,{preset:"formSectionTitle",as:"h6",className:"mb-3",children:[(0,i.A)("Sending to"),":"]}),(0,_.jsx)(p.default,{label:(0,i.A)("Enter email address"),name:"recipient_email",type:"email",onFormValue:function(e){D(e.value)},id:"export-email-input",value:L,errors:U,showErrors:!0})]})]})}),(0,_.jsxs)(m.default.Actions,{children:[(0,_.jsx)(f.default,{id:"export-cancel-button",onClick:function(){T(!1)},preset:"outline","data-testid":"export-close-button",children:(0,i.A)("Cancel")}),(0,_.jsx)(f.default,{id:"export-submit-button",onClick:function(){var e,t;(t=(0,l.A)("isEmail",L,(0,i.A)("Enter an email address")))?F(t):(F([]),W.mutate(O(O({dmax:z,dmin:V},j.length&&{customer_ids:j}),{},{recipient_email:L,platform:null==R||null===(e=R.selectedPlatform)||void 0===e?void 0:e.platform_name,_method:"POST"}),{onSuccess:function(e){var t;(0,c.A)((0,i.A)(null==e||null===(t=e.data)||void 0===t?void 0:t.message),"success")},onError:function(){(0,c.A)((0,i.A)("Report failed to process"),"error")}}),T(!1))},"data-testid":"export-submit-button",children:(0,i.A)("Export to CSV")})]})]})]})}I.propTypes={selectedAccounts:a().array};const P=I}
2,36549:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(36537),o=n(37561);function a(){return(0,r.fp)(o.A)}},36627:(e,t,n)=>{"use strict";e.exports=n.p+"be6f028b9e997f993816.svg"},36827:(e,t,n)=>{"use strict";n.d(t,{A:()=>B});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(77223),s=n(62720),c=n(72686),u=n(46389),d=n(30021),f=n(28426),p=n(79135),m=n(27805),g=n(89748),y=n(62161),h=n(36990),x=n(47318),b=n(73657),v=n(93033),A=n(99018),_=n(96182),S=n(53145),w=n(10780),O=n(86911),j=n(31387),k=n(91040),E=n(71893),N=n(31085);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function C(e,t,n){return(t=function(e){var t=function(e){if("object"!=I(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=I(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==I(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var L=(0,A.createUseStyles)(function(e){return{tickBox:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.green[600]),display:"inline-flex",justifyContent:"center",alignItems:"center",color:e.colors.green[600],margin:"0 auto"},dashBox:{borderRadius:"50%",display:"inline-flex",width:24,height:24,border:"solid 2px ".concat(e.colors.neutralBorderStrong),justifyContent:"center",alignItems:"center",color:e.colors.neutralBorderStrong,margin:"0 auto"}}});function D(e){var t,n,o,a,A=e.data,I=void 0===A?{}:A,P=e.ip,C=e.isLoading,M=e.handlePagination,D=e.handleSort,B=e.filters,U=e.setDates,F=e.filterConnector,G=e.accountSelectConnector,W=L(),z=R((0,b.useSearchParams)(),1)[0],V=R((0,_.A)(),1)[0],q=z.get("dsp"),K=R((0,r.useState)(""),2),H=K[0],Y=K[1];function $(e){var t=null==e?void 0:e.location_physical;if(null!=t&&t.city&&null!=t&&t.province)return"".concat(t.city,", ").concat(t.province);if(null!=t&&t.city)return t.city;if(null!=t&&t.province)return t.province;if(null!=t&&t.state)return t.state;if(null!=t&&t.canonical_name){var n=t.canonical_name.split(",");if(n.length>=2)return t.canonical_name.split(",")[1];if(1===n.length)return t.canonical_name.split(",")[0]}return""}return(0,r.useEffect)(function(){Y("")},[P]),(0,N.jsxs)(f.A.Page,{type:"settings",children:[(0,N.jsx)(m.default,{title:(0,g.A)(":platform Audit Trail",{platform:V.selectedPlatform.platform_title}),text:P,contentRight:(0,N.jsx)(v.A,{impersonatingOnly:!0,children:(0,N.jsxs)("div",{className:"flex v-align-center mb-5",children:[(0,N.jsx)(s.default,{"aria-label":(0,g.A)("Search IP"),value:H,onChange:function(e){return Y(e.target.value)}}),(0,N.jsx)(i.default,{className:"ml-3",as:b.Link,to:(null==H?void 0:H.length)>0?"/audit-trail?ip=".concat(H,"&dsp=").concat(q):"/audit-trail?ip=".concat(P,"&dsp=").concat(q),preset
2:"outline",children:(0,g.A)("Change IP")})]})})}),(0,N.jsxs)(c.default,{children:[(0,N.jsxs)("div",{className:"distribute-space-between v-align-center",children:[(0,N.jsx)(d.default,{preset:"widgetHeading",children:(0,g.A)("IP Summary")}),(0,N.jsx)(E.A,{onDatesChange:U,defaultRange:"30d-inc",maxRangeDays:31,sharedDateRef:"clicks-log",ranges:["1d","yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]})]}),(0,N.jsx)(l.default,{className:"mb-4 mt-4"}),(0,N.jsxs)("div",{className:"flex mb-4",children:[(0,N.jsx)(v.A,{platforms:["google"],children:(0,N.jsx)("div",{className:"mr-2",children:(0,N.jsx)(S.A,T({},G))})}),(0,N.jsx)(u.A,T({},F))]}),["clicks","internal-tools","internal-tools-ip"].includes(q)&&(0,N.jsx)(k.A,{data:null==I?void 0:I.ip_summary,className:"mb-4"}),(0,N.jsx)(v.A,{platforms:["mplat"],children:(0,N.jsx)(y.A,{rows:null==I?void 0:I.data,isLoading:C,totalItems:null==I||null===(t=I.pagination)||void 0===t?void 0:t.total,totalPages:null==I||null===(n=I.pagination)||void 0===n?void 0:n.last_page,pageNumber:B.page,limit:B.limit,leftPinnedColumns:2,noDataTitle:(0,g.A)("No data available for this IP address"),noDataSubTitle:(0,g.A)("try a different IP address"),sorting:{sortKey:B.sortKey,sortOrder:B.sortOrder},handlePagination:M,handleSorting:D,children:function(e){var t,n;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("thead",{children:(0,N.jsxs)("tr",{children:[(0,N.jsx)("th",{children:(0,g.A)("Status")}),(0,N.jsx)("th",{"data-sortable-id":"ip",children:(0,g.A)("IP Address")}),(0,N.jsx)("th",{"data-sortable-id":"created_at",children:(0,g.A)("Clicked at")}),(0,N.jsxs)("th",{"data-sortable-id":"domain",children:[(0,g.A)("Domain"),(0,N.jsx)(h.A,{groupedCols:!0,header:!0,"data-sortable-id":"campaign",children:(0,g.A)("Campaign")})]}),(0,N.jsx)("th",{"data-sortable-id":"country",children:(0,g.A)("Country")}),(0,N.jsx)(v.A,{featureFlags:["DATA_SAMPLING"],children:(0,N.jsx)("th",{"data-sortable-id":"in_control_group",children:(0,g.A)("Sampled")})})]})}),(0,N.jsxs)("tbody",{children:[(0,N.jsx)("td",{children:(0,N.jsx)(w.A,{statusCode:null==e?void 0:e.flag})}),(0,N.jsx)("td",{children:(0,N.jsx)(x.A,{maxLength:15,clickToCopy:!0,children:null==e?void 0:e.ip})}),(0,N.jsx)("td",{children:(0,N.jsx)(j.A,{row:e})}),(0,N.jsxs)("td",{children:[null==e?void 0:e.domain,(0,N.jsx)(h.A,{groupedCols:!0,children:null==e?void 0:e.campaign_name})]}),(0,N.jsx)("td",{children:(0,N.jsx)(O.A,{countryCode:(null==e||null===(t=e.location_physical)||void 0===t?void 0:t.country_code)||(null==e||null===(n=e.location_physical)||void 0===n?void 0:n.country)})}),(0,N.jsx)(v.A,{featureFlags:["DATA_SAMPLING"],children:(0,N.jsxs)("td",{children:[1===(null==e?void 0:e.in_control_group)&&(0,N.jsx)("div",{className:W.tickBox,"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-in-control"),children:(0,N.jsx)(p.default,{name:"check"})}),0===(null==e?void 0:e.in_control_group)&&(0,N.jsx)("div",{className:W.dashBox,"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-not-in-control"),children:(0,N.jsx)(p.default,{name:"dash"})})]})})]})]})}})}),(0,N.jsx)(v.A,{platforms:["google"],children:(0,N.jsx)(y.A,{rows:null==I?void 0:I.data,isLoading:C,totalItems:null==I||null===(o=I.pagination)||void 0===o?void 0:o.total,totalPages:null==I||null===(a=I.pagination)||void 0===a?void 0:a.last_page,pageNumber:B.page,limit:B.limit,leftPinnedColumns:2,noDataTitle:(0,g.A)("No data available for this IP address"),noDataSubTitle:(0,g.A)("try a different IP address"),sorting:{sortKey:B.sortKey,sortOrder:B.sortOrder},handlePagination:M,handleSorting:D,children:function(e){var t,n,r,o;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("thead",{children:(0,N.jsxs)("tr",{children:[(0,N.jsx)("th",{children:(0,g.A)("Status")}),(0,N.jsx)("th",{"data-sortable-id":"ip",children:(0,g.A)("IP Address")}),(0,N.jsx)("th",{"data-sortable-id":"keyword",children:(0,g.A)("Keyword")}),(0,N.jsxs)("th",{"data-sortable-id":"campaign",children:[(0,g.A)("Campaign"),(0,N.jsx)(h.A,{groupedCols:!0,header:!0,"data-sortable-id":"none",children:(0,g.A)("Campaign ID")})]}),(0,N.jsx)("th",{children:(0,g.A)("Device")}),(0,N.jsxs)("th",{children:[(0,g.A)("Country"),(0,N.jsx)(h.A,{header:!0,children:(0,g.A)("Location")})]}),(0,N.jsx)(v.A,{featureFlags:["DATA_SAMPLING"],children:(0,N.jsx)("th",{"data-sortable-id":"in_control_group",children:(0,g.A)("Sampled")})})]})}),(0,N.jsxs)("tbody",{children:[(0,N.jsx)("td",{children:(0,N.jsx)(w.A,{statusCode:null==e?void 0:e.flag})}),(0,N.jsx)("td",{children:(0,N.jsx)(x.A,{maxLength:15,clickToCopy:!0,children:null==e?void 0:e.ip})}),(0,N.jsx)("td",{children:null==e?void 0:e.kw}),(0,N.jsxs)("td",{children:[(r=e,o="",r&&r.campaign&&r.campaign.name?o+=r.campaign.name:o+="<i style='color:#ccc;'>Campaign name not provided</i>",o),(0,N.jsx)(h.A,{groupedCols:!0,children:null!==(t=null==e?void 0:e.cpn)&&void 0!==t?t:"-"})]}),(0,N.jsx)("td",{children:(0,N.jsx)(j.A,{row:e})}),(0,N.jsx)("td",{children:(0,N.jsx)(O.A,{countryCode:null==e||null===(n=e.location_physical)||void 0===n?void 0:n.country_code,location:$(e)})}),(0,N.jsx)(v.A,{featureFlags:["DATA_SAMPLING"],children:(0,N.jsxs)("td",{children:[1===(null==e?void 0:e.in_control_group)&&(0,N.jsx)("div",{className:W.tickBox,"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-in-control"),children:(0,N.jsx)(p.default,{name:"check"})}),0===(null==e?void 0:e.in_control_group)&&(0,N.jsx)("div",{className:W.dashBox,"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-not-in-control"),children:(0,N.jsx)(p.default,{name:"dash"})})]})})]})]})}})})]})]})}D.propTypes={data:a().object,isLoading:a().bool.isRequired,handlePagination:a().func.isRequired,handleSort:a().func.isRequired,filters:a().object.isRequired,ip:a().string.isRequired,setDates:a().func,filterConnector:a().object,accountSelectConnector:a().object};const B=D},36990:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=a.default;f(".position-x1n2onr6{position:relative}",3e3),f(".top-x1fo6t33{top:-4px}",4e3),f(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),f(".fontWeight-xk50ysn{font-weight:500}",3e3),f(".lineHeight-x19v9tvf{line-height:22px}",3e3);var p={header:{position:"position-x1n2onr6",top:"top-x1fo6t33",color:"color-xd87uto",fontWeight:"fontWeight-xk50ysn",lineHeight:"lineHeight-x19v9tvf",$$css:"SubContent/index.tsx:6"},subContent:{position:"position-x1n2onr6",top:"top-x1fo6t33",color:"color-xd87uto",lineHeight:"lineHeight-x19v9tvf",$$css:"SubContent/index.tsx:13"}};function m(e){var t=e.children,n=e.header,r=void 0!==n&&n?p.header:p.subContent;return(0,l.jsx)("div",u(u({},i.props(r)),{},{children:t}))}
2m.displayName="SubContent",t.A=m},37078:(e,t,n)=>{"use strict";t.A=function(e){var t=e.errors,n=Object.values(t).flat();return n.length<1?null:(0,a.jsx)("div",s(s({},{className:"width-xh8yej3 display-x78zum5 flexDirection-xdt5ytf alignItems-x1cy8zhl justifyContent-x1nhvcw1","data-style-src":"FormFieldError/index.tsx:6"}),{},{children:(0,a.jsx)("div",s(s({},{className:"marginBottom-x1iymm2a fontSize-xif65rj fontWeight-xo1l8bm lineHeight-x1fc57z9 marginTop-x1xmf6yo color-x1iviald","data-style-src":"FormFieldError/index.tsx:13"}),{},{children:n.map(function(e){var t,n;return(0,a.jsx)("div",{children:null==e?void 0:e.userMessage},null!==(t=null!==(n=null==e?void 0:e.userMessage)&&void 0!==n?n:null==e?void 0:e.errorMessage)&&void 0!==t?t:"error")})}))}))};var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(31085);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=o.default;u(".width-xh8yej3{width:100%}",4e3),u(".display-x78zum5{display:flex}",3e3),u(".flexDirection-xdt5ytf{flex-direction:column}",3e3),u(".alignItems-x1cy8zhl{align-items:flex-start}",3e3),u(".justifyContent-x1nhvcw1{justify-content:flex-start}",3e3),u(".marginBottom-x1iymm2a{margin-bottom:32px}",4e3),u(".fontSize-xif65rj{font-size:14px}",3e3),u(".fontWeight-xo1l8bm{font-weight:400}",3e3),u(".lineHeight-x1fc57z9{line-height:20px}",3e3),u(".marginTop-x1xmf6yo{margin-top:8px}",4e3),u(".color-x1iviald{color:var(--error600-x1indqeg)}",3e3)},37157:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l}),n(14041);var r=n(58342),o=n(4386),a=n(31085);function i(e){var t=e.filters,n=e.setFilters,i=e.showGroupLabels,l=void 0===i||i,s=(0,o.getFilterTestId)("filter-groups","filter-panel"),c=new Map,u=[];t.forEach(function(e){var t;null!==(t=e.filterGroup)&&void 0!==t&&t.name?c.has(e.filterGroup.name)||c.set(e.filterGroup.name,e.filterGroup):u.push(e)});var d=Array.from(c.values()).sort(function(e,t){var n,r;return(null!==(n=e.displayOrder)&&void 0!==n?n:Number.MAX_SAFE_INTEGER)-(null!==(r=t.displayOrder)&&void 0!==r?r:Number.MAX_SAFE_INTEGER)});return(0,a.jsxs)("div",{"data-testid":s,children:[d.map(function(e){return(0,a.jsx)(r.A,{filters:t,setFilters:n,filterGroupName:e.name,showLabel:l},e.name)}),u.length>0&&(0,a.jsx)(r.A,{filters:u,setFilters:n},"ungrouped")]})}i.displayName="FilterGroups";const l=i},37184:(e,t,n)=>{"use strict";t.A=void 0;var r=s(n(25751)),o=s(n(23834)),a=s(n(43425)),i=n(60156),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=r.default;p(".display-x78zum5{display:flex}",3e3),p(".justifyContent-xl56j7k{justify-content:center}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".minHeight-xz65tgg{min-height:200px}",4e3),t.A=function(e){var t,n,r,s=e.options;return 0===(n=null==s||null===(t=s.series)||void 0===t?void 0:t[0],r=null==n?void 0:n.data,Array.isArray(r)?r:[]).length?(0,l.jsx)("div",d(d({},{className:"display-x78zum5 justifyContent-xl56j7k alignItems-x6s0dn4 minHeight-xz65tgg","data-style-src":"Chart/index.tsx:24"}),{},{children:(0,i.language)("There is no data to display. Please select a longer date range.")})):(0,l.jsx)(a.default,{highcharts:o.default,options:s})}},37270:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(86957),s=u(n(30021)),c=n(31085);function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=o.default;x(".marginTop-x14vqqas{margin-top:12px}",4e3),x(".display-x78zum5{display:flex}",3e3),x(".flexDirection-xdt5ytf{flex-direction:column}",3e3),x(".gap-x167g77z{gap:8px}",2e3),x(".boxSizing-x9f619{box-sizing:border-box}",3e3),x(".flexDirection-x1q0g3np{flex-direction:row}",3e3),x(".justifyContent-x1nhvcw1{justify-content:flex-start}",3e3),x(".alignItems-x6s0dn4{align-items:center}",3e3),x(".gap-x1v2ro7d{gap:12px}",2e3),x(".width-xh8yej3{width:100%}",4e3),x(".height-x112a4uq{height:49px}",4e3),x(".borderWidth-xmkeg23{border-width:1px}",2e3),x(".borderStyle-x1y0btm7{border-style:solid}",2e3),x(".borderColor-x1wcvari{border-color:var(--gray300-x1xk3734)}",2e3),x(".borderRadius-x12oqio5{border-radius:4px}",2e3),x(".paddingTop-x1iorvi4{padding-top:4px}",4e3),x(".paddingBottom-xjkvuk6{padding-bottom:4px}",4e3),x(".paddingLeft-xf18ygs{padding-left:12px}",4e3),x(".paddingRight-xnuq7ks{padding-right:12px}",4e3),x(".cursor-x1jm3nie{cursor:grab}",3e3),x(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3),x(".flex-x1okw0bk{flex:none}",2e3),x(".order-x1g77sc7{order:0}",3e3),x(".alignSelf-xkh2ocl{align-self:stretch}",3e3),x(".flexGrow-x1c4vz4f{flex-grow:0}",3e3),x(".width-xvy4d1p{width:24px}",4e3),x(".height-xxk0z11{height:24px}",4e3),x(".justifyContent-xl56j7k{justify-content:center}",3e3),x(".padding-x1717udv{padding:0}",1e3),x(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),x(".order-x9ek82g{order:1}",3e3),x(".marginRight-xl010v5{margin-right:4px}",4e3),x(".opacity-xg01cxk{opacity:0}
2",3e3),x(".width-x1fsd2vl{width:10px}",4e3),x(".height-xlup9mm{height:16px}",4e3),x(".display-xrvj5dj{display:grid}",3e3),x(".gridTemplateColumns-x1p9eum2{grid-template-columns:repeat(2,1fr)}",3e3),x(".gridTemplateRows-x1ymiuwn{grid-template-rows:repeat(3,1fr)}",3e3),x(".gap-x195vfkc{gap:2px}",2e3),x(".justifyItems-x1o2pa38{justify-items:center}",3e3),x(".userSelect-x87ps6o{user-select:none}",3e3),x(".marginRight-x1db2dqx{margin-right:8px}",4e3),x(".width-xfo62xy{width:2px}",4e3),x(".height-x36qwtl{height:2px}",4e3),x(".borderRadius-x1e6avla{border-radius:999px}",2e3),x(".backgroundColor-x2ztp3g{background-color:var(--gray500-xplr4j6)}",3e3);var b={item:{boxSizing:"boxSizing-x9f619",display:"display-x78zum5",flexDirection:"flexDirection-x1q0g3np",justifyContent:"justifyContent-x1nhvcw1",alignItems:"alignItems-x6s0dn4",gap:"gap-x1v2ro7d",width:"width-xh8yej3",height:"height-x112a4uq",borderWidth:"borderWidth-xmkeg23",borderStyle:"borderStyle-x1y0btm7",borderColor:"borderColor-x1wcvari",borderRadius:"borderRadius-x12oqio5",paddingTop:"paddingTop-x1iorvi4",paddingBottom:"paddingBottom-xjkvuk6",paddingLeft:"paddingLeft-xf18ygs",paddingRight:"paddingRight-xnuq7ks",cursor:"cursor-x1jm3nie",backgroundColor:"backgroundColor-x6fdw8f",flex:"flex-x1okw0bk",order:"order-x1g77sc7",alignSelf:"alignSelf-xkh2ocl",flexGrow:"flexGrow-x1c4vz4f",$$css:"DragSortList/index.tsx:27"},itemDragging:{opacity:"opacity-xg01cxk",$$css:"DragSortList/index.tsx:75"}};function v(e,t,n){if(t===n)return e;var r=e.findIndex(function(e){return e.value===t}),o=e.findIndex(function(e){return e.value===n});if(r<0||o<0)return e;var a,i=function(e){if(Array.isArray(e))return h(e)}(a=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||y(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=g(i.splice(r,1),1)[0];return i.splice(o,0,l),i}function A(){for(var e=[],t=0;t<6;t+=1)e.push((0,c.jsx)("span",p({},{className:"width-xfo62xy height-x36qwtl borderRadius-x1e6avla backgroundColor-x2ztp3g","data-style-src":"DragSortList/index.tsx:90"}),"drag-sort-list-handle-dot-".concat(t)));return e}t.default=function(e){var t=e.list,n=e.onListChange,r=g((0,a.useState)(""),2),o=r[0],u=r[1],d=(0,a.useRef)(""),f=(0,a.useRef)(null),m=(0,a.useRef)(null),y=(0,a.useRef)(null);function h(){f.current&&(f.current.remove(),f.current=null),d.current="",null!==m.current&&(cancelAnimationFrame(m.current),m.current=null),null!==y.current&&cancelAnimationFrame(y.current),y.current=requestAnimationFrame(function(){u(""),y.current=null})}function x(){h()}return(0,a.useEffect)(function(){return function(){f.current&&(f.current.remove(),f.current=null),null!==m.current&&(cancelAnimationFrame(m.current),m.current=null),null!==y.current&&(cancelAnimationFrame(y.current),y.current=null)}},[]),(0,c.jsx)("div",p(p({onDragOver:function(e){var t=e.dataTransfer;e.preventDefault(),t&&(t.dropEffect="move")},onDrop:function(e){e.preventDefault(),h()}},{className:"marginTop-x14vqqas display-x78zum5 flexDirection-xdt5ytf gap-x167g77z","data-style-src":"DragSortList/index.tsx:21"}),{},{children:t.map(function(e,r){return(0,c.jsxs)("div",p(p({draggable:!0,onDragStart:function(t){return function(e,t){null!==m.current&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(function(){u(t),m.current=null}),d.current="";var n=e.dataTransfer;if(n){n.effectAllowed="move",n.setData("text/plain",t);var r=e.currentTarget,o=r.cloneNode(!0);if(o instanceof HTMLDivElement){var a=r.getBoundingClientRect(),i=e.clientX-a.left,s=e.clientY-a.top;o.style.position="fixed",o.style.top="-1000px",o.style.left="-1000px",o.style.width="".concat(a.width,"px"),o.style.opacity="1",o.style.backgroundColor=l.colours.white,o.style.pointerEvents="none",document.body.appendChild(o),f.current=o,n.setDragImage(o,i,s)}}}(t,e.value)},onDragOver:function(r){return function(e,r){var a=e.dataTransfer;e.preventDefault(),a&&(a.dropEffect="move");var i=o||(null==a?void 0:a.getData("text/plain"))||"";i&&i!==r&&d.current!==r&&(n(v(t,i,r)),d.current=r)}(r,e.value)},onDrop:function(r){return function(e,r){e.preventDefault(),o&&o!==r&&n(v(t,o,r)),h()}(r,e.value)},onDragEnd:x},i.props(b.item,o===e.value&&b.itemDragging)),{},{"data-testid":"drag-sort-list-item-".concat(e.value),children:[(0,c.jsxs)("div",p(p({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x167g77z","data-style-src":"DragSortList/index.tsx:51"}),{},{children:[(0,c.jsx)("div",p(p({},{className:"width-x1fsd2vl height-xlup9mm display-xrvj5dj gridTemplateColumns-x1p9eum2 gridTemplateRows-x1ymiuwn gap-x195vfkc alignItems-x6s0dn4 justifyItems-x1o2pa38 userSelect-x87ps6o marginRight-x1db2dqx","data-style-src":"DragSortList/index.tsx:78"}),{},{children:A()})),(0,c.jsx)("div",p(p({},{className:"boxSizing-x9f619 width-xvy4d1p height-xxk0z11 borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x1wcvari borderRadius-x12oqio5 display-x78zum5 flexDirection-x1q0g3np justifyContent-xl56j7k alignItems-x6s0dn4 padding-x1717udv backgroundColor-x18oya0d flex-x1okw0bk order-x9ek82g flexGrow-x1c4vz4f marginRight-xl010v5","data-style-src":"DragSortList/index.tsx:56"}),{},{children:(0,c.jsx)(s.default,{children:r+1})}))]})),(0,c.jsx)(s.default,{children:e.label})]}),e.value)})}
2))}},37323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(18141),i=n(45365),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=o.default;f(".marginTop-xdj266r{margin-top:0}",4e3),f(".paddingTop-xyamay9{padding-top:16px}",4e3),f(".width-x1oysuqx{width:200px}",4e3),f(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),f(".boxShadow-xsxtpm2{box-shadow:0 4px 6px -2px rgba(34,34,34,.03),0 12px 16px -4px rgba(34,34,34,.08)}",3e3,".boxShadow-xsxtpm2{box-shadow:0 4px 6px -2px rgba(34,34,34,.03), 0 12px 16px -4px rgba(34,34,34,.08)}"),f(".zIndex-xa9119d{z-index:50}",3e3),f(".height-xsdox4t{height:48px}",4e3),f(".width-x1fsd2vl{width:10px}",4e3),f(".marginRight-x1db2dqx{margin-right:8px}",4e3),f(".backgroundColor-x1ovo3ll{background-color:var(--error300-x1etg42b)}",3e3),f(".borderRadius-x1sxf85j{border-radius:5px}",2e3),f(".backgroundColor-xn1qtim{background-color:var(--warning200-xgv5m4l)}",3e3),f(".backgroundColor-x71x0l8{background-color:var(--success300-xj807bz)}",3e3),t.default=function(e){var t,n,r,o,s=e.data,c=void 0===s?{}:s,d={date:null!==(t=c.date)&&void 0!==t?t:0,valid:null!==(n=c.validRaw||c.valid)&&void 0!==n?n:0,suspicious:null!==(r=c.suspiciousRaw||c.suspicious)&&void 0!==r?r:0,invalid:null!==(o=c.invalidRaw||c.invalid)&&void 0!==o?o:0};if(null==d||!d.date)return null;var f=d.valid+d.suspicious+d.invalid;return(0,l.jsx)(i.Card,u(u({id:"hover"},{className:"width-x1oysuqx backgroundColor-x18oya0d boxShadow-xsxtpm2 zIndex-xa9119d","data-style-src":"Hover/index.tsx:14"}),{},{children:(0,l.jsxs)(i.Grid,{className:null!=="marginTop-xdj266r"?"marginTop-xdj266r":"",children:[(0,l.jsx)(i.Grid.Row,{className:null!=="marginTop-xdj266r"?"marginTop-xdj266r":"",children:(0,l.jsx)(i.Grid.Col,{className:null!=="marginTop-xdj266r"?"marginTop-xdj266r":"",children:(0,l.jsx)(i.Text,{preset:"pageSectionHeading",children:(0,a.format)(d.date,"MMM d yyyy")})})}),(0,l.jsxs)(i.Grid.Row,{className:null!=="paddingTop-xyamay9"?"paddingTop-xyamay9":"",children:[(0,l.jsx)("div",u({},{className:"height-xsdox4t width-x1fsd2vl marginRight-x1db2dqx backgroundColor-x71x0l8 borderRadius-x1sxf85j","data-style-src":"Hover/index.tsx:34"})),(0,l.jsxs)("div",{children:[(0,l.jsx)(i.Text,{preset:"pageSectionHeading",children:Number.isNaN(d.valid)?0:d.valid.toLocaleString()}),(0,l.jsxs)(i.Text,{preset:"chartHeading",colour:"black400",children:[(d.valid/f*100||0).toFixed(2),"%"]})]})]}),(0,l.jsxs)(i.Grid.Row,{className:null!=="paddingTop-xyamay9"?"paddingTop-xyamay9":"",children:[(0,l.jsx)("div",u({},{className:"height-xsdox4t width-x1fsd2vl marginRight-x1db2dqx backgroundColor-xn1qtim borderRadius-x1sxf85j","data-style-src":"Hover/index.tsx:27"})),(0,l.jsxs)("div",{children:[(0,l.jsx)(i.Text,{preset:"pageSectionHeading",children:Number.isNaN(d.suspicious)?0:d.suspicious.toLocaleString()}),(0,l.jsxs)(i.Text,{preset:"chartHeading",colour:"black400",children:[(d.suspicious/f*100||0).toFixed(2),"%"]})]})]}),(0,l.jsxs)(i.Grid.Row,{className:null!=="paddingTop-xyamay9"?"paddingTop-xyamay9":"",children:[(0,l.jsx)("div",u({},{className:"height-xsdox4t width-x1fsd2vl marginRight-x1db2dqx backgroundColor-x1ovo3ll borderRadius-x1sxf85j","data-style-src":"Hover/index.tsx:20"})),(0,l.jsxs)("div",{children:[(0,l.jsx)(i.Text,{preset:"pageSectionHeading",children:Number.isNaN(d.invalid)?0:d.invalid.toLocaleStr
2ing()}),(0,l.jsxs)(i.Text,{preset:"chartHeading",colour:"black400",children:[(d.invalid/f*100||0).toFixed(2),"%"]})]})]})]})}))}},37327:(e,t,n)=>{"use strict";e.exports=n.p+"f1ef94a817fd13343795.svg"},37561:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96895),o=(0,r.KU)(function(){return sessionStorage});const a=(0,r.tG)("syncAtom",{user:{role_identifier:"ADMIN"},account:{title:"Lunio test account",mfa_enabled:!1,meta_enabled:!1},settings:{},subscription_info:{},isImpersonating:!1,isLoading:!0,hasNoDataScope:{},dimmerIsActive:!1,alerts:{recommendationsCount:0,recommendations:[],notifications:[]},agency:[]},o)},37579:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.title,n=e.color,r=e.percentage,o=e.isActive;return(0,l.jsxs)("div",d(d({},i.props(m.box,o&&m.active)),{},{children:[(0,l.jsx)("div",d(d({},{className:"display-x78zum5 flexDirection-xdt5ytf justifyContent-xl56j7k","data-style-src":"Box/index.jsx:18"}),{},{children:(0,l.jsxs)(a.Text,d(d({},{className:"fontSize-xosj86m fontWeight-xk50ysn","data-style-src":"Box/index.jsx:23"}),{},{children:[(0,l.jsx)("span",d(d({},{className:"height-x18gnavp width-x1fxhmyf borderRadius-x1f96onm display-x1rg5ohu marginRight-x1db2dqx","data-style-src":"Box/index.jsx:27"}),{},{style:{backgroundColor:n}})),t]}))})),(0,l.jsx)("div",{children:(0,l.jsxs)(a.Text,{preset:"statHeading",children:[r,"%"]})})]}))};var o=s(n(25751)),a=(s(n(14041)),n(45365)),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=(n(86957),n(31085));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=o.default;p(".borderRadius-xur7f20{border-radius:8px}",2e3),p(".padding-x7spqef{padding:var(--3-xyfcdu2)}",1e3),p(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),p(".marginTop-x1eo4d1m{margin-top:var(--2-x17wbp3g)}",4e3),p(".display-x78zum5{display:flex}",3e3),p(".justifyContent-x1qughib{justify-content:space-between}",3e3),p(".flexDirection-xdt5ytf{flex-direction:column}",3e3),p(".justifyContent-xl56j7k{justify-content:center}",3e3),p(".fontSize-xosj86m{font-size:18px}",3e3),p(".fontWeight-xk50ysn{font-weight:500}",3e3),p(".height-x18gnavp{height:13px}",4e3),p(".width-x1fxhmyf{width:13px}",4e3),p(".borderRadius-x1f96onm{border-radius:50px}",2e3),p(".display-x1rg5ohu{display:inline-block}",3e3),p(".marginRight-x1db2dqx{margin-right:8px}",4e3),p(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3);var m={box:{borderRadius:"borderRadius-xur7f20",padding:"padding-x7spqef",border:"border-xct47cs",marginTop:"marginTop-x1eo4d1m",display:"display-x78zum5",justifyContent:"justifyContent-x1qughib",$$css:"Box/index.jsx:10"},active:{backgroundColor:"backgroundColor-x6fdw8f",$$css:"Box/index.jsx:34"}}},37606:(e,t,n)=>{"use strict";t.A=void 0;var r=y(n(25751)),o=n(45365),a=n(60156),i=n(79405),l=n(18141),s=n(73657),c=n(44146),u=n(98536),d=y(n(80303)),f=y(n(61803)),p=y(n(23695)),m=y(n(92523)),g=n(31085);function y(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=r.default;A(".display-x78zum5{display:flex}",3e3),A(".justifyContent-x1qughib{justify-content:space-between}",3e3),A(".marginTop-x1sy10c2{margin-top:20px}",4e3),A(".marginBottom-xieb3on{margin-bottom:20px}",4e3);var _=[{label:(0,a.language)("Keyword"),type:"radio",name:"keyword",queryKey:"keyword",queryTranslator:"textSearch",options:[{label:(0,a.language)("Contains"),name:"contains",type:"text",value:""}]},{label:(0,a.language)("Location"),type:"radio",name:"location",queryKey:"location",queryTranslator:"textSearch",options:[{label:(0,a.language)("Contains"),name:"contains",type:"text",value:""}]}];t.A=function(){var e=(0,u.useApi)({url:"/brand-protection/serp-insights",responseDataKey:"data",filters:_});return(0,g.jsxs)(o.Layout.Page,{type:"overview",children:[(0,g.jsx)(o.PageHeader,{title:(0,a.language)("SERP Insights"),text:(0,a.language)("Understand how your keyword is performing organically and in paid search on Google"),contentRight:(0,g.jsx)(c.AccessControl,{accountRoles:["ADMIN","ROOT","OWNER"],roles:["EDITOR"],children:(0,g.jsx)(o.Button,{as:s.Link,iconRight:"chevron-right",to:"/settings/brand-bidding/configuration",children:(0,a.language)("Configure Keywords")})})}),(0,g.jsxs)("div",b(b({},{className:"display-x78zum5 justifyContent-x1qughib marginTop-x1sy10c2 marginBottom-xieb3on","data-style-src":"SerpPage/index.tsx:33"}),{},{children:[(0,g.jsx)(o.FiltersV2,b({},e.filterConnector)),(0,g.jsx)(m.default,{})]})),(0,g.jsx)(i.Table,b(b({},e.tableConnector),{},{leftPinnedColumns:1,children:function(e){var t,n;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,a.language)("Keyword")}),(0,g.jsx)("th",{children:(0,a.language)("Locations")}),(0,g.jsx)("th",{children:(0,a.language)("Paid Position")}),(0,g.jsx)("th",{children:(0,a.language)("Organic Position")}),(0,g.jsx)("th",{children:(0,a.language)("Last checked")}),(0,g.jsx)("th",{children:(0,a.language)("Recommendations")})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsx)("td",{children:null==e?void 0:e.keyword}),(0,g.jsx)("td",{children:(0,d.default)(null==e?void 0:e.locations)}),(0,g.jsx)("td",{children:(0,g.jsx)(f.default,{items:null==e?void 0:e.paid_position})}),(0,g.jsx)("td",{children:(0,g.jsx)(f.default,{items:null==e?void 0:e.organic_position})}),(0,g.jsx)("td",{children:null!=e&&e.last_checked?(0,l.format)(new Date(e.last_checked),"dd MMM, yyyy"):""}),(0,g.jsx)("td",{children:(0,g.jsx)(p.default,{organicPosition:null!==(t=null==e?void 0:e.organic_position)&&void 0!==t?t:[],paidPosition:null!==(n=null==e?void 0:e.paid_position)&&void 0!==n?n:[]})})]})]})}}))]})}},37700:(e,t,n)=>{"use strict";n.d(t,{A:()=>v}),n(14041);var r=n(89748),o=n(19863),a=n(17419),i=n(28426),l=n(96956),s=n(27805),c=n(62161),u=n(93
2033),d=n(99226),f=n(98536),p=n(8713),m=n(92523),g=n(31085);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v=function(){var e=(0,d.A)(),t=e.lunioStatus,n=e.activePlatform,y="TRIAL"===t,h=(0,f.useApi)({url:"/platform/analytics/campaigns",sortKey:"health",sortOrder:"asc"});return(0,g.jsxs)(i.A.Page,{type:"main",children:[(0,g.jsx)(s.default,{title:"".concat((0,r.A)("Ad Stats")," - ").concat((0,r.A)("Campaign")),text:(0,r.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,g.jsx)(p.A,{filters:[],exportType:"mplat_campaign"})}),(0,g.jsx)("div",{className:"mt-4 mb-4 justify-end",children:(0,g.jsx)(m.default,{})}),(0,g.jsx)(c.A,x(x({},h.tableConnector),{},{noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){var t,i,s;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:"affiliate"===n?(0,r.A)("Affiliate"):(0,r.A)("Campaign")}),(0,g.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,r.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,r.A)("Legitimate")}),(0,g.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,r.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,r.A)("Suspicious")}),(0,g.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,r.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,r.A)("SIVT Clicks")}),(0,g.jsx)(u.A,{AND:!y,children:(0,g.jsx)("th",{"data-testid":"givt","data-tooltip":(0,r.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,r.A)("GIVT Clicks")})}),(0,g.jsx)("th",{"data-tooltip":(0,r.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,r.A)("Total IVT")}),(0,g.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,r.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,r.A)("Total Clicks")}),(0,g.jsx)("th",{"data-tooltip":(0,r.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,r.A)("All Tracked Clicks")}),(0,g.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,r.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,r.A)("SIVT Clicks %")}),(0,g.jsx)("th",{"data-tooltip":(0,r.A)("The percentage of all clicks tracked by Lunio that were identified as invali
2d (GIVT + SIVT)."),children:(0,r.A)("Total IVT %")}),(0,g.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,r.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,r.A)("Health")})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsx)("td",{children:null==e?void 0:e.campaign_name}),(0,g.jsx)("td",{children:(0,g.jsx)(a.A,{type:"legitimate",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_protected)})}),(0,g.jsx)("td",{children:(0,g.jsx)(a.A,{type:"suspicious",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_suspicious)})}),(0,g.jsx)("td",{children:(0,g.jsx)(a.A,{type:"invalid",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,g.jsx)(u.A,{AND:!y,children:(0,g.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,g.jsx)("td",{children:(0,o.m)(null!==(t=null==e?void 0:e.total_ivt)&&void 0!==t?t:0)}),(0,g.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_total)}),(0,g.jsx)("td",{children:(0,o.m)(null!==(i=null==e?void 0:e.all_tracked_clicks)&&void 0!==i?i:0)}),(0,g.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,g.jsx)("td",{children:"".concat(Number(null!==(s=null==e?void 0:e.total_ivt_percent)&&void 0!==s?s:0).toFixed(2),"%")}),(0,g.jsx)("td",{children:(0,g.jsx)(l.A,{health:null==e?void 0:e.health})})]})]})}}))]})}},37816:(e,t,n)=>{"use strict";n.d(t,{A:()=>b}),n(14041);var r=n(17419),o=n(28426),a=n(96956),i=n(27805),l=n(89748),s=n(19863),c=n(27333),u=n(62161),d=n(93033),f=n(99226),p=n(89541),m=n(13497),g=n(31085);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b=function(e){var t,n,y,b=e.filters,v=e.onFilterChange,A=e.handlePagination,_=e.handleSort,S=(0,c.st)("/platform/analytics/protected-sites",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},b)),w=S.data,O=S.isLoading,j="TRIAL"===(0,f.A)().lunioStatus;return(0,g.jsxs)(o.A.Page,{type:"main",children:[(0,g.jsx)(i.default,{title:"".concat((0,l.A)("Ad Stats")," - ").concat((0,l.A)("Websites Protected")),text:(0,l.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,g.jsx)(m.A,{filters:b,exportType:"mplat_protected"})}),(0,g.jsx)(p.A,{filters:b,onFilterChange:v}),(0,g.jsx)("div",{className:"mt-4"}),(0,g.jsx)(u.A,{rows:null==w||null===(t=w.result)||void 0===t?void 0:t.sites,isLoading:O,totalPages:null==w||null===(n=w.result)||void 0===n||null===(n=n.pagination)||void 0===n?void 0:n.last_page,totalItems:null==w||null===(y=w.result)||void 0===y||null===(y=y.pagination)||void 0===y?void 0:y.total,pageNumber:b.page,handlePagination:A,handleSorting:_,limit:b.limit,sorting:{sortKey:b.sortKey,sortOrder:b.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,l.A)("Website")}),(0,g.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,l.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,l.A)("Legitimate")}),(0,g.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,l.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,l.A)("Suspicious")}),(0,g.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,l.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,l.A)("SIVT Clicks")}),(0,g.jsx)(d.A,{AND:!j,children:(0,g.jsx)("th",{"data-testid":"givt","data-tooltip":(0,l.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,l.A)("GIVT Clicks")})}),(0,g.jsx)("th",{"data-tooltip":(0,l.A)("The total number of clicks Lunio has identified as invali
2d, including both GIVT and SIVT."),children:(0,l.A)("Total IVT")}),(0,g.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,l.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,l.A)("Total Clicks")}),(0,g.jsx)("th",{"data-tooltip":(0,l.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,l.A)("All Tracked Clicks")}),(0,g.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,l.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,l.A)("SIVT Clicks %")}),(0,g.jsx)("th",{"data-tooltip":(0,l.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,l.A)("Total IVT %")}),(0,g.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,l.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,l.A)("Health")})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsx)("td",{children:null==e?void 0:e.domain}),(0,g.jsx)("td",{children:(0,g.jsx)(r.A,{type:"legitimate",size:"sm",textRight:(0,s.m)(null==e?void 0:e.clicks_legitimate)})}),(0,g.jsx)("td",{children:(0,g.jsx)(r.A,{type:"suspicious",size:"sm",textRight:(0,s.m)(null==e?void 0:e.clicks_suspicious)})}),(0,g.jsx)("td",{children:(0,g.jsx)(r.A,{type:"invalid",size:"sm",textRight:(0,s.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,g.jsx)(d.A,{AND:!j,children:(0,g.jsx)("td",{children:(0,s.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,g.jsx)("td",{children:(0,s.m)(null==e?void 0:e.total_ivt)}),(0,g.jsx)("td",{children:(0,s.m)(null==e?void 0:e.clicks_total)}),(0,g.jsx)("td",{children:(0,s.m)(null==e?void 0:e.all_tracked_clicks)}),(0,g.jsxs)("td",{children:[null==e?void 0:e.percent_fraudulent,"%"]}),(0,g.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,g.jsx)("td",{children:(0,g.jsx)(a.A,{health:null==e?void 0:e.health})})]})]})}})]})}},38022:(e,t,n)=>{"use strict";n.d(t,{A:()=>b}),n(14041);var r=n(1781),o=n(62683),a=n(28426),i=n(23151),l=n(27805),s=n(89748),c=n(62161),u=n(36990),d=n(17070),f=n(98536),p=n(92523),m=n(31085);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b=function(){var e=[{label:(0,s.A)("Campaign Name"),name:"name",type:"radio",mplatOnly:!1,options:[{label:(0,s.A)("Contains"),name:"contains",type:"text"}]},{label:(0,s.A)("Campaign Type"),name:"campaignType",type:"checkbox",googleOnly:!0,queryTranslator:"arrayOfNames",queryKey:"type",options:[{label:(0,s.A)("Search"),shortLabel:(0,s.A)("Search"),type:"checkbox",name:"SEARCH",value:!1},{label:(0,s.A)("Display"),shortLabel:(0,s.A)("Display"),type:"checkbox",name:"DISPLAY",value:!1},{label:(0,s.A)("Video"),shortLabel:(0,s.A)("Video"),type:"checkbox",name:"VIDEO",value:!1},{label:(0,s.A)("Shopping"),shortLabel:(0,s.A)("Shopping"),type:"checkbox",name:"SHOPPING",value:!1},{label:(0,s.A)("PMax"),shortLabel:(0,s.A)("PMax"),type:"checkbox",name:"PERFORMANCE_MAX",value:!1},{label:(0,s.A)("Demand Gen"),shortLabel:(0,s.A)("Demand Gen"),type:"checkbox",name:"DEMAND_GEN",value:!1},{label:(0,s.A)("Local"),shortLabel:(0,s.A)("Local"),type:"checkbox",name:"LOCAL",value:!1},{label:(0,s.A)("Local Services"),shortLabel:(0,s.A)("Local Services"),type:"checkbox",name:"LOCAL_SERVICES",value:!1},{label:(0,s.A)("Travel"),shortLabel:(0,s.A)("Travel"),type:"checkbox",name:"TRAVEL",value:!1}
2,{label:(0,s.A)("Discovery"),shortLabel:(0,s.A)("Discovery"),type:"checkbox",name:"DISCOVERY",value:!1},{label:(0,s.A)("Multi Channel"),shortLabel:(0,s.A)("Multi Channel"),type:"checkbox",name:"MULTI_CHANNEL",value:!1},{label:(0,s.A)("Hotel"),shortLabel:(0,s.A)("Hotel"),type:"checkbox",name:"HOTEL",value:!1},{label:(0,s.A)("Smart"),shortLabel:(0,s.A)("Smart"),type:"checkbox",name:"SMART",value:!1},{label:(0,s.A)("Express"),shortLabel:(0,s.A)("Express"),type:"checkbox",name:"EXPRESS",value:!1}]},{label:(0,s.A)("Protection Status"),name:"protectionStatus",type:"checkbox",googleOnly:!0,options:[{label:(0,s.A)("Include Protected"),shortLabel:(0,s.A)("Protected"),type:"checkbox",name:"include_protected",value:!1},{label:(0,s.A)("Include Monitored"),shortLabel:(0,s.A)("Monitored"),type:"checkbox",name:"include_monitored",value:!1}]},{label:(0,s.A)("Protection Status"),name:"protectionStatus",type:"checkbox",queryTranslator:"translateToStatusArray",mplatOnly:!0,options:[{label:(0,s.A)("Include Protected"),shortLabel:(0,s.A)("Protected"),type:"checkbox",name:"include_protected",value:!1},{label:(0,s.A)("Include Monitored"),shortLabel:(0,s.A)("Monitored"),type:"checkbox",name:"include_monitored",value:!1}]}],t=(0,f.useApi)({url:"/platform/adsets",filters:e,sortKey:"invalid",sortOrder:"desc"});return(0,m.jsxs)(a.A.Page,{type:"main",children:[(0,m.jsx)(l.default,{title:(0,s.A)("Ad Sets"),text:(0,s.A)("Explore all your active Ad Sets that received clicks during this period")}),(0,m.jsx)(a.A.Filters,{contentRight:(0,m.jsx)(p.default,{})}),(0,m.jsx)(c.A,h(h({},t.tableConnector),{},{className:"mb-4",leftPinnedColumns:1,groupColsBreakpoint:500,children:function(e){var t;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("th",{children:(0,s.A)("Ad Set Name")}),(0,m.jsxs)("th",{children:[(0,s.A)("Campaign Name"),(0,m.jsx)(u.A,{header:!0,children:(0,s.A)("Campaign Type | Effective Status")})]}),(0,m.jsx)("th",{"data-tooltip":(0,s.A)("Shows whether Lunio is actively protecting or only monitoring this account or campaign."),children:(0,s.A)("Protection Status")}),(0,m.jsx)("th",{"data-tooltip":(0,s.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,s.A)("SIVT Clicks")}),(0,m.jsx)("th",{"data-tooltip":(0,s.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,s.A)("Total IVT")}),(0,m.jsxs)("th",{children:[(0,s.A)("SIVT Clicks")," ","%"]}),(0,m.jsxs)("th",{"data-tooltip":(0,s.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:[(0,s.A)("Total IVT")," ","%"]}),(0,m.jsx)("th",{"data-tooltip":(0,s.A)("The change in percentage between the selected date period and the equivalent previous period."),children:(0,s.A)("%pt Change")}),(0,m.jsx)("th",{"data-testid":"givt","data-tooltip":(0,s.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,m.jsx)("div",{className:"flex align-items-center",children:(0,s.A)("GIVT Clicks")})}),(0,m.jsx)("th",{"data-tooltip":(0,s.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,s.A)("Total Clicks")}),(0,m.jsx)("th",{"data-tooltip":(0,s.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,s.A)("All Tracked Clicks")}),(0,m.jsx)("th",{children:(0,s.A)("eCPC")}),(0,m.jsx)("th",{children:(0,s.A)("CTR")}),(0,m.jsx)("th",{children:(0,s.A)("Cost Model")}),(0,m.jsx)("th",{children:(0,s.A)("Avg. Cost")}),(0,m.jsx)("th",{children:(0,s.A)("Spend")}),(0,m.jsx)("th",{children:(0,m.jsx)(r.default,{content:(0,s.A)("The value of your campaign spend with invali
2d clicks factored out"),children:(0,s.A)("Adjusted Spend")})})]})}),(0,m.jsxs)("tbody",{children:[(0,m.jsx)("td",{children:(0,m.jsx)("span",{style:{wordBreak:"break-word"},children:d.A.stringDefaultIfEmpty(d.A.restrictLengthOfString(null==e?void 0:e.adset_name,50),(0,s.A)("Unknown"))})}),(0,m.jsxs)("td",{children:[(0,m.jsx)("span",{style:{wordBreak:"break-word"},children:d.A.stringDefaultIfEmpty(d.A.restrictLengthOfString(null==e?void 0:e.campaign_name,50),(0,s.A)("Unknown"))}),(0,m.jsx)(u.A,{header:!0,children:d.A.pipeSeparatedStrings(null==e?void 0:e.campaign_objective,null==e?void 0:e.campaign_status)})]}),(0,m.jsx)("td",{children:(0,m.jsx)(o.A,{status:e})}),(0,m.jsx)("td",{children:d.A.valueOrDash(null==e?void 0:e.total_invalid)}),(0,m.jsx)("td",{children:d.A.valueOrDash(null==e?void 0:e.total_ivt)}),(0,m.jsx)("td",{children:d.A.percentageValueOrDash(null==e?void 0:e.percent_invalid)}),(0,m.jsx)("td",{children:d.A.percentageValueOrDash(null==e?void 0:e.total_ivt_percent)}),(0,m.jsx)("td",{children:(0,m.jsx)(i.default,{number:String((null==e?void 0:e.percent_invalid_change)||"").replace(/-/g,""),direction:d.A.deltaDirection(null==e?void 0:e.percent_invalid_change),hideText:!0})}),(0,m.jsx)("td",{children:d.A.valueOrDash(null==e?void 0:e.total_general_invalid)}),(0,m.jsx)("td",{children:d.A.valueOrDash(null==e?void 0:e.total_clicks)}),(0,m.jsx)("td",{children:d.A.valueOrDash(null==e?void 0:e.all_tracked_clicks)}),(0,m.jsx)("td",{children:d.A.currencyValueOrDash(null==e?void 0:e.effective_cpc,null==e?void 0:e.currency)}),(0,m.jsx)("td",{children:d.A.percentageValueOrDash(null==e?void 0:e.adset_ctr)}),(0,m.jsx)("td",{children:d.A.valueOrDash(null==e?void 0:e.adset_cost_model)}),(0,m.jsx)("td",{children:d.A.currencyValueOrDash(null==e?void 0:e.adset_cost_model_value,null==e?void 0:e.currency)}),(0,m.jsx)("td",{children:d.A.currencyValueOrDash(null==e||null===(t=e.adset_stats)||void 0===t?void 0:t.spend,null==e?void 0:e.currency)}),(0,m.jsx)("td",{children:d.A.currencyValueOrDash(null==e?void 0:e.meta_actual_value,null==e?void 0:e.currency)})]})]})}}))]})}}
2,38152:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);const o={title:(0,r.A)("IVT by day of week"),description:(0,r.A)("Track IVT patterns by weekday to identify recurring high-risk traffic days."),iconName:"clock",colourName:"Blue",period:(0,r.A)("Last 30 Days"),periodKey:"30d",columnGroupingOrder:["level","day"],keyWords:[(0,r.A)("IVT"),(0,r.A)("Day"),(0,r.A)("L30 Days")],filters:[{label:(0,r.A)("Level"),type:"flat-select",name:"level",queryKey:"level",queryTranslator:"singleTextValueRadio",filterGroup:{label:(0,r.A)("LEVEL"),name:"level",displayOrder:1},options:[{label:(0,r.A)("Ad Account"),name:"ad_account",type:"radio",value:!0}]},{label:(0,r.A)("Device"),name:"device",type:"dropdown-multi-select",queryKey:"device",queryTranslator:"arrayOfNames",filterGroup:{label:(0,r.A)("Stats Filter"),name:"statsFilter",displayOrder:2},options:[{label:(0,r.A)("Mobile"),type:"checkbox",name:"m"},{label:(0,r.A)("Desktop"),type:"checkbox",name:"c"}]},{label:(0,r.A)("Day"),name:"day",type:"dropdown-multi-select",queryKey:"day",queryTranslator:"arrayOfNames",filterGroup:{label:(0,r.A)("Stats Filter"),name:"statsFilter",displayOrder:2},options:[{label:(0,r.A)("Monday"),type:"checkbox",name:"monday",value:!0},{label:(0,r.A)("Tuesday"),type:"checkbox",name:"tuesday",value:!0},{label:(0,r.A)("Wednesday"),type:"checkbox",name:"wednesday",value:!0},{label:(0,r.A)("Thursday"),type:"checkbox",name:"thursday",value:!0},{label:(0,r.A)("Friday"),type:"checkbox",name:"friday",value:!0},{label:(0,r.A)("Saturday"),type:"checkbox",name:"saturday",value:!0},{label:(0,r.A)("Sunday"),type:"checkbox",name:"sunday",value:!0}]}]}},38222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(86957),o={a:r.colours.warning100,b:r.colours.warning100,c:r.colours.error100,d:r.colours.error100,e:r.colours.primary100,f:r.colours.primary100,g:r.colours.primary200,h:r.colours.primary200,i:r.colours.gray200,j:r.colours.gray200,k:r.colours.success200,l:r.colours.success200,m:r.colours.warning200,n:r.colours.warning200,o:r.colours.error200,p:r.colours.error200,q:r.colours.primary300,r:r.colours.primary300,s:r.colours.primary400,t:r.colours.primary400,u:r.colours.gray300,v:r.colours.gray300,w:r.colours.success300,x:r.colours.success300,y:r.colours.secondary200,z:r.colours.secondary200};t.default=function(e){var t;return null!==(t=o[String(e).toLowerCase()])&&void 0!==t?t:r.colours.black900}},38238:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=a.default;f(".display-x78zum5{display:flex}",3e3),f(".alignItems-x6s0dn4{align-items:center}",3e3),f(".width-x1fxhmyf{width:13px}",4e3),f(".height-x18gnavp{height:13px}",4e3),f(".display-x1rg5ohu{display:inline-block}",3e3),f(".borderRadius-x1f96onm{border-radius:50px}",2e3),f(".backgroundColor-x1ctoai6{background-color:var(--error100-x13jjcv4)}",3e3),f(".borderWidth-xmkeg23{border-width:1px}",2e3),f(".borderStyle-x1y0btm7{border-style:solid}",2e3),f(".borderColor-xazfekn{border-color:var(--error200-xxycodf)}",2e3),f(".marginRight-x1wsuqlk{margin-right:12px}",4e3),f(".backgroundColor-xb8t6b3{background-color:var(--warning100-x12ln9i7)}",3e3),f(".borderColor-x1xw5qz2{border-color:var(--warning200-xgv5m4l)}",2e3),f(".backgroundColor-x17behm0{background-color:var(--success100-x14um8e)}",3e3),f(".borderColor-x9q52tb{border-color:var(--success200-x1m3jyzb)}",2e3);var p={wrapper:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",$$css:"Score/index.tsx:6"},circle:{width:"width-x1fxhmyf",height:"height-x18gnavp",display:"display-x1rg5ohu",borderRadius:"borderRadius-x1f96onm",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"backgroundColor-x1ctoai6",borderWidth:"borderWidth-xmkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:"borderStyle-x1y0btm7",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:"borderColor-xazfekn",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,marginRight:"marginRight-x1wsuqlk",marginInlineStart:null,marginInlineEnd:null,$$css:"Score/index.tsx:10"},red:{backgroundColor:"backgroundColor-x1ctoai6",borderColor:"borderColor-xazfekn",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:"Score/index.tsx:21"},yellow:{backgroundColor:"backgroundColor-xb8t6b3",borderColor:"borderColor-x1xw5qz2",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:"Score/index.tsx:25"},green:{backgroundColor:"backgroundColor-x17behm0",borderColor:"borderColor-x9q52tb",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:"Score/index.tsx:29"}};function m(e){var t=e.score,n=e.type,r=void 0===n?"number":n,o=e.colour,a=null!=o?o:function(e){return e>=66?"green":e>=33?"yellow":"red"}(t);return(0,l.jsxs)("div",u(u({},{className:"display-x78zum5 alignItems-x6s0dn4","data-style-src":"Score/index.tsx:6"}),{},{children:[(0,l.jsx)("div",u({},i.props(p.circle,p[a]))),t,"percentage"===r?"%":""]}))}
2m.displayName="Score",t.A=m},38241:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f}),n(14041);var r=n(69351),o=n(31085);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var i=["children","innerProps"],l=["onMouseMove","onMouseOver"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const f=function(e){var t=e.children,n=e.innerProps,a=d(e,i),s=(n.onMouseMove,n.onMouseOver,d(n,l));return(0,o.jsx)(r.c.Option,c(c({},a),{},{innerProps:s,children:t}))}},38300:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(54145),o=n(30432),a=n(92458),i=n(2039),l=n.n(i);function s(e,t){(0,r.gV)({email:"".concat(e.result.user.display_name," - ").concat(e.result.user.account_id," - ").concat(t?"- impersonating":"")}),window.hj&&window.hj("identify",e.result.user.id,{account_id:e.result.user.account_id,is_impersonating:t,email:e.result.user.email}),document.addEventListener("SendSentryFeedback",function(t){var n=localStorage.getItem("token"),r=(0,a.A)(n);(0,o.Sq)({name:"".concat(e.result.user.display_name," - ").concat(e.result.user.account_id),email:null==r?void 0:r.admin_id,message:t.detail||" "},{includeReplay:!0,callback:function(){console.log("Feedback sent successfully!")}})}),!t&&e.result.user.user_hash&&l()({app_id:"dy9inuyq",user_id:e.result.user.id,name:"".concat(e.result.user.first_name," ").concat(e.result.user.last_name),user_hash:e.result.user.user_hash,email:e.result.user.email,created_at:Math.floor(new Date(e.result.user.created_at).getTime()/1e3)}),e.result.user.id&&(window.usetifulTags={userId:e.result.user.id,name:e.result.user.first_name,lastName:e.result.user.first_name,email:e.result.user.email})}},38306:(e,t,n)=>{"use strict";e.exports=n.p+"bc3edb5af06fba7e2ce3.svg"},38513:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=p(n(14041)),l=n(45365),s=(p(n(76969)),n(60156)),c=n(19838),u=n(34016),d=n(86957),f=n(31085);function p(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(p=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b=a.default;b(".display-x78zum5{display:flex}",3e3),b(".justifyContent-x1qughib{justify-content:space-between}",3e3),b(".alignItems-x6s0dn4{align-items:center}",3e3),t.A=function(){var e,t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)(l.Input.DatePicker.getDateRange("30d")),2),n=t[0],r=t[1],o=(0,u.useQuery)("/affiliates/top-ivt-partners?df_dmin=".concat(Math.floor((0,s.localToUtcDateOffset)(n.min.date).valueOf()/1e3),"&df_dmax=").concat(Math.floor((0,s.localToUtcDateOffset)(n.max.date).valueOf()/1e3),"&limit=5&platform=affiliate"),void 0,"top-ivt-affiliates-".concat(n.min.date,"-").concat(n.max.date)),a=o.data,p=o.isLoading,m=(null==a||null===(e=a.result)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.map(function(e){return{name:e.affiliate_partner,value:e.invalid_percent}}))||[],g=Array(m.length).fill(d.colourValues.oldBrand600);return(0,f.jsxs)(l.Card,{className:"mb-4",children:[(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4","data-style-src":"PartnersByIVT/index.jsx:13"}),{},{children:[(0,f.jsx)(l.Text,{preset:"widgetHeading",as:"h2",children:(0,s.language)("Top 5 Partners by IVT%")}),(0,f.jsx)("div",{className:"flex distribute-space-between",children:(0,f.jsx)(l.Input.DatePicker,{value:[n.min.date,n.max.date],onRangeChange:function(e){return r(e)},selectedOption:n.rangeName,showCalenderIcon:!1,displayRangeText:!1,ranges:["yesterday","7d","1d","30d","prevMonth"],maxRangeDays:90})})]})),(0,f.jsx)(l.Divider,{className:"mt-4"}),(0,f.jsxs)(l.LunioLoader,{loading:p,preset:"dark",size:"responsive",height:100,children:[!p&&0===m.length&&(0,f.jsx)(l.NoData,{hasNoData:!0,style:{height:"300px",marginTop:16}}),!p&&0!==m.length&&(0,f.jsx)(c.Bar.Horizontal,{data:m,colors:g})]})]})}},38589:(e,t,n)=>{"use strict";e.exports=n.p+"052fe613f5ea61a02c14.svg"},38653:(e,t,n)=>{"use strict";e.exports=n.p+"6aee19b47f73c69240c6.svg"},38741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(25751)),o=n(14041),a=n(18141),i=n(60156),l=g(n(79135)),s=g(n(62720)),c=n(82672),u=g(n(9260)),d=g(n(73055)),f=g(n(39800)),p=g(n(13571)),m=n(31085);function g(e){return e&&e.__esModule?e:{default:e}}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}
2var h=["requestParams","onRequestParams","config","initialValues","onFilterChange","apiData","alignRight"];function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O=r.default;function j(e){var t=e.requestParams,n=e.onRequestParams,r=e.config,g=e.initialValues,y=e.onFilterChange,x=e.apiData,S=void 0===x?{}:x,w=(e.alignRight,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,h)),O=(0,o.useRef)(null),j=_((0,o.useState)(!0),2),k=j[0],E=j[1],N=_((0,o.useState)([]),2),I=N[0],P=N[1],T=_((0,o.useState)(!1),2),C=T[0],R=T[1],M=_((0,o.useState)(!1),2),L=M[0],D=M[1],B=_((0,o.useState)(!1),2),U=B[0],F=B[1],G=_((0,o.useState)([]),2),W=G[0],z=G[1],V=_((0,o.useState)([]),2),q=V[0],K=V[1],H=_((0,o.useState)(!1),2),Y=H[0],$=H[1],Z=_((0,o.useState)(""),2),X=Z[0],J=Z[1];(0,o.useEffect)(function(){C&&z(A(q))},[C]),(0,o.useEffect)(function(){if((null==I?void 0:I.length)>0&&!U){var e=(null==g?void 0:g[null==r?void 0:r.filterName])||[],t=[];e.forEach(function(e){var n,r=null!=I&&null!==(n=I[0])&&void 0!==n&&n.items?I[0].items.find(function(t){return t.aw_id===e}):void 0;r&&t.push(r)}),F(!0),K([].concat(t))}},[I]);var Q=_((0,o.useState)({lastRequestedDirection:"append",pageStart:1,pageEnd:1,totalResults:0,totalPages:0,apiResponseDataKey:r.apiResponseDataKey,maxNoPages:r.maxNoPages}),2),ee=Q[0],te=Q[1];function ne(){O.current&&(O.current.scrollTop=0)}(0,o.useEffect)(function(){if(null!=S&&S.result){var e=S.result;null!=e&&e.data&&function(e){var t=(0,f.default)(e,I,ee),n=t.listD,r=t.lazyL;n.length>0?"append"===ee.lastRequestedDirection?O.current&&(O.current.scrollTop-=90):O.current&&(O.current.scrollTop=90):ne(),E(!1),P(n),te(r)}(e)}},[S]);var re=(0,o.useCallback)((0,d.default)(function(){var e=t.pagination;if(!(k||e.current_page>=ee.totalPages)){E(!0);var r=(0,a.cloneDeep)(t);r.pagination.current_page=ee.pageEnd+1,te(b(b({},ee),{},{lastRequestedDirection:"append"})),n(r)}},50),[n,k,t,ee,te]),oe=(0,o.useCallback)((0,d.default)(function(){if(!k&&1!==ee.pageStart){E(!0);var e=(0,a.cloneDeep)(t);e.pagination.current_page=ee.pageStart-1,te(b(b({},ee),{},{lastRequestedDirection:"prepend"})),n(e)}},50),[n,k,t,ee,te]);function ae(){D(!1),K([]),$(!1)}function ie(){return(0,i.language)("Search :labelIdentifier",{labelIdentifier:r.labelIdentifier})}var le,se,ce=(0,o.useCallback)((0,d.default)(function(e){return function(e){var r=(0,a.cloneDeep)(t);return r.searchKeys.search_term===e?null:(r.searchKeys.search_term=e,r.pagination.current_page=1,n(r),P([]),ae(),E(!0),te(b
2(b({},ee),{},{pageStart:1,pageEnd:1,lastRequestedDirection:"append"})),ae(),!0)}(e)},500),[]);return(0,o.useEffect)(function(){ce(X)},[X]),(0,m.jsxs)("div",b(b(b({id:"account-selector-container"},{className:"width-xezivpi display-x3nfvp2 marginRight-x1yf7rl7","data-style-src":"FilterSearchedSelection/index.tsx:17"}),{},{"data-testid":"filter-searched-selection"},w),{},{children:[(0,m.jsxs)("button",b(b({id:"account-selector-open-button",type:"button"},{className:"height-xn3w4p2 zIndex-x1vjfegm width-xezivpi borderRadius-xur7f20 backgroundColor-x18oya0d display-x78zum5 alignItems-x6s0dn4 paddingLeft-x1k8dnhd paddingRight-x18a8kpn color-x5tu7p5 fontSize-x1j61zf2 boxSizing-x9f619 border-x180m19u","data-style-src":"FilterSearchedSelection/index.tsx:22"}),{},{onClick:function(){return R(!C)},children:[(null==g||null===(le=g[r.filterName])||void 0===le?void 0:le.length)>0?(0,i.language)("Showing :length :labelIdentifier",{length:String(null===(se=g[r.filterName])||void 0===se?void 0:se.length),labelIdentifier:r.labelIdentifier}):(0,i.language)("Showing All :labelIdentifier",{labelIdentifier:r.labelIdentifier}),!C&&(0,m.jsx)(l.default,b({name:"chevron-up"},{className:"marginLeft-xet2fuk","data-style-src":"FilterSearchedSelection/index.tsx:37"})),C&&(0,m.jsx)(l.default,b({name:"chevron-down"},{className:"marginLeft-xet2fuk","data-style-src":"FilterSearchedSelection/index.tsx:37"}))]})),(0,m.jsxs)(p.default,b(b({open:C,onClose:function(){return R(!1)},size:"md"},{"data-style-src":"FilterSearchedSelection/index.tsx:167"}),{},{disableClickOutside:!0,whiteBackground:!0,children:[(0,m.jsx)(p.default.Header,{}),(0,m.jsxs)("div",b(b({},{className:"width-x14rvwrp backgroundColor-x18oya0d","data-style-src":"FilterSearchedSelection/index.tsx:40"}),{},{"data-testid":"main-filter-menu",children:[(0,m.jsxs)("div",b(b({},{className:"paddingLeft-x1rpv2kp paddingRight-xkhz7bo marginBottom-xieb3on","data-style-src":"FilterSearchedSelection/index.tsx:44"}),{},{children:[(0,m.jsx)("h1",b(b({},{className:"fontSize-xwsyq91 fontWeight-xo1l8bm color-x18k1rwp","data-style-src":"FilterSearchedSelection/index.tsx:49"}),{},{children:"".concat((0,i.language)("Filter")," ").concat(r.labelIdentifier)})),(0,m.jsx)("h1",b(b({},{className:"fontSize-xif65rj fontWeight-xo1l8bm color-xd87uto","data-style-src":"FilterSearchedSelection/index.tsx:54"}),{},{children:"".concat((0,i.language)("Showing")," ").concat(ee.totalResults," ").concat(r.labelIdentifier)})),(0,m.jsx)("div",b(b({},{className:"marginTop-xw7yly9 marginBottom-xieb3on","data-style-src":"FilterSearchedSelection/index.tsx:59"}),{},{children:(0,m.jsx)(s.default,{size:"md",value:X,placeholder:ie(),"aria-label":ie(),iconLeft:"fas fa-search",onChange:function(e){e.target instanceof HTMLInputElement&&e.target.value&&J(e.target.value)}})})),Y&&(0,m.jsxs)("div",b(b({},{className:"display-x78zum5 alignItems-x6s0dn4 fontFamily-xqu6211 fontSize-x1bhvh73 fontWeight-x1ia3dwe color-x1iviald","data-style-src":"FilterSearchedSelection/index.tsx:63"}),{},{children:[(0,m.jsx)(l.default,b({name:"exclamation"},{className:"marginRight-x1db2dqx padding-xfawy5m height-x1v9usgg width-x6jxa94 color-x116vv80 borderRadius-x16rqkct backgroundColor-x1ssdy5","data-style-src":"FilterSearchedSelection/index.tsx:71"})),(0,i.language)("Choose a maximum of 100 specific accounts or select all.")]}))]})),(0,m.jsx)("div",b(b({},{className:"textAlign-xdpxx8g","data-style-src":"FilterSearchedSelection/index.tsx:80"}),{},{children:(0,m.jsxs)("div",b(b({},{className:"width-xh8yej3 borderCollapse-x1mwwwfo","data-style-src":"FilterSearchedSelection/index.tsx:83"}),{},{children:[(0,m.jsxs)("div",b(b({},{className:"height-xn3w4p2 display-x78zum5 alignItems-x6s0dn4 width-xh8yej3 paddingLeft-xg3sno2 backgroundColor-xq18l50 borderBottom-x8dxnfb borderTop-xc16jdr color-x1r9fet4 fontSize-xfifm61","data-style-src":"FilterSearchedSelection/index.tsx:87"}),{},{children:[(0,m.jsx)("div",b(b({},{className:"display-x78zum5 alignContent-xc26acl fontSize-x1tfy3uw color-x1r9fet4 marginLeft-x1tpqehw fontFamily-xqu6211","data-style-src":"FilterSearchedSelection/index.tsx:122"}),{},{children:(0,m.jsx)(s.default.Checkbox,{id:"account-selector-select-all-checkbox","aria-label":"Select All",value:L,onClick:function(){D(!L),K([]),$(!1)}})})),(0,m.jsx)("div",b(b({},{className:"display-x78zum5 alignContent-xc26acl marginLeft-x1tpqehw fontFamily-xqu6211 color-xlmegbm fontSize-xfifm61 fontWeight-xk50ysn marginRight-x1db2dqx","data-style-src":"FilterSearchedSelection/index.tsx:122; FilterSearchedSelection/index.tsx:112"}),{},{children:r.col1Header})),(0,m.jsx)(l.default,{name:["fas","arrow-down"]})]})),(0,m.jsxs)("div",b(b({},{className:"width-xh8yej3 height-x16nrsnc overflow-xysyzu8","data-style-src":"FilterSearchedSelection/index.tsx:99"}),{},{onScroll:function(){return function(){var e=t.pagination;if(!(k||e.current_page>=ee.totalPages)&&O.current){var n=O.current,r=n.scrollTop,o=n.scrollHeight;r+n.clientHeight===o&&re(),0===r&&oe()}}()},ref:O,children:[k&&"prepend"===ee.lastRequestedDirection&&(0,m.jsx)("div",b(b({},{className:"height-x14nwjz3 display-x78zum5 alignItems-x6s0dn4 paddingLeft-xg3sno2 borderBottom-x8dxnfb width-xh8yej3","data-style-src":"FilterSearchedSelection/index.tsx:104"}),{},{children:(0,m.jsxs)("div",b(b({},{className:"alignContent-xc26acl marginLeft-x1tpqehw fontFamily-xqu6211 display-x78zum5 justifyContent-xl56j7k alignItems-x6s0dn4 fontSize-x1j61zf2 fontWeight-xo1l8bm color-xbdn2ka","data-style-src":"FilterSearchedSelection/index.tsx:122; FilterSearchedSelection/index.tsx:155"}),{},{children:[(0,m.jsx)(l.default,{name:"spinner",pulse:!0,className:"mr-4"}
2),(0,i.language)("Loading Results...")]}))})),I.map(function(e){return(0,m.jsx)(m.Fragment,{children:e.items.map(function(e){return(0,o.createElement)("div",b(b({},{className:"height-x14nwjz3 display-x78zum5 alignItems-x6s0dn4 paddingLeft-xg3sno2 borderBottom-x8dxnfb width-xh8yej3","data-style-src":"FilterSearchedSelection/index.tsx:104"}),{},{key:"".concat(e.id).concat(e[r.col1DataKey])}),(0,m.jsx)("div",b(b({},{className:"display-x78zum5 alignContent-xc26acl fontSize-x1tfy3uw color-x1r9fet4 marginLeft-x1tpqehw fontFamily-xqu6211","data-style-src":"FilterSearchedSelection/index.tsx:122"}),{},{children:(0,m.jsx)(s.default.Checkbox,{value:(0,c.isSelected)(e,q)||L,"aria-label":e[r.col1DataKey],name:"checkbox-".concat(e.id),onClick:function(){!function(e){100!==q.length||q.includes(e)?(K((0,c.selectItem)(e,q)),D(!1),$(!1)):$(!0)}(e)}})})),(0,m.jsx)("div",b(b({},{className:"display-x78zum5 alignContent-xc26acl fontSize-x1tfy3uw color-x1r9fet4 marginLeft-x1tpqehw fontFamily-xqu6211","data-style-src":"FilterSearchedSelection/index.tsx:122"}),{},{children:(0,m.jsxs)("div",b(b({},{className:"display-x78zum5 flexDirection-xdt5ytf","data-style-src":"FilterSearchedSelection/index.tsx:118"}),{},{children:[(0,m.jsx)("div",b(b({},{className:"color-x18k1rwp fontWeight-xk50ysn fontSize-xif65rj","data-style-src":"FilterSearchedSelection/index.tsx:130"}),{},{children:e[r.col1DataKey]})),(0,m.jsx)("div",b(b({},{className:"color-x18k1rwp fontSize-xif65rj fontWeight-xo1l8bm","data-style-src":"FilterSearchedSelection/index.tsx:135"}),{},{children:e.aw_id}))]}))})))})})}),(0,m.jsxs)("div",b(b({},{className:"height-x14nwjz3 display-x78zum5 alignItems-x6s0dn4 paddingLeft-xg3sno2 borderBottom-x8dxnfb width-xh8yej3","data-style-src":"FilterSearchedSelection/index.tsx:104"}),{},{children:[k&&!1!==S.isLoading&&(0,m.jsxs)("div",b(b({},{className:"alignContent-xc26acl marginLeft-x1tpqehw fontFamily-xqu6211 display-x78zum5 justifyContent-xl56j7k alignItems-x6s0dn4 fontSize-x1j61zf2 fontWeight-xo1l8bm color-xbdn2ka","data-style-src":"FilterSearchedSelection/index.tsx:122; FilterSearchedSelection/index.tsx:155"}),{},{children:[(0,m.jsx)(l.default,{name:"spinner",pulse:!0,className:"mr-4"}
2),(0,i.language)("Loading Results...")]})),(!k||!1===S.isLoading)&&0===I.length&&(0,m.jsx)("div",b(b({},{className:"alignContent-xc26acl marginLeft-x1tpqehw fontFamily-xqu6211 display-x78zum5 justifyContent-xl56j7k alignItems-x6s0dn4 fontSize-x1j61zf2 fontWeight-xo1l8bm color-xbdn2ka","data-style-src":"FilterSearchedSelection/index.tsx:122; FilterSearchedSelection/index.tsx:155"}),{},{children:(0,i.language)("No Results Found")}))]}))]}))]}))})),(0,m.jsxs)("div",b(b({},{className:"width-xh8yej3 display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4 borderTop-xc16jdr paddingLeft-x1rpv2kp paddingRight-xkhz7bo paddingTop-x9desvi","data-style-src":"FilterSearchedSelection/index.tsx:140"}),{},{children:[(0,m.jsx)("div",b(b({},{className:"fontSize-x1j61zf2 fontWeight-xo1l8bm color-x14ptq3k","data-style-src":"FilterSearchedSelection/index.tsx:150"}),{},{children:L?(0,i.language)("All :labelIdentifier selected",{labelIdentifier:r.labelIdentifier}):(0,i.language)("Showing :length of :total selected",{length:String(q.length||0),total:ee.totalResults.toString()})})),(0,m.jsxs)("div",b(b({},{className:"display-x78zum5 alignItems-x6s0dn4","data-style-src":"FilterSearchedSelection/index.tsx:163"}),{},{children:[(0,m.jsx)(u.default,{"data-testid":"account-selector-select-clear-button",size:"md",className:"mr-2",preset:"outline",onClick:function(){K(A(W)),D(!1),$(!1),J(""),R(!1)},children:(0,i.language)("Cancel")}),(0,m.jsx)(u.default,{"data-testid":"account-selector-select-clear-button",size:"md",className:"mr-2",preset:"outline",onClick:function(){""!==t.searchKeys[r.apiSortKey]&&J(""),ne(),ae()},children:(0,i.language)("Clear")}),(0,m.jsx)(u.default,{"data-testid":"account-selector-select-apply-button",size:"md",preset:"primary",onClick:function(){var e;e=q.map(function(e){return e.aw_id}),y(b(b({},g),{},v({},r.filterName,e))),R(!1)},children:(0,i.language)("Apply Filter")})]}))]}))]}))]}))]}))}O(".width-xezivpi{width:max-content}",4e3),O(".display-x3nfvp2{display:inline-flex}",3e3),O(".marginRight-x1yf7rl7{margin-right:0}",4e3),O(".height-xn3w4p2{height:44px}",4e3),O(".zIndex-x1vjfegm{z-index:1}",3e3),O(".borderRadius-xur7f20{border-radius:8px}",2e3),O(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),O(".display-x78zum5{display:flex}",3e3),O(".alignItems-x6s0dn4{align-items:center}",3e3),O(".paddingLeft-x1k8dnhd{padding-left:18px}",4e3),O(".paddingRight-x18a8kpn{padding-right:18px}",4e3),O(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),O(".fontSize-x1j61zf2{font-size:16px}",3e3),O(".boxSizing-x9f619{box-sizing:border-box}",3e3),O(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),O(".marginLeft-xet2fuk{margin-left:8px}",4e3),O(".width-x14rvwrp{width:600px}",4e3),O(".paddingLeft-x1rpv2kp{padding-left:56px}",4e3),O(".paddingRight-xkhz7bo{padding-right:56px}",4e3),O(".marginBottom-xieb3on{margin-bottom:20px}",4e3),O(".fontSize-xwsyq91{font-size:20px}",3e3),O(".fontWeight-xo1l8bm{font-weight:400}",3e3),O(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),O(".fontSize-xif65rj{font-size:14px}",3e3),O(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),O(".marginTop-xw7yly9{margin-top:16px}",4e3),O(".fontFamily-xqu6211{font-family:var(--fontText-xop4vu5)}",3e3),O(".fontSize-x1bhvh73{font-size:var(--fontSizeMd-x5g6s0a)}",3e3),O(".fontWeight-x1ia3dwe{font-weight:var(--fontWeightXs-xt5f5yd)}",3e3),O(".color-x1iviald{color:var(--error600-x1indqeg)}",3e3),O(".marginRight-x1db2dqx{margin-right:8px}",4e3),O(".padding-xfawy5m{padding:4px}",1e3),O(".height-x1v9usgg{height:14px}",4e3),O(".width-x6jxa94{width:14px}",4e3),O(".color-x116vv80{color:var(--error500-x1idp37q)}",3e3),O(".borderRadius-x16rqkct{border-radius:50%}",2e3),O(".backgroundColor-x1ssdy5{background-color:var(--error50-x1f3qy36)}",3e3),O(".textAlign-xdpxx8g{text-align:left}",3e3),O(".width-xh8yej3{width:100%}",4e3),O(".borderCollapse-x1mwwwfo{border-collapse:collapse}",3e3),O(".paddingLeft-xg3sno2{padding-left:44px}",4e3),O(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),O(".borderBottom-x8dxnfb{border-bottom:solid 1px var(--gray250-x1kpk87u)}",2e3),O(".borderTop-xc16jdr{border-top:solid 1px var(--gray250-x1kpk87u)}",2e3),O(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),O(".fontSize-xfifm61{font-size:12px}",3e3),O(".height-x16nrsnc{height:400px}",4e3),O(".overflow-xysyzu8{overflow:auto}",2e3),O(".height-x14nwjz3{height:88px}",4e3),O(".color-xlmegbm{color:var(--grey900-x96mn3q)}",3e3),O(".fontWeight-xk50ysn{font-weight:500}",3e3),O(".flexDirection-xdt5ytf{flex-direction:column}",3e3),O(".alignContent-xc26acl{align-content:center}",3e3),O(".fontSize-x1tfy3uw{font-size:var(--fontSizeSm-x186ywzf)}",3e3),O(".marginLeft-x1tpqehw{margin-left:12px}",4e3),O(".justifyContent-x1qughib{justify-content:space-between}",3e3),O(".paddingTop-x9desvi{padding-top:26px}",4e3),O(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3),O(".justifyContent-xl56j7k{justify-content:center}",3e3),O(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),j.displayName="SearchedSelection",t.default=j},38947:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(14041),o=n(9260),a=n(62720),i=n(72686),l=n(30021),s=n(28426),c=n(27805),u=n(93
2033),d=n(89748),f=n(34406),p=n(88133),m=n(66773),g=n(24284),y=n(78806),h=n(31085);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const v=function(){var e,t,n,b,v=a.default.DatePicker.getDateRange("30d"),A=x((0,r.useState)({startDate:null!==(e=null==v||null===(t=v.min)||void 0===t?void 0:t.date)&&void 0!==e?e:null,endDate:null!==(n=null==v||null===(b=v.max)||void 0===b?void 0:b.date)&&void 0!==n?n:null,selectedOption:"30d"}),2),_=A[0],S=A[1],w=x((0,r.useState)(""),2),O=w[0],j=w[1],k=x((0,r.useState)([]),2),E=k[0],N=k[1],I=(0,p.gC)("/internal-tools/ivt-delta-report/export","POST");function P(e){return Math.floor((0,f.Ay)(e).valueOf()/1e3)}return(0,h.jsx)(u.A,{impersonatingOnly:!0,children:(0,h.jsxs)(s.A.Page,{type:"settings",children:[(0,h.jsx)(c.default,{title:(0,d.A)("DS Reports"),text:(0,d.A)("Request an IVT Delta export report for a selected date range.")}),(0,h.jsxs)(i.default,{children:[(0,h.jsx)(l.default,{preset:"widgetHeading",children:(0,d.A)("Export IVT Delta")}),(0,h.jsx)("div",{className:"mt-2 flex w-full justify-end","data-testid":"ds-reports-date-picker-input",children:(0,h.jsx)(a.default.DatePicker,{value:[null==_?void 0:_.startDate,null==_?void 0:_.endDate],selectedOption:null==_?void 0:_.selectedOption,ranges:["30d","7d","1d","customMonth","customRange"],onFormValue:function(e,t){var n,r;S({startDate:null!==(n=null==t?void 0:t[0])&&void 0!==n?n:null,endDate:null!==(r=null==t?void 0:t[1])&&void 0!==r?r:null,selectedOption:e})},displayRangeText:!1})}),(0,h.jsx)(a.default,{label:(0,d.A)("Email"),name:"recipient_email",type:"email",value:O,onFormValue:function(e){var t;j(null!==(t=null==e?void 0:e.value)&&void 0!==t?t:""),N([])},errors:E,showErrors:!0,className:"mt-4 mb-4","data-testid":"ds-reports-email-input"}),(0,h.jsx)(o.default,{onClick:function(){var e;(function(){var e,t=null!==(e=null==O?void 0:O.trim())&&void 0!==e?e:"";if(null==_||!_.startDate||null==_||!_.endDate)return(0,g.A)((0,d.A)("Please select a start and end date"),"error"),!1;if(_.startDate>_.endDate)return(0,g.A)((0,d.A)("Start date must be before end date"),"error"),!1;var n=(0,m.A)("isEmail",t,(0,d.A)("Enter an email address"));return n?(N(n),!1):(N([]),t!==O&&j(t),!0)})()&&I.mutate({df_dmin:P(_.startDate),df_dmax:P((0,y.D)(_.endDate)),recipient_email:null!==(e=null==O?void 0:O.trim())&&void 0!==e?e:""},{onSuccess:function(e){var t,n;(0,g.A)(null!==(t=null==e||null===(n=e.data)||void 0===n?void 0:n.message)&&void 0!==t?t:(0,d.A)("Processing report..."),"success")},onError:function(){(0,g.A)((0,d.A)("Export failed to process"),"error")}})},"data-testid":"ds-reports-submit-button",children:(0,d.A)("Submit")})]})]})})}},39313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(25751)),o=n(99018),a=s(n(9486)),i=s(n(40803)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=["className","label","name","id","formData","onFormValue","disabled","placeholder","required","errors","value","size","hintText","showErrors","resizable"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=r.default;function g(e){var t,n,r,s=e.className,c=void 0===s?"":s,d=e.label,p=void 0===d?"":d,m=e.name,g=void 0===m?"":m,y=e.id,h=void 0===y?"":y,x=(e.formData,e.onFormValue),b=void 0===x?function(){}:x,v=e.disabled,A=void 0!==v&&v,_=e.placeholder,S=void 0===_?"":_,w=e.required,O=void 0!==w&&w,j=e.errors,k=void 0===j?[]:j,E=e.value,N=void 0===E?"":E,I=e.size,P=void 0===I?"md":I,T=e.hintText,C=void 0===T?"":T,R=e.showErrors,M=void 0!==R&&R,L=e.resizable,D=void 0!==L&&L,B=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u),U=null!==(t=null!==(n=null!==(r=B["data-testid"])&&void 0!==r?r:h)&&void 0!==n?n:g)&&void 0!==t?t:"textarea",F=(0,o.classNames)("display-x1lliihq resize-xtt52l0 width-xh8yej3 fontSize-xif65rj fontWeight-xk50ysn lineHeight-x1fc57z9 minHeight-x1k8w1vr padding-x15x03d9 backgroundColor-x18oya0d backgroundColor-x13ihzrn backgroundColor-x6x3n68 color-x1jsblnb color-x1atpp90 color-xe4m138 border-xct47cs border-x1r62wwx outline-x1a2a7pz outline-x27j11 boxShadow-x1qzktc2 borderRadius-x12oqio5",D&&"resize-x288g5",k.length>0&&M&&"border-x1vbwh7a outline-xzd0ubt",c);return(0,l.jsxs)("div",{children:[p&&(0,l.jsx)(a.default,{htmlFor:h||g,className:"marginBottom-x1e56ztr",size:P,disabled:A,children:p}),(0,l.jsx)("textarea",f({name:g,value:N,className:F,onChange:function(e){var t;b({name:g,value:null!==(t=e.target.value)&&void 0!==t?t:""})},disabled:A,placeholder:S,id:h||g,"data-testid":h||g,required:O},B)),C&&(k.length<1||!M)&&(0,l.jsx)("div",f(f({},{className:"fontSize-xif65rj fontWeight-xo1l8bm lineHeight-x1fc57z9 marginTop-x1xmf6yo color-x1jsblnb color-x1atpp90","data-style-src":"TextArea/index.tsx:49"}),{},{children:C})),k.length>0&&M&&(0,l.jsx)(i.default,{errors:k,dataTestId:"".concat(U,"-error")})]})}m(".display-x1lliihq{display:block}",3e3),m(".resize-xtt52l0{resize:none}",3e3),m(".width-xh8yej3{width:100%}",4e3),m(".fontSize-xif65rj{font-size:14px}",3e3),m(".fontWeight-xk50ysn{font-weight:500}",3e3),m(".lineHeight-x1fc57z9{line-height:20px}",3e3),m(".minHeight-x1k8w1vr{min-height:128px}",4e3),m(".padding-x15x03d9{padding:10px 14px}",1e3),m(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),m(".backgroundColor-x13ihzrn:disabled{background-color:var(--gray250-x1kpk87u)}",3092),m(".backgroundColor-x6x3n68:disabled:hover{background-color:var(--gray250-x1kpk87u)}",3040),m(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),m(".color-x1atpp90:disabled{color:var(--black200-xao0axe)}",3092),m(".color-xe4m138::placeholder{color:var(--black200-xao0axe)}",8e3),m(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),m(".border-x1r62wwx:focus{border:1px solid var(--oldBrand600-x1t41vhw)}",1150),m(".outline-x1a2a7pz{outline:none}",2e3),m(".outline-x27j11:focus{outline:4px solid var(--secondary200-xut29wu)}",2150),m(".boxShadow-x1qzktc2{box-shadow:0 1px 2px 0 #0A0D120D}",3e3),m(".borderRadius-x12oqio5{border-radius:4px}",2e3),m(".resize-x288g5{resize:vertical}",3e3),m(".border-x1vbwh7a{border:1px solid var(--error500-x1idp37q)!important}",1e3),m(".outline-xzd0ubt{outline:none!important}",2e3),m(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),m(".fontWeight-xo1l8bm{font-weight:400}",3e3),m(".marginTop-x1xmf6yo{margin-top:8px}
2",4e3),g.displayName="Input.TextArea",t.default=g},39317:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=s(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=s(n(79135)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=o.default;p(".height-x1s1d1n7{height:35px}",4e3),p(".width-x1n7h9c3{width:35px}",4e3),p(".borderWidth-xdh2fpr{border-width:2px}",2e3),p(".borderStyle-x1y0btm7{border-style:solid}",2e3),p(".borderRadius-x16rqkct{border-radius:50%}",2e3),p(".display-x78zum5{display:flex}",3e3),p(".justifyContent-xl56j7k{justify-content:center}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".paddingTop-x1nn3v0j{padding-top:2px}",4e3),p(".paddingLeft-x6wrskw{padding-left:4px}",4e3),p(".color-xlmegbm{color:var(--grey900-x96mn3q)}",3e3),p(".flexShrink-x2lah0s{flex-shrink:0}",3e3),p(".borderColor-x144hvrs{border-color:var(--success400-xixbfeu)}",2e3),p(".backgroundColor-x17behm0{background-color:var(--success100-x14um8e)}",3e3),p(".borderColor-xe3ixw2{border-color:var(--warning300-x13ttzvr)}",2e3),p(".backgroundColor-xb8t6b3{background-color:var(--warning100-x12ln9i7)}",3e3),p(".borderColor-xk0t9l9{border-color:var(--error500-x1idp37q)}",2e3),p(".backgroundColor-x1ovo3ll{background-color:var(--error300-x1etg42b)}",3e3);var m={circle:{height:"height-x1s1d1n7",width:"width-x1n7h9c3",borderWidth:"borderWidth-xdh2fpr",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:"borderStyle-x1y0btm7",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderRadius:"borderRadius-x16rqkct",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,display:"display-x78zum5",justifyContent:"justifyContent-xl56j7k",alignItems:"alignItems-x6s0dn4",paddingTop:"paddingTop-x1nn3v0j",paddingLeft:"paddingLeft-x6wrskw",paddingInlineStart:null,paddingInlineEnd:null,color:"color-xlmegbm",flexShrink:"flexShrink-x2lah0s",$$css:"TypeBadge/index.tsx:7"},legitimate:{borderColor:"borderColor-x144hvrs",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,backgroundColor:"backgroundColor-x17behm0",$$css:"TypeBadge/index.tsx:21"},suspicious:{borderColor:"borderColor-xe3ixw2",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,backgroundColor:"backgroundColor-xb8t6b3",$$css:"TypeBadge/index.tsx:25"},invalid:{borderColor:"borderColor-xk0t9l9",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,backgroundColor:"backgroundColor-x1ovo3ll",$$css:"TypeBadge/index.tsx:29"}};t.A=function(e){var t=e.type;return(0,l.jsx)("div",d(d({},a.props(m.circle,m[t])),{},{children:(0,l.jsx)(i.default,{name:["far","location-arrow"],flip:"horizontal",size:"lg"})}))}},39347:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=u(n(79135)),s=u(n(9486)),c=n(31085);function u(e){return e&&e.__esModule?e:{default:e}}var d=["options","placeholder","hint","id","label","subLabel","value","onChange","menuHeight","menuPlacement","menuIsOpen","dataTestId","singleValueInterface","name","onFormValue"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=o.default;h(".fontSize-xif65rj{font-size:14px}",3e3),h(".fontWeight-xo1l8bm{font-weight:400}",3e3),h(".lineHeight-x1fc57z9{line-height:20px}",3e3),h(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),h(".fontSize-xfifm61{font-size:12px}",3e3),h(".lineHeight-xd4r4e8{line-height:18px}",3e3),h(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),h(".marginTop-x1gslohp{margin-top:4px}",4e3),h(".marginTop-x1xmf6yo{margin-top:8px}",4e3),h(".position-x1n2onr6{position:relative}",3e3),h(".width-xh8yej3{width:100%}",4e3),h(".borderRadius-xur7f20{border-radius:8px}",2e3),h(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),h(".fontSize-x1j61zf2{font-size:16px}",3e3),h(".height-xn3w4p2{height:44px}",4e3),h(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),h(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),h(".textAlign-xdpxx8g{text-align:left}",3e3),h(".display-x1rg5ohu{display:inline-block}",3e3),h(".padding-x1ff1495{padding:8px 16px}",1e3),h(".boxShadow-x1pymu47{box-shadow:0 1 2 0 var(--gray900-xevft2h)}",3e3),h(".border-xnq5hr{border:1px solid var(--oldBrand600-x1t41vhw)}",1e3),h(".outline-x1ly2zzd{outline:4px solid var(--secondary200-xut29wu)}",2e3),h(".top-xe8fvb2{top:54px}",4e3),h(".padding-xfawy5m{padding:4px}",1e3),h(".background-x1h3gynt{background:var(--white-x3n8fk9)}",1e3),h(".zIndex-xfo81ep{z-index:1000}",3e3),h(".position-x10l6tqk{position:absolute}",3e3),h(".overflowY-x1odjw0f{overflow-y:auto}",4e3),h(".padding-x6yrr3s{padding:10px 12px}",1e3),h(".cursor-x1ypdohk{cursor:pointer}",3e3),h(".borderRadius-x12oqio5{border-radius:4px}",2e3),h(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),h(".marginBottom-x12nagc{margin-bottom:4px}",4e3),h(".background-x1we27kq:hover{background:var(--gray100-x1llswo5)}",1130),h(".marginTop-xr9ek0c{margin-top:2px}",4e3),h(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),h(".backgroundImage-xdxg3sc{background-image:url(\"data:image/svg+xml,%3Csvg width='12' height='10' viewB
2ox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4.5 8.5L11 1' stroke='%236941C6' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")}",3e3),h(".backgroundRepeat-xiy17q3{background-repeat:no-repeat}",3e3),h(".backgroundPosition-xwnod0w{background-position:calc(100% - 19px) center!important}",2e3),h(".marginLeft-xet2fuk{margin-left:8px}",4e3);var x={customSelectControl:{borderRadius:"borderRadius-xur7f20",border:"border-x180m19u",fontSize:"fontSize-x1j61zf2",height:"height-xn3w4p2",width:"width-xh8yej3",color:"color-x5tu7p5",backgroundColor:"backgroundColor-x18oya0d",textAlign:"textAlign-xdpxx8g",display:"display-x1rg5ohu",padding:"padding-x1ff1495",boxShadow:"boxShadow-x1pymu47",$$css:"Select/index.tsx:33"},customSelectControlIsOpen:{border:"border-xnq5hr",outline:"outline-x1ly2zzd",$$css:"Select/index.tsx:46"},customSelectOption:{padding:"padding-x6yrr3s",cursor:"cursor-x1ypdohk",borderRadius:"borderRadius-x12oqio5",color:"color-x1jsblnb",fontSize:"fontSize-x1j61zf2",marginBottom:"marginBottom-x12nagc",background:"background-x1h3gynt background-x1we27kq",$$css:"Select/index.tsx:63"},selectedItem:{backgroundColor:"backgroundColor-xq18l50",backgroundImage:"backgroundImage-xdxg3sc",backgroundRepeat:"backgroundRepeat-xiy17q3",backgroundPosition:"backgroundPosition-xwnod0w",$$css:"Select/index.tsx:81"}};function b(e){var t,n,r=e.options,o=void 0===r?[]:r,u=e.placeholder,f=void 0===u?"":u,m=e.hint,h=void 0===m?"":m,b=e.id,v=void 0===b?"select-dropdown":b,A=e.label,_=void 0===A?"":A,S=e.subLabel,w=void 0===S?"":S,O=e.value,j=void 0===O?[]:O,k=e.onCh
2ange,E=void 0===k?function(){}:k,N=e.menuHeight,I=void 0===N?320:N,P=e.menuPlacement,T=void 0===P?"auto":P,C=e.menuIsOpen,R=e.dataTestId,M=void 0===R?"select-dropdown":R,L=e.singleValueInterface,D=void 0!==L&&L,B=e.name,U=void 0===B?"":B,F=e.onFormValue,G=void 0===F?function(){}:F,W=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d),z=(t=(0,a.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),V=z[0],q=z[1],K=(0,a.useRef)(null),H="boolean"==typeof C?C:V;function Y(){if(Array.isArray(j)&&j.length>0)return j[0];if(D){var e="object"===g(j)&&null!==j?j.value:j;return o.find(function(t){return t.value===e})}return j}function $(e){D?G({name:U,value:e.value}):E(e),"boolean"!=typeof C&&q(!1)}function Z(e){"boolean"!=typeof C&&K.current&&!K.current.contains(e.target)&&q(!1)}function X(e){var t=Y();return!!t&&(Array.isArray(t)?t.some(function(t){return t.value===e.value}):e.value===t.value)}(0,a.useEffect)(function(){return document.addEventListener("mousedown",Z),function(){document.removeEventListener("mousedown",Z)}},[]);var J=Y(),Q="string"==typeof(null==J?void 0:J.label)?J.label:f;return(0,c.jsxs)("div",p(p({},W),{},{children:[_&&(0,c.jsx)(s.default,{className:"fontSize-xif65rj fontWeight-xo1l8bm lineHeight-x1fc57z9 marginBottom-x1e56ztr",htmlFor:v||U,children:_}),w&&(0,c.jsx)("div",p(p({},{className:"fontSize-xfifm61 fontWeight-xo1l8bm lineHeight-xd4r4e8 color-x1r9fet4 marginTop-x1gslohp marginBottom-x1e56ztr","data-style-src":"Select/index.tsx:15"}),{},{children:w})),(0,c.jsxs)("div",p(p({},{className:"position-x1n2onr6 width-xh8yej3","data-style-src":"Select/index.tsx:29"}),{},{ref:K,children:[(0,c.jsx)("button",p(p({type:"button"},i.props(x.customSelectControl,V&&x.customSelectControlIsOpen)),{},{onClick:function(){"boolean"!=typeof C&&q(function(e){return!e})},"aria-haspopup":"listbox","aria-label":Q,title:"dropdown select - ".concat(Q),"aria-expanded":H,"data-testid":M||v,children:(0,c.jsxs)("span",{className:"distribute-space-between v-align-center",style:{width:"100%"},children:[(0,c.jsx)("span",{children:Q}),!H&&(0,c.jsx)(l.default,p({name:"chevron-up"},{className:"marginLeft-xet2fuk","data-style-src":"Select/index.tsx:87"})),H&&(0,c.jsx)(l.default,p({name:"chevron-down"},{className:"marginLeft-xet2fuk","data-style-src":"Select/index.tsx:87"}))]})})),H&&(0,c.jsx)("ul",p(p({},{className:"top-xe8fvb2 borderRadius-xur7f20 border-x180m19u padding-xfawy5m background-x1h3gynt zIndex-xfo81ep position-x10l6tqk width-xh8yej3 overflowY-x1odjw0f","data-style-src":"Select/index.tsx:50"}),{},{style:p({maxHeight:I},"top"===T?{top:"auto",bottom:54}:{top:54,bottom:"auto"}),role:"listbox","aria-label":"Select an option",children:o.map(function(e){return(0,c.jsx)("li",p(p({},i.props(x.customSelectOption,X(e)&&x.selectedItem)),{},{role:"option",tabIndex:-1,"data-testid":"".concat(M,"-option-").concat(e.value),"aria-selected":X(e),onClick:function(){return $(e)},onKeyDown:function(t){return"Enter"===t.key&&$(e)},children:(0,c.jsxs)("div",{children:[e.label,e.subLabel&&(0,c.jsx)("div",p(p({},{className:"fontSize-xfifm61 fontWeight-xo1l8bm color-x1r9fet4 marginTop-xr9ek0c","data-style-src":"Select/index.tsx:75"}),{},{children:e.subLabel}))]})}),e.value)})}
2))]})),h?(0,c.jsx)("p",p(p({},{className:"fontSize-xif65rj fontWeight-xo1l8bm lineHeight-x1fc57z9 marginTop-x1xmf6yo","data-style-src":"Select/index.tsx:23"}),{},{children:h})):null]}))}b.displayName="Input.Select",t.default=b},39409:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=x(n(25751)),a=h(n(14041)),i=n(18141),l=n(60156),s=h(n(76969)),c=x(n(79135)),u=x(n(62720)),d=x(n(93513)),f=n(82672),p=x(n(9260)),m=x(n(73055)),g=x(n(97356)),y=n(31085);function h(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(h=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function x(e){return e&&e.__esModule?e:{default:e}}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}var v=["requestParams","onRequestParams","config","onSelectedAccounts","apiData","alignRight"];function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j=o.default;j(".position-x1n2onr6{position:relative}",3e3),j(".width-xezivpi{width:max-content}",4e3),j(".display-x3nfvp2{display:inline-flex}",3e3),j(".marginRight-x1db2dqx{margin-right:8px}",4e3),j(".height-xqvfhly{height:45px}",4e3),j(".borderRadius-x1f96onm{border-radius:50px}",2e3),j(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),j(".display-x78zum5{display:flex}",3e3),j(".alignItems-x6s0dn4{align-items:center}",3e3),j(".paddingLeft-xnm25rq{padding-left:16px}",4e3),j(".paddingRight-xyfqnmn{padding-right:16px}",4e3),j(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),j(".fontSize-xif65rj{font-size:14px}",3e3),j(".borderWidth-xmkeg23{border-width:1px}",2e3),j(".borderStyle-x1y0btm7{border-style:solid}",2e3),j(".borderColor-x1wcvari{border-color:var(--gray300-x1xk3734)}",2e3),j(".borderColor-x1gn6vs3{border-color:var(--oldBrand600-x1t41vhw)}",2e3),j(".marginLeft-xet2fuk{margin-left:8px}",4e3),j(".paddingTop-x13zrc24{padding-top:40px}",4e3),j(".width-x1cp7mul{width:620px}",4e3),j(".borderRadius-x1khhgft{border-radius:24px}",2e3),j(".position-x10l6tqk{position:absolute}",3e3),j(".top-xbssg55{top:50px}
2",4e3),j(".left-xu96u03{left:0}",4e3),j(".zIndex-xzkaem6{z-index:3}",3e3),j(".boxShadow-x11xbq59{box-shadow:0 32px 64px -12px rgba(34,34,34,.14)}",3e3),j(".right-x3m8u43{right:0}",4e3),j(".left-x1t8mvi6{left:auto}",4e3),j(".top-xmhk92p{top:20px}",4e3),j(".right-xfjxoi1{right:26px}",4e3),j(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),j(".paddingLeft-x1rpv2kp{padding-left:56px}",4e3),j(".paddingRight-xkhz7bo{padding-right:56px}",4e3),j(".marginBottom-xieb3on{margin-bottom:20px}",4e3),j(".fontSize-xwsyq91{font-size:20px}",3e3),j(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),j(".marginTop-xw7yly9{margin-top:16px}",4e3),j(".color-x1iviald{color:var(--error600-x1indqeg)}",3e3),j(".height-xn3w4p2{height:44px}",4e3),j(".width-xh8yej3{width:100%}",4e3),j(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),j(".borderBottomWidth-xso031l{border-bottom-width:1px}",4e3),j(".borderBottomStyle-x1q0q8m5{border-bottom-style:solid}",4e3),j(".borderBottomColor-xti7itt{border-bottom-color:var(--gray250-x1kpk87u)}",4e3),j(".borderTopWidth-x178xt8z{border-top-width:1px}",4e3),j(".borderTopStyle-x13fuv20{border-top-style:solid}",4e3),j(".borderTopColor-x1q6bav7{border-top-color:var(--gray250-x1kpk87u)}",4e3),j(".height-x16nrsnc{height:400px}",4e3),j(".overflow-xysyzu8{overflow:auto}",2e3),j(".minHeight-xefclja{min-height:88px}",4e3),j(".paddingLeft-xg3sno2{padding-left:44px}",4e3),j(".marginLeft-x1tpqehw{margin-left:12px}",4e3),j(".justifyContent-xl56j7k{justify-content:center}",3e3),j(".flexDirection-xdt5ytf{flex-direction:column}",3e3),j(".fontWeight-x1s688f{font-weight:600}",3e3),j(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),j(".fontWeight-xo1l8bm{font-weight:400}",3e3),j(".justifyContent-x1qughib{justify-content:space-between}",3e3),j(".paddingTop-x1miatn0{padding-top:32px}",4e3),j(".paddingBottom-x1gan7if{padding-bottom:32px}",4e3),j(".fontSize-x1j61zf2{font-size:16px}",3e3),j(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3),j(".gap-x1v2ro7d{gap:12px}",2e3);var k={filtersButton:{height:"height-xqvfhly",width:"width-xezivpi",borderRadius:"borderRadius-x1f96onm",backgroundColor:"backgroundColor-x18oya0d",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",paddingLeft:"paddingLeft-xnm25rq",paddingRight:"paddingRight-xyfqnmn",color:"color-x5tu7p5",fontSize:"fontSize-xif65rj",borderWidth:"borderWidth-xmkeg23",borderStyle:"borderStyle-x1y0btm7",borderColor:"borderColor-x1wcvari",$$css:"AwAccountSelect/index.tsx:31"},activeButton:{borderColor:"borderColor-x1gn6vs3",$$css:"AwAccountSelect/index.tsx:46"},menuContainer:{paddingTop:"paddingTop-x13zrc24",width:"width-x1cp7mul",backgroundColor:"backgroundColor-x18oya0d",borderRadius:"borderRadius-x1khhgft",position:"position-x10l6tqk",top:"top-xbssg55",left:"left-xu96u03",zIndex:"zIndex-xzkaem6",boxShadow:"boxShadow-x11xbq59",$$css:"AwAccountSelect/index.tsx:52"},positionRight:{right:"right-x3m8u43",left:"left-x1t8mvi6",$$css:"AwAccountSelect/index.tsx:63"}};function E(e){var t=e.requestParams,n=e.onRequestParams,r=e.config,o=e.onSelectedAccounts,h=e.apiData,x=void 0===h?{}:h,b=e.alignRight,A=void 0!==b&&b,S=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,v),O=(0,a.useRef)(null),j=w((0,a.useState)(!0),2),E=j[0],N=j[1],I=w((0,a.useState)([]),2),P=I[0],T=I[1],C=w((0,a.useState)(!1),2),R=C[0],M=C[1],L=w((0,a.useState)(!1),2),D=L[0],B=L[1],U=w((0,a.useState)([]),2),F=U[0],G=U[1],W=w((0,a.useState)(!1),2),z=W[0],V=W[1],q=w((0,a.useState)(""),2),K=q[0],H=q[1],Y=w((0,a.useState)({lastRequestedDirection:"append",pageStart:1,pageEnd:1,totalResults:0,totalPages:0,apiResponseDataKey:r.apiResponseDataKey,maxNoPages:r.maxNoPages}),2),$=Y[0],Z=Y[1];function X(){null!=O.current&&(O.current.scrollTop=0)}(0,a.useEffect)(function(){var e,t,n,r,o;null!=(null==x||null===(e=x.result)||void 0===e?void 0:e.adwords_customers)&&(t=x.result,r=(n=(0,g.default)(t,P,$)).listD,o=n.lazyL,N(!1),T(r),Z(o),0===r.length&&X())},[x]);var J=(0,a.useCallback)((0,m.default)(function(){if(!(E||t.pagination.current_page>=$.totalPages)){N(!0);var e=(0,i.clone)(t);e.pagination.current_page=$.pageEnd+1,Z(_(_({},$),{},{lastRequestedDirection:"append"})),n(e)}},50),[n,E,t,$]);function Q(){B(!1),G([]),V(!1)}var ee=(0,a.useCallback)((0,m.default)(function(){var e,r,o;r=String(null!==(e=arguments.length<=0?void 0:arguments[0])&&void 0!==e?e:""),(o=(0,i.clone)(t)).searchKeys.descriptive_name!==r&&(N(!0),o.searchKeys.descriptive_name=r,o.pagination.current_page=1,n(o),T([]),Z(_(_({},$),{},{pageStart:1,pageEnd:1,lastRequestedDirection:"append"})),Q())},500),[t,$]);return(0,a.useEffect)(function(){ee(K)},[K]),(0,y.jsx)("div",_(_(_({"data-testid":"filter-searched-selection"},{className:"position-x1n2onr6 width-xezivpi display-x3nfvp2 marginRight-x1db2dqx","data-style-src":"AwAccountSelect/index.tsx:25"}),S),{},{children:(0,y.jsxs)(d.default,{onClickOutside:function(){H(""),M(!1)},children:[(0,y.jsxs)("button",_(_({type:"button","data-testid":"filter-searched-selection-button"},s.props(k.filtersButton,R&&k.activeButton)),{},{onClick:function(){M(!R)},children:[(0,l.language)("Add Accounts"),!R&&(0,y.jsx)(c.default,_({name:"chevron-up"},{className:"marginLeft-xet2fuk","data-style-src":"AwAccountSelect/index.tsx:49"})),R&&(0,y.jsx)(c.default,_({name:"chevron-down"},{className:"marginLeft-xet2fuk","data-style-src":"AwAccountSelect/index.tsx:49"}))]})),R&&(0,y.jsxs)("div",_(_({},s.props(k.menuContainer,A&&k.positionRight)),{},{"data-testid":"main-filter-menu",children:[(0,y.jsx)("div",_(_({},{className:"position-x10l6tqk top-xmhk92p right-xfjxoi1 color-xbdn2ka","data-style-src":"AwAccountSelect/index.tsx:67"}),{},{children:(0,y.jsx)("button",{type:"button",onClick:function(){M(!1)},children:(0,y.jsx)(c.default,{name:"times"})})})),(0,y.jsxs)("div",_(_({},{className:"paddingLeft-x1rpv2kp paddingRight-xkhz7bo marginBottom-xieb3on","data-style-src":"AwAccountSelect/index.tsx:73"}),{},{children:[(0,y.jsx)("h1",_(_({},{className:"fontSize-xwsyq91 color-x18k1rwp","data-style-src":"AwAccountSelect/index.tsx:78"}),{},{children:(0,l.language)("Accounts")})),(0,y.jsx)("h1",_(_({},{className:"fontSize-xif65rj color-xbdn2ka","data-style-src":"AwAccountSelect/index.tsx:82"}),{},{children:"".concat((0,l.language)("Showing")," ").concat($.totalResults," ").concat(r.labelIdentifier)})),(0,y.jsx)("div",_(_({},{className:"marginTop-xw7yly9 marginBottom-xieb3on","data-style-src":"AwAccountSelect/index.tsx:86"}),{},{children:(0,y.jsx)(u.default,{size:"md",value:K,placeholder:(0,l.language)("Search :labelIdentifier",{labelIdentifier:r.labelIdentifier}),iconLeft:"fas fa-search",onChange:function(e){H(e.target.value)}})})),z&&(0,y.jsxs)("div",_(_({},{className:"display-x78zum5 alignItems-x6s0dn4 fontSize-xif65rj color-x1iviald","data-style-src":"AwAccountSelect/index.tsx:90"}),{},{children:[(0,y.jsx)(c.default,{name:"exclamation"}),(0,l.language)("Choose a maximum of 100 specific accounts or select all.")]}))]})),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",_({},{className:"height-xn3w4p2 width-xh8yej3 backgroundColor-xq18l50 borderBottomWidth-xso031l borderBottomStyle-x1q0q8m5 borderBottomColor-xti7itt borderTopWidth-x178xt8z borderTopStyle-x13fuv20 borderTopColor-x1q6bav7","data-style-src":"AwAccountSelect/index.tsx:96"})),(0,y.jsxs)("div",_(_({ref:O,onScroll:function(){if(!(E||t.pagination.current_page>=$.totalPages)&&null!=O.current){var e=O.current,n=e.scrollTop,r
2=e.scrollHeight;n+e.clientHeight>=r&&J()}}},{className:"width-xh8yej3 height-x16nrsnc overflow-xysyzu8","data-style-src":"AwAccountSelect/index.tsx:107"}),{},{children:[P.map(function(e){return(0,y.jsx)(a.default.Fragment,{children:e.items.map(function(e){return(0,a.createElement)("div",_(_({},{className:"minHeight-xefclja display-x78zum5 alignItems-x6s0dn4 paddingLeft-xg3sno2 borderBottomWidth-xso031l borderBottomStyle-x1q0q8m5 borderBottomColor-xti7itt width-xh8yej3","data-style-src":"AwAccountSelect/index.tsx:112"}),{},{key:"".concat(String(e.id),"-").concat(String(e[r.col1DataKey]))}),(0,y.jsx)("div",_(_({},{className:"display-x78zum5 alignItems-x6s0dn4 fontSize-xif65rj color-x5tu7p5 marginLeft-x1tpqehw","data-style-src":"AwAccountSelect/index.tsx:122"}),{},{children:(0,y.jsx)(u.default.Checkbox,{value:(0,f.isSelected)(e,F)||D,name:"checkbox-".concat(String(e.id)),onClick:function(){!function(e){100!==F.length||F.includes(e)?(G((0,f.selectItem)(e,F)),B(!1),V(!1)):V(!0)}(e)}})})),(0,y.jsx)("div",_(_({},{className:"display-x78zum5 alignItems-x6s0dn4 fontSize-xif65rj color-x5tu7p5 marginLeft-x1tpqehw","data-style-src":"AwAccountSelect/index.tsx:122"}),{},{children:(0,y.jsxs)("div",_(_({},{className:"display-x78zum5 flexDirection-xdt5ytf","data-style-src":"AwAccountSelect/index.tsx:133"}),{},{children:[(0,y.jsx)("div",_(_({},{className:"color-x18k1rwp fontWeight-x1s688f","data-style-src":"AwAccountSelect/index.tsx:137"}),{},{children:String(e[r.col1DataKey])})),(0,y.jsx)("div",_(_({},{className:"color-x1r9fet4 fontWeight-xo1l8bm","data-style-src":"AwAccountSelect/index.tsx:141"}),{},{children:e.aw_id}))]}))})))})},"page-".concat(e.page))}),(0,y.jsxs)("div",_(_({},{className:"minHeight-xefclja display-x78zum5 alignItems-x6s0dn4 paddingLeft-xg3sno2 borderBottomWidth-xso031l borderBottomStyle-x1q0q8m5 borderBottomColor-xti7itt width-xh8yej3","data-style-src":"AwAccountSelect/index.tsx:112"}),{},{children:[E&&(0,y.jsxs)("div",_(_({},{className:"display-x78zum5 alignItems-x6s0dn4 fontSize-xif65rj marginLeft-x1tpqehw justifyContent-xl56j7k color-xbdn2ka","data-style-src":"AwAccountSelect/index.tsx:122; AwAccountSelect/index.tsx:129"}),{},{children:[(0,y.jsx)(c.default,{name:"spinner",pulse:!0}
2),(0,l.language)("Loading Results...")]})),!E&&0===P.length&&(0,y.jsx)("div",_(_({},{className:"display-x78zum5 alignItems-x6s0dn4 fontSize-xif65rj marginLeft-x1tpqehw justifyContent-xl56j7k color-xbdn2ka","data-style-src":"AwAccountSelect/index.tsx:122; AwAccountSelect/index.tsx:129"}),{},{children:(0,l.language)("No Results Found")}))]}))]}))]}),(0,y.jsxs)("div",_(_({},{className:"width-xh8yej3 display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4 borderTopWidth-x178xt8z borderTopStyle-x13fuv20 borderTopColor-x1q6bav7 paddingLeft-x1rpv2kp paddingRight-xkhz7bo paddingTop-x1miatn0 paddingBottom-x1gan7if","data-style-src":"AwAccountSelect/index.tsx:145"}),{},{children:[(0,y.jsx)("div",_(_({},{className:"fontSize-x1j61zf2 color-x14ptq3k","data-style-src":"AwAccountSelect/index.tsx:158"}),{},{children:(0,l.language)(":length of :total selected",{length:F.length.toString(),total:$.totalResults.toString()})})),(0,y.jsxs)("div",_(_({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d","data-style-src":"AwAccountSelect/index.tsx:162"}),{},{children:[(0,y.jsx)(p.default,{size:"md",preset:"secondary",onClick:function(){""!==t.searchKeys[r.apiSortKey]&&H(""),X(),Q()},children:(0,l.language)("Clear")}),(0,y.jsx)(p.default,{size:"md",preset:"primary","data-testid":"add-aw-accounts-button",onClick:function(){o(F),G([]),H(""),M(!1)},children:(0,l.language)("Add")})]}))]}))]}))]})}))}E.displayName="AwAccountSelect",t.A=E},39599:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=f(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=f(n(79135)),s=f(n(62720)),c=n(4386),u=f(n(36313)),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e){var t,n,r,o,f,p,g,x=e.filter,b=e.setFilter,v=e.filters,A=(p=(0,a.useState)(!1),g=2,function(e){if(Array.isArray(e))return e}(p)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(p,g)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(p,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_=A[0],S=A[1],w=(0,a.useRef)(null),O=(0,c.getFilterTestId)(null!==(t=x.label)&&void 0!==t?t:x.name),j=null!==(n=v.find(function(e){return e.name===x.name}))&&void 0!==n?n:x,k=null===(r=j.options)||void 0===r?void 0:r[0],E=null==k?void 0:k.value,N="string"==typeof E?E:"".concat(null!=E?E:""),I="string"==typeof E?E.trim().length>0:Boolean(E),P=!(!(o=null==k?void 0:k.validationErrors)||"object"!==h(o))&&Object.keys(o).length>0;function T(e){var t=e.target;w.current&&t instanceof Node&&!w.current.contains(t)&&S(!1)}P?f=u.default.errorButton:I&&(f=u.default.activeButton),(0,a.useEffect)(function(){return document.addEventListener("mousedown",T),function(){document.removeEventListener("mousedown",T)}},[]);var C=N||"";return(0,d.jsxs)("div",m(m({},i.props(u.default.container)),{},{ref:w,"data-testid":"".concat(O,"-container"),children:[(0,d.jsx)("div",{"data-testid":P?"".concat(O,"-error-container"):void 0,children:(0,d.jsxs)("button",m(m({type:"button"},i.props(u.default.button,f,_&&u.default.buttonOpen)),{},{onClick:function(){S(function(e){return!e})},"aria-haspopup":"true","aria-expanded":_,"data-testid":"".concat(O,"-trigger"),children:[(0,d.jsx)("span",m(m({},i.props(u.default.buttonLabel)),{},{children:x.label})),(0,d.jsx)("span",m(m({},i.props(u.default.selectedValue)),{},{children:C})),(0,d.jsxs)("span",m(m({},i.props(u.default.iconWrapper)),{},{children:[!_&&(0,d.jsx)(l.default,{name:"chevron-up"}),_&&(0,d.jsx)(l.default,{name:"chevron-down"})]}))]}))}),_&&(0,d.jsx)("div",m(m({},i.props(u.default.dropdown)),{},{"data-testid":"".concat(O,"-menu"),children:(0,d.jsx)("div",m(m({},{className:"marginBottom-xat24cr","data-style-src":"SearchedDropdown/index.tsx:10"}),{},{children:(0,d.jsx)(s.default,{size:"sm",placeholder:"Search...",value:N,onChange:function(e){var t,n=e.currentTarget.value||"",r=(null===(t=j.options)||void 0===t?void 0:t.map(function(e,t){return 0===t?m(m({},e),{},{value:n}):e}))||[{name:"search",label:"Search",value:n,type:"text"}];b(m(m({},x),{},{options:r}))},iconLeft:"search","data-testid":"".concat(O,"-input")})}))}))]}))}(0,o.default)(".marginBottom-xat24cr{margin-bottom:0}",4e3),x.displayName="SearchedDropdown",t.A=x},39800:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11525);function o(e,t,n){var o,a,i=(0,r.A)(n),l=e[i.apiResponseDataKey];i.totalResults=e.pagination.total,i.totalPages=e.pagination.last_page,o=l.length>0&&null!==(a=function(e,t,n,o,a){var i=(0,r.A)(e);if(!e.some(function(e){return e.page===n})||1===n)return e.some(function(e){return e.page===n})&&1===n&&(i=[]),i.push({page:n,items:t}),(i=i.sort(function(e,t){return e.page-t.page})).length>a&&("append"===o?i.shift():i.pop()),i}(t,l,e.pagination.current_page,i.lastRequestedDirection,i.maxNoPages))&&void 0!==a?a:[];var s=function(e){return 0===e.length?{firstPage:1,lastPage:1}:{firstPage:e[0].page,lastPage:e[e.length-1].page}}(o),c=s.firstPage,u=s.lastPage;return i.pageStart=c,i.pageEnd=u,{listD:o,lazyL:i}}},39861:(e,t,n)=>{"use strict";e.exports=n.p+"1f8959917797f48bb74c.svg"}
2,39888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.useChatEntryIds)(),t=(0,i.useChatClient)().controller,n=o.default.useRef(null);return o.default.useEffect(function(){var e=0,r=t.subscribe(function(){cancelAnimationFrame(e),e=requestAnimationFrame(function(){var e=n.current;e&&(e.scrollTop=e.scrollHeight)})});return function(){cancelAnimationFrame(e),r()}},[t]),0===e.length?(0,s.jsx)("div",f(f({},{className:"flex-x98rzlu display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k padding-x15fnm84","data-style-src":"ChatTranscript/index.tsx:26"}),{},{children:(0,s.jsxs)("div",f(f({},{className:"display-x78zum5 flexDirection-xdt5ytf alignItems-x6s0dn4 gap-x167g77z textAlign-x2b8uid maxWidth-x1jkqq1h","data-style-src":"ChatTranscript/index.tsx:33"}),{},{children:[(0,s.jsx)("span",f(f({},{className:"fontSize-x1pvqxga color-x183cm2b","data-style-src":"ChatTranscript/index.tsx:41"}),{},{children:(0,s.jsx)(a.Icon,{name:["far","sparkles"]})})),(0,s.jsx)("p",f(f({},{className:"fontSize-x1j61zf2 fontWeight-x1s688f color-x1jsblnb","data-style-src":"ChatTranscript/index.tsx:45"}),{},{children:"Ask Lunio anything"})),(0,s.jsx)("p",f(f({},{className:"fontSize-x4z9k3i color-xbdn2ka lineHeight-x1evy7pa","data-style-src":"ChatTranscript/index.tsx:50"}),{},{children:"Grounded in this account's traffic quality, spend, and protection data."}))]}))})):(0,s.jsx)("div",f(f({ref:n},{className:"flex-x98rzlu minHeight-x2lwn1j overflowY-x1odjw0f overscrollBehavior-xish69e","data-style-src":"ChatTranscript/index.tsx:11"}),{},{children:(0,s.jsx)("div",f(f({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-xou54vl padding-x1tamke2 maxWidth-xwnkcuf marginLeft-x8x9d4c marginRight-xack27t","data-style-src":"ChatTranscript/index.tsx:17"}),{},{children:e.map(function(e){return(0,s.jsx)(l.default,{entryId:e},e)})}))}))};var r=c(n(25751)),o=c(n(14041)),a=n(45365),i=n(66753),l=c(n(33347)),s=n(31085);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=r.default;m(".flex-x98rzlu{flex:1}",2e3),m(".minHeight-x2lwn1j{min-height:0}",4e3),m(".overflowY-x1odjw0f{overflow-y:auto}",4e3),m(".overscrollBehavior-xish69e{overscroll-behavior:contain}",2e3),m(".display-x78zum5{display:flex}",3e3),m(".flexDirection-xdt5ytf{flex-direction:column}",3e3),m(".gap-xou54vl{gap:16px}",2e3),m(".padding-x1tamke2{padding:16px}",1e3),m(".maxWidth-xwnkcuf{max-width:720px}",4e3),m(".marginLeft-x8x9d4c{margin-left:auto}",4e3),m(".marginRight-xack27t{margin-right:auto}",4e3),m(".alignItems-x6s0dn4{align-items:center}",3e3),m(".justifyContent-xl56j7k{justify-content:center}",3e3),m(".padding-x15fnm84{padding:32px}",1e3),m(".gap-x167g77z{gap:8px}",2e3),m(".textAlign-x2b8uid{text-align:center}",3e3),m(".maxWidth-x1jkqq1h{max-width:280px}",4e3),m(".fontSize-x1pvqxga{font-size:24px}",3e3),m(".color-x183cm2b{color:var(--primary400-x6nrv7m)}",3e3),m(".fontSize-x1j61zf2{font-size:16px}",3e3),m(".fontWeight-x1s688f{font-weight:600}",3e3),m(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),m(".fontSize-x4z9k3i{font-size:13px}",3e3),m(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),m(".lineHeight-x1evy7pa{line-height:1.5}",3e3)},39966:(e,t,n)=>{"use strict";e.exports=n.p+"19fdc6b7ea06d2d06a83.svg"},40016:(e,t,n)=>{"use strict";t.A=void 0;var r=c(n(25751)),o=n(14041),a=n(45365),i=c(n(24131)),l=c(n(92201)),s=n(31085);
2function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g=r.default;g(".background-x1md70p1{background:transparent}",1e3),g(".borderBottomLeftRadius-xabvvm4{border-bottom-left-radius:8px}",4e3),g(".borderTopLeftRadius-x1k1lpwg{border-top-left-radius:8px}",4e3),g(".paddingRight-xnuq7ks{padding-right:12px}",4e3),t.A=function(e){var t,n,r=e.isLoading,c=e.data,u=void 0===c?[]:c,d=e.xTitle,p=e.yTitle,g=(t=(0,o.useState)(void 0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=g[0],h=g[1],x=u.map(function(e){return{total:e.clicks_total,fraudulent:e.clicks_fraudulent/e.clicks_total*100,rawFraudulent:e.clicks_fraudulent,label:e.kw||e.pl||e.placement||e.name,matchType:e.mt||e.advertising_channel_type}});return(0,s.jsxs)(s.Fragment,{children:[r&&(0,s.jsx)(a.LunioLoader,{loading:!0,height:400,preset:"dark",size:"responsive"}),(0,s.jsxs)(a.Grid.Row,{children:[(0,s.jsx)(a.Grid.Col,{className:null!=="paddingRight-xnuq7ks"?"paddingRight-xnuq7ks":"",children:!r&&x.length>1&&(0,s.jsx)("div",f(f({},{className:"background-x1md70p1 borderBottomLeftRadius-xabvvm4 borderTopLeftRadius-x1k1lpwg","data-style-src":"ScatterWithSidebar/index.tsx:15"}),{},{children:(0,s.jsx)(i.default,{data:x||[],xTitle:d,yTitle:p,onUserSelect:h})}))}),(0,s.jsx)(a.Grid.Col,{children:!r&&x.length>1&&(0,s.jsx)(l.default,{data:x||[],selected:y})})]})]})}},40296:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(19870),a=n(31085);const i=function(){var e=(0,r.R7)({recalc:1,"accountStatus.include_monitored":!0,"accountStatus.include_protected":!0,sortKey:"descriptive_name",sortOrder:"asc"}),t=e.filters,n=e.handlePagination,i=e.setFilters,l=(0,r.st)("/aw/customers",t,function(e){var t="&include_monitored=".concat(Boolean(null==e?void 0:e["accountStatus.include_monitored"]).toString(),"&include_protected=").concat(Boolean(null==e?void 0:e["accountStatus.include_protected"]).toString(),"&include_disabled=").concat(Boolean(null==e?void 0:e["accountStatus.include_disabled"]).toString());return(null!=e&&e["accountName.startsWith"]||null!=e&&e["accountId.startsWith"])&&(t+="&descriptive_name=".concat(null!=e&&e["accountName.startsWith"]?encodeURIComponent(null==e?void 0:e["accountName.startsWith"]):encodeURIComponent(null==e?void 0:e["accountId.startsWith"]))),t}),s=l.data,c=l.isLoading;return(0,a.jsx)(o.A,{data:null==s?void 0:s.result,isLoading:c,handlePagination:n,activeFilters:t,onFilterChange:i})}}
2,40343:(e,t,n)=>{"use strict";n.d(t,{A:()=>d}),n(14041);var r=n(93817),o=n(72686),a=n(28426),i=n(27805),l=n(89748),s=n(93033),c=n(92523),u=n(31085);const d=function(){return(0,u.jsx)(s.A,{impersonatingOnly:!0,children:(0,u.jsxs)(a.A.Page,{type:"settings",children:[(0,u.jsx)(i.default,{title:(0,l.A)("IP Behaviour"),text:(0,l.A)("View detailed information about IP addresses interacting with your ads."),contentRight:(0,u.jsx)(c.default,{})}),(0,u.jsx)(o.default,{children:(0,u.jsx)(r.A,{})})]})})}},40433:(e,t,n)=>{"use strict";e.exports=n.p+"de2852f24c7aac0c59fe.svg"},40521:(e,t,n)=>{"use strict";n.d(t,{A:()=>G});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(13571),s=n(46389),c=n(1781),u=n(28426),d=n(79135),f=n(27805),p=n(62161),m=n(36990),g=n(47318),y=n(73657),h=n(89748),x=n(99018),b=n(93033),v=n(96182),A=n(77730),_=n(36549),S=n(98536),w=n(78806),O=n(44925),j=n(53145),k=n(86911),E=n(10780),N=n(31387),I=n(55015),P=n(71893),T=n(31085);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L(e,t,n){return(t=function(e){var t=function(e){if("object"!=C(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var U=(0,x.createUseStyles)(function(e){return{textCenter:{textAlign:"center","& button":{margin:"0 10px"},"& p":{marginBottom:20}},text:{color:e.colors.neutralTextWeak,marginTop:e.spacing[4],marginBottom:e.spacing[10]},campaign:{color:e.colors.neutralTextWeak},clickFilterContainerBelow:{display:"flex",justifyContent:"space-between",marginTop:e.spacing[5],marginBottom:e.spacing[5],"& .left":{display:"flex"}},button:{color:(0,x.findColour)(e,"grey",500)},searchedSelection:{marginLeft:e.spacing[2]},disabledText:{color:(0,x.findColour)(e,"grey",300)},tickBox:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.green[600]),display:"inline-flex",justifyContent:"center",alignItems:"center",color:e.colors.green[600],margin:"0 auto"},dashBox:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.neutralBorderStrong),display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.neutralBorderStrong,margin:"0 auto"}}});function F(e){var t,n,o,a=e.handleIpExclusion,x=D((0,v.A)(),1)[0],C=D((0,A.A)(),1)[0],R=D((0,_.A)(),1)[0],L=null!==(t=x.selectedPlatform)&&void 0!==t&&t.platform_title?null===(n=x.selectedPlatform)||void 0===n?void 0:n.platform_title:"",B=U(),F=D((0,r.useState)(!1),2),G=F[0],W=F[1],z=[{label:(0,h.A)("Keyword"),name:"keyword",type:"radio",queryKey:"keyword",queryTranslator:"textSearch",accessControl:{platforms:["google"]},options:[{label:(0,h.A)("Contains"),name:"contains",type:"text"}]},{label:(0,h.A)("Campaign Name"),name:"campaignName",type:"radio",queryKey:"campaign_name",queryTranslator:"textSearch",options:[{label:(0,h.A)("Contains"),name:"contains",type:"text"}]},{label:(0,h.A)("Campaign ID"),name:"campaignId",type:"radio",queryKey:"campaign_id",queryTranslator:"textSearch",accessControl:{platforms:["google"]},options:[{label:(0,h.A)("Contains"),name:"contains",type:"text"}]},{label:(0,h.A)("Device"),name:"device",type:"checkbox",queryKey:"device",queryTranslator:"arrayOfNames",options:[{label:(0,h.A)("Desktop"),shortLabel:(0,h.A)("Desktop"),t
2ype:"checkbox",name:"c",value:!1},{label:(0,h.A)("Mobile"),shortLabel:(0,h.A)("Mobile"),type:"checkbox",name:"m",value:!1},{label:(0,h.A)("Tablet"),shortLabel:(0,h.A)("Tablet"),type:"checkbox",name:"t",value:!1}]},{label:(0,h.A)("Country"),name:"country",type:"radio",queryKey:"country",queryTranslator:"textSearch",options:[{label:(0,h.A)("Contains"),name:"contains",type:"text"}]},{label:(0,h.A)("IP Address"),name:"ipAddress",type:"radio",queryKey:"ip",queryTranslator:"textSearch",options:[{label:(0,h.A)("equals"),name:"equals",type:"text"}]},{label:(0,h.A)("Sampled"),name:"inControlGroup",type:"checkbox",accessControl:{featureFlags:["DATA_SAMPLING"]},queryKey:"in_control_group",queryTranslator:"twoOptionBinaryCheckbox",options:[{label:(0,h.A)("Show Sampled"),shortLabel:(0,h.A)("Show Sampled"),type:"checkbox",name:"sampled"},{label:(0,h.A)("Show Non Sampled"),shortLabel:(0,h.A)("Show Non Sampled"),type:"checkbox",name:"nonSampled"}]},{label:(0,h.A)("Status"),name:"clickType",type:"radio",queryKey:"flags",queryTranslator:"singleTextValueRadio",options:[{label:(0,h.A)("All"),shortLabel:(0,h.A)("All"),type:"checkbox",name:"all",value:!0},{label:(0,h.A)("Legitimate"),shortLabel:(0,h.A)("Legitimate"),type:"radio",name:"legitimate",value:!1},{label:(0,h.A)("Suspicious"),shortLabel:(0,h.A)("Suspicious"),type:"radio",name:"suspicious",value:!1},{label:(0,h.A)("SIVT"),shortLabel:(0,h.A)("SIVT"),type:"radio",name:"fraudulent",value:!1},{label:(0,h.A)("GIVT"),shortLabel:(0,h.A)("GIVT"),type:"radio",name:"givt",value:!1}]}],V=(0,S.useApi)({url:"/analytics/adclicks",responseDataKey:"adclicks",filters:z,startDate:(0,O.o)(new Date),endDate:(0,w.D)(new Date),isGlobalAccountFilter:!0});return(0,T.jsxs)(u.A.Page,{type:"main",children:[(0,T.jsxs)(l.default,{open:Boolean(G),onClose:function(){return W(!1)},children:[(0,T.jsx)(l.default.Header,{}),(0,T.jsx)(l.default.Content,{children:(0,T.jsx)("div",{className:B.textCenter,children:(0,T.jsx)("p",{children:(0,h.A)("Are you sure you want to manually add :ip to your IP exclusions?",{ip:G.ip})})})}),(0,T.jsxs)(l.default.Actions,{children:[(0,T.jsx)(i.default,{onClick:function(){return W(!1)},"data-testid":"exclude-ip-button-cancel",preset:"outline",children:(0,h.A)("Cancel")}),(0,T.jsx)(i.default,{onClick:function(){a(G),W(!1)},"data-testid":"exclude-ip-button-confirm",children:(0,h.A)("Exclude IP")})]})]}),(0,T.jsx)(f.default,{title:"".concat(L," ").concat((0,h.A)("Clicks Log")),text:(0,h.A)("View the clicks being monitored by your Lunio account"),contentRight:(0,T.jsx)(I.A,{filters:V.activeFilters})}),(0,T.jsxs)("div",{className:B.clickFilterContainerBelow,children:[(0,T.jsxs)("div",{className:"left",children:["google"===(null==x||null===(o=x.selectedPlatform)||void 0===o?void 0:o.platform_name)&&(0,T.jsx)("div",{className:"mr-2",children:(0,T.jsx)(j.A,M({},V.accountSelectConnector))}),(0,T.jsx)(s.A,M({},V.filterConnector))]}),(0,T.jsx)(P.A,{onDatesChange:V.setDates,maxRangeDays:31,defaultRange:"1d",sharedDateRef:"clicks-log",ranges:["1d","yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]})]}),(0,T.jsx)(b.A,{platforms:["mplat"],children:(0,T.jsx)(p.A,M(M({},V.tableConnector),{},{leftPinnedColumns:1,children:function(e){return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("thead",{children:(0,T.jsxs)("tr",{children:[(0,T.jsx)("th",{children:(0,h.A)("Status")}),(0,T.jsx)("th",{"data-sortable-id":"ip",children:(0,h.A)("IP Address")}),(0,T.jsxs)("th",{"data-sortable-id":"domain",children:[(0,h.A)("Domain"),(0,T.jsx)(m.A,{header:!0,groupedCols:!0,"data-sortable-id":"campaign",children:(0,h.A)("Campaign")})]}),(0,T.jsx)("th",{"data-sortable-id":"created_at",children:(0,h.A)("Clicked at")}),(0,T.jsx)("th",{"data-sortable-id":"country",children:(0,h.A)("Country")}),(0,T.jsx)(b.A,{featureFlags:["DATA_SAMPLING"],children:(0,T.jsx)("th",{style:{textAlign:"center"},"data-sortable-id":"in_control_group",children:(0,h.A)("Sampled")})}),!0!==(null==R?void 0:R.user.obfuscate)&&(0,T.jsx)("th",{children:(0,h.A)("Audit Trail")}),!0===(null==R?void 0:R.user.obfuscate)&&(0,T.jsx)("th",{className:B.disabledText,children:(0,T.jsx)(c.default,{content:(0,h.A)("Audit trail feature not available with obfuscated IPs"),children:(0,h.A)("Audit Trail")})})]})}),(0,T.jsxs)("tbody",{children:[(0,T.jsx)("td",{children:(0,T.jsx)(E.A,{statusCode:null==e?void 0:e.flag})}),(0,T.jsx)("td",{children:(0,T.jsx)(g.A,{maxLength:15,clickToCopy:!0,children:null==e?void 0:e.ip})}),(0,T.jsxs)("td",{children:[(null==e?void 0:e.domain)||"-",(0,T.jsx)(m.A,{groupedCols:!0,children:null==e?void 0:e.campaign_name})]}),(0,T.jsx)("td",{children:(0,T.jsx)(N.A,{row:e})}),(0,T.jsx)("td",{children:(0,T.jsx)(k.A,{countryCode:null==e?void 0:e.location_physical.country})}),(0,T.jsx)(b.A,{featureFlags:["DATA_SAMPLING"],children:(0,T.jsxs)("td",{style:{textAlign:"center"},children:[1===(null==e?void 0:e.in_control_group)&&(0,T.jsx)("div",{className:B.tickBox,"data-testid":"row-".concat(null==e?void 0:e.campaign_name,"-in-control"),children:(0,T.jsx)(d.default,{name:"check"})}),0===(null==e?void 0:e.in_control_group)&&(0,T.jsx)("div",{className:B.dashBox,"data-testid":"row-".concat(null==e?void 0:e.campaign_name,"-not-in-control"),children:(0,T.jsx)(d.default,{name:"dash"})})]})}),(0,T.jsx)("td",{children:(0,T.jsx)(c.default,{content:!0!==(null==R?void 0:R.user.obfuscate)?(0,h.A)("View an audit history of this IP"):(0,h.A)("Audit trail feature not available with obfuscated IPs"),children:(0,T.jsx)(i.default,{id:"audit-trail-button","data-testid":null==e?void 0:e.ip,preset:"outline",size:"sm",as:y.Link,className:B.button,to:"/audit-trail?ip=".concat(null==e?void 0:e.ip,"&dsp=clicks"),state:{rowId:null==e?void 0:e.id,page:z.page,clickType:z.clickType},"aria-label":(0,h.A)("Audit Trail"),iconLeft:["far","timeline-arrow"],style:{width:"fit-content"},disabled:!0===(null==R?void 0:R.user.obfuscate)})})})]})]})}}))}),(0,T.jsx)(b.A,{platforms:["google"],children:(0,T.jsx)(p.A,M(M({},V.tableConnector),{},{leftPinnedColumns:2,children:function(e){var t,n,r,o;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("thead",{children:(0,T.jsxs)("tr",{children:[(0,T.jsx)("th",{children:(0,h.A)("Status")}),(0,T.jsx)("th",{"data-sortable-id":"ip",children:(0,h.A)("IP Address")}),(0,T.jsx)("th",{"data-sortable-id":"keyword",children:(0,h.A)("Keyword")}),(0,T.jsxs)("th",{"data-sortable-id":"campaign",children:[(0,h.A)("Campaign"),(0,T.jsx)(m.A,{header:!0,groupedCols:!0,"data-sortable-id":"none",children:(0,h.A)("Campaign ID")})]}),(0,T.jsx)("th",{"data-sortable-id":"created_at",children:(0,h.A)("Clicked at")}),(0,T.jsx)("th",{children:(0,h.A)("Country")}),(0,T.jsx)(b.A,{featureFlags:["DATA_SAMPLING"],children:(0,T.jsx)("th",{style:{textAlign:"center"},"data-sortable-id":"in_control_group",children:(0,h.A)("Sampled")})}),!0!==(null==R?void 0:R.user.obfuscate)&&(0,T.jsx)("th",{style:{textAlign:"center"},children:(0,h.A)("Audit Trail")}),!0===(null==R?void 0:R.user.obfuscate)&&(0,T.jsx)("th",{className:B.disabledText,style:{textAlign:"center"},children:(0,T.jsx)(c.default,{content:(0,h.A)("Audit trail feature not available with obfuscated IPs"),children:(0,h.A)("Audit Trail")})}),(null==C||null===(t=C.selectedWorkspace)||void 0===t?void 0:t.id)>0&&(0,T.jsx)("th",{style:{textAlign:"center"},children:(0,h.A)("Ban IP")})]})}),(0,T.jsxs)("tbody",{children:[(0,T.jsx)("td",{children:(0,T.jsx)(E.A,{statusCode:null==e?void 0:e.flag})}),(0,T.jsx)("td",{children:(0,T.jsx)(g.A,{maxLength:15,clickToCopy:!0,children:null==e?void 0:e.ip})}),(0,T.jsx)("td",{children:null==e?void 0:e.kw}),(0,T.jsxs)("td",{children:[null==e||null===(n=e.campaign)||void 0===n?void 0:n.name,(0,T.jsx)(m.A,{groupedCols:!0,children:null!==(r=null==e?void 0:e.cpn)&&void 0!==r?r:"-"})]}),(0,T.jsx)("td",{children:(0,T.jsx)(N.A,{row:e})}),(0,T.jsx)("td",{children:(0,T.jsx)(k.A,{countryCode:null==e?void 0:e.location_physical.country_code})}),(0,T.jsx)(b.A,{featureFlags:["DATA_SAMPLING"],children:(0,T.jsxs)("td",{style:{textAlign:"center"},children:[1===(null==e?void 0:e.in_control_group)&&(0,T.jsx)("div",{className:B.tickBox,"data-testid":"row-".concat(null==e?void 0:e.campaign.name,"-in-control"),children:(0,T.jsx)(d.default,{name:"check"})}),0===(null==e?void 0:e.in_control_group)&&(0,T.jsx)("div",{className:B.dashBox,"data-testid":"row-".concat(null==e?void 0:e.campaign.name,"-not-in-control"),children:(0,T.jsx)(d.default,{name:"dash"})})]})}),(0,T.jsx)("td",{style:{textAlign:"center"},children:(0,T.jsx)(c.default,{content:!0!==(null==R?void 0:R.user.obfuscate)?(0,h.A)("View an audit history of this IP"):(0,h.A)("Audit trail feature not available with obfuscated IPs"),children:(0,T.jsx)(i.default,{id:"audit-trail-button","data-testid":null==e?void 0:e.ip,preset:"outline",size:"sm",as:y.Link,className:B.button,to:"/audit-trail?ip=".concat(null==e?void 0:e.ip,"&dsp=clicks"),state:{rowId:null==e?void 0:e.id,page:z.page,clickType:z.clickType},"aria-label":(0,h.A)("Audit Trail"),iconLeft:["far","timeline-arrow"],style:{width:"fit-content"},disabled:!0===(null==R?void 0:R.user.obfuscate)})})}),(null==C||null===(o=C.selectedWorkspace)||void 0===o?void 0:o.id)>0&&(0,T.jsx)("td",{style:{textAlign:"center"},children:(0,T.jsx)(c.default,{content:(0,h.A)("Add this IP to your exclusion list"),children:(0,T.jsx)(i.default,{id:"exclude-ip-button",onClick:function(){return W(e)},className:B.button,"data-testid":"exclude-ip-button",size:"sm",preset:"outline","aria-label":(0,h.A)("Exclude IP"),iconLeft:["far","ban"]})})})]})]})}}))})]})}F.propTypes={handleIpExclusion:a().func.isRequired};const G=F},40566:(e,t,n)=>{"use strict";function r(e,t){var n,r=null==e||null===(n=e.options)||void 0===n?void 0:n.find(function(e){return e.name===t.optionName});return(null==r?void 0:r.value)===t.value}function o(e,t){var n;return null==e||null===(n=e.filterTreeLogic)||void 0===n||!n.dependantFilters||e.filterTreeLogic.dependantFilters.every(function(e){var n,a,i,l,s=t.find(function(t){return t.name===e.filterName}),c=Boolean(s),u=!!s&&o(s,t),d=!0!==e.mustBeVisible||u,f=!0!==e.mustNotBeVisible||!u,p=!function(e){var t;return!(null==e||null===(t=e.options)||void 0===t||!t.length)&&e.options.some(function(e){var t=e.value;return"boolean"==typeof t?t:"string"==typeof t?t.trim().length>0:null!=t})}(s),m=!0===e.orHasNoSelections&&p,g=null!==(n=e.mustHaveAnyOfValues)&&void 0!==n?n:[],y=null!==(a=e.orHasAnyOfValues)&&void 0!==a?a:[],h=null!==(i=e.mustHaveExactValues)&&void 0!==i?i:[],x=null!==(l=e.mustNotHaveAnyOfValues)&&void 0!==l?l:[],b=g.length>0,v=y.length>0,A=h.length>0,_=x.length>0,S=!1,w=!1,O=!1;b&&(S=g.some(function(e){return r(s,e)})),v&&(w=y.some(function(e){return r(s,e)})),A&&(O=h.every(function(e){return r(s,e)}));var j=!(b||v||A)||S||w||O,k=x.some(function(e){return r(s,e)});return!!c&&!(!d||!f)&&(w||m||j&&(!_||!k))})}n.d(t,{A:()=>
2o})},40572:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11525);function o(e,t,n){var o,a,i=(0,r.A)(n),l=e[i.apiResponseDataKey];i.totalResults=e.pagination.total,i.totalPages=e.pagination.last_page,o=l.length>0&&null!==(a=function(e,t,n,o,a){var i=(0,r.A)(e);if(!e.some(function(e){return e.page===n})||1===n)return e.some(function(e){return e.page===n})&&1===n&&(i=[]),i.push({page:n,items:t}),(i=i.sort(function(e,t){return e.page-t.page})).length>a&&("append"===o?i.shift():i.pop()),i}(t,l,e.pagination.current_page,i.lastRequestedDirection,i.maxNoPages))&&void 0!==a?a:[];var s=function(e){return 0===e.length?{firstPage:1,lastPage:1}:{firstPage:e[0].page,lastPage:e[e.length-1].page}}(o),c=s.firstPage,u=s.lastPage;return i.pageStart=c,i.pageEnd=u,{listD:o,lazyL:i}}},40579:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 0===e?(0,r.A)("All accounts"):1===e?"1 ".concat((0,r.A)("account")):"".concat(e," ").concat((0,r.A)("accounts"))}},40699:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Bn:()=>u,J8:()=>c,T5:()=>l,ic:()=>s,zG:()=>a});var a={waf:"WAF",proxy_requests:"Proxy Requests / VPN",geo_masking:"Geo Masking",duplicate_fingerprint:"Duplicate Fingerprint",emulator:"Emulator",cookie_stuffing:"Cookie Stuffing",conversion_hijacking:"Conversion Hijacking",device_anomaly:"Device Anomaly",conversion_capped:"Conversion Capped",click_capped:"Click Capped",excluded_isp:"Excluded ISP"},i={waf:"WAF",proxy_requests:"Proxy Requests / VPN",geo_masking:"Geo Masking",crawler:"Crawler",duplicate_fingerprint:"Duplicate Fingerprint",emulator:"Emulator",device_anomaly:"Device Anomaly",click_capped:"Click Capped",excluded_isp:"Excluded ISP"};function l(){return"analytics"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default")?i:a}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return e?Object.entries(e).filter(function(e){var t=r(e,2);return t[0],t[1]>=1}).sort(function(e,t){return t[1]-e[1]}).map(function(e){var n=r(e,1)[0];return l(t)[n]||n}):[]}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=null!=e?e:{};return Object.entries(n).map(function(e){var n=r(e,2),o=n[0],a=n[1];return{name:l(t)[o]||o,value:Number(a)}}).sort(function(e,t){return t.value-e.value})}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";if(!e)return null;var o=Object.entries(e);if(0===o.length)return null;var a=o.sort(function(e,t){return t[1]-e[1]}),i=r(a[0],2),s=i[0],c=i[1],u=r(a[1]||[],2),d=u[0],f=u[1];return{topReason:{name:l(n)[s]||s,value:c},secondReason:d?{name:null!==(t=l(n)[d])&&void 0!==t?t:d,value:f}:null}}},40803:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.errors,n=e.dataTestId,r=i(),o=Object.values(t).flat();return o.length<1?null:(0,a.jsx)("div",{className:r.errorContainer,"data-testid":n,children:o.map(function(e){return(0,a.jsx)("div",{className:r.error,children:e.userMessage},Math.random())})})};var r=n(99018),o=n(86957),a=n(31085),i=(0,r.createUseStyles)({errorContainer:{width:"100%",display:"flex",flexDirection:"column",alignItems:"start",justifyContent:"start"},error:{marginBottom:8,fontSize:14,fontWeight:400,lineHeight:"20px",marginTop:8,color:o.colours.error500}})}
2,41023:(e,t,n)=>{"use strict";n.d(t,{A:()=>u}),n(14041);var r=n(30021),o=n(28426),a=n(89748),i=n(77730),l=n(70131),s=n(31085);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const u=function(){var e,t,n,u=(t=(0,i.A)(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return null!=u&&null!==(e=u.selectedWorkspace)&&void 0!==e&&e.id?(0,s.jsx)(l.A,{}):(0,s.jsxs)(o.A.Page,{type:"overview",children:[(0,s.jsx)(r.default,{preset:"pageHeading",children:(0,a.A)("No workspace selected")}),(0,s.jsx)(r.default,{children:(0,a.A)("Please select a workspace from the sidebar")})]})}},41207:(e,t,n)=>{"use strict";e.exports=n.p+"f9c9b28ebd869d54e93e.svg"},41255:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(9260),s=n(13571),c=n(30021),u=n(99018),d=n(88133),f=n(24284),p=n(31085);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g=(0,u.createUseStyles)(function(e){return{content:{fontWeight:"normal"},subcontent:{marginTop:e.spacing[3]}}});function y(e){var t,n,o=e.selectedItems,a=void 0===o?[]:o,u=(t=(0,r.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=u[0],h=u[1],x=g(),b=(0,d.gC)("/ip/blacklist/bulk","POST"),v=(0,d.gC)("/ip/blacklist/delete-from-all-customers","POST");return a.length?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(l.default,{id:"delete-selected-exclusion-button",onClick:function(){return h(!0)},preset:"destructive","data-testid":"exclusion-delete-button",children:(0,i.A)("Delete Selected")}),(0,p.jsxs)(s.default,{open:y,onClose:function(){return h(!1)},className:x.content,size:"md",children:[(0,p.jsx)(s.default.Header,{title:(0,i.A)("You are about to delete :count Exclusions",{count:a.length})}),(0,p.jsx)(s.default.Content,{children:(0,p.jsx)(c.default,{children:(0,i.A)("Delete from the campaigns you have selected or from all of your Accounts.")})}),(0,p.jsxs)(s.default.Actions,{children:[(0,p.jsx)(l.default,{onClick:function(){b.mutate({objects:a.map(function(e){return{campaign_id:e.campaign_id,ip_address:e.ip_address,customer_id:e.customer_id}})},{onSuccess:function(){(0,f.A)((0,i.A)("IpBlocks queued for deletion. This process will take a few minutes to complete."),"success"),h(!1)},onError:function(){(0,f.A)((0,i.A)("Something went wrong!"),"error")}})},"data-testid":"delete-selected-button",preset:"destructive",children:(0,i.A)("Delete Selected")}),(0,p.jsx)(l.default,{onClick:function(){v.mutate({objects:a.map(function(e){return{campaign_id:e.campaign_id,ip_address:e.ip_address}})},{onSuccess:function(){(0,f.A)((0,i.A)("IP block deletion in progress. Please allow up to 10 minutes for this to complete."),"success"),h(!1)},onError:function(){(0,f.A)((0,i.A)("Something went wrong!"),"error")}})},"data-testid":"delete-all-button",preset:"secondary",children:(0,i.A)("Delete From All Accounts")}),(0,p.jsx)(l.default,{onClick:function(){h(!1)},preset:"outline","data-testid":"exclusion-close-button",children:(0,i.A)("Cancel")})]})]})]}):null}y.propTypes={selectedItems:a().object};const h=y},41350:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(88133),o=n(93396),a=n(31085);const i=function(){var e,t,n=(0,r.Ay)("/conversion/configs"),i=n.data,l=n.isLoading;return(0,a.jsx)(o.A,{data:null==i||null===(e=i.result)||void 0===e?void 0:e.conversion_configs,conversionApiKey:null==i||null===(t=i.result)||void 0===t||null===(t=t.conversion_api_key)||void 0===t?void 0:t.value,isLoading:l})}},41406:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=c(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=n(60156),l=c(n(79135)),s=n(31085);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var d=["children","hasNoData","title","subTitle","preset","minHeight"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=o.default;g(".padding-x1i7k47o{padding:36px}",1e3),g(".display-x78zum5{display:flex}",3e3),g(".alignItems-x6s0dn4{align-items:center}",3e3),g(".justifyContent-xl56j7k{justify-content:center}",3e3),g(".textAlign-xdpxx8g{text-align:left}",3e3),g(".backgroundSize-x18d0r48{background-size:cover}",3e3),g(".backgroundPosition-x1xsqp64{background-position:center}",2e3),g(".backgroundRepeat-xiy17q3{background-repeat:no-repeat}",3e3),g(".borderRadius-xur7f20{border-radius:8px}",2e3),g(".opacity-x1iy03kw{opacity:.9}",3e3),g(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3),g(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),g(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),g(".maxWidth-xmcgfsh{max-width:60px}",4e3),g(".marginRight-xghia80{margin-right:26px}",4e3),g(".fontSize-x93iunb{font-size:48px}",3e3),g(".transform-x1rr8tx7{transform:rotate(-45deg)}",3e3),g(".transformOrigin-x1g0ag68{transform-origin:center}",3e3),g(".width-xh8yej3{width:100%}",4e3),g(".fontSize-xosj86m{font-size:18px}",3e3),g(".fontFamily-x122x9cr{font-family:Inter}",3e3),g(".fontWeight-x1s688f{font-weight:600}",3e3),g(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),g(".fontSize-xif65rj{font-size:14px}",3e3);var y={wrapper:{padding:"padding-x1i7k47o",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",textAlign:"textAlign-xdpxx8g",backgroundSize:"backgroundSize-x18d0r48",backgroundPosition:"backgroundPosition-x1xsqp64",backgroundRepeat:"backgroundRepeat-xiy17q3",borderRadius:"borderRadius-xur7f20",opacity:"opacity-x1iy03kw",$$css:"EmptyState/index.tsx:8"},wrapperDefault:{backgroundColor:"backgroundColor-x6fdw8f",color:"color-x18k1rwp",$$css:"EmptyState/index.tsx:20"},wrapperSecondary:{backgroundColor:"backgroundColor-x18oya0d",$$css:"EmptyState/index.tsx:24"},title:{fontSize:"fontSize-xosj86m",width:"width-xh8yej3",fontFamily:"fontFamily-x122x9cr",$$css:"EmptyState/index.tsx:43"},titleDefault:{fontWeight:"fontWeight-x1s688f",color:"color-x18k1rwp",$$css:"EmptyState/index.tsx:48"},titleSecondary:{color:"color-x1r9fet4",$$css:"EmptyState/index.tsx:52"},subTitle:{fontSize:"fontSize-xif65rj",fontFamily:"fontFamily-x122x9cr",width:"width-xh8yej3",$$css:"EmptyState/index.tsx:55"},subTitleDefault:{color:"color-x18k1rwp",$$css:"EmptyState/index.tsx:60"},subTitleSecondary:{color:"color-x1r9fet4",$$css:"EmptyState/index.tsx:63"}};function h(e){var t=e.children,n=void 0===t?null:t,r=e.hasNoData,o=void 0!==r&&r,c=e.title,u=void 0===c?(0,i.language)("Not enough data"):c,f=e.subTitle,m=void 0===f?(0,i.language)("Try changing filters to get more data"):f,g=e.preset,h=void 0===g?"default":g,x=e.minHeight,b=void 0===x?200:x,v=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d);return o?(0,s.jsx)("div",p(p(p({},v),{},{style:{minHeight:b}},a.props(y.wrapper,"default"===h&&y.wrapperDefault,"secondary"===h&&y.wrapperSecondary)),{},{children:(0,s.jsxs)("div",p(p({},{className:"display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k","data-style-src":"EmptyState/index.tsx:27"}),{},{children:["default"===h&&(0,s.jsx)(l.default,p({name:["far","fa-rocket-launch"]},{className:"maxWidth-xmcgfsh marginRight-xghia80 fontSize-x93iunb color-x18k1rwp transform-x1rr8tx
27 transformOrigin-x1g0ag68","data-style-src":"EmptyState/index.tsx:32"})),(0,s.jsxs)("div",p(p({},{className:"width-xh8yej3","data-style-src":"EmptyState/index.tsx:40"}),{},{children:[(0,s.jsx)("div",p(p({},a.props(y.title,"default"===h&&y.titleDefault,"secondary"===h&&y.titleSecondary)),{},{children:u})),(0,s.jsx)("div",p(p({},a.props(y.subTitle,"default"===h&&y.subTitleDefault,"secondary"===h&&y.subTitleSecondary)),{},{children:m}))]}))]}))})):n}h.displayName="EmptyState",t.A=h},41515:(e,t,n)=>{"use strict";e.exports=n.p+"5d1315e98d1ca1f1b1ba.svg"},41569:(e,t,n)=>{"use strict";e.exports=n.p+"b5e7da9d0185af26725c.svg"},41574:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(14041),o=n(9260),a=n(62720),i=n(55618),l=n(30021),s=n(89748),c=n(66773),u=n(24284),d=n(83223),f=n(88133),p=n(77730),m=n(80111),g=n(31085);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e){var t,n,y,h,b,A=e.filters,_=void 0===A?{}:A,S=e.dates,w=void 0===S?void 0:S,O=e.className,j=void 0===O?"":O,k=e.exportValue,E=void 0===k?"":k,N=e.exportType,I=void 0===N?"fraud_type":N,P=e.exportCategory,T=void 0===P?"analytics":P,C=e.exportLevel,R=void 0===C?"drilldown":C,M=v((0,m.A)(),1)[0],L=v((0,p.A)(),1)[0],D=v((0,r.useState)(!1),2),B=D[0],U=D[1],F=v((0,r.useState)(!1),2),G=F[0],W=F[1],z=v((0,r.useState)(""),2),V=z[0],q=z[1],K=v((0,r.useState)([]),2),H=K[0],Y=K[1];function $(e){return Object.keys(e).filter(function(t){return t.startsWith("fraud_type.")&&e[t]}).map(function(e){return e.replace("fraud_type.","")})}function Z(e){return Object.keys(e).filter(function(t){return t.startsWith("fraud_type.")&&e[t]}).map(function(e){return e.replace("fraud_type.","").replace(/_/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()})})}function X(e){return JSON.stringify(e)}var J=(0,f.gC)("/analytics/stats/export","POST");return(0,g.jsxs)("div",{className:j,children:[(0,g.jsx)(o.default,{id:"export-button-open",onClick:function(){return U(!0)},iconRight:["far","download"],"data-testid":"export-button",children:(0,s.A)("Export")}),(0,g.jsxs)(i.default,{open:B,onClose:function(){return U(!1)},children:[(0,g.jsx)(l.default,{preset:"formHeading",as:"h4",children:"analytics"===T?(0,s.A)("Affiliate Analytics Export"):(0,s.A)("Affiliate Conversions Export")}),(0,g.jsx)(l.default,{preset:"formSubHeading",className:"mb-8",children:(0,s.A)("Exports the table on this page with the applied filters and selected date range as a CSV File.")}
2),(0,g.jsx)(i.default.Section,{heading:(0,s.A)("Workspace"),noSpacer:!0,children:null==L||null===(t=L.selectedWorkspace)||void 0===t?void 0:t.name}),(0,g.jsx)(i.default.Section,{heading:(0,s.A)("Platform"),noSpacer:!0,children:(0,s.A)("Affiliate")}),(0,g.jsx)(i.default.Section,{heading:function(){switch(I){case"network":return(0,s.A)("Network");case"campaign":return(0,s.A)("Campaign");case"partner":return(0,s.A)("Partner");default:return(0,s.A)("Exporting")}}(),noSpacer:!0,children:E||(0,s.A)("All")}),(0,g.jsx)(i.default.Section,{heading:(0,s.A)("Date Range"),noSpacer:!0,children:(0,g.jsxs)(l.default,{children:[(0,d.GP)((null==w||null===(n=w.min)||void 0===n?void 0:n.date)||(null==M||null===(y=M.dataFilterDates)||void 0===y||null===(y=y.min)||void 0===y?void 0:y.date),"LLL d, yyyy")," - ",(0,d.GP)((null==w||null===(h=w.max)||void 0===h?void 0:h.date)||(null==M||null===(b=M.dataFilterDates)||void 0===b||null===(b=b.max)||void 0===b?void 0:b.date),"LLL d, yyyy")]})}),(_["campaign.contains"]||_["partner.contains"]||_["network.contains"])&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.default,{preset:"formSectionTitle",className:"mt-5",children:(0,s.A)("Search Contains")}),(0,g.jsxs)(l.default,{children:[_["network.contains"]&&(0,g.jsxs)(g.Fragment,{children:[(0,s.A)("Network:")," ",'"',_["network.contains"],'"',(0,g.jsx)("br",{})]}),_["partner.contains"]&&(0,g.jsxs)(g.Fragment,{children:[(0,s.A)("Partner:")," ",'"',_["partner.contains"],'"',(0,g.jsx)("br",{})]}),_["campaign.contains"]&&(0,g.jsxs)(g.Fragment,{children:[(0,s.A)("Campaign:")," ",'"',_["campaign.contains"],'"']})]})]}),_["network.equals"]&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.default,{preset:"formSectionTitle",className:"mt-5",children:(0,s.A)("Search Equals")}),(0,g.jsx)(l.default,{children:_["network.equals"]&&(0,g.jsxs)(g.Fragment,{children:[(0,s.A)("Network:")," ",'"',_["network.equals"],'"',(0,g.jsx)("br",{})]})})]}),Z(_).length>0&&(0,g.jsx)(i.default.Section,{heading:(0,s.A)("Fraud Type"),noSpacer:!0,children:(0,g.jsx)(l.default,{children:Z(_).join(", ")})}),(0,g.jsx)(i.default.Section,{heading:(0,s.A)("Email"),children:(0,g.jsx)(a.default,{placeholder:(0,s.A)("Enter email address"),"data-testid":"email-input",name:"recipient_email",type:"email",onFormValue:function(e){q(e.value)},id:"export-email-input",value:V,errors:H,showErrors:!0})}),(0,g.jsxs)("div",{className:"flex justify-end",children:[(0,g.jsx)(o.default,{className:"mr-3",onClick:function(){Y([]),q(""),U(!1)},preset:"outline","data-testid":"cancel-button",children:(0,s.A)("Cancel")}),(0,g.jsx)(o.default,{onClick:function(){var e,t,n,r;W(!0);var o=(0,c.A)("isEmail",V,(0,s.A)("Enter an email address"));if(o)Y(o);else{Y([]);var a={stat_page:"affiliate_export",platform:"affiliate",ad_stat_type:"affiliate_clicks_log",recipient_email:V,filters:{}},i=x(x(x(x(x(x(x(x(x({df_dmin:(null==w||null===(e=w.min)||void 0===e?void 0:e.timestamp)||(null==M||null===(t=M.dataFilterDates)||void 0===t||null===(t=t.min)||void 0===t?void 0:t.timestamp),df_dmax:(null==w||null===(n=w.max)||void 0===n?void 0:n.timestamp)||(null==M||null===(r=M.dataFilterDates)||void 0===r||null===(r=r.max)||void 0===r?void 0:r.timestamp)},"drilldown"===R&&"network"===I&&{network:X([E])}),"drilldown"===R&&"partner"===I&&{partner:X([E])}),"drilldown"===R&&"campaign"===I&&{campaign:X([E])}),"fraud_type"!==I&&{group_by:I}),$(_).length>0&&{fraud_type:X($(_))}),_["campaign.contains"]&&{campaign_contains:_["campaign.contains"]}),_["network.contains"]&&{network_contains:_["network.contains"]}),_["network.equals"]&&{network:X([_["network.equals"]])}),_["partner.contains"]&&{partner_contains:_["partner.contains"]});a.filters=i,"drilldown"===R&&("analytics"===T?(a.ad_stat_type="affiliate_clicks_log","fraud_type"===I&&(a.ad_stat_type="affiliate_fraud_type")):(a.ad_stat_type="conversion_drilldown","fraud_type"===I&&(a.ad_stat_type="conversion_fraud_type"))),"summary"===R&&(a.ad_stat_type="analytics"===T?"affiliate_clicks_stats":"conversions_overview"===T?"conversion_log":"conversion_stats"),J.mutate(a,{onSuccess:function(){(0,u.A)((0,s.A)("Your export is being prepared and will be with you shortly"),"success"),q(""),Y([]),W(!1),U(!1)},onError:function(){W(!1),(0,u.A)((0,s.A)("Export failed to process"),"error")}})}},"data-testid":"complete-export-button",loading:G,children:(0,s.A)("Export")})]})]})]})}},41646:(e,t,n)=>{"use strict";e.exports=n.p+"7c4b1b63e70ec003b89e.svg"},41647:e=>{e.exports=[{currency_code:"USD"},{currency_code:"GBP"},{currency_code:"AED"},{currency_code:"ARS"},{currency_code:"AUD"},{currency_code:"BGN"},{currency_code:"BOB"},{currency_code:"BRL"},{currency_code:"CAD"},{currency_code:"CHF"},{currency_code:"CLP"},{currency_code:"CNY"},{currency_code:"COP"},{currency_code:"CZK"},{currency_code:"DKK"},{currency_code:"EGP"},{currency_code:"EUR"},{currency_code:"HKD"},{currency_code:"HRK"},{currency_code:"HUF"},{currency_code:"IDR"},{currency_code:"ILS"},{currency_code:"INR"},{currency_code:"JPY"},{currency_code:"KRW"},{currency_code:"LTL"},{currency_code:"MAD"},{currency_code:"MXN"},{currency_code:"MYR"},{currency_code:"NOK"},{currency_code:"NZD"},{currency_code:"PEN"},{currency_code:"PHP"},{currency_code:"PKR"},{currency_code:"PLN"},{currency_code:"RON"},{currency_code:"RSD"},{currency_code:"RUB"},{currency_code:"SAR"},{currency_code:"SEK"},{currency_code:"SGD"},{currency_code:"THB"},{currency_code:"TRY"},{currency_code:"TWD"},{currency_code:"UAH"},{currency_code:"VEF"},{currency_code:"VND"},{currency_code:"ZAR"}]},41834:(e,t,n)=>{"use strict";e.exports=n.p+"99ad75384acea4f7a1db.svg"},41865:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.svgRef,n=e.data,r=e.margin,s=e.width,c=e.height,u=e.dataType,d=void 0===u?"":u,f=e.options,p=void 0===f?{}:f,m=p.yAxisPosition,g=void 0===m?"right":m,y=p.yAxisLabel,h=void 0===y?"":y,x=p.xAxisBaseLine,b=void 0===x||x,v=p.showTooltip,A=void 0!==v&&v,_=p.xAxisTickPreset,S=void 0===_?"":_,w=o.select(t.current).append("g").attr("transform","translate(".concat(r.left,",").concat(r.top,")")),O=n.length>4?s/n.length:200,j=o.scaleBand().domain(n.map(function(e){return e.name})).range([0,Math.min(s,n.length*O)]).paddingInner(.1),k=o.max(n,function(e){return e.value})||0,E=o.min(n,function(e){return e.value})||0,N=.2*(k-E),I=o.scaleLinear().domain([E-N,k+N]).range([c,0]);b&&E<0&&k>0&&w.append("line").attr("x1",0).attr("x2",s).attr("y1",I(0)).attr("y2",I(0)).attr("stroke",i.colourValues.gray200).attr("stroke-width",2.5);var P=o.line().defined(function(e){return null!==e.value}).x(function(e){var t;return(null!==(t=j(e.name))&&void 0!==t?t:0)+j.bandwidth()/2}).y(function(e){return I(e.value)});w.append("path").datum(n).attr("fill","none").attr("stroke",(0,a.findColour)(a.defaultTheme,"blue-100")).attr("stroke-width",2.5).attr("d",P);var T=w.append("g").attr("transform","translate(".concat("left"===g?0:s,", 0)")).call(("left"===g?o.axisLeft(I):o.axisRight(I)).tickFormat(function(e){return"".concat(e).concat("percentage"===d?"%":"")}).ticks(4));if(T.selectAll("g.tick").select("text").style("font-size","14px").style("font-family",a.defaultTheme.fonts.text).style("color",(0,a.findColour)(a.defaultTheme,"grey-500")).style("font-weight",500),T.select(".domain").remove(),T.selectAll(".tick line").remove(),h&&w.append("text").attr("transform","rotate(-90)").attr("x",-c/2).attr("y","left"===g?-r.left:s+r.right-5).attr("text-anchor","middle").attr("dy","1em").style("font-size","12px").style("font-family",a.defaultTheme.fonts.text).style("font-weight","bold").style("fill",i.colourValues.gray700).text(h),"sparse"===S){T.select(".domain").remove(),T.selectAll(".tick line").remove();var C=j.domain(),R=Math.min(7,C.length),M=C.filter(function(e,t){return t%Math.ceil(C.length/R)===0}),L=w.append("g").attr("transform","translate(0,".concat(c,")")).call(o.axisBottom(j).tickValues(M));L.selectAll("g.tick").select("text").style("font-size","14px").style("font-family",a.defaultTheme.fonts.text).style("color",(0,a.findColour)(a.defaultTheme,"grey-500")).style("font-weight",500),L.select(".domain").remove(),L.selectAll(".tick line").remove()}if(A){var D=o.select("body").append("div").attr("class","tooltip").style("position","absolute").style("background",(0,a.findColour)(a.defaultTheme,"constants","white")).style("box-shadow",a.defaultTheme.shadow.md).style("color",i.colourValues.gray900).style("padding","22px").style("border-radius","8px").style("display","none").style("pointer-events","none");w.append("path").datum(n).attr("fill","none").attr("stroke","transparent").attr("stroke-width",10).attr("d",P).on("mousemove",function(e){var t,r=(function(e){if(Array.isArray(e))return e}(t=o.pointer(e))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,a,i=[],l=!0,s=!1;try{for(o=(t=t.call(e)).next,!1;!(l=(n=o.call(t)).done)&&(i.push(n.value),1!==i.length);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return l(e,1);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,1):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],a=j.domain().reduce(function(e,t){var n,o;return Math.abs((null!==(n=j(t))&&void 0!==n?n:0)-r)<Math.abs((null!==(o=j(e))&&void 0!==o?o:0)-r)?t:e}),i=n.find(function(e){return e.name===a});i&&D.style("display","block").html("<strong>".concat(i.name,"</strong><br/>Value: ").concat(i.value).concat("percentage"===d?"%":"")).style("left","".concat(e.pageX+10,"px")).style("top","".concat(e.pageY-30,"px"))}).on("mouseleave",function(){setTimeout(function(){D.style("display","none")},100)})}return{g:w}};var o=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),a=n(99018),i=n(86957);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}},41929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(64746),o=(n(14041),n(25873)),a=n(31085);function i(e){var t=r.select("body").select(".d3-react-tooltip");t.empty()&&(t=r.select("body").append("div").attr("class","d3-react-tooltip").style("position","absolute").style("pointer-events","none").style("z-index",9999).style("opacity",0));var n=t.node(),i=n.__reactRoot;return i||(i=(0,o.createRoot)(n),n.__reactRoot=i),function(n){n.on("mouseover.tooltip",function(n,r){t.style("opacity",1),i.render((0,a.jsx)(e,{data:r}))}).on("mousemove.tooltip",function(e){var n=window.innerWidth,r=window.innerHeight,o=e.pageX<n/2,a=e.pageY<r/2;t.style("left",null).style("right",null).style("top",null).style("bottom",null),o?t.style("left","".concat(e.pageX+10,"px")):t.style("right","".concat(n-e.pageX+10,"px")),a?t.style("top","".concat(e.pageY+10,"px")):t.style("bottom","".concat(r-e.pageY+10,"px"))}).on("mouseout.tooltip",function(){t.style("opacity",0),i.render(null)})}}},42064:(e,t,n)=>{"use strict";e.exports=n.p+"38163a2651189eecd594.svg"},42595:(e,t,n)=>{"use strict";e.exports=n.p+"5dbd9867f6014efd510e.svg"},42793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(25751)),o=n(99018),a=n(18141),i=c(n(79135)),l=c(n(62720)),s=n(31085);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=r.default;function g(e){var t=e.filterOption,n=e.filterData,r=e.selectedConfigItem,c=e.onFilterChange,u=t.isActive?"".concat(r.name,"-").concat(t.name):"false",d=0,p=0;return n.forEach(function(e,n){e.name===r.name&&(d=n,e.options.forEach(function(e,n){e.name===t.name&&e.type===t.type&&(p=n)}))}),(0,s.jsxs)("div",f(f({},{className:"width-xh8yej3 marginBottom-x91k8ka","data-style-src":"FilterMenuInput/index.tsx:10"}),{},{id:"filters-menu-input-".concat(r.name,"-").concat(t.name),children:["radio"===r.type&&(0,s.jsxs)("div",{className:(0,o.classNames)("display-x78zum5 justifyContent-x1qughib flexShrink-x2lah0s color-xbdn2ka",t.isActive&&"color-x6y2jjg"),children:[(0,s.jsx)(l.default.Radio,{name:"radio-".concat(r.name,"-").concat(t.name),"data-testid":"radio-".concat(r.name,"-").concat(t.name),label:t.label,value:"".concat(r.name,"-").concat(t.name),formValue:u,onClick:function(){return(e=function(e){for(var n=(0,a.clone)(e),r=n[d].options,o=0;o<r.length;o+=1)r[o].name&&r[o].name!==t.name&&(r[o].isActive=!1,r[o].value="",r[o].valueMax="",r[o].valueMin="");return n}(n))[d].options[p].isActive=!0,"radio"===t.type&&(e[d].options[p].value=n[d].options[p].label),void c(e);var e}}),t.icon&&(0,s.jsx)(i.default,{name:t.icon,"data-testid":"icon-".concat(r.name,"-").concat(t.name)})]}),"checkbox"===r.type&&(0,s.jsxs)("div",{className:(0,o.classNames)("display-x78zum5 justifyContent-x1qughib flexShrink-x2lah0s color-xbdn2ka",t.isActive&&"color-x6y2jjg"),children:[(0,s.jsx)(l.default.Checkbox,{name:"checkbox-".concat(r.name,"-").concat(t.name),"data-testid":"checkbox-".concat(r.name,"-").concat(t.name),label:t.label,value:t.value,onFormValue:function(e){var t=(0,a.clone)(n);t[d].options[p].value=e.value,t[d].options[p].isActive=!0,c(t)}}),t.icon&&(0,s.jsx)(i.default,{name:t.icon,"data-testid":"icon-".concat(r.name,"-").concat(t.name)})]}),("number"===t.type||"text"===t.type)&&t.isActive&&(0,s.jsx)("div",f(f({},{className:"width-xh8yej3 marginTop-xhrpt6u","data-style-src":"FilterMenuInput/index.tsx:14"}),{},{children:(0,s.jsx)(l.default,{"data-testid":"input-".concat(r.name,"-").concat(t.name),value:t.value,onFormValue:function(e){var t=(0,a.clone)(n);t[d].options[p].value=e.value,c(t)}})}))]}))}m(".width-xh8yej3{width:100%}",4e3),m(".marginBottom-x91k8ka{margin-bottom:22px}",4e3),m(".marginTop-xhrpt6u{margin-top:18px}",4e3),m(".display-x78zum5{display:flex}",3e3),m(".justifyContent-x1qughib{justify-content:space-between}",3e3),m(".flexShrink-x2lah0s{flex-shrink:0}",3e3),m(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),m(".color-x6y2jjg{color:var(--blue500-x7j0i53)}",3e3),m(".fontSize-xif65rj{font-size:14px}",3e3),m(".fontWeight-xk50ysn{font-weight:500}",3e3),m(".lineHeight-x1fc57z9{line-height:20px}
2",3e3),g.displayName="FiltersMenuInput",t.default=g},43005:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=p(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(44146),s=n(45647),c=n(73657),u=n(60156),d=p(n(79135)),f=n(31085);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var v=o.default;v(".flexShrink-x2lah0s{flex-shrink:0}",3e3),v(".width-x1hfn5x7{width:260px}",4e3),v(".zIndex-xfo81ep{z-index:1000}",3e3),v("@media (max-width: 1000px){.width-x1br0vop.width-x1br0vop{width:fit-content}}",4200),v(".position-x1n2onr6{position:relative}",3e3),v(".height-xaymia4{height:51px}",4e3),v(".padding-xe8ttls{padding:8px}",1e3),v(".display-x78zum5{display:flex}",3e3),v(".alignItems-x6s0dn4{align-items:center}",3e3),v(".width-xh8yej3{width:100%}",4e3),v(".border-xysfnd{border:1px solid var(--gray100-x1llswo5)}",1e3),v(".borderRadius-x12oqio5{border-radius:4px}",2e3),v(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),v(".textAlign-xdpxx8g{text-align:left}",3e3),v(".cursor-x1ypdohk{cursor:pointer}",3e3),v(".overflow-xb3r6kr{overflow:hidden}",2e3),v("@media (max-width: 1000px){.justifyContent-x1biuv5c.justifyContent-x1biuv5c{justify-content:center}}",3200),v("@media (max-width: 1000px){.padding-x1t7td15.padding-x1t7td15{padding:8px}}",1200),v(".boxShadow-x179fj1{box-shadow:0 4px 8px -2px rgba(34,34,34,.1)}",3e3),v(".position-x10l6tqk{position:absolute}",3e3),v(".maxHeight-xnmvx95{max-height:445px}",4e3),v(".overflow-xysyzu8{overflow:auto}",2e3),v(".top-xbpnmcg{top:calc(100% - 8px)}",4e3),v(".zIndex-x1tdo9wn{z-index:5000}",3e3),v(".justifyContent-x1nhvcw1{justify-content:flex-start}",3e3),v(".paddingRight-xy13l1i{padding-right:8px}",4e3),v(".paddingLeft-x163pfp{padding-left:8px}",4e3),v(".paddingTop-x1iorvi4{padding-top:4px}",4e3),v(".paddingBottom-xjkvuk6{padding-bottom:4px}",4e3),v(".marginRight-x1db2dqx{margin-right:8px}",4e3),v(".marginRight-x1wsuqlk{margin-right:12px}",4e3),v(".justifyContent-xl56j7k{justify-content:center}",3e3),v(".height-xc9qbxq{height:36px}",4e3),v(".width-x14qfxbe{width:36px}",4e3),v(".color-xayvuls{color:#000000}",3e3),v(".backgroundColor-x1vuwhqn{background-color:var(--primary100-x1s8hf8c)}",3e3),v(".textAlign-x2b8uid{text-align:center}",3e3),v(".fontWeight-x1xlr1w8{font-weight:700}",3e3),v(".lineHeight-xt9i1p0{line-height:36}",3e3),v(".fontSize-x1j61zf2{font-size:16px}",3e3),v(".zIndex-xhtitgo{z-index:2}",3e3),v("@media (max-width: 1000px){.marginRight-x17nr09v.marginRight-x17nr09v{margin-right:0}}",4200),v(".width-xnalus7{width:0}",4e3),v(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),v(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),v(".fontWeight-xk50ysn{font-weight:500}",3e3),v(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),v(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),v(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),v(".marginRight-xl010v5{margin-right:4px}",4e3),v("@media (max-width: 1000px){.display-xznp9yw.display-xznp9yw{display:none}}",3200),v(".flexDirection-xdt5ytf{flex-direction:column}",3e3),v(".fontSize-x1k6wstc{font-size:10px}",3e3),v(".marginLeft-x8x9d4c{margin-left:auto}",4e3),v(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),v(".fontWeight-xuv8nkb{font-weight:800}",3e3),v("@media (max-width: 1000px){.marginLeft-xmz31py.marginLeft-xmz31py{margin-left:8px}}",4200),v(".backgroundColor-x1is1enf:hover{background-color:var(--gray100-x1llswo5)}",3130),v(".lineHeight-x1vy86p0{line-height:36px}",3e3),v(".display-x1lliihq{display:block}",3e3),v(".paddingLeft-xf18ygs{padding-left:12px}",4e3);var A={activeWorkspaceIcon:{marginRight:"marginRight-x1wsuqlk",position:"position-x1n2onr6",display:"display-x78zum5",justifyContent:"justifyContent-xl56j7k",alignItems:"alignItems-x6s0dn4",height:"height-xc9qbxq",width:"width-x14qfxbe",borderRadius:"borderRadius-x12oqio5",color:"color-xayvuls",backgroundColor:"backgroundColor-x1vuwhqn",textAlign:"textAlign-x2b8uid",fontWeight:"fontWeight-x1xlr1w8",lineHeight:"lineHeight-xt9i1p0",fontSize:"fontSize-x1j61zf2",flexShrink:"flexShrink-x2lah0s",zIndex:"zIndex-xhtitgo","@media (max-width: 1000px)_marginRight":"marginRight-x17nr09v",$$css:"Worksp
2aceSelector/index.tsx:64"},disabledWorkspaceIcon:{width:"width-xnalus7",backgroundColor:"backgroundColor-xq18l50",color:"color-xf72ejy",$$css:"WorkspaceSelector/index.tsx:85"}};function _(){var e,t=x((0,a.useState)(!1),2),n=t[0],r=t[1],o=(0,a.useRef)(null),p=(0,l.useAccessControl)().allowedRoles,m=x((0,s.useWorkspacesState)(),1)[0],g=x((0,s.useSyncState)(),1)[0],h=(0,s.useSelectWorkspace)().selectWorkspace,b=(0,c.useNavigate)(),v=m.selectedWorkspace,_=(null==v?void 0:v.name)||-1===(null==v?void 0:v.id)&&(0,u.language)("All Workspaces")||(0,u.language)("Select Workspace");function S(e){o.current&&!o.current.contains(e.target)&&r(!1)}return(0,a.useEffect)(function(){return document.addEventListener("mousedown",S),function(){document.removeEventListener("mousedown",S)}},[]),null==m||!m.workspaces.length||g.isLoading?null:(0,f.jsxs)("div",y(y({},{className:"flexShrink-x2lah0s width-x1hfn5x7 zIndex-xfo81ep width-x1br0vop","data-style-src":"WorkspaceSelector/index.tsx:11"}),{},{ref:o,children:[(0,f.jsxs)("button",y(y({type:"button"},{className:"position-x1n2onr6 height-xaymia4 padding-xe8ttls display-x78zum5 alignItems-x6s0dn4 width-xh8yej3 border-xysfnd borderRadius-x12oqio5 backgroundColor-x18oya0d textAlign-xdpxx8g cursor-x1ypdohk overflow-xb3r6kr width-x1br0vop justifyContent-x1biuv5c padding-x1t7td15 boxShadow-x179fj1","data-style-src":"WorkspaceSelector/index.tsx:19"}),{},{onClick:function(){r(function(e){return!e})},"data-testid":"workspace-selector-button",children:[(0,f.jsx)("div",y(y({},i.props(A.activeWorkspaceIcon,_===(0,u.language)("Select Workspace")&&A.disabledWorkspaceIcon)),{},{children:_!==(0,u.language)("Select Workspace")?_[0]:"W"})),(0,f.jsx)("span",y(y({},{className:"fontSize-x1j61zf2 fontWeight-xk50ysn color-x1jsblnb whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv marginRight-xl010v5 display-xznp9yw","data-style-src":"WorkspaceSelector/index.tsx:90"}),{},{"data-testid":"active-workspace-name",children:_})),(0,f.jsxs)("span",y(y({},{className:"display-x78zum5 flexDirection-xdt5ytf fontSize-x1k6wstc marginRight-x1db2dqx marginLeft-x8x9d4c color-xnx9fn3 fontWeight-xuv8nkb marginRight-x17nr09v marginLeft-xmz31py","data-style-src":"WorkspaceSelector/index.tsx:102"}),{},{children:[(0,f.jsx)(d.default,{name:"chevron-up",style:{position:"relative",top:1}}),(0,f.jsx)(d.default,{name:"chevron-down",style:{position:"relative",top:-1}})]}))]})),n&&(0,f.jsx)("ul",y(y({},{className:"width-x1hfn5x7 position-x10l6tqk maxHeight-xnmvx95 overflow-xysyzu8 top-xbpnmcg border-xysfnd borderRadius-x12oqio5 backgroundColor-x18oya0d zIndex-x1tdo9wn boxShadow-x179fj1","data-style-src":"WorkspaceSelector/index.tsx:39"}),{},{"data-testid":"workspace-selector-list",children:null==m||null===(e=m.workspaces)||void 0===e?void 0:e.slice().sort(function(e,t){return"All Workspaces"===e.name?-1:"All Workspaces"===t.name?1:e.name.localeCompare(t.name)}).map(function(e){return(0,f.jsx)("li",y(y({},{className:"display-x78zum5 alignItems-x6s0dn4 justifyContent-x1nhvcw1 paddingRight-xy13l1i paddingLeft-x163pfp paddingTop-x1iorvi4 paddingBottom-xjkvuk6 cursor-x1ypdohk","data-style-src":"WorkspaceSelector/index.tsx:51"}),{},{children:(0,f.jsxs)("button",y(y({type:"button"},{className:"display-x78zum5 width-xh8yej3 alignItems-x6s0dn4 borderRadius-x12oqio5 backgroundColor-x1is1enf","data-style-src":"WorkspaceSelector/index.tsx:115"}),{},{onClick:function(){return(t=e.id)===(null===(n=m.selectedWorkspace)||void 0===n?void 0:n.id)&&(null===(o=m.selectedWorkspace)||void 0===o?void 0:o.id)>0?(b("/overview"),void r(!1)):""!==t||null!==(a=m.selectedWorkspace)&&void 0!==a&&a.id?(h(t),r(!1),void(""===t&&p(["ADMIN","ROOT","OWNER"])?b("/account-settings/account"):b("/overview"))):(p(["ADMIN","ROOT","OWNER"])?b("/account-settings/account"):b("/overview"),void r(!1));var t,n,o,a},"data-testid":"workspace-selector-".concat(e.id),children:[(0,f.jsx)("div",y(y({},{className:"position-x1n2onr6 display-x78zum5 justifyContent-xl56j7k alignItems-x6s0dn4 height-xc9qbxq width-x14qfxbe borderRadius-x12oqio5 color-xayvuls backgroundColor-x1vuwhqn textAlign-x2b8uid fontWeight-x1xlr1w8 lineHeight-x1vy86p0 fontSize-x1j61zf2 flexShrink-x2lah0s zIndex-xhtitgo","data-style-src":"WorkspaceSelector/index.tsx:124"}),{},{children:e.name[0]||"W"})),(0,f.jsx)("span",y(y({},{className:"display-x1lliihq textAlign-xdpxx8g lineHeight-x1vy86p0 height-xc9qbxq width-xh8yej3 paddingLeft-xf18ygs fontSize-x1j61zf2 fontWeight-xk50ysn color-x1jsblnb whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv","data-style-src":"WorkspaceSelector/index.tsx:141"}),{},{children:e.name}))]}))}
2),e.id)})}))]}))}_.displayName="WorkspaceSelector",t.default=_},43074:(e,t,n)=>{"use strict";e.exports=n.p+"bce0c7b743f88d7731fe.svg"},43120:(e,t,n)=>{"use strict";e.exports=n.p+"8a9270d6d807aac94ca0.svg"},43188:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(99018),i=n(31085);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=o.default;function f(e){return"number"==typeof e&&Number.isFinite(e)?Math.max(0,e):0}function p(e){var t=e.className,n=e.section1,r=void 0===n?0:n,o=e.section2,l=void 0===o?0:o,s=e.section3,u=void 0===s?0:s,d=f(r),p=f(l),m=f(u),g=d+p+m,y=g>0?d/g*100:0,h=g>0?p/g*100:0,x=g>0?m/g*100:0,b={className:"display-x3nfvp2 width-xh8yej3 height-xqu0tyb minWidth-xt4ypqs backgroundColor-x18thdbb","data-style-src":"ProgressBar/index.tsx:7"},v=(0,a.classNames)(b.className,t);return 0===g?(0,i.jsx)("div",{className:v,style:b.style}):(0,i.jsxs)("div",{className:v,style:b.style,children:[(0,i.jsx)("div",c(c({},{className:"backgroundColor-xij84n0 borderTopLeftRadius-x2b5lcy borderBottomLeftRadius-x1orjc0r","data-style-src":"ProgressBar/index.tsx:14"}),{},{style:{width:"".concat(y,"%")},"data-testid":"progress-red"})),(0,i.jsx)("div",c(c({},{className:"backgroundColor-xb8t6b3","data-style-src":"ProgressBar/index.tsx:19"}),{},{style:{width:"".concat(h,"%")},"data-testid":"progress-yellow"})),(0,i.jsx)("div",c(c({},{className:"backgroundColor-xb4lrnj borderTopRightRadius-x1lzl9kk borderBottomRightRadius-x1nhu2vm","data-style-src":"ProgressBar/index.tsx:22"}),{},{style:{width:"".concat(x,"%")},"data-testid":"progress-green"}))]})}d(".display-x3nfvp2{display:inline-flex}",3e3),d(".width-xh8yej3{width:100%}",4e3),d(".height-xqu0tyb{height:4px}",4e3),d(".minWidth-xt4ypqs{min-width:20px}",4e3),d(".backgroundColor-x18thdbb{background-color:var(--gray200-x1cfnqzm)}",3e3),d(".backgroundColor-xij84n0{background-color:var(--error200-xxycodf)}",3e3),d(".borderTopLeftRadius-x2b5lcy{border-top-left-radius:4px}",4e3),d(".borderBottomLeftRadius-x1orjc0r{border-bottom-left-radius:4px}",4e3),d(".backgroundColor-xb8t6b3{background-color:var(--warning100-x12ln9i7)}",3e3),d(".backgroundColor-xb4lrnj{background-color:var(--success50-x1xjgkj9)}",3e3),d(".borderTopRightRadius-x1lzl9kk{border-top-right-radius:4px}",4e3),d(".borderBottomRightRadius-x1nhu2vm{border-bottom-right-radius:4px}",4e3),p.displayName="ProgressBar",t.A=p},43321:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(77223),s=n(62720),c=n(72686),u=n(30021),d=n(1850),f=n(28426),p=n(83405),m=n(27805),g=n(89748),y=n(96182),h=n(73657),x=n(93033),b=n(6296),v=n(31085);function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S(e){var t=e.data,n=void 0===t?{}:t,o=e.ip,a=e.setDates,_=A((0,r.useState)(""),2),S=_[0],w=_[1],O=A((0,h.useSearchParams)(),1)[0],j=A((0,y.A)(),1)[0],k=O.get("dsp"),E=A((0,r.useState)([]),2),N=E[0],I=E[1];function P(e){var t=null==e?void 0:e.location_physical;if(null!=t&&t.city&&null!=t&&t.province)return"".concat(t.city,", ").concat(t.province);if(null!=t&&t.city)return t.city;if(null!=t&&t.province)return t.province;if(null!=t&&t.state)return t.state;if(null!=t&&t.canonical_name){var n=t.canonical_name.split(",");if(n.length>=2)return t.canonical_name.split(",")[1];if(1===n.length)return t.canonical_name.split(",")[0]}return"location not found"}return(0,r.useEffect)(function(){w("")},[o]),(0,r.useEffect)(function(){var e;n&&I((e=null==n?void 0:n.data)&&(null==e?void 0:e.length)>0?e.map(function(e){var t=null;return null!=e&&e.location_physical.lat&&null!=e&&e.location_physical.lng&&(t={lat:e.location_physical.lat,lng:e.location_physical.lng,title:P(e)}),t}):[])},[n]),(0,v.jsxs)(f.A.Page,{type:"settings",children:[(0,v.jsx)(m.default,{title:(0,g.A)(":platform Audit Trail",{platform:j.selectedPlatform.platform_title}),text:o,contentRight:(0,v.jsx)(x.A,{impersonatingOnly:!0,children:(0,v.jsxs)("div",{className:"flex v-align-center mb-5",children:[(0,v.jsx)(s.default,{"aria-label":(0,g.A)("Search IP"),value:S,onChange:function(e){return w(e.target.value)}}),(0,v.jsx)(i.default,{className:"ml-3",as:h.Link,to:(null==S?void 0:S.length)>0?"/audit-trail-map?ip=".concat(S,"&dsp=").concat(k):"/audit-trail-map?ip=".concat(o,"&dsp=").concat(k),preset:"outline",children:(0,g.A)("Change IP")})]})})}),(0,v.jsxs)(c.default,{children:[(0,v.jsxs)("div",{className:"mb-4 distribute-space-between v-align-center",children:[(0,v.jsx)(u.default,{preset:"widgetHeading",children:(0,g.A)("Click Locations")}),(0,v.jsx)(b.default,{onDatesChange:a,defaultRange:"30d-inc",ranges:["1d","yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]})]}),(0,v.jsx)(l.default,{className:"mb-4"}),(0,v.jsxs)(x.A,{platforms:["google"],children:[(0,v.jsx)(p.A,{hasNoData:0===(null==N?void 0:N.length),title:(0,g.A)("No location data available for this IP address"),subTitle:(0,g.A)("try a different IP address")}),(null==N?void 0:N.length)>0&&(0,v.jsx)(d.A,{locations:N,height:800,zoom:8})]})]})]})}S.propTypes={data:a().object,ip:a().string.isRequired,setDates:a().func.isRequired};const w=S},43347:(e,t,n)=>{"use strict";e.exports=n.p+"224a6d20be9a73035885.svg"},43361:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(14041),o=n(56197),a=n(62720),i=n(76449),l=n(28426),s=n(44949),c=n(89748),u=n(51836),d=n(73657),f=n(62161),p=n(40699),m=n(83223),g=n(27333),y=n(99226),h=n(59250),x=n(32881),b=n(41574),v=n(31085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(){var e,t,n,A,_,w,j,k,E,N,I,P,T="TRIAL"===(0,y.A)().lunioStatus,C=O((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),R=C[0],M=C[1],L=O((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),D=L[0],B=L[1],U=O((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),F=U[0],G=U[1],W=(0,u.g)().partner,z=O((0,d.useSearchParams)(),1)[0].get("network"),V=(0,g.R7)({sortKey:"partner"}),q=V.filters,K=V.setFilters,H=(0,g.R7)({sortKey:"created_at"}),Y=H.filters,$=H.handlePagination,Z=H.setFilters,X=H.handleSort;function J(e){var t='&group_by=partner&partner=["'.concat(encodeURIComponent(W),'"]'),n=Object.keys(e).filter(function(t){return t.startsWith("fraud_type.")&&e[t]}).map(function(e){return e.replace("fraud_type.","")});return e["campaign.contains"]&&(t+="&campaign_contains=".concat(e["campaign.contains"])),n.length>0&&(t+='&fraud_type=["'.concat(n.join('","'),'"]')),t}var Q=(0,g.st)("/affiliates/clicks/log",S(S({},Y),{},{startDate:new Date(F.min.date),endDate:new Date(F.max.date)}),J),ee=Q.data,te=Q.isLoading,ne=Object.entries((0,p.T5)("analytics")).map(function(e){var t=O(e,2),n=t[0],r=t[1];return{label:(0,c.A)(r),shortLabel:(0,c.A)(r),type:"checkbox",name:n,value:!1}}),re=[{label:(0,c.A)("Fraud Type"),name:"fraud_type",type:"checkbox",queryTranslator:"arrayOfNames",queryKey:"type",options:ne},{label:(0,c.A)("Campaign"),name:"campaign",type:"radio",options:[{label:(0,c.A)("contains"),name:"contains",type:"text"}]}],oe=(0,g.st)("/affiliates/clicks",S(S({},q),{},{startDate:new Date(R.min.date),endDate:new Date(R.max.date)}),J),ae=oe.data,ie=oe.isLoading,le=(0,g.st)("/affiliates/clicks",{startDate:new Date(D.min.date),endDate:new Date(D.max.date),group_by:"network",page:1,limit:100,sortKey:"network",sortOrder:"asc"}),se=le.data,ce=le.isLoading,ue=null==ae?void 0:ae.result,de=null==se||null===(e=se.result)||void 0===e||null===(e=e.overall)||void 0===e?void 0:e.overall_invalid_labels_percent;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s.A,{title:(0,c.A)(":partner Overview",{partner:W}),size:"sm",menuItems:[],subTitle:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(d.Link,{style:{color:"#7F56D9"},to:"/analytics/affiliate/partners",children:(0,c.A)("Partners")})," ",W&&" / ",W]}),subText:z,contentRight:(0,v.jsx)(b.A,{filters:Y,dates:F,exportType:"partner",exportValue:W})}),(0,v.jsxs)(l.A.Page,{type:"settings",children:[(0,v.jsx)(h.A,{title:(0,c.A)(":partner Summary",{partner:W}),isLoading:ie,total:{title:(0,c.A)("Total Clicks"),count:null==ue||null===(t=ue.overall)||void 0===t?void 0:t.overall_clicks},allTrackedClicks:{title:(0,c.A)("All Tracked Clicks"),count:null==ue||null===(n=ue.overall)||void 0===n?void 0:n.overall_all_tracked_clicks,tooltip:(0,c.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks.")},invalid:{title:(0,c.A)("SIVT Clicks"),count:null==ue||null===(A=ue.overall)||void 0===A?void 0:A.overall_clicks_invali
2d},givt:T?void 0:{title:(0,c.A)("GIVT Clicks"),count:null==ue||null===(_=ue.overall)||void 0===_?void 0:_.overall_clicks_general_invalid,tooltip:(0,c.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction.")},totalIvt:{title:(0,c.A)("Total IVT"),count:null==ue||null===(w=ue.overall)||void 0===w?void 0:w.overall_total_ivt,tooltip:(0,c.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT.")},ivt:{count:null==ue||null===(j=ue.overall)||void 0===j?void 0:j.overall_clicks_invalid_percent},totalIvtPercent:{title:(0,c.A)("Total IVT %"),count:null==ue||null===(k=ue.overall)||void 0===k?void 0:k.overall_total_ivt_percent,tooltip:(0,c.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT).")},setTime:M,time:R,filters:q,setFilters:K,filterConfig:re}),(0,v.jsx)(x.A,{data:(0,p.J8)(de,"analytics"),isLoading:ce,setTime:B,time:D,title:(0,c.A)("Fraud Type")}),(0,v.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,v.jsx)("div",{className:"left",children:(0,v.jsx)(i.default,{filterConfig:re,initialValues:Y,onFilterChange:Z})}),(0,v.jsx)(a.default.DatePicker,{value:[F.min.date,F.max.date],onRangeChange:function(e){return G(e)},selectedOption:F.rangeName,showCalenderIcon:!1,displayRangeText:!1})]}),(0,v.jsx)(f.A,{rows:null==ee||null===(E=ee.result)||void 0===E?void 0:E.data,isLoading:te,totalResults:null==ee||null===(N=ee.result)||void 0===N||null===(N=N.pagination)||void 0===N?void 0:N.total,totalPages:null==ee||null===(I=ee.result)||void 0===I||null===(I=I.pagination)||void 0===I?void 0:I.last_page,totalItems:null==ee||null===(P=ee.result)||void 0===P||null===(P=P.pagination)||void 0===P?void 0:P.total,pageNumber:Y.page,handlePagination:$,limit:Y.limit,leftPinnedColumns:1,handleSorting:X,sorting:{sortKey:Y.sortKey,sortOrder:Y.sortOrder},children:function(e){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("thead",{children:(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{"data-sortable-id":"created_at",children:(0,c.A)("Timestamp")}),(0,v.jsx)("th",{"data-sortable-id":"campaign",children:(0,c.A)("Campaign")}),(0,v.jsx)("th",{children:(0,c.A)("Fraud Type")})]})}),(0,v.jsxs)("tbody",{children:[(0,v.jsx)("td",{children:(null==e?void 0:e.created_at)&&(0,m.GP)(e.created_at,"MMM d, HH:mm")}),(0,v.jsx)("td",{children:null==e?void 0:e.campaign}),(0,v.jsx)("td",{children:(0,p.ic)(null==e?void 0:e.invalid_labels,"affiliate").map(function(e){return(0,v.jsx)(o.default,{style:{display:"inline-block",marginRight:"12px",lineHeight:"24px"},colourName:"error",children:e},e)})})]})]})}})]})]})}},43451:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(76806);function o(){}o.Donut=r.A;const a=o},43460:(e,t,n)=>{"use strict";n.d(t,{A:()=>l}),n(14041);var r=n(72686),o=n(30021),a=n(89748),i=n(31085);function l(){return(0,i.jsxs)(r.default,{children:[(0,i.jsx)(o.default,{preset:"chartHeading",className:"mb-4",children:(0,a.A)("Conversion Script")}),(0,i.jsx)(o.default,{style:{maxWidth:256},preset:"cardText",className:"mb-16",children:(0,a.A)("Tracking all conversions")})]})}},43474:(e,t,n)=>{"use strict";n.d(t,{A:()=>v}),n(14041);var r=n(56197),o=n(46389),a=n(28426),i=n(44949),l=n(89748),s=n(98536),c=n(83223),u=n(62161),d=n(36990),f=n(73657),p=n(92523),m=n(31085);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){if(!e)return"";var t=e.indexOf("_");return-1===t?e:e.slice(t+1)}const v=function(){var e=[{label:(0,l.A)("Workspace"),type:"radio",name:"workspace_name",queryKey:"workspace_name",queryTranslator:"textSearch",options:[{label:(0,l.A)("contains"),name:"contains",type:"text",value:""}]},{label:(0,l.A)("User Email"),type:"radio",name:"userEmail",queryKey:"user_email",queryTranslator:"textSearch",options:[{label:(0,l.A)("contains"),name:"contains",type:"text",value:""}]},{label:(0,l.A)("Protection Level"),type:"radio",name:"protectionLevel",queryKey:"protection_level",queryTranslator:"singleTextValueRadio",options:[{label:(0,l.A)("Aggressive"),shortLabel:(0,l.A)("High"),type:"radio",name:"HIGH",value:!1},{label:(0,l.A)("Balanced"),shortLabel:(0,l.A)("Medium"),type:"radio",name:"MEDIUM",value:!1},{label:(0,l.A)("Cautious"),shortLabel:(0,l.A)("Low"),type:"radio",name:"LOW",value:!1}]}],t=(0,s.useApi)({url:"/ivt-controls/audit-log",sortKey:"change_date",sortOrder:"desc",filters:e});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(i.A,{menuItems:[],title:(0,l.A)("IVT Controls Changelog"),size:"sm",subTitle:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(f.Link,{style:{color:"#7F56D9"},to:"/ivt-controls/settings",children:(0,l.A)("IVT Controls")})," ","/"," ","Changelog"]})}),(0,m.jsxs)(a.A.Page,{type:"settings",children:[(0,m.jsxs)("div",{className:"flex distribute-space-between mb-4",children:[(0,m.jsx)(o.A,h({},t.filterConnector)),(0,m.jsx)(p.default,{})]}),(0,m.jsx)(u.A,h(h({},t.tableConnector),{},{noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("th",{"data-sortable-id":"change_date",children:(0,l.A)("Change Date")}),(0,m.jsx)("th",{"data-sortable-id":"workspace_name",children:(0,l.A)("Workspace")}),(0,m.jsx)("th",{"data-sortable-id":"protection_level",children:(0,l.A)("Protection Level")}),(0,m.jsx)("th",{children:(0,l.A)("Impersonator")}),(0,m.jsx)("th",{children:(0,l.A)("Change Made By")})]})}),(0,m.jsxs)("tr",{children:[(0,m.jsx)("td",{children:(null==e?void 0:e.change_date)&&(0,c.GP)(new Date(null==e?void 0:e.change_date),"MMM d, H:mm")}),(0,m.jsx)("td",{children:null==e?void 0:e.workspace}),(0,m.jsx)("td",{children:(0,m.jsxs)(r.default,{colourName:"success",children:["HIGH"===(null==e?void 0:e.protection_level)&&(0,l.A)("Aggressive"),"MEDIUM"===(null==e?void 0:e.protection_level)&&(0,l.A)("Balanced"),"LOW"===(null==e?void 0:e.protection_level)&&(0,l.A)("Cautious")]})}),(0,m.jsx)("td",{children:b(null==e?void 0:e.impersonated_by)}),(0,m.jsxs)("td",{children:[null==e?void 0:e.user_name,(0,m.jsx)(d.A,{children:null==e?void 0:e.user_email})]})]})]})}}))]})]})}},43530:(e,t,n)=>{"use strict";e.exports=n.p+"22c281f3128205da9c08.svg"},43705:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);const o={title:(0,r.A)("Top IVT by Device across Campaigns"),description:(0,r.A)("Identify if certain devices are driving higher IVT rates across your campaigns."),iconName:"mobile-button",colourName:"Blue",period:(0,r.A)("Last 30 Days"),periodKey:"30d",columnGroupingOrder:["level","device"],keyWords:[(0,r.A)("IVT"),(0,r.A)("Device"),(0,r.A)("Campaign"),(0,r.A)("L30 Days")],filters:[{label:(0,r.A)("Level"),type:"flat-select",name:"level",queryKey:"level",queryTranslator:"singleTextValueRadio",filterGroup:{label:(0,r.A)("LEVEL"),name:"level",displayOrder:1},applyFilterOnUpdate:!0,options:[{label:(0,r.A)("Campaign"),name:"campaign",type:"radio",value:!0}]},{label:(0,r.A)("Device"),name:"device",type:"dropdown-multi-select",queryKey:"device",queryTranslator:"arrayOfNames",filterGroup:{label:(0,r.A)("Breakdown Filter"),name:"breakdownFilter",displayOrder:3},options:[{label:(0,r.A)("Mobile"),type:"checkbox",name:"m",value:!0},{label:(0,r.A)("Tablet"),type:"checkbox",name:"t",value:!0}
2,{label:(0,r.A)("Desktop"),type:"checkbox",name:"c",value:!0},{label:(0,r.A)("Unknown"),type:"checkbox",name:"ZZ",value:!0}]}]}},43746:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(9260),s=n(13571),c=n(1781),u=n(28426),d=n(90405),f=n(27805),p=n(62161),m=n(85596),g=n(51836),y=n(11182),h=n(98536),x=n(93033),b=n(31085);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j(e){var t=e.isRemovingToken,n=e.handleRemoveToken,o=e.isDeprecatingToken,a=e.handleDeprecateToken,v=w((0,y.A)(),1)[0],A=w((0,r.useState)(!1),2),S=A[0],O=A[1],j=w((0,r.useState)(null),2),k=j[0],E=j[1],N=(0,g.zy)().search,I=new URLSearchParams(N),P=I.get("status"),T=I.get("msg");"success"===P?(P=(0,i.A)("Meta connection was successful"),T=(0,i.A)("Lunio has requested your data from Meta, it will arrive shortly. When the status says âActiveâ, your data has been pulled through.")):P=(0,i.A)("Meta connection was unsuccessful");var C=w((0,r.useState)(!1),2),R=C[0],M=C[1];(0,r.useEffect)(function(){T&&M(!0)},[T]);var L=(0,h.useApi)({url:"/oauth/tokens/meta/list",noPlatform:!0});function D(e){return t||o?{buttonState:"loading",statusTitle:"Loading",confirmationMessage:""}:null!=e&&e.is_deprecated?v.isImpersonating?{buttonState:"force-delete",statusTitle:0===(null==e?void 0:e.customer_count)?"Deprecated":"Deprecated ( has linked Accounts )",confirmationMessage:(0,i.A)("Are you sure you want to force delete this token?")}:0===(null==e?void 0:e.customer_count)?{buttonState:"delete",statusTitle:"Deprecated",confirmationMessage:(0,i.A)("Are you sure you want to delete this token?")}:{buttonState:"deprecated-with-linked-customers",statusTitle:"Deprecated ( has linked Accounts )",confirmationMessage:""}:{buttonState:"active",statusTitle:"Active",confirmationMessage:(0,i.A)("Are you sure you want to deprecate this token?")}}return(0,b.jsx)(u.A.Page,{type:"settings",children:(0,b.jsxs)(x.A,{featureFlags:["META_INTEGRATION"],children:[(0,b.jsx)(f.default,{type:"settings",title:(0,i.A)("Meta Token Settings"),text:(0,i.A)("Add or manage your Meta tokens"),contentRight:(0,b.jsx)(l.default,{"data-testid":"addWorkspaceButton",iconRight:["far","circle-plus"],onClick:function(){(0,m.A)("/oauth/start/meta").then(function(e){var t,n;null!=e&&null!==(t=e.data)&&void 0!==t&&null!==(t=t.result)&&void 0!==t&&null!==(t=t.data)&&void 0!==t&&t.redirectTo&&window.open(null==e||null===(n=e.data)||void 0===n||null===(n=n.result)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.redirectTo,"_self")})},children:(0,i.A)("Add New Meta Token")})}
2),(0,b.jsx)(p.A,_(_({},L.tableConnector),{},{noDataTitle:(0,i.A)("No tokens here yet"),noDataSubTitle:(0,i.A)("Connect your Meta account to start managing your Meta protection."),noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:(0,i.A)("Platform")}),(0,b.jsx)("th",{children:(0,i.A)("Account Email")}),(0,b.jsx)("th",{children:(0,i.A)("Lunio Token ID")}),(0,b.jsx)("th",{children:(0,i.A)("Status")}),(0,b.jsx)("th",{children:(0,i.A)("Expires At")}),(0,b.jsx)("th",{"data-align":"right",children:(0,i.A)("Action")})]})}),(0,b.jsxs)("tbody",{children:[(0,b.jsx)("td",{"data-disabled":null==e?void 0:e.is_deprecated,children:(0,b.jsxs)("div",{className:"flex items-center",children:[(0,b.jsx)(d.A,{platformName:"meta",className:"mr-4"}),"Meta"]})}),(0,b.jsx)("td",{"data-disabled":null==e?void 0:e.is_deprecated,children:null==e?void 0:e.account_email}),(0,b.jsx)("td",{"data-disabled":null==e?void 0:e.is_deprecated,children:null==e?void 0:e.id}),(0,b.jsx)("td",{"data-disabled":null==e?void 0:e.is_deprecated,children:D(e).statusTitle}),(0,b.jsx)("td",{"data-disabled":null==e?void 0:e.is_deprecated,children:null!=e&&e.expires_at?new Date(null==e?void 0:e.expires_at).toLocaleDateString():"-"}),(0,b.jsxs)("td",{"data-align":"right",children:["active"===D(e).buttonState&&(0,b.jsx)(c.default,{content:(0,i.A)("Deprecate Token"),children:(0,b.jsx)(l.default,{"data-testid":"deprecateGoogleTokenButton",iconLeft:["far","circle-minus"],preset:"outline",size:"sm",onClick:function(){E(e),O(!0)},loading:o,disabled:o,role:"button","aria-label":(0,i.A)("Deprecate Token")})}),"delete"===D(e).buttonState&&(0,b.jsx)(c.default,{content:(0,i.A)("Delete token"),children:(0,b.jsx)(l.default,{"data-testid":"deleteGoogleTokenButton",iconLeft:["far","trash"],preset:"outline",size:"sm",onClick:function(){E(e),O(!0)},loading:t,disabled:t,role:"button","aria-label":(0,i.A)("Delete token")})}),"force-delete"===D(e).buttonState&&(0,b.jsx)(c.default,{content:(0,i.A)("Force delete token"),children:(0,b.jsx)(l.default,{"data-testid":"forceDeleteGoogleTokenButton",iconLeft:["far","trash"],preset:"outline",size:"sm",onClick:function(){E(e),O(!0)},loading:t,disabled:t,role:"button","aria-label":(0,i.A)("Force delete token")})})]})]})]})}})),(0,b.jsxs)(s.default,{open:S,onClose:function(){return O(!1)},children:[(0,b.jsx)(s.default.Header,{title:(0,i.A)("Do you want to continue?")}
2),(0,b.jsx)(s.default.Content,{children:D(k).confirmationMessage}),(0,b.jsxs)(s.default.Actions,{children:[(0,b.jsx)(l.default,{id:"cancel-deprecate-token-button",onClick:function(){E(null),O(!1)},preset:"outline",children:(0,i.A)("Cancel")}),(0,b.jsx)(l.default,{id:"confirm-deprecate-token-button","data-testid":"active"===D(k).buttonState?"confirm-deprecate-token-button":"confirm-delete-token-button",onClick:function(){return function(){if(k){if(null!=k&&k.is_deprecated){var e={id:k.id,force_delete:v.isImpersonating};n(e)}else!function(){if(k){var e={id:k.id};a(e),E(null),O(!1)}}();E(null),O(!1)}}()},children:(0,i.A)("Continue")})]})]}),(0,b.jsxs)(s.default,{open:R,onClose:function(){return M(!1)},children:[(0,b.jsx)(s.default.Header,{title:P}),(0,b.jsx)(s.default.Content,{children:T}),(0,b.jsx)(s.default.Actions,{children:(0,b.jsx)(l.default,{onClick:function(){return M(!1)},children:(0,i.A)("Confirm")})})]})]})})}j.propTypes={tokens:a().arrayOf(a().shape({id:a().string,token_user_name:a().string,token_user_email:a().string,customer_count:a().number})).isRequired,isLoading:a().bool.isRequired,isRemovingToken:a().bool.isRequired,handleRemoveToken:a().func.isRequired,handleAddToken:a().func.isRequired,isDeprecatingToken:a().bool.isRequired,handleDeprecateToken:a().func.isRequired};const k=j},44146:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccessControl:()=>r.A,AccessControlProvider:()=>o.A,hasAccess:()=>i.A,useAccessControl:()=>a.A});var r=n(93033),o=n(11094),a=n(99226),i=n(50510)},44438:(e,t,n)=>{"use strict";n.d(t,{A:()=>S}),n(14041);var r=n(61323),o=n(19863),a=n(89748),i=n(27333),l=n(17419),s=n(28426),c=n(79135),u=n(96956),d=n(27805),f=n(62161),p=n(73657),m=n(93033),g=n(99226),y=n(89541),h=n(13497),x=n(31085);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return(t=function(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S=function(e){var t,n,b,v,_=e.filters,S=e.onFilterChange,w=e.handlePagination,O=e.handleSort,j=(0,i.st)("/analytics/fraud-stats/location",A(A({},_),{},{type:"state",filter_type:"country",filter:"United States of America"},_["search.contains"]&&{search:_["search.contains"]})),k=j.data,E=j.isLoading,N="TRIAL"===(0,g.A)().lunioStatus;return(0,x.jsxs)(s.A.Page,{type:"main",children:[(0,x.jsx)(d.default,{title:"".concat((0,a.A)("Ad Stats")," - ").concat((0,a.A)("Regions")),text:(0,a.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,x.jsx)(h.A,{filters:_,exportType:"google_state"})}),(0,x.jsx)(y.A,{filters:_,onFilterChange:S}),(0,x.jsx)("div",{className:"mb-4 mt-4",children:(0,x.jsxs)(p.Link,{"data-testid":"go-back",style:{color:"black"},to:"/stats/location",children:[(0,x.jsx)(c.default,{name:["far","arrow-left"]})," ",(0,a.A)("Go Back")]})}),(0,x.jsx)(r.A,{isLoading:E,data:function(e){if(!e)return[];var t=e.reduce(function(e,t){return e+Number(t.clicks_total)},0),n=e.reduce(function(e,t){return e+Number(t.clicks_fraudulent)},0),r=[];return null==e||e.forEach(function(e){var a;r.push({name:(a=e.location,"Netherlands, The"===a||"Netherlands the"===a?"Netherlands":"United States of America"===a?"USA":a),value1:(0,o.o)(e.clicks_total,t),value2:(0,o.o)(e.clicks_fraudulent,n)})}),r}(null==k||null===(t=k.result)||void 0===t?void 0:t.location)}),(0,x.jsx)("div",{className:"mt-8"}),(0,x.jsx)(f.A,{rows:null==k||null===(n=k.result)||void 0===n?void 0:n.location,isLoading:E,totalPages:null==k||null===(b=k.result)||void 0===b||null===(b=b.pagination)||void 0===b?void 0:b.last_page,totalItems:null==k||null===(v=k.result)||void 0===v||null===(v=v.pagination)||void 0===v?void 0:v.total,pageNumber:_.page,handlePagination:w,handleSorting:O,limit:_.limit,sorting:{sortKey:_.sortKey,sortOrder:_.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("thead",{children:(0,x.jsxs)("tr",{children:[(0,x.jsx)("th",{children:(0,a.A)("Country")}),(0,x.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,a.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,a.A)("Legitimate")}),(0,x.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,a.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,a.A)("Suspicious")}),(0,x.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,a.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,a.A)("SIVT Clicks")}),(0,x.jsx)(m.A,{AND:!N,children:(0,x.jsx)("th",{"data-testid":"givt","data-tooltip":(0,a.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,a.A)("GIVT Clicks")})}),(0,x.jsx)("th",{"data-tooltip":(0,a.A)("The total number of clicks Lunio has identified as invali
2d, including both GIVT and SIVT."),children:(0,a.A)("Total IVT")}),(0,x.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,a.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,a.A)("Total Clicks")}),(0,x.jsx)("th",{"data-tooltip":(0,a.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,a.A)("All Tracked Clicks")}),(0,x.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,a.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,a.A)("SIVT Clicks %")}),(0,x.jsx)("th",{"data-tooltip":(0,a.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,a.A)("Total IVT %")}),(0,x.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,a.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,a.A)("Health")})]})}),(0,x.jsxs)("tbody",{children:[(0,x.jsx)("td",{children:(null==e?void 0:e.location)||(null==e?void 0:e.country_code)}),(0,x.jsx)("td",{children:(0,x.jsx)(l.A,{type:"legitimate",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_protected)})}),(0,x.jsx)("td",{children:(0,x.jsx)(l.A,{type:"suspicious",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_suspicious)})}),(0,x.jsx)("td",{children:(0,x.jsx)(l.A,{type:"invalid",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,x.jsx)(m.A,{AND:!N,children:(0,x.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,x.jsx)("td",{children:(0,o.m)(null==e?void 0:e.total_ivt)}),(0,x.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_total)}),(0,x.jsx)("td",{children:(0,o.m)(null==e?void 0:e.all_tracked_clicks)}),(0,x.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,x.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,x.jsx)("td",{children:(0,x.jsx)(u.A,{health:null==e?void 0:e.health})})]})]})}})]})}},44442:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(14041),o=n(39067),a=n.n(o),i=n(77223),l=n(62720),s=n(72686),c=n(30021),u=n(55436),d=n(64517),f=n(30556),p=n(89748),m=n(34406),g=n(88133),y=n(35859),h=n(96182),x=n(31085);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e){var t,n,o,a,v,A,_,S,w,O,j=e.cpn,k=b((0,r.useState)(l.default.DatePicker.getDateRange("30d")),2),E=k[0],N=k[1],I=b((0,h.A)(),1)[0],P="google"!==I.selectedPlatform.platform_name,T=P?"&platform=".concat(I.selectedPlatform.platform_name):"";function C(e){return Math.floor((0,m.Ay)(e).valueOf()/1e3)}var R=(0,g.Ay)("".concat(P?"/platform/campaigns-data/":"/aw/campaigns-data/").concat(j,"?df_dmin=").concat(C(E.min.date),"&df_dmax=").concat(C(E.max.date)).concat(T)),M=R.data,L=R.isLoading;return(0,x.jsx)("div",{className:"mt-8 mb-4",children:(0,x.jsxs)(s.default,{children:[(0,x.jsxs)("div",{className:"flex items-center justify-between",children:[(0,x.jsx)(c.default,{preset:"widgetHeading",children:(0,p.A)("Key Metrics Summary")}
2),(0,x.jsx)(l.default.DatePicker,{value:[E.min.date,E.max.date],ranges:["yesterday","7d","30d","90d","prevMonth","customMonth","customRange"],onRangeChange:N,showCalenderIcon:!1,displayRangeText:!1})]}),(0,x.jsx)(i.default,{className:"mt-4"}),(0,x.jsx)(f.default,{children:(0,x.jsx)(u.default,{loading:L,preset:"dark",size:"responsive",height:100,children:(0,x.jsxs)(f.default.Row,{children:[!M&&!L&&(0,x.jsx)("div",{children:(0,p.A)("No data")}),(0,x.jsx)(f.default.Col,{children:(0,x.jsx)(d.A,{title:(0,p.A)("Total Clicks"),icon:["far","location-arrow"],value:null==M||null===(t=M.result)||void 0===t||null===(t=t.data[0])||void 0===t?void 0:t.total_clicks})}),(0,x.jsx)(f.default.Col,{children:(0,x.jsx)(d.A,{title:(0,p.A)("All Tracked Clicks"),tooltip:(0,p.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),icon:["far","location-arrow"],value:null==M||null===(n=M.result)||void 0===n||null===(n=n.data[0])||void 0===n?void 0:n.all_tracked_clicks})}),(0,x.jsx)(f.default.Col,{children:(0,x.jsx)(d.A,{title:(0,p.A)("Total IVT"),tooltip:(0,p.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),icon:["far","triangle-exclamation"],value:null==M||null===(o=M.result)||void 0===o||null===(o=o.data[0])||void 0===o?void 0:o.total_ivt})}),(0,x.jsx)(f.default.Col,{children:(0,x.jsx)(d.A,{title:(0,p.A)("Total IVT %"),tooltip:(0,p.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),icon:["far","percent"],value:null==M||null===(a=M.result)||void 0===a||null===(a=a.data[0])||void 0===a?void 0:a.total_ivt_percent})}),(0,x.jsx)(f.default.Col,{children:(0,x.jsx)(d.A,{title:(0,p.A)("Avg CPC"),icon:["fas","dollar-sign"],valuePrefix:(0,y.A)(null==M||null===(v=M.result)||void 0===v||null===(v=v.data[0])||void 0===v?void 0:v.currency),value:null==M||null===(A=M.result)||void 0===A||null===(A=A.data[0])||void 0===A?void 0:A.avg_cpc.toFixed(2)})}),(0,x.jsx)(f.default.Col,{children:(0,x.jsx)(d.A,{title:(0,p.A)("Approx Spend"),icon:["fas","dollar-sign"],valuePrefix:(0,y.A)(null==M||null===(_=M.result)||void 0===_||null===(_=_.data[0])||void 0===_?void 0:_.currency),value:null==M||null===(S=M.result)||void 0===S||null===(S=S.data[0])||void 0===S?void 0:S.estimated_cost.toFixed(2)})}),(0,x.jsx)(f.default.Col,{children:(0,x.jsx)(d.A,{title:(0,p.A)("Adjusted Value"),icon:["far","network-wired"],valuePrefix:(0,y.A)(null==M||null===(w=M.result)||void 0===w||null===(w=w.data[0])||void 0===w?void 0:w.currency),value:null==M||null===(O=M.result)||void 0===O||null===(O=O.data[0])||void 0===O?void 0:O.actual_value.toFixed(2)})})]})})})]})})}A.propTypes={cpn:a().number.isRequired};const _=A},44576:(e,t,n)=>{"use strict";t.A=void 0;var r=i(n(25751)),o=i(n(23232)),a=n(31085);function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var s=["title","logo","text"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=r.default;f(".padding-x1tamke2{padding:16px}",1e3),f(".borderRadius-xur7f20{border-radius:8px}",2e3),f(".backgroundSize-x18d0r48{background-size:cover}",3e3),f(".backgroundPosition-x1xsqp64{background-position:center}",2e3),f(".backgroundRepeat-xiy17q3{background-repeat:no-repeat}",3e3),f(".display-x78zum5{display:flex}",3e3),f(".marginBottom-x1yztbdb{margin-bottom:16px}",4e3),f(".maxWidth-xrl8a26{max-width:787px}",4e3),f(".flex-x98rzlu{flex:1}",2e3),f(".padding-xggk2y7{padding:24px}",1e3),f(".justifyContent-xl56j7k{justify-content:center}",3e3),f(".maxHeight-x13bm0uv{max-height:164px}",4e3),f(".margin-x19bbpc0{margin:0 auto}",1e3),f(".fontSize-x1pvqxga{font-size:24px}",3e3),f(".lineHeight-xcgk4ki{line-height:32px}",3e3),f(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),f(".fontFamily-x1cc2d69{font-family:Inter,sans-serif}",3e3),f(".fontWeight-xk50ysn{font-weight:500}",3e3),f(".fontSize-x1j61zf2{font-size:16px}",3e3),f(".lineHeight-x1o2sk6j{line-height:24px}",3e3),f(".fontWeight-xo1l8bm{font-weight:400}",3e3),t.A=function(e){var t=e.title,n=e.logo,r=e.text,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s);return(0,a.jsxs)("div",u(u(u({},{className:"padding-x1tamke2 borderRadius-xur7f20 backgroundSize-x18d0r48 backgroundPosition-x1xsqp64 backgroundRepeat-xiy17q3 display-x78zum5 marginBottom-x1yztbdb maxWidth-xrl8a26","data-style-src":"Tile/index.tsx:7"}),{},{style:{backgroundImage:"url(".concat(o.default,")")}},i),{},{children:[(0,a.jsx)("div",u(u({},{className:"flex-x98rzlu padding-xggk2y7 display-x78zum5 justifyContent-xl56j7k","data-style-src":"Tile/index.tsx:17"}),{},{children:(0,a.jsx)("img",u({src:n,alt:t},{className:"maxHeight-x13bm0uv margin-x19bbpc0","data-style-src":"Tile/index.tsx:23"}))})),(0,a.jsx)("div",u(u({},{className:"flex-x98rzlu padding-xggk2y7 display-x78zum5 justifyContent-xl56j7k","data-style-src":"Tile/index.tsx:17"}),{},{children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",u(u({},{className:"fontSize-x1pvqxga lineHeight-xcgk4ki color-xf72ejy fontFamily-x1cc2d69 fontWeight-xk50ysn","data-style-src":"Tile/index.tsx:27"}),{},{children:t})),(0,a.jsx)("div",u(u({},{className:"fontSize-x1j61zf2 lineHeight-x1o2sk6j color-xf72ejy fontFamily-x1cc2d69 fontWeight-xo1l8bm","data-style-src":"Tile/index.tsx:34"}),{},{children:r}))]})}))]}))}},44655:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(51836),o=n(68590),a=n(31085);const i=function(){return(0,a.jsx)(o.A,{children:(0,a.jsx)(r.sv,{})})}},44940:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(14041),o=n(77223),a=n(72686),i=n(46389),l=n(30021),s=n(55436),c=n(64517),u=n(28426),d=n(30556),f=n(44949),p=n(98962),m=n(89748),g=n(83223),y=n(51836),h=n(73657),x=n(98536),b=n(92523),v=n(31085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O=function(){var e,t=(0,y.g)().advertiserId,n=[{label:(0,m.A)("Keyword"),name:"keyword",type:"radio",queryKey:"keyword",queryTranslator:"textSearch",options:[{label:(0,m.A)("Contains"),name:"contains",type:"text"}]},{label:(0,m.A)("Location"),name:"location",type:"radio",queryKey:"location",queryTranslator:"textSearch",options:[{label:(0,m.A)("Contains"),name:"contains",type:"text"}]},{label:(0,m.A)("Domain"),name:"domain",type:"radio",queryKey:"domain",queryTranslator:"textSearch",options:[{label:(0,m.A)("Contains"),name:"contains",type:"text"}]}],A=(0,x.useApi)({url:"/brand-protection/ads_by_advertiser/".concat(t),responseDataKey:"result",paginationLimit:1e3,filters:n}),_=A.response,w=A.isLoading,O=A.filterConnector,j=null==_?void 0:_.result,k=(null==j?void 0:j.ads)||[],E=(null==j||null===(e=j.ads[0])||void 0===e?void 0:e.advertiser)||"";return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.A,{menuItems:[],title:E,subTitle:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(h.Link,{style:{color:"#7F56D9"},to:"/brand-bidding/bidding",children:(0,m.A)("Brand Bidding")})," / ",E]})}),(0,v.jsxs)(u.A.Page,{type:"settings",children:[(0,v.jsxs)("div",{className:"flex mt-4 distribute-space-between width-100",children:[(0,v.jsx)(i.A,S(S({},O),{},{className:"w-full"})),(0,v.jsx)(b.default,{})]}),(0,v.jsxs)(s.default,{loading:w,error:!w&&!j,preset:"dark",height:500,children:[(0,v.jsxs)(d.default.Row,{children:[(0,v.jsx)(d.default.Col,{children:(0,v.jsx)(c.A,{title:(0,m.A)("Ads detected"),value:null==j?void 0:j.ad_count,icon:["far","hashtag"],statBlockValueSmall:!0})}),(0,v.jsx)(d.default.Col,{children:(0,v.jsx)(c.A,{title:(0,m.A)("Keywords affected"),value:null==j?void 0:j.keyword_count,icon:["fas","magnifying-glass"],statBlockValueSmall:!0})}),(0,v.jsx)(d.default.Col,{children:(0,v.jsx)(c.A,{title:(0,m.A)("First detected"),value:null!=j&&j.first_seen_at?(0,g.GP)(new Date(null==j?void 0:j.first_seen_at),"dd MMM, yyyy"):"",icon:["far","calendar"],statBlockValueSmall:!0})}),(0,v.jsx)(d.default.Col,{children:(0,v.jsx)(c.A,{title:(0,m.A)("Last detected"),value:null!=j&&j.last_seen_at?(0,g.GP)(new Date(null==j?void 0:j.last_seen_at),"dd MMM, yyyy"):"",icon:["far","calendar"],statBlockValueSmall:!0})})]}),(0,v.jsx)(d.default.Row,{children:(0,v.jsx)(d.default.Col,{children:(0,v.jsxs)(a.default,{children:[(0,v.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,v.jsx)(l.default,{preset:"widgetHeading",as:"h2",children:(0,m.A)("Ad Creatives Detected")})}),(0,v.jsx)(o.default,{className:"mb-0"}),0===k.length&&(0,v.jsx)(l.default,{className:"mt-4",colour:"black400",fontSize:"14",children:(0,m.A)("No ads found for this advertiser")}),k.length>0&&k.map(function(e,t){return(0,v.jsxs)(r.Fragment,{children:[0!==t&&(0,v.jsx)(o.default,{}),(0,v.jsx)(p.A,{adData:e})]},e.ad_id)})]})})})]})]})]})}},44949:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=f(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(60156),s=n(73657),c=f(n(79135)),u=f(n(1781)),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var m=["state"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b=o.default;b(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),b(".height-xt7dq6l{height:auto}",4e3),b(".display-x78zum5{display:flex}",3e3),b(".borderBottom-xyyehn8{border-bottom:1px solid var(--gray250-x1kpk87u)}",2e3),b(".padding-x1tamke2{padding:16px}",1e3),b(".paddingTop-x1cnzs8{padding-top:20px}",4e3),b(".paddingBottom-xsag5q8{padding-bottom:12px}",4e3),b(".padding-xggk2y7{padding:24px}",1e3),b(".paddingTop-x13zrc24{padding-top:40px}",4e3),b(".paddingBottom-x1gan7if{padding-bottom:32px}",4e3),b(".fontSize-x1pvqxga{font-size:24px}",3e3),b(".fontWeight-x1xlr1w8{font-weight:700}",3e3),b(".lineHeight-x1o2sk6j{line-height:24px}",3e3),b(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),b(".marginBottom-x12nagc{margin-bottom:4px}",4e3),b(".height-xxk0z11{height:24px}",4e3),b(".fontSize-xif65rj{font-size:14px}",3e3),b(".fontWeight-xo1l8bm{font-weight:400}",3e3),b(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),b(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),b(".marginTop-x1xmf6yo{margin-top:8px}",4e3),b(".marginTop-x14vqqas{margin-top:12px}",4e3),b(".display-x3nfvp2{display:inline-flex}",3e3),b(".alignItems-x6s0dn4{align-items:center}",3e3),b(".paddingRight-xyfqnmn{padding-right:16px}",4e3),b(".paddingLeft-xnm25rq{padding-left:16px}",4e3),b(".height-x1vqgdyp{height:40px}",4e3),b(".color-x97t7pj{color:var(--black200-xao0axe)}",3e3),b(".fontWeight-xk50ysn{font-weight:500}",3e3),b(".color-xji313y:hover{color:var(--oldBrand600-x1t41vhw)}",3130),b(".textDecoration-x1bvjpef{text-decoration:underline}",2e3),b(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3),b(".pointerEvents-x47corl{pointer-events:none}",3e3),b(".opacity-xbyyjgo{opacity:.5}",3e3),b(".height-x16wdlz0{height:38px}",4e3),b(".width-x1guw455{width:38px}",4e3),b(".borderRadius-x16rqkct{border-radius:50%}",2e3),b(".marginRight-x1db2dqx{margin-right:8px}",4e3),b(".justifyContent-xl56j7k{justify-content:center}",3e3),b(".fontSize-x1j61zf2{font-size:16px}",3e3),b(".position-x1n2onr6{position:relative}",3e3),b(".top-xjibb99{top:-5px}",4e3),b(".backgroundColor-xp763xq{background-color:var(--success200-x1m3jyzb)}",3e3),b(".border-x10nnx08{border:4.2px solid var(--success50-x1xjgkj9)}",1e3),b(".color-x1vcl3ok{color:var(--success900-xuh39r3)}",3e3),b(".backgroundColor-x1g3illd{background-color:var(--oldBrand300-x1eifvzy)}",3e3),b(".border-xl8l6sj{border:4.2px solid var(--oldBrand100-x1o59ms7)}",1e3),b(".color-x1g9udmf{color:var(--oldBrand900-xuu3kei)}",3e3),b(".backgroundColor-xgji3v1{background-color:var(--gray300-x1xk3734)}",3e3),b(".border-xe257ih{border:4.2px solid var(--gray100-x1llswo5)}
2",1e3),b(".color-xnvj2e1{color:var(--gray800-x1jnvjag)}",3e3),b(".fontWeight-x1s688f{font-weight:600}",3e3),b(".color-x1ikhnzc{color:#535862}",3e3),b(".textDecoration-x1hl2dhg{text-decoration:none}",2e3),b(".marginLeft-x1tpqehw{margin-left:12px}",4e3),b(".display-x1rg5ohu{display:inline-block}",3e3),b(".opacity-x18uuni6:hover{opacity:.9}",3130);var v={container:{backgroundColor:"backgroundColor-x18oya0d",height:"height-xt7dq6l",display:"display-x78zum5",borderBottom:"borderBottom-xyyehn8",$$css:"HeaderMenu/index.tsx:12"},smContainer:{padding:"padding-x1tamke2",paddingTop:"paddingTop-x1cnzs8",paddingBottom:"paddingBottom-xsag5q8",$$css:"HeaderMenu/index.tsx:18"},mdContainer:{padding:"padding-xggk2y7",paddingTop:"paddingTop-x13zrc24",paddingBottom:"paddingBottom-x1gan7if",$$css:"HeaderMenu/index.tsx:23"},aLink:{color:"color-x97t7pj",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xk50ysn",":hover_color":"color-xji313y",$$css:"HeaderMenu/index.tsx:61"},activeLink:{textDecoration:"textDecoration-x1bvjpef",textDecorationColor:null,textDecorationLine:null,textDecorationStyle:null,textDecorationThickness:null,color:"color-x14ptq3k",$$css:"HeaderMenu/index.tsx:69"},disabled:{pointerEvents:"pointerEvents-x47corl",opacity:"opacity-xbyyjgo",$$css:"HeaderMenu/index.tsx:73"},iconContainer:{height:"height-x16wdlz0",width:"width-x1guw455",borderRadius:"borderRadius-x16rqkct",marginRight:"marginRight-x1db2dqx",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",fontSize:"fontSize-x1j61zf2",position:"position-x1n2onr6",top:"top-xjibb99",$$css:"HeaderMenu/index.tsx:77"},iconProtected:{backgroundColor:"backgroundColor-xp763xq",border:"border-x10nnx08",color:"color-x1vcl3ok",$$css:"HeaderMenu/index.tsx:89"},iconMonitored:{backgroundColor:"backgroundColor-x1g3illd",border:"border-xl8l6sj",color:"color-x1g9udmf",$$css:"HeaderMenu/index.tsx:94"},iconDisabled:{backgroundColor:"backgroundColor-xgji3v1",border:"border-xe257ih",color:"color-xnvj2e1",$$css:"HeaderMenu/index.tsx:99"}};function A(e){var t,n,r=e.menuItems,o=e.title,f=e.subTitle,p=void 0===f?"":f,g=e.subText,h=void 0===g?"":g,b=e.clickLogBacklink,A=void 0!==b&&b,_=(e.className,e.size),S=void 0===_?"md":_,w=e.statusIcon,O=void 0!==w&&w,j=e.contentRight,k=void 0===j?null:j,E=(0,s.useLocation)(),N=E.state,I=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(E,m),P=(t=(0,s.useSearchParams)(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],T=P.get("dsp"),C=P.get("status");return(0,d.jsxs)("div",y(y({},i.props(v.container,"sm"===S?v.smContainer:v.mdContainer)),{},{children:[(0,d.jsxs)("div",{style:{width:"100%"},children:[(0,d.jsxs)("div",{className:"flex",children:[O&&(0,d.jsx)("div",y(y({},i.props(v.iconContainer,"2"===C&&v.iconProtected,"1"===C&&v.iconMonitored,"0"===C&&v.iconDisabled)),{},{children:(0,d.jsx)(u.default,{content:"2"===C?(0,l.language)("Protected - Your campaign is actively protected against invalid traffic."):"1"===C?(0,l.language)("Monitored - Your campaign is being monitored for invalid traffic."):(0,l.language)("Disabled - Your campaign is not protected or monitored for invalid traffic."),showIcon:!1,children:(0,d.jsx)(c.default,{name:"2"===C?["far","shield-check"]:"1"===C?["far","wave-pulse"]:["far","minus-circle"]})})})),(0,d.jsxs)("div",{children:[A&&(0,d.jsxs)(s.Link,{"data-testid":"go-back",className:"fontSize-xif65rj fontWeight-x1s688f color-x1ikhnzc textDecoration-x1hl2dhg marginBottom-x12nagc marginLeft-x1tpqehw display-x1rg5ohu opacity-x18uuni6",to:"meta-clicks"===T?"/meta/clicks-log":"exclusions"===T?"/exclusions/ip":"/clicks-log",state:{rowId:null==N?void 0:N.rowId,page:null==N?void 0:N.page,clickType:null==N?void 0:N.clickType},children:[(0,d.jsx)(c.default,{name:["far","arrow-left"]})," ",(0,l.language)("Go Back")]}),!A&&O&&(0,d.jsx)("div",{className:"flex v-align-center",children:(0,d.jsx)("h4",y(y({},{className:"fontSize-x1pvqxga fontWeight-x1xlr1w8 lineHeight-x1o2sk6j color-x1jsblnb marginBottom-x12nagc","data-style-src":"HeaderMenu/index.tsx:28"}),{},{children:o}))}),p&&(0,d.jsx)("div",y(y({},{className:"height-xxk0z11 lineHeight-x1o2sk6j fontSize-xif65rj fontWeight-xo1l8bm color-xd87uto marginBottom-x1e56ztr","data-style-src":"HeaderMenu/index.tsx:35"}),{},{children:p})),!A&&!O&&(0,d.jsx)("div",{className:"flex v-align-center",children:(0,d.jsx)("h4",y(y({},{className:"fontSize-x1pvqxga fontWeight-x1xlr1w8 lineHeight-x1o2sk6j color-x1jsblnb marginBottom-x12nagc","data-style-src":"HeaderMenu/index.tsx:28"}),{},{children:o}))})]})]}),r.length>0&&(0,d.jsx)("div",y(y({},{className:"marginTop-x14vqqas display-x78zum5","data-style-src":"HeaderMenu/index.tsx:50"}),{},{children:r.map(function(e){return(0,a.createElement)("div",y(y({}
2,{className:"display-x3nfvp2 alignItems-x6s0dn4 paddingRight-xyfqnmn paddingLeft-xnm25rq height-x1vqgdyp","data-style-src":"HeaderMenu/index.tsx:54"}),{},{key:e.name}),(0,d.jsx)(s.NavLink,y(y({to:e.to,end:!0},i.props(e.disabled&&v.disabled,v.aLink,(t=e.to,I.pathname+I.search===t&&v.activeLink))),{},{"aria-disabled":e.disabled,"aria-label":e.name,children:e.name}),e.name));var t})})),h&&(0,d.jsx)("div",y(y({},{className:"marginTop-x1xmf6yo marginBottom-x1e56ztr fontSize-xif65rj fontWeight-xo1l8bm color-xd87uto","data-style-src":"HeaderMenu/index.tsx:43"}),{},{children:h}))]}),k&&(0,d.jsx)("div",{className:"h-align-right width-100 v-align-center",children:k})]}))}A.displayName="PageHeader",t.A=A},44984:(e,t,n)=>{"use strict";n.d(t,{A:()=>h}),n(14041);var r=n(56197),o=n(76449),a=n(28426),i=n(27805),l=n(89748),s=n(19863),c=n(40699),u=n(62161),d=n(27333),f=n(72902),p=n(92523),m=n(41574),g=n(31085);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(){var e,t,n,h,x=(0,d.R7)({sortKey:"fraud_type_count",sortOrder:"desc"}),b=x.filters,v=x.handlePagination,A=x.setFilters,_=x.handleSort,S=(0,d.st)("/affiliates/clicks/fraud-types",b,function(e){var t="&group_by=network",n=Object.keys(e).filter(function(t){return t.startsWith("fraud_type.")&&e[t]}).map(function(e){return e.replace("fraud_type.","")});return e["network.contains"]&&(t+="&network_contains=".concat(e["network.contains"])),e["campaign.contains"]&&(t+="&campaign_contains=".concat(e["campaign.contains"])),e["partner.contains"]&&(t+="&partner_contains=".concat(e["partner.contains"])),n.length>0&&(t+='&fraud_type=["'.concat(n.join('","'),'"]')),t}),w=S.data,O=S.isLoading,j=Object.entries((0,c.T5)("analytics")).map(function(e){var t,n,r=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],a=r[1];return{label:(0,l.A)(a),shortLabel:(0,l.A)(a),type:"checkbox",name:o,value:!1}}),k=[{label:(0,l.A)("Fraud Type"),name:"fraud_type",type:"checkbox",queryTranslator:"arrayOfNames",queryKey:"type",options:j},{label:(0,l.A)("Network"),name:"network",type:"radio",options:[{label:(0,l.A)("contains"),name:"contains",type:"text"}]},{label:(0,l.A)("Campaign"),name:"campaign",type:"radio",options:[{label:(0,l.A)("contains"),name:"contains",type:"text"}]},{label:(0,l.A)("Partner"),name:"partner",type:"radio",options:[{label:(0,l.A)("contains"),name:"contains",type:"text"}]}];return(0,g.jsxs)(a.A.Page,{type:"overview",children:[(0,g.jsx)(i.default,{type:"overview",title:(0,l.A)("Fraud Type"),text:(0,l.A)("Monitor across all of your Networks, Partners and Campaigns"),contentRight:(0,g.jsx)(m.A,{filters:b,exportType:"fraud_type",exportValue:(0,l.A)("Fraud Type")})}),(0,g.jsx)(f.A,{}),(0,g.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,g.jsx)("div",{className:"left",children:(0,g.jsx)(o.default,{filterConfig:k,initialValues:b,onFilterChange:A})}),(0,g.jsx)(p.default,{})]}),(0,g.jsx)(u.A,{rows:null==w||null===(e=w.result)||void 0===e?void 0:e.data,isLoading:O,totalResults:null==w||null===(t=w.result)||void 0===t||null===(t=t.pagination)||void 0===t?void 0:t.total,totalPages:null==w||null===(n=w.result)||void 0===n||null===(n=n.pagination)||void 0===n?void 0:n.last_page,totalItems:null==w||null===(h=w.result)||void 0===h||null===(h=h.pagination)||void 0===h?void 0:h.total,pageNumber:b.page,handlePagination:v,handleSorting:_,sorting:{sortKey:b.sortKey,sortOrder:b.sortOrder},limit:b.limit,leftPinnedColumns:1,children:function(e){var t;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("thead",{children:[(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{"data-sortable-id":"fraud_type",children:(0,l.A)("Fraud Type")}),(0,g.jsx)("th",{"data-sortable-id":"network",children:(0,l.A)("Network")}),(0,g.jsx)("th",{"data-sortable-id":"partner",children:(0,l.A)("Partner")}),(0,g.jsx)("th",{"data-sortable-id":"campaign",children:(0,l.A)("Campaign")}),(0,g.jsx)("th",{"data-sortable-id":"fraud_type_count","data-tooltip":(0,l.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,l.A)("SIVT Clicks")})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,l.A)("Totals")}),(0,g.jsx)("th",{children:"-"}),(0,g.jsx)("th",{children:"-"}),(0,g.jsx)("th",{children:"-"}),(0,g.jsx)("th",{children:(0,s.m)(null==w||null===(t=w.result)||void 0===t||null===(t=t.overall)||void 0===t?void 0:t.overall_fraud_type_count)||"-"})]})]}),(0,g.jsxs)("tbody",{children:[(0,g.jsx)("td",{children:(0,g.jsx)(r.default,{style:{lineHeight:"24px"},colourName:"error",children:(0,l.A)((0,c.T5)("analytics")[null==e?void 0:e.fraud_type])})}),(0,g.jsx)("td",{children:null==e?void 0:e.network}),(0,g.jsx)("td",{children:null==e?void 0:e.partner}),(0,g.jsx)("td",{children:null==e?void 0:e.campaign}),(0,g.jsx)("td",{children:(0,s.m)(null==e?void 0:e.fraud_type_count)})]})]})}})]})}},44992:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(14041).createContext)({})}
2,45189:(e,t,n)=>{"use strict";e.exports=n.p+"4120f36734951b7af3fb.svg"},45365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Accordion:()=>H.A,AccountSelector:()=>b.A,AlertActBanner:()=>pe.A,Avatar:()=>Y.A,AwAccountSelect:()=>le.A,Badge:()=>r.default,BigTitle:()=>O.A,Button:()=>o.default,ButtonGroup:()=>s.A,Card:()=>l.default,Chart:()=>W.A,ClickOutside:()=>G.default,CountryIcon:()=>z.A,DarkMode:()=>V.A,DeltaBadge:()=>q.default,Divider:()=>a.default,DragSortList:()=>L.default,DropdownFilters:()=>y.A,DropdownSelect:()=>h.A,DropdownToggle:()=>D.A,EmptyState:()=>B.A,ErrorBoundary:()=>K.A,FilterPanel:()=>M.A,Filters:()=>m.default,FiltersV2:()=>g.A,FloatingLabel:()=>ce.A,Grid:()=>F.default,HeaderMenu:()=>ye.A,Heading:()=>_.default,HealthScore:()=>fe.A,Icon:()=>R.default,InfoCard:()=>de.default,Input:()=>i.default,Label:()=>p.default,Layout:()=>C.A,LunioLoader:()=>j.default,LunioLoaderAnimation:()=>Z.A,LunioPageLoader:()=>$.A,Map:()=>k.A,MockAd:()=>he.A,Modal:()=>d.default,NoData:()=>U.A,PageHeader:()=>ge.default,Placeholder:()=>J.default,PlatformIcon:()=>ie.A,ProgressBar:()=>ee.A,ProgressIndicator:()=>Q.A,ProtectionStatus:()=>N.A,ResponsiveGrid:()=>X.A,Score:()=>re.A,SelectedTags:()=>se.A,SideContentPanel:()=>v.default,Sidebar:()=>f.A,SourceCard:()=>me.A,StatBlock:()=>E.A,StatusDot:()=>P.A,TabbedContent:()=>T.A,Table:()=>oe.A,TableInput:()=>ae.A,Text:()=>A.default,TextLength:()=>te.A,Tile:()=>u.A,ToolTip:()=>x.default,TopBar:()=>c.A,TypeBadge:()=>I.A,WidgetHeading:()=>S.A,WidgetLabel:()=>w.A,WorkspaceIcon:()=>ne.A,WorkspaceLoader:()=>ue.A,debounce:()=>xe.default,validateFormField:()=>be.A});var r=n(56197),o=n(9260),a=n(77223),i=n(62720),l=n(72686),s=n(64705),c=n(91612),u=n(44576),d=n(13571),f=n(51624),p=n(9486),m=n(76449),g=n(46389),y=n(64828),h=n(75115),x=n(1781),b=n(57250),v=n(55618),A=n(30021),_=n(82138),S=n(15270),w=n(62562),O=n(21892),j=n(55436),k=n(1850),E=n(64517),N=n(62683),I=n(39317),P=n(17419),T=n(11401),C=n(28426),R=n(79135),M=n(2492),L=n(37270),D=n(56583),B=n(41406),U=n(83405),F=n(30556),G=n(93513),W=n(37184),z=n(9685),V=n(46425),q=n(23151),K=n(91788),H=n(69222),Y=n(29323),$=n(82917),Z=n(4414),X=n(57670),J=n(30087),Q=n(81216),ee=n(43188),te=n(13373),ne=n(78484),re=n(38238),oe=n(54384),ae=n(22636),ie=n(90405),le=n(39409),se=n(28552),ce=n(78480),ue=n(32998),de=n(65462),fe=n(96956),pe=n(20340),me=n(47573),ge=n(27805),ye=n(44949),he=n(98962),xe=n(73055),be=n(1469)},45647:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MockStateWrapper:()=>c.A,useGlobalFiltersState:()=>a.A,usePermissionsState:()=>i.A,usePlatformsState:()=>r.A,useSelectWorkspace:()=>s.A,useSyncState:()=>l.A,useWorkspacesState:()=>o.A});var r=n(96182),o=n(77730),a=n(80111),i=n(11182),l=n(36549),s=n(68236),c=n(92718)},45668:(e,t,n)=>{"use strict";e.exports=n.p+"bfef03cdebaffba7670a.svg"},45949:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t,n,r){return(null==t?void 0:t.platforms)||-1===(null==t?void 0:t.id)&&e.length>0&&n||!(null!=t&&t.id)&&e.length>0&&r||[]}},46389:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=y(n(25751)),a=n(14041),i=n(99018),l=n(60156),s=n(18141),c=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),u=y(n(93513)),d=y(n(79135)),f=y(n(60619)),p=y(n(38741)),m=y(n(13967)),g=n(31085);function y(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=o.default;w(".position-x1n2onr6{position:relative}",3e3),w(".width-xezivpi{width:max-content}",4e3),w(".zIndex-x1u8a7rm{z-index:5}",3e3),w(".display-x3nfvp2{display:inline-flex}",3e3),w(".height-xn3w4p2{height:44px}",4e3),w(".zIndex-x1vjfegm{z-index:1}",3e3),w(".borderRadius-xur7f20{border-radius:8px}",2e3),w(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),w(".display-x78zum5{display:flex}",3e3),w(".alignItems-x6s0dn4{align-items:center}",3e3),w(".paddingLeft-x1k8dnhd{padding-left:18px}",4e3),w(".paddingRight-x18a8kpn{padding-right:18px}",4e3),w(".marginRight-x1db2dqx{margin-right:8px}",4e3),w(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),w(".fontSize-x1j61zf2{font-size:16px}",3e3),w(".boxSizing-x9f619{box-sizing:border-box}",3e3),w(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),w(".cursor-x1ypdohk{cursor:pointer}",3e3),w(".marginLeft-xet2fuk{margin-left:8px}",4e3),w(".position-x10l6tqk{position:absolute}",3e3),w(".zIndex-x1n327nk{z-index:10}",3e3),w(".top-xbssg55{top:50px}",4e3),w(".left-xu96u03{left:0}",4e3),w(".right-x3m8u43{right:0}",4e3),w(".paddingLeft-xnm25rq{padding-left:16px}",4e3),w(".paddingRight-xyfqnmn{padding-right:16px}",4e3),w(".fontSize-xif65rj{font-size:14px}",3e3),w(".fontWeight-xk50ysn{font-weight:500}",3e3),w(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),w(".cursor-x1277o0a:hover{cursor:pointer}",3130),w(".color-x1mda8oq:hover{color:var(--gray900-xevft2h)}",3130),w(".marginRight-xl010v5{margin-right:4px}",4e3),w(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3);var O={position:"position-x10l6tqk",zIndex:"zIndex-x1n327nk",top:"top-xbssg55",left:"left-xu96u03",insetInlineStart:null,insetInlineEnd:null,$$css:"FiltersV2/index.tsx:43"},j={position:"position-x10l6tqk",top:"top-xbssg55",right:"right-x3m8u43",insetInlineStart:null,insetInlineEnd:null,$$css:"FiltersV2/index.tsx:49"},k=[];function E(e){var t=e.filters,n=void 0===t?k:t,r=e.setFilters,o=void 0===r?function(){}:r,p=e.className,y=void 0===p?"":p;function h(e){var t=Array.isArray(e)?e:[];return t.forEach(function(e){var t,n,r;if("radio"===e.type&&1===(null==e||null===(t=e.options)||void 0===t?void 0:t.length)&&"text"===(null==e||null===(n=e.options[0])||void 0===n?void 0:n.type)){var o=function(e){if(Array.isArray(e))return S(e)}(r=e.options)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||_(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o[0]=v(v({},o[0]),{},{isActive:!0}),e.options=o}}),t}var b=x((0,a.useState)(h(n)),2),A=b[0],w=b[1],E=x((0,a.useState)(!1),2),N=E[0],I=E[1],P=(0,a.useRef)(null);function T(e){w(h(e))}return(0,a.useEffect)(function(){w(h(n))},[n]),(0,g.jsxs)("div",{className:(0,i.classNames)("position-x1n2onr6 width-xezivpi zIndex-x1u8a7rm display-x3nfvp2",y),"data-testid":"filters-container",children:[(0,g.jsxs)(u.default,{onClickOutside:function(){return T(n),void I(!1)},children:[(0,g.jsxs)("button",{id:"filters-open-button","data-testid":"filters-open-button",ref:P,type:"button",className:(0,i.classNames)("height-xn3w4p2 zIndex-x1vjfegm width-xezivpi borderRadius-xur7f20 backgroundColor-x18oya0d display-x78zum5 alignItems-x6s0dn4 paddingLeft-x1k8dnhd paddingRight-x18a8kpn marginRight-x1db2dqx color-x5tu7p5 fontSize-x1j61zf2 boxSizing-x9f619 border-x180m19u",N&&"cursor-x1ypdohk"),onClick:function(){return e=!N,T(n),void I(e);var e},children:[(0,l.language)("Filter"),(0,g.jsx)(d.default,{name:["fas","bars-filter"],className:"marginLeft-xet2fuk"})]}),N&&(0,g.jsx)("div",v(v({},c.props((0,s.sideChoice)(P.current,O,j))),{},{"data-testid":"main-filter-menu",children:(0,g.jsx)(f.default,{filters:A,onFilterChange:function(e){T(e)},onFilterApply:function(){o(A),I(!1)},leftSide:(0,s.sideChoice)(P.current,!0,!1)})}))]}),(0,g.jsx)(m.default,{filters:n,setFilters:function(e){T(e),o(e)}})]})}E.displayName="Filters",E.SearchedSelection=p.default,t.A=E},46425:(e,t,n)=>{"use strict";t.A=void 0;var r=s(n(25751)),o=n(14041),a=n(99018),i=s(n(79135)),l=n(31085);
2function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=["className"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g=r.default;function y(){return"undefined"!=typeof window&&"darkModeTheme"===window.localStorage.getItem("themeName")}function h(e){var t,n,r=e.className,s=void 0===r?"":r,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u),d=(t=(0,o.useState)(y),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],g=d[1],h=(0,a.classNames)("color-xf72ejy cursor-x1277o0a",s);function x(){var e=!p;!function(e){"undefined"!=typeof window&&(e?window.localStorage.setItem("themeName","darkModeTheme"):window.localStorage.setItem("themeName","defaultTheme"))}(e),g(e),function(){if("undefined"!=typeof document){var e=new CustomEvent("themeChangeEvent",{detail:"The name of the theme was changed"});document.dispatchEvent(e)}}()}return(0,l.jsxs)("div",f(f({},c),{},{className:h,children:[!p&&(0,l.jsx)(i.default,{name:"fa-moon",onClick:x,"data-testid":"dark-mode-cta-dark"}),p&&(0,l.jsx)(i.default,{name:"fa-sun",onClick:x,"data-testid":"dark-mode-cta-default"})]}))}g(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),g(".cursor-x1277o0a:hover{cursor:pointer}",3130),h.displayName="DarkMode",t.A=h},46444:(e,t,n)=>{"use strict";e.exports=n.p+"4a3947b83d471fe19e54.svg"},46622:(e,t,n)=>{"use strict";function r(e){if(!e)return!1;try{var t=e.split(".");if(t.length<2||!t[1])return!1;var n=JSON.parse(window.atob(t[1]));return Boolean(null==n?void 0:n.admin_id)}catch(e){return!1}}n.d(t,{A:()=>r})},46717:(e,t,n)=>{"use strict";e.exports=n.p+"3cdc7ddbff3926c3b322.svg"},46939:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(14041),o=n(62720),a=n(28426),i=n(27805),l=n(22050),s=n(89748),c=n(88133),u=n(59250),d=n(31085);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const m=function(){var e,t,n,p,m,g,y,h,x,b=f((0,r.useState)(o.default.DatePicker.getDateRange("30d")),2),v=b[0],A=b[1],_=f((0,r.useState)(o.default.DatePicker.getDateRange("30d")),2),S=_[0],w=_[1],O=(0,c.Ay)("/analytics/dashboard?df_dmin=".concat(null==v||null===(e=v.min)||void 0===e?void 0:e.timestamp,"&df_dmax=").concat(null==v||null===(t=v.max)||void 0===t?void 0:t.timestamp,"&df_interval=day&platform=all"),"","re-allocated-budget-".concat(null==v||null===(n=v.min)||void 0===n?void 0:n.timestamp,"-").concat(null==v||null===(p=v.max)||void 0===p?void 0:p.timestamp)),j=O.data,k=O.isLoading,E=(0,c.Ay)("/analytics/from_sources?df_dmin=".concat(S.min.timestamp,"&df_dmax=").concat(S.max.timestamp,"&df_interval=day&platform=all&recalc=1"),void 0,"click-source-breakdown-".concat(S.min.timestamp,"-").concat(S.max.timestamp)),N=E.data,I=E.isLoading,P=null==N||null===(m=N.result)||void 0===m?void 0:m.data,T=(null==P?void 0:P.suspicious_source)+(null==P?void 0:P.legitimate_source)+(null==P?void 0:P.fraudulent_source),C=null==j||null===(g=j.result)||void 0===g||null===(g=g.analytics)||void 0===g||null===(g=g.summary_data)||void 0===g?void 0:g.currency_symbol,R=Number(null==j||null===(y=j.result)||void 0===y||null===(y=y.analytics)||void 0===y||null===(y=y.summary_data)||void 0===y?void 0:y.budget_efficiency);return(0,d.jsxs)(a.A.Page,{type:"overview",children:[(0,d.jsx)(i.default,{type:"overview",title:(0,s.A)("IVT Summary"),text:(0,s.A)("View a summary of your invalid traffic metrics")}),(0,d.jsx)(u.A,{isLoading:k,total:{title:(0,s.A)("SIVT Clicks"),count:null==j||null===(h=j.result)||void 0===h||null===(h=h.analytics)||void 0===h||null===(h=h.summary_data)||void 0===h||null===(h=h.click_totals)||void 0===h?void 0:h.fraudulent},invalid:{title:(0,s.A)("Avg IVT%"),count:null==j||null===(x=j.result)||void 0===x||null===(x=x.analytics)||void 0===x||null===(x=x.summary_data)||void 0===x||null===(x=x.click_percentages)||void 0===x?void 0:x.fraudulent,icon:["far","percent"]},ivt:{title:(0,s.A)("Est. Re-allocated Budget"),count:R,valuePrefix:C,icon:!1},setTime:A,time:v,allowedRanges:["1d","yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]}),(0,d.jsx)("div",{className:"mb-4",children:(0,d.jsx)(l.A,{reAllocated:!0,allAccounts:!0})}),(0,d.jsx)(u.A,{title:(0,s.A)("Invalid Sources"),isLoading:I,total:{title:(0,s.A)("Total Sources"),count:T,icon:["far","globe"]},invalid:{title:(0,s.A)("Cost of Invalid Sources"),count:null==P?void 0:P.invalid_source_costs,valuePrefix:C,icon:!1},setTime:w,time:S})]})}},47066:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,r=n<=100?100:n,o=function(e){for(var t=0,n=0;n<e.length;n+=1)t=31*t+e.charCodeAt(n);return t}(String(arguments.length>3&&void 0!==arguments[3]?arguments[3]:"")),a=Math.min(255,90+Math.floor((e+o)%r*165/r)),i=Math.min(255,90+Math.floor((t/2+o/4)%r*165/r)),l=Math.min(255,90+Math.floor((e+t+o)%r*165/r));Math.abs(a-i)<60&&(i=(i+60)%255),Math.abs(i-l)<50&&(l=(l+60)%255),Math.abs(l-a)<50&&(a=(a+60)%255);var s=Math.max(a,120),c=Math.max(i,120),u=Math.max(l,120),d=s.toString(16).padStart(2,"0"),f=c.toString(16).padStart(2,"0"),p=u.toString(16).padStart(2,"0");return"#".concat(d).concat(f).concat(p)}},47087:(e,t,n)=>{"use strict";e.exports=n.p+"a0c6cc1401c107b501ef.png"},47188:(e,t,n)=>{"use strict";e.exports=n.p+"2fe968d084e48706508e.svg"},47318:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(14041),i=n(43144),l=n(60156),s=n(18141),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=o.default;y(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),y(".overflow-xb3r6kr{overflow:hidden}",2e3),y(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),y(".display-x1rg5ohu{display:inline-block}",3e3),y(".maxWidth-x193iq5w{max-width:100%}",4e3),y(".verticalAlign-xxymvpz{vertical-align:middle}",3e3),y(".cursor-x1ypdohk{cursor:pointer}",3e3),y(".position-x10l6tqk{position:absolute}",3e3),y(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),y(".paddingTop-x1y1aw1k{padding-top:8px}",4e3),y(".paddingBottom-xwib8y2{padding-bottom:8px}",4e3),y(".paddingLeft-xf18ygs{padding-left:12px}",4e3),y(".paddingRight-xnuq7ks{padding-right:12px}",4e3),y(".border-x8msmez{border:1px solid var(--gray250-x1kpk87u)}",1e3),y(".borderRadius-x12oqio5{border-radius:4px}",2e3),y(".boxShadow-xs6pvlt{box-shadow:0 4px 12px rgba(0,0,0,.1)}",3e3),y(".zIndex-x1q2oy4v{z-index:9999}",3e3),y(".maxWidth-xw5ewwj{max-width:300px}",4e3),y(".whiteSpace-xeaf4i8{white-space:normal}",3e3),y(".wordBreak-x13faqbe{word-break:break-word}",3e3),y(".color-x1bk3paq{color:var(--black700-xoh1s16)}",3e3),y(".fontSize-xif65rj{font-size:14px}",3e3),t.A=function(e){var t=e.children,n=e.maxLength,r=void 0===n?20:n,o=e.clickToCopy,u=void 0!==o&&o,d=m((0,a.useState)(!1),2),p=d[0],g=d[1],y=(0,a.useRef)(null),h=m((0,a.useState)({top:0,left:0}),2),x=h[0],b=h[1],v="string"==typeof t?t:"",A=v.length>r?"".concat(v.slice(0,r),"..."):v;(0,a.useEffect)(function(){if(p&&y.current){var e=y.current.getBoundingClientRect();b({top:e.bottom+window.scrollY+6,left:e.left+window.scrollX})}},[p]);var _=p&&v.length>r?(0,c.jsxs)("div",f(f({},{className:"position-x10l6tqk backgroundColor-x18oya0d paddingTop-x1y1aw1k paddingBottom-xwib8y2 paddingLeft-xf18ygs paddingRight-xnuq7ks border-x8msmez borderRadius-x12oqio5 boxShadow-xs6pvlt zIndex-x1q2oy4v maxWidth-xw5ewwj whiteSpace-xeaf4i8 wordBreak-x13faqbe color-x1bk3paq fontSize-xif65rj","data-style-src":"TextLength/index.tsx:19"}),{},{style:{top:"".concat(x.top,"px"),left:"".concat(x.left,"px")},onMouseLeave:function(){return g(!1)},children:[v," ",u?" (Click to copy)":""]})):null;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",f(f({role:"button",tabIndex:0,ref:y,onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)},onClick:function(){navigator.clipboard.writeText(v).catch(function(e){console.error("Failed to copy text: ",e)}),(0,s.toastNotification)((0,l.language)("Copied to clipboard :value",{value:v}),"success")},onKeyDown:function(){}},{className:"whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv display-x1rg5ohu maxWidth-x193iq5w verticalAlign-xxymvpz cursor-x1ypdohk","data-style-src":"TextLength/index.tsx:10"}),{},{children:A})),_&&"undefined"!=typeof document&&null!=document.body?(0,i.createPortal)(_,document.body):null]})}}
2,47352:(e,t,n)=>{"use strict";function r(e){return-1===e?"all":e}n.d(t,{A:()=>r})},47357:(e,t,n)=>{"use strict";n.d(t,{A:()=>l}),n(14041);var r=n(72686),o=n(30021),a=n(89748),i=n(31085);function l(e){var t=e.platform;return(0,i.jsxs)(r.default,{children:[(0,i.jsx)(o.default,{preset:"chartHeading",className:"mb-4",children:t.platform_title}),(0,i.jsx)(o.default,{style:{maxWidth:256},preset:"cardText",className:"mb-16",children:(0,a.A)("Clicks coming through:")})]})}},47548:(e,t,n)=>{"use strict";e.exports=n.p+"3109eb9d79920e248020.png"},47573:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=p(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=n(60156),l=n(18141),s=p(n(77223)),c=p(n(79135)),u=p(n(30021)),d=p(n(1781)),f=n(31085);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=o.default;x(".position-x1n2onr6{position:relative}",3e3),x(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),x(".borderRadius-xur7f20{border-radius:8px}",2e3),x(".padding-x1qhigcl{padding:20px}",1e3),x(".borderTopWidth-x178xt8z{border-top-width:1px}",4e3),x(".borderTopStyle-x13fuv20{border-top-style:solid}",4e3),x(".borderTopColor-xlwlnjq{border-top-color:var(--gray200-x1cfnqzm)}",4e3),x(".borderRightWidth-xs1s249{border-right-width:1px}",4e3),x(".borderRightStyle-x32b0ac{border-right-style:solid}",4e3),x(".borderRightColor-x12nkmir{border-right-color:var(--gray200-x1cfnqzm)}",4e3),x(".borderBottomWidth-xso031l{border-bottom-width:1px}",4e3),x(".borderBottomStyle-x1q0q8m5{border-bottom-style:solid}",4e3),x(".borderBottomColor-x1tz3338{border-bottom-color:var(--gray200-x1cfnqzm)}",4e3),x(".borderLeftWidth-xc8hjz9{border-left-width:4px}",4e3),x(".borderLeftStyle-x19ypqd9{border-left-style:solid}",4e3),x(".borderLeftColor-xwqx4yo{border-left-color:var(--success300-xj807bz)}",4e3),x(".borderLeftColor-x7gw8u2{border-left-color:var(--warning200-xgv5m4l)}",4e3),x(".borderLeftColor-xw0vx3d{border-left-color:var(--error300-x1etg42b)}",4e3),x("@media (min-width: 960px) and (max-width: 1279px){.gridColumn-x9bg8p3.gridColumn-x9bg8p3{grid-column:1 / -1}}",2200),x(".display-x78zum5{display:flex}",3e3),x(".alignItems-x6s0dn4{align-items:center}",3e3),x(".gap-x17d4w8g{gap:6px}",2e3),x(".marginBottom-x12nagc{margin-bottom:4px}",4e3),x(".fontSize-x1s3cmhv{font-size:32px}",3e3),x(".fontWeight-x1xlr1w8{font-weight:700}",3e3),x(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),x(".margin-x1ghz6dp{margin:0}",1e3),x(".paddingTop-x1iorvi4{padding-top:4px}",4e3),x(".paddingBottom-xsag5q8{padding-bottom:12px}",4e3),x(".justifyContent-x1qughib{justify-content:space-between}",3e3),x(".marginTop-x1xmf6yo{margin-top:8px}",4e3),x(".fontSize-x4z9k3i{font-size:13px}",3e3),x(".fontWeight-xo1l8bm{font-weight:400}",3e3),x(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),x(".fontWeight-x1s688f{font-weight:600}",3e3),x(".position-x10l6tqk{position:absolute}",3e3),x(".bottom-x191j7n5{bottom:16px}",4e3),x(".right-xn5hqff{right:16px}",4e3),x(".gap-x1jnr06f{gap:4px}",2e3),x(".cursor-x1ypdohk{cursor:pointer}",3e3),x(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),x("@media (min-width: 960px) and (max-width: 1279px){.display-xnmse4.display-xnmse4{display:none}}",3200);var b={card:{position:"position-x1n2onr6",backgroundColor:"backgroundColor-x18oya0d",borderRadius:"borderRadius-xur7f20",padding:"padding-x1qhigcl",borderTopWidth:"borderTopWidth-x178xt8z",borderTopStyle:"borderTopStyle-x13fuv20",borderTopColor:"borderTopColor-xlwlnjq",borderRightWidth:"borderRightWidth-xs1s249",borderRightStyle:"borderRightStyle-x32b0ac",borderRightColor:"borderRightColor-x12nkmir",borderBottomWidth:"borderBottomWidth-xso031l",borderBottomStyle:"borderBottomStyle-x1q0q8m5",borderBottomColor:"borderBottomColor-x1tz3338",borderLeftWidth:"borderLeftWidth-xc8hjz9",borderLeftStyle:"borderLeftStyle-x19ypqd9",$$css:"SourceCard/index.tsx:12"},legitimate:{borderLeftColor:"borderLeftColor-xwqx4yo",borderInlineStartColor:null,borderInlineEndColor:null,$$css:"SourceCard/index.tsx:29"},suspicious:{borderLeftColor:"borderLeftColor-x7gw8u2",borderInlineStartColor:null,borderInlineEndColor:null,$$css:"SourceCard/index.tsx:32"},invalid:{borderLeftColor:"borderLeftColor-xw0vx3d",borderInlineStartColor:null,borderInlineEndColor:null,$$css:"SourceCard/index.tsx:35"},fullWidthMedium:{"@media (min-width: 960px) and (max-width: 1279px)_gridColumn":"gridColumn-x9bg8p3","@media (min-width: 960px) and (max-width: 1279px)_gridColumnStart":null,"@media (min-width: 960px) and (max-width: 1279px)_gridColumnEnd":null,$$css:"SourceCard/index.tsx:38"}};function v(e){var t=e.type,n=e.title,r=e.fullWidthMedium,o=void 0!==r&&r,p="legitimate"===t||"suspicious"===t||"invalid"===t,m=p?(0,l.localiseNumber)(e.clickCount):"".concat(e.currencySymbol).concat((0,l.localiseNumber)(e.cost,2));return(0,f.jsxs)("div",y(y({},a.props(b.card,function(e){return"legitimate"===e?b.legitimate:"suspicious"===e?b.suspicious:b.invali
2d}(t),o&&b.fullWidthMedium)),{},{children:[(0,f.jsx)("div",y(y({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x17d4w8g marginBottom-x12nagc","data-style-src":"SourceCard/index.tsx:43"}),{},{children:(0,f.jsx)(u.default,{preset:"widgetColumnHeading",children:n})})),(0,f.jsx)("p",y(y({},{className:"fontSize-x1s3cmhv fontWeight-x1xlr1w8 color-x18k1rwp margin-x1ghz6dp paddingTop-x1iorvi4 paddingBottom-xsag5q8","data-style-src":"SourceCard/index.tsx:49"}),{},{children:m})),p?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.default,{}),(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4 marginTop-x1xmf6yo","data-style-src":"SourceCard/index.tsx:57"}),{},{children:[(0,f.jsx)("span",y(y({},{className:"fontSize-x4z9k3i fontWeight-xo1l8bm color-xbdn2ka","data-style-src":"SourceCard/index.tsx:63"}),{},{children:(0,i.language)("Total Sources")})),(0,f.jsx)("span",y(y({},{className:"fontSize-x4z9k3i fontWeight-x1s688f color-x18k1rwp","data-style-src":"SourceCard/index.tsx:68"}),{},{children:(0,l.localiseNumber)(e.totalSources)}))]})),(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4 marginTop-x1xmf6yo","data-style-src":"SourceCard/index.tsx:57"}),{},{children:[(0,f.jsx)("span",y(y({},{className:"fontSize-x4z9k3i fontWeight-xo1l8bm color-xbdn2ka","data-style-src":"SourceCard/index.tsx:63"}),{},{children:(0,i.language)("Click Percentage")})),(0,f.jsx)("span",y(y({},{className:"fontSize-x4z9k3i fontWeight-x1s688f color-x18k1rwp","data-style-src":"SourceCard/index.tsx:68"}),{},{children:"".concat(e.total>0?(0,l.calcPercentage)(e.clickCount,e.total,2):0,"%")}))]})),(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4 marginTop-x1xmf6yo","data-style-src":"SourceCard/index.tsx:57"}),{},{children:[(0,f.jsx)("span",y(y({},{className:"fontSize-x4z9k3i fontWeight-xo1l8bm color-xbdn2ka","data-style-src":"SourceCard/index.tsx:63"}),{},{children:(0,i.language)("Click Count")})),(0,f.jsx)("span",y(y({},{className:"fontSize-x4z9k3i fontWeight-x1s688f color-x18k1rwp","data-style-src":"SourceCard/index.tsx:68"}),{},{children:(0,l.localiseNumber)(e.clickCount)}))]}))]}):null,"invalid-sources-cost"===t?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",y(y({},{className:"display-xnmse4","data-style-src":"SourceCard/index.tsx:85"}),{},{children:(0,f.jsx)(s.default,{})})),(0,f.jsx)("div",y(y({},{className:"position-x10l6tqk bottom-x191j7n5 right-xn5hqff","data-style-src":"SourceCard/index.tsx:73"}),{},{children:(0,f.jsx)(d.default,{content:e.extraInfoTooltipContent,children:(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1jnr06f cursor-x1ypdohk color-xnx9fn3","data-style-src":"SourceCard/index.tsx:78"}),{},{children:[(0,f.jsx)("span",y(y({},{className:"fontSize-x4z9k3i fontWeight-xo1l8bm color-xbdn2ka","data-style-src":"SourceCard/index.tsx:63"}),{},{children:e.extraInfoLabel})),(0,f.jsx)(c.default,{name:"faProRegularCircleInfo"})]}))})}))]}):null]}))}v.displayName="SourceCard",t.A=v},48016:(e,t,n)=>{"use strict";e.exports=n.p+"0f8b4cd389b7b77a8f7b.svg"},48037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(25751)),o=n(99018),a=n(60156),i=d(n(27805)),l=d(n(82138)),s=d(n(9260)),c=d(n(79135)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}var f=r.default;function p(e){var t,n=e.title,r=e.text,d=void 0===r?"":r,f=e.children,p=e.onClose,m=void 0===p?function(){}:p,g=e.className,y=void 0===g?"":g,h=null!==(t=null!=n?n:f)&&void 0!==t?t:null;function x(e){return"string"==typeof e||"number"==typeof e}return(0,u.jsxs)("div",{className:(0,o.classNames)("width-xh8yej3",y),children:[(0,u.jsx)(s.default,{preset:"tertiary","aria-label":(0,a.language)("Close"),className:"float-x18mqm2i position-x1n2onr6 top-x1fur4o1 right-x3m8u43",onClick:m,children:(0,u.jsx)(c.default,{name:"close"})}),h&&x(h)&&(0,u.jsx)(i.default,{title:"".concat(h),text:d,noDivider:!0}),h&&!x(h)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.default,{as:"h5",children:h}),d&&(0,u.jsx)("p",{children:d})]})]})}f(".width-xh8yej3{width:100%}",4e3),f(".float-x18mqm2i{float:right}",3e3),f(".position-x1n2onr6{position:relative}",3e3),f(".top-x1fur4o1{top:-10px}",4e3),f(".right-x3m8u43{right:0}",4e3),p.displayName="Modal.Header",t.default=p},48242:(e,t,n)=>{"use strict";e.exports=n.p+"f01647099cb2b5b37b55.svg"},48419:(e,t,n)=>{"use strict";e.exports=n.p+"96156ca060ebc80d6f93.svg"},48600:(e,t,n)=>{"use strict";e.exports=n.p+"57b24e5c3e2588cfdeb7.svg"},48734:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=E(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=E(n(3036)),l=E(n(12342)),s=E(n(64247)),c=E(n(62834)),u=E(n(67412)),d=E(n(29833)),f=E(n(31848)),p=E(n(97314)),m=E(n(96916)),g=E(n(49158)),y=E(n(17161)),h=E(n(48242)),x=E(n(92860)),b=E(n(9991)),v=E(n(59420)),A=E(n(96981)),_=E(n(12174)),S=E(n(47188)),w=E(n(36354)),O=E(n(90914)),j=E(n(33300)),k=n(31085);function E(e){return e&&e.__esModule?e:{default:e}}function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}var I=["platformName","preset","border"];function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function C(e,t,n){return(t=function(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=o.default;R(".filter-x1gypw5m{filter:brightness(0) saturate(100%) invert(59%) sepia(14%) saturate(208%) hue-rotate(186deg) brightness(98%) contrast(89%)}",3e3),R(".filter-x96sdx0{filter:brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(99deg) brightness(102%) contrast(105%)}",3e3),R(".display-x1rg5ohu{display:inline-block}",3e3),R(".border-x19oet43{border:1px solid var(--grey100-x1kew49q)}",1e3),R(".borderRadius-x1q4ynmn{border-radius:10px}",2e3),R(".padding-xfawy5m{padding:4px}",1e3);var M={coloured:{$$css:"PlatformIcon/index.tsx:27"},grey:{filter:"filter-x1gypw5m",$$css:"PlatformIcon/index.tsx:28"},white:{filter:"filter-x96sdx0",$$css:"PlatformIcon/index.tsx:31"},border:{display:"display-x1rg5ohu",border:"border-x19oet43",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,borderRadius:"borderRadius-x1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"padding-xfawy5m",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:"PlatformIcon/index.tsx:34"}};t.default=function(e){var t,n,r=e.platformName,o=void 0===r?"google":r,E=e.preset,N=void 0===E?"coloured":E,P=e.border,C=void 0!==P&&P,R=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,I);function L(){switch(o){case"bing":return i.default;case"facebook":return l.default;case"google":return s.default;case"instagram":return c.default;case"linkedin":return u.default;case"meta":return d.default;case"pinterest":return f.default;case"reddit":return p.default;case"tiktok":return m.default;case"twitter":case"x":case"X":return g.default;case"youtube":return y.default;case"outbrain":return h.default;case"naver":return x.default;case"baidu":return b.default;case"adroll":return v.default;case"dv360":return A.default;case"yj":case"yahooJapan":case"yahoojapan":return _.default;case"taboola":return S.default;case"criteo":return w.default;case"affiliate":return O.default;case"openai":return j.default;default:return null}}return C?(0,k.jsx)("div",T(T({},{className:"display-x1rg5ohu border-x19oet43 borderRadius-x1q4ynmn padding-xfawy5m","data-style-src":"PlatformIcon/index.tsx:34"}),{},{children:(0,k.jsx)("img",T(T({"data-testid":"platformIcon-".concat(o),id:"platformIcon-".concat(o),alt:""},a.props(M[N])),{},{src:null!==(n=L())&&void 0!==n?n:void 0},R))})):(0,k.jsx)("img",T(T({"data-testid":"platformIcon-".concat(o),id:"platformIcon-".concat(o),alt:""},a.props(M[N])),{},{src:null!==(t=L())&&void 0!==t?t:void 0},R))}},48915:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=m(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),l=n(86957),s=n(60156),c=n(45365),u=m(n(88682)),d=m(n(41865)),f=m(n(15256)),p=n(31085);function m(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var y=["lineValue"],h=["value1","value2","lineValue"];function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var S=o.default;S(".backgroundColor-x1ex0zz8{background-color:var(--gray25-x1nef6k3)}",3e3),S(".borderRadius-x1khhgft{border-radius:24px}",2e3),S(".display-x78zum5{display:flex}",3e3),S(".gap-x883omv{gap:10px}",2e3),S(".padding-xe4h0g2{padding:var(--10-x17itaz4)}",1e3),S(".width-xh8yej3{width:100%}",4e3),S(".overflow-x1rea2x4{overflow:visible}",2e3),t.A=function(e){var t,n,r=e.data,o=void 0===r?[]:r,m=e.titles,g=void 0===m?[]:m,x=e.hideNumbers,v=void 0!==x&&x,S=(t=(0,a.useState)({}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=S[0],O=S[1],j=[{id:"value1",background:l.colourValues.secondary200,labelBackground:l.colourValues.purple50,text:l.colourValues.oldBrand700},{id:"value2",background:l.colourValues.error300,labelBackground:l.colourValues.error100,text:l.colourValues.error500}],k=(0,a.useRef)(null);return(0,a.useEffect)(function(){i.select(k.current).selectAll("*").remove();var e=i.select(k.current),t={top:20,right:80,bottom:55,left:80},n=+e.node().getBoundingClientRect().width-t.left-t.right,r=+e.attr("height")-t.to
2p-t.bottom,a=(0,u.default)({svgRef:k,margin:t,height:r,width:n,data:o.map(function(e){return e.lineValue,A(e,y)}),colourConfig:j,hideNumbers:v,maxValue:"auto",dataType:"percentage"}).g;(0,d.default)({svgRef:k,margin:t,height:r,width:n,data:o.map(function(e){e.value1,e.value2;var t=e.lineValue;return b(b({},A(e,h)),{},{value:t})}),dataType:"percentage"});var l=i.select("#hover"),c=i.select("#bar-and-line-container");e.append("text").attr("class","y label").attr("text-anchor","middle").attr("transform","rotate(-90)").attr("x",-r/2).attr("y",15).attr("dy","1em").text((0,s.language)("IVT rate")),e.append("text").attr("class","y label").attr("text-anchor","middle").attr("transform","rotate(-90)").attr("x",-r/2).attr("y",n+t.left+t.right-25).attr("dy","1em").text((0,s.language)("% Difference in IVT rate")),a.selectAll('g:not([fill="none"]):not(.tick)').on("mouseover",function(e,t){l.style("display","inline-block"),O(o.find(function(e){return(null==e?void 0:e.name)===(null==t?void 0:t.name)})||{})}).on("mousemove",function(e){var t=i.pointer(e)[1],n=c.node().getBoundingClientRect(),r=e.pageX,o=r-n.left>n.width/2?r-600:r-300;l.style("left","".concat(o,"px")),l.style("top","".concat(t-30,"px"))}).on("mouseleave",function(){l.style("display","none")}).style("cursor","pointer")},[o]),(0,p.jsxs)("div",b(b({},{className:"backgroundColor-x1ex0zz8 borderRadius-x1khhgft","data-style-src":"BarAndLine/index.tsx:12"}),{},{id:"bar-and-line-container",children:[(0,p.jsx)("div",b(b({},{className:"display-x78zum5 gap-x883omv padding-xe4h0g2","data-style-src":"BarAndLine/index.tsx:16"}),{},{children:g.map(function(e,t){return(0,p.jsx)(c.Badge,{style:{backgroundColor:j[t].labelBackground,color:j[t].text},children:e},e)})})),(0,p.jsx)("svg",b({ref:k,width:"100%",height:"378"},{className:"width-xh8yej3 overflow-x1rea2x4","data-style-src":"BarAndLine/index.tsx:21"})),(0,p.jsx)(f.default,{data:w})]}))}},49158:(e,t,n)=>{"use strict";e.exports=n.p+"94d740f7c3ca1267e9d5.svg"},49677:(e,t,n)=>{"use strict";n.d(t,{Hn:()=>i,Pc:()=>s,fI:()=>l,zH:()=>a});var r=n(19863),o=n(89748);function a(e){var t;if(null==e||!e.data)return[];var n=null==e?void 0:e.data.reduce(function(e,t){return e+Number(t.clicks_total)},0),o=null==e?void 0:e.data.reduce(function(e,t){return e+Number(t.clicks_fraudulent)},0),a=[],i=new Map;return null==e||null===(t=e.data)||void 0===t||t.forEach(function(e){var t=function(e){return"Netherlands, The"===e||"Netherlands the"===e?"Netherlands":"United States of America"===e?"USA":e}(e.country||e.state);if(i.has(t)){var l=i.get(t)+1;i.set(t,l),t="".concat(t,"_").concat(l+1)}else i.set(t,0);a.push({name:t,value1:(0,r.o)(e.clicks_total,n),value2:(0,r.o)(e.clicks_fraudulent,o)})}),a}function i(e){var t,n=document.getElementById("country-container"),r=(null==n||null===(t=n.getBoundingClientRect())||void 0===t?void 0:t.width)||0,o=8;return r<800&&(o=8),r<700&&(o=5),r<600&&(o=4),r<500&&(o=4),a(e).slice(0,o)}function l(e){return e?"p"===e?(0,o.A)("Phrase"):"b"===e?(0,o.A)("Broad"):"e"===e?(0,o.A)("Exact"):"a"===e?(0,o.A)("AI Max"):"No match type reported by Google"===e?"?":"":""}function s(e){return e?"p"===e?"primary":"b"===e?"success":"e"===e?"default":""===e?"?":"":""}},49714:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14041);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(){return{width:window.innerWidth,height:window.innerHeight}}const i=function(){var e,t,n=(e=(0,r.useState)(a()),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=n[0],l=n[1];return(0,r.useEffect)(function(){function e(){l(a())}return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]),i}},49790:(e,t,n)=>{"use strict";e.exports=n.p+"dd795f1db03e4d594aef.svg"},49917:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(12784),o=n.n(r);function a(e,t){return o()(e,t)}},50137:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(25751)),o=n(14041),a=n(75267),i=n(45647),l=n(18141),s=n(73657),c=f(n(79135)),u=f(n(48734)),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b=r.default;function v(){var e,t,n,r,f,p=(0,s.useNavigate)(),m=h((0,o.useState)(!1),2),y=m[0],x=m[1],b=(0,a.usePostHog)(),v=h((0,i.usePlatformsState)(),2),A=v[0],_=v[1],S=h((0,i.useSyncState)(),1)[0],w=h((0,i.useWorkspacesState)(),1)[0],O=(0,o.useRef)(null),j=!(null==A||null===(e=A.platformContext)||void 0===e||null===(e=e.pageSupportedPlatforms)||void 0===e||!e.includes("onlyAll"))&&"All Platforms";function k(e){O.current&&!O.current.contains(e.target)&&x(!1)}return(0,o.useEffect)(function(){return document.addEventListener("mousedown",k),function(){document.removeEventListener("mousedown",k)}},[]),null!=A&&A.platforms.length&&null!=w&&w.selectedWorkspace&&(0,l.isEmptyObject)(null==S?void 0:S.hasNoDataScope)?(0,d.jsxs)("div",g(g({},{className:"flexShrink-x2lah0s width-xzjbwwf width-x1br0vop","data-style-src":"PlatformSelector/index.tsx:16"}),{},{ref:O,children:[(0,d.jsxs)("button",g(g({type:"button"},{className:"position-x1n2onr6 height-xaymia4 padding-xe8ttls display-x78zum5 alignItems-x6s0dn4 width-xh8yej3 border-xysfnd borderRadius-x12oqio5 backgroundColor-x18oya0d textAlign-xdpxx8g cursor-x1ypdohk overflow-xb3r6kr width-x1br0vop justifyContent-x1biuv5c padding-x1t7td15 boxShadow-x179fj1","data-style-src":"PlatformSelector/index.tsx:23"}),{},{onClick:function(){x(function(e){return!e})},"data-testid":"platform-selector-button",children:[(0,d.jsx)("div",g(g({},{className:"marginRight-x1db2dqx position-x1n2onr6 display-x78zum5 justifyContent-xl56j7k alignItems-x6s0dn4 borderRadius-x12oqio5 color-xayvuls textAlign-x2b8uid fontWeight-x1xlr1w8 lineHeight-xt9i1p0 fontSize-x1j61zf2 flexShrink-x2lah0s zIndex-xhtitgo marginRight-x17nr09v","data-style-src":"PlatformSelector/index.tsx:68"}),{},{children:j?(0,d.jsx)(c.default,g(g({},{className:"color-xnx9fn3 fontSize-x1pvqxga","data-style-src":"PlatformSelector/index.tsx:146"}),{},{name:["far","layer-group"]})):(0,d.jsx)(u.default,g({platformName:null==A||null===(t=A.selectedPlatform)||void 0===t?void 0:t.platform_name,"data-testid":"".concat(null==A||null===(n=A.selectedPlatform)||void 0===n?void 0:n.platform_title,"-platform-icon"),id:"".concat(null==A||null===(r=A.selectedPlatform)||void 0===r?void 0:r.platform_title,"-platform-icon")},{className:"width-xgd8bvy padding-x1717udv","data-style-src":"PlatformSelector/index.tsx:150"}))})),(0,d.jsx)("span",g(g({},{className:"fontSize-x1j61zf2 fontWeight-xk50ysn color-x1jsblnb whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv marginRight-xl010v5 display-xznp9yw","data-style-src":"PlatformSelector/index.tsx:86"}),{},{"data-testid":"active-platform-name",children:j?"All Platforms":null==A||null===(f=A.selectedPlatform)||void 0===f?void 0:f.platform_title})),(0,d.jsxs)("span",g(g({},{className:"display-x78zum5 flexDirection-xdt5ytf fontSize-x1k6wstc marginRight-x1db2dqx marginLeft-x8x9d4c color-xnx9fn3 marginRight-x17nr09v marginLeft-xmz31py","data-style-src":"PlatformSelector/index.tsx:98"}),{},{children:[(0,d.jsx)(c.default,{name:"chevron-up",style:{position:"relative",top:1}}),(0,d.jsx)(c.default,{name:"chevron-down",style:{position:"relative",top:-1}})]}))]})),y&&(0,d.jsx)("ul",g(g({},{className:"width-xzjbwwf position-x10l6tqk zIndex-xfo81ep paddingTop-x1iorvi4 paddingBottom-xjkvuk6 top-xbpnmcg border-xysfnd borderRadius-x12oqio5 backgroundColor-x18oya0d boxShadow-x179fj1","data-style-src":"PlatformSelector/index.tsx:43"}),{},{children:null==A?void 0:A.platforms.map(function(e){return(0,d.jsx)("li",g(g({},{className:"display-x78zum5 alignItems-x6s0dn4 justifyContent-x1nhvcw1 paddingRight-xy13l1i paddingLeft-x163pfp paddingTop-x1iorvi4 paddingBottom-xjkvuk6 cursor-x1ypdohk whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv","data-style-src":"PlatformSelector/index.tsx:55"}),{},{children:(0,d.jsxs)("button",g(g({type:"button"},{className:"display-x78zum5 width-xh8yej3 alignItems-x6s0dn4 paddingLeft-x6wrskw borderRadius-x12oqio5 backgroundColor-xxxrsdu","data-style-src":"PlatformSelector/index.tsx:110"}),{},{onClick:function(){return function(e){var t,n,r;S.isImpersonating||b.capture("platform_change",{platform:e.platform_name});var o=null==A||null===(t=A.platformContext)||void 0===t?void 0:t.pageSupportedPlatforms,a=null==e?void 0:e.platform_name,i="google"!==a&&"affiliate"!==a&&"meta"!==a,l=(null==o?void 0:o.includes("google"))&&"google"===a,s=(null==o?void 0:o.includes("affiliate"))&&"affiliate"===a,c=(null==o?void 0:o.includes("meta"))&&"meta"===a,u=(null==o?void 0:o.includes("mplat"))&&i;null!=o&&o.includes("onlyAll")&&p("meta"===a?"/meta/summary":"/summary"),(!(l||s||u||c)&&(null==o?void 0:o.length)>0&&"onlyAll"!==o[0]||null!=A&&null!==(n=A.platformContext)&&void 0!==n&&n.forceAlternateRouteOnSwitchPlatform)&&function(e){var t,n,r,o,a,i=null==A||null===(t=A.platformContext)||void 0===t?void 0:t.alternateRoute,l=null==A||null===(n=A.platformContext)||void 0===n?void 0:n.googleAlternateRoute,s=null==A||null===(r=A.platformContext)||void 0===r?void 0:r.metaAlternateRoute,c=null==A||null===(o=A.platformContext)||void 0===o?void 0:o.mplatAlternateRoute,u=null==A||null===(a=A.platformContext)||void 0===a?void 0:a.affiliateAlternateRoute,d=null==e?void 0:e.platform_name;p("affiliate"===d&&u?u:"google"===d&&l?l:"meta"===d&&s?s:"google"!==d&&"affiliate"!==d&&"meta"!==d&&c?c:i||"/overview")}(e),x(!1),(null==A||null===(r=A.selectedPlatform)||void 0===r?void 0:r.platform_name)!==a&&_(g(g({},A),{},{selectedPlatform:e}))}(e)},"data-testid":"".concat(null==e?void 0:e.platform_title,"-platform-button"),children:[(0,d.jsx)("div",g(g({},{className:"borderRadius-x12oqio5 color-xayvuls textAlign-x2b8uid fontWeight-x1xlr1w8 lineHeight-xt9i1p0 fontSize-x1j61zf2 flexShrink-x2lah0s zIndex-xhtitgo","data-style-src":"PlatformSelector/index.tsx:136"}),{},{children:(0,d.jsx)(u.default,g({platformName:null==e?void 0:e.platform_name,"data-testid":"".concat(null==e?void 0:e.platform_title,"-platform-icon"),id:"".concat(null==e?void 0:e.platform_title,"-platform-icon")},{className:"width-xgd8bvy padding-x1717udv","data-style-src":"PlatformSelector/index.tsx:150"}))})),(0,d.jsx)("span",g(g({},{className:"position-x1n2onr6 left-xdjccd9 zindex-xbjb5wg display-x78zum5 alignItems-x6s0dn4 height-xc9qbxq width-xh8yej3 paddingLeft-x1k8dnhd fontSize-x1j61zf2 fontWeight-xk50ysn color-x1jsblnb whiteSpace-xuxw1ft overflow-xb3r6kr textOverflow-xlyipyv","data-style-src":"PlatformSelector/index.tsx:120"}),{},{children:(t=null==e?void 0:e.platform_title,"Twitter"===t?"X":t)}))]}))}),e.platform_title);var t})}))]})):null}b(".flexShrink-x2lah0s{flex-shrink:0}",3e3),b(".width-xzjbwwf{width:180px}",4e3),b("@media (max-width: 1000px){.width-x1br0vop.width-x1br0vop{width:fit-content}}",4200),b(".position-x1n2onr6{position:relative}",3e3),b(".height-xaymia4{height:51px}",4e3),b(".padding-xe8ttls{padding:8px}",1e3),b(".display-x78zum5{display:flex}",3e3),b(".alignItems-x6s0dn4{align-items:center}",3e3),b(".width-xh8yej3{width:100%}",4e3),b(".border-xysfnd{border:1px solid var(--gray100-x1llswo5)}",1e3),b(".borderRadius-x12oqio5{border-radius:4px}",2e3),b(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),b(".textAlign-xdpxx8g{text-align:left}
2",3e3),b(".cursor-x1ypdohk{cursor:pointer}",3e3),b(".overflow-xb3r6kr{overflow:hidden}",2e3),b("@media (max-width: 1000px){.justifyContent-x1biuv5c.justifyContent-x1biuv5c{justify-content:center}}",3200),b("@media (max-width: 1000px){.padding-x1t7td15.padding-x1t7td15{padding:8px}}",1200),b(".boxShadow-x179fj1{box-shadow:0 4px 8px -2px rgba(34,34,34,.1)}",3e3),b(".position-x10l6tqk{position:absolute}",3e3),b(".zIndex-xfo81ep{z-index:1000}",3e3),b(".paddingTop-x1iorvi4{padding-top:4px}",4e3),b(".paddingBottom-xjkvuk6{padding-bottom:4px}",4e3),b(".top-xbpnmcg{top:calc(100% - 8px)}",4e3),b(".justifyContent-x1nhvcw1{justify-content:flex-start}",3e3),b(".paddingRight-xy13l1i{padding-right:8px}",4e3),b(".paddingLeft-x163pfp{padding-left:8px}",4e3),b(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),b(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),b(".marginRight-x1db2dqx{margin-right:8px}",4e3),b(".justifyContent-xl56j7k{justify-content:center}",3e3),b(".color-xayvuls{color:#000000}",3e3),b(".textAlign-x2b8uid{text-align:center}",3e3),b(".fontWeight-x1xlr1w8{font-weight:700}",3e3),b(".lineHeight-xt9i1p0{line-height:36}",3e3),b(".fontSize-x1j61zf2{font-size:16px}",3e3),b(".zIndex-xhtitgo{z-index:2}",3e3),b("@media (max-width: 1000px){.marginRight-x17nr09v.marginRight-x17nr09v{margin-right:0}}",4200),b(".fontWeight-xk50ysn{font-weight:500}",3e3),b(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),b(".marginRight-xl010v5{margin-right:4px}",4e3),b("@media (max-width: 1000px){.display-xznp9yw.display-xznp9yw{display:none}}",3200),b(".flexDirection-xdt5ytf{flex-direction:column}",3e3),b(".fontSize-x1k6wstc{font-size:10px}",3e3),b(".marginLeft-x8x9d4c{margin-left:auto}",4e3),b(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),b("@media (max-width: 1000px){.marginLeft-xmz31py.marginLeft-xmz31py{margin-left:8px}}",4200),b(".paddingLeft-x6wrskw{padding-left:4px}",4e3),b(".backgroundColor-xxxrsdu:hover{background-color:var(--primary25-x1i18ho1)}",3130),b(".left-xdjccd9{left:-6px}",4e3),b(".zindex-xbjb5wg{zindex:1px}",3e3),b(".height-xc9qbxq{height:36px}",4e3),b(".paddingLeft-x1k8dnhd{padding-left:18px}",4e3),b(".fontSize-x1pvqxga{font-size:24px}",3e3),b(".width-xgd8bvy{width:28px}",4e3),b(".padding-x1717udv{padding:0}",1e3),v.displayName="PlatformSelector",t.default=v},50324:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(14041),o=n(85596),a=n(97475),i=n(89748),l=n(49917),s=n(2043),c=n(24284),u=n(77730),d=n(26465),f=n(37078),p=n(31085);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var g=["children","initialFormValues","onFormDataChange","rules","errors","onFormSubmit","submitUrl","submitType","queriesToInvalidate","submitSuccessMessage","hideBottomErrors","onSuccess","clearFormOnSuccess"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t,n){var r;return(0,s.Ay)(null===(r=e[n])||void 0===r?void 0:r.validation,t[n],t)}function S(e){var t=e.children,n=e.initialFormValues,m=e.onFormDataChange,y=void 0===m?function(){}:m,x=e.rules,S=void 0===x?{}:x,w=e.errors,O=void 0===w?{}:w,j=e.onFormSubmit,k=void 0===j?function(){}:j,E=e.submitUrl,N=void 0===E?"":E,I=e.submitType,P=void 0===I?"POST":I,T=e.queriesToInvalidate,C=void 0===T?[]:T,R=e.submitSuccessMessage,M=void 0===R?(0,i.A)("Success"):R,L=e.hideBottomErrors,D=void 0!==L&&L,B=e.onSuccess,U=void 0===B?function(){}:B,F=e.clearFormOnSuccess,G=void 0===F||F,W=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,g),z=b(r.useState(""),2),V=z[0],q=z[1],K=b(r.useState(!0),2),H=K[0],Y=K[1],$=b((0,u.A)(),1)[0],Z=b(r.useReducer(d.A,{}),2),X=Z[0],J=Z[1],Q=b(r.useReducer(d.A,n),2),ee=Q[0],te=Q[1],ne=(0,a.jE)(),re={status:V,errors:X,values:ee,rules:S},oe=["Input","Input.Checkbox","Input.FileUpload","Input.RichTextArea","Input.OptionGroup","Input.Select","Input.SearchSelect","Input.Toggle","FormElement","Button","ValidationHint","CustomInput"],ae=r.useCallback((0,l.A)(function(e){Object.entries(S).forEach(function(t){var n=b(t,2),r=n[0],o=n[1],a=(0,s.Ay)(null==o?void 0:o.validation,e[r],e);J({name:r,value:a})})},10),[S]);function ie(e,t){return null==t?void 0:t.split(".").reduce(function(e,t){return void 0!==(null==e?void 0:e[t])?e[t]:""},e)}function le(){var e,t=N;if(null!=$&&null!==(e=$.selectedWorkspace)&&void 0!==e&&e.id&&(null==N||!N.includes("workspace_context"))){var r=null!=N&&N.includes("?")?"&":"?";t="".concat(N).concat(r,"workspace_context=").concat($.selectedWorkspace.id)}var a=[];if(Object.entries(S).forEach(function(e){var t,n=b(e,1)[0],r=_(S,ee,n);J({name:n,value:r}),r.length>0&&a.push.apply(a,function(e){if(Array.isArray(e))return A(e)}(t=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}),a.length>0){var i;q("error");var l=a[0],s=null!==(i=null==l?void 0:l.errorMessage)&&void 0!==i?i:null==l?void 0:l.userMessage;s&&(0,c.A)(s,"error")}else(0,o.A)(t,ee,P).then(function(){q("done"),(0,c.A)(M,"success"),U(),G&&te({type:"RESET",payload:n}),C.forEach(function(e){var t;t=e,ne.getQueryCache().findAll().forEach(function(e){var n;null!=e&&null!==(n=e.queryKey[0])&&void 0!==n&&n.includes(t)&&ne.invalidateQueries(e.queryKey)})})}).catch(function(){q("error")})}function se(){var e=!0;return Object.values(ee).forEach(function(t){"string"==typeof t&&""!==t&&(e=!1),"boolean"==typeof t&&!1!==t&&(e=!1)}),Y(e),e}function ce(){se()||Object.keys(ee).forEach(function(e){"boolean"==typeof ee[e]?te({name:e,value:!1}):te({name:e,value:""})})}return r.useEffect(function(){ae(ee)},[ee,ae]),r.useEffect(function(){y(re),se()},[V,X,ee]),(0,p.jsxs)("form",h(h({onSubmit:function(e){e.preventDefault(),q("loading"),N&&le(),k&&k(ee)}},W),{},{children:[function e(t){return r.Children.map(t,function(t){var n,o;if(!r.isValidElement(t))return t;var a,i={},l=null===(n=t.type)||void 0===n?void 0:n.displayName,s=null===(o=t.props)||void 0===o?void 0:o.type;if(oe.includes(l)){var c,u=null===(c=t.props)||void 0===c?void 0:c.name;Object.assign(i,{formData:re,value:ie(ee,u),onFormValue:te,errors:ie(X,u)}),"Input.Select"===l&&(i.singleValueInterface=!0),"reset"===s&&(i.onClick=ce,i.disabled=H)}return null!=l&&l.startsWith("Input")||(i.children=e(null===(a=t.props)||void 0===a?void 0:a.children)),r.cloneElement(t,i)})}(t),!D&&(0,p.jsx)(f.A,{errors:Object.values(O).flat().length?O:X})]}))}S.displayName="Form",S.isValid=function(e){var t=!0;
2return null!=e&&e.values&&Object.entries(e.rules).forEach(function(n){var r,o=b(n,1)[0];_(e.rules,null!==(r=e.values)&&void 0!==r?r:{},o).length>0&&(t=!1)}),t};const w=S},50387:(e,t,n)=>{"use strict";e.exports=n.p+"cac1731453934af6518f.svg"},50510:(e,t,n)=>{"use strict";function r(){var e,t,n,r,o,a,i,l,s,c,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{platforms:[],roles:[],accountRoles:[],impersonatingOnly:!1,orIsImpersonating:!1,isAllWorkspaces:!1,isNotAllWorkspaces:!1,isNotTrialStatus:!1,isGoogle:!1,isNotGoogle:!1,isMeta:!1,isNotMeta:!1,isAffiliate:!1,environments:[],featureFlags:[],featureFlagsNOT:[],AND:void 0,OR:!1},d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{permissionsState:{featureFlags:[],roleIdentifier:"",accountRoleIdentifier:"",isImpersonating:!1},platformsState:{selectedPlatform:{platform_name:""}},syncState:{account:{lunio_status:""}},workspacesState:{selectedWorkspace:{id:0}}},f=(null==d||null===(e=d.permissionsState)||void 0===e?void 0:e.featureFlags)||[],p=null==d||null===(t=d.permissionsState)||void 0===t?void 0:t.roleIdentifier,m=null==d||null===(n=d.permissionsState)||void 0===n?void 0:n.accountRoleIdentifier,g=null==d||null===(r=d.platformsState)||void 0===r||null===(r=r.selectedPlatform)||void 0===r?void 0:r.platform_name,y=null==d||null===(o=d.permissionsState)||void 0===o?void 0:o.isImpersonating,h=null==d||null===(a=d.syncState)||void 0===a||null===(a=a.account)||void 0===a?void 0:a.lunio_status,x=null===(null==d||null===(i=d.workspacesState)||void 0===i?void 0:i.selectedWorkspace)||void 0===(null==d||null===(l=d.workspacesState)||void 0===l?void 0:l.selectedWorkspace),b=(null==d||null===(s=d.workspacesState)||void 0===s||null===(s=s.selectedWorkspace)||void 0===s?void 0:s.id)>0||-1===(null==d||null===(c=d.workspacesState)||void 0===c||null===(c=c.selectedWorkspace)||void 0===c?void 0:c.id);function v(e){return!!e&&void 0!==e[0]}function A(e){return!!v(e)&&e.includes(g)}function _(e){return!!v(e)&&f.some(function(t){return e.includes(t)})}var S,w,O=!0,j=!0,k=!0,E=!0,N=!0,I=!0,P=!0,T=!0,C=!0,R=!0,M=!0,L=!0,D=!0,B=!0;if(u.platforms&&u.platforms.length>0&&"mplat"!==u.platforms[0]&&(O=A(u.platforms||[])),u.platforms&&u.platforms.length>0&&"mplat"===u.platforms[0]&&(O=!A(["google"])),u.roles&&u.roles.length>0||u.accountRoles&&u.accountRoles.length>0){var U=!!(u.roles&&u.roles.length>0)&&!!v(S=u.roles)&&S.includes(p),F=!!(u.accountRoles&&u.accountRoles.length>0)&&function(e){return!!v(e)&&e.includes(m)}(u.accountRoles);j=U||F}
2return u.impersonatingOnly&&(k=y),u.isAllWorkspaces&&(E=x),u.isNotAllWorkspaces&&(N=b),u.isNotTrialStatus&&(I="TRIAL"!==h),u.isGoogle&&(P="google"===g),u.isNotGoogle&&(T="google"!==g),u.isMeta&&(C="meta"===g),u.isNotMeta&&(R="meta"!==g),u.isAffiliate&&(M="affiliate"===g),u.environments&&u.environments.length>0&&(L=!!v(w=u.environments||[])&&w.includes("production")),u.featureFlags&&u.featureFlags.length>0&&(D=_(u.featureFlags||[])),u.featureFlagsNOT&&u.featureFlagsNOT.length>0&&(B=!_(u.featureFlagsNOT||[])),!!(O&&j&&k&&E&&N&&I&&P&&T&&C&&R&&M&&L&&D&&B&&(!0===u.AND||null==u.AND)||u.OR||u.orIsImpersonating)}n.d(t,{A:()=>r})},50803:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(25751)),o=n(60156),a=n(18141),i=n(45365),l=c(n(68777)),s=n(31085);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=r.default;m(".position-x10l6tqk{position:absolute}",3e3),m(".width-xlrdbfi{width:370px}",4e3),m(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),m(".boxShadow-x1d485q3{box-shadow:0 2px 4px -2px rgba(34,34,34,.06),0 4px 8px -2px rgba(34,34,34,.1)}",3e3,".boxShadow-x1d485q3{box-shadow:0 2px 4px -2px rgba(34,34,34,.06), 0 4px 8px -2px rgba(34,34,34,.1)}"),m(".zIndex-xa9119d{z-index:50}",3e3),m(".display-x78zum5{display:flex}",3e3),m(".gap-x1b9gnh9{gap:var(--3-xyfcdu2)}",2e3),m(".paddingTop-x1lkfzny{padding-top:var(--2-x17wbp3g)}",4e3),m(".width-x1849jeq{width:30px}",4e3),m(".alignSelf-xpvyfi4{align-self:flex-end}",3e3),m(".marginBottom-x19hu4fx{margin-bottom:var(--1-xubceuw)}",4e3),t.default=function(e){var t=e.data,n=t.day,r=t.time,c=t.invalid,u=t.value,d=t.totalForToday,p=t.maxValue,m=(0,a.calcPercentage)(u,p);function g(e){return e<10?"0".concat(e,"00"):"".concat(e,"00")}var y={MON:(0,o.language)("Monday"),TUE:(0,o.language)("Tuesday"),WED:(0,o.language)("Wednesday"),THU:(0,o.language)("Thursday"),FRI:(0,o.language)("Friday"),SAT:(0,o.language)("Saturday"),SUN:(0,o.language)("Sunday")},h=g(r),x=r<23?g(r+1):"0000";return(0,s.jsxs)(i.Card,f(f({id:"hover"},{className:"position-x10l6tqk width-xlrdbfi backgroundColor-x18oya0d boxShadow-x1d485q3 zIndex-xa9119d","data-style-src":"Hover/index.tsx:10"}),{},{children:[(0,s.jsx)(i.Text,{preset:"chartLabelHeader",as:"h3",children:"Invalid ".concat(y[n]," ").concat(h," - ").concat(x)}),(0,s.jsxs)("div",f(f({},{className:"display-x78zum5 gap-x1b9gnh9 paddingTop-x1lkfzny","data-style-src":"Hover/index.tsx:17"}),{},{children:[(0,s.jsx)("div",f(f({},{className:"width-x1849jeq alignSelf-xpvyfi4 marginBottom-x19hu4fx","data-style-src":"Hover/index.tsx:22"}),{},{style:{backgroundColor:(0,l.default)(u,c),height:m/100*30}})),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.Text,{size:"sm",children:(0,o.language)(":value of Total Volume",{value:"".concat((0,a.calcPercentage)(u,d),"%")})}),(0,s.jsx)(i.Text,{weight:"lg",size:"sm",children:(0,o.language)(":value SIVT Clicks",{value:"".concat((0,a.calcPercentage)(c,u),"%")})})]})]}))]}))}},50973:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(25751)),o=s(n(30021)),a=s(n(79135)),i=s(n(30556)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=["children","onClick","status","isOpen","hideOpen"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=e.children,n=e.onClick,r=e.status,s=e.isOpen,c=void 0!==s&&s,d=e.hideOpen,p=void 0!==d&&d,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u);function g(){p||null==n||n()}return(0,l.jsx)("div",f(f(f({onClick:g,onKeyDown:g,role:"button",tabIndex:0},{className:"cursor-x1ypdohk","data-style-src":"Title/index.tsx:8"}),m),{},{children:(0,l.jsx)(i.default,{children:(0,l.jsxs)(i.default.Row,{children:[null!=r&&(0,l.jsx)(i.default.Col,{md:1,children:(0,l.jsx)(a.default.Status,{size:"2xl",status:r})}),(0,l.jsx)(i.default.Col,{children:(0,l.jsx)(o.default,{weight:"lg",children:t})}),(0,l.jsx)(i.default.Col,{md:1,children:!p&&(0,l.jsx)(a.default,{name:["fas",c?"dash":"plus"]})})]})})}))}(0,r.default)(".cursor-x1ypdohk{cursor:pointer}",3e3),m.displayName="Accordion.Title",t.default=m},50996:(e,t,n)=>{"use strict";e.exports=n.p+"359ac5dd2d5b7366bcc4.svg"},50998:(e,t,n)=>{"use strict";n.d(t,{A:()=>a}),n(14041);var r=n(27820),o=n(31085);const a=function(){return(0,o.jsx)(r.A,{})}},51125:(e,t,n)=>{"use strict";n.d(t,{A:()=>A}),n(14041);var r=n(39067),o=n.n(r),a=n(72686),i=n(30021),l=n(79135),s=n(30556),c=n(37184),u=n(99018),d=n(89748),f=n(96182),p=n(84210),m=n(31085);function g(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=(0,u.createUseStyles)(function(e){return{textRight:{textAlign:"right","& > div":{marginBottom:e.spacing[6],fontSize:e.fontSizes.sm}},totalCarbon:{color:(0,u.findColour)(e,"green",700),fontWeight:e.fontWeights.lg,fontSize:e.fontSizes.lg},invalidClicks:{fontWeight:e.fontWeights.lg,fontSize:e.fontSizes.md},wash:{fontWeight:e.fontWeights.lg,fontSize:e.fontSizes.sm},platformIcon:{display:"inline-block",height:11,width:11,borderRadius:"2px",marginRight:11,verticalAlign:"top",marginTop:5},platformContent:{display:"inline-block",marginBottom:16,"& strong":{marginRight:14,display:"inline-block"}},washingMachineText:{fontSize:e.fontSizes.lg,fontWeight:e.fontWeights.lg,marginTop:e.spacing[3]}}});function b(e){return Math.round(e/330)}function v(e){var t,n,r=e.data,o=(t=(0,f.A)(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||y(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],u=x(),h=r.emissions,v=["J","F","M","A","M","J","J","A","S","O","N","D"],A=(new Date).getMonth(),_=[].concat(g(v.slice(A+1)),g(v.slice(0,A+1))),S={adroll:"#0fb5ff",baidu:"#de0f17",bing:"#B11B49",facebook:"#1877f2",instagram:"#e1306c",linkedin:"#0a66c2",meta:"#0082fb",naver:"#07ba4d",outbrain:"#e35820",pinterest:"#e60023",reddit:"#ff4500",tiktok:"#000",twitter:"#1da1f2",yahoo:"#410093",yandex:"#ffcc00",yj:"#ffcc00","youtube / performance max":"#ff0000","testing positive audience":"#31D618",google:"#fbbc05",dv360:"#2d9947",taboola:"#114383",criteo:"#fe5000"},w={chart:{type:"column",height:300},tooltip:{enabled:!1},title:{text:""},xAxis:{categories:_,lineWidth:0,minorGridLineWidth:0,lineColor:"transparent",labels:{enabled:!0,style:{fontSize:"12px",fontWeight:700}},minorTickLength:0,tickLength:0},yAxis:{visible:!1},series:Object.keys(h).map(function(e){return{name:e,color:S[e]||"#000",data:(t=h[e],n=Array(12).fill(0),t.emissions.forEach(function(e){var t=new Date(e.timestamp).getMonth();n[t]+=e.emissions}),[].concat(g(n.slice(A+1)),g(n.slice(0,A+1))))};var t,n}),plotOptions:{column:{stacking:"normal",borderRadiusTopLeft:"50%",borderRadiusTopRight:"50%",pointWidth:12}},legend:{enabled:!1}};return(0,m.jsxs)(a.default,{children:[(0,m.jsx)(i.default,{preset:"widgetHeading",as:"h5",children:(0,d.A)("Carbon Cost of invalid traffic")}),(0,m.jsx)(s.default,{children:(0,m.jsxs)(s.default.Row,{children:[(0,m.jsx)(s.default.Col,{style:{minWidth:500},children:(0,m.jsx)("div",{className:"mr-8",children:(0,m.jsx)(c.A,{options:w})})}),(0,m.jsx)(s.default.Col,{style:{display:"flex",flexDirection:"column"},children:Object.keys(h).map(function(e){var t=h[e].emissions.reduce(function(e,t){return e+t.emissions},0),n=o.platforms.filter(function(t){return t.platform_name===e})[0].platform_title;return(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:u.platformIcon,style:{backgroundColor:S[e]}}),(0,m.jsxs)("div",{className:u.platformContent,children:[(0,m.jsx)("strong",{children:(0,p.A)(t)})," ",n,(0,m.jsx)("div",{children:(0,m.jsxs)("small",{children:["CO",(0,m.jsx)("sub",{children:"2"}),"e"," ",(0,d.A)("per click")," ","@"," ",h[e].emissions_per_click.toFixed(2),"g"]})})]})]},n)})}),(0,m.jsxs)(s.default.Col,{style:{display:"flex",flexDirection:"column"},className:u.textRight,children:[(0,m.jsxs)("div",{children:[(0,d.A)("Lifetime Invalid Clicks Recorded"),(0,m.jsx)("div",{className:u.invalidClicks,children:null==r?void 0:r.total_clicks.toLocaleString("en-GB")})]}),(0,m.jsxs)("div",{children:[(0,d.A)("Resulting in a Total Carbon cost"),(0,m.jsxs)("div",{className:u.totalCarbon,children:[(0,p.A)(null==r?void 0:r.total_emissions)," ","CO",(0,m.jsx)("sub",{children:"2"}),"e"]})]}),(0,m.jsxs)("div",{children:[(0,d.A)("That is the equivalent of"),(0,m.jsx)("div",{className:u.wash,children:(0,d.A)("Running a wash :times times",{times:b(null==r?void 0:r.total_emissions).toLocaleString("en-GB")})}),(0,m.jsxs)("div",{className:u.washingMachineText,children:[b(null==r?void 0:r.total_emissions).toLocaleString("en-GB")," ","x"," ",(0,m.jsx)(l.default,{name:["far","washing-machine"],size:"2xl"})]})]})]})]})}),(0,m.jsx)(i.default,{preset:"subText",as:"h6",children:(0,d.A)("Last 12 Months")})]})}v.propTypes={data:o().object.isRequired};const A=v},51159:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(14041),o=n(88133),a=n(97475),i=n(89748),l=n(27333),s=n(24284),c=n(7575),u=n(31085);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const h=function(){var e=(0,a.jE)(),t=g((0,r.useState)(!1),2),n=t[0],d=t[1];function f(){e.getQueryCache().findAll().forEach(function(t){var n=t.queryKey;(Array.isArray(n)?n.join("/"):String(n)).includes("/users")&&e.invali
2dateQueries(n)})}var m=(0,l.R7)({search_key:null}),y=m.filters,h=m.handlePagination,x=m.setFilters,b=(0,l.st)("/users",y,function(){return null!=y&&y.search_key?"&search_key=".concat(encodeURIComponent(y.search_key)):""}),v=b.data,A=b.isLoading,_=g((0,r.useState)({}),2),S=_[0],w=_[1],O=(0,o.gC)("/users/".concat(S.id),"POST");(0,r.useEffect)(function(){null!=S&&S.id&&function(){d(!0);var e=p({},S);O.mutate(p({_method:"POST"},e),{onSuccess:function(){d(!1),(0,s.A)("".concat(S.email," was updated"),"success"),f()},onError:function(){d(!1),(0,s.A)((0,i.A)("Something went wrong!"),"error")}})}()},[S]);var j=g((0,r.useState)({}),2),k=j[0],E=j[1],N=(0,o.gC)("/users/".concat(k.id,"/password"),"POST");(0,r.useEffect)(function(){null!=k&&k.id&&N.mutate({_method:"Patch",new_password:S.newPassword},{onSuccess:function(){(0,s.A)("The password for ".concat(k.email," was updated"),"success")},onError:function(){(0,s.A)((0,i.A)("Something went wrong!"),"error")}})},[k]);var I=g((0,r.useState)({}),2),P=I[0],T=I[1],C=(0,o.gC)("/users/".concat(P.id),"POST");(0,r.useEffect)(function(){null!=P&&P.id&&C.mutate({_method:"DELETE"},{onSuccess:function(){(0,s.A)("".concat(P.email," was deleted!"),"success"),f()},onError:function(){(0,s.A)((0,i.A)("Something went wrong!"),"error")}})},[P]);var R=(0,o.gC)("/users","POST");return(0,u.jsx)(c.A,{data:null==v?void 0:v.result,filters:y,isLoading:A,handlePagination:h,onFilterChange:x,deleteUser:T,updateUser:w,updatePassword:E,isUpdatingUser:n,createUser:function(e){var t=p({},e);R.mutate(p({_method:"PATCH"},t),{onSuccess:function(){(0,s.A)("".concat(e.email," was created"),"success"),f()},onError:function(){(0,s.A)((0,i.A)("Something went wrong!"),"error")}})}})}},51310:(e,t,n)=>{"use strict";e.exports=n.p+"b0c397631f425edd068e.svg"},51498:(e,t,n)=>{"use strict";e.exports=n.p+"aadf0f386f64aeb3ed50.svg"},51592:(e,t,n)=>{"use strict";n.d(t,{A:()=>v}),n(14041);var r=n(39067),o=n.n(r),a=n(56197),i=n(1781),l=n(9685),s=n(99018),c=n(62161),u=n(89748),d=n(72748),f=n(31085);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){try{return JSON.parse(e),!0}catch(e){return!1}}var x=(0,s.createUseStyles)(function(e){return{contentContainer:{width:"100%",fontFamily:e.fonts.text,fontSize:e.fontSizes.sm},heading:{color:e.colors.grey[400],width:"100%",fontSize:18,fontWeight:800,marginBottom:-8},col1:{width:"35%"},col2:{width:"65%"},row:{display:"flex",width:"100%",marginTop:16,marginBottom:16},block:{marginRight:64},blockTitle:{fontWeight:800,fontSize:e.fontSizes.xs},blockContent:{display:"flex"},riskBox:{display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.neutralTextDefault,borderRadius:4,height:24,width:"fit-content",paddingLeft:8,paddingRight:8,fontSize:e.fontSizes.xs},behaviourPill:{display:"inline-flex",justifyContent:"center",alignItems:"center",backgroundColor:e.colors.yellow[100],color:e.colors.neutralTextDefault,borderRadius:6,height:24,width:"fit-content",paddingLeft:8,paddingRight:8,marginRight:8,fontSize:e.fontSizes.xs,"& .black":{backgroundColor:e.colors.black}}}});function b(e){var t=e.data,n=e.className,r=void 0===n?"":n,o=x(),p={ip:"",network_address:"",ip_isp:"",ip_country:"",ip_converted:null,proxy_requests:0,reported_to_abuse_ip_db:0,anomalous_user_agents_detected:0,suspicious_ip_usage_type_detected:0,nonpaid_traffic_detected:null,anomalous_ad_activity:null,max_risk_score:0,waf_detected:0,labelled_invali
2d:0,reasons:[],isInvestigating:!1};if(t&&(p=g(g(g({},p),t),{},{reasons:(0,d.A)(t)})),h(null==t?void 0:t.ip_isp)){var m=JSON.parse(t.ip_isp);p.ip_isp=(null==m?void 0:m.isp)||""}return"string"!=typeof(null==t?void 0:t.ip_isp)||h(null==t?void 0:t.ip_isp)||(p.ip_isp=t.ip_isp),(0,f.jsx)("div",{className:(0,s.classNames)(o.contentContainer,r),children:(0,f.jsx)(c.A,{rows:p.ip_isp.length>0&&p.ip_isp?[p]:[],isLoading:!t,leftPinnedColumns:1,noDataTitle:(0,u.A)("No data available for this IP address"),noDataSubTitle:(0,u.A)("try a different IP address"),children:function(){var e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("thead",{children:(0,f.jsxs)("tr",{children:[(0,f.jsx)("th",{children:(0,u.A)("ISP")}),(0,f.jsx)("th",{children:(0,u.A)("Network")}),(0,f.jsx)("th",{children:(0,u.A)("Locations")}),(0,f.jsx)("th",{children:(0,u.A)("Usage Type")}),(0,f.jsx)("th",{children:(0,u.A)("Behaviour across Lunio")})]})}),(0,f.jsxs)("tbody",{children:[(0,f.jsxs)("td",{children:[p.ip_isp.length>0&&p.ip_isp,!p.ip_isp&&(0,f.jsx)(a.default,{iconLeft:["far","circle-dot"],colourName:"pending",children:(0,u.A)("Investigating")})]}),(0,f.jsxs)("td",{children:[(null===(e=p.network_address)||void 0===e?void 0:e.length)>0&&p.network_address,!p.network_address&&(0,f.jsx)(a.default,{iconLeft:["far","circle-dot"],colourName:"pending",children:(0,u.A)("Investigating")})]}),(0,f.jsxs)("td",{children:[p.ip_country&&(0,f.jsx)(i.default,{content:"".concat((0,u.A)("Country Code:")," ").concat(p.ip_country),children:(0,f.jsx)(l.A,{countryCode:p.ip_country})}),!p.ip_country&&(0,f.jsx)(a.default,{iconLeft:["far","circle-dot"],colourName:"pending",children:(0,u.A)("Investigating")})]}),(0,f.jsx)("td",{children:p.ip_usage_type_name?p.ip_usage_type_name:(0,f.jsx)(a.default,{iconLeft:["far","circle-dot"],colourName:"pending",children:(0,u.A)("Investigating")})}),(0,f.jsxs)("td",{children:[p.reasons.length>0&&(0,f.jsx)("div",{className:o.blockContent,children:p.reasons.map(function(e){return(0,f.jsx)(i.default,{content:e.description,children:(0,f.jsx)(a.default,{iconLeft:["far","circle-exclamation"],className:"mr-2",colourName:"3rd Party Blacklisted"===e.title?"error":"warning",children:e.title})},e.title)})}),0===p.reasons.length&&(0,f.jsx)(a.default,{iconLeft:["far","circle-dot"],colourName:"pending",children:(0,u.A)("Investigating")})]})]})]})}})})}b.propTypes={data:o().object.isRequired,className:o().string};const v=b},51624:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=f(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=n(96742),l=f(n(60466)),s=f(n(65470)),c=f(n(77772)),u=f(n(86150)),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=o.default;h(".height-x5yr21d{height:100%}",4e3),h(".display-x3nfvp2{display:inline-flex}",3e3),h(".zIndex-xwv6ina{z-index:24}",3e3),h(".borderRight-x78ysab{border-right:1px solid var(--gray300-x1xk3734)}",2e3);var x={sidebarContainer:{height:"height-x5yr21d",display:"display-x3nfvp2",zIndex:"zIndex-xwv6ina",borderRight:"borderRight-x78ysab",$$css:"Sidebar/index.tsx:11"}};function b(e){var t=e.children,n=e.noPositioning,r=void 0!==n&&n;return(0,d.jsx)(i.SidebarProvider,{noPositioning:r,children:(0,d.jsx)("div",g(g({},a.props(!r&&x.sidebarContainer)),{},{"data-testid":"nereid-sidebar-container",children:t}))})}b.displayName="Sidebar",b.Menu=l.default,b.Divider=s.default,b.MenuNavItem=c.default,b.MenuSubNavItem=u.default,t.A=b},51934:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.onNewChat,r=e.onSelectSession,o=(0,c.useChatSessions)(),f=o.sessions,p=o.loading,m=(0,c.useChatSessionId)(),y=(0,u.usePostHog)(),x=a.default.useMemo(function(){return(0,s.groupSessionsByDate)(function(e){if(Array.isArray(e))return h(e)}(e=f)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var e},[f]);return t=p?(0,d.jsx)("div",g(g({},{className:"display-x78zum5 justifyContent-xl56j7k paddingTop-xyamay9 paddingBottom-x1l90r2v","data-style-src":"ChatSidebar/index.tsx:91"}),{},{children:(0,d.jsx)(l.LunioLoader,{loading:!0,height:"32px",preset:"dark"})})):0===f.length?(0,d.jsx)("p",g(g({},{className:"paddingTop-xyamay9 paddingBottom-x1l90r2v paddingLeft-x163pfp paddingRight-xy13l1i textAlign-x2b8uid fontSize-xfifm61 color-xbdn2ka","data-style-src":"ChatSidebar/index.tsx:32"}),{},{children:"No past conversations yet."})):(0,d.jsx)("div",g(g({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-x883omv","data-style-src":"ChatSidebar/index.tsx:41"}),{},{children:x.map(function(e){return(0,d.jsxs)("div",g(g({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-x195vfkc","data-style-src":"ChatSidebar/index.tsx:46"}),{},{children:[(0,d.jsx)("p",g(g({},{className:"paddingTop-x1yrsyyn paddingBottom-x1120s5i paddingLeft-x163pfp paddingRight-xy13l1i fontSize-x1k6wstc fontWeight-xk50ysn color-xbdn2ka textTransform-xtvhhri letterSpacing-x2ujxvm","data-style-src":"ChatSidebar/index.tsx:51"}),{},{children:e.label})),e.sessions.map(function(e){var t,n;return(0,d.jsx)(l.ToolTip,{content:null!==(t=e.title)&&void 0!==t?t:"Untitled conversation",children:(0,d.jsx)("button",g(g({type:"button"},i.props(b.sessionButton,e.id===m&&b.sessionButtonActive)),{},{onClick:function(){null==y||y.capture("chat_session_selected"),r(e.id)},children:null!==(n=e.title)&&void 0!==n?n:"Untitled conversation"}))},e.id)})]}),e.label)})})),(0,d.jsxs)("div",g(g({},{className:"display-x78zum5 flexDirection-xdt5ytf height-x5yr21d width-x1uncgzr flexShrink-x2lah0s borderRightWidth-xs1s249 borderRightStyle-x32b0ac borderRightColor-x12nkmir backgroundColor-x6fdw8f","data-style-src":"ChatSidebar/index.tsx:10"}),{},{children:[(0,d.jsx)("div",g(g({},{className:"padding-xe8ttls","data-style-src":"ChatSidebar/index.tsx:21"}),{}
2,{children:(0,d.jsx)(l.Button,{preset:"outline",size:"sm",iconLeft:["fas","plus"],onClick:function(){null==y||y.capture("chat_new_conversation"),n()},style:{width:"100%",justifyContent:"flex-start"},children:"New chat"})})),(0,d.jsx)("div",g(g({},{className:"flex-x98rzlu minHeight-x2lwn1j overflowY-x1odjw0f paddingLeft-x163pfp paddingRight-xy13l1i paddingBottom-xwib8y2","data-style-src":"ChatSidebar/index.tsx:24"}),{},{children:t}))]}))};var o=f(n(25751)),a=f(n(14041)),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(45365),s=n(12581),c=n(66753),u=n(75267),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=o.default;x(".display-x78zum5{display:flex}",3e3),x(".flexDirection-xdt5ytf{flex-direction:column}",3e3),x(".height-x5yr21d{height:100%}",4e3),x(".width-x1uncgzr{width:224px}",4e3),x(".flexShrink-x2lah0s{flex-shrink:0}",3e3),x(".borderRightWidth-xs1s249{border-right-width:1px}",4e3),x(".borderRightStyle-x32b0ac{border-right-style:solid}",4e3),x(".borderRightColor-x12nkmir{border-right-color:var(--gray200-x1cfnqzm)}",4e3),x(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3),x(".padding-xe8ttls{padding:8px}",1e3),x(".flex-x98rzlu{flex:1}",2e3),x(".minHeight-x2lwn1j{min-height:0}",4e3),x(".overflowY-x1odjw0f{overflow-y:auto}",4e3),x(".paddingLeft-x163pfp{padding-left:8px}",4e3),x(".paddingRight-xy13l1i{padding-right:8px}",4e3),x(".paddingBottom-xwib8y2{padding-bottom:8px}",4e3),x(".paddingTop-xyamay9{padding-top:16px}",4e3),x(".paddingBottom-x1l90r2v{padding-bottom:16px}",4e3),x(".textAlign-x2b8uid{text-align:center}",3e3),x(".fontSize-xfifm61{font-size:12px}",3e3),x(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),x(".gap-x883omv{gap:10px}",2e3),x(".gap-x195vfkc{gap:2px}",2e3),x(".paddingTop-x1yrsyyn{padding-top:6px}",4e3),x(".paddingBottom-x1120s5i{padding-bottom:2px}",4e3),x(".fontSize-x1k6wstc{font-size:10px}",3e3),x(".fontWeight-xk50ysn{font-weight:500}",3e3),x(".textTransform-xtvhhri{text-transform:uppercase}",3e3),x(".letterSpacing-x2ujxvm{letter-spacing:.05em}",3e3),x(".display-x1lliihq{display:block}",3e3),x(".width-xh8yej3{width:100%}",4e3),x(".cursor-x1ypdohk{cursor:pointer}",3e3),x(".overflow-xb3r6kr{overflow:hidden}",2e3),x(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),x(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),x(".borderRadius-x1kogg8i{border-radius:6px}",2e3),x(".paddingBottom-x10b6aqq{padding-bottom:6px}",4e3),x(".textAlign-xdpxx8g{text-align:left}",3e3),x(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),x(".background-x11g6tue{background:none}",1e3),x(".border-x1gs6z28{border:none}",1e3),x(".backgroundColor-x1is1enf:hover{background-color:var(--gray100-x1llswo5)}",3130),x(".backgroundColor-x1qjp85{background-color:var(--primary50-xfg0wjs)}",3e3),x(".color-xmrs72t{color:var(--primary600-x1h1lpbu)}",3e3),x(".backgroundColor-x1vjpyc2:hover{background-color:var(--primary50-xfg0wjs)}",3130),x(".justifyContent-xl56j7k{justify-content:center}",3e3);var b={sessionButton:{display:"display-x1lliihq",width:"width-xh8yej3",cursor:"cursor-x1ypdohk",overflow:"overflow-xb3r6kr",textOverflow:"textOverflow-xlyipyv",whiteSpace:"whiteSpace-xuxw1ft",borderRadius:"borderRadius-x1kogg8i",paddingTop:"paddingTop-x1yrsyyn",paddingBottom:"paddingBottom-x10b6aqq",paddingLeft:"paddingLeft-x163pfp",paddingRight:"paddingRight-xy13l1i",textAlign:"textAlign-xdpxx8g",fontSize:"fontSize-xfifm61",color:"color-x1jsblnb",background:"background-x11g6tue",border:"border-x1gs6z28",":hover_backgroundColor":"backgroundColor-x1is1enf",$$css:"ChatSidebar/index.tsx:62"},sessionButtonActive:{backgroundColor:"backgroundColor-x1qjp85",fontWeight:"fontWeight-xk50ysn",color:"color-xmrs72t",":hover_backgroundColor":"backgroundColor-x1vjpyc2",$$css:"ChatSidebar/index.tsx:83"}}},52103:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(99018),i=n(45365),l=n(31085),s=o.default;s(".minWidth-x1fns5xo{min-width:40px}",4e3),s(".textAlign-x2b8uid{text-align:center}",3e3),s(".backgroundColor-xgvb6dk{background-color:var(--primary200-x13hkonu)}",3e3),s(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),s(".backgroundColor-x1vuwhqn{background-color:var(--primary100-x1s8hf8c)}",3e3),s(".backgroundColor-x1qjp85{background-color:var(--primary50-xfg0wjs)}",3e3),s(".backgroundColor-xxjbeky{background-color:var(--primary25-x1i18ho1)}",3e3),s(".backgroundColor-xhgcy4a{background-color:var(--secondary200-xut29wu)}",3e3),s(".backgroundColor-xln1efq{background-color:var(--warning25-x1sd6xdd)}",3e3),s(".backgroundColor-x1c48dnr{background-color:var(--warning50-xtmumxw)}",3e3),s(".backgroundColor-xb8t6b3{background-color:var(--warning100-x12ln9i7)}",3e3),s(".backgroundColor-xn1qtim{background-color:var(--warning200-xgv5m4l)}",3e3),t.default=function(e){var t=e.score,n=(0,a.classNames)("minWidth-x1fns5xo textAlign-x2b8uid",t<=10?"backgroundColor-xgvb6dk color-xf72ejy":"",t>10&&t<=20?"backgroundColor-x1vuwhqn color-xf72ejy":"",t>20&&t<=30?"backgroundColor-x1qjp85 color-xf72ejy":"",t>30&&t<=40?"backgroundColor-xxjbeky":"",t>40&&t<=60?"backgroundColor-xhgcy4a":"",t>60&&t<=70?"backgroundColor-xln1efq":"",t>70&&t<=80?"backgroundColor-x1c48dnr":"",t>80&&t<=90?"backgroundColor-xb8t6b3":"",t>90?"backgroundColor-xn1qtim color-xf72ejy":"");return(0,l.jsxs)(i.Badge,{className:n,colourName:"purple-weak",children:[t<10&&(0,l.jsx)("span",{children:"0"}),t]})}},52193:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(14041),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),s=n(86957),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=a.default;y(".backgroundColor-x1ex0zz8{background-color:var(--gray25-x1nef6k3)}",3e3),y(".maxWidth-x193iq5w{max-width:100%}",4e3),y(".height-xt7dq6l{height:auto}",4e3),t.A=function(e){var t=e.primaryData,n=e.secondaryData,r=(0,i.useRef)(null);return(0,i.useEffect)(function(){var e,o,a,i;l.select(r.current).selectAll("*").remove();var c=l.select(r.current),u=c.node().clientWidth-70-50,d=t[t.length-2],f=null!==(e=l.min(n,function(e){return e.date}))&&void 0!==e?e:new Date,p=null!==(o=l.max(n,function(e){return e.date}))&&void 0!==o?o:new Date,g=new Date(f.getFullYear()+1,f.getMonth(),f.getDate()),y=new Date(p.getFullYear()+1,p.getMonth(),p.getDate()),h=l.scaleTime().domain([g,y]).range([70,410]),x=null!==(a=l.min([].concat(m(t),m(n)),function(e){return e.value}))&&void 0!==a?a:0,b=null!==(i=l.max([].concat(m(t),m(n)),function(e){return e.value}))&&void 0!==i?i:0,v=l.scaleLinear().domain([x,b]).range([290,30]),A=new Date;A.setFullYear(A.getFullYear()-1),A.setHours(0,0,0,0);var _=n.filter(function(e){return e.date<=A});_.pop();var S=n.filter(function(e){return e.date>A}),w=_[_.length-1];S.unshift(w);var O=l.line().x(function(e){return h(e.date)}).y(function(e){return v(e.value)}).curve(l.curveMonotoneX),j=l.line().x(function(e){return h(e.date)}).y(function(e){return v(e.value)}).curve(l.curveMonotoneX),k=l.line().x(function(e){return h(e.date)}).y(function(e){return v(e.value)}).curve(l.curveMonotoneX),E=_[_.length-1];c.append("path").datum(_.map(function(e){return{date:new Date(e.date).setFullYear(e.date.getFullYear()+1),value:e.value}})).attr("fill","none").attr("stroke","#F366E0").attr("stroke-width",1.5).attr("d",j),c.append("path").datum(S.map(function(e){return{date:new Date(e.date).setFullYear(e.date.getFullYear()+1),value:e.value}})).attr("fill","none").attr("stroke","#F366E030").attr("stroke-width",1.5).attr("d",k);var N=new Date(E.date).setFullYear(E.date.getFullYear()+1);c.append("circle").attr("cx",h(N)).attr("cy",v(E.value)).attr("r",6).attr("fill","#F366E0").attr("stroke",s.colourValues.white).attr("stroke-width",2.5),c.append("path").datum(t.slice(0,-1)).attr("fill","none").attr("stroke","#575CFC").attr("stroke-width",2.5).attr("d",O),c.append("circle").attr("cx",h(d.date)).attr("cy",v(d.value)).attr("r",6).attr("fill","#575CFC").attr("stroke",s.colourValues.white).attr("stroke-width",2.5),c.append("g").attr("transform","translate(0, ".concat(290,")")).call(l.axisBottom(h).tickSize(0).tickPadding(20).tickFormat(l.timeFormat("%b"))).selectAll("text").style("font-size","12px"),c.append("g").attr("transform","translate(".concat(70,", 0)")).call(l.axisLeft(v).tickSize(-u).ticks(4).tickPadding(20)).attr("y",6).selectAll(".tick line").attr("stroke",s.colourValues.gray200).attr("opacity",.2).selectAll("text").style("font-size","12px")},[t,n]),(0,c.jsx)("div",f(f({},{className:"backgroundColor-x1ex0zz8","data-style-src":"Rolling/index.tsx:7"}),{},{children:(0,c.jsx)("svg",f({ref:r,viewBox:"0 0 460 340"},{className:"maxWidth-x193iq5w height-xt7dq6l","data-style-src":"Rolling/index.tsx:10"}))}))}},52201:(e,t,n)=>{"use strict";e.exports=n.p+"514d716b9fb6d15f2581.svg"},52278:(e,t,n)=>{"use strict";e.exports=n.p+"a7ec84946d38ef698aef.svg"},52306:(e,t,n)=>{"use strict";e.exports=n.p+"bfa6e4c18415ad0d7b13.svg"},52356:(e,t,n)=>{"use strict";function r(e,t){return""===e?t:e}n.d(t,{A:()=>r})},52365:(e,t,n)=>{"use strict";e.exports=n.p+"daa77b3f2075e2d88d38.svg"},52569:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={selectedWorkspace:{id:157,name:"workpace name 1",protection_status:2,default_currency:"USD",role:"ADMIN"},workspaces:[{id:157,name:"workpace name 1",protection_status:2,default_currency:"USD",role:"ADMIN"},{id:158,name:"workpace name 2",protection_status:1,default_currency:"USD",role:"EDITOR"},{id:177,name:"workpace name 3",protection_status:1,default_currency:"CAD",role:"MANAGER"},{id:178,name:"workpace name 4",protection_status:1,default_currency:"CAD",role:"EDITOR"}],workspaceCount:4}},52632:(e,t,n)=>{"use strict";e.exports=n.p+"1983edd5cf69dfcd9f7d.svg"}
2,52693:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 0===e?(0,r.A)("All accounts"):1===e?"1 ".concat((0,r.A)("account")):"".concat(e," ").concat((0,r.A)("accounts"))}},52738:(e,t,n)=>{"use strict";e.exports=n.p+"36fd5571645616121529.svg"},52789:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),n(14041);var r=n(89748),o=n(99018),a=n(9260),i=n(1781),l=n(30021),s=n(73657),c=n(75824),u=n(31085),d=(0,o.createUseStyles)(function(e){return{green:{color:"".concat((0,o.findColour)(e,"green",700)," !important")},yellow:{color:"".concat((0,o.findColour)(e,"yellow",500)," !important")},red:{color:"".concat((0,o.findColour)(e,"red",500)," !important")}}});const f=function(e){var t=e.text,n=d(),o=(0,c.A)(),f=o.googleSyncStatus,p=o.hasInvalidToken,m=o.refreshAdwordsAccountData,g=o.syncStatusText,y=o.isLoading;return(0,u.jsxs)("div",{className:"flex items-center gap-3",children:[(0,u.jsx)(l.default,{className:n[f],children:g}),!p&&t&&(0,u.jsx)(i.default,{content:(0,r.A)("Refresh Google Ads data"),children:(0,u.jsx)(a.default,{onClick:function(){return m()},preset:"primary",size:"sm",iconRight:["far","rotate"],"aria-label":(0,r.A)("Sync"),loading:y,children:t})}),!p&&!t&&(0,u.jsx)(i.default,{content:(0,r.A)("Refresh Google Ads data"),children:(0,u.jsx)(a.default,{onClick:function(){return m()},preset:"primary",size:"sm",iconRight:["far","rotate"],"aria-label":(0,r.A)("Sync"),loading:y})}),p&&(0,u.jsx)(i.default,{content:(0,r.A)("Your Google token is invalid. Please reconnect your Google account."),children:(0,u.jsx)(a.default,{preset:"primary",size:"sm",iconRight:["far","rotate"],as:s.Link,to:"/platform-settings/google-tokens",children:(0,r.A)("Re-Connect")})})]})}},52796:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(44438),a=n(31085);const i=function(){var e,t=(0,r.R7)({}),n=t.filters,i=t.handlePagination,l=t.setFilters,s=t.handleSort,c="";return null!==(e=n["accounts.selection"])&&void 0!==e&&e.length&&(c+="&df_customer_ids=".concat(JSON.stringify(n["accounts.selection"]))),n["search.contains"]&&(c+="&search=".concat(encodeURIComponent(n["search.contains"]))),(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:n,onFilterChange:l,dynamicQuery:c,handlePagination:i,handleSort:s})})}},52805:(e,t,n)=>{"use strict";e.exports=n.p+"e022720a8b4ede7b552a.svg"},53087:(e,t,n)=>{"use strict";e.exports=n.p+"3015c818cbeb85f2407b.svg"},53145:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(14041),o=n(39067),a=n.n(o),i=n(57250),l=n(80111),s=n(31085);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e){var t,n,o=e.filters,a=e.onFilterChange,c=(t=(0,l.A)(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],f=c[1];return(0,r.useEffect)(function(){var e;(null===(e=u.selectedAwAccounts)||void 0===e?void 0:e.length)>0&&a(d(d({},o),{},{"accounts.selection":u.selectedAwAccounts,page:1}))},[]),(0,s.jsx)(i.A,{filters:d(d({},o),{},{"accounts.selection":u.selectedAwAccounts}),onFilterChange:function(e){var t=e["accounts.selection"]||[];f(d(d({},u),{},{selectedAwAccounts:t})),a(d(d({},o),{},{"accounts.selection":t,page:1}))}})}m.propTypes={filters:a().object,onFilterChange:a().func};const g=m},53244:(e,t,n)=>{"use strict";n.d(t,{A:()=>y}),n(14041);var r=n(28426),o=n(27805),a=n(89748),i=n(93033),l=n(98536),s=n(83223),c=n(62161),u=n(92523),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=function(){var e=(0,l.useApi)({url:"/account_status_change_log",sortKey:"change_date"});return(0,d.jsx)(i.A,{impersonatingOnly:!0,children:(0,d.jsxs)(r.A.Page,{type:"settings",children:[(0,d.jsx)(o.default,{title:(0,a.A)("Lunio Account Status Change Log"),text:(0,a.A)("View changes made to this Lunio accountâs status.")}),(0,d.jsx)("div",{className:"flex justify-end mb-4",children:(0,d.jsx)(u.default,{})}),(0,d.jsx)(c.A,m(m({},e.tableConnector),{},{noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{"data-sortable-id":"change_date",children:(0,a.A)("Change Date")}),(0,d.jsx)("th",{children:(0,a.A)("From Status")}),(0,d.jsx)("th",{children:(0,a.A)("To Status")}),(0,d.jsx)("th",{children:(0,a.A)("Actor")})]})}),(0,d.jsxs)("tbody",{children:[(0,d.jsx)("td",{children:(null==e?void 0:e.change_date)&&(0,s.GP)(new Date(null==e?void 0:e.change_date),"MMM d, H:mm")}),(0,d.jsx)("td",{children:null==e?void 0:e.from_status}),(0,d.jsx)("td",{children:null==e?void 0:e.to_status}),(0,d.jsx)("td",{children:null==e?void 0:e.actor})]})]})}}))]})})}},53301:(e,t,n)=>{"use strict";e.exports=n.p+"c8acd6a76d5f2edd91f6.svg"},53505:(e,t,n)=>{"use strict";e.exports=n.p+"94504944449933a04edf.svg"},53670:(e,t,n)=>{"use strict";e.exports=n.p+"5aee86841b96c75bbadf.svg"},53726:(e,t,n)=>{"use strict";e.exports=n.p+"e0bd458a35063e0fb4b3.svg"},53862:(e,t,n)=>{"use strict";n.d(t,{A:()=>v}),n(14041);var r=n(72686),o=n(17419),a=n(28426),i=n(96956),l=n(27805),s=n(89748),c=n(19863),u=n(27333),d=n(62161),f=n(96182),p=n(74704),m=n(93033),g=n(99226),y=n(89541),h=n(13497),x=n(31085);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const v=function(e){var t,n,v,A,_,S,w,O,j,k=e.filters,E=e.onFilterChange,N=e.handlePagination,I=e.handleSort,P=(0,u.st)("/analytics/fraud-stats/heatmap",k),T=P.data,C=P.isLoading,R="google"===(null===(t=(O=(0,f.A)(),j=1,function(e){if(Array.isArray(e))return e}(O)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(O,j)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(O,j)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].selectedPlatform)||void 0===t?void 0:t.platform_name),M="TRIAL"===(0,g.A)().lunioStatus;return(0,x.jsxs)(a.A.Page,{type:"main",children:[(0,x.jsx)(l.default,{title:"".concat((0,s.A)("Ad Stats")," - ").concat((0,s.A)("Day")),text:(0,s.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,x.jsx)(h.A,{filters:k,exportType:R?"google_day":"mplat_day"})}),(0,x.jsx)(y.A,{filters:k,onFilterChange:E}),(0,x.jsx)("div",{className:"mt-4"}),(null==T||null===(n=T.result)||void 0===n?void 0:n.hours)&&(0,x.jsx)(r.default,{className:"mb-4",children:(0,x.jsx)(p.A.Hourly,{data:(_=null==T||null===(v=T.result)||void 0===v?void 0:v.hours,S={0:"MON",1:"TUE",2:"WED",3:"THU",4:"FRI",5:"SAT",6:"SUN"},w={MON:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),TUE:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),WED:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),THU:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),FRI:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),SAT:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),SUN:Array(24).fill(null).map(function(){return{invalid:0,value:0}})},_.forEach(function(e){var t=S[e.day_of_week],n=Number(e.hour_of_day);t&&n>=0&&n<24&&(w[t][n]={invalid:Number(e.clicks_invalid),value:Number(e.clicks_total)})}),w)})}),(0,x.jsx)(d.A,{rows:null==T||null===(A=T.result)||void 0===A?void 0:A.weekdays,isLoading:C,totalPages:1,totalItems:7,pageNumber:k.page,handlePagination:N,handleSorting:I,limit:k.limit,sorting:{sortKey:k.sortKey,sortOrder:k.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("thead",{children:(0,x.jsxs)("tr",{children:[(0,x.jsx)("th",{children:(0,s.A)("Day")}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,s.A)("Legitimate")}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,s.A)("Suspicious")}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,s.A)("SIVT Clicks")}),(0,x.jsx)(m.A,{AND:!M,children:(0,x.jsx)("th",{"data-testid":"givt","data-tooltip":(0,s.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,s.A)("GIVT Clicks")})}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,s.A)("Total IVT")}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,s.A)("Total Clicks")}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,s.A)("All Tracked Clicks")}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,s.A)("SIVT Clicks %")}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("The percentage of all clicks tracked by Lunio that were identified as invali
2d (GIVT + SIVT)."),children:(0,s.A)("Total IVT %")}),(0,x.jsx)("th",{"data-tooltip":(0,s.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,s.A)("Health")})]})}),(0,x.jsxs)("tbody",{children:[(0,x.jsx)("td",{children:(t=null==e?void 0:e.weekday,t||0===t?["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"][t]:"")}),(0,x.jsx)("td",{children:(0,x.jsx)(o.A,{type:"legitimate",size:"sm",textRight:(0,c.m)((null==e?void 0:e.clicks_protected)||(null==e?void 0:e.clicks_legitimate))})}),(0,x.jsx)("td",{children:(0,x.jsx)(o.A,{type:"suspicious",size:"sm",textRight:(0,c.m)(null==e?void 0:e.clicks_suspicious)})}),(0,x.jsx)("td",{children:(0,x.jsx)(o.A,{type:"invalid",size:"sm",textRight:(0,c.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,x.jsx)(m.A,{AND:!M,children:(0,x.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,x.jsx)("td",{children:(0,c.m)(null==e?void 0:e.total_ivt)}),(0,x.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_total)}),(0,x.jsx)("td",{children:(0,c.m)(null==e?void 0:e.all_tracked_clicks)}),(0,x.jsxs)("td",{children:[null==e?void 0:e.percent_fraudulent,"%"]}),(0,x.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,x.jsx)("td",{children:(0,x.jsx)(i.A,{health:null==e?void 0:e.health})})]})]});var t}})]})}},54374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c}),n(14041);var r=n(89748),o=n(56197),a=n(1781),i=n(30021),l=n(17419),s=n(31085);const c=function(e){var t=e.type,n=e.percentage,c=e.clickCount;return(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(l.A,{type:t,className:"mt-1 mr-3"}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex v-align-center justify-between mb-2",children:[(0,s.jsx)(a.default,{content:"legitimate"===t?(0,r.A)("The total number of clicks Lunio has classified as legitimate."):"suspicious"===t?(0,r.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."):(0,r.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,s.jsx)(i.default,{preset:"widgetHeading",as:"h3",className:"mr-1",children:"invalid"===t?(0,r.A)("SIVT Clicks"):"".concat((0,r.A)(t.charAt(0).toUpperCase()+t.slice(1))," ").concat((0,r.A)("Clicks"))})}),(0,s.jsxs)(o.default,{children:[n,"%"]})]}),(0,s.jsx)(i.default,{preset:"bigStat",children:c.toLocaleString()})]})]})}},54384:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=p(n(25751)),a=n(14041),i=n(78704),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),s=p(n(9260)),c=p(n(79135)),u=p(n(62720)),d=p(n(56926)),f=n(31085);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=o.default;x(".fontSize-x1j61zf2{font-size:16px}",3e3),x(".lineHeight-xd4r4e8{line-height:18px}",3e3),x(".width-xh8yej3{width:100%}",4e3),x(".verticalAlign-xxymvpz{vertical-align:middle}",3e3),x(".borderRadius-x1khhgft{border-radius:24px}",2e3),x(".overflow-xb3r6kr{overflow:hidden}",2e3),x(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),x(".paddingLeft-xd3ty66{padding-left:24px}",4e3),x(".paddingBottom-xsag5q8{padding-bottom:12px}",4e3),x(".paddingTop-xyamay9{padding-top:16px}",4e3),x(".fontSize-xfifm61{font-size:12px}",3e3),x(".fontWeight-x1s688f{font-weight:600}",3e3),x(".textAlign-xdpxx8g{text-align:left}",3e3),x(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),x(".borderBottomWidth-xso031l{border-bottom-width:1px}",4e3),x(".borderBottomStyle-x1q0q8m5{border-bottom-style:solid}",4e3),x(".borderColor-x2ci420{border-color:var(--gray200-x1cfnqzm)}",2e3),x(".paddingBottom-x1l90r2v{padding-bottom:16px}",4e3),x(".paddingTop-xz9dl7a{padding-top:12px}",4e3),x(".borderTopWidth-x178xt8z{border-top-width:1px}",4e3),x(".borderTopStyle-x13fuv20{border-top-style:solid}",4e3),x(".fontSize-xif65rj{font-size:14px}",3e3),x(".lineHeight-x1fc57z9{line-height:20px}",3e3),x(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),x(".display-x78zum5{display:flex}",3e3),x(".gap-x1c1vhfx{gap:20px}",2e3),x(".alignItems-x6s0dn4{align-items:center}",3e3),x(".width-xlu33ui{width:155px}",4e3),x(".marginLeft-x1b973y9{margin-left:-7px}",4e3);var b={tr:{fontSize:"fontSize-xif65rj",lineHeight:"lineHeight-x1fc57z9",borderBottomWidth:"borderBottomWidth-xso031l",borderBottomStyle:"borderBottomStyle-x1q0q8m5",borderColor:"borderColor-x2ci420",$$css:"Table/index.tsx:53"},highlightRow:{backgroundColor:"backgroundColor-xq18l50",$$css:"Table/index.tsx:66"}};function v(e){var t,n=e.columns,r=e.data,o=void 0===r?[]:r,p=e.pageNumber,m=void 0===p?null:p,g=e.totalPages,h=void 0===g?null:g,x=e.handlePagination,v=void 0===x?null:x,A=e.rowHighlight,_=void 0===A?null:A,S=e.isLoading,w=void 0!==S&&S,O=e.hiddenLimitSelect,j=void 0!==O&&O,k=e.limit,E=void 0===k?20:k,N=[{label:"20 / page",value:20},{label:"50 / page",value:50},{label:"100 / page",value:100},{label:"200 / page",value:200}];function I(e,t){null!=v&&v(e,t)}function P(e){return(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 gap-x1c1vhfx alignItems-x6s0dn4 fontSize-xif65rj","data-style-src":"Table/index.tsx:69"}),{},{children:[(0,f.jsx)("div",y(y({},{className:"display-x78zum5 alignItems-x6s0dn4","data-style-src":"Table/index.tsx:75"}),{},{children:(0,f.jsxs)(s.default,{type:"button",preset:"ghost","data-testid":"paginationFirst",onClick:function(){I(1)},disabled:1===m||w,children:[(0,f.jsx)(c.default,y(y({},{className:"marginLeft-x1b973y9","data-style-src":"Table/index.tsx:82"}),{},{name:"pipe"})),(0,f.jsx)(c.default,{name:"chevron-left"})]})})),(0,f.jsx)(s.default,{type:"button",preset:"ghost","data-testid":"paginationPrevious",onClick:function(){null!=m&&I(m-1)},disabled:1===m||w,children:"Previous"}),(0,f.jsx)("span",{"data-testid":"pageNumber",children:null!=m?m:"-"}),(0,f.jsx)("span",{children:"/"}),(0,f.jsx)("span",{"data-testid":"totalPages",children:null!=h?h:"-"}),(0,f.jsx)(s.default,{type:"button",preset:"ghost","data-testid":"paginationNext",onClick:function(){null!=m&&I(m+1)},disabled:m===h||w,children:"Next"}),(0,f.jsx)("div",y(y({},{className:"display-x78zum5 alignItems-x6s0dn4","data-style-src":"Table/index.tsx:75"}),{},{children:(0,f.jsxs)(s.default,{type:"button",preset:"ghost","data-testid":"paginationLast",onClick:function(){null!=h&&I(h)},disabled:m===h||w,children:[(0,f.jsx)(c.default,{name:"chevron-right"}),(0,f.jsx)(c.default,y(y({},{className:"marginLeft-x1b973y9","data-style-src":"Table/index.tsx:82"}),{},{name:"pipe"}))]})})),!j&&(0,f.jsx)("div",y(y({},{className:"width-xlu33ui","data-style-src":"Table/index.tsx:79"}),{},{children:(0,f.jsx)(u.default.Select,{options:N,value:N.filter(function(e){return e.value===E}),onChange:function(e){null!=m&&I(m,Number(e.value))},menuHeight:180,menuPlacement:e})}))]}))}var T=(0,i.useTable)({columns:(0,a.useMemo)(function(){return e=n,null!=h?[{Header:P("bottom"),Footer:P("top"),accessor:"pagination",columns:e}]:e;var e},[n,h,m,E,w]),data:o}),C=T.getTableProps,R=T.getTableBodyProps,M=T.headerGroups,L=T.footerGroups,D=T.rows,B=T.prepareRow;L.shift();var U=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;return 0!==(null==o?void 0:o.length)||w?(0,f.jsx)("div",y(y({},{className:"fontSize-x1j61zf2 lineHeight-xd4r4e8 width-xh8yej3","data-style-src":"Table/index.tsx:11"}),{},{children:(0,f.jsxs)("div",y(y({},{className:"verticalAlign-xxymvpz borderRadius-x1khhgft overflow-xb3r6kr","data-style-src":"Table/index.tsx:16"}),{},{children:[w&&(0,f.jsxs)("table",y(y({},{className:"width-xh8yej3 backgroundColor-x18oya0d","data-style-src":"Table/index.tsx:21"}),{},{children:[(0,f.jsx)("thead",{children:(0,f.jsx)("tr",{children:Array.from({length:U}).map(function(e,t){return(0,f.jsx)("th",y(y({},{className:"paddingLeft-xd3ty66 paddingBottom-xsag5q8 paddingTop-xyamay9 fontSize-xfifm61 fontWeight-x1s688f lineHeight-xd4r4e8 textAlign-xdpxx8g color-x5tu7p5 borderBottomWidth-xso031l borderBottomStyle-x1q0q8m5 borderColor-x2ci420 backgroundColor-x18oya0d","data-style-src":"Table/index.tsx:25"}),{},{children:(0,f.jsx)(d.default,{})}),"header-placeholder-".concat(t))})})}),(0,f.jsx)("tbody",{children:Array.from({length:20}).map(function(e,t){return(0,f.jsx)("tr",y(y({},{className:"fontSize-xif65rj lineHeight-x1fc57z9 borderBottomWidth-xso031l borderBottomStyle-x1q0q8m5 borderColor-x2ci420","data-style-src":"Table/index.tsx:53"}),{},{children:Array.from({length:U}).map(function(e,n){return(0,f.jsx)("td",y(y({},{className:"paddingLeft-xd3ty66 paddingBottom-xsag5q8 paddingTop-xz9dl7a color-x5tu7p5","data-style-src":"Table/index.tsx:60"}),{},{children:(0,f.jsx)(d.default,{})}),"cell-placeholder-".concat(t,"-").concat(n))})}),"row-placeholder-".concat(t))})})]})),!w&&(0,f.jsxs)("table",y(y(y({},C()),{className:"width-xh8yej3 backgroundColor-x18oya0d","data-style-src":"Table/index.tsx:21"}),{},{children:[(0,f.jsx)("thead",{children:M.map(function(e,t){return(0,a.createElement)("tr",y(y({},e.getHeaderGroupProps()),{},{key:"header-group-".concat(t)}),e.headers.map(function(e,t){return(0,a.createElement)("th",y(y(y({}
2,e.getHeaderProps()),{className:"paddingLeft-xd3ty66 paddingBottom-xsag5q8 paddingTop-xyamay9 fontSize-xfifm61 fontWeight-x1s688f lineHeight-xd4r4e8 textAlign-xdpxx8g color-x5tu7p5 borderBottomWidth-xso031l borderBottomStyle-x1q0q8m5 borderColor-x2ci420 backgroundColor-x18oya0d","data-style-src":"Table/index.tsx:25"}),{},{key:"header-".concat(t)}),e.render("Header"))}))})}),(0,f.jsx)("tbody",y(y({},R()),{},{children:D.map(function(e,t){B(e);var n=function(e){return null!=_&&_(e.original)}(e);return(0,a.createElement)("tr",y(y(y({},e.getRowProps()),{},{className:n?"highlightRow":"","data-highlighted":n},l.props(b.tr,n&&b.highlightRow)),{},{key:"row-".concat(t)}),e.cells.map(function(e,n){return(0,a.createElement)("td",y(y(y({},e.getCellProps()),{className:"paddingLeft-xd3ty66 paddingBottom-xsag5q8 paddingTop-xz9dl7a color-x5tu7p5","data-style-src":"Table/index.tsx:60"}),{},{key:"cell-".concat(t,"-").concat(n)}),e.render("Cell"))}))})})),(0,f.jsx)("tfoot",{children:L.map(function(e,t){return(0,a.createElement)("tr",y(y({},e.getFooterGroupProps()),{},{key:"footer-group-".concat(t)}),e.headers.map(function(e,t){return(0,a.createElement)("td",y(y(y({},e.getFooterProps()),{className:"paddingLeft-xd3ty66 paddingBottom-x1l90r2v paddingTop-xz9dl7a fontSize-xfifm61 fontWeight-x1s688f lineHeight-xd4r4e8 textAlign-xdpxx8g color-x5tu7p5 borderTopWidth-x178xt8z borderTopStyle-x13fuv20 borderColor-x2ci420 backgroundColor-x18oya0d","data-style-src":"Table/index.tsx:39"}),{},{key:"footer-".concat(t)}),e.render("Footer"))}))})})]}))]}))})):(0,f.jsx)("div",{children:"No Results"})}v.displayName="Table";var A=v;A.Placeholder=d.default,t.A=A},54488:(e,t,n)=>{"use strict";e.exports=n.p+"ede162f9600b967c6a37.svg"},54541:(e,t,n)=>{"use strict";n.d(t,{A:()=>y}),n(14041);var r=n(76449),o=n(28426),a=n(27805),i=n(89748),l=n(62161),s=n(36990),c=n(19863),u=n(40699),d=n(73657),f=n(27333),p=n(92523),m=n(41574),g=n(31085);function y(){var e,t,n,y,h=(0,f.R7)({sortKey:"percent_invalid"}),x=h.filters,b=h.handlePagination,v=h.setFilters,A=h.handleSort,_=(0,f.st)("/analytics/conversions",x,function(e){var t="&group_by=partner";return e["partner.contains"]&&(t+="&partner_contains=".concat(e["partner.contains"])),t}),S=_.data,w=_.isLoading,O=[{label:(0,i.A)("Partner"),name:"partner",type:"radio",options:[{label:(0,i.A)("contains"),name:"contains",type:"text"}]}];return(0,g.jsxs)(o.A.Page,{type:"overview",children:[(0,g.jsx)(a.default,{type:"overview",title:(0,i.A)("Affiliate Partners Conversion Analytics"),text:(0,i.A)("Monitor affiliate conversion quality across all of your partners"),contentRight:(0,g.jsx)(m.A,{filters:x,exportType:"partner",exportCategory:"conversions",exportLevel:"summary"})}),(0,g.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,g.jsx)("div",{className:"left",children:(0,g.jsx)(r.default,{filterConfig:O,initialValues:x,onFilterChange:v})}),(0,g.jsx)(p.default,{})]}),(0,g.jsx)(l.A,{rows:null==S||null===(e=S.result)||void 0===e?void 0:e.data,isLoading:w,totalResults:null==S||null===(t=S.result)||void 0===t||null===(t=t.pagination)||void 0===t?void 0:t.total,totalPages:null==S||null===(n=S.result)||void 0===n||null===(n=n.pagination)||void 0===n?void 0:n.last_page,totalItems:null==S||null===(y=S.result)||void 0===y||null===(y=y.pagination)||void 0===y?void 0:y.total,pageNumber:x.page,handlePagination:b,handleSorting:A,sorting:{sortKey:x.sortKey,sortOrder:x.sortOrder},limit:x.limit,leftPinnedColumns:1,children:function(e){var t,n,r,o;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsxs)("th",{"data-sortable-id":"partner",children:[(0,i.A)("Partner"),(0,g.jsx)(s.A,{header:!0,children:(0,i.A)("Network")})]}),(0,g.jsx)("th",{"data-sortable-id":"total",children:(0,i.A)("Total Conversions")}),(0,g.jsx)("th",{"data-sortable-id":"fraudulent",children:(0,i.A)("Invalid Conversions")}),(0,g.jsx)("th",{"data-sortable-id":"percent_invalid",children:(0,i.A)("IVT%")}),(0,g.jsx)("th",{children:(0,i.A)("Top Reasons")}),(0,g.jsx)("th",{children:(0,i.A)("Occurrences")})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsxs)("td",{children:[(0,g.jsx)(d.Link,{to:"/conversion-analytics/partners/".concat(null==e?void 0:e.partner,"?network=").concat(null==e?void 0:e.network),children:null==e?void 0:e.partner}),(0,g.jsx)(s.A,{children:null==e?void 0:e.network})]}),(0,g.jsx)("td",{children:(0,c.m)(null==e?void 0:e.conversions_total)}),(0,g.jsx)("td",{children:(0,c.m)(null==e?void 0:e.conversions_fraudulent)}),(0,g.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,g.jsxs)("td",{children:[null===(t=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===t?void 0:t.topReason.name,(0,g.jsx)(s.A,{children:null===(n=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===n?void 0:n.secondReason.name})]}),(0,g.jsxs)("td",{children:[null===(r=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===r?void 0:r.topReason.value,(0,g.jsx)(s.A,{children:null===(o=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===o?void 0:o.secondReason.value})]})]})]})}})]})}},54942:e=>{e.exports={type:"FeatureCollection",features:[{type:"Feature",properties:{adm1_code:"USA-3514",diss_me:3514,iso_3166_2:"US-MN",wikipedia:"http://en.wikipedia.org/wiki/Minnesota",iso_a2:"US",adm0_sr:1,name:"Minnesota",name_alt:"MN|Minn.",name_local:null,type:"State",type_en:"State",code_local:"US27",code_hasc:"US.MN",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Minn.",postal:"MN",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:9,mapcolor9:1,mapcolor13:1,fips:"US27",fips_alt:null,woe_id:2347582,woe_label:"Minnesota, US, United States",woe_name:"Minnesota",latitude:46.0592,longitude:-93.364,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5037779,gn_name:"Minnesota",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.MN",region_sub:"West North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-89.61369767938538,47.81925202085796],[-89.72800594761503,47.641976019880644],[-89.84283098016755,47.464725857119504],[-89.95765601272012,47.286907253603175],[-90.13175391311144,47.29274669045216],[-90.30585181350276,47.29801768654593],[-90.47994971389409,47.30385712339489],[-90.6540476142854,47.309128119488676],[-90.85778194859611,47.21282908791278],[-91.06097368036777,47.117046820659795],[-91.26470801467849,47.02126455340681],[-91.46844234898919,46.9249655218309],[-91.59225908076053,46.876260484395914],[-91.71661841507091,46.82760712339301],[-91.8409777493813,46.778385321635],[-91.96479448115262,46.72970612241605],[-92.01189754918667,46.71172272397848],[-92.27487891312,46.65614472104858],[-92.26482784703924,46.09522288673644],[-92.2965830146826,46.09628225359842],[-92.54369971390233,45.98569468849381],[-92.75696834997089,45.88991242124082],[-92.89982784704182,45.705763454768714],[-92.68922054723626,45.51843638771068],[-92.76541744665064,45.26708222104298],[-92.76647681351261,44.9961426865367],[-92.79665584997105,44.77602692318949],[-92.50507158076417,44.58391978614445],[-92.38549231644078,44.57492808692567],[-92.06215287959051,44.43258535417769],[-91.949989183301,44.364837551443046],[-91.87960588251947,44.25742808692439],[-91.62770911331273,44.085448920257036],[-91.28959021682704,43.93729258887629],[-91.25729244664458,43.854739488289965],[-91.254
26569485977,43.61397899024206],[-91.22819861526426,43.5012468531974],[-92.54000484899348,43.51977285417405],[-94.00102678096546,43.51341665300214],[-95.35993608272871,43.50018748633542],[-96.4526600817565,43.50178945573647],[-96.43943091508982,44.43576345476367],[-96.56061214881424,45.39301768653837],[-96.73576941606754,45.47081655535372],[-96.83470394569034,45.62532908790642],[-96.78072791216147,45.76079885515958],[-96.55689144568922,45.87244578712617],[-96.53945064979075,46.017966620460186],[-96.53890804725165,46.199480088885366],[-96.60135901567638,46.3513571233911],[-96.68548824744755,46.51328522397769],[-96.73365068234358,46.71647695574927],[-96.7458204821483,46.9445250514533],[-96.77969438351563,46.999043687521294],[-96.82041541216165,47.29220408791309],[-96.82465287960957,47.42661448830425],[-96.84423824744819,47.54619375262766],[-96.89397681352912,47.74886872007637],[-97.01515804725355,47.954205023788134],[-97.13104244666809,48.13729462339825],[-97.14850908078273,48.31878225360731],[-97.16122148312654,48.51458425556122],[-97.12734758175921,48.64212169045756],[-97.1204746162644,48.75852285419501],[-97.21413814979343,48.90244171812793],[-97.22894344764504,49.00088532164389],[-95.15883724646483,48.9998259547819],[-95.15620174841791,49.38401439065592],[-94.81754024939323,49.38928538674975],[-94.64026424841592,48.84001658791925],[-94.32912044958647,48.670672919298795],[-93.63061011429733,48.60928131773602],[-92.60984554723586,48.45001455341253],[-91.63987891311746,48.13993012144516],[-90.83026424840062,48.27010305438836],[-89.59995174839577,48.01027395282483],[-89.59940914585667,48.01027395282483],[-89.4900319346622,48.01340602289096],[-89.52269548211933,47.96053538674391],[-89.61369767938538,47.81925202085796]]]}},{type:"Feature",properties:{adm1_code:"USA-3515",diss_me:3515,iso_3166_2:"US-MT",wikipedia:"http://en.wikipedia.org/wiki/Montana",iso_a2:"US",adm0_sr:1,name:"Montana",name_alt:"MT|Mont.",name_local:null,type:"State",type_en:"State",code_local:"US30",code_hasc:"US.MT",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Mont.",postal:"MT",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:7,mapcolor9:1,mapcolor13:1,fips:"US30",fips_alt:null,woe_id:2347585,woe_label:"Montana, US, United States",woe_name:"Montana",latitude:46.9965,longitude:-110.044,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5667009,gn_name:"Montana",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.MT",region_sub:"Mountain",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-116.04823401575418,49.00036855732097],[-113.05950171593753,49.0014020859668],[-110.0707694161209,49.00300405536785],[-107.08203711630425,49.00458018655276],[-104.09276221394853,49.00563955341474],[-104.07741431355785,47.17156545672772],[-104.02661638061494,45.956600857113486],[-104.07795691609692,45.04061025652388],[-105.74589128296557,45.051178086927564],[-107.54663408082433,45.04588125261765],[-109.10237891318732,45.05701752377655],[-111.07140601280457,45.04960195574266],[-111.0671943835728,44.54159678809741],[-111.08517778201036,44.506146755545174],[-111.19418921593007,44.56115631771988],[-111.29154761436796,44.701406154960026],[-111.4000164457486,44.72892385515544],[-111.54238501671271,44.53048635515465],[-111.77149247927873,44.49821442318837],[-112.33613501671589,44.56063955339695],[-112.36259335004932,44.46222178809708],[-112.69014441613137,44.4987311875113],[-112.87481014692638,44.3600833196722],[-113.05208614790365,44.61991242123574],[-113.174843512813,44.76543325456966],[-113.37857784712371,44.78977285417912],[-113.43942684614738,44.86279165300755],[-113.5029371814341,45.124222723972125],[-113.68021318241136,45.2490729843893],[-113.79449561242484,45.56499685320567],[-113.91410071496439,45.70258535418277],[-114.03579871301176,45.730103054378205],[-114.13793718143664,45.58933645281513],[-114.33531531457545,45.470273952814665],[-114.5136506824147,45.56923432065359],[-114.52370174849547,45.825368557308266],[-114.40727474654187,45.88991242124082],[-114.4914298165292,46.14708018654133],[-114.39404557987515,46.41008738869081],[-114.28451738163254,46.6318051214391],[-114.58561011438114,46.64133942319695],[-114.8433204822207,46.7863176539918],[-115.12164974654473,47.09536855731335],[-115.28833207890217,47.250397854188975],[-115.51906734908539,47.345120754579966],[-115.70479244674239,47.504930121442584],[-115.70427568241946,47.68484162046674],[-115.96779964889187,47.95048432066312],[-116.04823401575418,49.00036855732097]]]}},{type:"Feature",properties:{adm1_code:"USA-3516",diss_me:3516,iso_3166_2:"US-ND",wikipedia:"http://en.wikipedia.org/wiki/North_Dakota",iso_a2:"US",adm0_sr:1,name:"North Dakota",name_alt:"ND|N.D.",name_local:null,type:"State",type_en:"State",code_local:"US38",code_hasc:"US.ND",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"N.D.",postal:"ND",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:12,mapcolor9:1,mapcolor13:1,fips:"US38",fips_alt:null,woe_id:2347593,woe_label:"North Dakota, US, United States",woe_name:"North Dakota",latitude:47.4675,longitude:-100.302,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5690763,gn_name:"North Dakota",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.ND",regi
2on_sub:"West North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-97.22894344764504,49.00088532164389],[-97.21413814979343,48.90244171812793],[-97.1204746162644,48.75852285419501],[-97.12734758175921,48.64212169045756],[-97.16122148312654,48.51458425556122],[-97.14850908078273,48.31878225360731],[-97.13104244666809,48.13729462339825],[-97.01515804725355,47.954205023788134],[-96.89397681352912,47.74886872007637],[-96.84423824744819,47.54619375262766],[-96.82465287960957,47.42661448830425],[-96.82041541216165,47.29220408791309],[-96.77969438351563,46.999043687521294],[-96.7458204821483,46.9445250514533],[-96.73365068234358,46.71647695574927],[-96.68548824744755,46.51328522397769],[-96.60135901567638,46.3513571233911],[-96.53890804725165,46.199480088885366],[-96.53945064979075,46.017966620460186],[-98.44178931353531,45.96344798439215],[-100.06685807981785,45.96556671811612],[-102.11686214883646,45.96135508888433],[-104.02661638061494,45.956600857113486],[-104.07741431355785,47.17156545672772],[-104.09276221394853,49.00563955341474],[-100.62989864785396,49.00300405536785],[-97.22894344764504,49.00088532164389]]]}},{type:"Feature",properties:{adm1_code:"USA-3517",diss_me:3517,iso_3166_2:"US-HI",wikipedia:"http://en.wikipedia.org/wiki/Hawaii",iso_a2:"US",adm0_sr:8,name:"Hawaii",name_alt:"HI|Hawaii",name_local:null,type:"State",type_en:"State",code_local:"US15",code_hasc:"US.HI",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Hawaii",postal:"HI",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:6,mapcolor9:1,mapcolor13:1,fips:"US15",fips_alt:null,woe_id:2347570,woe_label:"Hawaii, US, United States",woe_name:"Hawaii",latitude:21.4919,longitude:-157.999,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5855797,gn_name:"Hawaii",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.HI",region_sub:"Pacific",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"MultiPolygon",coordinates:[[[[-155.93665,19.05939],[-155.90806,19.33888],[-156.07347,19.7029399999999],[-156.02368,19.81422],[-155.85008,19.97729],[-155.91907,20.17395],[-155.86108,20.26721],[-155.78505,20.2487],[-155.40214,20.07975],[-155.22452,19.993020000000172],[-155.06226,19.8591],[-154.80741,19.50871000000012],[-154.83147,19.45328],[-155.22217,19.239720000000148],[-155.54211,19.08348],[-155.68817,18.916190000000142],[-155.93665,19.05939]]],[[[-155.99566,20.76404],[-156.07926,20.64397],[-156.41445,20.57241],[-156.58673,20.783],[-156.70167,20.864300000000128],[-156.71055,20.92676],[-156.61258,21.012490000000128],[-156.25711,20.91745],[-155.99566,20.76404]]],[[[-156.75824,21.17684000000014],[-156.78933,21.06873],[-157.32521,21.09777],[-157.25027,21.219579999999894],[-156.75824,21.17684000000014]]],[[[-158.12667,21.31244],[-158.2538,21.53919],[-158.29265,21.579120000000103],[-158.0252,21.71696],[-157.94161,21.6527200000001],[-157.65283,21.32217],[-157.70703,21.26442],[-157.7786,21.27729],[-158.12667,21.31244]]],[[[-159.80051,22.06533000000013],[-159.74877,22.1382],[-159.5962,22.236180000000104],[-159.36569,22.21494],[-159.34512,21.98200000000014],[-159.46372,21.88299],[-159.80051,22.06533000000013]]]]}},{type:"Feature",properties:{adm1_code:"USA-3518",diss_me:3518,iso_3166_2:"US-ID",wikipedia:"http://en.wikipedia.org/wiki/Idaho",iso_a2:"US",adm0_sr:1,name:"Idaho",name_alt:"ID|Idaho",name_local:null,type:"State",type_en:"State",code_local:"US16",code_hasc:"US.ID",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Idaho",postal:"ID",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:5,mapcolor9:1,mapcolor13:1,fips:"US16",fips_alt:null,woe_id:2347571,woe_label:"Idaho, US, United States",woe_name:"Idaho",latitude:43.7825,longitude:-114.133,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5596512,gn_name:"Idaho",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.ID",region_sub:"Mountain",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-116.04823401575418,49.00036855732097],[-115.96779964889187,47.95048432066312],[-115.70427568241946,47.68484162046674],[-115.70479244674239,47.504930121442584],[-115.51906734908539,47.345120754579966],[-115.28833207890217,47.250397854188975],[-115.12164974654473,47.09536855731335],[-114.8433204822207,46.7863176539918],[-114.58561011438114,46.64133942319695],[-114.28451738163254,46.6318051214391],[-114.39404557987515,46.41008738869081],[-114.4914298165292,46.14708018654133],[-114.40727474654187,45.88991242124082],[-114.52370174849547,45.825368557308266],[-114.5136506824147,45.56923432065359],[-114.33531531457545,45.470273952814665],[-114.13793718143664,45.58933645281513],[-114.03579871301176,45.730103054378205],[-113.91410071496439,45.70258535418277],[-113.79449561242484,45.56499685320567],[-113.68021318241136,45.2490729843893],[-113.5029371814341,45.124222723972125],[-113.43942684614738,44.86279165300755],[
2-113.37857784712371,44.78977285417912],[-113.174843512813,44.76543325456966],[-113.05208614790365,44.61991242123574],[-112.87481014692638,44.3600833196722],[-112.69014441613137,44.4987311875113],[-112.36259335004932,44.46222178809708],[-112.33613501671589,44.56063955339695],[-111.77149247927873,44.49821442318837],[-111.54238501671271,44.53048635515465],[-111.4000164457486,44.72892385515544],[-111.29154761436796,44.701406154960026],[-111.19418921593007,44.56115631771988],[-111.08517778201036,44.506146755545174],[-111.04972774945814,44.48816335710761],[-111.05024451378105,42.00159678808724],[-114.03422258182684,41.99312185319137],[-117.0282517159534,42.000020656902336],[-117.0139631824247,43.79706858985223],[-116.92665585006762,44.081211452809214],[-117.0076069812528,44.21141022396847],[-117.19439144577179,44.27913218848698],[-117.19229855026396,44.4389415553496],[-117.05153194870093,44.66595612240786],[-116.83614457890837,44.86385101986953],[-116.69328508183749,45.186647854180706],[-116.55887468144633,45.444358222020284],[-116.45779557988342,45.57453115496351],[-116.51125484908937,45.726408189469325],[-116.67899654830879,45.807359320654555],[-116.91500281458576,45.99998322202251],[-116.90652787968992,46.17777598732283],[-116.99807267949495,46.33016978615143],[-117.02664974655237,47.72292715106586],[-117.03142981653936,48.99930919045899],[-116.04823401575418,49.00036855732097]]]}},{type:"Feature",properties:{adm1_code:"USA-3519",diss_me:3519,iso_3166_2:"US-WA",wikipedia:"http://en.wikipedia.org/wiki/Washington_(state)",iso_a2:"US",adm0_sr:6,name:"Washington",name_alt:"WA|Wash.",name_local:null,type:"State",type_en:"State",code_local:"US53",code_hasc:"US.WA",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Wash.",postal:"WA",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:10,mapcolor9:1,mapcolor13:1,fips:"US53",fips_alt:null,woe_id:2347606,woe_label:"Washington, US, United States",woe_name:"Washington",latitude:47.4865,longitude:-120.361,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5815135,gn_name:"Washington",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.WA",region_sub:"Pacific",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-117.03142981653936,48.99930919045899],[-117.02664974655237,47.72292715106586],[-116.99807267949495,46.33016978615143],[-116.90652787968992,46.17777598732283],[-116.91500281458576,45.99998322202251],[-118.97823605027111,45.99256765398866],[-119.33699968145743,45.88833629005586],[-119.59204952047821,45.932235419287906],[-119.78730891989301,45.85076752377984],[-120.15826818910023,45.740670884781935],[-120.6096359869536,45.753900051448625],[-120.83719315655094,45.67294892026342],[-121.0467410894945,45.637498887711104],[-121.203889120094,45.689898790055224],[-121.56107662009549,45.73276439064131],[-121.78809118715355,45.70098338478181],[-122.17491512107449,45.595150051447945],[-122.42045568910925,45.59199778907822],[-122.65170772361546,45.63008331967734],[-122.72578588930577,45.77033315691756],[-122.75224422263926,45.93807485613678],[-122.9379693202963,46.12909678810388],[-123.22849422264113,46.18625092221856],[-123.47137345441303,46.27725311948467],[-123.77670365460955,46.28203318947163],[-123.99867632678428,46.2830694871044],[-124.079635,46.86475],[-124.39567,47.72017000000011],[-124.68721008300781,48.18443298339838],[-124.56610107421875,48.379714965820426],[-123.12,48.04],[-122.58713802146673,47.09588532163639],[-122.34002132224703,47.35995189064778],[-122.49983068910967,48.18016022398439],[-122.84,49.000000000000114],[-120.00269628968556,49.000885321643864],[-117.03142981653936,48.99930919045899]]]}},{type:"Feature",properties:{adm1_code:"USA-3520",diss_me:3520,iso_3166_2:"US-AZ",wikipedia:"http://en.wikipedia.org/wiki/Arizona",iso_a2:"US",adm0_sr:1,name:"Arizona",name_alt:"AZ|Ariz.",name_local:null,type:"State",type_en:"State",code_local:"US04",code_hasc:"US.AZ",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Ariz.",postal:"AZ",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:7,mapcolor9:1,mapcolor13:1,fips:"US04",fips_alt:null,woe_id:2347561,woe_label:"Arizona, US, United States",woe_name:"Arizona",latitude:34.3046,longitude:-111.935,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5551752,gn_name:"Arizona",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.AZ",region_sub:"Mountain",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-109.04522477907253,36.99991242120524],[-109.04367281021746,31.34189913731541],[-111.02378618044753,31.33465098726333],[-113.30501644575611,32.03897492118551],[-114.81474341516332,32.52527598726806],[-114.72139,32.72083],[-114.58984758182902,32.7162979192351],[-114.47977678104735,32.91633738863692],[-114.6559934151627,33.05390005139793],[-114.6914434477149,33.20368419039579],[-114.74330074751975,33.379874986294965],[-114.54855811242783,33.6095250514],[-114.46918311242757,34.067274888641464],[-114.16597164595498,34.27258535413716],[-114.3549
20068241404,34.464666652966],[-114.48453101281825,34.653053086886075],[-114.5670841134044,34.82821035413929],[-114.62211951379533,34.963680121392485],[-114.64222164595688,35.0531061874735],[-114.58085588261031,35.24942495375046],[-114.63005184615216,35.44522695570424],[-114.65069658085275,35.63891022393419],[-114.65017981652983,35.85427175551057],[-114.73960588261092,35.99131765394861],[-114.67134131555338,36.11461762139703],[-114.46073401574782,36.11461762139703],[-114.26916948124185,36.04369171807643],[-114.13264034712672,36.004004218076275],[-114.06649451379315,36.15642385512115],[-114.023628913207,36.189755153949406],[-114.03052771691799,36.994098822572425],[-112.41760291222404,37.00942088474695],[-110.49622148317988,37.00732798923914],[-109.04522477907253,36.99991242120524]]]}},{type:"Feature",properties:{adm1_code:"USA-3521",diss_me:3521,iso_3166_2:"US-CA",wikipedia:"http://en.wikipedia.org/wiki/California",iso_a2:"US",adm0_sr:8,name:"California",name_alt:"CA|Calif.",name_local:null,type:"State",type_en:"State",code_local:"US06",code_hasc:"US.CA",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Calif.",postal:"CA",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:10,mapcolor9:1,mapcolor13:1,fips:"US06",fips_alt:null,woe_id:2347563,woe_label:"California, US, United States",woe_name:"California",latitude:36.7496,longitude:-119.591,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5332921,gn_name:"California",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.CA",region_sub:"Pacific",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-114.64222164595688,35.0531061874735],[-114.62211951379533,34.963680121392485],[-114.5670841134044,34.82821035413929],[-114.48453101281825,34.653053086886075],[-114.35490068241404,34.464666652966],[-114.16597164595498,34.27258535413716],[-114.46918311242757,34.067274888641464],[-114.54855811242783,33.6095250514],[-114.74330074751975,33.379874986294965],[-114.6914434477149,33.20368419039579],[-114.6559934151627,33.05390005139793],[-114.47977678104735,32.91633738863692],[-114.58984758182902,32.7162979192351],[-114.72139,32.72083],[-115.99107988163934,32.61258331962517],[-117.12772884811523,32.535327053348965],[-117.29593769127388,33.046224615203755],[-117.944,33.621236431201226],[-118.41060227589759,33.740909223124504],[-118.51989482279981,34.02778157757575],[-119.081,34.078],[-119.43884064201677,34.348477178284156],[-120.36781612204385,34.44722585706751],[-120.6228651536203,34.60861135511499],[-120.74458898988388,35.15682078708329],[-121.71455562400223,36.16172068943115],[-122.54745052146654,37.55181671808242],[-122.51200048891434,37.78361135512762],[-122.95331722068698,38.11379791925668],[-123.72696508852863,38.95147288670779],[-123.86507035382857,39.76692698827361],[-124.39795772362243,40.31301768651804],[-124.17887548892094,41.14224355728959],[-124.21380875715033,41.99947805436335],[-119.99897558656059,41.99260508886846],[-120.00003495342257,38.99539785415594],[-118.11461951380932,37.64442088474959],[-116.32074968144536,36.322046820616606],[-114.64222164595688,35.0531061874735]]]}},{type:"Feature",properties:{adm1_code:"USA-3522",diss_me:3522,iso_3166_2:"US-CO",wikipedia:"http://en.wikipedia.org/wiki/Colorado",iso_a2:"US",adm0_sr:1,name:"Colorado",name_alt:"CO|Colo.",name_local:null,type:"State",type_en:"State",code_local:"US08",code_hasc:"US.CO",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Colo.",postal:"CO",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US08",fips_alt:null,woe_id:2347564,woe_label:"Colorado, US, United States",woe_name:"Colorado",latitude:38.9998,longitude:-105.543,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5417618,gn_name:"Colorado",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.CO",region_sub:"Mountain",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-102.05017371296381,40.00081452082664],[-102.04012264688303,38.459874986315256],[-102.04118201374501,36.99198008884845],[-103.00321631550668,36.995158189434406],[-104.20019751668335,36.99619171808024],[-105.8998612129792,36.997276923158495],[-107.47997148316782,36.99991242120525],[-109.04522477907253,36.99991242120524],[-109.05318294964546,41.001993720049384],[-108.05094438356073,41.002536322588455],[-107.04973934612183,41.002536322588455],[-105.04686418335339,41.003595689450435],[-104.04514238159157,41.00411245377336],[-102.04805497923984,41.00411245377336],[-102.05017371296381,40.033086452792915],[-102.05017371296381,40.00081452082664]]]}},{type:"Feature",properties:{adm1_code:"USA-3523",diss_me:3523,iso_3166_2:"US-NV",wikipedia:"http://en.wikipedia.org/wiki/Nevada",iso_a2:"US",adm0_sr:1,name:"Nevada",name_alt:"NV|Nev.",name_local:null,type:"State",type_en:"State",code_local:"US32",code_hasc:"US.NV",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Nev.",postal:"NV",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:6,mapcolor9:1,mapcolor13:1,fips:"US32",fips_alt:null,woe_id:2347587,woe_label:"Nevada, US, United States",woe_name:"Nevada",latitude:39.4299,longitude:-117.02,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5509151,gn_name:"Nevada",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.NV",region_sub:"Mountain",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-117.0282517159534,42.000020656902336],[-114.03422258182684,41.99312185319137],[-114.03052771691799,36.994098822572425],[-114.023628913207,36.189755153949406],[-114.06649451379315,36.15642385512115],[-114.13264034712672,36.004004218076275],[-114.26916948124185,36.04369171807643],[-114.46073401574782,36.11461762139703],[-114.67134131555338,36.11461762139703],[-114.73960588261092,35.99131765394861],[-114.65017981652983,35.85427175551057],[-114.65069658085275,35.63891022393419],[-114.63005184615216,35.44522695570424],[-114.58085588261031,35.24942495375046],[-114.64222164595688,35.0531061874735],[-116.32074968144536,36.322046820616606],[-118.11461951380932,37.64442088474959],[-120.00003495342257,38.99539785415594],[-119.99897558656059,41.99260508886846],[
2-117.0282517159534,41.997359320639305],[-117.0282517159534,42.000020656902336]]]}},{type:"Feature",properties:{adm1_code:"USA-3524",diss_me:3524,iso_3166_2:"US-NM",wikipedia:"http://en.wikipedia.org/wiki/New_Mexico",iso_a2:"US",adm0_sr:1,name:"New Mexico",name_alt:"NM|N.M.",name_local:null,type:"State",type_en:"State",code_local:"US35",code_hasc:"US.NM",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"N.M.",postal:"NM",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:10,mapcolor9:1,mapcolor13:1,fips:"US35",fips_alt:null,woe_id:2347590,woe_label:"New Mexico, US, United States",woe_name:"New Mexico",latitude:34.5002,longitude:-106.024,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5481136,gn_name:"New Mexico",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.NM",region_sub:"Mountain",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-109.04367281021746,31.34189913731541],[-109.04522477907253,36.99991242120524],[-107.47997148316782,36.99991242120525],[-105.8998612129792,36.997276923158495],[-104.20019751668335,36.99619171808024],[-103.00321631550668,36.995158189434406],[-103.00161434610563,36.49932282159388],[-103.00161434610561,33.879947821583414],[-103.00161434610561,31.99928742118533],[-103.92977474649996,31.99928742118533],[-105.73000078003582,31.99928742118533],[-106.63012671591179,31.99928742118533],[-106.61953304729195,31.91409882255209],[-106.50734351278624,31.754289455689502],[-108.24,31.75485371816643],[-108.24196631552763,31.342066555297265],[-109.04367281021746,31.34189913731541]]]}},{type:"Feature",properties:{adm1_code:"USA-3525",diss_me:3525,iso_3166_2:"US-OR",wikipedia:"http://en.wikipedia.org/wiki/Oregon",iso_a2:"US",adm0_sr:6,name:"Oregon",name_alt:"OR|Ore.",name_local:null,type:"State",type_en:"State",code_local:"US41",code_hasc:"US.OR",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Ore.",postal:"OR",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:6,mapcolor9:1,mapcolor13:1,fips:"US41",fips_alt:null,woe_id:2347596,woe_label:"Oregon, US, United States",woe_name:"Oregon",latitude:43.8333,longitude:-120.386,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5744337,gn_name:"Oregon",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.OR",region_sub:"Pacific",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-116.91500281458576,45.99998322202251],[-116.67899654830879,45.807359320654555],[-116.51125484908937,45.726408189469325],[-116.45779557988342,45.57453115496351],[-116.55887468144633,45.444358222020284],[-116.69328508183749,45.186647854180706],[-116.83614457890837,44.86385101986953],[-117.05153194870093,44.66595612240786],[-117.19229855026396,44.4389415553496],[-117.19439144577179,44.27913218848698],[-117.0076069812528,44.21141022396847],[-116.92665585006762,44.081211452809214],[-117.0139631824247,43.79706858985223],[-117.0282517159534,42.000020656902336],[-117.0282517159534,41.997359320639305],[-119.99897558656059,41.99260508886846],[-124.21380875715033,41.99947805436335],[-124.53284,42.7659900000001],[-124.14214,43.70838],[-123.89893,45.523410000000126],[-123.99867632678428,46.2830694871044],[-123.77670365460955,46.28203318947163],[-123.47137345441303,46.27725311948467],[-123.22849422264113,46.18625092221856],[-122.9379693202963,46.12909678810388],[-122.75224422263926,45.93807485613678],[-122.72578588930577,45.77033315691756],[-122.65170772361546,45.63008331967734],[-122.42045568910925,45.59199778907822],[-122.17491512107449,45.595150051447945],[-121.78809118715355,45.70098338478181],[-121.56107662009549,45.73276439064131],[-121.203889120094,45.689898790055224],[-121.0467410894945,45.637498887711104],[-120.83719315655094,45.67294892026342],[-120.6096359869536,45.753900051448625],[-120.15826818910023,45.740670884781935],[-119.78730891989301,45.85076752377984],[-119.59204952047821,45.932235419287906],[-119.33699968145743,45.88833629005586],[-118.97823605027111,45.99256765398866],[-116.91500281458576,45.99998322202251]]]}},{type:"Feature",properties:{adm1_code:"USA-3526",diss_me:3526,iso_3166_2:"US-UT",wikipedia:"http://en.wikipedia.org/wiki/Utah",iso_a2:"US",adm0_sr:1,name:"Utah",name_alt:"UT",name_local:null,type:"State",type_en:"State",code_local:"US49",code_hasc:"US.UT",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Utah",postal:"UT",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:4,mapcolor9:1,mapcolor13:1,fips:"US49",fips_alt:null,woe_id:2347603,woe_label:"Utah, US, United States",woe_name:"Utah",latitude:39.5007,longitude:-111.544,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5549030,gn_name:"Utah",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.UT",region_sub:"Mountain",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-114.03422258182684,41.99312185319137],[-111.05024451378105,42.00159678808724],[-111.05448198122899,41.027935289059904],[-109.05318294964546,41.001993720049384],[-109.04522477907253,36.99991242120524],[-110.49622148317988,37.00732798923914],[-112.41760291222404,37.00942088474695],[-114.03052771691799,36.994098822572425],[-114.03422258182684,41.99312185319137]]]}},{type:"Feature",properties:{adm1_code:"USA-3527",diss_me:3527,iso_3166_2:"US-WY",wikipedia:"http://en.wikipedia.org/wiki/Wyoming",iso_a2:"US",adm0_sr:1,name:"Wyoming",name_alt:"WY|Wyo.",name_local:null,type:"State",type_en:"State",code_local:"US56",code_hasc:"US.WY",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Wyo.",postal:"WY",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:7,mapcolor9:1,mapcolor13:1,fips:"US56",fips_alt:null,woe_id:2347609,woe_label:"Wyoming, US, United States",woe_name:"Wyoming",latitude:42.9999,longitude:-107.552,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5843591,gn_name:"Wyoming",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.WY",region_sub:"Mountain",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-111.08517778201036,44.506146755545174],[-111.0671943835728,44.54159678809741],[-111.07140601280457,45.04960195574266],[-109.10237891318732,45.05701752377655],[-107.54663408082433,45.04588
2125261765],[-105.74589128296557,45.051178086927564],[-104.07795691609692,45.04061025652388],[-104.05255794962545,43.00014048926312],[-104.04514238159157,41.00411245377336],[-105.04686418335339,41.003595689450435],[-107.04973934612183,41.002536322588455],[-108.05094438356073,41.002536322588455],[-109.05318294964546,41.001993720049384],[-111.05448198122899,41.027935289059904],[-111.05024451378105,42.00159678808724],[-111.04972774945814,44.48816335710761],[-111.08517778201036,44.506146755545174]]]}},{type:"Feature",properties:{adm1_code:"USA-3528",diss_me:3528,iso_3166_2:"US-AR",wikipedia:"http://en.wikipedia.org/wiki/Arkansas",iso_a2:"US",adm0_sr:1,name:"Arkansas",name_alt:"AR|Ark.",name_local:null,type:"State",type_en:"State",code_local:"US05",code_hasc:"US.AR",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Ark.",postal:"AR",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US05",fips_alt:null,woe_id:2347562,woe_label:"Arkansas, US, United States",woe_name:"Arkansas",latitude:34.7563,longitude:-92.1428,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4099753,gn_name:"Arkansas",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.AR",region_sub:"West South Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-89.66291948114342,36.02307282159197],[-89.67351314976325,35.94000295668279],[-89.77510901564906,35.79923635511972],[-89.95026628290238,35.70187795668183],[-89.98889441604055,35.536229152970236],[-90.14710181350213,35.40499685316502],[-90.13493201369738,35.11395518649719],[-90.249240281927,35.02083425550724],[-90.26828304722656,34.94145925550691],[-90.44661841506581,34.86683848727745],[-90.4503132799747,34.7218602564826],[-90.58420691604294,34.45409882256226],[-90.6995487129184,34.39746145277036],[-90.87630794957275,34.261474921194306],[-90.9821412829065,34.0551050888367],[-91.20068091506883,33.70639252373114],[-91.22344438349342,33.46932689059217],[-91.1080767484018,33.2068364527656],[-91.15623918329783,33.01000092216589],[-92.00130388056687,33.043874823533145],[-93.09402787959465,33.01051768648881],[-94.05975704626516,33.01211965588982],[-94.00208614782744,33.57991445569678],[-94.23333818233357,33.583609320605646],[-94.42753821488645,33.57038015393891],[-94.47991227901426,33.635983384733464],[-94.45136105017299,34.510710354138],[-94.43017371293331,35.48331248630335],[-94.62861121293412,36.54058645277894],[-93.41258724645789,36.52629791925024],[-92.30717668330243,36.523662421203355],[-91.25147884801174,36.52314565688043],[-90.11219438348897,36.461754055317684],[-90.02909868036363,36.337937323546356],[-90.14180497919222,36.23050202081156],[-90.25399451369786,36.12254995375383],[-90.31538611526061,36.02307282159197],[-89.66291948114342,36.02307282159197]]]}},{type:"Feature",properties:{adm1_code:"USA-3529",diss_me:3529,iso_3166_2:"US-IA",wikipedia:"http://en.wikipedia.org/wiki/Iowa",iso_a2:"US",adm0_sr:1,name:"Iowa",name_alt:"IA|Iowa",name_local:null,type:"State",type_en:"State",code_local:"US19",code_hasc:"US.IA",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Iowa",postal:"IA",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:4,mapcolor9:1,mapcolor13:1,fips:"US19",fips_alt:null,woe_id:2347574,woe_label:"Iowa, US, United States",woe_name:"Iowa",latitude:42.0423,longitude:-93.3891,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4862182,gn_name:"Iowa",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.IA",region_sub:"West North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-96.4526600817565,43.50178945573647],[-95.35993608272871,43.50018748633542],[-94.00102678096546,43.51341665300214],[-92.54000484899348,43.51977285417405],[-91.22819861526426,43.5012468531974],[-91.21391008173555,43.44675405534562],[-91.08373714879232,43.288004055345],[-91.17316321487343,43.21232392025354],[-91.16998511428747,43.00223338477093],[-91.12923824742532,42.91283315690599],[-91.06469438349276,42.75408315690535],[-90.73817684605658,42.65827505143622],[-90.64081844761868,42.50536448828457],[-90.58260494664188,42.4291675888702],[-90.46460181350339,42.37836965592729],[-90.41698198114644,42.27041758886956],[-90.2598081123307,42.18998322200727],[-90.15663611525997,42.103735256512124],[-90.21006954624977,41.8349144557298],[-90.39527787958384,41.60841665299452],[-90.46196631545651,41.53645722102809],[-90.69055701369962,41.47878632259035],[-91.0339985827114,41.42956452083234],[-91.12342464879248,41.25758535416499],[-90.9990653144821,41.17981232356573],[-90.95674231643505,41.024757188473956],[-91.0874320137012,40.85171865494462],[-91.15412044957387,40.699841620438804],[-91.4102288480124,40.55114268651894],[-91.43033098017392,40.3685956894479],[-91.56740271682813,40.45220815689615],[-91.75842464879503,40.61411041926658],[-92.85166541214576,40.59243215592015],[-94.00208614782744,40.58501658788626],[-94.89849138057842,40.583440456701354],[-95.79649858273045,40.58395722102428],[-95.86210181352499,40.764928086910416],[-95.83406734900665,40.94380605728874],[-95.85574561235308,41.11630198827902],[-95.95842668331704,41.40470815689996],[-96.02508928097356,41.52428742122335],[-96.09704871294,41.55655935318963],[-96.10446428097387,41.78781138769577],[-96.16743201372152,41.95343435319121],[-96.34894548214672,42.14182078711124],[-96.34682674842276,42.22437388769751],[-96.41031124549332,42.38948
20088870044],[-96.45529557980339,42.488957221031896],[-96.4537194486185,42.58050202083696],[-96.61564754920508,42.691632188480625],[-96.53521318234277,42.85567902279118],[-96.4833558825379,43.01600515397672],[-96.45953304725134,43.1244998235735],[-96.58707048214768,43.257308254563625],[-96.58601111528569,43.5012468531974],[-96.4526600817565,43.50178945573647]]]}},{type:"Feature",properties:{adm1_code:"USA-3530",diss_me:3530,iso_3166_2:"US-KS",wikipedia:"http://en.wikipedia.org/wiki/Kansas",iso_a2:"US",adm0_sr:1,name:"Kansas",name_alt:"KS|Kans.",name_local:null,type:"State",type_en:"State",code_local:"US20",code_hasc:"US.KS",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Kans.",postal:"KS",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:6,mapcolor9:1,mapcolor13:1,fips:"US20",fips_alt:null,woe_id:2347575,woe_label:"Kansas, US, United States",woe_name:"Kansas",latitude:38.5,longitude:-98.3309,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4273857,gn_name:"Kansas",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.KS",region_sub:"West North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-102.04118201374501,36.99198008884845],[-102.04012264688303,38.459874986315256],[-102.05017371296381,40.00081452082664],[-102.04805497923984,40.00081452082664],[-100.30022884804795,40.00081452082664],[-99.00007564980055,40.00081452082664],[-96.69977678097625,40.00135712336569],[-95.32288408077542,40.00135712336569],[-95.08530168331355,39.86800608983651],[-94.95510291215416,39.87012482356049],[-94.92655168331291,39.72512075454949],[-95.06729244665982,39.53991242121542],[-94.99109554724546,39.44467275650149],[-94.86779557979705,39.23458222101888],[-94.60481421586371,39.13985932062788],[-94.6153820462674,38.06883942316266],[-94.62279761430128,36.99991242120525],[-95.50016008175271,36.99885305434327],[-97.29984351274949,36.99727692315837],[-99.10006954628534,36.995158189434406],[-100.10021521686225,36.994098822572425],[-101.09979244668396,36.99303945571043],[-102.04118201374501,36.99198008884845]]]}},{type:"Feature",properties:{adm1_code:"USA-3531",diss_me:3531,iso_3166_2:"US-MO",wikipedia:"http://en.wikipedia.org/wiki/Missouri",iso_a2:"US",adm0_sr:1,name:"Missouri",name_alt:"MO",name_local:null,type:"State",type_en:"State",code_local:"US29",code_hasc:"US.MO",note:null,hasc_maybe:"US.IL|USA-MOS",region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Mo.",postal:"MO",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US29",fips_alt:"US17",woe_id:2347584,woe_label:"Missouri, US, United States",woe_name:"Missouri",latitude:38.5487,longitude:-92.446,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4398678,gn_name:"Missouri",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.MO",region_sub:"West North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-89.66291948114342,36.02307282159197],[-90.31538611526061,36.02307282159197],[-90.25399451369786,36.12254995375383],[-90.14180497919222,36.23050202081156],[-90.02909868036363,36.337937323546356],[-90.11219438348897,36.461754055317684],[-91.25147884801174,36.52314565688043],[-92.30717668330243,36.523662421203355],[-93.41258724645789,36.52629791925024],[-94.62861121293412,36.54058645277894],[-94.61750077999136,36.99991242120525],[-94.62279761430128,36.99991242120525],[-94.6153820462674,38.06883942316266],[-94.60481421586371,39.13985932062788],[-94.86779557979705,39.23458222101888],[-94.99109554724546,39.44467275650149],[-95.06729244665982,39.53991242121542],[-94.92655168331291,39.72512075454949],[-94.95510291215416,39.87012482356049],[-95.08530168331355,39.86800608983651],[-95.32288408077542,40.00135712336569],[-95.45254024939575,40.21514252375718],[-95.60811214881042,40.3431708847603],[-95.77637061235276,40.50140412043801],[-95.79649858273045,40.58395722102428],[-94.89849138057842,40.583440456701354],[-94.00208614782744,40.58501658788626],[-92.85166541214576,40.59243215592015],[-91.75842464879503,40.61411041926658],[-91.56740271682813,40.45220815689615],[-91.43033098017392,40.3685956894479],[-91.51763831253103,40.119877020827104],[-91.42821224644996,39.82090302180248],[-91.2625892809545,39.615049953767794],[-91.0715673489876,39.445189520824414],[-90.84137468134344,39.31077912043325],[-90.74928727899933,39.265278021800256],[-90.66570064976722,39.074772854156265],[-90.64981014683747,38.907547919259756],[-90.53552771682399,38.865767523751785],[-90.3465986803649,38.93031138768433],[-90.1560935127209,38.76944265395973],[-90.2127308825128,38.584776923164725],[-90.30533504917983,38.439256089830806],[-90.36987891311239,38.26355622003844],[-90.22807878290348,38.11328115493366],[-90.03015804722561,37.97199778904769],[-89.91690914585797,37.968277085922665],[-89.65498714878662,37.74867808689835],[-89.5539080472237,37.71904165297896],[-89.47928727899424,37.477221788069144],[-89.51633928094752,37.32692088474823],[-89.38828508172826,37.08140615492954],[-89.28033301467053,37.107347723940066],[-89.10305701369326,36.952292588848294],[-89.13426957879756,36.85175608982445],[-89.115226813498,36.694582221008716],[-89.27397681349862,36.61151235609954],[-89.49835588250994,36.5061957870887],[-89.52427161330432,36.40935415297372],[-89.585120612328,36.26701142022576],[-89.66291948114342,36.02307282159197]]]}},{type:"Feature",properties:{adm1_code:"USA-3532",diss_me:3532,iso_3166_2:"US-NE",wikipedia:"http://en.wikipedia.org/wiki/Nebraska",iso_a2:"US",adm0_sr:1,name:"Nebraska",name_alt:"NE|Nebr.",name_local:null,type:"State",type_en:"State",code_local:"US31",code_hasc:"US.NE",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Nebr.",postal:"NE",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US31",fips_alt:null,woe_id:2347586,woe_label:"Nebraska, US, United States",woe_name:"Nebraska",latitude:41.5002,longitude:-99.6855,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5073708,gn_name:"Nebraska",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.NE",region_sub:"West North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-102.05017371296381,40.00081452082664],[-102.05017371296381,40.033086452792915],[-102.04805497923984,41.00411245377336],[-104.04514238159157,41.00411245377336],[-104.05255794962545,43.00014048926312],[-102.09991227904473,43.00014048926312],[-100.59974544961165,43.00014048926312],[-98.59418311236405,43.00014048926312],[-98.33595598020155,42.87366242122876],[-97.96820064979643,42.79428742122843],[-97.88192684608515,42.83978851986143],[-97.64434444862326,42.83609365495256],[-97.28715694862183,42.846144721033326],[
2-97.02838721392027,42.717547919275006],[-96.75426957882803,42.63396129004289],[-96.70876848019503,42.55086558691757],[-96.62303727902282,42.502728990237685],[-96.45529557980339,42.488957221031896],[-96.41031124549332,42.389480088870044],[-96.34682674842276,42.22437388769751],[-96.34894548214672,42.14182078711124],[-96.16743201372152,41.95343435319121],[-96.10446428097387,41.78781138769577],[-96.09704871294,41.55655935318963],[-96.02508928097356,41.52428742122335],[-95.95842668331704,41.40470815689996],[-95.85574561235308,41.11630198827902],[-95.83406734900665,40.94380605728874],[-95.86210181352499,40.764928086910416],[-95.79649858273045,40.58395722102428],[-95.77637061235276,40.50140412043801],[-95.60811214881042,40.3431708847603],[-95.45254024939575,40.21514252375718],[-95.32288408077542,40.00135712336569],[-96.69977678097625,40.00135712336569],[-99.00007564980055,40.00081452082664],[-100.30022884804795,40.00081452082664],[-102.04805497923984,40.00081452082664],[-102.05017371296381,40.00081452082664]]]}},{type:"Feature",properties:{adm1_code:"USA-3533",diss_me:3533,iso_3166_2:"US-OK",wikipedia:"http://en.wikipedia.org/wiki/Oklahoma",iso_a2:"US",adm0_sr:1,name:"Oklahoma",name_alt:"OK|Okla.",name_local:null,type:"State",type_en:"State",code_local:"US40",code_hasc:"US.OK",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Okla.",postal:"OK",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US40",fips_alt:null,woe_id:2347595,woe_label:"Oklahoma, US, United States",woe_name:"Oklahoma",latitude:35.452,longitude:-97.1309,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4544379,gn_name:"Oklahoma",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.OK",region_sub:"West South Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-103.00321631550668,36.995158189434406],[-102.04118201374501,36.99198008884845],[-101.09979244668396,36.99303945571043],[-100.10021521686225,36.994098822572425],[-99.10006954628534,36.995158189434406],[-97.29984351274949,36.99727692315837],[-95.50016008175271,36.99885305434327],[-94.62279761430128,36.99991242120525],[-94.61750077999136,36.99991242120525],[-94.62861121293412,36.54058645277894],[-94.43017371293331,35.48331248630335],[-94.45136105017299,34.510710354138],[-94.47991227901426,33.635983384733464],[-94.91014441606023,33.8317853866875],[-95.19059241410824,33.93816132256019],[-95.41812374548935,33.87041351982555],[-95.76949764685799,33.88100718844538],[-95.9774694486166,33.879431057260476],[-96.14890601274487,33.797937323536246],[-96.31613094764138,33.75613108981207],[-96.4627111478373,33.805327053354006],[-96.79661841509122,33.751351019825066],[-96.94795284705799,33.91805919039871],[-97.10406734901173,33.77359772392673],[-97.37658301470293,33.8381415878593],[-97.6570310127509,33.99371348727395],[-97.95709021685369,33.89369375257304],[-98.08832251665889,34.13448008883702],[-98.55397884804097,34.11065725355047],[-98.85189348020361,34.164633287079326],[-99.18740271685863,34.23555919040001],[-99.33607581256231,34.442962551403355],[-99.59908301471181,34.37629995374684],[-99.76152787962133,34.45779368747117],[-100.00019548216133,34.56522899020594],[-100.00019548216133,35.51984772393371],[-100.00019548216133,36.49932282159388],[-101.00083207884502,36.49932282159388],[-102.00149451374489,36.49932282159398],[-103.00161434610563,36.49932282159388],[-103.00321631550668,36.995158189434406]]]}},{type:"Feature",properties:{adm1_code:"USA-3534",diss_me:3534,iso_3166_2:"US-SD",wikipedia:"http://en.wikipedia.org/wiki/South_Dakota",iso_a2:"US",adm0_sr:1,name:"South Dakota",name_alt:"SD|S.D.",name_local:null,type:"State",type_en:"State",code_local:"US46",code_hasc:"US.SD",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"S.D.",postal:"SD",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:12,mapcolor9:1,mapcolor13:1,fips:"US46",fips_alt:null,woe_id:2347600,woe_label:"South Dakota, US, United States",woe_name:"South Dakota",latitude:44.4711,longitude:-100.255,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5769223,gn_name:"South Dakota",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.SD",regi
2on_sub:"West North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-96.53945064979075,46.017966620460186],[-96.55689144568922,45.87244578712617],[-96.78072791216147,45.76079885515958],[-96.83470394569034,45.62532908790642],[-96.73576941606754,45.47081655535372],[-96.56061214881424,45.39301768653837],[-96.43943091508982,44.43576345476367],[-96.4526600817565,43.50178945573647],[-96.58601111528569,43.5012468531974],[-96.58707048214768,43.257308254563625],[-96.45953304725134,43.1244998235735],[-96.4833558825379,43.01600515397672],[-96.53521318234277,42.85567902279118],[-96.61564754920508,42.691632188480625],[-96.4537194486185,42.58050202083696],[-96.45529557980339,42.488957221031896],[-96.62303727902282,42.502728990237685],[-96.70876848019503,42.55086558691757],[-96.75426957882803,42.63396129004289],[-97.02838721392027,42.717547919275006],[-97.28715694862183,42.846144721033326],[-97.64434444862326,42.83609365495256],[-97.88192684608515,42.83978851986143],[-97.96820064979643,42.79428742122843],[-98.33595598020155,42.87366242122876],[-98.59418311236405,43.00014048926312],[-100.59974544961165,43.00014048926312],[-102.09991227904473,43.00014048926312],[-104.05255794962545,43.00014048926312],[-104.07795691609692,45.04061025652388],[-104.02661638061494,45.956600857113486],[-102.11686214883646,45.96135508888433],[-100.06685807981785,45.96556671811612],[-98.44178931353531,45.96344798439215],[-96.53945064979075,46.017966620460186]]]}},{type:"Feature",properties:{adm1_code:"USA-3535",diss_me:3535,iso_3166_2:"US-LA",wikipedia:"http://en.wikipedia.org/wiki/Louisiana",iso_a2:"US",adm0_sr:5,name:"Louisiana",name_alt:"LA",name_local:null,type:"State",type_en:"State",code_local:"US22",code_hasc:"US.LA",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"La.",postal:"LA",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:9,mapcolor9:1,mapcolor13:1,fips:"US22",fips_alt:null,woe_id:2347577,woe_label:"Louisiana, US, United States",woe_name:"Louisiana",latitude:30.5274,longitude:-91.9991,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4331987,gn_name:"Louisiana",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.LA",region_sub:"West South Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-94.05975704626516,33.01211965588982],[-93.09402787959465,33.01051768648881],[-92.00130388056687,33.043874823533145],[-91.15623918329783,33.01000092216589],[-91.08479651565432,32.95284678805103],[-91.17579871292025,32.80838532157918],[-91.03082048212548,32.60253225354444],[-91.0720841133105,32.47871552177321],[-90.94297054722921,32.30673635510567],[-91.08161841506836,32.20459788668086],[-91.12817888056327,32.01569468843792],[-91.32131954625419,31.859580186484266],[-91.41128821487433,31.6500322535407],[-91.50229041214038,31.40872915295381],[-91.62453101272678,31.29708222098708],[-91.58378414586463,31.04733002372052],[-90.70166744664232,31.015574856077194],[-89.75921851271931,31.01345612235326],[-89.78779557977674,30.847290554318647],[-89.8539414131103,30.683243720008136],[-89.79045691603972,30.556791490189937],[-89.65868201369545,30.440881252559336],[-89.62323198114325,30.27525828706382],[-89.60470598016661,30.17629791922485],[-89.59392913902984,30.1603780541948],[-89.59383117841975,30.159994004836847],[-89.59370212735638,30.16004270590898],[-89.413735,29.89419],[-89.43,29.48864],[-89.21767,29.29108],[-89.4083872138898,29.159770819611367],[-89.77928,29.30714],[-90.15463,29.11743],[-90.880225,29.148535],[-91.626785,29.677000000000135],[-92.49906,29.5523],[-93.22637,29.78375000000011],[-93.84842,29.71363],[-93.91847368037912,29.821771755486566],[-93.81687781449335,29.96835195568235],[-93.66711951371155,30.10064362234965],[-93.66448401566464,30.300140489212254],[-93.73750281449298,30.3668030868688],[-93.65019548213593,30.60547068940889],[-93.5861683825263,30.713939520789552],[-93.48984351273424,31.079601955686883],[-93.57823605016944,31.216131089801934],[-93.69412044958403,31.443662421183035],[-93.7793090482171,31.67543122001223],[-93.83486121293095,31.829943752564816],[-93.9989080472414,31.942650051393343],[-94.05975704626516,33.01211965588982]]]}},{type:"Feature",properties:{adm1_code:"USA-3536",diss_me:3536,iso_3166_2:"US-TX",wikipedia:"http://en.wikipedia.org/wiki/Texas",iso_a2:"US",adm0_sr:4,name:"Texas",name_alt:"TX|Tex.",name_local:null,type:"State",type_en:"State",code_local:"US48",code_hasc:"US.TX",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Tex.",postal:"TX",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:5,mapcolor9:1,mapcolor13:1,fips:"US48",f
2ips_alt:null,woe_id:2347602,woe_label:"Texas, US, United States",woe_name:"Texas",latitude:31.131,longitude:-98.7607,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4736286,gn_name:"Texas",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.TX",region_sub:"West South Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-106.50734351278624,31.754289455689502],[-106.61953304729195,31.91409882255209],[-106.63012671591179,31.99928742118533],[-105.73000078003582,31.99928742118533],[-103.92977474649996,31.99928742118533],[-103.00161434610561,31.99928742118533],[-103.00161434610561,33.879947821583414],[-103.00161434610563,36.49932282159388],[-102.00149451374489,36.49932282159398],[-101.00083207884502,36.49932282159388],[-100.00019548216133,36.49932282159388],[-100.00019548216133,35.51984772393371],[-100.00019548216133,34.56522899020594],[-99.76152787962133,34.45779368747117],[-99.59908301471181,34.37629995374684],[-99.33607581256231,34.442962551403355],[-99.18740271685863,34.23555919040001],[-98.85189348020361,34.164633287079326],[-98.55397884804097,34.11065725355047],[-98.08832251665889,34.13448008883702],[-97.95709021685369,33.89369375257304],[-97.6570310127509,33.99371348727395],[-97.37658301470293,33.8381415878593],[-97.10406734901173,33.77359772392673],[-96.94795284705799,33.91805919039871],[-96.79661841509122,33.751351019825066],[-96.4627111478373,33.805327053354006],[-96.31613094764138,33.75613108981207],[-96.14890601274487,33.797937323536246],[-95.9774694486166,33.879431057260476],[-95.76949764685799,33.88100718844538],[-95.41812374548935,33.87041351982555],[-95.19059241410824,33.93816132256019],[-94.91014441606023,33.8317853866875],[-94.47991227901426,33.635983384733464],[-94.42753821488645,33.57038015393891],[-94.23333818233357,33.583609320605646],[-94.00208614782744,33.57991445569678],[-94.05975704626516,33.01211965588982],[-93.9989080472414,31.942650051393343],[-93.83486121293095,31.829943752564816],[-93.7793090482171,31.67543122001223],[-93.69412044958403,31.443662421183035],[-93.57823605016944,31.216131089801934],[-93.48984351273424,31.079601955686883],[-93.5861683825263,30.713939520789552],[-93.65019548213593,30.60547068940889],[-93.73750281449298,30.3668030868688],[-93.66448401566464,30.300140489212254],[-93.66711951371155,30.10064362234965],[-93.81687781449335,29.96835195568235],[-93.91847368037912,29.821771755486566],[-93.84842,29.71363],[-94.69000281449689,29.4799321558757],[-95.60017981645365,28.738556220000362],[-96.5939434476424,28.307290554308565],[-97.14003414588689,27.829981187444673],[-97.37022681353096,27.380189520776185],[-97.37976111528883,26.69015412038283],[-97.33002254920791,26.21020925547191],[-97.14003414588689,25.869945787046277],[-97.53003618039355,25.83979258880396],[-98.24017371294855,26.059934190367358],[-99.0201777819621,26.370018622334726],[-99.30010901568716,26.839912421164684],[-99.52022477903438,27.53999888763883],[-100.11026628294297,28.109912421169724],[-100.45580074746255,28.696233221953378],[-100.95744971393594,29.38097178803673],[-101.662290412181,29.779422919223236],[-102.47986324747075,29.759863389600753],[-103.11010901570234,28.96980825450646],[-103.9398258125807,29.269841620393095],[-104.45682267944477,29.571993720003775],[-104.7055413480656,30.121805121373143],[-105.03732988159555,30.64409882254705],[-105.6315830147359,31.083839423134748],[-106.1427662829671,31.399737453735042],[-106.50734351278624,31.754289455689502]]]}},{type:"Feature",properties:{adm1_code:"USA-3537",diss_me:3537,iso_3166_2:"US-CT",wikipedia:"http://en.wikipedia.org/wiki/Connecticut",iso_a2:"US",adm0_sr:1,name:"Connecticut",name_alt:"CT|Conn.",name_local:null,type:"State",type_en:"State",code_local:"US09",code_hasc:"US.CT",note:null,hasc_maybe:null,region:"Northeast",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Conn.",postal:"CT",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:11,mapcolor9:1,mapcolor13:1,fips:"US09",fips_alt:null,woe_id:2347565,woe_label:"Connecticut, US, United States",woe_name:"Connecticut",latitude:41.6486,longitude:-72.7594,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4831725,gn_name:"Connecticut",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.CT",region_sub:"New England",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-73.65668718127472,40.9850696884738],[-73.69267981636597,41.107310289060365],[
2-73.47517371284943,41.2046686874981],[-73.55348934598777,41.28985728613134],[-73.49793718127407,42.054513454754115],[-72.73222164578922,42.03598745377748],[-71.8009089830251,42.013249823569055],[-71.79295081245215,41.466616522785614],[-71.853825649692,41.32003632258983],[-72.29514238146447,41.26975515396981],[-72.87616634793818,41.22055919042799],[-73.64788653178721,40.95323936094951],[-73.64826921714257,40.954623463363454],[-73.64788653178721,40.95476927691993],[-73.65668718127472,40.9850696884738]]]}},{type:"Feature",properties:{adm1_code:"USA-3513",diss_me:3513,iso_3166_2:"US-MA",wikipedia:"http://en.wikipedia.org/wiki/Massachusetts",iso_a2:"US",adm0_sr:6,name:"Massachusetts",name_alt:"Commonwealth of Massachusetts|MA|Mass.",name_local:null,type:"State",type_en:"State",code_local:"US25",code_hasc:"US.MA",note:null,hasc_maybe:null,region:"Northeast",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Mass.",postal:"MA",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:13,mapcolor9:1,mapcolor13:1,fips:"US25",fips_alt:null,woe_id:2347580,woe_label:"Massachusetts, US, United States",woe_name:"Massachusetts",latitude:42.3739,longitude:-71.9993,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:6254926,gn_name:"Massachusetts",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.MA",region_sub:"New England",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-71.8009089830251,42.013249823569055],[-72.73222164578922,42.03598745377748],[-73.49793718127407,42.054513454754115],[-73.28203304715862,42.74348948828549],[-72.45707048205115,42.72708222103286],[-71.24897884793177,42.71809052181413],[-71.14578101264487,42.816508287114004],[-70.93359758165442,42.88425608984859],[-70.81505184597688,42.865187486332886],[-70.82510291205764,42.33496145280212],[-70.49491634792872,41.80473541927135],[-70.08005794948956,41.77987905533895],[-70.18483191596133,42.144998887697184],[-69.88479855007472,41.922764390625986],[-69.96520707872087,41.63699372005193],[-70.63989457872357,41.47506561946534],[-71.1203820461734,41.49465098730397],[-71.14789974636884,41.64758738867177],[-71.30507361518457,41.76241242122431],[-71.37915178087496,42.02436025651181],[-71.8009089830251,42.013249823569055]]]}},{type:"Feature",properties:{adm1_code:"USA-3538",diss_me:3538,iso_3166_2:"US-NH",wikipedia:"http://en.wikipedia.org/wiki/New_Hampshire",iso_a2:"US",adm0_sr:1,name:"New Hampshire",name_alt:"NH|N.H.",name_local:null,type:"State",type_en:"State",code_local:"US33",code_hasc:"US.NH",note:null,hasc_maybe:null,region:"Northeast",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"N.H.",postal:"NH",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:13,mapcolor9:1,mapcolor13:1,fips:"US33",fips_alt:null,woe_id:2347588,woe_label:"New Hampshire, US, United States",woe_name:"New Hampshire",latitude:43.5993,longitude:-71.6301,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5090174,gn_name:"New Hampshire",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.NH",region_sub:"New England",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-70.81505184597688,42.865187486332886],[-70.93359758165442,42.88425608984859],[-71.14578101264487,42.816508287114004],[-71.24897884793177,42.71809052181413],[-72.45707048205115,42.72708222103286],[-72.53750484891344,42.83079682064263],[-72.45864661323606,42.96045298926299],[-72.43430701362658,43.222917588873365],[-72.4036112128452,43.285368557298106],[-72.36976314969402,43.521891587898004],[-72.26020911323525,43.72138845476078],[-72.17819861518808,43.80869578711793],[-72.05913611518758,44.04576142025695],[-72.036372646763,44.20663015398147],[-72.00304134793475,44.304014390635515],[-71.80990068224389,44.3521509873155],[-71.58552161323257,44.46803538672992],[-71.54637671577146,44.59239472104031],[-71.62045488146187,44.73579682065026],[-71.50351111518535,45.00779572201852],[-71.50508724637027,45.00831248634144],[-71.40509334988542,45.254912421238316],[-71.08482,45.30524],[-70.94416541205806,43.46633942318431],[-70.98176001655037,43.36789581966826],[-70.79761105007827,43.21973948828747],[-70.75102474636725,43.08003225358635],[-70.64573401557249,43.090083319667144],[-70.81505184597688,42.865187486332886]]]}},{type:"Feature",properties:{adm1_code:"USA-3539",diss_me:3539,iso_3166_2:"US-RI",wikipedia:"http://en.wikipedia.org/wiki/Rhode_Island",iso_a2:"US",adm0_sr:6,name:"Rhode Island",name_alt:"State of Rhode Island and Providence Plantations|RI|R.I.",name_local:null,type:"State",type_en:"State",code_local:"US44",code_hasc:"US.RI",note:null,hasc_maybe:null,region:"Northeast",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"R.I.",postal:"RI",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:12,mapcolor9:1,mapcolor13:1,fips:"US44",fips_alt:null,woe_id:2347598,woe_label:"Rhode Island, US, United States",woe_name:"Rhode Island",latitude:41.6242,longitude:-71.5082,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5224323,gn_name:"Rhode Island",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.RI",region_sub:"New England",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-71.853825649692,41.32003632258983],[-71.79295081245215,41.466616522785614],[-71.8009089830251,42.013249823569055],[-71.37915178087496,42.02436025651181],[-71.30507361518457,41.76241242122431],[-71.14789974636884,41.64758738867177],[
2-71.1203820461734,41.49465098730397],[-71.853825649692,41.32003632258983]]]}},{type:"Feature",properties:{adm1_code:"USA-3540",diss_me:3540,iso_3166_2:"US-VT",wikipedia:"http://en.wikipedia.org/wiki/Vermont",iso_a2:"US",adm0_sr:1,name:"Vermont",name_alt:"VT",name_local:null,type:"State",type_en:"State",code_local:"US50",code_hasc:"US.VT",note:null,hasc_maybe:null,region:"Northeast",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Vt.",postal:"VT",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:7,mapcolor9:1,mapcolor13:1,fips:"US50",fips_alt:null,woe_id:2347604,woe_label:"Vermont, US, United States",woe_name:"Vermont",latitude:44.0886,longitude:-72.7317,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5242283,gn_name:"Vermont",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.VT",region_sub:"New England",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-72.45707048205115,42.72708222103286],[-73.28203304715862,42.74348948828549],[-73.23971004911158,43.56793528907005],[-73.38311214872152,43.57535085710395],[-73.40163814969816,43.61343638770307],[-73.33812781441145,43.758440456714084],[-73.4296726142165,44.01984568946249],[-73.32913611519265,44.22673228614301],[-73.3841715155835,44.379151923187905],[-73.40796851265391,44.67600718848857],[-73.36828101265375,44.804603990246875],[-73.34766211616932,45.00725311947946],[-71.50508724637027,45.00831248634144],[-71.50351111518535,45.00779572201852],[-71.62045488146187,44.73579682065026],[-71.54637671577146,44.59239472104031],[-71.58552161323257,44.46803538672992],[-71.80990068224389,44.3521509873155],[-72.00304134793475,44.304014390635515],[-72.036372646763,44.20663015398147],[-72.05913611518758,44.04576142025695],[-72.17819861518808,43.80869578711793],[-72.26020911323525,43.72138845476078],[-72.36976314969402,43.521891587898004],[-72.4036112128452,43.285368557298106],[-72.43430701362658,43.222917588873365],[-72.45864661323606,42.96045298926299],[-72.53750484891344,42.83079682064263],[-72.45707048205115,42.72708222103286]]]}},{type:"Feature",properties:{adm1_code:"USA-3541",diss_me:3541,iso_3166_2:"US-AL",wikipedia:"http://en.wikipedia.org/wiki/Alabama",iso_a2:"US",adm0_sr:5,name:"Alabama",name_alt:"AL|Ala.",name_local:null,type:"State",type_en:"State",code_local:"US01",code_hasc:"US.AL",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Ala.",postal:"AL",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:7,mapcolor9:1,mapcolor13:1,fips:"US01",fips_alt:null,woe_id:2347559,woe_label:"Alabama, US, United States",woe_name:"Alabama",latitude:32.8551,longitude:-86.7184,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4829764,gn_name:"Alabama",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.AL",region_sub:"East South Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-88.16696428094212,34.999672756483704],[-86.90967668328085,34.99913015394465],[-85.62538814974705,34.98590098727793],[-85.36555904818351,33.74447805433026],[-85.12955278190654,32.750714423141375],[-84.98615068229658,32.43796865491096],[-84.89884334993945,32.25911652274878],[-85.06392371289584,32.083416652956416],[-85.11950171582576,31.76539988863223],[-85.06552568229691,31.5770134547122],[-85.09038204622931,31.400280056274084],[-85.11789974642471,31.236233221963445],[-85.05441524935415,31.108695787067106],[-85.00519344759613,30.990692653928605],[-87.0456632148569,30.984879055295778],[-87.61715287957273,30.927724921180967],[-87.63304338250248,30.851528021766683],[-87.4049694485823,30.60864878999479],[-87.45788611524918,30.411270656855976],[-87.53038814975469,30.274198920201783],[-88.41780168328688,30.38481232352254],[-88.44953101271409,31.91198008882813],[-88.27334021681494,33.510047919238175],[-88.09552161329862,34.80598948825383],[-88.16696428094212,34.999672756483704]]]}},{type:"Feature",properties:{adm1_code:"USA-3542",diss_me:3542,iso_3166_2:"US-FL",wikipedia:"http://en.wikipedia.org/wiki/Florida",iso_a2:"US",adm0_sr:5,name:"Florida",name_alt:"FL|Fla.",name_local:null,type:"State",type_en:"State",code_local:"US12",code_hasc:"US.FL",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:8,abbrev:"Fla.",postal:"FL",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:7,mapcolor9:1,mapcolor13:1,fips:"US12",fips_alt:null,woe_id:2347568,woe_label:"Florida, US, United States",woe_name:"Florida",latitude:28.1568,longitude:-81.6228,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4155751,gn_name:"Florida",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.FL",region_sub:"South Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-87.53038814975469,30.274198920201783],[-87.45788611524918,30.411270656855976],[-87.4049694485823,30.60864878999479],[-87.63304338250248,30.851528021766683],[-87.61715287957273,30.927724921180967],[-87.0456632148569,30.984879055295778],[-85.00519344759613,30.990692653928605],[-84.85331641309023,30.721355088823486],[-83.84789974641967,30.675311387651334],[-82.22600908072297,30.52555308686948],[-82.15193091503261,30.35093842215514],[-82.02281734895132,30.440364488236412],[-82.02015601268835,30.78801768647986],[-81.8995173815029,30.82189158784729],[-81.70159664582513,30.748330186479848],[-81.49047258169657,30.729830023719217],[-81.31371,30.035520000000133],[-80.97983191600446,29.179898789989068],[-80.535585,28.47213],[-80.53004024933603,28.04007172292728],[-80.05653928497765,26.88],[-80.088015,26.205765],[-80.13155999999987,25.81677500000012],[-80.38103,25.20616],[-80.67979855011788,25.07991649016799],[-81.17191321483341,25.201097723892417],[-81.33012061229499,25.
2639753119402087],[-81.71007158072098,25.869945787046277],[-82.23978084992882,26.729841620383013],[-82.70515,27.49504],[-82.85526,27.88624],[-82.64988501659712,28.55016978608029],[-82.9299999999999,29.100000000000136],[-83.70959,29.9365600000001],[-84.0997965156264,30.090049953729817],[-85.10882,29.6361500000001],[-85.28784,29.68612000000013],[-85.7731,30.15261],[-86.40006954623453,30.40016022391336],[-87.53038814975469,30.274198920201783]]]}},{type:"Feature",properties:{adm1_code:"USA-3543",diss_me:3543,iso_3166_2:"US-GA",wikipedia:"http://en.wikipedia.org/wiki/Georgia_(U.S._state)",iso_a2:"US",adm0_sr:6,name:"Georgia",name_alt:"GA|Ga.",name_local:null,type:"State",type_en:"State",code_local:"US13",code_hasc:"US.GA",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Ga.",postal:"GA",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:7,mapcolor9:1,mapcolor13:1,fips:"US13",fips_alt:null,woe_id:2347569,woe_label:"Georgia, US, United States",woe_name:"Georgia",latitude:32.8547,longitude:-83.4078,s
2ov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4197e3,gn_name:"Georgia",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.GA",region_sub:"South Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-85.00519344759613,30.990692653928605],[-85.05441524935415,31.108695787067106],[-85.11789974642471,31.236233221963445],[-85.09038204622931,31.400280056274084],[-85.06552568229691,31.5770134547122],[-85.11950171582576,31.76539988863223],[-85.06392371289584,32.083416652956416],[-84.89884334993945,32.25911652274878],[-84.98615068229658,32.43796865491096],[-85.12955278190654,32.750714423141375],[-85.36555904818351,33.74447805433026],[-85.62538814974705,34.98590098727793],[-84.8543757799523,34.97690928805915],[-84.32097164583558,34.98696035413991],[-83.07637061230196,34.97902802178311],[-83.18592464876076,34.895958156873974],[-83.34625077994627,34.706512356091935],[-83.07637061230196,34.54034678805738],[-82.9028153144497,34.4794977890337],[-82.71654761425356,34.163057155894535],[-82.59748511425317,33.98578115491722],[-82.24928931347051,33.748715521778195],[-82.18050798209003,33.624356187467924],[-81.94344234895101,33.46136872001921],[-81.82701534699743,33.22324372001839],[-81.50739661327219,33.02162811943151],[-81.43595394562868,32.79303742118839],[-81.37670691600607,32.68244985608385],[-81.41109758169631,32.60888845471641],[-81.22482988150023,32.49936025647378],[-81.12641211620041,32.31203318941573],[-81.1279882473853,32.121528021771724],[-81.03644344758027,32.084476019818396],[-80.86500688345194,32.03316132255259],[-81.33629,31.44049],[-81.49047258169657,30.729830023719217],[-81.70159664582513,30.748330186479848],[-81.8995173815029,30.82189158784729],[-82.02015601268835,30.78801768647986],[-82.02281734895132,30.440364488236412],[-82.15193091503261,30.35093842215514],[-82.22600908072297,30.52555308686948],[-83.84789974641967,30.675311387651334],[-84.85331641309023,30.721355088823486],[-85.00519344759613,30.990692653928605]]]}},{type:"Feature",properties:{adm1_code:"USA-3544",diss_me:3544,iso_3166_2:"US-MS",wikipedia:"http://en.wikipedia.org/wiki/Mississippi",iso_a2:"US",adm0_sr:5,name:"Mississippi",name_alt:"MS|Miss.",name_local:null,type:"State",type_en:"State",code_local:"US28",code_hasc:"US.MS",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Miss.",postal:"MS",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:11,mapcolor9:1,mapcolor13:1,fips:"US28",fips_alt:null,woe_id:2347583,woe_label:"Mississippi, US, United States",woe_name:"Mississippi",latitude:32.8657,longitude:-89.7189,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4436296,gn_name:"Mississippi",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.MS",region_sub:"East South Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-91.15623918329783,33.01000092216589],[-91.1080767484018,33.2068364527656],[-91.22344438349342,33.46932689059217],[-91.20068091506883,33.70639252373114],[-90.9821412829065,34.0551050888367],[-90.87630794957275,34.261474921194306],[-90.6995487129184,34.39746145277036],[-90.58420691604294,34.45409882256226],[-90.4503132799747,34.7218602564826],[-90.44661841506581,34.86683848727745],[-90.26828304722656,34.94145925550691],[-90.249240281927,35.02083425550724],[-89.26392574741786,35.02135101983015],[-88.16696428094212,34.999672756483704],[-88.09552161329862,34.80598948825383],[-88.27334021681494,33.510047919238175],[-88.44953101271409,31.91198008882813],[-88.41780168328688,30.38481232352254],[-89.18049,30.31598],[-89.59370212735638,30.16004270590898],[-89.59383117841975,30.159994004836847],[-89.59392913902984,30.1603780541948],[-89.60470598016661,30.17629791922485],[-89.62323198
2114325,30.27525828706382],[-89.65868201369545,30.440881252559336],[-89.79045691603972,30.556791490189937],[-89.8539414131103,30.683243720008136],[-89.78779557977674,30.847290554318647],[-89.75921851271931,31.01345612235326],[-90.70166744664232,31.015574856077194],[-91.58378414586463,31.04733002372052],[-91.62453101272678,31.29708222098708],[-91.50229041214038,31.40872915295381],[-91.41128821487433,31.6500322535407],[-91.32131954625419,31.859580186484266],[-91.12817888056327,32.01569468843792],[-91.08161841506836,32.20459788668086],[-90.94297054722921,32.30673635510567],[-91.0720841133105,32.47871552177321],[-91.03082048212548,32.60253225354444],[-91.17579871292025,32.80838532157918],[-91.08479651565432,32.95284678805103],[-91.15623918329783,33.01000092216589]]]}},{type:"Feature",properties:{adm1_code:"USA-3545",diss_me:3545,iso_3166_2:"US-SC",wikipedia:"http://en.wikipedia.org/wiki/South_Carolina",iso_a2:"US",adm0_sr:1,name:"South Carolina",name_alt:"SC|S.C.",name_local:null,type:"State",type_en:"State",code_local:"US45",code_hasc:"US.SC",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"S.C.",postal:"SC",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:14,mapcolor9:1,mapcolor13:1,fips:"US45",fips_alt:null,woe_id:2347599,woe_label:"South Carolina, US, United States",woe_name:"South Carolina",latitude:33.8578,longitude:-80.6471,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4597040,gn_name:"South Carolina",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.SC",region_sub:"South Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-80.86500688345194,32.03316132255259],[-81.03644344758027,32.084476019818396],[-81.1279882473853,32.121528021771724],[-81.12641211620041,32.31203318941573],[-81.22482988150023,32.49936025647378],[-81.41109758169631,32.60888845471641],[-81.37670691600607,32.68244985608385],[-81.43595394562868,32.79303742118839],[-81.50739661327219,33.02162811943151],[-81.82701534699743,33.22324372001839],[-81.94344234895101,33.46136872001921],[-82.18050798209003,33.624356187467924],[-82.24928931347051,33.748715521778195],[-82.59748511425317,33.98578115491722],[-82.71654761425356,34.163057155894535],[-82.9028153144497,34.4794977890337],[-83.07637061230196,34.54034678805738],[-83.34625077994627,34.706512356091935],[-83.18592464876076,34.895958156873974],[-83.07637061230196,34.97902802178311],[-82.9763767158172,35.0086644557025],[-82.4366163805285,35.180101019830886],[-81.51426957876708,35.17165192315099],[-81.04597774933814,35.125608221979064],[-81.0380195787651,35.03724152275993],[-80.9374830797413,35.103387356093606],[-80.78085181346466,34.93404368747309],[-80.7835131497277,34.81764252373563],[-79.67277991404609,34.80756561943866],[-78.55411434600785,33.86142182060689],[-79.06067,33.49395],[-79.20357,33.15839000000011],[-80.301325,32.509355],[-80.86500688345194,32.03316132255259]]]}},{type:"Feature",properties:{adm1_code:"USA-3546",diss_me:3546,iso_3166_2:"US-IL",wikipedia:"http://en.wikipedia.org/wiki/Illinois",iso_a2:"US",adm0_sr:1,name:"Illinois",name_alt:"IL|Ill.",name_local:null,type:"State",type_en:"State",code_local:"US17",code_hasc:"US.IL",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Ill.",postal:"IL",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US17",fips_alt:null,woe_id:2347572,woe_label:"Illinois, US, United States",woe_name:"Illinois",latitude:39.946,longitude:-89.1991,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4896861,gn_name:"Illinois",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.IL",region_sub:"East North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-91.43033098017392,40.3685956894479],[-91.4102288480124,40.55114268651894],[-91.15412044957387,40.699841620438804],[-91.0874320137012,40.85171865494462],[-90.95674231643505,41.024757188473956],[-90.9990653144821,41.17981232356573],[-91.12342464879248,41.25758535416499],[-91.0339985827114,41.42956452083234],[-90.69055701369962,41.47878632259035],[-90.46196631545651,41.53645722102809],[-90.39527787958384,41.60841665299452],[-90.21006954624977,41.8349144557298],[-90.15663611525997,42.103735256512124],[-90.2598081123307,42.18998322200727],[-90.41698198114644,42.27041758886956],[-90.46460181350339,42.37836965592729],[-90.58260494664188,42.4291675888702],[-90.64081844761868,42.50536448828457],[-89.62005388055731,42.50536448828457],[-88.5765516832875,42.50324575456061],[-87.80659868035474,42.49425405534181],[-87.80659868035474,42.4968895533887],[-87.48964128289253,42.49531342220381],[-87.039307013685,42.492652085940904],[-87.084808112318,42.30956248633066],[-87.13033504916714,42.12701548925962],[-87.17583614780017,41.9439000514335],[-87.22133724643314,41.76083629003941],[-87.37163814975403,41.76083629003941],[-87.52085384799682,41.76083629003941],[-87.52137061231974,41.70843638769544],[-87.52615068230674,41.70843638769544],[-87.52721004916873,40.55008331965696],[-87.52826941603071,39.39227285415754],[-87.64203508172127,39.1139435898335],[-87.55999874545792,39.040382188466026],[-87.50708207879104,38.86946238866065],[-87.51504024936399,38.73505198826949],[-87.59865271681224,38.6742029892458],[-87.6711289131016,38.508580023750355],[-87.87855811232117,38.29055715591093],[-88.01880794956132,38.02173635512861],[-88.05107988152758,37.81960399021895],[-88.04420691603278,37.744983221989486],[-88.15742997918427,37.605818589827464],[-88.0717246162282,37.51161245375938],[-88.24739864780442,37.43859365493097],[-88.47387061232357,37.35498118748272],[-88.43524247918538,37.13644155532039],[-88.5664747789906,37.05388845473412],[-88.80777787957749,37.14649262140115],[-89.07396318231294,37.20046865493002],[-89.14168514683143,37.10362702081504],[-89.10305701369326,36.952292588848294],[-89.28033301467053,37.107347723940066],[-89.38828508172826,37.08140615492954],[-89.51633928094752,37.32692088474823],[-89.47928727899424,37.477221788069144],[-89.5539080472237,37.71904165297896],[-89.65498714878662,37.74867808689835],[-89.91690914585797,37.968277085922665],[-90.03015804722561,37.97199778904769],[-90.22807878290348,38.11328115493366],[-90.36987891311239,38.26355622003844],[-90.30533504917983,38.439256089830806],[-90.2127308825128,38.584776923164725],[-90.1560935127209,38.76944265395973],[-90.3465986803649,38.93031138768433],[-90.53552771682399,38.865767523751785],[-90.64981014683747,38.907547919259756],[-90.66570064976722,39.074772854156265],[-90.74928727899933,39.265278021800256],[-90.84137468134344,39.31077912043325],[-91.0715673489876,39.445189520824414],[-91.2625892809545,39.615049953767794],[-91.42821224644996,39.82090302180248],[-91.51763831253103,40.119877020827104],[-91.43033098017392,40.3685956894479]]]}},{type:"Feature",properties:{adm1_code:"USA-3547",diss_me:3547,iso_3166_2:"US-IN",wikipedia:"http://en.wikipedia.org/wiki/Indiana",iso_a2:"US",adm0_sr:1,name:"Indiana",name_alt:"IN|Ind.",name_local:null,type:"State",type_en:"State",code_local:"US18",code_hasc:"US.IN",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Ind.",postal:"IN",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:7,mapcolor9:1,mapcolor13:1,fips:"US18",fips_alt:null,woe_id:2347573,woe_label:"Indiana, US, United States",woe_name:"Indiana",latitude:39.8874,longitude:-86.1396,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4921868,gn_name:"Indiana",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.IN",region_sub:"East North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-88.05107988152758,37.81960399021895],[-88.01880794956132,38.02173635512861],[-87.87855811232117,38.29055715591093],[-87.6711289131016,38.508580023750355],[-87.59865271681224,38.6742029892458],[-87.51504024936399,38.73505198826949],[-87.50708207879104,38.86946238866065],[-87.55999874545792,39.040382188466026],[-87.64203508172127,39.1139435898335],[-87.52826941603071,39.39227285415754],[-87.52721004916873,40.55008331965696],[-87.52615068230674,41.70843638769544],[-87.52137061231974,41.70843638769544],[-87.52085384799682,41.76083629003941],[-87.37163814975403,41.76083629003941],[-87.22133724643314,41.76083629003941],[-86.91812577996058,41.76083629003949],[-86.82446224643155,41.76083629003941],[-86.82446224643155,41.7560562200524],[-85.7481455146564,41.751301988281554],[-84.80729855013442,41.7560562200524],[-84.80675594759535,41.67774058691407],[-84.8099340481813,40.77286041926722],[-84.8178663805381,39.79974152277896],[-84.82367997917093,39.10652802179962],[-84.88137671582481,39.05942495376557],[-84.79988298210053,38.85517385513195],[-84.84326534700955,38.78109568944154],[-85.01154964876804,38.77949372004049],[-85.16763831250564,38.6911270208214],[-85.4041871813217,38.72711965591269],[-85.42589128288428,38.53503835708379],[-85.5666320462312,38.46199372003923],[-85.69840694857547,38.290014553371876],[-85.83969031446145,38.25880198826758],[-86.05983191602483,37.960887356104934],[-86.26250688347356,38.04661855727716],[-86.32547461622121,38.16937592218649],[-86.49957251661253,37.969879055323716],[-86.61016008171714,37.85874888768005],[-86.82552161329352,37.97623525649561],[-87.05571428093768,37.88096975356555],[
2-87.13139441602912,37.78361135512766],[-87.43936011427255,37.9360051539564],[-87.65366227898694,37.82647695571377],[-87.91137264682652,37.90424998631303],[-87.92142371290728,37.793662421208424],[-88.05107988152758,37.81960399021895]]]}},{type:"Feature",properties:{adm1_code:"USA-3548",diss_me:3548,iso_3166_2:"US-KY",wikipedia:"http://en.wikipedia.org/wiki/Kentucky",iso_a2:"US",adm0_sr:1,name:"Kentucky",name_alt:"Commonwealth of Kentucky|KY",name_local:null,type:"State",type_en:"State",code_local:"US21",code_hasc:"US.KY",note:null,hasc_maybe:"US.IN|USA-KEN",region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Ky.",postal:"KY",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US21",fips_alt:"US18",woe_id:2347576,woe_label:"Kentucky, US, United States",woe_name:"Kentucky",latitude:37.3994,longitude:-85.5729,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:6254925,gn_name:"Kentucky",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.KY",region_sub:"East South Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-89.49835588250994,36.5061957870887],[-89.27397681349862,36.61151235609954],[-89.115226813498,36.694582221008716],[-89.13426957879756,36.85175608982445],[-89.10305701369326,36.952292588848294],[-89.14168514683143,37.10362702081504],[-89.07396318231294,37.20046865493002],[-88.80777787957749,37.14649262140115],[-88.5664747789906,37.05388845473412],[-88.43524247918538,37.13644155532039],[-88.47387061232357,37.35498118748272],[-88.24739864780442,37.43859365493097],[-88.0717246162282,37.51161245375938],[-88.15742997918427,37.605818589827464],[-88.04420691603278,37.744983221989486],[-88.05107988152758,37.81960399021895],[-87.92142371290728,37.793662421208424],[-87.91137264682652,37.90424998631303],[-87.65366227898694,37.82647695571377],[-87.43936011427255,37.9360051539564],[-87.13139441602912,37.78361135512766],[-87.05571428093768,37.88096975356555],[
2-86.82552161329352,37.97623525649561],[-86.61016008171714,37.85874888768005],[-86.49957251661253,37.969879055323716],[-86.32547461622121,38.16937592218649],[-86.26250688347356,38.04661855727716],[-86.05983191602483,37.960887356104934],[-85.83969031446145,38.25880198826758],[-85.69840694857547,38.290014553371876],[-85.5666320462312,38.46199372003923],[-85.42589128288428,38.53503835708379],[-85.4041871813217,38.72711965591269],[-85.16763831250564,38.6911270208214],[-85.01154964876804,38.77949372004049],[-84.84326534700955,38.78109568944154],[-84.79988298210053,38.85517385513195],[-84.88137671582481,39.05942495376557],[-84.82367997917093,39.10652802179962],[-84.48132361523727,39.08324778905212],[-84.30459021679906,38.98692291926008],[-84.03894751660269,38.76099355728],[-83.82673824739611,38.69006765395942],[-83.67274247916633,38.60911652277419],[-83.43461747916538,38.63715098729253],[-83.25894344758916,38.57948008885481],[-83.04464128287475,38.63451548924564],[-82.85519548209274,38.65143952082124],[-82.77527787955336,38.51121552179724],[-82.5890101793573,38.415433254544254],[-82.56996741405774,38.320193589830325],[-82.58056108267758,38.11328115493366],[-82.46149858267711,37.95716665297992],[-82.41333614778108,37.80531545669025],[-82.26729855012425,37.67565928806994],[-82.16727881542333,37.554478054345495],[-81.9725361803314,37.53595205336886],[-82.07538986207479,37.459358179410245],[-82.37258911132812,37.23803901672363],[-82.6847915649414,37.12109565734863],[-82.68479213152052,37.12109377295471],[-82.68479244661029,37.121093654929695],[-82.70913176984146,37.040143442951724],[-82.81550788879395,36.93482780456543],[-83.0733530067755,36.82260930628833],[-83.08908301464577,36.81576345473316],[-83.09948313683732,36.80443780881003],[-83.17850875854492,36.71838188171387],[-83.33059243922776,36.67266067363208],[-83.38436214876154,36.65649669040961],[-83.67328508170539,36.59985932061771],[-84.35009131543205,36.567044786112376],[-85.23114864779235,36.60991038669849],[-85.51901221387423,36.59774058689375],[-86.09262061231402,36.62577505141209],[-86.67788204623565,36.63373322198504],[-87.21658301466228,36.63900421807881],[-87.84204871290697,36.61096975356047],[-87.87434648308938,36.65649669040961],[-88.07278398309018,36.654377956685636],[-88.06960588250422,36.4972040878699],[-89.49835588250994,36.5061957870887]]]}},{type:"Feature",properties:{adm1_code:"USA-3549",diss_me:3549,iso_3166_2:"US-NC",wikipedia:"http://en.wikipedia.org/wiki/North_Carolina",iso_a2:"US",adm0_sr:5,name:"North Carolina",name_alt:"NC|N.C.",name_local:null,type:"State",type_en:"State",code_local:"US37",code_hasc:"US.NC",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"N.C.",postal:"NC",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:14,mapcolor9:1,mapcolor13:1,fips:"US37",fips_alt:null,woe_id:2347592,woe_label:"North Carolina, US, United States",woe_name:"North Carolina",latitude:35.6152,longitude:-78.866,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4482348,gn_name:"North Carolina",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.NC",region_sub:"South Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-83.07637061230196,34.97902802178311],[-84.32097164583558,34.98696035413991],[-84.29875077995008,35.19862702080742],[-84.08708411328257,35.26159475355507],[-84.01776017936302,35.36900421807373],[-83.87596004915412,35.490211290014315],[-83.67328508170539,35.51666962334775],[-83.43833818229038,35.56268748630367],[-83.20972164583114,35.64896129001495],[-83.11078711620837,35.737327989234075],[-82.92028194856437,35.817219753557296],[-82.92557878287428,35.889721788062786],[-82.6742246162066,36.02519155531594],[-82.59324764680525,35.937341620419886],[-82.22389034699907,36.125728054339774],[-82.0513944160088,36.10614268650116],[-81.89739864777903,36.273910223936724],[-81.6936643134683,36.317292588845746],[-81.70477474641106,36.46015208591663],[-81.67937577993962,3
26.58557078708901],[-82.06990138690504,36.570483202477405],[-81.67937469482422,36.58557319641113],[-79.99239730834961,36.54218864440918],[-77.99954795837402,36.53743553161621],[-76.94121551513672,36.54588508605957],[-75.99324725779447,36.550562300522934],[-75.8680767483408,36.55118012139883],[-75.86807671493632,36.551179883937685],[-75.72731014677777,35.550517686499006],[-76.36336951364223,34.80862498630063],[-77.397635,34.51201],[-78.05496,33.92547],[-78.55411434600785,33.86142182060689],[-79.67277991404609,34.80756561943866],[-80.7835131497277,34.81764252373563],[-80.78085181346466,34.93404368747309],[-80.9374830797413,35.103387356093606],[-81.0380195787651,35.03724152275993],[-81.04597774933814,35.125608221979064],[-81.51426957876708,35.17165192315099],[-82.4366163805285,35.180101019830886],[-82.9763767158172,35.0086644557025],[-83.07637061230196,34.97902802178311]]]}},{type:"Feature",properties:{adm1_code:"USA-3550",diss_me:3550,iso_3166_2:"US-OH",wikipedia:"http://en.wikipedia.org/wiki/Ohio",iso_a2:"US",adm0_sr:1,name:"Ohio",name_alt:"OH|Ohio",name_local:null,type:"State",type_en:"State",code_local:"US39",code_hasc:"US.OH",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Ohio",postal:"OH",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:4,mapcolor9:1,mapcolor13:1,fips:"US39",fips_alt:null,woe_id:2347594,woe_label:"Ohio, US, United States",woe_name:"Ohio",latitude:40.0924,longitude:-82.6719,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5165418,gn_name:"Ohio",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.OH",region_sub:"East North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-84.82367997917093,39.10652802179962],[-84.8178663805381,39.79974152277896],[-84.8099340481813,40.77286041926722],[-84.80675594759535,41.67774058691407],[-84.29505591504122,41.68515615494796],[-83.83996741406284,41.68515615494796],[-83.46267778189986,41.694147854166715],[-83.14199968131265,41.97568105729283],[-83.1218975491511,41.94973948828235],[-83.029810146807,41.83279572200584],[-82.8663059150355,41.75287811946646],[-82.6900892809202,41.675105088867184],[-82.4392777167916,41.675105088867184],[-82.21332251659538,41.77881968847697],[-81.97413814973245,41.88889048925867],[-81.76086951366389,41.98679149023562],[-81.50739661327225,42.103735256512124],[-81.27774654816716,42.209025987306816],[-81.0279685126844,42.24713735612208],[-80.68243404816478,42.299511420249885],[-80.5205059475782,42.32439362239843],[-80.5162684801303,42.324910386721456],[-80.5162684801303,42.32439362239842],[-80.5189298163933,40.64111135513909],[-80.65755184601625,40.5908301865191],[-80.6152288479692,40.463835354161816],[-80.66178931346417,40.23364268651767],[-80.76498714875106,39.973296820631205],[-80.86182878286601,39.75739268651576],[-80.87875281444161,39.65422068944504],[-81.15075171580989,39.426146755524854],[-81.26609351268534,39.37744171808977],[-81.40104651561558,39.34940725357143],[-81.52222774934002,39.37162811945693],[-81.74500484895029,39.19964895278957],[-81.78575171581242,39.019220689442506],[-81.81696428091672,38.92183645278847],[-81.90587358267489,38.8821489527883],[-81.91856014680255,38.9937958847549],[-82.05402991405569,39.01816132258051],[-82.19479651561875,38.80119782160308],[-82.21066118033235,38.57948008885481],[-82.34083411327558,38.44083222101571],[-82.5890101793573,38.415433254544254],[-82.77527787955336,38.51121552179724],[-82.85519548209274,38.65143952082124],[-83.04464128287475,38.63451548924564],[-83.25894344758916,38.57948008885481],[-83.43461747916538,38.63715098729253],[-83.67274247916633,38.60911652277419],[-83.82673824739611,38.69006765395942],[-84.03894751660269,38.76099355728],[-84.30459021679906,38.98692291926008],[-84.48132361523727,39.08324778905212],[-84.82367997917093,39.10652802179962]]]}},{type:"Feature",properties:{adm1_code:"USA-3551",diss_me:3551,iso_3166_2:"US-TN",
2wikipedia:"http://en.wikipedia.org/wiki/Tennessee",iso_a2:"US",adm0_sr:1,name:"Tennessee",name_alt:"TN|Tenn.",name_local:null,type:"State",type_en:"State",code_local:"US47",code_hasc:"US.TN",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Tenn.",postal:"TN",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:9,mapcolor9:1,mapcolor13:1,fips:"US47",fips_alt:null,woe_id:2347601,woe_label:"Tennessee, US, United States",woe_name:"Tennessee",latitude:35.7514,longitude:-86.3415,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4662168,gn_name:"Tennessee",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.TN",region_sub:"East South Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-90.249240281927,35.02083425550724],[-90.13493201369738,35.11395518649719],[-90.14710181350213,35.40499685316502],[-89.98889441604055,35.536229152970236],[-89.95026628290238,35.70187795668183],[-89.77510901564906,35.79923635511972],[-89.67351314976325,35.94000295668279],[-89.66291948114342,36.02307282159197],[-89.585120612328,36.26701142022576],[-89.52427161330432,36.40935415297372],[-89.49835588250994,36.5061957870887],[-88.06960588250422,36.4972040878699],[-88.07278398309018,36.654377956685636],[-87.87434648308938,36.65649669040961],[-87.84204871290697,36.61096975356047],[-87.21658301466228,36.63900421807881],[-86.67788204623565,36.63373322198504],[-86.09262061231402,36.62577505141209],[-85.51901221387423,36.59774058689375],[-85.23114864779235,36.60991038669849],[-84.35009131543205,36.567044786112376],[-83.67328508170539,36.59985932061771],[-83.38436214876154,36.65649669040961],[-83.33059243922776,36.67266067363208],[-83.38436126708984,36.65649604797363],[-83.67328420892706,36.59985930073531],[-82.18632158072288,36.565985419250396],[-82.06990138690504,36.570483202477405],[-81.67937577993962,36.58557078708901],[-81.70477474641106,36.46015208591663],[-81.6936643134683,36.317292588845746],[-81.89739864777903,36.273910223936724],[-82.0513944160088,36.10614268650116],[-82.22389034699907,36.125728054339774],[-82.59324764680525,35.937341620419886],[-82.6742246162066,36.02519155531594],[-82.92557878287428,35.889721788062786],[-82.92028194856437,35.817219753557296],[-83.11078711620837,35.737327989234075],[-83.20972164583114,35.64896129001495],[-83.43833818229038,35.56268748630367],[-83.67328508170539,35.51666962334775],[-83.87596004915412,35.490211290014315],[-84.01776017936302,35.36900421807373],[-84.08708411328257,35.26159475355507],[-84.29875077995008,35.19862702080742],[-84.32097164583558,34.98696035413991],[-84.8543757799523,34.97690928805915],[-85.62538814974705,34.98590098727793],[-86.90967668328085,34.99913015394465],[-88.16696428094212,34.999672756483704],[-89.26392574741786,35.02135101983015],[-90.249240281927,35.02083425550724]]]}},{type:"Feature",properties:{adm1_code:"USA-3552",diss_me:3552,iso_3166_2:"US-VA",wikipedia:"http://en.wikipedia.org/wiki/Virginia",iso_a2:"US",adm0_sr:6,name:"Virginia",name_alt:"VA",name_local:null,type:"State",type_en:"State",code_local:"US51",code_hasc:"US.VA",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Va.",postal:"VA",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US51",fips_alt:null,woe_id:2347605,woe_label:"Virginia, US, United States",woe_name:"Virginia",latitude:37.7403,longitude:-78.2431,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:6254928,gn_name:"Virginia",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.VA",region_sub:"South Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"MultiPolygon",coordinates:[[[[-83.33059243922776,36.67266067363208],[-83.17850875854492,36.71838188171387],[-83.09948313683732,36.80443780881003],[-83.08908301464577,36.81576345473316],[-83.0733530067755,36.82260930628833],[-82.81550788879395,36.93482780456543],[-82.70913176984146,37.040143442951724],[-82.68479244661029,37.121093654929695],[-82.68479213152052,37.12109377295471],[-82.6847915649414,37.12109565734863],[-82.37258911132812,37.23803901672363],[-82.07538986207479,37.459358179410245],[-81.9725361803314,37.53595205336886],[-81.92809444856039,37.366091620425465],[-81.83874171324607,37.29435542623226],[-81.81538772583008,37.27560615539551],[-81.66351127624512,37.195173263549805],[-81.43343360042127,37.28319918373153],[-81.348
21298489487,37.31583629002162],[-81.3481292729979,37.31583595255335],[-81.34812927246094,37.31583595275879],[-81.22800827026367,37.24545478820801],[-80.91531813243837,37.31553155101449],[-80.85492997915506,37.32906545668834],[-80.84166996984384,37.38376497066467],[-80.833251953125,37.41849327087402],[-80.72000312805176,37.38304328918457],[-80.60294111399195,37.452076624914405],[-80.59618608266965,37.456060289045624],[-80.5961859173229,37.45606027207203],[-80.5961856842041,37.4560604095459],[-80.45699501037598,37.44177436828613],[-80.29824533321333,37.519029200305404],[-80.28577911611927,37.57167259382654],[-80.27656755677725,37.610574309812414],[-80.29297461619709,37.7280591904139],[-80.29297442533623,37.728059434204695],[-80.2929744720459,37.72805976867676],[-80.15750503540039,37.90109825134277],[-79.96436348401359,38.031789518560714],[-79.91514238149504,38.17942698826727],[-79.81891914251666,38.27920277298852],[-79.74367926400072,38.35722137799588],[-79.64792355011377,38.57472585708395],[-79.64792348203814,38.57472581747799],[-79.64792251586914,38.57472801208496],[-79.51508903503418,38.497446060180664],[-79.36639022827148,38.42602729797363],[-79.22298812866211,38.46463203430176],[-79.17482566833496,38.5556583404541],[-79.07640838623047,38.68001747131348],[-79.00735469485451,38.76812744525416],[-78.96527787953812,38.82181671808755],[-78.96527744663842,38.821816468533605],[-78.96527671813965,38.82181739807129],[-78.89280128479004,38.780038833618164],[-78.74461936950684,38.90915107727051],[-78.6299356254404,38.985706719408256],[-78.54884334991405,39.039839585926956],[-78.51354985444293,39.068071449123266],[-78.42448425292969,39.13931846618652],[-78.36231391159738,39.34917137453467],[-78.34562577992627,39.40550202082426],[-78.34562560474399,39.40550192787474],[-78.34562492370605,39.40550422668457],[-77.881075040849,39.159017223477484],[-77.83498511423412,39.13456248631796],[-77.72279557972846,39.32243215591507],[-77.69582987282635,39.31620052507624],[-77.57621574401855,39.28856086730957],[-77.44340705871582,39.213422775268555],[-77.44340804127478,39.213421340218346],[-77.44340694854247,39.213420721995476],[-77.50088163990247,39.12947981343377],[-77.5169677734375,39.10598564147949],[-77.30581855773926,39.04567909240723],[-77.11955070495605,38.93400764465332],[-77.11954986485948,38.9340067776485],[-77.03647994995117,38.848276138305664],[-77.04123497009277,38.7895450592041],[-77.04123501575428,38.7895448536498],[-77.05921745300293,38.70859336853027],[-77.09807033337478,38.687120586479026],[-77.22962154815099,38.61441335708423],[-77.34338699431744,38.39161084918188],[-77.21057891845703,38.33711814880371],[-77.0481071472168,38.380502700805664],[-77.00225319734794,38.26961787393406],[-76.98989486694336,38.23973274230957],[-76.3016185760498,37.91794776916504],[-76.25873947143555,36.96640205383301],[-75.97179985046387,36.897260665893555],[-75.86807632446289,36.55117988586426],[-75.86807671493632,36.551179883937685],[-75.8680767483408,36.55118012139883],[-75.99324725779447,36.550562300522934],[-76.94121551513672,36.54588508605957],[-77.99954795837402,36.53743553161621],[-79.99239730834961,36.54218864440918],[-81.67937469482422,36.58557319641113],[-82.06990138690504,36.570483202477405],[-82.18632158072288,36.565985419250396],[-83.67328420892706,36.59985930073531],[-83.38436126708984,36.65649604797363],[-83.33059243922776,36.67266067363208]]],[[[-75.37753868103027,38.01538276672363],[-75.37754063414677,38.01537999412076],[-75.94003486633301,37.216875076293945],[-76.03106307983398,37.25656318664551],[-75.72205038686438,37.93705028942895],[-75.72204971313477,37.93705177307129],[-75.60984992980957,38.00003242492676],[-75.37753868103027,38.01538276672363]]]]}},{type:"Feature",properties:{adm1_code:"USA-3553",diss_me:3553,iso_3166_2:"US-WI",wikipedia:"http://en.wikipedia.org/wiki/Wisconsin",iso_a2:"US",adm0_sr:1,name:"Wisconsin",name_alt:"WI|Wis.",name_local:null,type:"State",type_en:"State",code_local:"US55",code_hasc:"US.WI",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Wis.",postal:"WI",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:9,mapcolor9:1,mapcolor13:1,fips:"US55",fips_alt:null,woe_id:2347608,w
2oe_label:"Wisconsin, US, United States",woe_name:"Wisconsin",latitude:44.3709,longitude:-89.5831,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5279468,gn_name:"Wisconsin",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.WI",region_sub:"East North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-91.22819861526426,43.5012468531974],[-91.2546569485977,43.61397899024206],[-91.25729244664458,43.854739488289965],[-91.28959021682704,43.93729258887629],[-91.62770911331273,44.085448920257036],[-91.87960588251947,44.25742808692439],[-91.949989183301,44.364837551443046],[-92.06215287959051,44.43258535417769],[-92.38549231644078,44.57492808692567],[-92.50507158076417,44.58391978614445],[-92.79665584997105,44.77602692318949],[-92.76647681351261,44.9961426865367],[-92.76541744665064,45.26708222104298],[-92.68922054723626,45.51843638771068],[-92.89982784704182,45.705763454768714],[-92.75696834997089,45.88991242124082],[-92.54369971390233,45.98569468849381],[-92.2965830146826,46.09628225359842],[-92.26482784703924,46.09522288673644],[-92.27487891312,46.65614472104858],[-92.01189754918667,46.71172272397848],[-91.96479448115262,46.72970612241605],[-91.8409777493813,46.778385321635],[-91.71661841507091,46.82760712339301],[-91.59225908076053,46.876260484395914],[-91.46844234898919,46.9249655218309],[-91.26470801467849,47.02126455340681],[-91.06097368036777,47.117046820659795],[-90.85778194859611,47.21282908791278],[-90.6540476142854,47.309128119488676],[-90.47994971389409,47.30385712339489],[-90.30585181350276,47.29801768654593],[-90.13175391311144,47.29274669045216],[-89.95765601272012,47.286907253603175],[-90.01481014683492,47.19959992124606],[-90.07144751662682,47.11174998634988],[-90.12805904820257,47.023900051453694],[-90.18521318231738,46.93607595477364],[-90.24182471389315,46.84822601987753],[-90.29897884800795,46.760918687520345],[-90.3555903795837,46.67306875262415],[
2-90.39527787958384,46.611677151061414],[-90.41062577997457,46.58418528908214],[-90.3968798489849,46.576252956725284],[-90.33497148309922,46.59687185320979],[-90.33391211623724,46.593693752623835],[-90.17673824742151,46.5608792181185],[-90.09630388055922,46.38099355731049],[-89.22106014683175,46.202115586932166],[-88.64427364780602,46.02220408790805],[-88.36170691603405,46.02062795672322],[-88.16696428094212,46.00791555437945],[-88.11192888055128,45.843351955745845],[-87.87540584995136,45.77984162045912],[-87.78701331251612,45.639617621435136],[-87.84788814975595,45.55918325457283],[-87.89338924838894,45.39671255144718],[-87.67324764682556,45.387746690444544],[-87.74732581251595,45.22687795671993],[-87.61397477898677,45.108874823581445],[-87.6129154121248,45.11045095476635],[-87.45946224643407,45.068127956719295],[-87.41977474643392,45.18401235613382],[-87.24461747918065,45.28984568946771],[-87.11550391309937,45.452290554377086],[-86.94246537957002,45.452290554377086],[-86.77420691602771,45.45229055437716],[-86.4815632799588,45.32317698829584],[-86.26459977898139,45.22687795671993],[-86.40167151563557,45.13321442319092],[-86.53608191602675,45.04166962338586],[-86.71493404818892,44.84641022397102],[-86.82234351270758,44.59133535417833],[-86.91866838249962,44.36168528907325],[-87.03243404819018,44.09128835710602],[-87.08323198113311,43.89018952084234],[-87.14196224643281,43.65787811947408],[-87.14514034701875,43.571087551439874],[-87.15519141309953,43.326632188483174],[-87.11392778191447,43.030293687505434],[-87.07953711622423,42.782117621423694],[-87.039307013685,42.492652085940904],[-87.48964128289253,42.49531342220381],[-87.80659868035474,42.4968895533887],[-87.80659868035474,42.49425405534181],[-88.5765516832875,42.50324575456061],[-89.62005388055731,42.50536448828457],[-90.64081844761868,42.50536448828457],[-90.73817684605658,42.65827505143622],[-91.06469438349276,42.75408315690535],[-91.12923824742532,42.91283315690599],[-91.16998511428747,43.00223338477093],[-91.17316321487343,43.21232392025354],[-91.08373714879232,43.288004055345],[-91.21391008173555,43.44675405534562],[-91.22819861526426,43.5012468531974]]]}},{type:"Feature",properties:{adm1_code:"USA-3554",diss_me:3554,iso_3166_2:"US-WV",wikipedia:"http://en.wikipedia.org/wiki/West_Virginia",iso_a2:"US",adm0_sr:1,name:"West Virginia",name_alt:"WV|W.Va.",name_local:null,type:"State",type_en:"State",code_local:"US54",code_hasc:"US.WV",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"W.Va.",postal:"WV",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:13,mapcolor9:1,mapcolor13:1,fips:"US54",fips_alt:null,woe_id:2347607,woe_label:"West Virginia, US, United States",woe_name:"West Virginia",latitude:38.6422,longitude:-80.7128,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4826850,gn_name:"West Virginia",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.WV",region_sub:"South Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-81.9725361803314,37.53595205336886],[-82.16727881542333,37.554478054345495],[-82.26729855012425,37.67565928806994],[-82.41333614778108,37.80531545669025],[-82.46149858267711,37.95716665297992],[-82.58056108267758,38.11328115493366],[-82.56996741405774,38.320193589830325],[-82.5890101793573,38.415433254544254],[-82.34083411327558,38.44083222101571],[-82.21066118033235,38.57948008885481],[-82.19479651561875,38.80119782160308],[-82.05402991405569,39.01816132258051],[-81.91856014680255,38.9937958847549],[-81.90587358267489,38.8821489527883],[-81.81696428091672,38.92183645278847],[-81.78575171581242,39.019220689442506],[-81.74500484895029,39.19964895278957],[-81.52222774934002,39.37162811945693],[-81.40104651561558,39.34940725357143],[-81.26609351268534,39.37744171808977],[-81.15075171580989,39.426146755524854],[-80.87875281444161,39.65422068944504],[-80.86182878286601,39.75739268651576],[-80.76498714875106,39.973296820631205],[-80.66178931346417,40.2336426865176
27],[-80.6152288479692,40.463835354161816],[-80.65755184601625,40.5908301865191],[-80.5189298163933,40.64111135513909],[-80.5189298163933,39.72088328710156],[-79.47752051463135,39.720883287101685],[-79.4859954495272,39.213420721995476],[-79.33251644562031,39.30284678807645],[-79.16107988149203,39.41821442316805],[-78.96315914581419,39.457901923168265],[-78.82929134796206,39.562650051423844],[-78.5340122138463,39.522445787100764],[-78.42500077992659,39.59652395279116],[-78.2324027167748,39.67220408788273],[-77.92335181345322,39.59282908788229],[-77.80165381540587,39.44994375259526],[-77.72279557972846,39.32243215591507],[-77.83498511423412,39.13456248631796],[-77.881075040849,39.159017223477484],[-78.34562492370605,39.40550422668457],[-78.34562560474399,39.40550192787474],[-78.34562577992627,39.40550202082426],[-78.36231391159738,39.34917137453467],[-78.42448425292969,39.13931846618652],[-78.51354985444293,39.068071449123266],[-78.54884334991405,39.039839585926956],[-78.6299356254404,38.985706719408256],[-78.74461936950684,38.90915107727051],[-78.89280128479004,38.780038833618164],[-78.96527671813965,38.82181739807129],[-78.96527744663842,38.821816468533605],[-78.96527787953812,38.82181671808755],[-79.00735469485451,38.76812744525416],[-79.07640838623047,38.68001747131348],[-79.17482566833496,38.5556583404541],[-79.22298812866211,38.46463203430176],[-79.36639022827148,38.42602729797363],[-79.51508903503418,38.497446060180664],[-79.64792251586914,38.57472801208496],[-79.64792348203814,38.57472581747799],[-79.64792355011377,38.57472585708395],[-79.74367926400072,38.35722137799588],[-79.81891914251666,38.27920277298852],[-79.91514238149504,38.17942698826727],[-79.96436348401359,38.031789518560714],[-80.15750503540039,37.90109825134277],[-80.2929744720459,37.72805976867676],[-80.29297442533623,37.728059434204695],[-80.29297461619709,37.7280591904139],[-80.27656755677725,37.610574309812414],[-80.28577911611927,37.57167259382654],[-80.29824533321333,37.519029200305404],[-80.45699501037598,37.44177436828613],[-80.5961856842041,37.4560604095459],[-80.5961859173229,37.45606027207203],[-80.59618608266965,37.456060289045624],[-80.60294111399195,37.452076624914405],[-80.72000312805176,37.38304328918457],[-80.833251953125,37.41849327087402],[-80.84166996984384,37.38376497066467],[-80.85492997915506,37.32906545668834],[-80.91531813243837,37.31553155101449],[-81.22800827026367,37.24545478820801],[-81.34812927246094,37.31583595275879],[-81.3481292729979,37.31583595255335],[-81.3481298489487,37.31583629002162],[-81.43343360042127,37.28319918373153],[-81.66351127624512,37.195173263549805],[-81.81538772583008,37.27560615539551],[-81.83874171324607,37.29435542623226],[-81.92809444856039,37.366091620425465],[-81.9725361803314,37.53595205336886]]]}},{type:"Feature",properties:{adm1_code:"USA-3555",diss_me:3555,iso_3166_2:"US-DE",wikipedia:"http://en.wikipedia.org/wiki/Delaware",iso_a2:"US",adm0_sr:1,name:"Delaware",name_alt:"DE|Del.",name_local:null,type:"State",type_en:"State",code_local:"US10",code_hasc:"US.DE",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Del.",postal:"DE",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US10",fips_alt:null,woe_id:2347566,woe_label:"Delaware, US, United States",woe_name:"Delaware",latitude:38.8657,longitude:-75.4112,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4142224,gn_name:"Delaware",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.DE",region_sub:"South Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-75.04838517932711,38.44876455337254],[-75.71462358265006,38.44930715591158],[-75.78764238147852,39.72354462336466],[-75.71090287952501,39.80237702082593],[-75.62096004912104,39.847361355135945],[-75.40557267932849,39.795504055331094],[-75.55427161324837,39.69124685318229],[-75.527813279915,39.49864879003036],[-75.3198673163725,38.95994782160369],[-75.07183476478986,38.78203223017931],[-75.04838517932711,38.44876455337254]]]}},{type:"Feature",properties:{adm1_code:"USA-3556",diss_me:3556,iso_3166_2:"US-DC",wikipedia:"http://en.wikipedia.org/wiki/Washington,_D.C.",iso_a2:"US",adm0_sr:1,name:"District of Columbia",name_alt:"DC|D.C.",name_local:null,type:"Federal District",type_en:"Federal District",code_local:"US11",code_hasc:"US.DC",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"D.C.",postal:"DC",area_sqkm:0,sameascity:9,labelrank:9,featurecla:"Admin-1 scale rank",name_len:20,mapcolor9:1,mapcolor13:1,fips:"US11",fips_alt:null,woe_id:234756
27,woe_label:"District of Columbia, US, United States",woe_name:"District of Columbia",latitude:38.8922,longitude:-77.0113,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4138106,gn_name:"District of Columbia",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.DC",region_sub:"South Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-77.04123501575428,38.7895448536498],[-77.04123497009277,38.7895450592041],[-77.03647994995117,38.848276138305664],[-77.11954986485948,38.9340067776485],[-77.03859961618406,38.98216868748922],[-76.91157894561064,38.87845408787943],[-77.04123501575428,38.7895448536498]]]}},{type:"Feature",properties:{adm1_code:"USA-3557",diss_me:3557,iso_3166_2:"US-MD",wikipedia:"http://en.wikipedia.org/wiki/Maryland",iso_a2:"US",adm0_sr:1,name:"Maryland",name_alt:"MD",name_local:null,type:"State",type_en:"State",code_local:"US24",code_hasc:"US.MD",note:null,hasc_maybe:null,region:"South",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Md.",postal:"MD",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US24",fips_alt:null,woe_id:2347579,woe_label:"Maryland, US, United States",woe_name:"Maryland",latitude:39.3874,longitude:-77.0454,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4361885,gn_name:"Maryland",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.MD",region_sub:"South Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-75.37754063414677,38.01537999412076],[-75.37753868103027,38.01538276672363],[-75.60984992980957,38.00003242492676],[-75.72204971313477,37.93705177307129],[-75.72205038686438,37.93705028942895],[-76.23287,38.319215],[-76.35,39.15],[-76.542725,38.71761500000014],[-76.32933,38.08326],[-76.98989457874893,38.2397333847519],[-77.00225319734794,38.26961787393406],[-77.0481071472168,38.380502700805664],[-77.21057891845703,38.33711814880371],[-77.34338699431744,38.39161084918188],[-77.22962154815099,38.61441335708423],[-77.09807033337478,38.687120586479026],[-77.05921745300293,38.70859336853027],[-77.04123501575428,38.7895448536498],[-76.91157894561064,38.87845408787943],[-77.03859961618406,38.98216868748922],[-77.11954986485948,38.9340067776485],[-77.11955070495605,38.93400764465332],[-77.30581855773926,39.04567909240723],[-77.5169677734375,39.10598564147949],[-77.50088163990247,39.12947981343377],[-77.44340694854247,39.213420721995476],[-77.44340804127478,39.213421340218346],[-77.44340705871582,39.213422775268555],[-77.57621574401855,39.28856086730957],[-77.69582987282635,39.31620052507624],[-77.72279557972846,39.32243215591507],[-77.80165381540587,39.44994375259526],[-77.92335181345322,39.59282908788229],[-78.2324027167748,39.67220408788273],[-78.42500077992659,39.59652395279116],[-78.5340122138463,39.522445787100764],[-78.82929134796206,39.562650051423844],[-78.96315914581419,39.457901923168265],[-79.16107988149203,39.41821442316805],[-79.33251644562031,39.30284678807645],[-79.4859954495272,39.213420721995476],[-79.47752051463135,39.720883287101685],[-78.54990271677599,39.71982392023972],[-78.23291948109767,39.72140005142455],[-77.5232987128656,39.72566335708859],[-76.66818294951588,39.720883287101685],[-75.78764238147852,39.72354462336466],[-75.71462358265006,38.44930715591158],[-75.04838517932711,38.44876455337254],[-75.05673,38.40412000000015],[-75.37753821481016,38.01538015395681],[-75.37754063414677,38.01537999412076]]]}},{type:"Feature",properties:{adm1_code:"USA-3558",diss_me:3558,iso_3166_2:"US-NJ",wikipedia:"http://en.wikipedia.org/wiki/New_Jersey",iso_a2:"US",adm0_sr:5,name:"New Jersey",name_alt:"NJ|N.J.",name_local:null,type:"State",type_en:"State",code_local:"US34",code_hasc:"US.NJ",note:null,hasc_maybe:null,region:"Northeast",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"N.J.",postal:"NJ",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:10,mapcolor9:1,mapcolor13:1,fips:"US34",fips_alt:null,woe_id:2347589,woe_label:"New Jersey, US, United States",woe_name:"New Jersey",latitude:40.0449,longitude:-74.4653,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5101760,gn_name:"New Jersey",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.NJ",region_sub:"Middle Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-75.527813279915,39.49864879003036],[-75.55427161324837,39.69124685318229],[-75.40557267932849,39.795504055331094],[-75.200804816372,39.88704885513607],[-75.12881954618945,39.949499823560814],[-74.89175391305048,40.08179149022811],[-74.76318294950823,40.19077708593164],[-75.07802161324645,40.44954682063326],[-75.09548824736112,40.555380153966894],[-75.20395707874178,40.58661855728735],[-75.19920284697093,40.74746145279573],[-75.08225908069448,40.8697020533823],[-75.1357183499004,40.999874986325494],[-74.97590898303775,41.087724921221536],[-74.80126848010735,41.31156138769393],[-74.67902787952096,41.35548635514192],[-73.91279557971325,40.96018748632537],[-73.952325,40.75075],[-74.25675391304787,40.473369655919726],[-73.96244,40.42763],[-74.17843827990953,39.70925608983589],[-74.90604244657914,38.939303086903124],[-74.9806632148086,39.19649669041985],[-75.2002622138329,39.2483539902247],[-75.527813279915,39.49864879003036]]]}},{type:"Feature",properties:{adm1_code:"USA-3559",diss_me:3559,iso_3166_2:"US-NY",wikipedia:"http://en.wikipedia.org/wiki/New_York",iso_a2:"US",adm0_sr:3,name:"New York",name_alt:"NY|N.Y.",n
2ame_local:null,type:"State",type_en:"State",code_local:"US36",code_hasc:"US.NY",note:null,hasc_maybe:null,region:"Northeast",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"N.Y.",postal:"NY",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US36",fips_alt:null,woe_id:2347591,woe_label:"New York, US, United States",woe_name:"New York",latitude:43.1988,longitude:-75.3242,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5128638,gn_name:"New York",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.NY",region_sub:"Middle Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-73.49793718127407,42.054513454754115],[-73.55348934598777,41.28985728613134],[-73.47517371284943,41.2046686874981],[-73.69267981636597,41.107310289060365],[-73.65668718127472,40.9850696884738],[-73.64788653178721,40.95476927691993],[-73.64826921714257,40.954623463363454],[-73.71,40.93110235165449],[-72.24116634793569,41.11948008886509],[-71.94482784695793,40.93003428808305],[-73.34500077990629,40.63000092219647],[-73.98211951363277,40.62788218847237],[-73.952325,40.75075],[-73.91279557971325,40.96018748632537],[-74.67902787952096,41.35548635514192],[-74.84043921578461,41.42638642024633],[-75.01081641305097,41.49571035416608],[-75.07538611519954,41.6412311874999],[-75.04892778186621,41.751301988281625],[-75.1679902818666,41.84178742122464],[-75.38547054716696,41.99896129004043],[-76.74383724639114,42.00053742122532],[-78.20064754913136,42.00002065690239],[-79.76008724640326,42.00002065690239],[-79.76008724640326,42.50006765397467],[-79.77303961320486,42.54612229847678],[-79.77325657258632,42.54689373950663],[-78.93936214874367,42.86361135514812],[-78.91977678090512,42.96520722103389],[-79.00999999999988,43.27],[-79.17167355011185,43.46633942318431],[-79.00232988149139,43.527188422207985],[-78.84569861521464,43.58328318946087],[-78.72027991404235,43.62508942318499],[-76.82003414580555,43.628784288093755],[-76.69676001657331,43.78489879004758],[-76.58614661325254,43.9240634222096],[-76.5,44.018458893758634],[-76.37499999999989,44.09631],[-75.31826534697143,44.816231187512585],[-74.86689754911805,45.00038015398479],[-73.34766211616932,45.00725311947946],[-73.36828101265375,44.804603990246875],[-73.40796851265391,44.67600718848857],[-73.3841715155835,44.379151923187905],[-73.32913611519265,44.22673228614301],[-73.4296726142165,44.01984568946249],[-73.33812781441145,43.758440456714084],[-73.40163814969816,43.61343638770307],[-73.38311214872152,43.57535085710395],[-73.23971004911158,43.56793528907005],[-73.28203304715862,42.74348948828549],[-73.49793718127407,42.054513454754115]]]}},{type:"Feature",properties:{adm1_code:"USA-3560",diss_me:3560,iso_3166_2:"US-PA",wikipedia:"http://en.wikipedia.org/wiki/Pennsylvania",iso_a2:"US",adm0_sr:1,name:"Pennsylvania",name_alt:"Commonwealth of Pennsylvania|PA",name_local:null,type:"State",type_en:"State",code_local:"US42",code_hasc:"US.PA",note:null,hasc_maybe:null,region:"Northeast",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Pa.",postal:"PA",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:12,mapcolor9:1,mapcolor13:1,fips:"US42",fips_alt:null,woe_id:2347597,woe_label:"Pennsylvania, US, United States",woe_name:"Pennsylvania",latitude:40.8601,longitude:-77.6094,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:6254927,gn_name:"Pennsylvania",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.PA",region_sub:"Middle Atlantic",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-80.5189298163933,40.64111135513909],[-80.5162684801303,42.32439362239842],[-80.5162684801303,42.324910386721456],[-80.24744767934794,42.36619985612248],[-79.77303961320486,42.54612229847678],[-79.76008724640326,42.50006765397467],[
2-79.76008724640326,42.00002065690239],[-78.20064754913136,42.00002065690239],[-76.74383724639114,42.00053742122532],[-75.38547054716696,41.99896129004043],[-75.1679902818666,41.84178742122464],[-75.04892778186621,41.751301988281625],[-75.07538611519954,41.6412311874999],[-75.01081641305097,41.49571035416608],[-74.84043921578461,41.42638642024633],[-74.67902787952096,41.35548635514192],[-74.80126848010735,41.31156138769393],[-74.97590898303775,41.087724921221536],[-75.1357183499004,40.999874986325494],[-75.08225908069448,40.8697020533823],[-75.19920284697093,40.74746145279573],[-75.20395707874178,40.58661855728735],[-75.09548824736112,40.555380153966894],[-75.07802161324645,40.44954682063326],[-74.76318294950823,40.19077708593164],[-74.89175391305048,40.08179149022811],[-75.12881954618945,39.949499823560814],[-75.200804816372,39.88704885513607],[-75.40557267932849,39.795504055331094],[-75.62096004912104,39.847361355135945],[-75.71090287952501,39.80237702082593],[-75.78764238147852,39.72354462336466],[-76.66818294951588,39.720883287101685],[-77.5232987128656,39.72566335708859],[-78.23291948109767,39.72140005142455],[-78.54990271677599,39.71982392023972],[-79.47752051463135,39.720883287101685],[-80.5189298163933,39.72088328710156],[-80.5189298163933,40.64111135513909]]]}},{type:"Feature",properties:{adm1_code:"USA-3561",diss_me:3561,iso_3166_2:"US-ME",wikipedia:"http://en.wikipedia.org/wiki/Maine",iso_a2:"US",adm0_sr:6,name:"Maine",name_alt:"ME|Maine",name_local:null,type:"State",type_en:"State",code_local:"US23",code_hasc:"US.ME",note:null,hasc_maybe:null,region:"Northeast",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Maine",postal:"ME",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:5,mapcolor9:1,mapcolor13:1,fips:"US23",fips_alt:null,woe_id:2347578,woe_label:"Maine, US, United States",woe_name:"Maine",latitude:45.148,longitude:-69.1973,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:4971068,gn_name:"Maine",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.ME",region_sub:"New England",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-70.64573401557249,43.090083319667144],[-70.75102474636725,43.08003225358635],[-70.79761105007827,43.21973948828747],[-70.98176001655037,43.36789581966826],[-70.94416541205806,43.46633942318431],[-71.08482,45.30524],[-70.6600225491012,45.46022288673396],[-70.30495378282376,45.914794623389355],[-70.00014034695016,46.69317088478567],[-69.23708614772835,47.44777598732787],[-68.90478084987546,47.184794623394396],[-68.23430497910454,47.35462921812177],[-67.79035274928509,47.066248887716995],[-67.79141211614706,45.702585354182816],[-67.13734351262877,45.137451890638886],[-66.96466,44.8097],[-68.03252,44.3252],[-69.06,43.98],[-70.11617,43.68405],[-70.64573401557249,43.090083319667144]]]}},{type:"Feature",properties:{adm1_code:"USA-3562",diss_me:3562,iso_3166_2:"US-MI",wikipedia:"http://en.wikipedia.org/wiki/Michigan",iso_a2:"US",adm0_sr:1,name:"Michigan",name_alt:"MI|Mich.",name_local:null,type:"State",type_en:"State",code_local:"US26",code_hasc:"US.MI",note:null,hasc_maybe:null,region:"Midwest",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Mich.",postal:"MI",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:8,mapcolor9:1,mapcolor13:1,fips:"US26",fips_alt:null,woe_id:2347581,woe_label:"Michigan, US, United States",woe_name:"Michigan",latitude:43.4343,longitude:-84.9479,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5001836,gn_name:"Michigan",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.MI",region_sub:"East North Central",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"Polygon",coordinates:[[[-89.95765601272012,47.286907253603175],[-89.84283098016755,47.464725857119504],[-89.72800594761503,47.641976019880644],[-89.61369767938538,47.81925202085796],[-89.52269548211933,47.96053538674391],[-89.4900319346622,48.01340602289096],[-89.48888455722101,48.01526321783575],[-89.27291744663665,48.0198082545827],[-89.18561011427948,48.04732595477816],[-88.3781141832867,48.30291758889382],[-87.49439551466338,47.96159475360588],[-87.20810807976642,47.84837169045443],[-86.92184648308546,47.73512278908686],[
2-86.67206844760278,47.63616242124789],[-86.49533504916462,47.56683848732831],[-86.42864661329185,47.539837551455776],[-86.23444658073907,47.45994578713254],[-86.04024654818625,47.380054022809304],[-85.84656327995629,47.30013642026995],[-85.6523632474034,47.22021881773054],[-85.45816321485046,47.13981028908444],[-85.26396318229769,47.05989268654503],[-85.07027991406778,46.98000092222179],[-84.87607988151484,46.90008331968238],[-84.8268580797569,46.766732286153285],[-84.77923824739992,46.63710195574913],[-84.54374874544584,46.53868419044926],[-84.54323198112297,46.53868419044926],[-84.6049,46.4396],[-84.3367,46.40877000000012],[-84.14211951367338,46.512225857115766],[-84.12837358268371,46.48364879005834],[-84.11514441601707,46.37091665301364],[-84.09185126416145,46.27541860613826],[-83.89076534700575,46.116926988299156],[-83.76322791210941,46.10896881772612],[-83.66904761425741,46.122740586931855],[-83.61613094759059,46.116926988299156],[-83.46955074739469,45.99468638771259],[-83.59285071484305,45.81689362241241],[-83.39704871288916,45.72904368751631],[-83.17905168326581,45.6327188177242],[-82.91922258170234,45.51791962338791],[-82.76047258170172,45.44751048439019],[-82.55092464875815,45.34751658790532],[-82.51547461620595,45.20411448829543],[-82.48529557974746,45.08399262143297],[-82.44666744660935,44.91570831967442],[-82.40752254914821,44.74372915300711],[-82.36835181347101,44.57280935320176],[-82.32654557974689,44.39129588477658],[-82.28104448111384,44.19234162045291],[-82.24084021679079,44.015608222014635],[-82.19637264680358,43.822441718107655],[-82.13764238150395,43.5710875514398],[-82.19055904817077,43.47427175554117],[-82.41703101268996,43.01760712337784],[-82.42974341503373,42.98003835710159],[-82.90017981640278,42.43022695573222],[-83.11977881542708,42.07991242122563],[-83.12877051464591,42.06880198828293],[-83.14199968131265,41.97568105729283],[-83.46267778189986,41.694147854166715],[-83.83996741406284,41.68515615494796],[-84.29505591504122,41.68515615494796],[-84.80675594759535,41.67774058691407],[-84.80729855013442,41.7560562200524],[-85.7481455146564,41.751301988281554],[-86.82446224643155,41.7560562200524],[-86.82446224643155,41.76083629003941],[-86.91812577996058,41.76083629003949],[-87.22133724643314,41.76083629003941],[-87.17583614780017,41.9439000514335],[-87.13033504916714,42.12701548925962],[-87.084808112318,42.30956248633066],[-87.039307013685,42.492652085940904],[-87.07953711622423,42.782117621423694],[-87.11392778191447,43.030293687505434],[-87.15519141309953,43.326632188483174],[-87.14514034701875,43.571087551439874],[-87.14196224643281,43.65787811947408],[-87.08323198113311,43.89018952084234],[-87.03243404819018,44.09128835710602],[-86.91866838249962,44.36168528907325],[-86.82234351270758,44.59133535417833],[-86.71493404818892,44.84641022397102],[-86.53608191602675,45.04166962338586],[-86.40167151563557,45.13321442319092],[-86.26459977898139,45.22687795671993],[-86.4815632799588,45.32317698829584],[-86.77420691602771,45.45229055437716],[-86.94246537957002,45.452290554377086],[-87.11550391309937,45.452290554377086],[-87.24461747918065,45.28984568946771],[-87.41977474643392,45.18401235613382],[-87.45946224643407,45.068127956719295],[-87.6129154121248,45.11045095476635],[-87.61397477898677,45.108874823581445],[-87.74732581251595,45.22687795671993],[-87.67324764682556,45.387746690444544],[-87.89338924838894,45.39671255144718],[-87.84788814975595,45.55918325457283],[-87.78701331251612,45.639617621435136],[-87.87540584995136,45.77984162045912],[-88.11192888055128,45.843351955745845],[-88.16696428094212,46.00791555437945],[-88.36170691603405,46.02062795672322],[-88.64427364780602,46.02220408790805],[-89.22106014683175,46.202115586932166],[-90.09630388055922,46.38099355731049],[-90.17673824742151,46.5608792181185],[-90.33391211623724,46.593693752623835],[-90.33497148309922,46.59687185320979],[-90.3968798489849,46.576252956725284],[-90.41062577997457,46.58418528908214],[-90.39527787958384,46.611677151061414],[-90.3555903795837,46.67306875262415],[
2-90.29897884800795,46.760918687520345],[-90.24182471389315,46.84822601987753],[-90.18521318231738,46.93607595477364],[-90.12805904820257,47.023900051453694],[-90.07144751662682,47.11174998634988],[-90.01481014683492,47.19959992124606],[-89.95765601272012,47.286907253603175]]]}},{type:"Feature",properties:{adm1_code:"USA-3563",diss_me:3563,iso_3166_2:"US-AK",wikipedia:"http://en.wikipedia.org/wiki/Alaska",iso_a2:"US",adm0_sr:6,name:"Alaska",name_alt:"AK|Alaska",name_local:null,type:"State",type_en:"State",code_local:"US02",code_hasc:"US.AK",note:null,hasc_maybe:null,region:"West",region_cod:null,provnum_ne:0,gadm_level:1,check_me:20,scalerank:2,datarank:1,abbrev:"Alaska",postal:"AK",area_sqkm:0,sameascity:-99,labelrank:0,featurecla:"Admin-1 scale rank",name_len:6,mapcolor9:1,mapcolor13:1,fips:"US02",fips_alt:null,woe_id:2347560,woe_label:"Alaska, US, United States",woe_name:"Alaska",latitude:65.3609,longitude:-151.604,sov_a3:"US1",adm0_a3:"USA",adm0_label:2,admin:"United States of America",geonunit:"United States of America",gu_a3:"USA",gn_id:5879092,gn_name:"Alaska",gns_id:-1,gns_name:null,gn_level:1,gn_region:null,gn_a1_code:"US.AK",region_sub:"Pacific",sub_code:null,gns_level:-1,gns_lang:null,gns_adm1:null,gns_region:null,min_label:3.5,max_label:7.5,min_zoom:2},geometry:{type:"MultiPolygon",coordinates:[[[[-153.22872941792107,57.968968410872435],[-152.5647906158351,57.90142731386709],[-152.14114722390633,57.59105866152203],[-153.0063140533369,57.115842190166006],[-154.0050902984581,56.73467682558106],[-154.51640275777007,56.992748928446815],[-154.67099280497115,57.46119578717253],[-153.76277950744145,57.81657461204378],[-153.22872941792107,57.968968410872435]]],[[[-166.46779212142462,60.38416982689773],[-165.67442969466367,60.29360687930625],[-165.57916419173358,59.909986884187674],[-166.19277014876727,59.7544408229889],[-166.848337368822,59.94140615502107],[-167.45527706609005,60.21306915957939],[-166.46779212142462,60.38416982689773]]],[[[-171.73165686753939,63.782515367276005],[-171.11443356024523,63.592191067144995],[-170.4911124339407,63.69497549097355],[-169.68250545965356,63.43111562769127],[-168.68943946030066,63.2975062120006],[-168.7719408844546,63.18859813094548],[-169.52943986720504,62.97693146427798],[-170.29055620021597,63.19443756779441],[-170.67138566799088,63.375821845139],[-171.55306311753867,63.31778921167512],[-171.79111060289117,63.4058458523005],[-171.73165686753939,63.782515367276005]]],[[[-140.9859883290049,69.71199839952624],[-140.98598752156073,69.71199839952624],[-140.99249875202946,66.00002859156871],[-140.99776974812323,60.3063967962986],[-140.0129978161532,60.27683787702762],[-139.03900042031586,60.000007229240055],[-138.34087765826888,59.56210114199871],[-137.4525081107393,58.90498362897523],[-136.47972511106087,59.463864244211834],[-135.4758328991428,59.787772121817284],[-134.94498674842458,59.270542711008034],[-134.27110023312235,58.86111033795942],[-133.3555488822072,58.41028514264519],[-132.730420695661,57.69288707135314],[-131.70782161525324,56.552103990293915],[-130.0077703457152,55.91581207948417],[-129.97999426335826,55.28499787049725],[-130.53611018946725,54.8027534043494],[-131.08581823797215,55.17890615500187],[-131.9672114671423,55.49777558045906],[-132.25001074285956,56.36999624289746],[-133.53918108435641,57.17888743756214],[-134.07806292029613,58.12306753196691],[-135.03821103227915,58.18771474876394],[-136.62806230995477,58.21220937767032],[-137.800006279686,58.49999542910382],[-139.867787041413,59.53776154238915],[-140.825273817133,59.727517401764885],[-142.57444353556446,60.084446519605024],[-143.9588809948799,59.99918040632343],[-145.92555681682782,60.458609727614316],[-147.11437394914665,60.884656073644635],[-148.22430620012764,60.672989406977024],[-148.01806555885076,59.97832896589364],[-148.57082251686077,59.91417267520313],[-149.72785783587585,59.70565827090559],[-150.60824337461634,59.36821116803952],[-151.7163927886833,59.15582103131999],[-151.85943315326716,59.74498403587961],[-151.40971900124717,60.72580272077943],[-150.3469414947325,61.03358755150987],[-150.62111080625706,61.284424953854455],[-151.89583919981683,60.72719798445132],[-152.57832984109558,60.06165721296429],[-154.0191721262576,59.35027944603428],[-153.28751135965308,58.86472768821983],[-154.23249243875847,58.14637360293057],[-155.30749142151012,57.72779450136636],[-156.30833472392308,57.42277435976365],[
2-156.5560973785464,56.97998484967064],[-158.11721655986773,56.46360809999402],[-158.43332129619714,55.994153550838575],[-159.60332739971744,55.56668610292013],[-160.2897196116342,55.643580634170405],[-161.2230476552578,55.364734605523495],[-162.23776607974096,55.02418691672011],[-163.06944658104638,54.68973704692718],[-164.7855692210273,54.404173082082195],[-164.9422263255201,54.57222483989534],[-163.84833960676565,55.03943146424615],[-162.8700013906159,55.34804311789321],[-161.804174974596,55.894986477270436],[-160.56360470278122,56.00805451112507],[-160.0705598622844,56.41805532492879],[-158.68444291891953,57.01667511659787],[-158.46109737855406,57.21692129172891],[-157.72277035218386,57.57000051536306],[-157.55027442119365,58.32832632103026],[-157.041674974577,58.91888458926172],[-158.19473120830557,58.615802313869835],[-158.51721798402306,58.78778148053732],[-159.05860612692882,58.424186102931685],[-159.71166704001732,58.931390285876375],[-159.98128882550017,58.572549140041644],[-160.3552711659965,59.07112335879367],[-161.35500342511511,58.670837714260756],[-161.96889360252644,58.67166453717738],[-162.05498653872465,59.26692536074745],[-161.87417070213542,59.63362132429063],[-162.51805904849215,59.98972361921392],[-163.81834143782024,59.79805573184342],[-164.66221757714655,60.26748444278269],[-165.3463877024748,60.50749563256244],[-165.35083187565192,61.073895168697504],[-166.12137915755605,61.50001902937623],[-165.7344518707706,62.07499685327184],[-164.91917863671785,62.63307648380794],[-164.56250790103934,63.14637848576308],[-163.7533324859971,63.2194489610236],[-163.0672244944579,63.05945872664802],[-162.2605553863817,63.54193573674121],[-161.53444983624857,63.455816962326764],[-160.7725066803211,63.7661081000233],[-160.95833513084264,64.2227985704028],[-161.5180684072121,64.40278758407533],[-160.77777767641484,64.78860382756642],[-161.3919262359876,64.77723501246214],[-162.45305009666893,64.55944468856808],[-162.7577860178941,64.33860545516882],[-163.54639421288428,64.5591604681905],[-164.96082984114514,64.44694509546872],[-166.4252882558645,64.68667206487072],[-166.84500423893914,65.08889557561457],[-168.11056006576706,65.66999705673675],[-166.70527116602193,66.08831777613943],[-164.4747096425755,66.5766600612975],[-163.65251176659567,66.5766600612975],[-163.78860165103626,66.0772073431965],[-161.67777442121013,66.11611969671242],[-162.48971452538007,66.73556509059512],[-163.7197169667912,67.11639455837013],[-164.43099138085654,67.61633820257782],[-165.39028683170673,68.04277212185025],[-166.76444068099607,68.35887685817971],[-166.2047074046267,68.8830309109162],[-164.43081051334357,68.91553538682774],[-163.16861365461452,69.37111481391293],[-162.930566169262,69.85806183539927],[-161.9088972646355,70.33332998318764],[-160.93479651593367,70.44768992784958],[-159.03917578838704,70.89164215766897],[-158.11972286683397,70.82472117785107],[-156.58082455139802,71.35776357694175],[
2-155.0677902903243,71.14777639432373],[-154.3441652089412,70.69640859647023],[-153.9000062733925,70.88998851183572],[-152.2100060699353,70.82999217394467],[-152.27000240782613,70.60000621202988],[-150.7399924387445,70.43001658800574],[-149.72000301816752,70.53001048449045],[-147.61336157935696,70.2140349392418],[-145.68998980022536,70.12000967068678],[-144.92001095907642,69.9899917670403],[-143.58944618042528,70.15251414659832],[-142.07251034871354,69.85193817817265],[-140.9859883290049,69.71199839952624]]]]}}]}},55015:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(34406),s=n(66773),c=n(47352),u=n(24284),d=n(78806),f=n(83223),p=n(44925),m=n(6616),g=n(39665),y=n(9260),h=n(62720),x=n(13571),b=n(30021),v=n(30556),A=n(88133),_=n(96182),S=n(77730),w=n(80111),O=n(9511),j=n(71893),k=n(31085);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n){return(t=function(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function R(e){var t,n,o,a,E=e.filters,N=void 0===E?{customerIds:[]}:E,P=T((0,S.A)(),1)[0],C=T((0,w.A)(),1)[0],R=T((0,r.useState)(!1),2),M=R[0],L=R[1],D=T((0,r.useState)(""),2),B=D[0],U=D[1],F=T((0,r.useState)([]),2),G=F[0],W=F[1],z=T((0,_.A)(),1)[0],V="clicks-log",q=T((0,r.useState)({startDate:(0,p.o)((0,m.j)(new Date,{days:30})),endDate:(0,d.D)((0,m.j)(new Date,{days:1}))}),2),K=q[0],H=q[1],Y=K.startDate,$=K.endDate;null!==(t=C["dataFilterDates-".concat(V)])&&void 0!==t&&null!==(t=t.min)&&void 0!==t&&t.localTimestamp&&(Y=(0,g.a)(new Date(1e3*C["dataFilterDates-".concat(V)].min.localTimestamp)),$=(0,g.a)(new Date(1e3*C["dataFilterDates-".concat(V)].max.localTimestamp)));var Z,X,J,Q,ee,te,ne=(0,A.gC)("/analytics/adclicks/export?workspace_context=".concat((0,c.A)(null==P||null===(n=P.selectedWorkspace)||void 0===n?void 0:n.id)),"POST");function re(e){var t,n,r,o,a,i,l,s,c;return!(null==e||null===(t=e.all)||void 0===t||!t.value)||!!(null!=e&&null!==(n=e.legitimate)&&void 0!==n&&n.value&&null!=e&&null!==(r=e.suspicious)&&void 0!==r&&r.value&&null!=e&&null!==(o=e.fraudulent)&&void 0!==o&&o.value&&null!=e&&null!==(a=e.givt)&&void 0!==a&&a.value)||!(null!=e&&null!==(i=e.legitimate)&&void 0!==i&&i.value||null!=e&&null!==(l=e.suspicious)&&void 0!==l&&l.value||null!=e&&null!==(s=e.fraudulent)&&void 0!==s&&s.value||null!=e&&null!==(c=e.givt)&&void 0!==c&&c.value)}return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(y.default,{id:"export-button-open",onClick:function(){return L(!0)},iconLeft:["far","download"],"data-testid":"export-button",children:(0,i.A)("Export")}),(0,k.jsxs)(x.default,{open:M,size:"md",onClose:function(){return L(!1)},children:[(0,k.jsx)(x.default.Header,{className:"text-center",title:(0,i.A)("Export")}),(0,k.jsx)(x.default.Content,{children:(0,k.jsxs)(v.default.Row,{children:[(0,k.jsxs)(v.default.Col,{children:[(0,k.jsxs)(b.default,{preset:"formSectionTitle",as:"h6",className:"mb-3",children:[(0,i.A)("You're exporting"),":"]}),(0,k.jsxs)(b.default,{preset:"sormSectionSubtitle",children:[(0,i.A)("Worksp
2ace"),":"]}),(0,k.jsx)(b.default,{preset:"formSectionSubText",className:"mb-3",children:null==P||null===(o=P.selectedWorkspace)||void 0===o?void 0:o.name}),(0,k.jsxs)(b.default,{preset:"sormSectionSubtitle",children:[(0,i.A)("Date range"),":"]}),(0,k.jsxs)(b.default,{preset:"formSectionSubText",className:"mb-3",children:[(0,f.GP)(Y,"dd/MM/yyyy")," ","-"," ",(0,f.GP)($,"dd/MM/yyyy")]}),(0,k.jsxs)(b.default,{preset:"sormSectionSubtitle",children:[(0,i.A)("Click type"),":"]}),(0,k.jsx)(b.default,{preset:"formSectionSubText",className:"mb-3",children:(Z=N.clickType,null!=Z&&null!==(X=Z.all)&&void 0!==X&&X.value?(0,i.A)("All"):null!=Z&&null!==(J=Z.legitimate)&&void 0!==J&&J.value?(0,i.A)("Legitimate"):null!=Z&&null!==(Q=Z.suspicious)&&void 0!==Q&&Q.value?(0,i.A)("Suspicious"):null!=Z&&null!==(ee=Z.fraudulent)&&void 0!==ee&&ee.value?(0,i.A)("SIVT"):null!=Z&&null!==(te=Z.givt)&&void 0!==te&&te.value?(0,i.A)("GIVT"):(0,i.A)("All"))}),(0,k.jsxs)(b.default,{children:[(0,i.A)("Accounts"),":"]}),(0,k.jsx)(b.default,{preset:"formSectionSubText",className:"mb-3",children:(0,O.A)(null===(a=N["accounts.selection"])||void 0===a?void 0:a.length)})]}),(0,k.jsxs)(v.default.Col,{children:[(0,k.jsxs)(b.default,{preset:"formSectionTitle",as:"h6",className:"mb-3",children:[(0,i.A)("Sending to"),":"]}),(0,k.jsx)(h.default,{label:(0,i.A)("Enter email address"),name:"recipient_email",type:"email",onFormValue:function(e){U(e.value)},id:"export-email-input",value:B,errors:G,showErrors:!0}),(0,k.jsxs)("div",{className:"mt-3",children:[(0,k.jsxs)(b.default,{preset:"formSectionTitle",as:"h6",className:"mb-3",children:[(0,i.A)("Date range"),":"]}),(0,k.jsx)(j.A,{onDatesChange:H,displayRangeText:!1,instanceId:"export-dates",ranges:["30d","7d","1d","customMonth","customRange"],defaultRange:"30d",sharedDateRef:V})]})]})]})}),(0,k.jsxs)(x.default.Actions,{children:[(0,k.jsx)(y.default,{id:"export-button-close",onClick:function(){L(!1)},className:"mr-2",preset:"outline","data-testid":"export-close-button",children:(0,i.A)("Cancel")}),(0,k.jsx)(y.default,{id:"export-button-submit",onClick:function(){return function(){var e,t,n,r,o,a,c,d,f,p,m=(0,s.A)("isEmail",B,(0,i.A)("Enter an email address"));if(m)W(m);else{W([]);var g=N["accounts.selection"]||N.selectedAccounts||[];ne.mutate(I(I(I({dmax:(0,l.YQ)($),dmin:(0,l.YQ)(Y),protected:!(null==N||null===(e=N.clickType)||void 0===e||null===(e=e.legitimate)||void 0===e||!e.value)||re(null==N?void 0:N.clickType),suspicious:!(null==N||null===(t=N.clickType)||void 0===t||null===(t=t.suspicious)||void 0===t||!t.value)||re(null==N?void 0:N.clickType),fraudulent:!(null==N||null===(n=N.clickType)||void 0===n||null===(n=n.fraudulent)||void 0===n||!n.value)||re(null==N?void 0:N.clickType),givt:!(null==N||null===(r=N.clickType)||void 0===r||null===(r=r.givt)||void 0===r||!r.value)||re(null==N?void 0:N.clickType)},g.length&&{customer_ids:g}),{},{recipient_email:B,type:"filtered",platform:null==z||null===(o=z.selectedPlatform)||void 0===o?void 0:o.platform_name}
2,!(null!=N&&null!==(a=N.inControlGroup)&&void 0!==a&&null!==(a=a.sampled)&&void 0!==a&&a.value||null!=N&&null!==(c=N.inControlGroup)&&void 0!==c&&null!==(c=c.nonSampled)&&void 0!==c&&c.value)||null!=N&&null!==(d=N.inControlGroup)&&void 0!==d&&null!==(d=d.sampled)&&void 0!==d&&d.value&&null!=N&&null!==(f=N.inControlGroup)&&void 0!==f&&null!==(f=f.nonSampled)&&void 0!==f&&f.value?{}:{in_control_group:null!=N&&null!==(p=N.inControlGroup)&&void 0!==p&&null!==(p=p.sampled)&&void 0!==p&&p.value?1:0}),{},{_method:"POST"}),{onSuccess:function(e){var t;(0,u.A)((0,i.A)(null==e||null===(t=e.data)||void 0===t?void 0:t.message),"success")},onError:function(){(0,u.A)((0,i.A)("Report failed to process"),"error")}}),L(!1)}}()},"data-testid":"export-submit-button",children:(0,i.A)("Export to CSV")})]})]})]})}R.propTypes={filters:a().object};const M=R},55053:(e,t,n)=>{"use strict";e.exports=n.p+"d73c5dc177a49365c82e.svg"},55436:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(14041),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),s=n(45647),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=a.default;y(".display-x78zum5{display:flex}",3e3),y(".flexDirection-xdt5ytf{flex-direction:column}",3e3),y(".alignItems-x6s0dn4{align-items:center}",3e3),y(".justifyContent-xl56j7k{justify-content:center}",3e3),y(".height-x5yr21d{height:100%}",4e3),y(".width-xh8yej3{width:100%}",4e3),y(".position-x1n2onr6{position:relative}",3e3),y(".transition-x1x8kdys{transition:top .3s linear,left .3s linear,background-color .18s ease-in}",2e3),y(".borderRadius-x16rqkct{border-radius:50%}",2e3),y(".backgroundColor-xjbqb8w{background-color:transparent}",3e3),y(".backgroundColor-x1q85c4o{background-color:#FFFFFF}",3e3),y(".backgroundColor-x83w6rj{background-color:#11ADCF}",3e3),y(".backgroundColor-x18thdbb{background-color:var(--gray200-x1cfnqzm)}",3e3),y(".backgroundColor-xgji3v1{background-color:var(--gray300-x1xk3734)}",3e3);var h={position:"position-x1n2onr6",transition:"transition-x1x8kdys",borderRadius:"borderRadius-x16rqkct",$$css:"LunioLoader/index.tsx:18"},x={backgroundColor:"backgroundColor-xjbqb8w",$$css:"LunioLoader/index.tsx:23"},b={backgroundColor:"backgroundColor-x1q85c4o",$$css:"LunioLoader/index.tsx:26"},v={backgroundColor:"backgroundColor-x83w6rj",$$css:"LunioLoader/index.tsx:29"},A={backgroundColor:"backgroundColor-x18thdbb",$$css:"LunioLoader/index.tsx:32"},_={backgroundColor:"backgroundColor-xgji3v1",$$css:"LunioLoader/index.tsx:35"};t.default=function(e){var t,n=e.loading,r=void 0===n||n,o=e.preset,a=void 0===o?"light":o,u=e.children,d=void 0===u?null:u,p=e.size,g=void 0===p?"sm":p,y=e.height,S=void 0===y?0:y,w=m((0,s.useSyncState)(),1)[0],O={xs:1.5,sm:2,md:2.5,lg:3,xl:3.5}[(null==w||null===(t=w.viewport)||void 0===t?void 0:t.breakpoint)||"sm"],j=m((0,i.useState)(0),2),k=j[0],E=j[1],N={responsive:{dotSize:5*O,dotMargin:1.25*O,shift:7.5*O},xs:{dotSize:5,dotMargin:1.25,shift:7.5},sm:{dotSize:10,dotMargin:2.5,shift:15},md:{dotSize:20,dotMargin:5,shift:30},lg:{dotSize:40,dotMargin:10,shift:60}},I=N[g].shift,P=[[{t:0,l:0,c:2},{t:0,l:0,c:1},{t:0,l:0,c:2},{t:0,l:0,c:1},{t:0,l:0,c:2},{t:0,l:0,c:1},{t:0,l:0,c:2},{t:0,l:0,c:1},{t:0,l:0,c:0}],[{t:0,l:0,c:2},{t:0,l:0,c:1},{t:I,l:0,c:2},{t:0,l:0,c:1},{t:0,l:0,c:2},{t:I,l:0,c:1},{t:0,l:0,c:2},{t:0,l:0,c:1},{t:0,l:0,c:0}],[{t:0,l:I,c:2},{t:0,l:I,c:1},{t:I,l:0,c:2},{t:0,l:0,c:1},{t:0,l:0,c:2},{t:I,l:0,c:1},{t:0,l:0,c:2},{t:0,l:0,c:1},{t:0,l:0,c:0}],[{t:0,l:I,c:2},{t:0,l:I,c:1},{t:I,l:0,c:2},{t:-I,l:0,c:1},{t:0,l:0,c:2},{t:I,l:0,c:1},{t:-I,l:0,c:2},{t:0,l:0,c:1},{t:0,l:0,c:0}],[{t:0,l:I,c:1},{t:0,l:I,c:2},{t:I,l:0,c:1},{t:-I,l:0,c:2},{t:0,l:0,c:2},{t:I,l:-I,c:1},{t:-I,l:0,c:1},{t:0,l:-I,c:2},{t:0,l:-I,c:0}]];function T(e){return 0===P[k][e].c?x:1===P[k][e].c&&"light"===a?b:2===P[k][e].c&&"light"===a?v:1===P[k][e].c&&"dark"===a?A:2===P[k][e].c&&"dark"===a?_:{}}function C(e){return{top:P[k][e].t,left:P[k][e].l,height:N[g].dotSize,width:N[g].dotSize,margin:N[g].dotMargin}}return(0,i.useEffect)(function(){var e=setInterval(function(){E(function(e){return(e+1)%P.length})},200);return function(){return clearInterval(e)}},[P.length]),r?(0,c.jsx)("div",f(f({},{className:"display-x78zum5 flexDirection-xdt5ytf alignItems-x6s0dn4 justifyContent-xl56j7k height-x5yr21d width-xh8yej3","data-style-src":"LunioLoader/index.tsx:7"}),{},{style:{height:S||"100%"},"data-testid":"lunio-loader",children:(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",f(f({},{className:"display-x78zum5","data-style-src":"LunioLoader/index.tsx:15"}),{},{children:[(0,c.jsx)("div",f(f({},l.props(h,T(0))),{},{style:f({},C(0))})),(0,c.jsx)("div",f(f({},l.props(h,T(1))),{},{style:f({},C(1))})),(0,c.jsx)("div",f(f({},l.props(h,T(2))),{},{style:f({},C(2))}))]})),(0,c.jsxs)("div",f(f({},{className:"display-x78zum5","data-style-src":"LunioLoader/index.tsx:15"}),{},{children:[(0,c.jsx)("div",f(f({},l.props(h,T(3))),{},{style:f({},C(3))})),(0,c.jsx)("div",f(f({},l.props(h,T(4))),{},{style:f({},C(4))})),(0,c.jsx)("div",f(f({}
2,l.props(h,T(5))),{},{style:f({},C(5))}))]})),(0,c.jsxs)("div",f(f({},{className:"display-x78zum5","data-style-src":"LunioLoader/index.tsx:15"}),{},{children:[(0,c.jsx)("div",f(f({},l.props(h,T(6))),{},{style:f({},C(6))})),(0,c.jsx)("div",f(f({},l.props(h,T(7))),{},{style:f({},C(7))})),(0,c.jsx)("div",f(f({},l.props(h,T(8))),{},{style:f({},C(8))}))]}))]})})):d}},55440:(e,t,n)=>{"use strict";n.d(t,{A:()=>_}),n(14041);var r=n(89748),o=n(19863),a=n(1781),i=n(17419),l=n(28426),s=n(79135),c=n(96956),u=n(27805),d=n(62161),f=n(93033),p=n(99226),m=n(98536),g=n(8713),y=n(92523),h=n(31085);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A(e,t,n){return(t=function(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=function(){var e=(0,m.useApi)({url:"/platform/analytics/device",sortKey:"health",sortOrder:"asc",responseDataKey:"devices"}),t="TRIAL"===(0,p.A)().lunioStatus;return(0,h.jsxs)(l.A.Page,{type:"main",children:[(0,h.jsx)(u.default,{title:"".concat((0,r.A)("Ad Stats")," - ").concat((0,r.A)("Device")),text:(0,r.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,h.jsx)(g.A,{filters:[],exportType:"mplat_device"})}),(0,h.jsx)("div",{className:"mt-4 mb-4 justify-end",children:(0,h.jsx)(y.default,{})}),(0,h.jsx)(d.A,v(v({},e.tableConnector),{},{noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){var n,l,u;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{children:[(0,h.jsx)("th",{children:(0,r.A)("Device")}),(0,h.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,r.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,r.A)("Legitimate")}),(0,h.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,r.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,r.A)("Suspicious")}),(0,h.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,r.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,r.A)("SIVT Clicks")}),(0,h.jsx)(f.A,{AND:!t,children:(0,h.jsx)("th",{"data-testid":"givt","data-tooltip":(0,r.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,r.A)("GIVT Clicks")})}),(0,h.jsx)("th",{"data-tooltip":(0,r.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,r.A)("Total IVT")}),(0,h.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,r.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,r.A)("Total Clicks")}),(0,h.jsx)("th",{"data-tooltip":(0,r.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,r.A)("All Tracked Clicks")}),(0,h.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,r.A)("The percentage of total clicks Lunio has classified as invali
2d."),children:(0,r.A)("SIVT Clicks %")}),(0,h.jsx)("th",{"data-tooltip":(0,r.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,r.A)("Total IVT %")}),(0,h.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,r.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,r.A)("Health")})]})}),(0,h.jsxs)("tbody",{children:[(0,h.jsxs)("td",{children:["c"===(null==e?void 0:e.device)&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s.default,{name:"fa-desktop",className:"mr-3"}),(0,r.A)("Desktop")]}),"m"===(null==e?void 0:e.device)&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s.default,{name:"fa-mobile",className:"mr-3"}),(0,r.A)("Mobile")]}),"ct"===(null==e?void 0:e.device)&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s.default,{name:"fa-tv",className:"mr-3"}),(0,r.A)("Connected TV")]}),"t"===(null==e?void 0:e.device)&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s.default,{name:"fa-tablet",className:"mr-3"}),(0,r.A)("Tablet")]}),("bot"===(null==e?void 0:e.device)||"b"===(null==e?void 0:e.device))&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s.default,{name:"fa-robot",className:"mr-3"}),(0,r.A)("Bot")]}),"ZZ"===(null==e?void 0:e.device)&&(0,h.jsxs)(h.Fragment,{children:[(0,r.A)("N/A")," ",(0,h.jsx)(a.default,{content:"Clicks where a device type is not provided",children:(0,h.jsx)("p",{children:"?"})})," "]})]}),(0,h.jsx)("td",{children:(0,h.jsx)(i.A,{type:"legitimate",size:"sm",textRight:(0,o.m)((null==e?void 0:e.clicks_protected)||(null==e?void 0:e.clicks_legitimate))})}),(0,h.jsx)("td",{children:(0,h.jsx)(i.A,{type:"suspicious",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_suspicious)})}),(0,h.jsx)("td",{children:(0,h.jsx)(i.A,{type:"invalid",size:"sm",textRight:(0,o.m)((null==e?void 0:e.clicks_fraudulent)||(null==e?void 0:e.clicks_invalid))})}),(0,h.jsx)(f.A,{AND:!t,children:(0,h.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,h.jsx)("td",{children:(0,o.m)(null!==(n=null==e?void 0:e.total_ivt)&&void 0!==n?n:0)}),(0,h.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_total)}),(0,h.jsx)("td",{children:(0,o.m)(null!==(l=null==e?void 0:e.all_tracked_clicks)&&void 0!==l?l:0)}),(0,h.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,h.jsx)("td",{children:"".concat(Number(null!==(u=null==e?void 0:e.total_ivt_percent)&&void 0!==u?u:0).toFixed(2),"%")}),(0,h.jsx)("td",{children:(0,h.jsx)(c.A,{health:null==e?void 0:e.health})})]})]})}}))]})}},55593:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(14041),o=n(88133),a=n(89748),i=n(77223),l=n(62720),s=n(72686),c=n(30021),u=n(17419),d=n(23151),f=n(90405),p=n(62161),m=n(19863),g=n(31085);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const h=function(e){var t,n,h,x,b,v=e.className,A=void 0===v?"":v,_=(x=(0,r.useState)(l.default.DatePicker.getDateRange("7d")),b=2,function(e){if(Array.isArray(e))return e}(x)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(x,b)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(x,b)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),S=_[0],w=_[1],O=(0,o.Ay)("/analytics/dashboard?df_dmin=".concat(null===(t=S.min)||void 0===t?void 0:t.timestamp,"&df_dmax=").concat(null===(n=S.max)||void 0===n?void 0:n.timestamp,"&df_interval=day&
2show_ivt_change=1&platform=all")),j=O.data,k=O.isLoading;return(0,g.jsxs)(s.default,{className:A,children:[(0,g.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,g.jsx)(c.default,{preset:"widgetHeading",as:"h2",children:(0,a.A)("Platform Overview")}),(0,g.jsx)(l.default.DatePicker,{value:[S.min.date,S.max.date],onRangeChange:function(e){return w(e)},showCalenderIcon:!1,displayRangeText:!1,selectedOption:S.rangeName,ranges:["1d","yesterday","7d","30d","prevMonth","customMonth","customRange"]})]}),(0,g.jsx)(i.default,{className:"mb-4"}),(0,g.jsx)(p.A,{rows:(null==j||null===(h=j.result)||void 0===h||null===(h=h.analytics)||void 0===h?void 0:h.platforms)||[],isLoading:k,className:"mt-8",leftPinnedColumns:1,children:function(e){var t,n,r,o;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("thead",{children:[(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,a.A)("Platform")}),(0,g.jsx)("th",{"data-tooltip":(0,a.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,g.jsxs)("div",{className:"v-align-center",children:[(0,g.jsx)(u.A,{className:"mr-2",size:"sm",type:"legitimate"}),(0,a.A)("Legitimate")]})}),(0,g.jsx)("th",{"data-tooltip":(0,a.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,g.jsxs)("div",{className:"v-align-center",children:[(0,g.jsx)(u.A,{className:"mr-2",size:"sm",type:"suspicious"}),(0,a.A)("Suspicious")]})}),(0,g.jsx)("th",{"data-tooltip":(0,a.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,g.jsxs)("div",{className:"v-align-center",children:[(0,g.jsx)(u.A,{className:"mr-2",size:"sm",type:"invalid"}),(0,a.A)("SIVT Clicks")]})}),(0,g.jsx)("th",{"data-tooltip":(0,a.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,g.jsxs)("div",{className:"v-align-center",children:[(0,g.jsx)(u.A,{className:"mr-2",size:"sm",type:"invalid"}),(0,a.A)("SIVT Clicks %")]})}),(0,g.jsx)("th",{"data-tooltip":(0,a.A)("The change in percentage between the selected date period and the equivalent previous period."),children:(0,g.jsxs)("div",{className:"v-align-center",children:[(0,g.jsx)(u.A,{className:"mr-2",size:"sm",type:"invalid"}),"% ",(0,a.A)("Change")]})})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,a.A)("Totals")}),(0,g.jsx)("th",{children:(0,m.m)((null==j||null===(t=j.result)||void 0===t||null===(t=t.analytics)||void 0===t||null===(t=t.summary_data)||void 0===t||null===(t=t.click_totals)||void 0===t?void 0:t.legitimate)||"-")}),(0,g.jsx)("th",{children:(0,m.m)((null==j||null===(n=j.result)||void 0===n||null===(n=n.analytics)||void 0===n||null===(n=n.summary_data)||void 0===n||null===(n=n.click_totals)||void 0===n?void 0:n.suspicious)||"-")}),(0,g.jsx)("th",{children:(0,m.m)((null==j||null===(r=j.result)||void 0===r||null===(r=r.analytics)||void 0===r||null===(r=r.summary_data)||void 0===r||null===(r=r.click_totals)||void 0===r?void 0:r.fraudulent)||"-")}),(0,g.jsx)("th",{children:"-"}),(0,g.jsx)("th",{children:"-"})]})]}),(0,g.jsxs)("tbody",{children:[(0,g.jsx)("td",{children:(0,g.jsx)("div",{style:{height:"24px",width:"24px",display:"inline-block"},children:(0,g.jsx)(f.A,{platformName:null==e?void 0:e.platform_name})})}),(0,g.jsx)("td",{children:(0,m.m)(null==e?void 0:e.click_totals.legitimate)}),(0,g.jsx)("td",{children:(0,m.m)(null==e?void 0:e.click_totals.suspicious)}),(0,g.jsx)("td",{children:(0,m.m)(null==e?void 0:e.click_totals.fraudulent)}),(0,g.jsxs)("td",{children:[null==e?void 0:e.click_percentages.fraudulent,"%"]}),(0,g.jsx)("td",{children:(0,g.jsx)(d.default,{number:null==e?void 0:e.ivt_change,direction:(o=null==e?void 0:e.ivt_change,Number(o)>0?"up":Number(o)<0?"down":"right"),hideText:!0})})]})]})}})]})}},55618:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=d(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(86957),s=d(n(93513)),c=d(n(14934)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default;y(".position-xixxii4{position:fixed}",3e3),y(".top-x13vifvy{top:0}",4e3),y(".right-x1ysinnb{right:-960px}",4e3),y(".transition-x8yere6{transition:right .2s ease-in-out}",2e3),y(".width-x1xwk8fm{width:680px}",4e3),y(".height-x1dr59a3{height:100vh}",4e3),y(".overflowY-x1odjw0f{overflow-y:auto}",4e3),y(".padding-xggk2y7{padding:24px}",1e3),y(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),y(".borderLeft-x1bkmhv1{border-left:1px solid var(--gray300-x1xk3734)}",2e3),y(".borderRadius-x1t5vj7b{border-radius:8px 0 0 8px}",2e3),y(".zIndex-x4zniha{z-index:201}",3e3),y("@media(max-width: 1280px){.width-xkqz1m7.width-xkqz1m7{width:760px!important}}",4200),y(".padding-x1717udv{padding:0}",1e3),y(".right-x3m8u43{right:0}",4e3),y(".display-x78zum5{display:flex}",3e3),y(".justifyContent-x1qughib{justify-content:space-between}",3e3),y(".alignItems-x6s0dn4{align-items:center}",3e3),y(".marginBottom-x1iymm2a{margin-bottom:32px}",4e3),y(".flexDirection-xdt5ytf{flex-direction:column}",3e3),y(".alignItems-x1cdzk7k{align-items:right}",3e3),y(".left-xu96u03{left:0}",4e3),y(".width-xn9wirt{width:100vw}",4e3),y(".backgroundColor-x1ba4oyk{background-color:var(--black900-x1vm5mv1)}",3e3),y(".opacity-x1ks1olk{opacity:.7}",3e3),y(".zIndex-x8k05lb{z-index:200}",3e3);var h={sidePanelContainer:{position:"position-xixxii4",top:"top-x13vifvy",right:"right-x1ysinnb",transition:"transition-x8yere6",width:"width-x1xwk8fm",height:"height-x1dr59a3",overflowY:"overflowY-x1odjw0f",padding:"padding-xggk2y7",backgroundColor:"backgroundColor-x18oya0d",borderLeft:"borderLeft-x1bkmhv1",borderRadius:"borderRadius-x1t5vj7b",zIndex:"zIndex-x4zniha","@media(max-width: 1280px)_width":"width-xkqz1m7",$$css:"SideContentPanel/index.tsx:8"},noPadding:{padding:"padding-x1717udv",$$css:"SideContentPanel/index.tsx:25"},active:{right:"right-x3m8u43",transition:"transition-x8yere6",$$css:"SideContentPanel/index.tsx:28"}};function x(e){var t=e.children,n=e.open,r=e.onClose,o=void 0===r?function(){}:r,c=e.heading,d=void 0===c?"":c,f=e.subtitle,p=void 0===f?"":f,g=e.contentRight,y=void 0===g?null:g,x=e.noPadding,b=void 0!==x&&x,v=(0,a.useRef)(null);function A(){o()}return(0,a.useEffect)(function(){var e=v.current;n&&e&&(e.scrollTop=0)},[n]),(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)("button",m(m({type:"button","aria-label":"Close side panel","data-testid":"side-panel-dimmer"},{className:"position-xixxii4 top-x13vifvy left-xu96u03 width-xn9wirt height-x1dr59a3 backgroundColor-x1ba4oyk opacity-x1ks1olk zIndex-x8k05lb","data-style-src":"SideContentPanel/index.tsx:46"}),{},{onClick:A})),(0,u.jsx)(s.default,{onClickOutside:function(){n&&A()},children:(0,u.jsxs)("div",m(m({ref:v},i.props(h.sidePanelContainer,b&&h.noPadding,n&&h.active)),{},{"data-testid":"side-panel-container",children:[d&&(0,u.jsxs)("div",m(m({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4 marginBottom-x1iymm2a","data-style-src":"SideContentPanel/index.tsx:32"}),{},{children:[(0,u.jsxs)("div",m(m({},{className:"display-x78zum5 flexDirection-xdt5ytf","data-style-src":"SideContentPanel/index.tsx:38"}),{},{children:[(0,u.jsx)("h4",m(m({},i.props(l.textStyles.formHeading)),{},{children:d})),p&&(0,u.jsx)("p",m(m({},i.props(l.textStyles.formSubHeading)),{},{children:p}))]})),(0,u.jsx)("div",m(m({},{className:"display-x78zum5 alignItems-x1cdzk7k","data-style-src":"SideContentPanel/index.tsx:42"}),{},{children:y}))]})),(0,u.jsx)("div",{children:t})]}))})]})}x.Section=c.default,t.default=x},55619:(e,t,n)=>{"use strict";e.exports=n.p+"6db5edca5ff1c115c357.svg"},55725:(e,t,n)=>{"use strict";e.exports=n.p+"5d020560e46a01714315.svg"},55817:(e,t,n)=>{"use strict";e.exports=n.p+"11c04a9cd6ddf6edaac7.svg"},56197:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(n(25751)),a=n(99018),i=n(86957),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),s=u(n(79135)),c=n(31085);function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var f=["children","colourName","className","iconLeft","iconRight","size","leading","trailing","colour","fontColour"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default;y(".borderRadius-xgqmno8{border-radius:16px}",2e3),y(".display-x78zum5{display:flex}",3e3),y(".alignItems-x6s0dn4{align-items:center}",3e3),y(".justifyContent-xl56j7k{justify-content:center}",3e3),y(".width-xeq5yr9{width:fit-content}",4e3),y(".height-xxk0z11{height:24px}",4e3),y(".fontWeight-xk50ysn{font-weight:500}",3e3),y(".flexShrink-x2lah0s{flex-shrink:0}",3e3),y(".flexGrow-x1c4vz4f{flex-grow:0}",3e3),y(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),y(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),y(".backgroundColor-x1itpvea{background-color:var(--oldBrand50-x1t4s9vw)}",3e3),y(".color-xb0o5a8{color:var(--oldBrand700-xx6j7i3)}",3e3),y(".backgroundColor-xf6q9j8{background-color:var(--oldBrand100-x1o59ms7)}",3e3),y(".backgroundColor-x1ssdy5{background-color:var(--error50-x1f3qy36)}",3e3),y(".color-xqy16mm{color:var(--error700-x1brey9)}",3e3),y(".backgroundColor-x1c48dnr{background-color:var(--warning50-xtmumxw)}",3e3),y(".color-x5msaau{color:var(--warning700-xlxq2tu)}",3e3),y(".backgroundColor-xb4lrnj{background-color:var(--success50-x1xjgkj9)}",3e3),y(".color-x1de9rt4{color:var(--success700-xjo1ft6)}",3e3),y(".backgroundColor-xxjbeky{background-color:var(--primary25-x1i18ho1)}",3e3),y(".color-xmrs72t{color:var(--primary600-x1h1lpbu)}",3e3),y(".fontSize-xfifm61{font-size:12px}",3e3),y(".paddingLeft-x163pfp{padding-left:8px}",4e3),y(".paddingRight-xy13l1i{padding-right:8px}",4e3),y(".fontSize-xif65rj{font-size:14px}",3e3),y(".paddingLeft-x1lqa7cf{padding-left:10px}",4e3),y(".paddingRight-xcicffo{padding-right:10px}",4e3),y(".paddingLeft-xf18ygs{padding-left:12px}",4e3),y(".paddingRight-xnuq7ks{padding-right:12px}",4e3),y(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),y(".color-x15rks2t{color:currentColor}",3e3),y(".marginTop-xr9ek0c{margin-top:2px}",4e3),y(".marginRight-x1db2dqx{margin-right:8px}",4e3),y(".marginBottom-xjpr12u{margin-bottom:2px}",4e3),y(".marginLeft-xet2fuk{margin-left:8px}",4e3),y(".borderWidth-xmkeg23{border-width:1px}",2e3),y(".borderStyle-x1y0btm7{border-style:solid}",2e3),y(".borderColor-x1r7ld26{border-color:currentColor}",2e3),y(".marginRight-x15ku74s{margin-right:6px}",4e3),y(".marginLeft-x16vho4v{margin-left:6px}",4e3),y(".width-xvy4d1p{width:24px}",4e3),y(".marginLeft-xj3b58b{margin-left:0}",4e3);var h={base:{borderRadius:"borderRadius-xgqmno8",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",width:"width-xeq5yr9",height:"height-xxk0z11",fontWeight:"fontWeight-xk50ysn",flexShrink:"flexShrink-x2lah0s",flexGrow:"flexGrow-x1c4vz4f",$$css:"Badge/index.tsx:8"},default:{backgroundColor:"backgroundColor-xq18l50",color:"color-x5tu7p5",$$css:"Badge/index.tsx:19"},primary:{backgroundColor:"backgroundColor-x1itpvea",color:"color-xb0o5a8",$$css:"Badge/index.tsx:23"},primaryDark:{backgroundColor:"backgroundColor-xf6q9j8",color:"color-xb0o5a8",$$css:"Badge/index.tsx:27"},error:{backgroundColor:"backgroundColor-x1ssdy5",color:"color-xqy16mm",$$css:"Badge/index.tsx:31"},warning:{backgroundColor:"backgroundColor-x1c48dnr",color:"color-x5msaau",$$css:"Badge/index.tsx:35"},success:{backgroundColor:"backgroundColor-xb4lrnj",color:"color-x1de9rt4",$$css:"Badge/index.tsx:39"},pending:{backgroundColor:"backgroundColor-xxjbeky",color:"color-xmrs72t",$$css:"Badge/index.tsx:43"},sm:{fontSize:"fontSize-xfifm61",paddingLeft:"paddingLeft-x163pfp",paddingRight:"paddingRight-xy13l1i",paddingInlineStart:null,paddingInlineEnd:null,$$css:"Badge/index.tsx:47"},md:{fontSize:"fontSize-xif65rj",paddingLeft:"paddingLeft-x1lqa7cf",paddingRight:"paddingRight-xcicffo",paddingInlineStart:null,paddingInlineEnd:null,$$css:"Badge/index.tsx:52"},lg:{fontSize:"fontSize-xif65rj",paddingLeft:"paddingLeft-xf18ygs",paddingRight:"paddingRight-xnuq7ks",paddingInlineStart:null,paddingInlineEnd:null,$$css:"Badge/index.tsx:57"},leading:{backgroundColor:"backgroundColor-x18oya0d",color:"color-x15rks2t",borderRadius:"borderRadius-xgqmno8",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,marginTop:"marginTop-xr9ek0c",marginRight:"marginRight-x1db2dqx",marginBottom:"marginBottom-xjpr12u",marginLeft:"marginLeft-xet2fuk",marginInlineStart:null,marginInlineEnd:null,borderWidth:"borderWidth-xmkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:"borderStyle-x1y0btm7",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:"borderColor-x1r7ld26",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:"Badge/index.tsx:62"},trailing:{backgroundColor:"backgroundColor-x18oya0d",color:"color-x15rks2t",borderRadius:"borderRadius-xgqmno8",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,marginTop:"marginTop-xr9ek0c",marginRight:"marginRight-x1db2dqx",marginBottom:"marginBottom-xjpr12u",marginLeft:"marginLeft-xet2fuk",marginInlineStart:null,marginInlineEnd:null,borderWidth:"borderWidth-xmkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:"borderStyle-x1y0btm7",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:"borderColor-x1r7ld26",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:"Badge/index.tsx:74"},iconLeft:{marginRight:"marginRight-x15ku74s",marginInlineStart:null,marginInlineEnd:null,$$css:"Badge/index.tsx:86"},iconRight:{marginLeft:"marginLeft-x16vho4v",marginInlineStart:null,marginInlineEnd:null,$$css:"Badge/index.tsx:89"},badgeIcon:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",width:"width-xvy4d1p",height:"height-xxk0z11",marginLeft:"marginLeft-xj3b58b",marginInlineStart:null,marginInlineEnd:null,$$css:"Badge/index.tsx:92"}};function x(e,t,n,r){return(0,a.classNames)(e,"borderRadius-xgqmno8 display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k width-xeq5yr9 height-xxk0z11 fontWeight-xk50ysn flexShrink-x2lah0s flexGrow-x1c4vz4f",l.props(h[t]).className,l.props(h[n]).className,!r&&"display-x78zum5 alignItems-x6s0dn4 width-xvy4d1p height-xxk0z11 marginLeft-xj3b58b")}function b(e){var t=e.children,n=void 0===t?null:t,r=e.colourName,o=void 0===r?"default":r,a=e.className,u=void 0===a?"":a,d=e.iconLeft,p=void 0===d?"":d,g=e.iconRight,y=void 0===g?"":g,b=e.size,v=void 0===b?"md":b,A=e.leading,_=void 0===A?null:A,S=e.trailing,w=void 0===S?null:S,O=e.colour,j=e.fontColour,k=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,f),E=Boolean(n),N={};return O&&(N.backgroundColor=i.colourValues[O]),j&&(N.color=i.colourValues[j]),(0,c.jsxs)("div",m(m({className:x(u,o,v,E),style:N},k),{},{children:[_&&(0,c.jsx)("div",m(m({},l.props(h.leading,h[v])),{},{"data-testid":"badge-leading",children:_})),p&&(0,c.jsx)("div",m(m({},{className:"marginRight-x15ku74s","data-style-src":"Badge/index.tsx:86"}),{},{"data-testid":"badge-icon-left",children:(0,c.jsx)(s.default,{name:p})})),n,w&&(0,c.jsx)("div",m(m({},l.props(h.trailing,h[v])),{},{"data-testid":"badge-trailing",children:w})),y&&(0,c.jsx)("div",m(m({},l.props(h.iconRight,!n&&h.badgeIcon)),{},{"data-testid":"badge-icon-right",children:(0,c.jsx)(s.default,{name:y})}))]}))}b.displayName="Badge",t.default=b},56265:(e,t,n)=>{"use strict";e.exports=n.p+"fabd7e4fc723a24128dd.svg"},56267:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(25751)),o=l(n(14041)),a=n(84392),i=n(31085);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,r.default)(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),t.default=function(e){var t=e.options,n=e.children,r=e.maxHeight,l=(0,e.getValue)()[0],s=35*t.indexOf(l),c=o.default.Children.toArray(n);return(0,i.jsx)(a.FixedSizeList,u(u({height:r,itemCount:c.length,itemSize:35,initialScrollOffset:s,isMulti:!0},{className:"backgroundColor-x18oya0d","data-style-src":"MenuList/index.tsx:14"}),{},{children:function(e){var t=e.index,n=e.style;return(0,i.jsx)("div",{style:n,children:c[t]})}}))}},56480:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=p(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),l=n(86957),s=n(60156),c=n(18141),u=p(n(68777)),d=p(n(50803)),f=n(31085);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A=o.default;A(".width-x1849jeq{width:30px}",4e3),A(".height-x1gnnpzl{height:30px}",4e3),A(".display-x1rg5ohu{display:inline-block}",3e3),A(".marginRight-xyo1k6t{margin-right:10px}",4e3),A(".display-x78zum5{display:flex}",3e3),A(".alignItems-x6s0dn4{align-items:center}",3e3),A(".marginLeft-x8x9d4c{margin-left:auto}",4e3),A(".paddingLeft-xcpk43y{padding-left:5px}",4e3),A(".paddingRight-x1nx2rwh{padding-right:5px}",4e3),A(".height-x1v9usgg{height:14px}",4e3),A(".width-x1wc42o8{width:9px}",4e3),A(".display-x3nfvp2{display:inline-flex}",3e3),A(".justifyContent-x1qughib{justify-content:space-between}",3e3),A(".paddingLeft-x1lqa7cf{padding-left:10px}",4e3),A(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),A(".fontSize-xfifm61{font-size:12px}",3e3),A(".fontWeight-xo1l8bm{font-weight:400}",3e3),A(".paddingTop-xw46n3y{padding-top:var(--6-x7nl04)}",4e3),A(".gap-x4pqavk{gap:var(--8-x13c0zs8)}",2e3),A(".position-xixxii4{position:fixed}",3e3),t.A=function(e){var t,n=e.data,r=(0,a.useRef)(null),o=x((0,a.useState)({}),2),p=o[0],m=o[1],g=x((0,a.useState)({x:0,y:0}),2),h=g[0],A=g[1],_=window.innerWidth,S=Object.values(n).flatMap(function(e){return Object.values(e).map(function(e){return e.value})}),w=Math.max.apply(Math,function(e){if(Array.isArray(e))return v(e)}(t=S)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||b(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),O=0;
2return Object.values(n).forEach(function(e){Object.values(e).forEach(function(e){e.value===w&&(O=e.invalid)})}),(0,a.useEffect)(function(){i.select(r.current).selectAll("*").remove();var e=i.select(r.current),t=+e.node().getBoundingClientRect().width-38-38,o=+e.attr("height"),a=i.scaleLinear().range([0,30]).domain([0,w]),s=Array.from({length:24},function(e,t){return t<10?"0".concat(t):"".concat(t)}),c=i.scaleBand().rangeRound([0,t]).padding(.5).domain(s),d=e.append("g").attr("transform","translate(".concat(38,",").concat(0,")")),f=Object.keys(n),p=i.scaleBand().range([0,o-30-0]).domain(f).padding(.1);Object.entries(n).forEach(function(e){var n,r=x(e,2),o=r[0],i=r[1],s=Object.values(i).reduce(function(e,t){return e+t.value},0),f=d.append("g").attr("transform","translate(0, ".concat(null!==(n=p(o))&&void 0!==n?n:0,")"));f.selectAll("rect").data(Object.entries(i)).enter().append("rect").attr("width",c.bandwidth()).attr("x",function(e,t){var n;return null!==(n=c(t<10?"0".concat(t):"".concat(t)))&&void 0!==n?n:0}).attr("y",function(e){var t=x(e,2),n=(t[0],t[1]);return 30-Math.max(0,a(n.value))}).attr("height",function(e){var t=x(e,2),n=(t[0],t[1]);return Math.max(0,a(n.value))}).attr("fill",function(e){var t=x(e,2),n=(t[0],t[1]);return(0,u.default)(n.value,n.invalid)}).on("mouseover",function(e,t){m({time:Number(t[0]),day:o,value:t[1].value,invalid:t[1].invalid,maxValue:w,totalForToday:s}),e.pageX+370>_?A({x:e.pageX-370,y:e.pageY+22,align:"right"}):A({x:e.pageX,y:e.pageY+22,align:"left"})}).on("mouseleave",function(){m({})}),f.append("text").attr("x",-38).attr("y",15).attr("text-anchor","end").html(o),f.append("line").attr("x1",0).attr("y1",31).attr("x2",t).attr("y2",31).attr("stroke",l.colourValues.gray50)});var g=e.append("g").call(i.axisBottom(c)).attr("transform","translate(".concat(38,",").concat(o-30,")")).style("font-size","10px").style("font-weight",700),y=e.append("g").call(i.axisLeft(p).tickFormat(function(e){return e[0]})).attr("transform","translate(".concat(38,",").concat(0,")")).style("font-size","10px").style("font-weight",700);g.select(".domain").remove(),g.selectAll(".tick line").remove(),y.select(".domain").remove(),y.selectAll(".tick line").remove()},[n]),(0,f.jsxs)("div",{children:[(0,f.jsx)("svg",{ref:r,"data-testid":"hourly-heatmap-chart",width:"100%",height:"500"}),(0,f.jsxs)("div",y(y({},{className:"paddingTop-xw46n3y display-x78zum5 alignItems-x6s0dn4 gap-x4pqavk","data-style-src":"Hourly/index.tsx:51"}),{},{children:[(0,f.jsxs)("div",y(y({},{className:"display-x78zum5 alignItems-x6s0dn4 marginLeft-x8x9d4c","data-style-src":"Hourly/index.tsx:28"}),{},{children:[(0,f.jsx)("div",y(y({},{className:"width-x1849jeq height-x1gnnpzl display-x1rg5ohu marginRight-xyo1k6t","data-style-src":"Hourly/index.tsx:22"}),{},{style:{backgroundColor:(0,u.default)(w,O)}})),(0,f.jsx)("em",{children:(0,s.language)("100% in this period has maximum click of :value",{value:(0,c.localiseNumber)(w)})})]})),(null==p?void 0:p.day)&&(0,f.jsx)("div",y(y({},{className:"position-xixxii4","data-style-src":"Hourly/index.tsx:57"}),{},{style:{top:"".concat(h.y,"px"),left:"".concat(h.x,"px")},children:(0,f.jsx)(d.default,{data:p})})),(0,f.jsxs)("div",{children:[(0,s.language)("SIVT"),(0,f.jsxs)("div",y(y({},{className:"display-x3nfvp2 alignItems-x6s0dn4 justifyContent-x1qughib paddingLeft-x1lqa7cf color-xbdn2ka fontSize-xfifm61 fontWeight-xo1l8bm","data-style-src":"Hourly/index.tsx:42"}),{},{children:["0%",(0,f.jsxs)("div",y(y({},{className:"paddingLeft-xcpk43y paddingRight-x1nx2rwh","data-style-src":"Hourly/index.tsx:33"}),{},{children:[(0,f.jsx)("div",y(y({},{className:"display-x1rg5ohu height-x1v9usgg width-x1wc42o8","data-style-src":"Hourly/index.tsx:37"}),{},{style:{backgroundColor:(0,u.default)(100,4)}})),[9,14,19,24,29,34,39,44,49,60].map(function(e){return(0,f.jsx)("div",y(y({},{className:"display-x1rg5ohu height-x1v9usgg width-x1wc42o8","data-style-src":"Hourly/index.tsx:37"}),{},{style:{backgroundColor:(0,u.default)(100,e)}}),e)})]})),"50%+"]}))]})]}))]})}},56583:(e,t,n)=>{"use strict";t.A=function(e){var t,n,r=e.name,c=void 0===r?"":r,d=e.value,f=void 0===d?null:d,y=e.options,h=void 0===y?[]:y,x=e.onFormValue,b=void 0===x?function(){}:x,v=e.disabled,A=void 0!==v&&v,_=e.retainOwnState,S=void 0!==_&&_,w=e["data-testid"],O=void 0===w?"":w,j=u((0,o.useState)(!1),2),k=j[0],E=j[1],N=u((0,o.useState)({top:0,left:0,width:120}),2),I=N[0],P=N[1],T=u((0,o.useState)(null!=f?f:null),2),C=T[0],R=T[1],M=(0,o.useRef)(null),L=(0,o.useRef)(null);(0,o.useEffect)(function(){S&&R(null!=f?f:null)},[f,S]);var D=S?C:f,B=h.find(function(e){return e.value===D});function U(e){var t;return null!==(t=null==e?void 0:e.type)&&void 0!==t?t:"default"}function F(e){return g[e]}function G(){var e,t=null===(e=M.current)||void 0===e?void 0:e.getBoundingClientRect();t&&P({top:t.bottom+m,left:t.left,width:t.width+40})}return(0,o.useLayoutEffect)(function(){if(k)return G(),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)};function e(){G()}},[k]),(0,o.useLayoutEffect)(function(){if(k)return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)};function e(e){var t,n,r,o,a=e.target,i=null!==(t=null===(n=M.current)||void 0===n?void 0:n.contains(null!=a?a:null))&&void 0!==t&&t,l=null!==(r=null===(o=L.current)||void 0===o?void 0:o.contains(null!=a?a:null))&&void 0!==r&&r;i||l||E(!1)}},[k]),(0,s.jsxs)("div",{ref:M,className:(0,i.cx)(p.container),children:[(0,s.jsxs)("button",{type:"button","data-testid":O,className:(0,i.cx)(p.buttonCore,p.button,p[U(B)],A&&p.buttonDisabled),onClick:function(){A||E(function(e){return!e})},disabled:A,"aria-haspopup":"listbox","aria-expanded":k,"aria-label":null!==(t=null==B?void 0:B.label)&&void 0!==t?t:"Select",children:[(0,s.jsx)("span",{className:(0,i.cx)(p.leadDot,F(U(B)).leadDot)}),(0,s.jsx)("span",{className:(0,i.cx)(p.buttonLabel),children:null!==(n=null==B?void 0:B.label)&&void 0!==n?n:""}),!k&&(0,s.jsx)(l.default,{name:"chevron-up",fontSize:8}),k&&(0,s.jsx)(l.default,{name:"chevron-down",fontSize:8})]}),k?(0,a.createPortal)((0,s.jsx)("div",{ref:L,className:(0,i.cx)(p.dropOptions),style:{to
2p:I.top,left:I.left,width:I.width},role:"listbox",children:h.filter(function(e){return!e.hidden}).map(function(e){var t,n=e.value===D,r=F(U(e));return(0,s.jsxs)("button",{type:"button",role:"option","data-testid":"".concat(O,"-option-").concat(e.value),"aria-selected":n,onClick:function(){return function(e){e.value!==D&&(E(!1),S&&R(e.value),b({name:c,value:e.value}))}(e)},className:(0,i.cx)(p.buttonCore,p.dropdownButton,p.menuItem,r.menuHover,n&&p.dropdownButtonActive),children:[(0,s.jsx)("span",{className:(0,i.cx)(p.swatch,r.swatch),children:(0,s.jsx)("span",{className:(0,i.cx)(p.swatchDot,r.swatchDot)})}),(0,s.jsxs)("span",{className:(0,i.cx)(p.optionBody),children:[(0,s.jsx)("span",{className:(0,i.cx)(p.optionLabel),children:null!==(t=e.label)&&void 0!==t?t:""}),e.description?(0,s.jsx)("span",{className:(0,i.cx)(p.optionDescription),children:e.description}):null]}),(0,s.jsx)(l.default,{name:"check",fontSize:14,className:(0,i.cx)(p.optionCheck,n&&p.optionCheckActive)})]},e.value)})}),document.body):null]})};var r=c(n(25751)),o=n(14041),a=n(43144),i=n(99018),l=c(n(79135)),s=n(31085);function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var f=r.default;f(".position-x1n2onr6{position:relative}",3e3),f(".width-xbu5dzu{width:288px}",4e3),f(".position-xixxii4{position:fixed}",3e3),f(".display-x78zum5{display:flex}",3e3),f(".flexDirection-xdt5ytf{flex-direction:column}",3e3),f(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),f(".padding-x1ruevkc{padding:6px}",1e3),f(".border-x8msmez{border:1px solid var(--gray250-x1kpk87u)}",1e3),f(".borderRadius-xixl9f9{border-radius:14px}",2e3),f(".zIndex-xfo81ep{z-index:1000}",3e3),f(".boxShadow-x1isuttu{box-shadow:0 12px 24px -8px var(--gray300-x1xk3734)}",3e3),f(".opacity-x197sbye{opacity:.6}",3e3),f(".cursor-x1h6gzvc{cursor:not-allowed}",3e3),f(".pointerEvents-x47corl{pointer-events:none}",3e3),f(".paddingLeft-xyndbda{padding-left:9px}",4e3),f(".paddingRight-x10dlkkm{padding-right:9px}",4e3),f(".fontSize-x1j61zf2{font-size:16px}",3e3),f(".alignItems-x6s0dn4{align-items:center}",3e3),f(".gap-x883omv{gap:10px}",2e3),f(".width-xh8yej3{width:100%}",4e3),f(".height-x1vqgdyp{height:40px}",4e3),f(".fontWeight-xk50ysn{font-weight:500}",3e3),f(".flexShrink-x2lah0s{flex-shrink:0}",3e3),f(".flexGrow-x1c4vz4f{flex-grow:0}",3e3),f(".cursor-x1ypdohk{cursor:pointer}",3e3),f(".opacity-x1hc1fzr{opacity:1}",3e3),f(".transition-x6wyh7u{transition:filter .12s cubic-bezier(.2,.8,.2,1)}",2e3),f(".width-xq1dxzn{width:160px}",4e3),f(".borderRadius-xur7f20{border-radius:8px}",2e3),f(".border-xszdvtv{border:1.5px solid transparent}",1e3),f(".opacity-x1us6l5c{opacity:.8}",3e3),f(".minHeight-x879a55{min-height:60px}",4e3),f(".height-xt7dq6l{height:auto}",4e3),f(".paddingTop-x889kno{padding-top:10px}",4e3),f(".paddingBottom-x1a8lsjc{padding-bottom:10px}",4e3),f(".opacity-x1o7uuvo:hover{opacity:1}",3130),f(".cursor-x1w9wu52{cursor:unset}",3e3),f(".flex-x98rzlu{flex:1}",2e3),f(".textAlign-xdpxx8g{text-align:left}",3e3),f(".width-x1wc42o8{width:9px}",4e3),f(".height-xegnrdp{height:9px}",4e3),f(".borderRadius-x10hpsqq{border-radius:9999px}",2e3),f(".backgroundColor-x3r3zc0{background-color:var(--gray600-x139mciy)}",3e3),f(".backgroundColor-x1b9x17z{background-color:var(--oldBrand700-xx6j7i3)}",3e3),f(".backgroundColor-x1q72j15{background-color:var(--error600-x1indqeg)}",3e3),f(".backgroundColor-xkfekr6{background-color:var(--warning700-xlxq2tu)}",3e3),f(".backgroundColor-xptrma{background-color:var(--success600-x1k6hy5b)}",3e3),f(".backgroundColor-x1gvabdn{background-color:var(--primary600-x1h1lpbu)}",3e3),f(".backgroundColor-x1fk51gv{background-color:var(--warning800-x1j11kn7)}",3e3),f(".backgroundColor-x2ztp3g{background-color:var(--gray500-xplr4j6)}",3e3),f(".backgroundColor-xjbqb8w{background-color:transparent}",3e3),f(".backgroundColor-x1is1enf:hover{background-color:var(--gray100-x1llswo5)}",3130),f(".backgroundColor-x1mcq17q:hover{background-color:var(--oldBrand100-x1o59ms7)}",3130),f(".backgroundColor-x1ch7e23:hover{background-color:var(--error50-x1f3qy36)}",3130),f(".backgroundColor-x9r4o8q:hover{background-color:var(--warning50-xtmumxw)}",3130),f(".backgroundColor-xbf9foq:hover{background-color:var(--success50-x1xjgkj9)}",3130),f(".backgroundColor-xxxrsdu:hover{background-color:var(--primary25-x1i18ho1)}",3130),f(".backgroundColor-x1vjpyc2:hover{background-color:var(--primary50-xfg0wjs)}",3130),f(".display-x3nfvp2{display:inline-flex}",3e3),f(".justifyContent-xl56j7k{justify-content:center}",3e3),f(".width-x1849jeq{width:30px}",4e3),f(".height-x1gnnpzl{height:30px}",4e3),f(".borderRadius-xu4hgxq{border-radius:7px}",2e3),f(".width-x1fsd2vl{width:10px}",4e3),f(".height-x170jfvy{height:10px}",4e3),f(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),f(".backgroundColor-xf6q9j8{background-color:var(--oldBrand100-x1o59ms7)}",3e3),f(".backgroundColor-x1ssdy5{background-color:var(--error50-x1f3qy36)}",3e3),f(".backgroundColor-x1c48dnr{background-color:var(--warning50-xtmumxw)}",3e3),f(".backgroundColor-xb4lrnj{background-color:var(--success50-x1xjgkj9)}",3e3),f(".backgroundColor-xxjbeky{background-color:var(--primary25-x1i18ho1)}",3e3),f(".backgroundColor-x1qjp85{background-color:var(--primary50-xfg0wjs)}",3e3),f(".minWidth-xeuugli{min-width:0}",4e3),f(".alignItems-x1cy8zhl{align-items:flex-start}",3e3),f(".lineHeight-x132q4wb{line-height:1.25}",3e3),f(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),f(".marginTop-xr9ek0c{margin-top:2px}",4e3),f(".fontSize-xfifm61{font-size:12px}",3e3),f(".lineHeight-xwn7fz2{line-height:1.3}",3e3),f(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),f(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}
2",3e3),f(".opacity-xg01cxk{opacity:0}",3e3),f(".color-xb0o5a8{color:var(--oldBrand700-xx6j7i3)}",3e3),f(".color-x1iviald{color:var(--error600-x1indqeg)}",3e3),f(".color-x5msaau{color:var(--warning700-xlxq2tu)}",3e3),f(".color-x1rhnk1{color:var(--success600-x1k6hy5b)}",3e3),f(".color-xmrs72t{color:var(--primary600-x1h1lpbu)}",3e3),f(".color-x1bm00ld{color:var(--warning800-x1j11kn7)}",3e3),f(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3);var p={container:{position:"position-x1n2onr6",width:"width-xbu5dzu",$$css:"DropdownToggle/index.tsx:14"},dropOptions:{position:"position-xixxii4",display:"display-x78zum5",flexDirection:"flexDirection-xdt5ytf",backgroundColor:"backgroundColor-x18oya0d",padding:"padding-x1ruevkc",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,border:"border-x8msmez",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,borderRadius:"borderRadius-xixl9f9",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,zIndex:"zIndex-xfo81ep",boxShadow:"boxShadow-x1isuttu",$$css:"DropdownToggle/index.tsx:18"},buttonDisabled:{opacity:"opacity-x197sbye",cursor:"cursor-x1h6gzvc",pointerEvents:"pointerEvents-x47corl",$$css:"DropdownToggle/index.tsx:29"},buttonCore:{paddingLeft:"paddingLeft-xyndbda",paddingRight:"paddingRight-x10dlkkm",paddingInlineStart:null,paddingInlineEnd:null,fontSize:"fontSize-x1j61zf2",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",gap:"gap-x883omv",rowGap:null,columnGap:null,width:"width-xh8yej3",height:"height-x1vqgdyp",fontWeight:"fontWeight-xk50ysn",flexShrink:"flexShrink-x2lah0s",flexGrow:"flexGrow-x1c4vz4f",cursor:"cursor-x1ypdohk",opacity:"opacity-x1hc1fzr",transition:"transition-x6wyh7u",transitionBehavior:null,transitionDelay:null,transitionDuration:null,transitionProperty:null,transitionTimingFunction:null,$$css:"DropdownToggle/index.tsx:34"},button:{width:"width-xq1dxzn",borderRadius:"borderRadius-xur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,opacity:"opacity-x1hc1fzr",border:"border-xszdvtv",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:"DropdownToggle/index.tsx:50"},dropdownButton:{opacity:"opacity-x1us6l5c",borderRadius:"borderRadius-xur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,minHeight:"minHeight-x879a55",height:"height-xt7dq6l",paddingTop:"paddingTop-x889kno",paddingBottom:"paddingBottom-x1a8lsjc",":hover_opacity":"opacity-x1o7uuvo",$$css:"DropdownToggle/index.tsx:56"},dropdownButtonActive:{cursor:"cursor-x1w9wu52",opacity:"opacity-x1hc1fzr",$$css:"DropdownToggle/index.tsx:67"},buttonLabel:{flex:"flex-x98rzlu",flexGrow:null,flexShrink:null,flexBasis:null,textAlign:"textAlign-xdpxx8g",$$css:"DropdownToggle/index.tsx:71"},leadDot:{width:"width-x1wc42o8",height:"height-xegnrdp",borderRadius:"borderRadius-x10hpsqq",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,flexShrink:"flexShrink-x2lah0s",$$css:"DropdownToggle/index.tsx:75"},leadDotDefault:{backgroundColor:"backgroundColor-x3r3zc0",$$css:"DropdownToggle/index.tsx:81"},leadDotPrimary:{backgroundColor:"backgroundColor-x1b9x17z",$$css:"DropdownToggle/index.tsx:82"},leadDotError:{backgroundColor:"backgroundColor-x1q72j15",$$css:"DropdownToggle/index.tsx:83"},leadDotWarning:{backgroundColor:"backgroundColor-xkfekr6",$$css:"DropdownToggle/index.tsx:84"},leadDotSuccess:{backgroundColor:"backgroundColor-xptrma",$$css:"DropdownToggle/index.tsx:85"},leadDotPending:{backgroundColor:"backgroundColor-x1gvabdn",$$css:"DropdownToggle/index.tsx:86"},leadDotEditor:{backgroundColor:"backgroundColor-x1gvabdn",$$css:"DropdownToggle/index.tsx:87"},leadDotManager:{backgroundColor:"backgroundColor-x1fk51gv",$$css:"DropdownToggle/index.tsx:88"},leadDotUser:{backgroundColor:"backgroundColor-x2ztp3g",$$css:"DropdownToggle/index.tsx:89"},menuItem:{borderRadius:"borderRadius-xur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"backgroundColor-xjbqb8w",$$css:"DropdownToggle/index.tsx:90"},menuItemDefaultHover:{":hover_backgroundColor":"backgroundColor-x1is1enf",$$css:"DropdownToggle/index.tsx:94"},menuItemPrimaryHover:{":hover_backgroundColor":"backgroundColor-x1mcq17q",$$css:"DropdownToggle/index.tsx:95"},menuItemErrorHover:{":hover_backgroundColor":"backgroundColor-x1ch7e23",$$css:"DropdownToggle/index.tsx:96"},menuItemWarningHover:{":hover_backgroundColor":"backgroundColor-x9r4o8q",$$css:"DropdownToggle/index.tsx:97"},menuItemSuccessHover:{":hover_backgroundColor":"backgroundColor-xbf9foq",$$css:"DropdownToggle/index.tsx:98"},menuItemPendingHover:{":hover_backgroundColor":"backgroundColor-xxxrsdu",$$css:"DropdownToggle/index.tsx:99"},menuItemEditorHover:{":hover_backgroundColor":"backgroundColor-x1vjpyc2",$$css:"DropdownToggle/index.tsx:100"},menuItemManagerHover:{":hover_backgroundColor":"backgroundColor-x9r4o8q",$$css:"DropdownToggle/index.tsx:101"},menuItemUserHover:{":hover_backgroundColor":"backgroundColor-x1is1enf",$$css:"DropdownToggle/index.tsx:102"},swatch:{display:"display-x3nfvp2",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",width:"width-x1849jeq",he
2ight:"height-x1gnnpzl",borderRadius:"borderRadius-xu4hgxq",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,flexShrink:"flexShrink-x2lah0s",$$css:"DropdownToggle/index.tsx:103"},swatchDot:{width:"width-x1fsd2vl",height:"height-x170jfvy",borderRadius:"borderRadius-x10hpsqq",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:"DropdownToggle/index.tsx:112"},swatchDefault:{backgroundColor:"backgroundColor-xq18l50",$$css:"DropdownToggle/index.tsx:117"},swatchPrimary:{backgroundColor:"backgroundColor-xf6q9j8",$$css:"DropdownToggle/index.tsx:118"},swatchError:{backgroundColor:"backgroundColor-x1ssdy5",$$css:"DropdownToggle/index.tsx:119"},swatchWarning:{backgroundColor:"backgroundColor-x1c48dnr",$$css:"DropdownToggle/index.tsx:120"},swatchSuccess:{backgroundColor:"backgroundColor-xb4lrnj",$$css:"DropdownToggle/index.tsx:121"},swatchPending:{backgroundColor:"backgroundColor-xxjbeky",$$css:"DropdownToggle/index.tsx:122"},swatchEditor:{backgroundColor:"backgroundColor-x1qjp85",$$css:"DropdownToggle/index.tsx:123"},swatchManager:{backgroundColor:"backgroundColor-x1c48dnr",$$css:"DropdownToggle/index.tsx:124"},swatchUser:{backgroundColor:"backgroundColor-xq18l50",$$css:"DropdownToggle/index.tsx:125"},swatchDotDefault:{backgroundColor:"backgroundColor-x3r3zc0",$$css:"DropdownToggle/index.tsx:126"},swatchDotPrimary:{backgroundColor:"backgroundColor-x1b9x17z",$$css:"DropdownToggle/index.tsx:127"},swatchDotError:{backgroundColor:"backgroundColor-x1q72j15",$$css:"DropdownToggle/index.tsx:128"},swatchDotWarning:{backgroundColor:"backgroundColor-xkfekr6",$$css:"DropdownToggle/index.tsx:129"},swatchDotSuccess:{backgroundColor:"backgroundColor-xptrma",$$css:"DropdownToggle/index.tsx:130"},swatchDotPending:{backgroundColor:"backgroundColor-x1gvabdn",$$css:"DropdownToggle/index.tsx:131"},swatchDotEditor:{backgroundColor:"backgroundColor-x1gvabdn",$$css:"DropdownToggle/index.tsx:132"},swatchDotManager:{backgroundColor:"backgroundColor-x1fk51gv",$$css:"DropdownToggle/index.tsx:133"},swatchDotUser:{backgroundColor:"backgroundColor-x2ztp3g",$$css:"DropdownToggle/index.tsx:134"},optionBody:{flex:"flex-x98rzlu",flexGrow:null,flexShrink:null,flexBasis:null,minWidth:"minWidth-xeuugli",display:"display-x78zum5",flexDirection:"flexDirection-xdt5ytf",alignItems:"alignItems-x1cy8zhl",$$css:"DropdownToggle/index.tsx:135"},optionLabel:{fontSize:"fontSize-x1j61zf2",lineHeight:"lineHeight-x132q4wb",color:"color-x18k1rwp",textAlign:"textAlign-xdpxx8g",$$css:"DropdownToggle/index.tsx:142"},optionDescription:{marginTop:"marginTop-xr9ek0c",fontSize:"fontSize-xfifm61",lineHeight:"lineHeight-xwn7fz2",color:"color-x1r9fet4",textAlign:"textAlign-xdpxx8g",$$css:"DropdownToggle/index.tsx:148"},optionCheck:{color:"color-x14ptq3k",opacity:"opacity-xg01cxk",$$css:"DropdownToggle/index.tsx:155"},optionCheckActive:{opacity:"opacity-x1hc1fzr",$$css:"DropdownToggle/index.tsx:159"},default:{backgroundColor:"backgroundColor-xq18l50",color:"color-x1r9fet4",$$css:"DropdownToggle/index.tsx:162"},primary:{backgroundColor:"backgroundColor-xf6q9j8",color:"color-xb0o5a8",$$css:"DropdownToggle/index.tsx:166"},error:{backgroundColor:"backgroundColor-x1ssdy5",color:"color-x1iviald",$$css:"DropdownToggle/index.tsx:170"},warning:{backgroundColor:"backgroundColor-x1c48dnr",color:"color-x5msaau",$$css:"DropdownToggle/index.tsx:174"},success:{backgroundColor:"backgroundColor-xb4lrnj",color:"color-x1rhnk1",$$css:"DropdownToggle/index.tsx:178"},pending:{backgroundColor:"backgroundColor-xxjbeky",color:"color-xmrs72t",$$css:"DropdownToggle/index.tsx:182"},editor:{backgroundColor:"backgroundColor-x1qjp85",color:"color-xmrs72t",$$css:"DropdownToggle/index.tsx:186"},manager:{backgroundColor:"backgroundColor-x1c48dnr",color:"color-x1bm00ld",$$css:"DropdownToggle/index.tsx:190"},user:{backgroundColor:"backgroundColor-xq18l50",color:"color-xbdn2ka",$$css:"DropdownToggle/index.tsx:194"}},m=8,g={default:{menuHover:p.menuItemDefaultHover,swatch:p.swatchDefault,swatchDot:p.swatchDotDefault,leadDot:p.leadDotDefault},primary:{menuHover:p.menuItemPrimaryHover,swatch:p.swatchPrimary,swatchDot:p.swatchDotPrimary,leadDot:p.leadDotPrimary},error:{menuHover:p.menuItemErrorHover,swatch:p.swatchError,swatchDot:p.swatchDotError,leadDot:p.leadDotError},warning:{menuHover:p.menuItemWarningHover,swatch:p.swatchWarning,swatchDot:p.swatchDotWarning,lead
2Dot:p.leadDotWarning},success:{menuHover:p.menuItemSuccessHover,swatch:p.swatchSuccess,swatchDot:p.swatchDotSuccess,leadDot:p.leadDotSuccess},pending:{menuHover:p.menuItemPendingHover,swatch:p.swatchPending,swatchDot:p.swatchDotPending,leadDot:p.leadDotPending},editor:{menuHover:p.menuItemEditorHover,swatch:p.swatchEditor,swatchDot:p.swatchDotEditor,leadDot:p.leadDotEditor},manager:{menuHover:p.menuItemManagerHover,swatch:p.swatchManager,swatchDot:p.swatchDotManager,leadDot:p.leadDotManager},user:{menuHover:p.menuItemUserHover,swatch:p.swatchUser,swatchDot:p.swatchDotUser,leadDot:p.leadDotUser}}},56748:(e,t,n)=>{"use strict";e.exports=n.p+"cc95bdd215616d98850a.svg"},56782:(e,t,n)=>{"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n){var r=[];if(!t)return r;if(n)for(var o=0;o<t.length;o+=1)r.push(t[o]);return r}function i(e,t){var n=r(t),o=n.findIndex(function(t){return t===e});return-1===o?n.push(e):n.splice(o,1),n}function l(e,t){return-1!==t.findIndex(function(t){return t===e})}function s(e,t){var n=r(t),o=n.findIndex(function(t){return t===e});return-1!==o&&n.splice(o,1),n}function c(e,t){var n=[];return e.forEach(function(e){n.push(e[t])}),n}n.r(t),n.d(t,{getArrayOfColumnValues:()=>c,isSelected:()=>l,removeRow:()=>s,selectItem:()=>i,toggleSelectAll:()=>a})},56895:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n(14041);var r=n(93069),o=n(52193),a=n(31085);const i=function(e){var t=e.primaryData,n=e.secondaryData;return"months"!==e.displayBy?(0,a.jsx)(r.A,{secondaryData:n,primaryData:t}):(0,a.jsx)(o.A,{secondaryData:n,primaryData:t})}},56926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(25751)),o=i(n(30087)),a=n(31085);function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return(0,a.jsx)("div",c(c({},{className:"width-x65xoit","data-style-src":"Placeholder/index.tsx:6"}),{},{children:(0,a.jsx)(o.default,{type:"textRow",ready:!1,showLoadingAnimation:!0})}))}(0,r.default)(".width-x65xoit{width:70%}",4e3),d.displayName="Table.Placeholder",t.default=d},57045:(e,t,n)=>{"use strict";n.d(t,{A:()=>l}),n(14041);var r=n(99018),o=n(22453),a=n(31085),i=(0,r.createUseStyles)(function(){return{container:{maxHeight:"100%",overflowY:"auto",overflowX:"hidden"}}});const l=function(e){var t=e.data,n=e.handleClick,r=i();return(0,a.jsx)("div",{className:r.container,children:t.map(function(e,t){return(0,a.jsx)(o.A,{item:e,handleClick:n},t)})})}},57244:(e,t,n)=>{"use strict";e.exports=n.p+"9e0a6e3f1d9387fe24d3.svg"},57250:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r,o=n(14041),a=n(89748),i=n(88133),l=n(77730),s=n(47352),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=n(76449),h=null!==(r=null==y?void 0:y.default)&&void 0!==r?r:y;function x(e){var t,n=e.filters,r=e.onFilterChange,u=m((0,l.A)(),1)[0],d=m((0,o.useState)({searchKeys:{search_term:""},sortKey:"search_term",sortOrder:"asc",pagination:{per_page:40,current_page:1}}),2),p=d[0],g=d[1],y=p.searchKeys.search_term,x=sessionStorage.getItem("workspace"),b=y?"&search_term=".concat(encodeURIComponent(y)):"",v=x?"&workspace_context=".concat((0,s.A)(x)):"",A=(0,i.Ay)("/aw/customers/search?df_dmin=0&df_dmax=0&df_interval=day&platform=google \n&only_show_hidden=false&include_hidden=false&show_empty=true&include_monitored=true&include_protected=true&include_disabled=false&sort_key=".concat(p.sortKey,"&sort_order=").concat(p.sortOrder,"&limit=").concat(p.pagination.per_page,"&page=").concat(p.pagination.current_page).concat(null!=u&&null!==(t=u.selectedWorkspace)&&void 0!==t&&t.id?"&workspace_context=".concat((0,s.A)(u.selectedWorkspace.id)):"").concat(b).concat(v)).data;return(0,c.jsx)(h.SearchedSelection,{config:{labelIdentifier:(0,a.A)("Accounts"),col1Header:(0,a.A)("Ad Account"),col1DataKey:"descriptive_name",apiSortKey:"search_term",apiResponseDataKey:"data",maxNoPages:10,filterName:"accounts.selection"},apiData:A,requestParams:p,onRequestParams:g,initialValues:n,onFilterChange:function(e){r(f(f({},n),e))}})}},57299:(e,t,n)=>{"use strict";e.exports=n.p+"5b47596da1056fa6bfdd.svg"},57345:(e,t,n)=>{"use strict";e.exports=n.p+"9d5eb264ce007cb9eeb6.svg"},57634:(e,t,n)=>{"use strict";e.exports=n.p+"2dc8471d9210f92d66bc.svg"},57670:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(16222),o=n(31085);function a(e){var t=e.children,n=e.containerBreakpoints;return(0,o.jsx)(r.default,{containerBreakpoints:n,children:t})}a.displayName="ResponsiveGrid";const i=a},57692:(e,t,n)=>{"use strict";e.exports=n.p+"47b2ad616a3a8b0d1245.svg"},57752:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(14041),o=n(73657),a=n(89748),i=n(56197),l=n(9260),s=n(28426),c=n(27805),u=n(62161),d=n(98536),f=n(83223),p=n(60709),m=n(31085);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?y(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const _=function(){var e=b((0,r.useState)([]),2),t=e[0],n=e[1],g=b((0,r.useState)([]),2),y=g[0],x=g[1],_=b((0,r.useState)(0),2),S=_[0],w=_[1],O=(0,d.useApi)({url:"/ivt-controls",sortKey:"workspace",sortOrder:"asc",noDates:!0});return(0,m.jsxs)(s.A.Page,{type:"settings",children:[(0,m.jsx)(c.default,{type:"settings",title:(0,a.A)("IVT Controls"),text:(0,a.A)("IVT controls allow you to choose how aggressively Lunio protects against invalid traffic, helping you align protection with your goals and risk tolerance"),contentRight:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l.default,{preset:"outline",as:o.Link,to:"/ivt-controls/change-log","data-testid":"change-log-button",iconRight:["far","clock-rotate-left"],className:"mr-3",children:(0,a.A)("Change Log")}),(0,m.jsx)(l.default,{preset:"primary",onClick:function(){var e;x(function(e){if(Array.isArray(e))return A(e)}(e=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},"data-testid":"update-selected-button",children:(0,a.A)("Update Selected")})]})}),(0,m.jsx)(u.A,h(h({},O.tableConnector),{},{noDataStyle:"secondary",leftPinnedColumns:1,noDataTitle:(0,a.A)("No workspaces found"),noDataSubTitle:(0,a.A)("No IVT controls configured yet"),isSelectable:!0,onSelectedRows:n,resetSelectionTrigger:S,children:function(e){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("th",{"data-sortable-id":"workspace",children:(0,a.A)("Worksp
2ace")}),(0,m.jsx)("th",{"data-sortable-id":"last_updated",children:(0,a.A)("Last Updated")}),(0,m.jsx)("th",{"data-sortable-id":"protection_level",children:(0,a.A)("Protection Level")}),(0,m.jsx)("th",{"data-align":"right",children:(0,a.A)("Update")})]})}),(0,m.jsxs)("tbody",{children:[(0,m.jsx)("td",{children:null==e?void 0:e.workspace}),(0,m.jsx)("td",{children:(null==e?void 0:e.last_updated)&&(0,f.GP)(new Date(null==e?void 0:e.last_updated),"MMM d, H:mm")}),(0,m.jsx)("td",{children:(0,m.jsxs)(i.default,{colourName:"success",children:["HIGH"===(null==e?void 0:e.protection_level)&&(0,a.A)("Aggressive"),"MEDIUM"===(null==e?void 0:e.protection_level)&&(0,a.A)("Balanced"),"LOW"===(null==e?void 0:e.protection_level)&&(0,a.A)("Cautious")]})}),(0,m.jsx)("td",{"data-align":"right",children:(0,m.jsx)(l.default,{preset:"outline",size:"sm",iconLeft:"pencil","data-testid":"edit-ivt-level-button-".concat(null==e?void 0:e.workspace),onClick:function(){w(function(e){return e+1}),x(e&&[e])}})})]})]})}})),(0,m.jsx)(p.A,{isOpen:y.length>0,onClose:function(){x([]),w(function(e){return e+1})},workspaces:y,queryKey:O.fullOutgoingQuery})]})}},57804:(e,t,n)=>{"use strict";e.exports=n.p+"14acf9775408e0fa5032.svg"},57917:(e,t,n)=>{"use strict";e.exports=n.p+"2dc4d2fa0f6aba7c3e79.svg"},58228:(e,t,n)=>{"use strict";e.exports=n.p+"95bf430f3a959821d25a.svg"},58279:e=>{e.exports={"hello i am test text":"hello i am test text","The cost of :quantity apples is :money pounds":"The cost of :quantity apples is :money pounds","I have :numberOf fingers":"I have :numberOf fingers","Sign in to Lunio":"Sign in to Lunio","Must be a valid email":"Must be a valid email","Password must be at least 8 digits":"Password must be at least 8 digits",Password:"Password","Enter password":"Enter password","Keep me logged in on this device":"Keep me logged in on this device","Sign In":"Sign In","Sign up":"Sign up","Need an account?":"Need an account?","Forgot your password?":"Forgot your password?","Forgot Your Password?":"Forgot Your Password?","Enter your email below and we will send a message to rest your password":"Enter your email below and we will send a message to rest your password","Must be a valid email address":"Must be a valid email address",Email:"Email","Enter email":"Enter email","Reset My Password":"Reset My Password","Sign up to Lunio":"Sign up to Lunio","Password must contain a number":"Password must contain a number","Password must contain a special character":"Password must contain a special character","Password must an upper case letter":"Password must an upper case letter","Password must contain a lower case letter":"Password must contain a lower case letter","Password must not contain any spaces":"Password must not contain any spaces","The passwords you have entered don't match!":"The passwords you have entered don't match!","Email *":"Email *","Email here":"Email here","Password *":"Password *","Password Here":"Password Here","Confirm Password *":"Confirm Password *","Password is at least 8 characters":"Password is at least 8 characters","Password contains a number":"Password contains a number","Password contains a special character":"Password contains a special character","Password contains an upper case letter":"Password contains an upper case letter","Password contains a lower case letter":"Password contains a lower case letter","Password does not contain a space":"Password does not contain a space","Sign Up":"Sign Up","Already have an account?":"Already have an account?","We have sent you an email containing a password reset code. Please enter it below, along with your new password.":"We have sent you an email containing a password reset code. Please enter it below, along with your new password.","Code must be a number":"Code must be a number",Code:"Code","Enter Code":"Enter Code","New Password":"New Password","Enter New Password":"Enter New Password","New Password Again":"New Password Again","Enter New Password Again":"Enter New Password Again","Verify your account":"Verify your account","We have sent a code to your registered email. Please enter the code below to verify your account.":"We have sent a code to your registered email. Please enter the code below to verify your account.","Verification Code":"Verification Code","
2Enter code here":"Enter code here","Resend it":"Resend it","Didn't receive a code?":"Didn't receive a code?","Didn't receive a code?":"Didn't receive a code?","Values don't match":"Values don't match","Must be a whole number":"Must be a whole number","Must be letters only":"Must be letters only","Must must contain lower case letter":"Must must contain lower case letter","Must contain an upper case letter":"Must contain an upper case letter","Must be contain a special character":"Must be contain a special character","Must contain a number":"Must contain a number","Must be min length of :min":"Must be min length of :min","Must not contain space":"Must not contain space",Status:"Status","IP Address":"IP Address","Device Type":"Device Type",Timestamp:"Timestamp",Domain:"Domain",Country:"Country",Desktop:"Desktop",Mobile:"Mobile",Tablet:"Tablet","Connected TV":"Connected TV",Bot:"Bot","Allowed-List":"Allowed-List",Legitimate:"Legitimate",Suspicious:"Suspicious",Invalid:"Invalid","View the clicks being monitored by your Lunio account":"View the clicks being monitored by your Lunio account","Clicks Log":"Clicks Log",All:"All",Other:"Other",Keyword:"Keyword","Audit Trail":"Audit Trail","Are you sure you want to manually add :ip to your IP exclusions?":"Are you sure you want to manually add :ip to your IP exclusions?","Exclude IP":"Exclude IP",Cancel:"Cancel","IP successfully added to exclusions list.":"IP successfully added to exclusions list.","Error adding IP to exclusions - please contact support.":"Error adding IP to exclusions - please contact support.","Ban IP":"Ban IP","All Clicks":"All Clicks","Clicked at":"Clicked at","Return to Lunio app":"Return to Lunio app",Dashboard:"Dashboard",Overview:"Overview","Ads Accounts":"Ads Accounts","Ads Campaigns":"Ads Campaigns",Analytics:"Analytics",Exclusions:"Exclusions",Conversions:"Conversions","Websites Protected":"Websites Protected",Locations:"Locations",Back:"Back","Viewing Data for :title":"Viewing Data for :title","Receiving Data":"Receiving Data","Clicks from Legitimate Sources":"Clicks from Legitimate Sources","No Data: Re-sync with Google":"No Data: Re-sync with Google","Clicks from Suspicious Sources":"Clicks from Suspicious Sources","Clicks from Invalid Sources":"Clicks from Invalid Sources","No Data":"No Data","Cost of clicks from Invalid Sources":"Cost of clicks from Invalid Sources","N/A":"N/A","Active Exclusions":"Active Exclusions",IPs:"IPs","Prevented Invalid Clicks":"Prevented Invalid Clicks","What are prevented clicks?":"What are prevented clicks?","Re-Allocated Budget":"Re-Allocated Budget","What is re-allocated budget?":"What is re-allocated budget?","Traffic Health Uplift":"Traffic Health Uplift","What is traffic health uplift?":"What is traffic health uplift?","Legitimate Users":"Legitimate Users","Suspicious Users":"Suspicious Users","Invalid Users":"Invalid Users","Back to Site":"Back to Site","Loading...":"Loading...","Good Morning, ":"Good Morning, ","Good Afternoon, ":"Good Afternoon, ","Good Evening, ":"Good Evening, ","Platforms Active":"Platforms Active",Summary:"Summary","Your Google Ads data is updating and will be complete shortly.":"Your Google Ads data is updating and will be complete shortly.","There was a problem updating your Google Ads data. Make sure you have a valid access token within the tokens page of settings area":"There was a problem updating your Google Ads data. Make sure you have a valid access token within the tokens page of settings area","An active subscription is required to do that.":"An active subscription is required to do that.",equals:"equals","is between":"is between","Total Clicks":"Total Clicks","Protected only":"Protected only","Monitored only":"Monitored only","Protected and monitored":"Protected and monitored",contains:"contains","is greater than":"is greater than","is less than":"is less than","is equal to":"is equal to","Enter email address":"Enter email address","Export to CSV":"Export to CSV","Sending to":"Sending to",Export:"Export","All accounts":"All accounts",account:"account",accounts:"accounts",Accounts:"Accounts","Click type":"Click type","Date range":"Date range","You're exporting":"You're exporting","Enter an email address":"Enter an email address","Processing report...":"Processing report...","Report failed to process":"Report failed to process","Something went wrong!":"Something went wrong!","Favourite updated for":"Favourite updated for","Status updated for":"Status updated for","Status was updated for multiple accounts":"Status was updated for multiple accounts","Your previous changes are in progress, please come back later to try again.":"Your previous changes are in progress, please come back later to try again.",Protected:"Protected",Monitored:"Monitored",Disabled:"Disabled",Hidden:"Hidden","Update In Progress. During this process, you may see the old status - please wait a few minutes before trying again":"Update In Progress. During this process, you may see the old status - please wait a few minutes before trying again",Device:"Device",Day:"Day",Location:"Location",Network:"Network","Ad Stats":"Ad Stats",Targeting:"Targeting",Campaign:"Campaign",Placement:"Placement","Website protected":"Website protected","Websites protected":"Websites protected","Match types":"Match types","There is no data to display. Please select a longer date range.":"There is no data to display. Please select a longer date range.","Showing :length :labelIdentifier":"Showing :length :labelIdentifier","Showing All :labelIdentifier":"Showing All :labelIdentifier","Ad Account":"Ad Account","Search :labelIdentifier":"Search :labelIdentifier","Showing :length of :total selected":"Showing :length of :total selected","All :labelIdentifier selected":"All :labelIdentifier selected",Filter:"Filter",Showing:"Showing","Choose a maximum of 100 specific accounts or select all.":"Choose a maximum of 100 specific accounts or select all.","Loading Results...":"Loading Results...","No Results Found":"No Results Found",Clear:"Clear","Apply Filter":"Apply Filter","Google Ads Accounts":"Google Ads Accounts","Manage your Lunio settings at the Google Ads account level":"Manage your Lunio settings at the Google Ads account level","Google Ads Campaigns":"Google Ads Campaigns","Manage your Lunio settings at the Google Ads campaign level":"Manage your Lunio settings at the Google Ads campaign level",Placements:"Placements","Account Name":"Account Name","Account ID":"Account ID","Starts With":"Starts With","starts with":"starts with","Account Status":"Account Status","Include Hidden":"Include Hidden","Include Protected":"Include Protected","Include Disabled":"Include Disabled","Include Monitored":"Include Monitored","Campaign Name":"Campaign Name","Campaign ID":"C
2ampaign ID","Campaign Status":"Campaign Status",or:"or","Audit history for clicks from a specific IP address":"Audit history for clicks from a specific IP address","Legitimate Clicks":"Legitimate Clicks","Suspicious Clicks":"Suspicious Clicks","SIVT Clicks":"SIVT Clicks","See which interactions with your ads triggered an invalid flag within the Lunio system.":"See which interactions with your ads triggered an invalid flag within the Lunio system.",Contains:"Contains","View by":"View by","View currently active IP exclusions across your Google Ads account":"View currently active IP exclusions across your Google Ads account","Track & audit conversions across your campaigns":"Track & audit conversions across your campaigns","Insights Hub":"Insights Hub",USA:"USA",Region:"Region","IP blocks added successfully!":"IP blocks added successfully!","Uh Oh!":"Uh Oh!","Your screen size isnât supported - please access Lunio from a screen with a resolution of 960px or greater":"Your screen size isnât supported - please access Lunio from a screen with a resolution of 960px or greater","No results found":"No results found","First page of results":"First page of results","Previous page of results":"Previous page of results","Next page of results":"Next page of results","Last page of results":"Last page of results","Account settings":"Account settings",Account:"Account",Close:"Close","Close modal":"Close modal","Active Platform Click Breakdown":"Active Platform Click Breakdown","Sort by :id ascending":"Sort by :id ascending","Sort by :id descending":"Sort by :id descending","Platform Health":"Platform Health","Not active":"Not active","Active Platforms Health":"Active Platforms Health","Do you want to continue?":"Do you want to continue?",Continue:"Continue","Are you sure you want to protect this account? This will protect the account for all users in your organisation.":"Are you sure you want to protect this account? This will protect the account for all users in your organisation.","Are you sure you want to disable this account? This will disable the account for all users in your organisation and stop monitoring & protection on it.":"Are you sure you want to disable this account? This will disable the account for all users in your organisation and stop monitoring & protection on it.","Are you sure you want to only monitor this account? The account will be monitored for all users in your organisation but not protected.":"Are you sure you want to only monitor this account? The account will be monitored for all users in your organisation but not protected.","Are you sure you want to hide this account? This will hide the account for all users in your organisation and stop monitoring & protection on it.":"Are you sure you want to hide this account? This will hide the account for all users in your organisation and stop monitoring & protection on it.",hidden:"hidden","Are you sure you want to protect this campaign? This will protect the campaign for all users in your organisation.":"Are you sure you want to protect this campaign? This will protect the campaign for all users in your organisation.","Are you sure you want to disable this campaign? This will disable the campaign for all users in your organisation and stop monitoring & protection on it.":"Are you sure you want to disable this campaign? This will disable the campaign for all users in your organisation and stop monitoring & protection on it.","Are you sure you want to only monitor this campaign? The campaign will be monitored for all users in your organisation but not protected.":"Are you sure you want to only monitor this campaign? The campaign will be monitored for all users in your organisation but not protected.","Are you sure you want to hide this campaign? This will hide the campaign for all users in your organisation and stop monitoring & protection on it.":"Are you sure you want to hide this campaign? This will hide the campaign for all users in your organisation and stop monitoring & protection on it.","Website Scripts":"Website Scripts","Conversion Tracking Script":"Conversion Tracking Script","For more accurate conversion tracking, we recommend installing the tracking script":"For more accurate conversion tracking, we recommend installing the tracking script","For more accurate conversion tracking, we recommend installing the tracking scriptbelow to fire on any conversion action.You can add this to a tag manager like Google Tag Manager.You can use the same conversion tracking script forany website or landing page you want to protect.Reach out to your account manager if you need help installing this.":"For more accurate conversion tracking, we recommend installing the tracking scriptbelow to fire on any conversion action.You can add this to a tag manager like Google Tag Manager.You can use the same conversion tracking script forany website or landing page you want to protect.Reach out to your account manager if you need help installing this.","Copy Conversion Script":"Copy Conversion Script",Copied:"Copied","Block On Conversion":"Block On Conversion","Not sure what to do? Visit our":"Not sure what to do? Visit our",helpdesk:"helpdesk","react multi select component required here - this area is still not complete":"react multi select component required here - this area is still not complete",
2Save:"Save","Google Sync Status":"Google Sync Status","Successfully Synced":"Successfully Synced","Over 10 days old":"Over 10 days old","Over 30 days old":"Over 30 days old","OAuth Problem Detected":"OAuth Problem Detected","Refresh Data":"Refresh Data","Re-Connect":"Re-Connect","Health:":"Health:","Health is based on a combination of":"Health is based on a combination of","Percent of invalid clicks":"Percent of invalid clicks","Total number of clicks":"Total number of clicks","Are you sure you want to :actionVerb all accounts? This will :actionVerb all accounts for all users in your organisation and stop monitoring & protection on them.":"Are you sure you want to :actionVerb all accounts? This will :actionVerb all accounts for all users in your organisation and stop monitoring & protection on them.",hide:"hide",disable:"disable","Manage All Ad Accounts":"Manage All Ad Accounts","Sets all":"Sets all","filtered Accounts and their Campaigns":"filtered Accounts and their Campaigns","you need an active subscription to do this":"you need an active subscription to do this","Manage All Ad Campaigns":"Manage All Ad Campaigns","filtered Campaigns and their Campaigns":"filtered Campaigns and their Campaigns","No accounts selected. Please select at least 1 account and try again.":"No accounts selected. Please select at least 1 account and try again.","Manage Selected Ad Accounts":"Manage Selected Ad Accounts","Sets only the":"Sets only the","Accounts and Campaigns you selected":"Accounts and Campaigns you selected","No campaigns selected. Please select at least 1 account and try again.":"No campaigns selected. Please select at least 1 account and try again.","Manage Selected Ad Campaigns":"Manage Selected Ad Campaigns","Campaigns and Campaigns you selected":"Campaigns and Campaigns you selected",Page:"Page",of:"of","Per Page":"Per Page",Settings:"Settings",Home:"Home","Account Settings":"Account Settings",Users:"Users","Tracking Codes":"Tracking Codes",Platforms:"Platforms",Subscriptions:"Subscriptions",Reporting:"Reporting","IP Allow List":"IP Allow List",Tokens:"Tokens","Google Settings":"Google Settings",Filters:"Filters","Show Protected":"Show Protected","Show Monitored":"Show Monitored",Campaigns:"Campaigns","Show Disabled":"Show Disabled","Show Hidden Campaigns":"Show Hidden Campaigns","Apply Changes":"Apply Changes",Health:"Health",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday",Sunday:"Sunday","Manage Selected":"Manage Selected","Manage All":"Manage All","Account Named":"Account Named","Account Activity":"Account Activity",Prevented:"Prevented",TQI:"TQI","Account Spend":"Account Spend","Legit, Susp, Invalid":"Legit, Susp, Invalid","Prevented Clicks":"Prevented Clicks","Campaign Nam":"Campaign Nam","Campaign Type":"Campaign Type","Must be a valid ip address":"Must be a valid ip address",CIDR:"CIDR","IP Ranges":"IP Ranges","From, To":"From, To","Date Added":"Date Added","Added By":"Added By","Add IP":"Add IP","Delete Selected":"Delete Selected","You are about to delete":"You are about to delete","Delete from the campaigns you have selected or from all of your Accounts.":"Delete from the campaigns you have selected or from all of your Accounts.","Add Ip to Exclusions":"Add Ip to Exclusions","Adding to":"Adding to","Set by your active filter":"Set by your active filter",Examples:"Examples","Google only accepts 500 IP Exclusions per campaign. Adding addresses manually may remove IP addresses added by our system.":"Google only accepts 500 IP Exclusions per campaign. Adding addresses manually may remove IP addresses added by our system.","Phrase Match":"Phrase Match","Select all IP Addresses":"Select all IP Addresses","MFA status was successfully changed to enabled":"MFA status was successfully changed to enabled","Broad Match":"Broad Match","Exact Match":"Exact Match","Match Type":"Match Type",Search:"Search","Display Network":"Display Network","Search Partner":"Search Partner",Youtube:"Youtube",Gmail:"Gmail","YouTube in-stream":"YouTube in-stream","YouTube in-feed":"YouTube in-feed","Search Partner (AI Max)":"Search Partner (AI Max)","App campaigns for engagement (ACe)":"Ap
2p campaigns for engagement (ACe)","Google Video Partners":"Google Video Partners","YouTube Videos":"YouTube Videos","YouTube Search":"YouTube Search","Smart Shopping Campaign":"Smart Shopping Campaign","Performance Max Campaigns":"Performance Max Campaigns","N/A ?":"N/A ?","Network Type":"Network Type","Search Keywords":"Search Keywords","Search Campaigns":"Search Campaigns","Search Placement":"Search Placement","Go Back":"Go Back","What is Traffic Health Uplift?":"What is Traffic Health Uplift?","The Traffic Health Uplift metric shows you the improvement in":"The Traffic Health Uplift metric shows you the improvement in","quality & health of your traffic by using Lunio.":"quality & health of your traffic by using Lunio.","The Traffic Health Uplift metric shows you the improvement in quality & health of your traffic by using Lunio. It takes in to account things like how many new valid users you are reaching, how much budget is being re-allocated to legitimate spend, and how much activity is coming from invalid sources.":"The Traffic Health Uplift metric shows you the improvement in quality & health of your traffic by using Lunio. It takes in to account things like how many new valid users you are reaching, how much budget is being re-allocated to legitimate spend, and how much activity is coming from invalid sources.","What is Re-Allocated budget?":"What is Re-Allocated budget?","The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic. In effect, this is the ad budget âsavedâ by utilizing the platform.":"The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic. In effect, this is the ad budget âsavedâ by utilizing the platform.","Company Title":"Company Title",Industry:"Industry","Default Currency":"Default Currency","Show rounded values for large numbers":"Show rounded values for large numbers","Save Changes":"Save Changes","Cancel Changes":"Cancel Changes","Please make sure the form is has no errors before saving":"Please make sure the form is has no errors before saving","Please confirm your new password":"Please confirm your new password","Create a New User":"Create a New User","Active User":"Active User","User can log in":"User can log in","Inactive User":"Inactive User","User can't log in":"User can't log in","Must use a valid email address":"Must use a valid email address","Password must be at least 6 characters long":"Password must be at least 6 characters long","Confirm Password must be at least 6 characters long":"Confirm Password must be at least 6 characters long","Passwords must match":"Passwords must match","First Name":"First Name","Last Name":"Last Name","Email Address":"Email Address","Confirm New Password":"Confirm New Password","Multifactor Authentication":"Multifactor Authentication",Role:"Role","Are you sure you want to delete :email ?":"Are you sure you want to delete :email ?","Your Name Here":"Your Name Here","WARNING. Deleting this user is permanent. It will remove all of their data. This user cannot be recovered in the future.":"WARNING. Deleting this user is permanent. It will remove all of their data. This user cannot be recovered in the future.","Delete User":"Delete User",User:"User","Allow Selected IPs":"Allow Selected IPs","This page contains a list of IP addresses automatically added to your allow list by Lunio. These are IPs that have been used to log in to the Lunio system or have recorded conversions, if you have conversion tracking enabled. Clicks from these IPs will never be blocked for any reason, unless you remove them from the allow list.":"This page contains a list of IP addresses automatically added to your allow list by Lunio. These are IPs that have been used to log in to the Lunio system or have recorded conversions, if you have conversion tracking enabled. Clicks from these IPs will never be blocked for any reason, unless you remove them from the allow list.","Add IPs":"Add IPs","Search IPs":"Search IPs"," Whitelisted IPs":" Whitelisted IPs","Deleting these IPs will remove them from your Google Ads exclusions list. Users from these IPs will be able to interact with your ads again":"Deleting these IPs will remove them from your Google Ads exclusions list. Users from these IPs will be able to interact with your ads again","Delete IPâs":"Delete IPâs",Social:"Social","Dis
2play and Video":"Display and Video","Please first set a recipient for the report to be sent to.":"Please first set a recipient for the report to be sent to.","How often would you like to receive reports?":"How often would you like to receive reports?","Disable Reports":"Disable Reports","You will not receive any reports to your inbox":"You will not receive any reports to your inbox",Daily:"Daily","Receive reports each day":"Receive reports each day",Weekly:"Weekly","Receive reports on Monday each week":"Receive reports on Monday each week",Monthly:"Monthly","Receive reports on the first Monday of each month":"Receive reports on the first Monday of each month","Current Recipients":"Current Recipients","The following are currently receiving reports":"The following are currently receiving reports","Add Recipients":"Add Recipients","Subscription Details":"Subscription Details","Details of your Lunio subscription":"Details of your Lunio subscription","View the details of your existing Lunio subscription below. If you wish to upgrade your subscription to increase your budget allowance, please contact your Client Success Manager using the button below, or the live chat widget.":"View the details of your existing Lunio subscription below. If you wish to upgrade your subscription to increase your budget allowance, please contact your Client Success Manager using the button below, or the live chat widget.","Get in touch with our":"Get in touch with our","to discuss upgrading your account.":"to discuss upgrading your account.","Manage Subscriptions":"Manage Subscriptions","Manage your subscriptions & invoices":"Manage your subscriptions & invoices","To access your invoices and manage your subscription, please click on the":"To access your invoices and manage your subscription, please click on the","button.":"button.","To request invoices prior to 2021 please contact us at [email protected]":"To request invoices prior to 2021 please contact us at [email protected]","Connected Ad Accounts":"Connected Ad Accounts",s:"s","Search Tokens":"Search Tokens","Google Ad Account":"Google Ad Account","Are you sure you want to delete this token?":"Are you sure you want to delete this token?","Tracking Template copied to clipboard.":"Tracking Template copied to clipboard.","Google Ads Tracking":"Google Ads Tracking","Tracking Template":"Tracking Template","Copy and paste the tracking template below into any Google Ads account you wish to protect by following our guide":"Copy and paste the tracking template below into any Google Ads account you wish to protect by following our guide","here.":"here.","Encode final URLs?":"Encode final URLs?",'We recommend setting this to "Yes" unless using 3rd party tracking solutions.':'We recommend setting this to "Yes" unless using 3rd party tracking solutions.',No:"No","Are you sure you want to delete :user":"Are you sure you want to delete :user","All Accounts":"All Accounts","Manage Users":"Manage Users","Search by name":"Search by name","Add User":"Add User","Account Type":"Account Type","Account Email":"Account Email","Active, Inactive":"Active, Inactive","Multifactor Auth":"Multifactor Auth","Enabled, Disabled":"Enabled, Disabled","Account Role":"Account Role","Account Access":"Account Access","Manage User Acce
2ss":"Manage User Access","Manage Accounts":"Manage Accounts","View by Day":"View by Day","View by Week":"View by Week","View by Month":"View by Month","The prevented clicks metric shows you activity that would have come from invalid sources, had it not been blocked/prevented by Lunio. The metric displays clicks that did not happen, but would have happened if you werenât actively protected against invalid traffic.":"The prevented clicks metric shows you activity that would have come from invalid sources, had it not been blocked/prevented by Lunio. The metric displays clicks that did not happen, but would have happened if you werenât actively protected against invalid traffic.","The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic.":"The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic.","In effect, this is the ad budget âsavedâ by utilizing the platform.":"In effect, this is the ad budget âsavedâ by utilizing the platform.","Traffic health uplift":"Traffic health uplift","You have saved":"You have saved",Website:"Website","You are about to delete :count Exclusions":"You are about to delete :count Exclusions","Track & audit exclusions across your campaigns":"Track & audit exclusions across your campaigns","Auto (Lunio)":"Auto (Lunio)","Adding to :name Accounts":"Adding to :name Accounts","Date Updated":"Date Updated","Add IP to Exclusions":"Add IP to Exclusions","Any IP you add will then not get blocked by any of your Accounts and Campaigns.":"Any IP you add will then not get blocked by any of your Accounts and Campaigns.","IP to Add":"IP to Add","Add IP to Allow List":"Add IP to Allow List","Add Accounts":"Add Accounts",":length of :total selected":":length of :total selected",Add:"Add","AdWords Account Access":"AdWords Account Access",Name:"Name",Actions:"Actions","We canât find what youâre looking for, but the links below may help.":"We canât find what youâre looking for, but the links below may help.","Back to Overview":"Back to Overview","Visit Intercom":"Visit Intercom",Workspaces:"Workspaces","Create Workspace":"Create Workspace","Workspace Name":"Workspace Name","Workspace created successfully":"Workspace created successfully",Workspace:"Workspace","View Summary Statistics":"View Summary Statistics","Favourite - show this one at the top":"Favourite - show this one at the top","View an audit history of this IP":"View an audit history of this IP","Manually add this IP to exclusion list":"Manually add this IP to exclusion list",Week:"Week",Month:"Month","Enable :platform":"Enable :platform","Send us an email at [email protected] to register your interest in enabling this platform.":"Send us an email at [email protected] to register your interest in enabling this platform.","Carbon Cost of invalid traffic":"Carbon Cost of invalid traffic","Last 12 Months":"Last 12 Months","per click":"per click","Lifetime Invalid Clicks Recorded":"Lifetime Invalid Clicks Recorded","Resulting in a Total Carbon cost":"Resulting in a Total Carbon cost","That is the equivalent of":"That is the equivalent of","Running a wash :times times":"Running a wash :times times","Revert to old look and feel":"Revert to old look and feel",View:"View","Workspace Settings":"Workspace Settings",General:"General",Members:"Members",Integrations:"Integrations","Workspace name":"Workspace name","This will display as your primary identifier on any shared reports. Workspaces are usually clients or internal teams.":"This will display as your primary identifier on any shared reports. Workspaces are usually clients or internal teams.",Success:"Success","Revert to old look":"Revert to old look","Exit BETA":"Exit BETA",Help:"Help","Log Out":"Log Out","All Worksp
2aces":"All Workspaces","Your Workspaces":"Your Workspaces","Manage all members and access to this workspace.":"Manage all members and access to this workspace.",Platform:"Platform",ID:"ID","Workspace settings":"Workspace settings","For subscription reasons your allowed date range is limited.":"For subscription reasons your allowed date range is limited.","Limited!":"Limited!",Emissions:"Emissions","language(response?.data?.message)":"language(response?.data?.message)","We canât find what youâre looking for":"We canât find what youâre looking for","IpBlocks queued for deletion. This process will take a few minutes to complete.":"IpBlocks queued for deletion. This process will take a few minutes to complete.","IP block deletion in progress. Please allow up to 10 minutes for this to complete.":"IP block deletion in progress. Please allow up to 10 minutes for this to complete.","Delete From All Accounts":"Delete From All Accounts","Update In Progress. During this process":"Update In Progress. During this process","Select All":"Select All",From:"From","Select IP Address":"Select IP Address","Status was updated for multiple campaigns":"Status was updated for multiple campaigns","language(configItem.label)":"language(configItem.label)","language(`For more accurate conversion tracking":"language(`For more accurate conversion tracking","Your previous changes are in progress":"Your previous changes are in progress",Legit:"Legit","language(col1Header)":"language(col1Header)","This page contains a list of IP addresses automatically added to your allow list by Lunio. These are IPs that have been used to log in to the Lunio system or have recorded conversions":"This page contains a list of IP addresses automatically added to your allow list by Lunio. These are IPs that have been used to log in to the Lunio system or have recorded conversions","Whitelisted IPs":"Whitelisted IPs","Good Morning":"Good Morning","Good Afternoon":"Good Afternoon","Good Evening":"Good Evening","The Traffic Health Uplift metric shows you the improvement in quality & health of your traffic by using Lunio. It takes in to account things like how many new valid users you are reaching":"The Traffic Health Uplift metric shows you the improvement in quality & health of your traffic by using Lunio. It takes in to account things like how many new valid users you are reaching","The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic. In effect":"The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic. In effect","Something went wrong while attempting to connect to your account. Please contact us using the chat widget in the bottom right.":"Something went wrong while attempting to connect to your account. Please contact us using the chat widget in the bottom right.",Active:"Active",Enabled:"Enabled","The prevented clicks metric shows you activity that would have come from invalid sources":"The prevented clicks metric shows you activity that would have come from invalid sources","In effect":"In effect","View the details of your existing Lunio subscription below. If you wish to upgrade your subscription to increase your budget allowance":"View the details of your existing Lunio subscription below. If you wish to upgrade your subscription to increase your budget allowance","To access your invoices and manage your subscription":"To access your invoices and manage your subscription",Yes:"Yes",something:"something",Remove:"Remove","Invalid Traffic Statistics":"Invalid Traffic Statistics","Data Selected":"Data Selected",Valid:"Valid",Clicks:"Clicks","Copy Tracking Script":"Copy Tracking Script",remove:"remove","MCC Level":"MCC Level","Add accounts to this workspace":"Add accounts to this workspace","View the clicks being monitored by your Lunio account.":"View the clicks being monitored by your Lunio account.","The account was added.":"The account was added.","The platform was added.":"The platform was added.","The platform was removed.":"The platform was removed.","The account was removed.":"The account was removed.","It is not possible to remove this account from the workspace.":"It is not possible to remove this account from the workspace.","Date Range":"Date Range","Last 7 days":"Last 7 days","Last 30 days":"Last 30 days",Rolling:"Rolling",Profile:"Profile",profile:"profile",Surname:"Surname","Here you can see your user details and manage any access tokens on your user account":"Here you can see your user details and manage any access tokens on your user account","User Profile":"User Profile","An active subscription is required to sync your google data.":"An active subscription is required to sync your google data.","Previous 7 days":"Previous 7 days","Previous 30 days":"Previous 30 days","Previous year":"Previous year",Owner:"Owner",Admin:"Admin",Manager:"Manager",Client:"Client","Email us":"Email us","See all of your subscriptions here":"See all of your subscriptions here","Get in touch":"Get in touch","Get In Touch":"Get In Touch","Use Legacy":"Use Legacy","Legacy Dashboard":"Legacy Dashboard","Legacy App":"Legacy App","Maltifactor Auth":"Maltifactor Auth",search:"search","Search...":"Search...","User List":"User List",users:"users","Edit this user":"Edit this user","Delete this user":"Delete this user","Confirm Deletion":"Confirm Deletion","Edit user":"Edit user","Edit User":"Edit User","Create User":"Create User","Please enter an email":"Please enter an email","Please enter your new password":"Please enter your new password","Please enter a first name":"Please enter a first name","Please enter a last name":"Please enter a last name","Please make sure the form has no errors before saving":"Please make sure the form has no errors before saving","Internal Tools":"Internal Tools","Estimation based on invali
2d sources identified and cost per click.":"Estimation based on invalid sources identified and cost per click.","Top 5 Invalid Activity":"Top 5 Invalid Activity","Top 5: Traffic Health":"Top 5: Traffic Health","By: Keyword":"By: Keyword","By: Campaign":"By: Campaign","By: Placement":"By: Placement","legacy app":"legacy app","By: Websites Protected":"By: Websites Protected","Looking for data":"Looking for data","Your account was cancelled on :date":"Your account was cancelled on :date","Contact [email protected]":"Contact [email protected]","response?.data?.message":"response?.data?.message","It is not possible to add this account to the workspace.":"It is not possible to add this account to the workspace.","It is not possible to remove this member from the workspace.":"It is not possible to remove this member from the workspace.","isAdding ? 'Add' : 'Remove":"isAdding ? 'Add' : 'Remove","It is not possible to add this member to the workspace.":"It is not possible to add this member to the workspace.","Lunio users who have have access to this workspace":"Lunio users who have have access to this workspace","Add Members":"Add Members","Add members to this workspace":"Add members to this workspace","Remove Member":"Remove Member","Add the Lunio users who need to have access to this workspace":"Add the Lunio users who need to have access to this workspace","Add Member":"Add Member","configItem.label":"configItem.label","For more accurate conversion tracking":"For more accurate conversion tracking",col1Header:"col1Header","Manage the ad accounts assigned to this workspace":"Manage the ad accounts assigned to this workspace","Group your accounts together into workspaces to easily view data for related accounts and websites":"Group your accounts together into workspaces to easily view data for related accounts and websites","Add a workspace to get started.":"Add a workspace to get started.","Edit Workspace":"Edit Workspace","Manage Workspace":"Manage Workspace","Create a new workspace to organize your data.":"Create a new workspace to organize your data.","Sorry, you can't use this when workspaces are active":"Sorry, you can't use this when workspaces are active",Beta:"Beta","Workspace Limit Reached":"Workspace Limit Reached","Create a new workspace":"Create a new workspace","You have reached your limit of 100 workspaces.":"You have reached your limit of 100 workspaces.","Top 5 blocked IP addresses":"Top 5 blocked IP addresses",Count:"Count","Google Tokens":"Google Tokens","Google Token Settings":"Google Token Settings","See the platforms inside of your workspaces":"See the platforms inside of your workspaces","Add New Google Token":"Add New Google Token","Ad Accounts":"Ad Accounts","Google Tracking Template":"Google Tracking Template","Whitelisted IP created successfully":"Whitelisted IP created successfully","Whitelist IP removal was successful":"Whitelist IP removal was successful","Delete Selected IPs":"Delete Selected IPs",Sorry:"Sorry","Company Account":"Company Account","Receive reports every monday":"Receive reports every monday","Receive a report on the first monday of each month":"Receive a report on the first monday of each month",Disable:"Disable","Do not receive any reports":"Do not receive any reports","Google Summary Report":"Google Summary Report","How often would you like to receive Google reports?":"How often would you like to receive Google reports?","Reporting Frequency":"Reporting Frequency","How often do you want your Google reports?":"How often do you want your Google reports?","Remove user from list":"Remove user from list","Remove User":"Remove User","Remove :email from list":"Remove :email from list","Please add some Recipients":"Please add some Recipients","The following :count users are currently receiving reports":"The following :count users are currently receiving reports","Top 5: IVT Change":"Top 5: IVT Change","You are not currently in any workspaces":"You are not currently in any workspaces","Contact your system administrator to get you set up with access to a Lunio workspace to get all the benefits of using Lunio!":"Contact your system administrator to get you set up with access to a
2Lunio workspace to get all the benefits of using Lunio!","Go to Lunio Intercom":"Go to Lunio Intercom","Workspace Overview":"Workspace Overview","No workspace selected":"No workspace selected","Please select a workspace from the sidebar":"Please select a workspace from the sidebar",Unidentified:"Unidentified","Platform Click Traffic":"Platform Click Traffic","Here's what's happening across all of your platforms.":"Here's what's happening across all of your platforms.","Here's what's happening in :platform":"Here's what's happening in :platform","Make sure the end date is not before the start date":"Make sure the end date is not before the start date","Search IP":"Search IP",MultiPlatform:"MultiPlatform","The platform was successfully updated":"The platform was successfully updated","The platform was successfully added":"The platform was successfully added","Block on conversion settings were saved":"Block on conversion settings were saved","There are no more platforms available to add":"There are no more platforms available to add","Add Platform":"Add Platform","Select Platform":"Select Platform","Protection Status":"Protection Status","This figure represents the total estimated amount of ad spend that Lunio will prevent from being wasted so it could be spent on targeting genuine traffic. This figure is modelled using your average CPC and presents an estimate representing the case when all accounts and campaigns in this workspace are protected.":"This figure represents the total estimated amount of ad spend that Lunio will prevent from being wasted so it could be spent on targeting genuine traffic. This figure is modelled using your average CPC and presents an estimate representing the case when all accounts and campaigns in this workspace are protected.",Monitor:"Monitor","Lunio will actively protect this platform by investigating suspicious behaviour and blocking any sources we believe to inauthentic":"Lunio will actively protect this platform by investigating suspicious behaviour and blocking any sources we believe to inauthentic","Lunio will monitor this platform for suspicious behaviour but will not actively block any traffic":"Lunio will monitor this platform for suspicious behaviour but will not actively block any traffic","Auto Calculate CPC":"Auto Calculate CPC","Average cost per click":"Average cost per click","Lunio not monitor or protect this platform":"Lunio not monitor or protect this platform","Platform Parameter":"Platform Parameter","Edit Platform":"Edit Platform",Protect:"Protect","Select protection status":"Select protection status","Add and copy all of your tracking codes here":"Add and copy all of your tracking codes here","Copy and paste the tracking template below into any Google Ads account you wish to protect.":"Copy and paste the tracking template below into any Google Ads account you wish to protect.","guide here.":"guide here.","Google Tracking Template copied to clipboard.":"Google Tracking Template copied to clipboard.","Copy Google Script":"Copy Google Script","Copy Multiplatform Script":"Copy Multiplatform Script","Multiplatform Tracking Script":"Multiplatform Tracking Script","Multi Platform Tracking Template copied to clipboard.":"Multi Platform Tracking Template copied to clipboard.","Conversions Tracking Template copied to clipboard.":"Conversions Tracking Template copied to clipboard.","Block on Conversion":"Block on Conversion","Multiplatform Settings":"Multiplatform Settings","Add Mew Platforms":"Add Mew Platforms","Mplat Script":"Mplat Script","Add New Mplat":"Add New Mplat",Edit:"Edit","Lunio will actively protect this platform by investigating suspicious behaviour and blocking any sources we believe to be inauthentic":"Lunio will actively protect this platform by investigating suspicious behaviour and blocking any sources we believe to be inauthentic","The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50":"The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50","When enabled platforms with 0 entered for CPC will use the average of positive values from other platforms":"When enabled platforms with 0 entered for CPC will use the average of positive values from other platforms","The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50) and used to calculate ad spend":"The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50) and used to calculate ad spend","Custom platform parameter for the mplat tracking script. (Placeholders show order of parameters)":"Custom platform parameter for the mplat tracking script. (Placeholders show order of parameters)","For more accurate conversion tracking, we recommend installing the tracking script below to fire on any conversion action. You can add this to a tag manager like Google Tag Manager. You can use the same conversion tracking script for any website or landing page you want to protect. Reach out to your account manager if you need help installing this.":"For more accurate conversion tracking, we recommend installing the tracking script below to fire on any conversion action. You can add this to a tag manager like Google Tag Manager. You can use the same conversion tracking script for any website or landing page you want to protect. Reach out to your account manager if you need help installing this.","The workspace was updated":"The workspace was updated","vs previous :time":"vs previous :time","Custom platform parameter for the mplat tracking script. (Placeholders show order of parameters":"Custom platform parameter for the mplat tracking script. (Placeholders show order of parameters",Log:"Log","Audit history click locations from specific IP address":"Audit history click locations from specific IP address",Map:"Map","Change IP":"Change IP","No locations foun
2d for this IP":"No locations found for this IP","IP Sources breakdown":"IP Sources breakdown",IP:"IP","Multi Platform":"Multi Platform","Clicks in the selected period from all sources currently categorised as Legitimate":"Clicks in the selected period from all sources currently categorised as Legitimate","These sources may be elevated to suspicious based on future behaviour":"These sources may be elevated to suspicious based on future behaviour","Clicks in the selected period from all sources currently categorised as Suspicious":"Clicks in the selected period from all sources currently categorised as Suspicious","If these show further suspicious behaviour we will confirm them as invalid":"If these show further suspicious behaviour we will confirm them as invalid","Clicks in the selected period from all sources currently categorised as Invalid":"Clicks in the selected period from all sources currently categorised as Invalid","Once actively protecting these sources will be excluded":"Once actively protecting these sources will be excluded","These sources will be excluded from protected accounts":"These sources will be excluded from protected accounts","Multi Platform Configurations":"Multi Platform Configurations","Add Configurations":"Add Configurations","All Configurations":"All Configurations","Add configurations to this workspace":"Add configurations to this workspace","Manage the configurations assigned to this workspace":"Manage the configurations assigned to this workspace","This name is already in use":"This name is already in use","You must have at least one domain URL":"You must have at least one domain URL","That domain has been added already":"That domain has been added already","The domain you are trying to add must be a valid URL":"The domain you are trying to add must be a valid URL","You can only add up to 10 domains":"You can only add up to 10 domains","Add Domains to this Platform":"Add Domains to this Platform","Paste the full URL from your browser, including any subdomain or path. e.g. https://www.website.com, https://shop.website.com, https://website.com/us. Domains must match exactly, website.com will not capture www.website.com.":"Paste the full URL from your browser, including any subdomain or path. e.g. https://www.website.com, https://shop.website.com, https://website.com/us. Domains must match exactly, website.com will not capture www.website.com.","Add Domain":"Add Domain","Domain URL":"Domain URL","Remove Domain URL":"Remove Domain URL","Remove Domain":"Remove Domain","You must give a name to this configuration":"You must give a name to this configuration","Average cost per click must be a number":"Average cost per click must be a number","Allow List":"Allow List","Multi Platform Settings":"Multi Platform Settings","Edit this platform":"Edit this platform","Top 5":"Top 5","Workspace Summary":"Workspace Summary","Please speak to an admin user":"Please speak to an admin user","You donât have access to any workspaces":"You donât have access to any workspaces","Please speak to CS":"Please speak to CS","You havenât got any workspaces":"You havenât got any workspaces","Please go and make one {link}":"Please go and make one {link}","Your workspace doesnât have any platforms":"Your workspace doesnât have any platforms","Please go add some {link}":"Please go add some {link}","This workspace doesnât have any platforms":"This workspace doesnât have any platforms","Please select a different workspace or speak to an admin user":"Please select a different workspace or speak to an admin user","Please select a different workspace or add some platforms to this one {link}":"Please select a different workspace or add some platforms to this one {link}","You currently have no platforms set up":"You currently have no platforms set up","This workspace does not have any platforms":"This workspace does not have any platforms","Your workspace does not have any platforms":"Your workspace does not have any platforms","You do not have access to any workspaces":"You do not have access to any workspaces","You do not have any workspaces":"You do not have any workspaces","Go To Settings":"Go To Settings","Please go and make one":"Please go and make one","Please go add some":"Please go add some","Please select a different workspace or add some platforms to this one":"Please select a different workspace or add some platforms to this one","Please speak to our Customer Success Team":"Please speak to our Customer Success Team","Please go and add some":"Please go and add some","Please select a different workspace or speak to your system administrator":"Please select a different workspace or speak to your system administrator","Try our New Widgets":"Try our New Widgets","Welcome to your :workspace workspace":"Welcome to your :workspace workspace",":platformName Summary - :workspace":":platformName Summary - :workspace","Switch back at any time":"Switch back at any time","Magnify IVT for easier comparison":"Magnify IVT for easier comparison","Click Totals":"Click Totals",Percentage:"Percentage",Broad:"Broad",Phrase:"Phrase",Exact:"Exact","Total potential budget reallocated away from invalid traffic based on invali
2d sources identified and cost-per-click":"Total potential budget reallocated away from invalid traffic based on invalid sources identified and cost-per-click","Last Name must not be empty":"Last Name must not be empty","First Name must not be empty":"First Name must not be empty","Email must not be empty":"Email must not be empty","Password must not be empty":"Password must not be empty","Confirm password must not be empty":"Confirm password must not be empty","Your account is past due.":"Your account is past due.","To avoid disruptions to your protection:":"To avoid disruptions to your protection:","Update Payment Details":"Update Payment Details","New User":"New User","Create and Add User":"Create and Add User",submitButtonText:"submitButtonText","Lunio only - revert any time":"Lunio only - revert any time","Preview workspace view":"Preview workspace view","User details":"User details",Permissions:"Permissions","type.charAt(0":"type.charAt(0","Edit Report":"Edit Report","Report Type":"Report Type",Frequencey:"Frequencey","Setup frequency of report":"Setup frequency of report",Frequency:"Frequency","How often would you like to receive this Report":"How often would you like to receive this Report","Delete Report":"Delete Report","Receive a report every Monday -":"Receive a report every Monday -","next scheduled report 17th April":"next scheduled report 17th April","Add Report":"Add Report","next scheduled report 3rd of May":"next scheduled report 3rd of May",Confirm:"Confirm","Setup Report":"Setup Report","Report created successfully":"Report created successfully","Receive a report on the first Monday of each month -":"Receive a report on the first Monday of each month -","Manage Report":"Manage Report","Select Workspace":"Select Workspace","Report updated successfully":"Report updated successfully","Create Platform":"Create Platform","Platform Overview":"Platform Overview","Review all your workspaces and platforms":"Review all your workspaces and platforms","Total invalid traffic":"Total invalid traffic","next scheduled report":"next scheduled report","Add Domain URL":"Add Domain URL","IP Management":"IP Management",Tools:"Tools","PMax Exclusions":"PMax Exclusions","PMax Tools":"PMax Tools","PMax Junk Exclusions List (40,000+ placements)":"PMax Junk Exclusions List (40,000+ placements)","Up to 41% of PMax placements consist of ad junk. Use this handy list based on global Lunio data to exclude the worst offending placements from your account and accelerate your performance.":"Up to 41% of PMax placements consist of ad junk. Use this handy list based on global Lunio data to exclude the worst offending placements from your account and accelerate your performance.",Download:"Download","See how here.":"See how here.","Here you can find additional tools built on Lunio data to help accelerate your PMax performance. /n Got an idea for a tool or feature that youâd like to see? Let us know at [email protected]!":"Here you can find additional tools built on Lunio data to help accelerate your PMax performance. /n Got an idea for a tool or feature that youâd like to see? Let us know at [email protected]!","This must be installed at the Google Account or Google MCC level.":"This must be installed at the Google Account or Google MCC level.","Here you can find additional tools built on Lunio data to help accelerate your PMax performance.":"Here you can find additional tools built on Lunio data to help accelerate your PMax performance.","Got an idea for a tool or feature that youâd like to see? Let us know at ":"Got an idea for a tool or feature that youâd like to see? Let us know at ",New:"New","PMax Junk Exclusions List (40":"PMax Junk Exclusions List (40","Got an idea for a tool or feature that youâd like to see? Let us know at":"Got an idea for a tool or feature that youâd like to see? Let us know at","With and approximate cost of :currency:cost based on latest CPC values.":"With and approximate cost of :currency:cost based on latest CPC values.","With an approximate cost of :currency:cost based on latest CPC values.":"With an approximate cost of :currency:cost based on latest CPC values.","With an approximate cost of":"With an approximate cost of","based on latest CPC values.":"based on latest CPC values.","based on latest CPC values":"based on latest CPC values","IP Classification":"IP Classification","
2Lunio Class":"Lunio Class",Reasons:"Reasons","Risk Score":"Risk Score","IP Behaviour":"IP Behaviour","We are currently gathering data to give you your Traffic insights":"We are currently gathering data to give you your Traffic insights","We are currently gathering data to give you your traffic insights":"We are currently gathering data to give you your traffic insights","As IP sources change ownership over time any click source/IP may generate clicks in different categories as it is analysed by behavioural models and progresses through different stages of activity. The figures here are based on the point in time audit history of that source and so will not change even if future clicks from that source are given a different classification.":"As IP sources change ownership over time any click source/IP may generate clicks in different categories as it is analysed by behavioural models and progresses through different stages of activity. The figures here are based on the point in time audit history of that source and so will not change even if future clicks from that source are given a different classification.","This view shows you all categorised clicks over time either as a percentage or raw counts. The clicks classified as invalid are shown below the x-axis to allow you to âzoom inâ and see the relationship between click traffic and overall volumes.":"This view shows you all categorised clicks over time either as a percentage or raw counts. The clicks classified as invalid are shown below the x-axis to allow you to âzoom inâ and see the relationship between click traffic and overall volumes.","This IP activity view gives you a wider perspective on your traffic. As classification is based on behaviour it can take more than one ad click to identify invalid sources. This widget shows you the total click activity from all sources based on their latest classification.":"This IP activity view gives you a wider perspective on your traffic. As classification is based on behaviour it can take more than one ad click to identify invalid sources. This widget shows you the total click activity from all sources based on their latest classification.","Active Sources":"Active Sources","The percentage of traffic sources (IPs) classified by Lunio as legitimate, suspicious, or invalid. Learn more [here](https://help.lunio.ai/en/articles/9583931-introduction-to-the-workspace-dashboard#h_a119b8d718).":"The percentage of traffic sources (IPs) classified by Lunio as legitimate, suspicious, or invalid. Learn more [here](https://help.lunio.ai/en/articles/9583931-introduction-to-the-workspace-dashboard#h_a119b8d718).","Google Accounts":"Google Accounts",Unassigned:"Unassigned",Maps:"Maps","Workspace Currency":"Workspace Currency","These are the settings that define how this workspace appears in dashboards.":"These are the settings that define how this workspace appears in dashboards.","Workspace Details":"Workspace Details",Currency:"Currency","Number of Clicks":"Number of Clicks","Workspace currency was saved":"Workspace currency was saved","Results for":"Results for","Search all accounts ":"Search all accounts ","Cost of Traffic from Invalid sources":"Cost of Traffic from Invalid sources","Legitimate Sources":"Legitimate Sources","Suspicious Sources":"Suspicious Sources","Invalid Sources":"Invalid Sources","from sources currently classified as invalid":"from sources currently classified as invalid","from sources currently classified as suspicious":"from sources currently classified as suspicious","from sources currently classified as legitimate":"from sources currently classified as legitimate","Accounts - Protection Management":"Accounts - Protection Management","Clicks Received":"Clicks Received",Protection:"Protection","Approx Spend":"Approx Spend","Protection Management":"Protection Management","set the protection status of your Google Ads accounts":"set the protection status of your Google Ads accounts","Status updated was successful":"Status updated was successful","Status updated was successful for :name":"Status updated was successful for :name","Protection status was changed for :name":"Protection status was changed for :name","Are you sure you want to disable this account? This will disable the account and all of its campaigns and stop monitoring & protection them.":"Are you sure you want to disable this account? This will disable the account and all of its campaigns and stop monitoring & protection them.","Are you sure you want to protect this account? This will protect the account and all of its campaigns.":"Are you sure you want to protect this account? This will protect the account and all of its campaigns.","Are you sure you want to only monitor this account? The account and all of its campaigns will be monitored only":"Are you sure you want to only monitor this account? The account and all of its campaigns will be monitored only","Are you sure you want to only monitor this account? The account and all of its campaigns will be monitored only, but not protected.":"Are you sure you want to only monitor this account? The account and all of its campaigns will be monitored only, but not protected.","Are you sure you want to disable this account? This will disable the account and all of its campaigns and stop monitoring & protection on them.":"Are you sure you want to disable this account? This will disable the account and all of its campaigns and stop monitoring & protection on them.","Update Protection":"Update Protection","Set the protection of status of the selected Accounts":"Set the protection of status of the selected Accounts","Area you sure you want to do this":"Area you sure you want to do this","Set the protection of status of the :count selected Accounts to
2:status":"Set the protection of status of the :count selected Accounts to :status","Set the protection of status of :count selected Account:s to :status":"Set the protection of status of :count selected Account:s to :status","Set the protection of status of :count selected account:s to :status":"Set the protection of status of :count selected account:s to :status","Area you sure you want to do this. Setting the protection status of an account will affect all of its campaigns.":"Area you sure you want to do this. Setting the protection status of an account will affect all of its campaigns.","Area you sure you want to do this. Setting the protection status of an account will also set the same status on all of its campaigns.":"Area you sure you want to do this. Setting the protection status of an account will also set the same status on all of its campaigns.","Set the protection status of your Google Ads accounts":"Set the protection status of your Google Ads accounts","Set the protection status of your Google Ads Accounts":"Set the protection status of your Google Ads Accounts",Received:"Received",Approx:"Approx",Spend:"Spend",Warning:"Warning","Because the parent account is not protected":"Because the parent account is not protected","Because the parent account is not protected, there can be no protection of any campaigns. You need to set the account to protected if you want to protect any of its campagins.":"Because the parent account is not protected, there can be no protection of any campaigns. You need to set the account to protected if you want to protect any of its campagins.","Because the parent account is not protected, there can be no protection of any its campaigns. You need to set the account to protected if you want to protect any of its campagins.":"Because the parent account is not protected, there can be no protection of any its campaigns. You need to set the account to protected if you want to protect any of its campagins.","Because the parent account is not protected, there can be no protection of any of its campaigns. You need to set the account to protected if you want to protect any of its campagins.":"Because the parent account is not protected, there can be no protection of any of its campaigns. You need to set the account to protected if you want to protect any of its campagins.","Acccount ID":"Acccount ID","Set the protection status of your Google Ads Campaigns":"Set the protection status of your Google Ads Campaigns","Update Selected Accounts":"Update Selected Accounts","Update ALL Accounts":"Update ALL Accounts","Update :count Selected Account:s":"Update :count Selected Account:s","Set the protection of status of all accounts and campaigns":"Set the protection of status of all accounts and campaigns","Area you sure you want to do this. This will set the protection status of all accounts and campaigns within this workspace.":"Area you sure you want to do this. This will set the protection status of all accounts and campaigns within this workspace.","Set the protection of status of all accounts and campaigns to :status":"Set the protection of status of all accounts and campaigns to :status","Set the protection status of all accounts and campaigns to :status":"Set the protection status of all accounts and campaigns to :status","Are you sure you want to do this. This will set the protection status of all accounts and campaigns within this workspace.":"Are you sure you want to do this. This will set the protection status of all accounts and campaigns within this workspace.","Because this account is not protected":"Because this account is not protected","Because this account is not protected, there can be no protection of any of its campaigns. You need to set the account to protected if you want to protect any of its campagins.":"Because this account is not protected, there can be no protection of any of its campaigns. You need to set the account to protected if you want to protect any of its campagins.","Link to Campaigns":"Link to Campaigns","Update All Accounts":"Update All Accounts","View Campaigns":"View Campaigns","Are you sure you want to do this. Setting the protection status of an account will also set the same status on all of its campaigns.":"Are you sure you want to do this. Setting the protection status of an account will also set the same status on all of its campaigns.","Search all accounts":"Search all accounts","Welcome to Lunio":"Welcome to Lunio","Lunio is organised in workspaces to allow you to access your data easily for different brands, teams or clients.":"Lunio is organised in workspaces to allow you to access your data easily for different brands, teams or clients.","Let's get you set up with your first workspace.":"Let's get you set up with your first workspace.","Enter a name here":"Enter a name here","My First Worksp
2ace":"My First Workspace","System Overview":"System Overview",Change:"Change","Avg CPC":"Avg CPC","Ad Stats Export Summary":"Ad Stats Export Summary","Export Ad stats in CSV files":"Export Ad stats in CSV files","Search Contains":"Search Contains","Lunio is organised in workspaces to allow you to access your data easily for different brands":"Lunio is organised in workspaces to allow you to access your data easily for different brands",Stats:"Stats","Google Sync Status:":"Google Sync Status:","Explore all your active campaigns that received clicks during this period":"Explore all your active campaigns that received clicks during this period",Display:"Display",Video:"Video",Shopping:"Shopping",PMax:"PMax","Adjusted Value":"Adjusted Value","Email To:":"Email To:","Export failed to process":"Export failed to process","Your export is being prepared and sent":"Your export is being prepared and sent",State:"State","Your export is being prepared and will be with you shortly":"Your export is being prepared and will be with you shortly","Match Types":"Match Types","Current Activity":"Current Activity","Clicks Log Analytics":"Clicks Log Analytics","Individual Categorised Clicks":"Individual Categorised Clicks","The percentage of individual clicks classified by Lunio as legitimate, suspicious, or invalid. Learn more [here](https://help.lunio.ai/en/articles/9583931-introduction-to-the-workspace-dashboard#h_c7a74666d5).":"The percentage of individual clicks classified by Lunio as legitimate, suspicious, or invalid. Learn more [here](https://help.lunio.ai/en/articles/9583931-introduction-to-the-workspace-dashboard#h_c7a74666d5).","Modelled using your average CPC":"Modelled using your average CPC","Est. reallocated budget":"Est. reallocated budget","Sort by most interesting":"Sort by most interesting","IP Network":"IP Network",Domains:"Domains",ISPs:"ISPs",Min:"Min",Max:"Max","${colourMap[colour].text} Sources":"${colourMap[colour].text} Sources",Today:"Today","Top 5 change in Traffic":"Top 5 change in Traffic","Previous Month":"Previous Month","Not enough data":"Not enough data",month:"month","Try changing filters to get more data":"Try changing filters to get more data","Not enough data to display this chart":"Not enough data to display this chart","Not enough data to display this map":"Not enough data to display this map","PMax N-Grams Finder (Powered by Opteo)":"PMax N-Grams Finder (Powered by Opteo)","Get Started":"Get Started","Create negative keywords from N-Grams, reduce wasted spend and improve ad relevance. Your report will be delivered by email within 24 hours (usually much sooner!)":"Create negative keywords from N-Grams, reduce wasted spend and improve ad relevance. Your report will be delivered by email within 24 hours (usually much sooner!)","This feature requires connecting your Google Ads account to our partners at Opteo. Click a button below to start this process.":"This feature requires connecting your Google Ads account to our partners at Opteo. Click a button below to start this process.","You're all set! Your Opteo API key has been successfully updated.":"You're all set! Your Opteo API key has been successfully updated.","You can close this window and return to Lunio":"You can close this window and return to Lunio","Something went wrong, please try again":"Something went wrong, please try again","This Google account isn't added to Lunio":"This Google account isn't added to Lunio","Please make sure you're using the correct Google account and try again":"Please make sure you're using the correct Google account and try again","Connect to Opteo":"Connect to Opteo",Unlinked:"Unlinked",all:"all","Campaign level to all available campaigns within all accounts":"Campaign level to all available campaigns within all accounts","Campaign level to all available campaigns within :count account:s":"Campaign level to all available campaigns within :count account:s","Lunio applies a maximum of 500 IP Exclusions at Account level. Adding addresses manually may remove IP addresses added by our system.":"Lunio applies a maximum of 500 IP Exclusions at Account level. Adding addresses manually may remove IP addresses added by our system.","Account level to :count account:s":"Account level to :count account:s","Apply Exclusions":"Ap
2ply Exclusions","Apply exclusions at":"Apply exclusions at","Enter IP Address":"Enter IP Address","You have selected :count Google account:s":"You have selected :count Google account:s","Add IP Exclusions":"Add IP Exclusions","Account level to all accounts":"Account level to all accounts","Something went wrong":"Something went wrong","PMax N-Grams Finder (Powered by Opteo":"PMax N-Grams Finder (Powered by Opteo","Create negative keywords from N-Grams":"Create negative keywords from N-Grams","Try changing date range":"Try changing date range","Try changing date range or filters to get more dat":"Try changing date range or filters to get more dat","Try changing date range or filters to get more data":"Try changing date range or filters to get more data","Campaign Analytics":"Campaign Analytics","We don't support this platform yet.":"We don't support this platform yet.","Send email":"Send email","This page is not available for the selected platform yet":"This page is not available for the selected platform yet","This value was manually set by a user of this workspace.":"This value was manually set by a user of this workspace.","Here is a list of all your accounts":"Here is a list of all your accounts","Self Defined CPC":"Self Defined CPC","User Inputted CPC":"User Inputted CPC","This is the CPC value for the campaign that was set within the settings area for this account":"This is the CPC value for the campaign that was set within the settings area for this account","View all campaigns":"View all campaigns","View All":"View All","User defined CPC":"User defined CPC","% SIVT Clicks":"% SIVT Clicks","% Total Clicks":"% Total Clicks","Percentage comparison Traffic vs IVT":"Percentage comparison Traffic vs IVT","Cost of traffic from invalid sources":"Cost of traffic from invalid sources",Chart:"Chart",Table:"Table","Show Chart":"Show Chart","Show Table":"Show Table",true:"true","100% in this period has maximum click of :value":"100% in this period has maximum click of :value",SIVT:"SIVT",":value SIVT Clicks":":value SIVT Clicks",":value of Total Volume":":value of Total Volume","Access Token":"Access Token","Choose which workspace appears when you first load the dashboard.":"Choose which workspace appears when you first load the dashboard.","Default Workspace":"Default Workspace","Select a workspace":"Select a workspace","Select a Workspace":"Select a Workspace","Default workspace updated successfully":"Default workspace updated successfully","Default workspace was updated successfully":"Default workspace was updated successfully","Please select a workspace before trying to save":"Please select a workspace before trying to save","Clear Default":"Clear Default",UP:"UP",DOWN:"DOWN","Click the Add Report button to set up a regular email report":"Click the Add Report button to set up a regular email report","You dont have any reports set up yet":"You dont have any reports set up yet","You don't have any reports set up yet":"You don't have any reports set up yet","Scale IVT for easier comparison":"Scale IVT for easier comparison","IP Summary":"IP Summary","Suspicious user agents":"Suspicious user agents","Reported to abuse database":"Reported to abuse database","Suspect IP usage type":"Suspect IP usage type","Firewall triggered":"Firewall triggered","No organic ad traffic detected":"No organic ad traffic detected","Proxy activity":"Proxy activity","No conversion activity":"No conversion activity","Abnormal ad activity":"Abnormal ad activity","IP has been detected using our general IVT firewall":"IP has been detected using our general IVT firewall","IP has been reported for abuse behaviour to 3rd Parties":"IP has been reported for abuse behaviour to 3rd Parties","IP has only interacted via paid ads, no organic web traffic detected for the period selected":"IP has only interacted via paid ads, no organic web traffic detected for the period selected","IP requests have been routed via 1 or more public IP addresses":"IP requests have been routed via 1 or more public IP addresses","No conversions have been associated to this IP for this account for the peri
2od selected":"No conversions have been associated to this IP for this account for the period selected","This IP behaves like a Data Center, Content Delivery Network, Or Search Engine Spider":"This IP behaves like a Data Center, Content Delivery Network, Or Search Engine Spider","We have detected suspicious or malicious user agent strings in requests from this IP":"We have detected suspicious or malicious user agent strings in requests from this IP","Clicks and user agent behaviour for this IP on this account is well outside normal expected behaviour":"Clicks and user agent behaviour for this IP on this account is well outside normal expected behaviour","Usage Type":"Usage Type",Conversion:"Conversion",ISP:"ISP","Behaviour across Lunio":"Behaviour across Lunio","Country Code:":"Country Code:",Investigating:"Investigating","Audit history for clicks from this IP address on this platform":"Audit history for clicks from this IP address on this platform","Clicks Audit within":"Clicks Audit within","Clicks Audit within :platform":"Clicks Audit within :platform","PMax Junk Exclusions List":"PMax Junk Exclusions List","Create negative keywords from N-Grams, reduce wasted spend and improve ad relevance.":"Create negative keywords from N-Grams, reduce wasted spend and improve ad relevance.","No accounts found":"No accounts found","No accounts are connected to Lunio":"No accounts are connected to Lunio","If some accounts aren't connected, please speak to your admin user.":"If some accounts aren't connected, please speak to your admin user.","This feature requires connecting your Google Ads account to our partners at Opteo. You have linked :countConnected of your :countTotal Google Ads accounts to Opteo. The following are unlinked:":"This feature requires connecting your Google Ads account to our partners at Opteo. You have linked :countConnected of your :countTotal Google Ads accounts to Opteo. The following are unlinked:","You have connected all of your Google Ads accounts to Opteo.":"You have connected all of your Google Ads accounts to Opteo.",Unknown:"Unknown","If some accounts aren't connected":"If some accounts aren't connected","Hourly Invalid":"Hourly Invalid","Last 4 Weeks":"Last 4 Weeks","You may not have added a Google token yet or if you have then it may take a few hours to sync your data":"You may not have added a Google token yet or if you have then it may take a few hours to sync your data","Click the add button to create your first user":"Click the add button to create your first user","No users found":"No users found","Click the add button to connect a google token":"Click the add button to connect a google token","No accounts assigned":"No accounts assigned","No accounts available":"No accounts available","No platforms found":"No platforms found","There are no accounts available to add to this workspace":"There are no accounts available to add to this workspace","Click on the add button to assign a platform to this workspace":"Click on the add button to assign a platform to this workspace","No platforms available":"No platforms available","You don't have any platforms available to be added to this workspace":"You don't have any platforms available to be added to this workspace","No Members":"No Members","No whitelisted IPs found":"No whitelisted IPs found","Click the add button to setup your first platform":"Click the add button to setup your first platform","Click the add button to create an IP that will never get blocked by our system":"Click the add button to create an IP that will never get blocked by our system","There are no users available to add to this workspace":"There are no users available to add to this workspace","No Google Tokens found":"No Google Tokens found","No Google Accounts found":"No Google Accounts found","No Workspaces found":"No Workspaces found","Click on the add button to create your first workspace":"Click on the add button to create your first workspace","SIVT Percentage":"SIVT Percentage","Active in Period":"Active in Period","View on AbuseIPDB":"View on AbuseIPDB","You have not yet added any members to this workspace":"You have not yet added any members to this workspace","There are no accounts assigned to this workspace yet":"There are no accounts assigned to this workspace yet","Show All":"Show All",Sync:"Sync","Close Workspace Selector":"Close Workspace Selector","Labelled Invalid":"Labelled Invalid","This IP has been labelled as invali
2d by our system":"This IP has been labelled as invalid by our system",Schedule:"Schedule",Keywords:"Keywords",Visual:"Visual","See the periods during the week with the highest traffic volumes and the most invalid traffic.":"See the periods during the week with the highest traffic volumes and the most invalid traffic.","Identify the keywords driving the highest proportions of invalid traffic. Consider excluding keywords trending towards the top right of the scatter. Use the log scale at the bottom to analyze patterns across different traffic volumes effectively.":"Identify the keywords driving the highest proportions of invalid traffic. Consider excluding keywords trending towards the top right of the scatter. Use the log scale at the bottom to analyze patterns across different traffic volumes effectively.","Identify the placements contributing to the highest volumes of invalid traffic. Placements trending towards the upper-right of the scatter plot may suggest a need to adjust targeting or add exclusions. Use the log scale at the bottom to gain insights across varying traffic volumes.":"Identify the placements contributing to the highest volumes of invalid traffic. Placements trending towards the upper-right of the scatter plot may suggest a need to adjust targeting or add exclusions. Use the log scale at the bottom to gain insights across varying traffic volumes.","Compares total traffic for each network with the percentage of invalid traffic. A high proportion of invalid traffic relative to total traffic indicates that a network is a significant source of IVT. Consider refining your campaign targeting to prioritize more reliable networks.":"Compares total traffic for each network with the percentage of invalid traffic. A high proportion of invalid traffic relative to total traffic indicates that a network is a significant source of IVT. Consider refining your campaign targeting to prioritize more reliable networks.","Compare the percentage of total traffic from each country to its percentage of invalid traffic. A high proportion of invalid traffic relative to total traffic indicates that a country is a significant source of IVT.":"Compare the percentage of total traffic from each country to its percentage of invalid traffic. A high proportion of invalid traffic relative to total traffic indicates that a country is a significant source of IVT.",Data:"Data","Toggle user status":"Toggle user status","Remove Token":"Remove Token","Export your campaign data to a CSV file":"Export your campaign data to a CSV file","Export Summary":"Export Summary",Pmax:"Pmax","Export Campaigns":"Export Campaigns","Export Accounts":"Export Accounts","Export your account data to a CSV file":"Export your account data to a CSV file",Interval:"Interval",None:"None","Estimated based on our click data combined with your latest CPC values.":"Estimated based on our click data combined with your latest CPC values.","You can only add up to 40 domains":"You can only add up to 40 domains","Select all":"Select all","Deselect all":"Deselect all","Please select a range of no more than ${maxRangeDays} days":"Please select a range of no more than ${maxRangeDays} days","Please select a range of no more than :maxRangeDays days":"Please select a range of no more than :maxRangeDays days","No historic CPC available. Latest CPC will be used to estimate costs.":"No historic CPC available. Latest CPC will be used to estimate costs.",Scripts:"Scripts","%pt Change":"%pt Change","The value of your campaign spend with invalid clicks factored out":"The value of your campaign spend with invalid clicks factored out","Event Type":"Event Type","Choose the event type which will trigger the audience event on the mplat tracking script":"Choose the event type which will trigger the audience event on the mplat tracking script","Select an event type":"Select an event type","Select Event Type":"Select Event Type","The event type which will trigger the audience event on the mplat tracking script":"The event type which will trigger the audience event on the mplat tracking script","Audit trail feature not available with obfuscated IPs":"Audit trail feature not available with obfuscated IPs",Cick:"Cick",here:"here","to go to settings":"to go to settings","We noticed that you have not set up your conversion script.":"We noticed that you have not set up your conversion script.",Purchase:"Purchase",Lead:"Lead",Whitelisting:"Whitelisting","A conversion that results in a form being filled or an email signup etc":"A conversion that results in a form being filled or an email signup etc","Can only be set when creating a new conversion":"Can only be set when creating a new conversion",Whitelist:"Whitelist","An ip that has been converted will be marked as a valid click for any future clicks":"An ip that has been converted will be marked as a valid click for any future clicks","No whitelisting behaviour":"No whitelisting behaviour","Assign to Workspaces":"Assign to Workspaces","Delete Permanently":"Delete Permanently","Are you sure you want to delete this script?":"Are you sure you want to delete this script?","Click OK to continue or cancel to avoid deletion":"Click OK to continue or cancel to avoid deletion","Conversion type":"Conversion type","A conversion that results in a purchase":"A conversion that results in a purchase","The Script was deleted":"The Script was deleted",Generate:"Generate",Select:"Select",":name conversion script":":name conversion script","No conversion tracking script found.":"No conversion tracking script found.","Generate Script":"Generate Script",Action:"Action","Conversion name":"Conversion name",Type:"Type",Script:"Script",Whitelisted:"Whitelisted","Something went wrong while trying to delete your script":"Something went wrong while trying to delete your script","View Script":"View Script","Edit Script":"Edit Script","Create new conversion configuration":"Create new conversion configuration","No workspaces":"No workspaces","Edit conversion configuration":"Edit conversion configuration","No whitelisting behaviour, just keeps track of conversions":"No whitelisting behaviour, just keeps track of conversions","A conversion that results in a purchase, money exchanged":"A conversion that results in a purchase, money exchanged","For more accurate conversion tracking, we recommend installing a tracking script to fire on any conversion action. You can add this to a tag manager like Google Tag Manager. You can use the same conversion tracking script for any website or landing page you want to protect.":"For more accurate conversion tracking, we recommend installing a tracking script to fire on any conversion action. You can add this to a tag manager like Google Tag Manager. You can use the same conversion tracking script for any website or landing page you want to protect.","Lunio Labs":"Lunio Labs","Beta Features":"Beta Features","Please be aware that these are all Beta Features and are currently under active development":"Please be aware that these are all Beta Features and are currently under active development",":state :flag":":state :flag","Lunio Labs is a place where you can try out and experiment with new beta features":"Lunio Labs is a place where you can try out and experiment with new beta features","Protection status was changed for :name'":"Protection status was changed for :name'","Your account was cancelled on :date'":"Your account was cancelled on :date'",":state :flag'":":state :flag'",":platformName Summary - :workspace'":":platformName Summary - :workspace'","Welcome to your :workspace workspace'":"Welcome to your :workspace workspace'",":name conversion script'":":name conversion script'","This feature requires connecting your Google Ads account to our partners at Opteo. You have linked
2:countConnected of your :countTotal Google Ads accounts to Opteo. The following are unlinked:'":"This feature requires connecting your Google Ads account to our partners at Opteo. You have linked :countConnected of your :countTotal Google Ads accounts to Opteo. The following are unlinked:'","Clicks Audit within :platform'":"Clicks Audit within :platform'","Are you sure you want to manually add :ip to your IP exclusions?'":"Are you sure you want to manually add :ip to your IP exclusions?'","You are about to delete :count Exclusions'":"You are about to delete :count Exclusions'","You have selected :count Google account:s'":"You have selected :count Google account:s'","Running a wash :times times'":"Running a wash :times times'","language(isAdding ? 'Add' : 'Remove":"language(isAdding ? 'Add' : 'Remove","Password must be at least 6 characters long'":"Password must be at least 6 characters long'","Account level to :count account:s'":"Account level to :count account:s'","The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50)":"The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50)","Confirm Password must be at least 6 characters long'":"Confirm Password must be at least 6 characters long'","The following :count users are currently receiving reports'":"The following :count users are currently receiving reports'","Token Expiry: :expiryDate'":"Token Expiry: :expiryDate'","Campaign level to all available campaigns within :count account:s'":"Campaign level to all available campaigns within :count account:s'","Update :count Selected Account:s'":"Update :count Selected Account:s'","Remove :email from list'":"Remove :email from list'","Are you sure you want to delete :user'":"Are you sure you want to delete :user'","WARNING. Deleting this user is permanent. It will remove all of their data. This user cannot be recovered in the future.'":"WARNING. Deleting this user is permanent. It will remove all of their data. This user cannot be recovered in the future.'","language(submitButtonText)":"language(submitButtonText)","Set the protection of status of :count selected account:s to :status'":"Set the protection of status of :count selected account:s to :status'","Set the protection status of all accounts and campaigns to :status'":"Set the protection status of all accounts and campaigns to :status'","Showing :length :labelIdentifier'":"Showing :length :labelIdentifier'","Search :labelIdentifier'":"Search :labelIdentifier'","Please select a range of no more than :maxRangeDays days'":"Please select a range of no more than :maxRangeDays days'","Showing All :labelIdentifier'":"Showing All :labelIdentifier'",":length of :total selected'":":length of :total selected'","All :labelIdentifier selected'":"All :labelIdentifier selected'","Showing :length of :total selected'":"Showing :length of :total selected'","Sort by :id ascending'":"Sort by :id ascending'","100% in this period has maximum click of :value'":"100% in this period has maximum click of :value'",":value of Total Volume'":":value of Total Volume'",":value Invalid Traffic'":":value Invalid Traffic'","Are you sure you want to :actionVerb all accounts? This will :actionVerb all accounts for all users in your organisation and stop monitoring & protection on them.'":"Are you sure you want to :actionVerb all accounts? This will :actionVerb all accounts for all users in your organisation and stop monitoring & protection on them.'","Are you sure you want to delete :email ?'":"Are you sure you want to delete :email ?'","Enable :platform'":"Enable :platform'","Here's what's happening in :platform'":"Here's what's happening in :platform'","Viewing Data for :title'":"Viewing Data for :title'","vs previous :time'":"vs previous :time'","Campaign IVT Alert":"Campaign IVT Alert","To allow protection and monitoring of other platforms you will need to use this multiplatform tracking script. You can add this to a tag manager like Google Tag Manager. You can use the same multiplatform tracking script for any website or landing page you want to protect. Reach out to your account manager if you need help installing this.":"To allow protection and monitoring of other platforms you will need to use this multiplatform tracking script. You can add this to a tag manager like Google Tag Manager. You can use the same multiplatform tracking script for any website or landing page you want to protect. Reach out to your account manager if you need help installing this.","Delete Token":"Delete Token","Depreciate Token":"Depreciate Token","Are you sure you want to depreciate this token?":"Are you sure you want to depreciate this token?","Action disabled
2while depreciation is in progress":"Action disabled while depreciation is in progress","Delete token is disabled while depreciation is in progress":"Delete token is disabled while depreciation is in progress","The token was deprecated successfully":"The token was deprecated successfully","deprecate Token":"deprecate Token","Are you sure you want to deprecate this token?":"Are you sure you want to deprecate this token?","Delete token is disabled while deprecation is in progress":"Delete token is disabled while deprecation is in progress","Delete token is disabled while token deprecation is in progress":"Delete token is disabled while token deprecation is in progress","Deprecate token":"Deprecate token","Set up your conversion script to improve your IVT detection.":"Set up your conversion script to improve your IVT detection.","to find in settings":"to find in settings","Last 90 days":"Last 90 days","Calendar Month":"Calendar Month","Custom Range":"Custom Range","Last 4 weeks":"Last 4 weeks","next scheduled report 20th January":"next scheduled report 20th January","language(type.charAt(0)":"language(type.charAt(0)","Set the protection of status of :count selected campaign:s to :status'":"Set the protection of status of :count selected campaign:s to :status'","Are you sure you want to do this. Setting the protection status of an campaign will also set the same status on all of its campaigns.":"Are you sure you want to do this. Setting the protection status of an campaign will also set the same status on all of its campaigns.","Set the protection status of all campaigns and campaigns to :status'":"Set the protection status of all campaigns and campaigns to :status'","Are you sure you want to do this. This will set the protection status of all campaigns and campaigns within this workspace.":"Are you sure you want to do this. This will set the protection status of all campaigns and campaigns within this workspace.","Are you sure you want to protect this campaign?":"Are you sure you want to protect this campaign?","Are you sure you want to only monitor this campaign?":"Are you sure you want to only monitor this campaign?","Are you sure you want to disable this campaign?":"Are you sure you want to disable this campaign?","Are you sure you want to do this. You are about to set the status for every campaign within this workspace.":"Are you sure you want to do this. You are about to set the status for every campaign within this workspace.","Set the protection status of all campaigns to :status'":"Set the protection status of all campaigns to :status'","Are you sure you want to do this. This will set the protection status of all campaigns within this workspace.":"Are you sure you want to do this. This will set the protection status of all campaigns within this workspace.","Set the protection status of all campaigns to :status":"Set the protection status of all campaigns to :status","Update :count Selected Campaign:s'":"Update :count Selected Campaign:s'","Update :count Selected Campaign:s":"Update :count Selected Campaign:s","Set the protection of status of :count selected campaign:s to :status":"Set the protection of status of :count selected campaign:s to :status","Update All Campaigns":"Update All Campaigns","Performance Max":"Performance Max",Discovery:"Discovery","Multi-Channel":"Multi-Channel",Hotel:"Hotel",Smart:"Smart",Express:"Express","Support Documentation":"Support Documentation","No data":"No data","Client tracking script":"Client tracking script",Convert:"Convert","Script Combiner":"Script Combiner","Copy Combined Script":"Copy Combined Script","Combined script copied to clipboard.":"Combined script copied to clipboard.","Google Tag Manager Template":"Google Tag Manager Template","Copy Template Key":"Copy Template Key","Template Key copied to clipboard.":"Template Key copied to clipboard.","Use our Google Tag Manager tag template":"Use our Google Tag Manager tag template",Yesterday:"Yesterday","Are you sure you want to do this. You are about to set the status for the selected campaigns.":"Are you sure you want to do this. You are about to set the status for the selected campaigns.","A maximum of 50 IP address can be manually excluded.":"A maximum of 50 IP address can be manually excluded.","IVT A/B Testing":"IVT A/B Testing","IVT rate":"IVT rate",Control:"Control",Exposed:"Exposed","% Difference in IVT rate":"% Difference in IVT rate","Average IVT rates for A/B Testing":"Average IVT rates for A/B Testing","Exposed Group":"Exposed Group","Control Group":"Control Group","This tool only works when your script contains {lpurl}":"This tool only works when your script contains {lpurl}","A maximum of 50 IP addresses can be manually excluded.":"A maximum of 50 IP addresses can be manually excluded.","This tool cannot currently be use with {unescapedlpurl}":"This tool cannot currently be use with {unescapedlpurl}","Threat Control":"Threat Control","Adjust the level of risk your traffic will be protected from.":"Adjust the level of risk your traffic will be protected from.","Monitoring Sensitivity":"Monitoring Sensitivity","Select the appropriate level of detection for your account":"Select the appropriate level of detection for your account",Low:"Low","More relaxed categorization of sources":"More relaxed categorization of sources",Medium:"Medium","IVT Risk Sensitivity":"IVT Risk Sensitivity","Default setting":"Default setting",High:"High","More str
2ict with sources and clicks":"More strict with sources and clicks","Note:":"Note:","Protection Sensitivity":"Protection Sensitivity","Select the appropriate level of protection for your account":"Select the appropriate level of protection for your account","More risky IPs may be allowed through":"More risky IPs may be allowed through","Blocks anything suspicious":"Blocks anything suspicious","Are you sure you want to change the monitoring sensitivity?":"Are you sure you want to change the monitoring sensitivity?","Are you sure you want to change the protection sensitivity?":"Are you sure you want to change the protection sensitivity?","Avg. IVT rate for the time period (workspace)":"Avg. IVT rate for the time period (workspace)","Average IVT difference":"Average IVT difference","% Difference in IVT":"% Difference in IVT","Try changing the date range to get more data.":"Try changing the date range to get more data.","Timezone:":"Timezone:","Group By":"Group By","Prev Invalid %":"Prev Invalid %","Invalid Change %":"Invalid Change %","SIVT Clicks %":"SIVT Clicks %",Sampled:"Sampled","Show Sampled":"Show Sampled","Show Non Sampled":"Show Non Sampled","Non Sampled":"Non Sampled","Select camapign type":"Select camapign type","Select keyword type":"Select keyword type","Select match type":"Select match type",Features:"Features","Activate new features on your Lunio account.":"Activate new features on your Lunio account.",Value:"Value","Demand Gen":"Demand Gen",Local:"Local","Local Services":"Local Services",Travel:"Travel","Placement Type":"Placement Type","IP Exclusions":"IP Exclusions","Track & audit IP exclusions across your campaigns":"Track & audit IP exclusions across your campaigns","Mobile App":"Mobile App","Placement Exclusions":"Placement Exclusions","Placements excluded on your account":"Placements excluded on your account","Add some placement exclusions to see them appear here.":"Add some placement exclusions to see them appear here.","IVT %":"IVT %","Hide Google IVT":"Hide Google IVT","Google Invalid Clicks":"Google Invalid Clicks","Google Invalid Clicks %":"Google Invalid Clicks %","Multi Channel":"Multi Channel","Delete Workspace":"Delete Workspace","Are you sure about this?":"Are you sure about this?","Are you sure you want to delete this workspace. Be aware that to delete a workspace":"Are you sure you want to delete this workspace. Be aware that to delete a workspace","Are you sure you want to delete this workspace. Be aware that to delete a workspace, you must first remove accounts, platforms and users from it.":"Are you sure you want to delete this workspace. Be aware that to delete a workspace, you must first remove accounts, platforms and users from it.","Insights into invalid traffic i
2dentified by Lunio":"Insights into invalid traffic identified by Lunio",GIVT:"GIVT","total items":"total items","Spend Tracker":"Spend Tracker","For accurate conversion tracking":"For accurate conversion tracking","For accurate conversion tracking, use either a tracking script via a tag manager like Google Tag Manager or the conversion API to send events from your server. Both work across any website or landing page you want to protect.":"For accurate conversion tracking, use either a tracking script via a tag manager like Google Tag Manager or the conversion API to send events from your server. Both work across any website or landing page you want to protect.","Create Conversion":"Create Conversion","Conversion API":"Conversion API","Send conversion events directly from your server using Lunioâs Conversion API. View the developer documentation here. Find out more information here.":"Send conversion events directly from your server using Lunioâs Conversion API. View the developer documentation here. Find out more information here.","Conversion API Token":"Conversion API Token","Copy Conversion API Token":"Copy Conversion API Token","Send conversion events directly from your server using Lunioâs Conversion API. View the developer documentation":"Send conversion events directly from your server using Lunioâs Conversion API. View the developer documentation","Find out more information here.":"Find out more information here.","Find out more information":"Find out more information","API Key copied to clipboard.":"API Key copied to clipboard.","Parameter (optional)":"Parameter (optional)","A parameter is a custom data value you enable to capture additional details about the conversion event":"A parameter is a custom data value you enable to capture additional details about the conversion event",Apply:"Apply","Invalid date format":"Invalid date format","Whitelist IPs that will never be blocked by our system":"Whitelist IPs that will never be blocked by our system","Please add some platforms to this workspace":"Please add some platforms to this workspace","Please speak to an admin user to add platforms to this workspace":"Please speak to an admin user to add platforms to this workspace","Affiliate Analytics":"Affiliate Analytics",Affiliates:"Affiliates","Explore all your active affiliates that received clicks during this period":"Explore all your active affiliates that received clicks during this period","Export Affiliates":"Export Affiliates","Export your affiliate data to a CSV file":"Export your affiliate data to a CSV file","Affiliate Name":"Affiliate Name",Affiliate:"Affiliate","Affiliate Stats":"Affiliate Stats","Please enter a valid Campaign ID":"Please enter a valid Campaign ID","Please wait for the previous test to complete":"Please wait for the previous test to complete","Test ran successfully!":"Test ran successfully!","Google Tracking Template Validator":"Google Tracking Template Validator","Search for a Campaign ID to view its tracking template....":"Search for a Campaign ID to view its tracking template....","Search Campaign ID":"Search Campaign ID",Level:"Level",Test:"Test","Showing :length of :total Accounts":"Showing :length of :total Accounts","Filtering by all Accounts":"Filtering by all Accounts","Lunio Account":"Lunio Account","Ad stats":"Ad stats","Campaign Stats":"Campaign Stats","Detailed statistics of your campaigns":"Detailed statistics of your campaigns","Detailed statistics for your campaigns":"Detailed statistics for your campaigns",Regions:"Regions","Add this IP to your exclusion list":"Add this IP to your exclusion list","this report was deleted on :date'":"this report was deleted on :date'","This workspace was deleted on :date'":"This workspace was deleted on :date'","This workspace was deleted on :date":"This workspace was deleted on :date","This report was deleted on :date":"This report was deleted on :date","Affiliate Fraud Dashboard":"Affiliate Fraud Dashboard","Monitor and analyse affiliate traffic quality":"Monitor and analyse affiliate traffic quality","Affiliate Metrics Summary":"Affiliate Metrics Summary","Key Metrics":"Key Metrics","Reallocated budget":"Reallocated budget","Avg IVT%":"Avg IVT%","IVT Classifications":"IVT Classifications","Partners by IVT%":"Partners by IVT%","Daily IVT":"Daily IVT","Refresh Google Ads data":"Refresh Google Ads data","Your Google token is invali
2d. Please reconnect your Google account.":"Your Google token is invalid. Please reconnect your Google account.","This report was deleted on :date'":"This report was deleted on :date'","This token is depreciated and all of its customers and campaigns have been removed. Next thing to do is delete it":"This token is depreciated and all of its customers and campaigns have been removed. Next thing to do is delete it","This token is depreciated and all of its customers and campaigns have been removed. Next thing to do is delete it.":"This token is depreciated and all of its customers and campaigns have been removed. Next thing to do is delete it.","Delete this deprecate token":"Delete this deprecate token","This token is no longer active and all linked customers and campaigns have been removed. You can now delete the token.":"This token is no longer active and all linked customers and campaigns have been removed. You can now delete the token.","Could not find any tracking templates":"Could not find any tracking templates","Copied to clipboard :value":"Copied to clipboard :value","Updated By":"Updated By","Campaign Metrics":"Campaign Metrics","% Invalid Clicks":"% Invalid Clicks","Set Geo Targeting to USA Sates":"Set Geo Targeting to USA Sates","Top 5 Partners by IVT%":"Top 5 Partners by IVT%","Hereâs an overview of your campaigns performance":"Hereâs an overview of your campaigns performance",Vs:"Vs",to:"to","Google Audit Trail":"Google Audit Trail","Click Locations":"Click Locations","No location data available for this IP address":"No location data available for this IP address","try a different IP address":"try a different IP address","No data available for this IP address":"No data available for this IP address","Invalid Clicks Summary":"Invalid Clicks Summary","Google Clicks Summary":"Google Clicks Summary","Protected - Your campaign is actively protected against invalid traffic.":"Protected - Your campaign is actively protected against invalid traffic.","Monitored - Your campaign is being monitored for invalid traffic.":"Monitored - Your campaign is being monitored for invalid traffic.","Disabled - Your campaign is not protected or monitored for invalid traffic.":"Disabled - Your campaign is not protected or monitored for invalid traffic.","UTC Timezone":"UTC Timezone",WAF:"WAF","Proxy Requests":"Proxy Requests","Geo Masking":"Geo Masking",Crawler:"Crawler","Duplicate Fingerprint":"Duplicate Fingerprint",Emulator:"Emulator","Total Sources":"Total Sources","Click Percentage":"Click Percentage","Click Count":"Click Count",Totals:"Totals","Welcome to your :workspace :isAllWorkspaces'":"Welcome to your :workspace :isAllWorkspaces'",workspace:"workspace","Welcome to your :workspace :isAllWorkspaces":"Welcome to your :workspace :isAllWorkspaces",dashboard:"dashboard","View detailed information about IP addresses interacting with your ads.":"View detailed information about IP addresses interacting with your ads.","View the total ad spend protected by Lunio across all your connected Google accounts.":"View the total ad spend protected by Lunio across all your connected Google accounts.","Script Debugging":"Script Debugging","Check if Lunio scripts are installed and working correctly on any URL.":"Check if Lunio scripts are installed and working correctly on any URL.","What is GIVT?":"What is GIVT?","Lunio now surfaces General Invalid Traffic (GIVT)":"Lunio now surfaces General Invalid Traffic (GIVT)","Lunio now surfaces General Invalid Traffic (GIVT) â including duplicate clicks, known crawlers, and simple bots â in a separate column. These low-risk clicks are typically filtered by ad platforms and not billed. The âInvalid Clicksâ metric excludes GIVT, offering clearer insight into more advanced threats Lunio blocks.":"Lunio now surfaces General Invalid Traffic (GIVT) â including duplicate clicks, known crawlers, and simple bots â in a separate column. These low-risk clicks are typically filtered by ad platforms and not billed. The âInvalid Clicksâ metric excludes GIVT, offering clearer insight into more advanced threats Lunio blocks.","This metric shows the total cost of ad spend attributed to traffic from invalid sources over the selected date range. Invalid sources may include bots":"This metric shows the total cost of ad spend attributed to traffic from invalid sources over the selected date range. Invalid sources may include bots","This metric shows the total cost of ad spend attributed to traffic from invalid sources over the selected date range. Invalid sources may include bots, fraudulent clicks, or any traffic that does not meet quality standards. Monitoring this metric helps in identifying and mitigating ad fraud, ensuring that your advertising budget is spent effectively on genuine user engagement."
2:"This metric shows the total cost of ad spend attributed to traffic from invalid sources over the selected date range. Invalid sources may include bots, fraudulent clicks, or any traffic that does not meet quality standards. Monitoring this metric helps in identifying and mitigating ad fraud, ensuring that your advertising budget is spent effectively on genuine user engagement.","All statuses were successfully updated for all Accounts and their Campaigns":"All statuses were successfully updated for all Accounts and their Campaigns","All Campaigns statuses were successfully updated":"All Campaigns statuses were successfully updated","Key Metrics Summary":"Key Metrics Summary","All Platforms":"All Platforms","language(item.name)":"language(item.name)","`Affiliate Analytics":"`Affiliate Analytics","Add Redirect URL":"Add Redirect URL","Redirect URL":"Redirect URL","IVT Summary":"IVT Summary","View a summary of your invalid traffic metrics":"View a summary of your invalid traffic metrics","Conversion Analytics":"Conversion Analytics","Total Conversions":"Total Conversions","Invalid Conversions":"Invalid Conversions","Click Farms":"Click Farms","Conversion Threshold":"Conversion Threshold","Bot Traffic":"Bot Traffic",Emulators:"Emulators",VPN:"VPN","Monitor and analyse affiliate conversion quality":"Monitor and analyse affiliate conversion quality","Affiliate Network Conversion Analytics":"Affiliate Network Conversion Analytics","Monitor affiliate conversion quality across all of your networks":"Monitor affiliate conversion quality across all of your networks","IVT%":"IVT%","Top Reasons":"Top Reasons",Networks:"Networks",Partners:"Partners","Affiliate Partners Conversion Analytics":"Affiliate Partners Conversion Analytics","Monitor affiliate conversion quality across all of your partners":"Monitor affiliate conversion quality across all of your partners","Affiliate Campaigns Conversion Analytics":"Affiliate Campaigns Conversion Analytics","Monitor affiliate conversion quality across all of your campaigns":"Monitor affiliate conversion quality across all of your campaigns",":network Summary":":network Summary",":network Overview":":network Overview",Partner:"Partner","Fraud Classification":"Fraud Classification","Est. Re-allocated Budget":"Est. Re-allocated Budget","Cost of Invalid Sources":"Cost of Invalid Sources",unassigned:"unassigned","Conversion Hijacking":"Conversion Hijacking","Cookie Stuffing":"Cookie Stuffing","Here you can see your user details and manage settings for your user account.":"Here you can see your user details and manage settings for your user account.",":network Overview'":":network Overview'",":network Summary'":":network Summary'","Fraud Types":"Fraud Types","An overview of how your campaign performed":"An overview of how your campaign performed","Monitor conversions across all of your Networks":"Monitor conversions across all of your Networks","Monitor conversions across all of your Networks, Partners and Campaigns":"Monitor conversions across all of your Networks, Partners and Campaigns","Release Notes":"Release Notes",":campaign Summary":":campaign Summary",":campaign Overview":":campaign Overview","Fraud Type":"Fraud Type",":partner Overview":":partner Overview",":partner Summary":":partner Summary","Proxy Requests / VPN":"Proxy Requests / VPN","Device Anomaly":"Device Anomaly","Platforms and Scripts":"Platforms and Scripts","Monitor the status of your platforms, tokens and scripts.":"Monitor the status of your platforms, tokens and scripts.","Platform Integrations":"Platform Integrations","Connection status for advertising platforms":"Connection status for advertising platforms","Google Ads":"Google Ads","Sync to update the dashboard with the latest data from your Google Ads accounts and campaigns.":"Sync to update the dashboard with the latest data from your Google Ads accounts and campaigns.","Clicks coming through:":"Clicks coming through:","Script & Tracking":"Script & Tracking","Monitor script installation and tracking implementation":"Monitor script installation and tracking implementation","Conversion Script":"Conversion Script","Tracking all conversions":"Tracking all conversions",":platform Audit Trail":":platform Audit Trail","Affiliate Network Analytics":"Affiliate Network Analytics","Monitor affiliate traffic quality across all of your networks":"Monitor affiliate traffic quality across all of your networks","Affiliate Partners Analytics":"Affiliate Partners Analytics","Monitor affiliate traffic quality across all of your partners":"Monitor affiliate traffic quality across all of your partners","Affiliate Campaigns Analytics":"Affiliate Campaigns Analytics","Monitor affiliate traffic quality across all of your campaigns":"Monitor affiliate traffic quality across all of your campaigns","language(value)":"language(value)",":platform Audit Trail'":":platform Audit Trail'","Are you sure you want to force delete this token?":"Are you sure you want to force delete this token?",":campaign Overview'":":campaign Overview'",":partner Overview'":":partner Overview'",":campaign Summary'":":campaign Summary'",":partner Summary'":":partner Summary'","language(affiliateLabels[row?.fraud_type])":"language(affiliateLabels[row?.fraud_type])","Delete token":"Delete token","Force delete token":"Force delete token","Deprecate Token":"Deprecate Token","Monitor across all of your Networks":"Monitor across all of your Networks","Monitor across all of your Networks, Partners and Campaigns":"Monitor across all of your Networks, Partners and Campaigns","Monitor the status of your platforms":"Monitor the status of your platforms","Exports the table on this page with the applied filters and selected date range as a CSV File.":"Exports the table on this page with the applied filters and selected date range as a CSV File.","language(getAffiliateLabels('analytics":"language(getAffiliateLabels('analytics","Affiliate Analytics Fraud Types Export":"Affiliate Analytics Fraud Types Export",Exporting:"Exporting","Campaign name starts with:":"Campaign name starts with:","Network name starts with:":"Network name starts with:","Partner name starts with:":"Partner name starts with:","Campaign:":"Campaign:","Network:":"Network:","Partner:":"Partner:","Affiliate Conversions Fraud Types Export":"Affiliate Conversions Fraud Types Export","Affiliate Analytics Export":"Affiliate Analytics Export","Affiliate Conversions Export":"Affiliate Conversions Export","Search Equals":"Search Equals","Must be a valid domain":"Must be a valid domain","Must be a valid Android mobile app bundle ID":"Must be a valid Android mobile app bundle ID","Must be a valid Apple Store Connect App ID":"Must be a valid Apple Store Connect App ID","Your placement block has been placed in a queue for processing and will be added within the next few minutes":"Your placement block has been placed in a queue for processing and will be added within the next few minutes","Manually add this Placement to the exclusion list":"Manually add this Placement to the exclusion list","Enter Domain or Subdomain":"Enter Domain or Subdomain","Enter Apple Store Connect App ID":"Enter Apple Store Connect App ID","Enter Android Bundle ID":"Enter Android Bundle ID","Add Placement":"Add Placement","Add Placement Exclusions":"Add Placement Exclusions","iPhone app":"iPhone app","Android app":"Android app","Lunio applies a maximum of 65":"Lunio applies a maximum of 65","Apply Exclusion":"Apply Exclusion","Google allows a maximum of 65,000 Placement Exclusions at Account Level. Manually adding placements may remove placements added by Lunio.":"Google allows a maximum of 65,000 Placement Exclusions at Account Level. Manually adding placements may remove placements added by Lunio.","Placement statuses were queued for processing and will be updated within the next few minutes":"Placement statuses were queued for processing and will be updated within the next few minutes","Placement status update failed to process":"Placement status update failed to process","Change Status":"Change Status","Confirm Placement Exclusions Status Change":"Confirm Placement Exclusions Status Change","Are you sure you want to set the :selectionCount selected Placement :ExclusionPlural to :status'":"Are you sure you want to set the :selectionCount selected Placement :ExclusionPlural to :status'",Exclusion:"Exclusion","Are you sure you want to set the :selectionCount selected Placement :ExclusionPlural to :status":"Are you sure you want to set the :selectionCount selected Placement :ExclusionPlural to :status","Redirect URL must be a valid URL":"Redirect URL must be a valid URL","Click Capping Redirection URL cannot be blank":"Click Capping Redirection URL cannot be blank","Click Capping Redirection URL must be a valid URL":"Click Capping Redirection URL must be a valid URL",Configuration:"Configuration","Click Capping":"Click Capping","Limit the number of clicks from a single user.":"Limit the number of clicks from a single user.","Users are limited to :n :clicksPlural per 24 hours'":"Users are limited to :n :clicksPlural per 24 hours'",click:"click","Click Capping Redirection URL":"Click Capping Redirection URL","Users are limited to :n :clicksPlural per 24 hours":"Users are limited to :n :clicksPlural per 24 hours","Define where users who exceed click cap should be redirected to.":"Define where users who exceed click cap should be redirected to.","Users are limited to :n :clicksPlural per 24 hour":"Users are limited to :n :clicksPlural per 24 hour",clicks:"clicks","Campaign Name or ID":"Campaign Name or ID","Starts Equals":"Starts Equals",Equals:"Equals","Meta Tokens":"Meta Tokens","Meta Token Settings":"Meta Token Settings","Add or manage your Meta tokens":"Add or manage your Meta tokens","No tokens here yet":"No tokens here yet","Add New Meta Token":"Add New Meta Token","We will flag when users attempt more than :n :conversionsPlural per 24 hours":"We will flag when users attempt more than :n :conversionsPlural per 24 hours","That ISP has been added already":"That ISP has been added already","The ISP you are trying to add must be a valid name":"The ISP you are trying to add must be a valid name","You can only add up to 40 IPS records":"You can only add up to 40 IPS records",conversion:"conversion",Blocklists:"Blocklists","Add ISP":"Add ISP","Type ISP here":"Type ISP here","Type a valid ISP into the input then click Add ISP.":"Type a valid ISP into the input then click Add ISP.","Device ISP":"Device ISP","Remove ISP URL":"Remove ISP URL","Remove ISP":"Remove ISP",conversions:"conversions","We will flag when users attempt more than :n :conversionsPlural per 24 hours'":"We will flag when users attempt more than :n :conversionsPlural per 24 hours'","Click Capping Input":"Click Capping Input","You can only add up to 40 ISP records":"You can only add up to 40 ISP records","Meta connection was successful":"Meta connection was successful","Lunio has requested your data from Meta, it will arrive shortly. When the status says âActiveâ, your data has been pulled through.":"Lunio has requested your data from Meta, it will arrive shortly. When the status says âActiveâ, your data has been pulled through.","Meta connection was unsuccessful":"Meta connection was unsuccessful","Meta Audit Trail":"Meta Audit Trail",True:"True",False:"False","language(option.label)":"language(option.label)","Lunio has requested your data from Meta":"Lunio has requested your data from Meta","Click Capped":"Click Capped","Conversion Capped":"Conversion Capped","Excluded ISP":"Excluded ISP","Affiliate IVT Alert":"Affiliate IVT Alert","Select Report Type":"Select Report Type","Insights & Recommendations":"Insights & Recommendations","Insights and actionable guidance to improve performance and reduce invalid traffic":"Insights and actionable guidance to improve performance and reduce invalid traffic","No Insights & Recommendations":"No Insights & Recommendations","There are currently no insights or recommendations available for your account. Please check back later.":"There are currently no insights or recommendations available for your account. Please check back later.",Dismiss:"Dismiss",ago:"ago","Failed to dismiss recommendation":"Failed to dismiss recommendation","Failed to action recommendation":"Failed to action recommendation",":type was dismissed successfully":":type was dismissed successfully","Show less":"Show less","Read more...":"Read more...",":type was actioned
2successfully and may take a few minutes to complete":":type was actioned successfully and may take a few minutes to complete",":type was dismissed successfully'":":type was dismissed successfully'",":type was actioned successfully and may take a few minutes to complete'":":type was actioned successfully and may take a few minutes to complete'","Connect your Meta account to start managing your Meta protection.":"Connect your Meta account to start managing your Meta protection.",Occurrences:"Occurrences","View Guide":"View Guide",Recommendations:"Recommendations","Insights and actionable guidance to improve configuration":"Insights and actionable guidance to improve configuration","Insights and actionable guidance to improve configuration, performance and reduce invalid traffic":"Insights and actionable guidance to improve configuration, performance and reduce invalid traffic","Expires At":"Expires At","The Report was deleted":"The Report was deleted","Affiliate Fraud Summary":"Affiliate Fraud Summary","Conversion Analytics Summary":"Conversion Analytics Summary","Invalid Conversion Rate":"Invalid Conversion Rate","Invalid Conversion Rate%":"Invalid Conversion Rate%","Suspicious Conversions":"Suspicious Conversions","Partners With Highest Invalid Conversions":"Partners With Highest Invalid Conversions","Partners With Highest Invalid Conversion Rate":"Partners With Highest Invalid Conversion Rate","Firewall detection of automated traffic that mimics real users to generate fake traffic.":"Firewall detection of automated traffic that mimics real users to generate fake traffic.","Masking IP addresses to hide the real source of traffic":"Masking IP addresses to hide the real source of traffic","Hiding the real location to appear as if itâs coming from a different country":"Hiding the real location to appear as if itâs coming from a different country","An automated program that systematically browses websites by making requests to URLs":"An automated program that systematically browses websites by making requests to URLs","Blocks duplicate traffic when the same device/browser fingerprint repeats.":"Blocks duplicate traffic when the same device/browser fingerprint repeats.","Programs pretending to be real devices or users to create fake traffic.":"Programs pretending to be real devices or users to create fake traffic.","Fake device models":"Fake device models","Dropping affiliate cookies without user interaction to steal attribution.":"Dropping affiliate cookies without user interaction to steal attribution.","Stealing attribution by injecting fake clicks just before conversion.":"Stealing attribution by injecting fake clicks just before conversion.","Identify unusually high click activity from a single user in a day.":"Identify unusually high click activity from a single user in a day.","Identify unusually high conversion activity from a single user in a day.":"Identify unusually high conversion activity from a single user in a day.","When an ISP is known to be problematic":"When an ISP is known to be problematic","Hiding the real location to appear as if itâs coming from a different country, region, or city.":"Hiding the real location to appear as if itâs coming from a different country, region, or city.","An automated program that systematically browses websites by making requests to URLs, usually without human interaction.":"An automated program that systematically browses websites by making requests to URLs, usually without human interaction.","Fake device models, or suspicious patterns.":"Fake device models, or suspicious patterns.","When an ISP is known to be problematic, you can add the ISP into the affiliate configuration to flag it in the affiliate reporting.":"When an ISP is known to be problematic, you can add the ISP into the affiliate configuration to flag it in the affiliate reporting.","Masking IP addresses to hide the real source of traffic.":"Masking IP addresses to hide the real source of traffic.","Campaign Type | Effective Status":"Campaign Type | Effective Status",eCPC:"eCPC","Cost Model":"Cost Model","Avg. Cost":"Avg. Cost","Adjusted Spend":"Adjusted Spend","User Email"
2:"User Email","Protection Change Log Export":"Protection Change Log Export","Export protection change events to a CSV file":"Export protection change events to a CSV file","Protection Change Log":"Protection Change Log","View details of changes made to Google Account and Campaign protection statuses.":"View details of changes made to Google Account and Campaign protection statuses.","Accounts Filter":"Accounts Filter","Change Date":"Change Date","account selected":"account selected","accounts selected":"accounts selected","Account Name or ID Contains":"Account Name or ID Contains","User Name":"User Name","Campaign Name or ID Contains":"Campaign Name or ID Contains","Impersonated By":"Impersonated By","User Email Contains":"User Email Contains","The Change Log is only available for Google accounts. Please switch to the Google platform to see the page.":"The Change Log is only available for Google accounts. Please switch to the Google platform to see the page.","Ad Sets":"Ad Sets","Explore all your active Ad sets that received clicks during this period":"Explore all your active Ad sets that received clicks during this period","Ad set Name":"Ad set Name",CTR:"CTR","Explore all your active Ad Sets that received clicks during this period":"Explore all your active Ad Sets that received clicks during this period","Google Token Authentication Error":"Google Token Authentication Error","Multiplatform Script Issue":"Multiplatform Script Issue","Conversion Script Issue":"Conversion Script Issue","New Placements Detected":"New Placements Detected","Data Health":"Data Health",Tracking:"Tracking","Coverage Protection":"Coverage Protection","Critical Issues":"Critical Issues","High Priority":"High Priority","Medium Priority":"Medium Priority","Low Priority":"Low Priority",Optimization:"Optimization",Informational:"Informational","All Types":"All Types",Severity:"Severity","All Severities":"All Severities","language(string":"language(string","Total Metrics":"Total Metrics",Generated:"Generated",Interacted:"Interacted",Resolved:"Resolved",Dismissed:"Dismissed","Status Breakdown":"Status Breakdown","hello we have :val1 apples and :val2 oranges":"hello we have :val1 apples and :val2 oranges","Brand Bidding":"Brand Bidding","Branded Bidding Configuration":"Branded Bidding Configuration","The base configuration for your branded keywords":"The base configuration for your branded keywords","Ad Set Name":"Ad Set Name","Lunio has not applied any IP exclusions in the last 24 hours for the campaigns listed below, despite traffic being detected and protection being enabled.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf exclusions are not being applied as expected, protection effectiveness may be reduced.**newline**newlineAffected campaigns:**newline**newline:campaigns":"Lunio has not applied any IP exclusions in the last 24 hours for the campaigns listed below, despite traffic being detected and protection being enabled.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf exclusions are not being applied as expected, protection effectiveness may be reduced.**newline**newlineAffected campaigns:**newline**newline:campaigns","Missing Campaign IP Exclusions":"Missing Campaign IP Exclusions","Drop in Campaign Click Amount":"Drop in Campaign Click Amount","Drop in Campaign Activity Amount":"Drop in Campaign Activity Amount","Missing Conversions With Tracking Detected":"Missing Conversions With Tracking Detected","Missing Multiplatform Script":"Missing Multiplatform Script","Drop in Campaigns IVT Amount":"Drop in Campaigns IVT Amount","Missing Campaign Google Tracking Script":"Missing Campaign Google Tracking Script","Clicks for the campaigns listed below have decreased by more than 80% compared to the previous 7-day period.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, review recent campaign updates and connection status.**newline**newlineAffected campaigns:**newline**newline:campaigns":"Clicks for the campaigns listed below have decreased by more than 80% compared to the previous 7-day period.**newline**ne
2wlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, review recent campaign updates and connection status.**newline**newlineAffected campaigns:**newline**newline:campaigns","The number of active campaigns has decreased by more than 25% compared to the previous 7-day period.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, recent campaign updates and connection status should be reviewed.**newline**newlineAffected campaigns:**newline**newline:campaigns":"The number of active campaigns has decreased by more than 25% compared to the previous 7-day period.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, recent campaign updates and connection status should be reviewed.**newline**newlineAffected campaigns:**newline**newline:campaigns","The conversion actions listed below are configured, but no conversion events have been detected in the last 5 days despite traffic being present.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf conversions are expected, please verify that your conversion script or API is correctly implemented and firing.**newline**newlineYou can review your configuration in Settings > Integrations > Conversions.**newline**newlineAffected conversion actions:**newline**newline:configurations":"The conversion actions listed below are configured, but no conversion events have been detected in the last 5 days despite traffic being present.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf conversions are expected, please verify that your conversion script or API is correctly implemented and firing.**newline**newlineYou can review your configuration in Settings > Integrations > Conversions.**newline**newlineAffected conversion actions:**newline**newline:configurations","Lunio has not detected multiplatform script activity in the last 7 days for the domains listed below.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineWithout an active script, traffic from supported platforms cannot be monitored or protected effectively.**newline**newlinePlease review your script implementation.**newline**newlineAffected domains:**newline**newline:domains":"Lunio has not detected multiplatform script activity in the last 7 days for the domains listed below.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineWithout an active script, traffic from supported platforms cannot be monitored or protected effectively.**newline**newlinePlease review your script implementation.**newline**newlineAffected domains:**newline**newline:domains","Detected invalid traffic has decreased by more than 10% for the campaigns listed below, while overall traffic levels remain stable.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, recent updates to configuration or integrations should be reviewed.**newline**newlineAffected campaigns:**newline**newline:campaigns":"Detected invalid traffic has decreased by more than 10% for the campaigns listed below, while overall traffic levels remain stable.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, recent updates to configuration or integrations should be reviewed.**newline**newlineAffected campaigns:**newline**newline:campaigns","Lunio has not detected the required tracking template or script for the campaigns listed below.**newline**newlineWithout valid tracking data:**newline**newline:static_bulletpoint_list_1**newline**newlinePlease review your tracking configuration to ensure the required tracking template or script is correctly applied at either account or campaign level.**newline**newlineAffected campaigns:**newline**newline:campaigns":"Lunio has not detected the required tracking template or script for the campaigns listed below.**newline**ne
2wlineWithout valid tracking data:**newline**newline:static_bulletpoint_list_1**newline**newlinePlease review your tracking configuration to ensure the required tracking template or script is correctly applied at either account or campaign level.**newline**newlineAffected campaigns:**newline**newline:campaigns",Optimisation:"Optimisation","Lunio has not detected any clicks from :Platform in the last 7 days. This usually indicates that the multiplatform script is not installed, not loading correctly, or not fully configured for this platform. Review your multi-platform script setup for :Platform to ensure it is correctly implemented and active.":"Lunio has not detected any clicks from :Platform in the last 7 days. This usually indicates that the multiplatform script is not installed, not loading correctly, or not fully configured for this platform. Review your multi-platform script setup for :Platform to ensure it is correctly implemented and active.","Data Explorer":"Data Explorer","Show recommendations that are only visible to Lunio staff":"Show recommendations that are only visible to Lunio staff","Show Internal Recommendations":"Show Internal Recommendations","Brand Protection Overview":"Brand Protection Overview","Monitor ads appearing on your branded search terms":"Monitor ads appearing on your branded search terms","Advertiser Insights":"Advertiser Insights",Advertisers:"Advertisers","Higher invalid traffic detected during specific hours":"Higher invalid traffic detected during specific hours","Higher invalid traffic detected from Search Partners":"Higher invalid traffic detected from Search Partners","Placements generating higher invalid traffic detected":"Placements generating higher invalid traffic detected","Higher invalid traffic detected on specific devices":"Higher invalid traffic detected on specific devices","Keywords generating higher invalid traffic detected":"Keywords generating higher invalid traffic detected","Higher invalid traffic detected on specific channels":"Higher invalid traffic detected on specific channels","Higher invalid traffic detected from specific countries":"Higher invalid traffic detected from specific countries","Ad groups generating higher invalid traffic detected":"Ad groups generating higher invalid traffic detected","Broad match keywords generating higher invalid traffic":"Broad match keywords generating higher invalid traffic","Short keywords generating higher invalid traffic":"Short keywords generating higher invalid traffic","Campaigns generating higher invalid traffic detected":"Campaigns generating higher invalid traffic detected","Campaign type is generating higher invalid traffic":"Campaign type is generating higher invalid traffic","Invalid traffic concentrated in a small number of campaigns":"Invalid traffic concentrated in a small number of campaigns","Invalid traffic concentrated in a small number of keywords":"Invalid traffic concentrated in a small number of keywords","Unusually high conversion rate detected":"Unusually high conversion rate detected","Drop in conversion rate detected":"Drop in conversion rate detected","Meta integration not configured":"Meta integration not configured","Required parameters missing from Meta traffic":"Required parameters missing from Meta traffic","Incorrect parameter values detected":"Incorrect parameter values detected","Platform tracking parameter missing":"Platform tracking parameter missing","Incorrect platform parameter values detected":"Incorrect platform parameter values detected","Higher invalid traffic detected during specific hours of the day.":"Higher invalid traffic detected during specific hours of the day.","Higher invalid traffic detected from Search Partners.":"Higher invalid traffic detected from Search Partners.","Placements generating higher invalid traffic detected.":"Placements generating higher invalid traffic detected.","Higher invalid traffic detected on specific device types.":"Higher invalid traffic detected on specific device types.","Keywords generating higher invalid traffic detected.":"Keywords generating higher invalid traffic detected.","Higher invalid traffic detected on specific channels.":"Higher invalid traffic detected on specific channels.","Higher invalid traffic detected from specific countries.":"Higher invalid traffic detected from specific countries.","Ad groups generating higher invalid traffic detected.":"Ad groups generating higher invalid traffic detected.","Broad match keywords generating higher invalid traffic.":"Broad match keywords generating higher invalid traffic.","Short or generic keywords generating higher invalid traffic.":"Short or generic keywords generating higher invalid traffic.","Campaigns generating higher invalid traffic detected.":"Campaigns generating higher invalid traffic detected.","A campaign type is generating higher invalid traffic.":"A campaign type is generating higher invalid traffic.","Invalid traffic concentrated in a small number of campaigns.":"Invalid traffic concentrated in a small number of campaigns.","Invalid traffic concentrated in a small number of keywords.":"Invalid traffic concentrated in a small number of keywords.","Unusually high conversion rate detected.":"Unusually high conversion rate detected.","Drop in conversion rate detected for a campaign.":"Drop in conversion rate detected for a campaign.","Meta integration not configured for this account.":"Meta integration not configured for this account.","Required parameters missing from Meta traffic.":"Required parameters missing from Meta traffic.","Incorrect parameter values detected for Meta integration.":"Incorrect parameter values detected for Meta integration.","Platform tracking parameter missing for detected platforms.":"Platform tracking parameter missing for detected platforms.","Incorrect platform parameter values detected.":"Incorrect platform parameter values detected.","Traffic during the hours listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**ne
2wlineAffected hours:**newline**newline:hours**newline**newlineReview your campaign ad scheduling and monitor delivery during these hours to reduce exposure to lower quality traffic.":"Traffic during the hours listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected hours:**newline**newline:hours**newline**newlineReview your campaign ad scheduling and monitor delivery during these hours to reduce exposure to lower quality traffic.","Traffic from the Search Partners listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to Google.com over the last :lookback_period.**newline**newlineAffected partners:**newline**newline:partners**newline**newlineReview your network settings and consider limiting exposure to these partners if traffic quality appears lower.":"Traffic from the Search Partners listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to Google.com over the last :lookback_period.**newline**newlineAffected partners:**newline**newline:partners**newline**newlineReview your network settings and consider limiting exposure to these partners if traffic quality appears lower.","The placements listed below are generating more than :ivt_deviation_threshold% higher invalid traffic compared to the campaign average over the last :lookback_period.**newline**newlineAffected placements:**newline**newline:placements**newline**newlineReview these placements and consider excluding them if the traffic appears low quality.":"The placements listed below are generating more than :ivt_deviation_threshold% higher invalid traffic compared to the campaign average over the last :lookback_period.**newline**newlineAffected placements:**newline**newline:placements**newline**newlineReview these placements and consider excluding them if the traffic appears low quality.","Traffic from the devices listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected devices:**newline**newline:devices**newline**newlineReview device performance and consider adjusting device targeting if appropriate.":"Traffic from the devices listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected devices:**newline**newline:devices**newline**newlineReview device performance and consider adjusting device targeting if appropriate.","The keywords listed below are generating more than :ivt_deviation_threshold% higher invalid traffic compared to other keywords in the campaign over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview these keywords and consider refining match types or adding negative keywords to reduce exposure to lower quality queries.":"The keywords listed below are generating more than :ivt_deviation_threshold% higher invalid traffic compared to other keywords in the campaign over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview these keywords and consider refining match types or adding negative keywords to reduce exposure to lower quality queries.","Traffic from the channels listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected channels:**newline**newline:channels**newline**newlineReview traffic from these channels and consider adjusting targeting or campaign configuration if appropriate.":"Traffic from the channels listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected channels:**newline**newline:channels**newline**newlineReview traffic from these channels and consider adjusting targeting or campaign configuration if appropriate.","Traffic from the countries listed below has generated more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**ne
2wlineAffected countries:**newline**newline:countries**newline**newlineReview campaign geographic targeting and traffic sources associated with these locations to reduce exposure to lower quality traffic.":"Traffic from the countries listed below has generated more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected countries:**newline**newline:countries**newline**newlineReview campaign geographic targeting and traffic sources associated with these locations to reduce exposure to lower quality traffic.","The ad groups listed below are generating more than :threshold% higher invalid traffic compared to the campaign average over the last :lookback_period.**newline**newlineAffected ad groups:**newline**newline:ad_groups**newline**newlineReview keyword targeting and match types within these ad groups to identify potential sources of lower quality traffic.":"The ad groups listed below are generating more than :threshold% higher invalid traffic compared to the campaign average over the last :lookback_period.**newline**newlineAffected ad groups:**newline**newline:ad_groups**newline**newlineReview keyword targeting and match types within these ad groups to identify potential sources of lower quality traffic.","The broad match keywords listed below are generating more than :threshold% higher invalid traffic compared to other keywords in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview the keywords listed above and consider refining match types or adding negative keywords to reduce exposure to lower quality queries.":"The broad match keywords listed below are generating more than :threshold% higher invalid traffic compared to other keywords in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview the keywords listed above and consider refining match types or adding negative keywords to reduce exposure to lower quality queries.","The keywords listed below are short or highly generic and are generating more than :threshold% higher invalid traffic compared to other keywords in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineConsider refining these keywords with more specific variations or adjusting match types to reduce exposure to low intent traffic.":"The keywords listed below are short or highly generic and are generating more than :threshold% higher invalid traffic compared to other keywords in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineConsider refining these keywords with more specific variations or adjusting match types to reduce exposure to low intent traffic.","The campaigns listed below are generating more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview campaign targeting, placements and traffic sources. You may also want to review creative and messaging if these campaigns are attracting lower quality traffic.":"The campaigns listed below are generating more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview campaign targeting, placements and traffic sources. You may also want to review creative and messaging if these campaigns are attracting lower quality traffic.","The following :campaign_type campaigns are generating more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview targeting signals, placements and campaign configuration to identify potential sources of lower quality traffic.":"The following :campaign_type campaigns are generating more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**ne
2wlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview targeting signals, placements and campaign configuration to identify potential sources of lower quality traffic.","A small number of campaigns are responsible for more than :threshold% of the invalid traffic detected in your account over the last :lookback_period.**newline**newlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview these campaigns to identify targeting or inventory sources that may be driving the concentration of invalid traffic.":"A small number of campaigns are responsible for more than :threshold% of the invalid traffic detected in your account over the last :lookback_period.**newline**newlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview these campaigns to identify targeting or inventory sources that may be driving the concentration of invalid traffic.","A small number of keywords are responsible for more than :threshold% of the invalid traffic detected in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview the keywords listed above and consider refining targeting or adding exclusions to reduce exposure to lower quality traffic.":"A small number of keywords are responsible for more than :threshold% of the invalid traffic detected in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview the keywords listed above and consider refining targeting or adding exclusions to reduce exposure to lower quality traffic.","Your account has recorded a conversion rate of more than :conversion_rate_threshold% over the last :lookback_period, which is higher than expected.**newline**newlineThis may indicate that conversion tracking has not been setup correctly, for example on non-conversion pages or interactions (e.g., homepage, product pages, refund pages, amend booking pages, etc)**newline**newlineIf conversion tracking is misconfigured, this can lead to inaccurate reporting and negatively impact optimisation.**newline**newlineReview your conversion tracking setup and ensure it is only firing on valid conversion events (e.g. confirmation or thank you pages).":"Your account has recorded a conversion rate of more than :conversion_rate_threshold% over the last :lookback_period, which is higher than expected.**newline**newlineThis may indicate that conversion tracking has not been setup correctly, for example on non-conversion pages or interactions (e.g., homepage, product pages, refund pages, amend booking pages, etc)**newline**newlineIf conversion tracking is misconfigured, this can lead to inaccurate reporting and negatively impact optimisation.**newline**newlineReview your conversion tracking setup and ensure it is only firing on valid conversion events (e.g. confirmation or thank you pages).","The conversion rate for :campaign_name has decreased by more than :conversion_rate_drop_threshold% compared to the previous :comparison_period, based on the last :lookback_period.**newline**newlineThis may indicate changes in traffic quality, campaign setup, landing page performance, or potential tracking issues.**newline**newlineReview recent changes to this campaign, including targeting, budget, landing pages, and conversion tracking, to identify potential causes of the decline.":"The conversion rate for :campaign_name has decreased by more than :conversion_rate_drop_threshold% compared to the previous :comparison_period, based on the last :lookback_period.**newline**newlineThis may indicate changes in traffic quality, campaign setup, landing page performance, or potential tracking issues.**newline**newlineReview recent changes to this campaign, including targeting, budget, landing pages, and conversion tracking, to identify potential causes of the decline.","Meta activity has been detected, but no Meta API token is currently configured for this account.**newline**newlineThis may prevent Lunio from accurately tracking and optimising traffic from Meta campaigns.**newline**ne
2wlineYou can configure your Meta integration in Settings > Integrations > Meta.**newline**newlineReview the integration setup and follow the documentation to connect your Meta account and configure URL parameters to enable tracking.":"Meta activity has been detected, but no Meta API token is currently configured for this account.**newline**newlineThis may prevent Lunio from accurately tracking and optimising traffic from Meta campaigns.**newline**newlineYou can configure your Meta integration in Settings > Integrations > Meta.**newline**newlineReview the integration setup and follow the documentation to connect your Meta account and configure URL parameters to enable tracking.","One or more required parameters (ad_id, adset_id, campaign_id, placement_id, site_source_name) have not been detected in recent traffic.**newline**newlineThese parameters are required for accurate attribution, tracking and reporting.**newline**newlineIf parameters are missing, campaign performance and optimisation may be impacted.**newline**newlineReview your parameter setup and ensure all required parameters are correctly configured. Refer to the parameters documentation for guidance.":"One or more required parameters (ad_id, adset_id, campaign_id, placement_id, site_source_name) have not been detected in recent traffic.**newline**newlineThese parameters are required for accurate attribution, tracking and reporting.**newline**newlineIf parameters are missing, campaign performance and optimisation may be impacted.**newline**newlineReview your parameter setup and ensure all required parameters are correctly configured. Refer to the parameters documentation for guidance.","One or more parameters are incorrectly mapped or contain unexpected values.**newline**newlineThis may result in inaccurate attribution and impact reporting and optimisation.**newline**newlineExamples may include parameters mapped to the wrong values or inconsistent formatting.**newline**newlineReview your parameter configuration and ensure each parameter is correctly mapped. Refer to the parameters documentation for guidance.":"One or more parameters are incorrectly mapped or contain unexpected values.**newline**newlineThis may result in inaccurate attribution and impact reporting and optimisation.**newline**newlineExamples may include parameters mapped to the wrong values or inconsistent formatting.**newline**newlineReview your parameter configuration and ensure each parameter is correctly mapped. Refer to the parameters documentation for guidance.","Traffic from the following platforms has been detected without the required ppcp_platform parameter over the last :lookback_period:**newline**newlineAffected platforms:**newline**newline:platforms**newline**newlineThis parameter is required to correctly identify traffic sources and enable accurate attribution and optimisation.**newline**newlineReview your tracking setup and ensure the ppcp_platform parameter is appended to all URLs for the platforms listed above. Refer to the implementation guide for platform-specific instructions.":"Traffic from the following platforms has been detected without the required ppcp_platform parameter over the last :lookback_period:**newline**newlineAffected platforms:**newline**newline:platforms**newline**newlineThis parameter is required to correctly identify traffic sources and enable accurate attribution and optimisation.**newline**newlineReview your tracking setup and ensure the ppcp_platform parameter is appended to all URLs for the platforms listed above. Refer to the implementation guide for platform-specific instructions.","The ppcp_platform parameter values for the following platforms are incorrectly configured or inconsistent with expected naming conventions over the last :lookback_period:**newline**newlineAffected platforms:**newline**newline:platforms**newline**newlineThis may result in incorrect traffic classification and impact reporting and optimisation.**newline**newlineReview your parameter configuration and ensure ppcp_platform values match the expected format for each platform (e.g. facebook, tiktok, google). Refer to the implementation guide for guidance.":"The ppcp_platform parameter values for the following platforms are incorrectly configured or inconsistent with expected naming conventions over the last :lookback_period:**newline**ne
2wlineAffected platforms:**newline**newline:platforms**newline**newlineThis may result in incorrect traffic classification and impact reporting and optimisation.**newline**newlineReview your parameter configuration and ensure ppcp_platform values match the expected format for each platform (e.g. facebook, tiktok, google). Refer to the implementation guide for guidance.",Ad:"Ad","Ad Breakdown":"Ad Breakdown","Ad ID":"Ad ID","Ad Name":"Ad Name","Ad Set":"Ad Set","Ad Set Breakdown":"Ad Set Breakdown","Ad Set ID":"Ad Set ID","Audience Network":"Audience Network","Audience Network Classic":"Audience Network Classic","Audience Network Rewarded Video":"Audience Network Rewarded Video","Campaign Breakdown":"Campaign Breakdown","Clear all":"Clear all","Close Filter Panel":"Close Filter Panel","Configure your data export settings":"Configure your data export settings","CSV (Default)":"CSV (Default)","Export Data":"Export Data","Export Format":"Export Format",Facebook:"Facebook","Facebook Feed":"Facebook Feed","Facebook Instream":"Facebook Instream","Facebook Marketplace":"Facebook Marketplace","Facebook Right Column":"Facebook Right Column","ID Filter":"ID Filter",Imported:"Imported",Instagram:"Instagram","Instagram Feed":"Instagram Feed","Instagram Stories":"Instagram Stories","INVALID CLICKS":"INVALID CLICKS","is required.":"is required.","IVT RATE":"IVT RATE","LEGITIMATE CLICKS":"LEGITIMATE CLICKS",LEVEL:"LEVEL","Maximum length is :maxLength.":"Maximum length is :maxLength.",Messenger:"Messenger","Messenger Inbox":"Messenger Inbox","Messenger Sponsored Messages":"Messenger Sponsored Messages","Minimum length is :minLength.":"Minimum length is :minLength.","Must be a decimal number":"Must be a decimal number","must be a number.":"must be a number.","Must be a valid URL":"Must be a valid URL","must be at least :minLength characters.":"must be at least :minLength characters.","must be no more than :maxLength characters.":"must be no more than :maxLength characters.","must be text.":"must be text.","Must not be empty":"Must not be empty","Must not contain a valid IP address":"Must not contain a valid IP address","Not Applicable":"Not Applicable","Recipient Email":"Recipient Email","Show Filter Panel":"Show Filter Panel","Site Source Name":"Site Source Name","Stats Filter":"Stats Filter","This field is required.":"This field is required.","this report was deleted on :date":"this report was deleted on :date",Threads:"Threads","Threads Stream":"Threads Stream","Update Filters":"Update Filters","User Added":"User Added","Value must be a number.":"Value must be a number.","Value must be text.":"Value must be text.","vs prev period":"vs prev period","Your export will include all filtered data from the current view.":"Your export will include all filtered data from the current view.","Active Filters":"Active Filters","Data Explorer Export":"Data Explorer Export","Export your currently filtered Data Explorer results to CSV":"Export your currently filtered Data Explorer results to CSV","Group By Order":"Group By Order","No active filters selected":"No active filters selected","No active filters with query key available":"No active filters with query key available","You can only download this report for filtered stats":"You can only download this report for filtered stats","Ad Account Breakdown":"Ad Account Breakdown","Ad Account ID":"Ad Account ID","Ad Account Name":"Ad Account Name","Ad count / Ads found":"Ad count / Ads found","Ad Creative":"Ad Creative","Ad Creatives Detected":"Ad Creatives Detected","Add Keyword":"Add Keyword","Ads detected":"Ads detected","Are you sure you want to delete this keyword?":"Are you sure you want to delete this keyword?","Brand Bidding Overview":"Brand Bidding Overview","Branded Protection Configuration":"Branded Protection Configuration","Breakdown data is delivered as a CSV, it is too granular to display in the table, but everything you need is there. Generate your export and it will land in your inbox shortly.":"Breakdown data is delivered as a CSV, it is too granular to display in the table, but everything you need is there. Generate your export and it will land in your inbox shortly.","Breakdown Filter":"Breakdown Filter","Clear Filters":"Clear Filters","Compare IVT rates by placement to spot where campaign traffic quality drops.":"Compare IVT rates by placement to spot where campaign traffic quality drops.","Create Keyword":"Create Keyword","Created at":"Created at","Date detected":"Date detected","Date Detected":"Date Detected","DATE DETECTED":"DATE DETECTED",Delete:"Delete","Delete Keyword":"Delete Keyword",Delivery:"Delivery","Drag to set the order in which your data is grouped and aggregated in the export.":"Drag to set the order in which your data is grouped and aggregated in the export.","Edit Keyword":"Edit Keyword","Export CSV":"Export CSV","Export data to your email via CSV.":"Export data to your email via CSV.","Export your data to a CSV file":"Export your data to a CSV file","Filter Panel":"Filter Panel","First detected":"First detected","Generate Export":"Generate Export",Hourly:"Hourly","Identify if certain devices are driving higher IVT rates across your campaigns.":"Identify if certain devices are driving higher IVT rates across your campaigns.","IVT by day of week":"IVT by day of week","IVT by Placement across Campaigns":"IVT by Placement across Campaigns",KEYWORD:"KEYWORD","Keywords affected":"Keywords affected","Keywords must not be empty":"Keywords must not be empty","L30 Days":"L30 Days","Last 30 Days":"Last 30 Days","Last detected":"Last detected",LOCATION:"LOCATION","Location must not be empty":"Location must not be empty","No ads found for this advertiser":"No ads found for this advertiser","No ads found for this keyword":"No ads found for this keyword","Predefined Export":"Predefined Export","Prepared Exports":"Prepared Exports","Ready-made reports for the most common IVT breakdowns.":"Ready-made reports for the most common IVT breakdowns.","Scan Frequency":"Scan Frequency","See which campaigns and placements are driving the highest share of IVT.":"See which campaigns and placements are driving the highest share of IVT.","Send to":"Send to","Site Source":"Site Source","The keyword was deleted":"The keyword was deleted","Top IVT by Device across Campaigns":"Top IVT by Device across Campaigns","Top IVT Sources by Campaign and Placement":"Top IVT Sources by Campaign and Placement","Track IVT patterns by weekday to identify recurring high-risk traffic days.":"Track IVT patterns by weekday to identify recurring high-risk traffic days.","TRACKING URL":"TRACKING URL",Copy:"Copy","Type keyword here":"Type keyword here","Type location here eg, UK, London":"Type location here eg, UK, London","Vie
2w Ads":"View Ads","WORKSPACE & PLATFORM":"WORKSPACE & PLATFORM","Your breakdown is ready to export":"Your breakdown is ready to export","AI Max":"AI Max",Segment:"Segment",Segment2:"Segment2","Type location here eg":"Type location here eg",Stuff:"Stuff",Entities:"Entities","this lan test not here":"this lan test not here","This IP behaves like a Data Center":"This IP behaves like a Data Center","IP has only interacted via paid ads":"IP has only interacted via paid ads","Maximum length is :maxLength.'":"Maximum length is :maxLength.'",":optionLabel is required.'":":optionLabel is required.'",":optionLabel must be at least :minLength characters.'":":optionLabel must be at least :minLength characters.'",":optionLabel must be no more than :maxLength characters.'":":optionLabel must be no more than :maxLength characters.'",":optionLabel must be a number.'":":optionLabel must be a number.'",":optionLabel must be text.'":":optionLabel must be text.'","language(string)":"language(string)","Copied to clipboard :value'":"Copied to clipboard :value'",Internal:"Internal",Competitor:"Competitor",Self:"Self",Category:"Category","The category was changed":"The category was changed","A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact.":"A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact.","Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction.":"Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction.","Estimated spend after removing the cost of invalid clicks.":"Estimated spend after removing the cost of invalid clicks.","Shows whether Lunio is actively protecting or only monitoring this account or campaign.":"Shows whether Lunio is actively protecting or only monitoring this account or campaign.","The average cost per click, based on platform-reported spend and total clicks.":"The average cost per click, based on platform-reported spend and total clicks.","The change in percentage between the selected date period and the equivalent previous period.":"The change in percentage between the selected date period and the equivalent previous period.","The percentage of total clicks Lunio has classified as invalid.":"The percentage of total clicks Lunio has classified as invalid.","The percentage of total clicks reported as invalid by Google. These are only visible to Lunio users impersonating customers, customers donât see this column at all.":"The percentage of total clicks reported as invalid by Google. These are only visible to Lunio users impersonating customers, customers donât see this column at all.","Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users.":"Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behaviour such as ad fraud and bot activity that mimics real users.","The total number of clicks Lunio has classified as legitimate.":"The total number of clicks Lunio has classified as legitimate.","The total number of clicks Lunio has flagged as suspicious, but not definitively invalid.":"The total number of clicks Lunio has flagged as suspicious, but not definitively invalid.","The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume.":"The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume.","The total number of invalid clicks reported by Google. These are only visible to Lunio users impersonating customers, customers donât see this column at all.":"The total number of invalid clicks reported by Google. These are only visible to Lunio users impersonating customers, customers donât see this column at all.","The approximate ad spend reported by the ad platform for the selected period.":"The approximate ad spend reported by the ad platform for the selected period."," IG -Instagram":" IG -Instagram","AN - Audience Network":"AN - Audience Network","FB - Facebook":"FB - Facebook","MSG - Messenger":"MSG - Messenger","an - Audience Network":"an - Audience Network","fb - Facebook":"fb - Facebook","ig -Instagram":"ig -Instagram","msg - Messenger":"msg - Messenger","th -Threads":"th -Threads",Bidding:"Bidding","SERP Insights":"SERP Insights","Understand how your keyword is performing organically and in paid search on Google":"Understand how your keyword is performing organically and in paid search on Google","Configure Keywords":"Configure Keywords","Paid Position":"Paid Position","Last checked":"Last checked","Organic Position":"Organic Position","Increase bid":"Increase bid","You're not ranking #1 organically. Increase paid spend to protect visibility.":"You're not ranking #1 organically. Increase paid spend to protect visibility.","Reduce spend":"Reduce spend","You rank #1 organically with no competitors. Consider reducing your paid bid.":"You rank #1 organically with no competitors. Consider reducing your paid bid.","Monitor competitors":"Monitor competitors","You rank #1 organically but have competing advertisers. Monitor competitor presence.":"You rank #1 organically but have competing advertisers. Monitor competitor presence.",You:"You","Top 5 Campaigns by Invalid Click Rate":"Top 5 Campaigns by Invalid Click Rate",Ads:"Ads","by Invalid Click Rate":"by Invalid Click Rate","Top 5 Accounts by Invalid Click Rate":"Top 5 Accounts by Invalid Click Rate","Top 5 Ad Sets by Invalid Click Rate":"Top 5 Ad Sets by Invalid Click Rate","Top 5 Ads by Invalid Click Rate":"Top 5 Ads by Invalid Click Rate","Top 5 Accounts by":"Top 5 Accounts by","Top 5 Ad Sets by":"Top 5 Ad Sets by","Top 5 Ads by":"Top 5 Ads by","Top 5 Campaigns by":"Top 5 Campaigns by","Top IBT Entities":"Top IBT Entities","Top Accounts by":"Top Accounts by","Top Ad Sets by":"Top Ad Sets by","Top Ads by":"Top Ads by","Top Campaigns by":"Top Campaigns by","Invalid Clicks Percentage":"Invalid Clicks Percentage","Legitimate Clicks %":"Legitimate Clicks %","Legitimate Clicks Percentage":"Legitimate Clicks Percentage","Suspicious Click %":"Suspicious Click %","Suspicious Clicks Percentage":"Suspicious Clicks Percentage","Total Invalid Clicks":"Total Invalid Clicks","Total Legitimate Clicks":"Total Legitimate Clicks","Total Suspicious Clicks":"Total Suspicious Clicks","Suspicious Clicks %":"Suspicious Clicks %",Collapse:"Collapse",Expand:"Expand","See Ads":"See Ads","See Adsets":"See Adsets","See Campaigns":"See Campaigns","Adjusted spend value":"Adjusted spend value",Aggressive:"Aggressive",Balanced:"Balanced","Balances waste reduction against preserving genuine traffic.":"Balances waste reduction against preserving genuine traffic.","Blocks more suspicious traffic to maximise waste reduction. Best for maximising redistributed ad spend.":"Blocks more suspicious traffic to maximise waste reduction. Best for maximising redistributed ad spend.","Blocks traffic Lunio considers clearly invalid. Best for reducing the risk of blocking genuine users.":"Blocks traffic Lunio considers clearly invalid. Best for reducing the risk of blocking genuine users.","Campaign cost model":"Campaign cost model",Cautious:"Cautious","Do not change this setting based on recent IVT spikes or short-term traffic fluctuations.":"Do not change this setting based on recent IVT spikes or short-term traffic fluctuations.","Effective cost per click":"Effective cost per click","Failed to update IVT settings":"Failed to update IVT settings","High Aggression":"High Aggression","IVT Controls":"IVT Controls","IVT controls allow you to choose how aggressively Lunio protects against invalid traffic, helping you align protection with your goals and risk tolerance":"IVT controls allow you to choose how aggressively Lunio protects against invalid traffic, helping you align protection with your goals and risk tolerance","IVT settings have been successfully updated":"IVT settings have been successfully updated","Last Updated":"Last Updated","Low Aggression":"Low Aggression","Medium Aggression":"Medium Aggression","No IVT controls configured yet":"No IVT controls configured yet","No workspaces found":"No workspaces found","Protection Level":"Protection Level","Select a level":"Select a level","Select from the three options below":"Select from the three options below","Total spend from Meta":"Total spend from Meta","Treat this as a long-term protection setting. Select your level and let Lunio do the rest.":"Treat this as a long-term protection setting. Select your level and let Lunio do the rest.",Update:"Update","Update protection level":"Update protection level","Update Selected":"Update Selected","Update your IVT controls":"Update your IVT controls","Changed By":"Changed By","Workspace ID":"Workspace ID","Change Log":"Change Log","Change Made By":"Change Made By",Impersonator:"Impersonator","IVT Controls Changelog":"IVT Controls Changelog","GIVT Clicks":"GIVT Clicks","For this filter configuration you will not see eCPC, Spend, Adjusted Spend columns in your export file":"For this filter configuration you will not see eCPC, Spend, Adjusted Spend columns in your export file","IVT Rate":"IVT Rate",Advertiser:"Advertiser","Last Detected":"Last Detected","Copied to clipboard":"Copied to clipboard","All Campaign statuses were successfully updated":"All Campaign statuses were successfully updated","Lunio Token ID":"Lunio Token ID","Your own brand or domains":"Your own brand or domains","An approved affiliate or reseller":"An approved affiliate or reseller","A rival bidding on your terms":"A rival bidding on your terms","Unclassified advertiser":"Unclassified advertiser","Currently active":"Currently active","Log out":"Log out","No accounts match":"No accounts match","Search accounts":"Search accounts","Search accounts...":"Search accounts...","This Account has no workspaces. It will need a workspace assigned to it before you can log into it":"This Account has no workspaces. It will need a workspace assigned to it before you can log into it",workspaces:"workspaces","All Statuses":"All Statuses","False positives":"False positives","Must be min length":"Must be min length","Redistributed spend":"Redistributed spend","Figures are estimates modelled on your recent traffic, they are projections, not guarantees, and actual results will vary.":"Figures are estimates modelled on your recent traffic, they are projections, not guarantees, and actual results will vary.",estimates:"estimates","Figures are":"Figures are","modelled on your recent traffic, they are projections, not guarantees, and actual results will vary.":"modelled on your recent traffic, they are projections, not guarantees, and actual results will vary.","Required Meta parameters missing. Apply correct parameters now.":"Required Meta parameters missing. Apply correct parameters now.","Incorrect Meta parameter values detected. Check and fix correct parameters now.":"Incorrect Meta parameter values detected. Check and fix correct parameters now.","Meta integration not syncing. Reconnect Meta token now.":"Meta integration not syncing. Reconnect Meta token now.","Platform parameter values incorrect. Apply correct parameters now.":"Platform parameter values incorrect. Apply correct parameters now.","Platform tracking parameter missing. Update with correct parameters now.":"Platform tracking parameter missing. Update with correct parameters now.","Reporting and attribution may be incomplete or incorrect until this is resolved.":"Reporting and attribution may be incomplete or incorrect until this is resolved.","Reporting in the Data Explorer may be incomplete or incorrect until this is resolved.":"Reporting in the Data Explorer may be incomplete or incorrect until this is resolved.","Reporting in the Data Explorer may be incomplete and new campaigns will not sync and be displayed until this is resolved.":"Reporting in the Data Explorer may be incomplete and new campaigns will not sync and be displayed until this is resolved.","Calculation Info":"Calculation Info","Cost is calculated based on the CPC of clicks from invalid sources within the selected date range.":"Cost is calculated based on the CPC of clicks from invalid sources within the selected date range.","Can manage protection, campaigns, and view tracking tags.":"Can manage protection, campaigns, and view tracking tags.",Editor:"Editor","Full access within this workspace. Manage members, workspace settings, protection, and view tracking scripts.":"Full access within this workspace. Manage members, workspace settings, protection, and view tracking scripts.","Read-only access to workspace data and reports.":"Read-only access to workspace data and reports.","Full access.":"Full access.",":name was set to :roleName role":":name was set to :roleName role","It is not possible to update this member's role.":"It is not possible to update this member's role.",IVT:"IVT","DS Reports":"DS Reports","Please select a start and end date":"Please select a start and end date","Request an IVT Delta export report for a selected date range.":"Request an IVT Delta export report for a selected date range.","Start Date":"Start Date","End Date":"End Date","Start date must be before end date":"Start date must be before end date",Submit:"Submit","Export IVT Delta":"Export IVT Delta","showing all non Admin Lunio users who have have access to this workspace":"showing all non Admin Lunio users who have have access to this workspace","You will not see any users listed here who automatically have access to this workspace because they are an Admin user for example.":"You will not see any users listed here who automatically have access to this workspace because they are an Admin user for example.","You will not see any users listed here who automatically have access to this workspace, such as admin users, for example.":"You will not see any users listed here who automatically have access to this workspace, such as admin users, for example.","showing all non admin Lunio users who have have access to this workspace":"showing all non admin Lunio users who have have access to this workspace","Lunio Account Role":"Lunio Account Role","showing all non admin Lunio users who have access to this workspace":"Showing all non admin Lunio users who have access to this workspace","Crawler/Bot":"Crawler/Bot","Duplicate click":"Duplicate click","GIVT - Crawler/Bot":"GIVT - Crawler/Bot","GIVT - Duplicate click (matched by click ID)":"GIVT - Duplicate click (matched by click ID)","GIVT - manually ignored IP":"GIVT - manually ignored IP","Manually ignored IP":"Manually ignored IP",Paused:"Paused",Removed:"Removed","Configuration Name":"Configuration Name","Account Name / ID":"Account Name / ID","Abnormal Browser":"Abnormal Browser","Abnormal Operating System":"Abnormal Operating System","AI Agent Traffic":"AI Agent Traffic","Click on a row to see the top 3 campaigns.":"Click on a row to see the top 3 campaigns.","Click Origin Concentration":"Click Origin Concentration","No Search Activity":"No Search Activity","Geolocation Mismatch":"Geolocation Mismatch","High Click Velocity":"High Click Velocity","High Display Click Volume":"High Display Click Volume","High Distributed Click Volume":"High Distributed Click Volume","High PMAX Click Volume":"High PMAX Click Volume","High Search Click Volume":"High Search Click Volume","High Click Volume":"High Click Volume","Google Tooling Abuse":"Google Tooling Abuse","Invalid Clicks":"Invalid Clicks","Irregular Click Pattern":"Irregular Click Pattern","Low Quality Traffic":"Low Quality Traffic","Mobile Device Spoofing":"Mobile Device Spoofing",Percent:"Percent","Proxy Traffic"
2:"Proxy Traffic","Robotic Click Pattern":"Robotic Click Pattern","Top 3 campaigns affected by":"Top 3 campaigns affected by","Total invalid clicks":"Total invalid clicks","View the different types of waste in your invalid traffic":"View the different types of waste in your invalid traffic","IP Rotation":"IP Rotation","Waste Analysis":"Waste Analysis","Waste breakdown":"Waste breakdown","Waste type":"Waste type","Waste Type":"Waste Type",Actor:"Actor","From Status":"From Status","Lunio Account Status Change Log":"Lunio Account Status Change Log","To Status":"To Status","View changes made to this Lunio accountâs status.":"View changes made to this Lunio accountâs status.","All Campaign statuses were successfully updated - note: you can only set a campaign to protected if its parent account is also protected":"All Campaign statuses were successfully updated - note: you can only set a campaign to protected if its parent account is also protected","All Clicks Tracked":"All Clicks Tracked","All Tracked Clicks":"All Tracked Clicks","Percentage Invalid":"Percentage Invalid","The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT).":"The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT).","The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks.":"The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks.","The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT.":"The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT.","Total Invalid Traffic":"Total Invalid Traffic","Total IVT":"Total IVT","Total IVT %":"Total IVT %","No remaining slots available":"No remaining slots available","Data available from 1st July 2026 onwards. Click on a row to see the top 3 campaigns.":"Data available from 1st July 2026 onwards. Click on a row to see the top 3 campaigns.","Google Owned Channels":"Google Owned Channels","Google TV":"Google TV",Chat:"Chat",'We\'re showing these existing placements for reference, but not adding new ones. You can toggle the "Google Placement Blocking" feature flag from your Account Settings page to turn this back on.':'We\'re showing these existing placements for reference, but not adding new ones. You can toggle the "Google Placement Blocking" feature flag from your Account Settings page to turn this back on.'}},58300:(e,t,n)=>{"use strict";e.exports=n.p+"5a9a0646a2319b7e81f4.svg"},58342:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=u(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=n(86957),l=u(n(62784)),s=n(4386),c=n(31085);function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=o.default;g(".display-x78zum5{display:flex}",3e3),g(".flexWrap-x1a02dak{flex-wrap:wrap}",3e3),g(".alignItems-x6s0dn4{align-items:center}",3e3),g(".gap-x167g77z{gap:8px}",2e3),g(".marginBottom-xod5an3{margin-bottom:12px}",4e3),g(".width-xygnafs{width:120px}",4e3),g(".textWrap-xk4td0m{text-wrap:wrap}",3e3);var y={display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",width:"width-xygnafs",textWrap:"textWrap-xk4td0m",$$css:"FilterGroup/index.tsx:21"};function h(e){var t,n=e.filters,r=e.setFilters,o=e.filterGroupName,u=e.showLabel,d=void 0===u||u,f=o?null===(t=(0,s.getFilterGroupByName)(n,o))||void 0===t?void 0:t.label:"Ungrouped",m=(0,s.getFilterTestId)(null!=f?f:o,"filter-group");return n.some(function(e){var t;return o===(null==e||null===(t=e.filterGroup)||void 0===t?void 0:t.name)&&(0,s.shouldShowFilter)(e,n)})?(0,c.jsxs)("div",p(p({},{className:"display-x78zum5 flexWrap-x1a02dak alignItems-x6s0dn4 gap-x167g77z marginBottom-xod5an3","data-style-src":"FilterGroup/index.tsx:14"}),{},{"data-testid":m,children:[o&&d&&(0,c.jsx)("div",p(p({},a.props(i.textStyles.filterPanelLabel,y)),{},{"data-testid":"".concat(m,"-label"),children:f})),n.map(function(e){var t;return o===(null==e||null===(t=e.filterGroup)||void 0===t?void 0:t.name)?(0,c.jsx)(l.default,{filters:n,filter:e,setFilter:function(e){return r((0,s.updateFilter)(n,e))}},e.name):null})]})):null}h.displayName="FilterGroup",t.A=h},58374:(e,t,n)=>{"use strict";e.exports=n.p+"bf3697ffc03cf6ef21cb.svg"},58398:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(14041),o=n(56197),a=n(62720),i=n(76449),l=n(28426),s=n(44949),c=n(89748),u=n(51836),d=n(73657),f=n(62161),p=n(40699),m=n(83223),g=n(27333),y=n(59250),h=n(32881),x=n(41574),b=n(31085);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j(){var e,t,n,v,A,S,O,j,k,E,N=w((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),I=N[0],P=N[1],T=w((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),C=T[0],R=T[1],M=w((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),L=M[0],D=M[1],B=(0,u.g)().network,U=(0,g.R7)({sortKey:"network"}),F=U.filters,G=U.setFilters,W=(0,g.R7)({sortKey:"conversion_timestamp"}),z=W.filters,V=W.handlePagination,q=W.setFilters,K=W.handleSort;function H(e){var t='&group_by=network&network=["'.concat(encodeURIComponent(B),'"]'),n=Object.keys(e).filter(function(t){return t.startsWith("fraud_type.")&&e[t]}).map(function(e){return e.replace("fraud_type.","")});return e["campaign.contains"]&&(t+="&campaign_contains=".concat(e["campaign.contains"])),n.length>0&&(t+='&fraud_type=["'.concat(n.join('","'),'"]')),t}var Y=(0,g.st)("/analytics/conversions",_(_({},F),{},{startDate:new Date(I.min.date),endDate:new Date(I.max.date)}),H),$=Y.data,Z=Y.isLoading,X=Object.entries(p.zG).map(function(e){var t=w(e,2),n=t[0],r=t[1];return{label:(0,c.A)(r),shortLabel:(0,c.A)(r),type:"checkbox",name:n,value:!1}}),J=[{label:(0,c.A)("Fraud Type"),name:"fraud_type",type:"checkbox",queryTranslator:"arrayOfNames",queryKey:"type",options:X},{label:(0,c.A)("Campaign"),name:"campaign",type:"radio",options:[{label:(0,c.A)("contains"),name:"contains",type:"text"}]}],Q=(0,g.st)("/analytics/conversions",{startDate:new Date(C.min.date),endDate:new Date(C.max.date),group_by:"network",page:1,limit:100,sortKey:"network",sortOrder:"asc"}),ee=Q.data,te=Q.isLoading,ne=(0,g.st)("/conversions/attributed",_(_({},z),{},{startDate:new Date(L.min.date),endDate:new Date(L.max.date)}),H),re=ne.data,oe=ne.isLoading,ae=null==$?void 0:$.result,ie=null==ee||null===(e=ee.result)||void 0===e||null===(e=e.overall)||void 0===e?void 0:e.overall_invalid_labels_percent;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s.A,{title:(0,c.A)(":network Overview",{network:B}),size:"sm",menuItems:[],subTitle:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.Link,{style:{color:"#7F56D9"},to:"/conversion-analytics/networks",children:(0,c.A)("Networks")})," ",B&&" / ",B]}),contentRight:(0,b.jsx)(x.A,{filters:z,dates:L,exportType:"network",exportValue:B,exportCategory:"conversions"})}),(0,b.jsxs)(l.A.Page,{type:"settings",children:[(0,b.jsx)(y.A,{title:(0,c.A)(":network Summary",{network:B}),isLoading:Z,total:{title:(0,c.A)("Total Conversions"),count:null==ae||null===(t=ae.overall)||void 0===t?void 0:t.overall_conversions},invalid:{title:(0,c.A)("Invalid Conversions"),count:null==ae||null===(n=ae.overall)||void 0===n?void 0:n.overall_conversions_invalid},ivt:{count:null==ae||null===(v=ae.overall)||void 0===v?void 0:v.overall_conversions_invalid_percent},setTime:P,time:I,filters:F,setFilters:G,filterConfig:J}),(0,b.jsx)(h.A,{data:(0,p.J8)(ie),isLoading:te,setTime:R,time:C,title:(0,c.A)("Fraud Type")}),(0,b.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,b.jsx)("div",{className:"left",children:(0,b.jsx)(i.default,{filterConfig:J,initialValues:z,onFilterChange:q})}),(0,b.jsx)(a.default.DatePicker,{value:[L.min.date,L.max.date],onRangeChange:function(e){return D(e)},selectedOption:L.rangeName,showCalenderIcon:!1,displayRangeText:!1})]}),(0,b.jsx)(f.A,{rows:null==re||null===(A=re.result)||void 0===A?void 0:A.data,isLoading:oe,totalResults:null==re||null===(S=re.result)||void 0===S||null===(S=S.pagination)||void 0===S?void 0:S.total,totalPages:null==re||null===(O=re.result)||void 0===O||null===(O=O.pagination)||void 0===O?void 0:O.last_page,totalItems:null==re||null===(j=re.result)||void 0===j||null===(j=j.pagination)||void 0===j?void 0:j.total,pageNumber:null==re||null===(k=re.result)||void 0===k||null===(k=k.pagination)||void 0===k?void 0:k.current_page,handlePagination:V,handleSorting:K,sorting:{sortKey:z.sortKey,sortOrder:z.sortOrder},limit:null==re||null===(E=re.result)||void 0===E||null===(E=E.pagination)||void 0===E?void 0:E.limit,leftPinnedColumns:1,children:function(e){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{"data-sortable-id":"conversion_timestamp",children:(0,c.A)("Timestamp")}),(0,b.jsx)("th",{"data-sortable-id":"partner",children:(0,c.A)("Partner")}),(0,b.jsx)("th",{"data-sortable-id":"campaign",children:(0,c.A)("Campaign")}),(0,b.jsx)("th",{children:(0,c.A)("Fraud Type")})]})}),(0,b.jsxs)("tbody",{children:[(0,b.jsx)("td",{children:(null==e?void 0:e.conversion_timestamp)&&(0,m.GP)(e.conversion_timestamp,"MMM d, HH:mm")}
2),(0,b.jsx)("td",{children:null==e?void 0:e.partner}),(0,b.jsx)("td",{children:null==e?void 0:e.campaign}),(0,b.jsx)("td",{children:(0,p.ic)(null==e?void 0:e.invalid_labels_counts).map(function(e){return(0,b.jsx)(o.default,{style:{display:"inline-block",marginRight:"12px",lineHeight:"24px"},colourName:"error",children:e},e)})})]})]})}})]})]})}},58408:e=>{e.exports={"hello i am test text":"hello i am test text","The cost of :quantity apples is :money pounds":"The cost of :quantity apples is :money pounds","I have :numberOf fingers":"I have :numberOf fingers","Sign in to Lunio":"Sign in to Lunio","Must be a valid email":"Must be a valid email","Password must be at least 8 digits":"Password must be at least 8 digits",Password:"Password","Enter password":"Enter password","Keep me logged in on this device":"Keep me logged in on this device","Sign In":"Sign In","Sign up":"Sign up","Need an account?":"Need an account?","Forgot your password?":"Forgot your password?","Forgot Your Password?":"Forgot Your Password?","Enter your email below and we will send a message to rest your password":"Enter your email below and we will send a message to rest your password","Must be a valid email address":"Must be a valid email address",Email:"Email","Enter email":"Enter email","Reset My Password":"Reset My Password","Sign up to Lunio":"Sign up to Lunio","Password must contain a number":"Password must contain a number","Password must contain a special character":"Password must contain a special character","Password must an upper case letter":"Password must an upper case letter","Password must contain a lower case letter":"Password must contain a lower case letter","Password must not contain any spaces":"Password must not contain any spaces","The passwords you have entered don't match!":"The passwords you have entered don't match!","Email *":"Email *","Email here":"Email here","Password *":"Password *","Password Here":"Password Here","Confirm Password *":"Confirm Password *","Password is at least 8 characters":"Password is at least 8 characters","Password contains a number":"Password contains a number","Password contains a special character":"Password contains a special character","Password contains an upper case letter":"Password contains an upper case letter","Password contains a lower case letter":"Password contains a lower case letter","Password does not contain a space":"Password does not contain a space","Sign Up":"Sign Up","Already have an account?":"Already have an account?","We have sent you an email containing a password reset code. Please enter it below, along with your new password.":"We have sent you an email containing a password reset code. Please enter it below, along with your new password.","Code must be a number":"Code must be a number",Code:"Code","Enter Code":"Enter Code","New Password":"New Password","Enter New Password":"Enter New Password","New Password Again":"New Password Again","Enter New Password Again":"Enter New Password Again","Verify your account":"Verify your account","We have sent a code to your registered email. Please enter the code below to verify your account.":"We have sent a code to your registered email. Please enter the code below to verify your account.","Verification Code":"Verification Code","Enter code here":"Enter code here","Resend it":"Resend it","Didn't receive a code?":"Didn't receive a code?","Didn't receive a code?":"Didn't receive a code?","Values don't match":"Values don't match","Must be a whole number":"Must be a whole number","Must be letters only":"Must be letters only","Must must contain lower case letter":"Must must contain lower case letter","Must contain an upper case letter":"Must contain an upper case letter","Must be contain a special character":"Must be contain a special character","Must contain a number":"Must contain a number","Must be min length of :min":"Must be min length of :min","Must not contain space":"Must not contain space",Status:"Status","IP Address":"IP Address","Device Type":"Device Type",Timestamp:"Timestamp",Domain:"Domain",Country:"Country",Desktop:"Desktop",Mobile:"Mobile",Tablet:"Tablet","Connected TV":"Connected TV",Bot:"Bot","Allowed-List":"Allowed-List",Legitimate:"Legitimate",Suspicious:"Suspicious",Invalid:"Invalid","View the clicks being monitored by your Lunio account":"View the clicks being monitored by your Lunio account","Clicks Log":"Clicks Log",All:"All",Other:"Other",Keyword:"Keyword","Audit Trail":"Audit Trail","Are you sure you want to manually add :ip to your IP exclusions?":"Are you sure you want to manually add :ip to your IP exclusions?","Exclude IP":"Exclude IP",Cancel:"Cancel","IP successfully added to exclusions list.":"IP successfully added to exclusions list.","Error adding IP to exclusions - please contact support.":"Error adding IP to exclusions - please contact support.","Ban IP":"Ban IP","All Clicks":"All Clicks","Clicked at":"Clicked at","Return to Lunio app":"Return to Lunio app",Dashboard:"Dashboard",Overview:"Overview","Ads Accounts":"Ads Accounts","Ads Campaigns":"Ads Campaigns",Analytics:"Analytics",Exclusions:"Exclusions",Conversions:"Conversions","Websites Protected":"Websites Protected",Locations:"Locations",Back:"Back","Vie
2wing Data for :title":"Viewing Data for :title","Receiving Data":"Receiving Data","Clicks from Legitimate Sources":"Clicks from Legitimate Sources","No Data: Re-sync with Google":"No Data: Re-sync with Google","Clicks from Suspicious Sources":"Clicks from Suspicious Sources","Clicks from Invalid Sources":"Clicks from Invalid Sources","No Data":"No Data","Cost of clicks from Invalid Sources":"Cost of clicks from Invalid Sources","N/A":"N/A","Active Exclusions":"Active Exclusions",IPs:"IPs","Prevented Invalid Clicks":"Prevented Invalid Clicks","What are prevented clicks?":"What are prevented clicks?","Re-Allocated Budget":"Re-Allocated Budget","What is re-allocated budget?":"What is re-allocated budget?","Traffic Health Uplift":"Traffic Health Uplift","What is traffic health uplift?":"What is traffic health uplift?","Legitimate Users":"Legitimate Users","Suspicious Users":"Suspicious Users","Invalid Users":"Invalid Users","Back to Site":"Back to Site","Loading...":"Loading...","Good Morning, ":"Good Morning, ","Good Afternoon, ":"Good Afternoon, ","Good Evening, ":"Good Evening, ","Platforms Active":"Platforms Active",Summary:"Summary","Your Google Ads data is updating and will be complete shortly.":"Your Google Ads data is updating and will be complete shortly.","There was a problem updating your Google Ads data. Make sure you have a valid access token within the tokens page of settings area":"There was a problem updating your Google Ads data. Make sure you have a valid access token within the tokens page of settings area","An active subscription is required to do that.":"An active subscription is required to do that.",equals:"equals","is between":"is between","Total Clicks":"Total Clicks","Protected only":"Protected only","Monitored only":"Monitored only","Protected and monitored":"Protected and monitored",contains:"contains","is greater than":"is greater than","is less than":"is less than","is equal to":"is equal to","Enter email address":"Enter email address","Export to CSV":"Export to CSV","Sending to":"Sending to",Export:"Export","All accounts":"All accounts",account:"account",accounts:"accounts",Accounts:"Accounts","Click type":"Click type","Date range":"Date range","You're exporting":"You're exporting","Enter an email address":"Enter an email address","Processing report...":"Processing report...","Report failed to process":"Report failed to process","Something went wrong!":"Something went wrong!","Favourite updated for":"Favorite updated for","Status updated for":"Status updated for","Status was updated for multiple accounts":"Status was updated for multiple accounts","Your previous changes are in progress, please come back later to try again.":"Your previous changes are in progress, please come back later to try again.",Protected:"Protected",Monitored:"Monitored",Disabled:"Disabled",Hidden:"Hidden","Update In Progress. During this process, you may see the old status - please wait a few minutes before trying again":"Update In Progress. During this process, you may see the old status - please wait a few minutes before trying again",Device:"Device",Day:"Day",Location:"Location",Network:"Network","Ad Stats":"Ad Stats",Targeting:"Targeting",Campaign:"Campaign",Placement:"Placement","Website protected":"Website protected","Websites protected":"Websites protected","Match types":"Match types","There is no data to display. Please select a longer date range.":"There is no data to display. Please select a longer date range.","Showing :length :labelIdentifier":"Showing :length :labelIdentifier","Showing All :labelIdentifier":"Showing All :labelIdentifier","Ad Account":"Ad Account","Search :labelIdentifier":"Search :labelIdentifier","Showing :length of :total selected":"Showing :length of :total selected","All :labelIdentifier selected":"All :labelIdentifier selected",Filter:"Filter",Showing:"Showing","Choose a maximum of 100 specific accounts or select all.":"Choose a maximum of 100 specific accounts or select all.","Loading Results...":"Loading Results...","No Results Found":"No Results Found",Clear:"Clear","Apply Filter":"Apply Filter","Google Ads Accounts":"Google Ads Accounts","Manage your Lunio settings at the Google Ads account level":"Manage your Lunio settings at the Google Ads account level","Google Ads Campaigns":"Google Ads Campaigns","Manage your Lunio settings at the Google Ads campaign level":"Manage your Lunio settings at the Google Ads campaign level",Placements:"Placements","Account Name":"Account Name","Account ID":"Account ID","Starts With":"Starts With","starts with":"starts with","Account Status":"Account Status","Include Hidden":"Include Hidden","Include Protected":"Include Protected","Include Disabled":"Include Disabled","Include Monitored":"Include Monitored","Campaign Name":"Campaign Name","Campaign ID":"C
2ampaign ID","Campaign Status":"Campaign Status",or:"or","Audit history for clicks from a specific IP address":"Audit history for clicks from a specific IP address","Legitimate Clicks":"Legitimate Clicks","Suspicious Clicks":"Suspicious Clicks","SIVT Clicks":"SIVT Clicks","See which interactions with your ads triggered an invalid flag within the Lunio system.":"See which interactions with your ads triggered an invalid flag within the Lunio system.",Contains:"Contains","View by":"View by","View currently active IP exclusions across your Google Ads account":"View currently active IP exclusions across your Google Ads account","Track & audit conversions across your campaigns":"Track & audit conversions across your campaigns","Insights Hub":"Insights Hub",USA:"USA",Region:"Region","IP blocks added successfully!":"IP blocks added successfully!","Uh Oh!":"Uh Oh!","Your screen size isnât supported - please access Lunio from a screen with a resolution of 960px or greater":"Your screen size isnât supported - please access Lunio from a screen with a resolution of 960px or greater","No results found":"No results found","First page of results":"First page of results","Previous page of results":"Previous page of results","Next page of results":"Next page of results","Last page of results":"Last page of results","Account settings":"Account settings",Account:"Account",Close:"Close","Close modal":"Close modal","Active Platform Click Breakdown":"Active Platform Click Breakdown","Sort by :id ascending":"Sort by :id ascending","Sort by :id descending":"Sort by :id descending","Platform Health":"Platform Health","Not active":"Not active","Active Platforms Health":"Active Platforms Health","Do you want to continue?":"Do you want to continue?",Continue:"Continue","Are you sure you want to protect this account? This will protect the account for all users in your organisation.":"Are you sure you want to protect this account? This will protect the account for all users in your organization.","Are you sure you want to disable this account? This will disable the account for all users in your organisation and stop monitoring & protection on it.":"Are you sure you want to disable this account? This will disable the account for all users in your organization and stop monitoring & protection on it.","Are you sure you want to only monitor this account? The account will be monitored for all users in your organisation but not protected.":"Are you sure you want to only monitor this account? The account will be monitored for all users in your organization but not protected.","Are you sure you want to hide this account? This will hide the account for all users in your organisation and stop monitoring & protection on it.":"Are you sure you want to hide this account? This will hide the account for all users in your organization and stop monitoring & protection on it.",hidden:"hidden","Are you sure you want to protect this campaign? This will protect the campaign for all users in your organisation.":"Are you sure you want to protect this campaign? This will protect the campaign for all users in your organization.","Are you sure you want to disable this campaign? This will disable the campaign for all users in your organisation and stop monitoring & protection on it.":"Are you sure you want to disable this campaign? This will disable the campaign for all users in your organization and stop monitoring & protection on it.","Are you sure you want to only monitor this campaign? The campaign will be monitored for all users in your organisation but not protected.":"Are you sure you want to only monitor this campaign? The campaign will be monitored for all users in your organization but not protected.","Are you sure you want to hide this campaign? This will hide the campaign for all users in your organisation and stop monitoring & protection on it.":"Are you sure you want to hide this campaign? This will hide the campaign for all users in your organization and stop monitoring & protection on it.","Website Scripts":"Website Scripts","Conversion Tracking Script":"Conversion Tracking Script","For more accurate conversion tracking, we recommend installing the tracking script":"For more accurate conversion tracking, we recommend installing the tracking script","For more accurate conversion tracking, we recommend installing the tracking scriptbelow to fire on any conversion action.You can add this to a tag manager like Google Tag Manager.You can use the same conversion tracking script forany website or landing page you want to protect.Reach out to your account manager if you need help installing this.":"For more accurate conversion tracking, we recommend installing the tracking scriptbelow to fire on any conversion action.You can add this to a tag manager like Google Tag Manager.You can use the same conversion tracking script forany website or landing page you want to protect.Reach out to your account manager if you need help installing this.","Copy Conversion Script":"Copy Conversion Script",Copied:"Copied","Block On Conversion":"Block On Conversion","Not sure what to do? Visit our":"Not sure what to do? Visit our",helpdesk:"helpdesk","react multi select component required here - this area is still not complete":"react multi select component required here - this area is still not complete",
2Save:"Save","Google Sync Status":"Google Sync Status","Successfully Synced":"Successfully Synced","Over 10 days old":"Over 10 days old","Over 30 days old":"Over 30 days old","OAuth Problem Detected":"OAuth Problem Detected","Refresh Data":"Refresh Data","Re-Connect":"Re-Connect","Health:":"Health:","Health is based on a combination of":"Health is based on a combination of","Percent of invalid clicks":"Percent of invalid clicks","Total number of clicks":"Total number of clicks","Are you sure you want to :actionVerb all accounts? This will :actionVerb all accounts for all users in your organisation and stop monitoring & protection on them.":"Are you sure you want to :actionVerb all accounts? This will :actionVerb all accounts for all users in your organization and stop monitoring & protection on them.",hide:"hide",disable:"disable","Manage All Ad Accounts":"Manage All Ad Accounts","Sets all":"Sets all","filtered Accounts and their Campaigns":"filtered Accounts and their Campaigns","you need an active subscription to do this":"you need an active subscription to do this","Manage All Ad Campaigns":"Manage All Ad Campaigns","filtered Campaigns and their Campaigns":"filtered Campaigns and their Campaigns","No accounts selected. Please select at least 1 account and try again.":"No accounts selected. Please select at least 1 account and try again.","Manage Selected Ad Accounts":"Manage Selected Ad Accounts","Sets only the":"Sets only the","Accounts and Campaigns you selected":"Accounts and Campaigns you selected","No campaigns selected. Please select at least 1 account and try again.":"No campaigns selected. Please select at least 1 account and try again.","Manage Selected Ad Campaigns":"Manage Selected Ad Campaigns","Campaigns and Campaigns you selected":"Campaigns and Campaigns you selected",Page:"Page",of:"of","Per Page":"Per Page",Settings:"Settings",Home:"Home","Account Settings":"Account Settings",Users:"Users","Tracking Codes":"Tracking Codes",Platforms:"Platforms",Subscriptions:"Subscriptions",Reporting:"Reporting","IP Allow List":"IP Allow List",Tokens:"Tokens","Google Settings":"Google Settings",Filters:"Filters","Show Protected":"Show Protected","Show Monitored":"Show Monitored",Campaigns:"Campaigns","Show Disabled":"Show Disabled","Show Hidden Campaigns":"Show Hidden Campaigns","Apply Changes":"Apply Changes",Health:"Health",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday",Sunday:"Sunday","Manage Selected":"Manage Selected","Manage All":"Manage All","Account Named":"Account Named","Account Activity":"Account Activity",Prevented:"Prevented",TQI:"TQI","Account Spend":"Account Spend","Legit, Susp, Invalid":"Legit, Susp, Invalid","Prevented Clicks":"Prevented Clicks","Campaign Nam":"Campaign Nam","Campaign Type":"Campaign Type","Must be a valid ip address":"Must be a valid ip address",CIDR:"CIDR","IP Ranges":"IP Ranges","From, To":"From, To","Date Added":"Date Added","Added By":"Added By","Add IP":"Add IP","Delete Selected":"Delete Selected","You are about to delete":"You are about to delete","Delete from the campaigns you have selected or from all of your Accounts.":"Delete from the campaigns you have selected or from all of your Accounts.","Add Ip to Exclusions":"Add Ip to Exclusions","Adding to":"Adding to","Set by your active filter":"Set by your active filter",Examples:"Examples","Google only accepts 500 IP Exclusions per campaign. Adding addresses manually may remove IP addresses added by our system.":"Google only accepts 500 IP Exclusions per campaign. Adding addresses manually may remove IP addresses added by our system.","Phrase Match":"Phrase Match","Select all IP Addresses":"Select all IP Addresses","MFA status was successfully changed to enabled":"MFA status was successfully changed to enabled","Broad Match":"Broad Match","Exact Match":"Exact Match","Match Type":"Match Type",Search:"Search","Display Network":"Display Network","Search Partner":"Search Partner",Youtube:"Youtube",Gmail:"Gmail","YouTube in-stream":"YouTube in-stream","YouTube in-feed":"YouTube in-feed","Search Partner (AI Max)":"Search Partner (AI Max)","App campaigns for engagement (ACe)":"Ap
2p campaigns for engagement (ACe)","Google Video Partners":"Google Video Partners","YouTube Videos":"YouTube Videos","YouTube Search":"YouTube Search","Smart Shopping Campaign":"Smart Shopping Campaign","Performance Max Campaigns":"Performance Max Campaigns","N/A ?":"N/A ?","Network Type":"Network Type","Search Keywords":"Search Keywords","Search Campaigns":"Search Campaigns","Search Placement":"Search Placement","Go Back":"Go Back","What is Traffic Health Uplift?":"What is Traffic Health Uplift?","The Traffic Health Uplift metric shows you the improvement in":"The Traffic Health Uplift metric shows you the improvement in","quality & health of your traffic by using Lunio.":"quality & health of your traffic by using Lunio.","The Traffic Health Uplift metric shows you the improvement in quality & health of your traffic by using Lunio. It takes in to account things like how many new valid users you are reaching, how much budget is being re-allocated to legitimate spend, and how much activity is coming from invalid sources.":"The Traffic Health Uplift metric shows you the improvement in quality & health of your traffic by using Lunio. It takes in to account things like how many new valid users you are reaching, how much budget is being re-allocated to legitimate spend, and how much activity is coming from invalid sources.","What is Re-Allocated budget?":"What is Re-Allocated budget?","The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic. In effect, this is the ad budget âsavedâ by utilizing the platform.":"The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic. In effect, this is the ad budget âsavedâ by utilizing the platform.","Company Title":"Company Title",Industry:"Industry","Default Currency":"Default Currency","Show rounded values for large numbers":"Show rounded values for large numbers","Save Changes":"Save Changes","Cancel Changes":"Cancel Changes","Please make sure the form is has no errors before saving":"Please make sure the form is has no errors before saving","Please confirm your new password":"Please confirm your new password","Create a New User":"Create a New User","Active User":"Active User","User can log in":"User can log in","Inactive User":"Inactive User","User can't log in":"User can't log in","Must use a valid email address":"Must use a valid email address","Password must be at least 6 characters long":"Password must be at least 6 characters long","Confirm Password must be at least 6 characters long":"Confirm Password must be at least 6 characters long","Passwords must match":"Passwords must match","First Name":"First Name","Last Name":"Last Name","Email Address":"Email Address","Confirm New Password":"Confirm New Password","Multifactor Authentication":"Multifactor Authentication",Role:"Role","Are you sure you want to delete :email ?":"Are you sure you want to delete :email ?","Your Name Here":"Your Name Here","WARNING. Deleting this user is permanent. It will remove all of their data. This user cannot be recovered in the future.":"WARNING. Deleting this user is permanent. It will remove all of their data. This user cannot be recovered in the future.","Delete User":"Delete User",User:"User","Allow Selected IPs":"Allow Selected IPs","This page contains a list of IP addresses automatically added to your allow list by Lunio. These are IPs that have been used to log in to the Lunio system or have recorded conversions, if you have conversion tracking enabled. Clicks from these IPs will never be blocked for any reason, unless you remove them from the allow list.":"This page contains a list of IP addresses automatically added to your allow list by Lunio. These are IPs that have been used to log in to the Lunio system or have recorded conversions, if you have conversion tracking enabled. Clicks from these IPs will never be blocked for any reason, unless you remove them from the allow list.","Add IPs":"Add IPs","Search IPs":"Search IPs"," Whitelisted IPs":" Whitelisted IPs","Deleting these IPs will remove them from your Google Ads exclusions list. Users from these IPs will be able to interact with your ads again":"Deleting these IPs will remove them from your Google Ads exclusions list. Users from these IPs will be able to interact with your ads again","Delete IPâs":"Delete IPâs",Social:"Social","Dis
2play and Video":"Display and Video","Please first set a recipient for the report to be sent to.":"Please first set a recipient for the report to be sent to.","How often would you like to receive reports?":"How often would you like to receive reports?","Disable Reports":"Disable Reports","You will not receive any reports to your inbox":"You will not receive any reports to your inbox",Daily:"Daily","Receive reports each day":"Receive reports each day",Weekly:"Weekly","Receive reports on Monday each week":"Receive reports on Monday each week",Monthly:"Monthly","Receive reports on the first Monday of each month":"Receive reports on the first Monday of each month","Current Recipients":"Current Recipients","The following are currently receiving reports":"The following are currently receiving reports","Add Recipients":"Add Recipients","Subscription Details":"Subscription Details","Details of your Lunio subscription":"Details of your Lunio subscription","View the details of your existing Lunio subscription below. If you wish to upgrade your subscription to increase your budget allowance, please contact your Client Success Manager using the button below, or the live chat widget.":"View the details of your existing Lunio subscription below. If you wish to upgrade your subscription to increase your budget allowance, please contact your Client Success Manager using the button below, or the live chat widget.","Get in touch with our":"Get in touch with our","to discuss upgrading your account.":"to discuss upgrading your account.","Manage Subscriptions":"Manage Subscriptions","Manage your subscriptions & invoices":"Manage your subscriptions & invoices","To access your invoices and manage your subscription, please click on the":"To access your invoices and manage your subscription, please click on the","button.":"button.","To request invoices prior to 2021 please contact us at [email protected]":"To request invoices prior to 2021 please contact us at [email protected]","Connected Ad Accounts":"Connected Ad Accounts",s:"s","Search Tokens":"Search Tokens","Google Ad Account":"Google Ad Account","Are you sure you want to delete this token?":"Are you sure you want to delete this token?","Tracking Template copied to clipboard.":"Tracking Template copied to clipboard.","Google Ads Tracking":"Google Ads Tracking","Tracking Template":"Tracking Template","Copy and paste the tracking template below into any Google Ads account you wish to protect by following our guide":"Copy and paste the tracking template below into any Google Ads account you wish to protect by following our guide","here.":"here.","Encode final URLs?":"Encode final URLs?",'We recommend setting this to "Yes" unless using 3rd party tracking solutions.':'We recommend setting this to "Yes" unless using 3rd party tracking solutions.',No:"No","Are you sure you want to delete :user":"Are you sure you want to delete :user","All Accounts":"All Accounts","Manage Users":"Manage Users","Search by name":"Search by name","Add User":"Add User","Account Type":"Account Type","Account Email":"Account Email","Active, Inactive":"Active, Inactive","Multifactor Auth":"Multifactor Auth","Enabled, Disabled":"Enabled, Disabled","Account Role":"Account Role","Account Access":"Account Access","Manage User Acce
2ss":"Manage User Access","Manage Accounts":"Manage Accounts","View by Day":"View by Day","View by Week":"View by Week","View by Month":"View by Month","The prevented clicks metric shows you activity that would have come from invalid sources, had it not been blocked/prevented by Lunio. The metric displays clicks that did not happen, but would have happened if you werenât actively protected against invalid traffic.":"The prevented clicks metric shows you activity that would have come from invalid sources, had it not been blocked/prevented by Lunio. The metric displays clicks that did not happen, but would have happened if you werenât actively protected against invalid traffic.","The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic.":"The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic.","In effect, this is the ad budget âsavedâ by utilizing the platform.":"In effect, this is the ad budget âsavedâ by utilizing the platform.","Traffic health uplift":"Traffic health uplift","You have saved":"You have saved",Website:"Website","You are about to delete :count Exclusions":"You are about to delete :count Exclusions","Track & audit exclusions across your campaigns":"Track & audit exclusions across your campaigns","Auto (Lunio)":"Auto (Lunio)","Adding to :name Accounts":"Adding to :name Accounts","Date Updated":"Date Updated","Add IP to Exclusions":"Add IP to Exclusions","Any IP you add will then not get blocked by any of your Accounts and Campaigns.":"Any IP you add will then not get blocked by any of your Accounts and Campaigns.","IP to Add":"IP to Add","Add IP to Allow List":"Add IP to Allow List","Add Accounts":"Add Accounts",":length of :total selected":":length of :total selected",Add:"Add","AdWords Account Access":"AdWords Account Access",Name:"Name",Actions:"Actions","We canât find what youâre looking for, but the links below may help.":"We canât find what youâre looking for, but the links below may help.","Back to Overview":"Back to Overview","Visit Intercom":"Visit Intercom",Workspaces:"Workspaces","Create Workspace":"Create Workspace","Workspace Name":"Workspace Name","Workspace created successfully":"Workspace created successfully",Workspace:"Workspace","View Summary Statistics":"View Summary Statistics","Favourite - show this one at the top":"Favorite - show this one at the top","View an audit history of this IP":"View an audit history of this IP","Manually add this IP to exclusion list":"Manually add this IP to exclusion list",Week:"Week",Month:"Month","Enable :platform":"Enable :platform","Send us an email at [email protected] to register your interest in enabling this platform.":"Send us an email at [email protected] to register your interest in enabling this platform.","Carbon Cost of invalid traffic":"Carbon Cost of invalid traffic","Last 12 Months":"Last 12 Months","per click":"per click","Lifetime Invalid Clicks Recorded":"Lifetime Invalid Clicks Recorded","Resulting in a Total Carbon cost":"Resulting in a Total Carbon cost","That is the equivalent of":"That is the equivalent of","Running a wash :times times":"Running a wash :times times","Revert to old look and feel":"Revert to old look and feel",View:"View","Workspace Settings":"Workspace Settings",General:"General",Members:"Members",Integrations:"Integrations","Workspace name":"Workspace name","This will display as your primary identifier on any shared reports. Workspaces are usually clients or internal teams.":"This will display as your primary identifier on any shared reports. Workspaces are usually clients or internal teams.",Success:"Success","Revert to old look":"Revert to old look","Exit BETA":"Exit BETA",Help:"Help","Log Out":"Log Out","All Worksp
2aces":"All Workspaces","Your Workspaces":"Your Workspaces","Manage all members and access to this workspace.":"Manage all members and access to this workspace.",Platform:"Platform",ID:"ID","Workspace settings":"Workspace settings","For subscription reasons your allowed date range is limited.":"For subscription reasons your allowed date range is limited.","Limited!":"Limited!",Emissions:"Emissions","language(response?.data?.message)":"language(response?.data?.message)","We canât find what youâre looking for":"We canât find what youâre looking for","IpBlocks queued for deletion. This process will take a few minutes to complete.":"IpBlocks queued for deletion. This process will take a few minutes to complete.","IP block deletion in progress. Please allow up to 10 minutes for this to complete.":"IP block deletion in progress. Please allow up to 10 minutes for this to complete.","Delete From All Accounts":"Delete From All Accounts","Update In Progress. During this process":"Update In Progress. During this process","Select All":"Select All",From:"From","Select IP Address":"Select IP Address","Status was updated for multiple campaigns":"Status was updated for multiple campaigns","language(configItem.label)":"language(configItem.label)","language(`For more accurate conversion tracking":"language(`For more accurate conversion tracking","Your previous changes are in progress":"Your previous changes are in progress",Legit:"Legit","language(col1Header)":"language(col1Header)","This page contains a list of IP addresses automatically added to your allow list by Lunio. These are IPs that have been used to log in to the Lunio system or have recorded conversions":"This page contains a list of IP addresses automatically added to your allow list by Lunio. These are IPs that have been used to log in to the Lunio system or have recorded conversions","Whitelisted IPs":"Whitelisted IPs","Good Morning":"Good Morning","Good Afternoon":"Good Afternoon","Good Evening":"Good Evening","The Traffic Health Uplift metric shows you the improvement in quality & health of your traffic by using Lunio. It takes in to account things like how many new valid users you are reaching":"The Traffic Health Uplift metric shows you the improvement in quality & health of your traffic by using Lunio. It takes in to account things like how many new valid users you are reaching","The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic. In effect":"The Re-Allocated budget metric shows you how much of your ad budget that would have been spent on invalid activity has been re-invested in valid user acquisition. This is the amount of spend that has been shifted from being spent on bad traffic and is now being spent on good traffic. In effect","Something went wrong while attempting to connect to your account. Please contact us using the chat widget in the bottom right.":"Something went wrong while attempting to connect to your account. Please contact us using the chat widget in the bottom right.",Active:"Active",Enabled:"Enabled","The prevented clicks metric shows you activity that would have come from invalid sources":"The prevented clicks metric shows you activity that would have come from invalid sources","In effect":"In effect","View the details of your existing Lunio subscription below. If you wish to upgrade your subscription to increase your budget allowance":"View the details of your existing Lunio subscription below. If you wish to upgrade your subscription to increase your budget allowance","To access your invoices and manage your subscription":"To access your invoices and manage your subscription",Yes:"Yes",something:"something",Remove:"Remove","Invalid Traffic Statistics":"Invalid Traffic Statistics","Data Selected":"Data Selected",Valid:"Valid",Clicks:"Clicks","Copy Tracking Script":"Copy Tracking Script",remove:"remove","MCC Level":"MCC Level","Add accounts to this workspace":"Add accounts to this workspace","View the clicks being monitored by your Lunio account.":"View the clicks being monitored by your Lunio account.","The account was added.":"The account was added.","The platform was added.":"The platform was added.","The platform was removed.":"The platform was removed.","The account was removed.":"The account was removed.","It is not possible to remove this account from the workspace.":"It is not possible to remove this account from the workspace.","Date Range":"Date Range","Last 7 days":"Last 7 days","Last 30 days":"Last 30 days",Rolling:"Rolling",Profile:"Profile",profile:"profile",Surname:"Surname","Here you can see your user details and manage any access tokens on your user account":"Here you can see your user details and manage any access tokens on your user account","User Profile":"User Profile","An active subscription is required to sync your google data.":"An active subscription is required to sync your google data.","Previous 7 days":"Previous 7 days","Previous 30 days":"Previous 30 days","Previous year":"Previous year",Owner:"Owner",Admin:"Admin",Manager:"Manager",Client:"Client","Email us":"Email us","See all of your subscriptions here":"See all of your subscriptions here","Get in touch":"Get in touch","Get In Touch":"Get In Touch","Use Legacy":"Use Legacy","Legacy Dashboard":"Legacy Dashboard","Legacy App":"Legacy App","Maltifactor Auth":"Maltifactor Auth",search:"search","Search...":"Search...","User List":"User List",users:"users","Edit this user":"Edit this user","Delete this user":"Delete this user","Confirm Deletion":"Confirm Deletion","Edit user":"Edit user","Edit User":"Edit User","Create User":"Create User","Please enter an email":"Please enter an email","Please enter your new password":"Please enter your new password","Please enter a first name":"Please enter a first name","Please enter a last name":"Please enter a last name","Please make sure the form has no errors before saving":"Please make sure the form has no errors before saving","Internal Tools":"Internal Tools","Estimation based on invali
2d sources identified and cost per click.":"Estimation based on invalid sources identified and cost per click.","Top 5 Invalid Activity":"Top 5 Invalid Activity","Top 5: Traffic Health":"Top 5: Traffic Health","By: Keyword":"By: Keyword","By: Campaign":"By: Campaign","By: Placement":"By: Placement","legacy app":"legacy app","By: Websites Protected":"By: Websites Protected","Looking for data":"Looking for data","Your account was cancelled on :date":"Your account was canceled on :date","Contact [email protected]":"Contact [email protected]","response?.data?.message":"response?.data?.message","It is not possible to add this account to the workspace.":"It is not possible to add this account to the workspace.","It is not possible to remove this member from the workspace.":"It is not possible to remove this member from the workspace.","isAdding ? 'Add' : 'Remove":"isAdding ? 'Add' : 'Remove","It is not possible to add this member to the workspace.":"It is not possible to add this member to the workspace.","Lunio users who have have access to this workspace":"Lunio users who have have access to this workspace","Add Members":"Add Members","Add members to this workspace":"Add members to this workspace","Remove Member":"Remove Member","Add the Lunio users who need to have access to this workspace":"Add the Lunio users who need to have access to this workspace","Add Member":"Add Member","configItem.label":"configItem.label","For more accurate conversion tracking":"For more accurate conversion tracking",col1Header:"col1Header","Manage the ad accounts assigned to this workspace":"Manage the ad accounts assigned to this workspace","Group your accounts together into workspaces to easily view data for related accounts and websites":"Group your accounts together into workspaces to easily view data for related accounts and websites","Add a workspace to get started.":"Add a workspace to get started.","Edit Workspace":"Edit Workspace","Manage Workspace":"Manage Workspace","Create a new workspace to organize your data.":"Create a new workspace to organize your data.","Sorry, you can't use this when workspaces are active":"Sorry, you can't use this when workspaces are active",Beta:"Beta","Workspace Limit Reached":"Workspace Limit Reached","Create a new workspace":"Create a new workspace","You have reached your limit of 100 workspaces.":"You have reached your limit of 100 workspaces.","Top 5 blocked IP addresses":"Top 5 blocked IP addresses",Count:"Count","Google Tokens":"Google Tokens","Google Token Settings":"Google Token Settings","See the platforms inside of your workspaces":"See the platforms inside of your workspaces","Add New Google Token":"Add New Google Token","Ad Accounts":"Ad Accounts","Google Tracking Template":"Google Tracking Template","Whitelisted IP created successfully":"Whitelisted IP created successfully","Whitelist IP removal was successful":"Whitelist IP removal was successful","Delete Selected IPs":"Delete Selected IPs",Sorry:"Sorry","Company Account":"Company Account","Receive reports every monday":"Receive reports every monday","Receive a report on the first monday of each month":"Receive a report on the first monday of each month",Disable:"Disable","Do not receive any reports":"Do not receive any reports","Google Summary Report":"Google Summary Report","How often would you like to receive Google reports?":"How often would you like to receive Google reports?","Reporting Frequency":"Reporting Frequency","How often do you want your Google reports?":"How often do you want your Google reports?","Remove user from list":"Remove user from list","Remove User":"Remove User","Remove :email from list":"Remove :email from list","Please add some Recipients":"Please add some Recipients","The following :count users are currently receiving reports":"The following :count users are currently receiving reports","Top 5: IVT Change":"Top 5: IVT Change","You are not currently in any workspaces":"You are not currently in any workspaces","Contact your system administrator to get you set up with access to a Lunio workspace to get all the benefits of using Lunio!":"Contact your system administrator to get you set up with access to a
2Lunio workspace to get all the benefits of using Lunio!","Go to Lunio Intercom":"Go to Lunio Intercom","Workspace Overview":"Workspace Overview","No workspace selected":"No workspace selected","Please select a workspace from the sidebar":"Please select a workspace from the sidebar",Unidentified:"Unidentified","Platform Click Traffic":"Platform Click Traffic","Here's what's happening across all of your platforms.":"Here's what's happening across all of your platforms.","Here's what's happening in :platform":"Here's what's happening in :platform","Make sure the end date is not before the start date":"Make sure the end date is not before the start date","Search IP":"Search IP",MultiPlatform:"MultiPlatform","The platform was successfully updated":"The platform was successfully updated","The platform was successfully added":"The platform was successfully added","Block on conversion settings were saved":"Block on conversion settings were saved","There are no more platforms available to add":"There are no more platforms available to add","Add Platform":"Add Platform","Select Platform":"Select Platform","Protection Status":"Protection Status","This figure represents the total estimated amount of ad spend that Lunio will prevent from being wasted so it could be spent on targeting genuine traffic. This figure is modelled using your average CPC and presents an estimate representing the case when all accounts and campaigns in this workspace are protected.":"This figure represents the total estimated amount of ad spend that Lunio will prevent from being wasted so it could be spent on targeting genuine traffic. This figure is modeled using your average CPC and presents an estimate representing the case when all accounts and campaigns in this workspace are protected.",Monitor:"Monitor","Lunio will actively protect this platform by investigating suspicious behaviour and blocking any sources we believe to inauthentic":"Lunio will actively protect this platform by investigating suspicious behavior and blocking any sources we believe to inauthentic","Lunio will monitor this platform for suspicious behaviour but will not actively block any traffic":"Lunio will monitor this platform for suspicious behavior but will not actively block any traffic","Auto Calculate CPC":"Auto Calculate CPC","Average cost per click":"Average cost per click","Lunio not monitor or protect this platform":"Lunio not monitor or protect this platform","Platform Parameter":"Platform Parameter","Edit Platform":"Edit Platform",Protect:"Protect","Select protection status":"Select protection status","Add and copy all of your tracking codes here":"Add and copy all of your tracking codes here","Copy and paste the tracking template below into any Google Ads account you wish to protect.":"Copy and paste the tracking template below into any Google Ads account you wish to protect.","guide here.":"guide here.","Google Tracking Template copied to clipboard.":"Google Tracking Template copied to clipboard.","Copy Google Script":"Copy Google Script","Copy Multiplatform Script":"Copy Multiplatform Script","Multiplatform Tracking Script":"Multiplatform Tracking Script","Multi Platform Tracking Template copied to clipboard.":"Multi Platform Tracking Template copied to clipboard.","Conversions Tracking Template copied to clipboard.":"Conversions Tracking Template copied to clipboard.","Block on Conversion":"Block on Conversion","Multiplatform Settings":"Multiplatform Settings","Add Mew Platforms":"Add Mew Platforms","Mplat Script":"Mplat Script","Add New Mplat":"Add New Mplat",Edit:"Edit","Lunio will actively protect this platform by investigating suspicious behaviour and blocking any sources we believe to be inauthentic":"Lunio will actively protect this platform by investigating suspicious behavior and blocking any sources we believe to be inauthentic","The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50":"The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50","When enabled platforms with 0 entered for CPC will use the average of positive values from other platforms":"When enabled platforms with 0 entered for CPC will use the average of positive values from other platforms","The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50) and used to calculate ad spend":"The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50) and used to calculate ad spend","Custom platform parameter for the mplat tracking script. (Placeholders show order of parameters)":"Custom platform parameter for the mplat tracking script. (Placeholders show order of parameters)","For more accurate conversion tracking, we recommend installing the tracking script below to fire on any conversion action. You can add this to a tag manager like Google Tag Manager. You can use the same conversion tracking script for any website or landing page you want to protect. Reach out to your account manager if you need help installing this.":"For more accurate conversion tracking, we recommend installing the tracking script below to fire on any conversion action. You can add this to a tag manager like Google Tag Manager. You can use the same conversion tracking script for any website or landing page you want to protect. Reach out to your account manager if you need help installing this.","The workspace was updated":"The workspace was updated","vs previous :time":"vs previous :time","Custom platform parameter for the mplat tracking script. (Placeholders show order of parameters":"Custom platform parameter for the mplat tracking script. (Placeholders show order of parameters",Log:"Log","Audit history click locations from specific IP address":"Audit history click locations from specific IP address",Map:"Map","Change IP":"Change IP","No locations foun
2d for this IP":"No locations found for this IP","IP Sources breakdown":"IP Sources breakdown",IP:"IP","Multi Platform":"Multi Platform","Clicks in the selected period from all sources currently categorised as Legitimate":"Clicks in the selected period from all sources currently categorized as Legitimate","These sources may be elevated to suspicious based on future behaviour":"These sources may be elevated to suspicious based on future behavior","Clicks in the selected period from all sources currently categorised as Suspicious":"Clicks in the selected period from all sources currently categorized as Suspicious","If these show further suspicious behaviour we will confirm them as invalid":"If these show further suspicious behavior we will confirm them as invalid","Clicks in the selected period from all sources currently categorised as Invalid":"Clicks in the selected period from all sources currently categorized as Invalid","Once actively protecting these sources will be excluded":"Once actively protecting these sources will be excluded","These sources will be excluded from protected accounts":"These sources will be excluded from protected accounts","Multi Platform Configurations":"Multi Platform Configurations","Add Configurations":"Add Configurations","All Configurations":"All Configurations","Add configurations to this workspace":"Add configurations to this workspace","Manage the configurations assigned to this workspace":"Manage the configurations assigned to this workspace","This name is already in use":"This name is already in use","You must have at least one domain URL":"You must have at least one domain URL","That domain has been added already":"That domain has been added already","The domain you are trying to add must be a valid URL":"The domain you are trying to add must be a valid URL","You can only add up to 10 domains":"You can only add up to 10 domains","Add Domains to this Platform":"Add Domains to this Platform","Paste the full URL from your browser, including any subdomain or path. e.g. https://www.website.com, https://shop.website.com, https://website.com/us. Domains must match exactly, website.com will not capture www.website.com.":"Paste the full URL from your browser, including any subdomain or path. e.g. https://www.website.com, https://shop.website.com, https://website.com/us. Domains must match exactly, website.com will not capture www.website.com.","Add Domain":"Add Domain","Domain URL":"Domain URL","Remove Domain URL":"Remove Domain URL","Remove Domain":"Remove Domain","You must give a name to this configuration":"You must give a name to this configuration","Average cost per click must be a number":"Average cost per click must be a number","Allow List":"Allow List","Multi Platform Settings":"Multi Platform Settings","Edit this platform":"Edit this platform","Top 5":"Top 5","Workspace Summary":"Workspace Summary","Please speak to an admin user":"Please speak to an admin user","You donât have access to any workspaces":"You donât have access to any workspaces","Please speak to CS":"Please speak to CS","You havenât got any workspaces":"You havenât got any workspaces","Please go and make one {link}":"Please go and make one {link}","Your workspace doesnât have any platforms":"Your workspace doesnât have any platforms","Please go add some {link}":"Please go add some {link}","This workspace doesnât have any platforms":"This workspace doesnât have any platforms","Please select a different workspace or speak to an admin user":"Please select a different workspace or speak to an admin user","Please select a different workspace or add some platforms to this one {link}":"Please select a different workspace or add some platforms to this one {link}","You currently have no platforms set up":"You currently have no platforms set up","This workspace does not have any platforms":"This workspace does not have any platforms","Your workspace does not have any platforms":"Your workspace does not have any platforms","You do not have access to any workspaces":"You do not have access to any workspaces","You do not have any workspaces":"You do not have any workspaces","Go To Settings":"Go To Settings","Please go and make one":"Please go and make one","Please go add some":"Please go add some","Please select a different workspace or add some platforms to this one":"Please select a different workspace or add some platforms to this one","Please speak to our Customer Success Team":"Please speak to our Customer Success Team","Please go and add some":"Please go and add some","Please select a different workspace or speak to your system administrator":"Please select a different workspace or speak to your system administrator","Try our New Widgets":"Try our New Widgets","Welcome to your :workspace workspace":"Welcome to your :workspace workspace",":platformName Summary - :workspace":":platformName Summary - :workspace","Switch back at any time":"Switch back at any time","Magnify IVT for easier comparison":"Magnify IVT for easier comparison","Click Totals":"Click Totals",Percentage:"Percentage",Broad:"Broad",Phrase:"Phrase",Exact:"Exact","Total potential budget reallocated away from invalid traffic based on invali
2d sources identified and cost-per-click":"Total potential budget reallocated away from invalid traffic based on invalid sources identified and cost-per-click","Last Name must not be empty":"Last Name must not be empty","First Name must not be empty":"First Name must not be empty","Email must not be empty":"Email must not be empty","Password must not be empty":"Password must not be empty","Confirm password must not be empty":"Confirm password must not be empty","Your account is past due.":"Your account is past due.","To avoid disruptions to your protection:":"To avoid disruptions to your protection:","Update Payment Details":"Update Payment Details","New User":"New User","Create and Add User":"Create and Add User",submitButtonText:"submitButtonText","Lunio only - revert any time":"Lunio only - revert any time","Preview workspace view":"Preview workspace view","User details":"User details",Permissions:"Permissions","type.charAt(0":"type.charAt(0","Edit Report":"Edit Report","Report Type":"Report Type",Frequencey:"Frequencey","Setup frequency of report":"Setup frequency of report",Frequency:"Frequency","How often would you like to receive this Report":"How often would you like to receive this Report","Delete Report":"Delete Report","Receive a report every Monday -":"Receive a report every Monday -","next scheduled report 17th April":"next scheduled report 17th April","Add Report":"Add Report","next scheduled report 3rd of May":"next scheduled report 3rd of May",Confirm:"Confirm","Setup Report":"Setup Report","Report created successfully":"Report created successfully","Receive a report on the first Monday of each month -":"Receive a report on the first Monday of each month -","Manage Report":"Manage Report","Select Workspace":"Select Workspace","Report updated successfully":"Report updated successfully","Create Platform":"Create Platform","Platform Overview":"Platform Overview","Review all your workspaces and platforms":"Review all your workspaces and platforms","Total invalid traffic":"Total invalid traffic","next scheduled report":"next scheduled report","Add Domain URL":"Add Domain URL","IP Management":"IP Management",Tools:"Tools","PMax Exclusions":"PMax Exclusions","PMax Tools":"PMax Tools","PMax Junk Exclusions List (40,000+ placements)":"PMax Junk Exclusions List (40,000+ placements)","Up to 41% of PMax placements consist of ad junk. Use this handy list based on global Lunio data to exclude the worst offending placements from your account and accelerate your performance.":"Up to 41% of PMax placements consist of ad junk. Use this handy list based on global Lunio data to exclude the worst offending placements from your account and accelerate your performance.",Download:"Download","See how here.":"See how here.","Here you can find additional tools built on Lunio data to help accelerate your PMax performance. /n Got an idea for a tool or feature that youâd like to see? Let us know at [email protected]!":"Here you can find additional tools built on Lunio data to help accelerate your PMax performance. /n Got an idea for a tool or feature that youâd like to see? Let us know at [email protected]!","This must be installed at the Google Account or Google MCC level.":"This must be installed at the Google Account or Google MCC level.","Here you can find additional tools built on Lunio data to help accelerate your PMax performance.":"Here you can find additional tools built on Lunio data to help accelerate your PMax performance.","Got an idea for a tool or feature that youâd like to see? Let us know at ":"Got an idea for a tool or feature that youâd like to see? Let us know at ",New:"New","PMax Junk Exclusions List (40":"PMax Junk Exclusions List (40","Got an idea for a tool or feature that youâd like to see? Let us know at":"Got an idea for a tool or feature that youâd like to see? Let us know at","With and approximate cost of :currency:cost based on latest CPC values.":"With and approximate cost of :currency:cost based on latest CPC values.","With an approximate cost of :currency:cost based on latest CPC values.":"With an approximate cost of :currency:cost based on latest CPC values.","With an approximate cost of":"With an approximate cost of","based on latest CPC values.":"based on latest CPC values.","based on latest CPC values":"based on latest CPC values","IP Classification":"IP Classification","
2Lunio Class":"Lunio Class",Reasons:"Reasons","Risk Score":"Risk Score","IP Behaviour":"IP Behavior","We are currently gathering data to give you your Traffic insights":"We are currently gathering data to give you your Traffic insights","We are currently gathering data to give you your traffic insights":"We are currently gathering data to give you your traffic insights","As IP sources change ownership over time any click source/IP may generate clicks in different categories as it is analysed by behavioural models and progresses through different stages of activity. The figures here are based on the point in time audit history of that source and so will not change even if future clicks from that source are given a different classification.":"As IP sources change ownership over time any click source/IP may generate clicks in different categories as it is analyzed by behavioral models and progresses through different stages of activity. The figures here are based on the point in time audit history of that source and so will not change even if future clicks from that source are given a different classification.","This view shows you all categorised clicks over time either as a percentage or raw counts. The clicks classified as invalid are shown below the x-axis to allow you to âzoom inâ and see the relationship between click traffic and overall volumes.":"This view shows you all categorized clicks over time either as a percentage or raw counts. The clicks classified as invalid are shown below the x-axis to allow you to âzoom inâ and see the relationship between click traffic and overall volumes.","This IP activity view gives you a wider perspective on your traffic. As classification is based on behaviour it can take more than one ad click to identify invalid sources. This widget shows you the total click activity from all sources based on their latest classification.":"This IP activity view gives you a wider perspective on your traffic. As classification is based on behavior it can take more than one ad click to identify invalid sources. This widget shows you the total click activity from all sources based on their latest classification.","Active Sources":"Active Sources","The percentage of traffic sources (IPs) classified by Lunio as legitimate, suspicious, or invalid. Learn more [here](https://help.lunio.ai/en/articles/9583931-introduction-to-the-workspace-dashboard#h_a119b8d718).":"The percentage of traffic sources (IPs) classified by Lunio as legitimate, suspicious, or invalid. Learn more [here](https://help.lunio.ai/en/articles/9583931-introduction-to-the-workspace-dashboard#h_a119b8d718).","Google Accounts":"Google Accounts",Unassigned:"Unassigned",Maps:"Maps","Workspace Currency":"Workspace Currency","These are the settings that define how this workspace appears in dashboards.":"These are the settings that define how this workspace appears in dashboards.","Workspace Details":"Workspace Details",Currency:"Currency","Number of Clicks":"Number of Clicks","Workspace currency was saved":"Workspace currency was saved","Results for":"Results for","Search all accounts ":"Search all accounts ","Cost of Traffic from Invalid sources":"Cost of Traffic from Invalid sources","Legitimate Sources":"Legitimate Sources","Suspicious Sources":"Suspicious Sources","Invalid Sources":"Invalid Sources","from sources currently classified as invalid":"from sources currently classified as invalid","from sources currently classified as suspicious":"from sources currently classified as suspicious","from sources currently classified as legitimate":"from sources currently classified as legitimate","Accounts - Protection Management":"Accounts - Protection Management","Clicks Received":"Clicks Received",Protection:"Protection","Approx Spend":"Approx Spend","Protection Management":"Protection Management","set the protection status of your Google Ads accounts":"set the protection status of your Google Ads accounts","Status updated was successful":"Status updated was successful","Status updated was successful for :name":"Status updated was successful for :name","Protection status was changed for :name":"Protection status was changed for :name","Are you sure you want to disable this account? This will disable the account and all of its campaigns and stop monitoring & protection them.":"Are you sure you want to disable this account? This will disable the account and all of its campaigns and stop monitoring & protection them.","Are you sure you want to protect this account? This will protect the account and all of its campaigns.":"Are you sure you want to protect this account? This will protect the account and all of its campaigns.","Are you sure you want to only monitor this account? The account and all of its campaigns will be monitored only":"Are you sure you want to only monitor this account? The account and all of its campaigns will be monitored only","Are you sure you want to only monitor this account? The account and all of its campaigns will be monitored only, but not protected.":"Are you sure you want to only monitor this account? The account and all of its campaigns will be monitored only, but not protected.","Are you sure you want to disable this account? This will disable the account and all of its campaigns and stop monitoring & protection on them.":"Are you sure you want to disable this account? This will disable the account and all of its campaigns and stop monitoring & protection on them.","Update Protection":"Update Protection","Set the protection of status of the selected Accounts":"Set the protection of status of the selected Accounts","Area you sure you want to do this":"Area you sure you want to do this","Set the protection of status of the :count selected Accounts to
2:status":"Set the protection of status of the :count selected Accounts to :status","Set the protection of status of :count selected Account:s to :status":"Set the protection of status of :count selected Account:s to :status","Set the protection of status of :count selected account:s to :status":"Set the protection of status of :count selected account:s to :status","Area you sure you want to do this. Setting the protection status of an account will affect all of its campaigns.":"Area you sure you want to do this. Setting the protection status of an account will affect all of its campaigns.","Area you sure you want to do this. Setting the protection status of an account will also set the same status on all of its campaigns.":"Area you sure you want to do this. Setting the protection status of an account will also set the same status on all of its campaigns.","Set the protection status of your Google Ads accounts":"Set the protection status of your Google Ads accounts","Set the protection status of your Google Ads Accounts":"Set the protection status of your Google Ads Accounts",Received:"Received",Approx:"Approx",Spend:"Spend",Warning:"Warning","Because the parent account is not protected":"Because the parent account is not protected","Because the parent account is not protected, there can be no protection of any campaigns. You need to set the account to protected if you want to protect any of its campagins.":"Because the parent account is not protected, there can be no protection of any campaigns. You need to set the account to protected if you want to protect any of its campagins.","Because the parent account is not protected, there can be no protection of any its campaigns. You need to set the account to protected if you want to protect any of its campagins.":"Because the parent account is not protected, there can be no protection of any its campaigns. You need to set the account to protected if you want to protect any of its campagins.","Because the parent account is not protected, there can be no protection of any of its campaigns. You need to set the account to protected if you want to protect any of its campagins.":"Because the parent account is not protected, there can be no protection of any of its campaigns. You need to set the account to protected if you want to protect any of its campagins.","Acccount ID":"Acccount ID","Set the protection status of your Google Ads Campaigns":"Set the protection status of your Google Ads Campaigns","Update Selected Accounts":"Update Selected Accounts","Update ALL Accounts":"Update ALL Accounts","Update :count Selected Account:s":"Update :count Selected Account:s","Set the protection of status of all accounts and campaigns":"Set the protection of status of all accounts and campaigns","Area you sure you want to do this. This will set the protection status of all accounts and campaigns within this workspace.":"Area you sure you want to do this. This will set the protection status of all accounts and campaigns within this workspace.","Set the protection of status of all accounts and campaigns to :status":"Set the protection of status of all accounts and campaigns to :status","Set the protection status of all accounts and campaigns to :status":"Set the protection status of all accounts and campaigns to :status","Are you sure you want to do this. This will set the protection status of all accounts and campaigns within this workspace.":"Are you sure you want to do this. This will set the protection status of all accounts and campaigns within this workspace.","Because this account is not protected":"Because this account is not protected","Because this account is not protected, there can be no protection of any of its campaigns. You need to set the account to protected if you want to protect any of its campagins.":"Because this account is not protected, there can be no protection of any of its campaigns. You need to set the account to protected if you want to protect any of its campagins.","Link to Campaigns":"Link to Campaigns","Update All Accounts":"Update All Accounts","View Campaigns":"View Campaigns","Are you sure you want to do this. Setting the protection status of an account will also set the same status on all of its campaigns.":"Are you sure you want to do this. Setting the protection status of an account will also set the same status on all of its campaigns.","Search all accounts":"Search all accounts","Welcome to Lunio":"Welcome to Lunio","Lunio is organised in workspaces to allow you to access your data easily for different brands, teams or clients.":"Lunio is organized in workspaces to allow you to access your data easily for different brands, teams or clients.","Let's get you set up with your first workspace.":"Let's get you set up with your first workspace.","Enter a name here":"Enter a name here","My First Worksp
2ace":"My First Workspace","System Overview":"System Overview",Change:"Change","Avg CPC":"Avg CPC","Ad Stats Export Summary":"Ad Stats Export Summary","Export Ad stats in CSV files":"Export Ad stats in CSV files","Search Contains":"Search Contains","Lunio is organised in workspaces to allow you to access your data easily for different brands":"Lunio is organized in workspaces to allow you to access your data easily for different brands",Stats:"Stats","Google Sync Status:":"Google Sync Status:","Explore all your active campaigns that received clicks during this period":"Explore all your active campaigns that received clicks during this period",Display:"Display",Video:"Video",Shopping:"Shopping",PMax:"PMax","Adjusted Value":"Adjusted Value","Email To:":"Email To:","Export failed to process":"Export failed to process","Your export is being prepared and sent":"Your export is being prepared and sent",State:"State","Your export is being prepared and will be with you shortly":"Your export is being prepared and will be with you shortly","Match Types":"Match Types","Current Activity":"Current Activity","Clicks Log Analytics":"Clicks Log Analytics","Individual Categorised Clicks":"Individual Categorized Clicks","The percentage of individual clicks classified by Lunio as legitimate, suspicious, or invalid. Learn more [here](https://help.lunio.ai/en/articles/9583931-introduction-to-the-workspace-dashboard#h_c7a74666d5).":"The percentage of individual clicks classified by Lunio as legitimate, suspicious, or invalid. Learn more [here](https://help.lunio.ai/en/articles/9583931-introduction-to-the-workspace-dashboard#h_c7a74666d5).","Modelled using your average CPC":"Modeled using your average CPC","Est. reallocated budget":"Est. reallocated budget","Sort by most interesting":"Sort by most interesting","IP Network":"IP Network",Domains:"Domains",ISPs:"ISPs",Min:"Min",Max:"Max","${colourMap[colour].text} Sources":"${colourMap[color].text} Sources",Today:"Today","Top 5 change in Traffic":"Top 5 change in Traffic","Previous Month":"Previous Month","Not enough data":"Not enough data",month:"month","Try changing filters to get more data":"Try changing filters to get more data","Not enough data to display this chart":"Not enough data to display this chart","Not enough data to display this map":"Not enough data to display this map","PMax N-Grams Finder (Powered by Opteo)":"PMax N-Grams Finder (Powered by Opteo)","Get Started":"Get Started","Create negative keywords from N-Grams, reduce wasted spend and improve ad relevance. Your report will be delivered by email within 24 hours (usually much sooner!)":"Create negative keywords from N-Grams, reduce wasted spend and improve ad relevance. Your report will be delivered by email within 24 hours (usually much sooner!)","This feature requires connecting your Google Ads account to our partners at Opteo. Click a button below to start this process.":"This feature requires connecting your Google Ads account to our partners at Opteo. Click a button below to start this process.","You're all set! Your Opteo API key has been successfully updated.":"You're all set! Your Opteo API key has been successfully updated.","You can close this window and return to Lunio":"You can close this window and return to Lunio","Something went wrong, please try again":"Something went wrong, please try again","This Google account isn't added to Lunio":"This Google account isn't added to Lunio","Please make sure you're using the correct Google account and try again":"Please make sure you're using the correct Google account and try again","Connect to Opteo":"Connect to Opteo",Unlinked:"Unlinked",all:"all","Campaign level to all available campaigns within all accounts":"Campaign level to all available campaigns within all accounts","Campaign level to all available campaigns within :count account:s":"Campaign level to all available campaigns within :count account:s","Lunio applies a maximum of 500 IP Exclusions at Account level. Adding addresses manually may remove IP addresses added by our system.":"Lunio applies a maximum of 500 IP Exclusions at Account level. Adding addresses manually may remove IP addresses added by our system.","Account level to :count account:s":"Account level to :count account:s","Apply Exclusions":"Ap
2ply Exclusions","Apply exclusions at":"Apply exclusions at","Enter IP Address":"Enter IP Address","You have selected :count Google account:s":"You have selected :count Google account:s","Add IP Exclusions":"Add IP Exclusions","Account level to all accounts":"Account level to all accounts","Something went wrong":"Something went wrong","PMax N-Grams Finder (Powered by Opteo":"PMax N-Grams Finder (Powered by Opteo","Create negative keywords from N-Grams":"Create negative keywords from N-Grams","Try changing date range":"Try changing date range","Try changing date range or filters to get more dat":"Try changing date range or filters to get more dat","Try changing date range or filters to get more data":"Try changing date range or filters to get more data","Campaign Analytics":"Campaign Analytics","We don't support this platform yet.":"We don't support this platform yet.","Send email":"Send email","This page is not available for the selected platform yet":"This page is not available for the selected platform yet","This value was manually set by a user of this workspace.":"This value was manually set by a user of this workspace.","Here is a list of all your accounts":"Here is a list of all your accounts","Self Defined CPC":"Self Defined CPC","User Inputted CPC":"User Inputted CPC","This is the CPC value for the campaign that was set within the settings area for this account":"This is the CPC value for the campaign that was set within the settings area for this account","View all campaigns":"View all campaigns","View All":"View All","User defined CPC":"User defined CPC","% SIVT Clicks":"% SIVT Clicks","% Total Clicks":"% Total Clicks","Percentage comparison Traffic vs IVT":"Percentage comparison Traffic vs IVT","Cost of traffic from invalid sources":"Cost of traffic from invalid sources",Chart:"Chart",Table:"Table","Show Chart":"Show Chart","Show Table":"Show Table",true:"true","100% in this period has maximum click of :value":"100% in this period has maximum click of :value",SIVT:"SIVT",":value SIVT Clicks":":value SIVT Clicks",":value of Total Volume":":value of Total Volume","Access Token":"Access Token","Choose which workspace appears when you first load the dashboard.":"Choose which workspace appears when you first load the dashboard.","Default Workspace":"Default Workspace","Select a workspace":"Select a workspace","Select a Workspace":"Select a Workspace","Default workspace updated successfully":"Default workspace updated successfully","Default workspace was updated successfully":"Default workspace was updated successfully","Please select a workspace before trying to save":"Please select a workspace before trying to save","Clear Default":"Clear Default",UP:"UP",DOWN:"DOWN","Click the Add Report button to set up a regular email report":"Click the Add Report button to set up a regular email report","You dont have any reports set up yet":"You dont have any reports set up yet","You don't have any reports set up yet":"You don't have any reports set up yet","Scale IVT for easier comparison":"Scale IVT for easier comparison","IP Summary":"IP Summary","Suspicious user agents":"Suspicious user agents","Reported to abuse database":"Reported to abuse database","Suspect IP usage type":"Suspect IP usage type","Firewall triggered":"Firewall triggered","No organic ad traffic detected":"No organic ad traffic detected","Proxy activity":"Proxy activity","No conversion activity":"No conversion activity","Abnormal ad activity":"Abnormal ad activity","IP has been detected using our general IVT firewall":"IP has been detected using our general IVT firewall","IP has been reported for abuse behaviour to 3rd Parties":"IP has been reported for abuse behavior to 3rd Parties","IP has only interacted via paid ads, no organic web traffic detected for the period selected":"IP has only interacted via paid ads, no organic web traffic detected for the period selected","IP requests have been routed via 1 or more public IP addresses":"IP requests have been routed via 1 or more public IP addresses","No conversions have been associated to this IP for this account for the peri
2od selected":"No conversions have been associated to this IP for this account for the period selected","This IP behaves like a Data Center, Content Delivery Network, Or Search Engine Spider":"This IP behaves like a Data Center, Content Delivery Network, Or Search Engine Spider","We have detected suspicious or malicious user agent strings in requests from this IP":"We have detected suspicious or malicious user agent strings in requests from this IP","Clicks and user agent behaviour for this IP on this account is well outside normal expected behaviour":"Clicks and user agent behavior for this IP on this account is well outside normal expected behavior","Usage Type":"Usage Type",Conversion:"Conversion",ISP:"ISP","Behaviour across Lunio":"Behavior across Lunio","Country Code:":"Country Code:",Investigating:"Investigating","Audit history for clicks from this IP address on this platform":"Audit history for clicks from this IP address on this platform","Clicks Audit within":"Clicks Audit within","Clicks Audit within :platform":"Clicks Audit within :platform","PMax Junk Exclusions List":"PMax Junk Exclusions List","Create negative keywords from N-Grams, reduce wasted spend and improve ad relevance.":"Create negative keywords from N-Grams, reduce wasted spend and improve ad relevance.","No accounts found":"No accounts found","No accounts are connected to Lunio":"No accounts are connected to Lunio","If some accounts aren't connected, please speak to your admin user.":"If some accounts aren't connected, please speak to your admin user.","This feature requires connecting your Google Ads account to our partners at Opteo. You have linked :countConnected of your :countTotal Google Ads accounts to Opteo. The following are unlinked:":"This feature requires connecting your Google Ads account to our partners at Opteo. You have linked :countConnected of your :countTotal Google Ads accounts to Opteo. The following are unlinked:","You have connected all of your Google Ads accounts to Opteo.":"You have connected all of your Google Ads accounts to Opteo.",Unknown:"Unknown","If some accounts aren't connected":"If some accounts aren't connected","Hourly Invalid":"Hourly Invalid","Last 4 Weeks":"Last 4 Weeks","You may not have added a Google token yet or if you have then it may take a few hours to sync your data":"You may not have added a Google token yet or if you have then it may take a few hours to sync your data","Click the add button to create your first user":"Click the add button to create your first user","No users found":"No users found","Click the add button to connect a google token":"Click the add button to connect a google token","No accounts assigned":"No accounts assigned","No accounts available":"No accounts available","No platforms found":"No platforms found","There are no accounts available to add to this workspace":"There are no accounts available to add to this workspace","Click on the add button to assign a platform to this workspace":"Click on the add button to assign a platform to this workspace","No platforms available":"No platforms available","You don't have any platforms available to be added to this workspace":"You don't have any platforms available to be added to this workspace","No Members":"No Members","No whitelisted IPs found":"No whitelisted IPs found","Click the add button to setup your first platform":"Click the add button to setup your first platform","Click the add button to create an IP that will never get blocked by our system":"Click the add button to create an IP that will never get blocked by our system","There are no users available to add to this workspace":"There are no users available to add to this workspace","No Google Tokens found":"No Google Tokens found","No Google Accounts found":"No Google Accounts found","No Workspaces found":"No Workspaces found","Click on the add button to create your first workspace":"Click on the add button to create your first workspace","SIVT Percentage":"SIVT Percentage","Active in Period":"Active in Period","View on AbuseIPDB":"View on AbuseIPDB","You have not yet added any members to this workspace":"You have not yet added any members to this workspace","There are no accounts assigned to this workspace yet":"There are no accounts assigned to this workspace yet","Show All":"Show All",Sync:"Sync","Close Workspace Selector":"Close Workspace Selector","Labelled Invalid":"Labeled Invalid","This IP has been labelled as invali
2d by our system":"This IP has been labeled as invalid by our system",Schedule:"Schedule",Keywords:"Keywords",Visual:"Visual","See the periods during the week with the highest traffic volumes and the most invalid traffic.":"See the periods during the week with the highest traffic volumes and the most invalid traffic.","Identify the keywords driving the highest proportions of invalid traffic. Consider excluding keywords trending towards the top right of the scatter. Use the log scale at the bottom to analyze patterns across different traffic volumes effectively.":"Identify the keywords driving the highest proportions of invalid traffic. Consider excluding keywords trending towards the top right of the scatter. Use the log scale at the bottom to analyze patterns across different traffic volumes effectively.","Identify the placements contributing to the highest volumes of invalid traffic. Placements trending towards the upper-right of the scatter plot may suggest a need to adjust targeting or add exclusions. Use the log scale at the bottom to gain insights across varying traffic volumes.":"Identify the placements contributing to the highest volumes of invalid traffic. Placements trending towards the upper-right of the scatter plot may suggest a need to adjust targeting or add exclusions. Use the log scale at the bottom to gain insights across varying traffic volumes.","Compares total traffic for each network with the percentage of invalid traffic. A high proportion of invalid traffic relative to total traffic indicates that a network is a significant source of IVT. Consider refining your campaign targeting to prioritize more reliable networks.":"Compares total traffic for each network with the percentage of invalid traffic. A high proportion of invalid traffic relative to total traffic indicates that a network is a significant source of IVT. Consider refining your campaign targeting to prioritize more reliable networks.","Compare the percentage of total traffic from each country to its percentage of invalid traffic. A high proportion of invalid traffic relative to total traffic indicates that a country is a significant source of IVT.":"Compare the percentage of total traffic from each country to its percentage of invalid traffic. A high proportion of invalid traffic relative to total traffic indicates that a country is a significant source of IVT.",Data:"Data","Toggle user status":"Toggle user status","Remove Token":"Remove Token","Export your campaign data to a CSV file":"Export your campaign data to a CSV file","Export Summary":"Export Summary",Pmax:"Pmax","Export Campaigns":"Export Campaigns","Export Accounts":"Export Accounts","Export your account data to a CSV file":"Export your account data to a CSV file",Interval:"Interval",None:"None","Estimated based on our click data combined with your latest CPC values.":"Estimated based on our click data combined with your latest CPC values.","You can only add up to 40 domains":"You can only add up to 40 domains","Select all":"Select all","Deselect all":"Deselect all","Please select a range of no more than ${maxRangeDays} days":"Please select a range of no more than ${maxRangeDays} days","Please select a range of no more than :maxRangeDays days":"Please select a range of no more than :maxRangeDays days","No historic CPC available. Latest CPC will be used to estimate costs.":"No historic CPC available. Latest CPC will be used to estimate costs.",Scripts:"Scripts","%pt Change":"%pt Change","The value of your campaign spend with invalid clicks factored out":"The value of your campaign spend with invalid clicks factored out","Event Type":"Event Type","Choose the event type which will trigger the audience event on the mplat tracking script":"Choose the event type which will trigger the audience event on the mplat tracking script","Select an event type":"Select an event type","Select Event Type":"Select Event Type","The event type which will trigger the audience event on the mplat tracking script":"The event type which will trigger the audience event on the mplat tracking script","Audit trail feature not available with obfuscated IPs":"Audit trail feature not available with obfuscated IPs",Cick:"Cick",here:"here","to go to settings":"to go to settings","We noticed that you have not set up your conversion script.":"We noticed that you have not set up your conversion script.",Purchase:"Purchase",Lead:"Lead",Whitelisting:"Whitelisting","A conversion that results in a form being filled or an email signup etc":"A conversion that results in a form being filled or an email signup etc","Can only be set when creating a new conversion":"Can only be set when creating a new conversion",Whitelist:"Whitelist","An ip that has been converted will be marked as a valid click for any future clicks":"An ip that has been converted will be marked as a valid click for any future clicks","No whitelisting behaviour":"No whitelisting behavior","Assign to Workspaces":"Assign to Workspaces","Delete Permanently":"Delete Permanently","Are you sure you want to delete this script?":"Are you sure you want to delete this script?","Click OK to continue or cancel to avoid deletion":"Click OK to continue or cancel to avoid deletion","Conversion type":"Conversion type","A conversion that results in a purchase":"A conversion that results in a purchase","The Script was deleted":"The Script was deleted",Generate:"Generate",Select:"Select",":name conversion script":":name conversion script","No conversion tracking script found.":"No conversion tracking script found.","Generate Script":"Generate Script",Action:"Action","Conversion name":"Conversion name",Type:"Type",Script:"Script",Whitelisted:"Whitelisted","Something went wrong while trying to delete your script":"Something went wrong while trying to delete your script","View Script":"View Script","Edit Script":"Edit Script","Create new conversion configuration":"Create new conversion configuration","No workspaces":"No workspaces","Edit conversion configuration":"Edit conversion configuration","No whitelisting behaviour, just keeps track of conversions":"No whitelisting behavior, just keeps track of conversions","A conversion that results in a purchase, money exchanged":"A conversion that results in a purchase, money exchanged","For more accurate conversion tracking, we recommend installing a tracking script to fire on any conversion action. You can add this to a tag manager like Google Tag Manager. You can use the same conversion tracking script for any website or landing page you want to protect.":"For more accurate conversion tracking, we recommend installing a tracking script to fire on any conversion action. You can add this to a tag manager like Google Tag Manager. You can use the same conversion tracking script for any website or landing page you want to protect.","Lunio Labs":"Lunio Labs","Beta Features":"Beta Features","Please be aware that these are all Beta Features and are currently under active development":"Please be aware that these are all Beta Features and are currently under active development",":state :flag":":state :flag","Lunio Labs is a place where you can try out and experiment with new beta features":"Lunio Labs is a place where you can try out and experiment with new beta features","Protection status was changed for :name'":"Protection status was changed for :name'","Your account was cancelled on :date'":"Your account was canceled on :date'",":state :flag'":":state :flag'",":platformName Summary - :workspace'":":platformName Summary - :workspace'","Welcome to your :workspace workspace'":"Welcome to your :workspace workspace'",":name conversion script'":":name conversion script'","This feature requires connecting your Google Ads account to our partners at Opteo. You have linked
2:countConnected of your :countTotal Google Ads accounts to Opteo. The following are unlinked:'":"This feature requires connecting your Google Ads account to our partners at Opteo. You have linked :countConnected of your :countTotal Google Ads accounts to Opteo. The following are unlinked:'","Clicks Audit within :platform'":"Clicks Audit within :platform'","Are you sure you want to manually add :ip to your IP exclusions?'":"Are you sure you want to manually add :ip to your IP exclusions?'","You are about to delete :count Exclusions'":"You are about to delete :count Exclusions'","You have selected :count Google account:s'":"You have selected :count Google account:s'","Running a wash :times times'":"Running a wash :times times'","language(isAdding ? 'Add' : 'Remove":"language(isAdding ? 'Add' : 'Remove","Password must be at least 6 characters long'":"Password must be at least 6 characters long'","Account level to :count account:s'":"Account level to :count account:s'","The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50)":"The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50)","Confirm Password must be at least 6 characters long'":"Confirm Password must be at least 6 characters long'","The following :count users are currently receiving reports'":"The following :count users are currently receiving reports'","Token Expiry: :expiryDate'":"Token Expiry: :expiryDate'","Campaign level to all available campaigns within :count account:s'":"Campaign level to all available campaigns within :count account:s'","Update :count Selected Account:s'":"Update :count Selected Account:s'","Remove :email from list'":"Remove :email from list'","Are you sure you want to delete :user'":"Are you sure you want to delete :user'","WARNING. Deleting this user is permanent. It will remove all of their data. This user cannot be recovered in the future.'":"WARNING. Deleting this user is permanent. It will remove all of their data. This user cannot be recovered in the future.'","language(submitButtonText)":"language(submitButtonText)","Set the protection of status of :count selected account:s to :status'":"Set the protection of status of :count selected account:s to :status'","Set the protection status of all accounts and campaigns to :status'":"Set the protection status of all accounts and campaigns to :status'","Showing :length :labelIdentifier'":"Showing :length :labelIdentifier'","Search :labelIdentifier'":"Search :labelIdentifier'","Please select a range of no more than :maxRangeDays days'":"Please select a range of no more than :maxRangeDays days'","Showing All :labelIdentifier'":"Showing All :labelIdentifier'",":length of :total selected'":":length of :total selected'","All :labelIdentifier selected'":"All :labelIdentifier selected'","Showing :length of :total selected'":"Showing :length of :total selected'","Sort by :id ascending'":"Sort by :id ascending'","100% in this period has maximum click of :value'":"100% in this period has maximum click of :value'",":value of Total Volume'":":value of Total Volume'",":value Invalid Traffic'":":value Invalid Traffic'","Are you sure you want to :actionVerb all accounts? This will :actionVerb all accounts for all users in your organisation and stop monitoring & protection on them.'":"Are you sure you want to :actionVerb all accounts? This will :actionVerb all accounts for all users in your organization and stop monitoring & protection on them.'","Are you sure you want to delete :email ?'":"Are you sure you want to delete :email ?'","Enable :platform'":"Enable :platform'","Here's what's happening in :platform'":"Here's what's happening in :platform'","Viewing Data for :title'":"Viewing Data for :title'","vs previous :time'":"vs previous :time'","Campaign IVT Alert":"Campaign IVT Alert","To allow protection and monitoring of other platforms you will need to use this multiplatform tracking script. You can add this to a tag manager like Google Tag Manager. You can use the same multiplatform tracking script for any website or landing page you want to protect. Reach out to your account manager if you need help installing this.":"To allow protection and monitoring of other platforms you will need to use this multiplatform tracking script. You can add this to a tag manager like Google Tag Manager. You can use the same multiplatform tracking script for any website or landing page you want to protect. Reach out to your account manager if you need help installing this.","Delete Token":"Delete Token","Depreciate Token":"Depreciate Token","Are you sure you want to depreciate this token?":"Are you sure you want to depreciate this token?","Action disabled
2while depreciation is in progress":"Action disabled while depreciation is in progress","Delete token is disabled while depreciation is in progress":"Delete token is disabled while depreciation is in progress","The token was deprecated successfully":"The token was deprecated successfully","deprecate Token":"deprecate Token","Are you sure you want to deprecate this token?":"Are you sure you want to deprecate this token?","Delete token is disabled while deprecation is in progress":"Delete token is disabled while deprecation is in progress","Delete token is disabled while token deprecation is in progress":"Delete token is disabled while token deprecation is in progress","Deprecate token":"Deprecate token","Set up your conversion script to improve your IVT detection.":"Set up your conversion script to improve your IVT detection.","to find in settings":"to find in settings","Last 90 days":"Last 90 days","Calendar Month":"Calendar Month","Custom Range":"Custom Range","Last 4 weeks":"Last 4 weeks","next scheduled report 20th January":"next scheduled report 20th January","language(type.charAt(0)":"language(type.charAt(0)","Set the protection of status of :count selected campaign:s to :status'":"Set the protection of status of :count selected campaign:s to :status'","Are you sure you want to do this. Setting the protection status of an campaign will also set the same status on all of its campaigns.":"Are you sure you want to do this. Setting the protection status of an campaign will also set the same status on all of its campaigns.","Set the protection status of all campaigns and campaigns to :status'":"Set the protection status of all campaigns and campaigns to :status'","Are you sure you want to do this. This will set the protection status of all campaigns and campaigns within this workspace.":"Are you sure you want to do this. This will set the protection status of all campaigns and campaigns within this workspace.","Are you sure you want to protect this campaign?":"Are you sure you want to protect this campaign?","Are you sure you want to only monitor this campaign?":"Are you sure you want to only monitor this campaign?","Are you sure you want to disable this campaign?":"Are you sure you want to disable this campaign?","Are you sure you want to do this. You are about to set the status for every campaign within this workspace.":"Are you sure you want to do this. You are about to set the status for every campaign within this workspace.","Set the protection status of all campaigns to :status'":"Set the protection status of all campaigns to :status'","Are you sure you want to do this. This will set the protection status of all campaigns within this workspace.":"Are you sure you want to do this. This will set the protection status of all campaigns within this workspace.","Set the protection status of all campaigns to :status":"Set the protection status of all campaigns to :status","Update :count Selected Campaign:s'":"Update :count Selected Campaign:s'","Update :count Selected Campaign:s":"Update :count Selected Campaign:s","Set the protection of status of :count selected campaign:s to :status":"Set the protection of status of :count selected campaign:s to :status","Update All Campaigns":"Update All Campaigns","Performance Max":"Performance Max",Discovery:"Discovery","Multi-Channel":"Multi-Channel",Hotel:"Hotel",Smart:"Smart",Express:"Express","Support Documentation":"Support Documentation","No data":"No data","Client tracking script":"Client tracking script",Convert:"Convert","Script Combiner":"Script Combiner","Copy Combined Script":"Copy Combined Script","Combined script copied to clipboard.":"Combined script copied to clipboard.","Google Tag Manager Template":"Google Tag Manager Template","Copy Template Key":"Copy Template Key","Template Key copied to clipboard.":"Template Key copied to clipboard.","Use our Google Tag Manager tag template":"Use our Google Tag Manager tag template",Yesterday:"Yesterday","Are you sure you want to do this. You are about to set the status for the selected campaigns.":"Are you sure you want to do this. You are about to set the status for the selected campaigns.","A maximum of 50 IP address can be manually excluded.":"A maximum of 50 IP address can be manually excluded.","IVT A/B Testing":"IVT A/B Testing","IVT rate":"IVT rate",Control:"Control",Exposed:"Exposed","% Difference in IVT rate":"% Difference in IVT rate","Average IVT rates for A/B Testing":"Average IVT rates for A/B Testing","Exposed Group":"Exposed Group","Control Group":"Control Group","This tool only works when your script contains {lpurl}":"This tool only works when your script contains {lpurl}","A maximum of 50 IP addresses can be manually excluded.":"A maximum of 50 IP addresses can be manually excluded.","This tool cannot currently be use with {unescapedlpurl}":"This tool cannot currently be use with {unescapedlpurl}","Threat Control":"Threat Control","Adjust the level of risk your traffic will be protected from.":"Adjust the level of risk your traffic will be protected from.","Monitoring Sensitivity":"Monitoring Sensitivity","Select the appropriate level of detection for your account":"Select the appropriate level of detection for your account",Low:"Low","More relaxed categorization of sources":"More relaxed categorization of sources",Medium:"Medium","IVT Risk Sensitivity":"IVT Risk Sensitivity","Default setting":"Default setting",High:"High","More str
2ict with sources and clicks":"More strict with sources and clicks","Note:":"Note:","Protection Sensitivity":"Protection Sensitivity","Select the appropriate level of protection for your account":"Select the appropriate level of protection for your account","More risky IPs may be allowed through":"More risky IPs may be allowed through","Blocks anything suspicious":"Blocks anything suspicious","Are you sure you want to change the monitoring sensitivity?":"Are you sure you want to change the monitoring sensitivity?","Are you sure you want to change the protection sensitivity?":"Are you sure you want to change the protection sensitivity?","Avg. IVT rate for the time period (workspace)":"Avg. IVT rate for the time period (workspace)","Average IVT difference":"Average IVT difference","% Difference in IVT":"% Difference in IVT","Try changing the date range to get more data.":"Try changing the date range to get more data.","Timezone:":"Timezone:","Group By":"Group By","Prev Invalid %":"Prev Invalid %","Invalid Change %":"Invalid Change %","SIVT Clicks %":"SIVT Clicks %",Sampled:"Sampled","Show Sampled":"Show Sampled","Show Non Sampled":"Show Non Sampled","Non Sampled":"Non Sampled","Select camapign type":"Select camapign type","Select keyword type":"Select keyword type","Select match type":"Select match type",Features:"Features","Activate new features on your Lunio account.":"Activate new features on your Lunio account.",Value:"Value","Demand Gen":"Demand Gen",Local:"Local","Local Services":"Local Services",Travel:"Travel","Placement Type":"Placement Type","IP Exclusions":"IP Exclusions","Track & audit IP exclusions across your campaigns":"Track & audit IP exclusions across your campaigns","Mobile App":"Mobile App","Placement Exclusions":"Placement Exclusions","Placements excluded on your account":"Placements excluded on your account","Add some placement exclusions to see them appear here.":"Add some placement exclusions to see them appear here.","IVT %":"IVT %","Hide Google IVT":"Hide Google IVT","Google Invalid Clicks":"Google Invalid Clicks","Google Invalid Clicks %":"Google Invalid Clicks %","Multi Channel":"Multi Channel","Delete Workspace":"Delete Workspace","Are you sure about this?":"Are you sure about this?","Are you sure you want to delete this workspace. Be aware that to delete a workspace":"Are you sure you want to delete this workspace. Be aware that to delete a workspace","Are you sure you want to delete this workspace. Be aware that to delete a workspace, you must first remove accounts, platforms and users from it.":"Are you sure you want to delete this workspace. Be aware that to delete a workspace, you must first remove accounts, platforms and users from it.","Insights into invalid traffic i
2dentified by Lunio":"Insights into invalid traffic identified by Lunio",GIVT:"GIVT","total items":"total items","Spend Tracker":"Spend Tracker","For accurate conversion tracking":"For accurate conversion tracking","For accurate conversion tracking, use either a tracking script via a tag manager like Google Tag Manager or the conversion API to send events from your server. Both work across any website or landing page you want to protect.":"For accurate conversion tracking, use either a tracking script via a tag manager like Google Tag Manager or the conversion API to send events from your server. Both work across any website or landing page you want to protect.","Create Conversion":"Create Conversion","Conversion API":"Conversion API","Send conversion events directly from your server using Lunioâs Conversion API. View the developer documentation here. Find out more information here.":"Send conversion events directly from your server using Lunioâs Conversion API. View the developer documentation here. Find out more information here.","Conversion API Token":"Conversion API Token","Copy Conversion API Token":"Copy Conversion API Token","Send conversion events directly from your server using Lunioâs Conversion API. View the developer documentation":"Send conversion events directly from your server using Lunioâs Conversion API. View the developer documentation","Find out more information here.":"Find out more information here.","Find out more information":"Find out more information","API Key copied to clipboard.":"API Key copied to clipboard.","Parameter (optional)":"Parameter (optional)","A parameter is a custom data value you enable to capture additional details about the conversion event":"A parameter is a custom data value you enable to capture additional details about the conversion event",Apply:"Apply","Invalid date format":"Invalid date format","Whitelist IPs that will never be blocked by our system":"Whitelist IPs that will never be blocked by our system","Please add some platforms to this workspace":"Please add some platforms to this workspace","Please speak to an admin user to add platforms to this workspace":"Please speak to an admin user to add platforms to this workspace","Affiliate Analytics":"Affiliate Analytics",Affiliates:"Affiliates","Explore all your active affiliates that received clicks during this period":"Explore all your active affiliates that received clicks during this period","Export Affiliates":"Export Affiliates","Export your affiliate data to a CSV file":"Export your affiliate data to a CSV file","Affiliate Name":"Affiliate Name",Affiliate:"Affiliate","Affiliate Stats":"Affiliate Stats","Please enter a valid Campaign ID":"Please enter a valid Campaign ID","Please wait for the previous test to complete":"Please wait for the previous test to complete","Test ran successfully!":"Test ran successfully!","Google Tracking Template Validator":"Google Tracking Template Validator","Search for a Campaign ID to view its tracking template....":"Search for a Campaign ID to view its tracking template....","Search Campaign ID":"Search Campaign ID",Level:"Level",Test:"Test","Showing :length of :total Accounts":"Showing :length of :total Accounts","Filtering by all Accounts":"Filtering by all Accounts","Lunio Account":"Lunio Account","Ad stats":"Ad stats","Campaign Stats":"Campaign Stats","Detailed statistics of your campaigns":"Detailed statistics of your campaigns","Detailed statistics for your campaigns":"Detailed statistics for your campaigns",Regions:"Regions","Add this IP to your exclusion list":"Add this IP to your exclusion list","this report was deleted on :date'":"this report was deleted on :date'","This workspace was deleted on :date'":"This workspace was deleted on :date'","This workspace was deleted on :date":"This workspace was deleted on :date","This report was deleted on :date":"This report was deleted on :date","Affiliate Fraud Dashboard":"Affiliate Fraud Dashboard","Monitor and analyse affiliate traffic quality":"Monitor and analyze affiliate traffic quality","Affiliate Metrics Summary":"Affiliate Metrics Summary","Key Metrics":"Key Metrics","Reallocated budget":"Reallocated budget","Avg IVT%":"Avg IVT%","IVT Classifications":"IVT Classifications","Partners by IVT%":"Partners by IVT%","Daily IVT":"Daily IVT","Refresh Google Ads data":"Refresh Google Ads data","Your Google token is invali
2d. Please reconnect your Google account.":"Your Google token is invalid. Please reconnect your Google account.","This report was deleted on :date'":"This report was deleted on :date'","This token is depreciated and all of its customers and campaigns have been removed. Next thing to do is delete it":"This token is depreciated and all of its customers and campaigns have been removed. Next thing to do is delete it","This token is depreciated and all of its customers and campaigns have been removed. Next thing to do is delete it.":"This token is depreciated and all of its customers and campaigns have been removed. Next thing to do is delete it.","Delete this deprecate token":"Delete this deprecate token","This token is no longer active and all linked customers and campaigns have been removed. You can now delete the token.":"This token is no longer active and all linked customers and campaigns have been removed. You can now delete the token.","Could not find any tracking templates":"Could not find any tracking templates","Copied to clipboard :value":"Copied to clipboard :value","Updated By":"Updated By","Campaign Metrics":"Campaign Metrics","% Invalid Clicks":"% Invalid Clicks","Set Geo Targeting to USA Sates":"Set Geo Targeting to USA Sates","Top 5 Partners by IVT%":"Top 5 Partners by IVT%","Hereâs an overview of your campaigns performance":"Hereâs an overview of your campaigns performance",Vs:"Vs",to:"to","Google Audit Trail":"Google Audit Trail","Click Locations":"Click Locations","No location data available for this IP address":"No location data available for this IP address","try a different IP address":"try a different IP address","No data available for this IP address":"No data available for this IP address","Invalid Clicks Summary":"Invalid Clicks Summary","Google Clicks Summary":"Google Clicks Summary","Protected - Your campaign is actively protected against invalid traffic.":"Protected - Your campaign is actively protected against invalid traffic.","Monitored - Your campaign is being monitored for invalid traffic.":"Monitored - Your campaign is being monitored for invalid traffic.","Disabled - Your campaign is not protected or monitored for invalid traffic.":"Disabled - Your campaign is not protected or monitored for invalid traffic.","UTC Timezone":"UTC Timezone",WAF:"WAF","Proxy Requests":"Proxy Requests","Geo Masking":"Geo Masking",Crawler:"Crawler","Duplicate Fingerprint":"Duplicate Fingerprint",Emulator:"Emulator","Total Sources":"Total Sources","Click Percentage":"Click Percentage","Click Count":"Click Count",Totals:"Totals","Welcome to your :workspace :isAllWorkspaces'":"Welcome to your :workspace :isAllWorkspaces'",workspace:"workspace","Welcome to your :workspace :isAllWorkspaces":"Welcome to your :workspace :isAllWorkspaces",dashboard:"dashboard","View detailed information about IP addresses interacting with your ads.":"View detailed information about IP addresses interacting with your ads.","View the total ad spend protected by Lunio across all your connected Google accounts.":"View the total ad spend protected by Lunio across all your connected Google accounts.","Script Debugging":"Script Debugging","Check if Lunio scripts are installed and working correctly on any URL.":"Check if Lunio scripts are installed and working correctly on any URL.","What is GIVT?":"What is GIVT?","Lunio now surfaces General Invalid Traffic (GIVT)":"Lunio now surfaces General Invalid Traffic (GIVT)","Lunio now surfaces General Invalid Traffic (GIVT) â including duplicate clicks, known crawlers, and simple bots â in a separate column. These low-risk clicks are typically filtered by ad platforms and not billed. The âInvalid Clicksâ metric excludes GIVT, offering clearer insight into more advanced threats Lunio blocks.":"Lunio now surfaces General Invalid Traffic (GIVT) â including duplicate clicks, known crawlers, and simple bots â in a separate column. These low-risk clicks are typically filtered by ad platforms and not billed. The âInvalid Clicksâ metric excludes GIVT, offering clearer insight into more advanced threats Lunio blocks.","This metric shows the total cost of ad spend attributed to traffic from invalid sources over the selected date range. Invalid sources may include bots":"This metric shows the total cost of ad spend attributed to traffic from invalid sources over the selected date range. Invalid sources may include bots","This metric shows the total cost of ad spend attributed to traffic from invalid sources over the selected date range. Invalid sources may include bots, fraudulent clicks, or any traffic that does not meet quality standards. Monitoring this metric helps in identifying and mitigating ad fraud, ensuring that your advertising budget is spent effectively on genuine user engagement."
2:"This metric shows the total cost of ad spend attributed to traffic from invalid sources over the selected date range. Invalid sources may include bots, fraudulent clicks, or any traffic that does not meet quality standards. Monitoring this metric helps in identifying and mitigating ad fraud, ensuring that your advertising budget is spent effectively on genuine user engagement.","All statuses were successfully updated for all Accounts and their Campaigns":"All statuses were successfully updated for all Accounts and their Campaigns","All Campaigns statuses were successfully updated":"All Campaigns statuses were successfully updated","Key Metrics Summary":"Key Metrics Summary","All Platforms":"All Platforms","language(item.name)":"language(item.name)","`Affiliate Analytics":"`Affiliate Analytics","Add Redirect URL":"Add Redirect URL","Redirect URL":"Redirect URL","IVT Summary":"IVT Summary","View a summary of your invalid traffic metrics":"View a summary of your invalid traffic metrics","Conversion Analytics":"Conversion Analytics","Total Conversions":"Total Conversions","Invalid Conversions":"Invalid Conversions","Click Farms":"Click Farms","Conversion Threshold":"Conversion Threshold","Bot Traffic":"Bot Traffic",Emulators:"Emulators",VPN:"VPN","Monitor and analyse affiliate conversion quality":"Monitor and analyze affiliate conversion quality","Affiliate Network Conversion Analytics":"Affiliate Network Conversion Analytics","Monitor affiliate conversion quality across all of your networks":"Monitor affiliate conversion quality across all of your networks","IVT%":"IVT%","Top Reasons":"Top Reasons",Networks:"Networks",Partners:"Partners","Affiliate Partners Conversion Analytics":"Affiliate Partners Conversion Analytics","Monitor affiliate conversion quality across all of your partners":"Monitor affiliate conversion quality across all of your partners","Affiliate Campaigns Conversion Analytics":"Affiliate Campaigns Conversion Analytics","Monitor affiliate conversion quality across all of your campaigns":"Monitor affiliate conversion quality across all of your campaigns",":network Summary":":network Summary",":network Overview":":network Overview",Partner:"Partner","Fraud Classification":"Fraud Classification","Est. Re-allocated Budget":"Est. Re-allocated Budget","Cost of Invalid Sources":"Cost of Invalid Sources",unassigned:"unassigned","Conversion Hijacking":"Conversion Hijacking","Cookie Stuffing":"Cookie Stuffing","Here you can see your user details and manage settings for your user account.":"Here you can see your user details and manage settings for your user account.",":network Overview'":":network Overview'",":network Summary'":":network Summary'","Fraud Types":"Fraud Types","An overview of how your campaign performed":"An overview of how your campaign performed","Monitor conversions across all of your Networks":"Monitor conversions across all of your Networks","Monitor conversions across all of your Networks, Partners and Campaigns":"Monitor conversions across all of your Networks, Partners and Campaigns","Release Notes":"Release Notes",":campaign Summary":":campaign Summary",":campaign Overview":":campaign Overview","Fraud Type":"Fraud Type",":partner Overview":":partner Overview",":partner Summary":":partner Summary","Proxy Requests / VPN":"Proxy Requests / VPN","Device Anomaly":"Device Anomaly","Platforms and Scripts":"Platforms and Scripts","Monitor the status of your platforms, tokens and scripts.":"Monitor the status of your platforms, tokens and scripts.","Platform Integrations":"Platform Integrations","Connection status for advertising platforms":"Connection status for advertising platforms","Google Ads":"Google Ads","Sync to update the dashboard with the latest data from your Google Ads accounts and campaigns.":"Sync to update the dashboard with the latest data from your Google Ads accounts and campaigns.","Clicks coming through:":"Clicks coming through:","Script & Tracking":"Script & Tracking","Monitor script installation and tracking implementation":"Monitor script installation and tracking implementation","Conversion Script":"Conversion Script","Tracking all conversions":"Tracking all conversions",":platform Audit Trail":":platform Audit Trail","Affiliate Network Analytics":"Affiliate Network Analytics","Monitor affiliate traffic quality across all of your networks":"Monitor affiliate traffic quality across all of your networks","Affiliate Partners Analytics":"Affiliate Partners Analytics","Monitor affiliate traffic quality across all of your partners":"Monitor affiliate traffic quality across all of your partners","Affiliate Campaigns Analytics":"Affiliate Campaigns Analytics","Monitor affiliate traffic quality across all of your campaigns":"Monitor affiliate traffic quality across all of your campaigns","language(value)":"language(value)",":platform Audit Trail'":":platform Audit Trail'","Are you sure you want to force delete this token?":"Are you sure you want to force delete this token?",":campaign Overview'":":campaign Overview'",":partner Overview'":":partner Overview'",":campaign Summary'":":campaign Summary'",":partner Summary'":":partner Summary'","language(affiliateLabels[row?.fraud_type])":"language(affiliateLabels[row?.fraud_type])","Delete token":"Delete token","Force delete token":"Force delete token","Deprecate Token":"Deprecate Token","Monitor across all of your Networks":"Monitor across all of your Networks","Monitor across all of your Networks, Partners and Campaigns":"Monitor across all of your Networks, Partners and Campaigns","Monitor the status of your platforms":"Monitor the status of your platforms","Exports the table on this page with the applied filters and selected date range as a CSV File.":"Exports the table on this page with the applied filters and selected date range as a CSV File.","language(getAffiliateLabels('analytics":"language(getAffiliateLabels('analytics","Affiliate Analytics Fraud Types Export":"Affiliate Analytics Fraud Types Export",Exporting:"Exporting","Campaign name starts with:":"Campaign name starts with:","Network name starts with:":"Network name starts with:","Partner name starts with:":"Partner name starts with:","Campaign:":"Campaign:","Network:":"Network:","Partner:":"Partner:","Affiliate Conversions Fraud Types Export":"Affiliate Conversions Fraud Types Export","Affiliate Analytics Export":"Affiliate Analytics Export","Affiliate Conversions Export":"Affiliate Conversions Export","Search Equals":"Search Equals","Must be a valid domain":"Must be a valid domain","Must be a valid Android mobile app bundle ID":"Must be a valid Android mobile app bundle ID","Must be a valid Apple Store Connect App ID":"Must be a valid Apple Store Connect App ID","Your placement block has been placed in a queue for processing and will be added within the next few minutes":"Your placement block has been placed in a queue for processing and will be added within the next few minutes","Manually add this Placement to the exclusion list":"Manually add this Placement to the exclusion list","Enter Domain or Subdomain":"Enter Domain or Subdomain","Enter Apple Store Connect App ID":"Enter Apple Store Connect App ID","Enter Android Bundle ID":"Enter Android Bundle ID","Add Placement":"Add Placement","Add Placement Exclusions":"Add Placement Exclusions","iPhone app":"iPhone app","Android app":"Android app","Lunio applies a maximum of 65":"Lunio applies a maximum of 65","Apply Exclusion":"Apply Exclusion","Google allows a maximum of 65,000 Placement Exclusions at Account Level. Manually adding placements may remove placements added by Lunio.":"Google allows a maximum of 65,000 Placement Exclusions at Account Level. Manually adding placements may remove placements added by Lunio.","Placement statuses were queued for processing and will be updated within the next few minutes":"Placement statuses were queued for processing and will be updated within the next few minutes","Placement status update failed to process":"Placement status update failed to process","Change Status":"Change Status","Confirm Placement Exclusions Status Change":"Confirm Placement Exclusions Status Change","Are you sure you want to set the :selectionCount selected Placement :ExclusionPlural to :status'":"Are you sure you want to set the :selectionCount selected Placement :ExclusionPlural to :status'",Exclusion:"Exclusion","Are you sure you want to set the :selectionCount selected Placement :ExclusionPlural to :status":"Are you sure you want to set the :selectionCount selected Placement :ExclusionPlural to :status","Redirect URL must be a valid URL":"Redirect URL must be a valid URL","Click Capping Redirection URL cannot be blank":"Click Capping Redirection URL cannot be blank","Click Capping Redirection URL must be a valid URL":"Click Capping Redirection URL must be a valid URL",Configuration:"Configuration","Click Capping":"Click Capping","Limit the number of clicks from a single user.":"Limit the number of clicks from a single user.","Users are limited to :n :clicksPlural per 24 hours'":"Users are limited to :n :clicksPlural per 24 hours'",click:"click","Click Capping Redirection URL":"Click Capping Redirection URL","Users are limited to :n :clicksPlural per 24 hours":"Users are limited to :n :clicksPlural per 24 hours","Define where users who exceed click cap should be redirected to.":"Define where users who exceed click cap should be redirected to.","Users are limited to :n :clicksPlural per 24 hour":"Users are limited to :n :clicksPlural per 24 hour",clicks:"clicks","Campaign Name or ID":"Campaign Name or ID","Starts Equals":"Starts Equals",Equals:"Equals","Meta Tokens":"Meta Tokens","Meta Token Settings":"Meta Token Settings","Add or manage your Meta tokens":"Add or manage your Meta tokens","No tokens here yet":"No tokens here yet","Add New Meta Token":"Add New Meta Token","We will flag when users attempt more than :n :conversionsPlural per 24 hours":"We will flag when users attempt more than :n :conversionsPlural per 24 hours","That ISP has been added already":"That ISP has been added already","The ISP you are trying to add must be a valid name":"The ISP you are trying to add must be a valid name","You can only add up to 40 IPS records":"You can only add up to 40 IPS records",conversion:"conversion",Blocklists:"Blocklists","Add ISP":"Add ISP","Type ISP here":"Type ISP here","Type a valid ISP into the input then click Add ISP.":"Type a valid ISP into the input then click Add ISP.","Device ISP":"Device ISP","Remove ISP URL":"Remove ISP URL","Remove ISP":"Remove ISP",conversions:"conversions","We will flag when users attempt more than :n :conversionsPlural per 24 hours'":"We will flag when users attempt more than :n :conversionsPlural per 24 hours'","Click Capping Input":"Click Capping Input","You can only add up to 40 ISP records":"You can only add up to 40 ISP records","Meta connection was successful":"Meta connection was successful","Lunio has requested your data from Meta, it will arrive shortly. When the status says âActiveâ, your data has been pulled through.":"Lunio has requested your data from Meta, it will arrive shortly. When the status says âActiveâ, your data has been pulled through.","Meta connection was unsuccessful":"Meta connection was unsuccessful","Meta Audit Trail":"Meta Audit Trail",True:"True",False:"False","language(option.label)":"language(option.label)","Lunio has requested your data from Meta":"Lunio has requested your data from Meta","Click Capped":"Click Capped","Conversion Capped":"Conversion Capped","Excluded ISP":"Excluded ISP","Affiliate IVT Alert":"Affiliate IVT Alert","Select Report Type":"Select Report Type","Insights & Recommendations":"Insights & Recommendations","Insights and actionable guidance to improve performance and reduce invalid traffic":"Insights and actionable guidance to improve performance and reduce invalid traffic","No Insights & Recommendations":"No Insights & Recommendations","There are currently no insights or recommendations available for your account. Please check back later.":"There are currently no insights or recommendations available for your account. Please check back later.",Dismiss:"Dismiss",ago:"ago","Failed to dismiss recommendation":"Failed to dismiss recommendation","Failed to action recommendation":"Failed to action recommendation",":type was dismissed successfully":":type was dismissed successfully","Show less":"Show less","Read more...":"Read more...",":type was actioned
2successfully and may take a few minutes to complete":":type was actioned successfully and may take a few minutes to complete",":type was dismissed successfully'":":type was dismissed successfully'",":type was actioned successfully and may take a few minutes to complete'":":type was actioned successfully and may take a few minutes to complete'","Connect your Meta account to start managing your Meta protection.":"Connect your Meta account to start managing your Meta protection.",Occurrences:"Occurrences","View Guide":"View Guide",Recommendations:"Recommendations","Insights and actionable guidance to improve configuration":"Insights and actionable guidance to improve configuration","Insights and actionable guidance to improve configuration, performance and reduce invalid traffic":"Insights and actionable guidance to improve configuration, performance and reduce invalid traffic","Expires At":"Expires At","The Report was deleted":"The Report was deleted","Affiliate Fraud Summary":"Affiliate Fraud Summary","Conversion Analytics Summary":"Conversion Analytics Summary","Invalid Conversion Rate":"Invalid Conversion Rate","Invalid Conversion Rate%":"Invalid Conversion Rate%","Suspicious Conversions":"Suspicious Conversions","Partners With Highest Invalid Conversions":"Partners With Highest Invalid Conversions","Partners With Highest Invalid Conversion Rate":"Partners With Highest Invalid Conversion Rate","Firewall detection of automated traffic that mimics real users to generate fake traffic.":"Firewall detection of automated traffic that mimics real users to generate fake traffic.","Masking IP addresses to hide the real source of traffic":"Masking IP addresses to hide the real source of traffic","Hiding the real location to appear as if itâs coming from a different country":"Hiding the real location to appear as if itâs coming from a different country","An automated program that systematically browses websites by making requests to URLs":"An automated program that systematically browses websites by making requests to URLs","Blocks duplicate traffic when the same device/browser fingerprint repeats.":"Blocks duplicate traffic when the same device/browser fingerprint repeats.","Programs pretending to be real devices or users to create fake traffic.":"Programs pretending to be real devices or users to create fake traffic.","Fake device models":"Fake device models","Dropping affiliate cookies without user interaction to steal attribution.":"Dropping affiliate cookies without user interaction to steal attribution.","Stealing attribution by injecting fake clicks just before conversion.":"Stealing attribution by injecting fake clicks just before conversion.","Identify unusually high click activity from a single user in a day.":"Identify unusually high click activity from a single user in a day.","Identify unusually high conversion activity from a single user in a day.":"Identify unusually high conversion activity from a single user in a day.","When an ISP is known to be problematic":"When an ISP is known to be problematic","Hiding the real location to appear as if itâs coming from a different country, region, or city.":"Hiding the real location to appear as if itâs coming from a different country, region, or city.","An automated program that systematically browses websites by making requests to URLs, usually without human interaction.":"An automated program that systematically browses websites by making requests to URLs, usually without human interaction.","Fake device models, or suspicious patterns.":"Fake device models, or suspicious patterns.","When an ISP is known to be problematic, you can add the ISP into the affiliate configuration to flag it in the affiliate reporting.":"When an ISP is known to be problematic, you can add the ISP into the affiliate configuration to flag it in the affiliate reporting.","Masking IP addresses to hide the real source of traffic.":"Masking IP addresses to hide the real source of traffic.","Campaign Type | Effective Status":"Campaign Type | Effective Status",eCPC:"eCPC","Cost Model":"Cost Model","Avg. Cost":"Avg. Cost","Adjusted Spend":"Adjusted Spend","User Email"
2:"User Email","Protection Change Log Export":"Protection Change Log Export","Export protection change events to a CSV file":"Export protection change events to a CSV file","Protection Change Log":"Protection Change Log","View details of changes made to Google Account and Campaign protection statuses.":"View details of changes made to Google Account and Campaign protection statuses.","Accounts Filter":"Accounts Filter","Change Date":"Change Date","account selected":"account selected","accounts selected":"accounts selected","Account Name or ID Contains":"Account Name or ID Contains","User Name":"User Name","Campaign Name or ID Contains":"Campaign Name or ID Contains","Impersonated By":"Impersonated By","User Email Contains":"User Email Contains","The Change Log is only available for Google accounts. Please switch to the Google platform to see the page.":"The Change Log is only available for Google accounts. Please switch to the Google platform to see the page.","Ad Sets":"Ad Sets","Explore all your active Ad sets that received clicks during this period":"Explore all your active Ad sets that received clicks during this period","Ad set Name":"Ad set Name",CTR:"CTR","Explore all your active Ad Sets that received clicks during this period":"Explore all your active Ad Sets that received clicks during this period","Google Token Authentication Error":"Google Token Authentication Error","Multiplatform Script Issue":"Multiplatform Script Issue","Conversion Script Issue":"Conversion Script Issue","New Placements Detected":"New Placements Detected","Data Health":"Data Health",Tracking:"Tracking","Coverage Protection":"Coverage Protection","Critical Issues":"Critical Issues","High Priority":"High Priority","Medium Priority":"Medium Priority","Low Priority":"Low Priority",Optimization:"Optimization",Informational:"Informational","All Types":"All Types",Severity:"Severity","All Severities":"All Severities","language(string":"language(string","Total Metrics":"Total Metrics",Generated:"Generated",Interacted:"Interacted",Resolved:"Resolved",Dismissed:"Dismissed","Status Breakdown":"Status Breakdown","hello we have :val1 apples and :val2 oranges":"hello we have :val1 apples and :val2 oranges","Brand Bidding":"Brand Bidding","Branded Bidding Configuration":"Branded Bidding Configuration","The base configuration for your branded keywords":"The base configuration for your branded keywords","Ad Set Name":"Ad Set Name","Lunio has not applied any IP exclusions in the last 24 hours for the campaigns listed below, despite traffic being detected and protection being enabled.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf exclusions are not being applied as expected, protection effectiveness may be reduced.**newline**newlineAffected campaigns:**newline**newline:campaigns":"Lunio has not applied any IP exclusions in the last 24 hours for the campaigns listed below, despite traffic being detected and protection being enabled.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf exclusions are not being applied as expected, protection effectiveness may be reduced.**newline**newlineAffected campaigns:**newline**newline:campaigns","Missing Campaign IP Exclusions":"Missing Campaign IP Exclusions","Drop in Campaign Click Amount":"Drop in Campaign Click Amount","Drop in Campaign Activity Amount":"Drop in Campaign Activity Amount","Missing Conversions With Tracking Detected":"Missing Conversions With Tracking Detected","Missing Multiplatform Script":"Missing Multiplatform Script","Drop in Campaigns IVT Amount":"Drop in Campaigns IVT Amount","Missing Campaign Google Tracking Script":"Missing Campaign Google Tracking Script","Clicks for the campaigns listed below have decreased by more than 80% compared to the previous 7-day period.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, review recent campaign updates and connection status.**newline**newlineAffected campaigns:**newline**newline:campaigns":"Clicks for the campaigns listed below have decreased by more than 80% compared to the previous 7-day period.**newline**ne
2wlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, review recent campaign updates and connection status.**newline**newlineAffected campaigns:**newline**newline:campaigns","The number of active campaigns has decreased by more than 25% compared to the previous 7-day period.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, recent campaign updates and connection status should be reviewed.**newline**newlineAffected campaigns:**newline**newline:campaigns":"The number of active campaigns has decreased by more than 25% compared to the previous 7-day period.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, recent campaign updates and connection status should be reviewed.**newline**newlineAffected campaigns:**newline**newline:campaigns","The conversion actions listed below are configured, but no conversion events have been detected in the last 5 days despite traffic being present.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf conversions are expected, please verify that your conversion script or API is correctly implemented and firing.**newline**newlineYou can review your configuration in Settings > Integrations > Conversions.**newline**newlineAffected conversion actions:**newline**newline:configurations":"The conversion actions listed below are configured, but no conversion events have been detected in the last 5 days despite traffic being present.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf conversions are expected, please verify that your conversion script or API is correctly implemented and firing.**newline**newlineYou can review your configuration in Settings > Integrations > Conversions.**newline**newlineAffected conversion actions:**newline**newline:configurations","Lunio has not detected multiplatform script activity in the last 7 days for the domains listed below.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineWithout an active script, traffic from supported platforms cannot be monitored or protected effectively.**newline**newlinePlease review your script implementation.**newline**newlineAffected domains:**newline**newline:domains":"Lunio has not detected multiplatform script activity in the last 7 days for the domains listed below.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineWithout an active script, traffic from supported platforms cannot be monitored or protected effectively.**newline**newlinePlease review your script implementation.**newline**newlineAffected domains:**newline**newline:domains","Detected invalid traffic has decreased by more than 10% for the campaigns listed below, while overall traffic levels remain stable.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, recent updates to configuration or integrations should be reviewed.**newline**newlineAffected campaigns:**newline**newline:campaigns":"Detected invalid traffic has decreased by more than 10% for the campaigns listed below, while overall traffic levels remain stable.**newline**newlineThis may indicate:**newline**newline:static_bulletpoint_list_1**newline**newlineIf this change was not expected, recent updates to configuration or integrations should be reviewed.**newline**newlineAffected campaigns:**newline**newline:campaigns","Lunio has not detected the required tracking template or script for the campaigns listed below.**newline**newlineWithout valid tracking data:**newline**newline:static_bulletpoint_list_1**newline**newlinePlease review your tracking configuration to ensure the required tracking template or script is correctly applied at either account or campaign level.**newline**newlineAffected campaigns:**newline**newline:campaigns":"Lunio has not detected the required tracking template or script for the campaigns listed below.**newline**ne
2wlineWithout valid tracking data:**newline**newline:static_bulletpoint_list_1**newline**newlinePlease review your tracking configuration to ensure the required tracking template or script is correctly applied at either account or campaign level.**newline**newlineAffected campaigns:**newline**newline:campaigns",Optimisation:"Optimization","Lunio has not detected any clicks from :Platform in the last 7 days. This usually indicates that the multiplatform script is not installed, not loading correctly, or not fully configured for this platform. Review your multi-platform script setup for :Platform to ensure it is correctly implemented and active.":"Lunio has not detected any clicks from :Platform in the last 7 days. This usually indicates that the multiplatform script is not installed, not loading correctly, or not fully configured for this platform. Review your multi-platform script setup for :Platform to ensure it is correctly implemented and active.","Data Explorer":"Data Explorer","Show recommendations that are only visible to Lunio staff":"Show recommendations that are only visible to Lunio staff","Show Internal Recommendations":"Show Internal Recommendations","Brand Protection Overview":"Brand Protection Overview","Monitor ads appearing on your branded search terms":"Monitor ads appearing on your branded search terms","Advertiser Insights":"Advertiser Insights",Advertisers:"Advertisers","Higher invalid traffic detected during specific hours":"Higher invalid traffic detected during specific hours","Higher invalid traffic detected from Search Partners":"Higher invalid traffic detected from Search Partners","Placements generating higher invalid traffic detected":"Placements generating higher invalid traffic detected","Higher invalid traffic detected on specific devices":"Higher invalid traffic detected on specific devices","Keywords generating higher invalid traffic detected":"Keywords generating higher invalid traffic detected","Higher invalid traffic detected on specific channels":"Higher invalid traffic detected on specific channels","Higher invalid traffic detected from specific countries":"Higher invalid traffic detected from specific countries","Ad groups generating higher invalid traffic detected":"Ad groups generating higher invalid traffic detected","Broad match keywords generating higher invalid traffic":"Broad match keywords generating higher invalid traffic","Short keywords generating higher invalid traffic":"Short keywords generating higher invalid traffic","Campaigns generating higher invalid traffic detected":"Campaigns generating higher invalid traffic detected","Campaign type is generating higher invalid traffic":"Campaign type is generating higher invalid traffic","Invalid traffic concentrated in a small number of campaigns":"Invalid traffic concentrated in a small number of campaigns","Invalid traffic concentrated in a small number of keywords":"Invalid traffic concentrated in a small number of keywords","Unusually high conversion rate detected":"Unusually high conversion rate detected","Drop in conversion rate detected":"Drop in conversion rate detected","Meta integration not configured":"Meta integration not configured","Required parameters missing from Meta traffic":"Required parameters missing from Meta traffic","Incorrect parameter values detected":"Incorrect parameter values detected","Platform tracking parameter missing":"Platform tracking parameter missing","Incorrect platform parameter values detected":"Incorrect platform parameter values detected","Higher invalid traffic detected during specific hours of the day.":"Higher invalid traffic detected during specific hours of the day.","Higher invalid traffic detected from Search Partners.":"Higher invalid traffic detected from Search Partners.","Placements generating higher invalid traffic detected.":"Placements generating higher invalid traffic detected.","Higher invalid traffic detected on specific device types.":"Higher invalid traffic detected on specific device types.","Keywords generating higher invalid traffic detected.":"Keywords generating higher invalid traffic detected.","Higher invalid traffic detected on specific channels.":"Higher invalid traffic detected on specific channels.","Higher invalid traffic detected from specific countries.":"Higher invalid traffic detected from specific countries.","Ad groups generating higher invalid traffic detected.":"Ad groups generating higher invalid traffic detected.","Broad match keywords generating higher invalid traffic.":"Broad match keywords generating higher invalid traffic.","Short or generic keywords generating higher invalid traffic.":"Short or generic keywords generating higher invalid traffic.","Campaigns generating higher invalid traffic detected.":"Campaigns generating higher invalid traffic detected.","A campaign type is generating higher invalid traffic.":"A campaign type is generating higher invalid traffic.","Invalid traffic concentrated in a small number of campaigns.":"Invalid traffic concentrated in a small number of campaigns.","Invalid traffic concentrated in a small number of keywords.":"Invalid traffic concentrated in a small number of keywords.","Unusually high conversion rate detected.":"Unusually high conversion rate detected.","Drop in conversion rate detected for a campaign.":"Drop in conversion rate detected for a campaign.","Meta integration not configured for this account.":"Meta integration not configured for this account.","Required parameters missing from Meta traffic.":"Required parameters missing from Meta traffic.","Incorrect parameter values detected for Meta integration.":"Incorrect parameter values detected for Meta integration.","Platform tracking parameter missing for detected platforms.":"Platform tracking parameter missing for detected platforms.","Incorrect platform parameter values detected.":"Incorrect platform parameter values detected.","Traffic during the hours listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**ne
2wlineAffected hours:**newline**newline:hours**newline**newlineReview your campaign ad scheduling and monitor delivery during these hours to reduce exposure to lower quality traffic.":"Traffic during the hours listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected hours:**newline**newline:hours**newline**newlineReview your campaign ad scheduling and monitor delivery during these hours to reduce exposure to lower quality traffic.","Traffic from the Search Partners listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to Google.com over the last :lookback_period.**newline**newlineAffected partners:**newline**newline:partners**newline**newlineReview your network settings and consider limiting exposure to these partners if traffic quality appears lower.":"Traffic from the Search Partners listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to Google.com over the last :lookback_period.**newline**newlineAffected partners:**newline**newline:partners**newline**newlineReview your network settings and consider limiting exposure to these partners if traffic quality appears lower.","The placements listed below are generating more than :ivt_deviation_threshold% higher invalid traffic compared to the campaign average over the last :lookback_period.**newline**newlineAffected placements:**newline**newline:placements**newline**newlineReview these placements and consider excluding them if the traffic appears low quality.":"The placements listed below are generating more than :ivt_deviation_threshold% higher invalid traffic compared to the campaign average over the last :lookback_period.**newline**newlineAffected placements:**newline**newline:placements**newline**newlineReview these placements and consider excluding them if the traffic appears low quality.","Traffic from the devices listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected devices:**newline**newline:devices**newline**newlineReview device performance and consider adjusting device targeting if appropriate.":"Traffic from the devices listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected devices:**newline**newline:devices**newline**newlineReview device performance and consider adjusting device targeting if appropriate.","The keywords listed below are generating more than :ivt_deviation_threshold% higher invalid traffic compared to other keywords in the campaign over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview these keywords and consider refining match types or adding negative keywords to reduce exposure to lower quality queries.":"The keywords listed below are generating more than :ivt_deviation_threshold% higher invalid traffic compared to other keywords in the campaign over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview these keywords and consider refining match types or adding negative keywords to reduce exposure to lower quality queries.","Traffic from the channels listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected channels:**newline**newline:channels**newline**newlineReview traffic from these channels and consider adjusting targeting or campaign configuration if appropriate.":"Traffic from the channels listed below has generated more than :ivt_deviation_threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected channels:**newline**newline:channels**newline**newlineReview traffic from these channels and consider adjusting targeting or campaign configuration if appropriate.","Traffic from the countries listed below has generated more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**ne
2wlineAffected countries:**newline**newline:countries**newline**newlineReview campaign geographic targeting and traffic sources associated with these locations to reduce exposure to lower quality traffic.":"Traffic from the countries listed below has generated more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected countries:**newline**newline:countries**newline**newlineReview campaign geographic targeting and traffic sources associated with these locations to reduce exposure to lower quality traffic.","The ad groups listed below are generating more than :threshold% higher invalid traffic compared to the campaign average over the last :lookback_period.**newline**newlineAffected ad groups:**newline**newline:ad_groups**newline**newlineReview keyword targeting and match types within these ad groups to identify potential sources of lower quality traffic.":"The ad groups listed below are generating more than :threshold% higher invalid traffic compared to the campaign average over the last :lookback_period.**newline**newlineAffected ad groups:**newline**newline:ad_groups**newline**newlineReview keyword targeting and match types within these ad groups to identify potential sources of lower quality traffic.","The broad match keywords listed below are generating more than :threshold% higher invalid traffic compared to other keywords in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview the keywords listed above and consider refining match types or adding negative keywords to reduce exposure to lower quality queries.":"The broad match keywords listed below are generating more than :threshold% higher invalid traffic compared to other keywords in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview the keywords listed above and consider refining match types or adding negative keywords to reduce exposure to lower quality queries.","The keywords listed below are short or highly generic and are generating more than :threshold% higher invalid traffic compared to other keywords in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineConsider refining these keywords with more specific variations or adjusting match types to reduce exposure to low intent traffic.":"The keywords listed below are short or highly generic and are generating more than :threshold% higher invalid traffic compared to other keywords in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineConsider refining these keywords with more specific variations or adjusting match types to reduce exposure to low intent traffic.","The campaigns listed below are generating more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview campaign targeting, placements and traffic sources. You may also want to review creative and messaging if these campaigns are attracting lower quality traffic.":"The campaigns listed below are generating more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview campaign targeting, placements and traffic sources. You may also want to review creative and messaging if these campaigns are attracting lower quality traffic.","The following :campaign_type campaigns are generating more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**newlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview targeting signals, placements and campaign configuration to identify potential sources of lower quality traffic.":"The following :campaign_type campaigns are generating more than :threshold% higher invalid traffic compared to your account average over the last :lookback_period.**newline**ne
2wlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview targeting signals, placements and campaign configuration to identify potential sources of lower quality traffic.","A small number of campaigns are responsible for more than :threshold% of the invalid traffic detected in your account over the last :lookback_period.**newline**newlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview these campaigns to identify targeting or inventory sources that may be driving the concentration of invalid traffic.":"A small number of campaigns are responsible for more than :threshold% of the invalid traffic detected in your account over the last :lookback_period.**newline**newlineAffected campaigns:**newline**newline:campaigns**newline**newlineReview these campaigns to identify targeting or inventory sources that may be driving the concentration of invalid traffic.","A small number of keywords are responsible for more than :threshold% of the invalid traffic detected in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview the keywords listed above and consider refining targeting or adding exclusions to reduce exposure to lower quality traffic.":"A small number of keywords are responsible for more than :threshold% of the invalid traffic detected in your account over the last :lookback_period.**newline**newlineAffected keywords:**newline**newline:keywords**newline**newlineReview the keywords listed above and consider refining targeting or adding exclusions to reduce exposure to lower quality traffic.","Your account has recorded a conversion rate of more than :conversion_rate_threshold% over the last :lookback_period, which is higher than expected.**newline**newlineThis may indicate that conversion tracking has not been setup correctly, for example on non-conversion pages or interactions (e.g., homepage, product pages, refund pages, amend booking pages, etc)**newline**newlineIf conversion tracking is misconfigured, this can lead to inaccurate reporting and negatively impact optimisation.**newline**newlineReview your conversion tracking setup and ensure it is only firing on valid conversion events (e.g. confirmation or thank you pages).":"Your account has recorded a conversion rate of more than :conversion_rate_threshold% over the last :lookback_period, which is higher than expected.**newline**newlineThis may indicate that conversion tracking has not been setup correctly, for example on non-conversion pages or interactions (e.g., homepage, product pages, refund pages, amend booking pages, etc)**newline**newlineIf conversion tracking is misconfigured, this can lead to inaccurate reporting and negatively impact optimization.**newline**newlineReview your conversion tracking setup and ensure it is only firing on valid conversion events (e.g. confirmation or thank you pages).","The conversion rate for :campaign_name has decreased by more than :conversion_rate_drop_threshold% compared to the previous :comparison_period, based on the last :lookback_period.**newline**newlineThis may indicate changes in traffic quality, campaign setup, landing page performance, or potential tracking issues.**newline**newlineReview recent changes to this campaign, including targeting, budget, landing pages, and conversion tracking, to identify potential causes of the decline.":"The conversion rate for :campaign_name has decreased by more than :conversion_rate_drop_threshold% compared to the previous :comparison_period, based on the last :lookback_period.**newline**newlineThis may indicate changes in traffic quality, campaign setup, landing page performance, or potential tracking issues.**newline**newlineReview recent changes to this campaign, including targeting, budget, landing pages, and conversion tracking, to identify potential causes of the decline.","Meta activity has been detected, but no Meta API token is currently configured for this account.**newline**newlineThis may prevent Lunio from accurately tracking and optimising traffic from Meta campaigns.**newline**ne
2wlineYou can configure your Meta integration in Settings > Integrations > Meta.**newline**newlineReview the integration setup and follow the documentation to connect your Meta account and configure URL parameters to enable tracking.":"Meta activity has been detected, but no Meta API token is currently configured for this account.**newline**newlineThis may prevent Lunio from accurately tracking and optimizing traffic from Meta campaigns.**newline**newlineYou can configure your Meta integration in Settings > Integrations > Meta.**newline**newlineReview the integration setup and follow the documentation to connect your Meta account and configure URL parameters to enable tracking.","One or more required parameters (ad_id, adset_id, campaign_id, placement_id, site_source_name) have not been detected in recent traffic.**newline**newlineThese parameters are required for accurate attribution, tracking and reporting.**newline**newlineIf parameters are missing, campaign performance and optimisation may be impacted.**newline**newlineReview your parameter setup and ensure all required parameters are correctly configured. Refer to the parameters documentation for guidance.":"One or more required parameters (ad_id, adset_id, campaign_id, placement_id, site_source_name) have not been detected in recent traffic.**newline**newlineThese parameters are required for accurate attribution, tracking and reporting.**newline**newlineIf parameters are missing, campaign performance and optimization may be impacted.**newline**newlineReview your parameter setup and ensure all required parameters are correctly configured. Refer to the parameters documentation for guidance.","One or more parameters are incorrectly mapped or contain unexpected values.**newline**newlineThis may result in inaccurate attribution and impact reporting and optimisation.**newline**newlineExamples may include parameters mapped to the wrong values or inconsistent formatting.**newline**newlineReview your parameter configuration and ensure each parameter is correctly mapped. Refer to the parameters documentation for guidance.":"One or more parameters are incorrectly mapped or contain unexpected values.**newline**newlineThis may result in inaccurate attribution and impact reporting and optimization.**newline**newlineExamples may include parameters mapped to the wrong values or inconsistent formatting.**newline**newlineReview your parameter configuration and ensure each parameter is correctly mapped. Refer to the parameters documentation for guidance.","Traffic from the following platforms has been detected without the required ppcp_platform parameter over the last :lookback_period:**newline**newlineAffected platforms:**newline**newline:platforms**newline**newlineThis parameter is required to correctly identify traffic sources and enable accurate attribution and optimisation.**newline**newlineReview your tracking setup and ensure the ppcp_platform parameter is appended to all URLs for the platforms listed above. Refer to the implementation guide for platform-specific instructions.":"Traffic from the following platforms has been detected without the required ppcp_platform parameter over the last :lookback_period:**newline**newlineAffected platforms:**newline**newline:platforms**newline**newlineThis parameter is required to correctly identify traffic sources and enable accurate attribution and optimization.**newline**newlineReview your tracking setup and ensure the ppcp_platform parameter is appended to all URLs for the platforms listed above. Refer to the implementation guide for platform-specific instructions.","The ppcp_platform parameter values for the following platforms are incorrectly configured or inconsistent with expected naming conventions over the last :lookback_period:**newline**newlineAffected platforms:**newline**newline:platforms**newline**newlineThis may result in incorrect traffic classification and impact reporting and optimisation.**newline**newlineReview your parameter configuration and ensure ppcp_platform values match the expected format for each platform (e.g. facebook, tiktok, google). Refer to the implementation guide for guidance.":"The ppcp_platform parameter values for the following platforms are incorrectly configured or inconsistent with expected naming conventions over the last :lookback_period:**newline**ne
2wlineAffected platforms:**newline**newline:platforms**newline**newlineThis may result in incorrect traffic classification and impact reporting and optimization.**newline**newlineReview your parameter configuration and ensure ppcp_platform values match the expected format for each platform (e.g. facebook, tiktok, google). Refer to the implementation guide for guidance.",Ad:"Ad","Ad Breakdown":"Ad Breakdown","Ad ID":"Ad ID","Ad Name":"Ad Name","Ad Set":"Ad Set","Ad Set Breakdown":"Ad Set Breakdown","Ad Set ID":"Ad Set ID","Audience Network":"Audience Network","Audience Network Classic":"Audience Network Classic","Audience Network Rewarded Video":"Audience Network Rewarded Video","Campaign Breakdown":"Campaign Breakdown","Clear all":"Clear all","Close Filter Panel":"Close Filter Panel","Configure your data export settings":"Configure your data export settings","CSV (Default)":"CSV (Default)","Export Data":"Export Data","Export Format":"Export Format",Facebook:"Facebook","Facebook Feed":"Facebook Feed","Facebook Instream":"Facebook Instream","Facebook Marketplace":"Facebook Marketplace","Facebook Right Column":"Facebook Right Column","ID Filter":"ID Filter",Imported:"Imported",Instagram:"Instagram","Instagram Feed":"Instagram Feed","Instagram Stories":"Instagram Stories","INVALID CLICKS":"INVALID CLICKS","is required.":"is required.","IVT RATE":"IVT RATE","LEGITIMATE CLICKS":"LEGITIMATE CLICKS",LEVEL:"LEVEL","Maximum length is :maxLength.":"Maximum length is :maxLength.",Messenger:"Messenger","Messenger Inbox":"Messenger Inbox","Messenger Sponsored Messages":"Messenger Sponsored Messages","Minimum length is :minLength.":"Minimum length is :minLength.","Must be a decimal number":"Must be a decimal number","must be a number.":"must be a number.","Must be a valid URL":"Must be a valid URL","must be at least :minLength characters.":"must be at least :minLength characters.","must be no more than :maxLength characters.":"must be no more than :maxLength characters.","must be text.":"must be text.","Must not be empty":"Must not be empty","Must not contain a valid IP address":"Must not contain a valid IP address","Not Applicable":"Not Applicable","Recipient Email":"Recipient Email","Show Filter Panel":"Show Filter Panel","Site Source Name":"Site Source Name","Stats Filter":"Stats Filter","This field is required.":"This field is required.","this report was deleted on :date":"this report was deleted on :date",Threads:"Threads","Threads Stream":"Threads Stream","Update Filters":"Update Filters","User Added":"User Added","Value must be a number.":"Value must be a number.","Value must be text.":"Value must be text.","vs prev period":"vs prev period","Your export will include all filtered data from the current view.":"Your export will include all filtered data from the current view.","Active Filters":"Active Filters","Data Explorer Export":"Data Explorer Export","Export your currently filtered Data Explorer results to CSV":"Export your currently filtered Data Explorer results to CSV","Group By Order":"Group By Order","No active filters selected":"No active filters selected","No active filters with query key available":"No active filters with query key available","You can only download this report for filtered stats":"You can only download this report for filtered stats","Ad Account Breakdown":"Ad Account Breakdown","Ad Account ID":"Ad Account ID","Ad Account Name":"Ad Account Name","Ad count / Ads found":"Ad count / Ads found","Ad Creative":"Ad Creative","Ad Creatives Detected":"Ad Creatives Detected","Add Keyword":"Add Keyword","Ads detected":"Ads detected","Are you sure you want to delete this keyword?":"Are you sure you want to delete this keyword?","Brand Bidding Overview":"Brand Bidding Overview","Branded Protection Configuration":"Branded Protection Configuration","Breakdown data is delivered as a CSV, it is too granular to display in the table, but everything you need is there. Generate your export and it will land in your inbox shortly.":"Breakdown data is delivered as a CSV, it is too granular to display in the table, but everything you need is there. Generate your export and it will land in your inbox shortly.","Breakdown Filter":"Breakdown Filter","Clear Filters":"Clear Filters","Compare IVT rates by placement to spot where campaign traffic quality drops.":"Compare IVT rates by placement to spot where campaign traffic quality drops.","Create Keyword":"Create Keyword","Created at":"Created at","Date detected":"Date detected","Date Detected":"Date Detected","DATE DETECTED":"DATE DETECTED",Delete:"Delete","Delete Keyword":"Delete Keyword",Delivery:"Delivery","Drag to set the order in which your data is grouped and aggregated in the export.":"Drag to set the order in which your data is grouped and aggregated in the export.","Edit Keyword":"Edit Keyword","Export CSV":"Export CSV","Export data to your email via CSV.":"Export data to your email via CSV.","Export your data to a CSV file":"Export your data to a CSV file","Filter Panel":"Filter Panel","First detected":"First detected","Generate Export":"Generate Export",Hourly:"Hourly","Identify if certain devices are driving higher IVT rates across your campaigns.":"Identify if certain devices are driving higher IVT rates across your campaigns.","IVT by day of week":"IVT by day of week","IVT by Placement across Campaigns":"IVT by Placement across Campaigns",KEYWORD:"KEYWORD","Keywords affected":"Keywords affected","Keywords must not be empty":"Keywords must not be empty","L30 Days":"L30 Days","Last 30 Days":"Last 30 Days","Last detected":"Last detected",LOCATION:"LOCATION","Location must not be empty":"Location must not be empty","No ads found for this advertiser":"No ads found for this advertiser","No ads found for this keyword":"No ads found for this keyword","Predefined Export":"Predefined Export","Prepared Exports":"Prepared Exports","Ready-made reports for the most common IVT breakdowns.":"Ready-made reports for the most common IVT breakdowns.","Scan Frequency":"Scan Frequency","See which campaigns and placements are driving the highest share of IVT.":"See which campaigns and placements are driving the highest share of IVT.","Send to":"Send to","Site Source":"Site Source","The keyword was deleted":"The keyword was deleted","Top IVT by Device across Campaigns":"Top IVT by Device across Campaigns","Top IVT Sources by Campaign and Placement":"Top IVT Sources by Campaign and Placement","Track IVT patterns by weekday to identify recurring high-risk traffic days.":"Track IVT patterns by weekday to identify recurring high-risk traffic days.","TRACKING URL":"TRACKING URL",Copy:"Copy","Type keyword here":"Type keyword here","Type location here eg, UK, London":"Type location here eg, UK, London","Vie
2w Ads":"View Ads","WORKSPACE & PLATFORM":"WORKSPACE & PLATFORM","Your breakdown is ready to export":"Your breakdown is ready to export","AI Max":"AI Max",Segment:"Segment",Segment2:"Segment2","Type location here eg":"Type location here eg",Stuff:"Stuff",Entities:"Entities","this lan test not here":"this lan test not here","This IP behaves like a Data Center":"This IP behaves like a Data Center","IP has only interacted via paid ads":"IP has only interacted via paid ads","Maximum length is :maxLength.'":"Maximum length is :maxLength.'",":optionLabel is required.'":":optionLabel is required.'",":optionLabel must be at least :minLength characters.'":":optionLabel must be at least :minLength characters.'",":optionLabel must be no more than :maxLength characters.'":":optionLabel must be no more than :maxLength characters.'",":optionLabel must be a number.'":":optionLabel must be a number.'",":optionLabel must be text.'":":optionLabel must be text.'","language(string)":"language(string)","Copied to clipboard :value'":"Copied to clipboard :value'",Internal:"Internal",Competitor:"Competitor",Self:"Self",Category:"Category","The category was changed":"The category was changed","A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact.":"A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact.","Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction.":"Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction.","Estimated spend after removing the cost of invalid clicks.":"Estimated spend after removing the cost of invalid clicks.","Shows whether Lunio is actively protecting or only monitoring this account or campaign.":"Shows whether Lunio is actively protecting or only monitoring this account or campaign.","The average cost per click, based on platform-reported spend and total clicks.":"The average cost per click, based on platform-reported spend and total clicks.","The change in percentage between the selected date period and the equivalent previous period.":"The change in percentage between the selected date period and the equivalent previous period.","The percentage of total clicks Lunio has classified as invalid.":"The percentage of total clicks Lunio has classified as invalid.","The percentage of total clicks reported as invalid by Google. These are only visible to Lunio users impersonating customers, customers donât see this column at all.":"The percentage of total clicks reported as invalid by Google. These are only visible to Lunio users impersonating customers, customers donât see this column at all.","Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users.":"Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users.","The total number of clicks Lunio has classified as legitimate.":"The total number of clicks Lunio has classified as legitimate.","The total number of clicks Lunio has flagged as suspicious, but not definitively invalid.":"The total number of clicks Lunio has flagged as suspicious, but not definitively invalid.","The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume.":"The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume.","The total number of invalid clicks reported by Google. These are only visible to Lunio users impersonating customers, customers donât see this column at all.":"The total number of invalid clicks reported by Google. These are only visible to Lunio users impersonating customers, customers donât see this column at all.","The approximate ad spend reported by the ad platform for the selected period.":"The approximate ad spend reported by the ad platform for the selected period."," IG -Instagram":" IG -Instagram","AN - Audience Network":"AN - Audience Network","FB - Facebook":"FB - Facebook","MSG - Messenger":"MSG - Messenger","an - Audience Network":"an - Audience Network","fb - Facebook":"fb - Facebook","ig -Instagram":"ig -Instagram","msg - Messenger":"msg - Messenger","th -Threads":"th -Threads",Bidding:"Bidding","SERP Insights":"SERP Insights","Understand how your keyword is performing organically and in paid search on Google":"Understand how your keyword is performing organically and in paid search on Google","Configure Keywords":"Configure Keywords","Paid Position":"Paid Position","Last checked":"Last checked","Organic Position":"Organic Position","Increase bid":"Increase bid","You're not ranking #1 organically. Increase paid spend to protect visibility.":"You're not ranking #1 organically. Increase paid spend to protect visibility.","Reduce spend":"Reduce spend","You rank #1 organically with no competitors. Consider reducing your paid bid.":"You rank #1 organically with no competitors. Consider reducing your paid bid.","Monitor competitors":"Monitor competitors","You rank #1 organically but have competing advertisers. Monitor competitor presence.":"You rank #1 organically but have competing advertisers. Monitor competitor presence.",You:"You","Top 5 Campaigns by Invalid Click Rate":"Top 5 Campaigns by Invalid Click Rate",Ads:"Ads","by Invalid Click Rate":"by Invalid Click Rate","Top 5 Accounts by Invalid Click Rate":"Top 5 Accounts by Invalid Click Rate","Top 5 Ad Sets by Invalid Click Rate":"Top 5 Ad Sets by Invalid Click Rate","Top 5 Ads by Invalid Click Rate":"Top 5 Ads by Invalid Click Rate","Top 5 Accounts by":"Top 5 Accounts by","Top 5 Ad Sets by":"Top 5 Ad Sets by","Top 5 Ads by":"Top 5 Ads by","Top 5 Campaigns by":"Top 5 Campaigns by","Top IBT Entities":"Top IBT Entities","Top Accounts by":"Top Accounts by","Top Ad Sets by":"Top Ad Sets by","Top Ads by":"Top Ads by","Top Campaigns by":"Top Campaigns by","Invalid Clicks Percentage":"Invalid Clicks Percentage","Legitimate Clicks %":"Legitimate Clicks %","Legitimate Clicks Percentage":"Legitimate Clicks Percentage","Suspicious Click %":"Suspicious Click %","Suspicious Clicks Percentage":"Suspicious Clicks Percentage","Total Invalid Clicks":"Total Invalid Clicks","Total Legitimate Clicks":"Total Legitimate Clicks","Total Suspicious Clicks":"Total Suspicious Clicks","Suspicious Clicks %":"Suspicious Clicks %",Collapse:"Collapse",Expand:"Expand","See Ads":"See Ads","See Adsets":"See Adsets","See Campaigns":"See Campaigns","Adjusted spend value":"Adjusted spend value",Aggressive:"Aggressive",Balanced:"Balanced","Balances waste reduction against preserving genuine traffic.":"Balances waste reduction against preserving genuine traffic.","Blocks more suspicious traffic to maximise waste reduction. Best for maximising redistributed ad spend.":"Blocks more suspicious traffic to maximize waste reduction. Best for maximizing redistributed ad spend.","Blocks traffic Lunio considers clearly invalid. Best for reducing the risk of blocking genuine users.":"Blocks traffic Lunio considers clearly invalid. Best for reducing the risk of blocking genuine users.","Campaign cost model":"Campaign cost model",Cautious:"Cautious","Do not change this setting based on recent IVT spikes or short-term traffic fluctuations.":"Do not change this setting based on recent IVT spikes or short-term traffic fluctuations.","Effective cost per click":"Effective cost per click","Failed to update IVT settings":"Failed to update IVT settings","High Aggression":"High Aggression","IVT Controls":"IVT Controls","IVT controls allow you to choose how aggressively Lunio protects against invalid traffic, helping you align protection with your goals and risk tolerance":"IVT controls allow you to choose how aggressively Lunio protects against invalid traffic, helping you align protection with your goals and risk tolerance","IVT settings have been successfully updated":"IVT settings have been successfully updated","Last Updated":"Last Updated","Low Aggression":"Low Aggression","Medium Aggression":"Medium Aggression","No IVT controls configured yet":"No IVT controls configured yet","No workspaces found":"No workspaces found","Protection Level":"Protection Level","Select a level":"Select a level","Select from the three options below":"Select from the three options below","Total spend from Meta":"Total spend from Meta","Treat this as a long-term protection setting. Select your level and let Lunio do the rest.":"Treat this as a long-term protection setting. Select your level and let Lunio do the rest.",Update:"Update","Update protection level":"Update protection level","Update Selected":"Update Selected","Update your IVT controls":"Update your IVT controls","Changed By":"Changed By","Workspace ID":"Workspace ID","Change Log":"Change Log","Change Made By":"Change Made By",Impersonator:"Impersonator","IVT Controls Changelog":"IVT Controls Changelog","GIVT Clicks":"GIVT Clicks","For this filter configuration you will not see eCPC, Spend, Adjusted Spend columns in your export file":"For this filter configuration you will not see eCPC, Spend, Adjusted Spend columns in your export file","IVT Rate":"IVT Rate",Advertiser:"Advertiser","Last Detected":"Last Detected","Copied to clipboard":"Copied to clipboard","All Campaign statuses were successfully updated":"All Campaign statuses were successfully updated","Lunio Token ID":"Lunio Token ID","Your own brand or domains":"Your own brand or domains","An approved affiliate or reseller":"An approved affiliate or reseller","A rival bidding on your terms":"A rival bidding on your terms","Unclassified advertiser":"Unclassified advertiser","Currently active":"Currently active","Log out":"Log out","No accounts match":"No accounts match","Search accounts":"Search accounts","Search accounts...":"Search accounts...","This Account has no workspaces. It will need a workspace assigned to it before you can log into it":"This Account has no workspaces. It will need a workspace assigned to it before you can log into it",workspaces:"workspaces","All Statuses":"All Statuses","False positives":"False positives","Must be min length":"Must be min length","Redistributed spend":"Redistributed spend","Figures are estimates modelled on your recent traffic, they are projections, not guarantees, and actual results will vary.":"Figures are estimates modeled on your recent traffic, they are projections, not guarantees, and actual results will vary.",estimates:"estimates","Figures are":"Figures are","modelled on your recent traffic, they are projections, not guarantees, and actual results will vary.":"modeled on your recent traffic, they are projections, not guarantees, and actual results will vary.","Required Meta parameters missing. Apply correct parameters now.":"Required Meta parameters missing. Apply correct parameters now.","Incorrect Meta parameter values detected. Check and fix correct parameters now.":"Incorrect Meta parameter values detected. Check and fix correct parameters now.","Meta integration not syncing. Reconnect Meta token now.":"Meta integration not syncing. Reconnect Meta token now.","Platform parameter values incorrect. Apply correct parameters now.":"Platform parameter values incorrect. Apply correct parameters now.","Platform tracking parameter missing. Update with correct parameters now.":"Platform tracking parameter missing. Update with correct parameters now.","Reporting and attribution may be incomplete or incorrect until this is resolved.":"Reporting and attribution may be incomplete or incorrect until this is resolved.","Reporting in the Data Explorer may be incomplete or incorrect until this is resolved.":"Reporting in the Data Explorer may be incomplete or incorrect until this is resolved.","Reporting in the Data Explorer may be incomplete and new campaigns will not sync and be displayed until this is resolved.":"Reporting in the Data Explorer may be incomplete and new campaigns will not sync and be displayed until this is resolved.","Calculation Info":"Calculation Info","Cost is calculated based on the CPC of clicks from invalid sources within the selected date range.":"Cost is calculated based on the CPC of clicks from invalid sources within the selected date range.","Can manage protection, campaigns, and view tracking tags.":"Can manage protection, campaigns, and view tracking tags.",Editor:"Editor","Full access within this workspace. Manage members, workspace settings, protection, and view tracking scripts.":"Full access within this workspace. Manage members, workspace settings, protection, and view tracking scripts.","Read-only access to workspace data and reports.":"Read-only access to workspace data and reports.","Full access.":"Full access.",":name was set to :roleName role":":name was set to :roleName role","It is not possible to update this member's role.":"It is not possible to update this member's role.",IVT:"IVT","DS Reports":"DS Reports","Please select a start and end date":"Please select a start and end date","Request an IVT Delta export report for a selected date range.":"Request an IVT Delta export report for a selected date range.","Start Date":"Start Date","End Date":"End Date","Start date must be before end date":"Start date must be before end date",Submit:"Submit","Export IVT Delta":"Export IVT Delta","showing all non Admin Lunio users who have have access to this workspace":"showing all non Admin Lunio users who have have access to this workspace","You will not see any users listed here who automatically have access to this workspace because they are an Admin user for example.":"You will not see any users listed here who automatically have access to this workspace because they are an Admin user for example.","You will not see any users listed here who automatically have access to this workspace, such as admin users, for example.":"You will not see any users listed here who automatically have access to this workspace, such as admin users, for example.","showing all non admin Lunio users who have have access to this workspace":"showing all non admin Lunio users who have have access to this workspace","Lunio Account Role":"Lunio Account Role","showing all non admin Lunio users who have access to this workspace":"Showing all non admin Lunio users who have access to this workspace","Crawler/Bot":"Crawler/Bot","Duplicate click":"Duplicate click","GIVT - Crawler/Bot":"GIVT - Crawler/Bot","GIVT - Duplicate click (matched by click ID)":"GIVT - Duplicate click (matched by click ID)","GIVT - manually ignored IP":"GIVT - manually ignored IP","Manually ignored IP":"Manually ignored IP",Paused:"Paused",Removed:"Removed","Configuration Name":"Configuration Name","Account Name / ID":"Account Name / ID","Abnormal Browser":"Abnormal Browser","Abnormal Operating System":"Abnormal Operating System","AI Agent Traffic":"AI Agent Traffic","Click on a row to see the top 3 campaigns.":"Click on a row to see the top 3 campaigns.","Click Origin Concentration":"Click Origin Concentration","No Search Activity":"No Search Activity","Geolocation Mismatch":"Geolocation Mismatch","High Click Velocity":"High Click Velocity","High Display Click Volume":"High Display Click Volume","High Distributed Click Volume":"High Distributed Click Volume","High PMAX Click Volume":"High PMAX Click Volume","High Search Click Volume":"High Search Click Volume","High Click Volume":"High Click Volume","Google Tooling Abuse":"Google Tooling Abuse","Invalid Clicks":"Invalid Clicks","Irregular Click Pattern":"Irregular Click Pattern","Low Quality Traffic":"Low Quality Traffic","Mobile Device Spoofing":"Mobile Device Spoofing",Percent:"Percent","Proxy Traffic":"P
2roxy Traffic","Robotic Click Pattern":"Robotic Click Pattern","Top 3 campaigns affected by":"Top 3 campaigns affected by","Total invalid clicks":"Total invalid clicks","View the different types of waste in your invalid traffic":"View the different types of waste in your invalid traffic","IP Rotation":"IP Rotation","Waste Analysis":"Waste Analysis","Waste breakdown":"Waste breakdown","Waste type":"Waste type","Waste Type":"Waste Type",Actor:"Actor","From Status":"From Status","Lunio Account Status Change Log":"Lunio Account Status Change Log","To Status":"To Status","View changes made to this Lunio accountâs status.":"View changes made to this Lunio accountâs status.","All Campaign statuses were successfully updated - note: you can only set a campaign to protected if its parent account is also protected":"All Campaign statuses were successfully updated - note: you can only set a campaign to protected if its parent account is also protected","All Clicks Tracked":"All Clicks Tracked","All Tracked Clicks":"All Tracked Clicks","Percentage Invalid":"Percentage Invalid","The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT).":"The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT).","The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks.":"The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks.","The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT.":"The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT.","Total Invalid Traffic":"Total Invalid Traffic","Total IVT":"Total IVT","Total IVT %":"Total IVT %","No remaining slots available":"No remaining slots available",Chat:"Chat","Data available from 1st July 2026 onwards. Click on a row to see the top 3 campaigns.":"Data available from 1st July 2026 onwards. Click on a row to see the top 3 campaigns.","Google Owned Channels":"Google Owned Channels","Google TV":"Google TV",'We\'re showing these existing placements for reference, but not adding new ones. You can toggle the "Google Placement Blocking" feature flag from your Account Settings page to turn this back on.':'We\'re showing these existing placements for reference, but not adding new ones. You can toggle the "Google Placement Blocking" feature flag from your Account Settings page to turn this back on.'}},59250:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=function(e){var t,n,r,o,c,u,d,p,m=e.isLoading,g=e.total,y=e.invalid,h=e.ivt,x=e.allTrackedClicks,b=e.givt,v=e.totalIvt,A=e.totalIvtPercent,_=e.title,S=void 0===_?(0,i.language)("Key Metrics"):_,w=e.setTime,O=e.time,j=e.allowedRanges,k=void 0===j?["1d","yesterday","7d","30d","90d","prevMonth"]:j,E=e.filters,N=e.setFilters;return p=e.filterConfig||[{label:(0,i.language)("Partner"),name:"partner",type:"radio",options:[{label:(0,i.language)("contains"),name:"contains",type:"text"}]},{label:(0,i.language)("Network"),name:"network",type:"radio",options:[{label:(0,i.language)("contains"),name:"contains",type:"text"}]},{label:(0,i.language)("Campaign"),name:"campaign",type:"radio",options:[{label:(0,i.language)("contains"),name:"contains",type:"text"}]}],(0,s.jsxs)(a.Card,{className:"mb-4",children:[(0,s.jsxs)("div",f(f({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4","data-style-src":"KeyMetrics/index.jsx:11"}),{},{children:[(0,s.jsx)(a.Text,{preset:"widgetHeading",as:"h2",children:S}),(0,s.jsxs)("div",{className:"flex distribute-space-between",children:[E&&(0,s.jsx)(a.Filters,{filterConfig:p,initialValues:E,onFilterChange:N}),w&&O&&(0,s.jsx)(a.Input.DatePicker,{value:[O.min.date,O.max.date],onRangeChange:function(e){return w(e)},selectedOption:O.rangeName,showCalenderIcon:!1,displayRangeText:!1,ranges:k})]})]})),(0,s.jsx)(a.Divider,{className:"mt-4"}),(0,s.jsx)(a.Grid,{children:(0,s.jsx)(a.LunioLoader,{loading:m,preset:"dark",size:"responsive",height:164,children:(0,s.jsxs)(a.Grid.Row,{children:[(0,s.jsx)(a.Grid.Col,{children:(0,s.jsx)(a.StatBlock,{title:g.title,value:g.count,icon:null!==(t=g.icon)&&void 0!==t?t:["far","arrow-pointer"]})}),x&&(0,s.jsx)(a.Grid.Col,{children:(0,s.jsx)(a.StatBlock,{title:x.title,value:x.count,tooltip:x.tooltip,icon:null!==(n=x.icon)&&void 0!==n?n:["far","arrow-pointer"]})}),(0,s.jsx)(a.Grid.Col,{children:(0,s.jsx)(a.StatBlock,{title:y.title,value:y.count,colour:l.colourValues.error600,valuePrefix:y.valuePrefix,icon:null!==(r=y.icon)&&void 0!==r?r:["far","triangle-exclamation"]})}),b&&(0,s.jsx)(a.Grid.Col,{children:(0,s.jsx)(a.StatBlock,{title:b.title,value:b.count,tooltip:b.tooltip,colour:l.colourValues.error600,icon:null!==(o=b.icon)&&void 0!==o?o:["far","triangle-exclamation"]})}),v&&(0,s.jsx)(a.Grid.Col,{children:(0,s.jsx)(a.StatBlock,{title:v.title,value:v.count,tooltip:v.tooltip,colour:l.colourValues.error600,icon:null!==(c=v.icon)&&void 0!==c?c:["far","triangle-exclamation"]})}),h&&(0,s.jsx)(a.Grid.Col,{children:(0,s.jsx)(a.StatBlock,{title:h.title||(0,i.language)("Avg IVT%"),value:h.count,valuePrefix:h.valuePrefix,icon:null!==(u=h.icon)&&void 0!==u?u:["far","percent"]})}),A&&(0,s.jsx)(a.Grid.Col,{children:(0,s.jsx)(a.StatBlock,{title:A.title,value:A.count,valuePrefix:A.valuePrefix,tooltip:A.tooltip,icon:null!==(d=A.icon)&&void 0!==d?d:["far","percent"]})})]})})})]})};var o=c(n(25751)),a=(c(n(14041)),function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2!function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i])}(e)}(n(76969)),n(45365)),i=n(60156),l=n(86957),s=n(31085);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=o.default;m(".display-x78zum5{display:flex}",3e3),m(".justifyContent-x1qughib{justify-content:space-between}",3e3),m(".alignItems-x6s0dn4{align-items:center}",3e3)},59370:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=[{code:"AR",number:11,name:"Argentina"},{code:"BM",number:28,name:"Bermuda"},{code:"CF",number:41,name:"Central African Republic"},{code:"CH",number:43,name:"Switzerland"},{code:"DJ",number:58,name:"Djibouti"},{code:"FI",number:70,name:"Finland"},{code:"GE",number:79,name:"Georgia"},{code:"GL",number:84,name:"Greenland"},{code:"GS",number:90,name:"South Georgia and the South Sandwich Islands"},{code:"HR",number:97,name:"Croatia"},{code:"HU",number:99,name:"Hungary"},{code:"JE",number:110,name:"Jersey"},{code:"KM",number:118,name:"Comoros"},{code:"KR",number:121,name:"South Korea"},{code:"LC",number:127,name:"Saint Lucia"},{code:"LI",number:128,name:"Liechtenstein"},{code:"LK",number:129,name:"Sri Lanka"},{code:"LU",number:133,name:"Luxembourg"},{code:"MA",number:136,name:"Morocco"},{code:"MK",number:143,name:"North Macedonia"},{code:"ML",number:144,name:"Mali"},{code:"MQ",number:149,name:"Martinique"},{code:"MW",number:155,name:"Malawi"},{code:"NE",number:160,name:"Niger"},{code:"NG",number:162,name:"Nigeria"},{code:"PA",number:171,name:"Panama"},{code:"PH",number:175,name:"Philippines"},{code:"PL",number:177,name:"Poland"},{code:"PY",number:184,name:"Paraguay"},{code:"SE",number:195,name:"Sweden"},{code:"SG",number:196,name:"Singapore"},{code:"SX",number:209,name:"Sint Maarten"},{code:"SY",number:210,name:"Syria"},{code:"TJ",number:217,name:"Tajikistan"},{code:"TT",number:224,name:"Trinidad and Tobago"},{code:"UG",number:229,name:"Uganda"},{code:"UM",number:230,name:"United States Minor Outlying Islands"},{code:"YT",number:245,name:"Mayotte"},{code:"AI",number:6,name:"Anguilla"},{code:"AO",number:9,name:"Angola"},{code:"BN",number:29,name:"Brunei"},{code:"BT",number:34,name:"Bhutan"},{code:"CC",number:39,name:"Cocos (Keeling) Islands"},{code:"CO",number:49,name:"Colombia"},{code:"DK",number:59,name:"Denmark"},{code:"FK",number:72,name:"Falkland Islands"},{code:"FO",number:74,name:"Faroe Islands"},{code:"GM",number:85,name:"Gambia"},{code:"GP",number:87,name:"Guadeloupe"},{code:"GY",number:94,name:"Guyana"},{code:"HT",number:98,name:"Haiti"},{code:"ID",number:100,name:"Indonesia"},{code:"KN",number:119,name:"Saint Kitts and Nevis"},{code:"KZ",number:124,name:"Kazakhstan"},{code:"MM",number:145,name:"Myanmar"},{code:"NL",number:164,name:"Netherlands"},{code:"NU",number:168,name:"Niue"},{code:"PK",number:176,name:"Pakistan"}
2,{code:"SL",number:201,name:"Sierra Leone"},{code:"TD",number:213,name:"Chad"},{code:"TZ",number:227,name:"Tanzania"},{code:"VE",number:236,name:"Venezuela"},{code:"AE",number:3,name:"United Arab Emirates"},{code:"AG",number:5,name:"Antigua and Barbuda"},{code:"AL",number:7,name:"Albania"},{code:"AX",number:16,name:"Ã
land Islands"},{code:"BB",number:19,name:"Barbados"},{code:"BE",number:21,name:"Belgium"},{code:"BL",number:27,name:"Saint Barthélemy"},{code:"BW",number:35,name:"Botswana"},{code:"BY",number:36,name:"Belarus"},{code:"CK",number:45,name:"Cook Islands"},{code:"CW",number:53,name:"Curaçao"},{code:"CZ",number:56,name:"Czechia"},{code:"EE",number:64,name:"Estonia"},{code:"EH",number:66,name:"Western Sahara"},{code:"FM",number:73,name:"Micronesia"},{code:"GG",number:81,name:"Guernsey"},{code:"GI",number:83,name:"Gibraltar"},{code:"GU",number:92,name:"Guam"},{code:"HK",number:95,name:"Hong Kong"},{code:"HN",number:96,name:"Honduras"},{code:"IE",number:101,name:"Ireland"},{code:"IM",number:103,name:"Isle of Man"},{code:"IO",number:105,name:"British Indian Ocean Territory"},{code:"IQ",number:106,name:"Iraq"},{code:"JO",number:112,name:"Jordan"},{code:"KH",number:116,name:"Cambodia"},{code:"KW",number:122,name:"Kuwait"},{code:"LA",number:125,name:"Laos"},{code:"LR",number:130,name:"Liberia"},{code:"PW",number:183,name:"Palau"}
2,{code:"SB",number:192,name:"Solomon Islands"},{code:"SM",number:202,name:"San Marino"},{code:"TG",number:215,name:"Togo"},{code:"VG",number:237,name:"British Virgin Islands"},{code:"ZA",number:246,name:"South Africa"},{code:"AQ",number:10,name:"Antarctica"},{code:"AZ",number:17,name:"Azerbaijan"},{code:"BD",number:20,name:"Bangladesh"},{code:"BH",number:24,name:"Bahrain"},{code:"BI",number:25,name:"Burundi"},{code:"CR",number:50,name:"Costa Rica"},{code:"FR",number:75,name:"France"},{code:"GA",number:76,name:"Gabon"},{code:"GN",number:86,name:"Guinea"},{code:"IL",number:102,name:"Israel"},{code:"IN",number:104,name:"India"},{code:"IR",number:107,name:"Iran"},{code:"IS",number:108,name:"Iceland"},{code:"JM",number:111,name:"Jamaica"},{code:"KY",number:123,name:"Cayman Islands"},{code:"NO",number:165,name:"Norway"},{code:"NP",number:166,name:"Nepal"},{code:"PG",number:174,name:"Papua New Guinea"},{code:"QA",number:185,name:"Qatar"},{code:"RE",number:186,name:"Réunion"},{code:"RW",number:190,name:"Rwanda"},{code:"SC",number:193,name:"Seychelles"},{code:"TF",number:214,name:"French Southern Territories"},{code:"TR",number:223,name:"Turkey"},{code:"TV",number:225,name:"Tuvalu"},{code:"VI",number:238,name:"United States Virgin Islands"},{code:"VN",number:239,name:"Vietnam"},{code:"XK",number:243,name:"Kosovo"},{code:"YE",number:244,name:"Yemen"},{code:"AS",number:12,name:"American Samoa"},{code:"BZ",number:37,name:"Belize"},{code:"DE",number:57,name:"Germany"},{code:"DO",number:61,name:"Dominican Republic"},{code:"EC",number:63,name:"Ecuador"},{code:"ER",number:67,name:"Eritrea"},{code:"FJ",number:71,name:"Fiji"},{code:"GT",number:91,name:"Guatemala"},{code:"IT",number:109,name:"Italy"},{code:"JP",number:113,name:"Japan"},{code:"KG",number:115,name:"Kyrgyzstan"},{code:"LB",number:126,name:"Lebanon"},{code:"LT",number:132,name:"Lithuania"},{code:"MP",number:148,name:"Northern Mariana Islands"},{code:"MT",number:152,name:"Malta"},{code:"MV",number:154,name:"Maldives"},{code:"MX",number:156,name:"Mexico"},{code:"NC",number:159,name:"New Caledonia"},{code:"NF",number:161,name:"Norfolk Island"},{code:"NZ",number:169,name:"New Zealand"},{code:"OM",number:170,name:"Oman"},{code:"PE",number:172,name:"Peru"},{code:"PM",number:178,name:"Saint Pierre and Miquelon"},{code:"PN",number:179,name:"Pitcairn Islands"},{code:"RO",number:187,name:"Romania"},{code:"SA",number:191,name:"Saudi Arabia"},{code:"SI",number:198,name:"Slovenia"},{code:"SS",number:206,name:"South Sudan"},{code:"SZ",number:211,name:"Eswatini"},{code:"TC",number:212,name:"Turks and Caicos Islands"},{code:"WF",number:241,name:"Wallis and Futuna"},{code:"AD",number:2,name:"Andorra"},{code:"AT",number:13,name:"Austria"},{code:"BG",number:23,name:"Bulgaria"},{code:"BQ",number:31,name:"Bonaire, Sint Eustatius and Saba"},{code:"CA",number:38,name:"Canada"},{code:"CU",number:51,name:"Cuba"},{code:"CX",number:54,name:"Christmas Island"},{code:"GH",number:82,name:"Ghana"},{code:"GW",number:93,name:"Guinea-Bissau"},{code:"LS",number:131,name:"Lesotho"},{code:"MD",number:138,name:"Moldova"},{code:"MH",number:142,name:"Marshall Islands"},{code:"NI",number:163,name:"Nicaragua"},{code:"PR",number:180,name:"Puerto Rico"},{code:"RU",number:189,name:"Russia"},{code:"SH",number:197,name:"Saint Helena, Ascension and Tristan da Cunha"},{code:"SJ",number:199,name:"Svalbard and Jan Mayen"},{code:"TL",number:219,name:"Timor-Leste"},{code:"UZ",number:233,name:"Uzbekistan"},{code:"WS",number:242,name:"Samoa"},{code:"ZM",number:247,name:"Zambia"},{code:"BA",number:18,name:"Bosnia and Herzegovina"},{code:"BF",number:22,name:"Burkina Faso"},{code:"CM",number:47,name:"Cameroon"},{code:"DM",number:60,name:"Dominica"},{code:"DZ",number:62,name:"Algeria"},{code:"EG",number:65,name:"Egypt"},{code:"GB",number:77,name:"United Kingdom"},{code:"GD",number:78,name:"Grenada"},{code:"GF",number:80,name:"French Guiana"},{code:"KP",number:120,name:"North Korea"},{code:"LV",number:134,name:"Latvia"},{code:"MC",number:137,name:"Monaco"},{code:"ME",number:139,name:"Montenegro"},{code:"MF",number:140,name:"Saint Martin"},{code:"MG",number:141,name:"Madagascar"},{code:"MR",number:150,name:"Mauritania"},{code:"MZ",number:158,name:"Mozambique"},{code:"NR",number:167,name:"Nauru"},{code:"PF",number:173,name:"French Polynesia"},{code:"ST",number:207,name:"São Tomé and PrÃncipe"},{code:"TH",number:216,name:"Thailand"},{code:"TK",number:218,name:"Tokelau"},{code:"TM",number:220,name:"Turkmenistan"},{code:"TW",number:226,name:"Taiwan"},{code:"UA",number:228,name:"Ukraine"},{code:"US",number:231,name:"United States"},{code:"UY",number:232,name:"Uruguay"},{code:"VC",number:235,name:"Saint Vincent and the Grenadines"},{code:"VU",number:240,name:"Vanuatu"},{code:"AF",number:4,name:"Afghanistan"},{code:"AM",number:8,name:"Armenia"},{code:"AU",number:14,name:"Australia"},{code:"AW",number:15,name:"Aruba"},{code:"BJ",number:26,name:"Benin"},{code:"BO",number:30,name:"Bolivia"},{code:"BR",number:32,name:"Brazil"},{code:"BS",number:33,name:"Bahamas"},{code:"CD",number:40,name:"Democratic Republic of the Congo"},{code:"CG",number:42,name:"Republic of the Congo"},{code:"CI",number:44,name:"Côte d'Ivoire"},{code:"CL",number:46,name:"Chile"},{code:"CN",number:48,name:"China"},{code:"CV",number:52,name:"Cabo Verde"},{code:"CY",number:55,name:"Cyprus"},{code:"ES",number:68,name:"Spain"},{code:"ET",number:69,name:"Ethiopia"},{code:"GQ",number:88,name:"Equatorial Guinea"},{code:"GR",number:89,name:"Greece"},{code:"KE",number:114,name:"Kenya"},{code:"KI",number:117,name:"Kiribati"},{code:"LY",number:135,name:"Libya"},{code:"MN",number:146,name:"Mongolia"},{code:"MO",number:147,name:"Macau"},{code:"MS",number:151,name:"Montserrat"},{code:"MU",number:153,name:"Mauritius"},{code:"MY",number:157,name:"Malaysia"},{code:"PS",number:181,name:"Palestine"},{code:"PT",number:182,name:"Portugal"},{code:"RS",number:188,name:"Serbia"},{code:"SD",number:194,name:"Sudan"},{code:"SK",number:200,name:"Slovakia"},{code:"SN",number:203,name:"Senegal"},{code:"SO",number:204,name:"Somalia"},{code:"SR",number:205,name:"Suriname"},{code:"SV",number:208,name:"El Salvador"},{code:"TN",number:221,name:"Tunisia"},{code:"TO",number:222,name:"Tonga"},{code:"VA",number:234,name:"Vatican City"},{code:"ZW",number:248,name:"Zimbabwe"}]},59420:(e,t,n)=>{"use strict";e.exports=n.p+"b5f4448a15ec720e49e5.svg"},59446:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30739),o=n(60999);function a(){}a.World=r.A,a.States=o.A;const i=a}
2,59764:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var r=n(14041),o=n(56197),a=n(9260),i=n(77223),l=n(62720),s=n(72686),c=n(64705),u=n(1781),d=n(30021),f=n(55436),p=n(83405),m=n(30556),g=n(91788),y=n(27333),h=n(89748),x=n(1582),b=n(51836),v=n(87611),A=n(9326),_=n(83628),S=n(99018),w=n(62161),O=n(96182),j=n(93033),k=n(99226),E=n(19863),N=n(49677),I=n(57045),P=n(31085);function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M(e,t,n){return(t=function(e){var t=function(e){if("object"!=T(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var B=(0,S.createUseStyles)(function(){return{name:{textAlign:"right"},dot:{width:10,height:10,borderRadius:"50%",marginLeft:8},green:{backgroundColor:"#32D583"},amber:{backgroundColor:"#FEC84B"},red:{backgroundColor:"#F97066"}}});const U=function(){var e,t,n,T,C,M=L((0,O.A)(),1)[0],D=(0,k.A)().lunioStatus,U=(0,b.g)().cpn,F="TRIAL"===D,G=L((0,r.useState)(l.default.DatePicker.getDateRange("7d")),2),W=G[0],z=G[1],V=L((0,r.useState)(l.default.DatePicker.getDateRange("30d")),2),q=V[0],K=V[1],H={type:"google"===M.selectedPlatform.platform_name?"keyword":"country",sortKey:"clicks_fraudulent",startDate:q.min.date,endDate:q.max.date},Y=(0,y.R7)(H),$=Y.filters,Z=Y.handlePagination,X=Y.setFilters,J=Y.handleSort,Q=(0,y.st)("".concat("google"===M.selectedPlatform.platform_name?"/analytics/fraud-stats/campaign/":"/platform/analytics/campaign/").concat(U),$,function(){return $.type?"&type=".concat($.type):""}),ee=Q.data,te=Q.isLoading;(0,r.useEffect)(function(){X(R(R({},$),{},{startDate:q.min.date,endDate:q.max.date}))},[q]);var ne=B(),re="google"!==M.selectedPlatform.platform_name,oe=L((0,r.useState)(0),2),ae=oe[0],ie=oe[1],le=L((0,r.useState)(0),2),se=le[0],ce=le[1],ue=[{label:(0,h.A)("Hourly Invalid"),value:"hourlyInvalid"},{label:(0,h.A)("Keyword"),value:"keyword"},{label:(0,h.A)("Placement"),value:"placement"},{label:(0,h.A)("Network"),value:"network"},{label:(0,h.A)("Country"),value:"country"},{label:(0,h.A)("State"),value:"us_states"}],de=[{label:(0,h.A)("Hourly Invalid"),value:"hourlyInvalid"},{label:(0,h.A)("Country"),value:"country"}],fe=re?de:ue;
2function pe(e){"hourlyInvalid"!==e&&X(R(R({},$),{},{type:e}))}function me(e){var t="";switch(e){case 0:t="hourlyInvalid";break;case 1:t="keyword";break;case 2:t="placement";break;case 3:t="network";break;case 4:default:t="country";break;case 5:t="us_states"}pe(t),ie(e)}return(0,P.jsxs)(s.default,{children:[(0,P.jsxs)("div",{className:"justify-between v-align-center mb-4",children:[(0,P.jsx)(d.default,{preset:"widgetHeading",as:"h2",children:(0,h.A)("Campaign Metrics")}),0!==ae&&(0,P.jsx)(l.default.DatePicker,{value:[q.min.date,q.max.date],ranges:["yesterday","7d","30d","90d","prevMonth","customMonth","customRange"],onRangeChange:K,showCalenderIcon:!1,displayRangeText:!1}),0===ae&&(0,P.jsx)(l.default.DatePicker,{value:[W.min.date,W.max.date],ranges:["7d","yesterday","last4Weeks"],onRangeChange:z,showCalenderIcon:!1,displayRangeText:!1})]}),(0,P.jsx)(i.default,{className:"mb-4"}),(0,P.jsxs)("div",{className:"flex justify-between items-center mb-8",children:[(0,P.jsxs)(c.A,{preset:"secondary",onSelectionChange:me,currentSelection:ae,children:[(0,P.jsx)(a.default,{id:"lunio-idenfitier-schedule",children:(0,h.A)("Schedule")}),(0,P.jsx)(a.default,{id:"lunio-idenfitier-keywords",style:{display:re?"none":"unset"},children:(0,h.A)("Keywords")}),(0,P.jsx)(a.default,{id:"lunio-idenfitier-placement",style:{display:re?"none":"unset"},children:(0,h.A)("Placement")}),(0,P.jsx)(a.default,{id:"lunio-idenfitier-network",style:{display:re?"none":"unset"},children:(0,h.A)("Network")}),(0,P.jsx)(a.default,{id:"lunio-idenfitier-location",children:(0,h.A)("Location")}),!re&&"us_states"===$.type&&(0,P.jsx)(a.default,{id:"pendo-state",children:(0,h.A)("State")})]}),(0,P.jsx)("div",{children:(0,P.jsxs)(c.A,{preset:"secondary",onSelectionChange:ce,currentSelection:se,className:"mb-2",children:[(0,P.jsx)(a.default,{children:(0,h.A)("Visual")}),(0,P.jsx)(a.default,{"data-testid":"show-table-button",children:(0,h.A)("Data")})]})})]}),0===ae&&(0,P.jsx)("div",{children:(0,P.jsx)(_.A,{range:W,campaignId:U,showVisualisation:se})}),0!==ae&&4!==ae&&5!==ae&&0===se&&(0,P.jsx)(m.default,{children:(0,P.jsx)(m.default.Row,{children:(0,P.jsx)(m.default.Col,{xl:12,lg:12,children:"country"!==$.type&&(0,P.jsxs)(g.A,{style:{height:"300px"},children:["network"!==$.type&&(0,P.jsx)(v.A,{campaignId:U,type:$.type,dates:q}),"network"===$.type&&(0,P.jsx)(A.A,{campaignId:U,dataType:$.type})]})})})}),(4===ae||5===ae)&&0===se&&(0,P.jsxs)(g.A,{style:{height:"300px"},children:[te&&(0,P.jsx)(f.default,{loading:!0,height:400,preset:"dark",size:"responsive"}),(0,P.jsx)(m.default,{children:(0,P.jsxs)(m.default.Row,{style:{marginLeft:0,marginRight:0},children:[(0,P.jsxs)(m.default.Col,{id:"country-container",style:{paddingRight:0,paddingLeft:12,width:"50%"},children:[(null==ee||null===(e=ee.result)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.length)>1&&(0,P.jsx)(x.default.GroupHorizontal,{data:(0,N.Hn)(null==ee?void 0:ee.result),titles:[(0,h.A)("% Total Clicks"),(0,h.A)("% SIVT Clicks")]}),!te&&(null==ee||null===(t=ee.result)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.length)<2&&(0,P.jsx)(p.A,{title:(0,h.A)("Not enough data to display this map"),hasNoData:!0,style:{height:"300px"}})]}),(0,P.jsx)(m.default.Col,{style:{paddingRight:0,paddingLeft:0},children:(0,P.jsx)("div",{style:{width:"100%",marginRight:12,minWidth:200},children:(0,P.jsx)(I.A,{data:(0,N.zH)(null==ee?void 0:ee.result),handleClick:function(){me(5),pe("us_states")}})})})]})})]}),0!==ae&&1===se&&(0,P.jsx)("div",{className:"pt-3",children:(0,P.jsx)(w.A,{rows:null==ee||null===(n=ee.result)||void 0===n?void 0:n.data,isLoading:te,totalPages:null==ee||null===(T=ee.result)||void 0===T||null===(T=T.pagination)||void 0===T?void 0:T.last_page,totalItems:null==ee||null===(C=ee.result)||void 0===C||null===(C=C.pagination)||void 0===C?void 0:C.total,pageNumber:$.page,handlePagination:Z,leftPinnedColumns:1,sorting:{sortKey:$.sortKey,sortOrder:$.sortOrder},handleSorting:J,limit:$.limit,hideTopPagination:!0,noDataMinHeight:400,children:function(e){var t;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("thead",{children:(0,P.jsxs)("tr",{children:[(0,P.jsx)("th",{children:(0,P.jsx)(d.default,{size:"xs",children:null===(t=fe.find(function(e){return e.value===$.type}))||void 0===t?void 0:t.label})}),(0,P.jsx)("th",{children:"keyword"===$.type&&(0,P.jsx)(d.default,{size:"xs",children:(0,h.A)("Match Type")})}),(0,P.jsx)("th",{"data-sortable-id":"clicks_protected",children:(0,P.jsxs)("div",{className:"flex items-center",children:[(0,P.jsx)(d.default,{size:"xs",children:(0,h.A)("Legitimate")}),(0,P.jsx)("div",{className:(0,S.classNames)(ne.green,ne.dot)})]})}),(0,P.jsx)("th",{"data-sortable-id":"clicks_suspicious",children:(0,P.jsxs)("div",{className:"flex items-center",children:[(0,P.jsx)(d.default,{size:"xs",children:(0,h.A)("Suspicious")}),(0,P.jsx)("div",{className:(0,S.classNames)(ne.amber,ne.dot)})]})}),(0,P.jsx)("th",{"data-sortable-id":"clicks_fraudulent",children:(0,P.jsxs)("div",{className:"flex items-center",children:[(0,P.jsx)(d.default,{size:"xs",children:(0,h.A)("Invalid")}),(0,P.jsx)("div",{className:(0,S.classNames)(ne.red,ne.dot)})]})}),(0,P.jsx)(j.A,{AND:!F,children:(0,P.jsx)("th",{"data-testid":"givt","data-tooltip":(0,h.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,h.A)("GIVT Clicks")})})]})}),(0,P.jsxs)("tbody",{children:[(0,P.jsxs)("td",{children:[(null==e?void 0:e.kw)||(null==e?void 0:e.pl)||(null==e?void 0:e.nw)||(null==e?void 0:e.country)||(null==e?void 0:e.state),"United States of America"===(null==e?void 0:e.country)&&(0,P.jsx)(u.default,{content:"View States",children:(0,P.jsx)(a.default,{"data-testid":"usa-trigger-button",preset:"secondary",size:"sm",className:"ml-3",iconLeft:["far","location-crosshairs"],style:{width:"fit-content"},onClick:function(){me(5),pe("us_states")}})})]}),(0,P.jsx)("td",{children:(null==e?void 0:e.mt)&&(0,P.jsx)(o.default,{colourName:(0,N.Pc)(null==e?void 0:e.mt),children:(0,N.fI)(null==e?void 0:e.mt)})}),(0,P.jsx)("td",{children:(0,P.jsx)("div",{className:"flex items-center",children:null==e?void 0:e.clicks_protected})}),(0,P.jsx)("td",{children:(0,P.jsx)("div",{className:"flex items-center",children:null==e?void 0:e.clicks_suspicious})}),(0,P.jsx)("td",{children:(0,P.jsx)("div",{className:"flex items-center",children:null==e?void 0:e.clicks_fraudulent})}),(0,P.jsx)(j.A,{AND:!F,children:(0,P.jsx)("td",{children:(0,E.m)(null==e?void 0:e.clicks_general_invalid)})})]})]})}})})]})}},59779:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(71855),a=n(31085);const i=function(){var e,t=(0,r.R7)({}),n=t.filters,i=t.handlePagination,l=t.setFilters,s=t.handleSort,c="";return null!==(e=n["accounts.selection"])&&void 0!==e&&e.length&&(c+="&df_customer_ids=".concat(JSON.stringify(n["accounts.selection"]))),(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:n,onFilterChange:l,dynamicQuery:c,handlePagination:i,handleSort:s})})}},59818:(e,t,n)=>{"use strict";n.d(t,{yJ:()=>o});var r=n(83223);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MMM d, yyyy p";return(0,r.GP)(new Date(e),t)}n(63648)},59826:(e,t,n)=>{"use strict";e.exports=n.p+"53d81dc8b0f1aeefec3a.svg"}
2,59848:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=p(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),l=n(60156),s=n(45365),c=n(86957),u=p(n(41929)),d=p(n(37323)),f=n(31085);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b=o.default;function v(e){i.selectAll(".valid.group-".concat(e)).attr("fill",c.colourValues.success200),i.selectAll(".suspicious.group-".concat(e)).attr("fill",c.colourValues.warning100),i.selectAll(".invalid.group-".concat(e)).attr("fill",c.colourValues.error100)}function A(e){i.selectAll(".valid.group-".concat(e)).attr("fill",c.colourValues.success300),i.selectAll(".suspicious.group-".concat(e)).attr("fill",c.colourValues.warning200),i.selectAll(".invalid.group-".concat(e)).attr("fill",c.colourValues.error300)}b(".position-x1n2onr6{position:relative}",3e3),b(".display-x78zum5{display:flex}",3e3),b(".alignItems-x6s0dn4{align-items:center}",3e3),b(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),b(".marginTop-x14vqqas{margin-top:12px}",4e3),t.default=function(e){var t,n,r=e.data,o=e.percentage,p=(0,a.useRef)(null),m=(t=(0,a.useState)(!0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=m[0],h=m[1],b=(0,u.default)(d.default);return(0,a.useEffect)(function(){var e,t,n,a,l;i.select(p.current).selectAll("*").remove();var s=i.select(p.current),u=+s.node().getBoundingClientRect().width-65-0,d=+s.attr("height")-20-55,f=s.append("g").attr("transform","translate(".concat(65,",").concat(20,")")),m=null!==(e=i.max(r,function(e){return 100/+e.clicks_total*+e.total_invalid/100}
2))&&void 0!==e?e:0,y=m>.5?.4:1-m-.15,h=d*y,x=r.map(function(e){var t=Number(e.clicks_legitimate),n=Number(e.total_invalid),r=Number(e.clicks_suspicious),a=t+r,i=t+n+r;return o?{date:new Date(e.day_timestamp).getTime(),valid:t/i,invalid:n/i,suspicious:r/i,totalGood:a/i*h,validRaw:t,invalidRaw:n,suspiciousRaw:r}:{date:new Date(e.day_timestamp).getTime(),valid:t,invalid:n,suspicious:r,totalGood:a}}),_=null!==(t=i.max(x,function(e){return e.invalid}))&&void 0!==t?t:0,S=null!==(n=i.max(x,function(e){return e.valid}))&&void 0!==n?n:0,w=null!==(a=i.max(x,function(e){return e.suspicious}))&&void 0!==a?a:0,O=i.scaleBand().domain(x.map(function(e){return e.date}).sort(i.ascending)).range([0,u]).padding(.1),j=i.scaleLinear().domain([0,1]).range([h,0]),k=i.scaleLinear().domain([0,1.1*(null!==(l=i.max(x,function(e){return e.valid+e.suspicious}))&&void 0!==l?l:0)]).range([h,0]),E=h+k(_)*(1-y-.1),N=i.scaleLinear().domain([0,_]).range([h,E]),I=i.scaleLinear().domain([0,1.1*_]).range([h,d]),P=i.scaleLinear().domain([0,1.1*_]).range([h,d]);f.selectAll(".bar.suspicious").data(x).enter().append("rect").attr("class",function(e){return"bar suspicious group-".concat(e.date)}).attr("x",function(e){var t;return null!==(t=O(e.date))&&void 0!==t?t:0}).attr("y",function(e){return o?j(e.suspicious):k(e.suspicious)}).attr("width",O.bandwidth()).attr("height",function(e){return o?e.suspicious*h:w>0?h-k(e.suspicious):0}).attr("fill",w>0?c.colourValues.warning200:"transparent").on("mouseover",function(e,t){v(t.date)}).on("mouseout",function(e,t){A(t.date)}),f.selectAll(".bar.valid").data(x).enter().append("rect").attr("class",function(e){return"bar valid group-".concat(e.date)}).attr("x",function(e){var t;return null!==(t=O(e.date))&&void 0!==t?t:0}).attr("y",function(e){return o?h-e.totalGood:k(e.totalGood)}).attr("width",O.bandwidth()).attr("height",function(e){return o?e.valid*h:S>0?h-k(e.valid):0}).attr("fill",c.colourValues.success300).on("mouseover",function(e,t){v(t.date)}).on("mouseout",function(e,t){A(t.date)}),f.selectAll(".bar.red").data(x).enter().append("rect").attr("class",function(e){return"bar invalid group-".concat(e.date)}).attr("x",function(e){var t;return null!==(t=O(e.date))&&void 0!==t?t:0}).attr("y",h).attr("width",O.bandwidth()).attr("height",function(e){return o?g?P(e.invalid)-h:e.invalid*h:g&&0!==_?P(e.invalid)-h:h-k(e.invalid)}).attr("fill",c.colourValues.error300).on("mouseover",function(e,t){v(t.date)}).on("mouseout",function(e,t){A(t.date)}).on("mouseleave",function(){}),f.selectAll(".bar.column").data(x).enter().append("rect").attr("class",function(e){return"bar column group-".concat(e.date)}).attr("x",function(e){var t;return null!==(t=O(e.date))&&void 0!==t?t:0}).attr("y",0).attr("width",O.bandwidth()).attr("height",d).attr("fill","transparent").on("mouseover",function(e,t){v(t.date)}).on("mouseout",function(e,t){A(t.date)}),f.selectAll(".bar").style("cursor","pointer").call(b);var T=x.map(function(e){return e.date}),C=Math.ceil(T.length/15),R=T.filter(function(e,t){return t%C===0}),M=function(e){var t=e.map(function(e){var t=new Date(e);return new Date(t.getFullYear(),t.getMonth(),1).getTime()});return Array.from(new Set(t))}(T),L=i.scaleBand().domain(M).range([0,u]).padding(.1),D=f.append("g").attr("transform","translate(0,".concat(d+25,")")).call(i.axisBottom(L).tickFormat(function(e){return new Date(e).toLocaleString("default",{month:"short"})}));D.selectAll("g.tick").select("text").style("font-size","13px").style("font-weight",500).style("text-transform","uppercase").style("fill",c.colourValues.gray300),D.select(".domain").remove(),D.selectAll(".tick line").remove();var B,U,F,G=f.append("g").attr("transform","translate(0,".concat(d,")")).call(i.axisBottom(i.scaleBand().domain(R).range(O.range()).padding(.1)).tickFormat(function(e){return String(new Date(Number(e)).getDate())}));G.select(".domain").remove(),G.selectAll(".tick line").remove();var W,z=(F=o&&g?i.scaleLinear().domain([0,1.1*_]).range([h,d]):g?I:N).ticks(2),V=z.filter(function(e){return 0!==e}),q=0===S&&0===w;o?(B=f.append("g").call(i.axisLeft(j).ticks(4).tickPadding(20).tickFormat(function(e){return"".concat(i.format(".0%")(e))}
2)).attr("y",6),U=f.append("g").call(i.axisLeft(F).tickValues(z).tickPadding(20).tickFormat(function(e){return"".concat(i.format(".0%")(e))})).attr("y",6)):(B=f.append("g").call(i.axisLeft(q?j:k).ticks(4).tickPadding(20).tickFormat(function(e){return"".concat(i.format("~s")(e))})).attr("y",6),U=f.append("g").call(i.axisLeft(F).tickValues(V).tickPadding(20).tickFormat(function(e){return"".concat(i.format("~s")(e))})).attr("y",6)),B.select(".domain").remove(),B.selectAll(".tick line").remove(),B.selectAll("g.tick").select("text").style("font-size","13px").style("font-weight",500),G.selectAll("g.tick").select("text").style("font-size","13px").style("font-weight",500),U.select(".domain").remove(),U.selectAll(".tick line").remove(),U.selectAll("g.tick").select("text").style("font-size","13px").style("font-weight",400).style("fill",c.colourValues.gray300),W=0===S&&0===w?h:k(0),f.append("line").attr("x1",0).attr("y1",W).attr("x2",u).attr("y2",W).attr("stroke",c.colourValues.gray100).attr("stroke-width",1)},[g,r,o]),(0,f.jsxs)("div",y(y({},{className:"position-x1n2onr6","data-style-src":"Diverging/index.tsx:11"}),{},{id:"stacked-container",children:[(0,f.jsx)("svg",{ref:p,width:"100%",height:"378"}),(0,f.jsx)("div",y(y({},{className:"display-x78zum5 alignItems-x6s0dn4 justifyContent-x13a6bvl marginTop-x14vqqas","data-style-src":"Diverging/index.tsx:14"}),{},{children:(0,f.jsx)(s.Input.Toggle,{name:"toggleIVT",id:"toggleIVT",value:g,onFormValue:function(e){var t=e.value;h(t)},label:(0,l.language)("Scale IVT for easier comparison")})}))]}))}},59878:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=function(){for(var e,t=[],n=[],r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];if(o.forEach(function(e){l(e,t,n)}),0===t.length)return(0,i.default)(n);var c=a.props.apply(a,t),u=null!==(e=null==c?void 0:c.className)&&void 0!==e?e:"";return(0,i.default)(u,n)};var o,a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=(o=n(99870))&&o.__esModule?o:{default:o};function l(e,t,n){e&&(Array.isArray(e)?e.forEach(function(e){l(e,t,n)}):"string"!=typeof e?t.push(e):n.push(e))}},59958:(e,t,n)=>{"use strict";e.exports=n.p+"09eae71facdf06c29c4c.svg"},60015:(e,t,n)=>{"use strict";e.exports=n.p+"fd4c23fc95897c812c28.svg"},60112:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(76449),s=n(55618),c=n(28426),u=n(27805),d=n(89748),f=n(99226),p=n(94653),m=n(78395),g=n(31085);function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e){var t,n=e.data,o=void 0===n?{}:n,a=e.isLoading,b=e.handlePagination,v=e.filters,A=e.onFilterChange,_=e.onRemoveAccount,S=e.onAddMplatConfiguration,w=e.nonAssignedMplatAPIResponse,O=e.isLoadingNonAssigned,j=e.handlePaginationNonAssigned,k=e.f
2iltersNonAssigned,E=e.setFiltersNonAssigned,N=e.supportedPlatforms,I=e.createMplat,P=e.configuredPlatforms,T=y((0,r.useState)(!1),2),C=T[0],R=T[1],M=y((0,r.useState)(!1),2),L=M[0],D=M[1],B=(0,(0,f.A)().allowedRoles)(["ROOT","ADMIN"]),U=[{label:(0,d.A)("Configuration Name"),name:"configurationName",type:"radio",options:[{label:(0,d.A)("Contains"),name:"contains",type:"text"}]}].concat(function(e){if(Array.isArray(e))return x(e)}(t=B&&N.length>0?[{label:(0,d.A)("Platform"),name:"platform",type:"checkbox",options:N.map(function(e){return{name:e.descriptive_name.toLowerCase(),label:e.descriptive_name,shortLabel:e.descriptive_name,type:"checkbox",value:!1}})}]:[])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return(0,g.jsxs)(c.A.Page,{type:"settings",children:[(0,g.jsx)(u.default,{type:"settings",title:(0,d.A)("Multi Platform Configurations"),text:(0,d.A)("Manage the configurations assigned to this workspace"),contentRight:(0,g.jsx)(i.default,{iconLeft:["far","tags"],id:"open-mplat-configs-button",name:"open-mplat-configs-button","data-testid":"open-mplat-configs-button",onClick:function(){return R(!0)},children:(0,d.A)("Add Configurations")})}),(0,g.jsx)("div",{className:"mb-4",children:(0,g.jsx)(l.default,{filterConfig:U,initialValues:v,onFilterChange:A},"mplat-filters-".concat(N.length))}),(0,g.jsx)(p.A,{onAction:_,mplatAPIResponse:o,isLoading:a,handlePagination:b,filters:v,setFilters:A,action:"remove",actionDisabled:function(e){return e&&e.children_selected_count!==e.children_unavailable_count},supportedPlatforms:N}),(0,g.jsx)(s.default,{open:C,onClose:function(){return R(!1)},heading:(0,d.A)("Add configurations to this workspace"),subtitle:(0,d.A)("View the clicks being monitored by your Lunio account"),contentRight:(0,g.jsx)(i.default,{"data-testid":"create-new-mplat-button",onClick:function(){D(!0),R(!1)},children:(0,d.A)("Add New Mplat")}),children:(0,g.jsx)(p.A,{onAction:S,mplatAPIResponse:w,isLoading:O,handlePagination:j,filters:k,setFilters:E,supportedPlatforms:N,action:"add",actionDisabled:function(e){return e&&e.children_unavailable_count>0},onClose:R})}),(0,g.jsx)(s.default,{open:L,onClose:function(){return D(!1)},heading:(0,d.A)("Add configurations to this workspace"),children:(0,g.jsx)(m.A,{onCreatePlatform:function(e){I(e)},creatingUser:L,submitButtonText:(0,d.A)("Create and Add User"),supportedPlatforms:{data:N},configuredPlatforms:P,onClose:function(){return D(!1)}})})]})}b.propTypes={data:a().object,isLoading:a().bool.isRequired,handlePagination:a().func.isRequired,filters:a().object.isRequired,onFilterChange:a().func.isRequired,onRemoveAccount:a().func.isRequired,onAddMplatConfiguration:a().func.isRequired,nonAssignedMplatAPIResponse:a().object.isRequired,isLoadingNonAssigned:a().bool.isRequired,handlePaginationNonAssigned:a().func.isRequired,filtersNonAssigned:a().object.isRequired,setFiltersNonAssigned:a().func.isRequired,supportedPlatforms:a().array.isRequired,createMplat:a().func.isRequired,configuredPlatforms:a().array.isRequired};const v=b},60156:(e,t,n)=>{"use strict";n.r(t),n.d(t,{language:()=>r.A,localToUtcDateOffset:()=>o.Ay,localToUtcDateOffsetTimestamp:()=>o.YQ,utcToLocalDateOffset:()=>o.k5});var r=n(89748),o=n(34406)},60235:(e,t,n)=>{"use strict";e.exports=n.p+"28cdc36bcf31f7e4215d.svg"},60466:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(96742),s=n(31085);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=a.default;p(".transition-x1ydqnv1{transition:width .1s ease-in-out}",2e3),p(".width-x1hfn5x7{width:260px}",4e3),p(".height-x5yr21d{height:100%}",4e3),p(".display-x3nfvp2{display:inline-flex}",3e3),p(".flexDirection-xdt5ytf{flex-direction:column}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".overflow-xb3r6kr{overflow:hidden}",2e3),p(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),p(".padding-xe8ttls{padding:8px}",1e3),p(".paddingTop-xyamay9{padding-top:16px}",4e3),p(".paddingBottom-xwib8y2{padding-bottom:8px}",4e3),p(".display-xfk6m8::-webkit-scrollbar{display:none}",8e3),p(".overflowY-x1odjw0f{overflow-y:auto}",4e3),p(".width-x1247r65{width:60px}",4e3),p(".width-xh8yej3{width:100%}",4e3),p(".display-x1yz037k{display:inline-flex!important}",3e3),p(".position-x10l6tqk{position:absolute}
2",3e3),p(".top-x13vifvy{top:0}",4e3),p(".right-x3m8u43{right:0}",4e3),p(".bottom-x1ey2m1c{bottom:0}",4e3),p(".left-xu96u03{left:0}",4e3),p(".backgroundColor-x1r1mewj{background-color:#000}",3e3),p(".opacity-xbyyjgo{opacity:.5}",3e3),p(".zIndex-x1355qak{z-index:20}",3e3),p(".display-x1s85apg{display:none}",3e3),p(".display-x1lliihq{display:block}",3e3);var m={menuContainer:{transition:"transition-x1ydqnv1",width:"width-x1hfn5x7",height:"height-x5yr21d",display:"display-x3nfvp2",flexDirection:"flexDirection-xdt5ytf",alignItems:"alignItems-x6s0dn4",overflow:"overflow-xb3r6kr",backgroundColor:"backgroundColor-x18oya0d",padding:"padding-xe8ttls",paddingTop:"paddingTop-xyamay9",paddingBottom:"paddingBottom-xwib8y2","::-webkit-scrollbar_display":"display-xfk6m8",overflowY:"overflowY-x1odjw0f",$$css:"Menu/index.tsx:7"},compressedMenu:{width:"width-x1247r65",$$css:"Menu/index.tsx:24"},overlay:{position:"position-x10l6tqk",top:"top-x13vifvy",right:"right-x3m8u43",bottom:"bottom-x1ey2m1c",left:"left-xu96u03",backgroundColor:"backgroundColor-x1r1mewj",opacity:"opacity-xbyyjgo",zIndex:"zIndex-x1355qak",display:"display-x1s85apg",$$css:"Menu/index.tsx:34"},overlayVisible:{display:"display-x1lliihq",$$css:"Menu/index.tsx:45"}};function g(e){var t=e.children,n=(0,l.useSidebarContext)(),r=n.menuIsHovered,o=n.setMenuIsHovered,a=n.isCompressed;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",d(d({},i.props(a&&!r?[m.menuContainer,m.compressedMenu]:m.menuContainer)),{},{"data-testid":"sidebar-menu",onMouseEnter:function(){return o(!0)},onMouseLeave:function(){return o(!1)},children:(0,s.jsx)("div",d(d({},{className:"height-x5yr21d width-xh8yej3 display-x1yz037k flexDirection-xdt5ytf alignItems-x6s0dn4","data-style-src":"Menu/index.tsx:27"}),{},{children:t}))})),(0,s.jsx)("div",d({},i.props(m.overlay,!1)))]})}g.displayName="Sidebar.Menu",t.default=g},60544:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(14041),o=n(9260),a=n(62720),i=n(13571),l=n(1781),s=n(30021),c=n(28426),u=n(27805),d=n(89748),f=n(88133),p=n(93033),m=n(77730),g=n(80111),y=n(24284),h=n(10068),x=n(79106),b=n(31085);function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const _=function(){var e,t=v((0,r.useState)(0),2),n=t[0],A=t[1],_=v((0,r.useState)([]),2),S=_[0],w=_[1],O=v((0,r.useState)(!1),2),j=O[0],k=O[1],E=v((0,r.useState)(null),2),N=E[0],I=E[1],P=v((0,r.useState)(!1),2),T=P[0],C=P[1],R=v((0,g.A)(),1)[0],M=v((0,m.A)(),1)[0],L=v((0,r.useState)({defaults:{sorting:{sortKey:"percent_invalid",sortOrder:"desc"},api:{endpoint:"/placement/blacklist",responseDataKey:"data"}},accountFilter:{globalAccountFilter:!0},campaignFilter:!1,datePicker:{globalDates:!1},filters:[{label:(0,d.A)("Placement Type"),name:"placementType",type:"checkbox",googleOnly:!0,queryTranslator:"arrayOfNames",queryKey:"placement_type",options:[{label:(0,d.A)("Website"),shortLabel:(0,d.A)("Website"),type:"checkbox",name:"website",value:!0},{label:(0,d.A)("Mobile App"),shortLabel:(0,d.A)("Mobile App"),type:"checkbox",name:"mobileapp",value:!0}]},{label:(0,d.A)("Placement"),name:"placement",type:"radio",queryKey:"placement",googleOnly:!0,options:[{label:(0,d.A)("Placement"),shortLabel:(0,d.A)("Placement"),type:"text",name:"equals",value:""}]}]}),2),D=L[0],B=L[1],U=(0,f.gC)("/placement/blacklist/disable","POST"),F=(0,f.gC)("/placement/blacklist/enable","POST");function G(){(0,y.A)((0,d.A)("Placement statuses were queued for processing and will be updated within the next few minutes"),"success"),C(!1),k(!1),A(function(e){return e+1}),w([])}function W(){(0,y.A)((0,d.A)("Placement status update failed to process"),"error"),C(!1),k(!1)}return(0,b.jsxs)(c.A.Page,{type:"main",children:[(0,b.jsx)(u.default,{title:(0,d.A)("Placement Exclusions"),text:(0,d.A)("Placements excluded on your account"),contentRight:(0,b.jsx)(p.A,{roles:["ROOT","ADMIN"],featureFlags:["GOOGLE_PLACEMENT_BLOCKING"],children:(0,b.jsx)(l.default,{content:(0,d.A)("Manually add this Placement to the exclusion list"),children:(0,b.jsx)(x.A,{selectedAccounts:R.selectedAwAccounts})})})}),(0,b.jsx)(p.A,{featureFlagsNOT:["GOOGLE_PLACEMENT_BLOCKING"],AND:!(null==M||null===(e=M.selectedWorkspace)||void 0===e||!e.HAS_GOOGLE_PLACEMENT_BLOCKING_DATA),children:(0,b.jsx)(s.default,{className:"mb-4","data-testid":"placement-blocking-disabled-notice",children:(0,d.A)('We\'re showing these existing placements for reference, but not adding new ones. You can toggle the "Google Placement Blocking" feature flag from your Account Settings page to turn this back on.')})}),(0,b.jsx)(h.A,{onDataModelChange:B,dataModel:D,className:"mb-4",noDataSubTitle:(0,d.A)("Add some placement exclusions to see them appear here."),leftpinnedcolumns:1,isSelectable:!0,onSelectedRows:w,resetSelectionTrigger:n,contentRight:S.length>0&&(0,b.jsx)(a.default.Select,{onChange:function(e){I(e),k(!0)},id:"change-status-select",style:{width:180,marginLeft:16},value:{label:(0,d.A)("Change Status"),value:0},options:[{label:(0,d.A)("Disabled"),value:"disable"},{label:(0,d.A)("Active"),value:"active"}]}),children:function(e){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{"data-sortable-id":"placement",children:(0,d.A)("Placement")}),(0,b.jsx)("th",{"data-sortable-id":"placement_type",children:(0,d.A)("Placement Type")}),(0,b.jsx)("th",{"data-sortable-id":"percent_invalid",children:(0,d.A)("IVT %")}),(0,b.jsx)("th",{children:(0,d.A)("Status")})]})}),(0,b.jsxs)("tbody",{children:[(0,b.jsx)("td",{"data-disabled":0===(null==e?void 0:e.is_enabled),children:null==e?void 0:e.placement}),(0,b.jsx)("td",{"data-disabled":0===(null==e?void 0:e.is_enabled),children:null==e?void 0:e.placement_type}),(0,b.jsx)("td",{"data-disabled":0===(null==e?void 0:e.is_enabled),children:null==e?void 0:e.percent_invalid}),(0,b.jsx)("td",{"data-disabled":0===(null==e?void 0:e.is_enabled),children:0===(null==e?void 0:e.is_enabled)?(0,d.A)("Disabled"):(0,d.A)("Active")}
2)]})]})}}),(0,b.jsxs)(i.default,{open:j,onClose:function(){return k(!1)},children:[(0,b.jsx)(i.default.Header,{title:(0,d.A)("Confirm Placement Exclusions Status Change")}),(0,b.jsx)(i.default.Content,{children:(0,b.jsx)(s.default,{children:(0,d.A)("Are you sure you want to set the :selectionCount selected Placement :ExclusionPlural to :status",{selectionCount:S.length,status:null==N?void 0:N.label,ExclusionPlural:S.length>1?(0,d.A)("Exclusions"):(0,d.A)("Exclusion")})})}),(0,b.jsxs)(i.default.Actions,{children:[(0,b.jsx)(o.default,{onClick:function(){k(!1),I(null)},preset:"outline","data-testid":"cancel-confirm-change-state-button",children:(0,d.A)("Cancel")}),(0,b.jsx)(o.default,{onClick:function(){return function(){C(!0);var e=S.map(function(e){return e.placement});"disable"===N.value?U.mutate({placements:e},{onSuccess:function(){G()},onError:function(){W()}}):F.mutate({placements:e},{onSuccess:function(){G()},onError:function(){W()}})}()},"data-testid":"confirm-change-state-button",loading:T,children:(0,d.A)("Continue")})]})]})]})}},60551:(e,t,n)=>{"use strict";e.exports=n.p+"42630f8fb499a51f84cc.svg"},60591:(e,t,n)=>{"use strict";e.exports=n.p+"56fda3b1ec2b29fa0396.svg"},60619:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=f(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=f(n(4921)),s=f(n(68701)),c=f(n(77223)),u=f(n(9260)),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=o.default;x(".position-x1n2onr6{position:relative}",3e3),x(".width-x1hfn5x7{width:260px}",4e3),x(".padding-xfawy5m{padding:4px}",1e3),x(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),x(".borderRadius-xur7f20{border-radius:8px}",2e3),x(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),x(".position-x10l6tqk{position:absolute}",3e3),x(".left-xtmbad2{left:268px}",4e3),x(".top-x13vifvy{top:0}",4e3),x(".width-x1wfbf8w{width:%100}",4e3),x(".padding-x1tamke2{padding:16px}",1e3),x(".paddingBottom-x18d9i69{padding-bottom:0}",4e3),x(".padding-xe8ttls{padding:8px}",1e3),x(".display-x78zum5{display:flex}",3e3),x(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),x(".left-x1nx7grf{left:unset}",4e3),x(".right-x1tl44f9{right:268px}",4e3);var b={FiltersInputMenuContainer:{position:"position-x10l6tqk",left:"left-xtmbad2",top:"top-x13vifvy",width:"width-x1hfn5x7",backgroundColor:"backgroundColor-x18oya0d",borderRadius:"borderRadius-xur7f20",border:"border-x180m19u",$$css:"FilterMenu/index.tsx:19"},right:{left:"left-x1nx7grf",right:"right-x1tl44f9",$$css:"FilterMenu/index.tsx:39"}};function v(e){var t,n,r,o=e.filters,f=e.onFilterChange,p=e.onFilterApply,m=e.leftSide,y=void 0===m||m,x=(n=(0,a.useState)(null),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=x[0],A=x[1];function _(e){A(e)}return(0,a.useEffect)(function(){if(v){var e=o.find(function(e){return e.name===v.name});A(e||null)}},[o,v]),(0,d.jsxs)("div",g(g({},{className:"position-x1n2onr6 width-x1hfn5x7 padding-xfawy5m backgroundColor-x18oya0d borderRadius-xur7f20 border-x180m19u","data-style-src":"FilterMenu/index.tsx:11"}),{},{children:[v&&(0,d.jsxs)("div",g(g({},i.props(b.FiltersInputMenuContainer,!y&&b.right)),{},{onKeyDown:function(e){"Enter"===e.key&&"INPUT"===e.target.tagName&&(e.preventDefault(),e.stopPropagation(),p())},role:"presentation",children:[(0,d.jsx)("div",g(g({},{className:"width-x1wfbf8w padding-x1tamke2 paddingBottom-x18d9i69","data-style-src":"FilterMenu/index.tsx:28"}),{},{children:null==v||null===(t=v.options)||void 0===t?void 0:t.map(function(e){return(0,d.jsx)(s.default,{filterOption:e,filters:o,selectedConfigItem:v,setFilters:f},e.name)})})),(0,d.jsx)(c.default,{}),(0,d.jsx)("div",g(g({},{className:"width-x1wfbf8w padding-xe8ttls display-x78zum5 justifyContent-x13a6bvl","data-style-src":"FilterMenu/index.tsx:33"}),{},{children:(0,d.jsx)(u.default,{"data-testid":"filters-menu-apply-button",onClick:function(){return p()},size:"sm",children:"Apply filter"})}))]})),o.map(function(e){return(0,d.jsx)(l.default,{configItem:e,onSelectedConfigItem:_,selectedConfigItem:v,leftSide:y},e.name)})]}))}v.displayName="FiltersMenu",t.default=v},60709:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(14041),i=n(60156),l=n(45365),s=n(34016),c=n(18141),u=n(31085);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=o.default;y(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),y(".flexShrink-x2lah0s{flex-shrink:0}",3e3),y(".padding-xggk2y7{padding:24px}",1e3),y(".borderTop-x1gzighp{border-top:1px solid var(--gray300-x1xk3734)}",2e3),y(".display-x78zum5{display:flex}",3e3),y(".flexDirection-xdt5ytf{flex-direction:column}",3e3),y(".height-x1dr59a3{height:100vh}",4e3),y(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),y(".marginRight-x1wsuqlk{margin-right:12px}",4e3),y(".flex-x98rzlu{flex:1}",2e3),y(".overflowY-x1odjw0f{overflow-y:auto}",4e3),y(".minHeight-x2lwn1j{min-height:0}",4e3),y(".alignItems-x6s0dn4{align-items:center}",3e3),y(".padding-x1tamke2{padding:16px}",1e3),y(".borderRadius-xur7f20{border-radius:8px}",2e3),y(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),y(".cursor-x1ypdohk{cursor:pointer}",3e3),y(".marginBottom-xod5an3{margin-bottom:12px}",4e3),y(".backgroundColor-xjbqb8w{background-color:transparent}",3e3),y(".width-xh8yej3{width:100%}",4e3),y(".textAlign-xdpxx8g{text-align:left}",3e3),y(".borderColor-x1gn6vs3{border-color:var(--oldBrand600-x1t41vhw)}",2e3),y(".backgroundColor-x1itpvea{background-color:var(--oldBrand50-x1t4s9vw)}",3e3),y(".marginLeft-xet2fuk{margin-left:8px}",4e3),y(".fontWeight-x1s688f{font-weight:600}",3e3),y(".fontSize-x1j61zf2{font-size:16px}",3e3),y(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),y(".marginBottom-x12nagc{margin-bottom:4px}",4e3),y(".color-x75csi3{color:var(--black400-x1u7ngzx)}",3e3),y(".fontWeight-xo1l8bm{font-weight:400}",3e3),y(".fontSize-xif65rj{font-size:14px}",3e3),y(".backgroundColor-x1c48dnr{background-color:var(--warning50-xtmumxw)}",3e3),y(".border-x1xtne75{border:1px solid var(--warning400-xebb3xv)}",1e3),y(".padding-xe8ttls{padding:8px}",1e3),y(".justifyContent-x1qughib{justify-content:space-between}",3e3),y(".position-x1n2onr6{position:relative}",3e3),y(".top-xndqk7f{top:4px}",4e3),y(".fontWeight-x1ny7uwr{font-weight:200}",3e3),y(".fontSize-x10v4619{font-size:16px!important}",3e3),y(".marginRight-xyo1k6t{margin-right:10px}",4e3),y(".height-xnfxvih{height:116px}",4e3),y(".flexDirection-x1q0g3np{flex-direction:row}",3e3),y(".height-x5yr21d{height:100%}",4e3),y(".borderLeft-x1bkmhv1{border-left:1px solid var(--gray300-x1xk3734)}",2e3),y(".borderRight-x78ysab{border-right:1px solid var(--gray300-x1xk3734)}",2e3),y(".fontFamily-x122x9cr{font-family:Inter}",3e3),y(".fontSize-x1pvqxga{font-size:24px}",3e3),y(".lineHeight-xcgk4ki{line-height:32px}",3e3),y(".lineHeight-x1o2sk6j{line-height:24px}",3e3),y(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),y(".fontStyle-x1k4tb9n{font-style:italic}",3e3),y(".lineHeight-x1fc57z9{line-height:20px}",3e3),y(".top-xxk6nc9{top:3px}",4e3),y(".marginRight-x1db2dqx{margin-right:8px}",4e3),y(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3);var h=[{value:(0,i.language)("Cautious"),apiValue:"LOW",title:(0,i.language)("Cautious"),badgeText:(0,i.language)("Low Aggression"),subtitle:(0,i.language)("Blocks traffic Lunio considers clearly invalid. Best for reducing the risk of blocking genuine users.")},{value:(0,i.language)("Balanced"),apiValue:"MEDIUM",title:(0,i.language)("Balanced"),badgeText:(0,i.language)("Medium Aggression"),subtitle:(0,i.language)("Balances waste reduction against preserving genuine traffic.")},{value:(0,i.language)("Aggressive"),apiValue:"HIGH",title:(0,i.language)("Aggressive"),badgeText:(0,i.language)("High Aggression"),subtitle:(0,i.language)("Blocks more suspicious traffic to maximise waste reduction. Best for maximising redistributed ad spend.")}];function x(e){var t=h.findIndex(function(t){return t.apiValue===e});return-1===t?h.findIndex(function(e){return"MEDIUM"===e.apiValue}):t}t.A=function(e){var t,n,r,o,d,f,m,y,b,v,A,_,S,w,O,j,k,E,N,I,P=e.isOpen,T=e.onClose,C=e.workspaces,R=e.queryKey,M=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)(x(null!==(t=null===(n=C[0])||void 0===n?void 0:n.protection_level)&&void 0!==t?t:"MEDIUM")),2),L=M[0],D=M[1];function B(){T()}(0,a.useEffect)(function(){var e,t;D(x(null!==(e=null===(t=C[0])||void 0===t?void 0:t.protection_level)&&void 0!==e?e:"MEDIUM"))},[C]);var U=(0,s.useQueryClient)(),F=(0,s.useMutation)("/ivt-controls/update","PUT");return(0,u.jsx)(l.SideContentPanel,{open:P,onClose:function(){return T()},noPadding:!0,children:(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 flexDirection-xdt5ytf height-x1dr59a3 padding-xggk2y7","data-style-src":"SetIVTLevelPanel/index.tsx:25"}),{},{children:[(0,u.jsxs)("div",p(p({},{className:"flexShrink-x2lah0s marginBottom-x1e56ztr","data-style-src":"SetIVTLevelPanel/index.tsx:16"}),{},{children:[(0,u.jsx)(l.Text,{preset:"formHeading",as:"h4",children:(0,i.language)("Update your IVT controls")}),(0,u.jsx)(l.Text,p(p({preset:"formSubHeading"},{className:"marginBottom-x1e56ztr","data-style-src":"SetIVTLevelPanel/index.tsx:13"}),{},{children:(0,i.language)("Select from the three options below")}))]})),(0,u.jsxs)("div",p(p({},{className:"flex-x98rzlu overflowY-x1odjw0f minHeight-x2lwn1j","data-style-src":"SetIVTLevelPanel/index.tsx:38"}),{},{children:[(0,u.jsxs)(l.TabbedContent,{tabs:[{label:(0,i.language)("Cautious")},{label:(0,i.language)("Balanced")},{label:(0,i.language)("Aggressive")}],activeTab:L,onTabChange:function(e){return D(e)},className:"mb-8",children:[(0,u.jsxs)("div",{children:[(0,u.jsx)(l.Badge,{className:"mb-3",colour:"oldBrand100",fontColour:"oldBrand700",children:(0,i.language)("Low Aggression")}),(0,u.jsx)(l.Text,{className:"mb-3",fontSize:"18",colour:"gray700",children:(0,i.language)("Blocks traffic Lunio considers clearly invalid. Best for reducing the risk of blocking genuine users.")}),(0,u.jsxs)("div",p(p({},{className:"height-xnfxvih width-xh8yej3 display-x78zum5 flexDirection-x1q0g3np justifyContent-x1qughib borderRadius-xur7f20 border-xct47cs marginBottom-xod5an3","data-style-src":"SetIVTLevelPanel/index.tsx:91"}),{},{children:[(0,u.jsxs)("div",p(p({},{className:"width-xh8yej3 height-x5yr21d padding-x1tamke2","data-style-src":"SetIVTLevelPanel/index.tsx:101"}),{},{children:[(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-x1s688f fontSize-x1pvqxga lineHeight-xcgk4ki color-x1jsblnb","data-style-src":"SetIVTLevelPanel/index.tsx:110"}),{},{children:null!==(r=null===(o=C[0])||void 0===o?void 0:o.cautious_ivt)&&void 0!==r?r:"â"})),(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-xo1l8bm fontSize-x1j61zf2 lineHeight-x1o2sk6j color-x75csi3","data-style-src":"SetIVTLevelPanel/index.tsx:117"}),{},{children:(0,i.language)("Daily IVT")}))]})),(0,u.jsxs)("div",p(p({},{className:"width-xh8yej3 height-x5yr21d padding-x1tamke2 borderLeft-x1bkmhv1 borderRight-x78ysab","data-style-src":"SetIVTLevelPanel/index.tsx:101; SetIVTLevelPanel/index.tsx:106"}),{},{children:[(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-x1s688f fontSize-x1pvqxga lineHeight-xcgk4ki color-x1jsblnb","data-style-src":"SetIVTLevelPanel/index.tsx:110"}),{},{children:null!==(d=null===(f=C[0])||void 0===f?void 0:f.cautious_redistributed_spend)&&void 0!==d?d:"â"})),(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-xo1l8bm fontSize-x1j61zf2 lineHeight-x1o2sk6j color-x75csi3","data-style-src":"SetIVTLevelPanel/index.tsx:117"}),{},{children:(0,i.language)("Redistributed spend")}))]})),(0,u.jsxs)("div",p(p({},{className:"width-xh8yej3 height-x5yr21d padding-x1tamke2","data-style-src":"SetIVTLevelPanel/index.tsx:101"}),{},{children:[(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-x1s688f fontSize-x1pvqxga lineHeight-xcgk4ki color-x1jsblnb","data-style-src":"SetIVTLevelPanel/index.tsx:110"}),{},{children:null!==(m=null===(y=C[0])||void 0===y?void 0:y.cautious_false_positive)&&void 0!==m?m:"â"})),(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-xo1l8bm fontSize-x1j61zf2 lineHeight-x1o2sk6j color-x75csi3","data-style-src":"SetIVTLevelPanel/index.tsx:117"}),{},{children:(0,i.language)("False positives")}))]}))]})),(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 color-x1r9fet4 fontFamily-x122x9cr fontWeight-xo1l8bm fontStyle-x1k4tb9n fontSize-xif65rj lineHeight-x1fc57z9","data-style-src":"SetIVTLevelPanel/index.tsx:124"}),{},{children:[(0,u.jsx)(l.Icon,{name:["far","info-circle"],fontSize:14,className:"position-x1n2onr6 top-xxk6nc9 fontWeight-x1ny7uwr fontSize-x10v4619 marginRight-x1db2dqx color-xbdn2ka"}),(0,u.jsxs)("span",{children:[(0,i.language)("Figures are")," ",(0,u.jsx)("b",{children:(0,i.language)("estimates")})," ",(0,i.language)("modelled on your recent traffic, they are projections, not guarantees, and actual results will vary.")]})]}))]}),(0,u.jsxs)("div",{children:[(0,u.jsx)(l.Badge,{className:"mb-3",colour:"oldBrand100",fontColour:"oldBrand700",children:(0,i.language)("Medium Aggression")}),(0,u.jsx)(l.Text,{className:"mb-3",fontSize:"18",colour:"gray700",children:(0,i.language)("Balances waste reduction against preserving genuine traffic.")}
2),(0,u.jsxs)("div",p(p({},{className:"height-xnfxvih width-xh8yej3 display-x78zum5 flexDirection-x1q0g3np justifyContent-x1qughib borderRadius-xur7f20 border-xct47cs marginBottom-xod5an3","data-style-src":"SetIVTLevelPanel/index.tsx:91"}),{},{children:[(0,u.jsxs)("div",p(p({},{className:"width-xh8yej3 height-x5yr21d padding-x1tamke2","data-style-src":"SetIVTLevelPanel/index.tsx:101"}),{},{children:[(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-x1s688f fontSize-x1pvqxga lineHeight-xcgk4ki color-x1jsblnb","data-style-src":"SetIVTLevelPanel/index.tsx:110"}),{},{children:null!==(b=null===(v=C[0])||void 0===v?void 0:v.balanced_ivt)&&void 0!==b?b:"â"})),(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-xo1l8bm fontSize-x1j61zf2 lineHeight-x1o2sk6j color-x75csi3","data-style-src":"SetIVTLevelPanel/index.tsx:117"}),{},{children:(0,i.language)("Daily IVT")}))]})),(0,u.jsxs)("div",p(p({},{className:"width-xh8yej3 height-x5yr21d padding-x1tamke2 borderLeft-x1bkmhv1 borderRight-x78ysab","data-style-src":"SetIVTLevelPanel/index.tsx:101; SetIVTLevelPanel/index.tsx:106"}),{},{children:[(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-x1s688f fontSize-x1pvqxga lineHeight-xcgk4ki color-x1jsblnb","data-style-src":"SetIVTLevelPanel/index.tsx:110"}),{},{children:null!==(A=null===(_=C[0])||void 0===_?void 0:_.balanced_redistributed_spend)&&void 0!==A?A:"â"})),(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-xo1l8bm fontSize-x1j61zf2 lineHeight-x1o2sk6j color-x75csi3","data-style-src":"SetIVTLevelPanel/index.tsx:117"}),{},{children:(0,i.language)("Redistributed spend")}))]})),(0,u.jsxs)("div",p(p({},{className:"width-xh8yej3 height-x5yr21d padding-x1tamke2","data-style-src":"SetIVTLevelPanel/index.tsx:101"}),{},{children:[(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-x1s688f fontSize-x1pvqxga lineHeight-xcgk4ki color-x1jsblnb","data-style-src":"SetIVTLevelPanel/index.tsx:110"}),{},{children:null!==(S=null===(w=C[0])||void 0===w?void 0:w.balanced_false_positive)&&void 0!==S?S:"â"})),(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-xo1l8bm fontSize-x1j61zf2 lineHeight-x1o2sk6j color-x75csi3","data-style-src":"SetIVTLevelPanel/index.tsx:117"}),{},{children:(0,i.language)("False positives")}))]}))]})),(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 color-x1r9fet4 fontFamily-x122x9cr fontWeight-xo1l8bm fontStyle-x1k4tb9n fontSize-xif65rj lineHeight-x1fc57z9","data-style-src":"SetIVTLevelPanel/index.tsx:124"}),{},{children:[(0,u.jsx)(l.Icon,{name:["far","info-circle"],fontSize:14,className:"position-x1n2onr6 top-xxk6nc9 fontWeight-x1ny7uwr fontSize-x10v4619 marginRight-x1db2dqx color-xbdn2ka"}),(0,u.jsxs)("span",{children:[(0,i.language)("Figures are")," ",(0,u.jsx)("b",{children:(0,i.language)("estimates")})," ",(0,i.language)("modelled on your recent traffic, they are projections, not guarantees, and actual results will vary.")]})]}))]}),(0,u.jsxs)("div",{children:[(0,u.jsx)(l.Badge,{className:"mb-3",colour:"oldBrand100",fontColour:"oldBrand700",children:(0,i.language)("High Aggression")}),(0,u.jsx)(l.Text,{className:"mb-3",fontSize:"18",colour:"gray700",children:(0,i.language)("Blocks more suspicious traffic to maximise waste reduction. Best for maximising redistributed ad spend.")}),(0,u.jsxs)("div",p(p({},{className:"height-xnfxvih width-xh8yej3 display-x78zum5 flexDirection-x1q0g3np justifyContent-x1qughib borderRadius-xur7f20 border-xct47cs marginBottom-xod5an3","data-style-src":"SetIVTLevelPanel/index.tsx:91"}),{},{children:[(0,u.jsxs)("div",p(p({},{className:"width-xh8yej3 height-x5yr21d padding-x1tamke2","data-style-src":"SetIVTLevelPanel/index.tsx:101"}),{},{children:[(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-x1s688f fontSize-x1pvqxga lineHeight-xcgk4ki color-x1jsblnb","data-style-src":"SetIVTLevelPanel/index.tsx:110"}),{},{children:null!==(O=null===(j=C[0])||void 0===j?void 0:j.aggressive_ivt)&&void 0!==O?O:"â"})),(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-xo1l8bm fontSize-x1j61zf2 lineHeight-x1o2sk6j color-x75csi3","data-style-src":"SetIVTLevelPanel/index.tsx:117"}),{},{children:(0,i.language)("Daily IVT")}))]})),(0,u.jsxs)("div",p(p({},{className:"width-xh8yej3 height-x5yr21d padding-x1tamke2 borderLeft-x1bkmhv1 borderRight-x78ysab","data-style-src":"SetIVTLevelPanel/index.tsx:101; SetIVTLevelPanel/index.tsx:106"}),{},{children:[(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-x1s688f fontSize-x1pvqxga lineHeight-xcgk4ki color-x1jsblnb","data-style-src":"SetIVTLevelPanel/index.tsx:110"}),{},{children:null!==(k=null===(E=C[0])||void 0===E?void 0:E.aggressive_redistributed_spend)&&void 0!==k?k:"â"})),(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-xo1l8bm fontSize-x1j61zf2 lineHeight-x1o2sk6j color-x75csi3","data-style-src":"SetIVTLevelPanel/index.tsx:117"}),{},{children:(0,i.language)("Redistributed spend")}))]})),(0,u.jsxs)("div",p(p({},{className:"width-xh8yej3 height-x5yr21d padding-x1tamke2","data-style-src":"SetIVTLevelPanel/index.tsx:101"}),{},{children:[(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-x1s688f fontSize-x1pvqxga lineHeight-xcgk4ki color-x1jsblnb","data-style-src":"SetIVTLevelPanel/index.tsx:110"}),{},{children:null!==(N=null===(I=C[0])||void 0===I?void 0:I.aggressive_false_positive)&&void 0!==N?N:"â"})),(0,u.jsx)("p",p(p({},{className:"fontFamily-x122x9cr fontWeight-xo1l8bm fontSize-x1j61zf2 lineHeight-x1o2sk6j color-x75csi3","data-style-src":"SetIVTLevelPanel/index.tsx:117"}),{},{children:(0,i.language)("False positives")}))]}))]})),(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 color-x1r9fet4 fontFamily-x122x9cr fontWeight-xo1l8bm fontStyle-x1k4tb9n fontSize-xif65rj lineHeight-x1fc57z9","data-style-src":"SetIVTLevelPanel/index.tsx:124"}),{},{children:[(0,u.jsx)(l.Icon,{name:["far","info-circle"],fontSize:14,className:"position-x1n2onr6 top-xxk6nc9 fontWeight-x1ny7uwr fontSize-x10v4619 marginRight-x1db2dqx color-xbdn2ka"}),(0,u.jsxs)("span",{children:[(0,i.language)("Figures are")," ",(0,u.jsx)("b",{children:(0,i.language)("estimates")})," ",(0,i.language)("modelled on your recent traffic, they are projections, not guarantees, and actual results will vary.")]})]}))]})]}),(0,u.jsxs)("div",p(p({},{className:"backgroundColor-x1c48dnr border-x1xtne75 borderRadius-xur7f20 padding-xe8ttls display-x78zum5 justifyContent-x1qughib","data-style-src":"SetIVTLevelPanel/index.tsx:76"}),{},{children:[(0,u.jsx)(l.Icon,{name:["far","info-circle"],fontSize:14,colour:"warning500",className:"position-x1n2onr6 top-xndqk7f fontWeight-x1ny7uwr fontSize-x10v4619 marginRight-xyo1k6t"}),(0,u.jsx)("div",{children:(0,u.jsxs)("span",{children:[(0,u.jsx)(l.Text,{colour:"warning700",fontSize:"14",weight:"300",children:(0,i.language)("Treat this as a long-term protection setting. Select your level and let Lunio do the rest.")}),(0,u.jsx)(l.Text,{colour:"warning700",fontSize:"14",weight:"700",children:(0,i.language)("Do not change this setting based on recent IVT spikes or short-term traffic fluctuations.")})]})})]}))]})),(0,u.jsx)("div",p(p({},{className:"padding-xggk2y7 borderTop-x1gzighp flexShrink-x2lah0s","data-style-src":"SetIVTLevelPanel/index.tsx:20"}),{},{children:(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 justifyContent-x13a6bvl","data-style-src":"SetIVTLevelPanel/index.tsx:31"}),{},{children:[(0,u.jsx)(l.Button,p(p({},{className:"marginRight-x1wsuqlk","data-style-src":"SetIVTLevelPanel/index.tsx:35"}),{},{onClick:B,preset:"outline","data-testid":"set-ivt-level-cancel-button",children:(0,i.language)("Cancel")}
2)),(0,u.jsx)(l.Button,{onClick:function(){var e={workspaces:C.map(function(e){return e.workspace_id}),protection_level:h[L].apiValue||"MEDIUM"};F.mutate(e,{onSuccess:function(){R&&U.invalidateQueries([R]),(0,c.toastNotification)((0,i.language)("IVT settings have been successfully updated"),"success"),B()},onError:function(){(0,c.toastNotification)((0,i.language)("Failed to update IVT settings"),"error")}})},"data-testid":"set-ivt-level-submit-button",children:(0,i.language)("Update protection level")})]}))}))]}))})}},60769:(e,t,n)=>{"use strict";function r(e){if(!e)return"";var t=e.toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}n.d(t,{o:()=>r})},60944:(e,t,n)=>{"use strict";n.d(t,{A:()=>S}),n(14041);var r=n(1781),o=n(17419),a=n(28426),i=n(79135),l=n(96956),s=n(27805),c=n(89748),u=n(19863),d=n(27333),f=n(62161),p=n(96182),m=n(93033),g=n(99226),y=n(89541),h=n(13497),x=n(31085);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e,t,n){return(t=function(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S=function(e){var t,n,b,S,w,O,j=e.filters,k=e.onFilterChange,E=e.handlePagination,N=e.handleSort,I=(0,d.st)("/platform/analytics/device",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},j)),P=I.data,T=I.isLoading,C="google"===(null===(t=(w=(0,p.A)(),O=1,function(e){if(Array.isArray(e))return e}(w)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(w,O)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(w,O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].selectedPlatform)||void 0===t?void 0:t.platform_name),R="TRIAL"===(0,g.A)().lunioStatus;return(0,x.jsxs)(a.A.Page,{type:"main",children:[(0,x.jsx)(s.default,{title:"".concat((0,c.A)("Ad Stats")," - ").concat((0,c.A)("Device")),text:(0,c.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,x.jsx)(h.A,{filters:j,exportType:C?"google_campaign":"mplat_device"})}),(0,x.jsx)(y.A,{filters:j,onFilterChange:k}),(0,x.jsx)("div",{className:"mt-4"}),(0,x.jsx)(f.A,{rows:null==P||null===(n=P.result)||void 0===n?void 0:n.devices,isLoading:T,totalPages:null==P||null===(b=P.result)||void 0===b||null===(b=b.pagination)||void 0===b?void 0:b.last_page,totalItems:null==P||null===(S=P.result)||void 0===S||null===(S=S.pagination)||void 0===S?void 0:S.total,pageNumber:j.page,handlePagination:E,handleSorting:N,limit:j.limit,sorting:{sortKey:j.sortKey,sortOrder:j.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("thead",{children:(0,x.jsxs)("tr",{children:[(0,x.jsx)("th",{children:(0,c.A)("Device")}),(0,x.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,
2c.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,c.A)("Legitimate")}),(0,x.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,c.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,c.A)("Suspicious")}),(0,x.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,c.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,c.A)("SIVT Clicks")}),(0,x.jsx)(m.A,{AND:!R,children:(0,x.jsx)("th",{"data-testid":"givt","data-tooltip":(0,c.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,c.A)("GIVT Clicks")})}),(0,x.jsx)("th",{"data-tooltip":(0,c.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,c.A)("Total IVT")}),(0,x.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,c.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,c.A)("Total Clicks")}),(0,x.jsx)("th",{"data-tooltip":(0,c.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,c.A)("All Tracked Clicks")}),(0,x.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,c.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,c.A)("SIVT Clicks %")}),(0,x.jsx)("th",{"data-tooltip":(0,c.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,c.A)("Total IVT %")}),(0,x.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,c.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,c.A)("Health")})]})}),(0,x.jsxs)("tbody",{children:[(0,x.jsxs)("td",{children:["c"===(null==e?void 0:e.device)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i.default,{name:"fa-desktop",className:"mr-3"}),(0,c.A)("Desktop")]}),"m"===(null==e?void 0:e.device)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i.default,{name:"fa-mobile",className:"mr-3"}),(0,c.A)("Mobile")]}),"ct"===(null==e?void 0:e.device)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i.default,{name:"fa-tv",className:"mr-3"}),(0,c.A)("Connected TV")]}),"t"===(null==e?void 0:e.device)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i.default,{name:"fa-tablet",className:"mr-3"}),(0,c.A)("Tablet")]}),("bot"===(null==e?void 0:e.device)||"b"===(null==e?void 0:e.device))&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i.default,{name:"fa-robot",className:"mr-3"}),(0,c.A)("Bot")]}),"ZZ"===(null==e?void 0:e.device)&&(0,x.jsxs)(x.Fragment,{children:[(0,c.A)("N/A")," ",(0,x.jsx)(r.default,{content:"Clicks where a device type is not provided",children:(0,x.jsx)("p",{children:"?"})})," "]})]}),(0,x.jsx)("td",{children:(0,x.jsx)(o.A,{type:"legitimate",size:"sm",textRight:(0,u.m)((null==e?void 0:e.clicks_protected)||(null==e?void 0:e.clicks_legitimate))})}),(0,x.jsx)("td",{children:(0,x.jsx)(o.A,{type:"suspicious",size:"sm",textRight:(0,u.m)(null==e?void 0:e.clicks_suspicious)})}),(0,x.jsx)("td",{children:(0,x.jsx)(o.A,{type:"invalid",size:"sm",textRight:(0,u.m)((null==e?void 0:e.clicks_fraudulent)||(null==e?void 0:e.clicks_invalid))})}),(0,x.jsx)(m.A,{AND:!R,children:(0,x.jsx)("td",{children:(0,u.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,x.jsx)("td",{children:(0,u.m)(null==e?void 0:e.total_ivt)}),(0,x.jsx)("td",{children:(0,u.m)(null==e?void 0:e.clicks_total)}),(0,x.jsx)("td",{children:(0,u.m)(null==e?void 0:e.all_tracked_clicks)}),(0,x.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,x.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,x.jsx)("td",{children:(0,x.jsx)(l.A,{health:null==e?void 0:e.health})})]})]})}})]})}}
2,60999:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=d(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),l=n(86957),s=d(n(54942)),c=d(n(16563)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var y=o.default;y(".borderWidth-xmkeg23{border-width:1px}",2e3),y(".borderStyle-x1y0btm7{border-style:solid}",2e3),y(".borderColor-x2ci420{border-color:var(--gray200-x1cfnqzm)}",2e3),t.A=function(e){var t=e.densityMap,n=(0,a.useRef)(null);return(0,a.useEffect)(function(){i.select(n.current).selectAll("*").remove();var e=i.select(n.current),r=+e.node().getBoundingClientRect().width-80-20,o=+e.attr("height")-20-55,a=i.geoNaturalEarth1().scale(450).center([-97.922211,45.381266]).translate([r/2,o/2]),u=i.geoPath().projection(a),d=s.default,f=i.scaleSequential(i.interpolateReds).domain([0,1]);e.append("g").selectAll("path").data(d.features).enter().append("path").attr("d",u).attr("fill",function(e){var n=e.properties.gn_name,r=t.get(n);if("object"===g(r)){var o=i.max(Array.from(t.values()).map(function(e){return e.clicksTotal}));return(0,c.default)(r,null!=o?o:0)}var a=f(r);return void 0!==r?a:l.colourValues.purple50}).style("stroke",l.colourValues.white).append("title").text(function(e){var n=e.properties.gn_name,r=t.get(n);if(!r)return"".concat(n,": No data");if("object"===g(r)){var o=r.clicksInvalid,a=r.clicksTotal,l=o/a,s=i.max(Array.from(t.values()).map(function(e){return e.clicksTotal})),c=null!=s&&0!==s?a/s*100:0,u=o/a*100;return"".concat(n,":\n Fraudulent clicks: ").concat(o,"\n Total clicks: ").concat(a,"\n Fraudulent: ").concat(Number(100*l).toFixed(2),"%\n \n \n Chart key\n Percentage total: ").concat(c.toFixed(2),"%\n Percentage invalid: ").concat(u.toFixed(2),"%\n ")}return"".concat(n,": ").concat(r)})},[t]),(0,u.jsx)("div",{children:(0,u.jsx)("svg",p({ref:n,width:"100%",height:"500"},{className:"borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x2ci420","data-style-src":"States/index.tsx:9"}))})}},61008:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=x(n(25751)),a=n(14041),i=n(75267),l=n(45365),s=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),c=n(98536),u=n(60156),d=n(44146),f=n(18141),p=n(34016),m=n(45647),g=n(73657),y=x(n(6296)),h=n(31085);function x(e){return e&&e.__esModule?e:{default:e}}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function v(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||O(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k=o.default;k(".width-xvy4d1p{width:24px}",4e3),k(".height-xxk0z11{height:24px}",4e3),k(".marginRight-xl010v5{margin-right:4px}",4e3),k(".display-x78zum5{display:flex}",3e3),k(".alignItems-x6s0dn4{align-items:center}",3e3),k(".justifyContent-xl56j7k{justify-content:center}",3e3),k(".flexShrink-x2lah0s{flex-shrink:0}",3e3),k(".fontSize-xif65rj{font-size:14px}",3e3),k(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),k(".borderRadius-x12oqio5{border-radius:4px}",2e3),k(".width-xdpfuu1{width:800px}",4e3),k(".overflow-xb3r6kr{overflow:hidden}",2e3),k(".fontWeight-xk50ysn{font-weight:500}",3e3),k(".color-x1ukdml6{color:var(--success500-x1a8whg)}",3e3),k(".flexDirection-xdt5ytf{flex-direction:column}",3e3),k(".flexBasis-x1tpkv71{flex-basis:287px}",3e3),k(".flexGrow-x1c4vz4f{flex-grow:0}",3e3),k(".width-x1s1gtqi{width:287px}",4e3),k(".backgroundColor-x1j5riqo{background-color:var(--error700-x1brey9)}",3e3),k(".color-xd8ta6b{color:var(--error100-x13jjcv4)}",3e3),k(".backgroundColor-x1ctoai6{background-color:var(--error100-x13jjcv4)}",3e3),k(".color-xqy16mm{color:var(--error700-x1brey9)}",3e3),k(".backgroundColor-xn1qtim{background-color:var(--warning200-xgv5m4l)}",3e3),k(".color-x1j6m8fr{color:var(--warning400-xebb3xv)}",3e3),k(".backgroundColor-x17behm0{background-color:var(--success100-x14um8e)}",3e3),k(".color-x1de9rt4{color:var(--success700-xjo1ft6)}",3e3),k(".backgroundColor-xc4kupo{background-color:var(--black200-xao0axe)}",3e3),k(".marginTop-xdj266r{margin-top:0}",4e3),k(".marginBottom-xat24cr{margin-bottom:0}",4e3),k(".marginLeft-xv90nub{margin-left:32px}",4e3),k(".marginRight-x1yf7rl7{margin-right:0}",4e3),k(".listStyleType-xtaz4m5{list-style-type:disc}",3e3),k(".listStylePosition-x43c9pm{list-style-position:outside}",3e3),k(".lineHeight-x1evy7pa{line-height:1.5}",3e3),k(".paddingTop-xexx8yu{padding-top:0}",4e3),k(".paddingBottom-x10b6aqq{padding-bottom:6px}",4e3),k(".paddingLeft-x1uhho1l{padding-left:0}",4e3),k(".paddingRight-x1xpa7k{padding-right:0}",4e3),k(".marginTop-x1hmvnq2{margin-top:14px}",4e3),k(".fontWeight-x1xlr1w8{font-weight:700}",3e3);var E={iconContainer:{width:"width-xvy4d1p",height:"height-xxk0z11",marginRight:"marginRight-xl010v5",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",flexShrink:"flexShrink-x2lah0s",fontSize:"fontSize-xif65rj",color:"color-x5tu7p5",borderRadius:"borderRadius-x12oqio5",$$css:"InsightsAndRecommendationsPage/index.tsx:33"}
2,criticalBackground:{backgroundColor:"backgroundColor-x1j5riqo",color:"color-xd8ta6b",$$css:"InsightsAndRecommendationsPage/index.tsx:62"},highBackground:{backgroundColor:"backgroundColor-x1ctoai6",color:"color-xqy16mm",$$css:"InsightsAndRecommendationsPage/index.tsx:66"},mediumBackground:{backgroundColor:"backgroundColor-xn1qtim",color:"color-x1j6m8fr",$$css:"InsightsAndRecommendationsPage/index.tsx:70"},lowBackground:{backgroundColor:"backgroundColor-x17behm0",color:"color-x1de9rt4",$$css:"InsightsAndRecommendationsPage/index.tsx:74"},optimisationBackground:{backgroundColor:"backgroundColor-x17behm0",color:"color-x1de9rt4",$$css:"InsightsAndRecommendationsPage/index.tsx:78"},infoBackground:{backgroundColor:"backgroundColor-xc4kupo",color:"color-x1de9rt4",$$css:"InsightsAndRecommendationsPage/index.tsx:82"},lineBreak:{marginTop:"marginTop-x1hmvnq2",$$css:"InsightsAndRecommendationsPage/index.tsx:103"}};function N(e){var t;return"".concat(null==e?void 0:e.recommendation_id,":").concat(null!==(t=null==e?void 0:e.workspace_id)&&void 0!==t?t:"account")}function I(e){return null==(null==e?void 0:e.workspace_id)?"".concat(null==e?void 0:e.recommendation_id):"".concat(null==e?void 0:e.recommendation_id,"-ws").concat(null==e?void 0:e.workspace_id)}t.A=function(){var e,t,n,r,o,x,b,A,S,O,j,k,P,T,C,R,M,L,D,B,U=w((0,m.useSyncState)(),2),F=U[0],G=U[1],W=(0,i.usePostHog)(),z=w((0,m.usePermissionsState)(),1)[0],V=w((0,g.useSearchParams)(),2),q=V[0],K=V[1],H=q.get("id"),Y=w((0,a.useState)(z.isImpersonating),2),$=Y[0],Z=Y[1],X=w((0,a.useState)([]),2),J=X[0],Q=X[1],ee=w((0,a.useState)([]),2),te=ee[0],ne=ee[1],re=w((0,m.useWorkspacesState)(),1)[0],oe="all"===(0,f.normaliseWorkspaceId)(null==re||null===(e=re.selectedWorkspace)||void 0===e?void 0:e.id),ae={type:{data_health:{title:(0,u.language)("Data Health"),icon:["far","heart-pulse"]},tracking:{title:(0,u.language)("Tracking"),icon:["far","chart-line"]},coverage_protection:{title:(0,u.language)("Coverage Protection"),icon:["far","shield"]}},severity:{critical:{icon:["far","triangle-exclamation"],className:E.criticalBackground,title:(0,u.language)("Critical Issues")},high:{icon:["far","bolt"],className:E.highBackground,title:(0,u.language)("High Priority")},medium:{icon:["far","hourglass-half"],className:E.mediumBackground,title:(0,u.language)("Medium Priority")},low:{icon:["far","chart-line"],className:E.lowBackground,title:(0,u.language)("Low Priority")},optimisation:{icon:["far","chart-line"],className:E.optimisationBackground,title:(0,u.language)("Optimisation")},info:{icon:["far","info-circle"],className:E.infoBackground,title:(0,u.language)("Informational")}}},ie=[{label:(0,u.language)("Type"),name:"type",type:"dropdown",queryKey:"type",queryTranslator:"arrayOfNames",options:[{label:(0,u.language)("All Types"),name:"all",type:"dropdown",value:!0},{label:ae.type.data_health.title,name:"data_health",type:"dropdown",value:!1},{label:ae.type.tracking.title,name:"tracking",type:"dropdown",value:!1},{label:ae.type.coverage_protection.title,name:"coverage_protection",type:"dropdown",value:!1}]},{label:(0,u.language)("Severity"),name:"severity",type:"dropdown",queryKey:"severity",queryTranslator:"arrayOfNames",options:[{label:(0,u.language)("All Severities"),name:"all",type:"dropdown",value:!0},{label:ae.severity.critical.title,name:"critical",type:"dropdown",value:!1},{label:ae.severity.high.title,name:"high",type:"dropdown",value:!1},{label:ae.severity.medium.title,name:"medium",type:"dropdown",value:!1},{label:ae.severity.optimisation.title,name:"optimisation",type:"dropdown",value:!1}]},{label:(0,u.language)("Status"),name:"status",type:"dropdown",queryKey:"status",queryTranslator:"arrayOfNames",options:[{label:(0,u.language)("All Statuses"),name:"all",type:"dropdown",value:!1},{label:(0,u.language)("Active"),name:"active",type:"dropdown",value:!0},{label:(0,u.language)("Resolved"),name:"resolved",type:"dropdown",value:!1},{label:(0,u.language)("Dismissed"),name:"dismissed",type:"dropdown",value:!1}]}],le=(0,c.useApi)({url:"/recommendations",paginationLimit:100,startDate:new Date("2026-01-01"),endDate:(0,f.endOfDay)(new Date),customFilters:[{queryKey:"internal_only",value:!0===$?1:0}],filters:ie});(0,a.useEffect)(function(){var e,t,n,r,o,a=JSON.stringify(null==le?void 0:le.data),i=JSON.stringify(null==le||null===(e=le.response)||void 0===e||null===(e=e.result)||void 0===e?void 0:e.notifications),l=a!==JSON.stringify(null==F||null===(t=F.alerts)||void 0===t?void 0:t.recommendations),s=i!==JSON.stringify(null==F||null===(n=F.alerts)||void 0===n?void 0:n.notifications),c=l||s;Array.isArray(null==le?void 0:le.data)&&c&&G(_(_({},F),{},{alerts:_(_({},F.alerts),{},{recommendationsCount:null===(r=((null==le?void 0:le.data)||[]).filter(function(e){return null===(null==e?void 0:e.actioned_at)&&null===(null==e?void 0:e.dismissed_at)}))||void 0===r?void 0:r.length,recommendations:null==le?void 0:le.data,notifications:null==le||null===(o=le.response)||void 0===o||null===(o=o.result)||void 0===o?void 0:o.notifications})}))},[null==le?void 0:le.data,null==le||null===(t=le.response)||void 0===t||null===(t=t.result)||void 0===t?void 0:t.notifications]);var se,ce=(0,p.useMutation)("/action-recommendation","POST"),ue=(0,p.useMutation)("/dismiss-recommendation","POST");function de(e){if(!e)return"";var t=(0,f.parseISO)(e),n=new Date,r=(0,f.differenceInDays)(n,t);if(r>=1)return"".concat(r,"d ").concat((0,u.language)("ago"));var o=(0,f.differenceInHours)(n,t);if(o>=1)return"".concat(o,"h ").concat((0,u.language)("ago"));var a=(0,f.differenceInMinutes)(n,t);if(a>=1)return"".concat(a,"m ").concat((0,u.language)("ago"));var i=(0,f.differenceInSeconds)(n,t);return"".concat(i,"s ").concat((0,u.language)("ago"))}function fe(e){J.includes(e)||Q(function(t){return[].concat(v(t),[e])})}function pe(e){Q(function(t){return t.filter(function(t){return t!==e})})}function me(e){return null==(null==e?void 0:e.workspace_id)?{recommendation_id:e.recommendation_id}:{recommendation_id:e.recommendation_id,workspace_id:e.workspace_id}}function ge(e,t){return t?(0,u.language)(e,t):(0,u.language)(e)}function ye(e){return void 0===e?null:(0,h.jsxs)(l.Text,{preset:"cardSubText",children:["(",e,"%)"]})}function he(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=/:([a-zA-Z0-9_]+)/g,a=[],i=0,l=o.exec(e),s=function(){var s,c,u,d,f,p,m=null!==(s=null===(c=l)||void 0===c?void 0:c[0])&&void 0!==s?s:"",g=null!==(u=null===(d=l)||void 0===d?void 0:d[1])&&void 0!==u?u:"",y=null!==(f=null===(p=l)||void 0===p?void 0:p.index)&&void 0!==f?f:0;if(y>i){var x=e.slice(i,y);r?a.push((0,h.jsx)("strong",_(_({},{className:"fontWeight-x1xlr1w8","data-style-src":"InsightsAndRecommendationsPage/index.tsx:106"}),{},{children:x}),"bold-".concat(n,"-").concat(i))):a.push(x)}var b=null==t?void 0:t[g];if(Array.isArray(b))a.push((0,h.jsx)("ul",_(_({},{className:"marginTop-xdj266r marginBottom-xat24cr marginLeft-xv90nub marginRight-x1yf7rl7 listStyleType-xtaz4m5 listStylePosition-x43c9pm lineHeight-x1evy7pa","data-style-src":"InsightsAndRecommendationsPage/index.tsx:86"}),{},{children:b.map(function(e){var t="".concat(null!=e?e:"");return(0,h.jsx)("li",_(_({},{className:"paddingTop-xexx8yu paddingBottom-x10b6aqq paddingLeft-x1uhho1l paddingRight-x1xpa7k marginTop-xdj266r marginBottom-xat24cr","data-style-src":"InsightsAndRecommendationsPage/index.tsx:95"}),{},{children:t}),"".concat(n,"-").concat(g,"-").concat(t))})}),"list-".concat(n,"-").concat(g,"-").concat(y)));else if(r){var v;a.push((0,h.jsx)("strong",_(_({},{className:"fontWeight-x1xlr1w8","data-style-src":"InsightsAndRecommendationsPage/index.tsx:106"}),{},{children:null!==(v=b)&&void 0!==v?v:m}),"bold-token-".concat(n,"-").concat(y)))}else{var A;a.push(null!==(A=b)&&void 0!==A?A:m)}i=y+m.length,l=o.exec(e)};null!==l;)s();if(i<e.length){var c=e.slice(i);r?a.push((0,h.jsx)("strong",_(_({},{className:"fontWeight-x1xlr1w8","data-style-src":"InsightsAndRecommendationsPage/index.tsx:106"}),{},{children:c}),"bold-tail-".concat(n,"-").concat(i))):a.push(c)}return a}function xe(e){var t,n,r,o,i,c,d,f=ge(null!==(t=null==e?void 0:e.external_blurb)&&void 0!==t?t:"",null==e?void 0:e.external_description_values)||"",p=ge(null!==(n=null==e?void 0:e.external_description)&&void 0!==n?n:"",null==e?void 0:e.external_description_values)||"",m=N(e),g=te.includes(m),y=f||p,x=p||f,b=y!==x,A=(r=g?x:y,o=null==e?void 0:e.external_description_values,i=r.split("**newline").filter(function(e,t,n){var r;return!(""===e.trim()&&""===(null===(r=n[t-1])||void 0===r?void 0:r.trim()))}
2),c=[],d=!0,i.forEach(function(e,t){var n,r="line-".concat(t),l=null!==(n=i.slice(t+1).find(function(e){return""!==e.trim()}))&&void 0!==n?n:"",s=""!==e.trim()&&function(e,t){var n,r,o=(null!==(n=null==e?void 0:e.trim())&&void 0!==n?n:"").match(/^:([a-zA-Z0-9_]+)$/);if(!o)return!1;var a=null!==(r=null==o?void 0:o[1])&&void 0!==r?r:"";return Array.isArray(null==t?void 0:t[a])}(l,o),u=function(e,t){for(var n=/:([a-zA-Z0-9_]+)/g,r=n.exec(e);null!==r;){var o,a,i,l,s=null!==(o=null===(a=r)||void 0===a?void 0:a[1])&&void 0!==o?o:"";if(Array.isArray(null==t?void 0:t[s]))return null!==(i=null===(l=r)||void 0===l?void 0:l.index)&&void 0!==i?i:-1;r=n.exec(e)}return-1}(e,o),f=u>0&&""!==e.slice(0,u).trim();if(d||c.push((0,a.createElement)("div",_(_({},{className:"marginTop-x1hmvnq2","data-style-src":"InsightsAndRecommendationsPage/index.tsx:103"}),{},{key:"br-".concat(r,"-").concat(e.length)}))),f){var p=e.slice(0,u),m=e.slice(u);c.push((0,h.jsx)("strong",_(_({},{className:"fontWeight-x1xlr1w8","data-style-src":"InsightsAndRecommendationsPage/index.tsx:106"}),{},{children:p}),"bold-inline-".concat(r)));var g=he(m,o,"".concat(r,"-inline"));c.push.apply(c,v(g))}else{var y=he(e,o,r,s);c.push.apply(c,v(y))}d=!1}),c);return(0,h.jsxs)(l.Text,{preset:"cardText","data-testid":"card-description",children:[(0,h.jsx)("div",_(_({className:"mr-1"},s.props(g&&E.lineBreak)),{},{children:A})),b&&(0,h.jsx)("button",{type:"button",onClick:function(){return e=m,void ne(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):[].concat(v(t),[e])});var e},"data-testid":"card-description-read-more-toggle",style:{background:"none",border:"none",padding:0,color:"inherit",textDecoration:"underline",cursor:"pointer",fontSize:"inherit",marginTop:12},children:g?(0,u.language)("Show less"):(0,u.language)("Read more...")})]})}function be(e,t){try{W.capture(e,t)}catch(e){}}function ve(){K(function(e){var t=new URLSearchParams(e);return t.delete("id"),t.delete("name"),t})}return(0,h.jsx)(l.Layout.Page,{type:"main","data-testid":"insights-and-recommendations-page",children:(0,h.jsxs)(d.AccessControl,{AND:(se=(navigator.language||"en-GB").toLowerCase(),"en"===se||se.startsWith("en-")),accountRoles:["ADMIN","ROOT","OWNER"],children:[(0,h.jsx)(l.PageHeader,{title:(0,u.language)("Recommendations"),text:(0,u.language)("Insights and actionable guidance to improve configuration, performance and reduce invalid traffic")}),(0,h.jsx)(l.Layout.Filters,{contentLeft:(0,h.jsx)(l.DropdownFilters,_(_({},le.filterConnector),{},{setFilters:function(e){ve(),le.filterConnector.setFilters(e)}})),contentRight:(0,h.jsx)(y.default,{onDatesChange:function(e){ve(),le.setDates(e)},includeTodayInRange:!0,initialStartDate:new Date("2026-01-01"),ranges:["1d","7d","30d","90d","prevMonth","customMonth","customRange"]})}),(0,h.jsx)(d.AccessControl,{impersonatingOnly:!0,children:(0,h.jsx)("div",{className:"mb-4 v-align-center",children:(0,h.jsx)(l.ToolTip,{content:(0,u.language)("Show recommendations that are only visible to Lunio staff"),children:(0,h.jsx)(l.Input.Toggle,{name:"includeInternalRecommendations",value:$,label:(0,u.language)("Show Internal Recommendations"),onFormValue:function(){var e=!$,t=[{queryKey:"internal_only",value:!0===e?1:0}];le.setCustomFilters(t),Z(e)}})})})}),(0,h.jsxs)("div",{className:"flex items-start gap-4",children:[(0,h.jsxs)(l.Card,_(_({className:"self-start"},{className:"display-x78zum5 flexDirection-xdt5ytf flexShrink-x2lah0s flexBasis-x1tpkv71 flexGrow-x1c4vz4f width-x1s1gtqi","data-style-src":"InsightsAndRecommendationsPage/index.tsx:54"}),{},{children:[(0,h.jsx)(l.Text,{preset:"widgetHeading",className:"mb-2",children:(0,u.language)("Total Metrics")}),(0,h.jsxs)("div",{className:"flex flex-col gap-2 mb-5",children:[(0,h.jsxs)("div",{className:"flex justify-between",children:[(0,h.jsx)(l.Text,{preset:"chartHeadingLight",children:(0,u.language)("Generated")}),(0,h.jsxs)("div",{className:"flex items-center gap-1",children:[ye(null==le||null===(n=le.response)||void 0===n||null===(n=n.result)||void 0===n||null===(n=n.metrics)||void 0===n||null===(n=n.totals)||void 0===n?void 0:n.generated_percentage),(0,h.jsx)(l.Text,{preset:"chartHeading",children:null!==(r=null==le||null===(o=le.response)||void 0===o||null===(o=o.result)||void 0===o||null===(o=o.metrics)||void 0===o||null===(o=o.totals)||void 0===o?void 0:o.generated)&&void 0!==r?r:"-"})]})]}),(0,h.jsxs)("div",{className:"flex justify-between",children:[(0,h.jsx)(l.Text,{preset:"chartHeadingLight",children:(0,u.language)("Resolved")}),(0,h.jsxs)("div",{className:"flex items-center gap-1",children:[ye(null==le||null===(x=le.response)||void 0===x||null===(x=x.result)||void 0===x||null===(x=x.metrics)||void 0===x||null===(x=x.totals)||void 0===x?void 0:x.resolved_percentage),(0,h.jsx)(l.Text,{preset:"chartHeading",children:null!==(b=null==le||null===(A=le.response)||void 0===A||null===(A=A.result)||void 0===A||null===(A=A.metrics)||void 0===A||null===(A=A.totals)||void 0===A?void 0:A.resolved)&&void 0!==b?b:"-"})]})]}),(0,h.jsxs)("div",{className:"flex justify-between",children:[(0,h.jsx)(l.Text,{preset:"chartHeadingLight",children:(0,u.language)("Dismissed")}),(0,h.jsxs)("div",{className:"flex items-center gap-1",children:[ye(null==le||null===(S=le.response)||void 0===S||null===(S=S.result)||void 0===S||null===(S=S.metrics)||void 0===S||null===(S=S.totals)||void 0===S?void 0:S.dismissed_percentage),(0,h.jsx)(l.Text,{preset:"chartHeading",children:null!==(O=null==le||null===(j=le.response)||void 0===j||null===(j=j.result)||void 0===j||null===(j=j.metrics)||void 0===j||null===(j=j.totals)||void 0===j?void 0:j.dismissed)&&void 0!==O?O:"-"})]})]})]}),(0,h.jsx)(l.Text,{preset:"widgetHeading",className:"mb-2",children:(0,u.language)("Status Breakdown")}),(0,h.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,h.jsxs)("div",{className:"flex justify-between",children:[(0,h.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,h.jsx)("div",_(_({},{className:"width-xvy4d1p height-xxk0z11 marginRight-xl010v5 display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k flexShrink-x2lah0s fontSize-xif65rj borderRadius-x12oqio5 backgroundColor-x1j5riqo color-xd8ta6b","data-style-src":"InsightsAndRecommendationsPage/index.tsx:33; InsightsAndRecommendationsPage/index.tsx:62"}),{},{children:(0,h.jsx)(l.Icon,{name:ae.severity.critical.icon})}
2)),(0,h.jsx)(l.Text,{preset:"chartHeadingLight",children:(0,u.language)("Critical Issues")})]}),(0,h.jsx)(l.Text,{preset:"chartHeading",children:null!==(k=null==le||null===(P=le.response)||void 0===P||null===(P=P.result)||void 0===P||null===(P=P.metrics)||void 0===P||null===(P=P.status_breakdown)||void 0===P?void 0:P.critical)&&void 0!==k?k:"-"})]}),(0,h.jsxs)("div",{className:"flex justify-between",children:[(0,h.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,h.jsx)("div",_(_({},{className:"width-xvy4d1p height-xxk0z11 marginRight-xl010v5 display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k flexShrink-x2lah0s fontSize-xif65rj borderRadius-x12oqio5 backgroundColor-x1ctoai6 color-xqy16mm","data-style-src":"InsightsAndRecommendationsPage/index.tsx:33; InsightsAndRecommendationsPage/index.tsx:66"}),{},{children:(0,h.jsx)(l.Icon,{name:ae.severity.high.icon})})),(0,h.jsx)(l.Text,{preset:"chartHeadingLight",children:(0,u.language)("High Priority")})]}),(0,h.jsx)(l.Text,{preset:"chartHeading",children:null!==(T=null==le||null===(C=le.response)||void 0===C||null===(C=C.result)||void 0===C||null===(C=C.metrics)||void 0===C||null===(C=C.status_breakdown)||void 0===C?void 0:C.high)&&void 0!==T?T:"-"})]}),(0,h.jsxs)("div",{className:"flex justify-between",children:[(0,h.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,h.jsx)("div",_(_({},{className:"width-xvy4d1p height-xxk0z11 marginRight-xl010v5 display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k flexShrink-x2lah0s fontSize-xif65rj borderRadius-x12oqio5 backgroundColor-xn1qtim color-x1j6m8fr","data-style-src":"InsightsAndRecommendationsPage/index.tsx:33; InsightsAndRecommendationsPage/index.tsx:70"}),{},{children:(0,h.jsx)(l.Icon,{name:ae.severity.medium.icon})})),(0,h.jsx)(l.Text,{preset:"chartHeadingLight",children:(0,u.language)("Medium Priority")})]}),(0,h.jsx)(l.Text,{preset:"chartHeading",children:null!==(R=null==le||null===(M=le.response)||void 0===M||null===(M=M.result)||void 0===M||null===(M=M.metrics)||void 0===M||null===(M=M.status_breakdown)||void 0===M?void 0:M.medium)&&void 0!==R?R:"-"})]}),(0,h.jsxs)("div",{className:"flex justify-between",children:[(0,h.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,h.jsx)("div",_(_({},{className:"width-xvy4d1p height-xxk0z11 marginRight-xl010v5 display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k flexShrink-x2lah0s fontSize-xif65rj borderRadius-x12oqio5 backgroundColor-x17behm0 color-x1de9rt4","data-style-src":"InsightsAndRecommendationsPage/index.tsx:33; InsightsAndRecommendationsPage/index.tsx:74"}),{},{children:(0,h.jsx)(l.Icon,{name:ae.severity.optimisation.icon})})),(0,h.jsx)(l.Text,{preset:"chartHeadingLight",children:(0,u.language)("Optimisation")})]}),(0,h.jsx)(l.Text,{preset:"chartHeading",children:null!==(L=null==le||null===(D=le.response)||void 0===D||null===(D=D.result)||void 0===D||null===(D=D.metrics)||void 0===D||null===(D=D.status_breakdown)||void 0===D?void 0:D.optimisation)&&void 0!==L?L:"-"})]})]})]})),(0,h.jsxs)("div",{className:"w-full",children:[le.isLoading&&(0,h.jsx)(l.Card,{children:(0,h.jsx)(l.LunioLoader,{loading:le.isLoading,height:"200px",preset:"dark"})}),0===(null==le||null===(B=le.data)||void 0===B?void 0:B.length)&&!le.isLoading&&(0,h.jsx)(l.Card,{children:(0,h.jsx)(l.NoData,{title:(0,u.language)("No Insights & Recommendations"),subTitle:(0,u.language)("There are currently no insights or recommendations available for your account. Please check back later."),hasNoData:!0})}),v(le.data).sort(function(e,t){return String(e.recommendation_id)===H?-1:String(t.recommendation_id)===H?1:0}).map(function(e){var t,n,r,o,a;return(0,h.jsxs)(l.Card,{className:String(null==e?void 0:e.recommendation_id)===H?"mb-12 focused-border":"mb-4",status:(null==e?void 0:e.severity)||"info",disabled:null!==(null==e?void 0:e.dismissed_at)||null!==(null==e?void 0:e.actioned_at)||null!==(null==e?void 0:e.resolved_at),labelText:1===(null==e?void 0:e.internal_only)?(0,u.language)("Internal"):"",children:[(0,h.jsxs)("div",{className:"flex justify-between mb-4 items-start",children:[(0,h.jsxs)("div",{className:"flex gap-2 items-start",children:[(0,h.jsx)("div",_(_({},s.props(E.iconContainer,null===(t=ae.severity[null==e?void 0:e.severity])||void 0===t?void 0:t.className)),{},{children:(0,h.jsx)(l.Icon,{name:null!==(n=null!==(r=null===(o=ae.type[null==e?void 0:e.type])||void 0===o?void 0:o.icon)&&void 0!==r?r:null===(a=ae.severity[null==e?void 0:e.severity])||void 0===a?void 0:a.icon)&&void 0!==n?n:["far","info-circle"]})}
2)),(0,h.jsxs)("div",_(_({},{className:"width-xdpfuu1 overflow-xb3r6kr","data-style-src":"InsightsAndRecommendationsPage/index.tsx:45"}),{},{children:[(0,h.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,h.jsx)(l.Text,{"data-testid":"card-title",preset:"chartHeading",children:ge(null==e?void 0:e.external_title,null==e?void 0:e.external_description_values)}),oe&&!(null==e||!e.workspace_name)&&(0,h.jsx)(l.Badge,{colourName:"default","data-testid":"workspace-label-".concat(I(e)),children:e.workspace_name})]}),xe(e)]}))]}),(0,h.jsx)("div",{})]}),(0,h.jsxs)("div",{className:"flex justify-between items-end",children:[(0,h.jsx)(l.Text,{preset:"cardSubText","data-testid":"card-time-ago",children:de(null==e?void 0:e.created_at)}),(0,h.jsxs)("div",{className:"flex v-align-center",children:[!(null==e||!e.dismissible)&&null===(null==e?void 0:e.actioned_at)&&null===(null==e?void 0:e.resolved_at)&&null===(null==e?void 0:e.resolution_type)&&null===(null==e?void 0:e.actioned_at)&&null===(null==e?void 0:e.dismissed_at)&&(0,h.jsx)(l.Button,{preset:"outline",size:"sm","data-testid":"dismiss-button-".concat(I(e)),onClick:function(){be("recommendation-dismiss",{recommendation:"".concat(e.recommendation_id)}),function(e){var t=N(e);fe(t),ue.mutate(me(e),{onSuccess:function(){(0,f.toastNotification)((0,u.language)(":type was dismissed successfully",{type:e.external_title}),"success"),le.invalidateCache(),pe(t)},onError:function(){(0,f.toastNotification)((0,u.language)("Failed to dismiss recommendation"),"error"),pe(t)}})}(e)},disabled:J.includes(N(e)),children:(0,u.language)("Dismiss")}),!(null==e||!e.has_cta)&&null===(null==e?void 0:e.actioned_at)&&(0,h.jsx)(l.Button,{preset:"primary",size:"sm",className:"ml-2",onClick:function(){be("recommendation-confirm",{recommendation:"".concat(e.recommendation_id)}),function(e){var t=N(e);fe(t),ce.mutate(me(e),{onSuccess:function(){(0,f.toastNotification)((0,u.language)(":type was actioned successfully and may take a few minutes to complete",{type:e.external_title}),"success"),le.invalidateCache(),pe(t)},onError:function(){(0,f.toastNotification)((0,u.language)("Failed to action recommendation"),"error"),pe(t)}})}(e)},disabled:J.includes(N(e)),children:(0,u.language)("Confirm")}),null!==(null==e?void 0:e.actioned_at)&&(0,h.jsx)("div",{className:"ml-2",children:(0,h.jsx)("p",_(_({},{className:"fontSize-xif65rj fontWeight-xk50ysn color-x1ukdml6","data-style-src":"InsightsAndRecommendationsPage/index.tsx:49"}),{},{children:(0,u.language)("Enabled")}))}),!(null==e||!e.link)&&(0,h.jsx)(l.Button,{as:g.Link,preset:"primary",size:"sm",to:null==e?void 0:e.link,target:"_blank",className:"ml-2",disabled:J.includes(N(e)),onClick:function(){be("recommendation-view-guide",{recommendation:"".concat(e.recommendation_id)})},children:(0,u.language)("View Guide")}),null!==(null==e?void 0:e.dismissed_at)&&(0,h.jsx)(l.Button,{preset:"outline",size:"sm",iconLeft:["far","times-circle"],className:"ml-2",backgroundColour:"gray50",textColour:"gray400",disabled:!0,"data-testid":"dismissed-badge-".concat(I(e)),children:(0,u.language)("Dismissed")}),(null!==(null==e?void 0:e.resolved_at)||(null==e?void 0:e.resolution_type)||null!==(null==e?void 0:e.actioned_at))&&(0,h.jsx)(l.Button,{preset:"outline",size:"sm",iconLeft:["far","check-circle"],className:"ml-2",backgroundColour:"success50",textColour:"success400",disabled:!0,"data-testid":"resolved-badge-".concat(I(e)),children:(0,u.language)("Resolved")})]})]})]},N(e))})]})]})]})})}},61300:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(45365),i=n(60156),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=o.default;f(".textAlign-x1hr2gdg{text-align:right}",3e3),f(".marginTop-x1eo4d1m{margin-top:var(--2-x17wbp3g)}",4e3),f(".width-xw4jnvo{width:20px}",4e3),f(".height-x1qx5ct2{height:20px}",4e3),f(".display-x1rg5ohu{display:inline-block}",3e3),f(".marginLeft-xy7hocw{margin-left:var(--1-xubceuw)}",4e3),f(".marginRight-xz1bhc1{margin-right:var(--1-xubceuw)}",4e3),f(".fontWeight-x1xlr1w8{font-weight:700}",3e3),t.A=function(e){var t=e.goToNextPage,n=e.goToPreviousPage,r=e.currentPage,o=e.totalPages;return(0,l.jsxs)("div",u(u({},{className:"textAlign-x1hr2gdg marginTop-x1eo4d1m","data-style-src":"Controls/index.tsx:8"}),{},{children:[(0,l.jsx)("button",u(u({},{className:"width-xw4jnvo height-x1qx5ct2","data-style-src":"Controls/index.tsx:12"}),{},{type:"button",onClick:function(){return n()},"aria-label":(0,i.language)("Previous page of results"),children:(0,l.jsx)(a.Icon,{name:"chevron-left"})})),(0,l.jsx)("span",u(u({},{className:"display-x1rg5ohu marginLeft-xy7hocw marginRight-xz1bhc1 fontWeight-x1xlr1w8","data-style-src":"Controls/index.tsx:16"}),{},{children:r})),"/",(0,l.jsx)("span",u(u({},{className:"display-x1rg5ohu marginLeft-xy7hocw marginRight-xz1bhc1","data-style-src":"Controls/index.tsx:22"}),{},{children:o})),(0,l.jsx)("button",u(u({},{className:"width-xw4jnvo height-x1qx5ct2","data-style-src":"Controls/index.tsx:12"}),{},{type:"button",onClick:function(){return t()},"aria-label":(0,i.language)("Next page of results"),children:(0,l.jsx)(a.Icon,{name:"chevron-right"})}))]}))}},61323:(e,t,n)=>{"use strict";t.A=void 0;var r=c(n(25751)),o=n(45365),a=n(60156),i=c(n(1582)),l=c(n(76326)),s=n(31085);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=r.default;function g(e,t){var n,r=document.getElementById(t),o=(null==r||null===(n=r.getBoundingClientRect())||void 0===n?void 0:n.width)||0,a=7;return o<800&&(a=5),o<700&&(a=4),o<600&&(a=3),o<500&&(a=2),e.slice(0,a)}m(".paddingTop-x1p5oq8j{padding-top:24px}",4e3),m(".paddingLeft-xf18ygs{padding-left:12px}",4e3),m(".paddingRight-x1xpa7k{padding-right:0}",4e3),m(".width-x3hqpx7{width:50%}",4e3),m(".paddingLeft-x1uhho1l{padding-left:0}",4e3),m(".height-x1vd4hg5{height:300px}",4e3),t.A=function(e){var t=e.isLoading,n=e.data,r=e.containerId,c=void 0===r?"country-container":r;return(0,s.jsxs)(o.Card,{children:[t&&(0,s.jsx)(o.LunioLoader,{loading:!0,height:400,size:"responsive",preset:"dark"}),(0,s.jsx)("div",f(f({},{className:"paddingTop-x1p5oq8j","data-style-src":"GroupedBarWithList/index.tsx:14"}),{},{children:(0,s.jsxs)(o.Grid.Row,{children:[(0,s.jsxs)(o.Grid.Col,{id:c,className:null!=="paddingRight-x1xpa7k paddingLeft-xf18ygs width-x3hqpx7"?"paddingRight-x1xpa7k paddingLeft-xf18ygs width-x3hqpx7":"",children:[(null==n?void 0:n.length)>1&&(0,s.jsx)(i.default.GroupHorizontal,{data:g(n,c)||[]}),!t&&(null==n?void 0:n.length)<2&&(0,s.jsx)(o.NoData,{title:(0,a.language)("Not enough data to display this map"),hasNoData:!0,className:null!=="height-x1vd4hg5"?"height-x1vd4hg5":""})]}),(0,s.jsx)(o.Grid.Col,{className:null!=="paddingRight-x1xpa7k paddingLeft-x1uhho1l"?"paddingRight-x1xpa7k paddingLeft-x1uhho1l":"",children:(0,s.jsx)("div",f(f({},{className:"paddingLeft-xf18ygs","data-style-src":"GroupedBarWithList/index.tsx:17"}),{},{children:(0,s.jsx)(l.default,{data:n})}))})]})}))]})}},61355:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(54145),o=n(1930),a=n(24284),i=n(32186),l=null;function s(){if(l)return l;return l=(0,i.a)({baseUrl:"https://chat.lunio.ai",getToken:function(){return window.localStorage.getItem("token")},scopeSessionsToWorkspace:!0,notify:function(e){var t=e.level,n=e.message;(0,a.A)(n,"error"===t?"error":"info")},reportError:function(e,t){o.v4(function(n){t&&n.setExtras(t),r.Cp(e)})}})}},61357:(e,t,n)=>{"use strict";e.exports=n.p+"d4426f0c6bee64dc4ff1.svg"}
2,61402:(e,t,n)=>{"use strict";e.exports=n.p+"727f3ee7789aa97ae679.svg"},61511:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=m(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(60156),s=m(n(79135)),c=m(n(62720)),u=m(n(22433)),d=n(4386),f=m(n(36313)),p=n(31085);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var _=o.default;function S(e){var t,n,r,o=e.filter,m=e.setFilter,g=e.filters,h=x((0,a.useState)(!1),2),_=h[0],S=h[1],w=x((0,a.useState)(""),2),O=w[0],j=w[1],k=(0,a.useRef)(null),E=(0,d.getFilterTestId)(null!==(t=o.label)&&void 0!==t?t:o.name),N=null!==(n=null==o?void 0:o.hasSearchFilter)&&void 0!==n&&n,I=(0,d.shouldShowSelectAllOption)(o);function P(){var e,t=(null!==(e=o.options)&&void 0!==e?e:[]).filter(function(e){return(0,d.shouldShowFilter)(e,g)});if(!N)return(0,d.sortFilterOptions)(t,o.sortOrder);var n=O.trim().toLowerCase();if(!n)return(0,d.sortFilterOptions)(t,o.sortOrder);var r=t.filter(function(e){var t;return"".concat(null!==(t=e.label)&&void 0!==t?t:e.name).toLowerCase().includes(n)});return(0,d.sortFilterOptions)(r,o.sortOrder)}function T(e){var t=null!=e?e:[];return 0!==t.length&&t.every(function(e){return!0===e.value})}function C(e){var t;if((0,d.isSelectAllOption)(e))!function(){var e,t,n=P(),r=new Set(n.map(function(e){return e.name})),a=!T(n),i=null!==(e=null===(t=o.options)||void 0===t?void 0:t.map(function(e){return r.has(e.name)?y(y({},e),{},{value:a}):e}))&&void 0!==e?e:[];m(y(y({},o),{},{options:i}))}();else{var n=(null===(t=o.options)||void 0===t?void 0:t.map(function(t){return t.name===e?y(y({},t),{},{value:!t.value}):t}))||[];m(y(y({},o),{},{options:n}))}}function R(e){var t=e.target;k.current&&t instanceof Node&&!k.current.contains(t)&&S(!1)}(0,a.useEffect)(function(){var e=function(){var e,t,n=!1,r=null!==(e=null===(t=o.options)||void 0===t?void 0:t.map(function(e){return(0,d.shouldShowFilter)(e,g)||!0!==e.value?e:(n=!0,y(y({},e),{},{value:!1}))}))&&void 0!==e?e:[];return{hasChanges:n,nextOptions:r}}(),t=e.hasChanges,n=e.nextOptions;t&&m(y(y({},o),{},{options:n}))},[o,g,m]),(0,a.useEffect)(function(){return document.addEventListener("mousedown",R),function(){document.removeEventListener("mousedown",R)}},[]);var M,L=null!==(r=o.options)&&void 0!==r?r:[],D=L.some(function(e){return!0===e.value}),B=L.some(function(e){return!(!(t=e.validationErrors)||"object"!==A(t))&&Object.keys(t).length>0;var t});B?M=f.default.errorButton:D&&(M=f.default.activeButton);var U,F=P(),G=I&&F.length>0,W={label:(0,l.language)("Select all"),name:d.SELECT_ALL_OPTION_NAME,type:"checkbox",value:T(F)},z=G?[W].concat(function(e){if(Array.isArray(e))return v(e)}(U=F)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(U)||b(U)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):F;return(0,p.jsxs)("div",y(y({},i.props(f.default.container)),{},{ref:k,"data-testid":"".concat(E,"-container"),children:[(0,p.jsx)("div",{"data-testid":B?"".concat(E,"-error-container"):void 0,children:(0,p.jsxs)("button",y(y({type:"button"},i.props(f.default.button,M,_&&f.default.buttonOpen)),{},{onClick:function(){S(function(e){return!e})},"aria-haspopup":"listbox","aria-expanded":_,"data-testid":"".concat(E,"-trigger"),children:[(0,p.jsx)("span",y(y({},i.props(f.default.buttonLabel)),{},{children:o.label})),(0,p.jsx)(u.default,{filter:o}),(0,p.jsxs)("span",y(y({},i.props(f.default.iconWrapper)),{},{children:[!_&&(0,p.jsx)(s.default,{name:"chevron-up"}),_&&(0,p.jsx)(s.default,{name:"chevron-down"})]}))]}))}),_&&(0,p.jsxs)("div",y(y({},i.props(f.default.dropdown)),{},{role:"listbox","aria-label":"Select options","data-testid":"".concat(E,"-menu"),children:[N&&(0,p.jsx)("div",y(y({},i.props(f.default.searchContainer)),{},{children:(0,p.jsx)(c.default,{size:"sm",iconLeft:"search",value:O,onChange:function(e){var t=e.currentTarget;j(t.value)},placeholder:"Search","aria-label":"Search options","data-testid":"".concat(E,"-search")})})),z.map(function(e){var t,n,r=!0===e.value,o=(0,d.getFilterTestId)(null!==(t=e.label)&&void 0!==t?t:e.name,"".concat(E,"-option"));return(0,p.jsxs)("div",y(y({},i.props(f.default.dropdownOption)),{},{role:"option","aria-selected":r,onClick:function(){return C(e.name)},onKeyDown:function(t){return"Enter"===t.key&&C(e.name)},tabIndex:0,"data-testid":o,children:[(0,p.jsx)("span",y({},i.props(f.default.checkbox,r&&f.default.checkboxChecked))),(0,p.jsx)("span",y(y({},i.props(f.default.optionLabel,r&&f.default.optionLabelSelected)),{},{children:null!==(n=e.label)&&void 0!==n?n:e.name}))]}),e.name)}),0===F.length&&(0,p.jsx)("div",y(y({},{className:"color-xbdn2ka fontSize-xfifm61 fontWeight-xk50ysn padding-xe8ttls","data-style-src":"DropdownMultiSelect/index.tsx:20"}),{},{"data-testid":"".concat(E,"-no-results"),children:"No options foun
2d"}))]}))]}))}_(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),_(".fontSize-xfifm61{font-size:12px}",3e3),_(".fontWeight-xk50ysn{font-weight:500}",3e3),_(".padding-xe8ttls{padding:8px}",1e3),S.displayName="DropdownMultiSelect",t.A=S},61635:(e,t,n)=>{"use strict";e.exports=n.p+"0e56b7a89b1e55900704.svg"},61803:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.items;return(0,s.jsx)("div",d(d({},{className:"display-x78zum5 flexDirection-xdt5ytf marginTop-x14vqqas marginBottom-xod5an3","data-style-src":"Positions/index.tsx:7"}),{},{children:t.map(function(e){var t=function(e){var t,n;return"You"!==(null!==(t=null!==(n=e.domain)&&void 0!==n?n:e.advertiser)&&void 0!==t?t:"")?"default":1===e.position?"green":e.position<=3?"yellow":"red"}(e);return(0,s.jsxs)("div",d(d({},{className:"display-x78zum5 alignItems-x6s0dn4","data-style-src":"Positions/index.tsx:13"}),{},{children:[(0,s.jsx)("div",d(d({},i.props(m.box,"green"===t&&m.boxGreen,"yellow"===t&&m.boxYellow,"red"===t&&m.boxRed,"default"===t&&m.boxDefault)),{},{children:"#".concat(e.position)})),(0,s.jsx)("div",d(d({},{className:"fontSize-xif65rj marginLeft-x1iog12x","data-style-src":"Positions/index.tsx:43"}),{},{children:g(e)}))]}),e.position)})}))};var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(60156),s=n(31085);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=a.default;p(".display-x78zum5{display:flex}",3e3),p(".flexDirection-xdt5ytf{flex-direction:column}",3e3),p(".marginTop-x14vqqas{margin-top:12px}",4e3),p(".marginBottom-xod5an3{margin-bottom:12px}",4e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".height-xxk0z11{height:24px}",4e3),p(".width-xvy4d1p{width:24px}",4e3),p(".borderRadius-x12oqio5{border-radius:4px}",2e3),p(".justifyContent-xl56j7k{justify-content:center}",3e3),p(".fontSize-xfifm61{font-size:12px}",3e3),p(".fontWeight-x1s688f{font-weight:600}",3e3),p(".backgroundColor-xb4lrnj{background-color:var(--success50-x1xjgkj9)}",3e3),p(".color-x1rhnk1{color:var(--success600-x1k6hy5b)}",3e3),p(".backgroundColor-x1c48dnr{background-color:var(--warning50-xtmumxw)}",3e3),p(".color-x1gh8wop{color:var(--warning500-xcmfu7k)}",3e3),p(".backgroundColor-x1ssdy5{background-color:var(--error50-x1f3qy36)}",3e3),p(".color-x116vv80{color:var(--error500-x1idp37q)}",3e3),p(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),p(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),p(".fontSize-xif65rj{font-size:14px}",3e3),p(".marginLeft-x1iog12x{margin-left:4px}",4e3);var m={box:{height:"height-xxk0z11",width:"width-xvy4d1p",borderRadius:"borderRadius-x12oqio5",display:"display-x78zum5",justifyContent:"justifyContent-xl56j7k",alignItems:"alignItems-x6s0dn4",fontSize:"fontSize-xfifm61",fontWeight:"fontWeight-x1s688f",$$css:"Positions/index.tsx:17"},boxGreen:{backgroundColor:"backgroundColor-xb4lrnj",color:"color-x1rhnk1",$$css:"Positions/index.tsx:27"},boxYellow:{backgroundColor:"backgroundColor-x1c48dnr",color:"color-x1gh8wop",$$css:"Positions/index.tsx:31"},boxRed:{backgroundColor:"backgroundColor-x1ssdy5",color:"color-x116vv80",$$css:"Positions/index.tsx:35"},boxDefault:{backgroundColor:"backgroundColor-xq18l50",color:"color-x5tu7p5",$$css:"Positions/index.tsx:39"}};function g(e){var t,n,r=null!==(t=null!==(n=e.domain)&&void 0!==n?n:e.advertiser)&&void 0!==t?t:"";return"You"===r?(0,l.language)("You"):r}},61841:(e,t,n)=>{"use strict";n.d(t,{A:()=>L});var r=n(14041),o=n(9260),a=n(46389),i=n(1781),l=n(28426),s=n(79135),c=n(27805),u=n(62161),d=n(36990),f=n(47318),p=n(51836),m=n(73657),g=n(89748),y=n(99018),h=n(96182),x=n(36549),b=n(71893),v=n(78806),A=n(44925),_=n(98536),S=n(93033),w=n(34908),O=n(32452),j=n(74364),k=n(72727),E=n(31085);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?I(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T(e,t,n){return(t=function(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var M=(0,y.createUseStyles)(function(e){return{textCenter:{textAlign:"center","& button":{margin:"0 10px"},"& p":{marginBottom:20}},text:{color:e.colors.neutralTextWeak,marginTop:e.spacing[4],marginBottom:e.spacing[10]},campaign:{color:e.colors.neutralTextWeak},clickFilterContainerBelow:{display:"flex",justifyContent:"space-between",marginTop:e.spacing[5],marginBottom:e.spacing[5],"& .left":{display:"flex"}},button:{color:(0,y.findColour)(e,"grey",500)},searchedSelection:{marginLeft:e.spacing[2]},disabledText:{color:(0,y.findColour)(e,"grey",300)},tickBox:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.green[600]),display:"inline-flex",justifyContent:"center",alignItems:"center",color:e.colors.green[600],margin:"0 auto"},dashBox:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.neutralBorderStrong),display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.neutralBorderStrong,margin:"0 auto"}}});const L=function(){var e,t,n=M(),y=C((0,h.A)(),1)[0],N=C((0,x.A)(),1)[0],I=null!==(e=y.selectedPlatform)&&void 0!==e&&e.platform_title?null===(t=y.selectedPlatform)||void 0===t?void 0:t.platform_title:"",T=(0,p.zy)().state,R=[{label:(0,g.A)("IP Address"),type:"radio",name:"ipAddress",queryKey:"ip",queryTranslator:"textSearch",options:[{label:(0,g.A)("equals"),name:"equals",type:"text",value:""}]},{label:(0,g.A)("Sampled"),name:"inControlGroup",type:"checkbox",accessControl:{featureFlags:["DATA_SAMPLING"]},queryKey:"in_control_group",queryTranslator:"twoOptionBinaryCheckbox",options:[{label:(0,g.A)("Show Sampled"),shortLabel:(0,g.A)("Show Sampled"),type:"checkbox",name:"sampled"},{label:(0,g.A)("Show Non Sampled"),shortLabel:(0,g.A)("Show Non Sampled"),type:"checkbox",name:"nonSampled"}]},{label:(0,g.A)("Status"),type:"radio",name:"clickType",queryKey:"flags",queryTranslator:"singleTextValueRadio",options:[{label:(0,g.A)("All"),shortLabel:(0,g.A)("All"),type:"radio",name:"all",value:!0},{label:(0,g.A)("Legitimate"),shortLabel:(0,g.A)("Legitimate"),type:"radio",name:"legitimate",value:!1},{label:(0,g.A)("Suspicious"),shortLabel:(0,g.A)("Suspicious"),type:"radio",name:"suspicious",value:!1},{label:(0,g.A)("SIVT"),shortLabel:(0,g.A)("SIVT"),type:"radio",name:"fraudulent",value:!1},{label:(0,g.A)("GIVT"),shortLabel:(0,g.A)("GIVT"),type:"radio",name:"givt",value:!1}]}],L=(0,_.useApi)({url:"/analytics/adclicks",responseDataKey:"adclicks",filters:R,startDate:(0,A.o)(new Date),endDate:(0,v.D)(new Date)});return(0,r.useEffect)(function(){if(null!=T&&T.page){var e=document.getElementById(null==T?void 0:T.rowId);e&&e.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}window.history.replaceState({},document.title)},[]),(0,E.jsxs)(l.A.Page,{type:"main",children:[(0,E.jsx)(c.default,{title:"".concat(I," ").concat((0,g.A)("Clicks Log")),text:(0,g.A)("View the clicks being monitored by your Lunio account"),contentRight:(0,E.jsx)(k.A,{filters:L.activeFilters})}),(0,E.jsxs)("div",{className:n.clickFilterContainerBelow,children:[(0,E.jsx)("div",{className:"left",children:(0,E.jsx)(a.A,P({},L.filterConnector))}),(0,E.jsx)(b.A,{onDatesChange:L.setDates,maxRangeDays:31,defaultRange:"1d",sharedDateRef:"clicks-log",ranges:["1d","yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]})]}),(0,E.jsx)(u.A,P(P({},L.tableConnector),{},{leftPinnedColumns:1,children:function(e){return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("thead",{children:(0,E.jsxs)("tr",{children:[(0,E.jsx)("th",{children:(0,g.A)("Status")}),(0,E.jsx)("th",{"data-sortable-id":"ip",children:(0,g.A)("IP Address")}),(0,E.jsxs)("th",{"data-sortable-id":"domain",children:[(0,g.A)("Domain"),(0,E.jsx)(d.A,{header:!0,groupedCols:!0,"data-sortable-id":"campaign",children:(0,g.A)("Campaign")})]}),(0,E.jsx)("th",{"data-sortable-id":"created_at",children:(0,g.A)("Clicked at")}),(0,E.jsx)("th",{"data-sortable-id":"country",children:(0,g.A)("Country")}),(0,E.jsx)(S.A,{featureFlags:["DATA_SAMPLING"],children:(0,E.jsx)("th",{style:{textAlign:"center"},"data-sortable-id":"in_control_group",children:(0,g.A)("Sampled")})}),!0!==(null==N?void 0:N.user.obfuscate)&&(0,E.jsx)("th",{children:(0,g.A)("Audit Trail")}),!0===(null==N?void 0:N.user.obfuscate)&&(0,E.jsx)("th",{className:n.disabledText,children:(0,E.jsx)(i.default,{content:(0,g.A)("Audit trail feature not available with obfuscated IPs"),children:(0,g.A)("Audit Trail")})})]})}),(0,E.jsxs)("tbody",{children:[(0,E.jsx)("td",{children:(0,E.jsx)(O.A,{statusCode:null==e?void 0:e.flag})}),(0,E.jsx)("td",{children:(0,E.jsx)(f.A,{maxLength:15,clickToCopy:!0,children:null==e?void 0:e.ip})}),(0,E.jsxs)("td",{children:[(null==e?void 0:e.domain)||"-",(0,E.jsx)(d.A,{groupedCols:!0,children:null==e?void 0:e.campaign_name})]}),(0,E.jsx)("td",{children:(0,E.jsx)(j.A,{row:e})}),(0,E.jsx)("td",{children:(0,E.jsx)(w.A,{countryCode:null==e?void 0:e.location_physical.country})}),(0,E.jsx)(S.A,{featureFlags:["DATA_SAMPLING"],children:(0,E.jsxs)("td",{style:{textAlign:"center"},children:[1===(null==e?void 0:e.in_control_group)&&(0,E.jsx)("div",{className:n.tickBox,"data-testid":"row-".concat(null==e?void 0:e.campaign_name,"-in-control"),children:(0,E.jsx)(s.default,{name:"check"})}),0===(null==e?void 0:e.in_control_group)&&(0,E.jsx)("div",{className:n.dashBox,"data-testid":"row-".concat(null==e?void 0:e.campaign_name,"-not-in-control"),children:(0,E.jsx)(s.default,{name:"dash"})})]})}),(0,E.jsx)("td",{style:{textAlign:"center"},children:(0,E.jsx)(i.default,{content:!0!==(null==N?void 0:N.user.obfuscate)?(0,g.A)("View an audit history of this IP"):(0,g.A)("Audit trail feature not available with obfuscated IPs"),children:(0,E.jsx)(o.default,{id:"audit-trail-button","data-testid":null==e?void 0:e.ip,preset:"outline",size:"sm",as:m.Link,className:n.button,to:"/meta/audit-trail?ip=".concat(null==e?void 0:e.ip,"&dsp=meta-clicks"),state:{rowId:null==e?void 0:e.id,page:L.request.paginationPage},"aria-label":(0,g.A)("Audit Trail"),iconLeft:["far","timeline-arrow"],style:{width:"fit-content"},disabled:!0===(null==N?void 0:N.user.obfuscate)})})})]})]})}}))]})}},61894:(e,t,n)=>{"use strict";n.d(t,{A:()=>_}),n(14041);var r=n(72686),o=n(17419),a=n(28426),i=n(96956),l=n(27805),s=n(89748),c=n(19863),u=n(62161),d=n(74704),f=n(93033),p=n(99226),m=n(98536),g=n(8713),y=n(92523),h=n(31085);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?b(Object(n),!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A(e,t,n){return(t=function(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=function(){var e,t,n,x,b,A=(0,m.useApi)({url:"/analytics/fraud-stats/heatmap",includeInterval:!0,responseDataKey:"weekdays"}),_="TRIAL"===(0,p.A)().lunioStatus;return(0,h.jsxs)(a.A.Page,{type:"main",children:[(0,h.jsx)(l.default,{title:"".concat((0,s.A)("Ad Stats")," - ").concat((0,s.A)("Day")),text:(0,s.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,h.jsx)(g.A,{filters:[],exportType:"mplat_day"})}),(0,h.jsx)("div",{className:"mt-4 mb-4 justify-end",children:(0,h.jsx)(y.default,{})}),(null==A||null===(e=A.response)||void 0===e||null===(e=e.result)||void 0===e?void 0:e.hours)&&(0,h.jsx)(r.default,{className:"mb-4",children:(0,h.jsx)(d.A.Hourly,{data:(n=null==A||null===(t=A.response)||void 0===t||null===(t=t.result)||void 0===t?void 0:t.hours,x={0:"MON",1:"TUE",2:"WED",3:"THU",4:"FRI",5:"SAT",6:"SUN"},b={MON:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),TUE:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),WED:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),THU:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),FRI:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),SAT:Array(24).fill(null).map(function(){return{invalid:0,value:0}}),SUN:Array(24).fill(null).map(function(){return{invalid:0,value:0}})}
2,n.forEach(function(e){var t=x[e.day_of_week],n=Number(e.hour_of_day);t&&n>=0&&n<24&&(b[t][n]={invalid:Number(e.clicks_invalid),value:Number(e.clicks_total)})}),b)})}),(0,h.jsx)(u.A,v(v({},A.tableConnector),{},{noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){var t,n,r,a;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{children:[(0,h.jsx)("th",{children:(0,s.A)("Day")}),(0,h.jsx)("th",{children:(0,s.A)("Legitimate")}),(0,h.jsx)("th",{"data-tooltip":(0,s.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,s.A)("Suspicious")}),(0,h.jsx)("th",{"data-tooltip":(0,s.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,s.A)("SIVT Clicks")}),(0,h.jsx)(f.A,{AND:!_,children:(0,h.jsx)("th",{"data-testid":"givt","data-tooltip":(0,s.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,s.A)("GIVT Clicks")})}),(0,h.jsx)("th",{"data-tooltip":(0,s.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,s.A)("Total IVT")}),(0,h.jsx)("th",{"data-tooltip":(0,s.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,s.A)("Total Clicks")}),(0,h.jsx)("th",{"data-tooltip":(0,s.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,s.A)("All Tracked Clicks")}),(0,h.jsx)("th",{"data-tooltip":(0,s.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,s.A)("SIVT Clicks %")}),(0,h.jsx)("th",{"data-tooltip":(0,s.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,s.A)("Total IVT %")}),(0,h.jsx)("th",{"data-tooltip":(0,s.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,s.A)("Health")})]})}),(0,h.jsxs)("tbody",{children:[(0,h.jsx)("td",{children:(a=null==e?void 0:e.weekday,a||0===a?["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"][a]:"")}),(0,h.jsx)("td",{children:(0,h.jsx)(o.A,{type:"legitimate",size:"sm",textRight:(0,c.m)((null==e?void 0:e.clicks_protected)||(null==e?void 0:e.clicks_legitimate))})}),(0,h.jsx)("td",{children:(0,h.jsx)(o.A,{type:"suspicious",size:"sm",textRight:(0,c.m)(null==e?void 0:e.clicks_suspicious)})}),(0,h.jsx)("td",{children:(0,h.jsx)(o.A,{type:"invalid",size:"sm",textRight:(0,c.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,h.jsx)(f.A,{AND:!_,children:(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,h.jsx)("td",{children:(0,c.m)(null!==(t=null==e?void 0:e.total_ivt)&&void 0!==t?t:0)}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_total)}),(0,h.jsx)("td",{children:(0,c.m)(null!==(n=null==e?void 0:e.all_tracked_clicks)&&void 0!==n?n:0)}),(0,h.jsxs)("td",{children:[null==e?void 0:e.percent_fraudulent,"%"]}),(0,h.jsx)("td",{children:"".concat(Number(null!==(r=null==e?void 0:e.total_ivt_percent)&&void 0!==r?r:0).toFixed(2),"%")}),(0,h.jsx)("td",{children:(0,h.jsx)(i.A,{health:null==e?void 0:e.health})})]})]})}}))]})}},61915:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n(14041);var r=n(1781),o=n(79135),a=n(31085);const i=function(e){var t=e.classifications,n=void 0===t?[]:t;return(0,a.jsxs)("div",{children:[n.includes("Unclassified")&&(0,a.jsx)(r.default,{content:"Unclassified",children:(0,a.jsx)(o.default,{className:"m-1",name:["far","file-xmark"]})}),n.includes("Content Delivery Network")&&(0,a.jsx)(r.default,{content:"Content Delivery Network",children:(0,a.jsx)(o.default,{className:"m-1",name:["far","network-wired"]})}),n.includes("Data Center/Web Hosting/Transit")&&(0,a.jsx)(r.default,{content:"Data Center/Web Hosting/Transit",children:(0,a.jsx)(o.default,{className:"m-1",name:["far","database"]})}),n.includes("Search Engine Spider")&&(0,a.jsx)(r.default,{content:"Search Engine Spider",children:(0,a.jsx)(o.default,{className:"m-1",name:["far","spider"]})}),n.includes("Public/Commercial Entity")&&(0,a.jsx)(r.default,{content:"Public/Commercial Entity",children:(0,a.jsx)(o.default,{className:"m-1",name:["far","briefcase"]})}),n.includes("Mobile ISP")&&(0,a.jsx)(r.default,{content:"Mobile ISP",children:(0,a.jsx)(o.default,{className:"m-1",name:["far","tower-broadcast"]})}),n.includes("Fixed Line ISP")&&(0,a.jsx)(r.default,{content:"Fixed Line ISP",children:(0,a.jsx)(o.default,{className:"m-1",name:["far","ethernet"]})})]})}},62077:(e,t,n)=>{"use strict";e.exports=n.p+"3c56ac76bb6ff320ced3.svg"},62113:(e,t,n)=>{"use strict";e.exports=n.p+"ad257628e98d31d278f0.svg"},62161:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=g(n(25751)),a=m(n(14041)),i=n(45365),l=m(n(76969)),s=n(60156),c=n(99018);n(81733);var u=g(n(9752)),d=n(56782),f=g(n(11204)),p=n(31085);function m(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;
2return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function g(e){return e&&e.__esModule?e:{default:e}}var y=["children"];function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var S=o.default;S(".position-x1n2onr6{position:relative}",3e3),S(".display-x78zum5{display:flex}",3e3),S(".flexDirection-xdt5ytf{flex-direction:column}",3e3),S(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),S(".borderRadius-xur7f20{border-radius:8px}",2e3),S(".border-x8msmez{border:1px solid var(--gray250-x1kpk87u)}",1e3),S(".overflow-xb3r6kr{overflow:hidden}",2e3),S(".flexDirection-x1q0g3np{flex-direction:row}",3e3),S(".width-xh8yej3{width:100%}",4e3),S(".zIndex-x1vjfegm{z-index:1}",3e3),S(".background-x1h3gynt{background:var(--white-x3n8fk9)}",1e3),S(".overflowX-xw2csxc{overflow-x:auto}",4e3),S(".overflowY-x1odjw0f{overflow-y:auto}",4e3),S(".flex-x98rzlu{flex:1}",2e3),S(".width-xs6jijv{width:160%}",4e3),S(".minHeight-x2lwn1j{min-height:0}",4e3),S(".overflowX-x6ikm8r{overflow-x:hidden}",4e3),S(".overflowY-x10wlt62{overflow-y:hidden}",4e3),S(".top-x13vifvy{top:0}",4e3),S(".borderBottom-x8dxnfb{border-bottom:solid 1px var(--gray250-x1kpk87u)}",2e3),S(".fontSize-xif65rj{font-size:14px}",3e3),S(".fontWeight-x1s688f{font-weight:600}",3e3),S(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),S(".top-x1ym02ve{top:48px}",4e3),S(".color-x1bk3paq{color:var(--black700-xoh1s16)}",3e3),S(".borderRight-x1irr8wd{border-right:1px solid var(--gray250-x1kpk87u)}",2e3),S(".backgroundColor-x1ex0zz8{background-color:var(--gray25-x1nef6k3)}",3e3),S(".borderCollapse-x1vathgz{border-collapse:separate}",3e3),S(".borderSpacing-x1gukg7c{border-spacing:0}",3e3),S(".height-xsdox4t{height:48px}",4e3),S(".verticalAlign-xxymvpz{vertical-align:middle}",3e3),S(".lineHeight-xklk4pu{line-height:30px}",3e3),S(".border-xws9wp6{border:solid 1px var(--gray250-x1kpk87u)}",1e3),S(".paddingLeft-xd3ty66{padding-left:24px}",4e3),S(".paddingRight-x8e5d8q{padding-right:24px}",4e3),S(".height-xy75621{height:72px}",4e3),S(".fontWeight-xo1l8bm{font-weight:400}",3e3),S(".overflow-x1rea2x4{overflow:visible}",2e3),S(".flexGrow-x1c4vz4f{flex-grow:0}",3e3),S(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),S(".borderBottomWidth-xso031l{border-bottom-width:1px}",4e3),S(".borderStyle-x1y0btm7{border-style:solid}",2e3),S(".borderColor-xmmyy0b{border-color:var(--gray250-x1kpk87u)}",2e3),S(".paddingRight-x1sai7j1{padding-right:28px}",4e3),S(".paddingTop-xexx8yu{padding-top:0}",4e3),S(".paddingBottom-x18d9i69{padding-bottom:0}",4e3),S(".position-x7wzq59{position:sticky}",3e3),S(".paddingRight-x1oou3sl{padding-right:22px}",4e3),S(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3),S(".padding-x1tamke2{padding:16px}",1e3),S(".height-x1egiwwb{height:500px}",4e3),S(".maxHeight-x97qwn1{max-height:fit-content}",4e3),S(".overflowY-xryxfnj{overflow-y:visible}",4e3);var w={rowHover:{backgroundColor:"backgroundColor-x1ex0zz8",$$css:"Table/index.tsx:72"},tableRow:{width:"width-xh8yej3",height:"height-xsdox4t",verticalAlign:"verticalAlign-xxymvpz",fontSize:"fontSize-xif65rj",lineHeight:"lineHeight-xklk4pu",border:"border-xws9wp6",$$css:"Table/index.tsx:80"},tableCell:{paddingLeft:"paddingLeft-xd3ty66",paddingRight:"paddingRight-x8e5d8q",height:"height-xy75621",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",color:"color-x1bk3paq",verticalAlign:"verticalAlign-xxymvpz",overflow:"overflow-x1rea2x4",flexGrow:"flexGrow-x1c4vz4f",whiteSpace:"whiteSpace-xuxw1ft",borderBottomWidth:"borderBottomWidth-xso031l",borderStyle:"borderStyle-x1y0btm7",borderColor:"borderColor-xmmyy0b",$$css:"Table/index.tsx:88"},tableCellLast:{paddingRight:"paddingRight-x1sai7j1",paddingInlineStart:null,paddingInlineEnd:null,$$css:"Table/index.tsx:103"},tableHeader:{background:"background-x1h3gynt",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,paddingLeft:"paddingLeft-xd3ty66",paddingRight:"paddingRight-x8e5d8q",paddingInlineStart:null,paddingInlineEnd:null,paddingTop:"paddingTop-xexx8yu",paddingBottom:"paddingBottom-x18d9i69",verticalAlign:"verticalAlign-xxymvpz",height:"height-xsdox4t",whiteSpace:"whiteSpace-xuxw1ft",position:"position-x7wzq59",top:"top-x13vifvy",borderBottom:"borderBottom-x8dxnfb",borderBottomWidth:null,borderBottomStyle:null,borderBottomColor:null,color:"color-xd87uto",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-x1s688f",$$css:"Table/index.tsx:106"},tableHeaderSub:{top:"top-x1ym02ve",color:"color-x1bk3paq",$$css:"Table/index.tsx:122"},tableHeaderLast:{paddingRight:"paddingRight-x1oou3sl",paddingInlineStart:null,paddingInlineEnd:null,$$css:"Table/index.tsx:126"},tableHeaderAlignRight:{paddingRight:"paddingRight-x1sai7j1",paddingInlineStart:null,paddingInlineEnd:null,$$css:"Table/index.tsx:129"},thSubBg:{backgroundColor:"backgroundColor-x6fdw8f",$$css:"Table/index.tsx:132"}};t.A=function(e){var t=e.children,n=void 0===t?function(){return(0,p.jsx)("div",{})}:t,r=e.rows,o=void 0===r?[]:r,m=e.isSelectable,g=void 0!==m&&m,x=e.onSelectedRows,v=void 0===x?function(){}:x,_=e.resetSelectionTrigger,S=void 0===_?0:_,O=e.hiddenLimitSelect,j=void 0!==O&&O,k=e.limit,E=void 0===k?20:k,N=e.handlePagination,I=e.pageNumber,P=void 0===I?null:I,T=e.totalPages,C=void 0===T?null:T,R=e.totalItems,M=void 0===R?null:R,L=e.isLoading,D=void 0!==L&&L,B=e.handleSorting,U=void 0===B?function(){}:B,F=e.hideTopPagination,G=void 0!==F&&F,W=e.sorting,z=void 0===W?{sortKey:"",sortOrder:""}:W,V=e.noDataTitle,q=void 0===V?(0,s.language)("No results found"):V,K=e.noDataSubTitle,H=void 0===K?(0,s.language)("Try changing date range or filters to get more data"):K,Y=e.noDataStyle,$=void 0===Y?"default":Y,Z=e.leftPinnedColumns,X=void 0===Z?0:Z,J=e.groupColsBreakpoint,Q=void 0===J?1900:J,ee=e.responsiveHeight,te=void 0!==ee&&ee,ne=e.noBottomSpacer,re=void 0===ne||ne,oe=e.noDataMinHeight,ae=void 0===oe?200:oe,ie=e["data-testid"],le=void 0===ie?"responsive-table":ie,se=A((0,a.useState)(0),2),ce=se[0],ue=se[1],de=(0,a.useRef)(null),fe=(0,a.useRef)(null),pe=A((0,a.useState)(null),2),me=pe[0],ge=pe[1],ye=A((0,a.useState)(!1),2),he=ye[0],xe=ye[1],be=(0,a.useRef)(null),ve=A((0,a.useState)(!1),2),Ae=ve[0],_e=ve[1];(0,a.useEffect)(function(){function e(){var e=window.innerWidth;xe(e>Q)}return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[Q]);var Se=A((0,a.useState)([]),2),we=Se[0],Oe=Se[1],je=A((0,a.useState)(!1),2),ke=je[0],Ee=je[1],Ne=A((0,a.useState)([]),2),Ie=Ne[0],Pe=Ne[1];(0,a.useEffect)(function(){var e=(null!=o?o:[]).map(function(e){var t,n;return null!==(t=null!==(n=null==e?void 0:e.id)&&void 0!==n?n:null==e?void 0:e.key)&&void 0!==t?t:""});(e.length!==Ie.length||e.some(function(e,t){return e!==Ie[t]}))&&(Oe([]),Ee(!1),Pe(e))},[o]),(0,a.useEffect)(function(){Oe([]),Ee(!1)},[S]),(0,a.useEffect)(function(){v(we)},[we]);var Te=n(o[0]),Ce=a.default.isValidElement(Te)?Te:null,Re=(Ce&&Array.isArray(Ce.props.children)?Ce.props.children:[]).find(function(e){return(0,a.isValidElement)(e)&&"thead"===e.type}),Me=null,Le=null;if(Re&&(0,a.isValidElement)(Re)){var De,Be=null===(De=Re.props)||void 0===De?void 0:De.children;Array.isArray(Be)?(Me=(0,a.isValidElement)(Be[0])&&"tr"===Be[0].type?Be[0]:null,Le=(0,a.isValidElement)(Be[1])&&"tr"===Be[1].type?Be[1]:null):(0,a.isValidElement)(Be)&&"tr"===Be.type&&(Me=Be,Le=null)}function Ue(e){if(!e||!e.props||!e.props.children)return e;var t=a.default.Children.toArray(e.props.children).filter(function(e){var t;return!("SubContent"===(null==e||null===(t=e.type)||void 0===t?void 0:t.displayName))});return a.default.cloneElement(e,b(b({},e.props),{},{children:t}))}function Fe(e,t,n,r){var o=null!=r?r:0,i="first"===n?[w.tableHeader]:[w.tableHeader,w.tableHeaderSub,w.thSubBg];if(!e||"object"!==h(e)||!Array.isArray(e))return null;var l=e;return X>0&&"right"===t&&(l=e.slice(-(e.length-X))),X>0&&"left"===t&&(l=e.slice(0,X)),l.map(function(e,n){var r,s;if(!e||"object"!==h(e)||!e.type||!e.props)return null;var c=n===l.length-1,u="right"===(null===(r=e.props)||void 0===r?void 0:r["data-align"])||"right"===(null===(s=e.props)||void 0===s||null===(s=s.children)||void 0===s||null===(s=s.props)||void 0===s?void 0:s["data-align"]),d=i;u?d=[].concat(i,[w.tableHeaderAlignRight]):c&&(d=[].concat(i,[w.tableHeaderLast]));var m,g=a.default.Children.toArray(e.props.children).find(function(e){var t,n;return"SubContent"===(null==e||null===(t=e.type)||void 0===t?void 0:t.displayName)&&!0===(null==e||null===(n=e.props)||void 0===n?void 0:n.groupedCols)});if("AccessControl"===e.type.displayName){if(!e.props.children)return null;var x,v=e.props,A=v.children,_=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(v,y),S=e.type,O=a.default.Children.toArray(A.props.children).find(function(e){var t,n;return"SubContent"===(null==e||null===(t=e.type)||void 0===t?void 0:t.displayName)&&!0===(null==e||null===(n=e.props)||void 0===n?void 0:n.groupedCols)}),j=Ue(A);return O&&he&&"right"===t?(0,p.jsxs)(p.Fragment,{children:[(0,a.createElement)(S,b(b({},_),{},{key:"".concat(o,"-").concat(n,"-access1")}),(0,p.jsx)(f.default,{data:j,sorting:z,handleSorting:U,thStyles:d})),(0,a.createElement)(S,b(b({},_),{},{key:"".concat(o,"-").concat(n,"-access2")}),(0,p.jsx)(f.default,{data:O,sortableId:null!==(x=e.props["data-sortable-id"])&&void 0!==x?x:"",sorting:z,handleSorting:U,thStyles:d}))]}):(0,a.createElement)(S,b(b({},_),{},{key:"".concat(o,"-").concat(n,"-access")}),(0,p.jsx)(f.default,{data:A,sorting:z,handleSorting:U,thStyles:d}))}return g&&he&&("right"===t||"both"===t)?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(f.default,{data:Ue(e),sorting:z,handleSorting:U,thStyles:d},"".concat(o,"-").concat(n,"-ungrouped-main")),(0,p.jsx)(f.default,{data:g,sortableId:null!==(m=e.props["data-sortable-id"])&&void 0!==m?m:"",sorting:z,handleSorting:U,thStyles:d},"".concat(o,"-").concat(n,"-ungrouped-sub"))]}):(0,p.jsx)(f.default,{data:e,sorting:z,handleSorting:U,thStyles:d},"".concat(o,"-").concat(n,"-default"))})}function Ge(e){var t,n,r=null!=="background-x1h3gynt paddingRight-x8e5d8q paddingTop-xexx8yu paddingBottom-x18d9i69 verticalAlign-xxymvpz height-xsdox4t whiteSpace-xuxw1ft position-x7wzq59 top-x13vifvy borderBottom-x8dxnfb color-xd87uto fontSize-xif65rj fontWeight-x1s688f paddingLeft-xd3ty66 borderBottomWidth-xso031l borderColor-xmmyy0b"?"background-x1h3gynt paddingRight-x8e5d8q paddingTop-xexx8yu paddingBottom-x18d9i69 verticalAlign-xxymvpz height-xsdox4t whiteSpace-xuxw1ft position-x7wzq59 top-x13vifvy borderBottom-x8dxnfb color-xd87uto fontSize-xif65rj fontWeight-x1s688f paddingLeft-xd3ty66 borderBottomWidth-xso031l borderColor-xmmyy0b":"",l=null!=="width-xh8yej3 height-xsdox4t verticalAlign-xxymvpz lineHeight-xklk4pu border-xws9wp6 top-x13vifvy borderBottom-x8dxnfb fontSize-xif65rj fontWeight-x1s688f color-xd87uto"?"width-xh8yej3 height-xsdox4t verticalAlign-xxymvpz lineHeight-xklk4pu border-xws9wp6 top-x13vifvy borderBottom-x8dxnfb fontSize-xif65rj fontWeight-x1s688f color-xd87uto":"",c=null!=="width-xh8yej3 height-xsdox4t verticalAlign-xxymvpz lineHeight-xklk4pu border-xws9wp6 top-x1ym02ve borderBottom-x8dxnfb fontSize-xif65rj fontWeight-x1s688f color-x1bk3paq"?"width-xh8yej3 height-xsdox4t verticalAlign-xxymvpz lineHeight-xklk4pu border-xws9wp6 top-x1ym02ve borderBottom-x8dxnfb fontSize-xif65rj fontWeight-x1s688f color-x1bk3paq":"";return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("tr",{className:l,children:[g&&("left"===e||0===X)&&(0,p.jsxs)("th",{className:r,children:[(0,p.jsx)(i.Input.Checkbox,{"aria-label":"selectable-column-header-checkbox",value:ke,onClick:function(){Oe((0,d.toggleSelectAll)(we,o,!ke)),Ee(!ke)}}),(0,p.jsx)("span",{className:"sr-only",children:ke?(0,s.language)("Deselect all"):(0,s.language)("Select all")})]}),a.default.isValidElement(Me)&&null!=Me&&Fe(null===(t=Me.props)||void 0===t?void 0:t.children,e,"first")
2]}),Le&&(0,p.jsxs)("tr",{className:c,children:[g&&("left"===e||0===X)&&(0,p.jsx)("th",{className:null!=="background-x1h3gynt paddingRight-x8e5d8q paddingTop-xexx8yu paddingBottom-x18d9i69 verticalAlign-xxymvpz height-xsdox4t whiteSpace-xuxw1ft position-x7wzq59 borderBottom-x8dxnfb fontSize-xif65rj fontWeight-x1s688f top-x1ym02ve color-x1bk3paq paddingLeft-xd3ty66 borderBottomWidth-xso031l borderColor-xmmyy0b backgroundColor-x6fdw8f"?"background-x1h3gynt paddingRight-x8e5d8q paddingTop-xexx8yu paddingBottom-x18d9i69 verticalAlign-xxymvpz height-xsdox4t whiteSpace-xuxw1ft position-x7wzq59 borderBottom-x8dxnfb fontSize-xif65rj fontWeight-x1s688f top-x1ym02ve color-x1bk3paq paddingLeft-xd3ty66 borderBottomWidth-xso031l borderColor-xmmyy0b backgroundColor-x6fdw8f":"",children:(0,p.jsx)("span",{className:"sr-only"})}),Le&&a.default.isValidElement(Le)&&(null===(n=Le.props)||void 0===n?void 0:n.children)&&Fe(Le.props.children,e,"second")]})]})}function We(e,t){if("function"!=typeof n||!e)return[];var r=n(e),o=a.default.isValidElement(r)?r:null;if(!o||!Array.isArray(o.props.children))return[];var i=o.props.children,s=a.default.isValidElement(i[1])?i[1]:null;if(!s||!Array.isArray(s.props.children))return[];var u=s.props.children,d=u;return X>0&&"right"===t&&(d=d.slice(-(u.length-X))),X>0&&"left"===t&&(d=d.slice(0,X)),d.map(function(n,r){var o,i,s,u,f;if(!n||"object"!==h(n))return null;var m="right"===n.props["data-align"]?{textAlign:"right"}:{},g="AccessControl"===(null===(o=n.type)||void 0===o?void 0:o.displayName),y="td-".concat(null!==(i=e.id)&&void 0!==i?i:r);if(g&&null!==(s=n.props)&&void 0!==s&&s.children){var x,v,A,_=n.props.children,S=a.default.Children.toArray(null===(x=_.props)||void 0===x?void 0:x.children).find(function(e){var t,n;return"SubContent"===(null==e||null===(t=e.type)||void 0===t?void 0:t.displayName)&&!0===(null==e||null===(n=e.props)||void 0===n?void 0:n.groupedCols)}),O=a.default.cloneElement(_,{children:a.default.Children.toArray(_.props.children).filter(function(e){var t;return"SubContent"!==(null==e||null===(t=e.type)||void 0===t?void 0:t.displayName)})});if(S&&he&&"right"===t){var j,k=O,E=a.default.cloneElement(O,{className:(0,c.classNames)(null!=="paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b"?"paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b":"",null!==(j=k.props.className)&&void 0!==j?j:"")});return(0,p.jsxs)(p.Fragment,{children:[a.default.cloneElement(n,{},E),(0,p.jsx)("td",b(b({},{className:"paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b","data-style-src":"Table/index.tsx:88"}),{},{style:b(b({},n.props.style),m),children:a.default.cloneElement(n,{},S.props.children)}),"".concat(y,"-access-sub"))]})}return a.default.cloneElement(n,b(b({},n.props),{},{style:b(b({},n.props.style),m),children:a.default.cloneElement(_,{className:(0,c.classNames)(null!==(v=l.props(w.tableCell,r===d.length-1&&w.tableCellLast).className)&&void 0!==v?v:"",null!==(A=_.props.className)&&void 0!==A?A:"")})}))}var N=a.default.Children.toArray(n.props.children).find(function(e){var t,n;return"SubContent"===(null==e||null===(t=e.type)||void 0===t?void 0:t.displayName)&&!0===(null==e||null===(n=e.props)||void 0===n?void 0:n.groupedCols)});if(N&&he&&"right"===t)return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("td",b(b({},{className:"paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b","data-style-src":"Table/index.tsx:88"}),{}
2,{style:b(b({},n.props.style),m),children:n.props.children[0]}),"".concat(y,"-main")),(0,p.jsx)("td",b(b({},{className:"paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b","data-style-src":"Table/index.tsx:88"}),{},{style:b(b({},n.props.style),m),children:N.props.children}),"".concat(y,"-sub"))]});var I=n.props["data-disabled"],P=I?.4:1;return a.default.cloneElement(n,b(b({},n.props),{},{className:(0,c.classNames)(null!==(u=l.props(w.tableCell,r===d.length-1&&w.tableCellLast).className)&&void 0!==u?u:"",null!==(f=n.props.className)&&void 0!==f?f:""),style:b(b({},n.props.style),m),children:I?(0,p.jsx)("div",{style:{opacity:P,pointerEvents:"none"},children:n.props.children}):n.props.children}))})}function ze(e,t,n){return(0,p.jsxs)("tr",b(b({},l.props(w.tableRow,me===t&&w.rowHover)),{},{onMouseEnter:function(){return ge(t)},onMouseLeave:function(){return ge(null)},children:[g&&("left"===n||0===X)&&(0,p.jsx)("td",b(b({},{className:"paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b paddingLeft-xd3ty66","data-style-src":"Table/index.tsx:88; Table/index.tsx:144"}),{},{children:(0,p.jsx)(i.Input.Checkbox,{value:(0,d.isSelected)(e,we),"aria-label":"selectable-row-checkbox-".concat(t),"data-testid":"selectable-row-checkbox-".concat(t),onClick:function(){Oe((0,d.selectItem)(e,we)),Ee(!1)}})})),We(e,n)]}),t)}function Ve(e){var t,n,r,o=null;if(a.default.isValidElement(Me)?o=Me:a.default.isValidElement(Le)&&(o=Le),!o)return 0;var i,l=(i=null!==(r=Fe(a.default.isValidElement(o)&&null!==(t=null===(n=o.props)||void 0===n?void 0:n.children)&&void 0!==t?t:[],e,"first"))&&void 0!==r?r:[],a.default.Children.toArray(i).flatMap(function(e){return(null==e?void 0:e.type)===a.default.Fragment&&Array.isArray(e.props.children)?a.default.Children.toArray(e.props.children):[e]})).length;return g&&("left"===e||0===X)&&(l+=1),l}function qe(e){fe.current&&(fe.current.scrollTop=e.currentTarget.scrollTop)}return(0,a.useEffect)(function(){var e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px";var t=document.body;null!=t&&(t.appendChild(e),ue(e.offsetHeight-e.clientHeight),t.removeChild(e))},[]),(0,a.useEffect)(function(){function e(){if(be.current){var e=be.current.getBoundingClientRect(),t=window.innerHeight-e.bottom;te&&_e(t<200)}}e(),window.addEventListener("scroll",e),window.addEventListener("resize",e);var t=new ResizeObserver(e);return be.current&&t.observe(be.current),function(){window.removeEventListener("scroll",e),window.removeEventListener("resize",e),t.disconnect()}},[D,null==o?void 0:o.length]),(0,a.useEffect)(function(){var e=fe.current,t=de.current;if(e&&t&&X){var n=null;o();var r=new ResizeObserver(function(){o()});return r.observe(e),r.observe(t),window.addEventListener("resize",o),function(){window.removeEventListener("resize",o),r.disconnect(),null!==n&&cancelAnimationFrame(n)}}function o(){null!==n&&cancelAnimationFrame(n),n=requestAnimationFrame(function(){n=null,function(){if(e&&t){var n=e.querySelectorAll("tbody tr"),r=t.querySelectorAll("tbody tr"),o=Math.min(n.length,r.length);if(o){n.forEach(function(e){e.style.height=""}),r.forEach(function(e){e.style.height=""});for(var a=[],i=0;i<o;i+=1)a.push(Math.max(n[i].getBoundingClientRect().height,r[i].getBoundingClientRect().height));for(var l=0;l<o;l+=1){var s="".concat(a[l],"px");n[l].style.height=s,r[l].style.height=s}}}}()})}},[null==o?void 0:o.length,X]),D?(0,p.jsxs)("div",b(b({},{className:"position-x1n2onr6 display-x78zum5 flexDirection-xdt5ytf backgroundColor-x18oya0d borderRadius-xur7f20 border-x8msmez overflow-xb3r6kr","data-style-src":"Table/index.tsx:20"}),{},{"data-testid":le,children:[N&&!G&&(0,p.jsx)(u.default,{totalPages:C,pageNumber:P,handlePagination:N,hiddenLimitSelect:j,totalItems:M,limit:"number"==typeof E?E:20,top:!0}),(0,p.jsxs)("div",b(b({ref:be},{className:"backgroundColor-x18oya0d display-x78zum5 flexDirection-x1q0g3np overflow-xb3r6kr width-xh8yej3 maxHeight-x97qwn1 minHeight-x2lwn1j overflowY-xryxfnj","data-style-src":"Table/index.tsx:29; Table/index.tsx:155"}),{},{"data-testid":"loading-table",children:[X>0&&(0,p.jsx)("div",b(b({},{className:"overflow-xb3r6kr zIndex-x1vjfegm background-x1h3gynt","data-style-src":"Table/index.tsx:36"}),{},{style:re?{paddingBottom:0}:{paddingBottom:ce},ref:fe,children:(0,p.jsxs)("table",b(b({},{className:"borderCollapse-x1vathgz borderSpacing-x1gukg7c width-xh8yej3 borderRight-x1irr8wd","data-style-src":"Table/index.tsx:75; Table/index.tsx:69"}),{},{children:[(0,p.jsx)("thead",{children:Ge("left")}),(0,p.jsx)("tbody",{children:Array.from({length:10}).map(function(e,t){return(0,p.jsx)("tr",b(b({},{className:"width-xh8yej3 height-xsdox4t verticalAlign-xxymvpz fontSize-xif65rj lineHeight-xklk4pu border-xws9wp6","data-style-src":"Table/index.tsx:80"}),{},{children:Array.from({length:Ve("left")}).map(function(e,n){return(0,p.jsx)("td",b(b({},{className:"paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b","data-style-src":"Table/index.tsx:88"}),{},{className:"".concat(null!=="paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b"?"paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b":""," rt-loading-cell"),children:(0,p.jsx)(i.Placeholder,{type:"text",rows:1,ready:!1,showLoadingAnimation:!0})}),"loading-left-".concat(t,"-").concat(n))})}),"loading-row-".concat(t))})})]}))})),(0,p.jsx)("div",b(b({},{className:"overflowX-xw2csxc overflowY-x1odjw0f flex-x98rzlu width-xs6jijv minHeight-x2lwn1j","data-style-src":"Table/index.tsx:41"}),{},{ref:de,onScroll:qe,children:(0,p.jsxs)("table",b(b({},{className:"borderCollapse-x1vathgz borderSpacing-x1gukg7c width-xh8yej3","data-style-src":"Table/index.tsx:75"}),{},{children:[(0,p.jsx)("thead",{children:Ge("right")}),(0,p.jsx)("tbody",{children:Array.from({length:10}).map(function(e,t){return(0,p.jsx)("tr",b(b({},{className:"width-xh8yej3 height-xsdox4t verticalAlign-xxymvpz fontSize-xif65rj lineHeight-xklk4pu border-xws9wp6","data-style-src":"Table/index.tsx:80"}),{},{children:Array.from({length:Ve("right")}).map(function(e,n){return(0,p.jsx)("td",b(b({},{className:"paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b","data-style-src":"Table/index.tsx:88"}),{},{className:"".concat(null!=="paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b"?"paddingLeft-xd3ty66 paddingRight-x8e5d8q height-xy75621 fontSize-xif65rj fontWeight-xo1l8bm color-x1bk3paq verticalAlign-xxymvpz overflow-x1rea2x4 flexGrow-x1c4vz4f whiteSpace-xuxw1ft borderBottomWidth-xso031l borderStyle-x1y0btm7 borderColor-xmmyy0b":""," rt-loading-cell"),children:(0,p.jsx)(i.Placeholder,{type:"text",rows:1,ready:!1,showLoadingAnimation:!0})}),"loading-right-".concat(t,"-").concat(n))})}),"loading-row-right-".concat(t))})})]}))}))]}))]})):0!==o.length||1!==C&&null!==C?(0,p.jsxs)("div",b(b({},{className:"position-x1n2onr6 display-x78zum5 flexDirection-xdt5ytf backgroundColor-x18oya0d borderRadius-xur7f20 border-x8msmez overflow-xb3r6kr","data-style-src":"Table/index.tsx:20"}),{},{"data-testid":le,children:[N&&!G&&(0,p.jsx)(u.default,{totalPages:"number"==typeof C?C:1,pageNumber:"number"==typeof P?P:1,handlePagination:N,hiddenLimitSelect:j,totalItems:"number"==typeof M?M:0,limit:"number"==typeof E?E:20,top:!0}),(0,p.jsxs)("div",b(b({ref:be},{className:"backgroundColor-x18oya0d display-x78zum5 flexDirection-x1q0g3np overflow-xb3r6kr width-xh8yej3","data-style-src":"Table/index.tsx:29"}),{},{style:{maxHeight:Ae?"calc(100vh - 500px)":"fit-content",minHeight:Ae&&o.length>6?400:0,overflowY:Ae?"auto":"visible",transition:"max-height 0.3s ease"},children:[X>0&&(0,p.jsx)("div",b(b({},{className:"overflow-xb3r6kr zIndex-x1vjfegm background-x1h3gynt","data-style-src":"Table/index.tsx:36"}),{},{ref:fe,style:re?{paddingBottom:0}:{paddingBottom:ce},children:(0,p.jsxs)("table",b(b({},{className:"borderCollapse-x1vathgz borderSpacing-x1gukg7c width-xh8yej3 borderRight-x1irr8wd","data-style-src":"Table/index.tsx:75; Table/index.tsx:69"}),{},{children:[(0,p.jsx)("thead",{children:Ge("left")}),(0,p.jsx)("tbody",{children:o.map(function(e,t){return ze(e,t,"left")})})]}))})),(0,p.jsx)("div",b(b({},{className:"overflowX-xw2csxc overflowY-x1odjw0f flex-x98rzlu width-xs6jijv minHeight-x2lwn1j","data-style-src":"Table/index.tsx:41"}),{},{ref:de,onScroll:qe,children:(0,p.jsxs)("table",b(b({},{className:"borderCollapse-x1vathgz borderSpacing-x1gukg7c width-xh8yej3","data-style-src":"Table/index.tsx:75"}),{},{children:[(0,p.jsx)("thead",{children:Ge("right")}),(0,p.jsx)("tbody",{children:o.map(function(e,t){return ze(e,t,"right")})})]}))}))]}))]})):(0,p.jsx)("div",b(b({},{className:"position-x1n2onr6 display-x78zum5 flexDirection-xdt5ytf backgroundColor-x18oya0d borderRadius-xur7f20 border-x8msmez overflow-xb3r6kr","data-style-src":"Table/index.tsx:20"}),{},{"data-testid":le,children:(0,p.jsx)("div",b(b({},{className:"backgroundColor-x18oya0d display-x78zum5 flexDirection-x1q0g3np overflow-xb3r6kr width-xh8yej3","data-style-src":"Table/index.tsx:29"}),{},{children:(0,p.jsxs)("div",b(b({},{className:"overflowX-x6ikm8r overflowY-x10wlt62 flex-x98rzlu width-xh8yej3 minHeight-x2lwn1j","data-style-src":"Table/index.tsx:48"}),{},{children:[(0,p.jsx)("table",b(b({},{className:"borderCollapse-x1vathgz borderSpacing-x1gukg7c width-xh8yej3","data-style-src":"Table/index.tsx:75"}),{},{children:(0,p.jsx)("thead",{children:Ge("both")})})),(0,p.jsx)("div",b(b({},{className:"width-xh8yej3 padding-x1tamke2","data-style-src":"Table/index.tsx:135"}),{},{children:(0,p.jsx)(i.NoData,{hasNoData:!0,title:q,subTitle:H,preset:$,minHeight:null!=ae?ae:300})}))]}))}))}))}}
2,62562:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(99018),i=n(31085);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var s=["children","className"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=o.default;function p(e){var t=e.children,n=void 0===t?null:t,r=e.className,o=void 0===r?"":r,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s),c=(0,a.classNames)("color-xh3519o fontSize-xif65rj fontWeight-xo1l8bm",o);return(0,i.jsx)("div",u(u({className:c},l),{},{children:n}))}f(".color-xh3519o{color:var(--black500-x161om0q)}",3e3),f(".fontSize-xif65rj{font-size:14px}",3e3),f(".fontWeight-xo1l8bm{font-weight:400}",3e3),p.displayName="WidgetLabel",t.A=p},62683:(e,t,n)=>{"use strict";t.A=void 0;var r=s(n(25751)),o=n(99018),a=n(60156),i=s(n(79135)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=r.default;function d(e){var t=e.className,n=void 0===t?"":t,r=e.status,s=void 0===r?-1:r,u=e.iconOnly,d=void 0!==u&&u;function f(){if("number"==typeof s)return s;if("string"==typeof s){var e=s.toLowerCase();if("disabled"===e)return 0;if("monitored"===e)return 1;if("protected"===e)return 2}if("object"===c(s)&&null!==s){var t=s;return t.protection_status?t.protection_status:1===t.protection_enabled&&1===t.monitoring_enabled?2:0===t.protection_enabled&&1===t.monitoring_enabled?1:0}return-1}return(0,l.jsxs)("div",{className:n,children:[(0===f()||"disabled"===f())&&(0,l.jsxs)("div",{className:(0,o.classNames)("borderRadius-x1f96onm height-x1fgtraw textAlign-x2b8uid width-xeq5yr9 padding-x1n67nvo display-x78zum5 alignItems-x6s0dn4 minWidth-x1i9suas","backgroundColor-x1ssdy5 color-xqy16mm",d&&"padding-xgrnjtw minWidth-x46jg8d display-x11zr3cd"),children:[(0,l.jsx)(i.default,{name:["far","minus-circle"],className:(0,o.classNames)("mr-2",d&&"marginRight-xi9kgmd")}),!d&&(0,l.jsx)("div",{children:(0,a.language)("Disabled")})]}),(1===f()||"monitored"===f())&&(0,l.jsxs)("div",{className:(0,o.classNames)("borderRadius-x1f96onm height-x1fgtraw textAlign-x2b8uid width-xeq5yr9 padding-x1n67nvo display-x78zum5 alignItems-x6s0dn4 minWidth-x1i9suas","backgroundColor-xwe9igg color-xn2e7ar",d&&"padding-xgrnjtw minWidth-x46jg8d display-x11zr3cd"),children:[(0,l.jsx)(i.default,{name:["far","wave-pulse"],className:(0,o.classNames)("mr-2",d&&"marginRight-xi9kgmd")}),!d&&(0,l.jsx)("div",{children:(0,a.language)("Monitored")})]}),(2===f()||"protected"===f())&&(0,l.jsxs)("div",{className:(0,o.classNames)("borderRadius-x1f96onm height-x1fgtraw textAlign-x2b8uid width-xeq5yr9 padding-x1n67nvo display-x78zum5 alignItems-x6s0dn4 minWidth-x1i9suas","backgroundColor-xb4lrnj color-x2yr9io",d&&"padding-xgrnjtw minWidth-x46jg8d display-x11zr3cd"),children:[(0,l.jsx)(i.default,{name:["far","shield-check"],className:(0,o.classNames)("mr-2",d&&"marginRight-xi9kgmd")}),!d&&(0,l.jsx)("div",{children:(0,a.language)("Protected")})]})]})}u(".borderRadius-x1f96onm{border-radius:50px}",2e3),u(".height-x1fgtraw{height:28px}",4e3),u(".textAlign-x2b8uid{text-align:center}",3e3),u(".width-xeq5yr9{width:fit-content}",4e3),u(".padding-x1n67nvo{padding:4px 12px 4px 12px}",1e3),u(".display-x78zum5{display:flex}",3e3),u(".alignItems-x6s0dn4{align-items:center}",3e3),u(".minWidth-x1i9suas{min-width:120px}",4e3),u(".padding-xgrnjtw{padding:4px 4px 4px 4px}",1e3),u(".minWidth-x46jg8d{min-width:32px}",4e3),u(".display-x11zr3cd{display:unset}",3e3),u(".marginRight-xi9kgmd{margin-right:0!important}",4e3),u(".backgroundColor-xb4lrnj{background-color:var(--success50-x1xjgkj9)}",3e3),u(".color-x2yr9io{color:var(--success800-xttpvc0)}",3e3),u(".backgroundColor-xwe9igg{background-color:var(--secondary50-xpop7mm)}",3e3),u(".color-xn2e7ar{color:var(--secondary500-x3dx61e)}",3e3),u(".backgroundColor-x1ssdy5{background-color:var(--error50-x1f3qy36)}",3e3),u(".color-xqy16mm{color:var(--error700-x1brey9)}",3e3),d.displayName="ProtectionStatus",t.A=d},62705:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(14041),l=n(45365),s=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),c=n(60156),u=n(18141),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=a.default;y(".display-x78zum5{display:flex}",3e3),y(".justifyContent-x1qughib{justify-content:space-between}",3e3),y(".marginBottom-xod5an3{margin-bottom:12px}",4e3),y(".marginRight-xl010v5{margin-right:4px}",4e3),y(".float-x18mqm2i{float:right}",3e3),y(".backgroundColor-xsk8ldd{background-color:var(--purple50-x122sfv2)}",3e3);var h={container:{display:"display-x78zum5",justifyContent:"justifyContent-x1qughib",marginBottom:"marginBottom-xod5an3",marginRight:"marginRight-xl010v5",$$css:"Item/index.tsx:21"},selected:{backgroundColor:"backgroundColor-xsk8ldd",$$css:"Item/index.tsx:30"}};function x(e,t){var n,r=e.item,o=e.selected,a=e.index;return(0,d.jsxs)("div",m(m({},s.props(h.container,o===a&&h.selected)),{},{ref:t,children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(l.Text,{size:"sm",preset:"chartLabelHeading",children:r.label}),(0,d.jsxs)(l.Text,{size:"sm",preset:"chartLabelSubHeading",children:[r.total.toLocaleString("en-GB")," ",(0,c.language)("Clicks")," ","|"," ",(0,u.calcPercentage)(r.rawFraudulent,r.total),"%"]})]}),(0,d.jsx)(l.Badge,m(m({colourName:(n=r.matchType,n?"p"===n?"primary":"b"===n?"success":"e"===n?"default":""===n?"?":"":"")},{className:"float-x18mqm2i","data-style-src":"Item/index.tsx:27"}),{},{children:function(e){return e?"p"===e?(0,c.language)("Phrase"):"b"===e?(0,c.language)("Broad"):"e"===e?(0,c.language)("Exact"):"No match type reported by Google"===e?"?":"":""}(r.matchType)}))]}))}t.default=(0,i.forwardRef)(x)},62720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(25751)),o=n(99018),a=h(n(79135)),i=h(n(9486)),l=h(n(40803)),s=h(n(4665)),c=h(n(73215)),u=h(n(39347)),d=h(n(22108)),f=h(n(25592)),p=h(n(69429)),m=h(n(14363)),g=h(n(39313)),y=n(31085);function h(e){return e&&e.__esModule?e:{default:e}}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}var b=["className","label","name","id","formData","onFormValue","onChange","disabled","type","placeholder","required","errors","value","size","hintText","iconLeft","iconRight","contentRight","showErrors","hideErrorStyles"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?v(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return(t=function(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=r.default;function w(e){var t,n,r,s=e.className,c=void 0===s?"":s,u=e.label,d=void 0===u?"":u,f=e.name,p=void 0===f?"":f,m=e.id,g=void 0===m?"":m,h=(e.formData,e.onFormValue),x=void 0===h?function(){}:h,v=e.onChange,_=e.disabled,S=void 0!==_&&_,w=e.type,O=void 0===w?"text":w,j=e.placeholder,k=void 0===j?"":j,E=e.required,N=void 0!==E&&E,I=e.errors,P=void 0===I?[]:I,T=e.value,C=void 0===T?"":T,R=e.size,M=void 0===R?"md":R,L=e.hintText,D=void 0===L?"":L,B=e.iconLeft,U=void 0===B?"":B,F=e.iconRight,G=void 0===F?"":F,W=e.contentRight,z=void 0===W?null:W,V=e.showErrors,q=void 0!==V&&V,K=e.hideErrorStyles,H=void 0!==K&&K,Y=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,b),$=null!==(t=null!==(n=null!==(r=Y["data-testid"])&&void 0!==r?r:g)&&void 0!==n?n:p)&&void 0!==t?t:"input",Z=(0,o.classNames)("display-x1lliihq backgroundColor-x18oya0d backgroundColor-x13ihzrn backgroundColor-x6x3n68 color-x1jsblnb color-x1atpp90 color-xe4m138 border-xct47cs border-x1r62wwx outline-x1a2a7pz outline-x27j11 boxShadow-x1qzktc2 boxShadow-xewqxn7 borderRadius-x12oqio5 width-xh8yej3 fontWeight-xk50ysn fontWeight-x1rr6dy7 fontWeight-x1livwk2","sm"===M&&"height-x10w6t97 padding-xe8ttls lineHeight-x1xxsxie fontSize-xif65rj","md"===M&&"height-xn3w4p2 padding-x1tamke2 lineHeight-x1d3mw78 fontSize-x1j61zf2","lg"===M&&"height-xng8ra padding-xp9y95v lineHeight-x1fc57z9 fontSize-xosj86m",P.length>0&&q&&!H&&"border-x1vbwh7a outline-xzd0ubt",U&&"sm"===M&&"paddingLeft-x1x7g8rv",U&&"md"===M&&"paddingLeft-xg3sno2",U&&"lg"===M&&"paddingLeft-x1dcfgta",(G||z)&&"sm"===M&&"paddingRight-x1tuxcxe",(G||z)&&"md"===M&&"paddingRight-x126bw0h",(G||z)&&"lg"===M&&"paddingRight-xh80x56",c),X=(0,o.classNames)("position-x10l6tqk display-x78zum5 alignItems-x6s0dn4 color-xh3519o","sm"===M&&"fontSize-xif65rj height-x10w6t97 left-xncym2f","md"===M&&"fontSize-x1j61zf2 height-xn3w4p2 left-x1qpfodn","lg"===M&&"fontSize-xosj86m height-xng8ra left-x1u0e7iy",S&&"color-x97t7pj"),J=(0,o.classNames)("position-x10l6tqk display-x78zum5 alignItems-x6s0dn4 color-xh3519o","sm"===M&&"fontSize-xif65rj height-x10w6t97 right-x19up5dg","md"===M&&"fontSize-x1j61zf2 height-xn3w4p2 right-xn5hqff","lg"===M&&"fontSize-xosj86m height-xng8ra right-x3mw7os",S&&"color-x97t7pj"),Q=(0,o.classNames)("position-x10l6tqk display-x78zum5 alignItems-x6s0dn4","sm"===M&&"height-x10w6t97 right-x19up5dg","md"===M&&"height-xn3w4p2 right-xn5hqff","lg"===M&&"height-xng8ra right-x3mw7os");return(0,y.jsxs)("div",{children:[d&&(0,y.jsx)(i.default,{htmlFor:g||p,className:"marginBottom-x1e56ztr",size:M,disabled:S,children:d}),(0,y.jsxs)("div",A(A({},{className:"position-x1n2onr6","data-style-src":"Input/index.tsx:19"}),{},{children:[U&&(0,y.jsx)("div",{className:X,"data-testid":"input-icon-left",children:(0,y.jsx)(a.default,{name:U})}),G&&(0,y.jsx)("div",{className:J,"data-testid":"input-icon-right",children:(0,y.jsx)(a.default,{name:G})}),z&&(0,y.jsx)("div",{className:Q,"data-testid":"input-content-right",children:z}),(0,y.jsx)("input",A({name:p,value:C,type:O,className:Z,onChange:function(e){var t;null==v||v(e),x({name:p,value:null!==(t=e.target.value)&&void 0!==t?t:""})},disabled:S,placeholder:k,id:g||p,"data-testid":g||p,required:N},Y))]})),D&&(P.length<1||!q)&&(0,y.jsx)("div",{className:(0,o.classNames)("fontSize-xif65rj fontWeight-xo1l8bm lineHeight-x1fc57z9 marginTop-x1xmf6yo color-x1jsblnb color-x1atpp90",S&&"color-xkv09jl"),children:D}),P.length>0&&q&&(0,y.jsx)(l.default,{errors:P,dataTestId:"".concat($,"-error")})]})}S(".position-x1n2onr6{position:relative}",3e3),S(".display-x1lliihq{display:block}",3e3),S(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),S(".backgroundColor-x13ihzrn:disabled{background-color:var(--gray250-x1kpk87u)}",3092),S(".backgroundColor-x6x3n68:disabled:hover{background-color:var(--gray250-x1kpk87u)}",3040),S(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),S(".color-x1atpp90:disabled{color:var(--black200-xao0axe)}",3092),S(".color-xe4m138::placeholder{color:var(--black200-xao0axe)}",8e3),S(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),S(".border-x1r62wwx:focus{border:1px solid var(--oldBrand600-x1t41vhw)}",1150),S(".outline-x1a2a7pz{outline:none}",2e3),S(".outline-x27j11:focus{outline:4px solid var(--secondary200-xut29wu)}",2150),S(".boxShadow-x1qzktc2{box-shadow:0 1px 2px 0 #0A0D120D}",3e3),S(".boxShadow-xewqxn7:focused{box-shadow:none}",3040),S(".borderRadius-x12oqio5{border-radius:4px}",2e3),S(".width-xh8yej3{width:100%}",4e3),S(".fontWeight-xk50ysn{font-weight:500}",3e3),S(".fontWeight-x1rr6dy7:disabled{font-weight:400}",3092),S(".fontWeight-x1livwk2::placeholder{font-weight:400}",8e3),S(".border-x1vbwh7a{border:1px solid var(--error500-x1idp37q)!important}",1e3),S(".outline-xzd0ubt{outline:none!important}",2e3),S(".paddingLeft-x1x7g8rv{padding-left:26px}",4e3),S(".paddingLeft-xg3sno2{padding-left:44px}",4e3),S(".paddingLeft-x1dcfgta{padding-left:48px}",4e3),S(".paddingRight-x1tuxcxe{padding-right:26px}",4e3),S(".paddingRight-x126bw0h{padding-right:44px}",4e3),S(".paddingRight-xh80x56{padding-right:48px}",4e3),S(".height-x10w6t97{height:32px}",4e3),S(".padding-xe8ttls{padding:8px}",1e3),S(".lineHeight-x1xxsxie{line-height:14px}",3e3),S(".fontSize-xif65rj{font-size:14px}",3e3),S(".height-xn3w4p2{height:44px}",4e3),S(".padding-x1tamke2{padding:16px}",1e3),S(".lineHeight-x1d3mw78{line-height:16px}",3e3),S(".fontSize-x1j61zf2{font-size:16px}",3e3),S(".height-xng8ra{height:60px}",4e3),S(".padding-xp9y95v{padding:22px}",1e3),S(".lineHeight-x1fc57z9{line-height:20px}",3e3),S(".fontSize-xosj86m{font-size:18px}",3e3),S(".position-x10l6tqk{position:absolute}",3e3),S(".display-x78zum5{display:flex}",3e3),S(".alignItems-x6s0dn4{align-items:center}",3e3),S(".color-xh3519o{color:var(--black500-x161om0q)}",3e3),S(".left-xncym2f{left:8px}",4e3),S(".left-x1qpfodn{left:16px}",4e3),S(".left-x1u0e7iy{left:18px}",4e3),S(".right-x19up5dg{right:8px}",4e3),S(".right-xn5hqff{right:16px}",4e3),S(".right-x3mw7os{right:18px}",4e3),S(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),S(".color-x97t7pj{color:var(--black200-xao0axe)}",3e3),S(".fontWeight-xo1l8bm{font-weight:400}",3e3),S(".marginTop-x1xmf6yo{margin-top:8px}",4e3),S(".color-xkv09jl{color:var(--black200-xao0axe)!important}",3e3),w.Select=u.default,w.Toggle=c.default,w.DatePicker=s.default,w.Date=s.default,w.Checkbox=d.default,w.Radio=f.default,w.OptionGroup=p.default,w.SearchSelect=m.default,w.TextArea=g.default,w.displayName="Input",t.default=w},62784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d}),n(14041);var r=n(61511),o=n(12096),a=n(80806),i=n(72358),l=n(39599),s=n(4386),c=n(31085);function u(e){var t,n=e.filters,u=e.filter,d=e.setFilter;if(!(0,s.shouldShowFilter)(u,n))return null;var f=(0,s.getFilterTestId)(null!==(t=u.label)&&void 0!==t?t:u.name,"filter-control");switch(u.type){case"dropdown-multi-select":return(0,c.jsx)("div",{"data-testid":f,children:(0,c.jsx)(r.A,{filter:u,filters:n,setFilter:d})});case"dropdown-select":return(0,c.jsx)("div",{"data-testid":f,children:(0,c.jsx)(o.A,{filter:u,filters:n,setFilter:d})});case"flat-select":return(0,c.jsx)("div",{"data-testid":f,children:(0,c.jsx)(a.A,{filter:u,filters:n,setFilter:d})});case"input-dropdown":return(0,c.jsx)("div",{"data-testid":f,children:(0,c.jsx)(i.A,{filter:u,setFilter:d})});case"searched-dropdown":return(0,c.jsx)("div",{"data-testid":f,children:(0,c.jsx)(l.A,{filter:u,filters:n,setFilter:d})});default:return null}}u.displayName="FilterSwitcher";const d=u}
2,62823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(14041),i=n(99018),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var p=o.default;p(".display-x78zum5{display:flex}",3e3),p(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".gap-x167g77z{gap:8px}",2e3),p(".marginRight-x1wsuqlk{margin-right:12px}",4e3),t.default=function(e){var t=e.children,n=e.className,r=void 0===n?"":n;return(0,l.jsx)("div",u(u({className:(0,i.classNames)(r)},{className:"display-x78zum5 justifyContent-x13a6bvl alignItems-x6s0dn4 gap-x167g77z","data-style-src":"Actions/index.tsx:11"}),{},{children:function e(t){return a.Children.map(t,function(t){var n;if(!(0,a.isValidElement)(t))return t;var r,o=t,i=t.type,l={};if("Button"===(null==i?void 0:i.displayName)){var s,c=null===(s=o.props)||void 0===s?void 0:s.className,u=Array.isArray(c)?c:c?[c]:[],d="marginRight-x1wsuqlk";l.className=d?[].concat(function(e){if(Array.isArray(e))return f(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[d]):u}return l.children=e(null===(n=o.props)||void 0===n?void 0:n.children),(0,a.cloneElement)(t,l)})}(t)}))}},62834:(e,t,n)=>{"use strict";e.exports=n.p+"09eae71facdf06c29c4c.svg"},62974:(e,t,n)=>{"use strict";e.exports=n.p+"f01647099cb2b5b37b55.svg"},63387:(e,t,n)=>{"use strict";n.d(t,{A:()=>u}),n(14041);var r=n(88133),o=n(97475),a=n(51836),i=n(89748),l=n(24284),s=n(71421),c=n(31085);const u=function(){var e=(0,a.Zp)(),t=(0,o.jE)(),n=(0,r.gC)("/workspaces","POST");return(0,c.jsx)(s.A,{initialFormValues:{workspace_name:""},onWorkspaceCreate:function(r){n.mutate(r,{onSuccess:function(n){var r;(0,l.A)((0,i.A)("Workspace created successfully"),"success"),t.invalidateQueries("/workspaces"),t.invalidateQueries("/user_sync"),e("/workspace-settings/workspace/".concat(null==n||null===(r=n.data)||void 0===r||null===(r=r.result)||void 0===r?void 0:r.workspace_id,"/general"))}})}})}},63480:(e,t,n)=>{"use strict";e.exports=n.p+"973ad34827a27ef78965.svg"},63615:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);const o=function(e){return"p"===e?(0,r.A)("Phrase Match"):"b"===e?(0,r.A)("Broad Match"):"e"===e?(0,r.A)("Exact Match"):"a"===e?(0,r.A)("AI Max"):"No match type reported by Google"===e?"?":(0,r.A)("Unknown")}},63631:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(31085);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=o.default;function d(e){var t=e.children;return(0,a.jsx)("div",s(s({},{className:"backgroundColor-x18oya0d borderBottom-x1na7oll padding-x15fnm84 paddingBottom-x1l90r2v width-xh8yej3 height-xt7dq6l","data-style-src":"ContentHeader/index.tsx:6"}),{},{"data-testid":"layout-content-header",children:t}))}u(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),u(".borderBottom-x1na7oll{border-bottom:1px solid var(--gray300-x1xk3734)}",2e3),u(".padding-x15fnm84{padding:32px}",1e3),u(".paddingBottom-x1l90r2v{padding-bottom:16px}",4e3),u(".width-xh8yej3{width:100%}",4e3),u(".height-xt7dq6l{height:auto}",4e3),d.displayName="ContentHeader",t.A=d},63729:(e,t,n)=>{"use strict";t.A=void 0;var r=l(n(25751)),o=n(45365),a=l(n(13248)),i=n(31085);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,r.default)(".padding-x10xs6qf{padding:28px}",1e3),t.A=function(e){var t=e.accounts,n=t&&t.length>0?"&df_customer_ids=".concat(JSON.stringify(t)):"";return(0,i.jsx)(o.Card,u(u({},{className:"padding-x10xs6qf","data-style-src":"Top5InvalidClicks/index.tsx:7"}),{},{children:(0,i.jsx)(a.default,{accountsSelection:n})}))}},63768:(e,t,n)=>{"use strict";e.exports=n.p+"8136bcff53a2e867e98a.svg"},63956:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=s(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=s(n(79135)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=["status"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=o.default;m(".color-x1de9rt4{color:var(--success700-xjo1ft6)}",3e3),m(".color-x5msaau{color:var(--warning700-xlxq2tu)}",3e3),m(".color-xqy16mm{color:var(--error700-x1brey9)}",3e3);var g={success:{color:"color-x1de9rt4",$$css:"Status/index.tsx:7"},warning:{color:"color-x5msaau",$$css:"Status/index.tsx:10"},error:{color:"color-xqy16mm",$$css:"Status/index.tsx:13"}};t.default=function(e){var t=e.status,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u);return(0,l.jsx)(i.default,f(f({name:["far",{success:"circle-check",warning:"circle-exclamation",error:"circle-xmark"}[t]]},a.props(g[t])),n))}},64247:(e,t,n)=>{"use strict";e.exports=n.p+"f965dbed764b8159d1e8.svg"},64517:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=d(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=d(n(23151)),l=d(n(79135)),s=d(n(30021)),c=d(n(1781)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var p=["title","tooltip","valuePrefix","value","percentage","icon","deltaNumber","deltaTime","deltaDirection","deltaHideText","deltaColour","deltaPreset","statBlockValueSmall","data-testid"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=o.default;h(".border-x15hrl5u{border:1px solid #D5D7DA}",1e3),h(".borderRadius-xur7f20{border-radius:8px}",2e3),h(".padding-x1tamke2{padding:16px}",1e3),h(".display-x78zum5{display:flex}",3e3),h(".flexDirection-xdt5ytf{flex-direction:column}",3e3),h(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),h(".width-xh8yej3{width:100%}
2",4e3),h(".minWidth-x1jzhcrs{min-width:200px}",4e3),h(".minHeight-xhvfr7q{min-height:148px}",4e3),h(".justifyContent-x1qughib{justify-content:space-between}",3e3),h(".alignItems-x6s0dn4{align-items:center}",3e3),h(".marginBottom-xod5an3{margin-bottom:12px}",4e3),h(".fontSize-xwsyq91{font-size:20px}",3e3),h(".width-xvy4d1p{width:24px}",4e3),h(".minHeight-x1rz828m{min-height:30px}",4e3),h(".fontWeight-x1s688f{font-weight:600}",3e3),h(".color-xqi5lc6{color:var(--black300-xmkl1o)}",3e3),h(".marginTop-xdj266r{margin-top:0}",4e3),h(".marginTop-x14vqqas{margin-top:12px}",4e3),h(".fontSize-xif65rj{font-size:14px}",3e3),h(".fontWeight-xo1l8bm{font-weight:400}",3e3),h(".marginRight-xl010v5{margin-right:4px}",4e3),h(".fontSize-xfifm61{font-size:12px}",3e3),h(".color-x1iviald{color:var(--error600-x1indqeg)}",3e3),h(".color-xmnt0z5{color:var(--warning600-xx2fi3s)}",3e3),h(".color-x1rhnk1{color:var(--success600-x1k6hy5b)}",3e3),h(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3);var x={display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",$$css:"StatBlock/index.tsx:41"},b={color:"color-x1iviald",$$css:"StatBlock/index.tsx:51"},v={color:"color-xmnt0z5",$$css:"StatBlock/index.tsx:54"},A={color:"color-x1rhnk1",$$css:"StatBlock/index.tsx:57"},_={color:"color-x1r9fet4",$$css:"StatBlock/index.tsx:60"};function S(e){var t,n,r=e.title,o=void 0===r?"":r,d=e.tooltip,f=void 0===d?"":d,m=e.valuePrefix,y=void 0===m?"":m,h=e.value,S=void 0===h?"":h,w=e.percentage,O=void 0===w?0:w,j=e.icon,k=void 0===j?null:j,E=e.deltaNumber,N=void 0===E?"":E,I=e.deltaTime,P=void 0===I?"":I,T=e.deltaDirection,C=void 0===T?"right":T,R=e.deltaHideText,M=void 0!==R&&R,L=e.deltaColour,D=void 0===L?"red":L,B=e.deltaPreset,U=void 0===B?"default":B,F=e.statBlockValueSmall,G=void 0!==F&&F,W=e["data-testid"],z=void 0===W?"":W,V=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,p);return(0,u.jsxs)("div",g(g(g({"data-testid":z},{className:"border-x15hrl5u borderRadius-xur7f20 padding-x1tamke2 display-x78zum5 flexDirection-xdt5ytf backgroundColor-x18oya0d width-xh8yej3 minWidth-x1jzhcrs minHeight-xhvfr7q","data-style-src":"StatBlock/index.tsx:10"}),V),{},{children:[(0,u.jsxs)("div",g(g({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4 marginBottom-xod5an3","data-style-src":"StatBlock/index.tsx:21"}),{},{children:[(0,u.jsx)("div",g(g({},{"data-style-src":"StatBlock/index.tsx:34"}),{},{children:f?(0,u.jsx)(c.default,{content:f,children:(0,u.jsx)(s.default,{preset:"statBlockHeading",children:o})}):(0,u.jsx)(s.default,{preset:"statBlockHeading",children:o})})),(0,u.jsx)("div",g(g({},{className:"fontSize-xwsyq91 width-xvy4d1p minHeight-x1rz828m fontWeight-x1s688f color-xqi5lc6","data-style-src":"StatBlock/index.tsx:27"}),{},{children:k&&(0,u.jsx)(l.default,{name:k})}))]})),(0,u.jsx)("div",g(g({},{className:"marginTop-xdj266r","data-style-src":"StatBlock/index.tsx:35"}),{},{children:(0,u.jsx)(s.default,{preset:G?"statBlockValueSmall":"statBlockValue",children:function(){if(""!==S&&null!==S){if("number"==typeof S)return"".concat(y).concat(S.toLocaleString());var e=Number(S);return Number.isNaN(e)||""===S.trim()?"".concat(y).concat(S):"".concat(y).concat(e.toLocaleString())}return""!==O&&null!==O?"".concat(O," %"):"0"}()})})),""!==N&&(0,u.jsxs)("div",g(g({},{className:"marginTop-x14vqqas","data-style-src":"StatBlock/index.tsx:38"}),{},{children:["flat"===U&&(t=Number(N),n=Number.isNaN(t)?null:t,null===n?null:(0,u.jsxs)("div",g(g({},a.props(x,"green"===D?A:"amber"===D?v:"grey"===D?_:b)),{},{children:[(0,u.jsx)(l.default,g({name:function(e){return e>0?"arrow-up":e<0?"arrow-down":"arrow-right"}(n)},{className:"marginRight-xl010v5 fontSize-xfifm61","data-style-src":"StatBlock/index.tsx:47"})),(0,u.jsx)(s.default,{preset:"paragraphNormal",colour:"green"===D?"success600":"amber"===D?"
2warning600":"grey"===D?"gray600":"error600",children:function(e){return"".concat(e.toFixed(1),"% vs prev period")}(n)})]}))),"default"===U&&(0,u.jsx)(i.default,{number:N,time:P,direction:C,hideText:M})]}))]}))}S.displayName="StatBlock",t.A=S},64534:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>o});const o=function(e){return"object"===r(e)&&null!==e&&0===Object.keys(e).length}},64664:(e,t,n)=>{"use strict";e.exports=n.p+"8e225bb94e130c49e6c3.svg"},64705:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=u(n(14041)),l=n(99018),s=u(n(76969)),c=n(31085);function u(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(u=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var f=a.default;f(".display-x78zum5{display:flex}",3e3),f(".overflowX-xw2csxc{overflow-x:auto}",4e3),f(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),f(".borderTop-x4gzezw{border-top:1px solid var(--gray200-x1cfnqzm)}",2e3),f(".borderBottom-x14zj1sx{border-bottom:1px solid var(--gray200-x1cfnqzm)}",2e3),f(".borderLeft-x1y56qjn{border-left:1px solid var(--gray200-x1cfnqzm)}",2e3),f(".borderRadius-x1wlyc0h:first-child{border-radius:4px 0 0 4px}",2052),f(".borderRadius-x1ix7rqf:last-child{border-radius:0 4px 4px 0}",2054),f(".borderRight-xylm3dh:last-child{border-right:1px solid var(--gray200-x1cfnqzm)}",2054),f(".borderRadius-x1kat44v:not(:first-child):not(:last-child){border-radius:0}",2040),f(".outline-x1uvtmcs:focus{outline:none}",2150),f(".boxShadow-x1ibjl4x:focus{box-shadow:0 0 0 0 var(--oldBrand200-xdr76h5)}",3150),f(".fontWeight-xk50ysn{font-weight:500}",3e3),f(".fontSize-xif65rj{font-size:14px}",3e3),f(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),f(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),f(".color-x1oayuxb{color:var(--oldBrand700-xx6j7i3)!important}",3e3),f(".border-xhheuw0{border:1px solid var(--oldBrand700-xx6j7i3)!important}",1e3),f(".background-x1nstp5u{background:var(--oldBrand200-xdr76h5)!important}",1e3),f(".color-x1wlzjig{color:var(--oldBrand600-x1t41vhw)!important}",3e3),f(".background-xznqpzz{background:var(--oldBrand50-x1t4s9vw)!important}",1e3),f(".display-x3nfvp2{display:inline-flex}",3e3),f(".gap-x6r5le4{gap:var(--2-x17wbp3g)}",2e3),f(".outline-x10thiqa:not(#__unused__) > button{outline:none}",2040),f(".borderRadius-xlplydh:not(#__unused__) > button{border-radius:4px!important}",2040),f(".color-x1s76zp0:not(#__unused__) > button{color:var(--grey400-x1nkqcqr)}",3040),f(".backgroundColor-x1jt2yoq:not(#__unused__) > button{background-color:var(--white-x3n8fk9)}",3040);var p={backgroundColor:"backgroundColor-x18oya0d",borderTop:"borderTop-x4gzezw",borderBottom:"borderBottom-x14zj1sx",borderLeft:"borderLeft-x1y56qjn",":first-child_borderRadius":"borderRadius-x1wlyc0h",":last-child_borderRadius":"borderRadius-x1ix7rqf",":last-child_borderRight":"borderRight-xylm3dh",":not(:first-child):not(:last-child)_borderRadius":"borderRadius-x1kat44v",":focus_outline":"outline-x1uvtmcs",":focus_boxShadow":"boxShadow-x1ibjl4x",fontWeight:"fontWeight-xk50ysn",fontSize:"fontSize-xif65rj",$$css:"ButtonGroup/index.tsx:16"},m={color:"color-xnx9fn3",$$css:"ButtonGroup/index.tsx:38"},g={color:"color-xbdn2ka",$$css:"ButtonGroup/index.tsx:41"},y={color:"color-x1oayuxb",border:"border-xhheuw0",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,background:"background-x1nstp5u",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:"ButtonGroup/index.tsx:44"}
2,h={color:"color-x1wlzjig",background:"background-xznqpzz",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:"ButtonGroup/index.tsx:49"},x={background:"background-xznqpzz",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,color:"color-x1oayuxb",$$css:"ButtonGroup/index.tsx:53"};function b(e){return"secondary"===e?g:m}function v(e){return"secondary"===e?h:"spaced"===e?x:y}function A(e){var t,n=e.children,r=void 0===n?null:n,o=e.className,a=void 0===o?"":o,u=e.onSelectionChange,f=void 0===u?function(){}:u,m=e.currentSelection,g=void 0===m?0:m,y=e.size,h=void 0===y?"md":y,x=e.preset,A=void 0===x?"primary":x,_=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)(g),2),S=_[0],w=_[1];return(0,i.useEffect)(function(){w(g)},[g]),(0,c.jsx)("div",{className:(0,l.classNames)("display-x78zum5 overflowX-xw2csxc",a),children:(t=r,i.Children.map(t,function(e,t){if(!e||!i.default.isValidElement(e)||!function(e){return"string"!=typeof e.type&&"displayName"in e.type&&"Button"===e.type.displayName}(e))return e;var n=e,r=t===S,o=n.props;return(0,i.cloneElement)(n,{preset:"secondary",size:h,onClick:function(){var e;!function(e){w(e),"function"==typeof f&&f(e)}(t),null===(e=o.onClick)||void 0===e||e.call(o)},className:(0,l.classNames)(o.className,r&&"buttonGroup-active",s.props(p,b(A),r&&v(A)).className)})}))})}A.displayName="ButtonGroup",t.A=A},64828:(e,t,n)=>{"use strict";t.A=void 0;var r=i(n(25751)),o=i(n(65614)),a=n(31085);function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=r.default;function f(e){return"dropdown"===e.type&&"string"==typeof e.label&&Array.isArray(e.options)}function p(e){var t=e.filters,n=void 0===t?[]:t,r=e.setFilters,i=n.filter(f);function l(e){var t=n.map(function(t){return t.name===e.name?e:t});"function"==typeof r&&r(t)}return 0===i.length?null:(0,a.jsx)("div",c(c({},{className:"display-x78zum5 flexWrap-x1a02dak","data-style-src":"DropdownFilters/index.tsx:6"}),{},{children:i.map(function(e){return(0,a.jsx)(o.default,{filter:e,onFilterChange:l},e.name)})}))}d(".display-x78zum5{display:flex}",3e3),d(".flexWrap-x1a02dak{flex-wrap:wrap}",3e3),p.displayName="DropdownFilters",t.A=p},65053:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(45365),i=n(99018),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var c=o.default;c(".backgroundColor-xij84n0{background-color:var(--error200-xxycodf)}",3e3),c(".color-x1x6i94p{color:var(--error900-xsur5w7)}",3e3),c(".backgroundColor-x1qjp85{background-color:var(--primary50-xfg0wjs)}",3e3),c(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),c(".backgroundColor-xb8t6b3{background-color:var(--warning100-x12ln9i7)}",3e3),t.default=function(e){var t=e.reason;if("object"===s(t)){var n=t,r=(0,i.classNames)("mr-2 mt-2","backgroundColor-xb8t6b3","waf"===n.type?"backgroundColor-xij84n0 color-x1x6i94p":"","abuseIP"===n.type?"backgroundColor-x1qjp85 color-xf72ejy":"");return(0,l.jsx)(a.Badge,{className:r,style:{display:"inline-block"},children:n.title})}return(0,l.jsx)(a.Badge,{className:"mr-2 mt-2 ".concat("backgroundColor-xb8t6b3"),style:{display:"inline-block"},children:t})}},65087:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(14041),o=n(61300),a=n(31085);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const l=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,s=(e=(0,r.useState)(1),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1],d=Math.ceil(n.length/l),f=c*l,p=f-l;function m(){u(function(e){return Math.min(e+1,d)})}function g(){u(function(e){return Math.max(e-1,1)})}return{currentItems:n.slice(p,f),PaginationControls:function(){return(0,a.jsx)(o.A,{currentPage:c,totalPages:d,goToNextPage:m,goToPreviousPage:g})}}}},65157:(e,t,n)=>{"use strict";e.exports=n.p+"858d95afc46d39e9d8ed.svg"},65158:(e,t,n)=>{"use strict";e.exports=n.p+"6de813842695ec4d0cb8.svg"},65462:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=a.default;f(".padding-x1tamke2{padding:16px}",1e3),f(".borderRadius-x1ltf28g{border-radius:var(--borderRadiusDefault-x1tdk2mt)}",2e3),f(".border-xem9r10{border:var(--borderDefault-x13dogfg)}",1e3),f(".fontSize-xif65rj{font-size:14px}",3e3),f(".lineHeight-x1fc57z9{line-height:20px}",3e3),f(".fontWeight-xo1l8bm{font-weight:400}",3e3),f(".borderLeft-x1r0o7oa{border-left:4px solid var(--primary500-x1h2cyxj)}",2e3),f(".backgroundColor-xxjbeky{background-color:var(--primary25-x1i18ho1)}",3e3),f(".color-xjc721t{color:var(--primary700-x11onzbk)}",3e3),f(".borderLeft-x1ncdms8{border-left:4px solid var(--warning500-xcmfu7k)}",2e3),f(".backgroundColor-xln1efq{background-color:var(--warning25-x1sd6xdd)}",3e3),f(".color-x5msaau{color:var(--warning700-xlxq2tu)}",3e3),f(".borderLeft-x14b21ue{border-left:4px solid var(--error500-x1idp37q)}",2e3),f(".backgroundColor-x12b3uy0{background-color:var(--error25-x18c0m9r)}",3e3),f(".color-xqy16mm{color:var(--error700-x1brey9)}",3e3);var p={padding:"padding-x1tamke2",borderRadius:"borderRadius-x1ltf28g",border:"border-xem9r10",fontSize:"fontSize-xif65rj",lineHeight:"lineHeight-x1fc57z9",fontWeight:"fontWeight-xo1l8bm",$$css:"InfoCard/index.tsx:14"},m={borderLeft:"borderLeft-x1r0o7oa",borderLeftWidth:null,borderInlineStartWidth:null,borderInlineEndWidth:null,borderLeftStyle:null,borderInlineStartStyle:null,borderInlineEndStyle:null,borderLeftColor:null,borderInlineStartColor:null,borderInlineEndColor:null,backgroundColor:"backgroundColor-xxjbeky",color:"color-xjc721t",$$css:"InfoCard/index.tsx:22"},g={borderLeft:"borderLeft-x1ncdms8",borderLeftWidth:null,borderInlineStartWidth:null,borderInlineEndWidth:null,borderLeftStyle:null,borderInlineStartStyle:null,borderInlineEndStyle:null,borderLeftColor:null,borderInlineStartColor:null,borderInlineEndColor:null,backgroundColor:"backgroundColor-xln1efq",color:"color-x5msaau",$$css:"InfoCard/index.tsx:27"},y={borderLeft:"borderLeft-x14b21ue",borderLeftWidth:null,borderInlineStartWidth:null,borderInlineEndWidth:null,borderLeftStyle:null,borderInlineStartStyle:null,borderInlineEndStyle:null,borderLeftColor:null,borderInlineStartColor:null,borderInlineEndColor:null,backgroundColor:"backgroundColor-x12b3uy0",color:"color-xqy16mm",$$css:"InfoCard/index.tsx:32"};function h(e){var t,n=e.message,r=e.preset,o=e.className,a=i.props(p,function(e){return"info"===e?m:"warning"===e?g:y}(r)),s=o?"".concat(null!==(t=a.className)&&void 0!==t?t:""," ").concat(o).trim():a.className;return(0,l.jsx)("div",u(u({},a),{},{className:s,role:"status","aria-live":"polite",children:n}))}h.displayName="InfoCard",t.default=h},65470:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(31085);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=o.default;function u(){return(0,a.jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},{className:"borderBottom-x1na7oll width-xh8yej3 marginBottom-xod5an3 marginTop-x1xmf6yo","data-style-src":"Divider/index.tsx:6"}))}c(".borderBottom-x1na7oll{border-bottom:1px solid var(--gray300-x1xk3734)}",2e3),c(".width-xh8yej3{width:100%}",4e3),c(".marginBottom-xod5an3{margin-bottom:12px}",4e3),c(".marginTop-x1xmf6yo{margin-top:8px}",4e3),u.displayName="Sidebar.Divider",t.default=u},65614:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(86957),s=u(n(79135)),c=n(31085);function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=o.default;y(".position-x1n2onr6{position:relative}",3e3),y(".marginRight-x1db2dqx{margin-right:8px}",4e3),y(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),y(".borderRadius-xur7f20{border-radius:8px}",2e3),y(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),y(".fontSize-x1j61zf2{font-size:16px}",3e3),y(".height-xn3w4p2{height:44px}",4e3),y(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),y(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),y(".textAlign-xdpxx8g{text-align:left}",3e3),y(".display-x78zum5{display:flex}",3e3),y(".alignItems-x6s0dn4{align-items:center}",3e3),y(".padding-x1ff1495{padding:8px 16px}",1e3),y(".cursor-x1ypdohk{cursor:pointer}",3e3),y(".fontWeight-xk50ysn{font-weight:500}",3e3),y(".gap-x167g77z{gap:8px}",2e3),y(".backgroundColor-x1a33ojm:hover{background-color:var(--gray50-x1bw8p5w)}",3130),y(".border-xnq5hr{border:1px solid var(--oldBrand600-x1t41vhw)}",1e3),y(".outline-x1ly2zzd{outline:4px solid var(--secondary200-xut29wu)}",2e3),y(".top-xe8fvb2{top:54px}",4e3),y(".padding-xfawy5m{padding:4px}",1e3),y(".paddingBottom-x18d9i69{padding-bottom:0}",4e3),y(".zIndex-xfo81ep{z-index:1000}",3e3),y(".position-x10l6tqk{position:absolute}",3e3),y(".minWidth-xgqtt45{min-width:100%}",4e3),y(".overflowY-x1odjw0f{overflow-y:auto}",4e3),y(".boxShadow-x1355hfm{box-shadow:0 4px 6px -2px rgba(16,24,40,.03),0 12px 16px -4px rgba(16,24,40,.08)}",3e3,".boxShadow-x1355hfm{box-shadow:0 4px 6px -2px rgba(16,24,40,.03), 0 12px 16px -4px rgba(16,24,40,.08)}"),y(".padding-x6yrr3s{padding:10px 12px}",1e3),y(".borderRadius-x12oqio5{border-radius:4px}",2e3),y(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),y(".fontSize-xif65rj{font-size:14px}",3e3),y(".marginBottom-x12nagc{margin-bottom:4px}",4e3),y(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),y(".justifyContent-x1qughib{justify-content:space-between}",3e3),y(".background-x1h3gynt{background:var(--white-x3n8fk9)}",1e3),y(".background-x1we27kq:hover{background:var(--gray100-x1llswo5)}",1130),y(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3),y(".color-xb0o5a8{color:var(--oldBrand700-xx6j7i3)}",3e3),y(".marginLeft-x1swdo50{margin-left:2px}",4e3),y(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3);var h={customSelectControl:{borderRadius:"borderRadius-xur7f20",border:"border-x180m19u",fontSize:"fontSize-x1j61zf2",height:"height-xn3w4p2",color:"color-x5tu7p5",backgroundColor:"backgroundColor-x18oya0d",textAlign:"textAlign-xdpxx8g",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",padding:"padding-x1ff1495",cursor:"cursor-x1ypdohk",fontWeight:"fontWeight-xk50ysn",gap:"gap-x167g77z",":hover_backgroundColor":"backgroundColor-x1a33ojm",$$css:"DropdownFilter/index.tsx:12"},customSelectControlIsOpen:{border:"border-xnq5hr",outline:"outline-x1ly2zzd",$$css:"DropdownFilter/index.tsx:30"},customSelectOption:{padding:"padding-x6yrr3s",cursor:"cursor-x1ypdohk",borderRadius:"borderRadius-x12oqio5",color:"color-x18k1rwp",fontSize:"fontSize-xif65rj",marginBottom:"marginBottom-x12nagc",whiteSpace:"whiteSpace-xuxw1ft",dis
2play:"display-x78zum5",justifyContent:"justifyContent-x1qughib",alignItems:"alignItems-x6s0dn4",background:"background-x1h3gynt background-x1we27kq",$$css:"DropdownFilter/index.tsx:54"},selectedItem:{backgroundColor:"backgroundColor-x6fdw8f",color:"color-xb0o5a8",fontWeight:"fontWeight-xk50ysn",$$css:"DropdownFilter/index.tsx:70"}};function x(e){var t,n,r,o=e.filter,u=e.onFilterChange,d=(n=(0,a.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=d[0],m=d[1],y=(0,a.useRef)(null),x=null!==(t=o.options.find(function(e){return e.value}))&&void 0!==t?t:o.options[0];function b(e){u(p(p({},o),{},{options:o.options.map(function(t){return p(p({},t),{},{value:t.name===e.name})})})),m(!1)}function v(e){var t=e.target;y.current&&t instanceof Node&&!y.current.contains(t)&&m(!1)}return(0,a.useEffect)(function(){return document.addEventListener("mousedown",v),function(){document.removeEventListener("mousedown",v)}},[]),(0,c.jsxs)("div",p(p({},{className:"position-x1n2onr6 marginRight-x1db2dqx marginBottom-x1e56ztr","data-style-src":"DropdownFilter/index.tsx:7"}),{},{ref:y,children:[(0,c.jsxs)("button",p(p({type:"button"},i.props(h.customSelectControl,f&&h.customSelectControlIsOpen)),{},{onClick:function(){m(function(e){return!e})},"aria-haspopup":"listbox","aria-expanded":f,"data-testid":"dropdown-filter-".concat(o.name),children:[(0,c.jsxs)("span",p(p({},{className:"color-x5tu7p5 fontWeight-xk50ysn","data-style-src":"DropdownFilter/index.tsx:34"}),{},{children:[o.label,":"]})),(0,c.jsx)("span",p(p({},{className:"color-x5tu7p5","data-style-src":"DropdownFilter/index.tsx:38"}),{},{children:null==x?void 0:x.label})),(0,c.jsx)(s.default,p({name:"bars-filter",size:"sm"},{className:"marginLeft-x1swdo50 fontSize-x1j61zf2 color-xnx9fn3","data-style-src":"DropdownFilter/index.tsx:75"}))]})),f&&(0,c.jsx)("ul",p(p({},{className:"top-xe8fvb2 backgroundColor-x18oya0d borderRadius-xur7f20 border-x180m19u padding-xfawy5m paddingBottom-x18d9i69 zIndex-xfo81ep position-x10l6tqk minWidth-xgqtt45 overflowY-x1odjw0f boxShadow-x1355hfm","data-style-src":"DropdownFilter/index.tsx:41"}),{},{role:"listbox",children:o.options.map(function(e){return(0,c.jsxs)("li",p(p({},i.props(h.customSelectOption,e.value&&h.selectedItem)),{},{role:"option","aria-selected":e.value,onClick:function(){return b(e)},onKeyDown:function(t){return"Enter"===t.key&&b(e)},tabIndex:0,children:[e.label,e.value&&(0,c.jsx)(s.default,{name:"check",size:"xs",color:l.colours.oldBrand600})]}),e.name)})}))]}))}x.displayName="DropdownFilter",t.default=x},65648:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(14041),o=n(62720),a=n(89748),i=n(34406),l=n(88133),s=n(99226),c=n(59250),u=n(31085);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(){var e,t,n,f,p,m,g,y,h,x="TRIAL"===(0,s.A)().lunioStatus,b=(y=(0,r.useState)(o.default.DatePicker.getDateRange("30d")),h=2,function(e){if(Array.isArray(e))return e}(y)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(y,h)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(y,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=b[0],A=b[1],_=(0,l.Ay)("/analytics/dashboard?df_dmin=".concat(Math.floor((0,i.Ay)(v.min.date).valueOf()/1e3),"&df_dmax=").concat(Math.floor((0,i.Ay)(v.max.date).valueOf()/1e3),"&df_interval=day&platform=affiliate\n&recalc=1"),void 0,"affiliate-key-metrics-".concat(v.rangeName,"-").concat((0,i.Ay)(v.min.date).valueOf(),"-").concat((0,i.Ay)(v.max.date).valueOf())),S=_.data,w=_.isLoading,O=null==S||null===(e=S.result)||void 0===e?void 0:e.analytics,j=Number(((null==O||null===(t=O.clicks)||void 0===t?void 0:t.fraudulent)||0)+((null==O||null===(n=O.clicks)||void 0===n?void 0:n.suspicious)||0)+((null==O||null===(f=O.clicks)||void 0===f?void 0:f.legitimate)||0));return(0,u.jsx)(c.A,{isLoading:w,total:{title:(0,a.A)("Total Clicks"),count:j},allTrackedClicks:{title:(0,a.A)("All Tracked Clicks"),count:null==O?void 0:O.all_tracked_clicks,tooltip:(0,a.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks.")},invalid:{title:(0,a.A)("SIVT Clicks"),count:null==O||null===(p=O.clicks)||void 0===p?void 0:p.fraudulent},givt:x?void 0:{title:(0,a.A)("GIVT Clicks"),count:null==O||null===(m=O.clicks)||void 0===m?void 0:m.general_invalid,tooltip:(0,a.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction.")},totalIvt:{title:(0,a.A)("Total IVT"),count:null==O?void 0:O.total_ivt,tooltip:(0,a.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT.")},ivt:{count:null==O||null===(g=O.percent)||void 0===g?void 0:g.fraudulent},totalIvtPercent:{title:(0,a.A)("Total IVT %"),count:null==O?void 0:O.total_ivt_percent,tooltip:(0,a.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT).")},setTime:A,time:v})}},65768:(e,t,n)=>{"use strict";n.d(t,{A:()=>v}),n(14041);var r=n(89748),o=n(19863),a=n(17419),i=n(28426),l=n(96956),s=n(27805),c=n(62161),u=n(93033),d=n(99226),f=n(98536),p=n(8713),m=n(92523),g=n(31085);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v=function(){var e=(0,f.useApi)({url:"/platform/analytics/protected-sites",responseDataKey:"sites"}),t="TRIAL"===(0,d.A)().lunioStatus;return(0,g.jsxs)(i.A.Page,{type:"main",children:[(0,g.jsx)(s.default,{title:"".concat((0,r.A)("Ad Stats")," - ").concat((0,r.A)("Websites Protected")),text:(0,r.A)("See which interactions with your ads triggered an invali
2d flag within the Lunio system."),contentRight:(0,g.jsx)(p.A,{filters:[],exportType:"mplat_protected"})}),(0,g.jsx)("div",{className:"mt-4 mb-4 justify-end",children:(0,g.jsx)(m.default,{})}),(0,g.jsx)(c.A,x(x({},e.tableConnector),{},{noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){var n,i,s;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{children:(0,r.A)("Website")}),(0,g.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,r.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,r.A)("Legitimate")}),(0,g.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,r.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,r.A)("Suspicious")}),(0,g.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,r.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,r.A)("SIVT Clicks")}),(0,g.jsx)(u.A,{AND:!t,children:(0,g.jsx)("th",{"data-testid":"givt","data-tooltip":(0,r.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,r.A)("GIVT Clicks")})}),(0,g.jsx)("th",{"data-tooltip":(0,r.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,r.A)("Total IVT")}),(0,g.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,r.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,r.A)("Total Clicks")}),(0,g.jsx)("th",{"data-tooltip":(0,r.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,r.A)("All Tracked Clicks")}),(0,g.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,r.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,r.A)("SIVT Clicks %")}),(0,g.jsx)("th",{"data-tooltip":(0,r.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,r.A)("Total IVT %")}),(0,g.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,r.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,r.A)("Health")})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsx)("td",{children:null==e?void 0:e.domain}),(0,g.jsx)("td",{children:(0,g.jsx)(a.A,{type:"legitimate",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_legitimate)})}),(0,g.jsx)("td",{children:(0,g.jsx)(a.A,{type:"suspicious",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_suspicious)})}),(0,g.jsx)("td",{children:(0,g.jsx)(a.A,{type:"invalid",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,g.jsx)(u.A,{AND:!t,children:(0,g.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,g.jsx)("td",{children:(0,o.m)(null!==(n=null==e?void 0:e.total_ivt)&&void 0!==n?n:0)}),(0,g.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_total)}),(0,g.jsx)("td",{children:(0,o.m)(null!==(i=null==e?void 0:e.all_tracked_clicks)&&void 0!==i?i:0)}),(0,g.jsxs)("td",{children:[null==e?void 0:e.percent_fraudulent,"%"]}),(0,g.jsx)("td",{children:"".concat(Number(null!==(s=null==e?void 0:e.total_ivt_percent)&&void 0!==s?s:0).toFixed(2),"%")}),(0,g.jsx)("td",{children:(0,g.jsx)(l.A,{health:null==e?void 0:e.health})})]})]})}}))]})}},65922:(e,t,n)=>{"use strict";e.exports=n.p+"6ca0a62bde4f07f0ad85.svg"},66134:e=>{"use strict";e.exports="# July 2026\n## OpenAI now available in Lunio (monitoring)\nLunio now supports OpenAI as a platform, giving clients running OpenAI ads visibility of invalid traffic directly within the dashboard.\nAs OpenAI does not currently support audience exclusions, this is a monitoring-only integration.\n\n### What you'll see\n- Invalid click volume across your OpenAI campaigns\n- Source classification: Legitimate, Suspicious, and Invalid\n- Campaign-level IVT breakdown\n\n### What this means for you\n- Visibility of invalid traffic across your OpenAI spend\n- Campaigns display with a Monitored status, consistent with other monitored platforms\n- Get ahead of OpenAI ad quality as the channel matures\n\nCheck out [How to Set Up OpenAI in Lunio](https://help.lunio.ai/en/articles/15622967-how-to-set-up-openai-in-lunio).\n\nFor more help resources, visit the [Lunio Customer Help Center](https://help.lunio.ai/).\n\n---\n\n# March 31, 2026\n\n### Recommendations for tracking and protection health\nWe've enhanced Recommendations to help you identify and resolve key tracking and protection issues earlier.\n\n**What's new**\nTwo new recommendations:\n- *Multiplatform Script Not Detected* â alerts you when your script is missing or inactive on your domains\n- *Lunio Tracking Not Detected* â highlights when tracking data is not being received for your campaigns\n\n**What this means for you**\n- Catch issues earlier to maintain consistent protection\n- Ensure your tracking is working correctly across campaigns and platforms\n- Reduce the risk of incomplete data, missed attribution, or gaps in coverage\n\n# March 25, 2026\n## Data Explorer for Meta\nLunio now offers a new \"Data
2Explorer\" view for Meta for clients, accessible to clients who have completed the Meta API integration.\n\nThis view gives visibility of IVT at the ad set and ad level, allowing you to analyse IVT beyond campaigns directly within Lunio.\n\n### Where to find it\nFor clients who have completed the Meta API integration, the Data Explorer appears in the navigation as **âData Explorerâ**.\n\n## Smarter Recommendations with metrics, visual priority, and filtering\nWe've updated the Recommendations experience to help you quickly understand what needs attention and take action faster.\n\n### What's new\n- New metrics showing how recommendations progress from generated to resolved\n- Clear priority breakdown across Critical, High, Medium, and Optimisations\n- Colour-coded recommendation cards with matching icons for faster scanning\n- Filtering by severity and type\n\n### **What this means for you**\n- Quickly identify and prioritise the most important issues\n- Understand progress and engagement at a glance\n- Spend less time searching and more time taking action\n\n---\n\n# February 24, 2026\n## Campaign-Level IP Blocking for Google Demand Gen Campaigns\nLunio now offers campaign-level IP blocking for Google Demand Gen campaigns.\nPreviously, Demand Gen campaigns could indirectly benefit from account-level IP exclusions. We've now expanded our implementation to apply IP blocks directly at Demand Gen campaign level.\n\n### What this means for you\n- IP exclusions can now be applied directly at Demand Gen campaign level\n- More precise and consistent protection across campaign types\n- Reduced reliance on indirect, account-level coverage for Demand Gen campaigns\n\nNo action is required. This update has been applied automatically to relevant campaigns.\n\nIf you have questions about how IP exclusions are applied within your account, please contact your Customer Success Manager or email [email protected]\n\n---\n\n# December 11, 2025\n## Affiliate configuration - conversion threshold\nAccessible via the Affiliate platform configuration page.\n- Conversion Threshold - flags users who exceed a defined number of conversions within a day helping identify unusually high conversion activity from a single user in a short timeframe.\n\n## Sampling flag on meta clicks log page\nWeâve added a column to flag whenever an IP has been added to split testing so that it is similar to the Google View.\n\n---\n\n# December 1, 2025\n\n## Add/disable placement exclusions\nWeâve added a new ability for customers to manually add placements to the Placement Exclusion. The placements can be a website (inputting the full domain URL), iPhone app (the app id from the iTunes store), or an Android app (the bundle ID from Google Play).\n\n## Affiliate configuration - click capping\nAccessible via the Affiliate platform configuration page.\n- Click Capping - allows customers to set a maximum number of clicks per user. Once the cap is reached, users are redirected to the nominated redirection URL.\n\n## Affiliate configuration - Excluded ISP\nAccessible via the Affiliate platform configuration page.\n- Blocklists: Add specific ISPs (Internet Service Providers) that are known to the customer that the customer wants to block.\n\n--- \n\n# November 25, 2025\n\n## Export reports for Affiliate dashboard\nExports are now available for Conversion Analytics and Affiliate Analytics sections on the Affiliate Platform. These are accessible on the Network, Partner, Campaign, Fraud Type, and each of the Drilldown pages.\n\n---\n\n# November 20, 2025\n\n## New sub-labels on Affiliate Click and Conversion Analytics\nNew sub-labels have been added across Partner and Campaign views in both Affiliate Click and Conversion Analytics, showing their associated Network and Partner.\n\n\n## Improved Layout for Campaign Insights\nWeâve reorganised the widgets on the Campaign page so the most important metrics now appear at the top. This makes it easier to access the insights that matter most, right when you land on the page.\n\n\n## Last 90 Days Date Picker Now Available\nYou can now select Last 90 Days on the Overview and Summary pages for Individual Categorised Clicks, giving you quicker access to longer-term traffic trends.\n\n---\n\n# November 19, 2025\n\n## New Affiliate Fraud Label: Crawler \nThe Crawler Affiliate Fraud label has now been added to the list of available fraud classifications. This update ensures clearer identification of automated crawler activity affecting your affiliate clicks.\n\n---\n\n# November 17, 2025\n\n## Exports now avaialble on the Ad Stats > Partner page\nYou can now export partner-level performance data directly from the Ad Stats > Partner page.\n\n---\n\n# November 13, 2025\n\n## Affiliate Analytics Fraud Type Page\nThe new Fraud Type page provides a complete overview of all fraud types impacting your affiliate click traffic. This unified view allows you to quickly see how each fraud type is distributed across your networks, partners, and campaigns all in one place.\n\n---\n\n# November 6, 2025\n\n## Affiliate Click Analytics\n- Building on the functionality of Conversion Analytics, you can now gain visibility into what is influencing your affiliate click traffic.\n\n\n### Summary\nQuickly understand the overall health of your affiliate clicks with:\n\n- Core performance metrics\n- A breakdown of fraud types and the top 5 partners driving the highest invalid click rates\n= Daily insights into fraud activity, helping you spot trends in invali
2d affiliate traffic\n\n\n### Affiliate Analytics\nExplore richer insights across Networks, Partners, and Campaigns:\n\n- Highlighting the top two fraud types impacting click quality\n- Click through to the network, partner, or campaign to uncover deeper context and patterns\n\n### Drilldown Reports\nAccess granular data for specific networks, partners, or campaigns: \n\n- Includes date-level breakdowns and counts for all fraud types affecting clicks \n- Helps you investigate patterns and identify invalid activity in detail\n\n---\n\n# November 3, 2025\n\n## Export reports on the Affiliate Partner page in Ad Stats\n- Customers can now export the report directly from the Affiliate Partner page in Ad Stats. \n- This allows you to download the data on affiliate traffic and click classifications for the partner.\n\n---\n\n# October 30, 2025\n\n## Conversion Analytics for Affiliate Traffic\n\n### Summary\nGet a high-level overview of your affiliate conversions, including: \n\n- Key metrics affecting performance \n- Types of fraud and the top 5 partners with the highest invalid conversion rates \n- A daily breakdown of fraud types for quick insights into invalid affiliate traffic \n\n\n### Conversion Analytics\nDive deeper with detailed statistics at the Network, Partner, and Campaign levels: \n\n- See the top 2 fraud type reasons impacting conversions \n- Click through networks, partners, or campaigns to explore more detailed information \n\n\n### Drilldown Reports\nAccess granular data for specific networks, partners, or campaigns: \n\n- Includes date-level breakdowns and counts for all fraud types affecting conversions \n- Helps you investigate patterns and identify invalid activity in detail \n\n---\n\n# October 15, 2025\n\n## Affiliate Partner on the Ad Stats page\n- A new page in Ad Stats allows you to see click classifications for each Affiliate Partner. \n- Easily monitor the IVT rate for your partners and understand which sources contribute most to invalid traffic. \n\n---\n\n# October 14, 2025\n\n## Health bar on Ad Stats\nUpdated health bar now reflects IVT levels with easy-to-read color coding: \n- Green: 90% \n- Yellow: 80â90% \n- Orange: 70â80% \n- Red: <70% \n\n---\n\n# October 13, 2025\n\n## Platform Switcher updates\n\n- The platform switcher is now visible on all pages where a specific platform is not selected (e.g., Overview, Emissions). \n- Pages now default to âAll Platformsâ for a consistent experience. \n\n---\n\n# October 7, 2025\n\n## Workspace selector is alphabetical\n\n- Workspaces are now listed alphabetically in the workspace selector, making it faster and easier to find the workspace you need. \n\n---\n\n# September 30, 2025\n\n## Re-designed navigation for the dashboard\n\nThe dashboard navigation has been updated for improved usability: \n- Left-hand navigation is expandable, with sections and subsections clearly organized \n- Platform and workspace selectors moved to the top navigation for clarity \n- Settings are now accessible from the top-right of the nav bar \n- Profile dropdown allows easy access to user settings, internal tools, and report setup \n- Tables and widgets have been tidied for c
2onsistency \n- Date picker updated to allow custom date ranges\n\n \n\n## Affiliate Summary Page\n\nProvides a summary of affiliate click traffic, including: \n- Daily breakdown of invalid traffic (IVT) trends \n- Top 5 affiliate partners by IVT rate \n- Overview of main fraud types affecting affiliate campaigns \n\n\n---\n\n# August 26, 2025\n\n## Campaign name available as a filter on Campaign Analytics\nUsers can now filter the Campaign Analytics table by campaign name for easier data analysis. \n\n## Location updated on the individual campaign page\nLocations on the individual campaign page have been updated to ensure all locations are listed, eliminating blanks. \n"},66164:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={pagination:{},dataFilterDates:{interval:"day",min:{localTimestamp:1e9,timestamp:1e9,date:new Date("2001-09-09T01:46:40.000Z")},max:{localTimestamp:1e9,timestamp:1e9,date:new Date("2001-09-09T01:46:40.000Z")},preset:null,selected:{label:"Custom Range",value:"customRange"}},filteredGoogleAwIds:[],selectedAwAccounts:[]}},66214:(e,t,n)=>{"use strict";e.exports=n.p+"13a5745bac6af06c224d.svg"},66439:(e,t,n)=>{"use strict";e.exports=n.p+"93b5f697f1ab98538e16.svg"},66560:(e,t,n)=>{"use strict";e.exports=n.p+"e5b965bdd281ea463ada.svg"},66608:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=y(n(25751)),a=g(n(14041)),i=y(n(39067)),l=n(73657),s=(g(n(76969)),n(45365)),c=n(60156),u=n(34016),d=n(18141),f=n(79405),p=y(n(76678)),m=n(31085);function g(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(g=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function y(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=o.default;function O(e){return null!=e&&e.length?e.map(function(e,t){return _(_({},e),{},{avatarColourIndex:t})}):[]}function j(e){var t,n,r,o,i=e.isLoading,g=e.handlePagination,y=e.filters,h=e.onRemoveMember,A=e.onAddMember,S=e.isLoadingNonAssigned,w=e.handlePaginationNonAssigned,j=e.filtersNonAssigned,k=e.createUser,E=e.data,N=void 0===E?{}:E,I=e.nonAssignedMembersAPIResponse,P=void 0===I?{}:I,T=(0,l.useParams)().id,C=(0,u.useQueryClient)(),R=x((0,a.useState)(!1),2),M=R[0],L=R[1],D=x((0,a.useState)(!1),2),B=D[0],U=D[1],F=x((0,a.useState)([]),2),G=F[0],W=F[1],z=(0,u.useMutation)("/workspaces
2/users","PATCH");function V(e,t,n){W(function(t){return[].concat(function(e){if(Array.isArray(e))return v(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||b(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]);var n}),z.mutate({user_id:e,workspace_id:parseInt(T,10),role:t},{onSuccess:function(){C.getQueryCache().findAll().forEach(function(e){var t;null!=e&&null!==(t=e.queryKey[0])&&void 0!==t&&t.includes("/workspaces")&&C.invalidateQueries(e.queryKey)}),(0,d.toastNotification)((0,c.language)(":name was set to :roleName role",{name:n,roleName:t}),"success"),W(function(t){return t.filter(function(t){return t!==e})})},onError:function(){(0,d.toastNotification)((0,c.language)("It is not possible to update this member's role."),"error"),W(function(t){return t.filter(function(t){return t!==e})})}})}var q=null==N?void 0:N.users,K=null==P?void 0:P.users,H=(0,a.useMemo)(function(){return O(q)},[q]),Y=(0,a.useMemo)(function(){return O(K)},[K]);return(0,m.jsxs)(s.Layout.Page,{type:"settings",className:"pb-12",children:[(0,m.jsx)(s.PageHeader,{type:"settings",title:(0,c.language)("Members"),text:(0,c.language)("showing all non admin Lunio users who have access to this workspace"),contentRight:(0,m.jsx)(s.Button,{iconLeft:["far","users"],id:"open-ad-members-button",name:"open-ad-members-button","data-testid":"open-ad-members-button",onClick:function(){return L(!0)},children:(0,c.language)("Add Members")})}),(0,m.jsx)(s.InfoCard,{preset:"info",message:(0,c.language)("You will not see any users listed here who automatically have access to this workspace, such as admin users, for example."),className:"mb-6"}),(0,m.jsx)("div",{className:"mb-64",children:(0,m.jsx)(f.Table,{rows:H,isLoading:i,totalPages:null==N||null===(t=N.pagination)||void 0===t?void 0:t.last_page,totalItems:null==N||null===(n=N.pagination)||void 0===n?void 0:n.total,pageNumber:y.page,handlePagination:g,limit:y.limit,hiddenLimitSelect:!0,noDataTitle:(0,c.language)("No Members"),noDataSubTitle:(0,c.language)("You have not yet added any members to this workspace"),noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){var t;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsxs)("th",{children:[(0,m.jsx)(s.Text,{size:"xs",children:(0,c.language)("Name")}),(0,m.jsx)(f.SubContent,{header:!0,children:(0,c.language)("Email")})]}),(0,m.jsx)("th",{children:(0,c.language)("Role")}),(0,m.jsx)("th",{"data-align":"right",children:(0,c.language)("Remove Member")})]})}),(0,m.jsxs)("tbody",{children:[(0,m.jsx)("td",{children:(0,m.jsxs)("div",_(_({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d","data-style-src":"WorkspacesMembersPage/index.jsx:15"}),{},{children:[(0,m.jsx)(s.Avatar,{name:null==e?void 0:e.name,colourIndex:null!==(t=null==e?void 0:e.avatarColourIndex)&&void 0!==t?t:0,"data-testid":"workspace-member-avatar-".concat(null==e?void 0:e.user_id)}),(0,m.jsxs)("div",{children:[null==e?void 0:e.name,(0,m.jsx)(f.SubContent,{children:null==e?void 0:e.email})]})]}))}),(0,m.jsx)("td",{children:(0,m.jsx)(s.DropdownToggle,{"data-testid":"dropdown-toggle-".concat(null==e?void 0:e.user_id),onFormValue:function(t){return V(null==e?void 0:e.user_id,t.value,null==e?void 0:e.name)},disabled:G.includes(null==e?void 0:e.user_id),options:[{description:(0,c.language)("Full access within this workspace. Manage members, workspace settings, protection, and view tracking scripts."),label:(0,c.language)("Editor"),type:"editor",value:"EDITOR"},{description:(0,c.language)("Can manage protection, campaigns, and view tracking tags."),label:(0,c.language)("Manager"),type:"manager",value:"MANAGER"},{description:(0,c.language)("Read-only access to workspace data and reports."),label:(0,c.language)("Client"),type:"user",value:"USER"},{description:(0,c.language)("Full access within this workspace. Manage members, workspace settings, protection, and view tracking scripts."),label:(0,c.language)("Admin"),type:"editor",hidden:!0,value:"ADMIN"},{description:(0,c.language)("Full access."),label:(0,c.language)("Owner"),type:"editor",hidden:!0,value:"ROOT"}],retainOwnState:!0,value:null==e?void 0:e.workspace_role})}),(0,m.jsx)("td",{"data-align":"right",children:(0,m.jsx)(s.Button,{id:"remove-member-button-".concat(null==e?void 0:e.user_id),"data-testid":"remove-member-button-".concat(null==e?void 0:e.user_id),preset:"outline","aria-label":"icon button",iconRight:["far","minus"],size:"sm",onClick:function(){h(null==e?void 0:e.user_id)}})})]})]})}})}),(0,m.jsxs)(s.SideContentPanel,{open:M,onClose:function(){return L(!1)},heading:(0,c.language)("Add members to this workspace"),subtitle:(0,c.language)("Add the Lunio users who need to have access to this workspace"),contentRight:(0,m.jsx)(s.Button,{"data-testid":"create-new-member-button",onClick:function(){U(!0),L(!1)},children:(0,c.language)("New User")}),children:[(0,m.jsx)(f.Table,{rows:Y,isLoading:S,totalPages:null==P||null===(r=P.pagination)||void 0===r?void 0:r.last_page,totalItems:null==P||null===(o=P.pagination)||void 0===o?void 0:o.total,pageNumber:j.page,handlePagination:w,hiddenLimitSelect:!0,noDataTitle:(0,c.language)("No Members"),noDataSubTitle:(0,c.language)("There are no users available to add to this workspace"),noDataStyle:"secondary",limit:j.limit,leftPinnedColumns:1,noBottomSpacer:!0,children:function(e){var t;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsxs)("th",{children:[(0,m.jsx)(s.Text,{size:"xs",children:(0,c.language)("Name")}
2),(0,m.jsx)(s.Text,{size:"xs",weight:"sm",children:(0,c.language)("Email")})]}),(0,m.jsx)("th",{"data-align":"right",children:(0,c.language)("Add Member")})]})}),(0,m.jsxs)("tbody",{children:[(0,m.jsx)("td",{children:(0,m.jsxs)("div",_(_({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x1v2ro7d","data-style-src":"WorkspacesMembersPage/index.jsx:15"}),{},{children:[(0,m.jsx)(s.Avatar,{name:null==e?void 0:e.name,colourIndex:null!==(t=null==e?void 0:e.avatarColourIndex)&&void 0!==t?t:0,"data-testid":"workspace-member-add-avatar-".concat(null==e?void 0:e.user_id)}),(0,m.jsxs)("div",{children:[(0,m.jsx)(s.Text,{size:"xs",weight:"lg",children:null==e?void 0:e.name}),(0,m.jsx)(s.Text,{size:"xs",children:null==e?void 0:e.email})]})]}))}),(0,m.jsx)("td",{"data-align":"right",children:(0,m.jsx)(s.Button,{"data-testid":"add-member-button-".concat(null==e?void 0:e.user_id),preset:"outline","aria-label":"icon button",iconRight:"plus",size:"sm",onClick:function(){A(null==e?void 0:e.user_id,(null==e?void 0:e.role_identifier)||"USER")}})})]})]})}}),(0,m.jsx)("div",{className:"h-align-right mt-3",children:(0,m.jsx)(s.Button,{onClick:function(){L(!1)},preset:"outline","data-testid":"cancel-add-member-button",children:(0,c.language)("Cancel")})})]}),(0,m.jsx)(s.SideContentPanel,{open:B,onClose:function(){return U(!1)},heading:(0,c.language)("Create User"),children:(0,m.jsx)(p.default,{createUser:function(e){U(!1),k(e)},creatingUser:B,submitButtonText:(0,c.language)("Create and Add User"),onClose:U})})]})}w(".display-x78zum5{display:flex}",3e3),w(".alignItems-x6s0dn4{align-items:center}",3e3),w(".gap-x1v2ro7d{gap:12px}",2e3),j.propTypes={data:i.default.object,isLoading:i.default.bool.isRequired,handlePagination:i.default.func.isRequired,filters:i.default.object.isRequired,onRemoveMember:i.default.func.isRequired,onAddMember:i.default.func.isRequired,nonAssignedMembersAPIResponse:i.default.object,isLoadingNonAssigned:i.default.bool.isRequired,handlePaginationNonAssigned:i.default.func.isRequired,filtersNonAssigned:i.default.object.isRequired,createUser:i.default.func.isRequired},t.A=j},66773:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2043);function o(e,t,n){var o={errorMessage:n};if((!(arguments.length>3&&void 0!==arguments[3])||arguments[3])&&!t)return[{ruleName:e,userMessage:n}];var a=r.Eq[e](t,o,[]);return!!a.length&&a||!1}}
2,66954:(e,t,n)=>{"use strict";e.exports=n.p+"b7448aa24f61d627f41b.svg"},66963:(e,t,n)=>{"use strict";e.exports=n.p+"d1cdd9ad089f6f42e06c.svg"},67045:(e,t,n)=>{"use strict";n.d(t,{A:()=>y}),n(14041);var r=n(99018),o=n(89748),a=n(51836),i=n(73657),l=n(28426),s=n(79135),c=n(64534),u=n(36549),d=n(33559),f=n(22317),p=n(31085);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g=(0,r.createUseStyles)(function(e){return{textContainer:{marginLeft:22,maxWidth:"60%"},title:{marginTop:60,marginRight:100,fontSize:48,fontFamily:e.fonts.heading,color:e.colors.neutralTextDefault},text:{marginTop:22,fontSize:16,fontFamily:e.fonts.text,color:e.colors.neutralTextWeak},image:{height:500}}});const y=function(){var e,t,n,r,y,h,x,b,v=g(),A=(x=(0,u.A)(),b=1,function(e){if(Array.isArray(e))return e}(x)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(x,b)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(x,b)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],_=(0,a.zy)(),S=_.pathname.includes("user-profile")||_.pathname.includes("settings")||_.pathname.includes("google-conversions");return(0,c.A)(null==A?void 0:A.hasNoDataScope)?null:3!==(null==A||null===(e=A.hasNoDataScope)||void 0===e?void 0:e.case)||S?null!=A&&A.hasNoDataScope&&!S?(0,p.jsx)(l.A.Page,{type:"overview",children:(0,p.jsxs)("div",{className:"flex",children:[(0,p.jsxs)("div",{className:v.textContainer,children:[(0,p.jsx)("div",{className:v.title,children:null===(t=A.hasNoDataScope)||void 0===t?void 0:t.title}),(0,p.jsxs)("div",{className:v.text,children:[null===(n=A.hasNoDataScope)||void 0===n?void 0:n.text," ",null!==(y=A.hasNoDataScope)&&void 0!==y&&y.linkedPage?(0,p.jsxs)(i.Link,{"data-testid":"no-data-scope-linked-page",to:null==A||null===(h=A.hasNoDataScope)||void 0===h?void 0:h.linkedPage,children:[(0,p.jsx)(s.default,{name:["fas","arrow-right"]})," ",(0,o.A)("Settings")]}):""]})]}),(0,p.jsx)("div",{className:"",children:(null===(r=A.hasNoDataScope)||void 0===r?void 0:r.showGraphic1)&&(0,p.jsx)("img",{className:v.image,src:d,"data-testid":"no-workspaces-image",alt:"-"})})]})}):void 0:(0,p.jsx)(f.A,{hasNoDataScope:A.hasNoDataScope})}},67218:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96895),o=(0,r.KU)(function(){return sessionStorage});const a=(0,r.tG)("workspacesAtom",{selectedWorkspace:void 0,workspaces:[],workspaceCount:0},o)},67303:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(14041),i=n(60156),l=n(34016),s=n(79405),c=n(73657),u=n(45365),d=n(45647),f=n(18141),p=n(31085);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(0,o.default)(".color-x1miz5bj{color:var(--gray300-x1xk3734)}",3e3),t.A=function(){var e,t=x((0,a.useState)(!1),2),n=t[0],r=t[1],o=x((0,d.useSyncState)(),1)[0],m=x((0,a.useState)(u.Input.DatePicker.getDateRange("7d")),2),g=m[0],h=m[1],b=(0,l.useQuery)("/analytics/top-invalid-ips?df_dmin=".concat(g.min.timestamp,"&df_dmax=").concat(g.max.timestamp)),v=b.data,A=b.isLoading,_=(0,l.useMutation)("/ip/blacklist","POST");return(0,p.jsxs)(u.Card,{children:[(0,p.jsxs)("div",{className:"justify-between ",children:[(0,p.jsx)(u.Text,{preset:"widgetHeading",as:"h1",className:"mt-2",children:(0,i.language)("Top 5 blocked IP addresses")}),(0,p.jsx)(u.Input.DatePicker,{value:[g.min.date,g.max.date],onRangeChange:function(e){return h(e)},showCalenderIcon:!1,displayRangeText:!1,selectedOption:g.rangeName,ranges:["1d","yesterday","7d","30d","prevMonth","customMonth","customRange"]})]}),(0,p.jsx)(u.Divider,{className:"mt-4"}),(0,p.jsx)("div",{className:"mt-5",children:(0,p.jsx)(s.Table,{rows:null==v||null===(e=v.result)||void 0===e?void 0:e.top_invalid_click_ips,isLoading:A,leftPinnedColumns:1,children:function(e){var t;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:(0,i.language)("IP Address")}),(0,p.jsx)("th",{style:{textAlign:"center",width:80,flexGrow:0},children:(0,i.language)("Count")}),(0,p.jsx)("th",{children:(0,i.language)("Country")}),!0!==(null==o?void 0:o.user.obfuscate)&&(0,p.jsx)("th",{children:(0,i.language)("Audit Trail")}),!0===(null==o?void 0:o.user.obfuscate)&&(0,p.jsx)("th",y(y({},{className:"color-x1miz5bj","data-style-src":"Top5BlockedIPs/index.tsx:15"}),{},{children:(0,p.jsx)(u.ToolTip,{content:(0,i.language)("Audit trail feature not available with obfuscated IPs"),children:(0,i.language)("Audit Trail")})})),(0,p.jsx)("th",{children:(0,i.language)("Ban IP")})]})}),(0,p.jsxs)("tbody",{children:[(0,p.jsx)("td",{children:null==e?void 0:e.ip}),(0,p.jsx)("td",{style:{textAlign:"center",width:80,flexGrow:0},children:null==e?void 0:e.total_count}),(0,p.jsx)("td",{children:(0,p.jsx)(u.CountryIcon,{countryCode:null==e||null===(t=e.location_physical)||void 0===t?void 0:t.country_code})}),(0,p.jsx)("td",{style:{textAlign:"center",width:80},children:(0,p.jsx)(u.ToolTip,{content:!0!==(null==o?void 0:o.user.obfuscate)?(0,i.language)("View an audit history of this IP"):(0,i.language)("Audit trail feature not available with obfuscated IPs"),children:(0,p.jsx)(u.Button,{id:"audit-trail-button-".concat(null==e?void 0:e.ip),"data-testid":null==e?void 0:e.ip,preset:"outline",size:"sm",as:c.Link,to:"/audit-trail?ip=".concat(null==e?void 0:e.ip,"&dsp=internal-tools"),"aria-label":(0,i.language)("Audit Trail"),iconLeft:["far","timeline-arrow"],style:{width:"fit-content"},disabled:!0===(null==o?void 0:o.user.obfuscate)})})}),(0,p.jsx)("td",{style:{textAlign:"center",width:80,flexGrow:0},children:(0,p.jsx)(u.Button,{id:"exclude-ip-button-".concat(null==e?void 0:e.ip),onClick:function(){return r(e)},"data-testid":"exclude-ip-button-".concat(null==e?void 0:e.ip),size:"sm",preset:"outline","aria-label":(0,i.language)("Exclude IP"),iconLeft:"ban"})})]})]})}})}),(0,p.jsxs)(u.Modal,{open:Boolean(n),onClose:function(){return r(!1)},children:[(0,p.jsx)(u.Modal.Header,{}),(0,p.jsx)(u.Modal.Content,{children:(0,p.jsx)("div",{className:"text-center",children:(0,p.jsx)("p",{children:(0,i.language)("Are you sure you want to manually add :ip to your IP exclusions?",{ip:n.ip})})})}),(0,p.jsxs)(u.Modal.Actions,{children:[(0,p.jsx)(u.Button,{onClick:function(){var e;
2e=n,_.mutate({apply_to:"campaigns",campaign_ids:[e.cpn],ips:e.ip,reason:9e3,_method:"PUT"},{onSuccess:function(){(0,f.toastNotification)((0,i.language)("IP successfully added to exclusions list."),"success")},onError:function(){(0,f.toastNotification)((0,i.language)("Error adding IP to exclusions - please contact support."),"error")}}),r(!1)},"data-testid":"exclude-ip-button-confirm",children:(0,i.language)("Exclude IP")}),(0,p.jsx)(u.Button,{onClick:function(){return r(!1)},"data-testid":"exclude-ip-button-cancel",children:(0,i.language)("Cancel")})]})]})]})}},67400:(e,t,n)=>{"use strict";e.exports=n.p+"51d7a2dc65f197f85574.svg"},67412:(e,t,n)=>{"use strict";e.exports=n.p+"51d7a2dc65f197f85574.svg"},67428:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(14041),o=n(62720),a=n(72686),i=n(27805),l=n(99018),s=n(89748),c=n(88133),u=n(24284),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b=(0,l.createUseStyles)(function(){return{row:{display:"flex",alignItems:"center",padding:"16px 0"},flagName:{flex:1,paddingLeft:54,fontWeight:"bold"},flagDescription:{flex:3,paddingLeft:54},flagValue:{flex:3,paddingLeft:54}}});const v=function(){var e=b(),t=y((0,r.useState)([]),2),n=t[0],l=t[1],f=y((0,r.useState)(!1),2),p=f[0],g=f[1],v=(0,c.gC)("/labs/toggle","PUT"),A=(0,c.Ay)("/labs").data;function _(e){if(!p){g(e);var t=function(e){if(Array.isArray(e))return x(e)}(o=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||h(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t.findIndex(function(t){return t.flag===e.flag});-1!==r&&(t[r]=e),l(t),function(e){v.mutate({flag:e.flag},{onSuccess:function(){(0,u.A)((0,s.A)(":state :flag",{flag:e.name,state:e.active?"Activated":"Deactivated"}),"success"),g(!1)},onError:function(){(0,u.A)((0,s.A)("Something went wrong!"),"error"),g(!1)}})}(e)}var o}return(0,r.useEffect)(function(){null!=A&&A.data&&l(null==A?void 0:A.data)},[A]),(0,d.jsxs)(a.default,{children:[(0,d.jsx)(i.default,{type:"settings",title:(0,s.A)("Features"),text:(0,s.A)("Activate new features on your Lunio account."),noDivider:!0}),n.map(function(t){return(0,d.jsxs)("div",{className:e.row,children:[(0,d.jsx)(o.default.Toggle,{disabled:p,name:t.flag,value:t.active,onFormValue:function(){return _(m(m({},t),{},{active:!t.active}))},"data-testid":"toogle-input-".concat(t.flag)}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:e.flagName,children:t.name}),(0,d.jsx)("div",{className:e.flagDescription,children:t.description}),t.value&&(0,d.jsxs)("div",{className:e.flagValue,children:[(0,s.A)("Value")," ",":"," ",t.value]})]})]},t.flag)})]})}},67677:(e,t,n)=>{"use strict";function r(e){var t=[];
2return e&&e.forEach(function(e){e.aw_id&&t.push(e.aw_id)}),t}n.d(t,{B:()=>r})},67892:(e,t,n)=>{"use strict";e.exports=n.p+"f699cb44adca763ffa5b.svg"},67998:(e,t,n)=>{"use strict";n.d(t,{A:()=>y}),n(14041);var r=n(28426),o=n(27805),a=n(55593),i=n(13734),l=n(22050),s=n(89748),c=n(93033),u=n(99226),d=n(77730),f=n(98902),p=n(18580),m=n(31085);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const y=function(){var e,t,n,y,h=(n=(0,d.A)(),y=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,y)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(n,y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],x=(0,u.A)(),b=x.allowedFeatureFlags,v=x.lunioStatus;return(0,m.jsxs)(r.A.Page,{type:"overview",children:[(0,m.jsx)(o.default,{type:"overview",title:(0,s.A)("Welcome to your :workspace :isAllWorkspaces",{workspace:null===(e=h.selectedWorkspace)||void 0===e?void 0:e.name,isAllWorksp
2aces:-1===(null===(t=h.selectedWorkspace)||void 0===t?void 0:t.id)?(0,s.A)("dashboard"):(0,s.A)("workspace")}),text:(0,s.A)("Insights into invalid traffic identified by Lunio")}),(0,m.jsx)(f.A,{className:"mb-4"}),(0,m.jsx)(p.A,{className:"mb-2"}),"TRIAL"===v&&(0,m.jsx)(i.A,{className:"mb-4",allPlatforms:!0}),"TRIAL"===v&&(0,m.jsx)(a.A,{className:"mb-4"}),(0,m.jsx)(c.A,{isNotTrialStatus:!0,OR:"TRIAL"===v&&b(["TRIAL_CLICK_LOG_ANALYTICS"]),orIsImpersonating:!0,children:(0,m.jsx)(l.A,{reAllocated:!0,allAccounts:!0})}),"TRIAL"!==v&&(0,m.jsx)(a.A,{className:"mb-4 mt-4"}),"TRIAL"!==v&&(0,m.jsx)(i.A,{className:"mt-4",allPlatforms:!0})]})}},68022:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(66773),s=n(47352),c=n(24284),u=n(83223),d=n(99018),f=n(9260),p=n(62720),m=n(55618),g=n(30021),y=n(88133),h=n(96182),x=n(77730),b=n(80111),v=n(31085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k=(0,d.createUseStyles)({exportButton:{float:"right"}});function E(e){var t,n,o,a,d,A,_,w,j,E,N,I,P,T,C,R,M,L,D,B,U,F,G,W,z,V,q,K,H,Y,$,Z,X=e.exportType,J=void 0===X?"campaigns":X,Q=e.activeFilters,ee=O((0,r.useState)(!1),2),te=ee[0],ne=ee[1],re=O((0,x.A)(),1)[0],oe=O((0,r.useState)(""),2),ae=oe[0],ie=oe[1],le=O((0,b.A)(),1)[0],se=O((0,h.A)(),1)[0],ce=O((0,r.useState)([]),2),ue=ce[0],de=ce[1],fe=O((0,r.useState)(""),2),pe=fe[0],me=fe[1],ge=null==se||null===(t=se.selectedPlatform)||void 0===t?void 0:t.platform_name,ye=k(),he=(0,y.gC)("/analytics/stats/export?workspace_context=".concat((0,s.A)(null==re||null===(n=re.selectedWorkspace)||void 0===n?void 0:n.id)),"POST"),xe=(null==Q||null===(o=Q.dateRange)||void 0===o||null===(o=o.max)||void 0===o?void 0:o.localTimestamp)||(null==le||null===(a=le.dataFilterDates)||void 0===a||null===(a=a.max)||void 0===a?void 0:a.localTimestamp)||0,be=(null==Q||null===(d=Q.dateRange)||void 0===d||null===(d=d.min)||void 0===d?void 0:d.localTimestamp)||(null==le||null===(A=le.dataFilterDates)||void 0===A||null===(A=A.min)||void 0===A?void 0:A.localTimestamp)||0,ve=[];null!=Q&&null!==(_=Q.campaignType)&&void 0!==_&&null!==(_=_.SEARCH)&&void 0!==_&&_.value&&ve.push("SEARCH"),null!=Q&&null!==(w=Q.campaignType)&&void 0!==w&&null!==(w=w.DISPLAY)&&void 0!==w&&w.value&&ve.push("DISPLAY"),null!=Q&&null!==(j=Q.campaignType)&&void 0!==j&&null!==(j=j.VIDEO)&&void 0!==j&&j.value&&ve.push("VIDEO"),null!=Q&&null!==(E=Q.campaignType)&&void 0!==E&&null!==(E=E.SHOPPING)&&void 0!==E&&E.value&&ve.push("SHOPPING"),null!=Q&&null!==(N=Q.campaignType)&&void 0!==N&&null!==(N=N.PERFORMANCE_MAX)&&void 0!==N&&N.value&&ve.push("PERFORMANCE_MAX");var Ae=[{label:(0,i.A)("None"),value:""},{label:(0,i.A)("Weekly"),value:"week"},{label:(0,i.A)("Monthly"),value:"month"}];return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.default,{id:"export-button-open",onClick:function(){return ne(!0)},iconRight:["far","download"],className:ye.exportButton,"data-testid":"export-button",contentRight:(0,v.jsx)(f.default,{"data-testid":"create-new-member-button",onClick:function(){},children:(0,i.A)("New User")}),children:(0,i.A)("Export")}),(0,v.jsx)(m.default,{open:te,onClose:function(){return ne(!1)},heading:function(){switch(J){case"campaigns":return(0,i.A)("Export Campaigns");case"affiliate":return(0,i.A)("Export Affiliates");default:return(0,i.A)("Export Accounts")}}(),subtitle:function(){switch(J){case"campaigns":return(0,i.A)("Export your campaign data to a CSV file");case"affiliate":return(0,i.A)("Export your affiliate data to a CSV file");default:return(0,i.A)("Export your account data to a CSV file")}}(),children:(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{className:"mb-4",children:[(0,v.jsxs)(g.default,{preset:"formSectionTitle",as:"h6",children:[(0,i.A)("Sending to"),":"]}),(0,v.jsx)(p.default,{label:(0,i.A)("Enter email address"),name:"recipient_email",type:"email",onFormValue:function(e){ie(e.value)},id:"export-email-input",value:ae,errors:ue,showErrors:!0,style:{width:"60%"}}),(0,v.jsxs)(g.default,{preset:"formSectionTitle",as:"h6",className:"mt-4",children:[(0,i.A)("Interval"),":"]}),(0,v.jsx)(p.default.Select,{onChange:function(e){me(e.value)},id:"export-interval-input",value:{label:null===(I=Ae.find(function(e){return e.value===pe}))||void 0===I?void 0:I.label,value:pe},options:Ae,style:{width:"60%"}})]}),(0,v.jsxs)(g.default,{preset:"formSectionTitle",as:"h6",className:"mt-4",children:[(0,i.A)("Export Summary"),":"]}),(0,v.jsxs)("div",{className:"mb-4 mt-4",children:[(0,v.jsxs)(g.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,i.A)("Worksp
2ace"),":"]}),(0,v.jsx)(g.default,{children:null==re||null===(P=re.selectedWorkspace)||void 0===P?void 0:P.name})]}),(0,v.jsxs)("div",{className:"mb-4 mt-4",children:[(0,v.jsxs)(g.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,i.A)("Date range"),":"]}),(0,v.jsxs)(g.default,{children:[(0,u.GP)(1e3*be,"dd/MM/yyyy")," ","-"," ",(0,u.GP)(1e3*xe,"dd/MM/yyyy")]})]}),(0,v.jsxs)("div",{className:"mb-4 mt-4 w-full",children:[(0,v.jsxs)(g.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,i.A)("Protection Status"),":"]}),(0,v.jsxs)("div",{children:[(null==Q||null===(T=Q.protectionStatus)||void 0===T||null===(T=T.include_protected)||void 0===T?void 0:T.value)&&!(null!=Q&&null!==(C=Q.protectionStatus)&&void 0!==C&&null!==(C=C.include_monitored)&&void 0!==C&&C.value)&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Protected")}),(null==Q||null===(R=Q.protectionStatus)||void 0===R||null===(R=R.include_monitored)||void 0===R?void 0:R.value)&&!(null!=Q&&null!==(M=Q.protectionStatus)&&void 0!==M&&null!==(M=M.include_protected)&&void 0!==M&&M.value)&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Monitored")}),(!(null!=Q&&null!==(L=Q.protectionStatus)&&void 0!==L&&null!==(L=L.include_monitored)&&void 0!==L&&L.value)&&!(null!=Q&&null!==(D=Q.protectionStatus)&&void 0!==D&&null!==(D=D.include_protected)&&void 0!==D&&D.value)||(null==Q||null===(B=Q.protectionStatus)||void 0===B||null===(B=B.include_monitored)||void 0===B?void 0:B.value)&&(null==Q||null===(U=Q.protectionStatus)||void 0===U||null===(U=U.include_protected)||void 0===U?void 0:U.value))&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("All")})]})]}),"google"===(null==se||null===(F=se.selectedPlatform)||void 0===F?void 0:F.platform_name)&&"campaigns"===J&&(0,v.jsxs)("div",{className:"mb-4 mt-4 w-full",children:[(0,v.jsxs)(g.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,i.A)("Campaign Type"),":"]}),(0,v.jsxs)("div",{children:[!0===(null==Q||null===(G=Q.campaignType)||void 0===G||null===(G=G.DISPLAY)||void 0===G?void 0:G.value)&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Display")}),!0===(null==Q||null===(W=Q.campaignType)||void 0===W||null===(W=W.PERFORMANCE_MAX)||void 0===W?void 0:W.value)&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Pmax")}),!0===(null==Q||null===(z=Q.campaignType)||void 0===z||null===(z=z.SEARCH)||void 0===z?void 0:z.value)&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Search")}),!0===(null==Q||null===(V=Q.campaignType)||void 0===V||null===(V=V.SHOPPING)||void 0===V?void 0:V.value)&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Shopping")}),!0===(null==Q||null===(q=Q.campaignType)||void 0===q||null===(q=q.VIDEO)||void 0===q?void 0:q.value)&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Video")}),!0!==(null==Q||null===(K=Q.campaignType)||void 0===K||null===(K=K.DISPLAY)||void 0===K?void 0:K.value)&&!0!==(null==Q||null===(H=Q.campaignType)||void 0===H||null===(H=H.PERFORMANCE_MAX)||void 0===H?void 0:H.value)&&!0!==(null==Q||null===(Y=Q.campaignType)||void 0===Y||null===(Y=Y.SEARCH)||void 0===Y?void 0:Y.value)&&!0!==(null==Q||null===($=Q.campaignType)||void 0===$||null===($=$.SHOPPING)||void 0===$?void 0:$.value)&&!0!==(null==Q||null===(Z=Q.campaignType)||void 0===Z||null===(Z=Z.VIDEO)||void 0===Z?void 0:Z.value)&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("All")})]})]}),(0,v.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,v.jsx)(f.default,{id:"export-button-close",onClick:function(){ne(!1)},preset:"outline","data-testid":"export-close-button",className:"mr-2",children:(0,i.A)("Cancel")}),(0,v.jsx)(f.default,{id:"export-button-submit",onClick:function(){var e,t,n,r,o,a,s,u,d,f,p;(p=(0,l.A)("isEmail",ae,(0,i.A)("Enter an email address")))?de(p):(de([]),he.mutate({stat_page:"campaign_analytics",ad_stat_type:"campaigns"===J?"campaigns":"accounts",recipient_email:ae,platform:null==se||null===(e=se.selectedPlatform)||void 0===e?void 0:e.platform_name,filters:S(S(S(S({df_dmax:(null==Q||null===(t=Q.dateRange)||void 0===t||null===(t=t.max)||void 0===t?void 0:t.t
2imestamp)||(null==le||null===(n=le.dataFilterDates)||void 0===n||null===(n=n.max)||void 0===n?void 0:n.timestamp),df_dmin:(null==Q||null===(r=Q.dateRange)||void 0===r||null===(r=r.min)||void 0===r?void 0:r.timestamp)||(null==le||null===(o=le.dataFilterDates)||void 0===o||null===(o=o.min)||void 0===o?void 0:o.timestamp)},pe&&{period:pe}),(f=[],null!=Q&&null!==(a=Q.protectionStatus)&&void 0!==a&&null!==(a=a.include_protected)&&void 0!==a&&a.value&&f.push(2),null!=Q&&null!==(s=Q.protectionStatus)&&void 0!==s&&null!==(s=s.include_monitored)&&void 0!==s&&s.value&&f.push(1),"google"!==ge?0===f.length?{}:{protection_status:f}:{include_monitored:!(null==Q||null===(u=Q.protectionStatus)||void 0===u||null===(u=u.include_monitored)||void 0===u||!u.value),include_protected:!(null==Q||null===(d=Q.protectionStatus)||void 0===d||null===(d=d.include_protected)||void 0===d||!d.value)})),ve.length>0&&{type:ve}),{},{min_clicks:1}),_method:"POST"},{onSuccess:function(e){var t;(0,c.A)((0,i.A)(null==e||null===(t=e.data)||void 0===t?void 0:t.message),"success")},onError:function(){(0,c.A)((0,i.A)("Report failed to process"),"error")}}),ne(!1))},"data-testid":"export-submit-button",children:(0,i.A)("Export to CSV")})]})]})})]})}E.propTypes={exportType:a().string,activeFilters:a().object};const N=E},68210:(e,t,n)=>{"use strict";e.exports=n.p+"1e6f29125d15c87f2c43.svg"},68225:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(66773),s=n(47352),c=n(24284),u=n(83223),d=n(99018),f=n(9260),p=n(62720),m=n(55618),g=n(30021),y=n(88133),h=n(96182),x=n(77730),b=n(80111),v=n(31085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k=(0,d.createUseStyles)({exportButton:{float:"right"}});function E(e){var t,n,o,a,d,A,_,w,j=e.filters,E=void 0===j?{}:j,N=e.exportType,I=void 0===N?"campaigns":N,P=O((0,r.useState)(!1),2),T=P[0],C=P[1],R=O((0,x.A)(),1)[0],M=O((0,r.useState)(""),2),L=M[0],D=M[1],B=O((0,b.A)(),1)[0],U=O((0,h.A)(),1)[0],F=O((0,r.useState)([]),2),G=F[0],W=F[1],z=O((0,r.useState)(""),2),V=z[0],q=z[1],K=k(),H=(0,y.gC)("/analytics/stats/export?workspace_context=".concat((0,s.A)(null==R||null===(t=R.selectedWorkspace)||void 0===t?void 0:t.id)),"POST"),Y=(null==B||null===(n=B.dataFilterDates)||void 0===n||null===(n=n.max)||void 0===n?void 0:n.timestamp)||0,$=(null==B||null===(o=B.dataFilterDates)||void 0===o||null===(o=o.min)||void 0===o?void 0:o.timestamp)||0,Z=(null==B||null===(a=B.dataFilterDates)||void 0===a||null===(a=a.max)||void 0===a?void 0:a.localTimestamp)||0,X=(null==B||null===(d=B.dataFilterDates)||void 0===d||null===(d=d.min)||void 0===d?void 0:d.localTimestamp)||0,J=[];null!=E&&E["campaignType.search"]&&J.push("SEARCH"),null!=E&&E["campaignType.display"]&&J.push("DISPLAY"),null!=E&&E["campaignType.video"]&&J.push("VIDEO"),null!=E&&E["campaignType.shopping"]&&J.push("SHOPPING"),null!=E&&E["campaignType.pmax"]&&J.push("PERFORMANCE_MAX");var Q=[{label:(0,i.A)("None"),value:""},{label:(0,i.A)("Weekly"),value:"week"},{label:(0,i.A)("Monthly"),value:"month"}];return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.default,{id:"export-button-open",onClick:function(){return C(!0)},iconRight:["far","download"],className:K.exportButton,"data-testid":"export-button",contentRight:(0,v.jsx)(f.default,{"data-testid":"create-new-member-button",onClick:function(){},children:(0,i.A)("New User")}),children:(0,i.A)("Export")}),(0,v.jsx)(m.default,{open:T,onClose:function(){return C(!1)},heading:"campaigns"===I?(0,i.A)("Export Campaigns"):(0,i.A)("Export Accounts"),subtitle:"campaigns"===I?(0,i.A)("Export your campaign data to a CSV file"):(0,i.A)("Export your account data to a CSV file"),children:(0,v.jsxs)("div",{className:"p-4",children:[(0,v.jsxs)("div",{className:"mb-4",children:[(0,v.jsxs)(g.default,{preset:"formSectionTitle",children:[(0,i.A)("Sending to"),":"]}),(0,v.jsx)(p.default,{label:(0,i.A)("Enter email address"),name:"recipient_email",type:"email",onFormValue:function(e){D(e.value)},id:"export-email-input",value:L,errors:G,showErrors:!0,style:{width:"60%"}}),(0,v.jsxs)(g.default,{preset:"formSectionTitle",className:"mt-4",children:[(0,i.A)("Interval"),":"]}),(0,v.jsx)(p.default.Select,{onChange:function(e){q(e.value)},id:"export-interval-input",value:{label:null===(A=Q.find(function(e){return e.value===V}))||void 0===A?void 0:A.label,value:V},options:Q,style:{width:"60%"}})]}),(0,v.jsxs)(g.default,{preset:"formSectionTitle",as:"h8",className:"mt-4",children:[(0,i.A)("Export Summary"),":"]}),(0,v.jsxs)("div",{className:"mb-4 mt-4",children:[(0,v.jsxs)(g.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,i.A)("Worksp
2ace"),":"]}),(0,v.jsx)(g.default,{children:null==R||null===(_=R.selectedWorkspace)||void 0===_?void 0:_.name})]}),(0,v.jsxs)("div",{className:"mb-4 mt-4",children:[(0,v.jsxs)(g.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,i.A)("Date range"),":"]}),(0,v.jsxs)(g.default,{preset:"formSectionText",children:[(0,u.GP)(1e3*X,"dd/MM/yyyy")," ","-"," ",(0,u.GP)(1e3*Z,"dd/MM/yyyy")]})]}),(0,v.jsxs)("div",{className:"mb-4 mt-4 w-full",children:[(0,v.jsxs)(g.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,i.A)("Protection Status"),":"]}),(0,v.jsxs)("div",{className:"mt-2",children:[E["protectionStatus.include_protected"]&&!E["protectionStatus.include_monitored"]&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Protected")}),E["protectionStatus.include_monitored"]&&!E["protectionStatus.include_protected"]&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Monitored")}),(!E["protectionStatus.include_monitored"]&&!E["protectionStatus.include_protected"]||E["protectionStatus.include_monitored"]&&E["protectionStatus.include_protected"])&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("All")})]})]}),"google"===(null==U||null===(w=U.selectedPlatform)||void 0===w?void 0:w.platform_name)&&"campaigns"===I&&(0,v.jsxs)("div",{className:"mb-4 mt-4 w-full",children:[(0,v.jsxs)(g.default,{preset:"formHeading",as:"h8",className:"mb-4",children:[(0,i.A)("Campaign Type"),":"]}),(0,v.jsxs)("div",{className:"mt-2",children:[!0===E["campaignType.display"]&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Display")}),!0===E["campaignType.pmax"]&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Pmax")}),!0===E["campaignType.search"]&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Search")}),!0===E["campaignType.shopping"]&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Shopping")}),!0===E["campaignType.video"]&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("Video")}),!0!==E["campaignType.display"]&&!0!==E["campaignType.pmax"]&&!0!==E["campaignType.search"]&&!0!==E["campaignType.shopping"]&&!0!==E["campaignType.video"]&&(0,v.jsx)(g.default,{className:"mb-2",children:(0,i.A)("All")})]})]}),(0,v.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,v.jsx)(f.default,{id:"export-button-close",onClick:function(){C(!1)},preset:"outline","data-testid":"export-close-button",className:"mr-2",children:(0,i.A)("Cancel")}),(0,v.jsx)(f.default,{id:"export-button-submit",onClick:function(){var e,t,n,r;(r=(0,l.A)("isEmail",L,(0,i.A)("Enter an email address")))?W(r):(W([]),H.mutate({stat_page:"campaign_analytics",ad_stat_type:"campaigns"===I?"campaigns":"accounts",recipient_email:L,platform:null==U||null===(e=U.selectedPlatform)||void 0===e?void 0:e.platform_name,filters:S(S(S(S({df_dmax:Y,df_dmin:$},V&&{period:V}),(n=[],E["protectionStatus.include_protected"]&&n.push(2),E["protectionStatus.include_monitored"]&&n.push(1),"google"!==(null==U||null===(t=U.selectedPlatform)||void 0===t?void 0:t.platform_name)?0===n.length?{}:{protection_status:n}:{include_monitored:!!E["protectionStatus.include_monitored"],include_protected:!!E["protectionStatus.include_protected"]})),J.length>0&&{type:J}),{},{min_clicks:1}),_method:"POST"},{onSuccess:function(e){var t;(0,c.A)((0,i.A)(null==e||null===(t=e.data)||void 0===t?void 0:t.message),"success")},onError:function(){(0,c.A)((0,i.A)("Report failed to process"),"error")}}),C(!1))},"data-testid":"export-submit-button",children:(0,i.A)("Export to CSV")})]})]})})]})}E.propTypes={filters:a().object,exportType:a().string};const N=E},68236:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(7801),o=n(88004),a=n(45949),i=n(77730),l=n(96182),s=n(36549),c=n(80111),u=n(11182);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(){var e=g((0,i.A)(),2),t=e[0],n=e[1],d=g((0,l.A)(),2),f=d[0],m=d[1],y=g((0,s.A)(),2),h=y[0],x=y[1],b=g((0,c.A)(),2),v=b[0],A=b[1],_=g((0,u.A)(),2),S=_[0],w=_[1];return{selectWorkspace:function(e){var i,l=t.workspaces.find(function(t){return t.id===e}),s=(0,a.A)(t.workspaces,l,f.allUserPlatforms,f.allAdminPlatforms),c=(0,r.A)(s),u=p(p({},S),{},{roleIdentifier:-1===(null==l?void 0:l.id)?"USER":null!==(i=null==l?void 0:l.role)&&void 0!==i?i:S.accountRoleIdentifier});w(u),x(p(p({},h),{},{hasNoDataScope:(0,o.A)(u,t.workspaces,s,null==l?void 0:l.id)})),n(p(p({},t),{},{selectedWorkspace:l})),m(p(p({},f),{},{platforms:s,selectedPlatform:c})),A(p(p({},v),{},{filteredGoogleAwIds:[],selectedAwAccounts:[]}))},workspacesState:t}}},68270:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(14041);var r=n(88133),o=n(45459),a=n(55436),i=n(73172),l=n(31085);const s=function(){var e=Date.parse(new Date)/1e3,t=Date.parse((0,o.a)(new Date,12))/1e3,n=(0,r.Ay)("/analytics/emissions?df_dmin=".concat(t,"&df_dmax=").concat(e,"&df_interval=month\n"),void 0,"emissions").data;return n?(0,l.jsx)(i.A,{data:null==n?void 0:n.result}):(0,l.jsx)(a.default,{loading:!0,preset:"dark",size:"responsive"})}},68378:(e,t,n)=>{"use strict";e.exports=n.p+"e916c3fbc82ce4490ff0.svg"},68590:(e,t,n)=>{"use strict";n.d(t,{A:()=>u}),n(14041);var r=n(39067),o=n.n(r),a=n(99018),i=n(18007),l=n(31085),s=(0,a.createUseStyles)({main:{backgroundImage:"url(".concat(i,")"),backgroundPosition:"center",backgroundSize:"cover",minHeight:"100vh"},container:{maxWidth:"100%"}});function c(e){var t=e.children,n=s();return(0,l.jsxs)("main",{className:n.main,children:[(0,l.jsx)("link",{rel:"shortcut icon",href:"../../../public/favicon.ico",type:"image/x-icon"}),(0,l.jsx)("link",{rel:"icon",href:"../../../public/favicon.ico",type:"image/x-icon"}),(0,l.jsx)("div",{className:n.container,children:t})]})}c.propTypes={children:o().node.isRequired};const u=c},68646:(e,t,n)=>{"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t<=3?[e.ivtColour3,e.ivtColour9,e.ivtColour15]:t<=6?[e.ivtColour2,e.ivtColour5,e.ivtColour8,e.ivtColour11,e.ivtColour14,e.ivtColour17]:t<=9?[e.ivtColour1,e.ivtColour3,e.ivtColour5,e.ivtColour7,e.ivtColour9,e.ivtColour11,e.ivtColour13,e.ivtColour15,e.ivtColour17]:t<=12?[e.ivtColour3,e.ivtColour4,e.ivtColour5,e.ivtColour6,e.ivtColour7,e.ivtColour8,e.ivtColour9,e.ivtColour10,e.ivtColour11,e.ivtColour12,e.ivtColour13,e.ivtColour14]:t<=15?[e.ivtColour2,e.ivtColour3,e.ivtColour4,e.ivtColour5,e.ivtColour6,e.ivtColour7,e.ivtColour8,e.ivtColour9,e.ivtColour10,e.ivtColour11,e.ivtColour12,e.ivtColour13,e.ivtColour14,e.ivtColour15,e.ivtColour16]:[e.ivtColour1,e.ivtColour2,e.ivtColour3,e.ivtColour4,e.ivtColour5,e.ivtColour6,e.ivtColour7,e.ivtColour8,e.ivtColour9,e.ivtColour10,e.ivtColour11,e.ivtColour12,e.ivtColour13,e.ivtColour14,e.ivtColour15,e.ivtColour16,e.ivtColour17]}n.d(t,{A:()=>r})},68701:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(25751)),o=n(99018),a=n(18141),i=n(44146),l=u(n(79135)),s=u(n(62720)),c=n(31085);function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=r.default;function y(e){var t=e.filterOption,n=e.filters,r=e.selectedConfigItem,u=e.setFilters,d=t.isActive?"".concat(r.name,"-").concat(t.name):"false",f=0,m=0;return n.forEach(function(e,n){e.name===r.name&&(f=n,e.options.forEach(function(e,n){e.name===t.name&&e.type===t.type&&(m=n)}))}),(0,c.jsx)(i.AccessControl,p(p({},t.accessControl),{},{children:(0,c.jsxs)("div",p(p({},{className:"width-xh8yej3 marginBottom-x91k8ka","data-style-src":"FilterMenuInput/index.tsx:11"}),{},{id:"filters-menu-input-".concat(r.name,"-").concat(t.name),children:["radio"===r.type&&(0,c.jsxs)("div",{className:(0,o.classNames)("display-x78zum5 justifyContent-x1qughib flexShrink-x2lah0s color-xbdn2ka",t.isActive&&"color-x6y2jjg"),children:[(0,c.jsx)(s.default.Radio,{name:"radio-".concat(r.name,"-").concat(t.name),"data-testid":"radio-".concat(r.name,"-").concat(t.name),label:t.label,value:"".concat(r.name,"-").concat(t.name),formValue:d,onClick:function(){return(e=function(e){for(var n=(0,a.cloneDeep)(e),r=n[f].options,o=0;o<r.length;o+=1)r[o].name&&r[o].name!==t.name&&(r[o].isActive=!1,r[o].value="",r[o].valueMax="",r[o].valueMin="");return n}(n))[f].options[m].isActive=!0,"radio"===t.type&&(e[f].options[m].value=n[f].options[m].label),void u(e);var e}}),t.icon&&(0,c.jsx)(l.default,{name:t.icon,"data-testid":"icon-".concat(r.name,"-").concat(t.name)})]}),"checkbox"===r.type&&(0,c.jsxs)("div",{className:(0,o.classNames)("display-x78zum5 justifyContent-x1qughib flexShrink-x2lah0s color-xbdn2ka",t.isActive&&"color-x6y2jjg"),children:[(0,c.jsx)(s.default.Checkbox,{name:"checkbox-".concat(r.name,"-").concat(t.name),"data-testid":"checkbox-".concat(r.name,"-").concat(t.name),label:t.label,value:t.value,onFormValue:function(e){var t=(0,a.cloneDeep)(n);t[f].options[m].value=e.value,t[f].options[m].isActive=!0,u(t)}}),t.icon&&(0,c.jsx)(l.default,{name:t.icon,"data-testid":"icon-".concat(r.name,"-").concat(t.name)})]}),("number"===t.type||"text"===t.type)&&t.isActive&&(0,c.jsx)("div",p(p({},{className:"width-xh8yej3 marginTop-xhrpt6u","data-style-src":"FilterMenuInput/index.tsx:15"}),{},{children:(0,c.jsx)(s.default,{"data-testid":"input-".concat(r.name,"-").concat(t.name),value:t.value,onFormValue:function(e){var t=(0,a.cloneDeep)(n);t[f].options[m].value=e.value,u(t)}})}))]}))}))}g(".width-xh8yej3{width:100%}",4e3),g(".marginBottom-x91k8ka{margin-bottom:22px}",4e3),g(".marginTop-xhrpt6u{margin-top:18px}",4e3),g(".display-x78zum5{display:flex}",3e3),g(".justifyContent-x1qughib{justify-content:space-between}",3e3),g(".flexShrink-x2lah0s{flex-shrink:0}",3e3),g(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),g(".color-x6y2jjg{color:var(--blue500-x7j0i53)}",3e3),g(".fontSize-xif65rj{font-size:14px}",3e3),g(".fontWeight-xk50ysn{font-weight:500}",3e3),g(".lineHeight-x1fc57z9{line-height:20px}",3e3),y.displayName="FiltersMenuInput",t.default=y},68777:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(19863),o=n(99018);const a=function(e,t){var n=(0,r.o)(t,e);return n<5?o.defaultTheme.colors.red[25]:n<10?o.defaultTheme.colors.red[50]:n<15?o.defaultTheme.colors.red[100]:n<20?o.defaultTheme.colors.red[200]:n<25?o.defaultTheme.colors.red[300]:n<30?o.defaultTheme.colors.red[400]:n<35?o.defaultTheme.colors.red[500]:n<40?o.defaultTheme.colors.red[600]:n<45?o.defaultTheme.colors.red[700]:n<50?o.defaultTheme.colors.red[800]:o.defaultTheme.colors.red[900]}},68984:(e,t,n)=>{"use strict";e.exports=n.p+"3e7b9debf12f01f00ace.svg"},69118:(e,t,n)=>{"use strict";e.exports=n.p+"bf0b190da4fffa1a3458.svg"},69222:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=c(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(14041)),i=c(n(50973)),l=c(n(97276)),s=n(31085);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g=o.default;function y(e){var t,n,r=e.children,o=(t=(0,a.useState)(null),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=o[0],u=o[1];return(0,s.jsx)("div",f(f({},{className:"paddingTop-x1cnzs8 paddingBottom-xx6bls6","data-style-src":"Accordion/index.tsx:7"}),{},{children:function e(t,n){var r=n;return a.default.Children.map(t,function(t){var n;if(!a.default.isValidElement(t))return t;var o=t;if(o.type===i.default){var s=r.current;r.current+=1;var d=t;return a.default.cloneElement(d,{onClick:function(){u(c!==s?s:null)},isOpen:c===s})}if(o.type===l.default){var f=r.current-1,p=t;return a.default.cloneElement(p,{isOpen:c===f})}return null!=(null===(n=o.props)||void 0===n?void 0:n.children)?a.default.cloneElement(o,{children:e(o.props.children,r)}):t})}(r,{current:0})}))}g(".paddingTop-x1cnzs8{padding-top:20px}",4e3),g(".paddingBottom-xx6bls6{padding-bottom:20px}",4e3),y.displayName="Accordion";var h=y;h.Title=i.default,h.Content=l.default,t.A=h},69347:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=s(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=s(n(79135)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=o.default;p(".height-x1vqgdyp{height:40px}",4e3),p(".width-x100vrsf{width:40px}",4e3),p(".display-x3nfvp2{display:inline-flex}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".justifyContent-xl56j7k{justify-content:center}",3e3),p(".borderRadius-xjv5f1p{border-radius:500px}",2e3),p(".boxSizing-x1afcbsf{box-sizing:content-box}",3e3),p(".flexShrink-x2lah0s{flex-shrink:0}",3e3),p(".marginRight-xaz8w3f{margin-right:var(--2-x17wbp3g)}",4e3),p(".width-xvy4d1p{width:24px}",4e3),p(".height-xxk0z11{height:24px}",4e3),p(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),p(".backgroundColor-xjpqfxw{background-color:#FDECF4}",3e3),p(".border-x13ae4ts{border:4px solid #FEF6FA}",1e3),p(".backgroundColor-x17behm0{background-color:var(--success100-x14um8e)}",3e3),p(".border-x1om42yf{border:4px solid #F6FEF9}",1e3),p(".backgroundColor-xwe9igg{background-color:var(--secondary50-xpop7mm)}",3e3),p(".border-x9nnmtj{border:4px solid #fbf8fe}",1e3),p(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3);var m={icon:{height:"height-x1vqgdyp",width:"width-x100vrsf",display:"display-x3nfvp2",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",borderRadius:"borderRadius-xjv5f1p",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,boxSizing:"boxSizing-x1afcbsf",flexShrink:"flexShrink-x2lah0s",marginRight:"marginRight-xaz8w3f",marginInlineStart:null,marginInlineEnd:null,$$css:"Badge/index.tsx:7"},svg:{width:"width-xvy4d1p",height:"height-xxk0z11",color:"color-x1jsblnb",$$css:"Badge/index.tsx:18"},pink:{backgroundColor:"backgroundColor-xjpqfxw",border:"border-x13ae4ts",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:"Badge/index.tsx:23"},green:{backgroundColor:"backgroundColor-x17behm0",border:"border-x1om42yf",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:"Badge/index.tsx:27"},purple:{backgroundColor:"backgroundColor-xwe9igg",border:"border-x9nnmtj",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:"Badge/index.tsx:31"},purpleSvg:{color:"color-xf72ejy",$$css:"Badge/index.tsx:35"}};t.default=function(e){var t=e.name,n=e.colour,r=void 0===n?"pink":n,o=e.className;return(0,l.jsx)("div",d(d({},a.props(m.icon,m[r])),{},{className:o,children:(0,l.jsx)(i.default,d({name:t},a.props(m.svg,"purple"===r&&m.purpleSvg)))}))}}
2,69429:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(14041),o=n(40803),a=n(31085);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t,n,l=e.children,s=e.className,c=void 0===s?"":s,u=e.radioClassName,d=void 0===u?"":u,f=e.name,p=void 0===f?"":f,m=e.value,g=void 0===m?"":m,y=e.onFormValue,h=void 0===y?function(){}:y,x=e.errors,b=void 0===x?[]:x,v=e.showErrors,A=void 0!==v&&v,_=e.dataTestId,S=(t=(0,r.useState)(g),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=S[0],O=S[1],j=null!=_?_:p;j||(j="option-group");var k=["Input.Radio"];return(0,a.jsxs)("div",{className:c,onChange:function(e){var t=e.target;if(!t.disabled){var n,r=(n=t.value,isNaN(Number(n))||""===n.trim()?n:Number(n));O(r),h({name:p,value:r})}},children:[function e(t){return r.Children.map(t,function(t){var n,o={};if(!r.isValidElement(t))return t;var i=t,l=i.type;return k.includes(null==l?void 0:l.displayName)?(o.formValue=w,(0,a.jsx)("div",{className:d,children:r.cloneElement(i,{formValue:w})})):null!==(n=i.props)&&void 0!==n&&n.children?(o.children=e(i.props.children),(0,r.cloneElement)(i,o)):t})}(l),b.length>0&&A&&(0,a.jsx)(o.default,{errors:b,dataTestId:"".concat(j,"-error")})]})}l.displayName="Input.OptionGroup";const s=l},69499:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(77223),s=n(62720),c=n(72686),u=n(30021),d=n(89748),f=n(88133),p=n(77730),m=n(36549),g=n(24284),y=n(31085);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S(e){var t,n=e.className,o=void 0===n?"":n,a=A((0,p.A)(),1)[0],h=A((0,m.A)(),2),x=h[0],v=h[1],_=A((0,r.useState)({label:null===(t=a.workspaces.filter(function(e){return e.id===x.user.default_workspace})[0])||void 0===t?void 0:t.name,value:x.user.default_workspace}),2),S=_[0],w=_[1],O=(0,f.gC)("/workspaces/default/".concat(S.value),"POST");function j(){S.value||0===S.value?O.mutate({_method:"POST"},{onSuccess:function(){(0,g.A)((0,d.A)("Default workspace was updated successfully"),"success"),v(b(b({},x),{},{user:b(b({},x.user),{},{default_workspace:0===S.value?null:S.value})}))},onError:function(){(0,g.A)((0,d.A)("Something went wrong!"),"error")}}):(0,g.A)((0,d.A)("Please select a workspace before trying to save"),"error")}return(0,r.useEffect)(function(){0===S.value&&j()},[S.value]),0===a.workspaces.length?null:(0,y.jsxs)(c.default,{className:o,children:[(0,y.jsx)(u.default,{preset:"pageHeading",as:"h3",children:(0,d.A)("Default Workspace")}),(0,y.jsx)(l.default,{className:"mt-4 mb-4"}),(0,y.jsx)(u.default,{className:"mb-3",children:(0,d.A)("Choose which workspace appears when you first load the dashboard.")}),(0,y.jsx)("div",{style:{width:"70%"},children:(0,y.jsx)(s.default.Select,{className:"mb-3 mt-4","aria-label":"Default Workspace","data-testId":"deafult-seleted-workspace",options:a.workspaces.filter(function(e){return e.id>0}).map(function(e){return{label:e.name,value:e.id}}),onChange:function(e){return w(e)},placeholder:(0,d.A)("Select a Workspace"),value:{label:S.label,value:S.value}})}),(0,y.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,y.jsx)(i.default,{preset:"outline",className:"mr-3","data-testid":"clear-default-workspace",onClick:function(){w({label:"",value:0})},children:(0,d.A)("Clear Default")}),(0,y.jsx)(i.default,{onClick:function(){return j()},"data-testid":"save-default-workspace-button",children:(0,d.A)("Save")})]})]})}S.propTypes={className:a().string};const w=S}
2,69672:(e,t,n)=>{"use strict";e.exports=n.p+"55eede0bfa1e54a29391.svg"},69800:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(34406),o=n(78806),a=n(62208),i=n(44925),l=n(6616);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e){if(!"MISSING_ENV_VAR".REACT_APP_BYPASS_DATE_RESTRICTION&&null!=e){var t={min:{date:null,timestamp:null,localTimestamp:null},max:{date:null,timestamp:null,localTimestamp:null},rangeName:"customRange",preset:null,selected:{label:"Custom Range",value:"customRange"},interval:"day"},n=function(e,t){if(t){var n=e,i=(0,r.k5)(new Date(1e3*Math.trunc(t)));return(0,a.d)(i,n[0])&&(n[0]=i),(0,a.d)(i,n[1])&&(n[1]=(0,o.D)(new Date)),n}return e}([(0,i.o)((0,l.j)(new Date,{days:7})),(0,o.D)((0,l.j)(new Date,{days:1}))],e),c=(p=2,function(e){if(Array.isArray(e))return e}(f=n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(f,p)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(f,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],d=c[1];return t.min.date=u,t.max.date=d,t.min.timestamp=Math.floor((0,r.Ay)(t.min.date).valueOf()/1e3),t.min.localTimestamp=Math.floor(t.min.date.valueOf()/1e3),t.max.timestamp=Math.floor((0,r.Ay)(t.max.date).valueOf()/1e3),t.max.localTimestamp=Math.floor(t.max.date.valueOf()/1e3),t}var f,p;return!1}},69912:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=f(n(25751)),a=d(n(14041)),i=d(n(64746)),l=n(86957),s=f(n(59848)),c=f(n(25396)),u=n(31085);function d(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(d=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=o.default;x(".position-x1n2onr6{position:relative}",3e3),x(".position-x10l6tqk{position:absolute}",3e3),x(".pointerEvents-x47corl{pointer-events:none}",3e3),x(".display-x1s85apg{display:none}",3e3);var b=[l.colourValues.error900,l.colourValues.error800,l.colourValues.error700,l.colourValues.error600,l.colourValues.error500,l.colourValues.error400,l.colourValues.error300,l.colourValues.error200,l.colourValues.error100,l.colourValues.error50,l.colourValues.error25];function v(e){var t,n,r=e.data,o=e.colors,l=void 0===o?b:o,s=e.affiliateLebalTypes,d=void 0===s?"default":s,f=e.keys,p=(0,a.useRef)(null),m=(0,a.useRef)(null),y=(t=a.default.useState(null),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=y[0],v=y[1];return(0,a.useEffect)(function(){i.select(p.current).selectAll("*").remove();var e=i.select(p.current),t=i.select(m.current);e.attr("shape-rendering","crispEdges");var n,o=+e.node().getBoundingClientRect().width-53-0,a=+e.attr("height")-20-34,s=e.append("g").attr("transform","translate(".concat(53,",").concat(20,")"));n=f||Array.from(new Set(r.flatMap(function(e){return Object.keys(e).filter(function(e){return"date"!==e})})));var c=r.map(function(e){var t=g({},e);return n.forEach(function(e){e in t||(t[e]=0)}),t}),u=i.scaleBand().domain(c.map(function(e){return e.date})).range([0,o]).padding(.1),d=i.max(c,function(e){var t=e;return i.sum(n,function(e){return t[e]})}),y=i.scaleLinear().domain([0,1.25*(null!=d?d:0)]).nice().range([a,0]),h=i.scaleOrdinal().domain(n).range(l),x=i.stack().keys(n)(c);s.append("g").selectAll("g").data(x).join("g").attr("fill",function(e){return h(e.key)}).selectAll("rect").data(function(e){return e}).join("rect").attr("x",function(e){var t;return null!==(t=u(e.data.date))&&void 0!==t?t:0}).attr("y",function(e){return y(e[1])}).attr("height",function(e){return y(e[0])-y(e[1])}).attr("width",u.bandwidth()).on("mouseover",function(e,r){t.style("display","block"),s.selectAll("rect").filter(function(e){var t,n=e.data;return(null==n?void 0:n.date)===(null===(t=r.data)||void 0===t?void 0:t.date)}).style("opacity",.7),v({date:r.data.date,value:n.map(function(e){return{name:e,value:r.data[e],color:h(e)}})})}).on("mousemove",function(e){var n,r,o,a,i,l=null!==(n=null===(r=p.current)||void 0===r?void 0:r.getBoundingClientRect().width)&&void 0!==n?n:0,s=e.offsetX,c=e.offsetY,u=null!==(o=null===(a=m.current)||void 0===a?void 0:a.offsetWidth)&&void 0!==o?o:0;i=s>l/2?s-u-20:s+20,t.style("left","".concat(i,"px")).style("top","".concat(c-20,"px"))}).on("mouseout",function(e,n){t.style("display","none"),v(null),s.selectAll("rect").filter(function(e){var t,r=e.data;return(null==r?void 0:r.date)===(null===(t=n.data)||void 0===t?void 0:t.date)}).style("opacity",1)});var b=s.append("g").attr("transform","translate(0,".concat(a,")")).call(i.axisBottom(u).tickValues(u.domain().filter(function(e,t){return t%Math.ceil(c.length/7)===0})).tickFormat(function(e){return e.slice(8,10)})),A=s.append("g").call(i.axisLeft(y).ticks(3).tickPadding(20).tickFormat(i.format("~s")));A.selectAll("g.tick").select("text").style("font-size","12px").style("font-weight",400),b.selectAll("g.tick").select("text").style("font-size","12px").style("font-weight",400),A.select(".domain").remove(),A.selectAll(".tick line").remove(),b.select(".domain").remove(),b.selectAll(".tick line").remove()},[r]),(0,u.jsxs)("div",g(g({},{className:"position-x1n2onr6","data-style-src":"Stacked/index.tsx:9"}),{},{id:"stacked-container",children:[(0,u.jsx)("div",g(g({id:"tooltip",ref:m},{className:"position-x10l6tqk pointerEvents-x47corl display-x1s85apg","data-style-src":"Stacked/index.tsx:12"}),{},{children:x&&(0,u.jsx)(c.default,{datum:x,affiliateLebalTypes:d})})),(0,u.jsx)("svg",{ref:p,width:"100%",height:"214"})]}))}v.Diverging=s.default,t.A=v},70131:(e,t,n)=>{"use strict";n.d(t,{A:()=>h}),n(14041);var r=n(28426),o=n(27805),a=n(63729),i=n(13734),l=n(22050),s=n(89748),c=n(93033),u=n(99226),d=n(27333),f=n(77730),p=n(79264),m=n(53145),g=n(31085);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const h=function(){var e,t,n,h=(t=(0,f.A)(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],x=(0,u.A)(),b=x.activePlatformTitle,v=x.allowedFeatureFlags,A=x.lunioStatus,_=(0,d.R7)(),S=_.filters,w=_.setFilters;return"Affiliate"===b?(0,g.jsx)(p.A,{}):(0,g.jsxs)(r.A.Page,{type:"overview",children:[(0,g.jsx)(o.default,{type:"overview",title:(0,s.A)(":platformName Summary - :workspace",{platformName:b,workspace:null===(e=h.selectedWorkspace)||void 0===e?void 0:e.name}),text:(0,s.A)("Insights into invalid traffic identified by Lunio"),contentRight:(0,g.jsx)(c.A,{isGoogle:!0,children:(0,g.jsx)(m.A,{filters:S,onFilterChange:w})})}),"TRIAL"===A&&(0,g.jsx)(i.A,{className:"mb-4",accounts:"Google"===b?S["accounts.selection"]:void 0}),(0,g.jsx)(c.A,{isNotTrialStatus:!0,OR:"TRIAL"===A&&v(["TRIAL_CLICK_LOG_ANALYTICS"]),orIsImpersonating:!0,children:(0,g.jsx)(l.A,{className:"mb-4",reAllocated:!0,accounts:"Google"===b?S["accounts.selection"]:void 0})}),(0,g.jsx)(a.A,{accounts:"Google"===b?S["accounts.selection"]:void 0}),"TRIAL"!==A&&(0,g.jsx)(i.A,{className:"mt-4",accounts:"Google"===b?S["accounts.selection"]:void 0})]})}},70218:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(62720),s=n(72686),c=n(30021),u=n(28426),d=n(27805),f=n(89748),p=n(72846),m=n.n(p),g=n(99018),y=n(36549),h=n(1929),x=n(41647),b=n.n(x),v=n(67428),A=n(31085);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t,n){return(t=function(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=(0,g.createUseStyles)(function(e){return k(k(k({formContainer:{marginTop:e.spacing[4],width:"50%"}},"@media (max-width: ".concat(e.breakpoints.xl,")"),{formContainer:{width:"100%"}}),"centredRow",{display:"flex",alignItems:"center"}),"logo",{backgroundColor:e.colors.purple[100],borderRadius:10,overflow:"hidden",
2width:89,height:89,padding:10})});function N(e){var t,n=e.data,o=e.isSaving,a=e.saveChanges,p=E(),x=O((0,y.A)(),1)[0];if(void 0===(null==x||null===(t=x.settings)||void 0===t?void 0:t.account_id))return null;var _=O(r.useState(x.settings),2),S=_[0],j=_[1],k=[];if(b())for(var N=0;N<b().length;N+=1)k.push({label:b()[N].currency_code,value:b()[N].currency_code});var I=[];if(null!=n&&n.industries)for(var P=0;P<n.industries.length;P+=1)I.push({label:n.industries[P],value:n.industries[P]});return(0,A.jsxs)(u.A.Page,{type:"settings",children:[(0,A.jsx)(d.default,{type:"settings",title:(0,f.A)("Account Settings"),text:S.account_title}),(0,A.jsxs)(s.default,{className:p.formContainer,children:[(0,A.jsxs)("div",{className:p.centredRow,children:[(0,A.jsx)("img",{className:p.logo,alt:"",src:h}),(0,A.jsx)(c.default,{preset:"formHeading",className:"ml-6",children:S.account_title})]}),(0,A.jsx)("div",{className:"mt-8"}),(0,A.jsx)(l.default,{label:(0,f.A)("Company Title"),"aria-label":(0,f.A)("Company Title"),value:S.account_title,id:"company-title","data-testId":"company-title",onChange:function(e){return j(w(w({},S),{},{account_title:e.target.value}))}}),(0,A.jsx)("div",{className:"mt-4"}),(0,A.jsx)(l.default.Select,{label:(0,f.A)("Industry"),"aria-label":(0,f.A)("Industry"),id:"industry-select",options:I,onChange:function(e){var t=m()(S);t.account_industry=e.value,j(t)},dataTestId:"industry-select-dropdown",value:{label:S.account_industry,value:S.account_industry}}),(0,A.jsx)("div",{className:"mt-4"}),(0,A.jsx)(l.default.Select,{label:(0,f.A)("Default Currency"),"aria-label":(0,f.A)("Default Currency"),options:k,onChange:function(e){var t=m()(S);t.default_currency=e.value,j(t)},value:{label:S.default_currency,value:S.default_currency}}),(0,A.jsxs)("div",{className:"flex justify-end mt-6",children:[(0,A.jsx)(i.default,{preset:"outline","data-testid":"cancel-changes-button",onClick:function(){j(x.settings)},children:(0,f.A)("Cancel Changes")}),(0,A.jsx)(i.default,{className:"ml-3",preset:"primary","data-testid":"save-changes",loading:o,onClick:function(){a(S)},children:(0,f.A)("Save Changes")})]})]}),(0,A.jsx)("div",{className:(0,g.classNames)(p.formContainer,"mt-4"),children:(0,A.jsx)(v.A,{})})]})}N.propTypes={data:a().object.isRequired,isSaving:a().bool.isRequired,saveChanges:a().func.isRequired};const I=N},70310:(e,t,n)=>{"use strict";e.exports=n.p+"124552e2ed8c43533c8d.svg"},70437:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(14041),o=n(9260),a=n(62720),i=n(30021),l=n(30556),s=n(27805),c=n(50324),u=n(99018),d=n(89748),f=n(77730),p=n(39067),m=n.n(p),g=n(59562),y=n(71174),h=n(83223),x=n(19706),b=n(24752),v=n(71073),A=n(5179),_=n(31085);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j=(0,u.createUseStyles)(function(){return{container:{display:"inline-flex",flexDirection:"column",width:"100%",height:"100%"},form:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"}}});function k(e){var t,n=e.onClose,u=j(),p=S((0,f.A)(),1)[0].workspaces.filter(function(e){return e.id>0}),m=S((0,r.useState)(!0),2),k=m[0],E=m[1],N=S((0,r.useState)(null),2),I=N[0],P=N[1],T=S((0,r.useState)({}),2),C=T[0],R=T[1];if(!p)return null;var M,L,D,B,U,F={template_id:1,frequency:"weekly",scope:null!==(t=p[0])&&void 0!==t&&t.id?p[0].id:0};function G(e){var t;return Boolean(null==e||null===(t=e.platforms)||void 0===t?void 0:t.some(function(e){return"affiliate"===e.platform_name}))}return(0,_.jsxs)("div",{className:u.container,children:[(0,_.jsx)(s.default,{title:(0,d.A)("Setup Report"),text:(0,d.A)("Setup frequency of report")}),(0,_.jsxs)(c.A,{className:u.form,initialFormValues:F,submitUrl:"/settings/reports/create",submitType:"POST",submitSuccessMessage:(0,d.A)("Report created successfully"),queriesToInvalidate:["/settings/reports"],onFormSubmit:function(){return n()},onFormDataChange:function(e){return function(e){var t=e.values.scope,n=p.find(function(e){return e.id===t});P(n),E(1===e.values.template_id),R(e.values)}(e)},children:[(0,_.jsxs)("div",{children:[(0,_.jsx)(l.default,{style:{padding:0},children:(0,_.jsxs)(l.default.Col,{xl:7,lg:12,children:[(0,_.jsx)(i.default,{preset:"formSectionTitle",className:"mb-3",children:(0,d.A)("Report Type")}),(0,_.jsx)(a.default.Select,{className:"mb-4",options:[{label:(0,d.A)("Worksp
2ace Summary"),value:1},{label:(0,d.A)("Campaign IVT Alert"),value:2}].concat((U=G(I)?[{label:(0,d.A)("Affiliate IVT Alert"),value:3}]:[],function(e){if(Array.isArray(e))return O(e)}(U)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(U)||w(U)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),placeholder:(0,d.A)("Select Report Type"),"data-testid":"create-report-workspace-summary-select",name:"template_id"}),(0,_.jsx)(i.default,{preset:"formSectionTitle",className:"mb-3",children:(0,d.A)("Select Workspace")}),(0,_.jsx)(a.default.Select,{className:"mb-4",options:p.map(function(e){return{label:e.name,value:e.id}}),"data-testid":"create-report-workspace-select",name:"scope"})]})}),k&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.default,{preset:"formSectionTitle",className:"mb-3",children:(0,d.A)("Frequency")}),(0,_.jsx)(i.default,{preset:"formSectionSubTitle",className:"mb-3",children:(0,d.A)("How often would you like to receive this Report")}),(0,_.jsxs)(a.default.OptionGroup,{name:"frequency",className:"mb-5",children:[(0,_.jsxs)("div",{className:"flex items-center mb-3",children:[(0,_.jsx)(a.default.Radio,{value:"weekly","data-testid":"create-report-weekly-radio",ariaLabel:(0,d.A)("Weekly")}),(0,_.jsxs)("div",{className:"ml-3",children:[(0,_.jsx)(i.default,{preset:"formSectionTitle",children:(0,d.A)("Weekly")}),(0,_.jsx)(i.default,{preset:"formSectionSubTitle",children:(0,_.jsxs)(_.Fragment,{children:[(0,d.A)("Receive a report every Monday -")," ",(0,_.jsxs)("b",{children:[(0,d.A)("next scheduled report")," ",(M=new Date,L=(0,A.k)(M,{weekStartsOn:1}),D=(0,g.f)(L,1),B=(0,g.f)(D,6),(0,h.GP)(B,"do MMMM"))]})]})})]})]}),(0,_.jsxs)("div",{className:"flex items-center",children:[(0,_.jsx)(a.default.Radio,{value:"monthly","data-testid":"create-report-weekly-radio",ariaLabel:(0,d.A)("Monthly")}),(0,_.jsxs)("div",{className:"ml-3",children:[(0,_.jsx)(i.default,{preset:"formSectionTitle",children:(0,d.A)("Monthly")}),(0,_.jsx)(i.default,{preset:"formSectionSubTitle",children:(0,_.jsxs)(_.Fragment,{children:[(0,d.A)("Receive a report on the first Monday of each month -")," ",(0,_.jsxs)("b",{children:[(0,d.A)("next scheduled report")," ",function(){for(var e=new Date,t=(0,v.w)(e),n=(0,x.P)(t);1!==n;)t.setDate(t.getDate()+1),n=(0,x.P)(t);if((0,b.Y)(e,t))return(0,h.GP)(t,"do MMMM");for(var r=(0,v.w)((0,y.P)(e,1)),o=(0,x.P)(r);1!==o;)r.setDate(r.getDate()+1),o=(0,x.P)(r);return(0,h.GP)(r,"do MMMM")}()]})]})})]})]})]})]})]}),(0,_.jsxs)("div",{className:"flex justify-end mt-12",children:[(0,_.jsx)(o.default,{"data-testid":"cancel-create-report-button",preset:"outline",className:"mr-3",onClick:function(){n()},children:(0,d.A)("Cancel")}),(0,_.jsx)(o.default,{"data-testid":"confirm-create-report-button",type:"submit",disabled:!G(I)&&3===C.template_id,children:(0,d.A)("Confirm")})]})]})]})}k.propTypes={onClose:m().func.isRequired};const E=k},70487:(e,t,n)=>{"use strict";e.exports=n.p+"174f48533e33a7c87e2a.svg"},70551:(e,t,n)=>{"use strict";n.d(t,{A:()=>u}),n(14041);var r=n(27333),o=n(88133),a=n(97475),i=n(89748),l=n(24284),s=n(5667),c=n(31085);const u=function(){var e=(0,a.jE)(),t=(0,r.R7)({sortKey:"updated_at"}),n=t.filters,u=t.handlePagination,d=t.setFilters,f=t.handleSort,p=(0,r.st)("/ip/whitelist",n,function(e){return null!=e&&e["ip_address.startsWith"]?"&ip_address=".concat(encodeURIComponent(e["ip_address.startsWith"])):""}),m=p.data,g=p.isLoading,y=(0,o.gC)("/ip/whitelist","POST");return(0,c.jsx)(s.A,{onFilterChange:d,data:null==m?void 0:m.result,isLoading:g,filters:n,handlePagination:u,handleRemoveIps:function(t){y.mutate({_method:"DELETE",items:t},{onSuccess:function(){e.getQueryCache().findAll().forEach(function(t){e.invalidateQueries(t.queryKey)}),(0,l.A)((0,i.A)("Whitelist IP removal was successful"),"success")},onError:function(){(0,l.A)((0,i.A)("Something went wrong!"),"error")}})},isRemovingIp:y.isLoading,handleSort:f})}},70860:(e,t,n)=>{"use strict";n.d(t,{A:()=>h}),n(14041);var r=n(88133),o=n(97475),a=n(89748),i=n(80111),l=n(36549),s=n(24284),c=n(43746),u=n(31085);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const h=function(){var e=g((0,l.A)(),1)[0],t=g((0,i.A)(),1)[0],n=(0,o.jE)(),d=20,f=1;function m(){var e,r;n.invalidateQueries("/oauth/tokens/meta/list?df_dmin=".concat(null==t||null===(e=t.dataFilterDates)||void 0===e||null===(e=e.min)||void 0===e?void 0:e.timestamp,"&df_dmax=").concat(null==t||null===(r=t.dataFilterDates)||void 0===r||null===(r=r.max)||void 0===r?void 0:r.timestamp,"&page=").concat(f,"&limit=").concat(d))}var y=(0,r.gC)("/tokens/aw/upsert","POST"),h=(0,r.gC)("/meta/tokens/delete","POST"),x=(0,r.gC)("/meta/tokens/deprecate","POST");return(0,u.jsx)(c.A,{handleRemoveToken:function(e){h.mutate(p({},e),{onSuccess:function(){(0,s.A)("The token was deleted successfully","success"),m()},onError:function(){(0,s.A)((0,a.A)("Something went wrong!"),"error")}})},isRemovingToken:h.isLoading,handleAddToken:function(t){var n,r=t;r.account_id=(null==e||null===(n=e.account)||void 0===n?void 0:n.id)||null,y.mutate(p({_method:"POST"},r),{onSuccess:function(){(0,s.A)("The token was added successfully","success")},onError:function(){(0,s.A)((0,a.A)("Something went wrong!"),"error")}})},isAddingToken:y.isLoading,isDeprecatingToken:!!x.isLoading,handleDeprecateToken:function(e){x.mutate(p({},e),{onSuccess:function(){(0,s.A)((0,a.A)("The token was deprecated successfully"),"success"),m()},onError:function(){(0,s.A)((0,a.A)("Something went wrong!"),"error")}})}})}},70863:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(14041),o=n(9260),a=n(62720),i=n(55618),l=n(89748),s=n(93033),c=n(62161),u=n(27333),d=n(36549),f=n(29907),p=n(95120),m=n(31085);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const h=function(e){var t,n,y,h=e.sidebarIsOpen,x=e.setSidebarIsOpen,b=g((0,d.A)(),1)[0],v=g((0,r.useState)(null==b?void 0:b.user.email),2),A=v[0],_=v[1],S=(0,u.R7)(),w=S.filters,O=S.handlePagination,j=(0,u.st)("/ngram/customers_list",w),k=j.data,E=j.isLoading;return(0,m.jsxs)(i.default,{open:h,onClose:function(){return x(!1)},heading:(0,l.A)("PMax N-Grams Finder (Powered by Opteo)"),children:[(0,m.jsx)(s.A,{roles:["MANAGER","EDITOR","USER"],children:(0,l.A)("If some accounts aren't connected, please speak to your admin user.")}),(0,m.jsx)(s.A,{roles:["ADMIN","ROOT"],AND:h,children:(0,m.jsx)(p.A,{})}),(0,m.jsxs)("div",{className:"mt-6",children:[(0,m.jsx)(a.default,{label:(0,l.A)("Email"),value:A,onFormValue:function(e){var t=e.value;return _(t)},className:"mb-4"}),(0,m.jsx)(c.A,{rows:null==k||null===(t=k.result)||void 0===t?void 0:t.data,isLoading:E,totalPages:null==k||null===(n=k.result)||void 0===n||null===(n=n.pagination)||void 0===n?void 0:n.last_page,totalItems:null==k||null===(y=k.result)||void 0===y||null===(y=y.pagination)||void 0===y?void 0:y.total,pageNumber:w.page,handlePagination:O,limit:w.limit,noDataTitle:(0,l.A)("No accounts found"),noDataSubTitle:(0,l.A)("No accounts are connected to Lunio"),noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("th",{children:(0,l.A)("Account ID")}),(0,m.jsx)("th",{children:(0,l.A)("Account Name")}
2),(0,m.jsx)("th",{})]})}),(0,m.jsxs)("tbody",{children:[(0,m.jsx)("td",{children:null==e?void 0:e.aw_id}),(0,m.jsx)("td",{children:null==e?void 0:e.descriptive_name}),(0,m.jsxs)("td",{className:"text-right",children:[(null==e?void 0:e.opteo_api_key)&&(0,m.jsx)(f.A,{email:A,awId:null==e?void 0:e.aw_id}),!(null!=e&&e.opteo_api_key)&&(0,m.jsx)(o.default,{disabled:!0,children:(0,l.A)("Unlinked")})]})]})]})}})]}),(0,m.jsx)("div",{className:"text-right mt-4",children:(0,m.jsx)(o.default,{preset:"outline",onClick:function(){return x(!1)},"data-testid":"cancel-workspace-button",children:(0,l.A)("Close")})})]})}},71027:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(46108),o=n.n(r);function a(e){return o()(e)}},71421:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(62720),s=n(1781),c=n(55618),u=n(30021),d=n(55436),f=n(28426),p=n(27805),m=n(50324),g=n(73657),y=n(89748),h=n(62161),x=n(99018),b=n(88133),v=n(93033),A=n(31085);function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var S=(0,x.createUseStyles)(function(e){return{alignRight:{paddingRight:e.spacing[10],textAlign:"right"}}});function w(e){var t,n,o,a,x,w,O,j,k,E=e.initialFormValues,N=e.onWorkspaceCreate,I=(0,b.Ay)("/workspaces"),P=I.data,T=I.isLoading,C=S(),R=(j=(0,r.useState)(!1),k=2,function(e){if(Array.isArray(e))return e}(j)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(j,k)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(j,k)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),M=R[0],L=R[1];return(0,A.jsxs)(f.A.Page,{type:"settings",children:[(0,A.jsx)(p.default,{type:"settings",title:(0,y.A)("Workspaces"),text:(0,y.A)("Group your accounts together into workspaces to easily view data for related accounts and websites"),contentRight:(0,A.jsx)(v.A,{accountRoles:["ROOT","ADMIN"],children:(0,A.jsx)(s.default,{type:(null==P||null===(t=P.result)||void 0===t||null===(t=t.workspaces)||void 0===t?void 0:t.length)>=100?"error":"info",heading:(null==P||null===(n=P.result)||void 0===n||null===(n=n.workspaces)||void 0===n?void 0:n.length)>=100?(0,y.A)("Workspace Limit Reached"):null,content:(null==P||null===(o=P.result)||void 0===o||null===(o=o.workspaces)||void 0===o?void 0:o.length)>=100?(0,y.A)("You have reached your limit of 100 workspaces."):(0,y.A)("Create a new workspace"),children:(0,A.jsx)(i.default,{onClick:function(){return L(!0)},disabled:(null==P||null===(a=P.result)||void 0===a||null===(a=a.workspaces)||void 0===a?void 0:a.length)>=100,"data-testid":"addWorkspaceButton",children:"Add Workspace"})})})}),(0,A.jsxs)(d.default,{loading:T,className:"mt-4",preset:"dark",size:"responsive",children:[0===(null==P||null===(x=P.result)||void 0===x||null===(x=x.workspaces)||void 0===x?void 0:x.length)&&(0,A.jsx)("div",{className:"",children:(0,A.jsx)(u.default,{preset:"pageHeading",className:"mb-4",children:(0,y.A)("Add a workspace to get started.")})}),(null==P||null===(w=P.result)||void 0===w||null===(w=w.workspaces)||void 0===w?void 0:w.length)>0&&(0,A.jsx)(h.A,{isLoading:!1,rows:null==P||null===(O=P.result)||void 0===O?void 0:O.workspaces,noDataTitle:(0,y.A)("No Workspaces found"),noDataSubTitle:(0,y.A)("Click on the add button to create your first workspace"),noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{children:(0,y.A)("Name")}
2),(0,A.jsx)("th",{"data-align":"right",children:(0,y.A)("Manage Workspace")})]})}),(0,A.jsxs)("tbody",{children:[(0,A.jsx)("td",{children:null==e?void 0:e.name}),(0,A.jsx)("td",{"data-align":"right",children:(0,A.jsx)(s.default,{content:(0,y.A)("Edit Workspace"),children:(0,A.jsx)(i.default,{as:g.Link,id:"edit-workspace-button-".concat(null==e?void 0:e.id),"data-testid":"edit-workspace-button-".concat(null==e?void 0:e.id),preset:"outline",size:"sm",className:C.button,to:"/workspace-settings/workspace/".concat(null==e?void 0:e.id,"/general"),"aria-label":(0,y.A)("Edit Workspace"),iconLeft:"far fa-pencil"})})})]})]})}})]}),(0,A.jsx)(v.A,{accountRoles:["ROOT","ADMIN"],children:(0,A.jsx)(c.default,{open:M,onClose:function(){return L(!1)},heading:(0,y.A)("Create Workspace"),subtitle:(0,y.A)("Create a new workspace to organize your data."),children:(0,A.jsxs)(m.A,{initialFormValues:E,onFormSubmit:N,children:[(0,A.jsx)(l.default,{label:(0,y.A)("Workspace name"),name:"workspace_name",type:"text","data-testid":"workspaceName",required:!0}),(0,A.jsxs)("div",{className:"h-align-right mt-4",children:[(0,A.jsx)(i.default,{preset:"outline",onClick:function(){return L(!1)},"data-testid":"cancel-workspace-button",children:(0,y.A)("Cancel")}),(0,A.jsx)(i.default,{type:"submit",preset:"primary","data-testid":"createWorkspaceButton",className:"ml-3",children:(0,y.A)("Create Workspace")})]})]})})})]})}w.propTypes={initialFormValues:a().object.isRequired,onWorkspaceCreate:a().func.isRequired};const O=w},71452:(e,t,n)=>{"use strict";e.exports=n.p+"f07dc69a1a879cb2246a.svg"},71509:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(14041),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),s=n(86957),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,a.default)(".position-x1n2onr6{position:relative}",3e3);var m=[s.colourValues.error900,s.colourValues.error800,s.colourValues.error700,s.colourValues.error600,s.colourValues.error500,s.colourValues.error400,s.colourValues.error300,s.colourValues.error200,s.colourValues.error100,s.colourValues.error50,s.colourValues.error25];t.A=function(e){var t=e.data,n=e.colors,r=void 0===n?m:n,o=(0,i.useRef)(null);return(0,i.useEffect)(function(){var e;l.select(o.current).selectAll("*").remove();var n=l.select(o.current),a=+n.node().getBoundingClientRect().width-100-20,i=60*t.length;n.attr("height",i+20+20);var s=n.append("g").attr("transform","translate(".concat(100,",").concat(20,")")),c=l.scaleBand().domain(t.map(function(e){return e.name})).range([0,i]).paddingInner(.5).paddingOuter(.25),u=l.scaleLinear().domain([0,1.1*(null!==(e=l.max(t,function(e){return e.value}))&&void 0!==e?e:0)]).range([0,a]),d=l.scaleOrdinal().domain(t.map(function(e){return e.name})).range(r);s.selectAll("rect").data(t).join("rect").attr("y",function(e){var t;return null!==(t=c(e.name))&&void 0!==t?t:0}).attr("x",0).attr("height",c.bandwidth()).attr("width",function(e){return u(e.value)}).attr("fill",function(e){return d(e.name)});var f=s.append("g").call(l.axisLeft(c).tickSize(0)),p=s.append("g").attr("transform","translate(0,".concat(i,")")).call(l.axisBottom(u).ticks(4).tickFormat(l.format("~s")));f.selectAll("g.tick").select("text").style("text-anchor","end").attr("x",-15).style("font-size","12px").style("font-weight",400),p.selectAll("g.tick").select("text").style("font-size","12px").style("font-weight",400),f.select(".domain").remove(),f.selectAll(".tick line").remove(),p.select(".domain").remove(),p.selectAll(".tick line").remove()},[t]),(0,c.jsx)("div",f(f({},{className:"position-x1n2onr6","data-style-src":"Horizontal/index.tsx:7"}),{},{id:"horizontal-bars",children:(0,c.jsx)("svg",{ref:o,width:"100%",height:"300"})}))}},71748:(e,t,n)=>{"use strict";e.exports=n.p+"f8b65f67de2174704b50.svg"},71767:(e,t,n)=>{"use strict";e.exports=n.p+"56f679865b5a28a7948a.svg"},71837:(e,t,n)=>{"use strict";n.d(t,{A:()=>N}),n(14041);var r=n(46389),o=n(1781),a=n(62683),i=n(28426),l=n(23151),s=n(27805),c=n(89748),u=n(62161),d=n(36990),f=n(93033),p=n(99226),m=n(32354),g=n(35859),y=n(19863),h=n(52356),x=n(73657),b=n(96182),v=n(98536),A=n(68022),_=n(92523),S=n(31085);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?O(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e,t,n){return(t=function(e){var t=function(e){if("object"!=w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==w(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const N=function(){var e,t,n=(e=(0,b.A)(),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],w="TRIAL"===(0,p.A)().lunioStatus,O=[{label:(0,c.A)("Campaign Name"),name:"name",type:"radio",queryKey:"name",queryTranslator:"textSearch",options:[{label:(0,c.A)("Contains"),name:"contains",type:"text"}]},{label:(0,c.A)("Campaign ID"),name:"campaign_id",type:"radio",queryKey:"campaign_id",queryTranslator:"textSearch",accessControl:{platforms:["google"]},options:[{label:(0,c.A)("Contains"),name:"contains",type:"text"}]},{label:(0,c.A)("Campaign Type"),name:"campaignType",type:"checkbox",accessControl:{platforms:["google"]},queryTranslator:"arrayOfNames",queryKey:"type",options:[{label:(0,c.A)("Search"),shortLabel:(0,c.A)("Search"),type:"checkbox",name:"SEARCH",value:!1},{label:(0,c.A)("Display"),shortLabel:(0,c.A)("Display"),type:"checkbox",name:"DISPLAY",value:!1},{label:(0,c.A)("Video"),shortLabel:(0,c.A)("Video"),type:"checkbox",name:"VIDEO",value:!1},{label:(0,c.A)("Shopping"),shortLabel:(0,c.A)("Shopping"),type:"checkbox",name:"SHOPPING",value:!1},{label:(0,c.A)("PMax"),shortLabel:(0,c.A)("PMax"),type:"checkbox",name:"PERFORMANCE_MAX",value:!1},{label:(0,c.A)("Demand Gen"),shortLabel:(0,c.A)("Demand Gen"),type:"checkbox",name:"DEMAND_GEN",value:!1},{label:(0,c.A)("Local"),shortLabel:(0,c.A)("Local"),type:"checkbox",name:"LOCAL",value:!1},{label:(0,c.A)("Local Services"),shortLabel:(0,c.A)("Local Services"),type:"checkbox",name:"LOCAL_SERVICES",value:!1},{label:(0,c.A)("Travel"),shortLabel:(0,c.A)("Travel"),type:"checkbox",name:"TRAVEL",value:!1},{label:(0,c.A)("Discovery"),shortLabel:(0,c.A)("Discovery"),type:"checkbox",name:"DISCOVERY",value:!1},{label:(0,c.A)("Multi Channel"),shortLabel:(0,c.A)("Multi Channel"),type:"checkbox",name:"MULTI_CHANNEL",value:!1},{label:(0,c.A)("Hotel"),shortLabel:(0,c.A)("Hotel"),type:"checkbox",name:"HOTEL",value:!1},{label:(0,c.A)("Smart"),shortLabel:(0,c.A)("Smart"),type:"checkbox",name:"SMART",value:!1},{label:(0,c.A)("Express"),shortLabel:(0,c.A)("Express"),type:"checkbox",name:"EXPRESS",value:!1}]},{label:(0,c.A)("Protection Status"),name:"protectionStatus",type:"checkbox",options:[{label:(0,c.A)("Include Protected"),shortLabel:(0,c.A)("Protected"),type:"checkbox",name:"include_protected",queryKey:"include_protected",value:!1},{label:(0,c.A)("Include Monitored"),shortLabel:(0,c.A)("Monitored"),type:"checkbox",name:"include_monitored",queryKey:"include_monitored",value:!1}]}],k=(0,v.useApi)({googleUrl:"/aw/campaigns-data",mplatUrl:"/platform/campaigns-data",responseDataKey:"data",googleSortKey:"name",mplatSortKey:"invalid",customQueryString:"&df_interval=day&min_clicks=1",filters:O});function N(e){return e?e.protection_status?e.protection_status:1===e.protection_enabled&&1===e.monitoring_enabled?2:0===e.protection_enabled&&1===e.monitoring_enabled?1:0:0}return(0,S.jsxs)(i.A.Page,{type:"main",children:[(0,S.jsx)(s.default,{title:(0,c.A)("Campaigns"),text:(0,c.A)("Explore all your active campaigns that received clicks during this period"),contentRight:(0,S.jsx)(A.A,{activeFilters:k.activeFilters,exportType:"campaigns"})}),(0,S.jsxs)("div",{className:"justify-between",children:[(0,S.jsx)(r.A,j(j({},k.filterConnector),{},{className:"mb-4"})),(0,S.jsx)(_.default,{})]}),(0,S.jsx)(u.A,j(j({},k.tableConnector),{},{className:"mb-4",leftPinnedColumns:1,groupColsBreakpoint:500,children:function(e){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("thead",{children:(0,S.jsxs)("tr",{children:[(0,S.jsx)("th",{"data-sortable-id":"name",children:(0,c.A)("Campaign Name")}),(0,S.jsx)(f.A,{platforms:["google"],children:(0,S.jsx)("th",{children:(0,c.A)("Campaign ID")})}),(0,S.jsx)(f.A,{platforms:["google"],children:(0,S.jsx)("th",{children:(0,c.A)("Account Name")}
2)}),(0,S.jsx)("th",{"data-tooltip":(0,c.A)("Shows whether Lunio is actively protecting or only monitoring this account or campaign."),children:(0,c.A)("Protection Status")}),(0,S.jsx)("th",{"data-sortable-id":"invalid","data-tooltip":(0,c.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,c.A)("SIVT Clicks")}),(0,S.jsx)("th",{"data-tooltip":(0,c.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,c.A)("Total IVT")}),(0,S.jsxs)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,c.A)("The percentage of total clicks Lunio has classified as invalid."),children:[(0,c.A)("SIVT Clicks")," ","%"]}),(0,S.jsx)("th",{"data-tooltip":(0,c.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,c.A)("Total IVT %")}),(0,S.jsx)("th",{"data-tooltip":(0,c.A)("The change in percentage between the selected date period and the equivalent previous period."),children:(0,c.A)("%pt Change")}),(0,S.jsx)(f.A,{AND:!w,children:(0,S.jsx)("th",{"data-testid":"givt","data-tooltip":(0,c.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,S.jsx)("div",{className:"flex align-items-center",children:(0,c.A)("GIVT Clicks")})})}),(0,S.jsx)("th",{"data-sortable-id":"activity","data-tooltip":(0,c.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,c.A)("Total Clicks")}),(0,S.jsx)("th",{"data-tooltip":(0,c.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,c.A)("All Tracked Clicks")}),(0,S.jsxs)("th",{"data-tooltip":"google"===n.selectedPlatform.platform_name?(0,c.A)("The average cost per click, based on platform-reported spend and total clicks."):null,children:["google"===n.selectedPlatform.platform_name&&(0,c.A)("Avg CPC"),"google"!==n.selectedPlatform.platform_name&&(0,S.jsx)(o.default,{heading:(0,c.A)("Self Defined CPC"),content:(0,c.A)("This value was manually set by a user of this workspace."),children:(0,c.A)("Self Defined CPC")}),(0,S.jsx)(d.A,{header:!0,groupedCols:!0,children:(0,S.jsx)(o.default,{content:(0,c.A)("Estimated based on our click data combined with your latest CPC values."),children:(0,c.A)("Approx Spend")})})]}),(0,S.jsx)("th",{"data-tooltip":(0,c.A)("Estimated spend after removing the cost of invalid clicks."),children:(0,c.A)("Adjusted Value")})]})}),(0,S.jsxs)("tbody",{children:[(0,S.jsxs)("td",{children:[!(null!=e&&e.cpn)&&(0,S.jsx)("span",{style:{wordBreak:"break-word"},children:(0,h.A)((0,m.A)(null==e?void 0:e.campaign_name,50),(0,c.A)("Unknown"))}),(null==e?void 0:e.cpn)&&(0,S.jsx)(x.Link,{to:"/campaign/".concat(null==e?void 0:e.cpn,"?name=").concat(encodeURIComponent((null==e?void 0:e.campaign_name)||""),"&status=").concat(N(e)),children:(0,S.jsx)("span",{style:{wordBreak:"break-word"},children:(0,h.A)((0,m.A)(null==e?void 0:e.campaign_name,50),(0,c.A)("Unknown"))})}),(0,S.jsxs)(d.A,{children:[String((null==e?void 0:e.ad_type)||"").replaceAll("_"," "),(null==e?void 0:e.status)&&(0,S.jsxs)(S.Fragment,{children:[" ","|"," ",null==e?void 0:e.status]})]})]}),(0,S.jsx)(f.A,{platforms:["google"],children:(0,S.jsx)("td",{children:null==e?void 0:e.cpn})}),(0,S.jsx)(f.A,{platforms:["google"],children:(0,S.jsx)("td",{children:null==e?void 0:e.customer_name})}),(0,S.jsx)("td",{children:(0,S.jsx)(a.A,{status:N(e)})}),(0,S.jsx)("td",{children:(0,y.m)((null==e?void 0:e.total_invalid)||0)}),(0,S.jsx)("td",{children:(0,y.m)((null==e?void 0:e.total_ivt)||0)}),(0,S.jsx)("td",{children:(0,y.m)("".concat(null==e?void 0:e.percent_invalid,"%")||0)}),(0,S.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,S.jsx)("td",{children:(0,S.jsx)(l.default,{number:String((null==e?void 0:e.percent_invalid_change)||"").replaceAll("-",""),direction:(t=null==e?void 0:e.percent_invalid_change,Number(t)>0?"up":Number(t)<0?"down":"right"),hideText:!0})}),!w&&(0,S.jsx)("td",{children:(0,y.m)(null==e?void 0:e.total_general_invalid)}),(0,S.jsx)("td",{children:(0,y.m)(null==e?void 0:e.total_clicks)}),(0,S.jsx)("td",{children:(0,y.m)(null==e?void 0:e.all_tracked_clicks)}),(0,S.jsxs)("td",{children:[(0,S.jsxs)("span",{children:[(0,g.A)(null==e?void 0:e.currency),(0,y.m)(null==e?void 0:e.avg_cpc,2)]}),(0,S.jsx)(d.A,{header:!0,groupedCols:!0,children:(0,S.jsxs)(o.default,{content:(0,c.A)("Estimated based on our click data combined with your latest CPC values."),children:[(0,g.A)(null==e?void 0:e.currency),(0,y.m)(Number(null==e?void 0:e.estimated_cost),2)]})})]}),(0,S.jsxs)("td",{children:[(0,g.A)(null==e?void 0:e.currency),(0,y.m)(Number(null==e?void 0:e.actual_value),2)]})]})]});var t}}))]})}},71855:(e,t,n)=>{"use strict";n.d(t,{A:()=>j}),n(14041);var r=n(1582),o=n(72686),a=n(55436),i=n(17419),l=n(28426),s=n(83405),c=n(96956),u=n(27805),d=n(89748),f=n(27333),p=n(19863),m=n(62161),g=n(96182),y=n(93033),h=n(99226),x=n(63615),b=n(89541),v=n(13497),A=n(31085);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const j=function(e){var t,n,_,j,k,E,N,I,P,T,C,R=e.filters,M=e.onFilterChange,L=e.handlePagination,D=e.handleSort,B="google"===(null===(t=(T=(0,g.A)(),C=1,function(e){if(Array.isArray(e))return e}(T)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(T,C)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(T,C)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].selectedPlatform)||void 0===t?void 0:t.platform_name),U="TRIAL"===(0,h.A)().lunioStatus,F=(0,f.st)("/analytics/fraud-stats/match",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},R)),G=F.data,W=F.isLoading,z=null==G||null===(n=G.result)||void 0===n?void 0:n.data.reduce(function(e,t){return e+Number(t.clicks_total)},0),V=null==G||null===(_=G.result)||void 0===_?void 0:_.data.reduce(function(e,t){return e+Number(t.clicks_fraudulent)},0),q=null==G||null===(j=G.result)||void 0===j?void 0:j.data.map(function(e){return{name:(0,x.A)(e.mt),value1:(0,p.o)(e.clicks_total,z),value2:(0,p.o)(e.clicks_fraudulent,V)}});return(0,A.jsxs)(l.A.Page,{type:"main",children:[(0,A.jsx)(u.default,{title:"".concat((0,d.A)("Ad Stats")," - ").concat((0,d.A)("Match Type")),text:(0,d.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,A.jsx)(v.A,{filters:R,exportType:B?"google_match_types":"mplat_match_types"})}),(0,A.jsx)(b.A,{filters:R,onFilterChange:M}),(0,A.jsx)(o.default,{children:(0,A.jsxs)("div",{className:"pt-6",children:[W&&(0,A.jsx)(a.default,{loading:!0,height:400,preset:"dark",size:"responsive"}),!W&&(null==G||null===(k=G.result)||void 0===k||null===(k=k.data)||void 0===k?void 0:k.length)>1&&(0,A.jsx)(r.default.GroupHorizontal,{data:q,titles:[(0,d.A)("% Total Clicks"),(0,d.A)("% SIVT Clicks")]}),!W&&(null==G||null===(E=G.result)||void 0===E||null===(E=E.data)||void 0===E?void 0:E.length)<2&&(0,A.jsx)(s.A,{title:(0,d.A)("Not enough data to display this chart"),hasNoData:!0,style:{height:"300px"}})]})}),(0,A.jsx)("div",{className:"mt-8"}),(0,A.jsx)(m.A,{rows:null==G||null===(N=G.result)||void 0===N?void 0:N.data,isLoading:W,totalPages:null==G||null===(I=G.result)||void 0===I||null===(I=I.pagination)||void 0===I?void 0:I.last_page,totalItems:null==G||null===(P=G.result)||void 0===P||null===(P=P.pagination)||void 0===P?void 0:P.total,pageNumber:R.page,handlePagination:L,handleSorting:D,limit:R.limit,sorting:{sortKey:R.sortKey,sortOrder:R.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{children:(0,d.A)("Match Type")}),(0,A.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,d.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,d.A)("Legitimate")}),(0,A.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,d.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,d.A)("Suspicious")}),(0,A.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,d.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,d.A)("SIVT Clicks")}),(0,A.jsx)(y.A,{AND:!U,children:(0,A.jsx)("th",{"data-testid":"givt","data-tooltip":(0,d.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,d.A)("GIVT Clicks")})}),(0,A.jsx)("th",{"data-tooltip":(0,d.A)("The total number of clicks Lunio has identified as invali
2d, including both GIVT and SIVT."),children:(0,d.A)("Total IVT")}),(0,A.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,d.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,d.A)("Total Clicks")}),(0,A.jsx)("th",{"data-tooltip":(0,d.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,d.A)("All Tracked Clicks")}),(0,A.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,d.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,d.A)("SIVT Clicks %")}),(0,A.jsx)("th",{"data-tooltip":(0,d.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,d.A)("Total IVT %")}),(0,A.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,d.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,d.A)("Health")})]})}),(0,A.jsxs)("tbody",{children:[(0,A.jsx)("td",{children:(0,x.A)(null==e?void 0:e.mt)}),(0,A.jsx)("td",{children:(0,A.jsx)(i.A,{type:"legitimate",size:"sm",textRight:(0,p.m)(null==e?void 0:e.clicks_protected)})}),(0,A.jsx)("td",{children:(0,A.jsx)(i.A,{type:"suspicious",size:"sm",textRight:(0,p.m)(null==e?void 0:e.clicks_suspicious)})}),(0,A.jsx)("td",{children:(0,A.jsx)(i.A,{type:"invalid",size:"sm",textRight:(0,p.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,A.jsx)(y.A,{AND:!U,children:(0,A.jsx)("td",{children:(0,p.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,A.jsx)("td",{children:(0,p.m)(null==e?void 0:e.total_ivt)}),(0,A.jsx)("td",{children:(0,p.m)(null==e?void 0:e.clicks_total)}),(0,A.jsx)("td",{children:(0,p.m)(null==e?void 0:e.all_tracked_clicks)}),(0,A.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,A.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,A.jsx)("td",{children:(0,A.jsx)(c.A,{health:null==e?void 0:e.health})})]})]})}})]})}},71893:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(14041),o=n(39067),a=n.n(o),i=n(62720),l=n(78806),s=n(39665),c=n(34406),u=n(80111),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function x(e){var t,n,o,a=e.className,f=void 0===a?null:a,p=e.maxRangeDays,h=void 0===p?0:p,x=e.onDatesChange,b=void 0===x?function(){}:x,v=e.ranges,A=void 0===v?["yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]:v,_=e.sharedDateRef,S=void 0===_?"ref":_,w=e.defaultRange,O=void 0===w?"1d":w,j=e.includeTodayInRange,k=void 0!==j&&j,E=y((0,u.A)(),2),N=E[0],I=E[1],P=(n=O.split("-")[0],o=i.default.DatePicker.getDateRange(n||O,k),O.includes("inc")?{startDate:o.min.date,endDate:(0,l.D)(new Date),selectedOption:"customRange"}:{startDate:o.min.date,endDate:o.max.date,selectedOption:O}),T=P.startDate,C=P.endDate,R=P.selectedOption;null!==(t=N["dataFilterDates-".concat(S)])&&void 0!==t&&null!==(t=t.min)&&void 0!==t&&t.localTimestamp&&(T=(0,s.a)(new Date(1e3*N["dataFilterDates-".concat(S)].min.localTimestamp)),C=(0,s.a)(new Date(1e3*N["dataFilterDates-".concat(S)].max.localTimestamp)),R=P.selectedOption);var M=y((0,r.useState)([T,C,R]),2),L=M[0],D=M[1];return(0,r.useEffect)(function(){I(m(m({},N),{},g({},"dataFilterDates-".concat(S),{interval:"day",min:{localTimestamp:Math.floor(L[0].valueOf()/1e3),timestamp:Math.floor((0,c.Ay)(L[0]).valueOf()/1e3),date:L[0]},max:{localTimestamp:Math.floor(L[1].valueOf()/1e3),timestamp:Math.floor((0,c.Ay)(L[1]).valueOf()/1e3),date:L[1]},preset:null,selected:L[2]}))),b({startDate:L[0],endDate:L[1],selectedOption:L[2]})},[L]),(0,d.jsx)("div",{"data-testid":"globalDates",className:f,children:(0,d.jsx)(i.default.DatePicker,{value:[T,C],onFormValue:function(e,t){return D([t[0],t[1],e])},selectedOption:L[2],maxRangeDays:h,ranges:A,includeTodayInRange:k})})}x.propTypes={className:a().string,maxRangeDays:a().number,onDatesChange:a().func,ranges:a().array,sharedDateRef:a().string,defaultRange:a().string,includeTodayInRange:a().bool};const b=x},71902:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(86957),s=n(60156),c=n(4386),u=n(31085);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var y=a.default;y(".display-x78zum5{display:flex}",3e3),y(".flexDirection-xdt5ytf{flex-direction:column}",3e3),y(".gap-x167g77z{gap:8px}",2e3),y(".fontWeight-x1s688f{font-weight:600}",3e3),y(".fontSize-xfifm61{font-size:12px}",3e3),y(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),y(".textTransform-xtvhhri{text-transform:uppercase}",3e3),y(".border-x8msmez{border:1px solid var(--gray250-x1kpk87u)}",1e3),y(".borderRadius-xur7f20{border-radius:8px}",2e3),y(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3),y(".overflow-xb3r6kr{overflow:hidden}",2e3),y(".display-xrvj5dj{display:grid}",3e3),y(".gridTemplateColumns-x2nqld2{grid-template-columns:120px 1fr}",3e3),y(".alignItems-x7a106z{align-items:start}",3e3),y(".columnGap-xtqikln{column-gap:12px}",3e3),y(".paddingTop-x889kno{padding-top:10px}",4e3),y(".paddingBottom-x1a8lsjc{padding-bottom:10px}",4e3),y(".paddingLeft-xf18ygs{padding-left:12px}",4e3),y(".paddingRight-xnuq7ks{padding-right:12px}",4e3),y(".borderTop-x1gfjj89{border-top:1px solid var(--gray250-x1kpk87u)}",2e3),y(".marginRight-x1yf7rl7{margin-right:0}",4e3),y(".flexWrap-x1a02dak{flex-wrap:wrap}",3e3),y(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),y(".fontWeight-xk50ysn{font-weight:500}",3e3),y(".borderRadius-xgqmno8{border-radius:16px}",2e3),y(".backgroundColor-x1itpvea{background-color:var(--oldBrand50-x1t4s9vw)}",3e3),y(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3),y(".alignItems-x6s0dn4{align-items:center}",3e3),y(".height-x17rw0jw{height:22px}",4e3),y(".fontSize-x1j6dyjg{font-size:11px}",3e3),y(".paddingLeft-x163pfp{padding-left:8px}",4e3),y(".paddingRight-xy13l1i{padding-right:8px}",4e3),y(".border-x1onvrke{border:1px solid var(--oldBrand300-x1eifvzy)}",1e3);var h={row:{display:"display-xrvj5dj",gridTemplateColumns:"gridTemplateColumns-x2nqld2",alignItems:"alignItems-x7a106z",columnGap:"columnGap-xtqikln",paddingTop:"paddingTop-x889kno",paddingBottom:"paddingBottom-x1a8lsjc",paddingLeft:"paddingLeft-xf18ygs",paddingRight:"paddingRight-xnuq7ks",$$css:"ActiveFiltersSummary/index.tsx:40"},rowDivider:{borderTop:"borderTop-x1gfjj89",$$css:"ActiveFiltersSummary/index.tsx:50"},filterLabel:{marginRight:"marginRight-x1yf7rl7",marginInlineStart:null,marginInlineEnd:null,textTransform:"textTransform-xtvhhri",$$css:"ActiveFiltersSummary/index.tsx:53"}};function x(e,t){return[{filterName:"date-range",filterLabel:(0,s.language)("Date Range"),valueText:t}].concat((n=function(e){return e.reduce(function(e,t){var n=function(e){var t;return(null!==(t=e.options)&&void 0!==t?t:[]).filter(function(e){var t;return!((t=e.validationErrors)&&"object"===g(t)&&Object.keys(t).length>0)&&("boolean"==typeof e.value?e.value:"string"==typeof e.value?e.value.trim().length>0:null!==e.value&&void 0!==e.value)})}(t);return 0===n.length||e.push({filterName:t.name,filterLabel:t.label,badges:n.map(function(e){return function(e){var t,n;return"boolean"==typeof e.value?null!==(n=e.shortLabel)&&void 0!==n?n:e.label:"string"==typeof e.value&&""!==e.value.trim()?e.value:"number"==typeof e.value?"".concat(e.value):null!==(t=e.shortLabel)&&void 0!==t?t:e.label}(e)})}),e},[])}(e),function(e){if(Array.isArray(e))return m(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));var n}function b(e){var t=x(e.filters,e.selectedDateRange),n=(0,c.getFilterTestId)("active-filters-summary","filter-panel");return(0,u.jsxs)("div",f(f({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-x167g77z","data-style-src":"ActiveFiltersSummary/index.tsx:21"}),{},{"data-testid":n,children:[(0,u.jsx)("span",f(f({},{className:"fontWeight-x1s688f fontSize-xfifm61 color-xd87uto textTransform-xtvhhri","data-style-src":"ActiveFiltersSummary/index.tsx:26"}),{},{"data-testid":"".concat(n,"-title"),children:(0,s.language)("Active Filters")})),(0,u.jsx)("div",f(f({},{className:"display-x78zum5 flexDirection-xdt5ytf border-x8msmez borderRadius-xur7f20 backgroundColor-x6fdw8f overflow-xb3r6kr","data-style-src":"ActiveFiltersSummary/index.tsx:32"}),{},{"data-testid":"".concat(n,"-grid"),children:t.map(function(e,t){var r;return(0,u.jsxs)("div",f(f({},i.props(h.row,t>0&&h.rowDivider)),{},{"data-testid":(0,c.getFilterTestId)(e.filterName,"".concat(n,"-row")),children:[(0,u.jsx)("span",f(f({},i.props(l.textStyles.filterPanelLabel,h.filterLabel)),{},{children:e.filterLabel})),e.valueText?(0,u.jsx)("span",f(f({},{className:"color-xbdn2ka fontSize-xfifm61 fontWeight-xk50ysn","data-style-src":"ActiveFiltersSummary/index.tsx:62"}),{},{"data-testid":(0,c.getFilterTestId)(e.filterName,"".concat(n,"-value")),children:e.valueText})):(0,u.jsx)("div",f(f({},{className:"display-x78zum5 flexWrap-x1a02dak gap-x167g77z","data-style-src":"ActiveFiltersSummary/index.tsx:57"}),{},{"data-testid":(0,c.getFilterTestId)(e.filterName,"".concat(n,"-badges")),children:null===(r=e.badges)||void 0===r?void 0:r.map(function(t){return(0,u.jsx)("div",f(f({},{className:"borderRadius-xgqmno8 backgroundColor-x1itpvea color-x14ptq3k dis
2play-x78zum5 alignItems-x6s0dn4 height-x17rw0jw fontWeight-xk50ysn fontSize-x1j6dyjg paddingLeft-x163pfp paddingRight-xy13l1i border-x1onvrke","data-style-src":"ActiveFiltersSummary/index.tsx:67"}),{},{"data-testid":(0,c.getFilterTestId)("".concat(e.filterName,"-").concat(t),"".concat(n,"-badge")),children:t}),"".concat(e.filterName,"-").concat(t))})}))]}),e.filterName)})}))]}))}b.displayName="ActiveFiltersSummary",t.default=b},72044:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(31085),s=a.default;s(".position-x1n2onr6{position:relative}",3e3),s(".padding-xggk2y7{padding:24px}",1e3),s(".paddingTop-x10lzpyj{padding-top:38px}",4e3),s(".paddingBottom-x13g9h81{padding-bottom:240px}",4e3);var c={overview:{position:"position-x1n2onr6",padding:"padding-xggk2y7",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:"paddingTop-x10lzpyj",paddingBottom:"paddingBottom-x13g9h81",$$css:"Page/index.tsx:5"},main:{position:"position-x1n2onr6",padding:"padding-xggk2y7",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:"Page/index.tsx:11"},settings:{position:"position-x1n2onr6",padding:"padding-xggk2y7",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:"Page/index.tsx:15"}};t.A=function(e){var t=e.className,n=e.children,r=void 0===n?null:n,o=e.type,a=void 0===o?"main":o,s=i.props(c[a]).className;return(0,l.jsx)("div",{className:t?"".concat(t," ").concat(s):s,children:r})}},72184:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(9260),s=n(13571),c=n(1781),u=n(28426),d=n(90405),f=n(27805),p=n(62161),m=n(36990),g=n(73657),y=n(11182),h=n(24284),x=n(52789),b=n(31085);function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e){var t=e.tokens,n=e.isLoading,o=e.isRemovingToken,a=e.handleRemoveToken,A=e.isDepreciatingToken,_=e.handleDeprecateToken,S=e.handleAddToken,w=v((0,y.A)(),1)[0],O=v((0,r.useState)(!1),2),j=O[0],k=O[1],E=v((0,r.useState)(null),2),N=E[0],I=E[1];function P(e){e.code?S(e):(0,h.A)((0,i.A)("Something went wrong while attempting to connect to your account. Please contact us using the chat widget in the bottom right."),"error")}function T(e){return o||A?{buttonState:"loading",statusTitle:"Loading",confirmationMessage:""}:null!=e&&e.is_deprecated?w.isImpersonating?{buttonState:"force-delete",statusTitle:0===(null==e?void 0:e.customer_count)?"Deprecated":"Deprecated ( has linked Accounts )",confirmationMessage:(0,i.A)("Are you sure you want to force delete this token?")}:0===(null==e?void 0:e.customer_count)?{buttonState:"delete",statusTitle:"Deprecated",confirmationMessage:(0,i.A)("Are you sure you want to delete this token?")}:{buttonState:"deprecated-with-linked-customers",statusTitle:"Deprecated ( has linked Accounts )",confirmationMessage:""}:{buttonState:"active",statusTitle:"Active",confirmationMessage:(0,i.A)("Are you sure you want to deprecate this token?")}}return(0,b.jsxs)(u.A.Page,{type:"settings",children:[(0,b.jsx)(f.default,{type:"settings",title:(0,i.A)("Google Token Settings"),text:(0,i.A)("See the platforms inside of your workspaces"),contentRight:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.default,{"data-testid":"addWorkspaceButton",iconRight:["far","circle-plus"],onClick:function(){return gapi.auth2.init({client_id:"913909931621-6arv3f58srlcekhb5
27059mongtthbefs.apps.googleusercontent.com",scope:"openid email profile https://www.googleapis.com/auth/adwords https://www.googleapis.com/auth/analytics.readonly"}),void gapi.auth2.getAuthInstance().grantOfflineAccess().then(P)},className:"mr-4",children:(0,i.A)("Add New Google Token")}),(0,b.jsx)(l.default,{iconRight:"chevron-right",as:g.Link,to:"/integrations-settings/integrations",preset:"link",children:(0,i.A)("Google Tracking Template")})]})}),(0,b.jsx)("div",{className:"mb-5 flex justify-end",children:(0,b.jsx)(x.A,{})}),(0,b.jsx)(p.A,{rows:t||[],isLoading:n,noDataTitle:(0,i.A)("No Google Tokens found"),noDataSubTitle:(0,i.A)("Click the add button to connect a google token"),noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:(0,i.A)("Platform")}),(0,b.jsxs)("th",{children:[(0,i.A)("Account Name"),(0,b.jsx)(m.A,{header:!0,children:(0,i.A)("Account Email")})]}),(0,b.jsx)("th",{children:(0,i.A)("Ad Accounts")}),(0,b.jsx)("th",{children:(0,i.A)("ID")}),(0,b.jsx)("th",{children:(0,i.A)("Status")}),(0,b.jsx)("th",{"data-align":"right",children:(0,i.A)("Action")})]})}),(0,b.jsxs)("tbody",{children:[(0,b.jsxs)("td",{"data-disabled":null==e?void 0:e.is_deprecated,children:[(0,b.jsx)(d.A,{platformName:"google",className:"float-left mr-4"}),"Google"]}),(0,b.jsxs)("td",{"data-disabled":null==e?void 0:e.is_deprecated,children:[null==e?void 0:e.token_user_name,(0,b.jsx)(m.A,{children:null==e?void 0:e.token_user_email})]}),(0,b.jsx)("td",{"data-disabled":null==e?void 0:e.is_deprecated,children:null==e?void 0:e.customer_count}),(0,b.jsx)("td",{"data-disabled":null==e?void 0:e.is_deprecated,children:null==e?void 0:e.id}),(0,b.jsx)("td",{"data-disabled":null==e?void 0:e.is_deprecated,children:T(e).statusTitle}),(0,b.jsxs)("td",{"data-align":"right",children:["active"===T(e).buttonState&&(0,b.jsx)(c.default,{content:(0,i.A)("Deprecate Token"),children:(0,b.jsx)(l.default,{"data-testid":"deprecateGoogleTokenButton",iconLeft:["far","circle-minus"],preset:"outline",size:"sm",onClick:function(){I(e),k(!0)},loading:A,disabled:A,role:"button","aria-label":(0,i.A)("Deprecate Token")})}),"delete"===T(e).buttonState&&(0,b.jsx)(c.default,{content:(0,i.A)("Delete token"),children:(0,b.jsx)(l.default,{"data-testid":"deleteGoogleTokenButton",iconLeft:["far","trash"],preset:"outline",size:"sm",onClick:function(){I(e),k(!0)},loading:o,disabled:o,role:"button","aria-label":(0,i.A)("Delete token")})}),"force-delete"===T(e).buttonState&&(0,b.jsx)(c.default,{content:(0,i.A)("Force delete token"),children:(0,b.jsx)(l.default,{"data-testid":"forceDeleteGoogleTokenButton",iconLeft:["far","trash"],preset:"outline",size:"sm",onClick:function(){I(e),k(!0)},loading:o,disabled:o,role:"button","aria-label":(0,i.A)("Force delete token")})})]})]})]})}}),(0,b.jsxs)(s.default,{open:j,onClose:function(){return k(!1)},children:[(0,b.jsx)(s.default.Header,{title:(0,i.A)("Do you want to continue?")}),(0,b.jsx)(s.default.Content,{children:T(N).confirmationMessage}),(0,b.jsxs)(s.default.Actions,{children:[(0,b.jsx)(l.default,{id:"cancel-deprecate-token-button",onClick:function(){I(null),k(!1)},preset:"outline",children:(0,i.A)("Cancel")}),(0,b.jsx)(l.default,{id:"confirm-deprecate-token-button","data-testid":"active"===T(N).buttonState?"confirm-deprecate-token-button":"confirm-delete-token-button",onClick:function(){return function(){if(N){if(null!=N&&N.is_deprecated){var e={id:N.id,force_delete:w.isImpersonating};a(e)}else!function(){if(N){var e={id:N.id};_(e),I(null),k(!1)}}();I(null),k(!1)}}()},children:(0,i.A)("Continue")})]})]})]})}_.propTypes={tokens:a().arrayOf(a().shape({id:a().string,token_user_name:a().string,token_user_email:a().string,customer_count:a().number})).isRequired,isLoading:a().bool.isRequired,isRemovingToken:a().bool.isRequired,handleRemoveToken:a().func.isRequired,handleAddToken:a().func.isRequired,isDepreciatingToken:a().bool.isRequired,handleDeprecateToken:a().func.isRequired};const S=_},72237:(e,t,n)=>{"use strict";e.exports=n.p+"be953ca717205bfc6643.svg"},72297:(e,t,n)=>{"use strict";e.exports=n.p+"ec63fcfa0745e7a52e1b.svg"},72358:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=p(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(60156),s=p(n(79135)),c=p(n(62720)),u=n(4386),d=p(n(36313)),f=n(31085);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b=o.default;b(".minWidth-x1d77m7x{min-width:140px}",4e3),b(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),b(".marginBottom-xat24cr{margin-bottom:0}",4e3),b(".marginTop-x1gslohp{margin-top:4px}",4e3),b(".color-x1iviald{color:var(--error600-x1indqeg)}",3e3),b(".fontSize-xfifm61{font-size:12px}",3e3),b(".fontWeight-xk50ysn{font-weight:500}",3e3);var v={minWidth:"minWidth-x1d77m7x",$$css:"InputDropdown/index.tsx:12"},A={color:"color-xd87uto",$$css:"InputDropdown/index.tsx:15"};function _(e,t){var n=null!=t?t:{},r=e.trim(),o={};if(n.required&&0===r.length&&(o.required=(0,l.language)("This field is required.")),r.length>0&&("number"==typeof n.minLength&&r.length<n.minLength&&(o.minLength=(0,l.language)("Minimum length is :minLength.",{minLength:String(n.minLength)})),"number"==typeof n.maxLength&&r.length>n.maxLength&&(o.maxLength=(0,l.language)("Maximum length is :maxLength.",{maxLength:String(n.maxLength)})),"number"===n.type&&Number.isNaN(Number(r))&&(o.type=(0,l.language)("Value must be a number.")),"text"!==n.type||Number.isNaN(Number(r))||(o.type=(0,l.language)("Value must be text."))),0!==Object.keys(o).length)return o}function S(e){var t,n,r,o,p,m,g,h=e.filter,b=e.setFilter,S=(m=(0,a.useState)(!1),g=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(m,g)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(m,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=S[0],O=S[1],j=(0,a.useRef)(null),k=(0,u.getFilterTestId)(null!==(t=h.label)&&void 0!==t?t:h.name),E=null===(n=h.options)||void 0===n?void 0:n[0],N=null!==(r=null!==(o=null==E?void 0:E.label)&&void 0!==o?o:h.label)&&void 0!==r?r:"Search",I=null==E?void 0:E.value,P="string"==typeof I?I:"".concat(null!=I?I:""),T="string"==typeof I?I.trim().length>0:Boolean(I),C=function(e,t,n){var r=_(e,n);return r?r.required?"".concat(t," ").concat((0,l.language)("is required.")):r.minLength&&"number"==typeof(null==n?void 0:n.minLength)?"".concat(t," ").concat((0,l.language)("must be at least :minLength characters.",{minLength:String(n.minLength)})):r.maxLength&&"number"==typeof(null==n?void 0:n.maxLength)?"".concat(t," ").concat((0,l.language)("must be no more than :maxLength characters.",{maxLength:String(n.maxLength)})):r.type&&"number"===(null==n?void 0:n.type)?"".concat(t," ").concat((0,l.language)("must be a number.")):r.type&&"text"===(null==n?void 0:n.type)?"".concat(t," ").concat((0,l.language)("must be text.")):"":""}(P,N,null==E?void 0:E.validation),R=C.length>0;function M(e){var t=e.target;j.current&&t instanceof Node&&!j.current.contains(t)&&O(!1)}R?p=d.default.errorButton:T&&(p=d.default.activeButton),(0,a.useEffect)(function(){return document.addEventListener("mousedown",M),function(){document.removeEventListener("mousedown",M)}},[]);var L=P||"";return(0,f.jsxs)("div",y(y({},i.props(d.default.container)),{},{ref:j,"data-testid":"".concat(k,"-container"),children:[(0,f.jsx)("div",{"data-testid":R?"".concat(k,"-error-container"):void 0,children:(0,f.jsxs)("button",y(y({type:"button"},i.props(d.default.button,v,p,w&&d.default.buttonOpen)),{},{onClick:function(){O(function(e){return!e})},"aria-haspopup":"true","aria-expanded":w,"data-testid":"".concat(k,"-trigger"),children:[(0,f.jsx)("span",y(y({},i.props(d.default.buttonLabel)),{},{children:h.label})),(0,f.jsx)("span",y(y({},i.props(d.default.selectedValue,A)),{},{children:L})),(0,f.jsxs)("span",y(y({},i.props(d.default.iconWrapper)),{},{children:[!w&&(0,f.jsx)(s.default,{name:"chevron-up"}),w&&(0,f.jsx)(s.default,{name:"chevron-down"})]}))]}))}),w&&(0,f.jsx)("div",y(y({},i.props(d.default.dropdown)),{},{"data-testid":"".concat(k,"-menu"),children:(0,f.jsxs)("div",y(y({},{className:"marginBottom-xat24cr","data-style-src":"InputDropdown/index.tsx:18"}),{},{children:[(0,f.jsx)(c.default,{size:"sm",placeholder:"Search...",value:P,onChange:function(e){var t,n,r,o=null!==(t=e.currentTarget.value)&&void 0!==t?t:"",a=null==E?void 0:E.validation,i=_(o,a),l=null!==(n=null===(r=h.options)||void 0===r?void 0:r.map(function(e,t){return 0===t?y(y({},e),{},{value:o,validationErrors:i}):e}))&&void 0!==n?n:[{name:"search",label:N,value:o,type:"text",validation:a,validationErrors:i}];b(y(y({},h),{},{options:l}))},iconLeft:"search","data-testid":"".concat(k,"-input")}),C&&(0,f.jsx)("div",y(y({},{className:"marginTop-x1gslohp color-x1iviald fontSize-xfifm61 fontWeight-xk50ysn","data-style-src":"InputDropdown/index.tsx:21"}),{},{"data-testid":"".concat(k,"-validation-error"),children:C}))]}))}))]}))}S.displayName="SearchedDropdown",t.A=S},72686:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(99018),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),s=n(86957),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var d=["as","children","className","disabled","noBorder","noPadding","status","labelText","backgroundColour","borderColour"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=a.default;g(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),g(".padding-x1tamke2{padding:16px}",1e3),g(".borderRadius-x1ltf28g{border-radius:var(--borderRadiusDefault-x1tdk2mt)}",2e3),g(".border-xem9r10{border:var(--borderDefault-x13dogfg)}",1e3),g(".position-x1n2onr6{position:relative}",3e3),g(".border-x1gs6z28{border:none}",1e3),g(".padding-x1717udv{padding:0}",1e3),g(".opacity-x197sbye{opacity:.6}",3e3),g(".borderLeft-x64sm5c{border-left:4px solid var(--error700-x1brey9)}",2e3),g(".borderLeft-xj0j7vg{border-left:4px solid var(--error100-x13jjcv4)}",2e3),g(".borderLeft-x1xha73k{border-left:4px solid var(--warning200-xgv5m4l)}",2e3),g(".borderLeft-xlypzqc{border-left:4px solid var(--success100-x14um8e)}",2e3),g(".borderLeft-xt9tq5z{border-left:4px solid var(--black200-xao0axe)}",2e3),g(".position-x10l6tqk{position:absolute}",3e3),g(".top-x13vifvy{top:0}",4e3),g(".right-x3m8u43{right:0}",4e3),g(".height-x17rw0jw{height:22px}",4e3),g(".paddingInline-xdqyycr{padding-inline:8px}",2e3),g(".borderBottomLeftRadius-xabvvm4{border-bottom-left-radius:8px}",4e3),g(".backgroundColor-xf6q9j8{background-color:var(--oldBrand100-x1o59ms7)}",3e3),g(".color-xb0o5a8{color:var(--oldBrand700-xx6j7i3)}",3e3),g(".fontSize-xfifm61{font-size:12px}",3e3),g(".fontWeight-xk50ysn{font-weight:500}",3e3),g(".display-x78zum5{display:flex}",3e3),g(".alignItems-x6s0dn4{align-items:center}",3e3),g(".justifyContent-xl56j7k{justify-content:center}",3e3),g(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3);var y={base:{backgroundColor:"backgroundColor-x18oya0d",padding:"padding-x1tamke2",borderRadius:"borderRadius-x1ltf28g",border:"border-xem9r10",position:"position-x1n2onr6",$$css:"Card/index.tsx:7"},noBorder:{border:"border-x1gs6z28",$$css:"Card/index.tsx:14"},noPadding:{padding:"padding-x1717udv",$$css:"Card/index.tsx:17"},disabled:{opacity:"opacity-x197sbye",$$css:"Card/index.tsx:20"},critical:{borderLeft:"borderLeft-x64sm5c",borderLeftWidth:null,borderInlineStartWidth:null,borderInlineEndWidth:null,borderLeftStyle:null,borderInlineStartStyle:null,borderInlineEndStyle:null,borderLeftColor:null,borderInlineStartColor:null,borderInlineEndColor:null,$$css:"Card/index.tsx:23"},high:{borderLeft:"borderLeft-xj0j7vg",borderLeftWidth:null,borderInlineStartWidth:null,borderInlineEndWidth:null,borderLeftStyle:null,borderInlineStartStyle:null,borderInlineEndStyle:null,borderLeftColor:null,borderInlineStartColor:null,borderInlineEndColor:null,$$css:"Card/index.tsx:26"},medium:{borderLeft:"borderLeft-x1xha73k",borderLeftWidth:null,borderInlineStartWidth:null,borderInlineEndWidth:null,borderLeftStyle:null,borderInlineStartStyle:null,borderInlineEndStyle:null,borderLeftColor:null,borderInlineStartColor:null,borderInlineEndColor:null,$$css:"Card/index.tsx:29"},low:{borderLeft:"borderLeft-xlypzqc",borderLeftWidth:null,borderInlineStartWidth:null,borderInlineEndWidth:null,borderLeftStyle:null,borderInlineStartStyle:null,borderInlineEndStyle:null,borderLeftColor:null,borderInlineStartColor:null,borderInlineEndColor:null,$$css:"Card/index.tsx:32"},optimization:{borderLeft:"borderLeft-xlypzqc",borderLeftWidth:null,borderInlineStartWidth:null,borderInlineEndWidth:null,borderLeftStyle:null,borderInlineStartStyle:null,borderInlineEndStyle:null,borderLeftColor:null,borderInlineStartColor:null,borderInlineEndColor:null,$$css:"Card/index.tsx:35"},info:{borderLeft:"borderLeft-xt9tq5z",borderLeftWidth:null,borderInlineStartWidth:null,borderInlineEndWidth:null,borderLeftStyle:null,borderInlineStartStyle:null,borderInlineEndStyle:null,borderLeftColor:null,borderInlineStartColor:null,borderInlineEndColor:null,$$css:"Card/index.tsx:41"}};
2function h(e){var t=e.as,n=void 0===t?"div":t,r=e.children,o=void 0===r?null:r,a=e.className,u=void 0===a?"":a,f=e.disabled,m=void 0!==f&&f,g=e.noBorder,h=void 0!==g&&g,x=e.noPadding,b=void 0!==x&&x,v=e.status,A=void 0===v?null:v,_=e.labelText,S=void 0===_?"":_,w=e.backgroundColour,O=e.borderColour,j=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d),k=n,E=function(e){return e?"critical"===e?y.critical:"high"===e?y.high:"medium"===e?y.medium:"low"===e?y.low:"optimization"===e||"optimisation"===e?y.optimization:y.info:null}(A),N=l.props(y.base,m&&y.disabled,h&&y.noBorder,b&&y.noPadding,E),I=N.className,P=p(p(p({},N.style),null!=w?{backgroundColor:s.colours[w]}:{}),null!=O?{borderColor:s.colours[O]}:{}),T=(0,i.classNames)(I,u);return(0,c.jsxs)(k,p(p({className:T,id:"nereid-card-component",style:P},j),{},{children:[S?(0,c.jsx)("div",p(p({},{className:"position-x10l6tqk top-x13vifvy right-x3m8u43 height-x17rw0jw paddingInline-xdqyycr borderBottomLeftRadius-xabvvm4 backgroundColor-xf6q9j8 color-xb0o5a8 fontSize-xfifm61 fontWeight-xk50ysn display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k whiteSpace-xuxw1ft","data-style-src":"Card/index.tsx:44"}),{},{children:S})):null,o]}))}h.displayName="Card",t.default=h},72727:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(34406),s=n(66773),c=n(47352),u=n(24284),d=n(78806),f=n(83223),p=n(44925),m=n(6616),g=n(39665),y=n(9260),h=n(62720),x=n(13571),b=n(30021),v=n(30556),A=n(88133),_=n(96182),S=n(77730),w=n(80111),O=n(71893),j=n(52693),k=n(31085);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n){return(t=function(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function R(e){var t,n,o,a,E=e.filters,N=void 0===E?{customerIds:[]}:E,P=T((0,S.A)(),1)[0],C=T((0,w.A)(),1)[0],R=T((0,r.useState)(!1),2),M=R[0],L=R[1],D=T((0,r.useState)(""),2),B=D[0],U=D[1],F=T((0,r.useState)([]),2),G=F[0],W=F[1],z=T((0,_.A)(),1)[0],V="clicks-log",q=T((0,r.useState)({startDate:(0,p.o)((0,m.j)(new Date,{days:30})),endDate:(0,d.D)((0,m.j)(new Date,{days:1}))}),2),K=q[0],H=q[1],Y=K.startDate,$=K.endDate;null!==(t=C["dataFilterDates-".concat(V)])&&void 0!==t&&null!==(t=t.min)&&void 0!==t&&t.localTimestamp&&(Y=(0,g.a)(new Date(1e3*C["dataFilterDates-".concat(V)].min.localTimestamp)),$=(0,g.a)(new Date(1e3*C["dataFilterDates-".concat(V)].max.localTimestamp)));var Z,X,J,Q,ee,te,ne=(0,A.gC)("/analytics/adclicks/export?workspace_context=".concat((0,c.A)(null==P||null===(n=P.selectedWorkspace)||void 0===n?void 0:n.id)),"POST");function re(e){var t,n,r,o,a,i,l,s,c;return!(null==e||null===(t=e.all)||void 0===t||!t.value)||!!(null!=e&&null!==(n=e.legitimate)&&void 0!==n&&n.value&&null!=e&&null!==(r=e.suspicious)&&void 0!==r&&r.value&&null!=e&&null!==(o=e.fraudulent)&&void 0!==o&&o.value&&null!=e&&null!==(a=e.givt)&&void 0!==a&&a.value)||!(null!=e&&null!==(i=e.legitimate)&&void 0!==i&&i.value||null!=e&&null!==(l=e.suspicious)&&void 0!==l&&l.value||null!=e&&null!==(s=e.fraudulent)&&void 0!==s&&s.value||null!=e&&null!==(c=e.givt)&&void 0!==c&&c.value)}return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(y.default,{id:"export-button-open",onClick:function(){return L(!0)},iconLeft:["far","download"],"data-testid":"export-button",children:(0,i.A)("Export")}),(0,k.jsxs)(x.default,{open:M,size:"md",onClose:function(){return L(!1)},children:[(0,k.jsx)(x.default.Header,{className:"text-center",title:(0,i.A)("Export")}),(0,k.jsx)(x.default.Content,{children:(0,k.jsxs)(v.default.Row,{children:[(0,k.jsxs)(v.default.Col,{children:[(0,k.jsxs)(b.default,{preset:"formSectionTitle",as:"h6",className:"mb-3",children:[(0,i.A)("You're exporting"),":"]}),(0,k.jsxs)(b.default,{preset:"sormSectionSubtitle",children:[(0,i.A)("Worksp
2ace"),":"]}),(0,k.jsx)(b.default,{preset:"formSectionSubText",className:"mb-3",children:null==P||null===(o=P.selectedWorkspace)||void 0===o?void 0:o.name}),(0,k.jsxs)(b.default,{preset:"sormSectionSubtitle",children:[(0,i.A)("Date range"),":"]}),(0,k.jsxs)(b.default,{preset:"formSectionSubText",className:"mb-3",children:[(0,f.GP)(Y,"dd/MM/yyyy")," ","-"," ",(0,f.GP)($,"dd/MM/yyyy")]}),(0,k.jsxs)(b.default,{preset:"sormSectionSubtitle",children:[(0,i.A)("Click type"),":"]}),(0,k.jsx)(b.default,{preset:"formSectionSubText",className:"mb-3",children:(Z=N.clickType,null!=Z&&null!==(X=Z.all)&&void 0!==X&&X.value?(0,i.A)("All"):null!=Z&&null!==(J=Z.legitimate)&&void 0!==J&&J.value?(0,i.A)("Legitimate"):null!=Z&&null!==(Q=Z.suspicious)&&void 0!==Q&&Q.value?(0,i.A)("Suspicious"):null!=Z&&null!==(ee=Z.fraudulent)&&void 0!==ee&&ee.value?(0,i.A)("SIVT"):null!=Z&&null!==(te=Z.givt)&&void 0!==te&&te.value?(0,i.A)("GIVT"):(0,i.A)("All"))}),(0,k.jsxs)(b.default,{children:[(0,i.A)("Accounts"),":"]}),(0,k.jsx)(b.default,{preset:"formSectionSubText",className:"mb-3",children:(0,j.A)(null===(a=N["accounts.selection"])||void 0===a?void 0:a.length)})]}),(0,k.jsxs)(v.default.Col,{children:[(0,k.jsxs)(b.default,{preset:"formSectionTitle",as:"h6",className:"mb-3",children:[(0,i.A)("Sending to"),":"]}),(0,k.jsx)(h.default,{label:(0,i.A)("Enter email address"),name:"recipient_email",type:"email",onFormValue:function(e){U(e.value)},id:"export-email-input",value:B,errors:G,showErrors:!0}),(0,k.jsxs)("div",{className:"mt-3",children:[(0,k.jsxs)(b.default,{preset:"formSectionTitle",as:"h6",className:"mb-3",children:[(0,i.A)("Date range"),":"]}),(0,k.jsx)(O.A,{onDatesChange:H,displayRangeText:!1,instanceId:"export-dates",ranges:["30d","7d","1d","customMonth","customRange"],defaultRange:"30d",sharedDateRef:V})]})]})]})}),(0,k.jsxs)(x.default.Actions,{children:[(0,k.jsx)(y.default,{id:"export-button-close",onClick:function(){L(!1)},className:"mr-2",preset:"outline","data-testid":"export-close-button",children:(0,i.A)("Cancel")}),(0,k.jsx)(y.default,{id:"export-button-submit",onClick:function(){return function(){var e,t,n,r,o,a,c,d,f,p,m=(0,s.A)("isEmail",B,(0,i.A)("Enter an email address"));if(m)W(m);else{W([]);var g=N["accounts.selection"]||[];ne.mutate(I(I(I({dmax:(0,l.YQ)($),dmin:(0,l.YQ)(Y),protected:!(null===(e=N.clickType)||void 0===e||null===(e=e.legitimate)||void 0===e||!e.value)||re(null==N?void 0:N.clickType),suspicious:!(null==N||null===(t=N.clickType)||void 0===t||null===(t=t.suspicious)||void 0===t||!t.value)||re(null==N?void 0:N.clickType),fraudulent:!(null==N||null===(n=N.clickType)||void 0===n||null===(n=n.fraudulent)||void 0===n||!n.value)||re(null==N?void 0:N.clickType),givt:!(null==N||null===(r=N.clickType)||void 0===r||null===(r=r.givt)||void 0===r||!r.value)||re(null==N?void 0:N.clickType)},g.length&&{customer_ids:g}),{},{recipient_email:B,type:"filtered",platform:null==z||null===(o=z.selectedPlatform)||void 0===o?void 0:o.platform_name}
2,!(null!=N&&null!==(a=N.inControlGroup)&&void 0!==a&&null!==(a=a.sampled)&&void 0!==a&&a.value||null!=N&&null!==(c=N.inControlGroup)&&void 0!==c&&null!==(c=c.nonSampled)&&void 0!==c&&c.value)||null!=N&&null!==(d=N.inControlGroup)&&void 0!==d&&null!==(d=d.sampled)&&void 0!==d&&d.value&&null!=N&&null!==(f=N.inControlGroup)&&void 0!==f&&null!==(f=f.nonSampled)&&void 0!==f&&f.value?{}:{in_control_group:null!=N&&null!==(p=N.inControlGroup)&&void 0!==p&&null!==(p=p.sampled)&&void 0!==p&&p.value?1:0}),{},{_method:"POST"}),{onSuccess:function(e){var t;(0,u.A)((0,i.A)(null==e||null===(t=e.data)||void 0===t?void 0:t.message),"success")},onError:function(){(0,u.A)((0,i.A)("Report failed to process"),"error")}}),L(!1)}}()},"data-testid":"export-submit-button",children:(0,i.A)("Export to CSV")})]})]})]})}R.propTypes={filters:a().object};const M=R},72748:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);const o=function(e){var t=[];return null!=e&&e.anomalous_ad_activity&&t.push({title:(0,r.A)("Abnormal ad activity"),description:(0,r.A)("Clicks and user agent behaviour for this IP on this account is well outside normal expected behaviour")}),null!=e&&e.anomalous_user_agents_detected&&t.push({title:(0,r.A)("Suspicious user agents"),description:(0,r.A)("We have detected suspicious or malicious user agent strings in requests from this IP")}),null!=e&&e.suspicious_ip_usage_type_detected&&t.push({title:(0,r.A)("Suspect IP usage type"),description:(0,r.A)("This IP behaves like a Data Center, Content Delivery Network, Or Search Engine Spider")}),null!=e&&e.labelled_invalid&&t.push({title:(0,r.A)("Labelled Invalid"),description:(0,r.A)("This IP has been labelled as invalid by our system")}),null!=e&&e.proxy_requests&&t.push({title:(0,r.A)("Proxy activity"),description:(0,r.A)("IP requests have been routed via 1 or more public IP addresses")}),null!=e&&e.nonpaid_traffic_detected&&t.push({title:(0,r.A)("No organic ad traffic detected"),description:(0,r.A)("IP has only interacted via paid ads, no organic web traffic detected for the period selected")}),null!=e&&e.reported_to_abuse_ip_db&&t.push({title:(0,r.A)("Reported to abuse database"),description:(0,r.A)("IP has been reported for abuse behaviour to 3rd Parties")}),null!=e&&e.waf_detected&&t.push({title:(0,r.A)("Firewall triggered"),description:(0,r.A)("IP has been detected using our general IVT firewall")}),t}},72779:(e,t,n)=>{"use strict";e.exports=n.p+"31b2f1d2d65cb295f232.svg"},72902:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(14041),o=n(62720),a=n(89748),i=n(34406),l=n(88133),s=n(40699),c=n(27333),u=n(32881),d=n(31085);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(){var e,t,n=f((0,r.useState)(o.default.DatePicker.getDateRange("30d")),2),p=n[0],m=n[1],g=(0,c.R7)(),y=g.filters,h=g.setFilters,x=(0,l.Ay)("/affiliates/clicks?df_dmin=".concat(Math.floor((0,i.Ay)(p.min.date).valueOf()/1e3),"&df_dmax=").concat(Math.floor((0,i.Ay)(p.max.date).valueOf()/1e3),"&limit=1").concat((t="",y["partner.contains"]&&(t+="&partner_contains=".concat(y["partner.contains"])),y["network.contains"]&&(t+="&network_contains=".concat(y["network.contains"])),y["campaign.contains"]&&(t+="&campaign_contains=".concat(y["campaign.contains"])),t),"&group_by=network&sortKey=network&platform=affiliate")),b=x.data,v=x.isLoading,A=null==b||null===(e=b.result)||void 0===e?void 0:e.overall,_=Object.entries((null==A?void 0:A.overall_invalid_labels_percent)||{}).map(function(e){var t=f(e,2),n=t[0],r=t[1];return{name:(0,s.T5)("analytics")[n]||n,value:r}});return(0,d.jsx)(u.A,{data:_,isLoading:v,setTime:m,time:p,title:(0,a.A)("Fraud Type"),filters:y,setFilters:h})}},72996:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=d(n(14041)),l=d(n(64746)),s=n(45365),c=n(86957),u=n(31085);function d(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;
2return(d=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=a.default;x(".display-x78zum5{display:flex}",3e3),x(".flexDirection-x1q0g3np{flex-direction:row}",3e3),x(".alignItems-x1cy8zhl{align-items:flex-start}",3e3),x(".position-x1n2onr6{position:relative}",3e3),x(".flex-x98rzlu{flex:1}",2e3),x(".flexDirection-xdt5ytf{flex-direction:column}",3e3),x(".alignItems-x6s0dn4{align-items:center}",3e3),x(".fontSize-xfifm61{font-size:12px}",3e3),x(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),x(".overflow-xb3r6kr{overflow:hidden}",2e3),x(".textOverflow-xlyipyv{text-overflow:ellipsis}",3e3),x(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),x(".position-x10l6tqk{position:absolute}",3e3),x(".transform-xo88s9q{transform:translate(-50%,-100%)}",3e3),x(".background-x1h3gynt{background:var(--white-x3n8fk9)}",1e3),x(".paddingTop-x1yrsyyn{padding-top:6px}",4e3),x(".paddingBottom-x10b6aqq{padding-bottom:6px}",4e3),x(".paddingLeft-x163pfp{padding-left:8px}",4e3),x(".paddingRight-xy13l1i{padding-right:8px}",4e3),x(".borderRadius-x12oqio5{border-radius:4px}",2e3),x(".pointerEvents-x47corl{pointer-events:none}",3e3),x(".maxWidth-x1racy4e{max-width:220px}",4e3),x(".textAlign-xdpxx8g{text-align:left}",3e3),x(".zIndex-x1n327nk{z-index:10}",3e3),x(".borderWidth-xmkeg23{border-width:1px}",2e3),x(".borderStyle-x1y0btm7{border-style:solid}",2e3),x(".borderColor-x1703uup{border-color:var(--gray100-x1llswo5)}",2e3),x(".fontWeight-x1s688f{font-weight:600}",3e3),x(".marginBottom-x12nagc{margin-bottom:4px}",4e3),x(".top-x13vifvy{top:0}",4e3),x(".transform-xuuh30{transform:translateX(-50%)}",3e3),x(".fontSize-x1k6wstc{font-size:10px}",3e3),x(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),x(".cursor-xt0e3qv{cursor:default}",3e3),x(".height-xxk0z11{height:24px}",4e3),x(".marginTop-x1gslohp{margin-top:4px}",4e3),x(".width-x76zr16{width:94%}",4e3),t.A=function(e){var t,n,r=e.data,o=e.width,a=void 0===o?600:o,d=e.barHeight,f=void 0===d?16:d,p=e.margin,g=void 0===p?{top:20,right:32,bottom:0,left:110}:p,h=e.isPercentage,x=void 0!==h&&h,b=i.useRef(null),v=y(i.useState(null),2),A=v[0],_=v[1],S=y(i.useState(null),2),w=S[0],O=S[1],j=f+40,k=g.top+g.bottom+r.length*j,E=l.max(r,function(e){return e.red+e.yellow+e.green})||0,N=l.scaleLinear().domain([0,E]).range([0,a-g.left-g.right]),I=l.scaleBand().domain(r.map(function(e){return e.label})).range([0,r.length*j]).padding(0),P={red:c.colourValues.error200,yellow:c.colourValues.warning100,green:c.colourValues.success200},T=N.ticks(5),C=y(N.range(),2),R=C[0],M=C[1]-R||1;
2function L(e){return e.toLocaleString()}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return e?e.length<=t?e:"".concat(e.slice(0,t-1),"â¦"):""}function B(){_(null),O(null)}return r&&0!==r.length?(0,u.jsxs)("div",m(m({ref:b},{className:"display-x78zum5 flexDirection-x1q0g3np alignItems-x1cy8zhl position-x1n2onr6","data-style-src":"HorizontalStacked/index.tsx:14"}),{},{children:[(0,u.jsx)("div",{style:{width:g.left,paddingTop:g.top,paddingBottom:g.bottom+10,boxSizing:"border-box"},children:r.map(function(e){return(0,u.jsx)("div",m(m({},{className:"display-x78zum5 alignItems-x6s0dn4 fontSize-xfifm61 color-x5tu7p5 overflow-xb3r6kr textOverflow-xlyipyv whiteSpace-xuxw1ft","data-style-src":"HorizontalStacked/index.tsx:26"}),{},{style:{height:j},children:null==e.label?"-":D(e.label,12)}),e.label)})}),(0,u.jsxs)("div",m(m({},{className:"position-x1n2onr6 flex-x98rzlu display-x78zum5 flexDirection-xdt5ytf","data-style-src":"HorizontalStacked/index.tsx:20"}),{},{children:[(0,u.jsx)("svg",{width:"100%",height:k,viewBox:"0 0 ".concat(a-g.left," ").concat(k),preserveAspectRatio:"none",children:(0,u.jsx)("g",{transform:"translate(0, ".concat(g.top,")"),children:r.map(function(e){var t=(I(e.label)||0)+(j-f)/2,n=N(e.red),r=N(e.yellow),o=N(e.green),a=0+n,i=a+r;return(0,u.jsxs)("g",m(m({transform:"translate(0, ".concat(t,")"),onMouseMove:function(t){return function(e,t){if(!b.current)return _(t),void O(null);var n=b.current.getBoundingClientRect(),r=e.clientX-n.left-g.left,o=e.clientY-n.top+g.top;_(t),O({x:r,y:o-50})}(t,e)},onMouseLeave:B},{className:"cursor-xt0e3qv","data-style-src":"HorizontalStacked/index.tsx:65"}),{},{children:[(0,u.jsx)("rect",{x:0,height:f,width:n,fill:P.red}),(0,u.jsx)("rect",{x:a,height:f,width:r,fill:P.yellow}),(0,u.jsx)("rect",{x:i,height:f,width:o,fill:P.green})]}),e.label)})})}),A&&w&&(0,u.jsxs)("div",m(m({},{className:"position-x10l6tqk transform-xo88s9q background-x1h3gynt paddingTop-x1yrsyyn paddingBottom-x10b6aqq paddingLeft-x163pfp paddingRight-xy13l1i borderRadius-x12oqio5 fontSize-xfifm61 pointerEvents-x47corl maxWidth-x1racy4e textAlign-xdpxx8g zIndex-x1n327nk borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x1703uup","data-style-src":"HorizontalStacked/index.tsx:35"}),{},{style:{left:w.x,top:w.y},children:[(0,u.jsx)("div",m(m({},{className:"fontWeight-x1s688f marginBottom-x12nagc","data-style-src":"HorizontalStacked/index.tsx:53"}),{},{title:null!==(t=A.label)&&void 0!==t?t:"-",children:null!==(n=A.label)&&void 0!==n?n:"-"})),(0,u.jsxs)("div",{children:["Invalid:"," ",L(A.red),x?"%":""]}),(0,u.jsxs)("div",{children:["Suspicious:"," ",L(A.yellow),x?"%":""]}),(0,u.jsxs)("div",{children:["Legitimate:"," ",L(A.green),x?"%":""]})]})),(0,u.jsx)("div",m(m({},{className:"position-x1n2onr6 height-xxk0z11 marginTop-x1gslohp width-x76zr16","data-style-src":"HorizontalStacked/index.tsx:68"}),{},{children:T.map(function(e){var t=(N(e)-R)/M*100;return(0,u.jsx)("div",m(m({},{className:"position-x10l6tqk top-x13vifvy transform-xuuh30 fontSize-x1k6wstc color-x1r9fet4 whiteSpace-xuxw1ft","data-style-src":"HorizontalStacked/index.tsx:57"}),{},{style:{left:"".concat(t,"%")},children:null==e?"-":"".concat(e.toLocaleString()).concat(x?"%":"")}),e)})}))]}))]})):(0,u.jsx)(s.NoData,{hasNoData:!0})}},73055:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(12784),o=n.n(r);function a(e,t){return o()(e,t)}}
2,73172:(e,t,n)=>{"use strict";n.d(t,{A:()=>u}),n(14041);var r=n(39067),o=n.n(r),a=n(28426),i=n(27805),l=n(51125),s=n(31085);function c(e){var t=e.data;return(0,s.jsxs)(a.A.Page,{type:"overview",children:[(0,s.jsx)(i.default,{type:"overview",title:"Carbon Emissions Tracking",text:"Track your end-to-end carbon emissions from invalid traffic across digital advertising channels and see how reducing your wasted spend also reduces wasted carbon."}),(0,s.jsx)(l.A,{data:t})]})}c.propTypes={data:o().object.isRequired};const u=c},73215:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var c=["className","name","id","size","disabled","onFormValue","value","label","labelAlign","subLabel","data-testid"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=a.default;p(".display-x78zum5{display:flex}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".gap-x167g77z{gap:8px}",2e3),p(".cursor-x1ypdohk{cursor:pointer}",3e3),p(".userSelect-x87ps6o{user-select:none}",3e3),p(".flexDirection-xdt5ytf{flex-direction:column}",3e3),p(".justifyContent-xl56j7k{justify-content:center}",3e3),p(".marginRight-x1wsuqlk{margin-right:12px}",4e3),p(".marginLeft-xet2fuk{margin-left:8px}",4e3),p(".paddingTop-xexx8yu{padding-top:0}",4e3),p(".fontSize-x1j61zf2{font-size:16px}",3e3),p(".fontWeight-xk50ysn{font-weight:500}",3e3),p(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),p(".display-x1s85apg{display:none}",3e3),p(".width-x14qfxbe{width:36px}",4e3),p(".height-x1qx5ct2{height:20px}",4e3),p(".borderRadius-x1e6avla{border-radius:999px}",2e3),p(".backgroundColor-xgji3v1{background-color:var(--gray300-x1xk3734)}",3e3),p(".position-x1n2onr6{position:relative}",3e3),p(".transition-x1d5hn2h{transition:background-color .05s ease}",2e3),p(".width-x187nhsf{width:44px}",4e3),p(".height-xxk0z11{height:24px}",4e3),p(".backgroundColor-x1orz65g{background-color:var(--oldBrand500-x1vnul6n)}",3e3),p(".width-x1xp8n7a{width:18px}",4e3),p(".height-xmix8c7{height:18px}",4e3),p(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),p(".position-x10l6tqk{position:absolute}
2",3e3),p(".top-xnfr1j{top:1px}",4e3),p(".left-xt9097p{left:1px}",4e3),p(".transition-x1sz3swl{transition:left .2s ease}",2e3),p(".width-x17z2i9w{width:22px}",4e3),p(".height-x17rw0jw{height:22px}",4e3),p(".left-xxozgar{left:17px}",4e3),p(".left-x18fqvpc{left:21px}",4e3),p(".backgroundColor-x1u8ybml{background-color:var(--gray400-x79zdqj)}",3e3),p(".pointerEvents-x47corl{pointer-events:none}",3e3),p(".fontWeight-xo1l8bm{font-weight:400}",3e3),p(".color-x75csi3{color:var(--black400-x1u7ngzx)}",3e3);var m={container:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",gap:"gap-x167g77z",cursor:"cursor-x1ypdohk",userSelect:"userSelect-x87ps6o",$$css:"Toggle/index.tsx:10"},trackMd:{width:"width-x14qfxbe",height:"height-x1qx5ct2",borderRadius:"borderRadius-x1e6avla",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"backgroundColor-xgji3v1",position:"position-x1n2onr6",transition:"transition-x1d5hn2h",transitionBehavior:null,transitionDelay:null,transitionDuration:null,transitionProperty:null,transitionTimingFunction:null,$$css:"Toggle/index.tsx:37"},trackLg:{width:"width-x187nhsf",height:"height-xxk0z11",borderRadius:"borderRadius-x1e6avla",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"backgroundColor-xgji3v1",position:"position-x1n2onr6",transition:"transition-x1d5hn2h",transitionBehavior:null,transitionDelay:null,transitionDuration:null,transitionProperty:null,transitionTimingFunction:null,$$css:"Toggle/index.tsx:45"},trackChecked:{backgroundColor:"backgroundColor-x1orz65g",$$css:"Toggle/index.tsx:53"},thumbMd:{width:"width-x1xp8n7a",height:"height-xmix8c7",backgroundColor:"backgroundColor-x18oya0d",borderRadius:"borderRadius-x1e6avla",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,position:"position-x10l6tqk",top:"top-xnfr1j",left:"left-xt9097p",insetInlineStart:null,insetInlineEnd:null,transition:"transition-x1sz3swl",transitionBehavior:null,transitionDelay:null,transitionDuration:null,transitionProperty:null,transitionTimingFunction:null,$$css:"Toggle/index.tsx:56"},thumbLg:{width:"width-x17z2i9w",height:"height-x17rw0jw",backgroundColor:"backgroundColor-x18oya0d",borderRadius:"borderRadius-x1e6avla",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,position:"position-x10l6tqk",top:"top-xnfr1j",left:"left-xt9097p",insetInlineStart:null,insetInlineEnd:null,transition:"transition-x1sz3swl",transitionBehavior:null,transitionDelay:null,transitionDuration:null,transitionProperty:null,transitionTimingFunction:null,$$css:"Toggle/index.tsx:66"},thumbCheckedMd:{left:"left-xxozgar",insetInlineStart:null,insetInlineEnd:null,$$css:"Toggle/index.tsx:76"},thumbCheckedLg:{left:"left-x18fqvpc",insetInlineStart:null,insetInlineEnd:null,$$css:"Toggle/index.tsx:79"},disabledBackground:{backgroundColor:"backgroundColor-xgji3v1",$$css:"Toggle/index.tsx:82"},disabledToggle:{backgroundColor:"backgroundColor-x1u8ybml",$$css:"Toggle/index.tsx:85"},disableClick:{pointerEvents:"pointerEvents-x47corl",$$css:"Toggle/index.tsx:88"}};function g(e){var t=e.className,n=e.name,r=void 0===n?"":n,o=e.id,a=e.size,s=void 0===a?"md":a,u=e.disabled,f=void 0!==u&&u,p=e.onFormValue,g=e.value,y=void 0!==g&&g,h=e.label,x=e.labelAlign,b=void 0===x?"right":x,v=e.subLabel,A=e["data-testid"],_=void 0===A?"":A,S=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c),w="lg"===s?m.trackLg:m.trackMd,O="lg"===s?m.thumbLg:m.thumbMd,j="lg"===s?m.thumbCheckedLg:m.thumbCheckedMd;return(0,l.jsxs)("div",d(d({},{className:"display-x78zum5 alignItems-x6s0dn4","data-style-src":"Toggle/index.tsx:6"}),{},{children:["left"===b&&h&&(0,l.jsxs)("div",d(d({},{className:"display-x78zum5 flexDirection-xdt5ytf justifyContent-xl56j7k marginRight-x1wsuqlk","data-style-src":"Toggle/index.tsx:17; Toggle/index.tsx:22"}),{},{children:[h&&(0,l.jsx)("span",d(d({},{className:"paddingTop-xexx8yu fontSize-x1j61zf2 fontWeight-xk50ysn color-x1jsblnb","data-style-src":"Toggle/index.tsx:28"}),{},{"data-testid":"toggle-switch-label-left",children:h})),v&&(0,l.jsx)("div",d(d({},{className:"paddingTop-xexx8yu fontSize-x1j61zf2 fontWeight-xo1l8bm color-x75csi3","data-style-src":"Toggle/index.tsx:28; Toggle/index.tsx:91"}),{},{"data-testid":"toggle-switch-sublabel-left",children:v}))]})),(0,l.jsx)("div",{children:(0,l.jsxs)("label",d(d({htmlFor:o||r,className:t},i.props(m.container,f&&m.disableClick)),{},{"data-testid":"toggle-switch",children:[(0,l.jsx)("input",d(d({id:o||r,"data-testid":_||o||r,type:"checkbox",checked:y,onChange:function(e){p&&!f&&p({name:r,value:e.target.checked})}},{className:"display-x1s85apg","data-style-src":"Toggle/index.tsx:34"}),S)),(0,l.jsx)("div",d(d({role:"switch","aria-checked":y,"aria-label":null!=h?h:"Toggle switch"}
2,i.props(w,y&&m.trackChecked,f&&m.disabledBackground,f&&m.disableClick)),{},{"data-testid":"toggle-switch-track",children:(0,l.jsx)("div",d(d({},i.props(O,y&&j,f&&m.disabledToggle)),{},{"data-testid":"toggle-switch-thumb"}))}))]}))}),"right"===b&&h&&(0,l.jsxs)("div",d(d({},{className:"display-x78zum5 flexDirection-xdt5ytf justifyContent-xl56j7k marginLeft-xet2fuk","data-style-src":"Toggle/index.tsx:17; Toggle/index.tsx:25"}),{},{children:[h&&(0,l.jsx)("span",d(d({},{className:"paddingTop-xexx8yu fontSize-x1j61zf2 fontWeight-xk50ysn color-x1jsblnb","data-style-src":"Toggle/index.tsx:28"}),{},{"data-testid":"toggleLabel",children:h})),v&&(0,l.jsx)("div",d(d({},{className:"paddingTop-xexx8yu fontSize-x1j61zf2 fontWeight-xo1l8bm color-x75csi3","data-style-src":"Toggle/index.tsx:28; Toggle/index.tsx:91"}),{},{"data-testid":"toggle-switch-sublabel-right",children:v}))]}))]}))}g.displayName="Input.Toggle",t.default=g},73238:(e,t,n)=>{"use strict";e.exports=n.p+"404ed06955958fd51709.svg"},73544:(e,t,n)=>{"use strict";e.exports=n.p+"1fb28e709e07989c5b8a.svg"},73618:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(14041),o=n(39067),a=n.n(o),i=n(99018),l=n(93033),s=n(11094),c=n(91612),u=n(51624),d=n(30021),f=n(55436),p=n(32998),m=n(89748),g=n(51836),y=n(65349),h=n(49714),x=n(64534),b=n(85981),v=n(96182),A=n(77730),_=n(11182),S=n(36549),w=n(68236),O=n(28389),j=n(67045),k=n(98802),E=n(31085);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T(e,t,n){return(t=function(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var M=(0,i.createUseStyles)(function(e){return{main:{position:"relative",zIndex:100,height:"100vh",width:"100vw",overflow:"hidden"},topBarContainer:{position:"relative",width:function(e){var t=e.sidebarWidth;return"calc(100% - ".concat(t,"px)")},height:function(e){return e.showTopBar?76:"0px"},marginLeft:function(e){return e.sidebarWidth},zIndex:200},sideBarContainer:{position:"absolute",zIndex:100,height:"calc(100% - 76px)",width:function(e){return e.sidebarWidth+3},top:76,left:0},pageContainer:{marginLeft:function(e){return e.sidebarWidth},height:"calc(100% - 76px)",overflow:"auto",marginTop:0},noTopBarPage:{marginTop:0,height:"100%"},loadUpPage:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",backgroundColor:"black"},"@global body":{backgroundColor:(0,i.findColour)(e,"grey",50)},tag:{display:"inline-block",borderRadius:4,padding:"2px 6px",backgroundColor:(0,i.findColour)(e,"purple",200),color:(0,i.findColour)(e,"purple",700),fontWeight:600},logo:{width:120,marginBottom:22},logoMobile:{width:53,marginBottom:22},bottomMenuSection:{display:"flex",flexDirection:"column",justifyContent:"space-between",flexGrow:1,width:"100%",marginBottom:0,"& > div:first-child":{marginTop:"auto"}}}});function L(e){var t,n,o,a,i,N=e.noPlatformSelector,I=void 0!==N&&N,T=C((0,S.A)(),2),R=T[0],L=T[1],D=C((0,A.A)(),1)[0],B=C((0,v.A)(),1)[0],U=(null==B||null===(t=B.selectedPlatform)||void 0===t?void 0:t.platform_name)||"",F=C((0,_.A)(),1)[0],G=(0,g.zy)(),W=(0,g.wQ)(),z=(0,g.Zp)(),V=(0,w.A)().selectWorkspace,q=G.pathname.includes("settings")||G.pathname.includes("google-conversions"),K=G.pathname.includes("user-profile"),H=(0,r.useRef)(G.pathname);(0,r.useEffect)(function(){var e=H.current,t=e.includes("settings")||e.includes("google-conversions");if("POP"===W&&t&&!q&&!D.selectedWorkspace&&D.workspaces.length>0){var n=(0,b.A)(D.workspaces,R.user,P(P({},D),{},{workspaces:[]}),null);n&&(V(n.id),z("/overview"))}H.current=G.pathname},[G.pathname,W,q,D.selectedWorkspace,D.workspaces,R.user,V,z]);var Y=(0,h.A)().width,$=M({sidebarWidth:Y>1280?260:60,showTopBar:!0}),Z={xs:960,sm:1280,md:1920,lg:2560,xl:3840};(0,r.useEffect)(function(){L(function(e){return P(P({},e),{},{viewport:{width:Y,breakpoints:Z,breakpoint:(t=Y,t>=Z.xl?"xl":t>=Z.lg?"lg":t>=Z.md?"md":t>=Z.sm?"sm":"xs")}});var t})},[Y,L]);var X=C((0,r.useState)(!0),2),J=X[0],Q=X[1];return(0,r.useEffect)(function(){var e=setTimeout(function(){Q(!1)},3e3);return function(){return clearTimeout(e)}},[]),R.isLoading||J?(0,E.jsx)("div",{className:$.loadUpPage,children:(0,E.jsx)(f.default,{})}):Y<960?(0,E.jsx)(O.A,{}):(0,E.jsxs)(s.A,{controlState:P(P(P(P(P({},B),D),R),F),{},{browserLanguage:navigator.language||"en-GB"}),children:[(0,E.jsx)(k.A,{}),(0,E.jsxs)("main",{className:$.main,children:[(0,E.jsx)("link",{rel:"shortcut icon",href:"../../../public/favicon.ico",type:"image/x-icon"}),(0,E.jsx)("link",{rel:"icon",href:"../../../public/favicon.ico",type:"image/x-icon"}),(0,E.jsx)("div",{className:$.sideBarContainer,"data-testid":"sidebar-container",children:(0,E.jsx)(u.A,{children:(0,E.jsxs)(u.A.Menu,{children:[((null==R||null===(n=R.hasNoDataScope)||void 0===n?void 0:n.showMainMenu)||(0,x.A)(null==R?void 0:R.hasNoDataScope))&&!R.isLoading&&((null==D||null===(o=D.selectedWorkspace)||void 0===o?void 0:o.id)>-2||K)&&!q&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(l.A,{isAllWorksp
2aces:!0,children:(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","house-window"],to:"/overview",type:"core",exact:!0,children:(0,m.A)("Overview")})}),(0,E.jsxs)(l.A,{isNotAllWorkspaces:!0,children:[(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","house-window"],to:"/overview",title:(0,m.A)("Overview")}),(0,E.jsx)(l.A,{featureFlags:["IVT_SUMMARY"],children:(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","chart-simple"],to:"/ivt-summary",title:(0,m.A)("IVT Summary")})}),(0,E.jsxs)(u.A.MenuNavItem,{iconName:["far","shield-check"],title:(0,m.A)("Brand Bidding"),children:[(0,E.jsx)(u.A.MenuSubNavItem,{to:"/brand-bidding/serp",title:(0,m.A)("SERP Insights")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/brand-bidding/bidding",title:(0,m.A)("Bidding")})]})]}),(0,E.jsx)(u.A.Divider,{}),(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","chart-simple"],to:"/summary",title:(0,m.A)("Summary"),isNotMeta:!0}),(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","chart-simple"],to:"/meta/summary",title:(0,m.A)("Summary"),isMeta:!0}),(0,E.jsx)(l.A,{roles:["ADMIN","MANAGER","EDITOR","ROOT"],children:(0,E.jsxs)(u.A.MenuNavItem,{iconName:["far","shield-check"],to:"/ads-account-management/accounts",title:(0,m.A)("Protection"),isGoogle:!0,children:[(0,E.jsx)(u.A.MenuSubNavItem,{to:"/ads-account-management/accounts",title:(0,m.A)("Accounts"),isGoogle:!0}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/ads-account-management/campaigns",title:(0,m.A)("Campaigns"),isGoogle:!0})]})}),(0,E.jsxs)(u.A.MenuNavItem,{iconName:["far","ban"],to:"/exclusions/ip",title:(0,m.A)("Exclusions"),isGoogle:!0,children:[(0,E.jsx)(u.A.MenuSubNavItem,{to:"/exclusions/ip",title:(0,m.A)("IP")}),(0,E.jsx)(l.A,{featureFlags:["GOOGLE_PLACEMENT_BLOCKING"],OR:null==D||null===(a=D.selectedWorkspace)||void 0===a?void 0:a.HAS_GOOGLE_PLACEMENT_BLOCKING_DATA,children:(0,E.jsx)(u.A.MenuSubNavItem,{to:"/exclusions/placement",title:(0,m.A)("Placements"),isGoogle:!0})})]}),(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","toolbox"],to:"/google-pmax-tools",title:(0,m.A)("PMax Tools"),isGoogle:!0}),(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","triangle-exclamation"],to:"/waste-analysis",title:(0,m.A)("Waste Analysis")}),"affiliate"!==U&&(0,E.jsxs)(u.A.MenuNavItem,{iconName:["far","chart-mixed"],to:"/analytics/campaigns",title:(0,m.A)("Campaign Analytics"),children:[(0,E.jsx)(u.A.MenuSubNavItem,{isNotMeta:!0,to:"/analytics/campaigns",title:(0,m.A)("Campaigns")}),(0,E.jsx)(u.A.MenuSubNavItem,{isMeta:!0,to:"/meta/analytics/campaigns",title:(0,m.A)("Campaigns")}),(0,E.jsx)(l.A,{integrations:["meta"],impersonatingOnly:!0,children:(0,E.jsx)(u.A.MenuSubNavItem,{isMeta:!0,to:"/meta/analytics/ad-sets",title:(0,m.A)("Ad Sets")})}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/analytics/accounts",title:(0,m.A)("Accounts"),isGoogle:!0})]}),(0,E.jsxs)(u.A.MenuNavItem,{iconName:["far","filter"],title:(0,m.A)("Conversion Analytics"),isAffiliate:!0,children:[(0,E.jsx)(u.A.MenuSubNavItem,{to:"/conversion-analytics/networks",title:(0,m.A)("Networks")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/conversion-analytics/partners",title:(0,m.A)("Partners")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/conversion-analytics/campaigns",title:(0,m.A)("Campaigns")}),(0,E.jsx)(u.A.MenuSubNavItem,{iconName:["far","toolbox"],to:"/conversion-analytics/fraud-types",title:(0,m.A)("Fraud Type")})]}),(0,E.jsxs)(u.A.MenuNavItem,{iconName:["far","chart-mixed"],to:"/analytics/affiliate",title:(0,m.A)("Affiliate Analytics"),isAffiliate:!0,children:[(0,E.jsx)(u.A.MenuSubNavItem,{to:"/analytics/affiliate/analytics-summary",title:(0,m.A)("Summary")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/analytics/affiliate/networks",title:(0,m.A)("Networks")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/analytics/affiliate/partners",title:(0,m.A)("Partners")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/analytics/affiliate/campaigns",title:(0,m.A)("Campaigns")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/analytics/affiliate/fraud-types",title:(0,m.A)("Fraud Type")})]}),(0,E.jsx)(l.A,{integrations:["meta"],children:(0,E.jsx)(u.A.MenuNavItem,{isMeta:!0,iconName:["far","filter"],to:"/meta/stats/data-explorer",title:(0,m.A)("Data Explorer")})}
2),(0,E.jsxs)(u.A.MenuNavItem,{iconName:["far","chart-simple"],to:"/stats/campaign",title:(0,m.A)("Ad Stats"),children:[(0,E.jsx)(u.A.MenuSubNavItem,{isNotMeta:!0,to:"/stats/campaign",title:(0,m.A)("Campaign")}),(0,E.jsx)(u.A.MenuSubNavItem,{isMeta:!0,to:"/meta/stats/campaign",title:(0,m.A)("Campaign")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/stats/partner",title:(0,m.A)("Partner"),isAffiliate:!0}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/stats/keyword",title:(0,m.A)("Keyword"),isGoogle:!0}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/stats/websites-protected",title:(0,m.A)("Websites Protected"),isNotGoogle:!0,isNotMeta:!0}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/meta/stats/websites-protected",title:(0,m.A)("Websites Protected"),isNotGoogle:!0,isMeta:!0}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/stats/placement",title:(0,m.A)("Placement"),isGoogle:!0}),(0,E.jsx)(u.A.MenuSubNavItem,{isNotMeta:!0,to:"/stats/location",title:(0,m.A)("Location")}),(0,E.jsx)(u.A.MenuSubNavItem,{isMeta:!0,to:"/meta/stats/location",title:(0,m.A)("Location")}),(0,E.jsx)(u.A.MenuSubNavItem,{isNotMeta:!0,to:"/stats/day",title:(0,m.A)("Day")}),(0,E.jsx)(u.A.MenuSubNavItem,{isMeta:!0,to:"/meta/stats/day",title:(0,m.A)("Day")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/stats/network",title:(0,m.A)("Network"),isGoogle:!0}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/stats/match-type",title:(0,m.A)("Match Type"),isGoogle:!0}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/stats/device",title:(0,m.A)("Device"),isNotGoogle:!0,isNotMeta:!0}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/meta/stats/device",title:(0,m.A)("Device"),isNotGoogle:!0,isMeta:!0})]}),(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","arrow-pointer"],to:"/clicks-log",title:(0,m.A)("Clicks Log"),isNotMeta:!0}),(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","arrow-pointer"],to:"/meta/clicks-log",title:(0,m.A)("Clicks Log"),isMeta:!0}),(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","seedling"],to:"/carbon-tracking",title:(0,m.A)("Emissions")})]}),((null==R||null===(i=R.hasNoDataScope)||void 0===i?void 0:i.showAdminMenu)||(0,x.A)(null==R?void 0:R.hasNoDataScope))&&!R.isLoading&&(!(null!=D&&D.selectedWorkspace)||q)&&!K&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(l.A,{accountRoles:["ADMIN","ROOT"],children:(0,E.jsxs)(u.A.MenuNavItem,{iconName:"far fa-briefcase",to:"/account-settings/account",title:(0,m.A)("Company Account"),children:[(0,E.jsx)(u.A.MenuSubNavItem,{to:"/account-settings/account",title:(0,m.A)("Account")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/account-settings/subscriptions",title:(0,m.A)("Subscriptions")})]})}),(0,E.jsx)(l.A,{accountRoles:["ADMIN","ROOT","EDITOR"],children:(0,E.jsx)(u.A.MenuNavItem,{iconName:"far fa-grid-2",to:"/workspace-settings/workspaces",title:(0,m.A)("Workspaces")})}),(0,E.jsx)(l.A,{accountRoles:["ADMIN","ROOT"],children:(0,E.jsx)(u.A.MenuNavItem,{iconName:"far fa-users",to:"/settings/users",title:(0,m.A)("Users")})}),(0,E.jsx)(l.A,{accountRoles:["ADMIN","ROOT"],children:(0,E.jsxs)(u.A.MenuNavItem,{iconName:["far","layer-group"],to:"/platform-settings/google-tokens",title:(0,m.A)("Platforms"),children:[(0,E.jsx)(u.A.MenuSubNavItem,{to:"/platform-settings/google-tokens",title:(0,m.A)("Google Tokens")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/platform-settings/google-accounts",title:(0,m.A)("Google Accounts")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/platform-settings/multi-platform",title:(0,m.A)("Multi Platform")}),(0,E.jsx)(l.A,{featureFlags:["META_INTEGRATION"],children:(0,E.jsx)(u.A.MenuSubNavItem,{featureFlags:["META_INTEGRATION"],to:"/platform-settings/meta-tokens",title:(0,m.A)("Meta Tokens")})})]})}),(0,E.jsx)(l.A,{accountRoles:["ADMIN","ROOT"],children:(0,E.jsxs)(u.A.MenuNavItem,{iconName:["far","globe-pointer"],to:"/ip-management/google-conversions",title:(0,m.A)("IP Management"),children:[(0,E.jsx)(u.A.MenuSubNavItem,{to:"/ip-management/google-conversions",title:(0,m.A)("Conversions")}),(0,E.jsx)(u.A.MenuSubNavItem,{to:"/ip-management/google-ip-allowlist",title:(0,m.A)("Allow List")})]})}),(0,E.jsx)(l.A,{accountRoles:["ADMIN","ROOT","EDITOR","MANAGER"],children:(0,E.jsxs)(u.A.MenuNavItem,{iconName:["far","code"],to:"/integrations-settings/integrations",title:(0,m.A)("Integrations"),children:[(0,E.jsx)(u.A.MenuSubNavItem,{to:"/integrations-settings/integrations",title:(0,m.A)("Tracking Codes")}),(0,E.jsx)(l.A,{accountRoles:["ADMIN","ROOT"],children:(0,E.jsx)(u.A.MenuSubNavItem,{to:"/integrations-settings/conversions",title:(0,m.A)("Conversions")})})]})}),(0,E.jsx)(l.A,{impersonatingOnly:!0,children:(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","gauge-high"],to:"/ivt-control
2s/settings",title:(0,m.A)("IVT Controls")})}),(0,E.jsx)(l.A,{accountRoles:["ADMIN","ROOT"],roles:["EDITOR"],children:(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","shield-check"],to:"/settings/brand-bidding/configuration",title:(0,m.A)("Brand Bidding")})}),(0,E.jsx)(l.A,{accountRoles:["ADMIN","ROOT"],children:(0,E.jsx)(u.A.MenuNavItem,{iconName:["far","notes"],to:"/release-notes",title:(0,m.A)("Release Notes")})})]}),(0,E.jsx)("div",{className:$.bottomMenuSection,children:(0,E.jsx)("div",{className:"flex items-center justify-center",children:(0,E.jsx)(d.default,{preset:"subText",children:(0,E.jsxs)("div",{className:"text-center",children:[(null==="https://api.lunio.ai/"?void 0:"https://api.lunio.ai/".includes("stg"))&&(0,E.jsx)("strong",{children:"Staging"}),(null==="https://api.lunio.ai/"?void 0:"https://api.lunio.ai/".includes("dev"))&&(0,E.jsx)("strong",{children:"Development"})]})})})})]})})}),(0,E.jsx)("div",{className:$.topBarContainer,"data-testid":"topbar-container",children:(0,E.jsx)(c.A,{noPlatformSelector:I})}),(0,E.jsxs)("div",{className:$.pageContainer,"data-testid":"page-container",children:[(0,E.jsx)(y.N9,{position:"top-right",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),!R.isLoading&&(0,E.jsx)(j.A,{}),R.isLoading&&(0,E.jsx)(p.A,{loading:!0}),((0,x.A)(R.hasNoDataScope)||q)&&!R.isLoading&&(0,E.jsx)(g.sv,{})]})]})]})}L.propTypes={noPlatformSelector:a().bool};const D=L},73633:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(14041),o=n(51836);const a=function(){var e=(0,o.Zp)(),t=(0,o.zy)();return(0,r.useEffect)(function(){e("/platform-settings/meta-tokens".concat(t.search),{replace:!0})},[e,t.search]),null}},73775:(e,t,n)=>{"use strict";e.exports=n.p+"fc73b94fbfd6f83ba36b.svg"},73986:(e,t,n)=>{"use strict";n.d(t,{A:()=>a}),n(14041);var r=n(11182);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n(31085);const a=function(){var e,t,n=(e=(0,r.A)(),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return n[0],n[1],null}},74060:(e,t,n)=>{"use strict";e.exports=n.p+"48f158506bbfd464ca9b.svg"},74266:(e,t,n)=>{"use strict";e.exports=n.p+"fb627bb848270e744712.svg"},74364:(e,t,n)=>{"use strict";n.d(t,{A:()=>p}),n(14041);var r=n(39067),o=n.n(r),a=n(99018),i=n(83223),l=n(89748),s=n(30021),c=n(79135),u=n(31085),d=(0,a.createUseStyles)(function(e){return{wrapper:{minWidth:180},icon:{minWidth:30,textAlign:"center",float:"left",lineHeight:"36px",fontSize:e.fontSizes.lg,marginRight:0,color:(0,a.findColour)(e,"grey",500)}}});function f(e){var t=e.row,n=void 0===t?{}:t,r=[{type:"c",name:(0,l.A)("Desktop"),icon:(0,u.jsx)(c.default,{name:["far","laptop"]})},{type:"m",name:(0,l.A)("Mobile"),icon:(0,u.jsx)(c.default,{name:["far","mobile-button"]})},{type:"t",name:(0,l.A)("Tablet"),icon:(0,u.jsx)(c.default,{name:["far","tablet-button"]})},{type:"ct",name:(0,l.A)("Connected TV"),icon:(0,u.jsx)(c.default,{name:["far","tablet-button"]})},{type:"bot",name:(0,l.A)("Bot"),icon:(0,u.jsx)(c.default,{name:["far","robot"]})},{type:"b",name:(0,l.A)("Bot"),icon:(0,u.jsx)(c.default,{name:["far","robot"]})},{type:"ZZ",name:(0,l.A)("Other"),icon:(0,u.jsx)(c.default,{name:["far","question"]})}],o=d(),a=r.find(function(e){return e.type===n.devi});return(0,u.jsxs)("div",{"data-testid":"ShowClickInfo",className:"flex v-align-center ".concat(o.wrapper),children:[(0,u.jsx)("div",{className:o.icon,children:null==a?void 0:a.icon}),(0,u.jsxs)("div",{className:"ml-3",children:[(0,u.jsx)(s.default,{preset:"cellText",children:(0,i.GP)(new Date(n.created_at),"MMM d, H:mm")}),(0,u.jsx)(s.default,{preset:"cellSubText",children:null==a?void 0:a.name})]})]})}f.propTypes={row:o().object};const p=f}
2,74704:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(56480);function o(){}o.Hourly=r.A;const a=o},74984:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(14041),i=n(45365),l=n(34016),s=n(19838),c=n(18141),u=n(60156),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=o.default;h(".display-x78zum5{display:flex}",3e3),h(".justifyContent-x1qughib{justify-content:space-between}",3e3),h(".alignItems-x6s0dn4{align-items:center}",3e3),h(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),h(".width-x1oysuqx{width:200px}",4e3),h(".marginRight-x1wh8b8d{margin-right:20px}",4e3),h(".textTransform-xtvhhri{text-transform:uppercase}",3e3),t.A=function(e){var t,n,r,o=e.cpn,f=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)(i.Input.DatePicker.getDateRange("7d")),2),p=f[0],g=f[1],h=(0,l.useQuery)("/aw/campaign/".concat(o,"/average_cpc?df_dmin=").concat(p.min.timestamp,"&df_dmax=").concat(p.max.timestamp)),x=h.data,b=h.isLoading,v=[],A=0;if(null!=x&&null!==(t=x.result)&&void 0!==t&&null!==(t=t.data)&&void 0!==t&&t.labels)for(var _=0;_<x.result.data.labels.length;_+=1)v.push({name:(0,c.format)(x.result.data.labels[_],"PP"),value:x.result.data.avg_cpc[_]}),null!==x.result.data.avg_cpc[_]&&(A+=1);return b||null==x||null===(n=x.result)||void 0===n||!n.data?(0,d.jsx)(i.Card,{children:(0,d.jsx)("div",{className:"mt-8",children:(0,d.jsx)(i.LunioLoader,{preset:"dark",loading:!0,size:"responsive"})})}):(0,d.jsx)(i.Card,{className:"p-6",children:(0,d.jsxs)(i.Grid,{children:[(0,d.jsxs)("div",m(m({},{className:"display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4","data-style-src":"AverageCPC/index.tsx:12"}),{},{children:[(0,d.jsx)(i.Text,{preset:"widgetHeading",as:"h1",children:"Average CPC"}),(0,d.jsx)(i.Input.DatePicker,{value:[p.min.date,p.max.date],onRangeChange:function(e){return g(e)},showCalenderIcon:!1,displayRangeText:!1,selectedOption:p.rangeName,ranges:["1d","yesterday","7d","30d","prevMonth","customMonth","customRange"]})]})),A<2&&(0,d.jsx)(i.NoData,{className:"mt-4",hasNoData:!0,subTitle:(0,u.language)("Try changing the date range to get more data."),style:{height:"fit-content"}}),A>=2&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.Line,{data:v||[],isLoading:b,margin:{top:22,right:32,bottom:32,left:80},options:{yAxisPosition:"left",yAxisLabel:x.result.data.currency,xAxisBaseLine:!1,showTooltip:!0,xAxisTickPreset:"sparse"}}),(0,d.jsxs)(i.Text,{size:"sm",weight:"md",className:"mt-4 flex justify-center",children:[(0,u.language)("Timezone:")," ",null==x||null===(r=x.result)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.timezone]})]})]})})}},75011:(e,t,n)=>{"use strict";e.exports=n.p+"f57ddc6b3efb04cc66d0.svg"}
2,75079:(e,t,n)=>{"use strict";n.d(t,{A:()=>l}),n(14041);var r=n(55436),o=n(99018),a=n(31085),i=(0,o.createUseStyles)({authLoadingContainer:{background:"black",width:"100%",height:"100vh"}});const l=function(){var e=i();return(0,a.jsx)("div",{className:e.authLoadingContainer,children:(0,a.jsx)(r.default,{})})}},75115:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=p(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(77002)),i=n(99018),l=n(86957),s=p(n(79135)),c=p(n(1048)),u=p(n(38241)),d=p(n(56267)),f=n(31085);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var g=["list","isMulti","label","placeholder","selectedItems","onSelectedItems","isSearchable","onClear","components","loading","className"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=o.default;b(".fontFamily-x14of51k{font-family:Axiforma}",3e3),b(".marginLeft-x16ydxro{margin-left:10px}",4e3);var v={control:function(e){return h(h({},e),{},{backgroundColor:l.colours.white,borderColor:l.colours.gray700,":hover":h(h({},e[":hover"]),{},{borderColor:l.colours.gray700})})},input:function(e){return h(h({},e),{},{minWidth:20,color:l.colours.gray900})},option:function(e,t){return h(h({},e),{},{backgroundColor:t.isSelected?l.colours.oldBrand500:l.colours.white,color:l.colours.gray900,":hover":h(h({},e[":hover"]),{},{backgroundColor:l.colours.oldBrand500})})},singleValue:function(e){return h(h({},e),{},{color:l.colours.gray900})},menuList:function(e){return h(h({},e),{},{backgroundColor:l.colours.white})},dropdownIndicator:function(e){return h(h({},e),{},{color:l.colours.gray900,":hover":h(h({},e[":hover"]),{},{color:l.colours.gray900})})},clearIndicator:function(e){return h(h({},e),{},{color:l.colours.gray700,":hover":h(h({},e[":hover"]),{},{color:l.colours.gray700})})},valueContainer:function(e){return h(h({},e),{},{flexDirection:"column-reverse",alignItems:"flex-start"})},placeholder:function(e){return h(h({},e),{},{marginTop:3})}};function A(e){var t=e.list,n=e.isMulti,r=void 0!==n&&n,o=e.label,l=void 0===o?"":o,c=e.placeholder,u=void 0===c?"Select":c,d=e.selectedItems,p=void 0===d?[]:d,m=e.onSelectedItems,y=void 0===m?function(){}:m,x=e.isSearchable,b=void 0!==x&&x,A=e.onClear,_=void 0===A?function(){}:A,S=e.components,w=void 0===S?{}:S,O=e.loading,j=void 0!==O&&O,k=e.className,E=void 0===k?"":k,N=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,g),I=(0,i.classNames)("fontFamily-x14of51k",E);return j?(0,f.jsxs)("div",{className:I,"data-testid":"loadingContainer",children:["Loading List",(0,f.jsx)(s.default,{name:"spinner",spin:!0,className:"marginLeft-x16ydxro","data-testid":"button-loading-icon"})]}
2):(0,f.jsx)(a.default,h({placeholder:u,onChange:function(e,t){y(e),"clear"===t.action&&_()},options:t,styles:v,isMulti:r,isSearchable:b,closeMenuOnSelect:!r,isClearable:r,maxMenuHeight:250,value:p,filterOption:(0,a.createFilter)({ignoreAccents:!1}),components:w,menuPlacement:"auto",inputId:N.inputId,"aria-label":l},N))}A.MultiValue=c.default,A.Option=u.default,A.MenuList=d.default,A.displayName="DropdownSelect",t.A=A},75436:(e,t,n)=>{"use strict";e.exports=n.p+"e5515b84663ea44ef1fd.svg"},75608:(e,t,n)=>{"use strict";n.d(t,{A:()=>x}),n(14041);var r=n(76449),o=n(28426),a=n(27805),i=n(89748),l=n(62161),s=n(36990),c=n(19863),u=n(40699),d=n(73657),f=n(93033),p=n(99226),m=n(27333),g=n(92523),y=n(41574),h=n(31085);function x(){var e,t,n,x,b="TRIAL"===(0,p.A)().lunioStatus,v=(0,m.R7)({sortKey:"percent_invalid"}),A=v.filters,_=v.handlePagination,S=v.setFilters,w=v.handleSort,O=(0,m.st)("/affiliates/clicks",A,function(e){var t="&group_by=network";return e["network.equals"]&&(t+='&network=["'.concat(e["network.equals"],'"]')),t}),j=O.data,k=O.isLoading,E=[{label:(0,i.A)("Network"),name:"network",type:"radio",options:[{label:(0,i.A)("equals"),name:"equals",type:"text"}]}];return(0,h.jsxs)(o.A.Page,{type:"overview",children:[(0,h.jsx)(a.default,{type:"overview",title:(0,i.A)("Affiliate Network Analytics"),text:(0,i.A)("Monitor affiliate traffic quality across all of your networks"),contentRight:(0,h.jsx)(y.A,{filters:A,exportType:"network",exportCategory:"analytics",exportLevel:"summary"})}),(0,h.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,h.jsx)("div",{className:"left",children:(0,h.jsx)(r.default,{filterConfig:E,initialValues:A,onFilterChange:S})}),(0,h.jsx)(g.default,{})]}),(0,h.jsx)(l.A,{rows:null==j||null===(e=j.result)||void 0===e?void 0:e.data,isLoading:k,totalResults:null==j||null===(t=j.pagination)||void 0===t?void 0:t.total,totalPages:null==j||null===(n=j.pagination)||void 0===n?void 0:n.last_page,totalItems:null==j||null===(x=j.pagination)||void 0===x?void 0:x.total,pageNumber:A.page,handlePagination:_,handleSorting:w,sorting:{sortKey:A.sortKey,sortOrder:A.sortOrder},limit:A.limit,leftPinnedColumns:1,children:function(e){var t,n,r,o;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{children:[(0,h.jsx)("th",{"data-sortable-id":"network",children:(0,i.A)("Network")}),(0,h.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,i.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,i.A)("Total Clicks")}),(0,h.jsx)("th",{"data-tooltip":(0,i.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,i.A)("All Tracked Clicks")}),(0,h.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,i.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,i.A)("SIVT Clicks")}),(0,h.jsx)(f.A,{AND:!b,children:(0,h.jsx)("th",{"data-testid":"givt","data-tooltip":(0,i.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,i.A)("GIVT Clicks")})}),(0,h.jsx)("th",{"data-tooltip":(0,i.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,i.A)("Total IVT")}),(0,h.jsx)("th",{"data-sortable-id":"percent_invalid",children:(0,i.A)("IVT%")}),(0,h.jsx)("th",{"data-tooltip":(0,i.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,i.A)("Total IVT %")}),(0,h.jsx)("th",{children:(0,i.A)("Top Reasons")}),(0,h.jsx)("th",{children:(0,i.A)("Occurrences")})]})}),(0,h.jsxs)("tbody",{children:[(0,h.jsx)("td",{children:(0,h.jsx)(d.Link,{to:"/analytics/affiliate/networks/".concat(null==e?void 0:e.network),children:null==e?void 0:e.network})}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_total)}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.all_tracked_clicks)}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_fraudulent)}),(0,h.jsx)(f.A,{AND:!b,children:(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.total_ivt)}),(0,h.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,h.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,h.jsxs)("td",{children:[null===(t=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===t?void 0:t.topReason.name,(0,h.jsx)(s.A,{children:null===(n=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===n?void 0:n.secondReason.name})]}),(0,h.jsxs)("td",{children:[null===(r=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===r?void 0:r.topReason.value,(0,h.jsx)(s.A,{children:null===(o=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===o?void 0:o.secondReason.value})]})]})]})}})]})}},75824:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(88133),o=n(89748),a=n(36549),i=n(24284);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(){var e,t,n=(e=(0,a.A)(),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],s=n.account.google_sync_status,c="ACTIVE"!==n.subscription_info.subscription_status,u=(0,r.Ay)("/aw/tokens?limit=100"),d=u.data,f=u.isLoading,p=(0,r.gC)("/aw/data/refresh","POST");function m(){var e=!1;return null==d||d.result.tokens.forEach(function(t){t.suppressions_count>0&&t.suppressions_reasons.forEach(function(t){"INVALID_GRANT"===t&&(e=!0)})}),e}return{googleSyncStatus:s,hasInvalidToken:!f&&m(),isSubscriptionStateExpired:c,refreshAdwordsAccountData:function(){c&&(0,i.A)((0,o.A)("An active subscription is required to sync your google data."),"error"),p.mutate({_method:"POST"},{onSuccess:function(e){e.data.result.jobs_dispatched&&(0,i.A)((0,o.A)("Your Google Ads data is updating and will be complete shortly."),"success"),e.data.result.jobs_dispatched||(0,i.A)(e.data.result.message,"error")},onError:function(){(0,i.A)((0,o.A)("There was a problem updating your Google Ads data. Make sure you have a valid access token within the tokens page of settings area"),"error")}})},syncStatusText:"green"!==s||m()?"yellow"!==s||m()?"red"!==s||m()?m()?(0,o.A)("OAuth Problem Detected"):"":(0,o.A)("Over 30 days old"):(0,o.A)("Over 10 days old"):(0,o.A)("Successfully Synced"),isLoading:p.isLoading}}}
2,76133:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),n(14041);var r=n(51836),o=n(44949),a=n(99018),i=n(89748),l=n(99226),s=n(31085);function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=(0,a.createUseStyles)(function(){return{settingsPageContainer:{width:"100%",height:"100%",padding:0,display:"flex",flexDirection:"column"},outletContainer:{flex:1,minHeight:0,overflow:"auto"}}});const f=function(){var e=d(),t=(0,l.A)(),n=t.allowedFeatureFlags,a=t.isImpersonating,u=(0,r.zy)().pathname;return(0,s.jsxs)("div",{className:e.settingsPageContainer,children:[(0,s.jsx)(o.A,{menuItems:[{name:(0,i.A)("Home"),to:"/internal-tools"},{name:(0,i.A)("IP Behaviour"),to:"/internal-tools/ip"},{name:(0,i.A)("DS Reports"),to:"/internal-tools/ds-reports"}].concat(c(n(["DATA_SAMPLING"])?[{name:(0,i.A)("IVT A/B Testing"),to:"/internal-tools/ivt-testing"}]:[]),[{name:"Script Debugger",to:"/internal-tools/script-debugging"},{name:"Spend Tracker",to:"/internal-tools/spend-tracker"},{name:"Google Tracking Validator",to:"/internal-tools/google-tracking-validator"},{name:"Protection Change Log",to:"/internal-tools/protection-change-log"},{name:"Lunio Status Change Log",to:"/internal-tools/account-status-change-log"}],c(a?[{name:(0,i.A)("Chat"),to:"/internal-tools/chat"}]:[])),title:(0,i.A)("Internal Tools")}),(0,s.jsx)("div",{className:e.outletContainer,children:(0,s.jsx)(r.sv,{})},u)]})}},76326:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(25751)),o=i(n(92136)),a=n(31085);function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=r.default;d(".maxHeight-x184hzol{max-height:482px}",4e3),d(".overflowY-x1odjw0f{overflow-y:auto}",4e3),d(".overflowX-x6ikm8r{overflow-x:hidden}",4e3),t.default=function(e){var t=e.data;return(0,a.jsx)("div",c(c({},{className:"maxHeight-x184hzol overflowY-x1odjw0f overflowX-x6ikm8r","data-style-src":"Sidebar/index.tsx:16"}),{},{"data-testid":"grouped-bar-chart-list",children:t.map(function(e,t){return(0,a.jsx)(o.default,{item:e},t)})}))}},76449:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getActiveFilterConfig=k;var o=h(n(25751)),a=n(14041),i=n(99018),l=n(60156),s=n(45647),c=n(18141),u=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),d=h(n(93513)),f=h(n(79135)),p=h(n(12727)),m=h(n(9500)),g=h(n(82433)),y=n(31085);function h(e){return e&&e.__esModule?e:{default:e}}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A(e,t,n){return(t=function(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=o.default;w(".position-x1n2onr6{position:relative}",3e3),w(".width-xezivpi{width:max-content}",4e3),w(".zIndex-x1u8a7rm{z-index:5}",3e3),w(".display-x3nfvp2{display:inline-flex}",3e3),w(".height-xn3w4p2{height:44px}",4e3),w(".zIndex-x1vjfegm{z-index:1}",3e3),w(".borderRadius-xur7f20{border-radius:8px}",2e3),w(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),w(".display-x78zum5{display:flex}",3e3),w(".alignItems-x6s0dn4{align-items:center}",3e3),w(".paddingLeft-x1k8dnhd{padding-left:18px}",4e3),w(".paddingRight-x18a8kpn{padding-right:18px}",4e3),w(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),w(".fontSize-x1j61zf2{font-size:16px}",3e3),w(".boxSizing-x9f619{box-sizing:border-box}",3e3),w(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),w(".cursor-x1ypdohk{cursor:pointer}",3e3),w(".marginLeft-xet2fuk{margin-left:8px}",4e3),w(".position-x10l6tqk{position:absolute}",3e3),w(".top-xbssg55{top:50px}",4e3),w(".left-xu96u03{left:0}",4e3),w(".right-x3m8u43{right:0}",4e3),w(".marginRight-x1db2dqx{margin-right:8px}",4e3),w(".paddingLeft-xnm25rq{padding-left:16px}",4e3),w(".paddingRight-xyfqnmn{padding-right:16px}",4e3),w(".fontSize-xif65rj{font-size:14px}",3e3),w(".fontWeight-xk50ysn{font-weight:500}",3e3),w(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),w(".cursor-x1277o0a:hover{cursor:pointer}",3130),w(".color-x1mda8oq:hover{color:var(--gray900-xevft2h)}",3130),w(".marginRight-xl010v5{margin-right:4px}",4e3),w(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3);var O={position:"position-x10l6tqk",top:"top-xbssg55",left:"left-xu96u03",insetInlineStart:null,insetInlineEnd:null,$$css:"Filters/index.tsx:42"},j={position:"position-x10l6tqk",top:"top-xbssg55",right:"right-x3m8u43",insetInlineStart:null,insetInlineEnd:null,$$css:"Filters/index.tsx:47"};function k(e,t){var n=[],r="google"===t;return e.forEach(function(e){(e.googleOnly&&r||e.mplatOnly&&!r||!e.googleOnly&&!e.mplatOnly)&&n.push(e)}),n}function E(e){var t,n,r=e.filterConfig,o=e.initialValues,m=void 0===o?{}:o,g=e.onFilterChange,h=void 0===g?function(){}:g,x=e.onFiltersUpdate,b=void 0===x?function(){}:x,A=_((0,a.useState)(!1),2),S=A[0],w=A[1],E=_((0,s.usePlatformsState)(),1)[0],N=null==E||null===(t=E.selectedPlatform)||void 0===t?void 0:t.platform_name,I=(0,a.useRef)(null),P=_((0,a.useState)(k(r,N)),2),T=P[0],C=P[1];function R(){return 0===Object.entries(m).length?(e={}
2,k(r,N).forEach(function(t){t.options.forEach(function(n){var r;e["".concat(t.name,".").concat(n.name)]=null!==(r=n.value)&&void 0!==r?r:null})}),e):m;var e}var M=_((0,a.useState)(R()),2),L=M[0],D=M[1];function B(){var e=T.map(function(e){return e.options.map(function(t){return"".concat(e.name,".").concat(t.name)})}).flat();return Object.keys(m).filter(function(t){return!e.includes(t)}).reduce(function(e,t){return e[t]=R()[t],e},{})}function U(){return k(r,N).map(function(e){var t=e.options.map(function(t){var n="",r=1===e.options.length;return Object.entries(R()).forEach(function(o){var a=_(o,2),i=a[0],l=a[1];i.includes("".concat(e.name,".").concat(t.name))&&(r=!0,n=l)}),v(v({},t),{},{value:n,valueMax:"",valueMin:"",isActive:r})});return v(v({},e),{},{options:t})})}var F=_((0,a.useState)(U()),2),G=F[0],W=F[1];function z(e){if(Object.entries(m).length>0)return R()[e];var t="";return r.forEach(function(n){n.options.forEach(function(r){return e==="".concat(n.name,".").concat(r.name)&&(t=r.value),null})}),t}function V(e){if(function(e){return Object.keys(B()).includes(e)}(e))return!1;for(var t=e.split(".")[0],n=e.split(".")[1],r=0;r<T.length;r+=1)if(T[r].name===t)for(var o=0;o<T[r].options.length;o+=1){var a;if("equals"===T[r].options[o].name&&(null===(a=T[r].options[o].value)||void 0===a||!a.length)&&void 0!==T[r].options[o].value)return!1;if(T[r].options[o].name===n&&z(e))return!0}return!1}function q(){var e={};(arguments.length>0&&void 0!==arguments[0]?arguments[0]:G).forEach(function(t){t.options.forEach(function(n){n.isActive&&n.value&&(e["".concat(t.name,".").concat(n.name)]=n.value)})});var t,n,o=Object.entries(R()).filter(function(e){return!V(e[0])});h(v(v(v(v({},Object.fromEntries(o)),B()),e),{},{page:1})),b((t=e,(n=r).forEach(function(e,r){e.options.forEach(function(o,a){t["".concat(e.name,".").concat(o.name)]?n[r].options[a].value=t["".concat(e.name,".").concat(o.name)]:n[r].options[a].value=!1})}),n)),w(!1)}function K(e){return function(){var t=G.map(function(t){var n=t.options.map(function(n){return e==="".concat(t.name,".").concat(n.name)?"text"!==n.type||"equals"!==n.name&&"startsWith"!==n.name&&"contains"!==n.name?v(v({},n),{},{value:"",valueMax:"",valueMin:"",isActive:!1}):v(v({},n),{},{value:"",valueMax:"",valueMin:"",isActive:!0}):n});return v(v({},t),{},{options:n})});W(t),q(t)}}function H(e){return function(){var t=G.map(function(t){if(t.name===e.name){var n=t.options.map(function(e){return v(v({},e),{},{value:"",valueMax:"",valueMin:"",isActive:!1})});return v(v({},t),{},{options:n})}return t});W(t),q(t)}}var Y={equals:(0,l.language)("is equal to"),contains:(0,l.language)("contains"),startsWith:(0,l.language)("starts with"),greaterThan:(0,l.language)("is greater than"),lessThan:(0,l.language)("is less than")};function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"colName",n="";return G.forEach(function(r){r.options.forEach(function(o){return e==="".concat(r.name,".").concat(o.name)&&("colName"===t&&(n="".concat(r.label," ")),"logic"===t&&(n="".concat(Y[o.name]||""," "))),""})}),n||""}function Z(e,t){return t.options.find(function(t){return t.name===e.split(".")[1]})}return(0,a.useEffect)(function(){C(k(r,N)),W(U()),D(R())},[null==E||null===(n=E.selectedPlatform)||void 0===n?void 0:n.platform_name]),(0,a.useEffect)(function(){Object.keys(m).length>0&&D(R())},[m]),(0,y.jsxs)("div",v(v({},{className:"position-x1n2onr6 width-xezivpi zIndex-x1u8a7rm display-x3nfvp2","data-style-src":"Filters/index.tsx:15"}),{},{"data-testid":"filters-container",children:[(0,y.jsxs)(d.default,{onClickOutside:function(){return w(!1)},children:[(0,y.jsxs)("button",{id:"filters-open-button",ref:I,type:"button",className:(0,i.classNames)("height-xn3w4p2 zIndex-x1vjfegm width-xezivpi borderRadius-xur7f20 backgroundColor-x18oya0d display-x78zum5 alignItems-x6s0dn4 paddingLeft-x1k8dnhd paddingRight-x18a8kpn color-x5tu7p5 fontSize-x1j61zf2 boxSizing-x9f619 border-x180m19u",S&&"cursor-x1ypdohk"),onClick:function(){return w(!S)},children:[(0,l.language)("Filter"),(0,y.jsx)(f.default,{name:["fas","bars-filter"],className:"marginLeft-xet2fuk"})]}),S&&(0,y.jsx)("div",v(v({},u.props((0,c.sideChoice)(I.current,O,j))),{},{"data-testid":"main-filter-menu",children:(0,y.jsx)(p.default,{filterData:G,onFilterChange:function(e){W(e)},onFilterApply:function(e){return q(e)},leftSide:(0,c.sideChoice)(I.current,!0,!1)})}))]}),(0,y.jsxs)("div",v(v({},{className:"display-x78zum5 marginRight-x1db2dqx","data-style-src":"Filters/index.tsx:52"}),{},{children:[T.map(function(e){if("checkbox"===e.type){var t=e.options.map(function(t){return"".concat(e.name,".").concat(t.name)}),n=[],r=!1;
2if(Object.entries(R()).forEach(function(e){var o=_(e,2),a=o[0],i=o[1];t.includes(a)&&!0===i&&(n.push(a),r=!0)}),n.length===t.length&&1!==n.length)return null;if(r){var o="";if(1===n.length){var a=Z(n[0],e);o=a&&a.shortLabel?a.shortLabel:""}else if(2===n.length){var i=Z(n[0],e),s=Z(n[1],e);o="".concat((null==i?void 0:i.shortLabel)||""," ").concat((0,l.language)("or")," ").concat((null==s?void 0:s.shortLabel)||"")}else o=n.map(function(t,r){var o=r===n.length-1,a=r===n.length-2,i=Z(t,e);return!0===R()[t]?"".concat((null==i?void 0:i.shortLabel)||"").concat(o?"":", ").concat(a?"".concat((0,l.language)("or")," "):""):null}).filter(Boolean).join("");return(0,y.jsxs)("button",{id:"filters-activeFilter-button-checkbox-".concat(e.name),type:"button",className:"paddingLeft-xnm25rq paddingRight-xyfqnmn fontSize-xif65rj fontWeight-xk50ysn marginLeft-xet2fuk height-xn3w4p2 zIndex-x1vjfegm width-xezivpi borderRadius-xur7f20 backgroundColor-x18oya0d display-x78zum5 alignItems-x6s0dn4 color-x5tu7p5 boxSizing-x9f619 border-x180m19u","data-testid":"activeFilter-button-checkbox-".concat(e.name),children:[(0,y.jsx)("span",v(v({},{className:"marginRight-xl010v5 color-x18k1rwp","data-style-src":"Filters/index.tsx:82"}),{},{children:(0,l.language)(e.label)})),(0,y.jsx)("span",v(v({},{className:"marginRight-xl010v5 color-xbdn2ka","data-style-src":"Filters/index.tsx:86"}),{},{children:(0,l.language)("equals")})),(0,y.jsx)("span",v(v({},{className:"color-x18k1rwp","data-style-src":"Filters/index.tsx:90"}),{},{children:o})),(0,y.jsx)(f.default,{name:"close",onClick:H(e),className:"marginLeft-xet2fuk fontSize-x1j61zf2 color-xbdn2ka cursor-x1277o0a color-x1mda8oq","data-testid":"clearFilter-icon-".concat(e.name)})]},e.name)}}return null}),Object.entries(L).map(function(e){var t=_(e,1)[0];return"checkbox"===function(e){var t=G.find(function(t){return(null==t?void 0:t.name)===e.split(".")[0]});return null==t?void 0:t.type}(t)||"page"===t?null:V(t)&&function(e){if(Object.entries(m).length>0)return""!==R()[e]&&!1!==R()[e]&&null!==R()[e];var t=!1;return Object.entries(R()).forEach(function(n){var r=_(n,2),o=r[0],a=r[1];o===e&&""!==a&&!1!==a&&null!==a&&(t=!0)}),t}(t)?(0,y.jsxs)("button",{id:"filters-activeFilter-button-close-".concat(t),type:"button",className:"paddingLeft-xnm25rq paddingRight-xyfqnmn fontSize-xif65rj fontWeight-xk50ysn marginLeft-xet2fuk height-xn3w4p2 zIndex-x1vjfegm width-xezivpi borderRadius-xur7f20 backgroundColor-x18oya0d display-x78zum5 alignItems-x6s0dn4 color-x5tu7p5 boxSizing-x9f619 border-x180m19u","data-testid":"activeFilter-button-".concat(t),children:[(0,y.jsx)("span",v(v({},{className:"marginRight-xl010v5 color-x18k1rwp","data-style-src":"Filters/index.tsx:82"}),{},{children:$(t,"colName")})),(0,y.jsx)("span",v(v({},{className:"marginRight-xl010v5 color-xbdn2ka","data-style-src":"Filters/index.tsx:86"}),{},{children:$(t,"logic")})),(0,y.jsx)("span",v(v({},{className:"color-x18k1rwp","data-style-src":"Filters/index.tsx:90"}),{},{children:z(t)})),(0,y.jsx)(f.default,{name:"close",onClick:K(t),className:"marginLeft-xet2fuk fontSize-x1j61zf2 color-xbdn2ka cursor-x1277o0a color-x1mda8oq","data-testid":"clearFilter-icon-".concat(t)})]},t):null})]}))]}))}E.displayName="Filters",E.getQueryString=m.default,E.getActiveFilterConfig=k,E.SearchedSelection=g.default,t.default=E},76500:(e,t,n)=>{"use strict";e.exports=n.p+"f0274928674266285725.svg"},76678:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(62720),s=n(55618),c=n(30021),u=n(50324),d=n(89748),f=n(99018),p=n(11182),m=n(36549),g=n(47548),y=n(31085);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var S=(0,f.createUseStyles)(function(e){return{iconImage:{width:"50px",height:"50px",borderRadius:"50%",marginRight:"10px"},right:{display:"flex",justifyContent:"flex-end",textAlign:"right",paddingBottom:e.spacing[3]},greyOut:{opacity:.5,pointerEvents:"none"}}});function w(e){var t,n=e.createUser,o=e.creatingUser,a=e.submitButtonText,f=void 0===a?"Create User":a,h=e.onClose;if(!o)return null;var x=S(),v=A((0,m.A)(),1)[0],_=A((0,p.A)(),1)[0],w=A((0,r.useState)(!0),2),O=w[0],j=w[1],k=A((0,r.useState)(!1),2),E=k[0],N=k[1],I=A((0,r.useState)({_id:null,email:"",first_name:"",last_name:"",account_id:"",status:!0,company_mfa:!1,multifactor:!1,avatar:"/none-set",auth_google:null,auth_password:null,display_name:"",role_identifier:"ENROL",newPassword:"",confirmPassword:""}),2),P=I[0],T=I[1];(0,r.useEffect)(function(){o&&(T({_id:null,email:"",first_name:"",last_name:"",account_id:"",status:!0,company_mfa:!1,multifactor:!1,avatar:"/none-set",auth_google:null,auth_password:null,display_name:"",role_identifier:"ENROL",password:"",password_confirm:""}),j(!0))},[o]);var C,R,M=[{label:"Admin",value:"ADMIN"},{label:"Enrolled",value:"ENROL"}];function L(e){if(!e)return!1;var t=_.accountRoleIdentifier;return!("ROOT"===e&&"ROOT"!==t||"ROOT"!==t&&"ADMIN"!==t)}return(0,y.jsxs)("div",{children:[(0,y.jsxs)(s.default.Section,{children:[(0,y.jsxs)(c.default,{preset:"formSectionTitle",children:[P.first_name," ",P.last_name]}),(0,y.jsx)(c.default,{preset:"formSectionSubTitle",className:"mb-4",children:void 0===(null==v||null===(R=v.settings)||void 0===R?void 0:R.account_title)?(0,d.A)("Your Name Here"):v.settings.account_title})]}),(0,y.jsx)(s.default.Section,{children:(0,y.jsxs)("div",{className:"flex content-center items-center mb-10",children:[(0,y.jsx)("div",{className:x.iconImage,children:(0,y.jsx)("img",{alt:"",src:g})}),(0,y.jsxs)("div",{className:"flex content-center items-center",children:[(0,y.jsxs)("div",{className:"mr-8",children:[P.status&&(0,y.jsx)(c.default,{children:(0,d.A)("Active User")}),P.status&&(0,y.jsx)(c.default,{children:(0,d.A)("User can log in")}),!P.status&&(0,y.jsx)(c.default,{children:(0,d.A)("Inactive User")}),!P.status&&(0,y.jsx)(c.default,{children:(0,d.A)("User can't log in")})]}),(0,y.jsx)(l.default.Checkbox,{onClick:function(){T(b(b({},P),{},{status:!P.status}))},value:P.status,"data-testid":"create-user-status-checkbox",disabled:!(L(P.role_identifier)&&"ROOT"!==P.role_identifier),"aria-label":(0,d.A)("Toggle user status"),name:(0,d.A)("Toggle user status")})]})]})}),(0,y.jsxs)(u.A,{initialFormValues:P,onFormDataChange:function(e){j(u.A.isValid(e)),T(b(b({},P),{},{first_name:e.values.first_name,last_name:e.values.last_name,display_name:"".concat(e.values.first_name," ").concat(e.values.last_name),email:e.values.email,password:e.values.newPassword,password_confirm:e.values.confirmPassword}))},hideBottomErrors:!0,rules:{first_name:{validation:{isNotEmpty:{match:!0,errorMessage:(0,d.A)("First Name must not be empty")}}},last_name:{validation:{isNotEmpty:{match:!0,errorMessage:(0,d.A)("Last Name must not be empty")}}}
2,email:{validation:{isEmail:{match:3,errorMessage:(0,d.A)("Must use a valid email address")},isNotEmpty:{match:!0,errorMessage:(0,d.A)("Email must not be empty")}}},newPassword:{validation:{hasMinimumLength:{match:6,errorMessage:(0,d.A)("Password must be at least 6 characters long")},isNotEmpty:{match:!0,errorMessage:(0,d.A)("Password must not be empty")}}},confirmPassword:{validation:{hasMinimumLength:{match:6,errorMessage:(0,d.A)("Confirm Password must be at least 6 characters long")},valuesMatch:{match:"newPassword",errorMessage:(0,d.A)("Passwords must match")},isNotEmpty:{match:!0,errorMessage:(0,d.A)("Confirm password must not be empty")}}}},children:[(0,y.jsxs)(s.default.Section,{heading:(0,d.A)("User details"),children:[(0,y.jsx)(l.default,{className:"mb-4",name:"first_name","data-testid":"create-user-first-name-input",label:(0,d.A)("First Name"),hideErrorStyles:!E,showErrors:E}),(0,y.jsx)(l.default,{className:"mb-4",name:"last_name","data-testid":"create-user-last-name-input",label:(0,d.A)("Last Name"),hideErrorStyles:!E,showErrors:E}),(0,y.jsx)(l.default,{className:"mb-4",name:"email","data-testid":"create-user-email-input",label:(0,d.A)("Email Address"),hideErrorStyles:!E,showErrors:E})]}),L(P.role_identifier)&&(0,y.jsxs)(s.default.Section,{heading:(0,d.A)("Password"),children:[(0,y.jsx)(l.default,{className:"mb-3",type:"password",name:"newPassword","data-testid":"create-user-password-input",label:(0,d.A)("New Password"),hideErrorStyles:!E,showErrors:E}),(0,y.jsx)(l.default,{className:"mb-4",type:"password",name:"confirmPassword","data-testid":"create-user-password-confirm-input",label:(0,d.A)("Confirm New Password"),hideErrorStyles:!E,showErrors:E})]})]}),1===(null===(t=v.account)||void 0===t?void 0:t.mfa_enabled)&&L(P.role_identifier)&&(0,y.jsx)(l.default.Checkbox,{onClick:function(){T(b(b({},P),{},{multifactor:!P.multifactor}))},value:P.multifactor,"data-testid":"create-user-mfa-checkbox",className:"mb-4"}),L(P.role_identifier)&&(0,y.jsx)(s.default.Section,{heading:(0,d.A)("Permissions"),children:(0,y.jsx)(l.default.Select,{className:"mb-4",options:M,onChange:function(e){(["ROOT","ADMIN"].includes(_.accountRoleIdentifier)||L(P.role_identifier)||"ROOT"===P.role_identifier)&&T(b(b({},P),{},{role_identifier:e.value}))},"data-testid":"create-user-role-select-dropdown",value:{label:null===(C=M.find(function(e){return(null==e?void 0:e.value)===("USER"===(t=P).role_identifier||"MANAGER"===t.role_identifier?"ENROL":t.role_identifier);var t}))||void 0===C?void 0:C.label,value:P.role_identifier},label:(0,d.A)("Role")})}),L(P.role_identifier)&&"ROOT"!==P.role_identifier&&(0,y.jsx)(s.default.Section,{children:(0,y.jsxs)("div",{className:x.right,children:[(0,y.jsx)(i.default,{preset:"outline",onClick:function(){return h(function(){return h(!1)})},className:"mr-2",children:(0,d.A)("Cancel")}),(0,y.jsx)(i.default,{id:"create-user-save-changes-button","data-testid":"create-user-save-changes-button",onClick:function(){return N(!0),void(O&&n(P))},disabled:!O&&E,children:(0,d.A)(f)})]})})]})}w.propTypes={createUser:a().func.isRequired,creatingUser:a().bool.isRequired,submitButtonText:a().string,onClose:a().func.isRequired};const O=w},76806:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=d(n(25751)),a=u(n(14041)),i=u(n(64746)),l=n(86957),s=d(n(78094)),c=n(31085);function u(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(u=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=o.default;h(".position-x1n2onr6{position:relative}",3e3),h(".position-x10l6tqk{position:absolute}",3e3),h(".pointerEvents-x47corl{pointer-events:none}",3e3),h(".display-x1s85apg{display:none}",3e3);var x=[l.colourValues.error900,l.colourValues.error800,l.colourValues.error700,l.colourValues.error600,l.colourValues.error500,l.colourValues.error400,l.colourValues.error300,l.colourValues.error200,l.colourValues.error100,l.colourValues.error50,l.colourValues.error25];t.A=function(e){var t,n,r=e.data,o=e.colors,u=void 0===o?x:o,d=e.onSliceHover,f=(0,a.useRef)(null),p=(0,a.useRef)(null),g=(t=a.default.useState(null),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=g[0],b=g[1];return(0,a.useEffect)(function(){i.select(f.current).selectAll("*").remove();var e=i.select(f.current),t=i.select(p.current),n=+e.node().getBoundingClientRect().width-0-0,o=+e.attr("height")-20-0,a=e.append("g").attr("transform","translate(".concat(n/2+0,", ").concat(o/2+20,")")),s=Math.min(n,o)/2,c=i.scaleOrdinal(u),g=i.arc().innerRadius(s-80).outerRadius(s-20),y=i.pie().sort(null).padAngle(.03).value(function(e){return e.value});a.selectAll("path").data(y(r.filter(function(e){return 0!==e.value}))).enter().append("path").attr("d",g).attr("fill",function(e,t){return c(String(t))}).style("stroke",l.colourValues.white).style("stroke-width","2px").on("mouseover",function(e,n){t.style("display","block"),i.select(this).style("opacity",.7),d&&d(n.index),b(m(m({},n.data),{},{color:c(String(n.index))}))}).on("mousemove",function(e){t.style("left","".concat(e.offsetX+20,"px")).style("top","".concat(e.offsetY-20,"px"))}).on("mouseout",function(){t.style("display","none"),b(null),d&&d(null),i.select(this).style("opacity",1)})},[r]),(0,c.jsxs)("div",m(m({},{className:"position-x1n2onr6","data-style-src":"Donut/index.tsx:8"}),{},{id:"donut-container",children:[(0,c.jsx)("div",m(m({id:"tooltip",ref:p},{className:"position-x10l6tqk pointerEvents-x47corl display-x1s85apg","data-style-src":"Donut/index.tsx:11"}),{},{children:h&&(0,c.jsx)(s.default,{datum:h})})),(0,c.jsx)("svg",{ref:f,width:"100%",height:"378"})]}))}},76836:(e,t,n)=>{"use strict";e.exports=n.p+"e187926adff216449d57.svg"},76911:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(88133),o="/analytics/waste-types",a=3e5,i=[];const l=function(){var e,t,n=(0,r.Ay)(o,{},o,{staleTime:a,gcTime:a}).data;return{wasteTypes:null!==(e=null==n||null===(t=n.result)||void 0===t?void 0:t.data)&&void 0!==e?e:i}}},76937:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=d(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),l=n(45365),s=d(n(56895)),c=d(n(41865)),u=n(31085);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default;function h(e){var t=e.isLoading,n=e.data,r=void 0===n?[]:n,o=e.margin,s=void 0===o?{top:22,right:22,bottom:22,left:64}:o,d=e.options,f=void 0===d?{}:d,p=(0,a.useRef)(null);return(0,a.useEffect)(function(){if(!t){i.select(p.current).selectAll("*").remove();var e=i.select(p.current),n=+e.node().getBoundingClientRect().width-s.left-s.right,o=+e.attr("height")-s.top-s.bottom;(0,c.default)({svgRef:p,margin:s,height:o,width:n,data:r,dataType:"",options:f})}},[r]),(0,u.jsx)(l.LunioLoader,{loading:t,preset:"dark",height:378,size:"responsive",children:(0,u.jsx)("svg",m
2({ref:p,width:"100%",height:"378"},{className:"width-xh8yej3 overflow-x1rea2x4","data-style-src":"Line/index.tsx:9"}))})}y(".width-xh8yej3{width:100%}",4e3),y(".overflow-x1rea2x4{overflow:visible}",2e3),h.Comparison=s.default,t.A=h},77185:(e,t,n)=>{"use strict";n.d(t,{A:()=>j}),n(14041);var r=n(46389),o=n(1781),a=n(62683),i=n(28426),l=n(23151),s=n(27805),c=n(89748),u=n(62161),d=n(36990),f=n(96182),p=n(19863),m=n(93033),g=n(99226),y=n(98536),h=n(92523),x=n(68225),b=n(53145),v=n(31085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const j=function(){var e,t,n,A="TRIAL"===(0,g.A)().lunioStatus,_=(t=(0,f.A)(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],w=[{label:(0,c.A)("Account Name"),name:"account_name_id",type:"radio",queryKey:"descriptive_name",queryTranslator:"textSearch",options:[{label:(0,c.A)("Contains"),name:"contains",type:"text"}]},{label:(0,c.A)("Protection Status"),name:"protectionStatus",type:"checkbox",options:[{label:(0,c.A)("Include Protected"),shortLabel:(0,c.A)("Protected"),type:"checkbox",name:"include_protected",queryKey:"include_protected",value:!1},{label:(0,c.A)("Include Monitored"),shortLabel:(0,c.A)("Monitored"),type:"checkbox",name:"include_monitored",queryKey:"include_monitored",value:!1}]}],j=(0,y.useApi)({googleUrl:"/aw/customers",responseDataKey:"adwords_customers",googleSortKey:"name",customQueryString:"&show_empty=true",isGlobalAccountFilter:!0,filters:w});function k(e){return e?e.protection_status?e.protection_status:1===e.protection_enabled&&1===e.monitoring_enabled?2:0===e.protection_enabled&&1===e.monitoring_enabled?1:0:0}return"google"!==_.selectedPlatform.platform_name?(0,v.jsxs)(i.A.Page,{type:"main",children:[(0,v.jsx)(s.default,{title:(0,c.A)("Accounts"),text:(0,c.A)("Here is a list of all your accounts")}),(0,v.jsx)("div",{className:"flex distribute-space-between mb-4",children:(0,c.A)("This page is not available for the selected platform yet")})]}):(0,v.jsxs)(i.A.Page,{type:"main",children:[(0,v.jsx)(s.default,{title:(0,c.A)("Accounts"),text:(0,c.A)("Here is a list of all your accounts"),contentRight:(0,v.jsx)(x.A,{filters:j.activeFilters,exportType:"accounts"})}),(0,v.jsxs)("div",{className:"flex distribute-space-between mb-4",children:[(0,v.jsxs)("div",{className:"flex",children:["google"===(null==_||null===(e=_.selectedPlatform)||void 0===e?void 0:e.platform_name)&&(0,v.jsx)("div",{className:"mr-2",children:(0,v.jsx)(b.A,S({},j.accountSelectConnector))}),(0,v.jsx)(r.A,S({},j.filterConnector))]}),(0,v.jsx)(h.default,{})]}),(0,v.jsx)(u.A,S(S({},j.tableConnector),{},{leftPinnedColumns:1,groupColsBreakpoint:500,children:function(e){var t,n,r,i,s,u,f,g,y,h,x,b,
2S;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("thead",{children:(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{"data-sortable-id":"name",children:(0,c.A)("Account")}),(0,v.jsx)("th",{"data-tooltip":(0,c.A)("Shows whether Lunio is actively protecting or only monitoring this account or campaign."),children:(0,c.A)("Protection Status")}),(0,v.jsx)("th",{"data-sortable-id":"campaign_count",children:(0,c.A)("Campaigns")}),(0,v.jsx)("th",{"data-sortable-id":"invalid","data-tooltip":(0,c.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,c.A)("SIVT Clicks")}),(0,v.jsx)("th",{"data-tooltip":(0,c.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,c.A)("Total IVT")}),(0,v.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,c.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,c.A)("SIVT Clicks %")}),(0,v.jsx)("th",{"data-tooltip":(0,c.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,c.A)("Total IVT %")}),(0,v.jsx)("th",{"data-tooltip":(0,c.A)("The change in percentage between the selected date period and the equivalent previous period."),children:(0,c.A)("%pt Change")}),(0,v.jsx)(m.A,{AND:!A,children:(0,v.jsx)("th",{"data-testid":"givt","data-tooltip":(0,c.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,v.jsx)("div",{className:"flex align-items-center",children:(0,c.A)("GIVT Clicks")})})}),(0,v.jsx)("th",{"data-sortable-id":"activity","data-tooltip":(0,c.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,c.A)("Total Clicks")}),(0,v.jsx)("th",{"data-tooltip":(0,c.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,c.A)("All Tracked Clicks")}),(0,v.jsxs)("th",{"data-tooltip":"google"===_.selectedPlatform.platform_name?(0,c.A)("The average cost per click, based on platform-reported spend and total clicks."):null,children:["google"===_.selectedPlatform.platform_name&&(0,c.A)("Avg CPC"),"google"!==_.selectedPlatform.platform_name&&(0,v.jsx)(o.default,{heading:(0,c.A)("Self Defined CPC"),content:(0,c.A)("This value was manually set by a user of this workspace."),children:(0,c.A)("Self Defined CPC")}),(0,v.jsx)(d.A,{header:!0,groupedCols:!0,"data-sortable-id":"cost","data-tooltip":(0,c.A)("The approximate ad spend reported by the ad platform for the selected period."),children:(0,c.A)("Approx Spend")})]}),(0,v.jsx)("th",{"data-tooltip":(0,c.A)("Estimated spend after removing the cost of invalid clicks."),children:(0,c.A)("Adjusted Value")})]})}),(0,v.jsxs)("tbody",{children:[(0,v.jsxs)("td",{children:[null==e?void 0:e.descriptive_name,(0,v.jsx)(d.A,{children:null==e?void 0:e.aw_id})]}),(0,v.jsx)("td",{children:(0,v.jsx)(a.A,{status:k(e)})}),(0,v.jsx)("td",{children:null==e||null===(t=e.campaigns)||void 0===t?void 0:t.total_count}),(0,v.jsx)("td",{children:(0,p.m)(null==e||null===(n=e.analytics)||void 0===n||null===(n=n.fraudulent)||void 0===n?void 0:n.amount)}),(0,v.jsx)("td",{children:(0,p.m)(null==e?void 0:e.total_ivt)}),(0,v.jsxs)("td",{children:[null==e||null===(r=e.analytics)||void 0===r||null===(r=r.fraudulent)||void 0===r?void 0:r.percent,"%"]}),(0,v.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,v.jsx)("td",{children:(0,v.jsx)(l.default,{number:String((null==e||null===(i=e.analytics)||void 0===i||null===(i=i.fraudulent)||void 0===i?void 0:i.percent_change)||"").replaceAll("-",""),direction:(S=null==e||null===(s=e.analytics)||void 0===s||null===(s=s.fraudulent)||void 0===s?void 0:s.percent_change,Number(S)>0?"up":Number(S)<0?"down":"right"),hideText:!0})}),(0,v.jsx)(m.A,{AND:!A,children:(0,v.jsx)("td",{children:(0,p.m)(null==e?void 0:e.clicks_general_invalid)||"-"})}),(0,v.jsx)("td",{children:(0,p.m)(null==e||null===(u=e.analytics)||void 0===u||null===(u=u.total)||void 0===u?void 0:u.amount)}),(0,v.jsx)("td",{children:(0,p.m)(null==e?void 0:e.all_tracked_clicks)}),(0,v.jsxs)("td",{children:[(0,v.jsxs)("span",{children:[null==e||null===(f=e.anal
2ytics)||void 0===f||null===(f=f.estimated_spend)||void 0===f?void 0:f.currency_symbol,(0,p.m)(null==e||null===(g=e.analytics)||void 0===g||null===(g=g.estimated_spend)||void 0===g?void 0:g.cpc,2)]}),(0,v.jsx)(d.A,{groupedCols:!0,children:(0,v.jsxs)(o.default,{content:(0,c.A)("Estimated based on our click data combined with your latest CPC values."),children:[null==e||null===(y=e.analytics)||void 0===y||null===(y=y.estimated_spend)||void 0===y?void 0:y.currency_symbol,(0,p.m)(null==e||null===(h=e.analytics)||void 0===h||null===(h=h.estimated_spend)||void 0===h?void 0:h.amount,2)]})})]}),(0,v.jsx)("td",{children:(0,v.jsxs)("span",{children:[null==e||null===(x=e.analytics)||void 0===x||null===(x=x.estimated_spend)||void 0===x?void 0:x.currency_symbol,(0,p.m)(null==e||null===(b=e.analytics)||void 0===b||null===(b=b.estimated_spend)||void 0===b?void 0:b.actual_value,2)]})})]})]})}}))]})}},77223:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(99018),i=n(31085);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var s=["className"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=o.default;function p(e){var t=e.className,n=void 0===t?"":t,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s);return(0,i.jsx)("div",u(u({className:(0,a.classNames)(n,"height-xjm9jq1 backgroundColor-xgji3v1 width-xh8yej3")},r),{},{"data-testid":"divider"}))}f(".height-xjm9jq1{height:1px}",4e3),f(".backgroundColor-xgji3v1{background-color:var(--gray300-x1xk3734)}",3e3),f(".width-xh8yej3{width:100%}",4e3),p.displayName="Divider",t.default=p},77238:(e,t,n)=>{"use strict";e.exports=n.p+"30498b46cbfc32eba626.svg"},77402:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(14041),o=n(56197),a=n(62720),i=n(76449),l=n(28426),s=n(44949),c=n(89748),u=n(40699),d=n(83223),f=n(51836),p=n(73657),m=n(62161),g=n(27333),y=n(59250),h=n(32881),x=n(41574),b=n(31085);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j(){var e,t,n,v,A,S,O,j,k,E,N=w((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),I=N[0],P=N[1],T=w((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),C=T[0],R=T[1],M=w((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),L=M[0],D=M[1],B=(0,f.g)().campaign,U=w((0,p.useSearchParams)(),1)[0],F=U.get("network"),G=U.get("partner"),W=(0,g.R7)({sortKey:"campaign"}),z=W.filters,V=W.setFilters,q=(0,g.R7)({sortKey:"conversion_timestamp"}),K=q.filters,H=q.handlePagination,Y=q.setFilters,$=q.handleSort;function Z(e){var t='&group_by=campaign&campaign=["'.concat(encodeURIComponent(B),'"]'),n=Object.keys(e).filter(function(t){return t.startsWith("fraud_type.")&&e[t]}).map(function(e){return e.replace("fraud_type.","")});return n.length>0&&(t+='&fraud_type=["'.concat(n.join('","'),'"]')),t}var X=(0,g.st)("/analytics/conversions",_(_({},z),{},{startDate:new Date(I.min.date),endDate:new Date(I.max.date)}),Z),J=X.data,Q=X.isLoading,ee=Object.entries(u.zG).map(function(e){var t=w(e,2),n=t[0],r=t[1];return{label:(0,c.A)(r),shortLabel:(0,c.A)(r),type:"checkbox",name:n,value:!1}}),te=[{label:(0,c.A)("Fraud Type"),name:"fraud_type",type:"checkbox",queryTranslator:"arrayOfNames",queryKey:"type",options:ee}],ne=(0,g.st)("/analytics/conversions",{startDate:new Date(C.min.date),endDate:new Date(C.max.date),group_by:"campaign",page:1,limit:100,sortKey:"campaign",sortOrder:"asc"}),re=ne.data,oe=ne.isLoading,ae=(0,g.st)("/conversions/attributed",_(_({},K),{},{startDate:new Date(L.min.date),endDate:new Date(L.max.date)}),Z),ie=ae.data,le=ae.isLoading,se=null==J?void 0:J.result,ce=null==re||null===(e=re.result)||void 0===e||null===(e=e.overall)||void 0===e?void 0:e.overall_invalid_labels_percent;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s.A,{title:(0,c.A)(":campaign Overview",{campaign:B}),size:"sm",menuItems:[],subTitle:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(p.Link,{style:{color:"#7F56D9"},to:"/conversion-analytics/campaigns",children:(0,c.A)("Campaigns")})," ",B&&" / ",B]}),subText:"".concat(F," | ").concat(G),contentRight:(0,b.jsx)(x.A,{filters:K,dates:L,exportType:"campaign",exportValue:B,exportCategory:"conversions"})}),(0,b.jsxs)(l.A.Page,{type:"settings",children:[(0,b.jsx)(y.A,{title:(0,c.A)(":campaign Summary",{campaign:B}),isLoading:Q,total:{title:(0,c.A)("Total Conversions"),count:null==se||null===(t=se.overall)||void 0===t?void 0:t.overall_conversions},invalid:{title:(0,c.A)("Invalid Conversions"),count:null==se||null===(n=se.overall)||void 0===n?void 0:n.overall_conversions_invalid},ivt:{count:null==se||null===(v=se.overall)||void 0===v?void 0:v.overall_conversions_invalid_percent},setTime:P,time:I,filters:z,setFilters:V,filterConfig:te}),(0,b.jsx)(h.A,{data:(0,u.J8)(ce),isLoading:oe,setTime:R,time:C,title:(0,c.A)("Fraud Type")}),(0,b.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,b.jsx)("div",{className:"left",children:(0,b.jsx)(i.default,{filterConfig:te,initialValues:K,onFilterChange:Y})}),(0,b.jsx)(a.default.DatePicker,{value:[L.min.date,L.max.date],onRangeChange:function(e){return D(e)},selectedOption:L.rangeName,showCalenderIcon:!1,displayRangeText:!1})]}),(0,b.jsx)(m.A,{rows:null==ie||null===(A=ie.result)||void 0===A?void 0:A.data,isLoading:le,totalResults:null==ie||null===(S=ie.result)||void 0===S||null===(S=S.pagination)||void 0===S?void 0:S.total,totalPages:null==ie||null===(O=ie.result)||void 0===O||null===(O=O.pagination)||void 0===O?void 0:O.last_page,totalItems:null==ie||null===(j=ie.result)||void 0===j||null===(j=j.pagination)||void 0===j?void 0:j.total,pageNumber:null==ie||null===(k=ie.result)||void 0===k||null===(k=k.pagination)||void 0===k?void 0:k.current_page,handlePagination:H,handleSorting:$,sorting:{sortKey:K.sortKey,sortOrder:K.sortOrder},limit:null==ie||null===(E=ie.result)||void 0===E||null===(E=E.pagination)||void 0===E?void 0:E.limit,leftPinnedColumns:1,children:function(e){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{"data-sortable-id":"conversion_timestamp",children:(0,c.A)("Timestamp")}),(0,b.jsx)("th",{children:(0,c.A)("Fraud Type")})]})}),(0,b.jsxs)("tbody",{children:[(0,b.jsx)("td",{children:(null==e?void 0:e.conversion_timestamp)&&(0,d.GP)(e.conversion_timestamp,"MMM d, HH:mm")}
2),(0,b.jsx)("td",{children:(0,u.ic)(null==e?void 0:e.invalid_labels_counts).map(function(e){return(0,b.jsx)(o.default,{style:{display:"inline-block",marginRight:"12px",lineHeight:"24px"},colourName:"error",children:e},e)})})]})]})}})]})]})}},77480:(e,t,n)=>{"use strict";e.exports=n.p+"a64edad52e0910ffc799.svg"},77538:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(14041),o=n(9260),a=n(62720),i=n(55618),l=n(30021),s=n(89748),c=n(66773),u=n(24284),d=n(83223),f=n(88133),p=n(96182),m=n(77730),g=n(80111),y=n(31085);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const b=function(e){var t,n,x,b,v,A,_,S,w,O,j,k,E,N,I,P,T,C=e.filters,R=void 0===C?{}:C,M=h((0,m.A)(),1)[0],L=h((0,p.A)(),1)[0],D=h((0,g.A)(),1)[0],B=h((0,r.useState)(!1),2),U=B[0],F=B[1],G=h((0,r.useState)(""),2),W=G[0],z=G[1],V=h((0,r.useState)([]),2),q=V[0],K=V[1],H=(0,f.gC)("/protection_change_log/export","POST"),Y=(null==D||null===(t=D.dataFilterDates)||void 0===t||null===(t=t.max)||void 0===t?void 0:t.timestamp)||0,$=(null==D||null===(n=D.dataFilterDates)||void 0===n||null===(n=n.min)||void 0===n?void 0:n.timestamp)||0,Z=(null==D||null===(x=D.dataFilterDates)||void 0===x||null===(x=x.max)||void 0===x?void 0:x.localTimestamp)||0,X=(null==D||null===(b=D.dataFilterDates)||void 0===b||null===(b=b.min)||void 0===b?void 0:b.localTimestamp)||0;function J(){K([]),z(""),F(!1)}return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(o.default,{id:"protection-change-log-export-open",onClick:function(){return F(!0)},iconRight:["far","download"],"data-testid":"protection-change-log-export-button",children:(0,s.A)("Export")}),(0,y.jsxs)(i.default,{open:U,onClose:J,heading:(0,s.A)("Protection Change Log Export"),subtitle:(0,s.A)("Export protection change events to a CSV file"),children:[(0,y.jsxs)("div",{className:"p-4",children:[(0,y.jsxs)("div",{className:"mb-4",children:[(0,y.jsxs)(l.default,{preset:"formSectionTitle",children:[(0,s.A)("Sending to"),":"]}),(0,y.jsx)(a.default,{label:(0,s.A)("Enter email address"),name:"recipient_email",type:"email",onFormValue:function(e){z(e.value)},id:"protection-change-log-export-email-input",value:W,errors:q,showErrors:!0,style:{width:"60%"}})]}),(0,y.jsxs)(l.default,{preset:"formSectionTitle",as:"h8",className:"mt-4",children:[(0,s.A)("Export Summary"),":"]}),(0,y.jsxs)("div",{className:"mb-4 mt-4",children:[(0,y.jsxs)(l.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,s.A)("Workspace"),":"]}),(0,y.jsx)(l.default,{children:null==M||null===(v=M.selectedWorkspace)||void 0===v?void 0:v.name})]}),(0,y.jsxs)("div",{className:"mb-4 mt-4",children:[(0,y.jsxs)(l.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,s.A)("Date range"),":"]}),(0,y.jsxs)(l.default,{preset:"formSectionText",children:[(0,d.GP)(1e3*X,"dd/MM/yyyy")," ","-"," ",(0,d.GP)(1e3*Z,"dd/MM/yyyy")]})]}),(0,y.jsxs)("div",{className:"mb-4 mt-4 w-full",children:[(0,y.jsxs)(l.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,s.A)("Protection Status"),":"]}),(0,y.jsx)(l.default,{children:null!=R&&null!==(I=R.toStatus)&&void 0!==I&&null!==(I=I.protected)&&void 0!==I&&I.value?(0,s.A)("Protected"):null!=R&&null!==(P=R.toStatus)&&void 0!==P&&null!==(P=P.monitored)&&void 0!==P&&P.value?(0,s.A)("Monitored"):null!=R&&null!==(T=R.toStatus)&&void 0!==T&&null!==(T=T.disabled)&&void 0!==T&&T.value?(0,s.A)("Disabled"):(0,s.A)("All")})]}),(null===(A=D.selectedAwAccounts)||void 0===A?void 0:A.length)>0&&(0,y.jsxs)("div",{className:"mb-4 mt-4 w-full",children:[(0,y.jsxs)(l.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,s.A)("Accounts Filter"),":"]}),(0,y.jsxs)(l.default,{children:[null===(_=D.selectedAwAccounts)||void 0===_?void 0:_.length," ",1===(null===(S=D.selectedAwAccounts)||void 0===S?void 0:S.length)?(0,s.A)("account selected"):(0,s.A)("accounts selected")]})]}),(null===(w=R.account)||void 0===w||null===(w=w.contains)||void 0===w?void 0:w.value)&&(0,y.jsxs)("div",{className:"mb-4 mt-4 w-full",children:[(0,y.jsxs)(l.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,s.A)("Account Name or ID Contains"),":"]}),(0,y.jsx)(l.default,{children:null===(O=R.account)||void 0===O||null===(O=O.contains)||void 0===O?void 0:O.value})]}),(null===(j=R.campaign)||void 0===j||null===(j=j.contains)||void 0===j?void 0:j.value)&&(0,y.jsxs)("div",{className:"mb-4 mt-4 w-full",children:[(0,y.jsxs)(l.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,s.A)("Campaign Name or ID Contains"),":"]}),(0,y.jsx)(l.default,{children:null===(k=R.campaign)||void 0===k||null===(k=k.contains)||void 0===k?void 0:k.value})]}),(null===(E=R.userEmail)||void 0===E||null===(E=E.contains)||void 0===E?void 0:E.value)&&(0,y.jsxs)("div",{className:"mb-4 mt-4 w-full",children:[(0,y.jsxs)(l.default,{preset:"formSectionSubTitle",as:"h8",className:"mb-4",children:[(0,s.A)("User Email Contains"),":"]}),(0,y.jsx)(l.default,{children:(null===(N=R.userEmail)||void 0===N||null===(N=N.contains)||void 0===N?void 0:N.value)||(0,s.A)("All")})]})]}),(0,y.jsxs)("div",{className:"flex justify-end p-4 pt-0",children:[(0,y.jsx)(o.default,{className:"mr-3",onClick:J,preset:"outline","data-testid":"protection-change-log-export-cancel-button",children:(0,s.A)("Cancel")}),(0,y.jsx)(o.default,{id:"protection-change-log-export-submit",onClick:function(){var e,t,n,r,o,a,i,l,d,f=(0,c.A)("isEmail",W,(0,s.A)("Enter an email address"));if(f)K(f);else{K([]);var p={df_dmax:Y,df_dmin:$,recipient_email:W,platform:null==L||null===(e=L.selectedPlatform)||void 0===e?void 0:e.platform_name,workspace_context:-1===(null==M||null===(t=M.selectedWorkspace)||void 0===t?void 0:t.id)?"all":null==M||null===(n=M.selectedWorkspace)||void 0===n?void 0:n.id},m=null;null!=R&&null!==(r=R.toStatus)&&void 0!==r&&null!==(r=r.protected)&&void 0!==r&&r.value?m="protected":null!=R&&null!==(o=R.toStatus)&&void 0!==o&&null!==(o=o.monitored)&&void 0!==o&&o.value?m="monitored":null!=R&&null!==(a=R.toStatus)&&void 0!==a&&null!==(a=a.disabled)&&void 0!==a&&a.value&&(m="disabled"),m&&(p.to_status=m);var g=R["accounts.selection"]||[];g.length>0&&(p.df_customer_ids=g),null!==(i=R.account)&&void 0!==i&&null!==(i=i.contains)&&void 0!==i&&i.value&&(p.account=R.account.contains.value),null!==(l=R.campaign)&&void 0!==l&&null!==(l=l.contains)&&void 0!==l&&l.value&&(p.campaign=R.campaign.contains.value),null!==(d=R.userEmail)&&void 0!==d&&null!==(d=d.contains)&&void 0!==d&&d.value&&(p.user_email=R.userEmail.contains.value),H.mutate(p,{onSuccess:function(){(0,u.A)((0,s.A)("Your export is being prepared and will be with you shortly"),"success")},onError:function(){(0,u.A)((0,s.A)("Export failed to process"),"error")}}),J()}},"data-testid":"protection-change-log-export-submit-button",children:(0,s.A)("Export")})]})]})]})}}
2,77573:(e,t,n)=>{"use strict";n.d(t,{A:()=>y}),n(14041);var r=n(76449),o=n(28426),a=n(27805),i=n(89748),l=n(62161),s=n(36990),c=n(19863),u=n(40699),d=n(73657),f=n(27333),p=n(92523),m=n(41574),g=n(31085);function y(){var e,t,n,y,h=(0,f.R7)({sortKey:"percent_invalid"}),x=h.filters,b=h.handlePagination,v=h.setFilters,A=h.handleSort,_=(0,f.st)("/analytics/conversions",x,function(e){var t="&group_by=campaign";return e["campaign.contains"]&&(t+="&campaign_contains=".concat(e["campaign.contains"])),t}),S=_.data,w=_.isLoading,O=[{label:(0,i.A)("Campaign"),name:"campaign",type:"radio",options:[{label:(0,i.A)("contains"),name:"contains",type:"text"}]}];return(0,g.jsxs)(o.A.Page,{type:"overview",children:[(0,g.jsx)(a.default,{type:"overview",title:(0,i.A)("Affiliate Campaigns Conversion Analytics"),text:(0,i.A)("Monitor affiliate conversion quality across all of your campaigns"),contentRight:(0,g.jsx)(m.A,{filters:x,exportType:"campaign",exportCategory:"conversions",exportLevel:"summary"})}),(0,g.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,g.jsx)("div",{className:"left",children:(0,g.jsx)(r.default,{filterConfig:O,initialValues:x,onFilterChange:v})}),(0,g.jsx)(p.default,{})]}),(0,g.jsx)(l.A,{rows:null==S||null===(e=S.result)||void 0===e?void 0:e.data,isLoading:w,totalResults:null==S||null===(t=S.result)||void 0===t||null===(t=t.pagination)||void 0===t?void 0:t.total,totalPages:null==S||null===(n=S.result)||void 0===n||null===(n=n.pagination)||void 0===n?void 0:n.last_page,totalItems:null==S||null===(y=S.result)||void 0===y||null===(y=y.pagination)||void 0===y?void 0:y.total,pageNumber:x.page,handlePagination:b,handleSorting:A,sorting:{sortKey:x.sortKey,sortOrder:x.sortOrder},limit:x.limit,leftPinnedColumns:1,children:function(e){var t,n,r,o;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("th",{"data-sortable-id":"campaign",children:(0,i.A)("Campaigns")}),(0,g.jsx)("th",{"data-sortable-id":"total",children:(0,i.A)("Total Conversions")}),(0,g.jsx)("th",{"data-sortable-id":"fraudulent",children:(0,i.A)("Invalid Conversions")}),(0,g.jsx)("th",{"data-sortable-id":"percent_invalid",children:(0,i.A)("IVT%")}),(0,g.jsx)("th",{children:(0,i.A)("Top Reasons")}),(0,g.jsx)("th",{children:(0,i.A)("Occurrences")})]})}),(0,g.jsxs)("tbody",{children:[(0,g.jsxs)("td",{children:[(0,g.jsx)(d.Link,{to:"/conversion-analytics/campaigns/".concat(null==e?void 0:e.campaign_id,"?network=").concat(null==e?void 0:e.network,"&partner=").concat(null==e?void 0:e.partner),children:null==e?void 0:e.campaign}),(0,g.jsxs)(s.A,{header:!0,children:[null==e?void 0:e.network," ","|"," ",null==e?void 0:e.partner]})]}),(0,g.jsx)("td",{children:(0,c.m)(null==e?void 0:e.conversions_total)}),(0,g.jsx)("td",{children:(0,c.m)(null==e?void 0:e.conversions_fraudulent)}),(0,g.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,g.jsxs)("td",{children:[null===(t=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===t?void 0:t.topReason.name,(0,g.jsx)(s.A,{children:null===(n=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===n?void 0:n.secondReason.name})]}),(0,g.jsxs)("td",{children:[null===(r=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===r?void 0:r.topReason.value,(0,g.jsx)(s.A,{children:null===(o=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts))||void 0===o?void 0:o.secondReason.value})]})]})]})}})]})}},77659:(e,t,n)=>{"use strict";e.exports=n.p+"143d6ade908f9742d5f2.svg"},77730:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(36537),o=n(67218);function a(){return(0,r.fp)(o.A)}},77772:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=y(n(25751)),a=g(n(14041)),i=n(73657),l=n(99018),s=g(n(76969)),c=n(44146),u=n(18141),d=n(45647),f=y(n(79135)),p=n(96742),m=n(31085);function g(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;
2return(g=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function y(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}var x=["children","title","iconName","className","to","type","exact","isGoogle","isNotGoogle","isMeta","isNotMeta","isAffiliate","setWorkspaceContextOnClick"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=o.default;w(".display-x1lliihq{display:block}",3e3),w(".width-xh8yej3{width:100%}",4e3),w(".position-x1n2onr6{position:relative}",3e3),w(".display-x3nfvp2{display:inline-flex}",3e3),w(".alignItems-x6s0dn4{align-items:center}",3e3),w(".height-xn3w4p2{height:44px}",4e3),w(".paddingLeft-x1lqa7cf{padding-left:10px}",4e3),w(".paddingRight-xnuq7ks{padding-right:12px}",4e3),w(".marginBottom-x12nagc{margin-bottom:4px}",4e3),w(".backgroundColor-xjbqb8w{background-color:transparent}",3e3),w(".borderRadius-x12oqio5{border-radius:4px}",2e3),w(".fontWeight-xk50ysn{font-weight:500}",3e3),w(".fontSize-x1j61zf2{font-size:16px}",3e3),w(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),w(".backgroundColor-x1a33ojm:hover{background-color:var(--gray50-x1bw8p5w)}",3130),w(".textDecoration-x1lku1pv:hover{text-decoration:none}",2130),w(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),w(".display-x78zum5{display:flex}",3e3),w(".justifyContent-xl56j7k{justify-content:center}",3e3),w(".marginRight-x1db2dqx{margin-right:8px}",4e3),w(".fontSize-xosj86m{font-size:18px}",3e3),w(".height-xt7dq6l{height:auto}",4e3),w(".color-xqi5lc6{color:var(--black300-xmkl1o)}",3e3),w(".width-x17z2i9w{width:22px}",4e3),w(".flexShrink-x2lah0s{flex-shrink:0}",3e3),w(".marginRight-x1yf7rl7{margin-right:0}",4e3),w(".marginLeft-xj3b58b{margin-left:0}",4e3),w(".marginLeft-x8x9d4c{margin-left:auto}",4e3),w(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),w(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3),w(".overflow-xb3r6kr{overflow:hidden}",2e3),w(".transition-x17e1e4a{transition:max-height .3s ease}",2e3),w(".maxHeight-xnjgh8c{max-height:0}",4e3),w(".maxHeight-x1rq5m6k{max-height:500px}",4e3);var O={navItemContainer:{position:"position-x1n2onr6",display:"display-x3nfvp2",alignItems:"alignItems-x6s0dn4",height:"height-xn3w4p2",width:"width-xh8yej3",paddingLeft:"paddingLeft-x1lqa7cf",paddingRight:"paddingRight-xnuq7ks",marginBottom:"marginBottom-x12nagc",backgroundColor:"backgroundColor-xjbqb8w",borderRadius:"borderRadius-x12oqio5",fontWeight:"fontWeight-xk50ysn",fontSize:"fontSize-x1j61zf2",color:"color-x1jsblnb",":hover_backgroundColor":"backgroundColor-x1a33ojm",":hover_textDecoration":"textDecoration-x1lku1pv",$$css:"MenuNavItem/index.tsx:23"},active:{backgroundColor:"backgroundColor-xq18l50",$$css:"MenuNavItem/index.tsx:42"},icon:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",marginRight:"marginRight-x1db2dqx",fontSize:"fontSize-xosj86m",height:"height-xt7dq6l",color:"color-xqi5lc6",width:"width-x17z2i9w",flexShrink:"flexShrink-x2lah0s",$$css:"MenuNavItem/index.tsx:45"},compressedIcon:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",marginRight:"marginRight-x1yf7rl7",marginLeft:"marginLeft-xj3b58b",width:"width-x17z2i9w",flexShrink:"flexShrink-x2lah0s",$$css:"MenuNavItem/index.tsx:56"},submenu:{overflow:"overflow-xb3r6kr",transition:"transition-x17e1e4a",$$css:"MenuNavItem/index.tsx:76"},submenuHidden:{maxHeight:"maxHeight-xnjgh8c",$$css:"MenuNavItem/index.tsx:80"},submenuVisible:{maxHeight:"maxHeight-x1rq5m6k",$$css:"MenuNavItem/index.tsx:83"}};function j(e){var t=e.children,n=void 0===t?null:t,r=e.title,o=e.iconName,g=void 0===o?null:o,y=e.className,h=void 0===y?""
2:y,b=e.to,A=void 0===b?"#":b,S=e.type,w=void 0===S?"default":S,j=e.exact,k=void 0!==j&&j,E=e.isGoogle,N=e.isNotGoogle,I=e.isMeta,P=e.isNotMeta,T=e.isAffiliate,C=e.setWorkspaceContextOnClick,R=void 0!==C&&C,M=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,x),L=_((0,d.useSyncState)(),2),D=L[0],B=L[1],U=_((0,d.useWorkspacesState)(),2),F=U[0],G=U[1],W=_((0,d.usePlatformsState)(),2),z=W[0],V=W[1],q=_((0,d.usePermissionsState)(),2),K=q[0],H=q[1],Y=(0,i.useLocation)(),$=A+r,Z=(0,p.useSidebarContext)(),X=Z.activeSubItem,J=Z.setActiveSubItem,Q=Z.expandedSubMenu,ee=Z.setExpandedSubMenu,te=Z.isCompressed,ne=Z.menuIsHovered,re=(0,a.useRef)(null);function oe(){var e;return(e=k?Y.pathname===A:Y.pathname===A||Y.pathname.startsWith("".concat(A,"/")))&&J(null),e}(0,a.useEffect)(function(){oe()&&ee($)},[Y.pathname,$,ee]);var ae={isGoogle:E,isNotGoogle:N,isMeta:I,isNotMeta:P,isAffiliate:T};return null===n?(0,m.jsx)(c.AccessControl,v(v({},ae),{},{children:(0,m.jsx)("div",v(v({},{className:"display-x1lliihq width-xh8yej3 position-x1n2onr6","data-style-src":"MenuNavItem/index.tsx:18"}),{},{children:(0,m.jsxs)(i.Link,v(v({className:(0,l.classNames)(s.props(O.navItemContainer,oe()&&O.active).className,h,w),"aria-current":oe()?"page":void 0,to:A,onClick:function(){!function(){var e;if(!(!R||z.selectedPlatform&&F.selectedWorkspace)){var t=F.workspaces.find(function(e){return-1===e.id}),n=(0,u.getScopedPlatforms)(F.workspaces,t,z.allUserPlatforms,z.allAdminPlatforms),r=(0,u.getSelectedPlatform)(n),o=v(v({},K),{},{roleIdentifier:null!==(e=null==t?void 0:t.role)&&void 0!==e?e:K.accountRoleIdentifier});H(o),B(v(v({},D),{},{hasNoDataScope:(0,u.getHasNoDataScope)(o,F.workspaces,n,null==t?void 0:t.id)})),G(v(v({},F),{},{selectedWorkspace:t})),V(v(v({},z),{},{platforms:n,selectedPlatform:r}))}}(),ee(null)}},M),{},{children:[g&&(0,m.jsx)("div",v(v({},s.props(te&&!ne?[O.icon,O.compressedIcon]:O.icon)),{},{"data-testid":"menuNavItem-icon",children:(0,m.jsx)(f.default,{name:g})})),(!te||ne)&&(0,m.jsx)("span",v(v({},{className:"whiteSpace-xuxw1ft","data-style-src":"MenuNavItem/index.tsx:75"}),{},{children:r||""}))]}))}))})):(0,m.jsx)(c.AccessControl,v(v({},ae),{},{children:(0,m.jsxs)("div",v(v({},{className:"display-x1lliihq width-xh8yej3 position-x1n2onr6","data-style-src":"MenuNavItem/index.tsx:18"}),{},{children:[(0,m.jsxs)("button",v(v({type:"button",onClick:function(){null!==n&&ee(function(e){return e===$?null:$})},className:(0,l.classNames)(s.props(O.navItemContainer,null!==X&&null!=X&&X.split("---")[0]===$&&O.active).className,h,w)},M),{},{children:[g&&(0,m.jsx)("div",v(v({},s.props(te&&!ne?[O.icon,O.compressedIcon]:O.icon)),{},{"data-testid":"menuNavItem-icon",children:(0,m.jsx)(f.default,{name:g})})),(!te||ne)&&(0,m.jsx)("span",v(v({},{className:"whiteSpace-xuxw1ft","data-style-src":"MenuNavItem/index.tsx:75"}),{},{children:r||""})),(!te||ne)&&(0,m.jsx)("div",v(v({},{className:"display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k marginLeft-x8x9d4c fontSize-xosj86m width-x17z2i9w height-xt7dq6l color-xnx9fn3","data-style-src":"MenuNavItem/index.tsx:65"}),{},{"data-testid":"menuNavItem-dropdown-icon",children:(0,m.jsx)(f.default,{name:Q===$?["fas","chevron-up"]:["fas","chevron-down"]})}))]})),(0,m.jsx)("div",v(v({ref:re,"data-testid":"menuNavItem-submenu"},s.props(O.submenu,Q===$?O.submenuVisible:O.submenuHidden)),{},{"aria-expanded":Q===$?"true":"false",children:a.default.Children.map(n,function(e){return null!=e&&a.default.isValidElement(e)?a.default.cloneElement(e,{parentTitle:r,parentTo:A}):null})}))]}))}))}j.displayName="Sidebar.MenuNavItem",t.default=j},77994:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(60944),a=n(31085);const i=function(){var e=(0,r.R7)({}),t=e.filters,n=e.handlePagination,i=e.setFilters,l=e.handleSort;return(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:t,onFilterChange:i,dynamicQuery:"",handlePagination:n,handleSort:l})})}},78094:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.datum;return(0,a.jsxs)("div",s(s({},{className:"borderRadius-xur7f20 padding-x2g7vr0 background-x1h3gynt boxShadow-xm7jpje","data-style-src":"Tooltip/index.tsx:6"}),{},{children:[(0,a.jsx)("span",s(s({},{className:"height-x18gnavp width-x1fxhmyf borderRadius-x1f96onm display-x1rg5ohu marginRight-xaz8w3f","data-style-src":"Tooltip/index.tsx:23"}),{},{style:{backgroundColor:t.color}})),(0,a.jsx)("strong",s(s({},{className:"fontSize-xosj86m fontWeight-xk50ysn paddingRight-x1vvpot1 whitespace-x1q6r1km","data-style-src":"Tooltip/index.tsx:17"}),{},{children:t.name})),(0,a.jsxs)("span",{children:[t.value,"%"]})]}))};var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(31085);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=o.default;u(".borderRadius-xur7f20{border-radius:8px}",2e3),u(".padding-x2g7vr0{padding:var(--2-x17wbp3g)}",1e3),u(".background-x1h3gynt{background:var(--white-x3n8fk9)}",1e3),u(".boxShadow-xm7jpje{box-shadow:0 4px 6px -2px #0A0D1208}",3e3),u(".display-x78zum5{display:flex}",3e3),u(".flexDirection-xdt5ytf{flex-direction:column}",3e3),u(".justifyContent-xl56j7k{justify-content:center}",3e3),u(".fontSize-xosj86m{font-size:18px}",3e3),u(".fontWeight-xk50ysn{font-weight:500}",3e3),u(".paddingRight-x1vvpot1{padding-right:var(--2-x17wbp3g)}",4e3),u(".whitespace-x1q6r1km{whitespace:nowrap}",3e3),u(".height-x18gnavp{height:13px}",4e3),u(".width-x1fxhmyf{width:13px}",4e3),u(".borderRadius-x1f96onm{border-radius:50px}",2e3),u(".display-x1rg5ohu{display:inline-block}",3e3),u(".marginRight-xaz8w3f{margin-right:var(--2-x17wbp3g)}",4e3)},78395:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(62720),s=n(1781),c=n(55618),u=n(30021),d=n(79135),f=n(90405),p=n(27805),m=n(62161),g=n(89748),y=n(99018),h=n(93033),x=n(2043),b=n(10430),v=n(24284),A=n(31085);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function S(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){j(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function j(e,t,n){return(t=function(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var I=(0,y.createUseStyles)(function(){return{platformIcon:{marginRight:12,width:24,height:24}}});function P(e){var t=e.onCreatePlatform,n=e.onClose,o=e.supportedPlatforms,a=e.configuredPlatforms,y=I(),_={auto_cpc_avg:0,avg_cpc_usd_cent:0,code_name:"google",descriptive_name:"Google",configuration_name:"",platform_parameter:"",protection_status:2,placeholder:"",platform_id:2,max_protected_configurations:0,protected_configurations:0,max_configurations:0,sources:[],click_cap:1,click_cap_protection_enabled:!1,click_cap_redirect_url:"",conversion_cap:null,isp_exclusion_list:[]},w=k((0,r.useState)(_),2),j=w[0],E=w[1],N=k((0,r.useState)(""),2),P=N[0],T=N[1],C=k((0,r.useState)(""),2),R=C[0],M=C[1],L=k((0,r.useState)([]),2),D=L[0],B=L[1];function U(){E(_),T(""),n()}function F(e){E(O(O({},j),{},{protection_status:e}))}return(0,r.useEffect)(function(){var e=function(){var e=[];return null!=o&&o.data&&null!=a&&a.data&&o.data.forEach(function(t){t.max_configurations>t.all_configurations&&e.push(O(O({},t),{},{label:t.descriptive_name,value:t.code_name}))}),e}();B(e),e.length>0&&(0,b.A)(j,_)&&E(O(O(O(O({},j),{},{platform_parameter_required:e[0].platform_parameter_required,descriptive_name:e[0].descriptive_name,configuration_name:"",code_name:e[0].code_name,platform_id:e[0].platform_id,placeholder:e[0].placeholder,max_protected_configurations:e[0].max_protected_configurations,protected_configurations:e[0].protected_configurations,max_configurations:e[0].max_configurations,all_configurations:e[0].all_configurations,auto_cpc_avg:0,avg_cpc_usd_cent:0,protection_status:1},e[0].event_types?{event_types:e[0].event_types}:null),e[0].default_event_type?{default_event_type:e[0].default_event_type}:null),{},{redirect_url:"",click_cap:1,click_cap_protection_enabled:!1,click_cap_redirect_url:"",conversion_cap:null,isp_exclusion_list:[]}))},[o,a,j]),0===D.length?(0,A.jsxs)("div",{children:[(0,A.jsx)(p.default,{title:(0,g.A)("Add Platform")}),(0,A.jsx)(u.default,{preset:"formSectionText",className:"mb-3",children:(0,g.A)("There are no more platforms available to add")})]}):(0,A.jsxs)("div",{children:[(0,A.jsxs)(c.default.Section,{children:[(0,A.jsxs)("div",{className:"v-align-center mb-8",children:[(0,A.jsx)(f.A,{platformName:j.code_name,className:y.platformIcon}),(0,A.jsx)(u.default,{preset:"formSectionTitle",children:j.descriptive_name})]}),(0,A.jsx)(l.default.Select,{label:(0,g.A)("Select Platform"),className:"mb-3",id:"platform-select","aria-label":"Select Platform","data-testId":"platform-select",options:D,onChange:function(e){E(O(O(O(O({},j),{},{descriptive_name:e.label,configuration_name:"",platform_parameter:"",code_name:e.value,platform_parameter_required:o.data.find(function(t){return t.code_name===e.value}).platform_parameter_required,platform_id:o.data.find(function(t){return t.code_name===e.value}).platform_id,placeholder:o.data.find(function(t){return t.code_name===e.value}).placeholder,max_protected_configurations:o.data.find(function(t){return t.code_name===e.value}).max_protected_configurations,protected_configurations:o.data.find(function(t){return t.code_name===e.value}).protected_configurations,max_configurations:o.data.find(function(t){return t.code_name===e.value}).max_configurations,all_configurations:o.data.find(function(t){return t.code_name===e.value}).all_configurations},o.data.find(function(t){return t.code_name===e.value}).default_event_type?{default_event_type:o.data.find(function(t){return t.code_name===e.value}).default_event_type}:null),o.data.find(function(t){return t.code_name===e.value}).event_types?{event_types:o.data.find(function(t){return t.code_name===e.value}).event_types}:null),{},{redirect_url:"",click_cap:1,click_cap_protection_enabled:!1,click_cap_redirect_url:"",conversion_cap:null,isp_exclusion_list:[]})),T("")},value:{label:j.descriptive_name,value:j.code_name,platform_id:j.platform_id}}),(0,A.jsx)(l.default,{label:(0,g.A)("Name"),value:j.configuration_name,"aria-label":(0,g.A)("Name"),"data-testid":"create-configuration-name-input",onChange:function(e){return E(O(O({},j),{},{configuration_name:e.target.value}))},className:"mb-5"})]}),(0,A.jsx)(c.default.Section,{heading:(0,g.A)("Auto Calculate CPC"),subtitle:(0,g.A)("When enabled platforms with 0 entered for CPC will use the average of positive values from other platforms"),children:(0,A.jsx)(l.default.Checkbox,{"data-testid":"create-auto-calculate-cpc-checkbox","aria-label":(0,g.A)("Auto Calculate CPC"),className:"mb-5",value:!!j.auto_cpc_avg,onChange:function(e){E(O(O({},j),{},{auto_cpc_avg:e.target.checked,avg_cpc_usd_cent:0}))}})}),(0,A.jsx)(c.default.Section,{heading:(0,g.A)("Average cost per click"),subtitle:(0,g.A)("The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50) and used to calculate ad spend"),children:(0,A.jsxs)("div",{className:"flex items-center mb-5",children:[(0,A.jsx)(d.default,{name:["far","circle-d
2ollar"],className:"mr-3"}),(0,A.jsx)(l.default,{"data-testId":"create-avg-cpc-input","aria-label":(0,g.A)("Average cost per click"),value:j.avg_cpc_usd_cent,onChange:function(e){return E(O(O({},j),{},{avg_cpc_usd_cent:e.target.value,auto_cpc_avg:!1}))}})]})}),j.platform_parameter_required&&(0,A.jsx)(c.default.Section,{heading:(0,g.A)("Platform Parameter"),subtitle:(0,g.A)("Custom platform parameter for the mplat tracking script. (Placeholders show order of parameters)"),children:(0,A.jsx)(l.default,{"data-testId":"create-platform-parameter-input","aria-label":(0,g.A)("Platform Parameter"),value:j.platform_parameter||"",placeholder:j.placeholder,onChange:function(e){return E(O(O({},j),{},{platform_parameter:e.target.value}))}})}),"reddit"===j.code_name&&j.event_types&&(0,A.jsx)(c.default.Section,{heading:(0,g.A)("Event Type"),subtitle:(0,g.A)("The event type which will trigger the audience event on the mplat tracking script"),children:(0,A.jsx)(l.default.Select,{name:"event_types",options:j.event_types.map(function(e){return{label:e,value:e}}),"aria-label":(0,g.A)("Select Event Type"),"data-testId":"event-type-select",onChange:function(e){return E(O(O({},j),{},{default_event_type:e.value}))},placeholder:(0,g.A)("Select an event type"),value:{label:j.default_event_type,value:j.default_event_type}})}),(0,A.jsxs)(c.default.Section,{heading:(0,g.A)("Protection Status"),subtitle:(0,g.A)("Select protection status"),children:[(0,A.jsx)(h.A,{isNotTrialStatus:!0,orIsImpersonating:!0,children:(j.max_protected_configurations>j.protected_configurations||2===j.protection_status)&&(0,A.jsxs)("div",{className:"flex items-center mb-3",children:[(0,A.jsx)("button",{"data-testid":"create-protect-protection-status-radio",type:"button",title:(0,g.A)("Protect"),onClick:function(){return F("2")},children:(0,A.jsx)(l.default.Radio,{value:"2",formValue:j.protection_status.toString(),ariaLabel:(0,g.A)("Protect")})}),(0,A.jsxs)("div",{className:"ml-3",children:[(0,A.jsx)(u.default,{preset:"formSectionTitle",children:(0,g.A)("Protect")}),(0,A.jsx)(u.default,{preset:"formSectionSubTitle",children:(0,g.A)("Lunio will actively protect this platform by investigating suspicious behaviour and blocking any sources we believe to be inauthentic")}),"affiliate"===j.code_name&&(0,A.jsx)(l.default,{"data-testId":"create-add-domain-input","aria-label":(0,g.A)("Add Redirect URL"),label:(0,g.A)("Redirect URL"),required:!0,value:"2"===String(j.protection_status)?j.redirect_url:"",onChange:function(e){return E(O(O({},j),{},{redirect_url:e.target.value}))}})]})]})}),(0,A.jsxs)("div",{className:"flex items-center mb-3",children:[(0,A.jsx)("button",{"data-testid":"create-monitor-protection-status-radio",type:"button",onClick:function(){return F("1")},title:(0,g.A)("Monitor"),children:(0,A.jsx)(l.default.Radio,{value:"1",formValue:j.protection_status.toString(),ariaLabel:(0,g.A)("Monitor")})}),(0,A.jsxs)("div",{className:"ml-3",children:[(0,A.jsx)(u.default,{preset:"formSectionTitle",children:(0,g.A)("Monitor")}),(0,A.jsx)(u.default,{preset:"formSectionSubTitle",children:(0,g.A)("Lunio will monitor this platform for suspicious behaviour but will not actively block any traffic")})]})]})]}),"affiliate"===j.code_name&&(0,A.jsxs)(c.default.Section,{heading:"".concat("2"===j.protection_status.toString()?(0,g.A)("Protected"):(0,g.A)("Monitored")," ").concat((0,g.A)("Configuration")),children:[(0,A.jsxs)("div",{className:"flex mb-3",children:[(0,A.jsx)("div",{className:"mr-2",children:(0,A.jsx)(l.default.Toggle,{name:"conversion_cap_protection_enabled",value:j.conversion_cap>0,onFormValue:function(){E(O(O({},j),{},{conversion_cap:j.conversion_cap?null:1}))}})}),(0,A.jsxs)("div",{className:"mb-6 w-full",children:[(0,A.jsx)(u.default,{className:"mb-1",preset:"formLabel",children:(0,g.A)("Conversion Threshold")}),j.conversion_cap>0&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(l.default,{value:j.conversion_cap,"aria-label":(0,g.A)("Click Capping"),"data-testid":"create-click_cap-input",type:"number",onChange:function(e){var t=e.target.value;/^\d+$/.test(t)&&"0"!==t&&E(O(O({},j),{},{conversion_cap:t}))},className:"mb-2"}),(0,A.jsx)(u.default,{preset:"subText",children:(0,g.A)("We will flag when users attempt more than :n :conversionsPlural per 24 hours",{n:j.conversion_cap,conversionsPlural:j.conversion_cap>
21?(0,g.A)("conversions"):(0,g.A)("conversion")})})]})]})]}),(0,A.jsx)("div",{children:(0,A.jsxs)("div",{className:"flex mb-5",children:[(0,A.jsx)("div",{className:"mr-2",children:(0,A.jsx)(l.default.Toggle,{name:"click_cap_protection_enabled",value:j.click_cap_protection_enabled,onFormValue:function(){E(O(O({},j),{},{click_cap_protection_enabled:!j.click_cap_protection_enabled}))}})}),(0,A.jsxs)("div",{className:"w-full",children:[(0,A.jsxs)("div",{children:[(0,A.jsx)(u.default,{className:"mb-1",preset:"formLabel",children:(0,g.A)("Click Capping")}),(0,A.jsx)(u.default,{preset:"subText",className:"mb-2",children:(0,g.A)("Limit the number of clicks from a single user.")}),j.click_cap_protection_enabled&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(l.default,{value:j.click_cap,"aria-label":(0,g.A)("Click Capping"),"data-testid":"create-click_cap-input",type:"number",onChange:function(e){var t=e.target.value;/^\d+$/.test(t)&&"0"!==t&&E(O(O({},j),{},{click_cap:t}))},className:"mb-2"}),(0,A.jsx)(u.default,{preset:"subText",children:(0,g.A)("Users are limited to :n :clicksPlural per 24 hours",{n:j.click_cap,clicksPlural:j.click_cap>1?(0,g.A)("clicks"):(0,g.A)("click")})})]})]}),j.click_cap_protection_enabled&&(0,A.jsxs)("div",{className:"mt-4",children:[(0,A.jsx)(u.default,{className:"mb-1",preset:"formLabel",children:(0,g.A)("Click Capping Redirection URL")}),(0,A.jsx)(u.default,{className:"mb-2",preset:"subText",children:(0,g.A)("Define where users who exceed click cap should be redirected to.")}),(0,A.jsx)(l.default,{value:j.click_cap_redirect_url,"aria-label":(0,g.A)("Click Capping Redirection URL"),"data-testid":"create-click_cap_redirect_url-input",placeholder:"https://example.com",onChange:function(e){return E(O(O({},j),{},{click_cap_redirect_url:e.target.value}))},className:"mb-2"}),(0,A.jsx)(u.default,{preset:"subText",children:(0,g.A)("Users are limited to :n :clicksPlural per 24 hours",{n:j.click_cap,clicksPlural:j.click_cap>1?(0,g.A)("clicks"):(0,g.A)("click")})})]})]})]})})]}),(0,A.jsxs)(c.default.Section,{heading:(0,g.A)("Add Domains to this Platform"),subtitle:(0,g.A)("Paste the full URL from your browser, including any subdomain or path. e.g. https://www.website.com, https://shop.website.com, https://website.com/us. Domains must match exactly, website.com will not capture www.website.com."),children:[(0,A.jsxs)("div",{className:"flex justify-between mt-4 mb-3",children:[(0,A.jsx)(l.default,{"data-testId":"create-add-domain-input","aria-label":(0,g.A)("Add Domain URL"),value:P,onChange:function(e){return T(e.target.value)}}),(0,A.jsx)(i.default,{className:"ml-2",iconRight:"plus",onClick:function(){return P?j.sources.includes(P)?((0,v.A)((0,g.A)("That domain has been added already"),"error"),null):(0,x.Ay)({isURL:!0},P).length>0?((0,v.A)((0,g.A)("The domain you are trying to add must be a valid URL"),"error"),null):(E(O(O({},j),{},{sources:[].concat(S(j.sources),[P])})),T(""),null):null},"data-testid":"create-add-domain-button",children:(0,g.A)("Add Domain")})]}),j.sources.length>0&&(0,A.jsx)(m.A,{rows:j.sources.map(function(e){return{domain:e}}),isLoading:!1,totalPages:1,pageNumber:1,limit:20,leftPinnedColumns:1,children:function(e){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{children:(0,g.A)("Domain URL")}),(0,A.jsx)("th",{})]})}),(0,A.jsxs)("tbody",{children:[(0,A.jsx)("td",{children:null==e?void 0:e.domain}),(0,A.jsx)("td",{style:{textAlign:"right"},children:(0,A.jsx)(s.default,{content:(0,g.A)("Remove Domain URL"),children:(0,A.jsx)(i.default,{"data-testid":"remove-domain-button-".concat(null==e?void 0:e.domain),onClick:function(){return t=null==e?void 0:e.domain,void E(O(O({},j),{},{sources:j.sources.filter(function(e){return e!==t})}));var t},"aria-label":(0,g.A)("Remove Domain"),iconRight:["far","minus"],preset:"outline",size:"sm"})})})]})]})}})]}),"affiliate"===j.code_name&&(0,A.jsxs)(c.default.Section,{heading:(0,g.A)("Blocklists"),children:[(0,A.jsxs)("div",{className:"flex justify-between mt-4 mb-3",children:[(0,A.jsx)(l.default,{"data-testId":"add-isp-input","aria-label":(0,g.A)("Add ISP"),placeholder:(0,g.A)("Type ISP here"),value:R,onChange:function(e){return M(e.target.value)}}),(0,A.jsx)(i.default,{className:"ml-2",iconRight:"plus",onClick:function(){return R?j.isp_exclusion_list.includes(R)?((0,v.A)((0,g.A)("That ISP has been added already"),"error"),null):/^[a-zA-Z\s&]+$/.test(R)?j.isp_exclusion_list.length>=40?((0,v.A)((0,g.A)("You can only add up to 40 ISP records"),"error"),null):(E(O(O({},j),{},{isp_exclusion_list:[].concat(S(j.isp_exclusion_list),[R])})),M(""),null):((0,v.A)((0,g.A)("The ISP you are trying to add must be a valid name"),"error"),null):null},"data-testid":"create-add-domain-button",children:(0,g.A)("Add ISP")})]}),(0,A.jsx)(u.default,{preset:"subText",className:"mb-4",children:(0,g.A)("Type a valid ISP into the input then click Add ISP.")}),j.isp_exclusion_list.length>0&&(0,A.jsx)(m.A,{rows:j.isp_exclusion_list.map(function(e){return{isp:e}}),isLoading:!1,totalPages:1,pageNumber:1,limit:20,leftPinnedColumns:1,children:function(e){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{children:(0,g.A)("Device ISP")}),(0,A.jsx)("th",{})]})}),(0,A.jsxs)("tbody",{children:[(0,A.jsx)("td",{children:null==e?void 0:e.isp}),(0,A.jsx)("td",{style:{textAlign:"right"},children:(0,A.jsx)(s.default,{content:(0,g.A)("Remove ISP URL"),children:(0,A.jsx)(i.default,{"data-testid":"remove-isp-button-".concat(null==e?void 0:e.isp),onClick:function(){return t=null==e?void 0:e.isp,void E(O(O({},j),{},{isp_exclusion_list:j.isp_exclusion_list.filter(function(e){return e!==t})}));var t},"aria-label":(0,g.A)("Remove ISP"),iconRight:["far","minus"],preset
2:"outline",size:"sm"})})})]})]})}})]}),(0,A.jsxs)("div",{className:"flex flex--justify-end mt-10",children:[(0,A.jsx)(i.default,{"data-testid":"cancel-create-platform-button",preset:"outline",className:"mr-3",onClick:function(){U()},children:(0,g.A)("Cancel")}),(0,A.jsx)(i.default,{"data-testid":"confirm-create-platform-save-button",onClick:function(){return function(){if(!(function(){var e=[],t=(0,x.Ay)({isDecimal:!0},j.avg_cpc_usd_cent);if(t.length>0&&(e.push(t),(0,v.A)((0,g.A)("Average cost per click must be a number"),"error"),E(O(O({},j),{},{avg_cpc_usd_cent:""}))),0===j.configuration_name.length&&(e.push({ruleName:"isNotBlank",userMessage:"You must give a name to this configuration"}),(0,v.A)((0,g.A)("You must give a name to this configuration"),"error")),a.data.find(function(e){return e.configuration_name===j.configuration_name&&e.code_name===j.code_name})&&(e.push({ruleName:"isUnique",userMessage:"This configuration name is already in use"}),(0,v.A)((0,g.A)("This name is already in use"),"error")),"affiliate"===j.code_name&&"2"===String(j.protection_status)){""!==j.redirect_url&&void 0!==j.redirect_url||(e.push({ruleName:"isNotBlank",userMessage:"Redirect URL must be a valid URL"}),(0,v.A)((0,g.A)("Redirect URL must be a valid URL"),"error"));var n=(0,x.Ay)({isURL:!0},j.redirect_url);n.length>0&&(e.push.apply(e,S(n)),(0,v.A)((0,g.A)("The domain you are trying to add must be a valid URL"),"error"))}var r=a.data.filter(function(e){return e.platform_id===j.platform_id});if(0===j.sources.length&&r.length>0&&(e.push({ruleName:"isNotBlank",userMessage:"You must have at least one domain URL"}),(0,v.A)((0,g.A)("You must have at least one domain URL"),"error")),j.click_cap_protection_enabled&&"affiliate"===j.code_name)if(j.click_cap_redirect_url){var o=(0,x.Ay)({isURL:!0},j.click_cap_redirect_url);(o.length>0||!/^(https?:\/\/)/.test(j.click_cap_redirect_url))&&(e.push.apply(e,S(o)),(0,v.A)((0,g.A)("Click Capping Redirection URL must be a valid URL"),"error"))}else e.push({ruleName:"isNotBlank",userMessage:"Click Capping Redirection URL cannot be blank"}),(0,v.A)((0,g.A)("Click Capping Redirection URL cannot be blank"),"error");return e}().length>0)){var e=O({},j);"affiliate"!==e.code_name?(delete e.click_cap,delete e.click_cap_protection_enabled,delete e.click_cap_redirect_url):e.click_cap_protection_enabled?e.click_cap=parseInt(e.click_cap,10):(e.click_cap=null,e.click_cap_redirect_url=null),parseInt(e.conversion_cap,10)>=0&&(e.conversion_cap=parseInt(e.conversion_cap,10)),""!==e.redirect_url&&void 0!==e.redirect_url||delete e.redirect_url,t(O(O({},e),{},{avg_cpc_usd_cent:parseInt(e.avg_cpc_usd_cent,10),auto_cpc_avg:e.auto_cpc_avg?1:0,protection_status:parseInt(e.protection_status,10)},e.default_event_type?{event_type:e.default_event_type}:null)),U(),n()}}()},children:(0,g.A)("Confirm")})]})]})}P.propTypes={onCreatePlatform:a().func.isRequired,onClose:a().func.isRequired,supportedPlatforms:a().object.isRequired,configuredPlatforms:a().object.isRequired};const T=P},78480:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(31085);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var l=["children","className","label"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=o.default;function f(e){var t=e.children,n=void 0===t?null:t,r=e.className,o=void 0===r?"":r,i=e.label,s=void 0===i?"":i,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l);return(0,a.jsxs)("div",c(c(c({className:o},{className:"position-x1n2onr6 width-xeq5yr9","data-style-src":"FloatingLabel/index.tsx:6"}),u),{},{children:[(0,a.jsx)("div",c(c({},{className:"position-x10l6tqk top-x9gwk0z right-xhq1jkn backgroundColor-x1q72j15 color-xf72ejy borderRadius-x1xwekrv paddingLeft-x163pfp paddingRight-xy13l1i height-xxk0z11 display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k fontSize-xfifm61 fontWeight-x1s688f textTransform-xtvhhri","data-style-src":"FloatingLabel/index.tsx:10"}),{},{children:s})),n]}))}d(".position-x1n2onr6{position:relative}",3e3),d(".width-xeq5yr9{width:fit-content}",4e3),d(".position-x10l6tqk{position:absolute}",3e3),d(".top-x9gwk0z{top:-17px}",4e3),d(".right-xhq1jkn{right:-24px}",4e3),d(".backgroundColor-x1q72j15{background-color:var(--error600-x1indqeg)}",3e3),d(".color-xf72ejy{color:var(--white-x3n8fk9)}",3e3),d(".borderRadius-x1xwekrv{border-radius:100px}",2e3),d(".paddingLeft-x163pfp{padding-left:8px}",4e3),d(".paddingRight-xy13l1i{padding-right:8px}",4e3),d(".height-xxk0z11{height:24px}",4e3),d(".display-x78zum5{display:flex}",3e3),d(".alignItems-x6s0dn4{align-items:center}",3e3),d(".justifyContent-xl56j7k{justify-content:center}",3e3),d(".fontSize-xfifm61{font-size:12px}",3e3),d(".fontWeight-x1s688f{font-weight:600}",3e3),d(".textTransform-xtvhhri{text-transform:uppercase}
2",3e3),f.displayName="FloatingLabel",t.A=f},78484:(e,t,n)=>{"use strict";t.A=void 0;var r=i(n(25751)),o=i(n(38222)),a=n(31085);function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=r.default;function f(e){var t,n,r=e.name,i=void 0===r?"":r,l=null!==(t=null==i?void 0:i[0])&&void 0!==t?t:"",s=null!==(n=null==i?void 0:i.slice(-1))&&void 0!==n?n:"";return(0,a.jsx)("div",c(c({},{className:"display-x1rg5ohu height-x1vqgdyp width-x100vrsf borderRadius-xur7f20 color-x1jsblnb textAlign-x2b8uid lineHeight-x1cpheol fontSize-x1j61zf2 flexShrink-x2lah0s marginRight-x1wsuqlk","data-style-src":"WorkspaceIcon/index.tsx:7"}),{},{style:{backgroundColor:(0,o.default)(s)},children:l}))}d(".display-x1rg5ohu{display:inline-block}",3e3),d(".height-x1vqgdyp{height:40px}",4e3),d(".width-x100vrsf{width:40px}",4e3),d(".borderRadius-xur7f20{border-radius:8px}",2e3),d(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),d(".textAlign-x2b8uid{text-align:center}",3e3),d(".lineHeight-x1cpheol{line-height:40px}",3e3),d(".fontSize-x1j61zf2{font-size:16px}",3e3),d(".flexShrink-x2lah0s{flex-shrink:0}",3e3),d(".marginRight-x1wsuqlk{margin-right:12px}",4e3),f.displayName="WorkspaceIcon",t.A=f},78661:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(25751))&&r.__esModule?r:{default:r}).default;o(".display-x78zum5{display:flex}",3e3),o(".alignItems-x6s0dn4{align-items:center}",3e3),o(".gap-x1jnr06f{gap:4px}",2e3),o(".borderRadius-xgqmno8{border-radius:16px}",2e3),o(".backgroundColor-x1itpvea{background-color:var(--oldBrand50-x1t4s9vw)}",3e3),o(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3),o(".height-x17rw0jw{height:22px}",4e3),o(".fontWeight-xk50ysn{font-weight:500}",3e3),o(".fontSize-x1j6dyjg{font-size:11px}",3e3),o(".paddingLeft-x163pfp{padding-left:8px}",4e3),o(".paddingRight-xy13l1i{padding-right:8px}",4e3),o(".border-x1onvrke{border:1px solid var(--oldBrand300-x1eifvzy)}",1e3),o(".cursor-xt0e3qv{cursor:default}",3e3),o(".backgroundColor-x1mcq17q:hover{background-color:var(--oldBrand100-x1o59ms7)}",3130),o(".cursor-x1ypdohk{cursor:pointer}",3e3),o(".marginLeft-x16vho4v{margin-left:6px}",4e3),t.default={badgeContainer:{display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",gap:"gap-x1jnr06f",rowGap:null,columnGap:null,$$css:"styles/sharedActiveFilterBadgeStyles.ts:5"},filterButton:{borderRadius:"borderRadius-xgqmno8",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"backgroundColor-x1itpvea",color:"color-x14ptq3k",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",height:"height-x17rw0jw",fontWeight:"fontWeight-xk50ysn",fontSize:"fontSize-x1j6dyjg",paddingLeft:"paddingLeft-x163pfp",paddingRight:"paddingRight-xy13l1i",paddingInlineStart:null,paddingInlineEnd:null,border:"border-x1onvrke",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,cursor:"cursor-xt0e3qv",":hover_backgroundColor":"backgroundColor-x1mcq17q",$$css:"styles/sharedActiveFilterBadgeStyles.ts:10"},closeIcon:{cursor:"cursor-x1ypdohk",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",marginLeft:"marginLeft-x16vho4v",marginInlineStart:null,marginInlineEnd:null,color:"color-x14ptq3k",$$css:"styles/sharedActiveFilterBadgeStyles.ts:27"}}},79106:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(14041),o=n(39067),a=n.n(o),i=n(89748),l=n(66773),s=n(24284),c=n(9260),u=n(62720),d=n(13571),f=n(30021),p=n(99018),m=n(88133),g=n(31085);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A=(0,p.createUseStyles)(function(e){return{content:{fontWeight:"normal"},subcontent:{marginTop:e.spacing[3]},button:{marginRight:e.spacing[2]},colourBlock:{marginTop:24,width:"100%",padding:16,borderRadius:8,backgroundColor:e.colors.grey[50]}}});function _(e){var t=e.selectedAccounts,n=void 0===t?[]:t,o=(null==n?void 0:n.length)||(0,i.A)("all"),a=b((0,r.useState)(!1),2),p=a[0],y=a[1],v=b((0,r.useState)("website"),2),_=v[0],S=v[1],w=b((0,r.useState)(!1),2),O=w[0],j=w[1],k=b((0,r.useState)(""),2),E=k[0],N=k[1],I=b((0,r.useState)([]),2),P=I[0],T=I[1],C=A(),R=(0,m.gC)("/placement/blacklist/add","POST");function M(){N(""),S("website"),T([])}return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(c.default,{id:"add-ip-to-exclusions-button-open",onClick:function(){return y(!0)},preset:"outline",iconRight:["far","download"],"data-testid":"exclusion-button",className:C.button,children:(0,i.A)("Add Placement")}),(0,g.jsxs)(d.default,{open:p,onClose:function(){return y(!1)},className:C.content,children:[(0,g.jsx)(d.default.Header,{title:(0,i.A)("Add Placement Exclusions")}),(0,g.jsxs)(d.default.Content,{children:[(0,g.jsx)(f.default,{preset:"formSectionTitle",as:"h6",className:"mb-3",children:(0,i.A)("You have selected :count Google account:s",{count:o,s:o>1||"all"===o?"s":""})}),(0,g.jsx)(u.default,{name:"ip_address",type:"text",onFormValue:function(e){N(e.value)},id:"placement-to-exclude-input","data-testId":"placement-to-exclude-input",placeholder:"website"===_?(0,i.A)("Enter Domain or Subdomain"):"iphone"===_?(0,i.A)("Enter Apple Store Connect App ID"):"android"===_?(0,i.A)("Enter Android Bundle ID"):"",value:E,errors:P,showErrors:!0}),(0,g.jsxs)("div",{className:"mb-6 mt-4",children:[(0,g.jsx)("div",{className:"mb-2",children:(0,g.jsx)(u.default.Radio,{name:"applyTo",value:"website",formValue:_,onChange:function(){return S("website")},label:(0,i.A)("Website")})}),(0,g.jsx)("div",{className:"mb-2",children:(0,g.jsx)(u.default.Radio,{name:"applyTo",value:"iphone",formValue:_,onChange:function(){return S("iphone")},label:(0,i.A)("iPhone app")})}),(0,g.jsx)("div",{className:"mb-2",children:(0,g.jsx)(u.default.Radio,{name:"applyTo",value:"android",formValue:_,onChange:function(){return S("android")},label:(0,i.A)("Android app")})})]}),(0,g.jsxs)(f.default,{className:C.subcontent,children:[(0,g.jsx)("strong",{children:(0,i.A)("Examples")})," ",(0,g.jsx)("br",{}),(0,i.A)("Website"),": example.com, sub-domain.example.com"," ",(0,g.jsx)("br",{}),(0,i.A)("iPhone app"),": 1234567890"," ",(0,g.jsx)("br",{}),(0,i.A)("Android app"),": com.example.myapp"," "]}),(0,g.jsx)(f.default,{className:C.colourBlock,children:(0,i.A)("Google allows a maximum of 65,000 Placement Exclusions at Account Level. Manually adding placements may remove placements added by Lunio.")})]}),(0,g.jsxs)(d.default.Actions,{children:[(0,g.jsx)(c.default,{id:"add-ip-to-exclusions-button-cancel",onClick:function(){y(!1),M()},preset:"outline","data-testid":"exclusion-close-button",children:(0,i.A)("Cancel")}),(0,g.jsx)(c.default,{id:"add-ip-to-exclusions-button-submit",onClick:function(){return function(){var e=E.trim();if("website"===_){e=function(e){if(!e)return null;var t=e.replace(/^[a-z]+:\/\//i,"");return(t=(t=(t=t.replace(/^www\./i,"")).replace(/:\d+$/,"")).replace(/[/?#].*$/,"")).toLowerCase()}(e),N(e);var t=(0,l.A)("isDomain",e,(0,i.A)("Must be a valid domain"));if(t)return void T(t)}if("android"===_){var r=!function(e){if("string"!=typeof e)return!1;var t=e.split(".");if(t.length<2)return!1;var n=/^[a-zA-Z][a-zA-Z0-9_]*$/;return!!t.every(function(e){return n.test(e)})}(e)&&[{ruleName:"isBundleId",userMessage:(0,i.A)("Must be a valid Android mobile app bundle ID")}];if(r)return void T(r)}if("iphone"===_){e.startsWith("id")&&(e=e.slice(2),N(e));var o=!/^(id)?\d{6,12}$/.test(e.trim())&&[{ruleName:"isAppStoreID",userMessage:(0,i.A)("Must be a valid Apple Store Connect App ID")}];if(o)return void T(o)}j(!0),T([]);var a=[];n&&n.length>0&&(a=n);var c,u={placements:[(c=e,"iphone"===_?"mobileapp::1-".concat(c):"android"===_?"mobileapp::2-".concat(c):c)],customer_ids:a};R.mutate(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?h(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},u),{onSuccess:function(){(0,s.A)((0,i.A)("Your placement block has been placed in a queue for processing and will be added within the next few minutes"),"success"),M(),y(!1),j(!1)},onError:function(){(0,s.A)((0,i.A)("Something went wrong!"),"error"),j(!1)}})}()},"data-testid":"exclusion-submit-button",loading:O,children:(0,i.A)("Apply Exclusion")})]})]})]})}_.propTypes={selectedAccounts:a().array};const S=_},79135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(24221),o=n(47905),a=n(86957),i=n(9971),l=n(74511),s=n(20866),c=n(97892),u=n(87389),d=n(25097),f=n(72563),p=n(73372),m=n(52941),g=n(34603),y=n(66070),h=n(93656),x=n(46953),b=n(13258),v=n(67983),A=n(57019),_=n(89368),S=n(20781),w=n(21732),O=n(1193),j=n(88473),k=n(80709),E=n(91668),N=n(80312),I=n(78632),P=n(56610),T=n(85496),C=n(9765),R=n(78386),M=n(94956),L=n(27778),D=n(38229),B=n(13368),U=n(42323),F=n(32472),G=n(7751),W=n(43855),z=n(38079),V=n(89074),q=n(11438),K=n(16029),H=n(59535),Y=n(65728),$=n(38138),Z=n(73939),X=n(97946),J=n(72272),Q=n(12652),ee=n(51391),te=n(31581),ne=n(66871),re=n(52063),oe=n(9467),ae=n(42216),ie=n(6740),le=n(33174),se=n(17533),ce=n(19454),ue=n(67371),de=n(16453),fe=n(15179),pe=n(68752),me=n(51330),ge=n(32578),ye=n(3808),he=n(32362),xe=n(8355),be=n(40126),ve=n(50151),Ae=n(84406),_e=n(29140),Se=n(64900),we=n(48182),Oe=n(19502),je=n(58180),ke=n(764),Ee=n(89349),Ne=n(30710),Ie=n(5597),Pe=n(25464),Te=n(66170),Ce=n(1975),Re=n(74282),Me=n(23302),Le=n(33680),De=n(13903),Be=n(6779),Ue=n(94531),Fe=n(9191),Ge=n(57649),We=n(85654),ze=n(36847),Ve=n(51338),qe=n(43122),Ke=n(99701),He=n(441),Ye=n(60276),$e=n(10119),Ze=n(95421),Xe=n(44030),Je=n(64006),Qe=n(58820),et=n(68899),tt=n(78553),nt=n(30037),rt=n(69842),ot=n(9868),at=n(9084),it=n(91470),lt=n(19540),st=n(14590),ct=n(91898),ut=n(83824),dt=n(52014),ft=n(76780),pt=n(28321),mt=n(27539),gt=n(64931),yt=n(98984),ht=n(61195),xt=n(17139),bt=n(88378),vt=n(64215),At=n(17578),_t=n(55250),St=n(24565),wt=n(391),Ot=n(90807),jt=n(71297),kt=n(51983),Et=n(81038),Nt=n(61937),It=n(10687),Pt=n(1235),Tt=n(92592),Ct=n(43580),Rt=n(52293),Mt=n(62914),Lt=n(92585),Dt=n(61660),Bt=n(87765),Ut=n(78717),Ft=n(72942),Gt=n(35032),Wt=n(75906),zt=n(86195),Vt=n(29815),qt=n(84825),Kt=n(22966),Ht=n(67714),Yt=n(31168),$t=n(3933),Zt=n(33911),Xt=n(64280),Jt=n(50755),Qt=n(24742),en=n(88507),tn=n(35747),nn=n(72868),rn=n(85827),on=n(97126),an=n(76038),ln=n(34638),sn=n(28605),cn=n(27667),un=n(23111),dn=n(64978),fn=n(26651),pn=n(66338),mn=n(47918),gn=n(5476),yn=n(76275),hn=n(10408),xn=n(48653),bn=n(96739),vn=n(35966),An=n(96057),_n=n(38294),Sn=n(31699),wn=n(49183),On=n(89505),jn=n(85996),kn=n(88424),En=n(45870),Nn=n(70505),In=n(17904),Pn=n(17713),Tn=n(98113),Cn=Ln(n(69347)),Rn=Ln(n(63956)),Mn=n(31085);function Ln(e){return e&&e.__esModule?e:{default:e}}function Dn(e){return Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(e)}var Bn=["name","colour","fontSize","style"];function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(n),!0).forEach(function(t){Gn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gn(e,t,n){return(t=function(e){var t=function(e){if("object"!=Dn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(e){var t=e.name,n=e.colour,o=e.fontSize,i=e.style,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Bn),s=null!=i?i:{};return null!=n&&(s=Fn(Fn({},s),{},{color:null===a.colours||void 0===a.colours?void 0:a.colours[n]})),null!=o&&(s=Fn(Fn({},s),{},{fontSize:o})),(0,Mn.jsx)(r.FontAwesomeIcon,Fn({icon:t,style:s},l))}o.library.add(u.faPercent,d.faExclamationTriangle,p.faMinusCircle,f.faCircleDot,$e.faWaveTriangle,Ze.faWaveform,lt.faHashtag,st.faLocationPin,m.faEye,v.faSeedling,g.faCode,y.faVial,Je.faAddressCard,Xe.faUnlock,Ye.faTable,He.faRocketLaunch,Et.faSpinner,i.faStar,Kt.faArrowsRotate,l.faFacebookF,s.faGoogle,c.faYoutube,$t.faCalendarCirclePlus,J.faCircleMinus,Vt.faShareNodes,Nt.faTimes,It.faCheck,Pt.faQuestion,Ct.faChevronRight,Rt.faChevronsRight,Mt.faChevronsLeft,Lt.faChevronUp,Dt.faChevronDown,Bt.faAnglesRight,Ut.faChevronLeft,Ft.faBook,xt.faDash,bt.faXmark,vt.faCircleQuestion,At.faExclamation,_t.faBan,Ht.faArrowUpRightFromSquare,Yt.faMagnifyingGlass,Tt.faUser,Gt.faCrown,Wt.faMoon,qt.faSun,St.faMobile,zt.faPipe,wt.faDesktop,Ot.faTablet,jt.faTv,kt.faRobot,fn.faArrowUp,pn.faArrowDown,mn.faArrowUpArrowDown,Jt.faLocationArrow,Xt.faLocationArrow,Qt.faThumbsUp,he.faGlassesRound,xe.faThumbsDown,Nn.faRotateLeft,be.faLaptop,ve.faMobileButton,Ae.faTabletButton,_e.faTv,Se.faRobot,Zt.faPlus,D.faGlobe,Le.faGlobePointer,vn.faBadgeDollar,qe.faList,J.faCircleMinus,Ie.faNotes,rt.faArrowTrendDown,ot.faChartPie,at.faMasksTheater,it.faCookieBite,ut.faBullseyeArrow,dt.faClock,ft.faClockRotateLeft,pt.faBolt,mt.faHourglassHalf,gt.faFileArrowDown,yt.faDollarSign,ht.faBarsFilter,en.faCommentAlt,tn.faPaintbrush,nn.faBullseye,hn.faVideo,xn.faSearchDollar,bn.faBullseyePointer,rn.faTh,on.faCrosshairs,An.faShoppingBasket,_n.faTvAlt,Sn.faSearch,an.faPencil,ln.faCopy,cn.faInfo,jn.faUserRobotXmarks,bn.faBullseyePointer,kn.faUserSecret,En.faUserCheck,x.faTriangleExclamation,b.faHandPointer,h.faHouse,re.faGauge,oe.faGaugeHigh,Y.faTimelineArrow,_.faHouseWindow,S.faChartLine,w.faArrowPointer,O.faSquareCheck,j.faBan,k.faUserCircle,
2E.faProjectDiagram,N.faCircleCheck,I.faPhoneLaptop,P.faChartSimple,le.faLeaf,we.faQuestion,T.faArrowLeft,C.faRotate,L.faSort,R.faDownload,M.faFilter,D.faGlobe,H.faCog,te.faSparkles,ce.faTrash,ue.faPencil,B.faUsers,me.faGrid2,ge.faLayerGroup,ye.faBriefcase,U.faMoneyCheckEditAlt,F.faAnalytics,G.faShieldCheck,W.faShield,z.faShieldPlus,V.faShieldExclamation,q.faCoins,K.faVials,se.faUser,de.faClone,Oe.faLocationDot,je.faCalendar,ke.faDiagramProject,Ee.faCrosshairsSimple,G.faShieldCheck,Ne.faWavePulse,sn.faEyeSlash,ct.faLink,wn.faStar,$.faPiggyBank,Z.faHeartPulse,X.faCircleInfo,Q.faLocationCrosshairs,ee.faLocationCrosshairsSlash,On.faRightFromBracket,dn.faArrowRight,ne.faTags,ae.faTag,ie.faMinus,Pe.faWashingMachine,fe.faScrewdriverWrench,Te.faBellOn,Ce.faBell,Re.faCirclePlus,pe.faCircleDollar,Me.faMagicWandSparkles,Le.faGlobePointer,De.faToolbox,Ve.faEarthEurope,In.faBullseyePointer,Pn.faUserSecret,Tn.faUserCheck,Be.faFileXmark,Ue.faNetworkWired,Fe.faDatabase,Ke.faChartMixed,Ge.faEthernet,We.faTowerBroadcast,ze.faSpider,gn.faGbp,Qe.faArrowDownShortWide,et.faArrowUpShortWide,tt.faCircleXmark,nt.faCircleExclamation,yn.faEnvelope,A.faCopy,un.faArrowRightArrowLeft),Wn.displayName="Icon",Wn.Badge=Cn.default,Wn.Status=Rn.default,t.default=Wn},79173:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=["ROOT","OWNER","ADMIN","EDITOR","MANAGER","USER"];function o(e){var t,n=[];return null!=e&&null!==(t=e.user)&&void 0!==t&&t.role_identifier&&n.push(e.user.role_identifier),Array.isArray(null==e?void 0:e.workspaces)&&e.workspaces.filter(function(e){return null==e?void 0:e.role}).forEach(function(e){return n.push(e.role)}),0===n.length?null:n.reduce(function(e,t){var n=r.indexOf(e),o=r.indexOf(t);return-1!==o&&(-1===n||o<n)?t:e})}},79206:(e,t,n)=>{"use strict";e.exports=n.p+"48ea26348a934cfaddff.svg"},79211:(e,t,n)=>{"use strict";n.d(t,{A:()=>O}),n(14041);var r=n(61323),o=n(19863),a=n(89748),i=n(9260),l=n(46389),s=n(1781),c=n(17419),u=n(28426),d=n(96956),f=n(27805),p=n(62161),m=n(93033),g=n(99226),y=n(73657),h=n(98536),x=n(8713),b=n(92523),v=n(31085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O=function(){var e,t=[{label:(0,a.A)("Country"),name:"search",type:"radio",queryTranslator:"textSearch",queryKey:"search",options:[{label:(0,a.A)("Contains"),name:"contains",type:"text",value:""}]}],n=(0,h.useApi)({url:"/analytics/fraud-stats/location",filters:t,responseDataKey:"location"}),A="TRIAL"===(0,g.A)().lunioStatus;return(0,v.jsxs)(u.A.Page,{type:"main",children:[(0,v.jsx)(f.default,{title:"".concat((0,a.A)("Ad Stats")," - ").concat((0,a.A)("Location")),text:(0,a.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,v.jsx)(x.A,{filters:t,exportType:"mplat_country"})}),(0,v.jsxs)("div",{className:"mt-4 mb-4 distribute-space-between",children:[(0,v.jsx)(l.A,S({},n.filterConnector)),(0,v.jsx)(b.default,{})]}),(0,v.jsx)(r.A,{isLoading:n.isLoading,data:function(e){if(!e)return[];var t=e.map(function(e){return Number(e.clicks_total)}).reduce(function(e,t){return e+t}
2,0),n=e.reduce(function(e,t){return e+Number(t.clicks_invalid)},0),r=[];return null==e||e.forEach(function(e){var a;r.push({name:(a=e.location,"Netherlands, The"===a||"Netherlands the"===a?"Netherlands":"United States of America"===a?"USA":a),value1:(0,o.o)(e.clicks_total,t),value2:(0,o.o)(e.clicks_invalid,n)})}),r}(null==n||null===(e=n.response)||void 0===e||null===(e=e.result)||void 0===e?void 0:e.location)}),(0,v.jsx)("div",{className:"mt-8"}),(0,v.jsx)(p.A,S(S({},n.tableConnector),{},{noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){var t,n,r;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("thead",{children:(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{children:(0,a.A)("Country")}),(0,v.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,a.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,a.A)("Legitimate")}),(0,v.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,a.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,a.A)("Suspicious")}),(0,v.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,a.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,a.A)("SIVT Clicks")}),(0,v.jsx)(m.A,{AND:!A,children:(0,v.jsx)("th",{"data-testid":"givt","data-tooltip":(0,a.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,a.A)("GIVT Clicks")})}),(0,v.jsx)("th",{"data-tooltip":(0,a.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,a.A)("Total IVT")}),(0,v.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,a.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,a.A)("Total Clicks")}),(0,v.jsx)("th",{"data-tooltip":(0,a.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,a.A)("All Tracked Clicks")}),(0,v.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,a.A)("The percentage of total clicks Lunio has classified as invalid."),children:(0,a.A)("SIVT Clicks %")}),(0,v.jsx)("th",{"data-tooltip":(0,a.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,a.A)("Total IVT %")}),(0,v.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,a.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,a.A)("Health")})]})}),(0,v.jsxs)("tbody",{children:[(0,v.jsxs)("td",{children:[null==e?void 0:e.location,"United States of America"===(null==e?void 0:e.location)&&(0,v.jsx)(s.default,{content:"View States",children:(0,v.jsx)(i.default,{"data-testid":"usa-trigger-button",preset:"outline",size:"sm",className:"ml-3",as:y.Link,to:"/stats/region?country=United States of America",iconLeft:["far","location-crosshairs"],style:{width:"fit-content"}})})]}),(0,v.jsx)("td",{children:(0,v.jsx)(c.A,{type:"legitimate",size:"sm",textRight:(0,o.m)((null==e?void 0:e.clicks_protected)||(null==e?void 0:e.clicks_legitimate))})}),(0,v.jsx)("td",{children:(0,v.jsx)(c.A,{type:"suspicious",size:"sm",textRight:(0,o.m)(null==e?void 0:e.clicks_suspicious)})}),(0,v.jsx)("td",{children:(0,v.jsx)(c.A,{type:"invalid",size:"sm",textRight:(0,o.m)((null==e?void 0:e.clicks_fraudulent)||(null==e?void 0:e.clicks_invalid))})}),(0,v.jsx)(m.A,{AND:!A,children:(0,v.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,v.jsx)("td",{children:(0,o.m)(null!==(t=null==e?void 0:e.total_ivt)&&void 0!==t?t:0)}),(0,v.jsx)("td",{children:(0,o.m)(null==e?void 0:e.clicks_total)}),(0,v.jsx)("td",{children:(0,o.m)(null!==(n=null==e?void 0:e.all_tracked_clicks)&&void 0!==n?n:0)}),(0,v.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,v.jsx)("td",{children:"".concat(Number(null!==(r=null==e?void 0:e.total_ivt_percent)&&void 0!==r?r:0).toFixed(2),"%")}),(0,v.jsx)("td",{children:(0,v.jsx)(d.A,{health:null==e?void 0:e.health})})]})]})}}))]})}}
2,79264:(e,t,n)=>{"use strict";n.d(t,{A:()=>p}),n(14041);var r=n(28426),o=n(27805),a=n(89748),i=n(92523),l=n(17723),s=n(3515),c=n(95329),u=n(94413),d=n(41574),f=n(31085);const p=function(){return(0,f.jsxs)(r.A.Page,{type:"overview",children:[(0,f.jsx)(o.default,{type:"overview",title:(0,a.A)("Conversion Analytics Summary"),text:(0,a.A)("Monitor and analyse affiliate traffic quality"),contentRight:(0,f.jsx)(d.A,{exportType:"network",exportCategory:"conversions_overview",exportLevel:"summary"})}),(0,f.jsx)("div",{className:"flex justify-end mb-4",children:(0,f.jsx)(i.default,{})}),(0,f.jsx)(s.A,{}),(0,f.jsx)(l.A,{}),(0,f.jsxs)("div",{className:"flex distribute-space-between mb-4 gap-2",children:[(0,f.jsx)(c.A,{title:(0,a.A)("Partners With Highest Invalid Conversions"),iconRight:["far","triangle-exclamation"]}),(0,f.jsx)(c.A,{title:(0,a.A)("Partners With Highest Invalid Conversion Rate"),type:"conversion-rate",iconRight:["far","chart-pie"],isPercentage:!0})]}),(0,f.jsx)(u.A,{})]})}},79405:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SubContent:()=>o.A,Table:()=>r.A,TextLength:()=>i.A,format:()=>l.A,useSimplePagination:()=>a.A});var r=n(62161),o=n(36990),a=n(65087),i=n(47318),l=n(17070)},79448:(e,t,n)=>{"use strict";n.d(t,{A:()=>_}),n(14041);var r=n(9260),o=n(77223),a=n(72686),i=n(30021),l=n(28426),s=n(56583),c=n(27805),u=n(89748),d=n(62161),f=n(83223),p=n(73657),m=n(98536),g=n(92523),y=n(31085);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return e?e.split(",").map(function(e){return e.trim()}).join(", "):""}const _=function(){var e=(0,m.useApi)({url:"/brand-protection/keywords_by_advertiser",responseDataKey:"data"}),t=[{label:(0,u.A)("Self"),value:"Self",description:(0,u.A)("Your own brand or domains"),type:"success"},{label:(0,u.A)("Partner"),value:"Partner",description:(0,u.A)("An approved affiliate or reseller"),type:"primary"},{label:(0,u.A)("Competitor"),value:"Competitor",description:(0,u.A)("A rival bidding on your terms"),type:"error"},{label:(0,u.A)("Other"),value:"Other",description:(0,u.A)("Unclassified advertiser"),type:"default"}],n=(0,m.useApiSubmit)({method:"POST",invalidateQueries:["/brand-protection/keywords_by_advertiser"],successMessage:(0,u.A)("The category was changed"),errorMessage:(0,u.A)("Something went wrong!")});function h(e){var t=e.name,r=e.value;n.updateConfig({url:"brand-protection/advertiser/".concat(t)}),n.submit({category:r})}return(0,y.jsxs)(l.A.Page,{type:"overview",children:[(0,y.jsx)(c.default,{title:(0,u.A)("Brand Bidding Overview"),text:(0,u.A)("Monitor ads appearing on your branded search terms")}),(0,y.jsx)("div",{className:"flex mb-3 h-align-right width-100",children:(0,y.jsx)(g.default,{})}),(0,y.jsxs)(a.default,{children:[(0,y.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,y.jsx)(i.default,{preset:"widgetHeading",as:"h2",children:(0,u.A)("Advertiser Insights")})}),(0,y.jsx)(o.default,{className:"mb-4"}),(0,y.jsx)(d.A,b(b({},e.tableConnector),{},{leftPinnedColumns:1,noDataSubTitle:"",children:function(e){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:(0,u.A)("Advertiser")}),(0,y.jsx)("th",{children:(0,u.A)("Category")}),(0,y.jsx)("th",{children:(0,u.A)("Ads detected")}),(0,y.jsx)("th",{children:(0,u.A)("Keyword")}),(0,y.jsx)("th",{children:(0,u.A)("Location")}),(0,y.jsx)("th",{children:(0,u.A)("Last Detected")}),(0,y.jsx)("th",{children:(0,u.A)("View Ads")})]})}),(0,y.jsxs)("tbody",{children:[(0,y.jsx)("td",{children:(0,y.jsx)(p.Link,{to:"/brand-bidding/bidding/advertisers/".concat(null==e?void 0:e.advertiser_id),children:null==e?void 0:e.advertiser})}),(0,y.jsx)("td",{children:(0,y.jsx)(s.A,{options:t,value:null==e?void 0:e.category,onFormValue:h,name:null==e?void 0:e.advertiser_id})}),(0,y.jsx)("td",{children:null==e?void 0:e.ad_count}),(0,y.jsx)("td",{children:A(null==e?void 0:e.keywords)}),(0,y.jsx)("td",{children:A(null==e?void 0:e.location)}),(0,y.jsx)("td",{children:null!=e&&e.detected_at?(0,f.GP)(new Date(e.detected_at),"dd MMM, yyyy"):""}),(0,y.jsx)("td",{children:(0,y.jsx)(r.default,{preset:"outline",size:"sm",as:p.Link,to:"/brand-bidding/bidding/keywords/".concat(null==e?void 0:e.keyword_id,"?advertiser=").concat(null==e?void 0:e.advertiser_id),iconLeft:["fas","arrow-right"],"aria-label":(0,u.A)("View Ads")})})]})]})}}))]})]})}},79475:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(14041),o=n(88133),a=n(89748),i=n(77730),l=n(36549),s=n(68236),c=n(24284),u=n(17427),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const x=function(){var e=y((0,l.A)(),2),t=e[0],n=e[1],f=y(r.useState(!1),2),p=f[0],g=f[1],h=y((0,i.A)(),1)[0],x=(0,s.A)().selectWorkspace;(0,r.useEffect)(function(){if(!h.selectedWorkspace){var e,t=null===(e=h.workspaces)||void 0===e?void 0:e.find(function(e){return e.id>0});t&&x(t.id)}},[h.selectedWorkspace,h.workspaces]);var b=(0,o.Ay)("/users/".concat(t.user.id)).data,v=(0,o.gC)("/users/profile","PUT");return(0,d.jsx)(u.A,{user:m(m({},null==b?void 0:b.result),t.user),isSaving:p,updateProfile:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g(!0),v.mutate(e,{onSuccess:function(r){var o,a,i,l,s,u=null!==(o=null==r||null===(a=r.data)||void 0===a||null===(a=a.result)||void 0===a?void 0:a.user)&&void 0!==o?o:e,d=null!==(i=null!==(l=null==u?void 0:u.email)&&void 0!==l?l:null==e?void 0:e.email)&&void 0!==i?i:"";n(function(e){return m(m({},e),{},{user:m(m({},null==e?void 0:e.user),u)})}),(0,c.A)("".concat(d," was updated"),"success"),g(!1),null==t||null===(s=t.onSuccess)||void 0===s||s.call(t)},onError:function(){var e;(0,c.A)((0,a.A)("Something went wrong!"),"error"),g(!1),null==t||null===(e=t.onError)||void 0===e||e.call(t)}})}})}},79854:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(31085),i=o.default;i(".display-x78zum5{display:flex}",3e3),i(".justifyContent-x1qughib{justify-content:space-between}",3e3),i(".marginBottom-x1yztbdb{margin-bottom:16px}",4e3),i(".justifyContent-x1nhvcw1{justify-content:flex-start}",3e3),i(".gap-x167g77z{gap:8px}",2e3),i(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),t.A=function(e){var t=e.className,n=e.contentLeft,r=void 0===n?null:n,o=e.contentRight,i=void 0===o?null:o,l="display-x78zum5 justifyContent-x1qughib marginBottom-x1yztbdb";return(0,a.jsxs)("div",{className:t?"".concat(t," ").concat(l):l,children:[(0,a.jsx)("div",{className:"display-x78zum5 justifyContent-x1nhvcw1 gap-x167g77z",children:r}),(0,a.jsx)("div",{className:"display-x78zum5 justifyContent-x13a6bvl gap-x167g77z",children:i})]})}},80090:(e,t,n)=>{"use strict";e.exports=n.p+"968a52e788774c80b345.svg"},80111:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(36537),o=n(19559);function a(){return(0,r.fp)(o.A)}},80303:(e,t,n)=>{"use strict";function r(e){return e?e.split(",").map(function(e){return e.trim()}).join(", "):""}n.r(t),n.d(t,{default:()=>r})},80339:(e,t,n)=>{"use strict";e.exports=n.p+"d3ad62b7993372da50df.svg"},80392:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(22898),a=n(31085);
2const i=function(){var e=(0,r.R7)({sortKey:"health",sortOrder:"asc"}),t=e.filters,n=e.handlePagination,i=e.setFilters,l=e.handleSort;return(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:t,onFilterChange:i,handlePagination:n,handleSort:l})})}},80565:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Object.entries(e).forEach(function(e){var n,i,l=(i=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,i)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],c=l[1],u=""===t?s:"".concat(t,"-").concat(s);return"object"===r(c)?a(c,u):function(e,t,n){var r=document.documentElement,o=""!==n?"".concat(n,"-"):"";r.style.setProperty("--".concat(o).concat(e),t)}(s,c,t)})}n.d(t,{A:()=>a})},80589:(e,t,n)=>{"use strict";n.d(t,{A:()=>O}),n(14041);var r=n(24131),o=n(27333),a=n(89748),i=n(72686),l=n(55436),s=n(17419),c=n(28426),u=n(96956),d=n(27805),f=n(19863),p=n(62161),m=n(96182),g=n(93033),y=n(99226),h=n(89541),x=n(13497),b=n(31085);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const O=function(e){var t,n,v,A,S,O,j,k=e.filters,E=e.onFilterChange,N=e.handlePagination,I=e.handleSort,P="google"===(null===(t=(O=(0,m.A)(),j=1,function(e){if(Array.isArray(e))return e}(O)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(O,j)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}
2(O,j)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].selectedPlatform)||void 0===t?void 0:t.platform_name),T="TRIAL"===(0,y.A)().lunioStatus,C=(0,o.st)("/analytics/fraud-stats/account",_(_({},k),{},{type:"placements"},k["search.contains"]&&{search:k["search.contains"]})),R=C.data,M=C.isLoading,L=(0,o.st)("/analytics/fraud-stats/account",_(_({},k),{},{type:"placements",limit:1e3,page:1},k["search.contains"]&&{search:k["search.contains"]})),D=L.data,B=L.isLoading,U=[{label:(0,a.A)("Placement"),name:"search",type:"radio",options:[{label:(0,a.A)("Contains"),name:"contains",type:"text"}]}];return(0,b.jsxs)(c.A.Page,{type:"main",children:[(0,b.jsx)(d.default,{title:"".concat((0,a.A)("Ad Stats")," - ").concat((0,a.A)("Placement")),text:(0,a.A)("See which interactions with your ads triggered an invalid flag within the Lunio system."),contentRight:(0,b.jsx)(x.A,{filters:k,exportType:P?"google_placement":"mplat_placement"})}),(0,b.jsx)(h.A,{filters:k,onFilterChange:E,filterConfig:U}),(0,b.jsx)(i.default,{className:"p-6",children:(0,b.jsx)(l.default,{loading:B,size:"responsive",preset:"dark",height:400,children:(0,b.jsx)(r.default,{isLoading:B,data:(null==D||null===(n=D.result)||void 0===n?void 0:n.data.map(function(e){return{total:e.clicks_total,fraudulent:e.clicks_fraudulent/e.clicks_total*100,rawFraudulent:e.clicks_fraudulent,label:e.kw||e.pl||e.placement||e.name,matchType:e.mt||e.advertising_channel_type}}))||[],xTitle:(0,a.A)("Number of Clicks"),yTitle:(0,a.A)("SIVT Percentage")})})}),(0,b.jsx)("div",{className:"mt-8"}),(0,b.jsx)(p.A,{rows:null==R||null===(v=R.result)||void 0===v?void 0:v.data,isLoading:M,totalPages:null==R||null===(A=R.result)||void 0===A||null===(A=A.pagination)||void 0===A?void 0:A.last_page,totalItems:null==R||null===(S=R.result)||void 0===S||null===(S=S.pagination)||void 0===S?void 0:S.total,pageNumber:k.page,handlePagination:N,handleSorting:I,limit:k.limit,sorting:{sortKey:k.sortKey,sortOrder:k.sortOrder},noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:(0,a.A)("Placement")}),(0,b.jsx)("th",{"data-sortable-id":"protected","data-tooltip":(0,a.A)("The total number of clicks Lunio has classified as legitimate."),children:(0,a.A)("Legitimate")}),(0,b.jsx)("th",{"data-sortable-id":"suspicious","data-tooltip":(0,a.A)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),children:(0,a.A)("Suspicious")}),(0,b.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,a.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,a.A)("SIVT Clicks")}),(0,b.jsx)(g.A,{AND:!T,children:(0,b.jsx)("th",{"data-testid":"givt","data-tooltip":(0,a.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,a.A)("GIVT Clicks")})}),(0,b.jsx)("th",{"data-tooltip":(0,a.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,a.A)("Total IVT")}),(0,b.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,a.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,a.A)("Total Clicks")}),(0,b.jsx)("th",{"data-tooltip":(0,a.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,a.A)("All Tracked Clicks")}),(0,b.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,a.A)("The percentage of total clicks Lunio has classified as invali
2d."),children:(0,a.A)("SIVT Clicks %")}),(0,b.jsx)("th",{"data-tooltip":(0,a.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,a.A)("Total IVT %")}),(0,b.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,a.A)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,a.A)("Health")})]})}),(0,b.jsxs)("tbody",{children:[(0,b.jsx)("td",{children:null==e?void 0:e.placement}),(0,b.jsx)("td",{children:(0,b.jsx)(s.A,{type:"legitimate",size:"sm",textRight:(0,f.m)(null==e?void 0:e.clicks_protected)})}),(0,b.jsx)("td",{children:(0,b.jsx)(s.A,{type:"suspicious",size:"sm",textRight:(0,f.m)(null==e?void 0:e.clicks_suspicious)})}),(0,b.jsx)("td",{children:(0,b.jsx)(s.A,{type:"invalid",size:"sm",textRight:(0,f.m)(null==e?void 0:e.clicks_fraudulent)})}),(0,b.jsx)(g.A,{AND:!T,children:(0,b.jsx)("td",{children:(0,f.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,b.jsx)("td",{children:(0,f.m)(null==e?void 0:e.total_ivt)}),(0,b.jsx)("td",{children:(0,f.m)(null==e?void 0:e.clicks_total)}),(0,b.jsx)("td",{children:(0,f.m)(null==e?void 0:e.all_tracked_clicks)}),(0,b.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,b.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,b.jsx)("td",{children:(0,b.jsx)(u.A,{health:null==e?void 0:e.health})})]})]})}})]})}},80665:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(88133),o=n(96182),a=n(80111),i=n(34406);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n,s,c,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return""},d=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).noPlatform,f=void 0!==d&&d,p=l((0,o.A)(),1)[0],m=l((0,a.A)(),1)[0],g=u(t),y=Object.keys(t).filter(function(e){return!g.includes(e)&&!e.includes(".")&&!["sortKey","sortOrder","limit","page","startDate","endDate"].includes(e)});function h(e){if(!e)return null;var t=e instanceof Date?e:new Date(e),n=(0,i.Ay)(t);return Math.floor(n.valueOf()/1e3)}Object.keys(t).includes("accounts.selection")&&t["accounts.selection"].length>0&&-1===g.indexOf("df_customer_ids")&&(g+="&df_customer_ids=".concat(JSON.stringify(t["accounts.selection"]))),y.forEach(function(e){"search_key"!==e&&(g+="&".concat(e,"=").concat(t[e]))});var x=(0,r.Ay)("".concat(e,"?sort_key=").concat(t.sortKey,"&sort_order=").concat(t.sortOrder,"&limit=").concat(t.limit,"&page=").concat(t.page,"&df_dmin=").concat(Object.keys(t).includes("startDate")?h(t.startDate):null==m||null===(n=m.dataFilterDates)||void 0===n||null===(n=n.min)||void 0===n?void 0:n.timestamp,"&df_dmax=").concat(Object.keys(t).includes("endDate")?h(t.endDate):null==m||null===(s=m.dataFilterDates)||void 0===s||null===(s=s.max)||void 0===s?void 0:s.timestamp,"&df_interval=day").concat(f?"":"&platform=".concat(null==p||null===(c=p.selectedPlatform)||void 0===c?void 0:c.platform_name)).concat(g));return{data:x.data,isLoading:x.isLoading}}},80806:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(4386),s=n(31085);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=a.default;p(".display-x78zum5{display:flex}",3e3),p(".position-x1n2onr6{position:relative}",3e3),p(".gap-xxhr3t{gap:0}",2e3),p(".height-x10w6t97{height:32px}",4e3),p(".borderRadius-x12oqio5{border-radius:4px}",2e3),p(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".justifyContent-xl56j7k{justify-content:center}",3e3),p(".fontSize-xif65rj{font-size:14px}",3e3),p(".fontWeight-x1s688f{font-weight:600}",3e3),p(".paddingLeft-xyndbda{padding-left:9px}",4e3),p(".paddingRight-x10dlkkm{padding-right:9px}",4e3),p(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),p(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),p(".color-x1oayuxb{color:var(--oldBrand700-xx6j7i3)!important}",3e3),p(".backgroundColor-x1itpvea{background-color:var(--oldBrand50-x1t4s9vw)}",3e3),p(".border-x1onvrke{border:1px solid var(--oldBrand300-x1eifvzy)}",1e3),p(".zIndex-x1vjfegm{z-index:1}",3e3),p(".borderTopLeftRadius-x1k1lpwg{border-top-left-radius:8px}",4e3),p(".borderBottomLeftRadius-xabvvm4{border-bottom-left-radius:8px}",4e3),p(".borderTopRightRadius-x5omr3n{border-top-right-radius:8px}",4e3),p(".borderBottomRightRadius-xeyy32k{border-bottom-right-radius:8px}",4e3),p(".marginLeft-xh9i6ac{margin-left:-1px}",4e3),p(".borderLeft-x1bkmhv1{border-left:1px solid var(--gray300-x1xk3734)}",2e3),p(".borderRight-x78ysab{border-right:1px solid var(--gray300-x1xk3734)}",2e3);var m={unselectedItem:{height:"height-x10w6t97",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-x1s688f",paddingLeft:"paddingLeft-xyndbda",paddingRight:"paddingRight-x10dlkkm",color:"color-xd87uto",border:"border-xct47cs",$$css:"FlatSelect/index.tsx:21"},selectedItem:{height:"height-x10w6t97",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-x1s688f",paddingLeft:"paddingLeft-xyndbda",paddingRight:"paddingRight-x10dlkkm",color:"color-x1oayuxb",backgroundColor:"backgroundColor-x1itpvea",border:"border-x1onvrke",position:"position-x1n2onr6",zIndex:"zIndex-x1vjfegm",$$css:"FlatSelect/index.tsx:33"},isLeftMost:{borderTopLeftRadius:"borderTopLeftRadius-x1k1lpwg",borderBottomLeftRadius:"borderBottomLeftRadius-xabvvm4",$$css:"FlatSelect/index.tsx:48"},isRightMost:{borderTopRightRadius:"borderTopRightRadius-x5omr3n",borderBottomRightRadius:"borderBottomRightRadius-xeyy32k",marginLeft:"marginLeft-xh9i6ac",$$css:"FlatSelect/index.tsx:52"},isCentral:{borderLeft:"borderLeft-x1bkmhv1",borderRight:"borderRight-x78ysab",marginLeft:"marginLeft-xh9i6ac",$$css:"FlatSelect/index.tsx:57"}};function g(e){e.filters;var t,n,r=e.filter,o=e.setFilter,a=(0,l.getFilterTestId)(null!==(t=r.label)&&void 0!==t?t:r.name);return(0,s.jsx)("div",d(d({}
2,{className:"display-x78zum5 position-x1n2onr6 gap-xxhr3t height-x10w6t97 borderRadius-x12oqio5 backgroundColor-x6fdw8f","data-style-src":"FlatSelect/index.tsx:13"}),{},{"data-testid":"".concat(a,"-container"),children:null===(n=r.options)||void 0===n?void 0:n.map(function(e,t){var n,c,u,f=!0===e.value||"string"==typeof e.value&&""!==e.value,p=0===t,g=t===(null!==(n=null===(c=r.options)||void 0===c?void 0:c.length)&&void 0!==n?n:0)-1,y=!p&&!g,h=(0,l.getFilterTestId)(null!==(u=e.label)&&void 0!==u?u:e.name,"".concat(a,"-option"));return(0,s.jsx)("button",d(d({type:"button"},i.props(f&&m.selectedItem,!f&&m.unselectedItem,p&&m.isLeftMost,g&&m.isRightMost,y&&m.isCentral)),{},{onClick:function(){return function(e,t){var n;if(!t){var a=(null===(n=r.options)||void 0===n?void 0:n.map(function(t){return t.name===e?d(d({},t),{},{value:!0}):d(d({},t),{},{value:!1})}))||[];o(d(d({},r),{},{options:a}))}}(e.name,f)},"data-testid":h,children:e.label}),e.name)})}))}g.displayName="FlatSelect",t.A=g},80902:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(14041);var r=n(51836),o=n(77730),a=n(802),i=n(31085);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const s=function(){var e,t,n=(0,r.g)().id,s=(e=(0,o.A)(),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].workspaces.find(function(e){return e.id===Number(n)});return s?(0,i.jsx)("div",{children:(0,i.jsx)(a.A,{data:s})}):null}},80982:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(89748);function o(e){return 1e3===(null==e?void 0:e.flag)?(0,r.A)("Imported"):2e3===(null==e?void 0:e.flag)?(0,r.A)("Auto (Lunio)"):(0,r.A)("User Added")}},81027:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(14041),l=n(45365),s=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),c=n(60156),u=n(31085);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=a.default;h(".display-x78zum5{display:flex}",3e3),h(".justifyContent-x1qughib{justify-content:space-between}",3e3),h(".marginBottom-x1yztbdb{margin-bottom:16px}",4e3),h(".fontSize-xif65rj{font-size:14px}",3e3),h(".fontWeight-x1s688f{font-weight:600}",3e3),h(".paddingBottom-x1hhzuzn{padding-bottom:18px}",4e3),h(".width-xafpxmx{width:240px}",4e3),h(".alignItems-x6s0dn4{align-items:center}",3e3),h(".marginBottom-x1c436fg{margin-bottom:18px}",4e3),h(".marginBottom-xzboxd6:last-child{margin-bottom:0}",4054),h(".flex-x98rzlu{flex:1}",2e3),h(".borderRadius-x12oqio5{border-radius:4px}",2e3),h(".height-x1qx5ct2{height:20px}",4e3),h(".position-x1n2onr6{position:relative}",3e3),h(".marginRight-x1yf7rl7{margin-right:0}",4e3),h(".overflow-xb3r6kr{overflow:hidden}",2e3),h(".backgroundColor-x1itpvea{background-color:var(--oldBrand50-x1t4s9vw)}",3e3),h(".position-x10l6tqk{position:absolute}",3e3),h(".left-xu96u03{left:0}
2",4e3),h(".top-x13vifvy{top:0}",4e3),h(".backgroundColor-x31d5mm{background-color:var(--oldBrand400-xg3037r)}",3e3),h(".zIndex-x1vjfegm{z-index:1}",3e3),h(".transition-x15cnf4b{transition:width .3s}",2e3),h(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),h(".paddingLeft-x163pfp{padding-left:8px}",4e3),h(".fontSize-x4z9k3i{font-size:13px}",3e3),h(".transition-x1sspk41{transition:left .3s}",2e3),h(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),h(".fontSize-xfifm61{font-size:12px}",3e3),h(".textAlign-xdpxx8g{text-align:left}",3e3),h(".width-x1247r65{width:60px}",4e3),h(".zIndex-xhtitgo{z-index:2}",3e3),h(".marginLeft-xet2fuk{margin-left:8px}",4e3),h(".gap-x167g77z{gap:8px}",2e3),h(".height-xrtz9ly{height:37px}",4e3),h(".marginTop-x1xmf6yo{margin-top:8px}",4e3),h(".marginBottom-xod5an3{margin-bottom:12px}",4e3),h(".background-x11g6tue{background:none}",1e3),h(".border-x1gs6z28{border:none}",1e3),h(".padding-x1717udv{padding:0}",1e3),h(".cursor-x1ypdohk{cursor:pointer}",3e3),h(".fontWeight-xk50ysn{font-weight:500}",3e3),h(".color-x57u8gc:hover{color:var(--oldBrand700-xx6j7i3)}",3130),h(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),h(".fontSize-xdzlmae{font-size:8px}",3e3),h(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),h(".fontSize-x1j6dyjg{font-size:11px}",3e3),h(".color-xqi5lc6{color:var(--black300-xmkl1o)}",3e3),h(".marginRight-x1o6q14k{margin-right:16px}",4e3),h(".height-xn3w4p2{height:44px}",4e3),h(".width-x187nhsf{width:44px}",4e3),h(".justifyContent-xl56j7k{justify-content:center}",3e3),h(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),h(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),h(".borderRadius-xur7f20{border-radius:8px}",2e3),h(".fontSize-x1j61zf2{font-size:16px}",3e3),h(".fontWeight-xo1l8bm{font-weight:400}",3e3),h(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),h(".lineHeight-x1xxsxie{line-height:14px}",3e3),h(".width-xh8yej3{width:100%}",4e3),h(".color-xb0o5a8{color:var(--oldBrand700-xx6j7i3)}",3e3),h(".paddingTop-xexx8yu{padding-top:0}",4e3),h(".fontSize-x1k6wstc{font-size:10px}",3e3),h(".justifyContent-xlqzeqv{justify-content:start}",3e3);var x={position:"position-x10l6tqk",left:"left-xu96u03",top:"top-x13vifvy",height:"height-x1qx5ct2",backgroundColor:"backgroundColor-x31d5mm",borderRadius:"borderRadius-x12oqio5",zIndex:"zIndex-x1vjfegm",transition:"transition-x15cnf4b",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-x13a6bvl",$$css:"components/TopIVTExplorerChart.tsx:48"},b={position:"position-x10l6tqk",paddingLeft:"paddingLeft-x163pfp",fontWeight:"fontWeight-x1s688f",fontSize:"fontSize-x4z9k3i",transition:"transition-x1sspk41",color:"color-x1jsblnb",$$css:"components/TopIVTExplorerChart.tsx:61"};t.default=function(e){var t,n,r,o,a,d,f,m,y,h,v,A,_,S,w,O,j,k,E,N,I,P,T=e.handleSort,C=e.dataApi,R="account";l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"level","ad_account",!0)&&(R="ad_account"),l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"level","campaign",!0)&&(R="campaign"),l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"level","adset",!0)&&(R="adset"),l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"level","ad",!0)&&(R="ad");var M=[{label:(0,c.language)("IVT %"),value:"percent_invalid",tableField:"percent_invalid",subLabel:(0,c.language)("Invalid Clicks Percentage")},{label:(0,c.language)("SIVT Clicks"),value:"clicks_fraudulent",tableField:"total_invalid_clicks",subLabel:(0,c.language)("Total Invalid Clicks")},{label:(0,c.language)("Total IVT"),value:"total_ivt",tableField:"total_ivt",subLabel:(0,c.language)("Total Invalid Traffic")},{label:(0,c.language)("Total IVT %"),value:"total_ivt_percent",tableField:"total_ivt_percent",subLabel:(0,c.language)("Percentage Invalid")},{label:(0,c.language)("Suspicious Clicks %"),value:"clicks_suspicious_percent",tableField:"clicks_suspicious_percent",subLabel:(0,c.language)("Suspicious Clicks Percentage")},{label:(0,c.language)("Suspicious Clicks"),value:"clicks_suspicious",tableField:"total_suspicious_clicks",subLabel:(0,c.language)("Total Suspicious Clicks")},{label:(0,c.language)("Legitimate Clicks %"),value:"clicks_legitimate_percent",tableField:"clicks_legitimate_percent",subLabel:(0,c.language)("Legitimate Clicks Percentage")},{label:(0,c.language)("Legitimate Clicks"),value:"clicks_legitimate",tableField:"total_legitimate_clicks",subLabel:(0,c.language)("Total Legitimate Clicks")},{label:(0,c.language)("Total Clicks"),value:"clicks_total",tableField:"total_clicks",subLabel:(0,c.language)("All Clicks")},{label:(0,c.language)("All Tracked Clicks"),value:"all_tracked_clicks",tableField:"all_tracked_clicks",subLabel:(0,c.language)("All Clicks Tracked")}],L=g((0,i.useState)(M[0]),2),D=L[0],B=L[1],U=g((0,i.useState)(!0),2),F=U[0],G=U[1];function W(e){return e?e.slice(0,5):[]}(0,i.useEffect)(function(){var e,t;if(void 0!==(null==C||null===(e=C.sorting)||void 0===e?void 0:e.sortKey)&&(null==C||null===(t=C.sorting)||void 0===t?void 0:t.sortKey)!==D.value){var n=M.find(function(e){var t;return e.value===(null==C||null===(t=C.sorting)||void 0===t?void 0:t.sortKey)});n&&B(n)}},[null==C||null===(t=C.sorting)||void 0===t?void 0:t.sortKey,M]);var z=g((0,i.useState)(W(null==C?void 0:C.data)),2),V=z[0],q=z[1];function K(e){var t,n,r;if(null==V||!V.length)return 0;var o=null!==(t=null===(n=V[0])||void 0===n?void 0:n[D.tableField])&&void 0!==t?t:0,a=null!==(r=null==e?void 0:e[D.tableField])&&void 0!==r?r:0;
2return D.value.includes("percent")?"number"==typeof a?Number(a.toFixed(2)):0:"number"==typeof o&&0!==o?Number((Number(a)/Number(o)*100).toFixed(2)):0}function H(e){var t,n,r;if(null==V||!V.length)return"0";var o=null!==(t=null===(n=V[0])||void 0===n?void 0:n[D.tableField])&&void 0!==t?t:0,a=null!==(r=null==e?void 0:e[D.tableField])&&void 0!==r?r:0;return D.value.includes("percent")?"".concat("number"==typeof a?a.toFixed(2):"0.00","%"):"number"==typeof o&&0!==o?"".concat("number"==typeof a?a:"0"):"0"}function Y(e){var t,n,r,o;return"ad_account"===R?"".concat(null!==(t=e.ad_account_name)&&void 0!==t?t:""):"campaign"===R?"".concat(null!==(n=e.campaign_name)&&void 0!==n?n:""):"adset"===R?"".concat(null!==(r=e.adset_name)&&void 0!==r?r:""):"ad"===R?"".concat(null!==(o=e.ad_name)&&void 0!==o?o:""):""}function $(e,t,n){return null!=e&&e>t&&e<n}function Z(e,t,n,r){return e.map(function(e){var o;return e.name===t?p(p({},e),{},{options:null===(o=e.options)||void 0===o?void 0:o.map(function(e){return e.name===n?p(p({},e),{},{value:r}):"boolean"==typeof e.value?p(p({},e),{},{value:!1}):p(p({},e),{},{value:""})})}):e})}function X(e){if(null!=C&&C.filters&&null!=C&&C.setFilters){if("ad_account"===R){var t,n=Z(C.filters,"level","campaign",!0);n=Z(n,"ad_account_id","ad_account_id",null!==(t=e.ad_account_id)&&void 0!==t?t:""),C.setFilters(n)}if("campaign"===R){var r,o=Z(C.filters,"level","adset",!0);o=Z(o,"campaign_id","campaign_id",null!==(r=e.campaign_id)&&void 0!==r?r:""),C.setFilters(o)}if("adset"===R){var a,i=Z(C.filters,"level","ad",!0);i=Z(i,"adset_id","adset_id",null!==(a=e.adset_id)&&void 0!==a?a:""),C.setFilters(i)}}}function J(e){if(null!=C&&C.filters&&null!=C&&C.setFilters){var t=Z(C.filters,"level",e,!0);"ad_account"===e&&(t=Z(t,"ad_account_id","ad_account_id",""),t=Z(t,"campaign_id","campaign_id",""),t=Z(t,"adset_id","adset_id",""),t=Z(t,"ad_id","ad_id","")),"campaign"===e&&(t=Z(t,"campaign_id","campaign_id",""),t=Z(t,"adset_id","adset_id",""),t=Z(t,"ad_id","ad_id","")),"adset"===e&&(t=Z(t,"adset_id","adset_id",""),t=Z(t,"ad_id","ad_id","")),"ad"===e&&(t=Z(t,"ad_id","ad_id","")),C.setFilters(t)}}(0,i.useEffect)(function(){var e,t;M.find(function(e){var t;return e.value===(null==C||null===(t=C.sorting)||void 0===t?void 0:t.sortKey)})&&"desc"===(null==C||null===(e=C.sorting)||void 0===e?void 0:e.sortOrder)&&1===(null==C||null===(t=C.tableConnector)||void 0===t?void 0:t.pageNumber)&&q(W(null==C?void 0:C.data))},[C]);var Q={ad_account:{widgetTitle:(0,c.language)("Top Accounts by"),col1Title:(0,c.language)("Account Name"),col2Title:(0,c.language)("Account Name"),col3Title:(0,c.language)("Account Name")},campaign:{widgetTitle:(0,c.language)("Top Campaigns by"),col1Title:(0,c.language)("Campaign Name"),col2Title:(0,c.language)("Account Name"),col3Title:(0,c.language)("Account Name")},adset:{widgetTitle:(0,c.language)("Top Ad Sets by"),col1Title:(0,c.language)("Ad Set Name"),col2Title:(0,c.language)("Account Name"),col3Title:(0,c.language)("Account Name")},ad:{widgetTitle:(0,c.language)("Top Ads by"),col1Title:(0,c.language)("Ad Name"),col2Title:(0,c.language)("Account Name"),col3Title:(0,c.language)("Account Name")}},ee=V.some(function(e){return!$(K(e),1,89.99)});return(0,u.jsx)(l.Card,{"data-testid":"data-explorer-chart",className:"mb-4",children:(0,u.jsxs)("div",p(p({},{className:"paddingBottom-x1hhzuzn","data-style-src":"components/TopIVTExplorerChart.tsx:23"}),{},{children:[(0,u.jsxs)("div",{className:"distribute-space-between v-align-center",children:[(0,u.jsxs)(l.Text,{preset:"widgetHeading",children:[Q[R].widgetTitle," ",D.label]}),(0,u.jsxs)("div",{className:"flex",style:{gap:8},children:[(0,u.jsx)("div",p(p({},{className:"width-xafpxmx","data-style-src":"components/TopIVTExplorerChart.tsx:26"}),{},{children:(0,u.jsx)(l.Input.Select,{options:M,value:D,onChange:function(e){T({sortKey:e.value,sortOrder:"desc"})},dataTestId:"chart-metric-select",size:"sm"})})),(0,u.jsx)("button",p(p({type:"button",onClick:function(){G(!F)}},{className:"height-xn3w4p2 width-x187nhsf display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k backgroundColor-x18oya0d border-x180m19u borderRadius-xur7f20 cursor-x1ypdohk color-xnx9fn3 fontSize-x1j61zf2 fontWeight-xo1l8bm","data-style-src":"components/TopIVTExplorerChart.tsx:117"}),{},{"data-testid":"chart-toggle-button",children:(0,u.jsx)(l.Icon,p({name:F?"chevron-down":"chevron-up"},{className:"color-xnx9fn3","data-style-src":"components/TopIVTExplorerChart.tsx:131"}))}))]})]}),F&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.Divider,{className:"mt-4"}),(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x167g77z height-xrtz9ly marginTop-x1xmf6yo marginBottom-xod5an3","data-style-src":"components/TopIVTExplorerChart.tsx:79"}),{},{"data-testid":"chart-breadcrumb",children:["ad_account"===R&&(0,u.jsx)("span",p(p({},{className:"color-x5tu7p5 fontSize-xfifm61 fontWeight-xk50ysn","data-style-src":"components/TopIVTExplorerChart.tsx:104"}),{},{"data-testid":"breadcrumb-ad-account",children:l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"ad_account_id","ad_account_id","")?(0,c.language)("Ad Accounts"):null!==(n=null==C||null===(r=C.data)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.ad_account_name)&&void 0!==n?n:(0,c.language)("Ad Account")}
2)),"campaign"===R&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("button",p(p({type:"button"},{className:"background-x11g6tue border-x1gs6z28 padding-x1717udv color-x1jsblnb cursor-x1ypdohk fontSize-xfifm61 fontWeight-xk50ysn color-x57u8gc","data-style-src":"components/TopIVTExplorerChart.tsx:87"}),{},{onClick:function(){return J("ad_account")},"data-testid":"breadcrumb-ad-account-button",children:l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"ad_account_id","ad_account_id","")?(0,c.language)("Ad Accounts"):null!==(o=null==C||null===(a=C.data)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.ad_account_name)&&void 0!==o?o:(0,c.language)("Ad Account")})),(0,u.jsx)("span",p(p({},{className:"color-xnx9fn3 fontSize-xdzlmae fontWeight-xk50ysn","data-style-src":"components/TopIVTExplorerChart.tsx:99"}),{},{"data-testid":"breadcrumb-separator",children:">"})),(0,u.jsx)("span",p(p({},{className:"color-x5tu7p5 fontSize-xfifm61 fontWeight-xk50ysn","data-style-src":"components/TopIVTExplorerChart.tsx:104"}),{},{"data-testid":"breadcrumb-campaign",children:l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"campaign_id","campaign_id","")?(0,c.language)("Campaigns"):null!==(d=null==C||null===(f=C.data)||void 0===f||null===(f=f[0])||void 0===f?void 0:f.campaign_name)&&void 0!==d?d:(0,c.language)("Campaign")}))]}),"adset"===R&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("button",p(p({type:"button"},{className:"background-x11g6tue border-x1gs6z28 padding-x1717udv color-x1jsblnb cursor-x1ypdohk fontSize-xfifm61 fontWeight-xk50ysn color-x57u8gc","data-style-src":"components/TopIVTExplorerChart.tsx:87"}),{},{onClick:function(){return J("ad_account")},"data-testid":"breadcrumb-ad-account-button",children:l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"ad_account_id","ad_account_id","")?(0,c.language)("Ad Accounts"):null!==(m=null==C||null===(y=C.data)||void 0===y||null===(y=y[0])||void 0===y?void 0:y.ad_account_name)&&void 0!==m?m:(0,c.language)("Ad Account")})),(0,u.jsx)("span",p(p({},{className:"color-xnx9fn3 fontSize-xdzlmae fontWeight-xk50ysn","data-style-src":"components/TopIVTExplorerChart.tsx:99"}),{},{"data-testid":"breadcrumb-separator",children:">"})),(0,u.jsx)("button",p(p({type:"button"},{className:"background-x11g6tue border-x1gs6z28 padding-x1717udv color-x1jsblnb cursor-x1ypdohk fontSize-xfifm61 fontWeight-xk50ysn color-x57u8gc","data-style-src":"components/TopIVTExplorerChart.tsx:87"}),{},{onClick:function(){return J("campaign")},"data-testid":"breadcrumb-campaign-button",children:l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"campaign_id","campaign_id","")?(0,c.language)("Campaigns"):null!==(h=null==C||null===(v=C.data)||void 0===v||null===(v=v[0])||void 0===v?void 0:v.campaign_name)&&void 0!==h?h:(0,c.language)("Campaign")})),(0,u.jsx)("span",p(p({},{className:"color-xnx9fn3 fontSize-xdzlmae fontWeight-xk50ysn","data-style-src":"components/TopIVTExplorerChart.tsx:99"}),{},{"data-testid":"breadcrumb-separator",children:">"})),(0,u.jsx)("span",p(p({},{className:"color-x5tu7p5 fontSize-xfifm61 fontWeight-xk50ysn","data-style-src":"components/TopIVTExplorerChart.tsx:104"}),{},{"data-testid":"breadcrumb-adset",children:l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"adset_id","adset_id","")?(0,c.language)("Ad Sets"):null!==(A=null==C||null===(_=C.data)||void 0===_||null===(_=_[0])||void 0===_?void 0:_.adset_name)&&void 0!==A?A:(0,c.language)("Ad Set")}))]}),"ad"===R&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("button",p(p({type:"button"},{className:"background-x11g6tue border-x1gs6z28 padding-x1717udv color-x1jsblnb cursor-x1ypdohk fontSize-xfifm61 fontWeight-xk50ysn color-x57u8gc","data-style-src":"components/TopIVTExplorerChart.tsx:87"}),{},{onClick:function(){return J("ad_account")},"data-testid":"breadcrumb-ad-account-button",children:l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"ad_account_id","ad_account_id","")?(0,c.language)("Ad Accounts"):null!==(S=null==C||null===(w=C.data)||void 0===w||null===(w=w[0])||void 0===w?void 0:w.ad_account_name)&&void 0!==S?S:(0,c.language)("Ad Account")}
2)),(0,u.jsx)("span",p(p({},{className:"color-xnx9fn3 fontSize-xdzlmae fontWeight-xk50ysn","data-style-src":"components/TopIVTExplorerChart.tsx:99"}),{},{"data-testid":"breadcrumb-separator",children:">"})),(0,u.jsx)("button",p(p({type:"button"},{className:"background-x11g6tue border-x1gs6z28 padding-x1717udv color-x1jsblnb cursor-x1ypdohk fontSize-xfifm61 fontWeight-xk50ysn color-x57u8gc","data-style-src":"components/TopIVTExplorerChart.tsx:87"}),{},{onClick:function(){return J("campaign")},"data-testid":"breadcrumb-campaign-button",children:l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"campaign_id","campaign_id","")?(0,c.language)("Campaigns"):null!==(O=null==C||null===(j=C.data)||void 0===j||null===(j=j[0])||void 0===j?void 0:j.campaign_name)&&void 0!==O?O:(0,c.language)("Campaign")})),(0,u.jsx)("span",p(p({},{className:"color-xnx9fn3 fontSize-xdzlmae fontWeight-xk50ysn","data-style-src":"components/TopIVTExplorerChart.tsx:99"}),{},{"data-testid":"breadcrumb-separator",children:">"})),(0,u.jsx)("button",p(p({type:"button"},{className:"background-x11g6tue border-x1gs6z28 padding-x1717udv color-x1jsblnb cursor-x1ypdohk fontSize-xfifm61 fontWeight-xk50ysn color-x57u8gc","data-style-src":"components/TopIVTExplorerChart.tsx:87"}),{},{onClick:function(){return J("adset")},"data-testid":"breadcrumb-adset-button",children:l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"adset_id","adset_id","")?(0,c.language)("Ad Sets"):null!==(k=null==C||null===(E=C.data)||void 0===E||null===(E=E[0])||void 0===E?void 0:E.adset_name)&&void 0!==k?k:(0,c.language)("Ad Set")})),(0,u.jsx)("span",p(p({},{className:"color-xnx9fn3 fontSize-xdzlmae fontWeight-xk50ysn","data-style-src":"components/TopIVTExplorerChart.tsx:99"}),{},{"data-testid":"breadcrumb-separator",children:">"})),(0,u.jsx)("span",p(p({},{className:"color-x5tu7p5 fontSize-xfifm61 fontWeight-xk50ysn","data-style-src":"components/TopIVTExplorerChart.tsx:104"}),{},{"data-testid":"breadcrumb-ad",children:l.FilterPanel.utils.filterOptionHasValue(null==C?void 0:C.filters,"ad_id","ad_id","")?(0,c.language)("Ads"):null!==(N=null==C||null===(I=C.data)||void 0===I||null===(I=I[0])||void 0===I?void 0:I.ad_name)&&void 0!==N?N:(0,c.language)("Ad")}))]})]})),(0,u.jsx)(l.LunioLoader,{loading:null==C?void 0:C.isLoading,height:150,preset:"dark",children:(0,u.jsx)(l.EmptyState,{hasNoData:0===(null==C||null===(P=C.data)||void 0===P?void 0:P.length),height:150,children:(0,u.jsxs)("div",p(p({},{"data-style-src":"components/TopIVTExplorerChart.tsx:22"}),{},{"data-testid":"chart-body",children:[(0,u.jsxs)("div",{className:"flex",children:[(0,u.jsx)("div",p(p({},{className:"fontSize-x1j6dyjg fontWeight-xk50ysn color-xqi5lc6 width-xafpxmx marginRight-x1o6q14k marginBottom-x1yztbdb","data-style-src":"components/TopIVTExplorerChart.tsx:109"}),{},{children:Q[R].col1Title})),(0,u.jsx)("div",p(p({},{className:"fontSize-x1j6dyjg fontWeight-xk50ysn color-xqi5lc6 width-xafpxmx marginRight-x1o6q14k marginBottom-x1yztbdb","data-style-src":"components/TopIVTExplorerChart.tsx:109"}),{},{children:D.label}))]}),V.map(function(e,t){var n,r=K(e);return(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 alignItems-x6s0dn4 marginBottom-x1c436fg marginBottom-xzboxd6","data-style-src":"components/TopIVTExplorerChart.tsx:29"}),{},{children:[(0,u.jsxs)("div",p(p({},{className:"width-xafpxmx marginRight-x1o6q14k color-x18k1rwp fontSize-xfifm61 fontWeight-xo1l8bm lineHeight-x1xxsxie","data-style-src":"components/TopIVTExplorerChart.tsx:134"}),{},{children:[(0,u.jsx)(l.TextLength,{maxLength:80,children:Y(e)}),"ad"!==R&&(0,u.jsxs)("button",p(p({type:"button",onClick:function(){return X(e)}},{className:"width-xh8yej3 color-xb0o5a8 padding-x1717udv paddingTop-xexx8yu fontSize-x1k6wstc fontWeight-xo1l8bm cursor-x1ypdohk display-x78zum5 alignItems-x6s0dn4 justifyContent-xlqzeqv","data-style-src":"components/TopIVTExplorerChart.tsx:142"}),{},{children:["ad_account"===R&&(0,c.language)("See Campaigns"),"campaign"===R&&(0,c.language)("See Adsets"),"adset"===R&&(0,c.language)("See Ads"),(0,u.jsx)(l.Icon,{name:"arrow-right",className:"ml-1"})]}))]})),(0,u.jsxs)("button",p(p({type:"button"},{className:"display-x78zum5 alignItems-x6s0dn4 flex-x98rzlu borderRadius-x12oqio5 height-x1qx5ct2 position-x1n2onr6 marginRight-x1yf7rl7 overflow-xb3r6kr backgroundColor-x1itpvea","data-style-src":"components/TopIVTExplorerChart.tsx:37"}),{},{onClick:function(){return X(e)},children:[(0,u.jsx)("div",p({},s.props(x,{width:"".concat(r,"%")}))),$(r,1,89.99)&&(0,u.jsx)("p",p(p({},s.props(b,{left:"".concat(r,"%")})),{},{children:H(e)}))]})),ee&&(0,u.jsx)("p",p(p({},{className:"color-x1jsblnb fontWeight-x1s688f fontSize-xfifm61 textAlign-xdpxx8g width-x1247r65 zIndex-xhtitgo position-x1n2onr6 marginLeft-xet2fuk","data-style-src":"components/TopIVTExplorerChart.tsx:69"}),{},{children:$(r,90,101)&&H(e)}))]}),null!==(n=e.id)&&void 0!==n?n:t)})]}))})})]})]}))})}}
2,81216:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=a.default;f(".display-x78zum5{display:flex}",3e3),f(".flexShrink-x2lah0s{flex-shrink:0}",3e3),f(".width-xeq5yr9{width:fit-content}",4e3),f(".backgroundColor-x89jpp8{background-color:var(--gray250-x1kpk87u)}",3e3),f(".fontSize-x1fhusgw{font-size:56px}",3e3),f(".lineHeight-xqyagaq{line-height:72px}",3e3),f(".width-x1ksunvz{width:107px}",4e3),f(".marginRight-x1o6q14k{margin-right:16px}",4e3),f(".borderRadius-x1f96onm{border-radius:50px}",2e3),f(".height-xqu0tyb{height:4px}",4e3),f(".height-xdk7pt{height:8px}",4e3),f(".backgroundColor-x1b9x17z{background-color:var(--oldBrand700-xx6j7i3)}",3e3);var p={part:{backgroundColor:"backgroundColor-x89jpp8",fontSize:"fontSize-x1fhusgw",lineHeight:"lineHeight-xqyagaq",width:"width-x1ksunvz",marginRight:"marginRight-x1o6q14k",borderRadius:"borderRadius-x1f96onm",$$css:"ProgressIndicator/index.tsx:11"},small:{height:"height-xqu0tyb",$$css:"ProgressIndicator/index.tsx:19"},medium:{height:"height-xdk7pt",$$css:"ProgressIndicator/index.tsx:22"},active:{backgroundColor:"backgroundColor-x1b9x17z",$$css:"ProgressIndicator/index.tsx:25"}};function m(e){var t=e.currentStep,n=e.numberOfSteps,r=e.size,o=void 0===r?"md":r,a=Array.from({length:n},function(e,t){return t});return(0,l.jsx)("div",u(u({"data-testid":"progress-indicator"},{className:"display-x78zum5 flexShrink-x2lah0s width-xeq5yr9","data-style-src":"ProgressIndicator/index.tsx:6"}),{},{children:a.map(function(e){var n=t>=e+1;return(0,l.jsx)("div",u({"data-testid":"progress-indicator-part","data-active":n},i.props(p.part,"sm"===o?p.small:p.medium,n&&p.active)),"step-".concat(e))})}))}m.displayName="ProgressIndicator",t.A=m},81564:(e,t,n)=>{"use strict";e.exports=n.p+"bb2888bc508f58985ae3.svg"},81733:(e,t,n)=>{"use strict";n.r(t)},81948:(e,t,n)=>{"use strict";var r=n(14041),o=n(25873),a=n(73657),i=n(73196),l=n(97475),s=n(99018),c=n(27686),u=n(4988),d=n(56459),f=n(52598),p=n(36537),m=n(75267),g=n(97320),y=n(31085),h=new i.E;"https://api.lunio.ai/".includes("api.lunio.ai")&&c.T({dsn:"https://[email protected]/6461303",release:"".concat("2026-09-23"," - ").concat("a11b87a"),replaysSessionSampleRate:1,replaysOnErrorSampleRate:1,integrations:[f.dp(),u.w(),d.X({autoInject:!1})],tracesSampleRate:.5});var x=document.getElementById("root"),b=o.createRoot(x);(0,s.themeGlobalCss)(s.defaultTheme),b.render((0,y.jsx)(r.StrictMode,{children:(0,y.jsx)(m.PostHogProvider,{apiKey:"phc_yE2OTeOApypCam9hiPAKmdtyaEKJtoyP6hoO3IfuOeN",options:{api_host:"https://eu.i.posthog.com"},children:(0,y.jsx)(l.Ht,{client:h,children:(0,y.jsx)(s.ThemeProvider,{theme:s.defaultTheme,children:(0,y.jsx)(p.Kq,{children:(0,y.jsx)(a.BrowserRouter,{children:(0,y.jsx)(g.A,{})})})})})})}))}
2,82138:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(99018),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=n(86957),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var c=["children","className","as"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=e.children,n=void 0===t?null:t,r=e.className,s=void 0===r?"":r,u=e.as,f=void 0===u?"h3":u,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c),m=(0,o.classNames)(a.props(i.textStyles[f]).className,s);return n?(0,l.jsx)(f,d(d({className:m},p),{},{children:n})):null}p.displayName="Header",t.default=p},82221:(e,t,n)=>{"use strict";t.A=void 0;var r=m(n(25751)),o=n(14041),a=n(45365),i=n(60156),l=n(18141),s=n(79405),c=n(44146),u=n(98536),d=m(n(92523)),f=m(n(81027)),p=n(31085);function m(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var v=r.default;v(".display-x78zum5{display:flex}",3e3),v(".flexDirection-xdt5ytf{flex-direction:column}",3e3),v(".gap-xou54vl{gap:16px}",2e3),v(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),v(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),v(".flexDirection-x1q0g3np{flex-direction:row}",3e3),v(".marginBottom-x1yztbdb{margin-bottom:16px}",4e3),v(".marginTop-xw7yly9{margin-top:16px}",4e3),v(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),v(".alignItems-x6s0dn4{align-items:center}",3e3),v(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),v(".justifyContent-xl56j7k{justify-content:center}",3e3),v(".padding-x1d6rxua{padding:64px}",1e3),v(".border-xct47cs{border:1px solid var(--gray300-x1xk3734)}",1e3),v(".borderRadius-xugzpu4{border-radius:18px}",2e3),v(".flexGrow-x1c4vz4f{flex-grow:0}",3e3),v(".maxWidth-xgcyixa{max-width:386px}",4e3),v(".width-xh8yej3{width:100%}",4e3),v(".backgroundColor-xf6q9j8{background-color:var(--oldBrand100-x1o59ms7)}",3e3),v(".borderRadius-xgqmno8{border-radius:16px}",2e3),v(".flexShrink-x2lah0s{flex-shrink:0}",3e3),v(".height-x1peatla{height:64px}",4e3),v(".order-x1g77sc7{order:0}",3e3),v(".paddingBottom-x18d9i69{padding-bottom:0}",4e3),v(".paddingLeft-xnm25rq{padding-left:16px}",4e3),v(".paddingRight-xyfqnmn{padding-right:16px}",4e3),v(".paddingTop-xexx8yu{padding-top:0}",4e3),v(".width-x1fu8urw{width:64px}",4e3),v(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3),v(".fontSize-x1pvqxga{font-size:24px}",3e3),v(".fontSize-xosj86m{font-size:18px}",3e3),v(".fontWeight-x1s688f{font-weight:600}",3e3),v(".textAlign-x2b8uid{text-align:center}",3e3),v(".alignSelf-xkh2ocl{align-self:stretch}",3e3),v(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),v(".fontSize-xif65rj{font-size:14px}",3e3),v(".fontWeight-xo1l8bm{font-weight:400}
2",3e3),v(".width-x1oysuqx{width:200px}",4e3),t.A=function(){var e,t,n,r,m,g,y,x,v,A,_,S,w,O,j,k,E,N,I="TRIAL"===(0,c.useAccessControl)().lunioStatus,P=(E=(0,o.useState)([]),N=2,function(e){if(Array.isArray(e))return e}(E)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(E,N)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(E,N)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),T=P[0],C=P[1],R=[{label:(0,i.language)("Level"),type:"flat-select",name:"level",queryKey:"level",queryTranslator:"singleTextValueRadio",filterGroup:{label:(0,i.language)("LEVEL"),name:"level",displayOrder:1,exportColumnOrder:!0},filterTreeLogic:{dependantFilters:[]},defaultState:{name:"ad_account",value:!0},applyFilterOnUpdate:!0,options:[{label:(0,i.language)("Ad Account"),name:"ad_account",type:"radio",value:!0},{label:(0,i.language)("Campaign"),name:"campaign",type:"radio",value:!1},{label:(0,i.language)("Ad Set"),name:"adset",type:"radio",value:!1},{label:(0,i.language)("Ad"),name:"ad",type:"radio",value:!1}]},{label:(0,i.language)("Ad Account ID"),type:"input-dropdown",name:"ad_account_id",queryKey:"ad_account_id",queryTranslator:"textSearch",filterGroup:{label:(0,i.language)("ID Filter"),name:"idFilter",displayOrder:2},options:[{label:(0,i.language)("Ad Account ID"),type:"text",name:"ad_account_id",value:"",validation:{required:!1,minLength:1,maxLength:100,type:"number"}}]},{label:(0,i.language)("Campaign ID"),type:"input-dropdown",name:"campaign_id",queryKey:"campaign_id",queryTranslator:"textSearch",filterGroup:{label:(0,i.language)("ID Filter"),name:"idFilter",displayOrder:2},filterTreeLogic:{dependantFilters:[{filterName:"level",mustHaveAnyOfValues:[{optionName:"campaign",value:!0},{optionName:"adset",value:!0},{optionName:"ad",value:!0}]}]},options:[{label:(0,i.language)("Campaign ID"),type:"text",name:"campaign_id",value:"",validation:{required:!1,minLength:1,maxLength:100,type:"number"}}]},{label:(0,i.language)("Ad Set ID"),type:"input-dropdown",name:"adset_id",queryKey:"adset_id",queryTranslator:"textSearch",filterGroup:{label:(0,i.language)("ID Filter"),name:"idFilter",displayOrder:2},filterTreeLogic:{dependantFilters:[{filterName:"level",mustHaveAnyOfValues:[{optionName:"adset",value:!0},{optionName:"ad",value:!0}]}]},options:[{type:"text",name:"adset_id",value:"",validation:{required:!1,minLength:1,maxLength:100,type:"number"}}]},{label:(0,i.language)("Ad ID"),type:"input-dropdown",name:"ad_id",queryKey:"ad_id",queryTranslator:"textSearch",filterGroup:{label:(0,i.language)("ID Filter"),name:"idFilter",displayOrder:2},filterTreeLogic:{dependantFilters:[{filterName:"level",mustHaveExactValues:[{optionName:"ad",value:!0}]}]},options:[{type:"text",name:"ad_id",value:"",validation:{required:!1,minLength:1,maxLength:100,type:"number"}}]},{label:(0,i.language)("Site Source Name"),name:"site_source_name",type:"dropdown-multi-select",queryKey:"site_source_name",queryTranslator:"arrayOfNames",hasSelectAll:!0,filterGroup:{label:(0,i.language)("Breakdown Filter"),name:"breakdownFilter",displayOrder:3,exportColumnOrder:!0},options:[{label:(0,i.language)("an - Audience Network"),type:"checkbox",name:"an"},{label:(0,i.language)("fb - Facebook"),type:"checkbox",name:"fb"},{label:(0,i.language)("ig -Instagram"),type:"checkbox",name:"ig"},{label:(0,i.language)("msg - Messenger"),type:"checkbox",name:"msg"},{label:(0,i.language)("th -Threads"),type:"checkbox",name:"th"}]},{label:(0,i.language)("Placement"),name:"placement",type:"dropdown-multi-select",queryKey:"placement",queryTranslator:"arrayOfNames",hasSelectAll:!0,filterGroup:{label:(0,i.language)("Breakdown Filter"),name:"breakdownFilter",displayOrder:3,exportColumnOrder:!0},options:[{label:(0,i.language)("Audience Network Classic"),type:"checkbox",name:"audience_network_classic",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"an",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Audience Network Rewarded Video"),type:"checkbox",name:"audience_network_rewarded_video",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"an",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Facebook Feed"),type:"checkbox",name:"facebook_feed",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"fb",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Facebook Instream"),type:"checkbox",name:"facebook_instream",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"fb",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Facebook Marketplace"),type:"checkbox",name:"facebook_marketplace",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"fb",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Facebook Right Column"),type:"checkbox",name:"facebook_right_column",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"fb",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Instagram Feed"),type:"checkbox",name:"instagram_feed",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"ig",value:!0}],orHasNoSelections:!0}]}}
2,{label:(0,i.language)("Instagram Stories"),type:"checkbox",name:"instagram_stories",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"ig",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Messenger Inbox"),type:"checkbox",name:"messenger_inbox",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"msg",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Messenger Sponsored Messages"),type:"checkbox",name:"messenger_sponsored_messages",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"msg",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Threads Stream"),type:"checkbox",name:"threads_stream",filterTreeLogic:{dependantFilters:[{filterName:"site_source_name",orHasAnyOfValues:[{optionName:"th",value:!0}],orHasNoSelections:!0}]}}]},{label:(0,i.language)("Device"),name:"device",type:"dropdown-multi-select",queryKey:"device",queryTranslator:"arrayOfNames",hasSelectAll:!0,filterGroup:{label:(0,i.language)("Breakdown Filter"),name:"breakdownFilter",displayOrder:3,exportColumnOrder:!0},options:[{label:(0,i.language)("Mobile"),type:"checkbox",name:"m",filterTreeLogic:{dependantFilters:[{filterName:"placement",orHasAnyOfValues:[{optionName:"audience_network_classic",value:!0},{optionName:"audience_network_rewarded_video",value:!0},{optionName:"facebook_feed",value:!0},{optionName:"facebook_instream",value:!0},{optionName:"facebook_marketplace",value:!0},{optionName:"instagram_feed",value:!0},{optionName:"instagram_stories",value:!0},{optionName:"messenger_inbox",value:!0},{optionName:"messenger_sponsored_messages",value:!0},{optionName:"threads_stream",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Tablet"),type:"checkbox",name:"t",filterTreeLogic:{dependantFilters:[{filterName:"placement",orHasAnyOfValues:[{optionName:"audience_network_classic",value:!0},{optionName:"audience_network_rewarded_video",value:!0},{optionName:"facebook_feed",value:!0},{optionName:"facebook_instream",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Desktop"),type:"checkbox",name:"c",filterTreeLogic:{dependantFilters:[{filterName:"placement",orHasAnyOfValues:[{optionName:"facebook_feed",value:!0},{optionName:"facebook_instream",value:!0},{optionName:"facebook_marketplace",value:!0},{optionName:"facebook_right_column",value:!0}],orHasNoSelections:!0}]}},{label:(0,i.language)("Other"),type:"checkbox",name:"ZZ",filterTreeLogic:{dependantFilters:[{filterName:"placement",orHasNoSelections:!0}]}}]},{label:(0,i.language)("Day"),name:"day",type:"dropdown-multi-select",queryKey:"day",queryTranslator:"arrayOfNames",hasSelectAll:!0,filterGroup:{label:(0,i.language)("Breakdown Filter"),name:"breakdownFilter",displayOrder:3,exportColumnOrder:!0},options:[{label:(0,i.language)("Monday"),type:"checkbox",name:"monday"},{label:(0,i.language)("Tuesday"),type:"checkbox",name:"tuesday"},{label:(0,i.language)("Wednesday"),type:"checkbox",name:"wednesday"},{label:(0,i.language)("Thursday"),type:"checkbox",name:"thursday"},{label:(0,i.language)("Friday"),type:"checkbox",name:"friday"},{label:(0,i.language)("Saturday"),type:"checkbox",name:"saturday"},{label:(0,i.language)("Sunday"),type:"checkbox",name:"sunday"}]},{label:(0,i.language)("Location"),name:"location",type:"dropdown-multi-select",queryKey:"location",queryTranslator:"arrayOfNames",hasSearchFilter:!0,maxSelections:5,sortOrder:"asc",filterGroup:{label:(0,i.language)("Breakdown Filter"),name:"breakdownFilter",displayOrder:3,exportColumnOrder:!0},options:l.CountryCodes.map(function(e){var t,n;return{label:null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"",name:null!==(n=null==e?void 0:e.code)&&void 0!==n?n:"",type:"checkbox"}})}],M=(0,u.useApi)({url:"/platform/levelled-data",sortKey:"percent_invalid",sortOrder:"desc",filters:R});function L(){C(M.filters)}var D=a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","adset",!0)||a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad",!0),B=a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","campaign",!0)||D,U=a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad",!0),F=a.FilterPanel.utils.filterGroupHasSelections("breakdownFilter",M.filters);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(a.Layout.ContentHeader,{children:[(0,p.jsx)(a.PageHeader,{title:(0,i.language)("Ad Stats"),text:(0,i.language)("Explore all your active campaigns that received clicks during this period"),contentRight:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Button,{onClick:function(){return L()},iconRight:["far","download"],"data-testid":"top-export-button",children:(0,i.language)("Export")}),(0,p.jsx)(a.FilterPanel.ExportPanel,{filters:T,isOpen:(null==T?void 0:T.length)>0,onClose:function(){C([])},apiUrl:"/platform/data-explorer/export",title:(0,i.language)("Data Explorer Export"),description:(0,i.language)("Export your data to a CSV file"),hasGroupByOrder:!0})]})}),(0,p.jsx)(a.FilterPanel,h(h({},M.filterConnector),{},{contentRight:(0,p.jsx)(d.default,{}),"data-testid":"data-explorer-filter-panel"}))]}),(0,p.jsxs)(a.Layout.Page,{type:"main","data-testid":"data-explorer-page",children:[!F&&(0,p.jsx)(f.default,{handleSort:M.handleSort,dataApi:M}),a.FilterPanel.utils.filterGroupHasSelections("breakdownFilter",M.filters)&&(0,p.jsx)("div",h(h({},{className:"alignItems-x6s0dn4 backgroundColor-x18oya0d display-x78zum5 justifyContent-xl56j7k marginBottom-x1yztbdb padding-x1d6rxua border-xct47cs borderRadius-xugzpu4","data-style-src":"DataExplorer/index.tsx:56"}),{},{"data-testid":"data-explorer-export-notice",children:(0,p.jsxs)("div",h(h({},{className:"alignItems-x6s0dn4 display-x78zum5 flexDirection-xdt5ytf flexGrow-x1c4vz4f gap-xou54vl justifyContent-xl56j7k maxWidth-xgcyixa width-xh8yej3","data-style-src":"DataExplorer/index.tsx:66"}),{},{children:[(0,p.jsx)("div",h(h({},{className:"alignItems-x6s0dn4 backgroundColor-xf6q9j8 borderRadius-xgqmno8 display-x78zum5 flexDirection-x1q0g3np flexGrow-x1c4vz4f flexShrink-x2lah0s height-x1peatla justifyContent-xl56j7k order-x1g77sc7 paddingBottom-x18d9i69 paddingLeft-xnm25rq paddingRight-xyfqnmn paddingTop-xexx8yu width-x1fu8urw","data-style-src":"DataExplorer/index.tsx:76"}),{},{children:(0,p.jsx)(a.Icon,h({name:["far","download"]},{className:"color-x14ptq3k fontSize-x1pvqxga","data-style-src":"DataExplorer/index.tsx:93"}))})),(0,p.jsx)(a.Text,h(h({preset:"widgetHeading"},{className:"fontSize-xosj86m fontWeight-x1s688f textAlign-x2b8uid","data-style-src":"DataExplorer/index.tsx:97"}),{},{children:(0,i.language)("Your breakdown is ready to export")})),(0,p.jsx)(a.Text,h(h({preset:"widgetSubHeading"},{className:"alignSelf-xkh2ocl color-xd87uto fontSize-xif65rj fontWeight-xo1l8bm textAlign-x2b8uid width-xh8yej3 marginBottom-x1e56ztr","data-style-src":"DataExplorer/index.tsx:102"}),{},{children:(0,i.language)("Breakdown data is delivered as a CSV, it is too granular to display in the table, but everything you need is there. Generate your export and it will land in your inbox shortly.")})),(0,p.jsxs)("div",{className:"flex",children:[(0,p.jsx)(a.Button,{onClick:L,iconRight:["far","download"],"data-testid":"data-explorer-generate-export-button",className:"mr-3",size:"sm",children:(0,i.language)("Generate Export")}
2),(0,p.jsx)(a.Button,{preset:"ghost",iconRight:"arrows-rotate","data-testid":"data-explorer-clear-filters-button",onClick:function(){M.setFilters(R)},size:"sm",children:(0,i.language)("Clear Filters")})]})]}))})),!F&&(0,p.jsxs)("div",h(h({},{className:"display-x78zum5 flexDirection-x1q0g3np gap-xou54vl marginBottom-x1yztbdb","data-style-src":"DataExplorer/index.tsx:38"}),{},{"data-testid":"data-explorer-stats-row",children:[(0,p.jsx)(a.StatBlock,{"data-testid":"data-explorer-stat-legitimate-clicks",title:(0,i.language)("Legitimate Clicks"),value:null!==(e=null==M||null===(t=M.response)||void 0===t||null===(t=t.result)||void 0===t||null===(t=t.overall)||void 0===t?void 0:t.legitimate_clicks)&&void 0!==e?e:0,deltaNumber:null!==(n=null==M||null===(r=M.response)||void 0===r||null===(r=r.result)||void 0===r||null===(r=r.overall)||void 0===r?void 0:r.clicks_legitimate)&&void 0!==n?n:0,deltaDirection:"up",deltaPreset:"flat",deltaColour:"green",deltaTime:(0,i.language)("vs prev period")}),(0,p.jsx)(a.StatBlock,{"data-testid":"data-explorer-stat-invalid-clicks",title:(0,i.language)("SIVT Clicks"),value:null!==(m=null==M||null===(g=M.response)||void 0===g||null===(g=g.result)||void 0===g||null===(g=g.overall)||void 0===g?void 0:g.invali
2d_clicks)&&void 0!==m?m:0,deltaNumber:null!==(y=null==M||null===(x=M.response)||void 0===x||null===(x=x.result)||void 0===x||null===(x=x.overall)||void 0===x?void 0:x.invalid_clicks_change)&&void 0!==y?y:0,deltaDirection:"down",deltaPreset:"flat",deltaColour:"red",deltaTime:(0,i.language)("vs prev period")}),(0,p.jsx)(a.StatBlock,{"data-testid":"data-explorer-stat-ivt-rate",title:(0,i.language)("IVT Rate"),value:null!==(v=null==M||null===(A=M.response)||void 0===A||null===(A=A.result)||void 0===A||null===(A=A.overall)||void 0===A?void 0:A.ivt_rate)&&void 0!==v?v:0,deltaNumber:null!==(_=null==M||null===(S=M.response)||void 0===S||null===(S=S.result)||void 0===S||null===(S=S.overall)||void 0===S?void 0:S.ivt_rate_change)&&void 0!==_?_:0,deltaDirection:"up",deltaPreset:"flat",deltaColour:"red",deltaTime:(0,i.language)("vs prev period")}),(0,p.jsx)(a.StatBlock,{"data-testid":"data-explorer-stat-givt",title:(0,i.language)("GIVT Clicks"),value:null!==(w=null==M||null===(O=M.response)||void 0===O||null===(O=O.result)||void 0===O||null===(O=O.overall)||void 0===O?void 0:O.general_invalid_clicks)&&void 0!==w?w:0,deltaNumber:null!==(j=null==M||null===(k=M.response)||void 0===k||null===(k=k.result)||void 0===k||null===(k=k.overall)||void 0===k?void 0:k.general_invalid_clicks_change)&&void 0!==j?j:0,deltaDirection:"right",deltaPreset:"flat",deltaColour:"red",deltaTime:(0,i.language)("vs prev period")})]})),!F&&(0,p.jsxs)(a.Card,{"data-testid":"data-explorer-breakdown-card",children:[(0,p.jsxs)(a.Text,{preset:"widgetHeading",as:"h4","data-testid":"data-explorer-breakdown-title",children:[a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,i.language)("Ad Account Breakdown"),a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","campaign",!0)&&(0,i.language)("Campaign Breakdown"),a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","adset",!0)&&(0,i.language)("Ad Set Breakdown"),a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad",!0)&&(0,i.language)("Ad Breakdown")]}),(0,p.jsx)(a.Divider,{className:"mt-4 mb-8"}),(0,p.jsx)(s.Table,h(h({},M.tableConnector),{},{noDataStyle:"secondary",leftPinnedColumns:1,"data-testid":"data-explorer-breakdown-table",children:function(e){var t,n,r,o,u,d,f,m,g,y,h,x,b,v,A,_,S,w,O,j,k;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsxs)("th",{children:[a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,i.language)("Ad Account Name"),a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","campaign",!0)&&(0,i.language)("Campaign Name"),a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","adset",!0)&&(0,i.language)("Ad Set Name"),a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad",!0)&&(0,i.language)("Ad Name"),(0,p.jsxs)(s.SubContent,{header:!0,children:[a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,i.language)("Ad Account ID"),a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","campaign",!0)&&(0,i.language)("Campaign ID"),a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","adset",!0)&&(0,i.language)("Ad Set ID"),a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad",!0)&&(0,i.language)("Ad ID")]})]}),U&&(0,p.jsxs)("th",{children:[(0,i.language)("Ad Set Name"),(0,p.jsx)(s.SubContent,{header:!0,children:(0,i.language)("Ad Set ID")})]}),D&&(0,p.jsxs)("th",{children:[(0,i.language)("Campaign Name"),(0,p.jsx)(s.SubContent,{header:!0,children:(0,i.language)("Campaign ID")})]}),B&&(0,p.jsxs)("th",{children:[(0,i.language)("Ad Account Name"),(0,p.jsx)(s.SubContent,{header:!0,children:(0,i.language)("Ad Account ID")})]}),(0,p.jsx)("th",{"data-tooltip":(0,i.language)("The total number of clicks Lunio has classified as legitimate."),"data-sortable-id":"clicks_legitimate",children:(0,i.language)("Legitimate Clicks")}),(0,p.jsx)("th",{"data-tooltip":(0,i.language)("The total number of clicks Lunio has flagged as suspicious, but not definitively invalid."),"data-sortable-id":"clicks_suspicious",children:(0,i.language)("Suspicious Clicks")}),(0,p.jsx)("th",{"data-sortable-id":"clicks_fraudulent","data-tooltip":(0,i.language)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,i.language)("SIVT Clicks")}),(0,p.jsx)("th",{"data-sortable-id":"clicks_general_invalid","data-tooltip":(0,i.language)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,i.language)("GIVT Clicks")}),(0,p.jsx)("th",{"data-tooltip":(0,i.language)("The total number of clicks Lunio has identified as invali
2d, including both GIVT and SIVT."),children:(0,i.language)("Total IVT")}),(0,p.jsx)("th",{"data-sortable-id":"clicks_total","data-tooltip":(0,i.language)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,i.language)("Total Clicks")}),(0,p.jsx)("th",{"data-tooltip":(0,i.language)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,i.language)("All Tracked Clicks")}),(0,p.jsx)("th",{"data-sortable-id":"percent_invalid","data-tooltip":(0,i.language)("The percentage of total clicks Lunio has classified as invalid."),children:(0,i.language)("SIVT Clicks %")}),(0,p.jsx)("th",{"data-tooltip":(0,i.language)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,i.language)("Total IVT %")}),!a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,p.jsx)("th",{"data-tooltip":(0,i.language)("Effective cost per click"),children:(0,i.language)("eCPC")}),!a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,p.jsx)("th",{"data-tooltip":(0,i.language)("Campaign cost model"),children:(0,i.language)("Cost Model")}),!a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,p.jsx)("th",{"data-tooltip":(0,i.language)("Total spend from Meta"),children:(0,i.language)("Spend")}),!a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,p.jsx)("th",{"data-tooltip":(0,i.language)("Adjusted spend value"),children:(0,i.language)("Adjusted Spend")}),(0,p.jsx)("th",{"data-sortable-id":"health","data-tooltip":(0,i.language)("A weighted score (0â100) that combines your invalid click rate and traffic volume to highlight which accounts have the biggest impact."),children:(0,i.language)("Health")})]})}),(0,p.jsxs)("tbody",{children:[(0,p.jsxs)("td",{children:[a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&null!=e&&e.ad_account_name?(0,p.jsx)(s.TextLength,{maxLength:80,children:null==e?void 0:e.ad_account_name}):"",a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","campaign",!0)&&null!=e&&e.campaign_name?(0,p.jsx)(s.TextLength,{maxLength:80,children:null==e?void 0:e.campaign_name}):"",a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","adset",!0)&&null!=e&&e.adset_name?(0,p.jsx)(s.TextLength,{maxLength:80,children:null==e?void 0:e.adset_name}):"",a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad",!0)&&null!=e&&e.ad_name?(0,p.jsx)(s.TextLength,{maxLength:80,children:null==e?void 0:e.ad_name}):"",(0,p.jsxs)(s.SubContent,{header:!0,children:[a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&null!=e&&e.ad_account_name?null==e?void 0:e.ad_account_id:"",a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","campaign",!0)&&null!=e&&e.campaign_name?null==e?void 0:e.campaign_id:"",a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","adset",!0)&&null!=e&&e.adset_name?"".concat(null!==(t=null==e?void 0:e.adset_id)&&void 0!==t?t:""):"",a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad",!0)&&null!=e&&e.ad_name?"".concat(null!==(n=null==e?void 0:e.ad_id)&&void 0!==n?n:""):""]})]}),U&&(0,p.jsxs)("td",{children:[(0,p.jsx)(s.TextLength,{maxLength:18,children:null!==(r=null==e?void 0:e.adset_name)&&void 0!==r?r:""}),(0,p.jsx)(s.SubContent,{header:!0,children:"".concat(null!==(o=null==e?void 0:e.adset_id)&&void 0!==o?o:"")})]}),D&&(0,p.jsxs)("td",{children:[(0,p.jsx)(s.TextLength,{maxLength:18,children:null!==(u=null==e?void 0:e.campaign_name)&&void 0!==u?u:""}),(0,p.jsx)(s.SubContent,{header:!0,children:"".concat(null!==(d=null==e?void 0:e.campaign_id)&&void 0!==d?d:"")})]}),B&&(0,p.jsxs)("td",{children:[(0,p.jsx)(s.TextLength,{maxLength:18,children:null!==(f=null==e?void 0:e.ad_account_name)&&void 0!==f?f:""}),(0,p.jsx)(s.SubContent,{header:!0,children:"".concat(null!==(m=null==e?void 0:e.ad_account_id)&&void 0!==m?m:"")})]}),(0,p.jsx)("td",{children:(0,p.jsx)(a.StatusDot,{type:"legitimate",size:"sm",textRight:(0,l.localiseNumber)(null!==(g=null==e?void 0:e.total_legitimate_clicks)&&void 0!==g?g:0)})}),(0,p.jsx)("td",{children:(0,p.jsx)(a.StatusDot,{type:"suspicious",size:"sm",textRight:(0,l.localiseNumber)(null!==(y=null==e?void 0:e.total_suspicious_clicks)&&void 0!==y?y:0)})}),(0,p.jsx)("td",{children:(0,p.jsx)(a.StatusDot,{type:"invalid",size:"sm",textRight:(0,l.localiseNumber)(null!==(h=null==e?void 0:e.total_invalid_clicks)&&void 0!==h?h:0)})}),(0,p.jsx)(c.AccessControl,{AND:!I,children:(0,p.jsx)("td",{children:(0,l.localiseNumber)(null!==(x=null==e?void 0:e.total_general_invalid_clicks)&&void 0!==x?x:0)})}),(0,p.jsx)("td",{children:(0,l.localiseNumber)(null!==(b=null==e?void 0:e.total_ivt)&&void 0!==b?b:0)}),(0,p.jsx)("td",{children:(0,l.localiseNumber)(null!==(v=null==e?void 0:e.total_clicks)&&void 0!==v?v:0)}),(0,p.jsx)("td",{children:(0,l.localiseNumber)(null!==(A=null==e?void 0:e.all_tracked_clicks)&&void 0!==A?A:0)}),(0,p.jsx)("td",{children:"".concat(Number(null!==(_=null==e?void 0:e.percent_invalid)&&void 0!==_?_:0).toFixed(2),"%")}),(0,p.jsx)("td",{children:"".concat(Number(null!==(S=null==e?void 0:e.total_ivt_percent)&&void 0!==S?S:0).toFixed(2),"%")}),!a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,p.jsx)("td",{children:s.format.currencyValueOrDash(null==e?void 0:e.effective_cpc,(null==e?void 0:e.currency)||(null==M||null===(w=M.response)||void 0===w||null===(w=w.result)||void 0===w||null===(w=w.overall)||void 0===w?void 0:w.cc)||"GBP")}),!a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,p.jsx)("td",{children:s.format.valueOrDash(null==e?void 0:e.campaign_cost_model)}),!a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,p.jsx)("td",{children:s.format.currencyValueOrDash(null==e?void 0:e.meta_spend,(null==e?void 0:e.currency)||(null==M||null===(O=M.response)||void 0===O||null===(O=O.result)||void 0===O||null===(O=O.overall)||void 0===O?void 0:O.cc)||"GBP")}),!a.FilterPanel.utils.filterOptionHasValue(M.filters,"level","ad_account",!0)&&(0,p.jsx)("td",{children:s.format.currencyValueOrDash(null==e?void 0:e.meta_actual_value,(null==e?void 0:e.currency)||(null==M||null===(j=M.response)||void 0===j||null===(j=j.result)||void 0===j||null===(j=j.overall)||void 0===j?void 0:j.cc)||"GBP")}),(0,p.jsx)("td",{children:(0,p.jsx)(a.HealthScore,{health:null!==(k=null==e?void 0:e.health)&&void 0!==k?k:0})})]})]})}}))]}),(0,p.jsxs)("div",{className:"mt-4","data-testid":"data-explorer-prepared-exports-section",children:[(0,p.jsx)(a.Text,{preset:"widgetHeading",colour:"grey900",fontSize:18,weight:600,"data-testid":"data-explorer-prepared-exports-title",children:(0,i.language)("Prepared Exports")}),(0,p.jsx)(a.Text,{className:"mb-3",preset:"text",colour:"grey400",fontSize:14,weight:400,"data-testid":"data-explorer-prepared-exports-description",children:(0,i.language)("Ready-made reports for the most common IVT breakdowns.")}),(0,p.jsx)("div",{"data-testid":"data-explorer-predefined-exports",children:(0,p.jsx)(a.FilterPanel.PreDefinedExports,{})})]})]})]})}}
2,82433:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=h(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(18141),s=n(60156),c=h(n(79135)),u=h(n(62720)),d=n(82672),f=h(n(9260)),p=h(n(73055)),m=h(n(40572)),g=h(n(13571)),y=n(31085);function h(e){return e&&e.__esModule?e:{default:e}}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}var b=["requestParams","onRequestParams","config","initialValues","onFilterChange","apiData","alignRight"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return(t=function(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||O(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k=o.default;k(".width-xezivpi{width:max-content}",4e3),k(".display-x3nfvp2{display:inline-flex}",3e3),k(".marginRight-x1yf7rl7{margin-right:0}",4e3),k(".height-xn3w4p2{height:44px}",4e3),k(".zIndex-x1vjfegm{z-index:1}",3e3),k(".borderRadius-xur7f20{border-radius:8px}",2e3),k(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),k(".display-x78zum5{display:flex}",3e3),k(".alignItems-x6s0dn4{align-items:center}",3e3),k(".paddingLeft-x1k8dnhd{padding-left:18px}",4e3),k(".paddingRight-x18a8kpn{padding-right:18px}",4e3),k(".color-x5tu7p5{color:var(--gray700-x15a2rb)}",3e3),k(".fontSize-x1j61zf2{font-size:16px}",3e3),k(".boxSizing-x9f619{box-sizing:border-box}",3e3),k(".border-x180m19u{border:solid 1px var(--gray300-x1xk3734)}",1e3),k(".marginLeft-xet2fuk{margin-left:8px}",4e3),k(".width-x14rvwrp{width:600px}",4e3),k(".paddingLeft-x1rpv2kp{padding-left:56px}",4e3),k(".paddingRight-xkhz7bo{padding-right:56px}",4e3),k(".marginBottom-xieb3on{margin-bottom:20px}",4e3),k(".fontSize-xwsyq91{font-size:20px}",3e3),k(".fontWeight-xo1l8bm{font-weight:400}",3e3),k(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),k(".fontSize-xif65rj{font-size:14px}",3e3),k(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),k(".marginTop-xw7yly9{margin-top:16px}",4e3),k(".fontFamily-xqu6211{font-family:var(--fontText-xop4vu5)}",3e3),k(".fontSize-x1bhvh73{font-size:var(--fontSizeMd-x5g6s0a)}",3e3),k(".fontWeight-x1ia3dwe{font-weight:var(--fontWeightXs-xt5f5yd)}",3e3),k(".color-x1iviald{color:var(--error600-x1indqeg)}",3e3),k(".marginRight-x1db2dqx{margin-right:8px}",4e3),k(".padding-xfawy5m{padding:4px}",1e3),k(".height-x1v9usgg{height:14px}",4e3),k(".width-x6jxa94{width:14px}",4e3),k(".color-x116vv80{color:var(--error500-x1idp37q)}",3e3),k(".borderRadius-x16rqkct{border-radius:50%}",2e3),k(".backgroundColor-x1ssdy5{background-color:var(--error50-x1f3qy36)}",3e3),k(".textAlign-xdpxx8g{text-align:left}",3e3),k(".width-xh8yej3{width:100%}",4e3),k(".borderCollapse-x1mwwwfo{border-collapse:collapse}",3e3),k(".paddingLeft-xg3sno2{padding-left:44px}",4e3),k(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),k(".borderBottom-x8dxnfb{border-bottom:solid 1px var(--gray250-x1kpk87u)}",2e3),k(".borderTop-xc16jdr{border-top:solid 1px var(--gray250-x1kpk87u)}",2e3),k(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),k(".fontSize-xfifm61{font-size:12px}",3e3),k(".height-x16nrsnc{height:400px}",4e3),k(".overflow-xysyzu8{overflow:auto}",2e3),k(".height-x14nwjz3{height:88px}",4e3),k(".color-xlmegbm{color:var(--grey900-x96mn3q)}",3e3),k(".fontWeight-xk50ysn{font-weight:500}",3e3),k(".flexDirection-xdt5ytf{flex-direction:column}",3e3),k(".alignContent-xc26acl{align-content:center}",3e3),k(".fontSize-x1tfy3uw{font-size:var(--fontSizeSm-x186ywzf)}",3e3),k(".marginLeft-x1tpqehw{margin-left:12px}",4e3),k(".justifyContent-x1qughib{justify-content:space-between}",3e3),k(".paddingTop-x9desvi{padding-top:26px}",4e3),k(".color-x14ptq3k{color:var(--oldBrand600-x1t41vhw)}",3e3),k(".justifyContent-xl56j7k{justify-content:center}",3e3),k(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),k(".position-x10l6tqk{position:absolute}",3e3),k(".top-x1tk7jg1{top:12px}",4e3),k(".right-xlftelb{right:12px}",4e3),k(".marginLeft-x8x9d4c{margin-left:auto}",4e3);var E={menuContainer:{width:"width-x14rvwrp",backgroundColor:"backgroundColor-x18oya0d",$$css:"FilterSearchedSelection/index.tsx:46"},positionRight:{marginLeft:"marginLeft-x8x9d4c",$$css:"FilterSearchedSelection/index.tsx:179"}};
2function N(e){var t=e.requestParams,n=e.onRequestParams,r=e.config,o=e.initialValues,h=e.onFilterChange,x=e.apiData,v=void 0===x?{}:x,O=e.alignRight,j=void 0!==O&&O,k=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,b),N=(0,a.useRef)(null),I=w((0,a.useState)(!0),2),P=I[0],T=I[1],C=w((0,a.useState)([]),2),R=C[0],M=C[1],L=w((0,a.useState)(!1),2),D=L[0],B=L[1],U=w((0,a.useState)(!1),2),F=U[0],G=U[1],W=w((0,a.useState)(!1),2),z=W[0],V=W[1],q=w((0,a.useState)([]),2),K=q[0],H=q[1],Y=w((0,a.useState)([]),2),$=Y[0],Z=Y[1],X=w((0,a.useState)(!1),2),J=X[0],Q=X[1],ee=w((0,a.useState)(""),2),te=ee[0],ne=ee[1];(0,a.useEffect)(function(){D&&H(S($))},[D]),(0,a.useEffect)(function(){if((null==R?void 0:R.length)>0&&!z){var e=(null==o?void 0:o[null==r?void 0:r.filterName])||[],t=[];e.forEach(function(e){var n,r=null!=R&&null!==(n=R[0])&&void 0!==n&&n.items?R[0].items.find(function(t){return t.aw_id===e}):void 0;r&&t.push(r)}),V(!0),Z([].concat(t))}},[R]);var re=w((0,a.useState)({lastRequestedDirection:"append",pageStart:1,pageEnd:1,totalResults:0,totalPages:0,apiResponseDataKey:r.apiResponseDataKey,maxNoPages:r.maxNoPages}),2),oe=re[0],ae=re[1];function ie(){N.current&&(N.current.scrollTop=0)}(0,a.useEffect)(function(){if(null!=v&&v.result){var e=v.result;null!=e&&e.data&&function(e){var t=(0,m.default)(e,R,oe),n=t.listD,r=t.lazyL;n.length>0?"append"===oe.lastRequestedDirection?N.current&&(N.current.scrollTop-=90):N.current&&(N.current.scrollTop=90):ie(),T(!1),M(n),ae(r)}(e)}},[v]);var le=(0,a.useCallback)((0,p.default)(function(){var e=t.pagination;if(!(P||e.current_page>=oe.totalPages)){T(!0);var r=(0,l.clone)(t);r.pagination.current_page=oe.pageEnd+1,ae(A(A({},oe),{},{lastRequestedDirection:"append"})),n(r)}},50),[n,P,t,oe,ae]),se=(0,a.useCallback)((0,p.default)(function(){if(!P&&1!==oe.pageStart){T(!0);var e=(0,l.clone)(t);e.pagination.current_page=oe.pageStart-1,ae(A(A({},oe),{},{lastRequestedDirection:"prepend"})),n(e)}},50),[n,P,t,oe,ae]);function ce(){G(!1),Z([]),Q(!1)}function ue(){return(0,s.language)("Search :labelIdentifier",{labelIdentifier:r.labelIdentifier})}var de,fe,pe,me=(0,a.useCallback)((0,p.default)(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return a=r[0],(i=(0,l.clone)(t)).searchKeys.search_term===a?null:(i.searchKeys.search_term=a,i.pagination.current_page=1,n(i),M([]),ce(),T(!0),ae(A(A({},oe),{},{pageStart:1,pageEnd:1,lastRequestedDirection:"append"})),ce(),!0);var a,i},500),[]);return(0,a.useEffect)(function(){me(te)},[te]),(0,y.jsxs)("div",A(A(A({id:"account-selector-container"},{className:"width-xezivpi display-x3nfvp2 marginRight-x1yf7rl7","data-style-src":"FilterSearchedSelection/index.tsx:23"}),{},{"data-testid":"filter-searched-selection"},k),{},{children:[(0,y.jsxs)("button",A(A({id:"account-selector-open-button",type:"button"},{className:"height-xn3w4p2 zIndex-x1vjfegm width-xezivpi borderRadius-xur7f20 backgroundColor-x18oya0d display-x78zum5 alignItems-x6s0dn4 paddingLeft-x1k8dnhd paddingRight-x18a8kpn color-x5tu7p5 fontSize-x1j61zf2 boxSizing-x9f619 border-x180m19u","data-style-src":"FilterSearchedSelection/index.tsx:28"}),{},{onClick:function(){return B(!D)},children:[(null==o||null===(de=o[r.filterName])||void 0===de?void 0:de.length)>0?(0,s.language)("Showing :length :labelIdentifier",{length:(null!==(fe=null===(pe=o[r.filterName])||void 0===pe?void 0:pe.length)&&void 0!==fe?fe:0).toString(),labelIdentifier:r.labelIdentifier}):(0,s.language)("Showing All :labelIdentifier",{labelIdentifier:r.labelIdentifier}),!D&&(0,y.jsx)(c.default,A({name:"chevron-up"},{className:"marginLeft-xet2fuk","data-style-src":"FilterSearchedSelection/index.tsx:43"})),D&&(0,y.jsx)(c.default,A({name:"chevron-down"},{className:"marginLeft-xet2fuk","data-style-src":"FilterSearchedSelection/index.tsx:43"}))]}
2)),(0,y.jsxs)(g.default,A(A({open:D,onClose:function(){return B(!1)},size:"md"},{"data-style-src":"FilterSearchedSelection/index.tsx:173"}),{},{disableClickOutside:!0,whiteBackground:!0,children:[(0,y.jsx)(f.default,{preset:"tertiary","aria-label":(0,s.language)("Close"),className:"position-x10l6tqk top-x1tk7jg1 right-xlftelb",onClick:function(){return B(!1)},children:(0,y.jsx)(c.default,{name:"close"})}),(0,y.jsxs)("div",A(A({},i.props(E.menuContainer,j&&E.positionRight)),{},{"data-testid":"main-filter-menu",children:[(0,y.jsxs)("div",A(A({},{className:"paddingLeft-x1rpv2kp paddingRight-xkhz7bo marginBottom-xieb3on","data-style-src":"FilterSearchedSelection/index.tsx:50"}),{},{children:[(0,y.jsx)("h1",A(A({},{className:"fontSize-xwsyq91 fontWeight-xo1l8bm color-x18k1rwp","data-style-src":"FilterSearchedSelection/index.tsx:55"}),{},{children:"".concat((0,s.language)("Filter")," ").concat(r.labelIdentifier)})),(0,y.jsx)("h1",A(A({},{className:"fontSize-xif65rj fontWeight-xo1l8bm color-xd87uto","data-style-src":"FilterSearchedSelection/index.tsx:60"}),{},{children:"".concat((0,s.language)("Showing")," ").concat(oe.totalResults," ").concat(r.labelIdentifier)})),(0,y.jsx)("div",A(A({},{className:"marginTop-xw7yly9 marginBottom-xieb3on","data-style-src":"FilterSearchedSelection/index.tsx:65"}),{},{children:(0,y.jsx)(u.default,{size:"md",value:te,placeholder:ue(),"aria-label":ue(),iconLeft:"fas fa-search",onChange:function(e){e.target instanceof HTMLInputElement&&e.target.value&&ne(e.target.value)}})})),J&&(0,y.jsxs)("div",A(A({},{className:"display-x78zum5 alignItems-x6s0dn4 fontFamily-xqu6211 fontSize-x1bhvh73 fontWeight-x1ia3dwe color-x1iviald","data-style-src":"FilterSearchedSelection/index.tsx:69"}),{},{children:[(0,y.jsx)(c.default,A({name:"exclamation"},{className:"marginRight-x1db2dqx padding-xfawy5m height-x1v9usgg width-x6jxa94 color-x116vv80 borderRadius-x16rqkct backgroundColor-x1ssdy5","data-style-src":"FilterSearchedSelection/index.tsx:77"})),(0,s.language)("Choose a maximum of 100 specific accounts or select all.")]}))]})),(0,y.jsx)("div",A(A({},{className:"textAlign-xdpxx8g","data-style-src":"FilterSearchedSelection/index.tsx:86"}),{},{children:(0,y.jsxs)("div",A(A({},{className:"width-xh8yej3 borderCollapse-x1mwwwfo","data-style-src":"FilterSearchedSelection/index.tsx:89"}),{},{children:[(0,y.jsxs)("div",A(A({},{className:"height-xn3w4p2 display-x78zum5 alignItems-x6s0dn4 width-xh8yej3 paddingLeft-xg3sno2 backgroundColor-xq18l50 borderBottom-x8dxnfb borderTop-xc16jdr color-x1r9fet4 fontSize-xfifm61","data-style-src":"FilterSearchedSelection/index.tsx:93"}),{},{children:[(0,y.jsx)("div",A(A({},{className:"display-x78zum5 alignContent-xc26acl fontSize-x1tfy3uw color-x1r9fet4 marginLeft-x1tpqehw fontFamily-xqu6211","data-style-src":"FilterSearchedSelection/index.tsx:128"}),{},{children:(0,y.jsx)(u.default.Checkbox,{id:"account-selector-select-all-checkbox","aria-label":"Select All",value:F,onClick:function(){G(!F),Z([]),Q(!1)}})})),(0,y.jsx)("div",A(A({},{className:"display-x78zum5 alignContent-xc26acl marginLeft-x1tpqehw fontFamily-xqu6211 color-xlmegbm fontSize-xfifm61 fontWeight-xk50ysn marginRight-x1db2dqx","data-style-src":"FilterSearchedSelection/index.tsx:128; FilterSearchedSelection/index.tsx:118"}),{},{children:r.col1Header})),(0,y.jsx)(c.default,{name:["fas","arrow-down"]})]})),(0,y.jsxs)("div",A(A({},{className:"width-xh8yej3 height-x16nrsnc overflow-xysyzu8","data-style-src":"FilterSearchedSelection/index.tsx:105"}),{},{onScroll:function(){return function(){var e=t.pagination;if(!(P||e.current_page>=oe.totalPages)&&N.current){var n=N.current,r=n.scrollTop,o=n.scrollHeight;r+n.clientHeight===o&&le(),0===r&&se()}}()},ref:N,children:[P&&"prepend"===oe.lastRequestedDirection&&(0,y.jsx)("div",A(A({},{className:"height-x14nwjz3 display-x78zum5 alignItems-x6s0dn4 paddingLeft-xg3sno2 borderBottom-x8dxnfb width-xh8yej3","data-style-src":"FilterSearchedSelection/index.tsx:110"}),{},{children:(0,y.jsxs)("div",A(A({},{className:"alignContent-xc26acl marginLeft-x1tpqehw fontFamily-xqu6211 display-x78zum5 justifyContent-xl56j7k alignItems-x6s0dn4 fontSize-x1j61zf2 fontWeight-xo1l8bm color-xbdn2ka","data-style-src":"FilterSearchedSelection/index.tsx:128; FilterSearchedSelection/index.tsx:161"}),{},{children:[(0,y.jsx)(c.default,{name:"spinner",pulse:!0,className:"mr-4"}
2),(0,s.language)("Loading Results...")]}))})),R.map(function(e){return(0,y.jsx)(y.Fragment,{children:e.items.map(function(e){return(0,a.createElement)("div",A(A({},{className:"height-x14nwjz3 display-x78zum5 alignItems-x6s0dn4 paddingLeft-xg3sno2 borderBottom-x8dxnfb width-xh8yej3","data-style-src":"FilterSearchedSelection/index.tsx:110"}),{},{key:"".concat(e.id).concat(e[r.col1DataKey])}),(0,y.jsx)("div",A(A({},{className:"display-x78zum5 alignContent-xc26acl fontSize-x1tfy3uw color-x1r9fet4 marginLeft-x1tpqehw fontFamily-xqu6211","data-style-src":"FilterSearchedSelection/index.tsx:128"}),{},{children:(0,y.jsx)(u.default.Checkbox,{value:(0,d.isSelected)(e,$)||F,"aria-label":e[r.col1DataKey],name:"checkbox-".concat(e.id),onClick:function(){!function(e){100!==$.length||$.includes(e)?(Z((0,d.selectItem)(e,$)),G(!1),Q(!1)):Q(!0)}(e)}})})),(0,y.jsx)("div",A(A({},{className:"display-x78zum5 alignContent-xc26acl fontSize-x1tfy3uw color-x1r9fet4 marginLeft-x1tpqehw fontFamily-xqu6211","data-style-src":"FilterSearchedSelection/index.tsx:128"}),{},{children:(0,y.jsxs)("div",A(A({},{className:"display-x78zum5 flexDirection-xdt5ytf","data-style-src":"FilterSearchedSelection/index.tsx:124"}),{},{children:[(0,y.jsx)("div",A(A({},{className:"color-x18k1rwp fontWeight-xk50ysn fontSize-xif65rj","data-style-src":"FilterSearchedSelection/index.tsx:136"}),{},{children:e[r.col1DataKey]})),(0,y.jsx)("div",A(A({},{className:"color-x18k1rwp fontSize-xif65rj fontWeight-xo1l8bm","data-style-src":"FilterSearchedSelection/index.tsx:141"}),{},{children:e.aw_id}))]}))})))})})}),(0,y.jsxs)("div",A(A({},{className:"height-x14nwjz3 display-x78zum5 alignItems-x6s0dn4 paddingLeft-xg3sno2 borderBottom-x8dxnfb width-xh8yej3","data-style-src":"FilterSearchedSelection/index.tsx:110"}),{},{children:[P&&!1!==v.isLoading&&(0,y.jsxs)("div",A(A({},{className:"alignContent-xc26acl marginLeft-x1tpqehw fontFamily-xqu6211 display-x78zum5 justifyContent-xl56j7k alignItems-x6s0dn4 fontSize-x1j61zf2 fontWeight-xo1l8bm color-xbdn2ka","data-style-src":"FilterSearchedSelection/index.tsx:128; FilterSearchedSelection/index.tsx:161"}),{},{children:[(0,y.jsx)(c.default,{name:"spinner",pulse:!0,className:"mr-4"}
2),(0,s.language)("Loading Results...")]})),(!P||!1===v.isLoading)&&0===R.length&&(0,y.jsx)("div",A(A({},{className:"alignContent-xc26acl marginLeft-x1tpqehw fontFamily-xqu6211 display-x78zum5 justifyContent-xl56j7k alignItems-x6s0dn4 fontSize-x1j61zf2 fontWeight-xo1l8bm color-xbdn2ka","data-style-src":"FilterSearchedSelection/index.tsx:128; FilterSearchedSelection/index.tsx:161"}),{},{children:(0,s.language)("No Results Found")}))]}))]}))]}))})),(0,y.jsxs)("div",A(A({},{className:"width-xh8yej3 display-x78zum5 justifyContent-x1qughib alignItems-x6s0dn4 borderTop-xc16jdr paddingLeft-x1rpv2kp paddingRight-xkhz7bo paddingTop-x9desvi","data-style-src":"FilterSearchedSelection/index.tsx:146"}),{},{children:[(0,y.jsx)("div",A(A({},{className:"fontSize-x1j61zf2 fontWeight-xo1l8bm color-x14ptq3k","data-style-src":"FilterSearchedSelection/index.tsx:156"}),{},{children:F?(0,s.language)("All :labelIdentifier selected",{labelIdentifier:r.labelIdentifier}):(0,s.language)("Showing :length of :total selected",{length:($.length||0).toString(),total:oe.totalResults.toString()})})),(0,y.jsxs)("div",A(A({},{className:"display-x78zum5 alignItems-x6s0dn4","data-style-src":"FilterSearchedSelection/index.tsx:169"}),{},{children:[(0,y.jsx)(f.default,{"data-testid":"account-selector-select-clear-button",size:"md",className:"mr-2",preset:"outline",onClick:function(){Z(S(K)),G(!1),Q(!1),ne(""),B(!1)},children:(0,s.language)("Cancel")}),(0,y.jsx)(f.default,{"data-testid":"account-selector-select-clear-button",size:"md",className:"mr-2",preset:"outline",onClick:function(){""!==t.searchKeys[r.apiSortKey]&&ne(""),ie(),ce()},children:(0,s.language)("Clear")}),(0,y.jsx)(f.default,{"data-testid":"account-selector-select-apply-button",size:"md",preset:"primary",onClick:function(){var e;e=$.map(function(e){return e.aw_id}),h(A(A({},o),{},_({},r.filterName,e))),B(!1)},children:(0,s.language)("Apply Filter")})]}))]}))]}))]}))]}))}N.displayName="SearchedSelection",t.default=N},82497:(e,t,n)=>{"use strict";e.exports=n.p+"67f6a67b35643edaf373.svg"},82672:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getArrayOfColumnValues:()=>s,isSelected:()=>i,removeRow:()=>l,selectItem:()=>a,toggleSelectAll:()=>o});var r=n(45250);function o(e,t,n){var r=[];if(!t)return r;if(n)for(var o=0;o<t.length;o+=1)r.push(t[o]);return r}function a(e,t){var n=(0,r.clone)(t),o=n.findIndex(function(t){return t.id===e.id});return-1===o?n.push(e):n.splice(o,1),n}function i(e,t){var n=t.findIndex(function(t){return t.id===(null==e?void 0:e.id)});return-1!==n||-1!==t.findIndex(function(t){return t.id===(null==e?void 0:e.aw_id)})}function l(e,t){var n=(0,r.clone)(t),o=n.findIndex(function(t){return t.id===e.id});return-1!==o&&n.splice(o,1),n}function s(e,t){var n=[];return e.forEach(function(e){n.push(e[t])}),n}},82725:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(14041),o=n(9260),a=n(62720),i=n(30021),l=n(30556),s=n(27805),c=n(50324),u=n(99018),d=n(89748),f=n(77730),p=n(39067),m=n.n(p),g=n(59562),y=n(71174),h=n(83223),x=n(19706),b=n(24752),v=n(71073),A=n(5179),_=n(31085);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j=(0,u.createUseStyles)(function(){return{container:{display:"inline-flex",flexDirection:"column",width:"100%",height:"100%"},form:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"}}});function k(e){var t=e.onClose,n=e.report,u=void 0!==n&&n,p=j(),m=S((0,f.A)(),1)[0].workspaces.filter(function(e){return e.id>0}),k=S((0,r.useState)(null),2),E=k[0],N=k[1],I=S((0,r.useState)(!0),2),P=I[0],T=I[1],C=S((0,r.useState)({}),2),R=C[0],M=C[1];if(!u)return null;var L,D,B,U,F,G={template_id:u.template_id,frequency:u.frequency,scope:u.scope,report_id:null!=u&&u.id?u.id:0};function W(e){var t;return Boolean(null==e||null===(t=e.platforms)||void 0===t?void 0:t.some(function(e){return"affiliate"===e.platform_name}))}return(0,_.jsxs)("div",{className:p.container,children:[(0,_.jsx)(s.default,{title:(0,d.A)("Setup Report"),text:(0,d.A)("Setup frequency of report")}),(0,_.jsxs)(c.A,{className:p.form,initialFormValues:G,submitSuccessMessage:(0,d.A)("Report updated successfully"),submitUrl:"/settings/reports/update",submitType:"PUT",queriesToInvalidate:["/settings/reports"],onFormSubmit:function(){return t()},onFormDataChange:function(e){return function(e){var t=e.values.scope,n=m.find(function(e){return e.id===t});N(n),T(1===e.values.template_id),M(e.values)}(e)},children:[(0,_.jsxs)("div",{children:[(0,_.jsx)(l.default,{style:{padding:0},children:(0,_.jsxs)(l.default.Col,{xl:7,lg:12,children:[(0,_.jsx)(i.default,{preset:"formSectionTitle",className:"mb-3",children:(0,d.A)("Report Type")}),(0,_.jsx)(a.default.Select,{className:"mb-4",options:[{label:(0,d.A)("Worksp
2ace Summary"),value:1},{label:(0,d.A)("Campaign IVT Alert"),value:2}].concat((F=W(E)?[{label:(0,d.A)("Affiliate IVT Alert"),value:3}]:[],function(e){if(Array.isArray(e))return O(e)}(F)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(F)||w(F)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),placeholder:(0,d.A)("Select Report Type"),"data-testid":"create-report-workspace-summary-select",name:"template_id"}),(0,_.jsx)(i.default,{preset:"formSectionTitle",className:"mb-3",children:(0,d.A)("Select Workspace")}),(0,_.jsx)(a.default.Select,{className:"mb-4",options:m.map(function(e){return{label:e.name,value:e.id}}),"data-testid":"create-report-workspace-select",name:"scope"})]})}),P&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.default,{preset:"formSectionTitle",className:"mb-3",children:(0,d.A)("Frequency")}),(0,_.jsx)(i.default,{preset:"formSectionSubTitle",className:"mb-3",children:(0,d.A)("How often would you like to receive this Report")}),(0,_.jsxs)(a.default.OptionGroup,{name:"frequency",className:"mb-5",children:[(0,_.jsxs)("div",{className:"flex items-center mb-3",children:[(0,_.jsx)(a.default.Radio,{value:"weekly","data-testid":"edit-report-weekly-radio",ariaLabel:(0,d.A)("Weekly")}),(0,_.jsxs)("div",{className:"ml-3",children:[(0,_.jsx)(i.default,{preset:"formSectionTitle",children:(0,d.A)("Weekly")}),(0,_.jsx)(i.default,{preset:"formSectionSubTitle",children:(0,_.jsxs)(_.Fragment,{children:[(0,d.A)("Receive a report every Monday -")," ",(0,_.jsxs)("b",{children:[(0,d.A)("next scheduled report")," ",(L=new Date,D=(0,A.k)(L,{weekStartsOn:1}),B=(0,g.f)(D,1),U=(0,g.f)(B,6),(0,h.GP)(U,"do MMMM"))]})]})})]})]}),(0,_.jsxs)("div",{className:"flex items-center",children:[(0,_.jsx)(a.default.Radio,{value:"monthly","data-testid":"edit-report-monthly-radio",ariaLabel:(0,d.A)("Monthly")}),(0,_.jsxs)("div",{className:"ml-3",children:[(0,_.jsx)(i.default,{preset:"formSectionTitle",children:(0,d.A)("Monthly")}),(0,_.jsx)(i.default,{preset:"formSectionSubTitle",children:(0,_.jsxs)(_.Fragment,{children:[(0,d.A)("Receive a report on the first Monday of each month -")," ",(0,_.jsxs)("b",{children:[(0,d.A)("next scheduled report")," ",function(){for(var e=new Date,t=(0,v.w)(e),n=(0,x.P)(t);1!==n;)t.setDate(t.getDate()+1),n=(0,x.P)(t);if((0,b.Y)(e,t))return(0,h.GP)(t,"do MMMM");for(var r=(0,v.w)((0,y.P)(e,1)),o=(0,x.P)(r);1!==o;)r.setDate(r.getDate()+1),o=(0,x.P)(r);return(0,h.GP)(r,"do MMMM")}()]})]})})]})]})]})]})]}),(0,_.jsxs)("div",{className:"flex justify-end mt-12",children:[(0,_.jsx)(o.default,{"data-testid":"cancel-edit-report-button",preset:"outline",className:"mr-3",onClick:function(){t()},children:(0,d.A)("Cancel")}),(0,_.jsx)(o.default,{"data-testid":"confirm-edit-report-save-button",type:"submit",disabled:!W(E)&&3===R.template_id,children:(0,d.A)("Confirm")})]})]})]})}k.propTypes={onClose:m().func.isRequired,report:m().shape({id:m().number,template_id:m().number,scope:m().number,frequency:m().string})};const E=k},82917:(e,t,n)=>{"use strict";t.A=void 0;var r=s(n(25751)),o=s(n(5205)),a=s(n(43530)),i=s(n(84918)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=r.default;function m(e){var t,n=e.loading,r=e.message,s=void 0===r?"":r,c=e.className,u=void 0===c?"":c,f=e.children,p=void 0===f?null:f,m=e.data,g=void 0===m?[!0]:m,y="darkModeTheme"===("undefined"!=typeof window?null===(t=window.localStorage)||void 0===t?void 0:t.getItem("themeName"):null)?a.default:o.default;return n?(0,l.jsx)("div",d(d({className:u},{className:"width-xh8yej3 height-x5yr21d padding-x1717udv margin-xhifcr4 listStyle-xe8uvvx display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k","data-style-src":"LunioPageLoader/index.tsx:9"}),{},{children:(0,l.jsxs)("div",d(d({},{className:"width-x1f394nn","data-style-src":"LunioPageLoader/index.tsx:19"}),{},{children:[(0,l.jsxs)("div",d(d({},{className:"position-x1n2onr6 aspectRatio-x1y5e3q9 width-xktia5q display-x3nfvp2 marginBottom-x1afznat opacity-x1iy03kw","data-style-src":"LunioPageLoader/index.tsx:22"}),{},{children:[(0,l.jsx)("div",d(d({},{className:"position-x10l6tqk width-xh8yej3","data-style-src":"LunioPageLoader/index.tsx:37"}),{},{children:(0,l.jsx)("img",{"data-testid":"lunio-page-loader-loading-image",width:"100%",src:y,alt:"loading logo"})})),(0,l.jsx)("div",d(d({},{className:"position-x10l6tqk width-xh8yej3","data-style-src":"LunioPageLoader/index.tsx:41"}),{},{children:(0,l.jsx)("img",{alt:"",width:"100%",src:i.default})}))]})),(0,l.jsx)("div",d(d({},{className:"width-xh8yej3 textAlign-x2b8uid fontFamily-xjc5pbd fontSize-xif65rj color-x4g5gcn","data-style-src":"LunioPageLoader/index.tsx:30"}),{},{children:s}))]}))})):0===g.length?(0,l.jsx)("div",{children:"No Results"}):p}p(".width-xh8yej3{width:100%}",4e3),p(".height-x5yr21d{height:100%}",4e3),p(".padding-x1717udv{padding:0}",1e3),p(".margin-xhifcr4{margin:20px}",1e3),p(".listStyle-xe8uvvx{list-style:none}",2e3),p(".display-x78zum5{display:flex}",3e3),p(".alignItems-x6s0dn4{align-items:center}",3e3),p(".justifyContent-xl56j7k{justify-content:center}",3e3),p(".width-x1f394nn{width:18%}",4e3),p(".position-x1n2onr6{position:relative}",3e3),p(".aspectRatio-x1y5e3q9{aspect-ratio:1 / 1}",3e3),p(".width-xktia5q{width:80%}",4e3),p(".display-x3nfvp2{display:inline-flex}",3e3),p(".marginBottom-x1afznat{margin-bottom:5%}",4e3),p(".opacity-x1iy03kw{opacity:.9}",3e3),p(".textAlign-x2b8uid{text-align:center}",3e3),p(".fontFamily-xjc5pbd{font-family:Axiforma,sans-serif}",3e3),p(".fontSize-xif65rj{font-size:14px}",3e3),p(".color-x4g5gcn{color:var(--black800-x1ueousw)}",3e3),p(".position-x10l6tqk{position:absolute}",3e3),m.displayName="LunioPageLoader",t.A=m},82987:(e,t,n)=>{"use strict";
2e.exports=n.p+"6a3555c9190c594b5339.svg"},83058:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(14041);var r=n(44949),o=n(51836),a=n(89748),i=n(21504),l=n(31085);const s=function(){var e=(0,o.zy)(),t=new URLSearchParams(e.search).get("name");return(0,l.jsxs)("div",{children:[(0,l.jsx)(r.A,{menuItems:[],title:decodeURIComponent(t),subTitle:(0,a.A)("An overview of how your campaign performed"),statusIcon:!0}),(0,l.jsx)(i.A,{})]})}},83278:(e,t,n)=>{"use strict";e.exports=n.p+"9f5aa2d87769f4ea202c.svg"},83405:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=c(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=n(60156),l=c(n(79135)),s=n(31085);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var d=["children","hasNoData","title","subTitle","className","preset","minHeight"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=o.default;g(".padding-x1i7k47o{padding:36px}",1e3),g(".display-x78zum5{display:flex}",3e3),g(".alignItems-x6s0dn4{align-items:center}",3e3),g(".justifyContent-xl56j7k{justify-content:center}",3e3),g(".textAlign-xdpxx8g{text-align:left}",3e3),g(".backgroundSize-x18d0r48{background-size:cover}",3e3),g(".backgroundPosition-x1xsqp64{background-position:center}",2e3),g(".backgroundRepeat-xiy17q3{background-repeat:no-repeat}",3e3),g(".borderRadius-xur7f20{border-radius:8px}",2e3),g(".opacity-x1iy03kw{opacity:.9}",3e3),g(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),g(".color-xlmegbm{color:var(--grey900-x96mn3q)}",3e3),g(".maxWidth-xmcgfsh{max-width:60px}",4e3),g(".marginRight-xghia80{margin-right:26px}",4e3),g(".fontSize-x93iunb{font-size:48px}",3e3),g(".transform-x1rr8tx7{transform:rotate(-45deg)}",3e3),g(".transformOrigin-x1g0ag68{transform-origin:center}",3e3),g(".width-xh8yej3{width:100%}",4e3),g(".fontSize-xosj86m{font-size:18px}",3e3),g(".fontFamily-x14of51k{font-family:Axiforma}",3e3),g(".color-xh3519o{color:var(--black500-x161om0q)}",3e3),g(".fontSize-x1j61zf2{font-size:16px}",3e3),g(".fontFamily-x122x9cr{font-family:Inter}",3e3);var y={wrapper:{padding:"padding-x1i7k47o",display:"display-x78zum5",alignItems:"alignItems-x6s0dn4",justifyContent:"justifyContent-xl56j7k",textAlign:"textAlign-xdpxx8g",backgroundSize:"backgroundSize-x18d0r48",backgroundPosition:"backgroundPosition-x1xsqp64",backgroundRepeat:"backgroundRepeat-xiy17q3",borderRadius:"borderRadius-xur7f20",opacity:"opacity-x1iy03kw",$$css:"NoData/index.tsx:8"},wrapperDefault:{backgroundColor:"backgroundColor-xq18l50",color:"color-xlmegbm",$$css:"NoData/index.tsx:20"},title:{fontSize:"fontSize-xosj86m",width:"width-xh8yej3",fontFamily:"fontFamily-x14of51k",$$css:"NoData/index.tsx:40"},titleDefault:{color:"color-xlmegbm",$$css:"NoData/index.tsx:45"},titleSecondary:{color:"color-xh3519o",$$css:"NoData/index.tsx:48"},subTitle:{fontSize:"fontSize-x1j61zf2",fontFamily:"fontFamily-x122x9cr",width:"width-xh8yej3",$$css:"NoData/index.tsx:51"},subTitleDefault:{color:"color-xlmegbm",$$css:"NoData/index.tsx:56"},subTitleSecondary:{color:"color-xh3519o",$$css:"NoData/index.tsx:59"}};function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function x(e){var t=e.children,n=void 0===t?null:t,r=e.hasNoData,o=void 0!==r&&r,c=e.title,u=void 0===c?(0,i.language)("Not enough data"):c,f=e.subTitle,m=void 0===f?(0,i.language)("Try changing filters to get more data"):f,g=e.className,x=void 0===g?"":g,b=e.preset,v=void 0===b?"default":b,A=e.minHeight,_=void 0===A?200:A,S=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d);if(o){var w=a.props(y.wrapper,"default"===v&&y.wrapperDefault),O=a.props(y.title,"default"===v&&y.titleDefault,"secondary"===v&&y.titleSecondary),j=a.props(y.subTitle,"default"===v&&y.subTitleDefault,"secondary"===v&&y.subTitleSecondary);return(0,s.jsx)("div",p(p(p({style:{minHeight:_}},S),w),{},{className:h(w.className,x,v),children:(0,s.jsxs)("div",p(p({},{className:"display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k","data-style-src":"NoData/index.tsx:24"}),{},{children:["default"===v&&(0,s.jsx)(l.default,p({name:["far","fa-rocket-launch"]},{className:"maxWidth-xmcgfsh marginRight-xghia80 fontSize-x93iunb color-xlmegbm transform-x1rr8tx
27 transformOrigin-x1g0ag68","data-style-src":"NoData/index.tsx:29"})),(0,s.jsxs)("div",p(p({},{className:"width-xh8yej3","data-style-src":"NoData/index.tsx:37"}),{},{children:[(0,s.jsx)("div",p(p({},O),{},{children:u})),(0,s.jsx)("div",p(p({},j),{},{children:m}))]}))]}))}))}return n}x.displayName="NoData",t.A=x},83574:(e,t,n)=>{"use strict";e.exports=n.p+"a38ec160635cf07988bb.svg"},83627:(e,t,n)=>{"use strict";e.exports=n.p+"b59de827342e3c993df9.svg"},83628:(e,t,n)=>{"use strict";n.d(t,{A:()=>g}),n(14041);var r=n(55436),o=n(89748),a=n(74704),i=n(62161),l=n(88133),s=n(19863),c=n(19706),u=n(89623),d=n(336),f=n(99226),p=n(31085);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const g=function(e){for(var t=e.range,n=e.campaignId,g=e.showVisualisation,y=void 0===g?0:g,h=(0,f.A)().activePlatform,x="google"===h?"/analytics/fraud-stats/campaign/".concat(n,"/timeseries"):"/platform/analytics/campaign/".concat(n,"/timeseries"),b=(0,l.Ay)("".concat(x,"?df_dmin=").concat(t.min.timestamp,"&df_dmax=").concat(t.max.timestamp,"&platform=").concat(h)),v=b.data,A=void 0===v?{result:{data:[]}}:v,_=b.isLoading,S=["MON","TUE","WED","THU","FRI","SAT","SUN"],w={MON:[],TUE:[],WED:[],THU:[],FRI:[],SAT:[],SUN:[]},O=0;O<S.length;O+=1)w[S[O]]=Array(24).fill(0).map(function(){return{count:0,sumInvalid:0,sumTotal:0}});A.result.data.forEach(function(e){var t=(0,d.H)(e.hour),n=((0,c.P)(t)+6)%7,r=S[n],o=(0,u.q)(t);w[r][o].count+=1,w[r][o].sumInvalid+=e.clicks_fraudulent,w[r][o].sumTotal+=e.clicks_total});var j={MON:[],TUE:[],WED:[],THU:[],FRI:[],SAT:[],SUN:[]};Object.entries(w).forEach(function(e){var t,n,r=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],a=r[1];j[o]=a.map(function(e){return e.count>0?{invalid:Math.round(e.sumInvalid/e.count),value:Math.round(e.sumTotal/e.count)}:{invalid:0,value:0}})});var k=Array.from({length:j.MON.length},function(e,t){return{index:t,data:Object.keys(j).map(function(e){return j[e][t]})}});return(0,p.jsxs)("div",{children:[0===y&&(0,p.jsx)(r.default,{loading:_,preset:"dark",height:300,size:"responsive",children:(0,p.jsx)(a.A.Hourly,{data:j})}),1===y&&(0,p.jsx)(i.A,{rows:k,isLoading:_,leftPinnedColumns:1,children:function(e){var t,n,r,a,i,l,c,u,d,f,m,g,y,h,x,b,v,A,_,S,w;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{}),(0,p.jsx)("th",{children:(0,o.A)("Monday").substring(0,3)}),(0,p.jsx)("th",{children:(0,o.A)("Tuesday").substring(0,3)}),(0,p.jsx)("th",{children:(0,o.A)("Wednesday").substring(0,3)}),(0,p.jsx)("th",{children:(0,o.A)("Thursday").substring(0,3)}),(0,p.jsx)("th",{children:(0,o.A)("Friday").substring(0,3)}),(0,p.jsx)("th",{children:(0,o.A)("Saturday").substring(0,3)}),(0,p.jsx)("th",{children:(0,o.A)("Sunday").substring(0,3)})]})}),(0,p.jsxs)("tbody",{children:[(0,p.jsx)("td",{children:(null==e?void 0:e.index)<10?"0".concat(null==e?void 0:e.index,":00"):"".concat(null==e?void 0:e.index,":00")}),(0,p.jsxs)("td",{style:{opacity:0===(null==e||null===(t=e.data)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.value)?.5:1},children:[(0,s.m)(null==e||null===(n=e.data)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.value),":",(0,s.m)(null==e||null===(r=e.data)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.invali
2d)]}),(0,p.jsxs)("td",{style:{opacity:0===(null==e||null===(a=e.data)||void 0===a||null===(a=a[1])||void 0===a?void 0:a.value)?.5:1},children:[(0,s.m)(null==e||null===(i=e.data)||void 0===i||null===(i=i[1])||void 0===i?void 0:i.value),":",(0,s.m)(null==e||null===(l=e.data)||void 0===l||null===(l=l[1])||void 0===l?void 0:l.invalid)]}),(0,p.jsxs)("td",{style:{opacity:0===(null==e||null===(c=e.data)||void 0===c||null===(c=c[2])||void 0===c?void 0:c.value)?.5:1},children:[(0,s.m)(null==e||null===(u=e.data)||void 0===u||null===(u=u[2])||void 0===u?void 0:u.value),":",(0,s.m)(null==e||null===(d=e.data)||void 0===d||null===(d=d[2])||void 0===d?void 0:d.invalid)]}),(0,p.jsxs)("td",{style:{opacity:0===(null==e||null===(f=e.data)||void 0===f||null===(f=f[3])||void 0===f?void 0:f.value)?.5:1},children:[(0,s.m)(null==e||null===(m=e.data)||void 0===m||null===(m=m[3])||void 0===m?void 0:m.value),":",(0,s.m)(null==e||null===(g=e.data)||void 0===g||null===(g=g[3])||void 0===g?void 0:g.invalid)]}),(0,p.jsxs)("td",{style:{opacity:0===(null==e||null===(y=e.data)||void 0===y||null===(y=y[4])||void 0===y?void 0:y.value)?.5:1},children:[(0,s.m)(null==e||null===(h=e.data)||void 0===h||null===(h=h[4])||void 0===h?void 0:h.value),":",(0,s.m)(null==e||null===(x=e.data)||void 0===x||null===(x=x[4])||void 0===x?void 0:x.invalid)]}),(0,p.jsxs)("td",{style:{opacity:0===(null==e||null===(b=e.data)||void 0===b||null===(b=b[5])||void 0===b?void 0:b.value)?.5:1},children:[(0,s.m)(null==e||null===(v=e.data)||void 0===v||null===(v=v[5])||void 0===v?void 0:v.value),":",(0,s.m)(null==e||null===(A=e.data)||void 0===A||null===(A=A[5])||void 0===A?void 0:A.invalid)]}),(0,p.jsxs)("td",{style:{opacity:0===(null==e||null===(_=e.data)||void 0===_||null===(_=_[6])||void 0===_?void 0:_.value)?.5:1},children:[(0,s.m)(null==e||null===(S=e.data)||void 0===S||null===(S=S[6])||void 0===S?void 0:S.value),":",(0,s.m)(null==e||null===(w=e.data)||void 0===w||null===(w=w[6])||void 0===w?void 0:w.invalid)]})]})]})}})]})}},84210:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return e>1e6?"".concat((e/1e6).toFixed(0),"t"):e>1e3?"".concat((e/1e3).toFixed(0),"kg"):"".concat(e.toFixed(0),"g")}},84586:(e,t,n)=>{"use strict";e.exports=n.p+"363891af28ec024bbb05.svg"},84834:(e,t,n)=>{"use strict";e.exports=n.p+"fe2919b2ee70a3059e5f.svg"},84918:(e,t,n)=>{"use strict";e.exports=n.p+"7260d186300b4b1e8b67.svg"},85394:(e,t,n)=>{"use strict";e.exports=n.p+"baa8f86543d80cad0c88.svg"},85516:(e,t,n)=>{"use strict";n.d(t,{A:()=>x}),n(14041);var r=n(76449),o=n(28426),a=n(27805),i=n(89748),l=n(62161),s=n(36990),c=n(19863),u=n(40699),d=n(73657),f=n(93033),p=n(99226),m=n(27333),g=n(92523),y=n(41574),h=n(31085);function x(){var e,t,n,x,b="TRIAL"===(0,p.A)().lunioStatus,v=(0,m.R7)({sortKey:"percent_invalid"}),A=v.filters,_=v.handlePagination,S=v.setFilters,w=v.handleSort,O=(0,m.st)("/affiliates/clicks",A,function(e){var t="&group_by=partner";return e["partner.contains"]&&(t+="&partner_contains=".concat(e["partner.contains"])),t}),j=O.data,k=O.isLoading,E=[{label:(0,i.A)("Partner"),name:"partner",type:"radio",options:[{label:(0,i.A)("contains"),name:"contains",type:"text"}]}];return(0,h.jsxs)(o.A.Page,{type:"overview",children:[(0,h.jsx)(a.default,{type:"overview",title:(0,i.A)("Affiliate Partners Analytics"),text:(0,i.A)("Monitor affiliate traffic quality across all of your partners"),contentRight:(0,h.jsx)(y.A,{filters:A,exportType:"partner",exportCategory:"analytics",exportLevel:"summary"})}),(0,h.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,h.jsx)("div",{className:"left",children:(0,h.jsx)(r.default,{filterConfig:E,initialValues:A,onFilterChange:S})}),(0,h.jsx)(g.default,{})]}),(0,h.jsx)(l.A,{rows:null==j||null===(e=j.result)||void 0===e?void 0:e.data,isLoading:k,totalResults:null==j||null===(t=j.pagination)||void 0===t?void 0:t.total,totalPages:null==j||null===(n=j.pagination)||void 0===n?void 0:n.last_page,totalItems:null==j||null===(x=j.pagination)||void 0===x?void 0:x.total,pageNumber:A.page,handlePagination:_,handleSorting:w,sorting:{sortKey:A.sortKey,sortOrder:A.sortOrder},limit:A.limit,leftPinnedColumns:1,children:function(e){var t,n,r,o;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{children:[(0,h.jsxs)("th",{"data-sortable-id":"partner",children:[(0,i.A)("Partner"),(0,h.jsx)(s.A,{header:!0,children:(0,i.A)("Network")})]}),(0,h.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,i.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,i.A)("Total Clicks")}),(0,h.jsx)("th",{"data-tooltip":(0,i.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,i.A)("All Tracked Clicks")}),(0,h.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,i.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,i.A)("SIVT Clicks")}),(0,h.jsx)(f.A,{AND:!b,children:(0,h.jsx)("th",{"data-testid":"givt","data-tooltip":(0,i.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,i.A)("GIVT Clicks")})}),(0,h.jsx)("th",{"data-tooltip":(0,i.A)("The total number of clicks Lunio has identified as invali
2d, including both GIVT and SIVT."),children:(0,i.A)("Total IVT")}),(0,h.jsx)("th",{"data-sortable-id":"percent_invalid",children:(0,i.A)("IVT%")}),(0,h.jsx)("th",{"data-tooltip":(0,i.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,i.A)("Total IVT %")}),(0,h.jsx)("th",{children:(0,i.A)("Top Reasons")}),(0,h.jsx)("th",{children:(0,i.A)("Occurrences")})]})}),(0,h.jsxs)("tbody",{children:[(0,h.jsxs)("td",{children:[(0,h.jsx)(d.Link,{to:"/analytics/affiliate/partners/".concat(null==e?void 0:e.partner,"?network=").concat(null==e?void 0:e.network),children:null==e?void 0:e.partner}),(0,h.jsx)(s.A,{children:null==e?void 0:e.network})]}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_total)}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.all_tracked_clicks)}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_fraudulent)}),(0,h.jsx)(f.A,{AND:!b,children:(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.total_ivt)}),(0,h.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,h.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,h.jsxs)("td",{children:[null===(t=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===t?void 0:t.topReason.name,(0,h.jsx)(s.A,{children:null===(n=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===n?void 0:n.secondReason.name})]}),(0,h.jsxs)("td",{children:[null===(r=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===r?void 0:r.topReason.value,(0,h.jsx)(s.A,{children:null===(o=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===o?void 0:o.secondReason.value})]})]})]})}})]})}},85596:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(98226),o=n(54145),a=n(1930);function i(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var i=r&&r.prototype instanceof c?r:c,u=Object.create(i.prototype);return l(u,"_invoke",function(n,r,o){var a,i,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,i=0,l=e,f.n=n,s}};function p(n,r){for(i=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,m=a[2];n>3?(o=m===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(i=0,f.v=r,f.n=a[1]):p<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,i=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),i=u,l=m;(t=i<2?e:l)||!d;){a||(i?i<3?(i>1&&(f.n=-1),p(i,l)):f.n=l:f.v=l);try{if(c=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){a=e,i=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,a),!0),u}var s={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(l(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,l(p,"constructor",d),l(d,"constructor",u),u.displayName="GeneratorFunction",l(d,o,"GeneratorFunction"),l(p),l(p,o,"Generator"),l(p,r,function(){return this}),l(p,"toString",function(){return"[object Generator]"}),(i=function(){return{w:a,m}})()}function l(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}l=function(e,t,n,r){function a(t,n){l(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},l(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,l,"next",e)}function l(e){s(a,r,o,i,l,"throw",e)}i(void 0)})}}function u(){return u=c(i().m(function e(t){var l,s,u,d,f=arguments;return i().w(function(e){for(;;)if(0===e.n)return l=f.length>1&&void 0!==f[1]?f[1]:null,s=f.length>2&&void 0!==f[2]?f[2]:"get",u=localStorage.getItem("token"),d=r.A.create({baseURL:null!=="https://api.lunio.ai/"?"https://api.lunio.ai/":"http://localhost",headers:{Authorization:"Bearer ".concat(u),"Content-Type":"application/json"}}),e.a(2,d({method:s,url:t,data:l}).catch(function(){var e=c(i().m(function e(c){var d,f,p,m,g,y,h,x,b,v,A,_,S;return i().w(function(e){for(;;)switch(e.p=e.n){case 0:if(d={},!c.response){e.n=1;break}d.data=c.response.data,d.status=c.response.status,d.headers=c.response.headers,f=c.response.request,d.responseURL=null==f?void 0:f.responseURL,e.n=4;break;case 1:if(!c.request){e.n=3;break}if(d.request=c.request,"OPTIONS"!==c.request.method){e.n=2;break}return e.a(2,Promise.resolve(void 0));case 2:e.n=4;break;case 3:d.message=c.message;case 4:if(c.response&&c.response.status>=500&&c.response.status<600&&a.v4(function(){o.cx(d),o.Cp(c)}),(p=sessionStorage.getItem("disableFetchErrorHandling"))&&"false"!==p){e.n=13;break}if(403!==(g=null===(m=c.request)||void 0===m?void 0:m.status)&&401!==g){e.n=10;break}return e.p=5,h=r.A.create({baseURL:null!=="https://api.lunio.ai/"?"https://api.lunio.ai/":"http://localhost",withCredentials:!0,headers:{Authorization:"Bearer ".concat(u),"Content-Type":"application/json"}}),e.n=6,h({method:"post",url:"/auth/refresh-token"});case 6:if(200!==(null==(x=e.v)?void 0:x.status)||null==x||null===(y=x.data)||void 0===y||!y.token){e.n=7;break}return b=x.data.token,localStorage.setItem("token",b),v=r.A.create({baseURL:null!=="https://api.lunio.ai/"?"https://api.lunio.ai/":"http://localhost",headers:{Authorization:"Bearer ".concat(b),"Content-Type":"application/json"}}),e.a(2,v({method:s,url:t,data:l}));case 7:localStorage.removeItem("token"),localStorage.clear(),sessionStorage.clear(),window.location.replace("/logout"),e.n=9;break;case 8:e.p=8,e.v,localStorage.removeItem("token"),localStorage.clear(),sessionStorage.clear(),window.location.replace("/logout");case 9:e.n=13;break;case 10:if(404!==g){e.n=11;break}window.location.replace("/404"),e.n=13;break;case 11:if(401===g||404===g||0===g||403===g){e.n=13;break}return _=null===(A=c.response)||void 0===A?void 0:A.data,S=(null==_?void 0:_.Me
2ssage)||(null==_?void 0:_.message)||c.message,e.n=12,Promise.resolve().then(n.bind(n,18141));case 12:throw(0,e.v.toastNotification)(S,"error"),new Error(c.message);case 13:return e.a(2,Promise.resolve(void 0))}},e,null,[[5,8]])}));return function(t){return e.apply(this,arguments)}}()).then(function(e){return e}))},e)})),u.apply(this,arguments)}const d=function(e){return u.apply(this,arguments)}},85600:(e,t,n)=>{"use strict";e.exports=n.p+"e021bfb6e38758e9f559.svg"},85611:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(14041),o=n(9260),a=n(77223),i=n(62720),l=n(30021),s=n(93033),c=n(99018),u=n(89748),d=n(24284),f=n(31085);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g=(0,c.createUseStyles)(function(e){return{name:{textAlign:"right"},scriptContainer:{backgroundColor:e.colors.neutralBackgroundMedium,borderRadius:12,padding:12,color:e.colors.neutralTextStrong,fontFamily:e.fonts.text,fontSize:e.fontSizes.sm,fontWeight:e.fontWeights.xs,marginTop:e.spacing[2],marginBottom:e.spacing[2],lineHeight:"20px","& pre":{whiteSpace:"pre-wrap",wordWrap:"break-word"}}}});const y=function(e){var t=e.trackingScript,n=e.onForcedEncodeChange,m=p((0,r.useState)(""),2),y=m[0],h=m[1],x=p((0,r.useState)(""),2),b=x[0],v=x[1],A=p((0,r.useState)(""),2),_=A[0],S=A[1],w=p((0,r.useState)(""),2),O=w[0],j=w[1],k=g();function E(e){return encodeURIComponent(e).replace(/%20/g,"+").replace(/%0A/g,"%0A")}return(0,r.useEffect)(function(){return""===y?(v(""),void n(-1)):y.includes("{unescapedlpurl}")?(v((0,u.A)("This tool cannot currently be use with {unescapedlpurl}")),void n(1)):y.includes("{lpurl}")?(v(""),void n(1)):void n(1)},[y]),(0,f.jsx)("div",{children:(0,f.jsxs)(s.A,{impersonatingOnly:!0,children:[(0,f.jsx)(a.default,{className:"mt-5 mb-5"}),(0,f.jsx)(l.default,{preset:"formSectionTitle",children:(0,u.A)("Script Combiner")}),(0,f.jsx)(l.default,{preset:"formSectionSubTitle",className:"mb-5",children:"This is only available to Lunio staff"}),(0,f.jsx)(i.default,{label:(0,u.A)("Client tracking script"),value:y,onFormValue:function(e){var t=e.value;return h(t)},"data-testid":"client-script-input"}),b&&(0,f.jsx)(l.default,{color:"red-400",className:"mt-2",children:b}),(0,f.jsxs)("div",{className:"flex",children:[(0,f.jsx)(o.default,{onClick:function(){return h(""),void S("")},className:"mt-4 mr-3",preset:"outline",children:(0,u.A)("Clear")}),(0,f.jsx)(o.default,{onClick:function(){y.includes("{unescapedlpurl}")||y.includes("{lpurl}")?y.includes("{lpurl}")&&!y.includes("{unescapedlpurl}")?S(t.replace("{lpurl}",function(e){for(var t,n=[],r=[],o=/{(.*?)}/g,a=0,i="";null!==(t=o.exec(e));)t.index>a&&(r.push(e.slice(a,t.index)),i+=E(e.slice(a,t.index))),n.push(t[1]),i+="{".concat(t[1],"}"),a=o.lastIndex;return a<e.length&&(r.push(e.slice(a)),i+=E(e.slice(a))),{enclosed:n,notEnclosed:r,newUrl:i}}(y).newUrl)):t.includes("{unescapedlpurl}"):v((0,u.A)("This tool only works when your script contains {lpurl}"))},className:"mt-4",children:(0,u.A)("Convert")})]}),_&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:(0,c.classNames)(k.scriptContainer,"mt-4"),children:(0,f.jsx)("pre",{id:"copy",children:_})}),(0,f.jsxs)(o.default,{onClick:function(){return e=(0,u.A)("Combined script copied to clipboard."),t=document.getElementById("copy").textContent,navigator.clipboard.writeText(t).then(function(){return(0,d.A)(e,"success")}),void j(!0);var e,t},iconRight:"far fa-clone",className:"mt-4",children:["googleTrackingScript"!==O&&(0,u.A)("Copy Combined Script"),"googleTrackingScript"===O&&(0,u.A)("Copied")]})]})]})})}}
2,85854:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(14041);var r=n(72686),o=n(30021),a=n(89748),i=n(52789),l=n(31085);function s(){return(0,l.jsxs)(r.default,{children:[(0,l.jsx)(o.default,{preset:"chartHeading",className:"mb-4",children:(0,a.A)("Google Ads")}),(0,l.jsx)(o.default,{style:{maxWidth:256},preset:"cardText",className:"mb-16",children:(0,a.A)("Sync to update the dashboard with the latest data from your Google Ads accounts and campaigns.")}),(0,l.jsx)(i.A,{text:(0,a.A)("Sync")})]})}},85981:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(86119);const o=function(e,t,n,o){var a,i;if(o&&e.length>0){var l=e.find(function(e){return e.id===parseInt(o,10)});if(l)return l}var s=e.find(function(e){var t;return e.id===(null===(t=n.selectedWorkspace)||void 0===t?void 0:t.id)});if(s)return s;if((null===(a=n.selectedWorkspace)||void 0===a||!a.id)&&e.length>0&&n.workspaces.length>0)return null;var c,u=t;return null!=u&&u.default_workspace?e.find(function(e){return e.id===u.default_workspace}):(0,r.A)(t)&&e.length>0&&(null===(i=n.selectedWorkspace)||void 0===i||!i.id)?null===(c=e[0])||void 0===c?void 0:c.id:e.length>1?e[1]:null}},86088:(e,t,n)=>{"use strict";e.exports=n.p+"dfe894536803aa7bfcd5.svg"},86119:(e,t,n)=>{"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"USER"===e||"MANAGER"===e||"EDITOR"===e}n.d(t,{A:()=>r})},86150:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(73657),l=n(99018),s=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),c=n(44146),u=n(96742),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var p=["title","to","className","parentTitle","parentTo","type","exact","isGoogle","isNotGoogle","isMeta","isNotMeta","isAffiliate"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=a.default;h(".display-x1lliihq{display:block}",3e3),h(".width-xh8yej3{width:100%}",4e3),h(".position-x1n2onr6{position:relative}",3e3),h(".display-x3nfvp2{display:inline-flex}",3e3),h(".alignItems-x6s0dn4{align-items:center}",3e3),h(".height-xn3w4p2{height:44px}",4e3),h(".paddingLeft-x19lfox8{padding-left:40px}",4e3),h(".paddingRight-xyfqnmn{padding-right:16px}",4e3),h(".backgroundColor-xjbqb8w{background-color:transparent}",3e3),h(".borderRadius-x12oqio5{border-radius:4px}",2e3),h(".fontWeight-xk50ysn{font-weight:500}",3e3),h(".fontSize-x1j61zf2{font-size:16px}",3e3),h(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),h(".marginBottom-x12nagc{margin-bottom:4px}",4e3),h(".backgroundColor-x1a33ojm:hover{background-color:var(--gray50-x1bw8p5w)}",3130),h(".textDecoration-x1lku1pv:hover{text-decoration:none}",2130),h(".pointerEvents-x47corl{pointer-events:none}",3e3),h(".backgroundColor-xq18l50{background-color:var(--gray100-x1llswo5)}",3e3),h(".display-x78zum5{display:flex}",3e3),h(".paddingTop-x1iorvi4{padding-top:4px}",4e3),h(".justifyContent-xl56j7k{justify-content:center}",3e3),h(".marginRight-x1db2dqx{margin-right:8px}",4e3),h(".fontSize-xosj86m{font-size:18px}",3e3),h(".height-xt7dq6l{height:auto}",4e3),h(".color-xqi5lc6{color:var(--black300-xmkl1o)}",3e3),h(".whiteSpace-xuxw1ft{white-space:nowrap}",3e3);var x={navItemContainer:{position:"position-x1n2onr6",display:"display-x3nfvp2",alignItems:"alignItems-x6s0dn4",height:"height-xn3w4p2",width:"width-xh8yej3",paddingLeft:"paddingLeft-x19lfox8",paddingRight:"paddingRight-xyfqnmn",backgroundColor:"backgroundColor-xjbqb8w",borderRadius:"borderRadius-x12oqio5",fontWeight:"fontWeight-xk50ysn",fontSize:"fontSize-x1j61zf2",color:"color-x1jsblnb",marginBottom:"marginBottom-x12nagc",":hover_backgroundColor":"backgroundColor-x1a33ojm",":hover_textDecoration":"textDecoration-x1lku1pv",$$css:"MenuSubNavItem/index.tsx:15"},active:{pointerEvents:"pointerEvents-x47corl",backgroundColor:"backgroundColor-xq18l50",$$css:"MenuSubNavItem/index.tsx:34"}};function b(e){var t=e.title,n=void 0===t?"":t,r=e.to,o=void 0===r?"#":r,a=e.className,f=void 0===a?"":a,m=e.parentTitle,y=void 0===m?"":m,h=e.parentTo,b=void 0===h?"#":h,v=e.type,A=void 0===v?"default":v,_=e.exact,S=void 0!==_&&_,w=e.isGoogle,O=e.isNotGoogle,j=e.isMeta,k=e.isNotMeta,E=e.isAffiliate,N=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}
2(e,p),I=(0,i.useLocation)(),P="".concat(b).concat(y,"---").concat(o).concat(n),T=(0,u.useSidebarContext)(),C=T.setActiveSubItem,R=T.isCompressed,M=T.menuIsHovered;if(R&&!M)return null;var L,D={isGoogle:w,isNotGoogle:O,isMeta:j,isNotMeta:k,isAffiliate:E};return(0,d.jsx)(c.AccessControl,g(g({},D),{},{children:(0,d.jsx)("div",g(g({},{className:"display-x1lliihq width-xh8yej3 position-x1n2onr6","data-style-src":"MenuSubNavItem/index.tsx:10"}),{},{children:(0,d.jsxs)(i.Link,g(g({className:(0,l.classNames)(s.props(x.navItemContainer,(!1,(L=S?I.pathname===o:I.pathname.includes(o))&&C(P),L&&x.active)).className,f,A),to:o},N),{},{children:[(0,d.jsx)("div",g(g({},{className:"display-x78zum5 paddingTop-x1iorvi4 alignItems-x6s0dn4 justifyContent-xl56j7k marginRight-x1db2dqx fontSize-xosj86m height-xt7dq6l color-xqi5lc6","data-style-src":"MenuSubNavItem/index.tsx:38"}),{},{"data-testid":"menuNavItem-icon",children:"â³"})),(0,d.jsx)("span",g(g({},{className:"whiteSpace-xuxw1ft","data-style-src":"MenuSubNavItem/index.tsx:48"}),{},{children:n}))]}))}))}))}b.displayName="Sidebar.MenuSubNavItem",t.default=b},86237:(e,t,n)=>{"use strict";e.exports=n.p+"6f1a7bcd36aeb77caba0.svg"},86461:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(31085),s=a.default;s(".width-xh8yej3{width:100%}",4e3),s(".height-x10w6t97{height:32px}",4e3),s(".height-xlup9mm{height:16px}",4e3);var c={spacerContainer:{width:"width-xh8yej3",$$css:"Spacer/index.tsx:5"},medium:{height:"height-x10w6t97",$$css:"Spacer/index.tsx:8"},small:{height:"height-xlup9mm",$$css:"Spacer/index.tsx:11"}};t.A=function(e){var t,n=e.className,r=void 0===n?"":n,o=e.size,a=void 0===o?"md":o;return(0,l.jsx)("div",{className:null===(t=i.props(c.spacerContainer,"sm"===a&&c.small,"md"===a&&c.medium).className)||void 0===t?void 0:t.concat(r?" ".concat(r):"")})}},86758:(e,t,n)=>{"use strict";e.exports=n.p+"3fd051378864aeb73603.svg"},86902:(e,t,n)=>{"use strict";e.exports=n.p+"3d2684a14d6ac65abb37.svg"},86911:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),n(14041);var r=n(39067),o=n.n(r),a=n(99018),i=n(30021),l=n(9685),s=n(89748),c=n(31085),u=(0,a.createUseStyles)(function(e){return{wrapper:{display:"flex",alignItems:"center","& img":{display:"inline-block",float:"left"}},text:{verticalAlign:"top",color:e.colors.neutralTextStrong,fontWeight:500},subText:{verticalAlign:"top",color:(0,a.findColour)(e,"grey-400"),fontWeight:500}}});function d(e){var t=e.countryCode,n=void 0===t?"":t,r=e.location,o=void 0===r?"":r,a=u();return(0,c.jsxs)("div",{"data-testid":"ShowFlag",className:a.wrapper,children:[(0,c.jsx)(l.A,{countryCode:n,className:"mr-3"}),(0,c.jsxs)("div",{children:[(0,c.jsx)(i.default,{preset:"cellText",children:n||(0,s.A)("Unidentified")}),o&&(0,c.jsx)(i.default,{preset:"cellSubText",children:o})]})]})}d.propTypes={countryCode:o().string,location:o().string};const f=d},86957:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.textStyles=t.spacing=t.designPatterns=t.colours=t.colourValues=t.breakpoints=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o};!function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}!function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i])}(e)}(n(76969));var i=a.default;i(":root, .xtjf9w8{--1-xubceuw:4px;--2-x17wbp3g:8px;--3-xyfcdu2:12px;--4-xzs2jkd:16px;--5-x1ee0sxu:20px;--6-x7nl04:24px;--8-x13c0zs8:32px;--10-x17itaz4:40px;--12-x196gpfv:48px;--16-x1schvbh:64px;--20-xs4mwer:80px;--24-x1mq5oos:96px;--32-xbnz2xr:128px;--40-x1q3vuz4:160px;--48-xf8iaus:192px;--56-xlimlvk:224px;--64-x157gy89:256px;}",0),t.spacing={1:"var(--1-xubceuw)",2:"var(--2-x17wbp3g)",3:"var(--3-xyfcdu2)",4:"var(--4-xzs2jkd)",5:"var(--5-x1ee0sxu)",6:"var(--6-x7nl04)",8:"var(--8-x13c0zs8)",10:"var(--10-x17itaz4)",12:"var(--12-x196gpfv)",16:"var(--16-x1schvbh)",20:"var(--20-xs4mwer)",24:"var(--24-x1mq5oos)",32:"var(--32-xbnz2xr)",40:"var(--40-x1q3vuz4)",48:"var(--48-xf8iaus)",56:"var(--56-xlimlvk)",64:"var(--64-x157gy89)",__themeName__:"xtjf9w8"},i(":root, .x9bgsso{--lg-xk7ne7t:1280px;--xl-xszocpw:1900px;}",0),t.breakpoints={lg:"var(--lg-xk7ne7t)",xl:"var(--xl-xszocpw)",__themeName__:"x9bgsso"},t.colourValues={white:"#ffffff",grey400:"#88828C",grey900:"#010415",purple50:"#F3EBFC",black25:"#F0F0F4",black50:"#D6D6E0",black100:"#BDBDCB",black200:"#A5A5B6",black300:"#8E8E9F",black400:"#777788",black500:"#62626E",black600:"#4D4D54",black700:"#37373B",black800:"#212122",black900:"#0A0A0A",gray25:"#FDFDFD",gray50:"#FAFAFA",gray100:"#F5F5F5",gray200:"#E9EAEB",gray250:"#E6E4E7",gray300:"#D5D7DA",gray400:"#A4A7AE",gray500:"#717680",gray600:"#535862",gray700:"#414651",gray800:"#252B37",gray900:"#181D27",error25:"#FFFBFA",error50:"#FEF3F2",error100:"#FEE4E2",error200:"#FECDCA",error300:"#FDA29B",error400:"#F97066",error500:"#F04438",error600:"#D92D20",error700:"#B42318",error800:"#912018",error900:"#7A271A",warning25:"#FFFCF5",warning50:"#FFFAEB",warning100:"#FEF0C7",warning200:"#FEDF89",warning300:"#FEC84B",warning400:"#FDB022",warning500:"#F79009",warning600:"#DC6803",warning700:"#B54708",warning800:"#93370D",warning900:"#7A2E0E",success25:"#F6FEF9",success50:"#ECFDF3",success100:"#D1FADF",success200:"#A6F4C5",success300:"#6CE9A6",success400:"#32D583",success500:"#12B76A",success600:"#039855",success700:"#027A48",success800:"#05603A",success900:"#054F31",primary25:"#effafa",primary50:"#cff1f1",primary100:"#9fe3e3",primary200:"#6fd5d5",primary300:"#3fc7c7",primary400:"#0FBABA",primary500:"#0c9494",primary600:"#096f6f",primary700:"#064a49",primary800:"#032524",primary900:"#011615",secondary25:"#fbf8fe",secondary50:"#f3eafc",secondary100:"#e8d5f9",secondary200:"#dcc1f7",secondary300:"#d1acf4",secondary400:"#c698f2",secondary500:"#9e79c1",secondary600:"#765b91",secondary700:"#4f3c60",secondary800:"#271e30",secondary900:"#17121c",oldBrand25:"#FCFAFF",oldBrand50:"#F9F5FF",oldBrand100:"#F4EBFF",oldBrand200:"#E9D7FE",oldBrand300:"#D6BBFB",oldBrand400:"#B692F6",oldBrand500:"#9E77ED",oldBrand600:"#7F56D9",oldBrand700:"#6941C6",oldBrand800:"#53389E",oldBrand900:"#42307D",googleLinkBlue:"#1a0dab",googleLinkBlueVisited:"#681da8",ivtColour1:"#0F0000",ivtColour2:"#2D0000",ivtColour3:"#4B0000",ivtColour4:"#690000",ivtColour5:"#870000",ivtColour6:"#A50000",ivtColour7:"#C30100",ivtColour8:"#E10101",ivtColour9:"#FF0000",ivtColour10:"#FF1D1E",ivtColour11:"#FF3B3C",ivtColour12:"#FF5A5A",ivtColour13:"#FF7878",ivtColour14:"#FF9696",ivtColour15:"#FFB4B4",ivtColour16:"#FFD2D2",ivtColour17:"#FEF1F0"},i(":root, .xwtpdsq{--white-x3n8fk9:#ffffff;--grey400-x1nkqcqr:#88828C;--grey900-x96mn3q:#010415;--purple50-x122sfv2:#F3EBFC;--black25-x1wohfzh:#F0F0F4;--black50-x139rfsc:#D6D6E0;--black100-xg00ex0:#BDBDCB;--black200-xao0axe:#A5A5B6;--black300-xmkl1o:#8E8E9F;--black400-x1u7ngzx:#777788;--black500-x161om0q:#62626E;--black600-x738gfh:#4D4D54;--black700-xoh1s16:#37373B;--black800-x1ueousw:#212122;--black900-x1vm5mv1:#0A0A0A;--gray25-x1nef6k3:#FDFDFD;--gray50-x1bw8p5w:#FAFAFA;--gray100-x1llswo5:#F5F5F5;--gray200-x1cfnqzm:#E9EAEB;--gray250-x1kpk87u:#E6E4E7;--gray300-x1xk3734:#D5D7DA;--gray400-x79zdqj:#A4A7AE;--gray500-xplr4j6:#717680;--gray600-x139mciy:#535862;--gray700-x15a2rb:#414651;
2--gray800-x1jnvjag:#252B37;--gray900-xevft2h:#181D27;--error25-x18c0m9r:#FFFBFA;--error50-x1f3qy36:#FEF3F2;--error100-x13jjcv4:#FEE4E2;--error200-xxycodf:#FECDCA;--error300-x1etg42b:#FDA29B;--error400-x1tud7vg:#F97066;--error500-x1idp37q:#F04438;--error600-x1indqeg:#D92D20;--error700-x1brey9:#B42318;--error800-xffvesf:#912018;--error900-xsur5w7:#7A271A;--warning25-x1sd6xdd:#FFFCF5;--warning50-xtmumxw:#FFFAEB;--warning100-x12ln9i7:#FEF0C7;--warning200-xgv5m4l:#FEDF89;--warning300-x13ttzvr:#FEC84B;--warning400-xebb3xv:#FDB022;--warning500-xcmfu7k:#F79009;--warning600-xx2fi3s:#DC6803;--warning700-xlxq2tu:#B54708;--warning800-x1j11kn7:#93370D;--warning900-xg15x9j:#7A2E0E;--success25-x1q22tsr:#F6FEF9;--success50-x1xjgkj9:#ECFDF3;--success100-x14um8e:#D1FADF;--success200-x1m3jyzb:#A6F4C5;--success300-xj807bz:#6CE9A6;--success400-xixbfeu:#32D583;--success500-x1a8whg:#12B76A;--success600-x1k6hy5b:#039855;--success700-xjo1ft6:#027A48;--success800-xttpvc0:#05603A;--success900-xuh39r3:#054F31;--primary25-x1i18ho1:#effafa;--primary50-xfg0wjs:#cff1f1;--primary100-x1s8hf8c:#9fe3e3;--primary200-x13hkonu:#6fd5d5;--primary300-x1x6jrjs:#3fc7c7;--primary400-x6nrv7m:#0FBABA;--primary500-x1h2cyxj:#0c9494;--primary600-x1h1lpbu:#096f6f;--primary700-x11onzbk:#064a49;--primary800-x1fbl7gp:#032524;--primary900-x1mh24m7:#011615;--secondary25-x1lgj7gg:#fbf8fe;--secondary50-xpop7mm:#f3eafc;--secondary100-x4dhzhb:#e8d5f9;--secondary200-xut29wu:#dcc1f7;--secondary300-x1ba716r:#d1acf4;--secondary400-x5kkqv:#c698f2;--secondary500-x3dx61e:#9e79c1;--secondary600-xr6i2nc:#765b91;--secondary700-xhawu8t:#4f3c60;--secondary800-xv1ygzz:#271e30;--secondary900-x17qa5ko:#17121c;--oldBrand25-x1tpghg1:#FCFAFF;--oldBrand50-x1t4s9vw:#F9F5FF;--oldBrand100-x1o59ms7:#F4EBFF;--oldBrand200-xdr76h5:#E9D7FE;--oldBrand300-x1eifvzy:#D6BBFB;--oldBrand400-xg3037r:#B692F6;--oldBrand500-x1vnul6n:#9E77ED;--oldBrand600-x1t41vhw:#7F56D9;--oldBrand700-xx6j7i3:#6941C6;--oldBrand800-x1i07km4:#53389E;--oldBrand900-xuu3kei:#42307D;--googleLinkBlue-xlx5hoo:#1a0dab;--googleLinkBlueVisited-x1wmfq6o:#681da8;--ivtColour1-xfmu03q:#0F0000;--ivtColour2-x1ldg23i:#2D0000;--ivtColour3-xxb21xa:#4B0000;--ivtColour4-x190lyvq:#690000;--ivtColour5-xufwgvq:#870000;--ivtColour6-x4tws17:#A50000;--ivtColour7-xnvt0wb:#C30100;--ivtColour8-xn08nh4:#E10101;--ivtColour9-xoetue2:#FF0000;--ivtColour10-xp8axir:#FF1D1E;--ivtColour11-x18p3yd7:#FF3B3C;--ivtColour12-x1rwpjv6:#FF5A5A;--ivtColour13-x27ma02:#FF7878;--ivtColour14-x1jycgqt:#FF9696;--ivtColour15-xjq9paw:#FFB4B4;--ivtColour16-xvkaut0:#FFD2D2;--ivtColour17-xxw139g:#FEF1F0;}",0),t.colours={white:"var(--white-x3n8fk9)",grey400:"var(--grey400-x1nkqcqr)",grey900:"var(--grey900-x96mn3q)",purple50:"var(--purple50-x122sfv2)",black25:"var(--black25-x1wohfzh)",black50:"var(--black50-x139rfsc)",black100:"var(--black100-xg00ex0)",black200:"var(--black200-xao0axe)",black300:"var(--black300-xmkl1o)",black400:"var(--black400-x1u7ngzx)",black500:"var(--black500-x161om0q)",black600:"var(--black600-x738gfh)",black700:"var(--black700-xoh1s16)",black800:"var(--black800-x1ueousw)",black900:"var(--black900-x1vm5mv1)",gray25:"var(--gray25-x1nef6k3)",gray50:"var(--gray50-x1bw8p5w)",gray100:"var(--gray100-x1llswo5)",gray200:"var(--gray200-x1cfnqzm)",gray250:"var(--gray250-x1kpk87u)",gray300:"var(--gray300-x1xk3734)",gray400:"var(--gray400-x79zdqj)",gray500:"var(--gray500-xplr4j6)",gray600:"var(--gray600-x139mciy)",gray700:"var(--gray700-x15a2rb)",gray800:"var(--gray800-x1jnvjag)",gray900:"var(--gray900-xevft2h)",error25:"var(--error25-x18c0m9r)",error50:"var(--error50-x1f3qy36)",error100:"var(--error100-x13jjcv4)",error200:"var(--error200-xxycodf)",error300:"var(--error300-x1etg42b)",error400:"var(--error400-x1tud7vg)",error500:"var(--error500-x1idp37q)",error600:"var(--error600-x1indqeg)",error700:"var(--error700-x1brey9)",error800:"var(--error800-xffvesf)",error900:"var(--error900-xsur5w7)",warning25:"var(--warning25-x1sd6xdd)",warning50:"var(--warning50-xtmumxw)",warning100:"var(--warning100-x12ln9i7)",warning200:"var(--warning200-xgv5m4l)",warning300:"var(--warning300-x13ttzvr)",warning400:"var(--warning400-xebb3xv)",warning500:"var(--warning500-xcmfu7k)",warning600:"var(--warning600-xx2fi3s
2)",warning700:"var(--warning700-xlxq2tu)",warning800:"var(--warning800-x1j11kn7)",warning900:"var(--warning900-xg15x9j)",success25:"var(--success25-x1q22tsr)",success50:"var(--success50-x1xjgkj9)",success100:"var(--success100-x14um8e)",success200:"var(--success200-x1m3jyzb)",success300:"var(--success300-xj807bz)",success400:"var(--success400-xixbfeu)",success500:"var(--success500-x1a8whg)",success600:"var(--success600-x1k6hy5b)",success700:"var(--success700-xjo1ft6)",success800:"var(--success800-xttpvc0)",success900:"var(--success900-xuh39r3)",primary25:"var(--primary25-x1i18ho1)",primary50:"var(--primary50-xfg0wjs)",primary100:"var(--primary100-x1s8hf8c)",primary200:"var(--primary200-x13hkonu)",primary300:"var(--primary300-x1x6jrjs)",primary400:"var(--primary400-x6nrv7m)",primary500:"var(--primary500-x1h2cyxj)",primary600:"var(--primary600-x1h1lpbu)",primary700:"var(--primary700-x11onzbk)",primary800:"var(--primary800-x1fbl7gp)",primary900:"var(--primary900-x1mh24m7)",secondary25:"var(--secondary25-x1lgj7gg)",secondary50:"var(--secondary50-xpop7mm)",secondary100:"var(--secondary100-x4dhzhb)",secondary200:"var(--secondary200-xut29wu)",secondary300:"var(--secondary300-x1ba716r)",secondary400:"var(--secondary400-x5kkqv)",secondary500:"var(--secondary500-x3dx61e)",secondary600:"var(--secondary600-xr6i2nc)",secondary700:"var(--secondary700-xhawu8t)",secondary800:"var(--secondary800-xv1ygzz)",secondary900:"var(--secondary900-x17qa5ko)",oldBrand25:"var(--oldBrand25-x1tpghg1)",oldBrand50:"var(--oldBrand50-x1t4s9vw)",oldBrand100:"var(--oldBrand100-x1o59ms7)",oldBrand200:"var(--oldBrand200-xdr76h5)",oldBrand300:"var(--oldBrand300-x1eifvzy)",oldBrand400:"var(--oldBrand400-xg3037r)",oldBrand500:"var(--oldBrand500-x1vnul6n)",oldBrand600:"var(--oldBrand600-x1t41vhw)",oldBrand700:"var(--oldBrand700-xx6j7i3)",oldBrand800:"var(--oldBrand800-x1i07km4)",oldBrand900:"var(--oldBrand900-xuu3kei)",googleLinkBlue:"var(--googleLinkBlue-xlx5hoo)",googleLinkBlueVisited:"var(--googleLinkBlueVisited-x1wmfq6o)",ivtColour1:"var(--ivtColour1-xfmu03q)",ivtColour2:"var(--ivtColour2-x1ldg23i)",ivtColour3:"var(--ivtColour3-xxb21xa)",ivtColour4:"var(--ivtColour4-x190lyvq)",ivtColour5:"var(--ivtColour5-xufwgvq)",ivtColour6:"var(--ivtColour6-x4tws17)",ivtColour7:"var(--ivtColour7-xnvt0wb)",ivtColour8:"var(--ivtColour8-xn08nh4)",ivtColour9:"var(--ivtColour9-xoetue2)",ivtColour10:"var(--ivtColour10-xp8axir)",ivtColour11:"var(--ivtColour11-x18p3yd7)",ivtColour12:"var(--ivtColour12-x1rwpjv6)",ivtColour13:"var(--ivtColour13-x27ma02)",ivtColour14:"var(--ivtColour14-x1jycgqt)",ivtColour15:"var(--ivtColour15-xjq9paw)",ivtColour16:"var(--ivtColour16-xvkaut0)",ivtColour17:"var(--ivtColour17-xxw139g)",__themeName__:"xwtpdsq"},i(".fontSize-xqozcyj{font-size:36px}",3e3),i(".fontWeight-x1s688f{font-weight:600}",3e3),i(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),i(".fontFamily-x122x9cr{font-family:Inter}",3e3),i(".lineHeight-xbzal7z{line-height:44px}",3e3),i(".fontSize-x1pvqxga{font-size:24px}",3e3),i(".fontWeight-x1xlr1w8{font-weight:700}",3e3),i(".lineHeight-xcgk4ki{line-height:32px}",3e3),i(".marginTop-x1xmf6yo{margin-top:8px}",4e3),i(".fontSize-x1j61zf2{font-size:16px}",3e3),i(".fontWeight-xo1l8bm{font-weight:400}",3e3),i(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),i(".fontSize-xwsyq91{font-size:20px}",3e3),i(".lineHeight-xgif2c7{line-height:28px}",3e3),i(".lineHeight-x1cpheol{line-height:40px}",3e3),i(".fontSize-xif65rj{font-size:14px}",3e3),i(".fontWeight-xk50ysn{font-weight:500}",3e3),i(".color-x18k1rwp{color:var(--gray900-xevft2h)}",3e3),i(".fontSize-xosj86m{font-size:18px}",3e3),i(".color-x75csi3{color:var(--black400-x1u7ngzx)}",3e3),i(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),i(".color-xd87uto{color:var(--grey400-x1nkqcqr)}",3e3),i(".lineHeight-xo5v014{line-height:1}",3e3),i(".lineHeight-x1o2sk6j{line-height:24px}",3e3),i(".marginTop-x1gslohp{margin-top:4px}",4e3),i(".fontSize-xfifm61{font-size:12px}",3e3),i(".lineHeight-x1fc57z9{line-height:20px}",3e3),i(".color-xlmegbm{color:var(--grey900-x96mn3q)}",3e3),i(".fontSize-x1fhusgw{font-size:56px}",3e3),i(".lineHeight-x1ptnjsx{line-height:80px}",3e3),i(".fontWeight-xuv8nkb{font-weight:800}",3e3),i(".fontSize-x93iunb{font-size:48px}",3e3),i(".lineHeight-xrl6n7u{line-height:68px}",3e3),i(".fontSize-x1s3cmhv{font-size:32px}",3e3),i(".lineHeight-x1h50m6h{line-height:48px}",3e3),i(".lineHeight-x1vy86p0{line-height:36px}",3e3),i(".marginBottom-x1bzl6in{margin-bottom:var(--2-x17wbp3g)}",4e3),i(".color-x1bk3paq{color:var(--black700-xoh1s16)}",3e3),i(".marginBottom-x1e56ztr{margin-bottom:8px}",4e3),i(".lineHeight-x19v9tvf{line-height:22px}",3e3),i(".color-xqy16mm{color:var(--error700-x1brey9)}",3e3),i(".fontSize-x1j6dyjg{font-size:11px}",3e3),i(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),i(".textTransform-xtvhhri{text-transform:uppercase}",3e3),i(".marginRight-xl010v5{margin-right:4px}",4e3),t.textStyles={bigStat:{fontSize:"fontSize-xqozcyj",fontWeight:"fontWeight-x1s688f",color:"color-x1jsblnb",fontFamily:"fontFamily-x122x9cr",lineHeight:"lineHeight-xbzal7z",$$css:"styling/tokens.stylex.js:146"},pageHeading:{fontSize:"fontSize-x1pvqxga",fontWeight:"fontWeight-x1xlr1w8",color:"color-x1jsblnb",fontFamily:"fontFamily-x122x9cr",lineHeight:"lineHeight-xcgk4ki",$$css:"styling/tokens.stylex.js:153"},pageSubHeading:{marginTop:"marginTop-x1xmf6yo",fontSize:"fontSize-x1j61zf2",fontWeight:"fontWeight-xo1l8bm",color:"color-x1r9fet4",$$css:"styling/tokens.stylex.js:160"},pageSectionHeading:{fontSize:"fontSize-xwsyq91",fontWeight:"fontWeight-x1xlr1w8",color:"color-x1jsblnb",fontFamily:"fontFamily-x122x9cr",lineHeight:"lineHeight-xgif2c7",$$css:"styling/tokens.stylex.js:166"},statHeading:{fontSize:"fontSize-xwsyq91",fontWeight:"fontWeight-x1xlr1w8",color:"color-x1jsblnb",fontFamily:"fontFamily-x122x9cr",lineHeight:"lineHeight-x1cpheol",$$css:"styling/tokens.stylex.js:173"},statSubHeading:{fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xk50ysn",color:"color-x1r9fet4",$$css:"styling/tokens.stylex.js:180"},statLabel:{fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-x1s688f",color:"color-x18k1rwp",$$css:"styling/tokens.stylex.js:185"},widgetHeading:{fontSize:"fontSize-xosj86m",fontWeight:"fontWeight-x1xlr1w8",color:"color-x75csi3",$$css:"styling/tokens.stylex.js:190"},widgetSubHeading:{fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-x1xlr1w8",color:"color-xbdn2ka",$$css:"styling/tokens.stylex.js:195"},widgetColumnHeading:{fontSize:"fontSize-xosj86m",fontWeight:"fontWeight-xk50ysn",color:"color-x1jsblnb",$$css:"styling/tokens.stylex.js:200"},widgetStatTitle:{fontSize:"fontSize-x1j61zf2",fontWeight:"fontWeight-xo1l8bm",color:"color-xd87uto",$$css:"styling/tokens.stylex.js:205"},widgetStatValue:{fontSize:"fontSize-x1j61zf2",fontWeight:"fontWeight-x1s688f",color:"color-xd87uto",$$css:"styling/tokens.stylex.js:210"},statBlockHeading:{fontSize:"fontSize-xosj86m",fontWeight:"fontWeight-x1s688f",color:"color-x75csi3",lineHeight:"lineHeight-xo5v014",$$css:"styling/tokens.stylex.js:215"},statBlockValue:{fontSize:"fontSize-xqozcyj",fontWeight:"fontWeight-x1s688f",color:"color-x1jsblnb",lineHeight:"lineHeight-xo5v014",$$css:"styling/tokens.stylex.js:221"},statBlockValueSmall:{fontSize:"fontSize-x1pvqxga",fontWeight:"fontWeight-x1s688f",color:"color-x1jsblnb",lineHeight:"lineHeight-xo5v014",$$css:"styling/tokens.stylex.js:227"},chartHeading:{fontSize:"fontSize-x1j61zf2",fontWeight:"fontWeight-x1s688f",color:"color-x1jsblnb",fontFamily:"fontFamily-x122x9cr",lineHeight:"lineHeight-x1o2sk6j",$$css:"styling/tokens.stylex.js:233"},chartHeadingLight:{fontSize:"fontSize-x1j61zf2",fontWeight:"fontWeight-xo1l8bm",color:"color-x1jsblnb",fontFamily:"fontFamily-x122x9cr",lineHeight:"lineHeight-x1o2sk6j",$$css:"styling/tokens.stylex.js:240"},chartSubHeading:{marginTop:"marginTop-x1gslohp",fontSize:"fontSize-xfifm61",fontWeight:"fontWeight-xo1l8bm",color:"color-x1r9fet4",$$css:"styling/tokens.stylex.js:247"},chartLabelHeading:{fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-x1s688f",color:"color-x1jsblnb",fontFamily:"fontFamily-x122x9cr",lineHeight:"lineHeight-x1fc57z9",$$css:"styling/tokens.stylex.js:253"},text:{color:"color-x1jsblnb",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",$$css:"styling/tokens.stylex.js:260"},subText:{color:"color-x75csi3",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",$$css:"styling/tokens.stylex.js:265"},h1:{color:"color-xlmegbm",fontSize:"fontSize-x1fhusgw",lineHeight:"lineHeight-x1ptnjsx",fontWeight:"fontWeight-xuv8nkb",$$css:"styling/tokens.stylex.js:270"},h2:{color:"color-xlmegbm",fontSize:"fontSize-x93iunb",lineHeight:"lineHeight-xrl6n7u",fontWeight:"fontWeight-xuv8nkb",$$css:"styling/tokens.stylex.js:276"},h3:{color:"color-xlmegbm",fontSize:"fontSize-x1s3cmhv",lineHeight:"lineHeight-x1h50m6h",fontWeight:"fontWeight-xuv8nkb",$$css:"styling/tokens.stylex.js:282"},h4:{color:"color-xlmegbm",fontSize:"fontSize-x1pvqxga",lineHeight:"lineHeight-x1vy86p0",fontWeight:"fontWeight-xuv8nkb",$$css:"styling/tokens.stylex.js:288"},h5:{color:"color-xlmegbm",fontSize:"fontSize-xwsyq91",lineHeight:"lineHeight-xcgk4ki",fontWeight:"fontWeight-xuv8nkb",$$css:"styling/tokens.stylex.js:294"},h6:{color:"color-xlmegbm",fontSize:"fontSize-xosj86m",lineHeight:"lineHeight-x1o2sk6j",fontWeight:"fontWeight-xuv8nkb",$$css:"styling/tokens.stylex.js:300"},formHeading:{color:"color-x1jsblnb",fontSize:"fontSize-x1pvqxga",fontWeight:"fontWeight-x1xlr1w8",marginBottom:"marginBottom-x1bzl6in",$$css:"styling/tokens.stylex.js:306"},formSubHeading:{color:"color-x75csi3",fontSize:"fontSize-x1j61zf2",fontWeight:"fontWeight-xo1l8bm",$$css:"styling/tokens.stylex.js:312"},formSectionTitle:{color:"color-x1jsblnb",fontSize:"fontSize-xwsyq91",fontWeight:"fontWeight-x1s688f",$$css:"styling/tokens.stylex.js:317"},formSectionSubTitle:{color:"color-x75csi3",fontSize:"fontSize-x1j61zf2",fontWeight:"fontWeight-xo1l8bm",$$css:"styling/tokens.stylex.js:322"},formSectionText:{color:"color-x1jsblnb",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",$$css:"styling/tokens.stylex.js:327"},formSectionSubText:{color:"color-x75csi3",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",$$css:"styling/tokens.stylex.js:332"},formSectionCaption:{color:"color-x1bk3paq",fontSize:"fontSize-xfifm61",fontWeight:"fontWeight-xo1l8bm",$$css:"styling/tokens.stylex.js:337"},formLabel:{color:"color-x1jsblnb",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",marginBottom:"marginBottom-x1e56ztr",$$css:"styling/tokens.stylex.js:342"},cellText:{color:"color-x1jsblnb",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",lineHeight:"lineHeight-x19v9tvf",$$css:"styling/tokens.stylex.js:348"},cellSubText:{color:"color-x75csi3",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",lineHeight:"lineHeight-x19v9tvf",$$css:"styling/tokens.stylex.js:354"},smallError:{color:"color-xqy16mm",fontSize:"fontSize-xfifm61",fontWeight:"fontWeight-xo1l8bm",$$css:"styling/tokens.stylex.js:360"},mediumError:{color:"color-xqy16mm",fontSize:"fontSize-xif65rj",fontWeight:"fontWeight-xo1l8bm",$$css:"styling/tokens.stylex.js:365"},largeError:{color:"color-xqy16mm",fontSize:"fontSize-x1j61zf2",fontWeight:"fontWeight-xo1l8bm",$$css:"styling/tokens.stylex.js:370"},cardText:{color:"color-xd87uto",fontWeight:"fontWeight-xk50ysn",fontSize:"fontSize-xif65rj",$$css:"styling/tokens.stylex.js:375"},cardSubText:{color:"color-xd87uto",fontWeight:"fontWeight-xk50ysn",fontSize:"fontSize-xfifm61",$$css:"styling/tokens.stylex.js:380"},filterPanelLabel:{fontSize:"fontSize-x1j6dyjg",fontWeight:"fontWeight-x1s688f",color:"color-xnx9fn3",textTransform:"textTransform-xtvhhri",marginRight:"marginRight-xl010v5",marginInlineStart:null,marginInlineEnd:null,$$css:"styling/tokens.stylex.js:385"}},i(":root, .xa3pw89{--borderDefault-x13dogfg:1px solid var(--gray300-x1xk3734);--borderRadiusDefault-x1tdk2mt:8px;}",0),t.designPatterns={borderDefault:"var(--borderDefault-x13dogfg)",borderRadiusDefault:"var(--borderRadiusDefault-x1tdk2mt)",__themeName__:"xa3pw89"}},87220:(e,t,n)=>{"use strict";e.exports=n.p+"ac392ae7ead14a41e7e2.svg"},87292:(e,t,n)=>{"use strict";e.exports=n.p+"e33ad628399e5f32e98a.svg"}
2,87304:(e,t,n)=>{"use strict";e.exports=n.p+"2b4bdd4dd23300e7007a.svg"},87378:(e,t,n)=>{"use strict";e.exports=n.p+"f6352ae0ccdb7c833f61.svg"},87611:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(14041),o=n(88133),a=n(40016),i=n(89748),l=n(34406),s=n(83405),c=n(96182),u=n(80111),d=n(31085);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const m=function(e){var t,n,p,m,g,y,h=e.dates,x=e.campaignId,b=void 0===x?0:x,v=e.type,A=void 0===v?"keyword":v,_=f((0,u.A)(),1)[0],S=f((0,c.A)(),1)[0],w=f((0,r.useState)(!0),2),O=w[0],j=w[1],k=0!==b?"/analytics/fraud-stats/campaign/".concat(b):"/analytics/fraud-stats/account",E=A;0===b&&("keyword"===A&&(E="kws"),"placement"===A&&(E="placements"));var N=(0,o.Ay)("".concat(k,"?df_dmin=").concat(null!=h&&null!==(t=h.min)&&void 0!==t&&t.date?(0,l.YQ)(h.min.date):null==_||null===(n=_.dataFilterDates)||void 0===n||null===(n=n.min)||void 0===n?void 0:n.timestamp,"&df_dmax=").concat(null!=h&&h.max.date?(0,l.YQ)(h.max.date):null==_||null===(p=_.dataFilterDates)||void 0===p||null===(p=p.max)||void 0===p?void 0:p.timestamp,"&type=").concat(E,"&limit=200&page=1&platform=").concat(null==S?void 0:S.selectedPlatform.platform_name)),I=N.data,P=N.isLoading;return(0,r.useEffect)(function(){var e,t,n;t=null==I||null===(e=I.result)||void 0===e?void 0:e.data,n=!1,t&&t.forEach(function(e){e.mt&&"No match type reported by Google"!==e.mt&&""!==e.mt&&(n=!0),e.pl&&"No match type reported by Google"!==e.pl&&""!==e.pl&&(n=!0)}),j(n)},[null==I||null===(m=I.result)||void 0===m?void 0:m.data]),(0,d.jsxs)(d.Fragment,{children:[(P||O)&&(0,d.jsx)(a.A,{data:(null==I||null===(g=I.result)||void 0===g?void 0:g.data)||[],isLoading:P,xTitle:(0,i.A)("Number of Clicks"),yTitle:(0,i.A)("SIVT Percentage")}),!P&&((null==I||null===(y=I.result)||void 0===y||null===(y=y.data)||void 0===y?void 0:y.length)<2||!O)&&(0,d.jsx)(s.A,{title:(0,i.A)("Not enough data to display this chart"),hasNoData:!0,style:{height:"300px"}})]})}},88004:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89748);const o=function(e,t,n,o){var a={},i="ROOT"===(null==e?void 0:e.roleIdentifier)||"ADMIN"===(null==e?void 0:e.roleIdentifier)||"ROOT"===(null==e?void 0:e.accountRoleIdentifier)||"ADMIN"===(null==e?void 0:e.accountRoleIdentifier),l=(null==t?void 0:t.length)>0,s=(null==n?void 0:n.length)>0;return i||l||s?i||!l||s?i&&!l?a={case:3,title:"",text:"",showGraphic1:!0,showMainMenu:!1,showAdminMenu:!0,hideWorkspacePicker:!1,linkedPage:""}:i&&l&&!s&&null!==o&&o>-2&&(a={case:4,title:(0,r.A)("This workspace does not have any platforms"),text:(0,r.A)("Please add some platforms to this workspace"),showGraphic1:!0,showMainMenu:!1,showAdminMenu:!0,hideWorkspacePicker:!1,linkedPage:o?"/workspace-settings/workspace/".concat(o,"/multi-platform"):"/workspace-settings/workspaces"}):a={case:2,title:(0,r.A)("This workspace does not have any platforms"),text:(0,r.A)("Please speak to an admin user to add platforms to this workspace"),showGraphic1:!0,showMainMenu:!1,showAdminMenu:!1,hideWorkspacePicker:!0,linkedPage:null}:a={case:1,title:(0,r.A)("You do not have access to any workspaces"),text:(0,r.A)("Please speak to an admin user"),showGraphic1:!0,showMainMenu:!1,showAdminMenu:!1,hideWorkspacePicker:!0,linkedPage:null},a}},88080:(e,t,n)=>{"use strict";e.exports=n.p+"2b3e1faf89f94a483539.png"}
vendor: 4,142 bytes, line 2
2,88133:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v,gC:()=>A,s6:()=>_});var r=n(86888),o=n(97475),a=n(88413),i=n(77730),l=n(85596);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var c=["optOutWorkspaceContext"];function u(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return d(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,s=e,f.n=n,i}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(l=0,f.v=r,f.n=a[1]):p<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(d(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,d(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,d(p,"constructor",c),d(c,"constructor",s),s.displayName="GeneratorFunction",d(c,o,"GeneratorFunction"),d(p),d(p,o,"Generator"),d(p,r,function(){return this}),d(p,"toString",function(){return"[object Generator]"}),(u=function(){return{w:a,m}})()}function d(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}d=function(e,t,n,r){function a(t,n){d(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},d(e,t,n,r)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function x(){var e;return e=u().m(function e(t,n){var r;return u().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,l.A)(t,n);case 1:return r=e.v,e.a(2,r)}},e)}),x=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){h(a,r,o,i,l,"next",e)}function l(e){h(a,r,o,i,l,"throw",e)}i(void 0)})},x.apply(this,arguments)}function b(e){return null==e?"":-1===e?"all":e}function v(e,t,n){var o,a,l,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=g((0,i.A)(),1)[0],d=String(e).includes("/user_sync")?"":b(null==u||null===(o=u.selectedWorkspace)||void 0===o?void 0:o.id),f="".concat(null!=n?n:e).concat(d),m=s.optOutWorkspaceContext,y=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(s,c),h=e;if(null!=u&&null!==(a=u.selectedWorkspace)&&void 0!==a&&a.id&&!m&&!e.includes("workspace_context")&&!String(e).includes("/user_sync")){var v,A=e.includes("?")?"&":"?",_=b(null==u||null===(v=u.selectedWorkspace)||void 0===v?void 0:v.id);h="".concat(e).concat(A,"workspace_context=").concat(_)}var S=(0,r.I)(p({queryKey:[f],queryFn:function(){return function(e,t){return x.apply(this,arguments)}(h,t)},refetchOnWindowFocus:!1,retryDelay:function(e){return Math.min(1e3*Math.pow(2,e),3e4)},retry:5,gcTime:6e4},y));return p(p({},S),{},{rawData:S.data,data:null===(l=S.data)||void 0===l?void 0:l.data})}function A(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"POST",r=g((0,i.A)(),1)[0],o=e;if(null!=r&&null!==(t=r.selectedWorkspace)&&void 0!==t&&t.id&&!e.includes("workspace_context")){var s,c=e.includes("?")?"&":"?",u=b(null==r||null===(s=r.selectedWorkspace)||void 0===s?void 0:s.id);o="".concat(e).concat(c,"workspace_context=").concat(u)}return(0,a.n)({mutationFn:function(e){return(0,l.A)(o,e,n)}})}function _(e){var t=(0,o.jE)().getQueryCache().findAll()||[];if(0===t.length)return(0,r.I)({queryKey:[e],queryFn:function(){return null},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!1});var n=t.filter(function(t){return"string"==typeof t.queryKey[0]&&t.queryKey[0].startsWith(e)}),a=n[n.length-1];return(0,r.I)({queryKey:a.queryKey,queryFn:function(){return null},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!1})}},88523:(e,t,n)=>{"use strict";n.d(t,{A:()=>u}),n(14041);var r=n(93181),o=n(28426),a=n(27805),i=n(89748),l=n(66134),s=n(19383),c=n(31085);function u(){return(0,c.jsxs)(o.A.Page,{type:"overview",children:[(0,c.jsx)(a.default,{type:"overview",title:(0,i.A)("Release Notes")}),(0,c.jsx)(r.oz,{components:s.A,children:l})]})}},88682:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(64746);function o(e){var t=e.svgRef,n=e.data,o=e.colourConfig,a=e.margin,i=e.width,l=e.height,s=e.hideNumbers,c=void 0!==s&&s,u=e.maxValue,d=void 0===u?100:u,f=e.dataType,p=void 0===f?"":f,m=r.select(t.current).append("g").attr("transform","translate(".concat(a.left,",").concat(a.top,")")),g=["value1","value2"],y=n.length>4?i/n.length:200,h=r.scaleBand().domain(n.map(function(e){return e.name})).range([0,Math.min(i,n.length*y)]).paddingInner(.1),x=r.scaleBand().domain(["value1","value2"]).range([0,Math.min(h.bandwidth(),y)]).padding(.05),b=d,v=r.max(n,function(e){return e.value1})||0,A=r.max(n,function(e){return e.value2})||0;"auto"===d&&(b=1.3*Math.max(v,A));var _=r.scaleLinear().domain([0,b]).range([l,0]),S=r.scaleOrdinal().domain(g).range([o[0].background,o[1].background]),w=m.selectAll("g").data(n).enter().append("g").attr("transform",function(e){return"translate(".concat(h(e.name),",0)")});w.selectAll("rect").data(function(e){return g.map(function(t){return{key:t,value:e[t]}})}).enter().append("rect").attr("x",function(e){var t;
2return null!==(t=x(e.key))&&void 0!==t?t:0}).attr("y",function(e){return _(e.value)}).attr("width",x.bandwidth()).attr("height",function(e){return l-_(e.value)}).attr("fill",function(e){return S(e.key)}),w.selectAll(".bar.column").data(function(e){return g.map(function(t){return{key:t,value:e[t]}})}).enter().append("rect").attr("x",function(e){var t;return null!==(t=x(e.key))&&void 0!==t?t:0}).attr("y",0).attr("width",x.bandwidth()).attr("height",l).attr("fill","transparent");var O=m.append("g").call(r.axisLeft(_).tickFormat(function(e){return"".concat(e).concat("percentage"===p?"%":"")}).ticks(4));O.selectAll("g.tick").select("text").style("font-size","13px").style("font-weight",500),O.select(".domain").remove(),O.selectAll(".tick line").remove();var j=h.domain(),k=Math.min(7,j.length),E=j.filter(function(e,t){return t%Math.ceil(j.length/k)===0}),N=m.append("g").attr("transform","translate(0,".concat(l,")")).call(r.axisBottom(h).tickValues(E));N.selectAll("g.tick").select("text").style("font-size","12px").style("font-weight",400),N.select(".domain").remove(),N.selectAll(".tick line").remove();var I=w.selectAll("rect-group").data(function(e){return g.map(function(t){return{key:t,value:e[t]}})}).enter().append("g").attr("class","rect-group").attr("transform",function(e){var t;return"translate(".concat(null!==(t=x(e.key))&&void 0!==t?t:0,",0)")});return c||(I.append("rect").attr("x",0).attr("y",function(e){return _(e.value)-30}).attr("width",x.bandwidth()).attr("height",20).attr("fill",function(e){var t=o.find(function(t){return t.id===e.key});return t?t.labelBackground:"lightgray"}).attr("rx",10).attr("ry",10),I.append("text").attr("x",x.bandwidth()/2).attr("y",function(e){return _(e.value)-14}).style("text-anchor","middle").style("fill",function(e){var t=o.find(function(t){return t.id===e.key});return t?t.text:"black"}).text(function(e){return e.value.toFixed(2)})),{g:m}}},88709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(99018),i=n(31085),l=o.default;l(".paddingLeft-x1tudf5h{padding-left:32px}",4e3),l(".paddingRight-x1m2p0i2{padding-right:32px}",4e3),l(".paddingBottom-x1gan7if{padding-bottom:32px}",4e3),t.default=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.padding,l=void 0===o||o;return(0,i.jsx)("div",{className:(0,a.classNames)(r,l&&"paddingLeft-x1tudf5h paddingRight-x1m2p0i2 paddingBottom-x1gan7if"),style:{marginBottom:20},children:t})}},88762:(e,t,n)=>{"use strict";e.exports=n.p+"7d2299d225dcb069d0ac.svg"},88841:(e,t,n)=>{"use strict";e.exports=n.p+"ff9983b4790930d3da9b.svg"},89318:(e,t,n)=>{"use strict";e.exports=n.p+"bc7ae041df5fb15dac58.svg"},89353:(e,t,n)=>{"use strict";e.exports=n.p+"b96ab18d1e15a5dcf735.svg"},89362:(e,t,n)=>{"use strict";e.exports=n.p+"fb076b6e6bd7cdef889c.svg"},89414:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96895),o=(0,r.KU)(function(){return sessionStorage});const a=(0,r.tG)("permissionsAtom",{featureFlags:[],integrations:[],roles:[],roleIdentifier:"",accountRoleIdentifier:"",isImpersonating:!1},o)},89541:(e,t,n)=>{"use strict";n.d(t,{A:()=>d}),n(14041);var r=n(99018),o=n(76449),a=n(96182),i=n(92523),l=n(53145),s=n(31085);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=(0,r.createUseStyles)(function(e){return{clickFilterContainerBelow:{display:"flex",justifyContent:"space-between",marginTop:e.spacing[5],marginBottom:e.spacing[5],"& .left":{display:"flex"}}}});const d=function(e){var t,n,r,d=e.filters,f=e.onFilterChange,p=e.filterConfig,m=(n=(0,a.A)(),r=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}
2(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],g=u();return(0,s.jsxs)("div",{className:g.clickFilterContainerBelow,children:[(0,s.jsxs)("div",{className:"left",children:["google"===(null==m||null===(t=m.selectedPlatform)||void 0===t?void 0:t.platform_name)&&(0,s.jsx)("div",{className:"mr-2",children:(0,s.jsx)(l.A,{filters:d,onFilterChange:f})}),p&&(0,s.jsx)(o.default,{filterConfig:p,initialValues:d,onFilterChange:f})]}),(0,s.jsx)(i.default,{})]})}},89587:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={selectedPlatform:{id:1,platform_name:"google",platform_title:"Google",category:"search",state:"active",is_favorite:!0},platforms:[{id:1,platform_name:"google",platform_title:"Googlesdsd",category:"search",state:"active",is_favorite:!0},{id:2,platform_name:"meta",platform_title:"Meta",category:"social",state:"active",is_favorite:!1},{id:3,platform_name:"twitter",platform_title:"X",category:"social",state:"active",is_favorite:!1},{id:5,platform_name:"pinterest",platform_title:"Pinterest",category:"social",state:"active",is_favorite:!1},{id:6,platform_name:"linkedin",platform_title:"LinkedIn",category:"social",state:"active",is_favorite:!1},{id:7,platform_name:"outbrain",platform_title:"OutBrain",category:"display_and_video",state:"active",is_favorite:!1},{id:9,platform_name:"youtube",platform_title:"YouTube",category:"display_and_video",state:"active",is_favorite:!1},{id:10,platform_name:"tiktok",platform_title:"TikTok",category:"display_and_video",state:"active",is_favorite:!1},{id:11,platform_name:"baidu",platform_title:"Baidu",category:"search",state:"active",is_favorite:!1},{id:12,platform_name:"reddit",platform_title:"Reddit",category:"social",state:"active",is_favorite:!1},{id:13,platform_name:"adroll",platform_title:"Adroll",category:"display_and_video",state:"active",is_favorite:!1},{id:14,platform_name:"naver",platform_title:"Naver",category:"search",state:"active",is_favorite:!1},{id:15,platform_name:"bing",platform_title:"Bing",category:"search",state:"active",is_favorite:!1},{id:17,platform_name:"yj",platform_title:"Yahoo Japan",category:"search",state:"active",is_favorite:!1},{id:18,platform_name:"dv360",platform_title:"DV360",category:"display_and_video",state:"active",is_favorite:!1}],allUserPlatforms:[],allAdminPlatforms:[],customerPlatforms:[]}},89748:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(58279),o=n.n(r),a=n(58408),i=n.n(a);function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof c?r:c,u=Object.create(l.prototype);return s(u,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,s=e,f.n=n,i}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(l=0,f.v=r,f.n=a[1]):p<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,s(p,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,o,"GeneratorFunction"),s(p),s(p,o,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}s=function(e,t,n,r){function a(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},s(e,t,n,r)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var d={"en-GB":o(),"en-US":i()},f=d["en-GB"],p=Boolean(function(){try{return"MISSING_ENV_VAR".JEST_WORKER_ID}catch(e){return}}()),m="development"===function(){try{return"production"}catch(e){return}}();function g(){return p?"en-GB":"undefined"!=typeof navigator&&(navigator.language||(null===(e=navigator.languages)||void 0===e?void 0:e[0]))||"en-GB";var e}function y(e){var t;return null!=d&&d[e]?e:(null!=e&&null!==(t=e.toLowerCase)&&void 0!==t&&t.call(e).startsWith("en"),"en-GB")}function h(){var e;return e=l().m(function e(){var t,n;return l().w(function(e){for(;;)switch(e.n){case 0:n=y(g()),f=null!==(t=null==d?void 0:d[n])&&void 0!==t?t:d["en-GB"];case 1:return e.a(2)}},e)}),h=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})},h.apply(this,arguments)}function x(e,t){var n=f[e];return null==n?m?"MISSING_LANGUAGE_STRING->".concat(e):e:t?(Object.entries(t).forEach(function(e){var t,r,o=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],i=o[1];Array.isArray(i)||(n=n.replaceAll(":".concat(a),String(i)))}),n):n}!function(){h.apply(this,arguments)}()},89789:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(79135),s=n(99018),c=n(89748),u=n(62161),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=(0,s.createUseStyles)(function(e){return{accentTextColour:{color:"#252B37"},breadcrumbContainer:{display:"flex",marginBottom:e.spacing[4]},breadcrumbButton:{padding:0,fontSize:e.fontSizes.sm,fontWeight:e.fontWeights.xs,color:(0,s.findColour)(e,"grey",500),marginRight:e.spacing[2],"&.active":{color:(0,s.findColour)(e,"grey",800),fontWeight:e.fontWeights.lg}},textRight:{textAlign:"right",paddingRight:32},textCenter:{textAlign:"center",paddingRight:32}}});function b(e){var t,n,o,a,f=e.onAction,p=e.accountsAPIResponse,g=e.isLoading,b=e.handlePagination,v=e.filters,A=e.setFilters,_=e.actionDisabled,S=e.action,w=e.onClose,O=void 0===w?null:w,j=e.search,k=void 0===j?"":j,E=(o=(0,r.useState)([{name:(0,c.A)("All Accounts"),id:0}]),a=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(o,a)||y(o,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),N=E[0],I=E[1],P=x(),T="add"===S;return(0,r.useEffect)(function(){k&&I([{name:(0,c.A)("All Accounts"),id:0},{name:"".concat((0,c.A)("Results for")," ").concat(k),id:0,search:k}])},[k]),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:P.breadcrumbContainer,children:N.map(function(e,t){return(0,d.jsxs)("div",{children:[(0,d.jsx)("button",{type:"button","data-testid":"breadcrumb-account-button-".concat(e.id||e.search||"".concat(S,"All")),className:(0,s.classNames)(P.breadcrumbButton,{active:t===N.length-1}),onClick:function(){!function(e){if(I(N.slice(0,e+1)),N[e].search){var t=m(m({},v),{},{search:N[e].search,page:1});return delete t.id,void A(t)}if(N[e].id){var n=m(m({},v),{},{id:N[e].id,page:1});return delete n.search,void A(n)}
2var r=m(m({},v),{},{page:1});delete r.search,delete r.id,A(r)}(t)},children:e.name}),t<N.length-1&&(0,d.jsx)(l.default,{name:"chevron-right",className:P.breadcrumbButton})]},e.id)})}),(0,d.jsx)(u.A,{rows:null==p?void 0:p.adwords_accounts,isLoading:g,totalItems:null==p||null===(t=p.pagination)||void 0===t?void 0:t.total,totalPages:null==p||null===(n=p.pagination)||void 0===n?void 0:n.last_page,pageNumber:v.page,handlePagination:b,noDataTitle:"add"===S?(0,c.A)("No accounts available"):(0,c.A)("No accounts assigned"),noDataSubTitle:"add"===S?(0,c.A)("There are no accounts available to add to this workspace"):(0,c.A)("There are no accounts assigned to this workspace yet"),noDataStyle:"secondary",limit:v.limit,leftPinnedColumns:1,children:function(e){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{children:(0,c.A)("Account")}),(0,d.jsx)("th",{children:(0,c.A)("ID")}),(0,d.jsx)("th",{children:(0,c.A)("Platform")}),(0,d.jsx)("th",{children:(0,c.A)("MCC Level")}),(0,d.jsx)("td",{}),(0,d.jsx)("th",{"data-align":"right",children:(0,c.A)(T?"Add":"Remove")})]})}),(0,d.jsxs)("tbody",{children:[(0,d.jsx)("td",{children:null==e?void 0:e.descriptive_name}),(0,d.jsx)("td",{children:null==e?void 0:e.aw_id}),(0,d.jsx)("td",{children:"Google"}),(0,d.jsx)("td",{children:(null==e?void 0:e.children_count)>0?(0,d.jsx)(l.default,{className:P.accentTextColour,name:["far","tags"]}):(0,d.jsx)(l.default,{className:P.accentTextColour,name:["far","tag"]})}),(0,d.jsx)("td",{className:P.textCenter,children:(null==e?void 0:e.children_count)>0&&(0,d.jsx)(i.default,{preset:"outline",size:"sm","aria-label":"drill-down-button-".concat(null==e?void 0:e.descriptive_name),iconRight:"chevron-right",id:"account-drill-down-button-".concat(null==e?void 0:e.id),"data-testid":"account-drill-down-button-".concat(null==e?void 0:e.id),onClick:function(){return function(e){I([].concat(function(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(N),[{name:e.descriptive_name,id:e.id}]));var t=m(m({},v),{},{id:e.id,page:1});delete t.search,A(t)}(e)}})}),(0,d.jsx)("td",{"data-align":"right",children:(0,d.jsx)(i.default,{id:"".concat(S,"-account-button-").concat(null==e?void 0:e.id),"data-testid":"".concat(S,"-account-button-").concat(null==e?void 0:e.id),preset:"outline",size:"sm","aria-label":"icon button",disabled:_(e),iconRight:T?"plus":["far","minus"],onClick:function(){f([e.aw_id])}})})]})]})}}),O&&(0,d.jsx)("div",{className:"h-align-right mt-3",children:(0,d.jsx)(i.default,{preset:"outline",onClick:function(){return O(!1)},"data-testid":"cancel-add-account-button",children:(0,c.A)("Cancel")})})]})}b.propTypes={onAction:a().func.isRequired,accountsAPIResponse:a().object.isRequired,isLoading:a().bool.isRequired,handlePagination:a().func.isRequired,filters:a().object.isRequired,setFilters:a().func.isRequired,action:a().func.isRequired,actionDisabled:a().func.isRequired,onClose:a().func,search:a().string};const v=b},89849:(e,t,n)=>{"use strict";e.exports=n.p+"1baffcda031abe31ec00.svg"},89868:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(53862),a=n(31085);const i=function(){var e,t=(0,r.R7)(),n=t.filters,i=t.handlePagination,l=t.setFilters,s=t.handleSort,c="";return null!==(e=n["accounts.selection"])&&void 0!==e&&e.length&&(c+="&df_customer_ids=".concat(JSON.stringify(n["accounts.selection"]))),(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:n,onFilterChange:l,dynamicQuery:c,handlePagination:i,handleSort:s})})}},89937:(e,t,n)=>{"use strict";e.exports=n.p+"a84cb0d56aa4a421fdfd.svg"},90003:(e,t,n)=>{"use strict";e.exports=n.p+"95d48f0ea89c7aa929e8.svg"},90219:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(34406),o=n(78806),a=n(71449),i=n(44925),l=n(6616);function s(){var e=(0,i.o)((0,l.j)(new Date,{days:30})),t=(0,o.D)((0,l.j)(new Date,{days:1})),n=(0,a._)(e),s=(0,a._)(t);return{interval:"day",min:{localTimestamp:n,timestamp:(0,a._)((0,r.Ay)(e)),date:e},max:{localTimestamp:s,timestamp:(0,a._)((0,r.Ay)(t)),date:t}
2,preset:null,selected:{label:"Custom Range",value:"customRange"}}}},90275:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(62720),s=n(1781),c=n(55618),u=n(30021),d=n(79135),f=n(90405),p=n(2043),m=n(24284),g=n(89748),y=n(99018),h=n(93033),x=n(62161),b=n(31085);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var E=(0,y.createUseStyles)(function(){return{platformIcon:{marginRight:12,width:24,height:24}}});function N(e){var t,n=e.onUpdatePlatform,o=e.onClose,a=e.editingPlatform,y=void 0===a?null:a,v=e.supportedPlatforms,_=void 0===v?[]:v,w=e.configuredPlatforms,j=void 0===w?[]:w,k=E(),N=O((0,r.useState)(""),2),I=N[0],P=N[1],T=O((0,r.useState)(""),2),C=T[0],R=T[1],M=O((0,r.useState)(y),2),L=M[0],D=M[1];if((0,r.useEffect)(function(){if(y&&null!=_&&_.data){var e=_.data.find(function(e){return e.code_name===y.code_name});D(S(S({},y),{},{platform_parameter_required:(null==e?void 0:e.platform_parameter_required)||!1,configuration_name:y.configuration_name||"",max_protected_configurations:(null==e?void 0:e.max_protected_configurations)||0,protected_configurations:(null==e?void 0:e.protected_configurations)||0},null!=e&&e.event_types?{event_types:null==e?void 0:e.event_types}:null))}},[y,_]),null===L)return null;function B(e){D(S(S({},L),{},{protection_status:e}))}return console.log("platform",L),(0,b.jsxs)("div",{children:[(0,b.jsxs)(c.default.Section,{children:[(0,b.jsx)(f.A,{platformName:L.code_name,className:k.platformIcon}),(0,b.jsx)(u.default,{preset:"subText",className:"mb-6",children:L.descriptive_name}),(0,b.jsx)(l.default,{label:(0,g.A)("Name"),"aria-label":(0,g.A)("Name"),value:L.configuration_name,"data-testid":"configuration-name-input",onChange:function(e){return D(S(S({},L),{},{configuration_name:e.target.value}))},className:"mb-5"})]}),(0,b.jsx)(c.default.Section,{heading:(0,g.A)("Auto Calculate CPC"),subtitle:(0,g.A)("When enabled platforms with 0 entered for CPC will use the average of positive values from other platforms"),children:(0,b.jsx)(l.default.Checkbox,{"data-testid":"auto-calculate-cpc-checkbox",className:"mb-5",value:!!L.auto_cpc_avg,onChange:function(e){return D(S(S({},L),{},{auto_cpc_avg:e.target.checked,avg_cpc_usd_cent:0}))}})}),(0,b.jsx)(c.default.Section,{heading:(0,g.A)("Average cost per click"),subtitle:(0,g.A)("The average cost per click for the platform (manually entered as US dollar cents e.g. 50 = $0.50) and used to calculate ad spend"),children:(0,b.jsxs)("div",{className:"flex items-center mb-5",children:[(0,b.jsx)(d.default,{name:["far","circle-d
2ollar"],className:"mr-3"}),(0,b.jsx)(l.default,{"data-testId":"avg-cpc-input",value:L.avg_cpc_usd_cent,onChange:function(e){return D(S(S({},L),{},{avg_cpc_usd_cent:e.target.value,auto_cpc_avg:!1}))}})]})}),L.platform_parameter_required&&(0,b.jsx)(c.default.Section,{heading:(0,g.A)("Platform Parameter"),subtitle:(0,g.A)("Custom platform parameter for the mplat tracking script. (Placeholders show order of parameters)"),children:(0,b.jsx)(l.default,{"data-testId":"platform-parameter-input",value:L.platform_parameter||"",placeholder:L.placeholder,onChange:function(e){return D(S(S({},L),{},{platform_parameter:e.target.value}))},className:"mb-5"})}),"reddit"===L.code_name&&L.event_types&&(0,b.jsx)(c.default.Section,{heading:(0,g.A)("Event Type"),subtitle:(0,g.A)("The event type which will trigger the audience event on the mplat tracking script"),children:(0,b.jsx)(l.default.Select,{name:"event_types",options:L.event_types.map(function(e){return{label:e,value:e}}),"aria-label":(0,g.A)("Select Event Type"),"data-testId":"event-type-select",onChange:function(e){return D(S(S({},L),{},{event_type:e.value}))},placeholder:(0,g.A)("Select an event type"),value:{label:L.event_type,value:L.event_type}})}),(0,b.jsxs)(c.default.Section,{heading:(0,g.A)("Protection Status"),subtitle:(0,g.A)("Select protection status"),children:[(0,b.jsx)(h.A,{isNotTrialStatus:!0,orIsImpersonating:!0,children:(L.max_protected_configurations>L.protected_configurations||2===L.protection_status)&&(0,b.jsxs)("div",{className:"flex items-center mb-3",children:[(0,b.jsx)("button",{"data-testid":"protect-protection-status-radio",type:"button",title:(0,g.A)("Protect"),onClick:function(){return B("2")},children:(0,b.jsx)(l.default.Radio,{value:"2",formValue:L.protection_status.toString(),ariaLabel:(0,g.A)("Protect")})}),(0,b.jsxs)("div",{className:"ml-3",children:[(0,b.jsx)(u.default,{preset:"formSectionTitle",children:(0,g.A)("Protect")}),(0,b.jsx)(u.default,{preset:"formSectionSubTitle",children:(0,g.A)("Lunio will actively protect this platform by investigating suspicious behaviour and blocking any sources we believe to be inauthentic")}),"affiliate"===L.code_name&&(0,b.jsx)(l.default,{"data-testId":"create-add-domain-input","aria-label":(0,g.A)("Add Redirect URL"),label:(0,g.A)("Redirect URL"),required:!0,value:"2"===String(L.protection_status)?L.redirect_url:"",onChange:function(e){return D(S(S({},L),{},{redirect_url:e.target.value}))}})]})]})}),(0,b.jsxs)("div",{className:"flex items-center mb-3",children:[(0,b.jsx)("button",{"data-testid":"monitor-protection-status-radio",title:(0,g.A)("Monitor"),type:"button",onClick:function(){return B("1")},children:(0,b.jsx)(l.default.Radio,{value:"1",formValue:L.protection_status.toString(),ariaLabel:(0,g.A)("Monitor")})}),(0,b.jsxs)("div",{className:"ml-3",children:[(0,b.jsx)(u.default,{preset:"formSectionTitle",children:(0,g.A)("Monitor")}),(0,b.jsx)(u.default,{preset:"formSectionSubTitle",children:(0,g.A)("Lunio will monitor this platform for suspicious behaviour but will not actively block any traffic")})]})]}),0===L.protection_status&&(0,b.jsxs)("div",{className:"flex items-center mb-3",children:[(0,b.jsx)("button",{"data-testid":"disable-protection-status-radio",type:"button",title:(0,g.A)("Disable"),onClick:function(){return B("0")},children:(0,b.jsx)(l.default.Radio,{value:"0",formValue:L.protection_status.toString(),ariaLabel:(0,g.A)("Disable")})}),(0,b.jsxs)("div",{className:"ml-3",children:[(0,b.jsx)(u.default,{preset:"formSectionTitle",children:(0,g.A)("Disable")}),(0,b.jsx)(u.default,{preset:"formSectionSubTitle",children:(0,g.A)("Lunio not monitor or protect this platform")})]})]})]}),"affiliate"===L.code_name&&(0,b.jsxs)(c.default.Section,{heading:"".concat("2"===L.protection_status.toString()?(0,g.A)("Protected"):(0,g.A)("Monitored")," ").concat((0,g.A)("Configuration")),children:[(0,b.jsxs)("div",{className:"flex mb-3",children:[(0,b.jsx)("div",{className:"mr-2",children:(0,b.jsx)(l.default.Toggle,{name:"click_cap_protection_enabled",value:L.conversion_cap>0,onFormValue:function(){D(S(S({},L),{},{conversion_cap:L.conversion_cap?null:1}))}})}),(0,b.jsxs)("div",{className:"mb-6 w-full",children:[(0,b.jsx)(u.default,{className:"mb-1",preset:"formLabel",children:(0,g.A)("Conversion Threshold")}),L.conversion_cap>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.default,{value:L.conversion_cap,"aria-label":(0,g.A)("Click Capping"),"data-testid":"create-click_cap-input",type:"number",onChange:function(e){var t=e.target.value;/^\d+$/.test(t)&&"0"!==t&&D(S(S({},L),{},{conversion_cap:t}))},className:"mb-2"}),(0,b.jsx)(u.default,{preset:"subText",children:(0,g.A)("We will flag when users attempt more than :n :conversionsPlural per 24 hours",{n:L.conversion_cap,conversionsPlural:L.conversion_cap>
21?(0,g.A)("conversions"):(0,g.A)("conversion")})})]})]})]}),(0,b.jsx)("div",{children:(0,b.jsxs)("div",{className:"flex mb-5",children:[(0,b.jsx)("div",{className:"mr-2",children:(0,b.jsx)(l.default.Toggle,{name:"clickCapProtection",value:L.click_cap_protection_enabled,onFormValue:function(){D(S(S({},L),{},{click_cap_protection_enabled:!L.click_cap_protection_enabled},L.click_cap?{}:{click_cap:1}))}})}),(0,b.jsxs)("div",{className:"w-full",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(u.default,{className:"mb-1",preset:"formLabel",children:(0,g.A)("Click Capping")}),(0,b.jsx)(u.default,{preset:"subText",className:"mb-2",children:(0,g.A)("Limit the number of clicks from a single user.")}),!!L.click_cap_protection_enabled&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.default,{value:L.click_cap,"aria-label":(0,g.A)("Click Capping Input"),"data-testid":"edit-click-cap-input",type:"number",onChange:function(e){var t=e.target.value;/^\d+$/.test(t)&&"0"!==t&&D(S(S({},L),{},{click_cap:t}))},className:"mb-2"}),(0,b.jsx)(u.default,{preset:"subText",children:(0,g.A)("Users are limited to :n :clicksPlural per 24 hours",{n:L.click_cap,clicksPlural:L.click_cap>1?(0,g.A)("clicks"):(0,g.A)("click")})})]})]}),!!L.click_cap_protection_enabled&&(0,b.jsxs)("div",{className:"mt-4",children:[(0,b.jsx)(u.default,{className:"mb-1",preset:"formLabel",children:(0,g.A)("Click Capping Redirection URL")}),(0,b.jsx)(u.default,{className:"mb-2",preset:"subText",children:(0,g.A)("Define where users who exceed click cap should be redirected to.")}),(0,b.jsx)(l.default,{value:L.click_cap_redirect_url,"aria-label":(0,g.A)("Click Capping Redirection URL"),"data-testid":"create-click_cap_redirect_url-input",placeholder:"https://example.com",onChange:function(e){return D(S(S({},L),{},{click_cap_redirect_url:e.target.value}))},className:"mb-2"}),(0,b.jsx)(u.default,{preset:"subText",children:(0,g.A)("Users are limited to :n :clicksPlural per 24 hours",{n:L.click_cap,clicksPlural:L.click_cap>1?(0,g.A)("clicks"):(0,g.A)("click")})})]})]})]})})]}),(0,b.jsxs)(c.default.Section,{heading:(0,g.A)("Add Domains to this Platform"),subtitle:(0,g.A)("Paste the full URL from your browser, including any subdomain or path. e.g. https://www.website.com, https://shop.website.com, https://website.com/us. Domains must match exactly, website.com will not capture www.website.com."),children:[(0,b.jsxs)("div",{className:"flex justify-between mt-4 mb-4",children:[(0,b.jsx)(l.default,{"data-testId":"add-domain-input",value:I,onChange:function(e){return P(e.target.value)}}),(0,b.jsx)(i.default,{className:"ml-2",iconRight:"plus",preset:"primary",title:(0,g.A)("Add Domain"),onClick:function(){return I?L.sources.includes(I)?((0,m.A)((0,g.A)("That domain has been added already"),"error"),null):(0,p.Ay)({isURL:!0},I).length>0?((0,m.A)((0,g.A)("The domain you are trying to add must be a valid URL"),"error"),null):(D(S(S({},L),{},{sources:[].concat(A(L.sources),[I])})),P(""),null):null},"data-testid":"add-domain-button",children:(0,g.A)("Add Domain")})]}),L.sources.length>0&&(0,b.jsx)(x.A,{rows:L.sources.map(function(e){return{domain:e}}),isLoading:!1,totalPages:1,pageNumber:1,limit:20,leftPinnedColumns:1,children:function(e){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:(0,g.A)("Domain URL")}),(0,b.jsx)("th",{})]})}),(0,b.jsxs)("tbody",{children:[(0,b.jsx)("td",{children:null==e?void 0:e.domain}),(0,b.jsx)("td",{style:{textAlign:"right"},children:(0,b.jsx)(s.default,{content:(0,g.A)("Remove Domain URL"),children:(0,b.jsx)(i.default,{"data-testid":"remove-domain-button-".concat(null==e?void 0:e.domain),onClick:function(){return t=null==e?void 0:e.domain,void D(S(S({},L),{},{sources:L.sources.filter(function(e){return e!==t})}));var t},"aria-label":(0,g.A)("Remove Domain"),iconRight:["far","minus"],preset:"outline",size:"sm"})})})]})]})}})]}),"affiliate"===L.code_name&&(0,b.jsxs)(c.default.Section,{heading:(0,g.A)("Blocklists"),children:[(0,b.jsxs)("div",{className:"flex justify-between mt-4 mb-3",children:[(0,b.jsx)(l.default,{"data-testId":"add-isp-input","aria-label":(0,g.A)("Add ISP"),placeholder:(0,g.A)("Type ISP here"),value:C,onChange:function(e){return R(e.target.value)}}),(0,b.jsx)(i.default,{className:"ml-2",iconRight:"plus",onClick:function(){return C?L.isp_exclusion_list.includes(C)?((0,m.A)((0,g.A)("That ISP has been added already"),"error"),null):/^[a-zA-Z\s&]+$/.test(C)?L.isp_exclusion_list.length>=40?((0,m.A)((0,g.A)("You can only add up to 40 IPS records"),"error"),null):(D(S(S({},L),{},{isp_exclusion_list:[].concat(A(L.isp_exclusion_list),[C])})),R(""),null):((0,m.A)((0,g.A)("The ISP you are trying to add must be a valid name"),"error"),null):null},"data-testid":"create-add-domain-button",children:(0,g.A)("Add ISP")})]}),(0,b.jsx)(u.default,{preset:"subText",className:"mb-4",children:(0,g.A)("Type a valid ISP into the input then click Add ISP.")}),(null==L||null===(t=L.isp_exclusion_list)||void 0===t?void 0:t.length)>0&&(0,b.jsx)(x.A,{rows:(Array.isArray(L.isp_exclusion_list)?L.isp_exclusion_list:[]).map(function(e){return{isp:e}}),isLoading:!1,totalPages:1,pageNumber:1,limit:20,leftPinnedColumns:1,children:function(e){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{children:(0,g.A)("Device ISP")}),(0,b.jsx)("th",{})]})}),(0,b.jsxs)("tbody",{children:[(0,b.jsx)("td",{children:null==e?void 0:e.isp}),(0,b.jsx)("td",{style:{textAlign:"right"},children:(0,b.jsx)(s.default,{content:(0,g.A)("Remove ISP URL"),children:(0,b.jsx)(i.default,{"data-testid":"remove-isp-button-".concat(null==e?void 0:e.isp),onClick:function(){return t=null==e?void 0:e.isp,void D(S(S({},L),{},{isp_exclusion_list:L.isp_exclusion_list.filter(function(e){return e!==t})}));var t},"aria-label":(0,g.A)("Remove ISP"),iconRight:["far","minus"],preset
2:"outline",size:"sm"})})})]})]})}})]}),(0,b.jsxs)("div",{className:"flex justify-end mt-10",children:[(0,b.jsx)(i.default,{"data-testid":"cancel-edit-platform-button",preset:"outline",className:"mr-3",onClick:function(){o()},children:(0,g.A)("Cancel")}),(0,b.jsx)(i.default,{"data-testid":"confirm-edit-platform-save-button",onClick:function(){return function(){if(!(function(){var e=[],t=(0,p.Ay)({isDecimal:!0},L.avg_cpc_usd_cent);if(t.length>0&&(e.push(t),(0,m.A)((0,g.A)("Average cost per click must be a number"),"error"),D(S(S({},L),{},{avg_cpc_usd_cent:""}))),L.configuration_name&&0!==L.configuration_name.length||(e.push({ruleName:"isNotBlank",userMessage:"You must give a name to this configuration"}),(0,m.A)((0,g.A)("You must give a name to this configuration"),"error")),j.data.find(function(e){return e.configuration_name===L.configuration_name&&e.code_name===L.code_name&&e.configuration_id!==L.configuration_id})&&(e.push({ruleName:"isUnique",userMessage:"This configuration name is already in use"}),(0,m.A)((0,g.A)("This name is already in use"),"error")),"affiliate"===L.code_name&&"2"===String(L.protection_status)){0===L.redirect_url.length&&(e.push({ruleName:"isNotBlank",userMessage:"The domain you are trying to add must be a valid URL"}),(0,m.A)((0,g.A)("The domain you are trying to add must be a valid URL"),"error"));var n=(0,p.Ay)({isURL:!0},L.redirect_url);n.length>0&&(e.push.apply(e,A(n)),(0,m.A)((0,g.A)("The domain you are trying to add must be a valid URL"),"error"))}if(L.click_cap_protection_enabled&&"affiliate"===L.code_name)if(L.click_cap_redirect_url){var r=(0,p.Ay)({isURL:!0},L.click_cap_redirect_url);(r.length>0||!/^(https?:\/\/)/.test(L.click_cap_redirect_url))&&(e.push.apply(e,A(r)),(0,m.A)((0,g.A)("Click Capping Redirection URL must be a valid URL"),"error"))}else e.push({ruleName:"isNotBlank",userMessage:"Click Capping Redirection URL cannot be blank"}),(0,m.A)((0,g.A)("Click Capping Redirection URL cannot be blank"),"error");var o=j.data.filter(function(e){return e.platform_id===L.platform_id});return 0===L.sources.length&&1!==L.configuration_id&&o.length>1&&(e.push({ruleName:"isNotBlank",userMessage:"You must have at least one domain URL"}),(0,m.A)((0,g.A)("You must have at least one domain URL"),"error")),e}().length>0)){var e=S({},L);"affiliate"!==e.code_name?(delete e.click_cap,delete e.click_cap_protection_enabled,delete e.click_cap_redirect_url):e.click_cap_protection_enabled?e.click_cap=parseInt(e.click_cap,10):(e.click_cap=null,e.click_cap_redirect_url=null),parseInt(e.conversion_cap,10)>=0&&(e.conversion_cap=parseInt(e.conversion_cap,10)),n(S(S({},e),{},{avg_cpc_usd_cent:parseInt(e.avg_cpc_usd_cent,10),auto_cpc_avg:e.auto_cpc_avg?1:0,protection_status:parseInt(e.protection_status,10)},e.default_event_type?{event_type:e.default_event_type}:null)),o()}}()},children:(0,g.A)("Confirm")})]})]})}N.propTypes={editingPlatform:a().object,onUpdatePlatform:a().func.isRequired,onClose:a().func.isRequired,supportedPlatforms:a().object,configuredPlatforms:a().object};const I=N},90318:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96895),o=(0,r.KU)(function(){return sessionStorage});const a=(0,r.tG)("platformsAtom",{selectedPlatform:{id:1,platform_name:"google",platform_title:"Google",category:"search",state:"active",is_favorite:!0},platforms:[],allUserPlatforms:[],allAdminPlatforms:[],customerPlatforms:[]},o)},90364:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(14041);var r=n(9260),o=n(55618),a=n(30021),i=n(89748),l=n(31085);const s=function(e){var t=e.sidebarIsOpen,n=e.setSidebarIsOpen;return(0,l.jsxs)(o.default,{open:t,onClose:function(){return n(!1)},heading:(0,i.A)("PMax Junk Exclusions List"),children:[(0,l.jsx)(a.default,{className:"mb-6 mt-2",children:(0,i.A)("Up to 41% of PMax placements consist of ad junk. Use this handy list based on global Lunio data to exclude the worst offending placements from your account and accelerate your performance.")}),(0,l.jsx)(r.default,{as:"a",href:"https://cdn.lunio.ai/Lunio_PMax_Junk_Placement_Exclusions.csv",children:(0,i.A)("Download")}),(0,l.jsxs)(a.default,{className:"mt-6",children:[(0,i.A)("This must be installed at the Google Account or Google MCC level.")," ",(0,l.jsx)("a",{href:"https://support.google.com/google-ads/answer/7331110",target:"_blank",rel:"noreferrer noopener",children:(0,i.A)("See how here.")})]}),(0,l.jsx)("div",{className:"text-right mt-4",children:(0,l.jsx)(r.default,{preset:"outline",onClick:function(){return n(!1)},"data-testid":"cancel-workspace-button",children:(0,i.A)("Close")})})]})}},90405:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=E(n(25751)),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}
2return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),i=E(n(63768)),l=E(n(87378)),s=E(n(5555)),c=E(n(59958)),u=E(n(67400)),d=E(n(36461)),f=E(n(71748)),p=E(n(6558)),m=E(n(21592)),g=E(n(27770)),y=E(n(97317)),h=E(n(62974)),x=E(n(64664)),b=E(n(11515)),v=E(n(28264)),A=E(n(40433)),_=E(n(95826)),S=E(n(29352)),w=E(n(58374)),O=E(n(73238)),j=E(n(68984)),k=n(31085);function E(e){return e&&e.__esModule?e:{default:e}}function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}var I=["platformName","preset","border"];function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function C(e,t,n){return(t=function(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=o.default;R(".filter-x1gypw5m{filter:brightness(0) saturate(100%) invert(59%) sepia(14%) saturate(208%) hue-rotate(186deg) brightness(98%) contrast(89%)}",3e3),R(".filter-x96sdx0{filter:brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(99deg) brightness(102%) contrast(105%)}",3e3),R(".display-x1rg5ohu{display:inline-block}",3e3),R(".borderWidth-xmkeg23{border-width:1px}",2e3),R(".borderStyle-x1y0btm7{border-style:solid}",2e3),R(".borderColor-x2ci420{border-color:var(--gray200-x1cfnqzm)}",2e3),R(".borderRadius-x1q4ynmn{border-radius:10px}",2e3),R(".padding-xe8ttls{padding:8px}",1e3);var M={coloured:{$$css:"PlatformIcon/index.tsx:28"},grey:{filter:"filter-x1gypw5m",$$css:"PlatformIcon/index.tsx:29"},white:{filter:"filter-x96sdx0",$$css:"PlatformIcon/index.tsx:32"},border:{display:"display-x1rg5ohu",borderWidth:"borderWidth-xmkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:"borderStyle-x1y0btm7",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:"borderColor-x2ci420",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,borderRadius:"borderRadius-x1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"padding-xe8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:"PlatformIcon/index.tsx:35"}};function L(e){var t=e.platformName,n=void 0===t?"google":t,r=e.preset,o=void 0===r?"coloured":r,E=e.border,N=void 0!==E&&E,P=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,I),C=function(e){switch(e){case"bing":return i.default;case"facebook":return l.default;case"google":return s.default;case"instagram":return c.default;case"linkedin":return u.default;case"meta":return d.default;case"pinterest":return f.default;case"reddit":return p.default;case"tiktok":return m.default;case"twitter":case"x":case"X":return g.default;case"youtube":return y.default;case"outbrain":return h.default;case"naver":return x.default;case"baidu":return b.default;case"adroll":return v.default;case"dv360":return A.default;case"yj":case"yahooJapan":case"yahoojapan":return _.default;case"taboola":return S.default;case"criteo":return w.default;case"affiliate":return O.default;case"openai":return j.default;default:return null}}(n),R=(0,k.jsx)("img",T(T({"data-testid":"platformIcon-".concat(n),id:"platformIcon-".concat(n),alt:"",src:null!=C?C:""},a.props(M[o])),P));return N?(0,k.jsx)("div",T(T({},{className:"display-x1rg5ohu borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x2ci420 borderRadius-x1q4ynmn padding-xe8ttls","data-style-src":"PlatformIcon/index.tsx:35"}),{},{children:R})):R}L.displayName="PlatformIcon",t.A=L}
2,90433:(e,t,n)=>{"use strict";e.exports=n.p+"165a9e819edd4b0bc74d.svg"},90780:(e,t,n)=>{"use strict";e.exports=n.p+"f0a00e0d0c9ac06ac630.svg"},90914:(e,t,n)=>{"use strict";e.exports=n.p+"404ed06955958fd51709.svg"},91040:(e,t,n)=>{"use strict";n.d(t,{A:()=>v}),n(14041);var r=n(39067),o=n.n(r),a=n(56197),i=n(1781),l=n(9685),s=n(99018),c=n(62161),u=n(89748),d=n(72748),f=n(31085);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){try{return JSON.parse(e),!0}catch(e){return!1}}var x=(0,s.createUseStyles)(function(e){return{contentContainer:{width:"100%",fontFamily:e.fonts.text,fontSize:e.fontSizes.sm},heading:{color:e.colors.grey[400],width:"100%",fontSize:18,fontWeight:800,marginBottom:-8},col1:{width:"35%"},col2:{width:"65%"},row:{display:"flex",width:"100%",marginTop:16,marginBottom:16},block:{marginRight:64},blockTitle:{fontWeight:800,fontSize:e.fontSizes.xs},blockContent:{display:"flex"},riskBox:{display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.neutralTextDefault,borderRadius:4,height:24,width:"fit-content",paddingLeft:8,paddingRight:8,fontSize:e.fontSizes.xs},behaviourPill:{display:"inline-flex",justifyContent:"center",alignItems:"center",backgroundColor:e.colors.yellow[100],color:e.colors.neutralTextDefault,borderRadius:6,height:24,width:"fit-content",paddingLeft:8,paddingRight:8,marginRight:8,fontSize:e.fontSizes.xs,"& .black":{backgroundColor:e.colors.black}}}});function b(e){var t=e.data,n=e.className,r=void 0===n?"":n,o=x(),p={ip:"",network_address:"",ip_isp:"",ip_country:"",ip_converted:null,proxy_requests:0,reported_to_abuse_ip_db:0,anomalous_user_agents_detected:0,suspicious_ip_usage_type_detected:0,nonpaid_traffic_detected:null,anomalous_ad_activity:null,max_risk_score:0,waf_detected:0,labelled_invalid:0,reasons:[],isInvestigating:!1};if(t&&(p=g(g(g({},p),t),{},{reasons:(0,d.A)(t)})),h(null==t?void 0:t.ip_isp)){var m=JSON.parse(t.ip_isp);p.ip_isp=(null==m?void 0:m.isp)||""}return"string"!=typeof(null==t?void 0:t.ip_isp)||h(null==t?void 0:t.ip_isp)||(p.ip_isp=t.ip_isp),(0,f.jsx)("div",{className:(0,s.classNames)(o.contentContainer,r),children:(0,f.jsx)(c.A,{rows:p.ip_isp.length>0&&p.ip_isp?[p]:[],isLoading:!t,leftPinnedColumns:1,noDataTitle:(0,u.A)("No data available for this IP address"),noDataSubTitle:(0,u.A)("try a different IP address"),children:function(){var e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("thead",{children:(0,f.jsxs)("tr",{children:[(0,f.jsx)("th",{children:(0,u.A)("ISP")}),(0,f.jsx)("th",{children:(0,u.A)("Network")}),(0,f.jsx)("th",{children:(0,u.A)("Locations")}),(0,f.jsx)("th",{children:(0,u.A)("Usage Type")}),(0,f.jsx)("th",{children:(0,u.A)("Behaviour across Lunio")})]})}),(0,f.jsxs)("tbody",{children:[(0,f.jsxs)("td",{children:[p.ip_isp.length>0&&p.ip_isp,!p.ip_isp&&(0,f.jsx)(a.default,{iconLeft:["far","circle-dot"],colourName:"pending",children:(0,u.A)("Investigating")})]}),(0,f.jsxs)("td",{children:[(null===(e=p.network_address)||void 0===e?void 0:e.length)>0&&p.network_address,!p.network_address&&(0,f.jsx)(a.default,{iconLeft:["far","circle-d
2ot"],colourName:"pending",children:(0,u.A)("Investigating")})]}),(0,f.jsxs)("td",{children:[p.ip_country&&(0,f.jsx)(i.default,{content:"".concat((0,u.A)("Country Code:")," ").concat(p.ip_country),children:(0,f.jsx)(l.A,{countryCode:p.ip_country})}),!p.ip_country&&(0,f.jsx)(a.default,{iconLeft:["far","circle-dot"],colourName:"pending",children:(0,u.A)("Investigating")})]}),(0,f.jsx)("td",{children:p.ip_usage_type_name?p.ip_usage_type_name:(0,f.jsx)(a.default,{iconLeft:["far","circle-dot"],colourName:"pending",children:(0,u.A)("Investigating")})}),(0,f.jsxs)("td",{children:[p.reasons.length>0&&(0,f.jsx)("div",{className:o.blockContent,children:p.reasons.map(function(e){return(0,f.jsx)(i.default,{content:e.description,children:(0,f.jsx)(a.default,{iconLeft:["far","circle-exclamation"],className:"mr-2",colourName:"3rd Party Blacklisted"===e.title?"error":"warning",children:e.title})},e.title)})}),0===p.reasons.length&&(0,f.jsx)(a.default,{iconLeft:["far","circle-dot"],colourName:"pending",children:(0,u.A)("Investigating")})]})]})]})}})})}b.propTypes={data:o().object.isRequired,className:o().string};const v=b},91068:(e,t,n)=>{"use strict";e.exports=n.p+"d61a7ad4a4e010618334.svg"},91114:(e,t,n)=>{"use strict";e.exports=n.p+"05f7a594dcb1930e15f4.svg"},91326:(e,t,n)=>{"use strict";e.exports=n.p+"e7b5a66b7274e939946b.svg"},91352:(e,t,n)=>{"use strict";e.exports=n.p+"f91d9cde51299c00b518.svg"},91612:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o=b(n(25751)),a=n(14041),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(73657),s=n(45647),c=n(44146),u=n(18141),d=n(98536),f=b(n(93513)),p=b(n(79135)),m=b(n(27105)),g=b(n(43005)),y=b(n(50137)),h=b(n(15877)),x=n(31085);function b(e){return e&&e.__esModule?e:{default:e}}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j=o.default;j(".height-x14baz6b{height:76px}",4e3),j(".position-xixxii4{position:fixed}",3e3),j(".top-x13vifvy{top:0}",4e3),j(".left-xu96u03{left:0}",4e3),j(".width-xh8yej3{width:100%}",4e3),j(".display-x78zum5{display:flex}",3e3),j(".alignItems-x6s0dn4{align-items:center}",3e3),j(".justifyContent-x1qughib{justify-content:space-between}",3e3),j(".padding-x1ff1495{padding:8px 16px}",1e3),j(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),j(".borderBottom-x1na7oll{border-bottom:1px solid var(--gray300-x1xk3734)}",2e3),j(".gap-xou54vl{gap:16px}",2e3),j(".flexShrink-x2lah0s{flex-shrink:0}",3e3),j(".width-xq14iec{width:31px}",4e3),j(".height-x1aekv1k{height:31px}",4e3),j(".borderRadius-x16rqkct{border-radius:50%}",2e3),j(".backgroundColor-x1vuwhqn{background-color:var(--primary100-x1s8hf8c)}",3e3),j(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),j(".justifyContent-xl56j7k{justify-content:center}",3e3),j(".fontSize-xif65rj{font-size:14px}",3e3),j(".fontWeight-xk50ysn{font-weight:500}",3e3),j(".border-xxk0nts{border:solid 3px var(--primary50-xfg0wjs)}",1e3),j(".cursor-x1ypdohk{cursor:pointer}",3e3),j(".opacity-x18uuni6:hover{opacity:.9}",3130),j(".width-xvy4d1p{width:24px}",4e3),j(".height-xxk0z11{height:24px}",4e3),j(".color-x1r9fet4{color:var(--gray600-x139mciy)}",3e3),j(".fontWeight-xuv8nkb{font-weight:800}",3e3),j(".border-x1fgajin{border:solid 2px var(--gray600-x139mciy)}",1e3),j(".marginLeft-x16vho4v{margin-left:6px}",4e3),j(".opacity-x5z6fxw:hover{opacity:.8}",3130),j(".fontSize-xfifm61{font-size:12px}",3e3),j(".height-x10w6t97{height:32px}",4e3),j(".marginRight-x1o6q14k{margin-right:16px}",4e3),j(".width-x6jxa94{width:14px}",4e3),j(".height-x1v9usgg{height:14px}",4e3),j(".color-xnx9fn3{color:var(--gray400-x79zdqj)}",3e3),j(".position-x10l6tqk{position:absolute}",3e3),j(".top-x9k0yyd{top:39px}",4e3),j(".right-x3m8u43{right:0}",4e3),j(".width-x1tdqgrh{width:264px}",4e3),j(".height-xt7dq6l{height:auto}",4e3),j(".backgroundColor-x1q85c4o{background-color:#FFFFFF}
2",3e3),j(".border-x15hrl5u{border:1px solid #D5D7DA}",1e3),j(".borderRadius-xur7f20{border-radius:8px}",2e3),j(".overflow-xb3r6kr{overflow:hidden}",2e3),j(".boxShadow-xm43dj{box-shadow:0 2px 4px -2px rgba(10,13,18,.06),0 4px 8px -2px rgba(10,13,18,.1)}",3e3,".boxShadow-xm43dj{box-shadow:0 2px 4px -2px rgba(10,13,18,.06), 0 4px 8px -2px rgba(10,13,18,.1)}"),j(".zIndex-x1bkdxzg{z-index:1001}",3e3),j(".padding-x1717udv{padding:0}",1e3),j(".border-x1gs6z28{border:none}",1e3),j(".background-x11g6tue{background:none}",1e3),j(".position-x1n2onr6{position:relative}",3e3),j('.content-x1s928wv::after{content:""}',8e3),j(".position-x1j6awrg::after{position:absolute}",8e3),j(".top-x1sqi65r::after{top:-3px}",9e3),j(".right-xphi5we::after{right:-3px}",9e3),j(".width-x10mnas6::after{width:8px}",9e3),j(".height-xf8dsx9::after{height:8px}",9e3),j(".borderRadius-x2coff9::after{border-radius:50%}",7e3),j(".backgroundColor-xhzqu3k::after{background-color:var(--error600-x1indqeg)}",8e3),j(".border-x1foox0i::after{border:2px solid var(--error600-x1indqeg)}",6e3),j(".boxShadow-x50ozsy::after{box-shadow:0 0 0 1px rgba(0,0,0,.04)}",8e3),j(".zIndex-x1jg531d::after{z-index:2}",8e3);var k={buttonHasAlerts:{padding:"padding-x1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,border:"border-x1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,background:"background-x11g6tue",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,cursor:"cursor-x1ypdohk",position:"position-x1n2onr6","::after_content":"content-x1s928wv","::after_position":"position-x1j6awrg","::after_top":"top-x1sqi65r","::after_right":"right-xphi5we","::after_insetInlineStart":null,"::after_insetInlineEnd":null,"::after_width":"width-x10mnas6","::after_height":"height-xf8dsx9","::after_borderRadius":"borderRadius-x2coff9","::after_borderStartStartRadius":null,"::after_borderStartEndRadius":null,"::after_borderEndStartRadius":null,"::after_borderEndEndRadius":null,"::after_borderTopLeftRadius":null,"::after_borderTopRightRadius":null,"::after_borderBottomLeftRadius":null,"::after_borderBottomRightRadius":null,"::after_backgroundColor":"backgroundColor-xhzqu3k","::after_border":"border-x1foox0i","::after_borderWidth":null,"::after_borderInlineWidth":null,"::after_borderInlineStartWidth":null,"::after_borderLeftWidth":null,"::after_borderInlineEndWidth":null,"::after_borderRightWidth":null,"::after_borderBlockWidth":null,"::after_borderTopWidth":null,"::after_borderBottomWidth":null,"::after_borderStyle":null,"::after_borderInlineStyle":null,"::after_borderInlineStartStyle":null,"::after_borderLeftStyle":null,"::after_borderInlineEndStyle":null,"::after_borderRightStyle":null,"::after_borderBlockStyle":null,"::after_borderTopStyle":null,"::after_borderBottomStyle":null,"::after_borderColor":null,"::after_borderInlineColor":null,"::after_borderInlineStartColor":null,"::after_borderLeftColor":null,"::after_borderInlineEndColor":null,"::after_borderRightColor":null,"::after_borderBlockColor":null,"::after_borderTopColor":null,"::after_borderBottomColor":null,"::after_boxShadow":"boxShadow-x50ozsy","::after_zIndex":"zIndex-x1jg531d",$$css:"TopBar/index.tsx:142"}};function E(e){var t,n,r,o,b,v=e.noPlatformSelector,A=void 0!==v&&v,S=(0,c.useAccessControl)(),O=S.allowedRoles,j=S.allowedAccountRoles,E=w((0,s.usePlatformsState)(),2),N=E[0],I=E[1],P=w((0,s.usePermissionsState)(),2),T=P[0],C=P[1],R=w((0,s.useGlobalFiltersState)(),2),M=R[0],L=R[1],D=w((0,s.useWorkspacesState)(),2),B=D[0],U=D[1],F=w((0,s.use
2SyncState)(),2),G=F[0],W=F[1],z=w((0,a.useState)(!1),2),V=z[0],q=z[1],K=(0,l.useNavigate)(),H=(0,d.useApi)({url:"/recommendations",paginationLimit:100,customQueryString:"&ignore_last_seen=true",disabled:!O(["ADMIN","ROOT","OWNER"])});return(0,a.useEffect)(function(){var e;if((null==H?void 0:H.data.length)>0||(null==H||null===(e=H.response)||void 0===e||null===(e=e.result)||void 0===e?void 0:e.notifications.length)>0){var t,n=((null==H?void 0:H.data)||[]).filter(function(e){return null===(null==e?void 0:e.actioned_at)&&null===(null==e?void 0:e.dismissed_at)});W(_(_({},G),{},{alerts:_(_({},G.alerts),{},{recommendationsCount:null==n?void 0:n.length,recommendations:null==H?void 0:H.data,notifications:null==H||null===(t=H.response)||void 0===t||null===(t=t.result)||void 0===t?void 0:t.notifications})}))}},[null==H?void 0:H.data,null==H||null===(t=H.response)||void 0===t||null===(t=t.result)||void 0===t?void 0:t.notifications]),(0,x.jsxs)("div",_(_({"data-testid":"top-bar-container"},{className:"height-x14baz6b position-xixxii4 top-x13vifvy left-xu96u03 width-xh8yej3 display-x78zum5 alignItems-x6s0dn4 justifyContent-x1qughib padding-x1ff1495 backgroundColor-x18oya0d borderBottom-x1na7oll","data-style-src":"TopBar/index.tsx:27"}),{},{children:[(0,x.jsxs)("div",_(_({"data-testid":"top-bar-left"},{className:"display-x78zum5 alignItems-x6s0dn4 gap-xou54vl","data-style-src":"TopBar/index.tsx:40"}),{},{children:[(0,x.jsx)("button",{type:"button",style:{cursor:"pointer"},onClick:function(){sessionStorage.clear(),window.location.href="/overview"},children:(0,x.jsx)("img",_({src:m.default,alt:"Primary Logo","data-testid":"top-bar-logo"},{className:"height-x10w6t97 marginRight-x1o6q14k","data-style-src":"TopBar/index.tsx:117"}))}),(0,x.jsx)(g.default,{}
2),!(null==N||!N.platforms.length||null==B||!B.selectedWorkspace)&&!A&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(p.default,{className:"width-x6jxa94 height-x1v9usgg color-xnx9fn3",name:["fas","angles-right"]}),(0,x.jsx)(y.default,{})]})]})),(0,x.jsxs)("div",_(_({"data-testid":"top-bar-right"},{className:"display-x78zum5 alignItems-x6s0dn4 gap-xou54vl","data-style-src":"TopBar/index.tsx:45"}),{},{children:[j(["ADMIN","ROOT","OWNER"])&&(b=(navigator.language||"en-GB").toLowerCase(),"en"===b||b.startsWith("en-"))&&(0,x.jsx)(l.Link,_(_({type:"button","data-testid":"notifications-link-button",to:"/insights/alerts"},i.props((null==G||null===(n=G.alerts)||void 0===n?void 0:n.recommendationsCount)>0&&k.buttonHasAlerts)),{},{children:(0,x.jsx)(p.default,_({name:["far","bell"],"data-testid":"top-bar-notification-icon"},{className:"width-xvy4d1p height-xxk0z11 borderRadius-x16rqkct color-x1r9fet4 display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k fontSize-xfifm61 fontWeight-xk50ysn cursor-x1ypdohk marginLeft-x16vho4v opacity-x5z6fxw","data-style-src":"TopBar/index.tsx:85"}))})),j(["ADMIN","ROOT","OWNER","EDITOR","MANAGER"])&&(0,x.jsx)("button",{type:"button","data-testid":"settings-link-button",onClick:function(){return function(){if(j(["ADMIN","ROOT","OWNER","EDITOR","MANAGER"])){var e,t=B.workspaces.find(function(e){return""===e.id}),n=(0,u.getScopedPlatforms)(B.workspaces,t,N.allUserPlatforms,N.allAdminPlatforms),r=(0,u.getSelectedPlatform)(n),o=_(_({},T),{},{roleIdentifier:null!==(e=null==t?void 0:t.role)&&void 0!==e?e:T.accountRoleIdentifier});C(o),W(_(_({},G),{},{hasNoDataScope:(0,u.getHasNoDataScope)(o,B.workspaces,n,null==t?void 0:t.id)})),U(_(_({},B),{},{selectedWorkspace:t})),I(_(_({},N),{},{platforms:n,selectedPlatform:r})),L(_(_({},M),{},{filteredGoogleAwIds:[],selectedAwAccounts:[]})),"MANAGER"===T.accountRoleIdentifier?K("/integrations-settings/integrations"):"EDITOR"===T.accountRoleIdentifier?K("/workspace-settings/workspaces"):K("/account-settings/account")}}()},children:(0,x.jsx)(p.default,_({name:["far","cog"],"data-testid":"top-bar-settings-icon"},{className:"width-xvy4d1p height-xxk0z11 borderRadius-x16rqkct color-x1r9fet4 display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k fontSize-xfifm61 fontWeight-xk50ysn cursor-x1ypdohk marginLeft-x16vho4v opacity-x5z6fxw","data-style-src":"TopBar/index.tsx:85"}))}),(0,x.jsx)(l.Link,_(_({type:"button","data-testid":"help-link-button",to:"https://help.lunio.ai/",target:"_blank",rel:"noopener noreferrer"},{className:"width-xvy4d1p height-xxk0z11 borderRadius-x16rqkct color-x1r9fet4 display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k fontSize-xif65rj fontWeight-xuv8nkb cursor-x1ypdohk border-x1fgajin marginLeft-x16vho4v opacity-x5z6fxw","data-style-src":"TopBar/index.tsx:68"}),{},{children:(0,x.jsx)(p.default,{name:["fas","question"],"data-testid":"top-bar-help-icon"})})),(0,x.jsx)(f.default,{onClickOutside:function(){return q(!1)},children:(0,x.jsxs)("div",{"data-testid":"top-bar-user-profile",style:{position:"relative"},children:[(0,x.jsxs)("button",_(_({type:"button","data-testid":"user-profile-link-button"},{className:"flexShrink-x2lah0s width-xq14iec height-x1aekv1k borderRadius-x16rqkct backgroundColor-x1vuwhqn color-x1jsblnb display-x78zum5 alignItems-x6s0dn4 justifyContent-xl56j7k fontSize-xif65rj fontWeight-xk50ysn border-xxk0nts cursor-x1ypdohk opacity-x18uuni6","data-style-src":"TopBar/index.tsx:50"}),{},{onClick:function(){q(function(e){return!e})},children:[((null===(r=G.user)||void 0===r?void 0:r.first_name)||"F").charAt(0).toUpperCase(),((null===(o=G.user)||void 0===o?void 0:o.last_name)||"S").charAt(0).toUpperCase()]})),V&&(0,x.jsx)(h.default,{onClose:function(){return q(!1)}})]})})]}))]}))}E.displayName="TopBar",E.WorkspaceSelector=g.default,E.PlatformSelector=y.default,t.A=E},91649:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(14041),o=n(50324),a=n(9260),i=n(62720),l=n(13571),s=n(55618),c=n(30021),u=n(55436),d=n(89748),f=n(88133),p=n(97475),m=n(39067),g=n.n(m),y=n(24284),h=n(31085);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e){var t,n,m,g,b,v=e.onClose,A=e.id,_=x((0,r.useState)(!1),2),S=_[0],w=_[1],O=x((0,r.useState)(!1),2),j=O[0],k=O[1],E=(0,p.jE)(),N=(0,f.gC)("/conversion/configs/".concat(A),"DELETE");if(!A)return null;var I=(0,f.Ay)("/conversion/configs/".concat(A)),P=I.data;return!I.isLoading&&null!=P&&null!==(t=P.result)&&void 0!==t&&null!==(t=t.conversion_config)&&void 0!==t&&t.type&&A?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(o.A,{initialFormValues:{name:null==P||null===(n=P.result)||void 0===n||null===(n=n.conversion_config)||void 0===n?void 0:n.name,type:null==P||null===(m=P.result)||void 0===m||null===(m=m.conversion_config)||void 0===m?void 0:m.type,whitelisting_enabled:null==P||null===(g=P.result)||void 0===g||null===(g=g.conversion_config)||void 0===g?void 0:g.whitelisting_enabled,workspace_ids:[],optional_parameters:{order_id:null==P||null===(b=P.result)||void 0===b||null===(b=b.conversion_config)||void 0===b||null===(b=b.optional_parameters)||void 0===b?void 0:b.order_id}},submitUrl:"/conversion/configs/".concat(A),submitType:"PUT",queriesToInvalidate:["/conversion/configs"],onSuccess:function(){v(),E.invalidateQueries({queryKey:["/conversion/configs"]}),E.invalidateQueries({queryKey:["/conversion/configs/".concat(A)]})},children:[(0,h.jsx)(i.default,{label:(0,d.A)("Name"),name:"name",type:"text","data-testid":"script-name-input",required:!0}),(0,h.jsx)(s.default.Section,{heading:(0,d.A)("Conversion type"),subtitle:(0,d.A)("Can only be set when creating a new conversion"),children:(0,h.jsxs)(i.default.OptionGroup,{name:"type",className:"mb-5",children:[(0,h.jsxs)("div",{className:"v-align-center mb-3",children:[(0,h.jsx)(i.default.Radio,{value:"PURCHASE",disabled:!0,"data-testid":"conversion-type-purchase-radio",ariaLabel:(0,d.A)("Purchase")}),(0,h.jsxs)("div",{className:"ml-3",children:[(0,h.jsx)(c.default,{preset:"formSectionTitle",children:(0,d.A)("Purchase")}),(0,h.jsx)(c.default,{preset:"formSectionSubTitle",children:(0,d.A)("A conversion that results in a purchase, money exchanged")})]})]}),(0,h.jsxs)("div",{className:"v-align-center mb-3",children:[(0,h.jsx)(i.default.Radio,{disabled:!0,value:"NON_PURCHASE","data-testid":"conversion-type-lead-radio",ariaLabel:(0,d.A)("Lead")}),(0,h.jsxs)("div",{className:"ml-3",children:[(0,h.jsx)(c.default,{preset:"formSectionTitle",children:(0,d.A)("Lead")}),(0,h.jsx)(c.default,{preset:"formSectionSubTitle",children:(0,d.A)("A conversion that results in a form being filled or an email signup etc")})]})]})]})}),(0,h.jsx)(s.default.Section,{heading:(0,d.A)("Whitelisting"),subtitle:(0,d.A)("Select protection status"),children:(0,h.jsxs)(i.default.OptionGroup,{name:"whitelisting_enabled",className:"mb-5",children:[(0,h.jsxs)("div",{className:"v-align-center mb-3",children:[(0,h.jsx)(i.default.Radio,{value:1,"data-testid":"conversion-whitelisting_enabled-whitelist-radio",ariaLabel:(0,d.A)("Whitelist")}),(0,h.jsxs)("div",{className:"ml-3",children:[(0,h.jsx)(c.default,{preset:"formSectionTitle",children:(0,d.A)("Whitelist")}),(0,h.jsx)(c.default,{preset:"formSectionSubTitle",children:(0,d.A)("An ip that has been converted will be marked as a valid click for any future clicks")})]})]}),(0,h.jsxs)("div",{className:"v-align-center mb-3",children:[(0,h.jsx)(i.default.Radio,{value:0,"data-testid":"conversion-whitelisting_enabled-monitor-radio",ariaLabel:(0,d.A)("Monitor")}),(0,h.jsxs)("div",{className:"ml-3",children:[(0,h.jsx)(c.default,{preset:"formSectionTitle",children:(0,d.A)("Monitor")}),(0,h.jsx)(c.default,{preset:"formSectionSubTitle",children:(0,d.A)("No whitelisting behaviour, just keeps track of conversions")})]})]})]})}),(0,h.jsx)(s.default.Section,{heading:(0,d.A)("Parameter (optional)"),subtitle:(0,d.A)("A parameter is a custom data value you enable to capture additional details about the conversion event"),children:(0,h.jsx)(i.default.Toggle,{name:"optional_parameters.order_id"})}),(0,h.jsxs)("div",{className:"distribute-space-between",children:[(0,h.jsx)(a.default,{preset:"destructive",className:"mt-4",onClick:function(){return w(!0)},iconLeft:["far","trash"],"data-testid":"start-delete-script-button",children:(0,d.A)("Delete Permanently")}),(0,h.jsxs)("div",{className:"h-align-right",children:[(0,h.jsx)(a.default,{className:"mt-4",preset:"outline",onClick:function(){return v()},"data-testid":"cancel-script-button",children:(0,d.A)("Cancel")}),(0,h.jsx)(a.default,{type:"submit",preset:"primary",className:"mt-4 ml-3","data-testid":"editWorksp
2aceScriptButton",children:(0,d.A)("Save")})]})]})]}),(0,h.jsxs)(l.default,{open:S,onClose:function(){return w(!1)},children:[(0,h.jsx)(l.default.Header,{title:(0,d.A)("Are you sure you want to delete this script?")}),(0,h.jsx)(l.default.Content,{children:(0,h.jsx)("p",{children:(0,d.A)("Click OK to continue or cancel to avoid deletion")})}),(0,h.jsxs)(l.default.Actions,{children:[(0,h.jsx)(a.default,{preset:"outline",onClick:function(){return w(!1)},children:"Cancel"}),(0,h.jsx)(a.default,{onClick:function(){return k(!0),void N.mutate({},{onSuccess:function(){(0,y.A)((0,d.A)("The Script was deleted"),"success"),E.invalidateQueries({queryKey:["/conversion/configs"]}),w(!1),k(!1),v()},onError:function(){k(!1),(0,y.A)((0,d.A)("Something went wrong while trying to delete your script"),"error")}})},disabled:j,loading:j,"data-testid":"confirm-delete-script-button",children:"OK"})]})]})]}):(0,h.jsx)(u.default,{loading:!0,preset:"dark",size:"responsive"})}v.propTypes={onClose:g().func.isRequired,id:g().string.isRequired};const A=v},91722:(e,t,n)=>{"use strict";e.exports=n.p+"219f9b99a535494a7bee.svg"},91779:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(13571),s=n(76449),c=n(1781),u=n(62683),d=n(28426),f=n(79135),p=n(27805),m=n(89748),g=n(62161),y=n(36990),h=n(93033),x=n(73657),b=n(99018),v=n(19863),A=n(6387),_=n(92523),S=n(31085);function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j=(0,b.createUseStyles)(function(e){return{receivingClicksContainer:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.green[600]),display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.green[600]},notReceivingClicksContainer:{borderRadius:"50%",width:24,height:24,border:"solid 2px ".concat(e.colors.neutralBorderStrong),display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.neutralBorderStrong},protectedBadge:{borderRadius:"50%",width:24,height:24,backgroundColor:e.colors.successBackground,display:"flex",justifyContent:"center",alignItems:"center",marginRight:12,fontSize:15,color:e.colors.green[600],"&.warning":{backgroundColor:"unset",border:"solid 1px ".concat(e.colors.grey[200]),color:e.colors.grey[200]}},monitoredBadge:{borderRadius:"50%",width:24,height:24,backgroundColor:e.colors.purple[200],display:"flex",justifyContent:"center",alignItems:"center",marginRight:12,marginLeft:24,fontSize:12,color:e.colors.purple[600]},warningBadge:{borderRadius:"50%",width:24,height:24,border:"solid 2px",borderColor:e.colors.red[200],display:"flex",justifyContent:"center",alignItems:"center",marginRight:12,marginLeft:24,fontSize:12,color:e.colors.red[600]},dropOption:{opacity:.2,cursor:"pointer","&.active":{opacity:1,cursor:"default",pointerEvents:"none"},"&:hover":{opacity:.6,"&.active":{opacity:1,cursor:"default",pointerEvents:"none"}}},campaignsLink:{color:e.colors.neutralTextWeak,opacity:.7,fontSize:20,marginRight:12,"&:hover":{opacity:1,cursor:"pointer"}}}});function k(e){var t,n,o,a=e.data,O=void 0===a?{}:a,k=e.isLoading,E=void 0!==k&&k,N=e.handlePagination,I=void 0===N?function(){}:N,P=e.filters,T=void 0===P?{}:P,C=e.onFilterChange,R=void 0===C?function(){}:C,M=e.updateSelectedAccounts,L=void 0===M?function(){}:M,D=e.handleUpdateAllState,B=void 0===D?function(){}:D,U=e.isUpdating,F=j(),G=w((0,r.useState)(-1),2),W=G[0],z=G[1],V=w((0,r.useState)(-1),2),q=V[0],K=V[1],H=w((0,r.useState)(-1),2),Y=H[0],$=H[1],Z=w((0,r.useState)(-1),2),X=Z[0],J=Z[1],Q=w((0,r.useState)([]),2),ee=Q[0],te=Q[1],ne=[{label:(0,m.A)("Account Name"),name:"accountName",type:"radio",options:[{label:(0,m.A)("Contains"),name:"contains",type:"text"}]},{label:(0,m.A)("Account ID"),name:"accountId",type:"radio",options:[{label:(0,m.A)("Starts With"),name:"startsWith",type:"text"}]},{label:(0,m.A)("Protection Status"),name:"accountStatus",type:"checkbox",options:[{label:(0,m.A)("Include Protected"),shortLabel:(0,m.A)("Protected"),type:"checkbox",name:"include_protected"},{label:(0,m.A)("Include Monitored"),shortLabel:(0,m.A)("Monitored"),type:"checkbox",name:"include_monitored"},{label:(0,m.A)("Include Disabled"),shortLabel:(0,m.A)("Disabled"),type:"checkbox",name:"include_disabled"}]},{label:(0,m.A)("Clicks Received"),name:"clicksReceived",type:"checkbox",options:[{label:(0,m.A)("Clicks Received"),shortLabel:(0,m.A)("true"),type:"checkbox",name:"clicks_re
2ceived"}]}];function re(e){return 2===e?"Protected":1===e?"Monitored":"Disabled"}return(0,S.jsxs)(d.A.Page,{type:"main",children:[(0,S.jsx)(p.default,{title:(0,m.A)("Google Ads Accounts"),text:(0,m.A)("Set the protection status of your Google Ads Accounts"),contentRight:(0,S.jsxs)(S.Fragment,{children:[" ",ee.length>0&&(0,S.jsx)(i.default,{size:"md",onClick:function(){return K(2)},disabled:U,"data-testid":"update-selected-accounts-button",children:(0,m.A)("Update :count Selected Account:s",{s:ee.length>1?"s":"",count:ee.length})}),(0,S.jsx)(i.default,{className:"ml-3",size:"md",onClick:function(){return $(2)},disabled:U,"data-testid":"update-all-accounts-button",children:(0,m.A)("Update All Accounts")})]})}),(0,S.jsxs)("div",{className:"flex distribute-space-between mb-4",children:[(0,S.jsx)(s.default,{filterConfig:ne,initialValues:T,onFilterChange:R}),(0,S.jsx)(_.default,{})]}),(0,S.jsx)(g.A,{rows:null==O?void 0:O.adwords_customers,isLoading:E,totalResults:null==O||null===(t=O.pagination)||void 0===t?void 0:t.total,totalItems:null==O||null===(n=O.pagination)||void 0===n?void 0:n.total,totalPages:null==O||null===(o=O.pagination)||void 0===o?void 0:o.last_page,pageNumber:T.page,handlePagination:I,limit:T.limit,isSelectable:!0,onSelectedRows:te,leftPinnedColumns:1,children:function(e){var t;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("thead",{children:(0,S.jsxs)("tr",{children:[(0,S.jsx)("th",{children:(0,m.A)("Protection")}),(0,S.jsxs)("th",{children:[(0,m.A)("Account Name"),(0,S.jsx)(y.A,{header:!0,groupedCols:!0,children:(0,m.A)("Account ID")})]}),(0,S.jsxs)("th",{children:[(0,m.A)("Clicks"),(0,S.jsx)("br",{}),(0,m.A)("Received")]}),(0,S.jsxs)("th",{"data-tooltip":(0,m.A)("Estimated based on our click data combined with your latest CPC values."),children:[(0,m.A)("Approx"),(0,S.jsx)("br",{}),(0,m.A)("Spend")]}),(0,S.jsx)("th",{children:(0,m.A)("Campaigns")}),(0,S.jsx)("td",{})]})}),(0,S.jsxs)("tbody",{children:[(0,S.jsx)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col2"),children:(0,S.jsx)(A.A,{account:e,disabled:U,id:"row-".concat(null==e?void 0:e.aw_id,"-account-protection-toggle"),noOfRows:null==O||null===(t=O.adwords_customers)||void 0===t?void 0:t.length,thisRow:(Array.isArray(null==O?void 0:O.adwords_customers)?O.adwords_customers.indexOf(e):-1)+1||1})}),(0,S.jsxs)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col1"),children:[null==e?void 0:e.descriptive_name,(0,S.jsx)(y.A,{groupedCols:!0,children:null==e?void 0:e.aw_id})]}),(0,S.jsxs)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col3"),children:[(null==e?void 0:e.clicks_total)>0&&(0,S.jsx)("div",{className:F.receivingClicksContainer,"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-clicks-received-badge"),children:(0,S.jsx)(f.default,{name:"check"})}),0===(null==e?void 0:e.clicks_total)&&(0,S.jsx)("div",{className:F.notReceivingClicksContainer,"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-clicks-not-received-badge"),children:(0,S.jsx)(f.default,{name:"dash"})})]}),(0,S.jsxs)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col4"),children:[null==e?void 0:e.analytics.estimated_spend.currency_symbol,(0,v.m)(null==e?void 0:e.analytics.estimated_spend.amount)]}),(0,S.jsx)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col5"),children:(0,S.jsxs)("div",{className:"flex",children:[(0,S.jsx)("div",{className:(0,b.classNames)(F.protectedBadge,0===(null==e?void 0:e.protection_enabled)&&(null==e?void 0:e.campaigns.protected_count)>0&&"warning"),"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col4-protected-badge"),children:(0,S.jsx)(f.default,{name:["far","shield-check"]})}),null==e?void 0:e.campaigns.protected_count,(0,S.jsx)("div",{className:F.monitoredBadge,"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col4-monitored-badge"),children:(0,S.jsx)(f.default,{name:["far","wave-pulse"]})}),null==e?void 0:e.campaigns.monitored_count,0===(null==e?void 0:e.protection_enabled)&&(null==e?void 0:e.campaigns.protected_count)>0&&(0,S.jsx)(c.default,{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-protection-warning-tooltip"),heading:(0,m.A)("Warning"),content:(0,m.A)("Because this account is not protected, there can be no protection of any of its campaigns. You need to set the account to protected if you want to protect any of its campagins."),children:(0,S.jsx)("div",{className:F.warningBadge,"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-protection-warning-badge"),children:(0,S.jsx)(f.default,{name:"exclamation"})})})]})}),(0,S.jsx)("td",{"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-col6"),"data-align":"right",children:(0,S.jsx)(c.default,{content:(0,m.A)("View Campaigns"),
2children:(0,S.jsx)(i.default,{preset:"outline",size:"sm",as:x.Link,to:"/ads-account-management/campaigns?ac=".concat(null==e?void 0:e.aw_id),state:{rowId:null==e?void 0:e.id,page:T.page,clickType:T.clickType},"aria-label":(0,m.A)("View Campaigns"),"data-testid":"row-".concat(null==e?void 0:e.aw_id,"-view-campaigns-button"),iconLeft:["far","list"],style:{width:"fit-content"}})})})]})]})}}),(0,S.jsxs)(l.default,{open:-1!==q,onClose:function(){return K(-1)},children:[(0,S.jsx)(l.default.Header,{title:(0,m.A)("Set the protection of status of :count selected account:s to :status",{count:ee.length,status:re(q),s:ee.length>1?"s":""})}),(0,S.jsx)(l.default.Content,{children:(0,S.jsxs)("div",{className:"flex direction-column",children:[(0,S.jsx)(h.A,{isNotTrialStatus:!0,orIsImpersonating:!0,children:(0,S.jsx)("button",{type:"button","data-testid":"selected-accounts-to-protected-button",className:(0,b.classNames)(F.dropOption,2===q&&"active"),onClick:function(){return K(2)},children:(0,S.jsx)(u.A,{status:2,className:"mb-2"})})}),(0,S.jsx)("button",{type:"button","data-testid":"selected-accounts-to-monitored-button",className:(0,b.classNames)(F.dropOption,1===q&&"active"),onClick:function(){return K(1)},children:(0,S.jsx)(u.A,{status:1,className:"mb-2"})}),(0,S.jsx)("button",{type:"button","data-testid":"selected-accounts-to-disabled-button",className:(0,b.classNames)(F.dropOption,0===q&&"active"),onClick:function(){return K(0)},children:(0,S.jsx)(u.A,{status:0})})]})}),(0,S.jsxs)(l.default.Actions,{children:[(0,S.jsx)(i.default,{preset:"outline",onClick:function(){K(-1)},children:(0,m.A)("Cancel")}),(0,S.jsx)(i.default,{onClick:function(){z(q),K(-1)},"data-testid":"update-selected-accounts-continue-button",children:(0,m.A)("Continue")})]})]}),(0,S.jsxs)(l.default,{open:-1!==W,onClose:function(){return z(-1)},children:[(0,S.jsx)(l.default.Header,{title:(0,m.A)("Do you want to continue?")}),(0,S.jsx)(l.default.Content,{children:(0,m.A)("Are you sure you want to do this. Setting the protection status of an account will also set the same status on all of its campaigns.")}),(0,S.jsxs)(l.default.Actions,{children:[(0,S.jsx)(i.default,{preset:"outline",onClick:function(){z(-1)},children:(0,m.A)("Cancel")}),(0,S.jsx)(i.default,{onClick:function(){return function(){var e=W;z(-1);var t={};2===e&&(t.monitoring_enabled=!0,t.protection_enabled=!0),1===e&&(t.monitoring_enabled=!0,t.protection_enabled=!1),0===e&&(t.monitoring_enabled=!1,t.protection_enabled=!1),t.awIds=ee.map(function(e){return e.aw_id}),L(t)}()},"data-testid":"update-selected-accounts-confirm-button",children:(0,m.A)("Continue")})]})]}),(0,S.jsxs)(l.default,{open:-1!==Y,onClose:function(){return $(-1)},children:[(0,S.jsx)(l.default.Header,{title:(0,m.A)("Set the protection status of all accounts and campaigns to :status",{status:re(Y)})}),(0,S.jsx)(l.default.Content,{children:(0,S.jsxs)("div",{className:"flex direction-column",children:[(0,S.jsx)(h.A,{isNotTrialStatus:!0,orIsImpersonating:!0,children:(0,S.jsx)("button",{type:"button",className:(0,b.classNames)(F.dropOption,2===Y&&"active"),onClick:function(){return $(2)},"data-testid":"all-accounts-to-protected-button",children:(0,S.jsx)(u.A,{status:2,className:"mb-2"})})}),(0,S.jsx)("button",{type:"button",className:(0,b.classNames)(F.dropOption,1===Y&&"active"),onClick:function(){return $(1)},"data-testid":"all-accounts-to-monitored-button",children:(0,S.jsx)(u.A,{status:1,className:"mb-2"})}),(0,S.jsx)("button",{type:"button",className:(0,b.classNames)(F.dropOption,0===Y&&"active"),onClick:function(){return $(0)},"data-testid":"all-accounts-to-disabled-button",children:(0,S.jsx)(u.A,{status:0,className:""})})]})}),(0,S.jsxs)(l.default.Actions,{children:[(0,S.jsx)(i.default,{"data-testid":"update-all-accounts-cancel-continue-button",onClick:function(){$(-1)},preset:"outline",children:(0,m.A)("Cancel")}),(0,S.jsx)(i.default,{onClick:function(){J(Y),$(-1)},"data-testid":"update-all-accounts-continue-button",children:(0,m.A)("Continue")})]})]}),(0,S.jsxs)(l.default,{open:-1!==X,onClose:function(){return J(-1)},children:[(0,S.jsx)(l.default.Header,{title:(0,m.A)("Do you want to continue?")}),(0,S.jsx)(l.default.Content,{children:(0,m.A)("Are you sure you want to do this. This will set the protection status of all accounts and campaigns within this workspace.")}),(0,S.jsxs)(l.default.Actions,{children:[(0,S.jsx)(i.default,{onClick:function(){J(-1)},"data-testid":"update-all-accounts-cancel-confirm-button",preset:"outline",children:(0,m.A)("Cancel")}),(0,S.jsx)(i.default,{onClick:function(){return function(){var e=X;J(-1);var t={};2===e&&(t.monitoring_enabled=!0,t.protection_enabled=!0),1===e&&(t.monitoring_enabled=!0,t.protection_enabled=!1),0===e&&(t.monitoring_enabled=!1,t.protection_enabled=!1),B(t)}()},"data-testid":"update-all-accounts-confirm-button",children:(0,m.A)("Continue")})]})]})]})}k.propTypes={data:a().object,isLoading:a().bool.isRequired,handlePagination:a().func.isRequired,filters:a().object.isRequired,onFilterChange:a().func,updateSelectedAccounts:a().func,handleUpdateAllState:a().func,isUpdating:a().bool};const E=k}
2,91788:(e,t,n)=>{"use strict";t.A=void 0;var r=l(n(25751)),o=l(n(14041)),a=l(n(21100)),i=n(31085);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var h=r.default;h(".height-x5yr21d{height:100%}",4e3),h(".width-xh8yej3{width:100%}",4e3),h(".backgroundColor-x1ex0zz8{background-color:var(--gray25-x1nef6k3)}",3e3),h(".borderRadius-x1rf2zri{border-radius:var(--1-xubceuw)}",2e3),h(".padding-xqhnxqw{padding:var(--1-xubceuw)}",1e3),h(".textAlign-x2b8uid{text-align:center}",3e3),h(".color-x1miz5bj{color:var(--gray300-x1xk3734)}",3e3);var x=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=g(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}(this,t,[e])).state={hasError:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,o=[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}],(r=[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"render",value:function(){var e=this.props,t=e.style,n=void 0===t?{}:t,r=e.children,o=void 0===r?null:r;return this.state.hasError?(0,i.jsx)("div",u(u({},{className:"height-x5yr21d width-xh8yej3 backgroundColor-x1ex0zz8 borderRadius-x1rf2zri padding-xqhnxqw textAlign-x2b8uid color-x1miz5bj","data-style-src":"ErrorBoundary/index.tsx:16"}),{},{style:n,children:"Unavailable"})):o}}])&&f(n.prototype,r),o&&f(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(o.default.Component);x.ThrowError=a.default,t.A=x},91841:(e,t,n)=>{"use strict";n.d(t,{A:()=>d}),n(14041);var r=n(28426),o=n(27805),a=n(89748),i=n(65648),l=n(20627),s=n(38513),c=n(13738),u=n(31085);function d(){return(0,u.jsxs)(r.A.Page,{type:"overview",children:[(0,u.jsx)(o.default,{type:"overview",title:(0,a.A)("Affiliate Analytics"),text:(0,a.A)("Monitor and analyse affiliate traffic quality")}
2),(0,u.jsx)(i.A,{}),(0,u.jsx)(l.A,{}),(0,u.jsx)(s.A,{}),(0,u.jsx)(c.A,{})]})}},92136:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(25751))&&r.__esModule?r:{default:r},a=n(14041),i=n(45365),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=o.default;function p(e){var t=e.item;return(0,l.jsx)("div",u(u({},{className:"paddingTop-x1lkfzny paddingRight-xaee0q9 paddingBottom-x1cck5d2 paddingLeft-xgcvhn7","data-style-src":"Item/index.tsx:15"}),{},{"data-testid":"grouped-bar-chart-list-item",children:(0,l.jsxs)(i.Grid.Row,{children:[(0,l.jsx)(i.Grid.Col,{children:(0,l.jsx)(i.Text,{preset:"text",children:null==t?void 0:t.name})}),(0,l.jsx)(i.Grid.Col,{children:(0,l.jsxs)("div",u(u({},{className:"display-x78zum5 gap-x6r5le4 justifyContent-x13a6bvl","data-style-src":"Item/index.tsx:21"}),{},{children:[(0,l.jsx)(i.Badge,{colourName:"primary",children:t.value1.toFixed(2)}),(0,l.jsx)(i.Badge,{colourName:"error",children:t.value2.toFixed(2)})]}))})]})}))}f(".paddingTop-x1lkfzny{padding-top:var(--2-x17wbp3g)}",4e3),f(".paddingRight-xaee0q9{padding-right:var(--3-xyfcdu2)}",4e3),f(".paddingBottom-x1cck5d2{padding-bottom:var(--2-x17wbp3g)}",4e3),f(".paddingLeft-xgcvhn7{padding-left:var(--4-xzs2jkd)}",4e3),f(".display-x78zum5{display:flex}",3e3),f(".gap-x6r5le4{gap:var(--2-x17wbp3g)}",2e3),f(".justifyContent-x13a6bvl{justify-content:flex-end}",3e3),t.default=(0,a.forwardRef)(p)},92201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(25751)),o=n(14041),a=l(n(62705)),i=n(31085);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=r.default;f(".maxHeight-x1rq5m6k{max-height:500px}",4e3),f(".overflow-xysyzu8{overflow:auto}",2e3),t.default=function(e){var t=e.data,n=e.selected,r=(0,o.useRef)([]);return(0,o.useEffect)(function(){"number"==typeof n&&r.current[n]&&r.current[n].scrollIntoView({behavior:"smooth",block:"nearest"})},[n]),(0,i.jsx)("div",u(u({},{className:"maxHeight-x1rq5m6k overflow-xysyzu8","data-style-src":"Sidebar/index.tsx:18"}),{},{children:t.map(function(e,t){return(0,i.jsx)(a.default,{item:e,ref:function(e){r.current[t]=e},index:t,selected:n},t)})}))}},92275:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(94370),o=n(7450),a=n(38152),i=n(43705);const l=[r.A,o.A,a.A,i.A]},92458:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(window.atob(t).split("").map(function(e){return"%".concat("00".concat(e.charCodeAt(0).toString(16)).slice(-2))}).join(""));return JSON.parse(n)}}
2,92523:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(14041),o=n(39067),a=n.n(o),i=n(39665),l=n(62720),s=n(34406),c=n(80111),u=n(31085);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e){var t,n=e.className,o=void 0===n?null:n,a=e.maxRangeDays,d=void 0===a?0:a,f=e.ranges,m=void 0===f?["yesterday","7d","30d","90d","prevMonth","customMonth","customRange"]:f,y=g((0,c.A)(),2),h=y[0],x=y[1],b=(0,i.a)(new Date(1e3*h.dataFilterDates.min.localTimestamp)),v=(0,i.a)(new Date(1e3*h.dataFilterDates.max.localTimestamp)),A=g((0,r.useState)([b,v,null===(t=h.dataFilterDates)||void 0===t?void 0:t.selected]),2),_=A[0],S=A[1];return(0,r.useEffect)(function(){x(p(p({},h),{},{dataFilterDates:{interval:"day",min:{localTimestamp:Math.floor(_[0].valueOf()/1e3),timestamp:Math.floor((0,s.Ay)(_[0]).valueOf()/1e3),date:_[0]},max:{localTimestamp:Math.floor(_[1].valueOf()/1e3),timestamp:Math.floor((0,s.Ay)(_[1]).valueOf()/1e3),date:_[1]},preset:null,selected:_[2]}}))},[_]),(0,u.jsx)("div",{"data-testid":"globalDates",className:o,children:(0,u.jsx)(l.default.DatePicker,{value:[b,v],onFormValue:function(e,t){return S([t[0],t[1],e])},selectedOption:_[2],maxRangeDays:d,ranges:m})})}h.propTypes={className:a().string,maxRangeDays:a().number,ranges:a().array};const x=h},92690:(e,t,n)=>{"use strict";n.d(t,{A:()=>x}),n(14041);var r=n(76449),o=n(28426),a=n(27805),i=n(89748),l=n(62161),s=n(36990),c=n(19863),u=n(40699),d=n(73657),f=n(93033),p=n(99226),m=n(27333),g=n(92523),y=n(41574),h=n(31085);function x(){var e,t,n,x,b="TRIAL"===(0,p.A)().lunioStatus,v=(0,m.R7)({sortKey:"percent_invalid"}),A=v.filters,_=v.handlePagination,S=v.setFilters,w=v.handleSort,O=(0,m.st)("/affiliates/clicks",A,function(e){var t="&group_by=campaign";return e["campaign.contains"]&&(t+="&campaign_contains=".concat(e["campaign.contains"])),t}),j=O.data,k=O.isLoading,E=[{label:(0,i.A)("Campaign"),name:"campaign",type:"radio",options:[{label:(0,i.A)("contains"),name:"contains",type:"text"}]}];return(0,h.jsxs)(o.A.Page,{type:"overview",children:[(0,h.jsx)(a.default,{type:"overview",title:(0,i.A)("Affiliate Campaigns Analytics"),text:(0,i.A)("Monitor affiliate traffic quality across all of your campaigns"),
2contentRight:(0,h.jsx)(y.A,{filters:A,exportType:"campaign",exportCategory:"analytics",exportLevel:"summary"})}),(0,h.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,h.jsx)("div",{className:"left",children:(0,h.jsx)(r.default,{filterConfig:E,initialValues:A,onFilterChange:S})}),(0,h.jsx)(g.default,{})]}),(0,h.jsx)(l.A,{rows:null==j||null===(e=j.result)||void 0===e?void 0:e.data,isLoading:k,totalResults:null==j||null===(t=j.pagination)||void 0===t?void 0:t.total,totalPages:null==j||null===(n=j.pagination)||void 0===n?void 0:n.last_page,totalItems:null==j||null===(x=j.pagination)||void 0===x?void 0:x.total,pageNumber:A.page,handlePagination:_,handleSorting:w,sorting:{sortKey:A.sortKey,sortOrder:A.sortOrder},limit:A.limit,leftPinnedColumns:1,"data-testid":"affiliate-campaigns-analytics-table",children:function(e){var t,n,r,o;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{children:[(0,h.jsx)("th",{"data-sortable-id":"campaign",children:(0,i.A)("Campaigns")}),(0,h.jsx)("th",{"data-sortable-id":"total","data-tooltip":(0,i.A)("The total number of clicks recorded for the selected period. Includes valid, suspicious and Invalid Clicks (SIVT). Excludes GIVT to stay aligned with how ad platforms report click volume."),children:(0,i.A)("Total Clicks")}),(0,h.jsx)("th",{"data-tooltip":(0,i.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks."),children:(0,i.A)("All Tracked Clicks")}),(0,h.jsx)("th",{"data-sortable-id":"fraudulent","data-tooltip":(0,i.A)("Sophisticated Invalid Traffic (SIVT) detected by Lunio's model. Unlike GIVT, SIVT involves harder-to-detect invalid behavior such as ad fraud and bot activity that mimics real users."),children:(0,i.A)("SIVT Clicks")}),(0,h.jsx)(f.A,{AND:!b,children:(0,h.jsx)("th",{"data-testid":"givt","data-tooltip":(0,i.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction."),children:(0,i.A)("GIVT Clicks")})}),(0,h.jsx)("th",{"data-tooltip":(0,i.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT."),children:(0,i.A)("Total IVT")}),(0,h.jsx)("th",{"data-sortable-id":"percent_invalid",children:(0,i.A)("IVT%")}),(0,h.jsx)("th",{"data-tooltip":(0,i.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT)."),children:(0,i.A)("Total IVT %")}),(0,h.jsx)("th",{children:(0,i.A)("Top Reasons")}),(0,h.jsx)("th",{children:(0,i.A)("Occurrences")})]})}),(0,h.jsxs)("tbody",{children:[(0,h.jsxs)("td",{children:[(0,h.jsx)(d.Link,{to:"/analytics/affiliate/campaigns/".concat(null==e?void 0:e.campaign,"?network=").concat(null==e?void 0:e.network,"&partner=").concat(null==e?void 0:e.partner),children:null==e?void 0:e.campaign}),(0,h.jsxs)(s.A,{header:!0,children:[null==e?void 0:e.network," ","|"," ",null==e?void 0:e.partner]})]}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_total)}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.all_tracked_clicks)}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_fraudulent)}),(0,h.jsx)(f.A,{AND:!b,children:(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.clicks_general_invalid)})}),(0,h.jsx)("td",{children:(0,c.m)(null==e?void 0:e.total_ivt)}),(0,h.jsxs)("td",{children:[null==e?void 0:e.percent_invalid,"%"]}),(0,h.jsxs)("td",{children:[null==e?void 0:e.total_ivt_percent,"%"]}),(0,h.jsxs)("td",{children:[null===(t=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===t?void 0:t.topReason.name,(0,h.jsx)(s.A,{children:null===(n=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===n?void 0:n.secondReason.name})]}),(0,h.jsxs)("td",{children:[null===(r=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===r?void 0:r.topReason.value,(0,h.jsx)(s.A,{children:null===(o=(0,u.Bn)(null==e?void 0:e.invalid_labels_counts,"analytics"))||void 0===o?void 0:o.secondReason.value})]})]})]})}})]})}},92718:(e,t,n)=>{"use strict";n.d(t,{A:()=>h}),n(14041);var r=n(31623),o=n(36537),a=n(19559),i=n(89414),l=n(90318),s=n(67218),c=n(37561),u=n(66164),d=n(94943),f=n(89587),p=n(
252569),m=n(6862),g=n(31085);function y(e){var t,n,o,g,y,h=e.state,x=e.children;return(0,r.RH)([[a.A,null!==(t=h.globalFiltersAtom)&&void 0!==t?t:u.A],[i.A,null!==(n=h.permissionsAtom)&&void 0!==n?n:d.A],[l.A,null!==(o=h.platformsAtom)&&void 0!==o?o:f.A],[s.A,null!==(g=h.workspacesAtom)&&void 0!==g?g:p.A],[c.A,null!==(y=h.syncAtom)&&void 0!==y?y:m.A]]),x}function h(e){var t=e.state,n=void 0===t?{}:t,r=e.children;return(0,g.jsx)(o.Kq,{children:(0,g.jsx)(y,{state:n,children:r})})}},92820:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={transalteToStatusArray:function(e){var t,n,r=[],o=null===(t=e.options.find(function(e){return"include_protected"===e.name}))||void 0===t?void 0:t.value,a=null===(n=e.options.find(function(e){return"include_monitored"===e.name}))||void 0===n?void 0:n.value;return o&&a&&(r=[1,2]),!o&&a&&(r=[1]),o&&!a&&(r=[2]),"&protection_status=".concat(JSON.stringify(r))},arrayOfNames:function(e){var t=[];return e.options.forEach(function(e){e.value&&t.push(e.name)}),t.length>0?"&".concat(e.queryKey,"=").concat(JSON.stringify(t)):""},singleTextValueRadio:function(e){var t="";return e.options.forEach(function(e){e.value&&(t=e.name)}),t&&e.queryKey?"&".concat(e.queryKey,"=").concat(t):""},textSearch:function(e){var t="";return e.options.forEach(function(n){n.value&&(n.queryKey||e.queryKey)&&(t+="&".concat(n.queryKey||e.queryKey,"=").concat(n.value))}),t},textSearchAsArray:function(e){var t="";return e.options.forEach(function(n){n.value&&(n.queryKey||e.queryKey)&&(t+="&".concat(n.queryKey||e.queryKey,"=").concat(JSON.stringify([n.value])))}),t},twoOptionBinaryCheckbox:function(e){var t=e.options.filter(function(e){return e.value});return 2===t.length||0===t.length?"":"&".concat(e.queryKey,"=").concat(t[0].name===e.options[0].name?1:0)}}},92860:(e,t,n)=>{"use strict";e.exports=n.p+"8e225bb94e130c49e6c3.svg"},93023:(e,t,n)=>{"use strict";e.exports=n.p+"5f089eb2ff6d821cec3f.svg"},93033:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(99226);function o(e){var t=e.platforms,n=void 0===t?[]:t,o=e.integrations,a=void 0===o?[]:o,i=e.integrationsNOT,l=void 0===i?[]:i,s=e.roles,c=void 0===s?[]:s,u=e.accountRoles,d=void 0===u?[]:u,f=e.impersonatingOnly,p=void 0!==f&&f,m=e.orIsImpersonating,g=void 0!==m&&m,y=e.isAllWorksp
2aces,h=void 0!==y&&y,x=e.isNotAllWorkspaces,b=void 0!==x&&x,v=e.isNotTrialStatus,A=void 0!==v&&v,_=e.isGoogle,S=void 0!==_&&_,w=e.isNotGoogle,O=void 0!==w&&w,j=e.isMeta,k=void 0!==j&&j,E=e.isNotMeta,N=void 0!==E&&E,I=e.isAffiliate,P=void 0!==I&&I,T=e.environments,C=void 0===T?[]:T,R=e.featureFlags,M=void 0===R?[]:R,L=e.featureFlagsNOT,D=void 0===L?[]:L,B=e.browserLanguages,U=void 0===B?[]:B,F=e.AND,G=e.OR,W=void 0!==G&&G,z=e.children,V=(0,r.A)(),q=V.isImpersonating,K=V.isAllWorkspaces,H=V.isNotAllWorkspaces,Y=V.allowedPlatforms,$=V.allowedIntegrations,Z=V.allowedRoles,X=V.allowedAccountRoles,J=V.allowedEnvironments,Q=V.allowedFeatureFlags,ee=V.activePlatform,te=V.lunioStatus,ne=void 0===te?"ACTIVE":te,re=V.allowedBrowserLanguages,oe=!0,ae=!0,ie=!0,le=!0,se=!0,ce=!0,ue=!0,de=!0,fe=!0,pe=!0,me=!0,ge=!0,ye=!0,he=!0,xe=!0,be=!0,ve=!0;if(U.length>0&&(ve=re(U)),n.length>0&&"mplat"!==n[0]&&(oe=Y(n)),a.length>0&&(ae=$(a)),l.length>0&&(ie=!$(l)),n.length>0&&"mplat"===n[0]&&(oe=!Y(["google"])),c.length>0||d.length>0){var Ae=c.length>0&&Z(c),_e=d.length>0&&X(d);le=Ae||_e}return p&&(se=q),h&&(ce=K),b&&(ue=H),A&&(de="TRIAL"!==ne),S&&(fe="google"===ee),O&&(pe="google"!==ee),k&&(me="meta"===ee),N&&(ge="meta"!==ee),P&&(ye="affiliate"===ee),C.length>0&&(he=J(C)),M.length>0&&(xe=Q(M)),D.length>0&&(be=!Q(D)),oe&&ae&&ie&&le&&se&&ce&&ue&&de&&fe&&pe&&me&&ge&&ye&&he&&xe&&be&&ve&&(!0===F||null==F)||W||g?z:null}o.displayName="AccessControl";const a=o},93069:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(14041),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),s=n(86957),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=a.default;y(".backgroundColor-x1ex0zz8{background-color:var(--gray25-x1nef6k3)}",3e3),y(".maxWidth-x193iq5w{max-width:100%}",4e3),y(".height-xt7dq6l{height:auto}",4e3),t.A=function(e){var t=e.primaryData,n=e.secondaryData,r=(0,i.useRef)(null);return(0,i.useEffect)(function(){var e,o,a,i;l.select(r.current).selectAll("*").remove();var c=l.select(r.current),u=c.node().clientWidth-70-50,d=t[t.length-1],f=null!==(e=l.min(t,function(e){return e.date}))&&void 0!==e?e:new Date,p=null!==(o=l.max(t,function(e){return e.date}))&&void 0!==o?o:new Date,g=l.scaleTime().domain([f,p]).range([70,410]),y=null!==(a=l.min([].concat(m(t),m(n)),function(e){return e.value}))&&void 0!==a?a:0,h=null!==(i=l.max([].concat(m(t),m(n)),function(e){return e.value}))&&void 0!==i?i:0,x=l.scaleLinear().domain([y,h]).range([290,30]),b=new Date(0,(new Date).getMonth(),(new Date).getDate());b.setHours(0,0,0,0),n.filter(function(e){return e.date<=b}).pop();var v=l.line().x(function(e,n){return g(t[n].date)}).y(function(e){return x(e.value)}).curve(l.curveMonotoneX),A=l.line().x(function(e,n){return g(t[n].date)}).y(function(e){return x(e.value)}).curve(l.curveMonotoneX);c.append("path").datum(n).attr("fill","none").attr("stroke","#F366E0").attr("stroke-width",1.5).attr("d",A);var _=n[n.length-1],S=t[t.length-1];c.append("circle").attr("cx",g(t[n.length-1].date)).attr("cy",x(_.value)).attr("r",6).attr("fill","#F366E0").attr("stroke",s.colourValues.white).attr("stroke-width",2.5),c.append("circle").attr("cx",g(S.date)).attr("cy",x(S.value)).attr("r",6).attr("fill","#575CFC").attr("stroke",s.colourValues.white).attr("stroke-width",2.5),c.append("path").datum(t).attr("fill","none").attr("stroke","#575CFC").attr("stroke-width",2.5).attr("d",v),c.append("circle").attr("cx",g(new Date(0,new Date(d.date).getMonth(),new Date(d.date).getDate()))).attr("cy",x(d.value)).attr("r",6).attr("fill","#575CFC").attr("stroke",s.colourValues.white).attr("stroke-width",2.5);var w=t.length;c.append("g").attr("transform","translate(0, ".concat(290,")")).call(l.axisBottom(g).tickSize(0).tickPadding(20).tickValues(t.filter(function(e,t){return w<10||t%2==0}).map(function(e){return e.date})).tickFormat(l.timeFormat("%d"))).selectAll("text").style("font-size","12px"),c.append("g").attr("transform","translate(".concat(70,", 0)")).call(l.axisLeft(x).tickSize(-u).ticks(4).tickPadding(20)).attr("y",6).selectAll(".tick line").attr("stroke",s.colourValues.gray200).attr("opacity",.2).selectAll("text").style("font-size","12px")},[t,n]),(0,c.jsx)("div",f(f({},{className:"backgroundColor-x1ex0zz8","data-style-src":"Direct/index.tsx:7"}),{},{children:(0,c.jsx)("svg",f({ref:r,viewBox:"0 0 460 340"},{className:"maxWidth-x193iq5w height-xt7dq6l","data-style-src":"Direct/index.tsx:10"}))}))}},93103:(e,t,n)=>{"use strict";e.exports=n.p+"9d9b82c3c441f484754e.svg"},93345:(e,t,n)=>{"use strict";e.exports=n.p+"d3e409f4f7bb7d64eaba.svg"},93351:(e,t,n)=>{"use strict";e.exports=n.p+"09891ba233d9f96069be.svg"},93396:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(14041),o=n(89748),a=n(39067),i=n.n(a),l=n(9260),s=n(72686),c=n(1781),u=n(55618),d=n(30021),f=n(28426),p=n(27805),m=n(62161),g=n(47318),y=n(99018),h=n(93033),x=n(24284),b=n(96405),v=n(98573),A=n(91649),_=n(31085);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O=(0,y.createUseStyles)(function(e){return{conversionApiContainer:{backgroundColor:e.colors.neutralBackgroundMedium,borderRadius:12,padding:12,color:e.colors.neutralTextStrong,fontFamily:e.fonts.text,fontSize:e.fontSizes.sm,fontWeight:e.fontWeights.xs,lineHeight:"20px","& pre":{whiteSpace:"pre-wrap",wordWrap:"break-word"}}}});function j(e){var t=e.data,n=e.conversionApiKey,a=e.isLoading,i=O(),y=S((0,r.useState)(!1),2),w=y[0],j=y[1],k=S((0,r.useState)(!1),2),E=k[0],N=k[1],I=S((0,r.useState)(!1),2),P=I[0],T=I[1],C=S((0,r.useState)(""),2),R=C[0],M=C[1];return(0,_.jsxs)(f.A.Page,{type:"settings",children:[(0,_.jsx)(p.default,{type:"settings",noDivider:!0,title:(0,o.A)("Conversions"),text:(0,o.A)("For accurate conversion tracking, use either a tracking script via a tag manager like Google Tag Manager or the conversion API to send events from your server. Both work across any website or landing page you want to protect."),contentRight:(0,_.jsx)(l.default,{className:"mr-3","data-testid":"add-script-button",onClick:function(){return j(!0)},"aria-label":(0,o.A)("Generate Script"),iconRight:["far","circle-plus"],children:(0,o.A)("Create Conversion")})}),(0,_.jsx)(m.A,{rows:t,isLoading:a,leftPinnedColumns:1,children:function(e){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("thead",{children:(0,_.jsxs)("tr",{children:[(0,_.jsx)("th",{children:(0,o.A)("Conversion name")}),(0,_.jsx)("th",{children:(0,o.A)("ID")}),(0,_.jsx)("th",{children:(0,o.A)("Action")}),(0,_.jsx)("th",{children:(0,o.A)("Type")}),(0,_.jsx)("th",{style:{width:120},children:(0,o.A)("Script")}),(0,_.jsx)("th",{style:{width:80},children:(0,o.A)("Edit")})]})}),(0,_.jsxs)("tbody",{children:[(0,_.jsx)("td",{children:null==e?void 0:e.name}),(0,_.jsx)("td",{children:(0,_.jsx)(g.A,{maxLength:20,clickToCopy:!0,children:null==e?void 0:e.external_id})}),(0,_.jsxs)("td",{children:[0===(null==e?void 0:e.whitelisting_enabled)&&(0,o.A)("Monitored"),1===(null==e?void 0:e.whitelisting_enabled)&&(0,o.A)("Whitelisted")]}),(0,_.jsx)("td",{children:"PURCHASE"===(null==e?void 0:e.type)?(0,o.A)("Purchase"):(0,o.A)("Lead")}),(0,_.jsx)("td",{children:(0,_.jsx)(c.default,{content:(0,o.A)("View Script"),children:(0,_.jsx)(l.default,{preset:"outline",size:"sm",onClick:function(){return T(null==e?void 0:e.id)},"aria-label":(0,o.A)("View Script"),iconLeft:"far fa-eye","data-testid":"view-script-button-".concat(null==e?void 0:e.id),children:(0,o.A)("View")})})}),(0,_.jsx)("td",{style:{width:80,paddingRight:22},children:(0,_.jsx)(c.default,{content:(0,o.A)("Edit Script"),children:(0,_.jsx)(l.default,{preset:"outline",size:"sm",onClick:function(){return N(null==e?void 0:e.id)},"aria-label":(0,o.A)("Edit Script"),iconLeft:"far fa-pencil","data-testid":"edit-script-button-".concat(null==e?void 0:e.id)})})})]})]})}}),(0,_.jsx)(f.A.Spacer,{}),(0,_.jsxs)(h.A,{featureFlags:["CONVERSION_API"],children:[(0,_.jsx)(p.default,{type:"settings",title:(0,o.A)("Conversion API"),"data-testid":"conversion_api",noDivider:!0}),(0,_.jsxs)(s.default,{className:"mb-8",children:[(0,_.jsx)(d.default,{preset:"formSectionTitle",className:"mb-5",children:(0,o.A)("Conversion API Token")}),(0,_.jsxs)(d.default,{preset:"formSectionSubTitle",className:"mb-4",children:[(0,o.A)("Send conversion events directly from your server using Lunioâs Conversion API. View the developer documentation")," ",(0,_.jsx)("a",{href:"https://conversions.lunio.ai/docs",target:"_blank",rel:"noreferrer",children:(0,o.A)("here")}),". ",(0,o.A)("Find out more information")," ",(0,_.jsx)("a",{href:"https://help.lunio.ai/en/articles/11534331-using-the-lunio-conversion-api-for-conversion-tracking",target:"_blank",rel:"noreferrer",children:(0,o.A)("here")}),"."]}),(0,_.jsx)("div",{className:i.conversionApiContainer,children:(0,_.jsx)("pre",{id:"apiKey",children:n})}),(0,_.jsxs)(l.default,{className:"mt-5","data-testid":"copy-apikey-button",onClick:function(){return e=(0,o.A)("API Key copied to clipboard."),t=document.getElementById("apiKey").textContent,navigator.clipboard.writeText(t).then(function(){return(0,x.A)(e,"success")}),void M(!0);var e,t},iconRight:"far fa-clone",children:["mplatTrackingScript"!==R&&(0,o.A)("Copy Conversion API Token"),"mplatTrackingScript"===R&&(0,o.A)("Copied")]})]})]}),(0,_.jsx)(u.default,{open:w,onClose:function(){return j(!1)},heading:(0,o.A)("Create new conversion configuration"),children:w&&(0,_.jsx)(v.A,{onClose:function(){return j(!1)}})}),(0,_.jsx)(u.default,{open:E,onClose:function(){return N(!1)},heading:(0,o.A)("Edit conversion configuration"),children:E&&(0,_.jsx)(A.A,{onClose:function(){return N(!1)},id:E})}),P&&(0,_.jsx)(b.A,{id:P,onClose:function(){return T(null)}})]})}j.propTypes={data:i().array,conversionApiKey:i().string,isLoading:i().bool};const k=j},93418:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(27333),o=n(3448),a=n(31085);
2const i=function(){var e,t=(0,r.R7)({sortKey:"health",sortOrder:"asc"}),n=t.filters,i=t.handlePagination,l=t.setFilters,s=t.handleSort,c="";return null!==(e=n["accounts.selection"])&&void 0!==e&&e.length&&(c+="&df_customer_ids=".concat(JSON.stringify(n["accounts.selection"]))),(0,a.jsx)("div",{children:(0,a.jsx)(o.A,{filters:n,onFilterChange:l,dynamicQuery:c,handlePagination:i,handleSort:s})})}},93513:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=s(n(25751)),a=s(n(42791)),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(31085);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,o.default)(".width-xezivpi{width:max-content}",4e3);var p={intrinsicWidth:{width:"width-xezivpi",$$css:"ClickOutside/index.tsx:6"}};t.default=function(e){var t=e.children,n=e.onClickOutside,r=e.className,o=void 0===r?"":r,s=e.display,c=void 0===s?"block":s,u=i.props(!o&&p.intrinsicWidth),f=o?u.className?"".concat(o," ").concat(u.className):o:u.className;return(0,l.jsx)("div",d(d({},u),{},{className:f,children:(0,l.jsx)(a.default,{onOutsideClick:function(e){document.getElementById("modal-container-open")||n(e)},display:c,children:t})}))}},93568:(e,t,n)=>{"use strict";n.d(t,{A:()=>g}),n(14041);var r=n(51836),o=n(27333),a=n(88133),i=n(97475),l=n(89748),s=n(24284),c=n(66608),u=n(31085);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=function(){var e=(0,r.g)().id,t=(0,i.jE)();function n(){t.invalidateQueries({predicate:function(t){var n,r=null===(n=t.queryKey)||void 0===n?void 0:n[0];
2return"string"==typeof r&&r.startsWith("/workspaces/".concat(e,"/users"))}})}var d=(0,o.R7)({}),f=d.filters,m=d.handlePagination,g=(0,o.st)("/workspaces/".concat(e,"/users"),f,function(){return"&inclusive=true"}),y=g.data,h=g.isLoading,x=(0,o.R7)({}),b=x.filters,v=x.handlePagination,A=(0,o.st)("/workspaces/".concat(e,"/users"),b,function(){return"&inclusive=false"}),_=A.data,S=A.isLoading,w=(0,a.gC)("/workspaces/users","POST");function O(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USER",o=r;"ROOT"!==r&&"ADMIN"!==r&&"OWNER"!==r||(o="EDITOR"),"ENROL"===r&&(o="USER"),w.mutate({user_id:t,workspace_id:parseInt(e,10),role:o},{onSuccess:function(e){n(),(0,s.A)(e.data.message,"success")},onError:function(){(0,s.A)((0,l.A)("It is not possible to add this member to the workspace."),"error")}})}var j=(0,a.gC)("/workspaces/users","DELETE"),k=(0,a.gC)("/users","POST");return(0,u.jsx)(c.A,{data:null==y?void 0:y.result,isLoading:h,handlePagination:m,filters:f,onAddMember:O,onRemoveMember:function(t){j.mutate({user_id:t,workspace_id:parseInt(e,10)},{onSuccess:function(e){n(),(0,s.A)(e.data.message,"success")},onError:function(){(0,s.A)((0,l.A)("It is not possible to remove this member from the workspace."),"error")}})},nonAssignedMembersAPIResponse:null==_?void 0:_.result,filtersNonAssigned:b,isLoadingNonAssigned:S,handlePaginationNonAssigned:v,createUser:function(e){var t=p({},e);k.mutate(p({_method:"PATCH"},t),{onSuccess:function(t){var r;(0,s.A)("".concat(e.email," was created"),"success"),n(),O(null===(r=t.data)||void 0===r||null===(r=r.result)||void 0===r||null===(r=r.user)||void 0===r?void 0:r.id)},onError:function(){(0,s.A)((0,l.A)("Something went wrong!"),"error")}})}})}},93817:(e,t,n)=>{"use strict";t.A=void 0;var r=h(n(25751)),o=n(14041),a=n(73657),i=n(45365),l=n(79405),s=n(34016),c=n(60156),u=n(18141),d=n(45647),f=h(n(52103)),p=h(n(10908)),m=h(n(65053)),g=h(n(61915)),y=n(31085);function h(e){return e&&e.__esModule?e:{default:e}}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A(e,t,n){return(t=function(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=r.default;w(".display-x1rg5ohu{display:inline-block}",3e3),w(".marginRight-x1qx7dla{margin-right:40px}",4e3),w(".marginTop-x1xmf6yo{margin-top:8px}",4e3),w(".maxWidth-xazcve0{max-width:100px}",4e3),w(".overflow-xb3r6kr{overflow:hidden}",2e3),w(".textOverflow-xlyipyv{text-overflow:ellipsis}
2",3e3),w(".maxWidth-x1ncir08{max-width:200px}",4e3),w(".color-x1miz5bj{color:var(--gray300-x1xk3734)}",3e3),t.A=function(){var e,t,n,r=_((0,d.useSyncState)(),1)[0],h=_((0,d.useGlobalFiltersState)(),1)[0],x=_((0,o.useState)(!1),2),b=x[0],A=x[1],S=_((0,o.useState)(""),2),w=S[0],O=S[1],j=_((0,o.useState)([]),2),k=j[0],E=j[1],N=_((0,o.useState)({sortKey:"risk",sortOrder:"asc"}),2),I=N[0],P=N[1],T=_((0,o.useState)(0),2),C=T[0],R=T[1],M=_((0,o.useState)(100),2),L=M[0],D=M[1],B=_((0,o.useState)(null),2),U=B[0],F=B[1],G=_((0,o.useState)(null),2),W=G[0],z=G[1],V=(0,s.useQuery)("/analytics/exclusion-reasons?df_dmin=".concat(null==h||null===(e=h.dataFilterDates)||void 0===e||null===(e=e.min)||void 0===e?void 0:e.timestamp,"&df_dmax=").concat(null==h||null===(t=h.dataFilterDates)||void 0===t||null===(t=t.max)||void 0===t?void 0:t.timestamp,"&sort_by=").concat(I.sortKey,"&sort_order=").concat(I.sortOrder,"&max_risk_score=").concat(L||0,"&min_risk_score=").concat(C||0).concat(U?"&min_clicks=".concat(U):"").concat(W?"&max_clicks=".concat(W):"","&limit=20")),q=V.data,K=V.isLoading;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"flex justify-between mb-8",children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",v(v({},{className:"display-x1rg5ohu marginRight-x1qx7dla marginTop-x1xmf6yo","data-style-src":"IPBehaviour/index.tsx:25"}),{},{children:[(0,y.jsx)(i.Text,{preset:"statHeading",as:"h5",children:(0,c.language)("Risk Score")}),(0,y.jsx)(i.Input,{label:(0,c.language)("Min"),value:C,type:"number",onFormValue:function(e){var t=e.value;return R(t)}}),(0,y.jsx)(i.Input,{label:(0,c.language)("Max"),value:L,type:"number",onFormValue:function(e){var t=e.value;return D(t)}})]})),(0,y.jsxs)("div",v(v({},{className:"display-x1rg5ohu marginRight-x1qx7dla marginTop-x1xmf6yo","data-style-src":"IPBehaviour/index.tsx:25"}),{},{children:[(0,y.jsx)(i.Text,{preset:"statHeading",as:"h5",children:(0,c.language)("Clicks")}),(0,y.jsx)(i.Input,{label:(0,c.language)("Min"),value:U,type:"number",onFormValue:function(e){var t=e.value;return F(t)}}),(0,y.jsx)(i.Input,{label:(0,c.language)("Max"),value:W,type:"number",onFormValue:function(e){var t=e.value;return z(t)}})]}))]}),(0,y.jsx)("div",{className:"v-align-bottom shrink-0",children:(0,y.jsx)(i.Button,{onClick:function(){return P({sortKey:"interesting",sortOrder:"asc"})},iconRight:["far","magic-wand-sparkles"],children:(0,c.language)("Sort by most interesting")})})]}),(0,y.jsx)(i.Text,{preset:"statHeading",as:"h1",className:"mt-2",children:"IP Behaviour"}),(0,y.jsx)(l.Table,{rows:null==q||null===(n=q.result)||void 0===n?void 0:n.data,isLoading:K,className:"mt-8",handleSorting:P,leftPinnedColumns:1,children:function(e){var t,n;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:(0,c.language)("IP Address")}),(0,y.jsx)("th",{}),(0,y.jsx)("th",{children:(0,c.language)("IP Network")}),(0,y.jsx)("th",{children:(0,c.language)("ISPs")}),(0,y.jsx)("th",{children:(0,c.language)("IP Classification")}),(0,y.jsx)("th",{"data-sortable-id":"clicks",children:(0,c.language)("Clicks")}),(0,y.jsx)("th",{children:(0,c.language)("Reasons")}),(0,y.jsxs)("th",{"data-sortable-id":"risk",children:[(0,c.language)("Risk Score")," ","%"]}),!0!==(null==r?void 0:r.user.obfuscate)&&(0,y.jsx)("th",{children:(0,c.language)("Audit Trail")}),!0===(null==r?void 0:r.user.obfuscate)&&(0,y.jsx)("th",v(v({},{className:"color-x1miz5bj","data-style-src":"IPBehaviour/index.tsx:40"}),{},{children:(0,y.jsx)(i.ToolTip,{content:(0,c.language)("Audit trail feature not available with obfuscated IPs"),children:(0,c.language)("Audit Trail")})}))]})}),(0,y.jsxs)("tbody",{children:[(0,y.jsx)("td",{children:(0,y.jsx)(i.ToolTip,{content:null==e?void 0:e.ip,children:(0,y.jsx)("div",v(v({},{className:"maxWidth-x1ncir08 overflow-xb3r6kr textOverflow-xlyipyv","data-style-src":"IPBehaviour/index.tsx:35"}),{},{children:null==e?void 0:e.ip}))})}),(0,y.jsx)("td",{style:{minWidth:74},children:Boolean(null==e?void 0:e.ip_country)&&(0,y.jsx)(i.CountryIcon,{countryCode:null==e?void 0:e.ip_country})}),(0,y.jsx)("td",{children:null==e?void 0:e.network_address}),(0,y.jsx)("td",{children:(null==e?void 0:e.ip_isp)||""}),(0,y.jsx)("td",{children:(0,y.jsx)(g.default,{classifications:null==e?void 0:e.ip_usage_type_name})}),(0,y.jsx)("td",{children:null!==(t=null==e||null===(n=e.sum_clicks)||void 0===n?void 0:n.toLocaleStr
2ing("en-GB"))&&void 0!==t?t:"-"}),(0,y.jsx)("td",{children:(0,y.jsx)("div",{role:"button",tabIndex:0,onKeyDown:function(){A(!0),E((0,u.getIpReasons)(e)),O(null==e?void 0:e.ip)},onClick:function(){A(!0),E((0,u.getIpReasons)(e)),O(null==e?void 0:e.ip)},style:{cursor:"pointer"},children:(0,u.getIpReasons)(e).map(function(e,t){return(0,y.jsx)(m.default,{reason:e},t)})})}),(0,y.jsx)("td",{children:(0,y.jsx)(f.default,{score:null==e?void 0:e.max_risk_score})}),(0,y.jsx)("td",{children:(0,y.jsx)(i.ToolTip,{content:!0!==(null==r?void 0:r.user.obfuscate)?(0,c.language)("View an audit history of this IP"):(0,c.language)("Audit trail feature not available with obfuscated IPs"),children:(0,y.jsx)(i.Button,{id:"audit-trail-button","data-testid":null==e?void 0:e.ip,preset:"outline",size:"sm",as:a.Link,to:"/audit-trail?ip=".concat(null==e?void 0:e.ip,"&dsp=internal-tools-ip"),"aria-label":(0,c.language)("Audit Trail"),iconLeft:["far","timeline-arrow"],style:{width:"fit-content"},disabled:!0===(null==r?void 0:r.user.obfuscate)})})})]})]})}}),(0,y.jsxs)(i.SideContentPanel,{open:b,onClose:function(){return A(!1)},heading:"IP Classification",children:[k.map(function(e,t){return(0,y.jsx)(p.default,{reason:e,ip:w},t)}),(0,y.jsx)("div",{className:"text-right",children:(0,y.jsx)(i.Button,{onClick:function(){return A(!1)},preset:"secondary",children:(0,c.language)("Close")})})]})]})}},93825:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=function(){var e=(0,m.default)();return e?(0,x.jsx)(p.ChatProvider,{client:e,children:(0,x.jsx)(N,{})}):(0,x.jsx)("div",_(_({},{className:"display-x78zum5 height-x5yr21d minHeight-x2lwn1j overflow-xb3r6kr borderRadius-x2u8bby borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x2ci420 backgroundColor-x18oya0d","data-style-src":"ChatPage/index.tsx:35"}),{},{children:(0,x.jsx)("div",_(_({},{className:"display-x78zum5 flex-x98rzlu minHeight-x2lwn1j minWidth-xeuugli flexDirection-xdt5ytf","data-style-src":"ChatPage/index.tsx:46"}),{},{children:(0,x.jsx)("p",_(_({},{className:"margin-x1bpp3o7 padding-x1tamke2 fontSize-x4z9k3i color-xbdn2ka textAlign-x2b8uid","data-style-src":"ChatPage/index.tsx:95"}),{},{children:"Chat is unavailable in this environment - REACT_APP_CHAT_WS_URL is not set."}))}))}))};var o=b(n(25751)),a=b(n(14041)),i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(45365),s=n(44146),c=n(45647),u=n(18141),d=n(73657),f=n(75267),p=n(66753),m=b(n(61355)),g=b(n(51934)),y=b(n(39888)),h=b(n(19664)),x=n(31085);function b(e){return e&&e.__esModule?e:{default:e}}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O=o.default,j={idle:"Idle",connecting:"Connecting...",connected:"Connected",disconnected:"Disconnected",error:"Connection error"};O(".display-x78zum5{display:flex}",3e3),O(".height-x5yr21d{height:100%}",4e3),O(".minHeight-x2lwn1j{min-height:0}",4e3),O(".overflow-xb3r6kr{overflow:hidden}",2e3),O(".borderRadius-x2u8bby{border-radius:0}",2e3),O(".borderWidth-xmkeg23{border-width:1px}",2e3),O(".borderStyle-x1y0btm7{border-style:solid}",2e3),O(".borderColor-x2ci420{border-color:var(--gray200-x1cfnqzm)}",2e3),O(".backgroundColor-x18oya0d{background-color:var(--white-x3n8fk9)}",3e3),O(".flex-x98rzlu{flex:1}",2e3),O(".minWidth-xeuugli{min-width:0}",4e3),O(".flexDirection-xdt5ytf{flex-direction:column}",3e3),O(".flexShrink-x2lah0s{flex-shrink:0}",3e3),O(".alignItems-x6s0dn4{align-items:center}",3e3),O(".gap-x167g77z{gap:8px}",2e3),O(".borderBottomWidth-xso031l{border-bottom-width:1px}",4e3),O(".borderBottomStyle-x1q0q8m5{border-bottom-style:solid}",4e3),O(".borderBottomColor-x1tz3338{border-bottom-color:var(--gray200-x1cfnqzm)}",4e3),O(".paddingTop-x1y1aw1k{padding-top:8px}",4e3),O(".paddingBottom-xwib8y2{padding-bottom:8px}",4e3),O(".paddingLeft-xf18ygs{padding-left:12px}",4e3),O(".paddingRight-xnuq7ks{padding-right:12px}",4e3),O(".color-x183cm2b{color:var(--primary400-x6nrv7m)}",3e3),O(".fontSize-xif65rj{font-size:14px}",3e3),O(".fontSize-xfifm61{font-size:12px}",3e3),O(".fontWeight-x1s688f{font-weight:600}",3e3),O(".gap-x17d4w8g{gap:6px}",2e3),O(".marginLeft-x8x9d4c{margin-left:auto}",4e3),O(".fontSize-x1j6dyjg{font-size:11px}",3e3),O(".color-xbdn2ka{color:var(--gray500-xplr4j6)}",3e3),O(".width-x1v4s8kt{width:6px}",4e3),O(".height-xols6we{height:6px}",4e3),O(".borderRadius-x16rqkct{border-radius:50%}",2e3),O(".backgroundColor-xgji3v1{background-color:var(--gray300-x1xk3734)}",3e3),O(".backgroundColor-xzxmxdx{background-color:var(--warning400-xebb3xv)}",3e3),O(".backgroundColor-xbhkaxr{background-color:var(--success500-x1a8whg)}",3e3),O(".backgroundColor-x1u8ybml{background-color:var(--gray400-x79zdqj)}",3e3),O(".backgroundColor-x1yz7wgl{background-color:var(--error500-x1idp37q)}",3e3),O(".margin-x1bpp3o7{margin:auto}",1e3),O(".padding-x1tamke2{padding:16px}",1e3),O(".fontSize-x4z9k3i{font-size:13px}",3e3),O(".textAlign-x2b8uid{text-align:center}",3e3),O(".borderTopWidth-x178xt8z{border-top-width:1px}",4e3),O(".borderTopStyle-x13fuv20{border-top-style:solid}",4e3),O(".borderTopColor-xlwlnjq{border-top-color:var(--gray200-x1cfnqzm)}",4e3),O(".backgroundColor-x6fdw8f{background-color:var(--gray50-x1bw8p5w)}",3e3);var k={statusDot:{width:"width-x1v4s8kt",height:"height-xols6we",borderRadius:"borderRadius-x16rqkct",flexShrink:"flexShrink-x2lah0s",$$css:"ChatPage/index.tsx:84"},dotIdle:{backgroundColor:"backgroundColor-xgji3v1",$$css:"ChatPage/index.tsx:90"}
2,dotConnecting:{backgroundColor:"backgroundColor-xzxmxdx",$$css:"ChatPage/index.tsx:91"},dotConnected:{backgroundColor:"backgroundColor-xbhkaxr",$$css:"ChatPage/index.tsx:92"},dotDisconnected:{backgroundColor:"backgroundColor-x1u8ybml",$$css:"ChatPage/index.tsx:93"},dotError:{backgroundColor:"backgroundColor-x1yz7wgl",$$css:"ChatPage/index.tsx:94"}},E={idle:k.dotIdle,connecting:k.dotConnecting,connected:k.dotConnected,disconnected:k.dotDisconnected,error:k.dotError};function N(){var e,t,n,r=(0,p.useChatConnection)(),o=r.status,m=r.error,b=(0,p.useChatStreaming)(),v=(0,p.useChatCommands)(),A=(0,d.useLocation)().pathname,S=(0,f.usePostHog)(),O=(t=(0,c.useWorkspacesState)(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],N=null==O?void 0:O.selectedWorkspace,I=(0,s.useAccessControl)().isImpersonating,P=(0,p.useChatSessions)().sessions,T=(0,p.useChatSessionId)(),C=T?P.find(function(e){return e.id===T}):void 0,R=Boolean(C&&null!=C.impersonated_by!==I);return(0,p.useChatAppContext)({page:A,workspace:N?{id:(0,u.normaliseWorkspaceId)(N.id),name:null!==(e=N.name)&&void 0!==e?e:null}:null}),a.default.useEffect(function(){null==S||S.capture("chat_opened")},[S]),(0,x.jsxs)("div",_(_({},{className:"display-x78zum5 height-x5yr21d minHeight-x2lwn1j overflow-xb3r6kr borderRadius-x2u8bby borderWidth-xmkeg23 borderStyle-x1y0btm7 borderColor-x2ci420 backgroundColor-x18oya0d","data-style-src":"ChatPage/index.tsx:35"}),{},{children:[(0,x.jsx)(g.default,{onNewChat:v.newChat,onSelectSession:v.selectSession}),(0,x.jsxs)("div",_(_({},{className:"display-x78zum5 flex-x98rzlu minHeight-x2lwn1j minWidth-xeuugli flexDirection-xdt5ytf","data-style-src":"ChatPage/index.tsx:46"}),{},{children:[(0,x.jsxs)("div",_(_({},{className:"display-x78zum5 flexShrink-x2lah0s alignItems-x6s0dn4 gap-x167g77z borderBottomWidth-xso031l borderBottomStyle-x1q0q8m5 borderBottomColor-x1tz3338 paddingTop-x1y1aw1k paddingBottom-xwib8y2 paddingLeft-xf18ygs paddingRight-xnuq7ks","data-style-src":"ChatPage/index.tsx:53"}),{},{children:[(0,x.jsx)("span",_(_({},{className:"color-x183cm2b flexShrink-x2lah0s fontSize-xif65rj","data-style-src":"ChatPage/index.tsx:66"}),{},{children:(0,x.jsx)(l.Icon,{name:["far","sparkles"]})})),(0,x.jsx)("span",_(_({},{className:"fontSize-xfifm61 fontWeight-x1s688f color-x183cm2b","data-style-src":"ChatPage/index.tsx:71"}),{},{children:"Lunio AI"})),(0,x.jsxs)("div",_(_({},{className:"display-x78zum5 alignItems-x6s0dn4 gap-x17d4w8g marginLeft-x8x9d4c fontSize-x1j6dyjg color-xbdn2ka","data-style-src":"ChatPage/index.tsx:76"}),{},{children:[(0,x.jsx)("div",_({},i.props(k.statusDot,E[o]))),"error"===o&&m?m:j[o]]}))]})),(0,x.jsx)(y.default,{}),R?(0,x.jsxs)("div",_(_({},{className:"flexShrink-x2lah0s display-x78zum5 alignItems-x6s0dn4 gap-x17d4w8g borderTopWidth-x178xt8z borderTopStyle-x13fuv20 borderTopColor-xlwlnjq backgroundColor-x6fdw8f paddingTop-x1y1aw1k paddingBottom-xwib8y2 paddingLeft-xf18ygs paddingRight-xnuq7ks fontSize-xfifm61 color-xbdn2ka","data-style-src":"ChatPage/index.tsx:102"}),{},{children:[(0,x.jsx)(l.Icon,{name:["far","eye"]}),I?"This is the customer's own conversation - you're viewing it for support, but can't reply here.":"This conversation belongs to a support session - it's read-only here."]})):null,(0,x.jsx)(h.default,{disabled:"connected"!==o||b||R,onSend:v.send})]}))]}))}},93845:(e,t,n)=>{"use strict";n.d(t,{A:()=>
2o});var r=n(34406);const o=function(e){if(!e)return null;var t=e instanceof Date?e:new Date(e),n=(0,r.Ay)(t);return Math.floor(n.valueOf()/1e3)}},93866:(e,t,n)=>{"use strict";e.exports=n.p+"3d30cc92c132b3699bda.svg"},93902:(e,t,n)=>{"use strict";e.exports=n.p+"aad9ed843a74b50e3e8f.svg"},93938:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=n(14041),l=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(64746)),s=n(60156),c=n(86957),u=n(31085);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=a.default;y(".width-xh8yej3{width:100%}",4e3),y(".height-x5yr21d{height:100%}",4e3),y(".position-x1n2onr6{position:relative}",3e3),y(".display-x78zum5{display:flex}",3e3),y(".alignItems-x6s0dn4{align-items:center}",3e3),y(".marginBottom-x12nagc{margin-bottom:4px}",4e3),y(".position-x10l6tqk{position:absolute}",3e3),y(".top-x1v4kod4{top:-8px}",4e3),y(".left-x1ds2rzo{left:110px}",4e3),y(".marginRight-x1o6q14k{margin-right:16px}",4e3),y(".height-xqtp20y{height:0}",4e3),y(".overflow-x1rea2x4{overflow:visible}",2e3),y(".width-x1fsd2vl{width:10px}",4e3),y(".height-x170jfvy{height:10px}",4e3),y(".borderRadius-x16rqkct{border-radius:50%}",2e3),y(".backgroundColor-xi0j1sw{background-color:var(--error400-x1tud7vg)}",3e3),y(".marginRight-x1db2dqx{margin-right:8px}",4e3),y(".backgroundColor-xhgcy4a{background-color:var(--secondary200-xut29wu)}",3e3),y(".fontSize-xif65rj{font-size:14px}",3e3),y(".color-xh3519o{color:var(--black500-x161om0q)}",3e3),y(".fontWeight-xk50ysn{font-weight:500}",3e3),t.A=function(e){var t=e.data,n=(0,i.useRef)(null),r=(0,i.useRef)(null),o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)({width:800,height:400}),2),a=o[0],d=o[1];return(0,i.useEffect)(function(){var e=new ResizeObserver(function(e){if(e&&0!==e.length){var t=e[0].contentRect,n=t.width,r=t.height;d({width:n,height:r})}});return r.current&&e.observe(r.current),function(){r.current&&e.unobserve(r.current)}},[]),(0,i.useEffect)(function(){var e=a.width,o=a.height,i=l.select(n.current);i.selectAll("*").remove();var u=e-110-22,d=o-0-28,f=t.map(function(e){return e.name}),p=Object.keys(t[0]).filter(function(e){return"name"!==e}),m=l.scaleLinear().domain([0,100]).range([0,u]),g=l.scaleBand().domain(f).range([0,d]).padding(.1),y=l.scaleBand().domain(p).range([0,g.bandwidth()]).padding(.05),h=l.scaleOrdinal().domain(p).range([c.colourValues.secondary200,c.colourValues.error400]),x=i.append("g").attr("transform","translate(".concat(110,",").concat(0,")"));x.selectAll("g").data(t).enter().append("g").attr("transform",function(e){return"translate(0,".concat(g(e.name),")")}).selectAll("rect").data(function(e){return p.map(function(t){return{key:t,value:e[t]}})}).enter().append("rect").attr("y",function(e){var t;return null!==(t=y(e.key))&&void 0!==t?t:0}).attr("height",y.bandwidth()).attr("x",0).attr("width",function(e){return m(e.value)}).attr("fill",function(e){return h(e.key)}).on("mouseover",function(e,t){l.select(r.current).selectAll(".tooltip").remove(),l.select(r.current).append("div").attr("class","tooltip").style("position","absolute").style("background",c.colourValues.white).style("border","1px solid ".concat(c.colourValues.gray200)).style("padding","8px").style("border-radius","4px").style("box-shadow","0px 2px 4px rgba(0, 0, 0, 0.2)").style("pointer-events","none").style("font-size","14px").style("opacity",1).html("<strong>".concat("value1"===t.key?(0,s.language)("Total Clicks"):(0,s.language)("SIVT Clicks"),":</strong> ").concat(t.value,"%"))}).on("mousemove",function(e){var t,n,o=null!==(t=null===(n=r.current)||void 0===n?void 0:n.getBoundingClientRect())&&void 0!==t?t:{left:0,top:0},a=o.left,i=o.top;l.select(r.current).select(".tooltip").style("left","".concat(e.pageX-a+10,"px")).style("top","".concat(e.pageY-i+10,"px"))}).on("mouseout",function(){l.select(r.current).selectAll(".tooltip").remove()}),x.append("g").attr("transform","translate(0, ".concat(d,")")).call(l.axisBottom(m).ticks(5)).selectAll("text").style("font-size","12px").style("fill",c.colourValues.black900),x.select(".domain").remove(),x.selectAll(".tick line").remove(),x.selectAll(".y-axis-label").data(f).enter().append("foreignObject").attr("x",-110).attr("y",function(e){var t;return null!==(t=g(e))&&void 0!==t?t:0}).attr("width",100).attr("height",g.bandwidth()+8).append("xhtml:div").style("font-size","14px").style("font-weight","500").style("color",c.colourValues.gray500).style("white-space","normal").style("word-wrap","break-word").style("display","flex").style("overflow","visible").style("align-items","center").style("justify-content","start").text(function(e){return e}).each(function(){var e=l.select(this.parentNode),t=this.getBoundingClientRect(),n=parseFloat(e.attr("y"))+(g.bandwidth()-t.height)/2;e.attr("y",n)}),x.select(".domain").remove(),x.selectAll(".tick line").remove()},[t,a]),(0,u.jsxs)("div",p(p({},{className:"width-xh8yej3 height-x5yr21d position-x1n2onr6","data-style-src":"GroupHorizontal/index.tsx:8"}),{},{children:[(0,u.jsxs)("div",p(p({},{className:"position-x10l6tqk top-x1v4kod4 left-x1ds2rzo marginRight-x1o6q14k height-xqtp20y overflow-x1rea2x4 display-x78zum5","data-style-src":"GroupHorizontal/index.tsx:23"}),{},{children:[(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 alignItems-x6s0dn4 marginBottom-x12nagc","data-style-src":"GroupHorizontal/index.tsx:13"}),{},{children:[(0,u.jsx)("div",p({},{className:"width-x1fsd2vl height-x170jfvy borderRadius-x16rqkct backgroundColor-xhgcy4a marginRight-x1db2dqx","data-style-src":"GroupHorizontal/index.tsx:39"})),(0,u.jsx)("div",p(p({},{className:"fontSize-xif65rj color-xh3519o marginRight-x1o6q14k fontWeight-xk50ysn","data-style-src":"GroupHorizontal/index.tsx:46"}),{},{children:(0,s.language)("% Total Clicks")}))]})),(0,u.jsxs)("div",p(p({},{className:"display-x78zum5 alignItems-x6s0dn4 marginBottom-x12nagc","data-style-src":"GroupHorizontal/index.tsx:13"}),{},{children:[(0,u.jsx)("div",p({},{className:"width-x1fsd2vl height-x170jfvy borderRadius-x16rqkct backgroundColor-xi0j1sw marginRight-x1db2dqx","data-style-src":"GroupHorizontal/index.tsx:32"})),(0,u.jsx)("div",p(p({},{className:"fontSize-xif65rj color-xh3519o marginRight-x1o6q14k fontWeight-xk50ysn","data-style-src":"GroupHorizontal/index.tsx:46"}),{},{children:(0,s.language)("% SIVT Clicks")}))]}))]})),(0,u.jsx)("div",p(p({ref:r},{className:"position-x1n2onr6 width-xh8yej3 height-x5yr21d","data-style-src":"GroupHorizontal/index.tsx:18"}),{},{children:(0,u.jsx)("svg",{ref:n,"data-testid":"grouped-horizontal-bar-chart",width:a.width,height:a.height})}))]}))}},94250:(e,t,n)=>{"use strict";e.exports=n.p+"335e87c0a9f0dbda8437.svg"},94370:(e,t,n)=>{"use strict";n.d(t,{A:()=>
2o});var r=n(89748);const o={title:(0,r.A)("Top IVT Sources by Campaign and Placement"),description:(0,r.A)("See which campaigns and placements are driving the highest share of IVT."),iconName:"robot",colourName:"Red",period:(0,r.A)("Last 30 days"),periodKey:"30d",columnGroupingOrder:["level","site_source_name","placement"],keyWords:[(0,r.A)("IVT"),(0,r.A)("Campaign"),(0,r.A)("Site Source"),(0,r.A)("Placement"),(0,r.A)("L30 Days")],filters:[{label:(0,r.A)("Level"),type:"flat-select",name:"level",queryKey:"level",queryTranslator:"singleTextValueRadio",filterGroup:{label:(0,r.A)("LEVEL"),name:"level",displayOrder:1},options:[{label:(0,r.A)("Campaign"),name:"campaign",type:"radio",value:!0}]},{label:(0,r.A)("Site Source Name"),name:"site_source_name",type:"dropdown-multi-select",queryKey:"site_source_name",queryTranslator:"arrayOfNames",filterGroup:{label:(0,r.A)("Stats Filter"),name:"statsFilter",displayOrder:3},options:[{label:(0,r.A)("Audience Network"),type:"checkbox",name:"an",value:!0},{label:(0,r.A)("Facebook"),type:"checkbox",name:"fb",value:!0},{label:(0,r.A)("Instagram"),type:"checkbox",name:"ig",value:!0},{label:(0,r.A)("Messenger"),type:"checkbox",name:"msg",value:!0},{label:(0,r.A)("Threads"),type:"checkbox",name:"th",value:!0}]},{label:(0,r.A)("Placement"),name:"placement",type:"dropdown-multi-select",queryKey:"placement",queryTranslator:"arrayOfNames",filterGroup:{label:(0,r.A)("Stats Filter"),name:"statsFilter",displayOrder:3},options:[{label:(0,r.A)("Audience Network Classic"),type:"checkbox",name:"audience_network_classic",value:!0},{label:(0,r.A)("Audience Network Rewarded Video"),type:"checkbox",name:"audience_network_rewarded_video",value:!0},{label:(0,r.A)("Facebook Feed"),type:"checkbox",name:"facebook_feed",value:!0},{label:(0,r.A)("Facebook Instream"),type:"checkbox",name:"facebook_instream",value:!0},{label:(0,r.A)("Facebook Marketplace"),type:"checkbox",name:"facebook_marketplace",value:!0},{label:(0,r.A)("Facebook Right Column"),type:"checkbox",name:"facebook_right_column",value:!0},{label:(0,r.A)("Instagram Feed"),type:"checkbox",name:"instagram_feed",value:!0},{label:(0,r.A)("Instagram Stories"),type:"checkbox",name:"instagram_stories",value:!0},{label:(0,r.A)("Messenger Inbox"),type:"checkbox",name:"messenger_inbox",value:!0},{label:(0,r.A)("Messenger Sponsored Messages"),type:"checkbox",name:"messenger_sponsored_messages",value:!0},{label:(0,r.A)("Threads Stream"),type:"checkbox",name:"threads_stream",value:!0}]}]}},94413:(e,t,n)=>{"use strict";n.d(t,{A:()=>y}),n(14041);var r=n(62161),o=n(89748),a=n(77223),i=n(72686),l=n(1781),s=n(30021),c=n(19863),u=n(98536),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=function(){var e=(0,u.useApi)({url:"/affiliates/suspicious-conversion-summary"});function t(e){if(!e)return"";switch(e){case"waf":return(0,o.A)("Firewall detection of automated traffic that mimics real users to generate fake traffic.");case"proxy_requests":return(0,o.A)("Masking IP addresses to hide the real source of traffic.");case"geo_masking":return(0,o.A)("Hiding the real location to appear as if itâs coming from a different c
2ountry, region, or city.");case"crawlers":return(0,o.A)("An automated program that systematically browses websites by making requests to URLs, usually without human interaction.");case"duplicate_fingerprint":return(0,o.A)("Blocks duplicate traffic when the same device/browser fingerprint repeats.");case"emulator":return(0,o.A)("Programs pretending to be real devices or users to create fake traffic.");case"device_anomaly":return(0,o.A)("Fake device models, or suspicious patterns.");case"cookie_stuffing":return(0,o.A)("Dropping affiliate cookies without user interaction to steal attribution.");case"conversion_hijacking":return(0,o.A)("Stealing attribution by injecting fake clicks just before conversion.");case"click_capped":return(0,o.A)("Identify unusually high click activity from a single user in a day.");case"conversion_capped":return(0,o.A)("Identify unusually high conversion activity from a single user in a day.");case"excluded_isp":return(0,o.A)("When an ISP is known to be problematic, you can add the ISP into the affiliate configuration to flag it in the affiliate reporting.");default:return""}}return(0,d.jsxs)(i.default,{className:"mb-4",children:[(0,d.jsx)(s.default,{preset:"widgetHeading",as:"h2",className:"mb-4",children:(0,o.A)("Suspicious Conversions")}),(0,d.jsx)(a.default,{className:"mb-4"}),(0,d.jsx)(r.A,m(m({},e.tableConnector),{},{className:"mb-4",leftPinnedColumns:0,groupColsBreakpoint:500,hideTopPagination:!0,children:function(e){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{children:(0,o.A)("Fraud Type")}),(0,d.jsx)("th",{children:(0,o.A)("Conversions")})]})}),(0,d.jsxs)("tbody",{children:[(0,d.jsx)("td",{children:e?(0,d.jsx)(l.default,{content:t(Object.keys(e)[0]),children:(0,d.jsx)("span",{children:(n=Object.keys(e)[0],n?n.split("_").filter(Boolean).map(function(e){return 3===e.length?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1)}).join(" "):"")})}):null}),(0,d.jsx)("td",{children:e?(0,c.m)(Object.values(e)[0]):null})]})]});var n}}))]})}},94647:(e,t,n)=>{"use strict";e.exports=n.p+"cb79a91be1b05c9a684d.svg"},94653:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(14041),o=n(39067),a=n.n(o),i=n(9260),l=n(79135),s=n(99018),c=n(89748),u=n(62161),d=n(31085);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=(0,s.createUseStyles)(function(e){return{accentTextColour:{color:(0,s.findColour)(e,"blue-300")},breadcrumbContainer:{display:"flex",marginBottom:e.spacing[4]},breadcrumbButton:{padding:0,fontSize:e.fontSizes.sm,fontWeight:e.fontWeights.xs,color:(0,s.findColour)(e,"grey",500),marginRight:e.spacing[2],"&.active":{color:(0,s.findColour)(e,"grey",800),fontWeight:e.fontWeights.lg}},textRight:{textAlign:"right",paddingRight:32},textCenter:{textAlign:"center",paddingRight:32}}});function x(e){var t,n,o,a,f=e.onAction,p=e.mplatAPIResponse,g=e.isLoading,x=e.handlePagination,b=e.filters,v=e.setFilters,A=e.actionDisabled,_=e.action,S=e.supportedPlatforms,w=void 0===S?[]:S,O=e.onClose,j=void 0===O?null:O,k=(o=(0,r.useState)([{name:"All Configurations",id:0}]),a=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(o,a)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(o,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=k[0],N=k[1],I=h(),P="add"===_;return(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:I.breadcrumbContainer,children:E.map(function(e,t){return(0,d.jsxs)("div",{children:[(0,d.jsx)("button",{type:"button","data-testid":"breadcrumb-config-button-".concat(e.id||"".concat(_,"All")),className:(0,s.classNames)(I.breadcrumbButton,{active:t===E.length-1}),onClick:function(){!function(e){N(E.slice(0,e+1)),v(m(m({},b),{},{id:E[e].id,page:1}))}(t)},children:e.name}),t<E.length-1&&(0,d.jsx)(l.default,{name:"chevron-right",className:I.breadcrumbButton})]},e.id)})}),(0,d.jsx)(u.A,{rows:null==p?void 0:p.mplat_configurations,isLoading:void 0===(null==p?void 0:p.mplat_configurations)||g,totalItems:null==p||null===(t=p.pagination)||void 0===t?void 0:t.total,totalPages:null==p||null===(n=p.pagination)||void 0===n?void 0:n.last_page,pageNumber:b.page,handlePagination:x,limit:b.limit,noDataTitle:P?(0,c.A)("No platforms available"):(0,c.A)("No platforms found"),noDataSubTitle:P?(0,c.A)("You don't have any platforms available to be added to this workspace"):(0,c.A)("Click on the add button to assign a platform to this workspace"),noDataStyle:"secondary",leftPinnedColumns:1,children:function(e){var t;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{children:(0,c.A)("Name")}),(0,d.jsx)("th",{children:(0,c.A)("ID")}),(0,d.jsx)("th",{children:(0,c.A)("Platform")}),(0,d.jsx)("th",{"data-align":"right",children:(0,c.A)(P?"Add":"Remove")})]})}),(0,d.jsxs)("tbody",{children:[(0,d.jsx)("td",{children:null==e?void 0:e.configuration_name}),(0,d.jsx)("td",{children:null==e?void 0:e.configuration_id}),(0,d.jsx)("td",{children:null===(t=w.find(function(t){return(null==t?void 0:t.platform_id)===(null==e?void 0:e.platform_id)}))||void 0===t?void 0:t.descriptive_name}),(0,d.jsx)("td",{"data-align":"right",children:(0,d.jsx)(i.default,{id:"".concat(_,"-config-button-").concat(null==e?void 0:e.configuration_id,"-").concat(null==e?void 0:e.platform_id),"data-testid":"".concat(_,"-config-button-").concat(null==e?void 0:e.configuration_id,"-").concat(null==e?void 0:e.platform_id),preset:"outline","aria-label":"icon button",disabled:A(e),iconRight:P?"plus":["far","minus"],size:"sm",onClick:function(){var t;f([{platform_id:(t=e).platform_id,configuration_id:t.configuration_id}])}})})]})]})}}),j&&(0,d.jsx)("div",{className:"h-align-right mt-3",children:(0,d.jsx)(i.default,{preset:"outline",onClick:function(){return j(!1)},"data-testid":"cancel-add-platform-button",children:(0,c.A)("Cancel")})})]})}x.propTypes={onAction:a().func.isRequired,mplatAPIResponse:a().object.isRequired,isLoading:a().bool.isRequired,handlePagination:a().func.isRequired,filters:a().object.isRequired,setFilters:a().func.isRequired,action:a().func.isRequired,actionDisabled:a().func.isRequired,supportedPlatforms:a().array,onClose:a().func};const b=x},94932:(e,t,n)=>{"use strict";e.exports=n.p+"4b0bae765874ba4f6ac6.svg"},94943:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={featureFlags:["CAMPAIGN_LEVEL","NGRAM","IP_REASONS"],integrations:[],roles:[],roleIdentifier:"ADMIN",accountRoleIdentifier:"ADMIN",isImpersonating:!0}},94994:(e,t,n)=>{"use strict";e.exports=n.p+"78f4463781520225c84b.svg"},95120:(e,t,n)=>{"use strict";n.d(t,{A:()=>d}),n(14041);var r=n(89748),o=n(9260),a=n(30021),i=n(55436),l=n(88133),s=n(36549),c=n(31085);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const d=function(){var e,t,n,d,f,p=(d=(0,s.A)(),f=1,function(e){if(Array.isArray(e))return e}(d)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(d,f)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(d,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],m=(0,l.Ay)("/aw/tokens"),g=m.data,y=m.isLoading,h=(null==g||null===(e=g.result)||void 0===e||null===(e=e.tokens)||void 0===e?void 0:e.filter(function(e){return e.opteo_api_key}).length)||0,x=(null==g||null===(t=g.result)||void 0===t||null===(t=t.tokens)||void 0===t?void 0:t.filter(function(e){return!e.opteo_api_key}))||[],b=null==g||null===(n=g.result)||void 0===n?void 0:n.tokens.length;return(0,c.jsx)("div",{children:(0,c.jsx)(i.default,{loading:y,preset:"dark",size:"responsive",children:(0,c.jsxs)("div",{className:"mb-6",children:[h===b&&(0,c.jsx)(a.default,{children:(0,r.A)("You have connected all of your Google Ads accounts to Opteo.")}),h!==b&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(a.default,{className:"mb-3",children:(0,r.A)("This feature requires connecting your Google Ads account to our partners at Opteo. You have linked :countConnected of your :countTotal Google Ads accounts to Opteo. The following are unlinked:",{countConnected:h,countTotal:b})}),(0,c.jsx)("ul",{children:x.map(function(e){return(0,c.jsx)("li",{className:"pl-2",children:e.token_user_email},e.id)})}),(0,c.jsx)(o.default,{className:"mt-4 mb-3",onClick:function(){window.open("https://api.opteo.com/connect/google/oauth?context={user:".concat(null==p?void 0:p.user.id,"}&redirect_url=").concat(window.location.origin,"/n-grams-finder"),null,"height=600,width=800,status=yes,toolbar=no,menubar=no,location=no")},children:(0,r.A)("Connect to Opteo")})]})]})})})}},95225:(e,t,n)=>{"use strict";e.exports=n.p+"2ef0bc45aa400e12fe19.svg"},95329:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=function(e){var t,n=e.title,r=void 0===n?"":n,o=e.type,a=void 0===o?"count":o,d=e.iconRight,f=void 0===d?["far","chart-pie"]:d,p=e.isPercentage,g=void 0!==p&&p,h=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)([]))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,a,i=[],l=!0,s=!1;try{for(o=(t=t.call(e)).next,!2;!(l=(n=o.call(t)).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return y(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),x=h[0],b=h[1],v=(0,s.useApi)({url:"/affiliates/conversions-top-ivt",paginationLimit:10,sortKey:"count"===a?"invalid":"invalid_percent"});return(0,i.useEffect)(function(){var e;v.isLoading||(e=v.data.map(function(e){var t;return{label:decodeURIComponent(null!==(t=e.partner)&&void 0!==t?t:"-"),red:"count"===a?e.invalid:e.invalid_percent,yellow:"count"===a?e.suspicious:e.suspicious_percent,green:"count"===a?e.legitimate:e.legitimate_percent}}),b(e))},[v.data]),(0,u.jsxs)(l.Card,{className:"full-width pb-8",children:[(0,u.jsxs)("div",{className:"flex justify-between",children:[(0,u.jsx)(l.Text,{preset:"widgetHeading",as:"h2",className:"mb-4",children:r}),(0,u.jsx)("div",m(m({},{className:"fontSize-xwsyq91 width-xvy4d1p minHeight-x1rz828m fontWeight-x1s688f color-xqi5lc6","data-style-src":"InvalidConversionsChart/index.jsx:16"}),{},{children:(0,u.jsx)(l.Icon,{name:f,color:"error"})}))]}),(0,u.jsx)(l.Divider,{className:"mb-2"}),(0,u.jsx)(l.LunioLoader,{loading:v.isLoading,height:200,preset
2:"dark",children:(0,u.jsx)(c.Bar.HorizontalStacked,{data:x,isPercentage:g})})]})};var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=d(n(14041)),l=n(45365),s=n(98536),c=(d(n(76969)),n(86957),n(19838)),u=n(31085);function d(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(d=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,l={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return l;if(a=t?o:n){if(a.has(e))return a.get(e);a.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(i.get||i.set)?a(l,s,i):l[s]=e[s]);return l})(e,t)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=a.default;h(".fontSize-xwsyq91{font-size:20px}",3e3),h(".width-xvy4d1p{width:24px}",4e3),h(".minHeight-x1rz828m{min-height:30px}",4e3),h(".fontWeight-x1s688f{font-weight:600}",3e3),h(".color-xqi5lc6{color:var(--black300-xmkl1o)}",3e3)},95469:(e,t,n)=>{"use strict";n.d(t,{A:()=>i}),n(14041);var r=n(88133),o=n(75079),a=n(31085);const i=function(){var e=(0,r.Ay)("auth/logout").data;return null!=e&&e.location&&(localStorage.setItem("token",""),localStorage.clear(),sessionStorage.clear(),window.open(e.location,"_self")),(0,a.jsx)(o.A,{})}},95576:e=>{e.exports={type:"FeatureCollection",features:[{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Afghanistan",SOV_A3:"AFG",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Afghanistan",ADM0_A3:"AFG",GEOU_DIF:0,GEOUNIT:"Afghanistan",GU_A3:"AFG",SU_DIF:0,SUBUNIT:"Afghanistan",SU_A3:"AFG",BRK_DIFF:0,NAME:"Afghanistan",NAME_LONG:"Afghanistan",BRK_A3:"AFG",BRK_NAME:"Afghanistan",BRK_GROUP:null,ABBREV:"Afg.",POSTAL:"AF",FORMAL_EN:"Islamic State of Afghanistan",FORMAL_FR:null,NAME_CIAWF:"Afghanistan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Afghanistan",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:6,MAPCOLOR9:8,MAPCOLOR13:7,POP_EST:34124811,POP_RANK:15,GDP_MD_EST:64080,POP_YEAR:2017,LASTCENSUS:1979,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"AF",ISO_A2:"AF",ISO_A3:"AFG",ISO_A3_EH:"AFG",ISO_N3:"004",UN_A3:"004",WB_A2:"AF",WB_A3:"AFG",WOE_ID:23424739,WOE_ID_EH:23424739,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"AFG",ADM0_A3_US:"AFG",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Southern Asia",REGION_WB:"South Asia",NAME_LEN:11,LONG_LEN:11,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[61.210817091725744,35.650072333309225],[62.230651483005886,35.270663967422294],[62.98466230657661,35.40404083916762],[63.19353844590035,35.857165635718914],[63.98289594915871,36.0079574651466],[64.5464791197339,36.31207326918427],[64.7461051776774,37.111817735333304],[65.58894778835784,37.30521678318564],[65.74563073106683,37.66116404881207],[66.21738488145934,37.39379018813392],[66.51860680528867,37.36278432875879],[67.07578209825962,37.35614390720929],[67.82999962755952,37.144994004864685],[68.13556237170138,37.02311513930431],[68.85944583524594,37.344335842430596],[69.19627282092438,37.15114350030743],[69.51878543485796,37.60899669041342],[70.11657840361033,37.58822276463209],[70.27057417184014,37.735164699854025],[70.3763041523093,38.13839590102752],[70.80682050973289,38.486281643216415],[71.34813113799026,38.25890534113216],[71.23940392444817,37.953265082341886],[71.54191775908478,37.905774441065645],[71.44869347523024,37.06564484308052],[71.8446382994506,36.73817129164692],[72.1930408059624,36.948287665345674],[72.63688968291729,37.047558091778356],[73.26005577992501,37.495256862939],[73.9486959166465,37.4215662704908],[74.98000247589542,37.419990139305895],[75.15802778514092,37.13303091078912],[74.57589277537298,37.02084137628346],[74.06755171091783,36.83617564548845],[72.92002485544447,36.72000702569632],[71.84629194528392,36.50994232842986],[71.262348260385
275,36.074387518857804],[71.49876793812109,35.650563259416],[71.61307620635071,35.153203436822864],[71.11501875192164,34.733125718722235],[71.15677330921346,34.34891144463215],[70.8818030129884,33.98885590263852],[69.9305432473596,34.02012014417511],[70.3235941913716,33.35853261975839],[69.68714725126486,33.105498969041236],[69.26252200712256,32.5019440780883],[69.31776411324256,31.901412258424443],[68.92667687365767,31.620189113892067],[68.55693200060932,31.713310044882018],[67.79268924344478,31.58293040620963],[67.68339358914747,31.30315420178142],[66.93889122911847,31.304911200479353],[66.38145755398602,30.738899237586452],[66.34647260932442,29.887943427036177],[65.0468620136161,29.472180691031905],[64.35041873561852,29.560030625928093],[64.14800215033125,29.340819200145972],[63.55026085801117,29.468330796826166],[62.54985680527278,29.31857249604431],[60.87424848820879,29.829238999952608],[61.781221551363444,30.735850328081238],[61.69931440618083,31.379506130492672],[60.94194461451113,31.548074652628753],[60.863654819588966,32.18291962333443],[60.536077915290775,32.98126882581157],[60.963700392506006,33.52883230237626],[60.52842980331158,33.676446031218006],[60.80319339380745,34.40410187431986],[61.210817091725744,35.650072333309225]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Angola",SOV_A3:"AGO",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Angola",ADM0_A3:"AGO",GEOU_DIF:0,GEOUNIT:"Angola",GU_A3:"AGO",SU_DIF:0,SUBUNIT:"Angola",SU_A3:"AGO",BRK_DIFF:0,NAME:"Angola",NAME_LONG:"Angola",BRK_A3:"AGO",BRK_NAME:"Angola",BRK_GROUP:null,ABBREV:"Ang.",POSTAL:"AO",FORMAL_EN:"People's Republic of Angola",FORMAL_FR:null,NAME_CIAWF:"Angola",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Angola",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:2,MAPCOLOR9:6,MAPCOLOR13:1,POP_EST:29310273,POP_RANK:15,GDP_MD_EST:189e3,POP_YEAR:2017,LASTCENSUS:1970,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"AO",ISO_A2:"AO",ISO_A3:"AGO",ISO_A3_EH:"AGO",ISO_N3:"024",UN_A3:"024",WB_A2:"AO",WB_A3:"AGO",WOE_ID:23424745,WOE_ID_EH:23424745,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"AGO",ADM0_A3_US:"AGO",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Middle Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"MultiPolygon",coordinates:[[[[23.904153680118185,-11.722281589406322],[24.079905226342845,-12.191296888887365],[23.930922072045377,-12.565847670138856],[24.016136508894675,-12.911046237848538],[21.933886346125917,-12.898437188369359],[21.887842644953874,-16.08031015387688],[22.56247846852426,-16.898451429921813],[23.215048455506064,-17.523116143465984],[21.37717614104554,-17.930636488519696],[18.956186964603603,-17.789094740472258],[18.263309360434164,-17.309950860262006],[14.209706658595024,-17.35310068122572],[14.05850141770901,-17.423380629142663],[13.462362094789967,-16.971211846588773],[12.814081251688407,-16.94134286872407],[12.215461460019355,-17.111668389558048],[11.734198846085093,-17.301889336824487],[11.64009606288164,-16.67314218512928],[11.778537224991538,-15.793816013250762],[12.12358076340439,-14.878316338767902],[12.175618930722322,-14.449143568583864],[12.50009524908296,-13.547699883684473],[12.738478631245385,-13.137905775609923],[13.312913852601895,-12.483630466362499],[13.633721144269856,-12.038644707897177],[13.738727654686897,-11.297863050993115],[13.68637942877524,-10.731075941615913],[13.387327915102219,-10.373578383020714],[13.12098758306982,-9.766897067914101],[12.875369500386597,-9.166933689005475],[12.929061313537858,-8.95909107832756],[13.23643273280993,-8.562629489784328],[12.93304039882429,-7.596538588087739],[12.728298374083948,-6.927122084178791],[12.2273470394465,-6.294447523629358],[12.32243167486351,-6.10009246177966],[12.735171339578699,-5.965682061388499],[13.024869419006961,-5.984388929878158],[13.375597364971895,-5.864241224799549],[16.326528354567046,-5.877470391466268],[16.573179965896145,-6.622644545115087],[16.8601908708452,-7.222297865429987],[17.08999596524717,-7.545688978712526],[17.472970004962235,-8.068551120641644],[18.13422163256905,-7.987677504104923],[18.464175652752687,-7.847014255406443],[19.01675174324967,-7.988245944860132],[19.16661339689611,-7.738183688999754],[19.41750247567316,-7.155428562044299],[20.037723016040218,-7.116361179231646],[20.091621534920648,-6.943090101756994],[20.60182295093827,-6.939317722199675],[20.5147481625265,-7.299605808138629],[21.7281107927397,-7.290872491081302],[21.74645592620331,-7.920084730667099],[21.949130893652043,-8.305900974158277],[21.8018013851879,-8.90870655684298],[21.875181919042348,-9.523707777548537],[22.208753289486395,-9.894796237836509],[22.155268182064304,-11.08480112065375],[22.402798292742375,-10.993075453335692],[22.83734541188474,-11.01762175867431],[23.45679080576744,-10.867863457892483],[23.912215203555718,-10.926826267137514],[24.01789350759259,-11.237298272347104],[23.904153680118185,-11.722281589406322]]],[[[12.182336866920252,-5.789930515163839],[11.91496300624209,-5.037986748884791],[12.318607618873926,-4.606230157086188],[12.620759718484493,-4.438023369976136],[12.99551
27205465177,-4.781103203961884],[12.631611769265788,-4.991271254092908],[12.468004184629706,-5.248361504744977],[12.436688266660868,-5.684303887559246],[12.182336866920252,-5.789930515163839]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Albania",SOV_A3:"ALB",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Albania",ADM0_A3:"ALB",GEOU_DIF:0,GEOUNIT:"Albania",GU_A3:"ALB",SU_DIF:0,SUBUNIT:"Albania",SU_A3:"ALB",BRK_DIFF:0,NAME:"Albania",NAME_LONG:"Albania",BRK_A3:"ALB",BRK_NAME:"Albania",BRK_GROUP:null,ABBREV:"Alb.",POSTAL:"AL",FORMAL_EN:"Republic of Albania",FORMAL_FR:null,NAME_CIAWF:"Albania",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Albania",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:1,MAPCOLOR13:6,POP_EST:3047987,POP_RANK:12,GDP_MD_EST:33900,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"AL",ISO_A2:"AL",ISO_A3:"ALB",ISO_A3_EH:"ALB",ISO_N3:"008",UN_A3:"008",WB_A2:"AL",WB_A3:"ALB",WOE_ID:23424742,WOE_ID_EH:23424742,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ALB",ADM0_A3_US:"ALB",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[21.0200403174764,40.84272695572588],[20.999989861747224,40.58000397395401],[20.674996779063633,40.43499990494303],[20.615000441172754,40.11000682225935],[20.15001590341052,39.62499766698397],[19.980000441170148,39.69499339452341],[19.960001661873207,39.91500580500605],[19.406081984136733,40.250773423822466],[19.319058872157143,40.72723012955356],[19.40354983895429,41.40956574153546],[19.540027296637106,41.71998607031276],[19.37176883309496,41.877547512370654],[19.37176816334725,41.877550679783496],[19.304486118250793,42.19574514420782],[19.73805138517963,42.68824738216557],[19.801613396898688,42.50009349219084],[20.0707,42.58863],[20.283754510181893,42.32025950781508],[20.52295,42.21787],[20.590246546680227,41.855408919283626],[20.59024743010491,41.855404161133606],[20.463175083099202,41.51508901627534],[20.605181919037364,41.086226304685226],[21.0200403174764,40.84272695572588]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"United Arab Emirates",SOV_A3:"ARE",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"United Arab Emirates",ADM0_A3:"ARE",GEOU_DIF:0,GEOUNIT:"United Arab Emirates",GU_A3:"ARE",SU_DIF:0,SUBUNIT:"United Arab Emirates",SU_A3:"ARE",BRK_DIFF:0,NAME:"United Arab Emirates",NAME_LONG:"United Arab Emirates",BRK_A3:"ARE",BRK_NAME:"United Arab Emirates",BRK_GROUP:null,ABBREV:"U.A.E.",POSTAL:"AE",FORMAL_EN:"United Arab Emirates",FORMAL_FR:null,NAME_CIAWF:"United Arab Emirates",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"United Arab Emirates",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:1,MAPCOLOR9:3,MAPCOLOR13:3,POP_EST:6072475,POP_RANK:13,GDP_MD_EST:667200,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"AE",ISO_A2:"AE",ISO_A3:"ARE",ISO_A3_EH:"ARE",ISO_N3:"784",UN_A3:"784",WB_A2:"AE",WB_A3:"ARE",WOE_ID:23424738,WOE_ID_EH:23424738,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ARE",ADM0_A3_US:"ARE",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:20,LONG_LEN:20,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[51.57951867046327,24.245497137951105],[51.757440626844186,24.29407298430547],[51.79438927593287,24.019826158132506],[52.57708051942561,24.177439276622707],[53.404006788960146,24.15131684009917],[54.00800092958758,24.121757920828216],[54.69302371604863,24.79789236093509],[55.43902469261414,25.439
214520924494],[56.07082075381456,26.05546417897398],[56.261041701080956,25.71460643157677],[56.396847365144005,24.924732163995486],[55.88623253766801,24.920830593357447],[55.8041186867562,24.269604193615294],[55.98121382022046,24.130542914317857],[55.52863162620824,23.933604030853502],[55.525841098864475,23.524869289640932],[55.234489373602884,23.110992743415324],[55.208341098863194,22.708329982997046],[55.006803012924905,22.496947536707136],[52.000733270074335,23.00115448657894],[51.61770755392698,24.01421926522883],[51.57951867046327,24.245497137951105]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Argentina",SOV_A3:"ARG",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Argentina",ADM0_A3:"ARG",GEOU_DIF:0,GEOUNIT:"Argentina",GU_A3:"ARG",SU_DIF:0,SUBUNIT:"Argentina",SU_A3:"ARG",BRK_DIFF:0,NAME:"Argentina",NAME_LONG:"Argentina",BRK_A3:"ARG",BRK_NAME:"Argentina",BRK_GROUP:null,ABBREV:"Arg.",POSTAL:"AR",FORMAL_EN:"Argentine Republic",FORMAL_FR:null,NAME_CIAWF:"Argentina",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Argentina",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:1,MAPCOLOR9:3,MAPCOLOR13:13,POP_EST:44293293,POP_RANK:15,GDP_MD_EST:879400,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"AR",ISO_A2:"AR",ISO_A3:"ARG",ISO_A3_EH:"ARG",ISO_N3:"032",UN_A3:"032",WB_A2:"AR",WB_A3:"ARG",WOE_ID:23424747,WOE_ID_EH:23424747,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ARG",ADM0_A3_US:"ARG",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:7},geometry:{type:"MultiPolygon",coordinates:[[[[-66.95992,-54.89681],[-67.56244,-54.87001],[-68.63335,-54.8695],[-68.63401022758325,-52.636370458874445],[-68.25,-53.1],[-67.75,-53.85],[-66.45,-54.45],[-65.05,-54.7],[-65.5,-55.2],[-66.45,-55.25],[-66.95992,-54.89681]]],[[[-68.57154537624132,-52.29944385534625],[-69.49836218939606,-52.14276091263724],[-71.91480383979632,-52.00902230586591],[-72.32940385607401,-51.4259563128724],[-72.30997351753234,-50.67700977966635],[-72.97574683296469,-50.7414502907343],[-73.32805091011446,-50.37878508890995],[-73.4154357571201,-49.318436374712945],[-72.64824744331492,-48.878618259476866],[-72.33116085477201,-48.24423837666181],[-72.44735531278025,-47.73853281025352],[-71.91725847033018,-46.8848381487918],[-71.5520094468913,-45.56073292417712],[-71.65931555854533,-44.973688653341426],[-71.2227788967597,-44.7842428525594],[-71.32980078803618,-44.40752166115168],[-71.79362260607192,-44.20717213315609],[-71.46405615913048,-43.78761117937832],[-71.91542395698389,-43.40856454851742],[-72.1488980780785,-42.254888197601375],[-71.74680375841552,-42.05138640723598],[-71.91573401557761,-40.832339369470716],[-71.68076127794643,-39.80816415787805],[-71.41351660834906,-38.9160222307911],[-70.81466427273469,-38.552995293940725],[-71.11862504747549,-37.57682748794727],[-71.12188066270988,-36.65812387466232],[-70.36476925320164,-36.00508879978993],[-70.38804948594907,-35.169687595359534],[-69.81730912950155,-34.19357146579827],[-69.81477698431922,-33.27388600029984],[-70.07439938015361,-33.09120981214802],[-70.53506893581954,-31.365010267870275],[-69.91900834825191,-30.3363392066683],[-70.01355038112996,-29.367922865518537],[-69.65613033718313,-28.45914112723368],[-69.00123491074825,-27.521213881136205],[-68.29554155137038,-26.899339694935776],[-68.59479977077265,-26.506908868111253],[-68.38600114609733,-26.185016371365222],[-68.41765296087618,-24.518554782816864],[-67.3284429592442,-24.025303236590986],[-66.98523393417773,-22.986348565362817],[-67.1066735500636,-22.735924574476417],[-66.27333940292485,-21.83231047942072],[-64.96489213729461,-22.075861504812327],[-64.37702104354226,-22.79809132252354],[-63.986838141522476,-21.99364430103595],[-62.84646847192156,-22.03498544686945],[-62.685057135657885,-22.249029229422387],[-60.84656470400992,-23.88071257903829],[-60.02896603050403,-24.032796319273274],[-58.80712846539501,-24.771459242453346],[-57.77721716981794,-25.16233977630904],[-57.63366004091113,-25.60365650808164],[-58.61817359071975,-27.123718763947096],[-57.60975969097614,-27.395898532828387],[-56.486701626192996,-27.548499037386293],[-55.69584550639817,-27.387837009390893],[-54.78879492859505,-26.621785577096134],[-54.625290696823576,-25.739255466415514],[-54.13004960795439,-25.547639255477254],[-53.628348965048744,-26.124865004177472],[-53.64873531758789,-26.92347258881609],[-54.490725267135524,-27.47475676850579],[-55.16228634298457,-27.881915378533492],[-56.29089962423908,-28.852760512000895],[-57.625133429583,-30.216294854454233],[-57.87493730328188,-31.016556084926208],[-58.14244035504076,-32.044503676076154],[-58.13264767112145,-33.040566908502015],[-58.34961117209889,-33.26318897881542],[-58.42707414410439,-33.909454441057576],[-58.49544206402652,-34.43148976007009],[-57.2258296372637,-35.28802662530788],[-57.36235877137881,-35.97739023208149],[-56.73748735210543,-36.41312590916657],[-56.78828528504832,-36.90157154718932],[-57.749156867083485,-38.1838705380799],[-59.23185706240184,-38.72022022883719],[-61.237445237865586,-38.928424574541225],[-62.33595699731012,-38.82770
27208004355],[-62.1257631089629,-39.42410491308486],[-62.3305309719195,-40.17258635840031],[-62.145994432205214,-40.67689666113672],[-62.74580278181696,-41.028761488612076],[-63.77049475773259,-41.16678923926365],[-64.73208980981971,-40.80267709733512],[-65.11803524439156,-41.06431487402887],[-64.97856055363582,-42.05800099056931],[-64.30340796574245,-42.35901620866949],[-63.75594784204233,-42.043686618824495],[-63.45805904809586,-42.56313811622243],[-64.37880388045636,-42.87355844499973],[-65.18180396183976,-43.49538095476778],[-65.32882341171012,-44.501366062193696],[-65.56526892766158,-45.03678557716978],[-66.50996578638933,-45.03962778094585],[-67.29379391139241,-45.55189625425518],[-67.58054643418006,-46.30177296324253],[-66.59706641301725,-47.03392465595381],[-65.6410265774015,-47.23613453551188],[-65.9850882636008,-48.13328907653113],[-67.16617896184763,-48.69733733499694],[-67.81608761256643,-49.869668877970405],[-68.72874508327322,-50.26421843851886],[-69.13853919134777,-50.732510267947795],[-68.81556148952359,-51.77110401159409],[-68.14999487982038,-52.3499834061277],[-68.57154537624132,-52.29944385534625]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Armenia",SOV_A3:"ARM",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Armenia",ADM0_A3:"ARM",GEOU_DIF:0,GEOUNIT:"Armenia",GU_A3:"ARM",SU_DIF:0,SUBUNIT:"Armenia",SU_A3:"ARM",BRK_DIFF:0,NAME:"Armenia",NAME_LONG:"Armenia",BRK_A3:"ARM",BRK_NAME:"Armenia",BRK_GROUP:null,ABBREV:"Arm.",POSTAL:"ARM",FORMAL_EN:"Republic of Armenia",FORMAL_FR:null,NAME_CIAWF:"Armenia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Armenia",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:1,MAPCOLOR9:2,MAPCOLOR13:10,POP_EST:3045191,POP_RANK:12,GDP_MD_EST:26300,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"AM",ISO_A2:"AM",ISO_A3:"ARM",ISO_A3_EH:"ARM",ISO_N3:"051",UN_A3:"051",WB_A2:"AM",WB_A3:"ARM",WOE_ID:23424743,WOE_ID_EH:23424743,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ARM",ADM0_A3_US:"ARM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[43.58274580259273,41.09214325618257],[44.97248009621808,41.248128567055595],[45.17949588397934,40.985353908851465],[45.56035118997045,40.812289537105926],[45.35917483905817,40.56150381119346],[45.89190717955509,40.21847565364001],[45.61001224140293,39.89999380142518],[46.03453413268065,39.62802073827308],[46.48349897643246,39.464154771475535],[46.50571984231797,38.770605373686294],[46.14362308124882,38.74120148371222],[45.73537926614301,39.31971914321974],[45.73997846861698,39.47399913182713],[45.29814497252144,39.471751207022464],[45.00198733905674,39.74000356704954],[44.79398969908195,39.71300263117706],[44.4000085792887,40.00500031184228],[43.65643639504094,40.253563951166186],[43.75265791196841,40.74020091405876],[43.58274580259273,41.09214325618257]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Antarctica",SOV_A3:"ATA",ADM0_DIF:0,LEVEL:2,TYPE:"Indeterminate",ADMIN:"Antarctica",ADM0_A3:"ATA",GEOU_DIF:0,GEOUNIT:"Antarctica",GU_A3:"ATA",SU_DIF:0,SUBUNIT:"Antarctica",SU_A3:"ATA",BRK_DIFF:0,NAME:"Antarctica",NAME_LONG:"Antarctica",BRK_A3:"ATA",BRK_NAME:"Antarctica",BRK_GROUP:null,ABBREV:"Ant.",POSTAL:"AQ",FORMAL_EN:null,FORMAL_FR:null,NAME_CIAWF:null,NOTE_ADM0:null,NOTE_BRK:"Multiple claims held in abeyance",NAME_SORT:"Antarctica",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:5,MAPCOLOR9:1,MAPCOLOR13:-99,POP_EST:4050,POP_RANK:4,GDP_MD_EST:810,POP_YEAR:2013,LASTCENSUS:-99,GDP_YEAR:2013,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"AY",ISO_A2:"AQ",ISO_A3:"ATA",ISO_A3_EH:"ATA",ISO_N3:"010",UN_A3:"-099",WB_A2:"-99",WB_A3:"-99",WOE_ID:28289409,WOE_ID_EH:28289409,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ATA",ADM0_A3_US:"ATA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Antarctica",REGION_UN:"Antarctica",SUBREGION:"Antarctica",REGION_WB:"Antarctica",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9}
2,geometry:{type:"MultiPolygon",coordinates:[[[[-59.572094692611586,-80.0401787250963],[-59.86584937197469,-80.54965667106185],[-60.15965572777017,-81.00032683707931],[-62.25539343936714,-80.86317758577665],[-64.48812537296982,-80.92193368929256],[-65.74166642928992,-80.58882740673913],[-65.74166642928992,-80.54965667106185],[-66.2900308905551,-80.25577280061799],[-64.0376877508977,-80.29494353629526],[-61.88324561221711,-80.39287037548827],[-61.13897579613342,-79.98137094514809],[-60.61011918805838,-79.62867929475611],[-59.572094692611586,-80.0401787250963]]],[[[-159.20818356019763,-79.49705942170871],[-161.12760128481474,-79.63420867301129],[-162.4398467682184,-79.28146534618702],[-163.02740780337695,-78.92877369579494],[-163.0666043772704,-78.86996591584685],[-163.7128956777287,-78.59566741324153],[-163.7128956777287,-78.59566660579728],[-163.1058009511638,-78.22333791113437],[-161.24511349184638,-78.38017588314017],[-160.2462080556445,-78.69364512142266],[-159.48240454815448,-79.04633757925897],[-159.20818356019763,-79.49705942170871]]],[[[-45.15475765642108,-78.04706960058672],[-43.92082780615573,-78.47810272233326],[-43.48994971370615,-79.08555999136854],[-43.37243750667443,-79.51664478954736],[-43.33326677099714,-80.02612273551293],[-44.88053666846426,-80.33964365022771],[-46.506173875501986,-80.5943567849943],[-48.386420864441845,-80.82948455192235],[-50.482106899606435,-81.02544158317312],[-52.85198808451176,-80.9666854796573],[-54.16425940613158,-80.63352752067158],[-53.98799109558402,-80.2220280903314],[-51.85313432474217,-79.94772958772609],[-50.99132646341056,-79.61462330517274],[-50.364594692574684,-79.18348683056163],[-49.91413123228648,-78.81120900488668],[-49.30695899107309,-78.45856903092691],[-48.660616014182494,-78.04701792415443],[-48.660616014182494,-78.04701873159868],[-48.15139645037837,-78.04706960058672],[-46.662856818211,-77.83147552506503],[-45.15475765642108,-78.04706960058672]]],[[[-121.21151139385711,-73.50099049900604],[-119.91885127829202,-73.65772511814734],[-118.72414303269198,-73.4813534547352],[-119.29211870001193,-73.83409678155947],[-120.23221716370996,-74.08880991632614],[-121.62282995668423,-74.01046844497169],[-122.62173458544189,-73.65777760202387],[-122.62173539288621,-73.65777679457963],[-122.4062446702291,-73.3246188355939],[-121.21151139385711,-73.50099049900604]]],[[[-125.5595664068953,-73.4813534547352],[-124.03188187726684,-73.87326751723674],[-124.61946875064152,-73.83409678155947],[-125.9121805426389,-73.73611826593408],[-127.2831296456819,-73.4617688943408],[-127.28313045312623,-73.46176808689657],[-126.55847184309728,-73.24622568780715],[-125.5595664068953,-73.4813534547352]]],[[[-98.98154964882389,-71.93333424899978],[-97.88474321164509,-72.07053517673472],[-96.7879367744662,-71.9529712932707],[-96.20034990109144,-72.52120534275218],[-96.98376461463621,-72.44286387139763],[-98.19808325884682,-72.48203460707491],[-99.43201310911218,-72.44286387139763],[-100.78345516640927,-72.50161997491355],[-101.80186845580133,-72.30566294366278],[-102.33072506387637,-71.89416432076683],[-102.33072506387637,-71.8941635133226],[-101.70396745482442,-71.71779184991038],[-100.43091854531407,-71.85499277764532],[-98.98154964882389,-71.93333424899978]]],[[[-68.45134599473039,-70.95582285576673],[-68.33383378769875,-71.40649302178417],[-68.5101279364624,-71.79840708428571],[-68.78429724798696,-72.17073577894863],[-69.95947099473648,-72.30788503025128],[-71.07588863797011,-72.50384206150206],[-72.38813412137375,-72.48425669366351],[-71.89849992540826,-72.09234263116187],[-73.07362199572552,-72.22949188246454],[-74.19003963895912,-72.36669281019948],[-74.95389482288147,-72.07275726332324],[-75.01262508818118,-71.66125783298307],[-73.9158186510023,-71.26934457792576],[-73.9158186510023,-71.26934377048153],[-73.23033077665062,-71.1517798870175],[-72.07471655952352,-71.19095062269477],[-71.78096188016042,-70.68147267672921],[-71.72217993842841,-70.30919565849851],[-71.74179114448316,-69.50578216565678],[-71.1738154771632,-69.03547495536841],[-70.25325151231579,-68.8787403362272],[-69.72444658067303,-69.25101735445782],[-69.48942216660956,-69.62334604912081],[
2-69.05851823594381,-70.07401621513817],[-68.72554114447112,-70.50515268974928],[-68.45134599473039,-70.95582285576673]]],[[[-58.614142829001,-64.15246713013312],[-59.045072597882836,-64.36800952922263],[-59.78934241396661,-64.21122323364912],[-60.61192786318867,-64.30920174927442],[-61.29741573754035,-64.54432951620257],[-62.02210018578549,-64.79909432740143],[-62.51176021996699,-65.0930298742775],[-62.64885779483734,-65.48494232189066],[-62.59012752953771,-65.85721934012136],[-62.12007870141079,-66.19032562267469],[-62.80556657576244,-66.42550506603494],[-63.74569007023243,-66.50384653738958],[-64.29410620793001,-66.83700449637522],[-64.88169308130469,-67.15047373465771],[-65.50842485214054,-67.58161020926892],[-65.66508195663337,-67.95388722749944],[-65.31254533553806,-68.36533498140741],[-64.7837145656793,-68.6789075725545],[-63.961103278241154,-68.91398366305016],[-63.19729977075113,-69.22755625419725],[-62.78595536970781,-69.6194186402665],[-62.57051632348288,-69.9917473349295],[-62.2767358059036,-70.38366139743104],[-61.80666113956056,-70.71676767998454],[-61.51290646019737,-71.08904469821508],[-61.37580888532719,-72.01007375095311],[-61.081976691315504,-72.38235076918382],[-61.003661058177244,-72.77426483168536],[-60.69026933454313,-73.16617889418708],[-60.8273669094134,-73.69524220799119],[-61.37580888532719,-74.10674163833146],[-61.96336992048566,-74.43984792088489],[-63.295200771727934,-74.57699717218745],[-63.74569007023243,-74.92974049901173],[-64.35283647322964,-75.26284678156524],[-65.86098731145185,-75.63512379979576],[-67.1928181626941,-75.79191009536945],[-68.44628170436582,-76.00745249445876],[-69.7977237616629,-76.22299489354826],[-70.60072384304632,-76.63449432388845],[-72.20677568224542,-76.6736650595657],[-73.96953630236973,-76.63449432388845],[-75.55597693551411,-76.71288747167519],[-77.24037024606767,-76.71288747167519],[-76.92697852243364,-77.10480153417673],[-75.39929399280501,-77.28106984472437],[-74.28287634957147,-77.5554200237618],[-73.6561187405195,-77.90811167415396],[-74.77253638375313,-78.22163258886874],[-76.49610042998398,-78.12365407324327],[-77.92585812041935,-78.37841888444225],[-77.98466590036753,-78.78991831478234],[-78.02378495961253,-79.18183318472822],[-76.8486370510791,-79.51493946728174],[-76.63322384307045,-79.88721648551225],[-75.36009741891172,-80.25954518017525],[-73.24485185412459,-80.41633147574875],[-71.4429463365392,-80.69062997835398],[-70.01316280788774,-81.00415089306878],[-68.19164608424751,-81.31767180778357],[-65.70427853052672,-81.47445810335725],[-63.25603003605076,-81.74875660596247],[-61.55202551944237,-82.04269215283854],[-59.69141557477343,-82.37585011182435],[-58.71212134462627,-82.84610564568035],[-58.22248714866089,-83.21843434034335],[-57.008116828017876,-82.86569101351907],[-55.362894253141604,-82.57175546664283],[-53.619770677288216,-82.25823455192804],[-51.54364417174608,-82.00352141716135],[-49.76134986021552,-81.72917123812384],[-47.27393063006227,-81.70958587028528],[-44.825707973802565,-81.84673512158777],[-42.80836340999244,-82.08191456494811],[-42.162020433101844,-81.65082976676938],[-40.77143347834365,-81.35689421989322],[-38.24481767429711,-81.33730885205458],[-36.266669684380275,-81.12171477653297],[-34.38639685722441,-80.90617237744348],[-32.31029618989837,-80.76902312614082],[-30.097097947702053,-80.59265146272868],[-28.54980221201876,-80.33793832796201],[-29.254901292425075,-79.98519500113773],[-29.685805223091023,-79.63250335074567],[-29.685805223091023,-79.26022633251496],[-31.624808315546602,-79.29939706819223],[-33.68132361503402,-79.45613168733345],[-35.63991207532831,-79.45613168733345],[-35.91410722506896,-79.08385466910292],[-35.77700965019869,-78.33924814876507],[-35.32654618991049,-78.12365407324327],[-33.89676266125883,-77.88852630631524],[-32.21236935070527,-77.65345021581956],[-30.998050706494553,-77.35951466894332],[-29.783732062284116,-77.06557912206725],[-28.882779303491418,-76.6736650595657],[-27.511751878355597,-76.49734507258577],[-26.16033565927478,-76.36014414485075],[-25.474821946706925,-76.28180267349629],[-23.92755204923975,-76.24258026138672],[-22.45859778491092,-76.10543101008423],[-21.224693772861826,-75.90947397883346],[-20.010375128651134,-75.67434621190543],[-18.913542853256217,-75.43921844497729],[-17.522981736714144,-75.1256975302625],[-16.641588507543986,-74.79253957127686],[-15.701490851290202,-74.49860402440062],[-15.407710333710838,-74.10674163833146],[-16.465320196996345,-73.87161387140341],[-16.112783575901233,-73.46011444106314],[-15.446855231171924,-73.14654184991606],[-14.408804897509015,-72.95058481866529],[-13.311972622113956,-72.71545705173733],[-12.29350765628962,-72.40193613702255],[-11.51006710452856,-72.01007375095311],[-11.020432908563066,-71.53976654066483],[-10.295774298534127,-71.2654163616273],[-9.101015183946146,-71.3242241415755],[-8.611380987980567,-71.65733042412884],[-7.416621873392387,-71.69650115980612],[-7.377451137715298,-71.3242241415755],[-6.868231573911089,-70.93231007907396],[-5.790984666354831,-71.03028859469926],[
2-5.536374884452727,-71.40261728936234],[-4.341667446296924,-71.46137339287807],[-3.048981492515566,-71.28505340589814],[-1.795492112627755,-71.16743784600183],[-.659489101555494,-71.22624562595003],[-.228636847322122,-71.6377450562903],[.868195428072966,-71.30463877373685],[1.886686232113505,-71.12826711032473],[3.022637566753474,-70.99111785902207],[4.139055209986992,-70.85391693128703],[5.157546014027616,-70.61878916435907],[6.273911980828871,-70.46205454521778],[7.135719842160654,-70.24651214612837],[7.74286624515787,-69.89376881930401],[8.487110223025269,-70.14853363050307],[9.525134718472259,-70.01133270276821],[10.24984500493349,-70.48163991305651],[10.817820672253333,-70.83433156344849],[11.953823683325595,-70.63837453219772],[12.404287143613999,-70.24651214612837],[13.422777947654424,-69.97216196709094],[14.734997592842035,-70.03091807060676],[15.126756626046642,-70.40324676526976],[15.94934207526859,-70.03091807060676],[17.026588982825217,-69.91335418714274],[18.201711053142276,-69.87418345146547],[19.259372592860075,-69.89376881930401],[20.3757385596615,-70.01133270276821],[21.452985467217843,-70.07014048271624],[21.92303429534479,-70.40324676526976],[22.56940311045139,-70.69718231214583],[23.66618370941427,-70.52081064873377],[24.84135745616362,-70.48163991305651],[25.977308790803676,-70.48163991305651],[27.093726434037308,-70.46205454521778],[28.09258019380681,-70.324853617483],[29.150241733524638,-70.20728973401899],[30.031583286262588,-69.93293955498129],[30.97173261894855,-69.75661956800153],[31.99017174655691,-69.65864105237605],[32.754052768695345,-69.38429087333854],[33.3024430681767,-68.83564219169571],[33.87041873549654,-68.50258758557456],[34.90849490737591,-68.65927052828349],[35.300202264148226,-69.01201385510792],[36.162010125479725,-69.24714162203597],[37.20003462092663,-69.16874847424904],[37.905107863116854,-69.5214401246412],[38.64940351741697,-69.77620493584017],[39.66789432145734,-69.54107716891204],[40.02043094255251,-69.10994069430093],[40.92135786312909,-68.93362070732118],[41.95943403500817,-68.60051442476774],[42.938702426939045,-68.46331349703271],[44.113876173688624,-68.26740814221424],[44.89729088723337,-68.0518657431249],[45.71992801288778,-67.81673797619678],[46.503342726432635,-67.60119557710746],[47.44344038268636,-67.71875946057148],[48.34441897969512,-67.3660678101795],[48.990736118369654,-67.09171763114189],[49.930885451055616,-67.11130299898045],[50.75347090027768,-66.87617523205247],[50.94932457866392,-66.52348358166041],[51.79154707215699,-66.2491334026229],[52.61413252137899,-66.05317637137213],[53.61303795758087,-65.89639007579862],[54.53355024599611,-65.81804860444399],[55.41494347516627,-65.8768047079599],[56.35504113141994,-65.97478322358538],[57.15809288923563,-66.2491334026229],[57.25596805199646,-66.6802182008017],[58.13736128116662,-67.01332448335515],[58.74450768416389,-67.28767466239266],[59.93931847518431,-67.40523854585669],[60.605220981697386,-67.6795887248942],[61.42780643091939,-67.95388722749944],[62.38748945501172,-68.01269500744755],[63.19048953639518,-67.81673797619678],[64.05234907415908,-67.40523854585669],[64.99244673041298,-67.62072926851371],[65.97171512234391,-67.73834482841002],[66.9118644550297,-67.85590871187414],[67.89113284696097,-67.93430185966079],[68.89003828316297,-67.93430185966079],[69.7126237323848,-68.97279144299844],[69.67345299670743,-69.22755625419725],[69.55594078967582,-69.6782264202147],[68.59625776558349,-69.93293955498129],[67.81273969917422,-70.30526824964429],[67.94988895047672,-70.69718231214583],[69.06630659371032,-70.67754526787499],[68.92915734240776,-71.06945933037653],[68.4199894550359,-71.44178802503953],[67.94988895047672,-71.85328745537961],[68.7137699726151,-72.1668083700944],[69.8693066750939,-72.26478688571987],[71.02489505400465,-72.08841522230775],[71.573285353486,-71.69650115980612],[71.90628828317486,-71.3242241415755],[72.45462690622409,-71.01070322686061],[73.08141035349215,-70.71676767998454],[73.33602013539425,-70.3640243531602],[73.86487674346918,-69.87418345146547],[74.49155683787265,-69.77620493584017],[75.62755984894491,-69.73703420016281],[76.62646528514679,-69.6194186402665],[77.64490441275521,-69.46268402112528],[78.13453860872053,-69.07076995862374],[78.42837080273219,-68.69844126396075],[79.11385867708387,-68.32621592216252],[80.09312706901486,-68.07150278739574],[80.93534956250775,-67.87554575614497],[81.48379153842151,-67.54238779715925],[82.0517672
20574141,-67.3660678101795],[82.77642581577041,-67.20928151460592],[83.77533125197246,-67.30726003023122],[84.67620649611669,-67.20928151460592],[85.65552656448003,-67.09171763114189],[86.7523588398748,-67.15047373465771],[87.4770174499038,-66.87617523205247],[87.9862886901403,-66.20991099051334],[88.35841067907396,-66.48426116955093],[88.8284078307685,-66.95456837983923],[89.67063032426157,-67.15047373465771],[90.63036502478624,-67.22886688244446],[91.59009972531081,-67.11130299898045],[92.60853885291905,-67.18969614676719],[93.5486365091729,-67.20928151460592],[94.17541995644095,-67.11130299898045],[95.01759077350172,-67.17011077892873],[95.78147179564021,-67.38565317801796],[96.68239871621685,-67.24850392671547],[97.75964562377308,-67.24850392671547],[98.68020958862061,-67.11130299898045],[99.71818240763511,-67.24850392671547],[100.38418826701283,-66.91534596772968],[100.89335615438463,-66.58223968517623],[101.5788957051686,-66.30788950613872],[102.8324109232727,-65.5632837932451],[103.47867638551483,-65.70048472097997],[104.24255740765315,-65.97478322358538],[104.90845991416629,-66.32752655040964],[106.18156050010882,-66.9349313355684],[107.16088056847215,-66.95456837983923],[108.0813928568871,-66.95456837983923],[109.15863976444368,-66.83700449637522],[110.23583499556779,-66.69980356864035],[111.05847212122214,-66.42550506603494],[111.74395999557393,-66.13156951915887],[112.86037763880753,-66.09234710704939],[113.60467329310742,-65.8768047079599],[114.388088006652,-66.07276173921068],[114.8973075704562,-66.38628265392546],[115.6023808126466,-66.69980356864035],[116.69916141160942,-66.66063283296299],[117.38470096239317,-66.91534596772968],[118.57946007698129,-67.17011077892873],[119.83292361865304,-67.26808929455402],[120.87099979053212,-67.18969614676719],[121.6544145040771,-66.87617523205247],[122.32036868702235,-66.56265431733769],[123.22129560759893,-66.48426116955093],[124.12227420460763,-66.6214620972859],[125.1602470236223,-66.71938893647891],[126.10039635630838,-66.56265431733769],[127.00142662974937,-66.56265431733769],[127.88276818248724,-66.66063283296299],[128.80328047090237,-66.75861134858846],[129.70425906791118,-66.58223968517623],[130.78145429903552,-66.42550506603494],[131.79994510307594,-66.38628265392546],[132.9358964377162,-66.38628265392546],[133.85646040256344,-66.28830413830016],[134.75738732313985,-66.20996266694571],[135.03158247288079,-65.72007008881869],[135.07075320855787,-65.30857065847843],[135.69748497939352,-65.58286916108366],[135.87380496637346,-66.0335910035334],[136.20670454319773,-66.44509043387367],[136.61804894424117,-66.778196716427],[137.46027143773395,-66.95456837983923],[138.5962227723741,-66.89576059989112],[139.90844241756147,-66.87617523205247],[140.80942101457035,-66.81736745210438],[142.12169233619014,-66.81736745210438],[143.06184166887616,-66.79778208426565],[144.37406131406365,-66.83700449637522],[145.49042728086502,-66.91534596772968],[146.19555219948788,-67.22886688244446],[145.99969852110152,-67.60119557710746],[146.64606733620818,-67.8951311239837],[147.72326256733234,-68.13025889091175],[148.83962853413377,-68.38502370211054],[150.13231448791495,-68.56129201265819],[151.48370486877965,-68.71812998466406],[152.50224734925249,-68.87481292737297],[153.63819868389257,-68.8945016480761],[154.28456749899922,-68.56129201265819],[155.1658573753048,-68.83564219169571],[155.92979007387552,-69.14921478284279],[156.8111316266134,-69.38429087333854],[158.0255277854724,-69.48226938896393],[159.18101281151874,-69.59983327242796],[159.67069868391658,-69.9917473349295],[160.8066500185565,-70.22687510185753],[161.5704793642628,-70.57961842868181],[162.6868970074964,-70.73635304782319],[163.84243370997493,-70.71676767998454],[164.9196806175312,-70.77552378350029],[166.11443973211945,-70.75593841566175],[167.30909549384305,-70.83433156344849],[168.42561648994118,-70.97148081475106],[169.4635893089559,-71.20666025811138],[170.501665480835,-71.40261728936234],[171.20679039945762,-71.69650115980612],[171.08922651599377,-72.08841522230775],[170.56042158435073,-72.4411585491321],[170.10995812406244,-72.89182871514939],[169.75736982653515,-73.24452036554153],[169.28732099840838,-73.65601979588163],[167.97510135322077,-73.8128060914552],[167.3874886416298,-74.16549774184719],[166.09480268784844,-74.38104014093668],[165.64439090399244,-74.77295420343822],[164.95885135320853,-75.14528289810121],[164.2341927431797,-75.4588
20381281602],[163.82279666570392,-75.8703032431562],[163.56823856023428,-76.24258026138672],[163.47026004460898,-76.69330210383654],[163.48989708887981,-77.06557912206725],[164.05787275619977,-77.4574415081365],[164.27336347885696,-77.82977020279932],[164.7434639834161,-78.18251352962378],[166.6041256045174,-78.31961110449404],[166.99578128485743,-78.75074757910525],[165.19387576727203,-78.9074830056907],[163.66621707585958,-79.12302540478001],[161.76638471908117,-79.16224781688967],[160.92416222558828,-79.73048186637097],[160.74789391504075,-80.20073740022714],[160.3169641461587,-80.57306609489004],[159.78821089094842,-80.94539478955303],[161.1200159039744,-81.27850107210648],[161.6292871442109,-81.69000050244657],[162.490991652678,-82.06227752067727],[163.70533613510483,-82.3954354796629],[165.09594892807885,-82.70895639437778],[166.6041256045174,-83.02247730909258],[168.895665318068,-83.33599822380737],[169.40478152900764,-83.82589080193438],[172.28393395414938,-84.0414332010237],[172.47704878162418,-84.11791432081567],[173.22408328683545,-84.4137102192544],[175.98567182851318,-84.15899708448764],[178.27721154206395,-84.47251799920242],[180,-84.71338],[180,-90],[-180,-90],[-180,-84.71338],[-179.942499356179,-84.72144337355249],[-179.0586773346912,-84.13941171664918],[-177.2567718171058,-84.45293263136388],[-177.14080667326584,-84.4179412271483],[-176.08467281807768,-84.0992591287584],[-175.94723461362776,-84.11044871021662],[-175.8298821686626,-84.11791432081567],[-174.38250281481567,-84.53432301222355],[-173.11655941474544,-84.11791432081567],[-172.8891055980128,-84.06101856886234],[-169.95122290757143,-83.88464690545011],[-168.99998898015872,-84.11791432081567],[-168.53019853419332,-84.23739023227446],[-167.0220993724034,-84.57049651482791],[-164.18214352115513,-84.82520964959458],[-161.92977454328144,-85.13873056430938],[-158.07137956442494,-85.3739100076697],[-155.19225297749927,-85.0995598286322],[-150.942098965438,-85.29551685988297],[-148.53307288307158,-85.60903777459767],[-145.88891822633298,-85.3151022277216],[-143.10771847860042,-85.0407520486839],[-142.8922794323756,-84.57049651482791],[-146.82906836646328,-84.53127410271834],[-150.06073157448395,-84.29614633579038],[-150.90292822976082,-83.90423227328884],[-153.58620113830017,-83.68868987419934],[-153.40990698953644,-83.23801970818207],[-153.0377591623865,-82.82652027784181],[-152.66563717345275,-82.45419158317881],[-152.86151669005505,-82.04269215283854],[-154.52629879455395,-81.7683936502333],[-155.2901798166924,-81.41565032340904],[-156.83744971415956,-81.10212940869425],[-154.40878658752223,-81.16093718864245],[-152.0976615061328,-81.00415089306878],[-150.64829260964262,-81.33730885205458],[-148.86599829811206,-81.04337330517833],[-147.22074988501947,-80.67104461051552],[-146.41774899619185,-80.33793832796201],[-146.77028642473127,-79.92643889762192],[-148.06294654029637,-79.65208871858422],[-149.53190080462508,-79.35820484814045],[-151.5884161041125,-79.29939706819223],[-153.3903216216978,-79.16224781688967],[-155.32937639058576,-79.06426930126419],[-155.97566769104415,-78.69193979915704],[-157.26830196839305,-78.37841888444225],[-158.0517683583701,-78.02567555761797],[-158.36513424378802,-76.88920745865502],[-157.87547420960647,-76.98723765071261],[-156.97457312724603,-77.3007585654275],[-155.32937639058576,-77.20272837336974],[-153.7428324045768,-77.06557912206725],[-152.92024695535474,-77.49666392024598],[-151.3337804839943,-77.39873708105289],[-150.00194963275192,-77.18314300553128],[-148.74848609108034,-76.90884450292596],[-147.61248308000808,-76.57573822037253],[-146.10440894899008,-76.47775970474706],[-146.14352800823497,-76.10543101008423],[-146.49609127499053,-75.73315399185353],[-146.202309949967,-75.38041066502917],[-144.90962399618581,-75.20403900161696],[-144.32203712281105,-75.53719696060276],[-142.7943525931826,-75.34123992935199],[-141.6387642142716,-75.08647511815293],[-140.20900652383614,-75.06688975031447],[-138.85759030475532,
2-74.96891123468899],[-137.50619992389053,-74.73378346776096],[-136.4289013399019,-74.51824106867164],[-135.21458269569126,-74.30269866958223],[-134.43119382036258,-74.36145477309796],[-133.74565426957864,-74.43984792088489],[-132.25716792873203,-74.30269866958223],[-130.92531123927358,-74.47901865656198],[-129.55428381413785,-74.45943328872343],[-128.2420383307342,-74.32228403742069],[-126.89062211165323,-74.42026255304616],[-125.40208247948586,-74.51824106867164],[-124.01149552472768,-74.47901865656198],[-122.56215246645368,-74.49860402440062],[-121.07361283428622,-74.51824106867164],[-119.7025595709343,-74.47901865656198],[-118.684145474098,-74.1850831096859],[-117.46980099167128,-74.02834849054462],[-116.21631161178348,-74.24389088963395],[-115.02155249719539,-74.06751922622189],[-113.94433142785505,-73.71482757582991],[-113.29798845096447,-74.02834849054462],[-112.94545182986936,-74.38104014093668],[-112.29908301476266,-74.71419809992241],[-111.2610585193157,-74.42026255304616],[-110.06632524294379,-74.79253957127686],[-108.7149090238628,-74.91010345474089],[-107.55934648316818,-75.1844536337784],[-106.14914832235509,-75.1256975302625],[-104.87607357462873,-74.94932586685044],[-103.36794857462263,-74.98849660252763],[-102.01650651732564,-75.1256975302625],[-100.64553076862228,-75.30201751724243],[-100.11669999876325,-74.87093271906352],[-100.76304297565402,-74.53782643651019],[-101.25270300983551,-74.1850831096859],[-102.54533728718458,-74.10674163833146],[-103.11331295450452,-73.73441294366837],[-103.32875200072927,-73.36208424900556],[-103.68128862182438,-72.61753021254415],[-102.91748511433443,-72.7546794638469],[-101.6052396309308,-72.81343556736263],[-100.31252783893343,-72.7546794638469],[-99.13737993040009,-72.9114140829881],[-98.11888912635956,-73.20534962986417],[-97.68803687212608,-73.55804128025633],[-96.336594814829,-73.61684906020443],[-95.04396053747993,-73.47969980890187],[-93.67290727412808,-73.28374277765093],[-92.43900326207901,-73.16617889418708],[-91.42056413447077,-73.40130666111511],[-90.08873328322841,-73.32291351332819],[-89.226951260113,-72.55872243259594],[-88.4239511787296,-73.0093925986134],[-87.26833696160259,-73.18576426202563],[-86.01482174349849,-73.08778574640016],[-85.19223629427654,-73.47969980890187],[-83.87999081087281,-73.51887054457896],[-82.66564632844612,-73.63643442804307],[-81.4709130520742,-73.8519768271324],[-80.68744666209705,-73.47969980890187],[-80.29579098175705,-73.12695648207742],[-79.29688554555497,-73.51887054457896],[-77.92585812041935,-73.42089202895366],[-76.90736731637881,-73.63643442804307],[-76.22187944202705,-73.96954071059642],[-74.89004859078477,-73.87161387140341],[-73.85202409533798,-73.65601979588163],[-72.83353329129747,-73.40130666111511],[-71.61921464708684,-73.26415740981237],[-70.20904232448993,-73.14654184991606],[-68.93591590033131,-73.0093925986134],[-67.95662167018415,-72.79385019952409],[-67.36906063502556,-72.48032928480929],[-67.134036220962,-72.04924448663039],[-67.25154842799375,-71.6377450562903],[-67.56494015162795,-71.24583099378876],[-67.91747677272306,-70.85391693128703],[-68.23084265814089,-70.46205454521778],[-68.48545244004299,-70.10931121839351],[-68.544208543559,-69.71739715589197],[-68.44628170436582,-69.32553476982272],[-67.97623287623898,-68.95320607515973],[-67.58449968125029,-68.54170664481946],[-67.42784257675757,-68.1498442587502],[-67.62367041692767,-67.71875946057148],[-67.74118262395939,-67.32684539806993],[-67.25154842799375,-66.87617523205247],[-66.70318396672863,-66.58223968517623],[-66.05681515162183,-66.20996266694571],[-65.37132727727018,-65.89639007579862],[-64.56827551945446,-65.60250620535467],[-64.1765423244658,-65.17142302206443],[-63.62815202498459,-64.89707284302673],[-63.00139441593262,-64.64230803182785],[-62.041685553624035,-64.58355192831195],[-61.41492794457207,-64.27003101359715],[-60.70985470238176,-64.07407398234638],[-59.887269253159616,-63.956510098882354],[-59.16258480491459,-63.701745287683565],[-58.59455746116225,-63.388224372968594],[-57.811142747617566,-63.27066048950466],[-57.223581712458895,-63.52542530070363],[-57.59572953960884,-63.85853158325706],[-58.614142829001,-64.15246713013312]]]]}},{type:"Feature",properties:{scalerank:3,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"France",SOV_A3:"FR1",ADM0_DIF:1,LEVEL:2,TYPE:"Dependency",ADMIN:"French Southern and Antarctic Lands",ADM0_A3:"ATF",GEOU_DIF:0,GEOUNIT:"French Southern and Antarctic Lands",GU_A3:"ATF",SU_DIF:0,SUBUNIT:"French Southern and Antarctic Lands",SU_A3:"ATF",BRK_DIFF:0,NAME:"Fr. S. Antarctic Lands",NAME_LONG:"French Southern and Antarctic Lands",BRK_A3:"ATF",BRK_NAME:"Fr. S. and Antarctic Lands",BRK_GROUP:null,ABBREV:"Fr. S.A.L.",POSTAL:"TF",FORMAL_EN:"Territory of the French Southern and Antarctic Lands",FORMAL_FR:null,NAME_CIAWF:null,NOTE_ADM0:"Fr.",NOTE_BRK:null,NAME_SORT:"French Southern and Antarctic Lands",NAME_ALT:null,MAPCOLOR7:7,MAPCOLOR8:5,MAPCOLOR9:9,MAPCOLOR13:11,POP_EST:140,POP_RANK:1,GDP_MD_EST:16,POP_YEAR:2017,LASTCENSUS:-99,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"FS",ISO_A2:"TF",ISO_A3:"ATF",ISO_A3_EH:"ATF",ISO_N3:"260",UN_A3:"-099",WB_A2:"-99",WB_A3:"-99",WOE_ID:28289406,WOE_ID_EH:28289406,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ATF",ADM0_A3_US:"ATF",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Seven seas (open ocean)",REGION_UN:"Seven seas (open ocean)",SUBREGION:"Seven seas (open ocean)",REGION_WB:"Sub-Saharan Africa",NAME_LEN:22,LONG_LEN:35,ABBREV_LEN:10,TINY:2,HOMEPART:-99,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[68.935,-48.625],[69.58,-48.94],[70.525,-49.065],[70.56,-49.255],[70.28,-49.71],[68.745,-49.775],[68.72,-49.2425],[68.8675,-48.83],[68.935,-48.625]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Australia",SOV_A3:"AU1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"Australia",ADM0_A3:"AUS",GEOU_DIF:0,GEOUNIT:"Australia",GU_A3:"AUS",SU_DIF:0,SUBUNIT:"Australia",SU_A3:"AUS",BRK_DIFF:0,NAME:"Australia",NAME_LONG:"Australia",BRK_A3:"AUS",BRK_NAME:"Australia",BRK_GROUP:null,ABBREV:"Auz.",POSTAL:"AU",FORMAL_EN:"Commonwealth of Australia",FORMAL_FR:null,NAME_CIAWF:"Australia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Australia",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:2,MAPCOLOR9:2,MAPCOLOR13:7,POP_EST:23232413,POP_RANK:15,GDP_MD_EST:1189e3,POP_YEAR:2017,LASTCENSUS:2006,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"AS",ISO_A2:"AU",ISO_A3:"AUS",ISO_A3_EH:"AUS",ISO_N3:"036",UN_A3:"036",WB_A2:"AU",WB_A3:"AUS",WOE_ID:-90,WOE_ID_EH:23424748,WOE_NOTE:"Includes Ashmore and Cartier Islands (23424749) and Coral Sea Islands (23424790).",ADM0_A3_IS:"AUS",ADM0_A3_US:"AUS",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Oceania",REGION_UN:"Oceania",SUBREGION:"Australia and New Zealand",REGION_WB:"East Asia & Pacific",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:5.7},geometry:{type:"MultiPolygon",coordinates:[[[[145.3979781434949,-40.792548516605976],[146.36412072162366,-41.13769540788333],[146.90858361225085,-41.000546156580754],[147.68925947488415,-40.808258152022674],[148.28906782449607,-40.875437514002115],[148.3598645367359,-42.06244516374643],[148.01730146707305,-42.40702361426861],[147.91405195535387,-43.21152231218849],[147.56456424376395,-42.93768889747386],[146.87034305235497,-43.63459726336208],[146.66332726459368,-43.58085377377854],[146.04837772032036,-43.54974456153887],[145.43192955951062,-42.69377613705626],[145.2950903668017,-42.03360971452754],[144.71807132383069,-41.162551771815785],[144.74375451067968,-40.7039751116577],[145.3979781434949,-40.792548516605976]]],[[[143.56181115130002,-13.763655694232199],[143.92209923723888,-14.54831064215199],[144.56371382057486,-14.171176039285868],[144.8949080751335,-14.594457696188613],[145.37472374896348,-14.984976495018358],[145.27199100156733,-15.428205254785766],[145.48525963763578,-16.28567229580476],[145.63703331927698,-16.784918308176586],[145.8889042502677,-16.906926364817636],[146.16030887266456,-17.76165455492523],[146.0636739442787,-18.28007252367729],[146.38747846901967,-18.95827402107588],[147.47108157774792,-19.48072275154675],[148.1776017600425,-19.955939222902757],[148.84841352762325,-20.391209812
2097244],[148.7174654481956,-20.633468926681587],[149.28942020080214,-21.26051075611109],[149.67833703023067,-22.342511895438378],[150.07738244038862,-22.122783705333305],[150.4829390810152,-22.556142266533],[150.72726525289121,-22.402404880464644],[150.89955447815234,-23.462236830338668],[151.60917524638424,-24.076256198830748],[152.07353966695914,-24.457886651306183],[152.85519738180588,-25.267501316023],[153.13616214417684,-26.071173191026176],[153.16194868389042,-26.64131926850243],[153.0929089703486,-27.260299574494496],[153.56946902894416,-28.110066827102088],[153.51210818910025,-28.995077406532744],[153.33909549378703,-29.458201592732436],[153.06924116435883,-30.350240166954805],[153.08960167868182,-30.923641859665437],[152.8915775901394,-31.640445651986028],[152.4500024762054,-32.55000253675523],[151.70911746643677,-33.041342054986416],[151.34397179586236,-33.81602345147384],[151.01055545471522,-34.31036020277796],[150.714139439089,-35.173459974916796],[150.32821984273326,-35.671879164371916],[150.07521203023228,-36.4202055803905],[149.94612430236722,-37.109052422841216],[149.99728397033616,-37.42526051203521],[149.4238822776255,-37.772681166333456],[148.30462243061592,-37.80906137466695],[147.3817330263153,-38.219217217767536],[146.92212283751135,-38.60653207779511],[146.31792199115486,-39.035756524411426],[145.48965213438058,-38.593767999019036],[144.87697635312819,-38.4174480120392],[145.03221235573292,-37.89618783951097],[144.48568240781404,-38.08532358169926],[143.6099735861961,-38.809465427405314],[142.745426873953,-38.53826751073751],[142.17832970598195,-38.38003427505983],[141.60658165910476,-38.308514092767865],[140.6385787294133,-38.01933277766254],[139.9921582378743,-37.402936293285094],[139.80658816951407,-36.643602797188265],[139.5741475770653,-36.13836231867066],[139.0828080588341,-35.73275400161177],[138.12074791885632,-35.61229623793939],[138.44946170466503,-35.12726124444788],[138.2075643251067,-34.38472258884592],[137.7191703635162,-35.07682504653101],[136.82940555231474,-35.26053476332861],[137.35237104710856,-34.707338555644085],[137.50388634658836,-34.13026783624076],[137.89011600153768,-33.64047861097842],[137.81032759007908,-32.9000070126681],[136.99683719294043,-33.75277149834862],[136.37206912653167,-34.094766127256264],[135.9890434103843,-34.89011809666047],[135.20821251845408,-34.478670342752594],[135.2392183778292,-33.94795338311505],[134.61341678277464,-33.22277800876313],[134.0859037619392,-32.84807219821475],[134.2739026226171,-32.61723357516695],[132.99077680880978,-32.01122405368018],[132.28808068250495,-31.982646986622754],[131.32633060112093,-31.495803318001037],[129.5357938986397,-31.590422865527472],[128.24093753470228,-31.948488864877845],[127.10286746633827,-32.282266941051034],[126.14871382050123,-32.21596607842059],[125.08862348846569,-32.72875131605282],[124.22164798390489,-32.95948658623605],[124.0289465678886,-33.4838473447017],[123.65966678273074,-33.890179131812715],[122.8110364116337,-33.91446705498991],[122.1830644064228,-34.00340219496421],[121.2991907085026,-33.82103606540622],[120.58026818245807,-33.93017669040661],[119.89369510302825,-33.9760653622818],[119.29889936734875,-34.50936614353395],[119.00734093635802,-34.46414926527852],[118.5057178081008,-34.746819349915086],[118.02497195848954,-35.0647327613747],[117.29550744025747,-35.025458672832855],[116.625109084135,-35.02509693780682],[115.56434695847972,-34.38642791111154],[115.0268087097796,-34.19651702243891],[115.04861616420683,-33.62342538832202],[115.54512332566716,-33.487257989232944],[115.71467370001673,-33.25957162855494],[115.6793786967614,-32.90036874769412],[115.80164513556397,-32.20506235120702],[115.68961063035519,-31.612437025683775],[115.16090905157702,-30.601594333622444],[114.9970430847795,-30.030724786094154],[115.04003787644635,-29.461095472940784],[114.64197431850206,-28.810230808224702],[114.61649783738213,-28.51639861421303],[114.17357913620847,-28.118076674107314],[114.04888390508822,-27.334765313427113],[113.47749759323696,-26.543134047147888],[113.3389530782625,-26.11654509857847],[113.77835778204027,-26.549025160429167],[113.44096235560656,-25.621278171493145],[113.93690107631167,-25.91123463308287
2],[114.23285200404726,-26.298446140245858],[114.21616051641698,-25.786281019801095],[113.72125532435777,-24.998938897402113],[113.625343866024,-24.68397104258314],[113.39352339076262,-24.384764499613254],[113.50204389857558,-23.806350192970243],[113.70699262904512,-23.560215345964053],[113.8434184102957,-23.059987481378727],[113.73655154831616,-22.475475355725365],[114.14975630092195,-21.755881036060998],[114.22530724493262,-22.51748829517871],[114.64776207891876,-21.829519952076993],[115.46016727097927,-21.49517343514853],[115.94737267462702,-21.068687839443697],[116.71161543179156,-20.701681817306806],[117.16631635952771,-20.62359872811379],[117.44154503791432,-20.746898695562237],[118.22955895393298,-20.37420826587322],[118.83608523974274,-20.263310642174815],[118.98780724495171,-20.04420256925731],[119.25249393115072,-19.952941989829824],[119.80522505094453,-19.97650644295497],[120.85622033089672,-19.683707777589177],[121.39985639860717,-19.239755547769718],[121.65513797412902,-18.70531788500712],[122.24166548064184,-18.19764861417184],[122.28662397673574,-17.798603204013986],[122.31277225147542,-17.254967136303435],[123.01257449757193,-16.405199883695843],[123.43378909718311,-17.268558037996215],[123.85934451710668,-17.069035332917238],[123.50324222218327,-16.596506036040438],[123.81707319549187,-16.11131601325198],[124.25828657439988,-16.327943617419535],[124.37972619028582,-15.567059828353962],[124.92615278534012,-15.075100192935395],[125.16727501841396,-14.680395603090076],[125.6700867046138,-14.510070082256007],[125.68579634003052,-14.230655612853823],[126.12514936737605,-14.347340996968924],[126.14282270721984,-14.0959868303012],[126.58258914602371,-13.952791436420483],[127.06586714081735,-13.817967624570912],[127.80463341686195,-14.276906019755117],[128.35968997610897,-14.869169610252243],[128.98554324759587,-14.87599089931473],[129.62147342337963,-14.969783623924542],[129.40960005098296,-14.420669854391107],[129.88864057832862,-13.618703301653468],[130.33946577364296,-13.357375583553463],[130.18350630098607,-13.10752003342229],[130.61779503796706,-12.536392103732453],[131.22349450086003,-12.183648776908186],[131.73509118054952,-12.302452894747148],[132.57529829318312,-12.114040622610986],[132.55721154188106,-11.60301238367667],[131.82469811414373,-11.273781833545172],[132.35722374891137,-11.128519382372716],[133.01956058159638,-11.376411228076819],[133.5508459819891,-11.78651539474511],[134.393068475482,-12.042365411022146],[134.678632440327,-11.941182956594673],[135.29849124566798,-12.248606052299024],[135.8826933127277,-11.962266940969783],[136.25838097548947,-12.049341729381595],[136.49247521377166,-11.857208754120379],[136.95162031468502,-12.351958916882808],[136.68512495335577,-12.887223402562029],[136.30540652887518,-13.291229750219884],[135.9617582541342,-13.324509372615864],[136.0776168153325,-13.72427825282577],[135.78383629775325,-14.2239893530882],[135.42866417861123,-14.715432224183886],[135.50018436090326,-14.997740573794417],[136.2951745952814,-15.550264987859094],[137.0653601421595,-15.87076222093333],[137.58047081924482,-16.215082289294074],[138.30321740127906,-16.807604261952733],[138.5851640158634,-16.806622409739163],[139.10854292211556,-17.062679131745355],[139.26057498591823,-17.371600843986172],[140.21524539607825,-17.710804945550038],[140.87546349503927,-17.36906869880393],[141.0711104676963,-16.83204721442671],[141.27409549373877,-16.38887013109168],[141.39822228410387,-15.840531508042574],[141.70218305884467,-15.044921156476917],[141.5633801617087,-14.56133310308958],[141.63552046118812,-14.270394789286271],[141.51986860571898,-13.698078301653794],[141.6509200380111,-12.944687595270551],[141.8426912782463,-12.741547539931261],[141.68699018775087,-12.407614434461124],[141.92862918514757,-11.877465915578767],[142.11848839738806,-11.328042087451593],[142.14370649634637,-11.042736504768214],[142.51526004452492,-10.668185723516714],[142.79731001197402,-11.157354831591505],[142.8667631369743,-11.784706719614917],[143.1159468934857,-11.905629571177897],[143.1586316265588,-12.325655612846177],[143.52212365129984,-12.834358412327404],[143.59715783098764,-13.40042205165257],[143.56181115130002,-13.763655694232199]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Austria",SOV_A3:"AUT",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Austria",ADM0_A3:"AUT",GEOU_DIF:0,GEOUNIT:"Austria",GU_A3:"AUT",SU_DIF:0,SUBUNIT:"Austria",SU_A3:"AUT",BRK_DIFF:0,NAME:"Austria",NAME_LONG:"Austria",BRK_A3:"AUT",BRK_NAME:"Austria",BRK_GROUP:null,ABBREV:"Aust.",POSTAL:"A",FORMAL_EN:"Republic of Austria",FORMAL_FR:null,NAME_CIAWF:"Austria",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Austria",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:1,MAPCOLOR9:3,MAPCOLOR13:4,POP_EST:8754413,POP_RANK:13,GDP_MD_EST:416600,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"AU",ISO_A2:"AT",ISO_A3:"AUT",ISO_A3_EH:"AUT",ISO_N3:"040",UN_A3:"040",WB_A2:"AT",WB_A3:"AUT",WOE_ID:23424750,WOE_ID_EH:23424750,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"AUT",ADM0_A3_US:"AUT",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Western Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[16.979666782304037,48.123497015976305],[16.90375410326726,47.71486562762833],[16.340584344150415,47.71290192320123],[16.534267612380376,47.49617096616912],[16.202298211337364,46.85238597267696],[16.011663852612656,46.6836107448117],[15.137091912504985,46.65870270444703],[14.63247155117483,46.43181732846955],[13.806475457421527,46.509306138691215],[12.376485223040788,46.76755910906982],[12.153088006243024,47.115393174826465],[11.16482791509327,46.94157949481273],[11.048555942436536,46.75135854754634],[10.44270145024663,46.89354625099743],[9.932448357796659,46.92072805438296],[9.479969516649021,47.102809963563374],[9.632931756232978,47.34760122332999],[9.59422610844635,47.52505809182027],[9.89606814946319,47.580196845075704],[10.402083774465211,47.30248769793916],[10.544504021861599,47.5663992376538],[11.426414015354737,47.523766181012974],[12.141357456112788,47.703083401065776],[12.620759718484493,47.67238760028441],[12.932626987365948,47.467645575544],[13.02585127122049,47.63758352313583],[12.884102817443875,48.28914581968786],[13.243357374737,48.416114813829054],[13.595945672264437,48.87717194273715],[14.338897739324722,48.55530528420721],[14.901447381254057,48.964401760445824],[15.253415561593982,49.03907420510758],[16.02964725105022,48.73389903420793],[16.499282667718774,48.78580801044511],[16.960288120194576,48.5969823268506],[16.879982944413,48.47001333270947],[16.979666782304037,48.123497015976305]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Azerbaijan",SOV_A3:"AZE",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Azerbaijan",ADM0_A3:"AZE",GEOU_DIF:0,GEOUNIT:"Azerbaijan",GU_A3:"AZE",SU_DIF:0,SUBUNIT:"Azerbaijan",SU_A3:"AZE",BRK_DIFF:0,NAME:"Azerbaijan",NAME_LONG:"Azerbaijan",BRK_A3:"AZE",BRK_NAME:"Azerbaijan",BRK_GROUP:null,ABBREV:"Aze.",POSTAL:"AZ",FORMAL_EN:"Republic of Azerbaijan",FORMAL_FR:null,NAME_CIAWF:"Azerbaijan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Azerbaijan",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:6,MAPCOLOR9:5,MAPCOLOR13:8,POP_EST:9961396,POP_RANK:13,GDP_MD_EST:167900,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"AJ",ISO_A2:"AZ",ISO_A3:"AZE",ISO_A3_EH:"AZE",ISO_N3:"031",UN_A3:"031",WB_A2:"AZ",WB_A3:"AZE",WOE_ID:23424741,WOE_ID_EH:23424741,WOE_
2NOTE:"Exact WOE match as country",ADM0_A3_IS:"AZE",ADM0_A3_US:"AZE",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"MultiPolygon",coordinates:[[[[46.50571984231797,38.770605373686294],[46.48349897643246,39.464154771475535],[46.03453413268065,39.62802073827308],[45.61001224140293,39.89999380142518],[45.89190717955509,40.21847565364001],[45.35917483905817,40.56150381119346],[45.56035118997045,40.812289537105926],[45.17949588397934,40.985353908851465],[44.97248009621808,41.248128567055595],[45.217426385281584,41.411451931314076],[45.96260053893039,41.123872585609774],[46.50163740416693,41.06444468847414],[46.63790815612058,41.181672675128226],[46.14543175637902,41.72280243587258],[46.404950799348825,41.860675157227305],[46.6860705910166,41.827137152669934],[47.37331546406628,41.21973236751117],[47.8156657244846,41.15141612402138],[47.98728315612598,41.40581920019423],[48.58435339611344,41.8088687916207],[49.110263706260724,41.28228668880055],[49.6189148293096,40.57292430273],[50.08482954285316,40.52615713150581],[50.392821079312654,40.25656118423913],[49.56920210144486,40.17610097916065],[49.395259230350376,39.399481716462276],[49.22322838725077,39.049218858387945],[48.85653242370765,38.81548635513178],[48.88324913920249,38.32024526626262],[48.63437544128479,38.27037750910097],[48.01074425638646,38.79401479751448],[48.35552941263788,39.28876496027692],[48.06009524922524,39.58223541926246],[47.68507938008307,39.50836395930122],[46.50571984231797,38.770605373686294]]],[[[44.79398969908195,39.71300263117706],[45.00198733905674,39.74000356704954],[45.29814497252144,39.471751207022464],[45.73997846861698,39.47399913182713],[45.73537926614301,39.31971914321974],[46.14362308124882,38.74120148371222],[45.45772179543877,38.87413910578306],[44.95268802265031,39.33576467544637],[44.79398969908195,39.71300263117706]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Burundi",SOV_A3:"BDI",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Burundi",ADM0_A3:"BDI",GEOU_DIF:0,GEOUNIT:"Burundi",GU_A3:"BDI",SU_DIF:0,SUBUNIT:"Burundi",SU_A3:"BDI",BRK_DIFF:0,NAME:"Burundi",NAME_LONG:"Burundi",BRK_A3:"BDI",BRK_NAME:"Burundi",BRK_GROUP:null,ABBREV:"Bur.",POSTAL:"BI",FORMAL_EN:"Republic of Burundi",FORMAL_FR:null,NAME_CIAWF:"Burundi",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Burundi",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:2,MAPCOLOR9:5,MAPCOLOR13:8,POP_EST:11466756,POP_RANK:14,GDP_MD_EST:7892,POP_YEAR:2017,LASTCENSUS:2008,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"BY",ISO_A2:"BI",ISO_A3:"BDI",ISO_A3_EH:"BDI",ISO_N3:"108",UN_A3:"108",WB_A2:"BI",WB_A3:"BDI",WOE_ID:23424774,WOE_ID_EH:23424774,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BDI",ADM0_A3_US:"BDI",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[29.339997592900346,-4.499983412294092],[29.276383904749053,-3.293907159034063],[29.024926385216787,-2.839257907730158],[29.632176141078588,-2.917857761246097],[29.93835900240794,-2.348486830254238],[30.469673645761223,-2.41385475710134],[30.52766,-2.80762],[30.74301,-3.03431],[30.75224,-3.35931],[30.50554,-3.56858],[30.11632,-4.09012],[29.753512404099865,-4.452389418153302],[29.339997592900346,-4.499983412294092]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Belgium",SOV_A3:"BEL",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Belgium",ADM0_A3:"BEL",GEOU_DIF:0,GEOUNIT:"Belgium",GU_A3:"BEL",SU_DIF:0,SUBUNIT:"Belgium",SU_A3:"BEL",BRK_DIFF:0,NAME:"Belgium",NAME_LONG:"Belgium",BRK_A3:"BEL",BRK_NAME:"Belgium",BRK_GROUP:null,ABBREV:"Belg.",POSTAL:"B",FORMAL_EN:"Kingdom of Belgium",FORMAL_FR:null,NAME_CIAWF:"Belgium",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Belgium",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:2,MAPCOLOR9:1,MAPCOLOR13:8,POP_EST:11491346,POP_RANK:14,GDP_MD_EST:508600,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"BE",ISO_A2:"BE",ISO_A3:"BEL",ISO_A3_EH:"BEL",ISO_N3:"056",UN_A3:"056",WB_A2:"BE",WB_A3:"BEL",WOE_ID:23424757,WOE_ID_EH:23424757,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BEL",ADM0_A3_US:"BEL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Western Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[4.047071160507528,51.26725861266857],[4.973991326526914,51.47502370869813],[5.606975945670001,51.03729848896978],[6.15665815595878,50.80372101501058],[6.04307335
27781111,50.128051662794235],[5.782417433300907,50.09032786722122],[5.674051954784829,49.529483547557504],[4.799221632515696,49.98537303323636],[4.286022983425084,49.907496649772554],[3.588184441755658,50.37899241800352],[3.123251580425659,50.78036326761455],[2.658422071960274,50.796848049515745],[2.513573032246114,51.148506171261886],[3.314971144228537,51.345780951536085],[3.31501148496416,51.34577662473805],[3.314971144228537,51.34575511331991],[4.047071160507528,51.26725861266857]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Benin",SOV_A3:"BEN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Benin",ADM0_A3:"BEN",GEOU_DIF:0,GEOUNIT:"Benin",GU_A3:"BEN",SU_DIF:0,SUBUNIT:"Benin",SU_A3:"BEN",BRK_DIFF:0,NAME:"Benin",NAME_LONG:"Benin",BRK_A3:"BEN",BRK_NAME:"Benin",BRK_GROUP:null,ABBREV:"Benin",POSTAL:"BJ",FORMAL_EN:"Republic of Benin",FORMAL_FR:null,NAME_CIAWF:"Benin",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Benin",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:2,MAPCOLOR9:2,MAPCOLOR13:12,POP_EST:11038805,POP_RANK:14,GDP_MD_EST:24310,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"BN",ISO_A2:"BJ",ISO_A3:"BEN",ISO_A3_EH:"BEN",ISO_N3:"204",UN_A3:"204",WB_A2:"BJ",WB_A3:"BEN",WOE_ID:23424764,WOE_ID_EH:23424764,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BEN",ADM0_A3_US:"BEN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[2.691701694356254,6.258817246928629],[1.865240512712319,6.142157701029731],[1.618950636409238,6.832038072126238],[1.664477573258381,9.12859039960938],[1.46304284018467,9.334624335157088],[1.425060662450136,9.825395412633],[1.077795037448738,10.175606594275024],[.772335646171484,10.470808213742359],[.899563022474069,10.99733938236426],[1.243469679376489,11.110510769083461],[1.447178175471066,11.547719224488858],[1.935985548519881,11.641150214072553],[2.154473504249921,11.940150051313339],[2.49016360841793,12.233052069543675],[2.848643019226586,12.23563589115821],[3.611180454125559,11.660167141155968],[3.572216424177469,11.32793935795152],[3.797112257511714,10.734745591673105],[3.600070021182802,10.332186184119408],[3.705438266625919,10.063210354040208],[3.220351596702101,9.444152533399702],[2.912308383810256,9.137607937044322],[2.723792758809509,8.50684540448971],[2.74906253420022,7.870734361192888],[2.691701694356254,6.258817246928629]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Burkina Faso",SOV_A3:"BFA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Burkina Faso",ADM0_A3:"BFA",GEOU_DIF:0,GEOUNIT:"Burkina Faso",GU_A3:"BFA",SU_DIF:0,SUBUNIT:"Burkina Faso",SU_A3:"BFA",BRK_DIFF:0,NAME:"Burkina Faso",NAME_LONG:"Burkina Faso",BRK_A3:"BFA",BRK_NAME:"Burkina Faso",BRK_GROUP:null,ABBREV:"B.F.",POSTAL:"BF",FORMAL_EN:"Burkina Faso",FORMAL_FR:null,NAME_CIAWF:"Burkina Faso",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Burkina Faso",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:1,MAPCOLOR9:5,MAPCOLOR13:11,POP_EST:20107509,POP_RANK:15,GDP_MD_EST:32990,POP_YEAR:2017,LASTCENSUS:2006,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"UV",ISO_A2:"BF",ISO_A3:"BFA",ISO_A3_EH:"BFA",ISO_N3:"854",UN_A3:"854",WB_A2:"BF",WB_A3:"BFA",WOE_ID:23424978,WOE_ID_EH:23424978,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BFA",ADM0_A3_US:"BFA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:12,LONG_LEN:12,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[2.154473504249921,11.940150051313339],[1.935985548519881,11.641150214072553],[1.447178175471066,11.547719224488858],[1.243469679376489,11.110510769083461],[.899563022474069,10.99733938236426],[.023802524423701,11.018681748900804],[-.438701544588582,11.098340969278722],[-.761575893548183,10.936929633015055],[-1.203357713211432,11.009819240762738],[-2.940409308270461,10.962690334512558],[-2.963896246747112,10.395334784380083],[-2.827496303712707,9.642460842319778],[-3.511898972986273,9.90032623945622],[-3.980449184576685,9.8623440617217],[-4.330246954760383,9.610834865757141],[-4.779883592131966,9.821984768101743],[-4.954653286143099,10.152713934769736],[-5.404341599946974,10.370736802609146],[-5.470564947929006,10.951269842976048],[-5.197842576508648,11.37514577885014],[-5.220941941743121,11.713858954307227],[-4.427166103523803,12.542645575404295],[-4.28040503581488,13.228443508349741],[-4.006390753587226,13.472485459848116],[-3.522802700199861,13.337661647998615],[-3.10370683431276,13.541266791228594],[-2.967694464520577,13.79815033615151],[-2.191824510090385,14.246417548067356],[-2.001035122068771,14.559008287000893],[-1.066363491205664,14.973815009007765],[-.515854458000348,15.116157741755728],[-.26625729003058,14.924308986872148],[.374892205414682,14.92890818934613],[.295646396495101,14.444234930880654],[.429927605805517,13.988733018443924],[.993045688490071,13.335749620003824],[1.024103224297477,12.851825669806574],[2.177107781593776,12.625017808477535],[2.154473504249921,11.940150051313339]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Bangladesh",SOV_A3:"BGD",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Bangladesh",ADM0_A3:"BGD",G
2EOU_DIF:0,GEOUNIT:"Bangladesh",GU_A3:"BGD",SU_DIF:0,SUBUNIT:"Bangladesh",SU_A3:"BGD",BRK_DIFF:0,NAME:"Bangladesh",NAME_LONG:"Bangladesh",BRK_A3:"BGD",BRK_NAME:"Bangladesh",BRK_GROUP:null,ABBREV:"Bang.",POSTAL:"BD",FORMAL_EN:"People's Republic of Bangladesh",FORMAL_FR:null,NAME_CIAWF:"Bangladesh",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Bangladesh",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:4,MAPCOLOR9:7,MAPCOLOR13:7,POP_EST:157826578,POP_RANK:17,GDP_MD_EST:628400,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"BG",ISO_A2:"BD",ISO_A3:"BGD",ISO_A3_EH:"BGD",ISO_N3:"050",UN_A3:"050",WB_A2:"BD",WB_A3:"BGD",WOE_ID:23424759,WOE_ID_EH:23424759,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BGD",ADM0_A3_US:"BGD",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Southern Asia",REGION_WB:"South Asia",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[92.67272098182556,22.041238918541254],[92.65225711463799,21.324047552978485],[92.30323449093868,21.47548533780982],[92.36855350135562,20.670883287025347],[92.08288618364614,21.19219513598577],[92.02521528520839,21.701569729086767],[91.83489098507744,22.182935695885565],[91.41708702999766,22.76501902922122],[90.49600630082728,22.80501658781513],[90.58695682166098,22.392793687422866],[90.27297081905556,21.83636770272011],[89.84746707556428,22.039146023033425],[89.70204959509493,21.857115790285306],[89.41886274613549,21.9661789006373],[89.03196129756623,22.055708319582976],[88.87631188350309,22.87914642993783],[88.52976972855379,23.631141872649167],[88.69994022009092,24.23371491138856],[88.08442223506242,24.501657212821925],[88.30637251175602,24.866079413344206],[88.93155398962308,25.238692328384776],[88.2097892598025,25.768065700782714],[88.56304935094977,26.446525580342723],[89.35509402868729,26.014407253518073],[89.83248091019962,25.96508209889548],[89.92069258012185,25.26974986419218],[90.87221072791212,25.132600612889547],[91.79959598182208,25.147431748957317],[92.37620161333481,24.976692816664965],[91.91509280799443,24.130413723237112],[91.46772993364368,24.072639471934792],[91.15896325069973,23.50352692310439],[91.70647505083211,22.985263983649187],[91.86992760617132,23.624346421802784],[92.14603478390681,23.627498684172593],[92.67272098182556,22.041238918541254]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Bulgaria",SOV_A3:"BGR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Bulgaria",ADM0_A3:"BGR",GEOU_DIF:0,GEOUNIT:"Bulgaria",GU_A3:"BGR",SU_DIF:0,SUBUNIT:"Bulgaria",SU_A3:"BGR",BRK_DIFF:0,NAME:"Bulgaria",NAME_LONG:"Bulgaria",BRK_A3:"BGR",BRK_NAME:"Bulgaria",BRK_GROUP:null,ABBREV:"Bulg.",POSTAL:"BG",FORMAL_EN:"Republic of Bulgaria",FORMAL_FR:null,NAME_CIAWF:"Bulgaria",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Bulgaria",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:5,MAPCOLOR9:1,MAPCOLOR13:8,POP_EST:7101510,POP_RANK:13,GDP_MD_EST:143100,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"BU",ISO_A2:"BG",ISO_A3:"BGR",ISO_A3_EH:"BGR",ISO_N3:"100",UN_A3:"100",WB_A2:"BG",WB_A3:"BGR",WOE_ID:23424771,WOE_ID_EH:23424771,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BGR",ADM0_A3_US:"BGR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Eastern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[22.65714969248299,44.23492300066128],[22.944832391051847,43.82378530534713],[23.332302280376325,43.897010809904714],[24.100679152124172,43.74105133724785],[25.569271681426926,43.68844472917472],[26.065158725699746,43.94349376075127],[27.242399529740908,44.175986029632405],[27.970107049275075,43.81246816667522],[28.558081495891997,43.70746165625813],[28.03909508638472,43.293171698574184],[27.67389773937805,42.57789236100622],[27.996720411905358,42.007358710287804],[27.13573937349048,42.14148489030134],[26.1170418637208,41.82690460872459],[26.106138136507127,41.328898830727866],[25.197201368925448,41.23448598893053],[24.492644891057978,41.58389618587208],[23.692073601992348,41.309080918943856],[22.952377150166452,41.33799388281115],[22.881373732197346,41.999297186850356],[22.380525750424592,42.32025950781509],[22.54501183440962,42.46136200618804],[22.43659467946128,42.580321153323936],[22.60480146657133,42.898518785161144],[22.986018507588483,43.2111612005271],[22.500156691180223,43.642814439461006],[22.410446404721597,44.008063462899955],[22.65714969248299,44.23492300066128]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"The Bahamas",SOV_A3:"BHS",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"The Bahamas",ADM0_A3:"BHS",GEOU_DIF:0,GEOUNIT:"The Bahamas",GU_A3:"BHS",SU_DIF:0,SUBUNIT:"The Bahamas",SU_A3:"BHS",BRK_DIFF:0,NAME:"Bahamas",NAME_LONG:"Bahamas",BRK_A3:"BHS",BRK_NAME:"Bahamas",BRK_GROUP:null,ABBREV:"Bhs.",POSTAL:"BS",FORMAL_EN:"Commonwealth of the Bahamas",FORMAL_FR:null,NAME_CIAWF:"Bahamas, The",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Bahamas, The",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:1,MAPCOLOR9:2,MAPCOLOR13:5,POP_EST:329988,POP_RANK:10,GDP_MD_EST:9066,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"BF",ISO_A2:"BS",ISO_A3:"BHS",ISO_A3_EH:"BHS",ISO_N3:"044",UN_A3:"044",WB_A2:"BS",WB_A3:"BHS",WOE_ID:23424758,WOE_ID_EH:23424758,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BHS",ADM0_A3_US:"BHS",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Caribbean",REGION_WB:"Latin America & Caribbean",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"MultiPolygon",coordinates:[[[[-77.53466,23.75975],[-77.78,23.71],[-78.03405,24.28615],[-78.40848,24.57564],[-78.19087,25.2103],[-77.89,25.17],[
2-77.54,24.34],[-77.53466,23.75975]]],[[[-77.82,26.58],[-78.91,26.42],[-78.98,26.79],[-78.51,26.87],[-77.85,26.84],[-77.82,26.58]]],[[[-77,26.59],[-77.17255,25.87918],[-77.35641,26.00735],[-77.34,26.53],[-77.78802,26.92516],[-77.79,27.04],[-77,26.59]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Bosnia and Herzegovina",SOV_A3:"BIH",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Bosnia and Herzegovina",ADM0_A3:"BIH",GEOU_DIF:0,GEOUNIT:"Bosnia and Herzegovina",GU_A3:"BIH",SU_DIF:0,SUBUNIT:"Bosnia and Herzegovina",SU_A3:"BIH",BRK_DIFF:0,NAME:"Bosnia and Herz.",NAME_LONG:"Bosnia and Herzegovina",BRK_A3:"BIH",BRK_NAME:"Bosnia and Herz.",BRK_GROUP:null,ABBREV:"B.H.",POSTAL:"BiH",FORMAL_EN:"Bosnia and Herzegovina",FORMAL_FR:null,NAME_CIAWF:"Bosnia and Herzegovina",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Bosnia and Herzegovina",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:1,MAPCOLOR9:1,MAPCOLOR13:2,POP_EST:3856181,POP_RANK:12,GDP_MD_EST:42530,POP_YEAR:2017,LASTCENSUS:1991,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"BK",ISO_A2:"BA",ISO_A3:"BIH",ISO_A3_EH:"BIH",ISO_N3:"070",UN_A3:"070",WB_A2:"BA",WB_A3:"BIH",WOE_ID:23424761,WOE_ID_EH:23424761,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BIH",ADM0_A3_US:"BIH",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:16,LONG_LEN:22,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4.5,MAX_LABEL:9.5},geometry:{type:"Polygon",coordinates:[[[19.36803,44.863],[19.11761,44.42307000000011],[19.59976,44.03847],[19.454,43.56810000000013],[19.21852,43.52384],[19.03165,43.43253],[18.70648,43.20011],[18.56,42.65],[17.674921502358984,43.02856252702361],[17.297373488034452,43.44634064388737],[16.91615644701733,43.66772247982567],[16.456442905348865,44.04123973243128],[16.23966027188453,44.35114329688571],[15.750026075918981,44.818711656262565],[15.959367303133376,45.23377676043094],[16.318156772535872,45.00412669532591],[16.534939406000206,45.21160757097772],[17.002146030351014,45.23377676043094],[17.861783481526402,45.067740383477144],[18.553214145591653,45.08158966733146],[19.005484597557594,44.86023449354299],[19.00548,44.86023],[19.36803,44.863]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Belarus",SOV_A3:"BLR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Belarus",ADM0_A3:"BLR",GEOU_DIF:0,GEOUNIT:"Belarus",GU_A3:"BLR",SU_DIF:0,SUBUNIT:"Belarus",SU_A3:"BLR",BRK_DIFF:0,NAME:"Belarus",NAME_LONG:"Belarus",BRK_A3:"BLR",BRK_NAME:"Belarus",BRK_GROUP:null,ABBREV:"Bela.",POSTAL:"BY",FORMAL_EN:"Republic of Belarus",FORMAL_FR:null,NAME_CIAWF:"Belarus",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Belarus",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:1,MAPCOLOR9:5,MAPCOLOR13:11,POP_EST:9549747,POP_RANK:13,GDP_MD_EST:165400,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"BO",ISO_A2:"BY",ISO_A3:"BLR",ISO_A3_EH:"BLR",ISO_N3:"112",UN_A3:"112",WB_A2:"BY",WB_A3:"BLR",WOE_ID:23424765,WOE_ID_EH:23424765,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BLR",ADM0_A3_US:"BLR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Eastern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[23.48412763844985,53.91249766704114],[24.450683628037037,53.905702216194754],[25.536353794056993,54.28242340760253],[25.7684326514798,54.84696259217509],[26.58827924979039,55.16717560487167],[26.494331495883756,55.615106919977634],[27.10245975109453,55.783313707087686],[28.176709425577997,56.169129950578814],[29.229513380660308,55.91834422466636],[29.371571893030673,55.670090643936184],[29.896294386522356,55.78946320253041],[30.87390913262001,55.55097646750341],[30.971835971813135,55.08154775656404],[30.75753380709872,54.81177094178432],[31.38447228366374,54.157056382862436],[31.79142418796224,53.974638576872124],[31.731272820774507,53.79402944601202],[32.405598585751164,53.61804535584204],[32.69364301934604,53.35142080343212],[32.30451948418823,53.13272614197291],[31.49764,53.16743000000017],[31.305200636528014,53.07399587667321],[31.54001834486226,52.74205231384647],[31.785970000000106,52.1016800000001],[31.785992447555266,52.10167756993971],[30.927549269338982,52.04235342061439],[30.619454380014815,51.822806098022454],[30.555117221811457,51.31950348571566],[30.157363722460897,51.41613841410147],[29.25493818534784,51.36823436136689],[28.992835320763533,51.602044379271476],[28.61761274589225,51.42771393493484],[28.24161502453657,51.572227077839
207],[27.454066196408405,51.592303371784396],[26.337958611768556,51.83228872334793],[25.32778771332701,51.91065603291855],[24.553106316839518,51.888461005249184],[24.00507775238418,51.617443956094405],[23.52707075368437,51.57845408793031],[23.508002150168693,52.02364655212473],[23.199493849386187,52.48697744405367],[23.79919884613338,52.69109935160657],[23.80493493011778,53.089731350306074],[23.527535841575002,53.470121568406555],[23.48412763844985,53.91249766704114]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Belize",SOV_A3:"BLZ",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Belize",ADM0_A3:"BLZ",GEOU_DIF:0,GEOUNIT:"Belize",GU_A3:"BLZ",SU_DIF:0,SUBUNIT:"Belize",SU_A3:"BLZ",BRK_DIFF:0,NAME:"Belize",NAME_LONG:"Belize",BRK_A3:"BLZ",BRK_NAME:"Belize",BRK_GROUP:null,ABBREV:"Belize",POSTAL:"BZ",FORMAL_EN:"Belize",FORMAL_FR:null,NAME_CIAWF:"Belize",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Belize",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:5,MAPCOLOR13:7,POP_EST:360346,POP_RANK:10,GDP_MD_EST:3088,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"BH",ISO_A2:"BZ",ISO_A3:"BLZ",ISO_A3_EH:"BLZ",ISO_N3:"084",UN_A3:"084",WB_A2:"BZ",WB_A3:"BLZ",WOE_ID:23424760,WOE_ID_EH:23424760,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BLZ",ADM0_A3_US:"BLZ",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Central America",REGION_WB:"Latin America & Caribbean",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[-89.14308041050333,17.808318996649405],[-89.15090938999553,17.95546763760042],[-89.02985734735182,18.001511338772488],[-88.84834387892661,17.883198147040233],[-88.49012285027935,18.486830552641607],[-88.3000310940937,18.4999822046599],[-88.29633622918482,18.35327281338327],[-88.10681291375438,18.348673610909287],[-88.1234785631685,18.07667470954101],[-88.2853549873228,17.644142971258034],[-88.19786678745265,17.489475409408456],[-88.30264075392444,17.131693630435663],[-88.23951799187991,17.036066392479555],[-88.35542822951057,16.530774237529627],[-88.55182451043585,16.265467434143147],[-88.73243364129594,16.233634751851355],[-88.93061275913527,15.887273464415076],[-89.22912167026928,15.886937567605171],[-89.15080603713095,17.015576687075836],[-89.14308041050333,17.808318996649405]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Bolivia",SOV_A3:"BOL",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Bolivia",ADM0_A3:"BOL",GEOU_DIF:0,GEOUNIT:"Bolivia",GU_A3:"BOL",SU_DIF:0,SUBUNIT:"Bolivia",SU_A3:"BOL",BRK_DIFF:0,NAME:"Bolivia",NAME_LONG:"Bolivia",BRK_A3:"BOL",BRK_NAME:"Bolivia",BRK_GROUP:null,ABBREV:"Bolivia",POSTAL:"BO",FORMAL_EN:"Plurinational State of Bolivia",FORMAL_FR:null,NAME_CIAWF:"Bolivia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Bolivia",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:5,MAPCOLOR9:2,MAPCOLOR13:3,POP_EST:11138234,POP_RANK:14,GDP_MD_EST:78350,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"BL",ISO_A2:"BO",ISO_A3:"BOL",ISO_A3_EH:"BOL",ISO_N3:"068",UN_A3:"068",WB_A2:"BO",WB_A3:"BOL",WOE_ID:23424762,WOE_ID_EH:23424762,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BOL",ADM0_A3_US:"BOL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:7,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7.5},geometry:{type:"Polygon",coordinates:[[[-62.685057135657885,-22.249029229422387],[-62.84646847192156,-22.03498544686945],[-63.986838141522476,-21.99364430103595],[-64.37702104354226,-22.79809132252354],[-64.96489213729461,-22.075861504812327],[-66.27333940292485,-21.83231047942072],[-67.1066735500636,-22.735924574476417],[-67.82817989772275,-22.872918796482168],[-68.21991309271128,-21.494346612231865],[-68.75716712103375,-20.372657972904463],[-68.44222510443092,-19.405068454671408],[-68.96681840684187,-18.981683444904107],[-69.10024695501951,-18.260125420812642],[-69.59042375352405,-17.58001189541936],[-68.9596353827533,-16.50069793057127],[-69.38976416693471,-15.660129082911652],[-69.16034664577495,-15.323973890853019],[-69.33953467474701,-14.953195489158832],[-68.9488866848366,-14.453639418193283],[-68.92922380234954,-13.602683607643009],[-68.88007951523997,-12.899729099176653],[-68.66507971868963,-12.561300144097173],[-69.52967810736496,-10.951734307502194],[-68.78615759954948,-11.03638030359628],[-68.27125362819326,-11.01452117273682],[-68.04819230820539,-10.712059014532485],[-67.17380123561074,-10.306812432499612],[-66.6469083319628,-9.931331475466862],[-65.33843522811642,-9.761987806846392],[-65.44483700220539,-10.511451104375432],[-65.32189876978302,-10.895872084194679],[-65.40228146021303,-11.566270440317155],[-64.3163529120316,-12.461978041232193],[-63.19649878605057,-12.627032565972435],[-62.803060268796386,-13.000653171442686],[-62.127080857986385,-13.198780612849724],[-61.71320431176078,-13.489202162330052],[-61.08412126325565,-13.479383640194598],[-60.503304002511136,-13.775954685117659],[-60.45919816755003,-14.354007256734555],[-60.26432634137737,-14.645979099183641],[-60.251148851142936,-15.07721892665932],[-60.54296566429515,-15.093910414289596],[
2-60.158389655179036,-16.258283786690086],[-58.24121985536668,-16.299573256091293],[-58.38805843772404,-16.877109063385276],[-58.28080400250225,-17.271710300366017],[-57.734558274961,-17.55246835700777],[-57.49837114117099,-18.174187513911292],[-57.67600887717431,-18.96183969490403],[-57.949997321185826,-19.40000416430682],[-57.85380164247451,-19.96999521248619],[-58.166392381408045,-20.176700941653678],[-58.183471442280506,-19.868399346600363],[-59.11504248720611,-19.3569060197754],[-60.04356462262649,-19.342746677327426],[-61.78632646345377,-19.633736667562964],[-62.2659612697708,-20.513734633061276],[-62.291179368729225,-21.051634616787393],[-62.685057135657885,-22.249029229422387]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Brazil",SOV_A3:"BRA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Brazil",ADM0_A3:"BRA",GEOU_DIF:0,GEOUNIT:"Brazil",GU_A3:"BRA",SU_DIF:0,SUBUNIT:"Brazil",SU_A3:"BRA",BRK_DIFF:0,NAME:"Brazil",NAME_LONG:"Brazil",BRK_A3:"BRA",BRK_NAME:"Brazil",BRK_GROUP:null,ABBREV:"Brazil",POSTAL:"BR",FORMAL_EN:"Federative Republic of Brazil",FORMAL_FR:null,NAME_CIAWF:"Brazil",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Brazil",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:6,MAPCOLOR9:5,MAPCOLOR13:7,POP_EST:207353391,POP_RANK:17,GDP_MD_EST:3081e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"3. Emerging region: BRIC",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"BR",ISO_A2:"BR",ISO_A3:"BRA",ISO_A3_EH:"BRA",ISO_N3:"076",UN_A3:"076",WB_A2:"BR",WB_A3:"BRA",WOE_ID:23424768,WOE_ID_EH:23424768,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BRA",ADM0_A3_US:"BRA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:5.7},geometry:{type:"Polygon",coordinates:[[[-57.625133429583,-30.216294854454233],[-56.29089962423908,-28.852760512000895],[-55.16228634298457,-27.881915378533492],[-54.490725267135524,-27.47475676850579],[-53.64873531758789,-26.92347258881609],[-53.628348965048744,-26.124865004177472],[-54.13004960795439,-25.547639255477254],[-54.625290696823576,-25.739255466415514],[-54.42894609233059,-25.162184747012166],[-54.29347632507745,-24.570799655863965],[-54.29295956075452,-24.02101409271073],[-54.65283423523513,-23.83957813893396],[-55.02790178080955,-24.00127369557523],[-55.40074723979542,-23.956935316668805],[-55.517639329639636,-23.571997572526637],[-55.610682745981144,-22.655619398694846],[-55.79795813660691,-22.356929620047822],[-56.47331743022939,-22.086300144135283],[-56.8815095689029,-22.28215382252148],[-57.937155727761294,-22.090175876557172],[-57.8706739976178,-20.73268767668195],[-58.166392381408045,-20.176700941653678],[-57.85380164247451,-19.96999521248619],[-57.949997321185826,-19.40000416430682],[-57.67600887717431,-18.96183969490403],[-57.49837114117099,-18.174187513911292],[-57.734558274961,-17.55246835700777],[-58.28080400250225,-17.271710300366017],[-58.38805843772404,-16.877109063385276],[-58.24121985536668,
2-16.299573256091293],[-60.158389655179036,-16.258283786690086],[-60.54296566429515,-15.093910414289596],[-60.251148851142936,-15.07721892665932],[-60.26432634137737,-14.645979099183641],[-60.45919816755003,-14.354007256734555],[-60.503304002511136,-13.775954685117659],[-61.08412126325565,-13.479383640194598],[-61.71320431176078,-13.489202162330052],[-62.127080857986385,-13.198780612849724],[-62.803060268796386,-13.000653171442686],[-63.19649878605057,-12.627032565972435],[-64.3163529120316,-12.461978041232193],[-65.40228146021303,-11.566270440317155],[-65.32189876978302,-10.895872084194679],[-65.44483700220539,-10.511451104375432],[-65.33843522811642,-9.761987806846392],[-66.6469083319628,-9.931331475466862],[-67.17380123561074,-10.306812432499612],[-68.04819230820539,-10.712059014532485],[-68.27125362819326,-11.01452117273682],[-68.78615759954948,-11.03638030359628],[-69.52967810736496,-10.951734307502194],[-70.0937522040469,-11.123971856331012],[-70.54868567572841,-11.009146823778465],[-70.48189388699117,-9.490118096558845],[-71.30241227892154,-10.079436130415374],[-72.18489071316985,-10.053597914269432],[-72.56303300646564,-9.520193780152717],[-73.22671342639016,-9.462212823121234],[-73.01538265653255,-9.032833347208062],[-73.57105933296707,-8.424446709835834],[-73.98723548042966,-7.523829847853065],[-73.7234014553635,-7.340998630404414],[-73.72448666044164,-6.91859547285064],[-73.1200274319236,-6.629930922068239],[-73.21971126981461,-6.089188734566078],[-72.9645072089412,-5.741251315944893],[-72.89192765978726,-5.274561455916981],[-71.74840572781655,-4.593982842633011],[-70.92884334988358,-4.401591485210368],[-70.7947688463023,-4.251264743673303],[-69.89363521999663,-4.298186944194327],[-69.44410193548961,-1.556287123219818],[-69.42048580593223,-1.122618503426409],[-69.5770653957766,-.549991957200163],[-70.02065589057005,-.185156345219539],[-70.01556576198931,.541414292804205],[-69.45239600287246,.706158758950693],[-69.25243404811906,.602650865070075],[-69.21863766140018,.985676581217433],[-69.80459672715773,1.089081122233466],[-69.81697323269162,1.714805202639624],[-67.86856502955884,1.692455145673392],[-67.5378100246747,2.03716278727633],[-67.2599975246736,1.719998684084956],[-67.0650481838525,1.130112209473225],[-66.87632585312258,1.253360500489336],[-66.32576514348496,.724452215982012],[-65.54826738143757,.78925446207603],[-65.35471330428837,1.0952822941085],[-64.61101192895987,1.328730576987042],[-64.19930579289051,1.49285492594602],[-64.08308549666609,1.91636912679408],[-63.368788011311665,2.200899562993129],[-63.42286739770512,2.411067613124175],[-64.2699991522658,2.497005520025567],[-64.40882788761792,3.126786200366624],[-64.3684944322141,3.797210394705246],[-64.81606401229402,4.056445217297423],[-64.62865943058755,4.14848094320925],[-63.88834286157416,4.020530096854571],[-63.093197597899106,3.770571193858785],[-62.804533047116706,4.006965033377952],[-62.08542965355913,4.162123521334308],[-60.96689327660154,4.536467596856639],[-60.601179165271944,4.91809804933213],[-60.73357418480372,5.200277207861901],[-60.21368343773133,5.244486395687602],[-59.980958624904886,5.014061184098139],[-60.11100236676738,4.574966538914083],[-59.767405768458715,4.423502915866607],[-59.53803992373123,3.958802598481938],[-59.815413174057866,3.606498521332085],[-59.97452490908456,2.755232652188056],[-59.71854570172675,2.24963043864436],[-59.64604366722126,1.786893825686789],[-59.03086157900265,1.317697658692722],[-58.540012986878295,1.268088283692521],[-58.429477098205965,1.463941962078721],[-58.11344987652502,1.507195135907025],[-57.66097103537737,1.682584947105639],[-57.335822923396904,1.948537705895759],[-56.78270423036083,1.863710842288654],[-56.539385748914555,1.899522609866921],[-55.995698004771754,1.817667141116601],[-55.905600145070885,2.02199575439866],[-56.0733418442903,2.220794989425499],[-55.973322109589375,2.510363877773017],[-55.569755011606,2.421506252447131],[-55.09758744975514,2.523748073736613],[-54.52475419779972,2.311848863123814],[-54.08806250671725,2.105556545414643],[-53.77852067728892,2.376702785650082],[-53.55483924011355,2.334896551925979],[-53.41846513529531,2.053389187015981],[-52.939657151894956,2.124857692875636],[-52.55642473001842,2.504705308437053],[-52.249337531123956,3.241094468596216],[-51.65779741067889,4.156232408053029],[-51.31714636901086,4.203490505383954],[-51.069771287629656,3.6503976
250564031],[-50.508875291533656,1.901563828942457],[-49.97407589374506,1.736483465986069],[-49.94710079608871,1.046189683431223],[-50.699251268096916,.222984117021682],[-50.38821082213214,-.078444512536819],[-48.62056677915632,-.235489190271821],[-48.58449662941659,-1.237805271005001],[-47.824956427590635,-.5816179337628],[-46.566583624851226,-.941027520352776],[-44.905703090990414,-1.551739597178134],[-44.417619187993665,-2.137750339367976],[-44.58158850765578,-2.691308282078524],[-43.418791266440195,-2.383110039889793],[-41.47265682632825,-2.912018324397116],[-39.97866533055404,-2.873054294449041],[-38.50038347019657,-3.700652357603396],[-37.2232521225352,-4.820945733258917],[-36.45293738457639,-5.109403578312154],[-35.59779578301047,-5.149504489770649],[-35.23538896334756,-5.464937432480247],[-34.89602983248683,-6.738193047719711],[-34.729993455533034,-7.343220716992967],[-35.12821204277422,-8.996401462442286],[-35.636966518687714,-9.649281508017815],[-37.046518724097,-11.040721123908803],[-37.68361161960736,-12.171194756725823],[-38.42387651218844,-13.038118584854288],[-38.67388709161652,-13.057652276260619],[-38.953275722802545,-13.793369642800023],[-38.88229814304965,-15.667053724838768],[-39.16109249526431,-17.208406670808472],[-39.2673392400564,-17.867746270420483],[-39.58352149103423,-18.262295830968938],[-39.76082333022764,-19.59911345792741],[-40.77474077001034,-20.904511814052423],[-40.94475623225061,-21.93731698983781],[-41.754164191238225,-22.370675551037458],[-41.98828426773656,-22.970070489190896],[-43.07470374202475,-22.96769337330547],[-44.64781185563781,-23.351959323827842],[-45.35213578955992,-23.796841729428582],[-46.47209326840554,-24.088968601174543],[-47.64897233742066,-24.885199069927722],[-48.4954581365777,-25.877024834905654],[-48.64100480812774,-26.623697605090932],[-48.474735887228654,-27.17591196056189],[-48.661520351747626,-28.18613453543572],[-48.8884574041574,-28.674115085567884],[-49.587329474472675,-29.224469089476337],[-50.696874152211485,-30.98446502047296],[-51.576226162306156,-31.77769825615321],[-52.256081305538046,-32.24536996839467],[-52.712099982297694,-33.19657805759118],[-53.373661668498244,-33.768377780900764],[-53.6505439927181,-33.20200408298183],[-53.209588995971544,-32.727666110974724],[-53.78795162618219,-32.047242526987624],[-54.57245154480512,-31.494511407193748],[-55.601510179249345,-30.853878676071393],[-55.97324459494094,-30.883075860316303],[-56.976025763564735,-30.109686374636127],[-57.625133429583,-30.216294854454233]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Brunei",SOV_A3:"BRN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Brunei",ADM0_A3:"BRN",GEOU_DIF:0,GEOUNIT:"Brunei",GU_A3:"BRN",SU_DIF:0,SUBUNIT:"Brunei",SU_A3:"BRN",BRK_DIFF:0,NAME:"Brunei",NAME_LONG:"Brunei Darussalam",BRK_A3:"BRN",BRK_NAME:"Brunei",BRK_GROUP:null,ABBREV:"Brunei",POSTAL:"BN",FORMAL_EN:"Negara Brunei Darussalam",FORMAL_FR:null,NAME_CIAWF:"Brunei",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Brunei",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:6,MAPCOLOR9:6,MAPCOLOR13:12,POP_EST:443593,POP_RANK:10,GDP_MD_EST:33730,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"BX",ISO_A2:"BN",ISO_A3:"BRN",ISO_A3_EH:"BRN",ISO_N3:"096",UN_A3:"096",WB_A2:"BN",WB_A3:"BRN",WOE_ID:23424773,WOE_ID_EH:23424773,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BRN",ADM0_A3_US:"BRN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"South-Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:6,LONG_LEN:17,ABBREV_LEN:6,TINY:2,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[114.20401655482837,4.525873928236805],[114.59996137904872,4.900011298029966],[115.45071048386981,5.44772980389159],[115.40570031134361,4.955227565933839],[115.34746097215066,4.316636053887009],[114.8695573263154,4.348313706881925],[114.65959598191353,4.007636826997754],[114.20401655482837,4.525873928236805]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Bhutan",SOV_A3:"BTN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Bhutan",ADM0_A3:"BTN",GEOU_DIF:0,GEOUNIT:"Bhutan",GU_A3:"BTN",SU_DIF:0,SUBUNIT:"Bhutan",SU_A3:"BTN",BRK_DIFF:0,NAME:"Bhutan",NAME_LONG:"Bhutan",BRK_A3:"BTN",BRK_NAME:"Bhutan",BRK_GROUP:null,ABBREV:"Bhutan",POSTAL:"BT",FORMAL_EN:"Kingdom of Bhutan",FORMAL_FR:null,NAME_CIAWF:"Bhutan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Bhutan",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:6,MAPCOLOR9:1,MAPCOLOR13:8,POP_EST:758288,POP_RANK:11,GDP_MD_EST:6432,POP_YEAR:2017,LASTCENSUS:2005,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"BT",ISO_A2:"BT",ISO_A3:"BTN",ISO_A3_EH:"BTN",ISO_N3:"064",UN_A3:"064",WB_A2:"BT",WB_A3:"BTN",WOE_ID:23424770,WOE_ID_EH:23424770,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BTN",ADM0_A3_US:"BTN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Southern Asia",REGION_WB:"South Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[91.69665652869665,27.77174184825165],[92.10371178585974,27.452614040633208],[92.03348351437509,26.83831045176356],[91.21751264848643,26.808648179628022],[90.37327477413407,26.87572418874288],[89.74452762243885,26.719402981059957],[88.83564253128938,27.098966376243762],[88.81424848832054,27.299315904239336],[89.47581017452111,28.042758897406397],[90.01582889197118,28.296438503527217],[90.7305139505678,28.064953925075756],[91.25885379431992,28.040614325466294],[91.69665652869665,27.77174184825165]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Botswana",SOV_A3:"BWA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Botswana",ADM0_A3:"BWA",GEOU_DIF:0,GEOUNIT:"Botswana",GU_A3:"BWA",SU_DIF:0,SUBUNIT:"Botswana",SU_A3:"BWA",BRK_DIFF:0,NAME:"Botswana",NAME_LONG:"Botswana",BRK_A3:"BWA",BRK_NAME:"Botswana",BRK_GROUP:null,ABBREV:"Bwa.",POSTAL:"BW",FORMAL_EN:"Republic of Botswana",FORMAL_FR:null,NAME_CIAWF:"Botswana",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Botswana",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:5,MAPCOLOR9:7,MAPCOLOR13:3,POP_EST:2214858,POP_RANK:12,GDP_MD_EST:35900,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"BC",ISO_A2:"BW",ISO_A3:"BWA",ISO_A3_EH:"BWA",ISO_N3:"072",UN_A3:"072",WB_A2:"BW",WB_A3:"BWA",WOE_ID:23424755,WOE_ID_EH:23424755,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"BWA",ADM0_A3_US:"BWA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Southern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[29.43218834810904,-22.091312758067588],[28.01723595552525,-22.82775359465908],[27.119409620886245,-23.574323011979775],[26.786406691197413,-24.240690606383485],[26.4857532081233,-24.616326592713104],[25.94165205252216,-24.69637338633322],[25.76584882986521,-25.17484547292368],[25.664666375437
272,-25.486816094669713],[25.025170525825786,-25.7196700985769],[24.211266717228796,-25.670215752873574],[23.73356977712271,-25.390129489851617],[23.312096795350186,-25.26868987396572],[22.8242712745149,-25.50045867279477],[22.57953169118059,-25.979447523708146],[22.105968865657868,-26.280256036079138],[21.605896030369394,-26.726533705351756],[20.88960900237174,-26.828542982695915],[20.66647016773544,-26.477453301704923],[20.75860924651184,-25.86813648855145],[20.16572553882719,-24.91796192800077],[19.895767856534434,-24.76779021576059],[19.89545779794068,-21.84915699634787],[20.88113406747587,-21.814327080983148],[20.910641310314535,-18.252218926672022],[21.655040317478978,-18.219146010005225],[23.1968583513393,-17.869038181227786],[23.579005568137717,-18.28126108162006],[24.217364536239213,-17.88934701911849],[24.520705193792537,-17.887124932529936],[25.08444339366457,-17.661815687737374],[25.264225701608012,-17.736539808831417],[25.649163445750162,-18.53602589281899],[25.85039147309473,-18.714412937090536],[26.164790887158485,-19.29308562589494],[27.296504754350508,-20.391519870691],[27.724747348753255,-20.49905852629039],[27.72722781750326,-20.851801853114715],[28.021370070108617,-21.485975030200585],[28.794656202924216,-21.63945403410745],[29.43218834810904,-22.091312758067588]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Central African Republic",SOV_A3:"CAF",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Central African Republic",ADM0_A3:"CAF",GEOU_DIF:0,GEOUNIT:"Central African Republic",GU_A3:"CAF",SU_DIF:0,SUBUNIT:"Central African Republic",SU_A3:"CAF",BRK_DIFF:0,NAME:"Central African Rep.",NAME_LONG:"Central African Republic",BRK_A3:"CAF",BRK_NAME:"Central African Rep.",BRK_GROUP:null,ABBREV:"C.A.R.",POSTAL:"CF",FORMAL_EN:"Central African Republic",FORMAL_FR:null,NAME_CIAWF:"Central African Republic",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Central African Republic",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:6,MAPCOLOR9:6,MAPCOLOR13:9,POP_EST:5625118,POP_RANK:13,GDP_MD_EST:3206,POP_YEAR:2017,LASTCENSUS:2003,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"CT",ISO_A2:"CF",ISO_A3:"CAF",ISO_A3_EH:"CAF",ISO_N3:"140",UN_A3:"140",WB_A2:"CF",WB_A3:"CAF",WOE_ID:23424792,WOE_ID_EH:23424792,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"CAF",ADM0_A3_US:"CAF",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Middle Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:20,LONG_LEN:24,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[15.279460483469109,7.421924546737969],[16.106231723706742,7.497087917506462],[16.290561557691888,7.754307359239306],[16.456184523187346,7.734773667832968],[16.705988396886255,7.508327541529979],[17.964929640380888,7.890914008002994],[18.38955488452322,8.281303615751824],[18.911021762780507,8.630894680206353],[18.812009718509273,8.982914536978626],[19.09400800952602,9.07484691002584],[20.05968549976427,9.012706000194854],[21.000868361096167,9.475985215691509],[21.723821648859456,10.567055568885976],[22.23112918466876,10.97188873946061],[22.864165480244225,11.142395127807546],[22.97754357269261,10.71446259199854],[23.554304233502194,10.089255275915308],[23.55724979014283,9.681218166538684],[23.394779087017184,9.265067857292223],[23.459012892355986,8.954285793488893],[23.805813429466752,8.666318874542426],[24.567369012152085,8.229187933785468],[25.11493248871679,7.825104071479174],[25.124130893664727,7.500085150579437
2],[25.79664798351118,6.979315904158071],[26.213418409945117,6.546603298362072],[26.465909458123235,5.94671743410187],[27.21340905122517,5.550953477394557],[27.37422610851749,5.233944403500061],[27.04406538260471,5.127852688004836],[26.402760857862543,5.150874538590871],[25.650455356557472,5.256087754737123],[25.278798455514305,5.170408229997192],[25.12883344900328,4.92724477784779],[24.805028924262416,4.89724660890235],[24.410531040146253,5.10878408448913],[23.29721398285014,4.609693101414223],[22.841479526468106,4.710126247573484],[22.70412356943629,4.633050848810157],[22.405123732195538,4.029160061047321],[21.659122755630023,4.22434194581372],[20.927591180106276,4.322785549329737],[20.290679152108936,4.691677761245288],[19.46778364429315,5.03152781821278],[18.93231245288476,4.709506130385975],[18.54298221199778,4.201785183118318],[18.45306521980993,3.504385891123349],[17.809900343505262,3.56019643799857],[17.133042433346304,3.728196519379452],[16.537058139724138,3.198254706226279],[16.012852410555354,2.267639675298085],[15.907380812247652,2.557389431158612],[15.862732374747482,3.013537298998983],[15.405395948964383,3.33530060466434],[15.036219516671252,3.851367295747124],[14.950953403389661,4.210389309094921],[14.47837243008047,4.732605495620447],[14.558935988023507,5.03059764243153],[14.459407179429348,5.4517605656103],[14.536560092841114,6.22695872642069],[14.776545444404576,6.408498033062045],[15.279460483469109,7.421924546737969]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Canada",SOV_A3:"CAN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Canada",ADM0_A3:"CAN",GEOU_DIF:0,GEOUNIT:"Canada",GU_A3:"CAN",SU_DIF:0,SUBUNIT:"Canada",SU_A3:"CAN",BRK_DIFF:0,NAME:"Canada",NAME_LONG:"Canada",BRK_A3:"CAN",BRK_NAME:"Canada",BRK_GROUP:null,ABBREV:"Can.",POSTAL:"CA",FORMAL_EN:"Canada",FORMAL_FR:null,NAME_CIAWF:"Canada",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Canada",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:6,MAPCOLOR9:2,MAPCOLOR13:2,POP_EST:35623680,POP_RANK:15,GDP_MD_EST:1674e3,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"1. Developed region: G7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"CA",ISO_A2:"CA",ISO_A3:"CAN",ISO_A3_EH:"CAN",ISO_N3:"124",UN_A3:"124",WB_A2:"CA",WB_A3:"CAN",WOE_ID:23424775,WOE_ID_EH:23424775,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"CAN",ADM0_A3_US:"CAN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Northern America",REGION_WB:"North America",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:5.7},geometry:{type:"MultiPolygon",coordinates:[[[[-63.6645,46.55001],[-62.9393,46.41587],[-62.01208,46.44314],[-62.50391,46.03339],[-62.87433,45.96818],[-64.1428,46.39265],[-64.39261,46.72747],[-64.01486,47.03601],[-63.6645,46.55001]]],[[[-61.806305,49.10506],[-62.29318,49.08717],[-63.58926,49.40069],[-64.51912,49.87304],[-64.17322,49.95718],[-62.85829,49.70641],[-61.835585,49.28855],[-61.806305,49.10506]]],[[[-123.51000158755114,48.51001089130344],[-124.01289078839957,48.370846259141445],[-125.65501277733836,48.82500458433853],[-125.95499446679275,49.17999583596759],[-126.85000443587187,49.53000031188046],[-127.0299934495444,49.81499583597008],[-128.0593363043662,49.9949590114266],[-128.44458410710212,50.53913768167607],[-128.35841365625544,50.77064809834371],[-127.30858109602997,50.552573554071984],[-126.69500097721229,50.40090322529542],[-125.75500667382317,50.29501821552941],[-125.41500158755879,49.95000051533262],[-124.92076818911933,49.47527497008343],[-123.92250870832109,49.06248362893584],[-123.51000158755114,48.51001089130344]]],[[[-56.134035814017096,50.68700979267925],[-56.79588172059525,49.8123086614909],[-56.143105027884275,50.15011749938287],[-55.471492275603,49.93581533466849],[-55.822401089080984,49.58712860777902],[-54.935142584845636,49.31301097268678],[-54.47377539734376,49.556691189159125],[-53.476549445191296,49.249138902374],[-53.7860137599713,48.51678050393366],[-53.086133999226234,48.68780365660356],[-52.958648240762216,48.15716421161443],[-52.64809872090416,47.53554840757553],[-53.0691582912184,46.65549876564498],[-53.521456264852986,46.618291734394774],[-54.17893551290251,46.80706574155701],[-53.96186865906054,47.
262520701760195],[-54.24048214376211,47.75227936460766],[-55.400773078011554,46.88499380145316],[-55.997480841685814,46.919720363953246],[-55.29121904155275,47.389562486351025],[-56.25079871278061,47.63254507098742],[-57.32522925477707,47.57280711525803],[-59.26601518414685,47.60334788674243],[-59.419494188053676,47.89945384377489],[-58.79658647320747,48.2515253769794],[-59.231624518456584,48.523188381537835],[-58.3918049790652,49.125580552764205],[-57.35868974468602,50.71827403421588],[-56.73865007183207,51.28743825947856],[-55.870976935435266,51.63209422464922],[-55.40697424988659,51.58827261006567],[-55.60021826844206,51.317074693397956],[-56.134035814017096,50.68700979267925]]],[[[-133.1800040417117,54.16997549093534],[-132.71000788443126,54.04000931542356],[-131.74998958400337,54.12000438090925],[-132.049480347351,52.98462148702447],[-131.1790425218266,52.18043284769831],[-131.577829549823,52.18237071390928],[-132.18042842677852,52.63970713969243],[-132.54999243231384,53.100014960332174],[-133.05461117875552,53.411468817755406],[-133.2396644827927,53.851080227262344],[-133.1800040417117,54.16997549093534]]],[[[-79.26582,62.158675],[-79.65752,61.63308],[-80.09956,61.7181],[-80.36215,62.01649],[-80.315395,62.085565],[-79.92939,62.3856],[-79.52002,62.36371],[-79.26582,62.158675]]],[[[-81.89825,62.7108],[-83.06857,62.15922],[-83.77462,62.18231],[-83.99367,62.4528],[-83.25048,62.91409],[-81.87699,62.90458],[-81.89825,62.7108]]],[[[-85.16130794954992,65.65728465439284],[-84.97576371940593,65.21751821558894],[-84.46401201041948,65.3717723659802],[-83.88262630891973,65.10961782496358],[-82.78757687043876,64.76669302027472],[-81.64201371939262,64.45513580998698],[-81.55344031444434,63.97960928003718],[-80.81736121287884,64.05748566350104],[-80.10345130076658,63.72598135034863],[-80.99101986359565,63.41124603947492],[-82.54717810741707,63.651722317145186],[-83.10879757356511,64.10187571883975],[-84.10041663281385,63.569711819098046],[-85.52340471061902,63.05237905542404],[-85.86676876498237,63.637252916103506],[-87.22198320183671,63.541238104905176],[-86.35275977247133,64.03583323837074],[-86.22488644076512,64.82291697860822],[-85.88384782585484,65.73877838811708],[-85.16130794954992,65.65728465439284]]],[[[-75.86588,67.14886],[-76.98687,67.09873],[-77.2364,67.58809],[-76.81166,68.14856],[-75.89521,68.28721],[-75.1145,68.01036],[-75.10333,67.58202],[-75.21597,67.44425],[-75.86588,67.14886]]],[[[-95.64768120380049,69.1076903583218],[-96.26952120380056,68.75704035832177],[-97.61740120380054,69.06003035832174],[-98.43180120380052,68.95070035832174],[-99.79740120380052,69.40003035832174],[-98.91740120380052,69.71003035832183],[-98.21826120380058,70.14354035832179],[-97.15740120380053,69.86003035832184],[-96.55740120380051,69.6800303583218],[-96.2574012038005,69.4900303583218],[-95.64768120380049,69.1076903583218]]],[[[-68.23444,47.35486],[-68.905,47.185000000000116],[-69.237216,47.447781],[-69.99997,46.69307],[-70.305,45.915],[-70.66,45.46],[-71.08482,45.3052400000002],[-71.405,45.255000000000166],[-71.50506,45.0082],[-73.34783,45.00738],[-74.867,45.00048000000015],[-75.31821,44.81645],[-76.375,44.09631],[-76.5,44.018458893758634],[-76.82003414580555,43.62878428809378],[-77.7378850979577,43.62905558936333],[-78.72027991404235,43.6250894231849],[-79.17167355011185,43.46633942318425],[-79.01,43.27],[-78.92,42.965],[-78.93936214874378,42.86361135514795],[-80.24744767934791,42.36619985612259],[-81.27774654816713,42.20902598730689],[-82.4392777167916,41.675105088867355],[-82.69008928092026,41.675105088867355],[-83.02981014680702,41.832795722005955],[-83.14199968131263,41.97568105729286],[-83.12,42.08],[-82.9,42.43],[-82.43,42.98],[-82.13764238150395,43.57108755144003],[-82.33776312543114,44.44000000000011],[-82.55092464875824,45.34751658790549],[-83.59285071484305,45.81689362241258],[-83.46955074739469,45.994686387712505],[-83.61613094759056,46.116926988298985],[-83.89076534700573,46.11692698829907],[-84.09185126416145,46.27541860613829],[-84.14211951367335,46.51222585711568],[-84.3367,46.408770000000146],[-84.6049,46.4396],[-84.54374874544584,46.538684190449175],[-84.77923824739989,46.637101955749074],[-84.87607988151493,46.90008331968241],[-85.6523632474034,47.22021881773054],[-86.46199083122823,47.55333801939196],[-87.43979262330029,47.94],[-88.3781141832867,48.30291758889368],[-89.27291744663665,48.019808254582784],[-89.6,48.01000000000013],[-90.83,48.27],[-91.64,48.14],[-92.61,48.45],[-93.63087,48.60926],[-94.32914,48.67074],[-94.64,48.84],[-94.81758,49.38905],[-95.15609,49.38425],[-95.15906950917204,49],[-97.22872000000478,49.0007],[-100.65,49.00000000000014],[-104.04826,48.99986],[-107.05,49],[-110.05,49],[-113,49.00000000000014],[-116.04818,49.00000000000014],[-117.03121,49],[-120,49],[-122.84,49.00000000000014],[-122.97421,49.002537777777746],[-124.91024,49.98456],[-125.62461,50.41656],[-127.43561,50.83061],[-127.99276,51.71583],[-127.85032,52.32961],[-129.12979,52.75538],[-129.30523,53.56159],[-130.51497,54.28757],[-130.53610895273678,54.802754476799336],[-130.53611,54.80278],[-129.98,55.285],[-130.00
2778,55.91583000000011],[-131.70781,56.55212],[-132.73042,57.69289],[-133.35556,58.41028],[-134.27111,58.86111],[-134.945,59.27056000000016],[-135.47583,59.78778],[-136.47972,59.46389],[-137.4525,58.905],[-138.34089,59.56211],[-139.039,60],[-140.013,60.27682],[-140.99778,60.30639],[-140.9925,66.00003],[-140.986,69.712],[-140.98598761037567,69.71199839952632],[-139.12052,69.47102],[-137.54636,68.99002],[-136.50358,68.89804],[-135.62576,69.31512],[-134.41464,69.62743],[-132.92925,69.50534],[-131.43136,69.94451],[-129.79471,70.19369],[-129.10773,69.77927],[-128.36156,70.01286],[-128.13817,70.48384],[-127.44712,70.37721],[-125.75632,69.48058],[-124.42483,70.1584],[-124.28968,69.39969],[-123.06108,69.56372],[-122.6835,69.85553],[-121.47226,69.79778],[-119.94288,69.37786],[-117.60268,69.01128],[-116.22643,68.84151],[-115.2469,68.90591],[-113.89794,68.3989],[-115.30489,67.90261],[-113.49727,67.68815],[-110.798,67.80612],[-109.94619,67.98104],[-108.8802,67.38144],[-107.79239,67.88736],[-108.81299,68.31164],[-108.16721,68.65392],[-106.95,68.7],[-106.15,68.8],[-105.34282,68.56122],[-104.33791,68.018],[-103.22115,68.09775],[-101.45433,67.64689],[-99.90195,67.80566],[-98.4432,67.78165],[-98.5586,68.40394],[-97.66948,68.57864],[-96.11991,68.23939],[-96.12588,67.29338],[-95.48943,68.0907],[-94.685,68.06383],[-94.23282,69.06903],[-95.30408,69.68571],[-96.47131,70.08976],[-96.39115,71.19482],[-95.2088,71.92053],[-93.88997,71.76015],[-92.87818,71.31869],[-91.51964,70.19129],[-92.40692,69.69997],[-90.5471,69.49766],[-90.55151,68.47499],[-89.21515,69.25873],[-88.01966,68.61508],[-88.31749,67.87338],[-87.35017,67.19872],[-86.30607,67.92146],[-85.57664,68.78456],[-85.52197,69.88211],[-84.10081,69.80539],[-82.62258,69.65826],[-81.28043,69.16202],[-81.2202,68.66567],[-81.96436,68.13253],[-81.25928,67.59716],[-81.38653,67.11078],[-83.34456,66.41154],[-84.73542,66.2573],[-85.76943,66.55833],[-86.0676,66.05625],[-87.03143,65.21297],[-87.32324,64.77563],[-88.48296,64.09897],[-89.91444,64.03273],[-90.70398,63.61017],[-90.77004,62.96021],[-91.93342,62.83508],[-93.15698,62.02469],[-94.24153,60.89865],[-94.62931,60.11021],[-94.6846,58.94882],[-93.21502,58.78212],[-92.76462,57.84571],[-92.29703,57.08709],[-90.89769,57.28468],[-89.03953,56.85172],[-88.03978,56.47162],[-87.32421,55.99914],[-86.07121,55.72383],[-85.01181,55.3026],[-83.36055,55.24489],[-82.27285,55.14832],[-82.4362,54.28227],[-82.12502,53.27703],[-81.40075,52.15788],[-79.91289,51.20842],[-79.14301,51.53393],[-78.60191,52.56208],[-79.12421,54.14145],[-79.82958,54.66772],[-78.22874,55.13645],[-77.0956,55.83741],[-76.54137,56.53423],[-76.62319,57.20263],[-77.30226,58.05209],[-78.51688,58.80458],[-77.33676,59.85261],[-77.77272,60.75788],[-78.10687,62.31964],[-77.41067,62.55053],[-75.69621,62.2784],[-74.6682,62.18111],[-73.83988,62.4438],[-72.90853,62.10507],[-71.67708,61.52535],[-71.37369,61.13717],[-69.59042,61.06141],[-69.62033,60.22125],[-69.2879,58.95736],[-68.37455,58.80106],[-67.64976,58.21206],[-66.20178,58.76731],[-65.24517,59.87071],[-64.58352,60.33558],[-63.80475,59.4426],[-62.50236,58.16708],[-61.39655,56.96745],[-61.79866,56.33945],[-60.46853,55.77548],[-59.56962,55.20407],[-57.97508,54.94549],[-57.3332,54.6265],[-56.93689,53.78032],[-56.15811,53.64749],[-55.75632,53.27036],[-55.68338,52.14664],[-56.40916,51.7707],[-57.12691,51.41972],[-58.77482,51.0643],[-60.03309,50.24277],[-61.72366,50.08046],[-63.86251,50.29099],[-65.36331,50.2982],[-66.39905,50.22897],[-67.23631,49.51156],[-68.51114,49.06836],[-69.95362,47.74488],[-71.10458,46.82171],[-70.25522,46.98606],[-68.65,48.3],[-66.55243,49.1331],[-65.05626,49.23278],[-64.17099,48.74248],[-65.11545,48.07085],[-64.79854,46.99297],[-64.47219,46.23849],[-63.17329,45.73902],[-61.52072,45.88377],[-60.51815,47.00793],[-60.4486,46.28264],[-59.80287,45.9204],[-61.03988,45.26525],[-63.25471,44.67014],[-64.24656,44.26553],[-65.36406,43.54523],[-66.1234,43.61867],[-66.16173,44.46512],[-64.42549,45.29204],[-66.02605,45.25931],[-67.13741,45.13753],[-67.79134,45.70281],[-67.79046,47.06636],[-68.23444,47.35486]]],[[[-114.16717,73.12145000000012],[-114.66634,72.65277000000012],[-112.44101999999987,72.95540000000014],[-111.05039,72.4504],[-109.92035,72.96113],[-109.00654,72.63335],[-108.18835,71.65089],[-107.68599,72.06548000000012],[-108.39639,73.08953],[-107.51645,73.23598],[-106.52259,73.07601],[-105.40246,72.67259],[-104.77484,71.69840000000013],[-104.46476,70.99297000000013],[-102.78537,70.49776],[-100.98077999999988,70.02432],[-101.08929,69.58447000000015],[-102.73115999999989,69.50402],[-102.09329,69.11962000000014],[-102.43024,68.75282],[-104.24,68.91000000000011],[-105.96,69.18],[-107.12254,69.11922],[-109,68.78],[-111.53414887520013,68.63005915681796],[-113.3132,68.53554],[-113.85496,69.00744],[-115.22,69.28000000000011],[-116.10794,69.16821],[-117.34,69.96000000000015],[-116.67473,70.06655],[-115.13112,70.2373],[-113.72141,70.19237000000012],[-112.4161,70.36638],[-114.35,70.6],[-116.48684,70.52045],[-117.9048,70.54056000000017],[-118.43238,70.9092],[-116.11311,71.30918],[-117.65568,71.2952],[-119.40199,71.55859],[-118.56267,72.30785],[-117.8664
21999999989,72.70594],[-115.18909,73.31459000000015],[-114.16717,73.12145000000012]]],[[[-104.5,73.42],[-105.38,72.76],[-106.94,73.46],[-106.6,73.6],[-105.26,73.64],[-104.5,73.42]]],[[[-76.34,73.10268498995305],[-76.25140380859372,72.8263854980469],[-77.31443786621097,72.85554504394531],[-78.39167022705078,72.87665557861331],[-79.48625183105472,72.74220275878903],[-79.77583312988281,72.80290222167969],[-80.8760986328125,73.33318328857428],[-80.83388519287112,73.69318389892581],[-80.3530578613281,73.75971984863281],[-78.06443786621091,73.65193176269531],[-76.34,73.10268498995305]]],[[[-86.56217851433411,73.15744700793849],[-85.77437130404454,72.53412588163386],[-84.85011247428821,73.34027822538707],[-82.31559017610104,73.75095083281064],[-80.60008765330761,72.71654368762415],[-80.74894161652446,72.06190664335071],[-78.77063859731075,72.35217316353419],[-77.82462398955957,72.74961660429099],[-75.6058446926757,72.24367849393744],[-74.22861609566496,71.76714427355785],[-74.09914079455768,71.3308401557176],[-72.24222571479763,71.55692454699454],[-71.20001542833518,70.92001251899717],[-68.78605424668487,70.52502370877431],[-67.91497046575691,70.12194753689766],[-66.96903337265422,69.18608734809183],[-68.8051228502006,68.72019847276445],[-66.44986609563392,68.06716339789205],[-64.8623144191952,67.84753856065166],[-63.42493445499673,66.9284732123406],[-61.85198137068056,66.86212067327787],[-62.163176845942274,66.16025136988964],[-63.918444383384156,64.99866852483288],[-65.14886023625371,65.42603261988671],[-66.72121904159852,66.38804108343223],[-68.01501603867402,66.26272573512443],[-68.14128740097922,65.6897891303044],[-67.08964616562338,65.10845510523694],[-65.73208045109973,64.64840566675858],[-65.32016760930125,64.38273712834612],[-64.66940629744965,63.39292674422751],[-65.01380388045888,62.674185085696024],[-66.27504472519044,62.945098781986104],[-68.7831862046927,63.74567007105185],[-67.36968075221313,62.88396556258482],[-66.32829728866719,62.280074774822],[-66.16556820338013,61.930897121825836],[-68.87736650254462,62.330149237712845],[-71.0234370591939,62.910708116295865],[-72.23537858751905,63.397836005295204],[-71.88627844917127,63.67998932560889],[-73.37830624051838,64.19396312118386],[-74.83441891142266,64.67907562932382],[-74.8185025702767,64.38909332951792],[-77.7099798245201,64.22954234481682],[-78.55594885935415,64.5729
20639918017],[-77.89728105336201,65.30919220647473],[-76.01827429879717,65.32696889918319],[-73.9597952948827,65.45476471624093],[-74.29388342964961,65.81177134872934],[-73.94491248238262,66.31057811142668],[-72.65116716173947,67.2845755072639],[-72.92605994331606,67.72692576768233],[-73.31161780464572,68.06943716091286],[-74.84330725777679,68.55462718370131],[-76.86910091826672,68.8947356228303],[-76.22864905465732,69.14776927354745],[-77.28736996123709,69.76954010688323],[-78.16863399932657,69.82648753526885],[-78.9572421943167,70.16688019477544],[-79.49245500356363,69.87180776638886],[-81.30547095409176,69.74318512641437],[-84.94470618359856,69.96663401964443],[-87.06000342481786,70.2600011257654],[-88.68171322300148,70.41074127876084],[-89.51341956252301,70.76203766548093],[-88.46772111688082,71.21818553332128],[-89.88815121128758,71.22255219184999],[-90.20516028518199,72.23507436796075],[-89.43657670770503,73.12946421985242],[-88.40824154331287,73.53788890247128],[-85.826151089201,73.80381582304517],[-86.56217851433411,73.15744700793849]]],[[[-100.35642,73.84389],[-99.16387,73.63339],[-97.38,73.76],[-97.12,73.47],[-98.05359,72.99052],[-96.54,72.56],[-96.72,71.66],[-98.35966,71.27285],[-99.32286,71.35639],[-100.01482,71.73827],[-102.5,72.51],[-102.48,72.83],[-100.43836,72.70588],[-101.54,73.36],[-100.35642,73.84389]]],[[[-93.19629553910019,72.7719924994733],[-94.26904659704724,72.024596259236],[-95.40985551632264,72.06188080513462],[-96.03374508338243,72.94027680123185],[-96.01826799191099,73.43742991809583],[-95.495793423224,73.86241689726421],[-94.5036575996524,74.13490672473924],[-92.42001217321175,74.10002513294222],[-90.50979285354256,73.85673248971207],[-92.00396521682987,72.96624420845856],[-93.19629553910019,72.7719924994733]]],[[[-120.46,71.38360179308754],[-123.09219,70.90164],[-123.62,71.34000000000012],[-125.9289487374734,71.86868846301144],[-125.5,72.29226081179505],[-124.80729,73.02256],[-123.94,73.68],[-124.91775,74.29275000000015],[-121.53788,74.44893],[-120.10978,74.24135],[-117.55564,74.18577],[-116.58442,73.89607],[-115.51081,73.47519],[-116.76794,73.22292],[-119.22,72.52],[-120.46,71.82],[-120.46,71.38360179308754]]],[[[-93.61275590694046,74.9799972602244],[-94.1569087389739,74.59234650338689],[-95.60868058956567,74.6668639187518],[-96.82093217648455,74.92762319609656],[-96.28858740922979,75.37782827422339],[-94.85081987178921,75.64721751576093],[-93.977746548218,75.29648956979602],[-93.61275590694046,74.9799972602244]]],[[[-98.5,76.72],[-97.735585,76.25656],[-97.704415,75.74344],[-98.16,75],[-99.80874,74.89744],[-100.88366,75.05736],[-100.86292,75.64075],[-102.50209,75.5638],[-102.56552,76.3366],[-101.48973,76.30537],[-99.98349,76.64634],[-98.57699,76.58859],[-98.5,76.72]]],[[[-108.21141,76.20168],[-107.81943,75.84552],[-106.92893,76.01282],[-105.881,75.9694],[-105.70498,75.47951],[-106.31347,75.00527],[-109.7,74.85],[-112.22307,74.41696],[-113.74381,74.39427],[-113.87135,74.72029],[-111.79421,75.1625],[-116.31221,75.04343],[-117.7104,75.2222],[-116.34602,76.19903],[-115.40487,76.47887],[-112.59056,76.14134],[-110.81422,75.54919],[-109.0671,75.47321],[-110.49726,76.42982],[-109.5811,76.79417],[-108.54859,76.67832],[-108.21141,76.20168]]],[[[-94.68408586299944,77.09787832305841],[-93.5739210680731,76.77629588490603],[-91.60502315953661,76.77851797149464],[-90.74184587274928,76.44959747995676],[-90.96966142450796,76.07401317005949],[-89.82223792189924,75.84777374948567],[-89.18708289259988,75.61016551380766],[-87.83827633334968,75.56618886992726],[-86.37919226758865,75.48242137318212],[-84.78962521029058,75.69920400664654],[-82.75344458691004,75.7843150906312],[-81.12853084992435,75.71398346628197],[-80.05751095245913,75.33684886341592],[-79.8339328681484,74.92312734648715],[-80.4577707587759,74.65730377877782],[-81.9488425361256,74.44245901152436],[-83.2288936022114,74.5640278184909],[-86.09745235873328,74.41003205026118],[-88.15035030796031,74.39230703398505],[-89.76472205275837,74.5155553250012],[-92.42244096552949,74.83775788034106],[-92.76828548864279,75.38681997344219],[-92.88990597204173,75.88265534128271],[-93.89382402217598,76.3192436795006],[-95.9624574450358,76.44138092722241],[-97.12137895382955,76.75107778594764],[-96.74512285031233,77.16138865834509],[-94.68408586299944,77.09787832305841]]],[[[-116.19858659550732,77.64528677032615],[-116.33581336145846,76.87696157501063],[-117.10605058476878,76.53003184681916],[-118.04041215703822,76.48117178008715],[-119.89931758688569,76.05321340606201],[-121.49999507712648,75.90001862253274],[-122.85492448615905,76.11654287383573],[-122.8549252936032,76.116
254287383573],[-121.15753536032823,76.8645075548283],[-119.10393897182112,77.51221995717458],[-117.57013078496594,77.49831899688817],[-116.19858659550732,77.64528677032615]]],[[[-93.84000301794399,77.51999726023453],[-94.29560828324523,77.49134267852872],[-96.16965410031005,77.55511139597692],[-96.4363044909361,77.83462921824369],[-94.42257727738635,77.82000478790505],[-93.72065629756594,77.6343313666803],[-93.84000301794399,77.51999726023453]]],[[[-110.18693803591304,77.69701487905033],[-112.05119116905847,77.40922882761691],[-113.53427893761913,77.73220652944119],[-112.72458675825392,78.051050116682],[-111.26444332563084,78.15295604116162],[-109.85445187054708,77.9963247748849],[-110.18693803591304,77.69701487905033]]],[[[-109.66314571820257,78.60197256134563],[-110.88131425661894,78.40691986765995],[-112.54209143761516,78.40790171987345],[-112.52589087609167,78.55055451121518],[-111.50001034223338,78.84999359813051],[-110.963660651476,78.80444082306525],[-109.66314571820257,78.60197256134563]]],[[[-95.83029496944931,78.05694122996329],[-97.309842902398,77.85059723582182],[-98.12428931353406,78.08285696075762],[-98.55286780474663,78.45810537384506],[-98.6319844225855,78.87193024363842],[-97.33723141151259,78.83198436147671],[-96.75439876990876,78.76581268992706],[-95.55927792029456,78.41831452098032],[-95.83029496944931,78.05694122996329]]],[[[-100.06019182005221,78.32475434031585],[-99.67093909381359,77.90754466420745],[-101.30394019245298,78.01898489044484],[-102.94980872273302,78.34322866486025],[-105.17613277873153,78.38033234324578],[-104.21042945027715,78.67742015249175],[-105.41958045125853,78.9183356798365],[-105.49228919149323,79.30159393992915],[-103.5292823962379,79.16534902619168],[-100.82515804726879,78.80046173777873],[-100.06019182005221,78.32475434031585]]],[[[-87.02,79.66],[-85.81435,79.3369],[-87.18756,79.0393],[-89.03535,78.28723],[-90.80436,78.21533],[-92.87669,78.34333],[-93.95116,78.75099],[-93.93574,79.11373],[-93.14524,79.3801],[-94.974,79.37248],[-96.07614,79.70502],[-96.70972,80.15777],[-96.01644,80.60233],[-95.32345,80.90729],[-94.29843,80.97727],[-94.73542,81.20646],[-92.40984,81.25739],[-91.13289,80.72345],[-89.45,80.50932203389831],[-87.81,80.32],[-87.02,79.66]]],[[[-68.5,83.10632151676577],[-65.82735,83.02801],[-63.68,82.9],[-61.85,82.6286],[-61.89388,82.36165],[-64.334,81.92775],[-66.75342,81.72527],[-67.65755,81.50141],[-65.48031,81.50657],[-67.84,80.9],[-69.4697,80.61683],[-71.18,79.8],[-73.2428,79.63415],[-73.88,79.43016220480206],[-76.90773,79.32309],[-75.52924,79.19766],[-76.22046,79.01907],[-75.39345,78.52581],[-76.34354,78.18296],[-77.88851,77.89991],[-78.36269,77.50859],[-79.75951,77.20968],[-79.61965,76.98336],[-77.91089,77.022045],[-77.88911,76.777955],[-80.56125,76.17812],[-83.17439,76.45403],[-86.11184,76.29901],[-87.6,76.42],[-89.49068,76.47239],[-89.6161,76.95213],[-87.76739,77.17833],[-88.26,77.9],[-87.65,77.97022222222228],[-84.97634,77.53873],[-86.34,78.18],[-87.96192,78.37181],[-87.15198,78.75867],[-85.37868,78.9969],[-85.09495,79.34543],[-86.50734,79.73624],[-86.93179,80.25145],[-84.19844,80.20836],[-83.40869565217389,80.1],[-81.84823,80.46442],[-84.1,80.58],[-87.59895,80.51627],[-89.36663,80.85569],[-90.2,81.26],[-91.36786,81.5531],[-91.58702,81.89429],[-90.1,82.085],[-88.93227,82.11751],[-86.97024,82.27961],[-85.5,82.65227345805698],[-84.260005,82.6],[-83.18,82.32],[-82.42,82.86],[-81.1,83.02],[-79.30664,83.13056],[-76.25,83.17205882352943],[-75.71878,83.06404],[-72.83153,83.23324],[-70.665765,83.16978075838287],[-68.5,83.10632151676577]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Switzerland",SOV_A3:"CHE",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Switzerland",ADM0_A3:"CHE",GEOU_DIF:0,GEOUNIT:"Switzerland",GU_A3:"CHE",SU_DIF:0,SUBUNIT:"Switzerland",SU_A3:"CHE",BRK_DIFF:0,NAME:"Switzerland",NAME_LONG:"Switzerland",BRK_A3:"CHE",BRK_NAME:"Switzerland",BRK_GROUP:null,ABBREV:"Switz.",POSTAL:"CH",FORMAL_EN:"Swiss Confederation",FORMAL_FR:null,NAME_CIAWF:"Switzerland",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Switzerland",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:2,MAPCOLOR9:7,MAPCOLOR13:3,POP_EST:8236303,POP_RANK:13,GDP_MD_EST:496300,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"SZ",ISO_A2:"CH",ISO_A3:"CHE",ISO_A3_EH:"CHE",ISO_N3:"756",UN_A3:"756",WB_A2:"CH",WB_A3:"CHE",WOE_ID:23424957,WOE_ID_EH:23424957,WOE_
2NOTE:"Exact WOE match as country",ADM0_A3_IS:"CHE",ADM0_A3_US:"CHE",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Western Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:11,LONG_LEN:11,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[9.59422610844635,47.52505809182027],[9.632931756232978,47.34760122332999],[9.479969516649021,47.102809963563374],[9.932448357796659,46.92072805438296],[10.44270145024663,46.89354625099743],[10.363378126678612,46.48357127540986],[9.922836541390382,46.31489940040919],[9.182881707403055,46.44021474871698],[8.966305779667778,46.03693187111119],[8.489952426801324,46.005150865251686],[8.31662967289438,46.16364248309086],[7.755992058959833,45.82449005795931],[7.273850945676656,45.776947740250776],[6.843592970414505,45.99114655210061],[6.500099724970397,46.42967275652944],[6.02260949059351,46.272989813820544],[6.037388950229001,46.725778713561866],[6.768713820023606,47.28770823830371],[6.736571079138059,47.54180125588283],[7.192202182655507,47.44976552997102],[7.466759067422231,47.62058197691181],[8.317301466514095,47.61357982033627],[8.522611932009767,47.83082754169129],[9.59422610844635,47.52505809182027]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Chile",SOV_A3:"CHL",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Chile",ADM0_A3:"CHL",GEOU_DIF:0,GEOUNIT:"Chile",GU_A3:"CHL",SU_DIF:0,SUBUNIT:"Chile",SU_A3:"CHL",BRK_DIFF:0,NAME:"Chile",NAME_LONG:"Chile",BRK_A3:"CHL",BRK_NAME:"Chile",BRK_GROUP:null,ABBREV:"Chile",POSTAL:"CL",FORMAL_EN:"Republic of Chile",FORMAL_FR:null,NAME_CIAWF:"Chile",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Chile",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:1,MAPCOLOR9:5,MAPCOLOR13:9,POP_EST:17789267,POP_RANK:14,GDP_MD_EST:436100,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"CI",ISO_A2:"CL",ISO_A3:"CHL",ISO_A3_EH:"CHL",ISO_N3:"152",UN_A3:"152",WB_A2:"CL",WB_A3:"CHL",WOE_ID:23424782,WOE_ID_EH:23424782,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"CHL",ADM0_A3_US:"CHL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"MultiPolygon",coordinates:[[[[-68.63401022758325,-52.636370458874445],[-68.63335,-54.8695],[-67.56244,-54.87001],[-66.95992,-54.89681],[-67.29102999999986,-55.30124],[-68.14863,-55.61183],[-68.6399908108119,-55.580017999086884],[-69.2321,-55.49906],[-69.95809,-55.19843],[-71.00568,-55.05383],[-72.2639,-54.49514],[-73.2852,-53.95752],[-74.66253,-52.83749],[-73.8381,-53.04743],[-72.43418,-53.7154],[-71.10773,-54.07433],[-70.59177999999989,-53.61583],[-70.26748,-52.93123],[-69.34564999999986,-52.5183],[-68.63401022758325,-52.636370458874445]]],[[[-67.1066735500636,-22.735924574476417],[-66.98523393417773,-22.986348565362817],[-67.3284429592442,-24.025303236590986],[-68.41765296087618,-24.518554782816864],[-68.38600114609733,-26.185016371365222],[-68.59479977077265,-26.506908868111253],[-68.29554155137038,-26.899339694935776],[-69.00123491074825,-27.521213881136205],[-69.65613033718313,-28.45914112723368],[-70.01355038112996,-29.367922865518537],[-69.91900834825191,-30.3363392066683],[-70.53506893581954,-31.365010267870275],[-70.07439938015361,-33.09120981214802],[-69.81477698431922,-33.27388600029984],[-69.81730912950155,-34.19357146579827],[-70.38804948594907,-35.169687595359534],[-70.36476925320164,-36.00508879978993],[-71.12188066270988,-36.65812387466232],[-71.11862504747549,-37.57682748794727],[-70.81466427273469,-38.552995293940725],[-71.41351660834906,-38.9160222307911],[-71.68076127794643,-39.80816415787805],[-71.91573401557761,-40.832339369470716],[-71.74680375841552,-42.05138640723598],[-72.1488980780785,-42.254888197601375],[-71.91542395698389,-43.40856454851742],[-71.46405615913048,-43.78761117937832],[-71.79362260607192,-44.20717213315609],[-71.32980078803618,-44.40752166115168],[-71.2227788967597,-44.7842428525594],[-71.65931555854533,-44.973688653341426],[
2-71.5520094468913,-45.56073292417712],[-71.91725847033018,-46.8848381487918],[-72.44735531278025,-47.73853281025352],[-72.33116085477201,-48.24423837666181],[-72.64824744331492,-48.878618259476866],[-73.4154357571201,-49.318436374712945],[-73.32805091011446,-50.37878508890995],[-72.97574683296469,-50.7414502907343],[-72.30997351753234,-50.67700977966635],[-72.32940385607401,-51.4259563128724],[-71.91480383979632,-52.00902230586591],[-69.49836218939606,-52.14276091263724],[-68.57154537624132,-52.29944385534625],[-69.46128434922662,-52.29195077266392],[-69.9427795071062,-52.53793059037325],[-70.84510169135461,-52.89920052852571],[-71.00633216010522,-53.83325204220134],[-71.42979468452103,-53.85645476030037],[-72.55794287788484,-53.531410001184454],[-73.70275672066293,-52.83506926860725],[-73.70275672066293,-52.835070076051494],[-74.94676347522514,-52.26275358841902],[-75.26002600777849,-51.62935475037321],[-74.9766324530899,-51.043395684615675],[-75.47975419788358,-50.37837167745155],[-75.60801510283201,-48.67377288187188],[-75.18276974150211,-47.711919447623245],[-74.12658098010468,-46.939253431995084],[-75.64439531116543,-46.6476433245721],[-74.69215369332312,-45.76397633238098],[-74.35170935738424,-44.10304412208798],[-73.24035600451518,-44.454960625995625],[-72.71780392117984,-42.38335580827898],[-73.38889990913822,-42.11753224056956],[-73.70133561877486,-43.365776462579745],[-74.33194312203264,-43.224958184584395],[-74.01795711942717,-41.79481292090682],[-73.67709937202994,-39.942212823243196],[-73.21759253609065,-39.258688653318586],[-73.50555945503714,-38.282882582351064],[-73.58806087919106,-37.15628468195601],[-73.1667170884993,-37.123780206044344],[-72.5531369696817,-35.50884002049102],[-71.86173214383265,-33.909092706031515],[-71.4384504869299,-32.41889942803081],[-71.66872066922244,-30.920644626592505],[-71.37008256700773,-30.095682061484993],[-71.48989437527644,-28.861442152625898],[-70.90512386746164,-27.64037973400127],[-70.72495398627595,-25.705924167587284],[-70.40396582709502,-23.62899667734453],[-70.09124589708074,-21.393319187101213],[-70.16441972520605,-19.756468194256172],[-70.37257239447771,-18.34797535570887],[-69.8584435696059,-18.092693780187005],[-69.59042375352405,-17.58001189541936],[-69.10024695501951,-18.260125420812642],[-68.96681840684187,-18.981683444904107],[-68.44222510443092,-19.405068454671408],[-68.75716712103375,-20.372657972904463],[-68.21991309271128,-21.494346612231865],[-67.82817989772275,-22.872918796482168],[-67.1066735500636,-22.735924574476417]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"China",SOV_A3:"CH1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"China",ADM0_A3:"CHN",GEOU_DIF:0,GEOUNIT:"China",GU_A3:"CHN",SU_DIF:0,SUBUNIT:"China",SU_A3:"CHN",BRK_DIFF:0,NAME:"China",NAME_LONG:"China",BRK_A3:"CHN",BRK_NAME:"China",BRK_GROUP:null,ABBREV:"China",POSTAL:"CN",FORMAL_EN:"People's Republic of China",FORMAL_FR:null,NAME_CIAWF:"China",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"China",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:4,MAPCOLOR9:4,MAPCOLOR13:3,POP_EST:1379302771,POP_RANK:18,GDP_MD_EST:2114e4,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"3. Emerging region: BRIC",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"CH",ISO_A2:"CN",ISO_A3:"CHN",ISO_A3_EH:"CHN",ISO_N3:"156",UN_A3:"156",WB_A2:"CN",WB_A3:"CHN",WOE_ID:23424781,WOE_ID_EH:23424781,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"CHN",ADM0_A3_US:"CHN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:5.7},geometry:{type:"MultiPolygon",coordinates:[[[[75.15802778514092,37.13303091078912],[74.98000247589542,37.419990139305895],[74.8299857929521,37.9900070257014],[74.86481570831683,38.3788463404816],[74.25751427602273,38.60650686294345],[73.92885216664644,38.50581533462274],[73.6753792662548,39.4312368841056],[73.96001305531843,39.660008449861735],[73.8222436868283,39.893973497063186],[74.77686242055606,40.36642527929163],[75.46782799673068,40.562072251948706],[76.52636803579745,40.42794607193512],[76.90448449087708,41.06648590754969],[78.18719689322597,41.18531586360481],[78.54366092317531,41.58224254003869],[80.11943037305139,42.12394074153825],[80.2599902688853,42.34999929459906],[80.1801501809943,42.92006785742694],[80.86620649610123,43.180362046881044],[79.96610639844141,44.91751699480466],[81.94707075391813,45.31702749285324],[82.4589258157691,45.539649563166535],[83.18048383986047,47.33003123635086],[85.16429039911324,47.000955715516056],[85.7204838398707,47.45296946877312],[85.7682328633083,48.45575063739699],[86.59877648310339,48.54918162698061],[87.35997033076265,49.21498078062919],[87.75126427607671,49.297197984405486],[88.01383222855173,48.599462795600616],[88.854297
272334676,48.069081732772965],[90.28082563676392,47.693549099307944],[90.97080936072499,46.88814606382289],[90.58576826371828,45.71971609148753],[90.94553958533427,45.28607330991028],[92.13389082231822,45.11507599545646],[93.4807336771413,44.975472113619965],[94.68892866412531,44.35233185482838],[95.30687544147153,44.2413308782655],[95.76245486855669,43.319449164394605],[96.34939578652781,42.725635280928685],[97.45175744017801,42.74888967546002],[99.51581749878004,42.524691473961724],[100.84586551310827,42.66380442969145],[101.83304039917994,42.51487295182628],[103.31227827353482,41.9074681666676],[104.52228193564898,41.90834666601654],[104.96499393109347,41.59740957291635],[106.12931562706169,42.13432770442891],[107.74477257693795,42.481515814781915],[109.24359581913146,42.5194463160841],[110.41210330611526,42.87123362891106],[111.12968224492023,43.40683401140015],[111.82958784388134,43.74311839453952],[111.66773725794323,44.07317576758771],[111.34837690637946,44.45744171811009],[111.8733061056003,45.10207937273506],[112.43606245325881,45.01164561622429],[113.46390669154417,44.80889313412712],[114.46033165899607,45.339816799493825],[115.98509647020009,45.727235012386004],[116.71786828009886,46.3882024196152
21],[117.42170128791419,46.67273285581426],[118.87432579963873,46.80541209572365],[119.66326989143876,46.69267995867892],[119.7728239278975,47.04805878355013],[118.86657433479493,47.747060044946124],[118.06414269416669,48.06673045510365],[117.29550744025741,47.69770905210743],[116.30895267137323,47.85341014260284],[115.74283735561576,47.72654450132629],[115.48528201707306,48.13538259540344],[116.19180219936757,49.134598090199106],[116.67880089728615,49.88853139912143],[117.87924441942639,49.51098338479699],[119.2884607280258,50.14288279886199],[119.27939,50.58292],[120.18208000000024,51.64355000000012],[120.7382,51.96411],[120.72578901579206,52.51622630473085],[120.17708865771684,52.75388621684124],[121.0030847514702,53.251401068731184],[122.24574791879283,53.431725979213724],[123.57147,53.4588],[125.0682112977104,53.16104482686896],[125.9463489116462,52.79279857035698],[126.564399041857,51.78425547953273],[126.93915652883774,51.35389415140594],[127.28745568248488,50.73979726826548],[127.65740000000031,49.760270000000105],[129.3978178244204,49.44060008401544],[130.5822933289824,48.72968740497615],[130.9872600000002,47.79013],[132.50669,47.78896],[133.37359581922797,48.18344167743487],[135.02631147678667,48.47822988544394],[134.50081,47.57845],[134.11235000000013,47.21248],[133.7696439963129,46.116926988298985],[133.09712000000022,45.14409],[131.88345421765953,45.321161607436466],[131.0251900000002,44.96796],[131.2885551291155,44.111519680348295],[131.14468794161488,42.92998973242689],[130.63386640840977,42.903014634770585],[130.63999970690958,42.39502427522177],[129.9942672059332,42.98538686784383],[129.59666873587952,42.42498179785456],[128.0522152039723,41.99428457291795],[128.20843305879066,41.46677155208249],[127.34378299368302,41.50315176041597],[126.86908328664984,41.81656932226619],[126.18204511932943,41.10733612727637],[125.07994184784062,40.569823716792484],[124.26562462778531,39.928493353834156],[122.86757042856098,39.637787583976205],[122.13138797413089,39.170451768544666],[121.05455447803288,38.89747101496283],[121.58599490772255,39.36085358332406],[121.37675703337274,39.750261338859474],[122.16859500538104,40.422442531895996],[121.64035851449356,40.94638987890335],[120.7686287
27816191,40.593388169917546],[119.63960208544913,39.898055935214245],[119.02346398323303,39.25233307551113],[118.04274865119797,39.20427399347972],[117.53270226447714,38.737635809884125],[118.05969852098971,38.061475531561086],[118.87814985562838,37.89732534438593],[118.91163618375347,37.448463853498765],[119.70280236214214,37.15638865818511],[120.8234574728236,37.87042776137801],[121.71125857959797,37.48112335870721],[122.35793745329849,37.45448415786072],[122.51999474496577,36.930614325501864],[121.10416385303304,36.65132904718044],[120.63700890511453,36.111439520811075],[119.66456180224608,35.60979055433776],[119.15120812385865,34.90985911716041],[120.22752485563373,34.36033193616865],[120.62036909391654,33.376722723925155],[121.22901411345023,32.46031871187719],[121.90814578663012,31.692174384074633],[121.89191938689035,30.949351508095134],[121.26425744027327,30.676267401648744],[121.5035193217847,30.142914943964286],[122.09211388558916,29.832520453403106],[121.93842817595308,29.018022365834753],[121.68443851123854,28.2255126002066],[121.12566124886646,28.135673122667214],[120.3954732605824,27.053206895449335],[119.58549686083958,25.74078054453264],[118.65687137255455,24.547390855400266],[117.28160647997086,23.624501451099633],[115.89073530483515,22.78287323657804],[114.76382734584624,22.6680740422417],[114.15254682826563,22.223760077396122],[113.80677981980071,22.54833974862146],[113.24107791550168,22.051367499270498],[111.84359215703253,21.55049367928143],[110.78546552942416,21.397143866455366],[110.44403934127175,20.34103261970631],[109.88986128137364,20.282457383703473],[109.62765506392472,21.00822703702667],[109.86448815311829,21.39505097094755],[108.52281294152445,21.715212307211857],[108.05018029178294,21.55237986906012],[107.04342003787261,21.811898912029932],[106.56727339073532,22.21820486092477],[106.72540327354844,22.794267889898407],[105.81124718630522,22.976892401617903],[105.3292094258866,23.352063300056898],[104.47685835166448,22.819150092046968],[103.50451460166056,22.70375661873921],[102.7069922221001,22.708795070887675],[102.17043582561358,22.464753119389304],[101.65201785686152,22.318198757409547],[101.80311974488293,21.17436676684507],[101.27002566935997,21.201651923095184],[101.18000532430753,21.436572984294003],[101.15003299357825,21.849984442629022],[100.41653771362738,21.558839423096614],[99.98348921102149,21.7429367131364],[99.24089887898722,22.118314317304595],[99.53199222208738,22.94903880461254],[98.89874922078278,23.14272207284253],[98.66026248575577,24.063286037689966],[97.60471967976198,23.897404690033042],[97.72460900267914,25.083637193293],[98.67183800658916,25.918702500913525],[98.71209394734451,26.743535874940267],[98.68269005737046,27.50881216075062],[98.2462309102333,27.74722138112918],[97.91198774616944,28.335945136014345],[97.32711388549004,28.26158274994634],[96.24883344928779,28.411030992134442],[96.58659061074749,28.83097951915434],[96.11767866413103,29.452802028922466],[95.40480228066464,29.03171662039213],[94.56599043170294,29.277438055939985],[93.41334760943269,28.640629380807226],[92.50311893104364,27.89687632904645],[91.69665652869665,27.77174184825165],[91.25885379431992,28.040614325466294],[90.7305139505678,28.064953925075756],[90.01582889197118,28.296438503527217],[89.47581017452111,28.042758897406397],[88.81424848832054,27.299315904239336],[88.73032596227856,28.086864732367516],[88.12044070836987,27.876541652939594],[86.9545170430006,27.974261786403517],[85.82331994013148,28.203575954698692],[85.01163821812304,28.642773952747344],[84.23457970575012,28.839893703724698],[83.89899295444673,29.320226141877658],[83.33711510613719,29.463731594352197],[82.32751264845088,30.115268052688137],[81.52580447787474,30.42271698660863],[81.11125613802932,30.183480943313402],[79.7213668151071,30.88271474865473],[78.73889448437401,31.515906073527063],[78.45844648632601,32.61816437431273],[79.1761287779955,32.48377981213778],[79.20889163606859,32.994394639613716],[78.81108646028574,33.50619802503242],[78.91226891471322,34.32193634697579],[77.83745079947457,35.494009507787766],[76.19284834178566,35.8984034286878],[75.89689741405013,36.66680613865182],[75.15802778514092,37.13303091078912]]],[[[110.3391878601515,18.678395087147607],[109.47520958866366,18.197700913968646],[108.65520796105616,18.50768199307143],[108.62621748254051,19.367887885001892],[109.11905561730808,19.821038519769388],[110.21159874882281,20.10125397387202],[110.78655073450219,20.07753449145008],[111.01005130416465,19.695929877190764],[110.57064660038677,19.255879218009255],[110.3391878601515,18.678395087147607]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Ivory Coast",SOV_A3:"CIV",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Ivory Coast",ADM0_A3:"CIV",GEOU_DIF:0,GEOUNIT:"Ivory Coast",GU_A3:"CIV",SU_DIF:0,SUBUNIT:"Ivory Coast",SU_A3:"CIV",BRK_DIFF:0,NAME:"Côte d'Ivoire",NAME_LONG:"Côte d'Ivoire",BRK_A3:"CIV",BRK_NAME:"Côte d'Ivoire",BRK_GROUP:null,ABBREV:"I.C.",POSTAL:"CI",FORMAL_EN:"Republic of Ivory Coast",FORMAL_FR:"Republic of Cote D'Ivoire",NAME_CIAWF:"Cote D'ivoire",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Côte d'Ivoire",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:6,MAPCOLOR9:3,MAPCOLOR13:3,POP_EST:24184810,POP_RANK:15,GDP_MD_EST:87120,POP_YEAR:2017,LASTCENSUS:1998,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"IV",ISO_A2:"CI",ISO_A3:"CIV",ISO_A3_EH:"CIV",ISO_N3:"384",UN_A3:"384",WB_A2:"CI",WB_A3:"CIV",WOE_ID:23424854,WOE_ID_EH:23424854,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"CIV",ADM0_A3_US:"CIV",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:13,LONG_LEN:13,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-5.404341599946974,10.370736802609146],[-4.954653286143099,10.152713934769736],[-4.779883592131966,9.821984768101743],[-4.330246954760383,9.610834865757141],[-3.980449184576685,9.8623440617217],[-3.511898972986273,9.90032623945622],[-2.827496303712707,9.642460842319778],[-2.562189500326241,8.219627793811483],[-2.983584967450327,7.379704901555513],[-3.244370083011262,6.250471503113502],[-2.81070146321784,5.38905121502411],[-2.856125047202397,4.994475816259509],[-3.311084357100071,4.984295559098015],[-4.008819545904942,5.179813340674315],[-4.649917364917911,5.168263658057086],[-5.834496222344526,4.993700669775137],[-6.528769090185847,4.705087795425015],[-7.518941209330436,4.338288479017308],[-7.71215938966975,4.364565944837722],[-7.635368211284031,5.188159084489456],[-7.539715135111763,5.313345241716519],[-7.570152553731688,5.707352199725904],[-7.993692592795881,6.126189683451543],[-8.311347622094019,6.193033148621083],[-8.6028802
21486862,6.46756419517166],[-8.385451626000574,6.911800645368743],[-8.48544552248535,7.39520783124307],[-8.439298468448698,7.686042792181738],[-8.280703497744938,7.687179673692157],[-8.221792364932199,8.123328762235573],[-8.299048631208564,8.316443589710303],[-8.20349890790088,8.455453192575447],[-7.832100389019188,8.575704250518626],[-8.07911373537435,9.376223863152035],[-8.30961646161225,9.789531968622441],[-8.229337124046822,10.1290202905639],[-8.029943610048619,10.206534939001713],[-7.899589809592372,10.297382106970828],[-7.622759161804809,10.147236232946796],[-6.850506557635057,10.138993841996239],[-6.666460944027548,10.430810655148449],[-6.493965013037268,10.411302801958271],[-6.205222947606431,10.524060777219134],[-6.050452032892267,10.096360785355444],[-5.816926235365287,10.222554633012194],[-5.404341599946974,10.370736802609146]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Cameroon",SOV_A3:"CMR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Cameroon",ADM0_A3:"CMR",GEOU_DIF:0,GEOUNIT:"Cameroon",GU_A3:"CMR",SU_DIF:0,SUBUNIT:"Cameroon",SU_A3:"CMR",BRK_DIFF:0,NAME:"Cameroon",NAME_LONG:"Cameroon",BRK_A3:"CMR",BRK_NAME:"Cameroon",BRK_GROUP:null,ABBREV:"Cam.",POSTAL:"CM",FORMAL_EN:"Republic of Cameroon",FORMAL_FR:null,NAME_CIAWF:"Cameroon",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Cameroon",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:1,MAPCOLOR13:3,POP_EST:24994885,POP_RANK:15,GDP_MD_EST:77240,POP_YEAR:2017,LASTCENSUS:2005,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"CM",ISO_A2:"CM",ISO_A3:"CMR",ISO_A3_EH:"CMR",ISO_N3:"120",UN_A3:"120",WB_A2:"CM",WB_A3:"CMR",WOE_ID:23424785,WOE_ID_EH:23424785,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"CMR",ADM0_A3_US:"CMR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Middle Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[15.279460483469109,7.421924546737969],[14.776545444404576,6.408498033062045],[14.536560092841114,6.22695872642069],[14.459407179429348,5.4517605656103],[14.558935988023507,5.03059764243153],[14.47837243008047,4.732605495620447],[14.950953403389661,4.210389309094921],[15.036219516671252,3.851367295747124],[15.405395948964383,3.33530060466434],[15.862732374747482,3.013537298998983],[15.907380812247652,2.557389431158612],[16.012852410555354,2.267639675298085],[15.940918816805066,1.727672634280296],[15.146341993885244,1.964014797367184],[14.33781253424658,2.227874660649491],[13.075822381246752,2.267097072759015],[12.951333855855609,2.32161570882694],[12.359380323952221,2.19281220133945],[11.75166548019979,2.326757513839993],[11.276449008843713,2.261050930180872],[9.649158155972628,2.283866075037736],[9.795195753629457,3.073404445809117],[9.404366896206,3.734526882335203],[8.948115675501072,3.904128933117136],[8.744923943729418,4.35221527751996],[8.48881554529089,4.495617377129918],[8.500287713259695,4.771982937026849],[8.757532993208628,5.479665839047911],[9.233162876023044,6.444490668153335],[9.522705926154401,6.453482367372117],[10.118276808318257,7.03876963950988],[10.497375115611419,7.055357774275564],[11.058787876030351,6.644426784690594],[11.74577436691851,6.981382961449754],[11.839308709366803,7.397042344589437],[12.063946160539558,7.799808457872302],[12.218872104550599,8.305824082874324],[12.753671502339216,8.717762762888995],[12.955467970438974,9.417771714714704],[13.167599724997103,9.640626328973411],[13.308676385153918,10.160362046748928],[13.572949659894562,10.798565985553566],[14.415378859116684,11.572368882692075],[14.468192172918975,11.904751695193411],[14.577177768622533,12.085360826053503],[14.181336297266794,12.483656927943116],[14.213530714584635,12.802035427293347],[14.495787387762846,12.85939626713733],[14.89336,12.21905],[14.9601518083376,11.555574042197224],[14.92356489427496,10.891325181517473],[15.467872755605242,9.982336737503545],[14.909353875394716,9.992129421422732],[14.62720055508106,9.920919297724538],[14.171466098699028,10.021378282099931],[13.954218377344006,9.549494940626687],[14.54446658698177,8.965861314322268],[14.97999555833769,8.796104234243472],[15.120865512765306,8.382150173369439],[15.436091749745742,7.692812404811889],[15.279460483469109,7.421924546737969]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Democratic Republic of the Congo",SOV_A3:"COD",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Democratic Republic of the Congo",ADM0_A3:"COD",GEOU_DIF:0,GEOUNIT:"Democratic Republic of the Congo",GU_A3:"COD",SU_DIF:0,SUBUNIT:"Democratic Republic of the Congo",SU_A3:"COD",BRK_DIFF:0,NAME:"Dem. Rep. Congo",NAME_LONG:"Democratic Republic of the Congo",BRK_A3:"COD",BRK_NAME:"Democratic Republic of the Congo",BRK_GROUP:null,ABBREV:"D.R.C.",POSTAL:"DRC",FORMAL_EN:"Democratic Republic of the Congo",FORMAL_FR:null,NAME_CIAWF:"Congo, Democratic Republic of the",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Congo, Dem. Rep.",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:4,MAPCOLOR9:4,MAPCOLOR13:7,POP_EST:83301151,POP_RANK:16,GDP_MD_EST:66010,POP_YEAR:2017,LASTCENSUS:1984,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"CG",ISO_A2:"CD",ISO_A3:"COD",ISO_A3_EH:"COD",ISO_N3:"180",UN_A3:"180",WB_A2:"ZR",WB_A3:"ZAR",WOE_ID:23424780,WOE_ID_EH:23424780,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"COD",ADM0_A3_US:"COD",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Middle Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:15,LONG_LEN:32,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[23.912215203555718,-10.926826267137514],[23.45679080576744,-10.867863457892483],[22.83734541188474,-11.01762175867431],[22.402798292742375,-10.993075453335692],[22.155268182064304,-11.08480112065375],[22.208753289486395,-9.894796237836509],[21.875181919042348,-9.523707777548537],[21.8018013851879,-8.90870655684298],[21.949130893652043,-8.305900974158277],[21.74645592620331,-7.920084730667099],[21.7281107927397,-7.290872491081302],[20.5147481625265,-7.299605808138629],[20.60182295093827,-6.939317722199675],[20.091621534920648,-6.943090101756994],[20.037723016040218,-7.116361179231646],[19.41750247567316,-7.155428562044299],[19.16661339689611,-7.738183688999754],[19.01675174324967,-7.988245944860132],[18.464175652752687,-7.847014255406443],[18.13422163256905,-7.987677504104923],[17.472970004962235,-8.068551120641644],[17.08999596524717,-7.545688978712526],[16.8601908708452,-7.222297865429987],[16.573179965896145,-6.622644545115087],[16.326528354567046,-5.877470391466268],[13.375597364971895,-5.864241224799549],[13.024869419006961,-5.984388929878158],[12.735171339578699,-5.965682061388499],[12.32243167486351,-6.
210009246177966],[12.182336866920252,-5.789930515163839],[12.436688266660868,-5.684303887559246],[12.468004184629706,-5.248361504744977],[12.631611769265788,-4.991271254092908],[12.995517205465177,-4.781103203961884],[13.258240187237048,-4.882957452009165],[13.600234816144678,-4.50013844159097],[14.144956088933299,-4.510008640158716],[14.209034864975223,-4.793092136253598],[14.582603794013181,-4.97023894615014],[15.170991652088444,-4.343507175314301],[15.753540073314753,-3.855164890156097],[16.0062895036543,-3.535132744972529],[15.972803175529151,-2.712392266453612],[16.407091912510054,-1.740927015798682],[16.865306837642123,-1.225816338713287],[17.523716261472856,-.743830254726987],[17.638644646889986,-.424831638189247],[17.66355268725468,-.058083998213817],[17.826540154703252,.288923244626105],[17.774191928791566,.855658677571085],[17.898835483479587,1.741831976728278],[18.094275750407434,2.365721543788055],[18.393792351971143,2.90044342692822],[18.45306521980993,3.504385891123349],[18.54298221199778,4.201785183118318],[18.93231245288476,4.709506130385975],[19.46778364429315,5.03152781821278],[20.290679152108936,4.691677761245288],[20.927591180106276,4.322785549329737],[21.659122755630023,4.22434194581372],[22.405123732195538,4.029160061047321],[22.70412356943629,4.633050848810157],[22.841479526468106,4.710126247573484],[23.29721398285014,4.609693101414223],[24.410531040146253,5.10878408448913],[24.805028924262416,4.89724660890235],[25.12883344900328,4.92724477784779],[25.278798455514305,5.170408229997192],[25.650455356557472,5.256087754737123],[26.402760857862543,5.150874538590871],[27.04406538260471,5.127852688004836],[27.37422610851749,5.233944403500061],[27.97997724784281,4.408413397637375],[28.428993768026913,4.287154649264494],[28.696677687298802,4.455077215996994],[29.1590784034465,4.389267279473231],[29.71599531425602,4.600804755060025],[29.953500197069474,4.173699042167684],[30.833852421715427,3.509171604222463],[30.83385989759381,3.509165961110341],[30.77334679538004,2.339883327642127],[31.174149204235817,2.204465236821264],[30.85267011894806,1.849396470543809],[30.46850752129029,1.583805446779706],[30.086153598762706,1.062312730306289],[29.875778842902434,.597379868976361],[29.819503208136638,-.205310153813372],[29.58783776217217,-.587405694179381],[29.579466180140884,-1.341313164885626],[29.291886834436614,-1.620055840667987],[29.254834832483343,-2.215109958508911],[29.117478875451553,-2.292211195488385],[29.024926385216787,-2.839257907730158],[29.276383904749053,-3.293907159034063],[29.339997592900346,-4.499983412294092],[29.519986606572928,-5.419978936386315],[29.419992710088167,-5.939998874539434],[29.620032179490014,-6.520015150583426],[30.199996779101696,-7.079980970898163],[30.74001549655179,-8.340007419470915],[30.740009731422095,-8.34000593035372],[30.346086053190817,-8.238256524288218],[29.00291222506047,-8.407031752153472],[28.734866570762502,-8.526559340044578],[28.449871046672826,-9.164918308146085],[28.67368167492893,-9.605924981324932],[28.49606977714177,-10.789883721564046],[28.372253045370428,-11.793646742401393],[28.642417433392353,-11.971568698782315],[29.34154788586909,-12.360743910372413],[29.61600141777123,-12.178894545137311],[29.69961388521949,-13.257226657771831],[28.934285922976837,-13.248958428605135],[28.523561639121027,-12.698604424696683],[28.155108676879987,-12.272480564017897],[27.388798862423783,-12.132747491100666],[27.164419793412463,-11.608748467661075],[26.553087599399618,-11.924439792532127],[25.752309604604733,-11.784965101776358],[25.418118116973204,-11.330935967659961],[24.78316979340295,-11.238693536018964],[24.31451622894795,-11.26282642989927],[24.25715538910399,-10.951992689663657],[23.912215203555718,-10.926826267137514]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Republic of the Congo",SOV_A3:"COG",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Republic of the Congo",ADM0_A3:"COG",GEOU_DIF:0,GEOUNIT:"Republic of the Congo",GU_A3:"COG",SU_DIF:0,SUBUNIT:"Republic of the Congo",SU_A3:"COG",BRK_DIFF:0,NAME:"Congo",NAME_LONG:"Republic of the Congo",BRK_A3:"COG",BRK_NAME:"Republic of the Congo",BRK_GROUP:null,ABBREV:"Rep. Congo",POSTAL:"CG",FORMAL_EN:"Republic of the Congo",FORMAL_FR:null,NAME_CIAWF:"Congo, Republic of the",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Congo, Rep.",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:1,MAPCOLOR9:3,MAPCOLOR13:10,POP_EST:4954674,POP_RANK:12,GDP_MD_EST:30270,POP_YEAR:2017,LASTCENSUS:200
27,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"CF",ISO_A2:"CG",ISO_A3:"COG",ISO_A3_EH:"COG",ISO_N3:"178",UN_A3:"178",WB_A2:"CG",WB_A3:"COG",WOE_ID:23424779,WOE_ID_EH:23424779,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"COG",ADM0_A3_US:"COG",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Middle Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:5,LONG_LEN:21,ABBREV_LEN:10,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[12.995517205465177,-4.781103203961884],[12.620759718484493,-4.438023369976136],[12.318607618873926,-4.606230157086188],[11.91496300624209,-5.037986748884791],[11.093772820691925,-3.978826592630547],[11.855121697648116,-3.426870619321051],[11.478038771214303,-2.765618991714241],[11.820963575903193,-2.514161472181982],[12.495702752338161,-2.391688327650243],[12.575284458067642,-1.948511244315135],[13.109618767965628,-2.428740329603514],[13.99240726080771,-2.4708049454891],[14.299210239324566,-1.998275648612214],[14.425455763413595,-1.333406670744971],[14.316418491277744,-.552627455247048],[13.843320753645656,.038757635901149],[14.276265903386957,1.196929836426619],[14.026668735417218,1.395677395021153],[13.282631463278818,1.31418366129688],[13.003113641012078,1.83089630778332],[13.075822381246752,2.267097072759015],[14.33781253424658,2.227874660649491],[15.146341993885244,1.964014797367184],[15.940918816805066,1.727672634280296],[16.012852410555354,2.267639675298085],[16.537058139724138,3.198254706226279],[17.133042433346304,3.728196519379452],[17.809900343505262,3.56019643799857],[18.45306521980993,3.504385891123349],[18.393792351971143,2.90044342692822],[18.094275750407434,2.365721543788055],[17.898835483479587,1.741831976728278],[17.774191928791566,.855658677571085],[17.826540154703252,.288923244626105],[17.66355268725468,-.058083998213817],[17.638644646889986,-.424831638189247],[17.523716261472856,-.743830254726987],[16.865306837642123,-1.225816338713287],[16.407091912510054,-1.740927015798682],[15.972803175529151,-2.712392266453612],[16.0062895036543,-3.535132744972529],[15.753540073314753,-3.855164890156097],[15.170991652088444,-4.343507175314301],[14.582603794013181,-4.97023894615014],[14.209034864975223,-4.793092136253598],[14.144956088933299,-4.510008640158716],[13.600234816144678,-4.50013844159097],[13.258240187237048,-4.882957452009165],[12.995517205465177,-4.781103203961884]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Colombia",SOV_A3:"COL",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Colombia",ADM0_A3:"COL",GEOU_DIF:0,GEOUNIT:"Colombia",GU_A3:"COL",SU_DIF:0,SUBUNIT:"Colombia",SU_A3:"COL",BRK_DIFF:0,NAME:"Colombia",NAME_LONG:"Colombia",BRK_A3:"COL",BRK_NAME:"Colombia",BRK_GROUP:null,ABBREV:"Col.",POSTAL:"CO",FORMAL_EN:"Republic of Colombia",FORMAL_FR:null,NAME_CIAWF:"Colombia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Colombia",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:1,MAPCOLOR9:3,MAPCOLOR13:1,POP_EST:47698524,POP_RANK:15,GDP_MD_EST:688e3,POP_YEAR:2017,LASTCENSUS:2006,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"CO",ISO_A2:"CO",ISO_A3:"COL",ISO_A3_EH:"COL",ISO_N3:"170",UN_A3:"170",WB_A2:"CO",WB_A3:"COL",WOE_ID:23424787,WOE_ID_EH:23424787,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"COL",ADM0_A3_US:"COL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[-66.87632585312258,1.253360500489336],[-67.0650481838525,1.130112209473225],[-67.2599975246736,1.719998684084956],[-67.5378100246747,2.03716278727633],[-67.86856502955884,1.692455145673392],[-69.81697323269162,1.714805202639624],[-69.80459672715773,1.089081122233466],[-69.21863766140018,.985676581217433],[-69.25243404811906,.602650865070075],[-69.45239600287246,.706158758950693],[-70.01556576198931,.541414292804205],[-70.02065589057005,-.185156345219539],[-69.5770653957766,-.549991957200163],[-69.42048580593223,-1.122618503426409],[-69.44410193548961,-1.556287123219818],[-69.89363521999663,-4.298186944194327],[-70.39404395209499,-3.766591485207825],[-70.69268205430971,-3.742872002785859],[-70.04770850287485,-2.725156345229699],[-70.81347571479196,-2.256864515800743],[-71.41364579942979,-2.342802422702128],[-71.7747607082854,-2.169789727388938],[-72.32578650581365,-2.434218031426454],[-73.07039221870724,-2.308954359550953],[-73.6595035468346,-1.260491224781134],[-74.12239518908906,-1.002832533373848],[-74.44160051135597,-.530820000819887],[-75.10662451852008,-.05720549886486],[-75.37322323271385,-.15203175212045],[-75.8014658271166,.084801337073202],[-76.29231441924097,.416047268064119],[-76.5763797675494,.256935533037435],[-77.4249843004304,.395686753741117],[-77.66861284047044,.825893052570962],[-77.85506140817952,.809925034992773],[-78.85525875518871,1.380923773601822],[-78.99093522817104,1.691369940595251],[-78.61783138702371,1.766404120283056],[-78.66211808949785,2.267355454920477],[-78.42761043975733,2.629555568854215],[-77.93154252797149,2.69660
25739752926],[-77.51043128122501,3.325016994638247],[-77.12768978545526,3.849636135265357],[-77.49627193877703,4.087606105969428],[-77.3076012844794,4.667984117039452],[-77.53322058786573,5.582811997902497],[-77.31881507028675,5.84535411216136],[-77.47666073272228,6.691116441266303],[-77.88157141794525,7.223771267114785],[-77.7534138658614,7.709839789252143],[-77.43110795765699,7.638061224798734],[-77.24256649444008,7.935278225125444],[-77.47472286651133,8.524286200388218],[-77.35336076527386,8.67050466555807],[-76.83667395700357,8.638749497914716],[-76.08638383655786,9.336820583529487],[-75.67460018584006,9.443248195834599],[-75.66470414905618,9.774003200718738],[-75.48042599150335,10.618990383339309],[-74.90689510771199,11.083044745320322],[-74.27675269234489,11.102035834187587],[-74.1972226630477,11.310472723836867],[-73.41476396350029,11.22701528568548],[-72.62783525255963,11.731971543825523],[-72.23819495307892,11.955549628136326],[-71.75409013536864,12.437303168177309],[-71.3998223537917,12.376040757695293],[-71.13746110704588,12.112981879113505],[-71.3315836249503,11.776284084515808],[-71.97392167833829,11.60867157637712],[-72.22757544624294,11.10870209395324],[-72.61465776232521,10.821975409381778],[-72.9052860175347,10.450344346554772],[-73.02760413276957,9.736770331252444],[-73.30495154488005,9.151999823437606],[-72.7887298245004,9.085027167187334],[-72.6604947577681,8.625287787302682],[-72.43986223009796,8.405275376820029],[-72.36090064155597,8.002638454617895],[-72.47967892117885,7.632506008327354],[-72.44448727078807,7.423784898300482],[-72.19835242378188,7.340430813013683],[-71.96017574734864,6.991614895043539],[-70.67423356798152,7.087784735538719],[-70.09331295437242,6.96037649172311],[-69.38947994655712,6.099860541198836],[-68.98531856960236,6.206804917826858],[-68.26505245631823,6.153268133972475],[-67.69508724635502,6.267318020040647],[-67.34143958196557,6.095468044454023],[-67.52153194850275,5.556870428891969],[-67.74469662135522,5.221128648291668],[-67.82301225449355,4.503937282728899],[-67.62183590358129,3.839481716319995],[-67.33756384954368,3.542342230641722],[-67.30317318385345,3.31845408773718],[-67.8099381171237,2.820655015469569],[-67.44709204778631,2.600280869960869],[-67.18129431829307,2.250638129074062],[-66.87632585312258,1.253360500489336]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Costa Rica",SOV_A3:"CRI",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Costa Rica",ADM0_A3:"CRI",GEOU_DIF:0,GEOUNIT:"Costa Rica",GU_A3:"CRI",SU_DIF:0,SUBUNIT:"Costa Rica",SU_A3:"CRI",BRK_DIFF:0,NAME:"Costa Rica",NAME_LONG:"Costa Rica",BRK_A3:"CRI",BRK_NAME:"Costa Rica",BRK_GROUP:null,ABBREV:"C.R.",POSTAL:"CR",FORMAL_EN:"Republic of Costa Rica",FORMAL_FR:null,NAME_CIAWF:"Costa Rica",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Costa Rica",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:2,MAPCOLOR9:4,MAPCOLOR13:2,POP_EST:4930258,POP_RANK:12,GDP_MD_EST:79260,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"CS",ISO_A2:"CR",ISO_A3:"CRI",ISO_A3_EH:"CRI",ISO_N3:"188",UN_A3:"188",WB_A2:"CR",WB_A3:"CRI",WOE_ID:23424791,WOE_ID_EH:23424791,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"CRI",ADM0_A3_US:"CRI",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Central America",REGION_WB:"Latin America & Caribbean",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-82.96578304719736,8.225027980985985],[-83.50843726269431,8.446926581247283],[-83.71147396516908,8.656836249216866],[-83.59631303580665,8.830443223501419],[-83.63264156770784,9.051385809765321],[-83.90988562695374,9.29080272057358],[-84.30340165885636,9.487354030795714],[-84.64764421256866,9.61553742109571],[-84.71335079622777,9.908051866083852],[-84.97566036654133,10.086723130733006],[-84.91137488477024,9.795991522658923],[-85.11092342806532,9.55703969974131],[-85.33948828809227,9.83454214114866],[-85.66078650586698,9.933347479690724],[-85.79744483106285,10.134885565629034],[-85.79170874707843,10.439337266476613],[-85.65931372754667,10.75433095951172],[-85.94172543002176,10.895278428587801],[-85.7125404528073,11.088444932494824],[-85.5618519762442,11.217119248901597],[-84.90300330273895,10.952303371621896],[-84.67306901725627,11.082657172078143],[-84.35593075228104,10.999225572142905],[-84.19017859570485,10.793450018756674],[-83.89505449088595,10.726839097532446],[
2-83.65561174186158,10.938764146361422],[-83.40231970898296,10.395438137244653],[-83.01567664257517,9.992982082555557],[-82.54619625520348,9.566134751824677],[-82.93289099804358,9.476812038608173],[-82.92715491405916,9.074330145702916],[-82.71918311230053,8.925708726431495],[-82.86865719270477,8.807266343618522],[-82.82977067740516,8.62629547773237],[-82.91317643912421,8.42351715741907],[-82.96578304719736,8.225027980985985]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Cuba",SOV_A3:"CUB",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Cuba",ADM0_A3:"CUB",GEOU_DIF:0,GEOUNIT:"Cuba",GU_A3:"CUB",SU_DIF:0,SUBUNIT:"Cuba",SU_A3:"CUB",BRK_DIFF:0,NAME:"Cuba",NAME_LONG:"Cuba",BRK_A3:"CUB",BRK_NAME:"Cuba",BRK_GROUP:null,ABBREV:"Cuba",POSTAL:"CU",FORMAL_EN:"Republic of Cuba",FORMAL_FR:null,NAME_CIAWF:"Cuba",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Cuba",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:5,MAPCOLOR9:3,MAPCOLOR13:4,POP_EST:11147407,POP_RANK:14,GDP_MD_EST:132900,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"CU",ISO_A2:"CU",ISO_A3:"CUB",ISO_A3_EH:"CUB",ISO_N3:"192",UN_A3:"192",WB_A2:"CU",WB_A3:"CUB",WOE_ID:23424793,WOE_ID_EH:23424793,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"CUB",ADM0_A3_US:"CUB",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Caribbean",REGION_WB:"Latin America & Caribbean",NAME_LEN:4,LONG_LEN:4,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-82.26815121125706,23.188610744717707],[-81.40445716014683,23.117271429938782],[-80.6187686835812,23.105980129483],[-79.67952368846025,22.76530324959883],[-79.28148596873208,22.399201565027056],[-78.34743445505649,22.512166246017088],[-77.99329586456028,22.277193508385935],[-77.14642249216105,21.657851467367834],[-76.52382483590856,21.206819566324373],[-76.19462012399319,21.220565497314013],[-75.59822241891267,21.016624457274133],[-75.67106035022806,20.735091254148003],[-74.9338960435845,20.693905137611385],[-74.17802486845126,20.28462779385974],[-74.29664811877726,20.05037852628068],[-74.96159461129294,19.92343537035569],[-75.63468014189459,19.873774318923196],[-76.323656175426,19.95289093676206],[-77.75548092315307,19.855480861891877],[-77.08510840524674,20.413353786698792],[-77.49265458851661,20.673105373613893],[-78.13729224314159,20.739948838783434],[-78.48282670766119,21.02861338956585],[-78.71986650258401,21.598113511638434],[-79.28499996612794,21.5591753199065],[-80.21747534861865,21.827324327069036],[-80.51753455272141,22.03707896574176],[-81.82094336620318,22.19205658618507],[-82.16999182811864,22.387109279870753],[-81.79500179719267,22.636964830001958],[-82.77589799674085,22.688150336187064],[-83.49445878775936,22.16851797127613],[-83.90880042187563,22.154565334557333],[-84.05215084505326,21.910575059491254],[-84.54703019889638,21.801227728761646],[-84.97491105827311,21.89602814380109],[-84.44706214062776,22.204949856041907],[-84.23035702181178,22.565754706303764],[-83.7782399156902,22.788118394455694],[-83.26754757356575,22.983041897060644],[-82.51043616405751,23.078746649665188],[-82.26815121125706,23.188610744717707]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Northern Cyprus",SOV_A3:"CYN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Northern Cyprus",ADM0_A3:"CYN",GEOU_DIF:0,GEOUNIT:"Northern Cyprus",GU_A3:"CYN",SU_DIF:0,SUBUNIT:"Northern Cyprus",SU_A3:"CYN",BRK_DIFF:1,NAME:"N. Cyprus",NAME_LONG:"Northern Cyprus",BRK_A3:"B20",BRK_NAME:"N. Cyprus",BRK_GROUP:null,ABBREV:"N. Cy.",POSTAL:"CN",FORMAL_EN:"Turkish Republic of Northern Cyprus",FORMAL_FR:null,NAME_CIAWF:null,NOTE_ADM0:"Self admin.",NOTE_BRK:"Self admin.; Claimed by Cyprus",NAME_SORT:"Cyprus, Northern",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:1,MAPCOLOR9:4,MAPCOLOR13:8,POP_EST:265100,POP_RANK:10,GDP_MD_EST:3600,POP_YEAR:2013,LASTCENSUS:-99,GDP_YEAR:2013,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"-99",ISO_A2:"-99",ISO_A3:"-99",ISO_A3_EH:"-99",ISO_N3:"-99",UN_A3:"-099",WB_A2:"-99",WB_A3:"-99",WOE_ID:-90,WOE_ID_EH:23424995,WOE_NOTE:"WOE lists as subunit of united Cyprus",ADM0_A3_IS:"CYP",ADM0_A3_US:"CYP",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:9,LONG_LEN:15,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:6,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[32.73178022637745,35.14002594658844],[32.80247358575275,35.14550364841138],[32.946960890440806,35.3867033961337],[33.667227003724946,35.37321584730552],[34.576473829900465,35.67159556735879],[33.900804477684204,35.245755927057616],[33.97361657078346,35.058506374648005],[33.86643965021011,35.09359467217419],[33.675391880027064,35.01786286065045],[33.5256852556775,35.03868846286407],[33.47581749851585,35.000344550103506],[33.45592207208347,35.10142365166641],[33.3838334490363,35.16271190036457],[33.19097700372305,35.17312470147138],[32.919572381326134,35.08783274997364],[32.73178022637745,35.14002594658844]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Cyprus",SOV_A3:"CYP",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Cyprus",ADM0_A3:"CYP",GEOU_DIF:0,GEOUNIT:"Cyprus",GU_A3:"CYP",SU_DIF:0,SUBUNIT:"Cyprus",SU_A3:"CYP",BRK_DIFF:0,NAME:"Cyprus",NAME_LONG:"Cyprus",BRK_A3:"CYP",BRK_NAME:"Cyprus",BRK_GROUP:null,ABBREV:"Cyp.",POSTAL:"CY",FORMAL_EN:"Republic of Cyprus",FORMAL_FR:null,NAME_CIAWF:"Cyprus",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Cyprus",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:2,MAPCOLOR9:3,MAPCOLOR13:7,POP_EST:1221549,POP_RANK:12,GDP_MD_EST:29260,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"CY",ISO_A2:"CY",ISO_A3:"CYP",ISO_A3_EH:"CYP",ISO_N3:"196",UN_A3:"196",WB_A2:"CY",WB_A3:"CYP",WOE_ID:-90,WOE_ID_EH:23424994,WOE_NOTE:"WOE lists as subunit of united Cyprus",ADM0_A3_IS:"CYP",ADM0_A3_US:"CYP",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4.5,MAX_LABEL:9.5},geometry:{type:"Polygon",coordinates:[[[32.73178022637745,35.14002594658844],[32.919572381326134,35.08783274997364],[33.19097700372305,35.17312470147138],[33.3838334490363,35.16271190036457],[33.45592207208347,35.10142365166641],[33.47581749851585,35.000344550103506],[33.5256852556775,35.03868846286407],[33.675391880027064,35.01786286065045],[33.86643965021011,35.09359467217419],[33.97361657078346,35.058506374648005],[34.00488081232004,34.97809784600186],[32.97982710137845,34.57186941175544],[32.49029625827754,34.701654771456475],[32.25666710788596,35.10323232679663],[32.73178022637745,35.14002594658844]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Czechia",SOV_A3:"CZE",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Czechia",ADM0_A3:"CZE",GEOU_DIF:0,GEOUNIT:"Czechia",GU_A3:"CZE",SU_DIF:0,SUBUNIT:"Czechia",SU_A3:"CZE",BRK_DIFF:0,NAME:"Czechia",NAME_LONG:"Czech Republic",BRK_A3:"CZE",BRK_NAME:"Czechia",BRK_GROUP:null,ABBREV:"Cz.",POSTAL:"CZ",FORMAL_EN:"Czech Republic",FORMAL_FR:"la République tchèque",NAME_CIAWF:"Czechia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Czechia",NAME_ALT:"Äesko",MAPCOLOR7:1,MAPCOLOR8:1,MAPCOLOR9:2,MAPCOLOR13:6,POP_EST:10674723,POP_RANK:14,GDP_MD_EST:350900,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"EZ",ISO_A2:"CZ",ISO_A3:"CZE",ISO_A3_EH:"CZE",ISO_N3:"203",UN_A3:"203",WB_A2:"CZ",WB_A3:"CZE",WOE_ID:23424810,WOE_ID_EH:23424810,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"CZE",ADM0_A3_US:"CZE",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Eastern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:14,ABBREV_LEN:3,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[16.960288120194576,48.5969823268506],[16.499282667718774,48.78580801044511],[16.02964725105022,48.73389903420793],[15.253415561593982,49.03907420510758],[14.901447381254057,48.964401760445824],[14.338897739324722,48.55530528420721],[13.595945672264437,48.87717194273715],[13.031328973043431,49.30706818297324],[12.521024204161193,49.547415269562734],[12.415190870827445,49.96912079528057],[12.240111118222558,50.266337795607285],[12.966836785543194,50.484076443069085],[13.338131951560285,50.73323436136435],[14.056227654688172,50.9269176295943],[14.307013380600637,51.117267767941414],[14.570
2718214586066,51.002339382524276],[15.01699588385867,51.10667409932158],[15.490972120839729,50.78472992614321],[16.23862674323857,50.69773265237984],[16.176253289462267,50.42260732685791],[16.719475945714436,50.21574656839354],[16.86876915860566,50.47397370055603],[17.55456709155112,50.36214590107642],[17.64944502123899,50.049038397819956],[18.392913852622172,49.98862864847075],[18.853144158613617,49.49622976337764],[18.554971144289482,49.495015367218784],[18.399993523846177,49.31500051533004],[18.170498488037964,49.271514797556435],[18.104972771891852,49.04398346617531],[17.913511590250465,48.996492824899086],[17.88648481616181,48.90347524677371],[17.545006951577108,48.80001902932537],[17.101984897538898,48.816968899117114],[16.960288120194576,48.5969823268506]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Germany",SOV_A3:"DEU",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Germany",ADM0_A3:"DEU",GEOU_DIF:0,GEOUNIT:"Germany",GU_A3:"DEU",SU_DIF:0,SUBUNIT:"Germany",SU_A3:"DEU",BRK_DIFF:0,NAME:"Germany",NAME_LONG:"Germany",BRK_A3:"DEU",BRK_NAME:"Germany",BRK_GROUP:null,ABBREV:"Ger.",POSTAL:"D",FORMAL_EN:"Federal Republic of Germany",FORMAL_FR:null,NAME_CIAWF:"Germany",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Germany",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:5,MAPCOLOR9:5,MAPCOLOR13:1,POP_EST:80594017,POP_RANK:16,GDP_MD_EST:3979e3,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"1. Developed region: G7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"GM",ISO_A2:"DE",ISO_A3:"DEU",ISO_A3_EH:"DEU",ISO_N3:"276",UN_A3:"276",WB_A2:"DE",WB_A3:"DEU",WOE_ID:23424829,WOE_ID_EH:23424829,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"DEU",ADM0_A3_US:"DEU",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Western Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"Polygon",coordinates:[[[13.595945672264437,48.87717194273715],[13.243357374737,48.416114813829054],[12.884102817443875,48.28914581968786],[13.02585127122049,47.63758352313583],[12.932626987365948,47.467645575544],[12.620759718484493,47.67238760028441],[12.141357456112788,47.703083401065776],[11.426414015354737,47.523766181012974],[10.544504021861599,47.5663992376538],[10.402083774465211,47.30248769793916],[9.89606814946319,47.580196845075704],[9.59422610844635,47.52505809182027],[8.522611932009767,47.83082754169129],[8.317301466514095,47.61357982033627],[7.466759067422231,47.62058197691181],[7.593676385131062,48.33301911070373],[8.099278598674744,49.0177835150034],[6.658229607783596,49.201958319691585],[6.186320428094177,49.463802802114515],[6.242751092156993,49.90222565367873],[6.043073357781111,50.128051662794235],[6.15665815595878,50.80372101501058],[5.988658074577813,51.851615709025054],[6.589396599970826,51.852029120483394],[6.842869500362383,52.22844025329755],[7.092053256873896,53.144043280644894],[6.905139601274129,53.48216217713065],[7.100424838905269,53.69393219666267],[7.936239454793963,53.74829580343379],[8.121706170289485,53.52779246684429],[8.800734490604668,54.020785630908904],[8.57211795414537,54.39564647075406],[8.526229282270208,54.96274363872516],[9.282048780971138,54.83086538351631],[9.921906365609118,54.98310415304809],[9.9395797054529,54.596641954153256],[10.950112338920519,54.363607082733154],[10.93946699386845,54.00869334575259],[11.956252475643282,54.19648550070116],[12.518440382546714,54.470370591847995],[13.647467075259499,54.0755109727059],[14.119686313542559,53.75702912049104],[14.353315463934138,53.24817129171297],[14.074521111719434,52.98126251892535],[14.437599725002201,52.624850165408304],[14.685026482815687,52.0899474147552],[14.607098422919535,51.74518809671997],[15.01699588385867,51.10667409932158],[14.570718214586066,51.002339382524276],[14.307013380600637,51.117267767941414],[14.056227654688172,50.9269176295943],[13.338131951560285,50.73323436136435],[12.966836785543194,50.484076443069085],[12.240111118222558,50.266337795607285],[12.415190870827445,49.96912079528057],[12.521024204161193,49.547415269562734],[13.031328973043431,49.30706818297324],[13.595945672264437,48.87717194273715]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Djibouti",SOV_A3:"DJI",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Djibouti",ADM0_A3:"DJI",GEOU_DIF:0,GEOUNIT:"Djibouti",GU_A3:"DJI",SU_DIF:0,SUBUNIT:"Djibouti",SU_A3:"DJI",BRK_DIFF:0,NAME:"Djibouti",NAME_LONG:"Djibouti",BRK_A3:"DJI",BRK_NAME:"Djibouti",BRK_GROUP:null,ABBREV:"Dji.",POSTAL:"DJ",FORMAL_EN:"Republic of Djibouti",FORMAL_FR:null,NAME_CIAWF:"Djibouti",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Djibouti",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:2,MAPCOLOR9:4,MAPCOLOR13:8,POP_EST:865267,POP_RANK:11,GDP_MD_EST:3345,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"DJ",ISO_A2:"DJ",ISO_A3:"DJI",ISO_A3_EH:"DJI",ISO_N3:"262",UN_A3:"262",WB_A2:"DJ",WB_A3:"DJI",WOE_ID:23424797,WOE_ID_EH:23424797,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"DJI",ADM0_A3_US:"DJI",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Middle East & North Africa",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[43.08122602720016,12.699638576707116],[43.31785241066467,12.390148423711025],[43.286381463398925,11.974928290245884],[42.715873650896526,11.735640570518342],[43.14530480324214,11.462039699748857],[42.77685184100096,10.92687856693442],[42.55493000000013,11.105110000000195],[42.31414000000012,11.0342],[41.755570000000205,11.050910000000101],[41.73959000000019,11.355110000000138],[41.66176000000013,11.6312],[42.000000000000114,12.100000000000136],[42.35156000000012,12.542230000000131],[42.77964236834475,12.455415757695675],[43.08122602720016,12.699638576707116]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Denmark",SOV_A3:"DN1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"Denmark",ADM0_A3:"DNK",GEOU_DIF:0,GEOUNIT:"Denmark",GU_A3:"DNK",SU_DIF:0,SUBUNIT:"Denmark",SU_A3:"DNK",BRK_DIFF:0,NAME:"Denmark",NAME_LONG:"Denmark",BRK_A3:"DNK",BRK_NAME:"Denmark",BRK_GROUP:null,ABBREV:"Den.",POSTAL:"DK",FORMAL_EN:"Kingdom of Denmark",FORMAL_FR:null,NAME_CIAWF:"Denmark",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Denmark",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:1,MAPCOLOR9:3,MAPCOLOR13:12,POP_EST:5605948,POP_RANK:13,GDP_MD_EST:264800,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"DA",ISO_A2:"DK",ISO_A3:"DNK",ISO_A3_EH:"DNK",ISO_N3:"208",UN_A3:"208",WB_A2:"DK",WB_A3:"DNK",WOE_ID:23424796,WOE_ID_EH:23424796,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"DNK",ADM0_A3_US:"DNK",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Northern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"MultiPolygon",coordinates:[[[[9.921906365609118,54.98310415304809],[9.282048780971138,54.83086538351631],[8.526229282270208,54.96274363872516],[8.120310906617561,55.517722683323655],[8.08997684086222,56.540011705137545],[8.256581658571207,56.80996938743033],[8.543437534223443,57.110002753316934],[9.424469028367582,57.17206614849951],[9.775558709358592,57.44794078228969],[10.580005730846182,57.73001658795488],[10.54610599126272,57.21573273378618],[10.250000034230254,56.89001618105041],[10.369992710011957,56.60998159446078],[10.912181837618334,56.45862132427786],[10.667803989310045,56.081383368547165],[10.369992710011957,56.19000722922476],[9.649984978889279,55.469999498102084],[9.921906365609118,54.98310415304809]]],[[[12.690006137755603,55.60999095318081],[12.08999
21082414684,54.80001455343796],[11.043543328504285,55.3648637966042],[10.90391360845166,55.77995473898878],[12.37090416835332,56.111407375708865],[12.690006137755603,55.60999095318081]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Dominican Republic",SOV_A3:"DOM",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Dominican Republic",ADM0_A3:"DOM",GEOU_DIF:0,GEOUNIT:"Dominican Republic",GU_A3:"DOM",SU_DIF:0,SUBUNIT:"Dominican Republic",SU_A3:"DOM",BRK_DIFF:0,NAME:"Dominican Rep.",NAME_LONG:"Dominican Republic",BRK_A3:"DOM",BRK_NAME:"Dominican Rep.",BRK_GROUP:null,ABBREV:"Dom. Rep.",POSTAL:"DO",FORMAL_EN:"Dominican Republic",FORMAL_FR:null,NAME_CIAWF:"Dominican Republic",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Dominican Republic",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:2,MAPCOLOR9:5,MAPCOLOR13:7,POP_EST:10734247,POP_RANK:14,GDP_MD_EST:161900,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"DR",ISO_A2:"DO",ISO_A3:"DOM",ISO_A3_EH:"DOM",ISO_N3:"214",UN_A3:"214",WB_A2:"DO",WB_A3:"DOM",WOE_ID:23424800,WOE_ID_EH:23424800,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"DOM",ADM0_A3_US:"DOM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Caribbean",REGION_WB:"Latin America & Caribbean",NAME_LEN:14,LONG_LEN:18,ABBREV_LEN:9,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4.5,MAX_LABEL:9.5},geometry:{type:"Polygon",coordinates:[[[-71.71236141629296,19.714455878167357],[-71.58730445014663,19.8849105900821],[-70.80670610216174,19.880285549391985],[-70.21436499701613,19.62288524014616],[-69.95081519232758,19.64799998624001],[-69.76925004747008,19.29326711677244],[-69.22212582057988,19.313214219637103],[-69.25434607611385,19.015196234609874],[-68.80941199408083,18.979074408437853],[-68.31794328476897,18.612197577381693],[-68.68931596543452,18.205142320218613],[-69.16494584824892,18.42264842373511],[-69.62398759629764,18.38071299893025],[-69.95293392605154,18.42830699307106],[-70.1332329983179,18.245915025296895],[-70.51713721381422,18.184290879788833],[-70.66929846869763,18.426885891183034],[-70.99995012071719,18.283328762276213],[-71.4002099270339,17.5985643579766],[-71.65766191271202,17.7575727401387],[-71.70830481635805,18.044997056546094],[-71.68773759630588,18.31666006110447],[-71.94511206733556,18.61690013272026],[-71.7013026597825,18.785416978424053],[-71.62487321642283,19.169837958243306],[-71.71236141629296,19.714455878167357]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Algeria",SOV_A3:"DZA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Algeria",ADM0_A3:"DZA",GEOU_DIF:0,GEOUNIT:"Algeria",GU_A3:"DZA",SU_DIF:0,SUBUNIT:"Algeria",SU_A3:"DZA",BRK_DIFF:0,NAME:"Algeria",NAME_LONG:"Algeria",BRK_A3:"DZA",BRK_NAME:"Algeria",BRK_GROUP:null,ABBREV:"Alg.",POSTAL:"DZ",FORMAL_EN:"People's Democratic Republic of Algeria",FORMAL_FR:null,NAME_CIAWF:"Algeria",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Algeria",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:1,MAPCOLOR9:6,MAPCOLOR13:3,POP_EST:40969443,POP_RANK:15,GDP_MD_EST:609400,POP_YEAR:2017,LASTCENSUS:2008,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"AG",ISO_A2:"DZ",ISO_A3:"DZA",ISO_A3_EH:"DZA",ISO_N3:"012",UN_A3:"012",WB_A2:"DZ",WB_A3:"DZA",WOE_ID:23424740,WOE_ID_EH:23424740,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"DZA",ADM0_A3_US:"DZA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Northern Africa",REGION_WB:"Middle East & North Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[4.267419467800039,19.155265204337],[3.158133172222705,19.057364203360038],[3.1466610042539,19.693578599521445],[2.683588494486429,19.856230170160117],[2.06099083823392,20.142233384679486],[1.823227573259032,20.610809434486043],[-1.550054897457613,22.792665920497384],[-4.923337368174231,24.974574082941],[-8.684399786809053,27.39574412
26896005],[-8.665124477564191,27.589479071558227],[-8.665589565454809,27.656425889592356],[-8.674116176782974,28.84128896739658],[-7.059227667661958,29.5792284205246],[-6.060632290053774,29.731699734001694],[-5.242129278982787,30.00044302013559],[-4.859646165374471,30.501187649043846],[-3.690441046554724,30.896951605751184],[-3.647497931320146,31.637294012980675],[-3.068980271812648,31.724497992473218],[-2.616604783529567,32.09434621838615],[-1.30789913573787,32.2628889023061],[-1.124551153966308,32.65152151135713],[-1.388049282222568,32.86401500094141],[-1.733454555661467,33.919712836231994],[-1.792985805661715,34.52791860609133],[-2.169913702798624,35.16839630791668],[-1.208602871089056,35.7148487411871],[-.127454392894606,35.888662421200806],[.503876580415209,36.30127289483528],[1.466918572606545,36.605647081034405],[3.161698846050825,36.78390493422522],[4.81575809084913,36.86503693292346],[5.320120070017794,36.71651886651662],[6.261819695672613,37.11065501560674],[7.330384962603971,37.11838064223437],[7.737078484741005,36.885707505840216],[8.420964389691676,36.94642731378316],[8.217824334352315,36.433176988260286],[8.376367628623768,35.479876003555944],[8.140981479534304,34.65514598239379],[7.524481642292244,34.09737641045146],[7.612641635782182,33.34411489514896],[8.430472853233368,32.74833730725595],[8.439102817426118,32.50628489840082],[9.05560265466815,32.10269196220129],[9.482139926805274,30.307556057246188],[9.805634392952356,29.424638373323376],[9.859997999723447,28.959989732371014],[9.683884718472768,28.1441738957792],[9.756128370816782,27.68825857188415],[9.629056023811074,27.14095347748092],[9.716285841519664,26.512206325785655],[9.319410841518163,26.094324856057455],[9.910692579801776,25.36545461679674],[9.94826134607797,24.936953640232517],[10.303846876678362,24.379313259370917],[10.771363559622927,24.56253205006175],[11.560669386449005,24.097909247325518],[11.999505649471613,23.47166840259645],[8.572893100629784,21.565660712159143],[5.677565952180686,19.601206976799716],[4.267419467800039,19.155265204337]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Ecuador",SOV_A3:"ECU",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Ecuador",ADM0_A3:"ECU",GEOU_DIF:0,GEOUNIT:"Ecuador",GU_A3:"ECU",SU_DIF:0,SUBUNIT:"Ecuador",SU_A3:"ECU",BRK_DIFF:0,NAME:"Ecuador",NAME_LONG:"Ecuador",BRK_A3:"ECU",BRK_NAME:"Ecuador",BRK_GROUP:null,ABBREV:"Ecu.",POSTAL:"EC",FORMAL_EN:"Republic of Ecuador",FORMAL_FR:null,NAME_CIAWF:"Ecuador",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Ecuador",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:5,MAPCOLOR9:2,MAPCOLOR13:12,POP_EST:16290913,POP_RANK:14,GDP_MD_EST:182400,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"EC",ISO_A2:"EC",ISO_A3:"ECU",ISO_A3_EH:"ECU",ISO_N3:"218",UN_A3:"218",WB_A2:"EC",WB_A3:"ECU",WOE_ID:23424801,WOE_ID_EH:23424801,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ECU",ADM0_A3_US:"ECU",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-78.85525875518871,1.380923773601822],[-77.85506140817952,.809925034992773],[-77.66861284047044,.825893052570962],[-77.4249843004304,.395686753741117],[-76.5763797675494,.256935533037435],[-76.29231441924097,.416047268064119],[-75.8014658271166,.084801337073202],[-75.37322323271385,-.15203175212045],[-75.23372270374195,-.911416924649529],[-75.54499569365204,-1.56160979574588],[-76.63539425322672,-2.608677666843818],[-77.83790483265861,-3.003020521663103],[-78.45068396677564,-3.873096612161376],[-78.63989722361234,-4.547784112164074],[-79.20528906931773,-4.959128513207389],[-79.62497921417618,-4.454198093283495],[-80.02890804718561,-4.346090996928893],[-80.44224199087216,-4.425724379090674],[-80.46929460317695,-4.059286797708999],[-80.18401485870967,-3.821161797708044],[-80.30256059438722,-3.404856459164713],[-79.77029334178093,-2.65751189535964],[-79.98655921092242,-2.220794366061014],[-80.36878394236925,-2.685158786635788],[-80.96776546906436,-2.246942640800704],[-80.76480628123804,-1.965047702648533],[-80.93365902375172,-1.057454522306358],[-80.58337032746127,-.906662692878683],[-80.39932471385376,-.283703301600141],[-80.02089820018037,.360340074053468],[-80.09060970734211,.768428859862397],[-79.5427620103998,.982937730305963],[-78.85525875518871,1.380923773601822]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Egypt",SOV_A3:"EGY",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Egypt",ADM0_A3:"EGY",GEOU_DIF:0,GEOUNIT:"Egypt",GU_A3:"EGY",
2SU_DIF:0,SUBUNIT:"Egypt",SU_A3:"EGY",BRK_DIFF:0,NAME:"Egypt",NAME_LONG:"Egypt",BRK_A3:"EGY",BRK_NAME:"Egypt",BRK_GROUP:null,ABBREV:"Egypt",POSTAL:"EG",FORMAL_EN:"Arab Republic of Egypt",FORMAL_FR:null,NAME_CIAWF:"Egypt",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Egypt, Arab Rep.",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:6,MAPCOLOR9:7,MAPCOLOR13:2,POP_EST:97041072,POP_RANK:16,GDP_MD_EST:1105e3,POP_YEAR:2017,LASTCENSUS:2006,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"EG",ISO_A2:"EG",ISO_A3:"EGY",ISO_A3_EH:"EGY",ISO_N3:"818",UN_A3:"818",WB_A2:"EG",WB_A3:"EGY",WOE_ID:23424802,WOE_ID_EH:23424802,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"EGY",ADM0_A3_US:"EGY",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Northern Africa",REGION_WB:"Middle East & North Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"Polygon",coordinates:[[[36.86623,22],[32.9,22],[29.02,22],[25,22],[25,25.682499996361],[25,29.23865452953346],[24.70007,30.04419],[24.95762,30.6616],[24.80287,31.08929],[25.16482,31.56915],[26.49533,31.58568],[27.45762,31.32126],[28.45048,31.02577],[28.91353,30.87005],[29.68342,31.18686],[30.09503,31.4734],[30.97693,31.55586],[31.68796,31.4296],[31.96041,30.9336],[32.19247,31.26034],[32.99392,31.02407],[33.7734,30.96746],[34.26543474464621,31.21935730952032],[34.26544,31.21936],[34.823243288783814,29.76108076171822],[34.9226,29.50133],[34.64174,29.09942],[34.42655,28.34399],[34.15451,27.8233],[33.92136,27.6487],[33.58811,27.97136],[33.13676,28.41765],[32.42323,29.85108],[32.32046,29.76043],[32.73482,28.70523],[33.34876,27.69989],[34.10455,26.14227],[34.47387,25.59856],[34.79507,25.03375],[35.69241,23.92671],[35.49372,23.75237],[35.52598,23.10244],[36.69069,22.20485],[36.86623,22]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Eritrea",SOV_A3:"ERI",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Eritrea",ADM0_A3:"ERI",GEOU_DIF:0,GEOUNIT:"Eritrea",GU_A3:"ERI",SU_DIF:0,SUBUNIT:"Eritrea",SU_A3:"ERI",BRK_DIFF:0,NAME:"Eritrea",NAME_LONG:"Eritrea",BRK_A3:"ERI",BRK_NAME:"Eritrea",BRK_GROUP:null,ABBREV:"Erit.",POSTAL:"ER",FORMAL_EN:"State of Eritrea",FORMAL_FR:null,NAME_CIAWF:"Eritrea",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Eritrea",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:1,MAPCOLOR9:2,MAPCOLOR13:12,POP_EST:5918919,POP_RANK:13,GDP_MD_EST:9169,POP_YEAR:2017,LASTCENSUS:1984,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"ER",ISO_A2:"ER",ISO_A3:"ERI",ISO_A3_EH:"ERI",ISO_N3:"232",UN_A3:"232",WB_A2:"ER",WB_A3:"ERI",WOE_ID:23424806,WOE_ID_EH:23424806,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ERI",ADM0_A3_US:"ERI",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[43.08122602720016,12.699638576707116],[42.77964236834475,12.455415757695675],[42.35156000000012,12.542230000000131],[42.00975,12.86582],[41.59856,13.452090000000112],[41.1552,13.77333],[40.8966,14.118640000000141],[40.02625000000012,14.51959],[39.34061,14.53155],[39.0994,14.74064],[38.51295,14.50547],[37.90607000000011,14.959430000000168],[37.59377,14.2131],[36.42951,14.42211],[36.32322,14.82249],[36.75389,16.29186],[36.852530000000115,16.95655],[37.16747,17.263140000000135],[37.90400000000011,17.42754],[38.410089959473225,17.998307399970315],[38.990622999840014,16.840626125551694],[39.26611006038803,15.92272349696725],[39.814293654140215,15.435647284400318],[41.17927493669765,14.491079616753211],[41.73495161313235,13.921036892141558],[42.27683068214486,13.343992010954423],[42.58957645037526,13.000421250861905],[43.08122602720016,12.699638576707116]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Spain",SOV_A3:"ESP",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Spain",ADM0_A3:"ESP",GEOU_DIF:0,GEOUNIT:"Spain",GU_A3:"ESP",SU_DIF:0,SUBUNIT:"Spain",SU_A3:"ESP",BRK_DIFF:0,NAME:"Spain",NAME_LONG:"Spain",BRK_A3:"ESP",BRK_NAME:"Spain",BRK_GROUP:null,ABBREV:"Sp.",POSTAL:"E",FORMAL_EN:"Kingdom of Spain",FORMAL_FR:null,NAME_CIAWF:"Spain",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Spain",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:5,MAPCOLOR9:5,MAPCOLOR13:5,POP_EST:48958159,POP_RANK:15,GDP_MD_EST:169e4,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"SP",ISO_A2:"ES",ISO_A3:"ESP",ISO_A3_EH:"ESP",ISO_N3:"724",UN_A3:"724",WB_A2:"ES",WB_A3:"ESP",WOE_ID:23424950,WOE_ID_EH:23424950,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ESP",ADM0_A3_US:"ESP",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:3,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[-9.034817674180246,41.880570583659676],[-8.984433152695672,42.59277517350627],[-9.392883673530648,43.0266246608127],[-7.97818966310831,43.74833771420099],[-6.754491746436756,43.567909450853925],[-5.411886359061597,43.57423981380968],[-4.347842779955783,43.40344920508504],[-3.517531704106091,43.4559007838613],[-1.901351284177764,43.42280202897834],[-1.502770961910528,43.03401439063043],[.338046909190581,42.57954600683955],[.701590610363866,42.79573436133256],[1.826793247087124,42.343384711265685],[2.985998976258429,42.473015041669925],[3.039484083680549,41.892120266276905],[2.091841668312185,41.226088568683096],[.810524529635188,41.01473196060934],[.721331007499401,40.678318386389236],[.106691521819869,40.12393362076202],[-.278711310212941,39.30997813573272],[.111290724293838,38.73851430923304],[-.467123582349103,38.29236583104115],[-.683389451490598,37.642353827457825],[-1.438382127274849,37.443
206366632422],[-2.146452602538119,36.67414419203729],[-3.415780808923387,36.65889964451118],[-4.368900926114719,36.677839056946155],[-4.995219285492212,36.32470815687964],[-5.377159796561457,35.946850083961465],[-5.866432257500904,36.02981659600606],[-6.236693894872175,36.367677110330334],[-6.520190802425404,36.94291331638732],[-7.453725551778092,37.09778758396607],[-7.537105475281024,37.42890432387624],[-7.166507941099865,37.803894354802225],[-7.029281175148796,38.07576406508977],[-7.374092169616318,38.37305858006492],[-7.098036668313128,39.03007274022379],[-7.498632371439726,39.62957103124181],[-7.066591559263529,39.711891587882775],[-7.026413133156595,40.184524237624245],[-6.864019944679385,40.33087189387483],[-6.851126674822552,41.11108266861753],[-6.389087693700915,41.381815497394655],[-6.668605515967656,41.883386949219584],[-7.251308966490824,41.91834605566505],[-7.422512986673795,41.79207469335984],[-8.013174607769912,41.790886135417125],[-8.263856980817792,42.28046865495034],[-8.67194576662672,42.13468943945496],[-9.034817674180246,41.880570583659676]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Estonia",SOV_A3:"EST",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Estonia",ADM0_A3:"EST",GEOU_DIF:0,GEOUNIT:"Estonia",GU_A3:"EST",SU_DIF:0,SUBUNIT:"Estonia",SU_A3:"EST",BRK_DIFF:0,NAME:"Estonia",NAME_LONG:"Estonia",BRK_A3:"EST",BRK_NAME:"Estonia",BRK_GROUP:null,ABBREV:"Est.",POSTAL:"EST",FORMAL_EN:"Republic of Estonia",FORMAL_FR:null,NAME_CIAWF:"Estonia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Estonia",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:2,MAPCOLOR9:1,MAPCOLOR13:10,POP_EST:1251581,POP_RANK:12,GDP_MD_EST:38700,POP_YEAR:2017,LASTCENSUS:2e3,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"EN",ISO_A2:"EE",ISO_A3:"EST",ISO_A3_EH:"EST",ISO_N3:"233",UN_A3:"233",WB_A2:"EE",WB_A3:"EST",WOE_ID:23424805,WOE_ID_EH:23424805,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"EST",ADM0_A3_US:"EST",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Northern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[24.312862583114622,57.79342357037697],[24.42892785004216,58.38341339785329],[24.061198357853186,58.25737457949341],[23.426560092876684,58.612753404364625],[23.339795363058645,59.187240302153384],[24.604214308376186,59.46585378685502],[25.86418908051664,59.61109039981133],[26.949135776484525,59.445803331125774],[27.981114129353244,59.475388088612874],[27.981126857000998,59.47537333432526],[27.98112,59.47537000000011],[28.13169925305175,59.300825100330925],[27.42015000000015,58.72457000000017],[27.71668582531572,57.79189911562436],[27.288184848751513,57.47452830670383],[26.463532342237787,57.47638865826633],[25.60280968598437,57.84752879498657],[25.16459354014927,57.97015696881519],[24.312862583114622,57.79342357037697]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Ethiopia",SOV_A3:"ETH",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Ethiopia",ADM0_A3:"ETH",GEOU_DIF:0,GEOUNIT:"Ethiopia",GU_A3:"ETH",SU_DIF:0,SUBUNIT:"Ethiopia",SU_A3:"ETH",BRK_DIFF:0,NAME:"Ethiopia",NAME_LONG:"Ethiopia",BRK_A3:"ETH",BRK_NAME:"Ethiopia",BRK_GROUP:null,ABBREV:"Eth.",POSTAL:"ET",FORMAL_EN:"Federal Democratic Republic of Ethiopia",FORMAL_FR:null,NAME_CIAWF:"Ethiopia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Ethiopia",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:4,MAPCOLOR9:1,MAPCOLOR13:13,POP_EST:105350020,POP_RANK:17,GDP_MD_EST:174700,POP_YEAR:2017,LASTCENSUS:2007,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"ET",ISO_A2:"ET",ISO_A3:"ETH",ISO_A3_EH:"ETH",ISO_N3:"231",UN_A3:"231",WB_A2:"ET",WB_A3:"ETH",WOE_ID:23424808,WOE_ID_EH:23424808,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ETH",ADM0_A3_US:"ETH",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[42.35156000000012,12.542230000000131],[42.000000000000114,12.100000000000136],[41.66176000000013,11.6312],[41.73959000000019,11.355110000000138],[41.755570000000205,11.050910000000101],[42.31414000000012,11.0342],[42.55493000000013,11.105110000000195],[42.77685184100096,10.92687856693442],[42.55876,10.57258000000013],[42.92812,10.021940000000143],[43.29699000000011,9.540480000000173],[43.67875,9.18358000000012],[46.94834,7.99688],[47.78942,8.003],[44.9636,5.00162],[43.66087,4.95755],[42.76967,4.25259],[42.12861,4.23413],[41.85508309264397,3.918911920483727],[41.1718,3.91909],[40.76848,4.25702],[39.85494,3.83879],[39.55938425876585,3.42206],[38.89251,3.50074],[38.67114,3.61607],[38.43697,3.58851],[38.120915,3.598605],[36.85509323800812,4.447864127672769],[36.159078632855646,4.447864127672769],[35.817447662353516,4.77696566346189],[35.817447662353516,5.338232082790797],[35.29800
2711823298,5.506],[34.70702,6.594220000000121],[34.25032,6.82607],[34.0751,7.22595],[33.568290000000104,7.71334],[32.95418,7.784970000000101],[33.29480000000012,8.35458],[33.82550000000015,8.37916],[33.97498,8.68456],[33.96162,9.58358],[34.25745,10.63009],[34.73115000000013,10.910170000000107],[34.83163000000013,11.318960000000118],[35.26049,12.08286],[35.86363,12.57828],[36.27022,13.563330000000121],[36.42951,14.42211],[37.59377,14.2131],[37.90607000000011,14.959430000000168],[38.51295,14.50547],[39.0994,14.74064],[39.34061,14.53155],[40.02625000000012,14.51959],[40.8966,14.118640000000141],[41.1552,13.77333],[41.59856,13.452090000000112],[42.00975,12.86582],[42.35156000000012,12.542230000000131]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Finland",SOV_A3:"FI1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"Finland",ADM0_A3:"FIN",GEOU_DIF:0,GEOUNIT:"Finland",GU_A3:"FIN",SU_DIF:0,SUBUNIT:"Finland",SU_A3:"FIN",BRK_DIFF:0,NAME:"Finland",NAME_LONG:"Finland",BRK_A3:"FIN",BRK_NAME:"Finland",BRK_GROUP:null,ABBREV:"Fin.",POSTAL:"FIN",FORMAL_EN:"Republic of Finland",FORMAL_FR:null,NAME_CIAWF:"Finland",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Finland",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:1,MAPCOLOR9:4,MAPCOLOR13:6,POP_EST:5491218,POP_RANK:13,GDP_MD_EST:224137,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"FI",ISO_A2:"FI",ISO_A3:"FIN",ISO_A3_EH:"FIN",ISO_N3:"246",UN_A3:"246",WB_A2:"FI",WB_A3:"FIN",WOE_ID:23424812,WOE_ID_EH:23424812,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"FIN",ADM0_A3_US:"FIN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Northern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[23.903378533633802,66.00692739527962],[23.565879754335583,66.39605093043743],[23.53947309743444,67.93600861273525],[21.978534783626117,68.6168456081807],[20.645592889089528,69.10624726020087],[21.244936150810673,69.37044302029308],[22.356237827247412,68.84174144151491],[23.66204959483076,68.89
2124746365054],[24.735679152126725,68.64955678982146],[25.689212680776336,69.09211375596905],[26.179622023226244,69.82529897732614],[27.732292107867835,70.16419302029624],[29.015572950971972,69.76649119737799],[28.591929559043194,69.06477692328666],[28.445943637818658,68.36461294216404],[29.97742638522061,67.69829702419266],[29.054588657352326,66.94428620062193],[30.21765,65.80598],[29.54442955904699,64.94867157659048],[30.44468468600371,64.20445343693909],[30.035872430142717,63.55281362573855],[31.516092156711125,62.86768748641289],[31.139991082490894,62.35769277612441],[30.21110721204445,61.780027777749694],[28.07,60.50352],[28.07000192152568,60.50351912796824],[28.069997592895277,60.50351654727584],[26.255172967236973,60.4239606797625],[24.496623976344523,60.05731639265166],[22.869694858499457,59.846373196036225],[22.290763787533592,60.39192129174154],[21.322244093519316,60.720169989659524],[21.544866163832694,61.70532949487179],[21.05921105315369,62.60739329695874],[21.536029493910803,63.18973501245587],[22.442744174903993,63.81781037053129],[24.730511508897536,64.90234365504084],[25.398067661243942,65.11142650009374],[25.294043003040404,65.53434642197045],[23.903378533633802,66.00692739527962]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Fiji",SOV_A3:"FJI",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Fiji",ADM0_A3:"FJI",GEOU_DIF:0,GEOUNIT:"Fiji",GU_A3:"FJI",SU_DIF:0,SUBUNIT:"Fiji",SU_A3:"FJI",BRK_DIFF:0,NAME:"Fiji",NAME_LONG:"Fiji",BRK_A3:"FJI",BRK_NAME:"Fiji",BRK_GROUP:null,ABBREV:"Fiji",POSTAL:"FJ",FORMAL_EN:"Republic of Fiji",FORMAL_FR:null,NAME_CIAWF:"Fiji",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Fiji",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:1,MAPCOLOR9:2,MAPCOLOR13:2,POP_EST:920938,POP_RANK:11,GDP_MD_EST:8374,POP_YEAR:2017,LASTCENSUS:2007,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"FJ",ISO_A2:"FJ",ISO_A3:"FJI",ISO_A3_EH:"FJI",ISO_N3:"242",UN_A3:"242",WB_A2:"FJ",WB_A3:"FJI",WOE_ID:23424813,WOE_ID_EH:23424813,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"FJI",ADM0_A3_US:"FJI",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Oceania",REGION_UN:"Oceania",SUBREGION:"Melanesia",REGION_WB:"East Asia & Pacific",NAME_LEN:4,LONG_LEN:4,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"MultiPolygon",coordinates:[[[[178.3736,-17.33992],[178.71806,-17.62846],[178.55271,-18.15059],[177.93266,-18.28799],[177.38146,-18.16432],[177.28504,-17.72465],[177.67087,-17.38114],[178.12557,-17.50481],[178.3736,-17.33992]]],[[[179.36414266196417,-16.801354076946836],[178.7250593629972,-17.012041674368007],[178.5968385951172,-16.63915],[179.0966093629972,-16.43398427754741],[179.4135093629972,-16.379054277547382],[180,-16.06713266364241],[180,-16.555216566639146],[179.36414266196417,-16.801354076946836]]],[[[-179.91736938476527,-16.501783135649347],[-180,-16.555216566639146],[-180,-16.06713266364241],[-179.79332010904858,-16.020882256741217],[-179.91736938476527,-16.501783135649347]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"United Kingdom",SOV_A3:"GB1",ADM0_DIF:1,LEVEL:2,TYPE:"Dependency",ADMIN:"Falkland Islands",ADM0_A3:"FLK",GEOU_DIF:0,GEOUNIT:"Falkland Islands",GU_A3:"FLK",SU_DIF:0,SUBUNIT:"Falkland Islands",SU_A3:"FLK",BRK_DIFF:1,NAME:"Falkland Is.",NAME_LONG:"Falkland Islands",BRK_A3:"B12",BRK_NAME:"Falkland Is.",BRK_GROUP:null,ABBREV:"Flk. Is.",POSTAL:"FK",FORMAL_EN:"Falkland Islands",FORMAL_FR:null,NAME_CIAWF:"Falkland Islands (Islas Malvinas)",NOTE_ADM0:"U.K.",NOTE_BRK:"Admin. by U.K.; Claimed by Argentina",NAME_SORT:"Falkland Islands",NAME_ALT:"Islas Malvinas",MAPCOLOR7:6,MAPCOLOR8:6,MAPCOLOR9:6,MAPCOLOR13:3,POP_EST:2931,POP_RANK:4,GDP_MD_EST:281.8,POP_YEAR:2014,LASTCENSUS:-99,GDP_YEAR:2012,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"FK",ISO_A2:"FK",ISO_A3:"FLK",ISO_A3_EH:"FLK",ISO_N3:"238",UN_A3:"238",WB_A2:"-99",WB_A3:"-99",WOE_ID:23424814,WOE_ID_EH:23424814,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"FLK",ADM0_A3_US:"FLK",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:12,LONG_LEN:16,ABBREV_LEN:8,TINY:-99,HOMEPART:-99,MIN_ZOOM:0,MIN_LABEL:4.5,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[-61.2,-51.85],[-60,-51.25],[-59.15,-51.5],[-58.55,-51.1],[-57.75,-51.55],[-58.05,-51.9],[-59.4,-52.2],[-59.85,-51.85],[-60.7,-52.3],[-61.2,-51.85]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"France",SOV_A3:"FR1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"France",ADM0_A3:"FRA",GEOU_DIF:0,GEOUNIT:"France",GU_A3:"FRA",SU_DIF:0,SUBUNIT:"France",SU_A3:"FRA",BRK_DIFF:0,NAME:"France",NAME_LONG:"France",BRK_A3:"FRA",BRK_NAME:"France",BRK_GROUP:null,ABBREV:"Fr.",POSTAL:"F",FORMAL_EN:"French Republic",FORMAL_FR:null,NAME_CIAWF:"France",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"France",NAME_ALT:null,MAPCOLOR7:7,MAPCOLOR8:5,MAPCOLOR9:9,MAPCOLOR13:11,POP_EST:67106161,POP_RANK:16,GDP_MD_EST:2699e3,POP_YEAR:2017,LASTCENSUS:-99,GDP_YEAR:2016,ECONOMY:"1. Developed region: G7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"FR",ISO_A2:"-99",ISO_A3:"-99",ISO_A3_EH:"-99",ISO_N3:"250",UN_A3:"250",WB_A2:"FR",WB_A3:"FRA",WOE_ID:-90,WOE_ID_EH:23424819,WOE_NOTE:"Includes only Metropolitan France (including Corsica)",ADM0_A3_IS:"FRA",ADM0_A3_US:"FRA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Western Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:3,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"MultiPolygon",coordinates:[[[[2.513573032246114,51.148506171261886],[2.658422071960274,50.796848049515745],[3.123251580425659,50.78036326761455],[3.588184441755658,50.37899241800352],[4.286022983425084,49.907496649772554],[4.799221632515696,49.98537303323636],[5.674051954784829,49.529483547557504],[5.897759230176405,49.44266714130703],[6.186320428094177,49.463802802114515],[6.658229607783596,49.201958319691585],[8.099278598674744,49.0177835150034],[7.593676385131062,48.33301911070373],[7.466759067422231,47.62058197691181],[7.192202182655507,47.44976552997102],[6.736571079138059,47.54180125588283],[6.768713820023606,47.28770823830371],[6.037388950229001,46.725778713561866],[6.02260949059351,46.272989813820544],[6.500099724970397,46.42967275652944],[6.843592970414505,45.99114655210061],[6.802355177445605,45.70857982032871],[7.096652459347865,45.3330988632959],[6.749955275101655,45.028517971367535],[7.007562290076606,44.25476675066142],[7.549596388386135,44.127901109384766],[7.435184767291901,43.69384491634921],[6.529245232783097,43.1288923203183],[4.556962517931453,43.39965098731162],[3.100410597352663,43.07520050716704],[2.985998976258429,42.473015041669925],[1.826793247087124,42.343384711265685],[.701590610363866,42.79573436133256],[.338046909190581,42.57954600683955],[-1.502770961910528,43.03401439063043],[-1.901351284177764,43.42280202897834],[-1.384225226232928,44.022610378590116],[-1.193797573237418,46.014917710954904],[-2.225724249673846,47.064362697938236],[-2.963276129559546,47.57032664650799],[-4.491554938159453,47.95495433205636],[-4.592349819344719,48.684160468126976],[-3.295813971357802,48.901692409859635],[-1.616510789384904,48.64442129169453],[-1.933494025063311,49.7763418646158],[-.989468959955303,49.347375800160904],[1.338761020522696,50.12717316344529],[1.639001092138528,50.94660635029754],[2.513573032246114,51.148506171261886]]],[[[-51.65779741067889,4.156232408053029],[-52.249337531123956,3.241094468596216],[-52.55642473001842,2.504705308437053],[-52.939657151894956,2.124857692875636],[-53.41846513529531,2.053389187015981],[-53.55483924011355,2.334896551925979],[-53.77852067728892,2.376702785650082],[-54.08806250671725,2.105556545414643],[-54.52475419779972,2.311848863123814],[-54.27122962097576,2.738747870286957],[-54.18428402364472,3.194172268075249],[-54.01150387227679,3.622569891774873],[-54.399542202356514,4.212611395683467],[-54.478632981979274,4.896755682795572],[-53.9580446030709,5.756548163267765],[-53.618452928264816,5.64652903891843],[-52.88214128275405,5.409850979021627],[-51.8233428615259,4.565768133966159],[-51.65779741067889,4.156232408053029]]],[[[9.56001631026919,42.15249197037949],[9.22975223149183,41.38000682226448],[8.775723097375419,41.58361196549444],[8.544212680707773,42.25651662858303],[8.74600914880753,42.6281218531939],[9.390000848028933,43.00998484961477],[9.56001631026919,42.15249197037949]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Gabon",SOV_A3:"GAB",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Gabon",ADM0_A3:"GAB",GEOU_DIF:0,GEOUNIT:"Gabon",GU_A3:"GAB",SU_DIF:0,SUBUNIT:"Gabon",SU_A3:"GAB",BRK_DIFF:0,NAME:"Gabon",NAME_LONG:"Gabon",BRK_A3:"GAB",BRK_NAME:"Gabon",BRK_GROUP:null,ABBREV:"Gabon",POSTAL:"GA",FORMAL_EN:"Gabonese Republic",FORMAL_FR:null,NAME_CIAWF:"Gabon",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Gabon",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:2,MAPCOLOR9:5,MAPCOLOR13:5,POP_EST:1772255,POP_RANK:12,GDP_MD_EST:35980,POP_YEAR:2017,LASTCENSUS:2003,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"GB",ISO_A2:"GA",ISO_A3:"GAB",ISO_A3_EH:"GAB",ISO_N3:"266",UN_A3:"266",WB_A2:"GA",WB_A3:"GAB",WOE_ID:23424822,WOE_ID_EH:23424822,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GAB",ADM0_A3_US:"GAB",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Middle Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:3,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[11.276449008843713,2.261050930180872],[11.75166548019979,2.326757513839993],[12.359380323952221,2.19281220133945],[12.951333855855609,2.32161570882694],[13.075822381246752,2.267097072759015],[13.003113641012078,1.83089630778332],[13.282631463278818,1.31418366129688],[14.026668735417218,1.395677395021153],[14.276265903386957,1.196929836426619],[13.843320753645656,.038757635901149],[14.316418491277744,-.552627455247048],[14.425455763413595,-1.333406670744971],[14.299210239324566,-1.998275648612214],[13.99240726080771,-2.4708049454891],[13.109618767965628,-2.428740329603514],[12.575284458067642,-1.948511244315135],[12.495702752338161,-2.391688327650243],[11.820963575903193,-2.514161472181982],[11.478038771214303,-2.765618991714241],[11.855121697648116,-3.426870619321051],[11.093772820691925,-3.978826592630547],[10.06613528813574,-2.969482517105682],[9.40524539555497,-2.144313246269043],[8.79799563969317,-1.111301364754496],[8.830086704146424,-.779073581550037],[9.048419630579588,-.459351494960217],[9.29135053878369,.268666083167687],[9.492888624721985,1.010119533691494],[9.830284051155644,1.067893784993799],[11.285078973036462,1.057661851400013],[11.276449008843713,2.261050930180872]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"United Kingdom",SOV_A3:"GB1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"United Kingdom",ADM0_A3:"GBR",GEOU_DIF:0,GEOUNIT:"United Kingdom",GU_A3:"GBR",SU_DIF:0,SUBUNIT:"United Kingdom",SU_A3:"GBR",BRK_DIFF:0,NAME:"United Kingdom",NAME_LONG:"United Kingdom",BRK_A3:"GBR",BRK_NAME:"United Kingdom",BRK_GROUP:null,ABBREV:"U.K.",POSTAL:"GB",FORMAL_EN:"United Kingdom of Great Britain and Northern Ireland",FORMAL_FR:null,NAME_CIAWF:"United Kingdom",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"United Kingdom",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:6,MAPCOLOR9:6,MAPCOLOR13:3,POP_EST:64769452,POP_RANK:16,GDP_MD_EST:2788e3,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"1. Developed region: G7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"UK",ISO_A2:"GB",ISO_A3:"GBR",ISO_A3_EH:"GBR",ISO_N3:"826",UN_A3:"826",WB_A2:"GB",WB_A3:"GBR",WOE_ID:-90,WOE_ID_EH:23424975,WOE_NOTE:"Eh ID includes Channel Islands and Isle of Man. UK constituent countries of England (24554868), Wales (12578049), Scotland (12578048), and Northern Ireland (20070563).",ADM0_A3_IS:"GBR",ADM0_A3_US:"GBR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Northern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:14,LONG_LEN:14,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"MultiPolygon",coordinates:[[[[-6.197884894221033,53.86756500916337],[-6.953730231138067,54.073702297575636],[-7.572167934591064,54.059956366586],[-7.366030646178785,54.59584096945272],[-7.572167934591064,5
25.13162221945487],[-6.733847011736088,55.172860012423826],[-5.661948614921954,54.554603176483795],[-6.197884894221033,53.86756500916337]]],[[[-3.005004848635252,58.63500010846636],[-4.073828497728073,57.553024807355285],[-3.055001796877718,57.69001902936097],[-1.95928056477689,57.68479970969955],[-2.21998816568933,56.87001740175356],[-3.119003058271147,55.9737930365155],[-2.085009324542995,55.9099984808513],[-2.0056756796738,55.804902850350175],[-1.114991013992181,54.62498647726542],[-.430484991854172,54.46437612570219],[.184981316742096,53.32501414653106],[.469976840831833,52.929999498092],[1.681530795914682,52.73952016866403],[1.559987827164321,52.099998480836035],[1.050561557630971,51.80676056579571],[1.449865349950244,51.28942780212191],[.550333693045559,50.765738837275904],[-.787517462558668,50.77498891865625],[-2.489997524414406,50.50001862243127],[-2.956273972984093,50.696879991247044],[-3.617448085942385,50.22835561787275],[-4.542507900399215,50.34183706318569],[-5.245023159191106,49.95999990498112],[-5.776566941745244,50.15967763935686],[-4.309989793301895,51.21000112568919],[-3.414850633142095,51.42600861266928],[-3.422719467108379,51.42684816740612],[-4.98436723471093,51.593466091511004],[-5.267295701508942,51.99140045837461],[-4.222346564134909,52.30135569926139],[-4.77001339356417,52.840004991255654],[-4.579999152026971,53.4950037705552],[-3.093830673788716,53.40454740066971],[-3.09207963704705,53.40444082296358],[-2.945008510744316,53.98499970154671],[-3.614700825432976,54.6009367732926],[-3.630005458989302,54.61501292583304],[-4.844169073903032,54.79097117778687],[-5.082526617849283,55.0616006536994],[-4.7191121077567,55.50847260194351],[-5.047980922862081,55.78398550070756],[-5.586397670911197,55.31114614523685],[-5.644998745130238,56.27501496034483],[-6.149980841486411,56.785009670633485],[-5.786824713555262,57.818848375064675],[-5.009998745127632,58.63001333275008],[-4.211494513353529,58.55084503847911],[-3.005004848635252,58.63500010846636]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Georgia",SOV_A3:"GEO",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Georgia",ADM0_A3:"GEO",GEOU_DIF:0,GEOUNIT:"Georgia",GU_A3:"GEO",SU_DIF:0,SUBUNIT:"Georgia",SU_A3:"GEO",BRK_DIFF:0,NAME:"Georgia",NAME_LONG:"Georgia",BRK_A3:"GEO",BRK_NAME:"Georgia",BRK_GROUP:null,ABBREV:"Geo.",POSTAL:"GE",FORMAL_EN:"Georgia",FORMAL_FR:null,NAME_CIAWF:"Georgia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Georgia",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:1,MAPCOLOR9:3,MAPCOLOR13:2,POP_EST:4926330,POP_RANK:12,GDP_MD_EST:37270,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"GG",ISO_A2:"GE",ISO_A3:"GEO",ISO_A3_EH:"GEO",ISO_N3:"268",UN_A3:"268",WB_A2:"GE",WB_A3:"GEO",WOE_ID:23424823,WOE_ID_EH:23424823,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GEO",ADM0_A3_US:"GEO",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[44.97248009621808,41.248128567055595],[43.58274580259273,41.09214325618257],[42.61954878110449,41.58317271581994],[41.55408410011066,41.53565623632757],[41.70317060727271,41.96294281673292],[41.45347008643839,42.64512339941794],[40.87546919125379,43.013628038091284],[40.32139448422032,43.128633938156845],[39.955008579270924,43.43499766699922],[40.07696495947977,43.553104153002316],[40.92219000000014,43.382150000000166],[42.39440000000016,43.2203],[43.75599000000014,42.7408300000001],[43.93121000000011,42.554960000000136],[44.537622918481986,42.71199270280363],[45.47027916848572,42.50278066666998],[45.7764,42.09244000000018],[46.404950799348825,41.860675157227305],[46.14543175637902,41.72280243587258],[46.63790815612058,41.181672675128226],[46.50163740416693,41.06444468847414],[45.96260053893039,41.123872585609774],[45.217426385281584,41.411451931314076],[44.97248009621808,41.248128567055595]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Ghana",SOV_A3:"GHA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Ghana",ADM0_A3:"GHA",GEOU_DIF:0,GEOUNIT:"Ghana",GU_A3:"GHA",SU_DIF:0,SUBUNIT:"Ghana",SU_A3:"GHA",BRK_DIFF:0,NAME:"Ghana",NAME_LONG:"Ghana",BRK_A3:"GHA",BRK_NAME:"Ghana",BRK_GROUP:null,ABBREV:"Ghana",POSTAL:"GH",FORMAL_EN:"Republic of Ghana",FORMAL_FR:null,NAME_CIAWF:"Ghana",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Ghana",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:3,MAPCOLOR9:1,MAPCOLOR13:4,POP_EST:27499924,POP_RANK:15,GDP_MD_EST:120800,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"GH",ISO_A2:"GH",ISO_A3:"GHA",ISO_A3_EH:"GHA",ISO_N3:"288",UN_A3:"288",WB_A2:"GH",WB_A3:"GHA",WOE_ID:23424824,WOE_ID_EH:23424824,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GHA",ADM0_A3_US:"GHA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-2.827496303712707,9.642460842319778],[-2.963896246747112,10.395334784380083],[-2.940409308270461,10.962690334512558],[-1.203357713211432,11.009819240762738],[-.761575893548183,10.936929633015055],[-.438701544588582,11.098340969278722],[.023802524423701,11.018681748900804],[-.049784715159944,10.706917832883931],[.367579990245389,10.19121287682718],[.365900506195885,9.465003973829482],[.461191847342121,8.677222601756014],[.712029249686879,8.31246450442383],[.490957472342245,7.4117442895
276475],[.570384148774849,6.914358628767189],[.836931186536333,6.279978745952149],[1.060121697604927,5.928837388528876],[-.507637905265938,5.343472601742675],[-1.063624640294194,5.000547797053812],[-1.964706590167594,4.710462144383371],[-2.856125047202397,4.994475816259509],[-2.81070146321784,5.38905121502411],[-3.244370083011262,6.250471503113502],[-2.983584967450327,7.379704901555513],[-2.562189500326241,8.219627793811483],[-2.827496303712707,9.642460842319778]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Guinea",SOV_A3:"GIN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Guinea",ADM0_A3:"GIN",GEOU_DIF:0,GEOUNIT:"Guinea",GU_A3:"GIN",SU_DIF:0,SUBUNIT:"Guinea",SU_A3:"GIN",BRK_DIFF:0,NAME:"Guinea",NAME_LONG:"Guinea",BRK_A3:"GIN",BRK_NAME:"Guinea",BRK_GROUP:null,ABBREV:"Gin.",POSTAL:"GN",FORMAL_EN:"Republic of Guinea",FORMAL_FR:null,NAME_CIAWF:"Guinea",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Guinea",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:3,MAPCOLOR9:7,MAPCOLOR13:2,POP_EST:12413867,POP_RANK:14,GDP_MD_EST:16080,POP_YEAR:2017,LASTCENSUS:1996,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"GV",ISO_A2:"GN",ISO_A3:"GIN",ISO_A3_EH:"GIN",ISO_N3:"324",UN_A3:"324",WB_A2:"GN",WB_A3:"GIN",WOE_ID:23424835,WOE_ID_EH:23424835,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GIN",ADM0_A3_US:"GIN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-8.029943610048619,10.206534939001713],[-8.229337124046822,10.1290202905639],[-8.30961646161225,9.789531968622441],[-8.07911373537435,9.376223863152035],[-7.832100389019188,8.575704250518626],[-8.20349890790088,8.455453192575447],[-8.299048631208564,8.316443589710303],[-8.221792364932199,8.123328762235573],[-8.280703497744938,7.687179673692157],[-8.439298468448698,7.686042792181738],[-8.722123582382125,7.71167430259851],[-8.926064622422004,7.309037380396376],[-9.208786383490846,7.313920803247953],[-9.40334815106975,7.526905218938907],[-9.337279832384581,7.928534450711354],[-9.755342169625834,8.541055202666925],[-10.016566534861255,8.428503933135232],[-10.23009355309128,8.406205552601293],[-10.505477260774668,8.348896389189605],[-10.494315151399633,8.715540676300435],[-10.654770473665891,8.977178452994195],[-10.622395188835041,9.267910061068278],[-10.839151984083301,9.688246161330369],[-11.11748124840733,10.045872911006285],[-11.917277390988659,10.046983954300558],[-12.150338100625005,9.858571682164381],[-12.425928514037565,9.835834051955956],[-12.59671912276221,9.62018830000197],[-12.71195756677308,9.342711696810767],[-13.246550258832515,8.903048610871508],[-13.685153977909792,9.49474376061346],[-14.074044969122282,9.886166897008252],[-14.33007585291237,10.015719712763968],[-14.579698859098258,10.214467271358515],[-14.693231980843505,10.656300767454042],[-14.839553798877944,10.87657156009814],[-15.130311245168173,11.040411688679526],[-14.685687221728898,11.527823798056488],[-14.382191534878729,11.509271958863692],[-14.121406419317779,11.677117010947697],[-13.900799729863776,11.678718980348748],[-13.743160773157413,11.811269029177412],[-13.828271857142125,12.142644151249044],[-13.718743658899513,12.24718557377551],[-13.700476040084325,12.586182969610194],[-13.217818162478238,12.575873521367967],[-12.499050665730564,12.332089952031057],[-12.27859900557344,12.354440008997287],[-12.203564825885634,12.465647691289405],[-11.658300950557932,12.386582749882836],[-11.51394283695059,12.442987575729418],[-11.456168585648271,12.076834214725338],[-11.297573614944511,12.077971096235771],[-11.03655595543826,12.211244615116515],[-10.870829637078215,12.17788747807211],[-10.593223842806282,11.92397532800598],[-10.165213792348837,11.844083563682744],[-9.890992804392013,12.060478623904972],[-9.567911749703214,12.194243068892476],[-9.327616339546012,12.334286200403454],[-9.127473517279583,12.308060411015333],[-8.90526485842453,12.088358059126437],[-8.786099005559464,11.812560939984706],[-8.376304897484914,11.393645941610629],[-8.581305304386774,11.1362456323
264805],[-8.620321010767128,10.810890814655183],[-8.407310756860028,10.909256903522762],[-8.282357143578281,10.792597357623846],[-8.33537716310974,10.494811916541934],[-8.029943610048619,10.206534939001713]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Gambia",SOV_A3:"GMB",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Gambia",ADM0_A3:"GMB",GEOU_DIF:0,GEOUNIT:"Gambia",GU_A3:"GMB",SU_DIF:0,SUBUNIT:"Gambia",SU_A3:"GMB",BRK_DIFF:0,NAME:"Gambia",NAME_LONG:"The Gambia",BRK_A3:"GMB",BRK_NAME:"Gambia",BRK_GROUP:null,ABBREV:"Gambia",POSTAL:"GM",FORMAL_EN:"Republic of the Gambia",FORMAL_FR:null,NAME_CIAWF:"Gambia, The",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Gambia, The",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:1,MAPCOLOR13:8,POP_EST:2051363,POP_RANK:12,GDP_MD_EST:3387,POP_YEAR:2017,LASTCENSUS:2003,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"GA",ISO_A2:"GM",ISO_A3:"GMB",ISO_A3_EH:"GMB",ISO_N3:"270",UN_A3:"270",WB_A2:"GM",WB_A3:"GMB",WOE_ID:23424821,WOE_ID_EH:23424821,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GMB",ADM0_A3_US:"GMB",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:6,LONG_LEN:10,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[-16.841524624081273,13.15139394780256],[-16.71372880702347,13.594958604379855],[-15.624596320039942,13.62358734786956],[-15.39877031092446,13.86036876063092],[-15.08173539881382,13.876491807505985],[-14.687030808968487,13.630356960499784],[-14.376713833055788,13.625680243377374],[-14.046992356817482,13.79406789800045],[-13.844963344772408,13.505041612192002],[-14.277701788784555,13.280585028532244],[-14.712197231494628,13.298206691943777],[
2-15.141163295949468,13.509511623585238],[-15.511812506562933,13.278569647672867],[-15.691000535534995,13.270353094938457],[-15.931295945692211,13.130284125211332],[-16.841524624081273,13.15139394780256]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Guinea-Bissau",SOV_A3:"GNB",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Guinea-Bissau",ADM0_A3:"GNB",GEOU_DIF:0,GEOUNIT:"Guinea-Bissau",GU_A3:"GNB",SU_DIF:0,SUBUNIT:"Guinea-Bissau",SU_A3:"GNB",BRK_DIFF:0,NAME:"Guinea-Bissau",NAME_LONG:"Guinea-Bissau",BRK_A3:"GNB",BRK_NAME:"Guinea-Bissau",BRK_GROUP:null,ABBREV:"GnB.",POSTAL:"GW",FORMAL_EN:"Republic of Guinea-Bissau",FORMAL_FR:null,NAME_CIAWF:"Guinea-Bissau",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Guinea-Bissau",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:5,MAPCOLOR9:3,MAPCOLOR13:4,POP_EST:1792338,POP_RANK:12,GDP_MD_EST:2851,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"PU",ISO_A2:"GW",ISO_A3:"GNB",ISO_A3_EH:"GNB",ISO_N3:"624",UN_A3:"624",WB_A2:"GW",WB_A3:"GNB",WOE_ID:23424929,WOE_ID_EH:23424929,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GNB",ADM0_A3_US:"GNB",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:13,LONG_LEN:13,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[-13.700476040084325,12.586182969610194],[-13.718743658899513,12.24718557377551],[-13.828271857142125,12.142644151249044],[-13.743160773157413,11.811269029177412],[-13.900799729863776,11.678718980348748],[-14.121406419317779,11.677117010947697],[-14.382191534878729,11.509271958863692],[-14.685687221728898,11.527823798056488],[-15.130311245168173,11.040411688679526],[-15.664180467175527,11.458474025920795],[-16.085214199273565,11.52459402103824],[-16.314786749730203,11.80651479740655],[-16.30894731288123,11.95870189050612],[-16.61383826340328,12.170911159712702],[-16.677451951554573,12.384851589401052],[-16.147716844130585,12.547761542201187],[-15.816574266004254,12.515567124883347],[-15.54847693527401,12.628170070847347],[-13.700476040084325,12.586182969610194]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Equatorial Guinea",SOV_A3:"GNQ",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Equatorial Guinea",ADM0_A3:"GNQ",GEOU_DIF:0,GEOUNIT:"Equatorial Guinea",GU_A3:"GNQ",SU_DIF:0,SUBUNIT:"Equatorial Guinea",SU_A3:"GNQ",BRK_DIFF:0,NAME:"Eq. Guinea",NAME_LONG:"Equatorial Guinea",BRK_A3:"GNQ",BRK_NAME:"Eq. Guinea",BRK_GROUP:null,ABBREV:"Eq. G.",POSTAL:"GQ",FORMAL_EN:"Republic of Equatorial Guinea",FORMAL_FR:null,NAME_CIAWF:"Equatorial Guinea",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Equatorial Guinea",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:1,MAPCOLOR9:4,MAPCOLOR13:8,POP_EST:778358,POP_RANK:11,GDP_MD_EST:31770,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"EK",ISO_A2:"GQ",ISO_A3:"GNQ",ISO_A3_EH:"GNQ",ISO_N3:"226",UN_A3:"226",WB_A2:"GQ",WB_A3:"GNQ",WOE_ID:23424804,WOE_ID_EH:23424804,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GNQ",ADM0_A3_US:"GNQ",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Middle Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:10,LONG_LEN:17,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[9.649158155972628,2.283866075037736],[11.276449008843713,2.261050930180872],[11.285078973036462,1.057661851400013],[9.830284051155644,1.067893784993799],[9.492888624721985,1.010119533691494],[9.305613234096256,1.160911363119183],[9.649158155972628,2.283866075037736]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Greece",SOV_A3:"GRC",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Greece",ADM0_A3:"GRC",GEOU_DIF:0,GEOUNIT:"Greece",GU_A3:"GRC",SU_DIF:0,SUBUNIT:"Greece",SU_A3:"GRC",BRK_DIFF:0,NAME:"Greece",NAME_LONG:"Greece",BRK_A3:"GRC",BRK_NAME:"Greece",BRK_GROUP:null,ABBREV:"Greece",POSTAL:"GR",FORMAL_EN:"Hellenic Republic",FORMAL_FR:null,NAME_CIAWF:"Greece",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Greece",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:2,MAPCOLOR9:2,MAPCOLOR13:9,POP_EST:10768477,POP_RANK:14,GDP_MD_EST:290500,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"GR",ISO_A2:"GR",ISO_A3:"GRC",ISO_A3_EH:"GRC",ISO_N3:"300",UN_A3:"300",WB_A2:"GR",WB_A3:"GRC",WOE_ID:23424833,WOE_ID_EH:23424833,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GRC",ADM0_A3_US:"GRC",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"MultiPolygon",coordinates:[[[[20.15001590341052,39.62499766698397],[20.615000441172754,40.11000682225935],[20.674996779063633,40.43499990494303],[20.999989861747224,40.580003973954
201],[21.0200403174764,40.84272695572588],[21.674160597426976,40.931274522457954],[22.05537763844427,41.14986583105269],[22.597308383889015,41.130487168943205],[22.76177,41.3048],[22.952377150166452,41.33799388281115],[23.692073601992348,41.309080918943856],[24.492644891057978,41.58389618587208],[25.197201368925448,41.23448598893053],[26.106138136507127,41.328898830727866],[26.1170418637208,41.82690460872459],[26.60419559093623,41.562114569661134],[26.294602085075667,40.93626129817409],[26.056942172965364,40.82412344010075],[25.447677036244215,40.85254547786141],[24.925848422960996,40.947061672523176],[23.71481123220076,40.68712921809515],[24.40799889496401,40.124992987624125],[23.899967889102612,39.962005520175495],[23.342999301860743,39.96099782974582],[22.813987664488906,40.47600515396658],[22.626298862404724,40.25656118423913],[22.84974775563478,39.659310818025716],[23.35002729665257,39.19001129816729],[22.973099399515604,38.970903225249685],[23.530016310324925,38.51000112563841],[24.025024855248887,38.21999298761648],[24.040011020613633,37.655014553369455],[23.11500288258918,37.920011298162166],[23.409971958111015,37.40999074965734],[22.77497195810861,37.3050100774565],[23.154225294698648,36.422505804992085],[22.49002811045105,36.410000108377375],[21.67002648284364,36.844986477194226],[21.29501061370152,37.64498932550461],[21.12003421396139,38.310323391262756],[20.73003217945461,38.76998525649881],[20.217712029712885,39.340234686839665],[20.15001590341052,39.62499766698397]]],[[[23.69998009613306,35.70500438083556],[24.246665073348737,35.368022365860185],[25.025015496528937,35.424995632462014],[25.769207797964242,35.35401805270911],[25.745023227651615,35.179997666966244],[26.29000288260167,35.29999034274795],[26.164997592887715,35.004995429009824],[24.72498213064233,34.91998769788964],[24.73500735850692,35.084990546197616],[23.51497846852814,35.27999156345098],[23.69998009613306,35.70500438083556]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Denmark",SOV_A3:"DN1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"Greenland",ADM0_A3:"GRL",GEOU_DIF:0,GEOUNIT:"Greenland",GU_A3:"GRL",SU_DIF:0,SUBUNIT:"Greenland",SU_A3:"GRL",BRK_DIFF:0,NAME:"Greenland",NAME_LONG:"Greenland",BRK_A3:"GRL",BRK_NAME:"Greenland",BRK_GROUP:null,ABBREV:"Grlnd.",POSTAL:"GL",FORMAL_EN:"Greenland",FORMAL_FR:null,NAME_CIAWF:"Greenland",NOTE_ADM0:"Den.",NOTE_BRK:null,NAME_SORT:"Greenland",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:1,MAPCOLOR9:3,MAPCOLOR13:12,POP_EST:57713,POP_RANK:8,GDP_MD_EST:2173,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2015,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"GL",ISO_A2:"GL",ISO_A3:"GRL",ISO_A3_EH:"GRL",ISO_N3:"304",UN_A3:"304",WB_A2:"GL",WB_A3:"GRL",WOE_ID:23424828,WOE_ID_EH:23424828,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GRL",ADM0_A3_US:"GRL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Northern America",REGION_WB:"Europe & Central Asia",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:6,TINY:-99,HOMEPART:-99,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"Polygon",coordinates:[[[-46.76379,82.62796],[-43.40644,83.22516],[-39.89753,83.18018],[-38.62214,83.54905],[-35.08787,83.64513],[-27.10046,83.51966],[-20.84539,82.72669],[-22.69182,82.34165],[-26.51753,82.29765],[-31.9,82.2],[-31.39646,82.02154],[-27.85666,82.13178],[-24.84448,81.78697],[-22.90328,82.09317],[-22.07175,81.73449],[-23.16961,81.15271],[-20.62363,81.52462],[-15.76818,81.91245],[-12.77018,81.71885],[-12.20855,81.29154],[-16.28533,80.58004],[-16.85,80.35],[-20.04624,80.17708],[-17.73035,80.12912],[-18.9,79.4],[-19.70499,78.75128],[-19.67353,77.63859],[-18.47285,76.98565],[-20.03503,76.94434],[-21.67944,76.62795],[-19.83407,76.09808],[-19.59896,75.24838],[-20.66818,75.15585],[-19.37281,74.29561],[-21.59422,74.22382],[-20.43454,73.81713],[-20.76234,73.46436],[-22.17221,73.30955],[-23.56593,73.30663],[-22.31311,72.62928],[-22.29954,72.18409],[-24.27834,72.59788],[-24.79296,72.3302],[-23.44296,72.08016],[-22.13281,71.46898],[-21.75356,70.66369],[-23.53603,70.471],[-24.30702,70.85649],[-25.54341,71.43094],[-25.20135,70.75226],[-26.36276,70.22646],[-23.72742,70.18401],[-22.34902,70.12946],[-25.02927,69.2588],[-27.74737,68.47046],[-30.67371,68.12503],[-31.77665,68.12078],[-32.81105,67.73547],[-34.20196,66.67974],[-36.35284,65.9789],[-37.04378,65.93768],[-38.37505,65.69213],[-39.81222,65.45848],[-40.66899,64.83997],[-40.68281,64.13902],[-41.1887,63.48246],[
2-42.81938,62.68233],[-42.41666,61.90093],[-42.86619,61.07404],[-43.3784,60.09772],[-44.7875,60.03676],[-46.26364,60.85328],[-48.26294,60.85843],[-49.23308,61.40681],[-49.90039,62.38336],[-51.63325,63.62691],[-52.14014,64.27842],[-52.27659,65.1767],[-53.66166,66.09957],[-53.30161,66.8365],[-53.96911,67.18899],[-52.9804,68.35759],[-51.47536,68.72958],[-51.08041,69.14781],[-50.87122,69.9291],[-52.013585,69.574925],[-52.55792,69.42616],[-53.45629,69.283625],[-54.68336,69.61003],[-54.75001,70.28932],[-54.35884,70.821315],[-53.431315,70.835755],[-51.39014,70.56978],[-53.10937,71.20485],[-54.00422,71.54719],[-55,71.40653696727257],[-55.83468,71.65444],[-54.71819,72.58625],[-55.32634,72.95861],[-56.12003,73.64977],[-57.32363,74.71026],[-58.59679,75.09861],[-58.58516,75.51727],[-61.26861,76.10238],[-63.39165,76.1752],[-66.06427,76.13486],[-68.50438,76.06141],[-69.66485,76.37975],[-71.40257,77.00857],[-68.77671,77.32312],[-66.76397,77.37595],[-71.04293,77.63595],[-73.297,78.04419],[-73.15938,78.43271],[-69.37345,78.91388],[-65.7107,79.39436],[-65.3239,79.75814],[-68.02298,80.11721],[-67.15129,80.51582],[-63.68925,81.21396],[-62.23444,81.3211],[-62.65116,81.77042],[-60.28249,82.03363],[-57.20744,82.19074],[-54.13442,82.19962],[-53.04328,81.88833],[-50.39061,82.43883],[-48.00386,82.06481],[-46.59984,81.985945],[-44.523,81.6607],[-46.9007,82.19979],[-46.76379,82.62796]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Guatemala",SOV_A3:"GTM",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Guatemala",ADM0_A3:"GTM",GEOU_DIF:0,GEOUNIT:"Guatemala",GU_A3:"GTM",SU_DIF:0,SUBUNIT:"Guatemala",SU_A3:"GTM",BRK_DIFF:0,NAME:"Guatemala",NAME_LONG:"Guatemala",BRK_A3:"GTM",BRK_NAME:"Guatemala",BRK_GROUP:null,ABBREV:"Guat.",POSTAL:"GT",FORMAL_EN:"Republic of Guatemala",FORMAL_FR:null,NAME_CIAWF:"Guatemala",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Guatemala",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:3,MAPCOLOR9:3,MAPCOLOR13:6,POP_EST:15460732,POP_RANK:14,GDP_MD_EST:131800,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"GT",ISO_A2:"GT",ISO_A3:"GTM",ISO_A3_EH:"GTM",ISO_N3:"320",UN_A3:"320",WB_A2:"GT",WB_A3:"GTM",WOE_ID:23424834,WOE_ID_EH:23424834,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GTM",ADM0_A3_US:"GTM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Central America",REGION_WB:"Latin America & Caribbean",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:5,TINY:4,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-89.14308041050333,17.808318996649405],[-89.15080603713095,17.015576687075836],[-89.22912167026928,15.886937567605171],[-88.93061275913527,15.887273464415076],[-88.60458614780585,15.70638011317736],[-88.51836402052686,15.855389105690975],[-88.22502275262202,15.727722479713904],[-88.68067969435563,15.346247056535304],[-89.15481096063357,15.06641917567481],[-89.22522009963127,14.874286200413621],[-89.14553504103719,14.678019110569153],[-89.35332597528281,14.424132798719086],[-89.58734269891656,14.36258616785949],[-89.53421932652051,14.244815578666305],[-89.72193396682073,14.134228013561696],[-90.0646779039966,13.881969509328925],[-90.09555457229098,13.735337632700734],[-90.60862403030085,13.909771429901951],[-91.23241024449605,13.927832342987957],[-91.68974667027913,14.126218166556455],[-92.22775000686983,14.538828640190928],[-92.20322953974733,14.830102850804069],[-92.08721594925207,15.064584662328441],[-92.2292486234063,15.251446641495875],[-91.74796017125595,16.066564846251765],[-90.46447262242266,16.069562079324655],[-90.43886695022204,16.410109768128095],[-90.60084672724093,16.47077789963879],[-90.71182186558772,16.687483018454728],[-91.08167009150065,16.918476670799407],[-91.45392127151516,17.252177232324172],[-91.00226925328421,17.25465770107418],[-91.00151994501596,17.817594916245696],[-90.06793351923098,17.819326076727478],[-89.14308041050333,17.808318996649405]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Guyana",SOV_A3:"GUY",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Guyana",ADM0_A3:"GUY",GEOU_DIF:0,GEOUNIT:"Guyana",GU_A3:"GUY",SU_DIF:0,SUBUNIT:"Guyana",SU_A3:"GUY",BRK_DIFF:0,NAME:"Guyana",NAME_LONG:"Guyana",BRK_A3:"GUY",BRK_NAME:"Guyana",BRK_GROUP:null,ABBREV:"Guy.",POSTAL:"GY",FORMAL_EN:"Co-operative Republic of Guyana",FORMAL_FR:null,NAME_CIAWF:"Guyana",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Guyana",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:1,MAPCOLOR9:4,MAPCOLOR13:8,POP_EST:737718,POP_RANK:11,GDP_MD_EST:6093,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"GY",ISO_A2:"GY",ISO_A3:"GUY",ISO_A3_EH:"GUY",ISO_N3:"328",UN_A3:"328",WB_A2:"GY",WB_A3:"GUY",WOE_ID:23424836,WOE_ID_EH:23424836,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"GUY",ADM0_A3_US:"GUY",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[-56.539385748914555,1.899522609866921],[-56.78270423036083,1.863710842288654],[-57.335822923396904,1.948537705895759],[-57.66097103537737,1.682584947105639],[-58.11344987652502,1.507195135907025],[-58.429477098205965,1.463941962078721],[-58.540012986878295,1.268088283692521],[-59.03086157900265,1.317697658692722],[-59.64604366722126,1.786893825686789],[-59.71854570172675,2.24963043864436],[-59.97452490908456,2.755232652188056],[-59.815413174057866,3.606498521332085],[-59.53803992373123,3.958802598481938],[-59.767405768458715,4.423502915866607],[-60.11100236676738,4.5749665389
214083],[-59.980958624904886,5.014061184098139],[-60.21368343773133,5.244486395687602],[-60.73357418480372,5.200277207861901],[-61.410302903881956,5.959068101419618],[-61.13941504580795,6.234296779806144],[-61.15933631045648,6.696077378766319],[-60.54399919294099,6.856584377464883],[-60.2956680975624,7.043911444522919],[-60.637972785063766,7.414999904810855],[-60.5505879380582,7.779602972846178],[-59.758284878159195,8.367034816924047],[-59.10168412945866,7.999201971870492],[-58.48296220562806,7.347691351750697],[-58.45487606467742,6.832787380394464],[-58.078103196837375,6.809093736188643],[-57.542218593970645,6.321268215353356],[-57.14743648947689,5.973149929219161],[-57.307245856339506,5.073566595882227],[-57.91428890647214,4.812626451024414],[-57.8602095200787,4.57680105226045],[-58.04469438336068,4.060863552258382],[-57.60156897645787,3.334654649260685],[-57.28143347840971,3.333491929534119],[-57.15009782573991,2.768926906745406],[-56.539385748914555,1.899522609866921]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Honduras",SOV_A3:"HND",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Honduras",ADM0_A3:"HND",GEOU_DIF:0,GEOUNIT:"Honduras",GU_A3:"HND",SU_DIF:0,SUBUNIT:"Honduras",SU_A3:"HND",BRK_DIFF:0,NAME:"Honduras",NAME_LONG:"Honduras",BRK_A3:"HND",BRK_NAME:"Honduras",BRK_GROUP:null,ABBREV:"Hond.",POSTAL:"HN",FORMAL_EN:"Republic of Honduras",FORMAL_FR:null,NAME_CIAWF:"Honduras",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Honduras",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:5,MAPCOLOR9:2,MAPCOLOR13:5,POP_EST:9038741,POP_RANK:13,GDP_MD_EST:43190,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"HO",ISO_A2:"HN",ISO_A3:"HND",ISO_A3_EH:"HND",ISO_N3:"340",UN_A3:"340",WB_A2:"HN",WB_A3:"HND",WOE_ID:23424841,WOE_ID_EH:23424841,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"HND",ADM0_A3_US:"HND",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Central America",REGION_WB:"Latin America & Caribbean",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4.5,MAX_LABEL:9.5},geometry:{type:"Polygon",coordinates:[[[-89.35332597528281,14.424132798719086],[-89.14553504103719,14.678019110569153],[-89.22522009963127,14.874286200413621],[-89.15481096063357,15.06641917567481],[-88.68067969435563,15.346247056535304],[-88.22502275262202,15.727722479713904],[-88.12115312371537,15.688655096901357],[-87.90181250685242,15.864458319558196],[-87.61568010125234,15.878798529519202],[-87.52292090528846,15.797278957578783],[-87.36776241733213,15.846940009011291],[-86.90319129102818,15.75671295822957],[-86.44094560417739,15.782835394753192],[-86.11923397494434,15.893448798073962],[-86.00195431185784,16.00540578863439],[-85.68331743034628,15.953651841693954],[-85.44400387240256,15.885749009662447],[-85.18244361035721,15.909158433490632],[-84.98372188997882,15.995923163308703],[-84.52697974316715,15.857223619037427],[-84.36825558138258,15.835157782448732],[-84.06305457226682,15.648244126849136],[-83.77397661002612,15.424071763566872],[-83.41038123242038,15.270902818253774],[-83.14721900097413,14.99582916916421],[-83.48998877636612,15.016267198135537],[-83.62858496777292,14.880073960830302],[-83.97572140169359,14.749435939996461],[-84.22834164095241,14.748764146376658],[-84.4493359036486,14.621614284722497],[-84.64958207877964,14.666805324761867],[-84.82003679069436,14.81958669683267],[-84.9245006985724,14.79049286545235],[-85.05278744173694,14.551541042534723],[-85.14875057650296,14.560196844943617],[-85.16536454948482,14.354369615125051],[-85.51441301140028,14.079011745657908],[-85.69866533073696,13.960078436738002],[-85.80129472526859,13.83605499923759],[-86.09626380079061,14.038187364147234],[-86.31214209668993,13.77135610600817],[-86.52070817741992,13.778487453664468],[-86.75508663607971,13.754845485890913],[-86.7338217841916,13.263092556201443],[-86.88055701368438,13.254204209847217],[-87.00576900912758,13.025794379117158],[-87.3166
25442579549,12.984685777229004],[-87.48940873894713,13.297534898323931],[-87.79311113152657,13.384480495655055],[-87.7235029772294,13.785050360565506],[-87.85951534702161,13.893312486217098],[-88.06534257684014,13.964625962779778],[-88.50399797234971,13.845485948130857],[-88.541230841816,13.980154730683479],[-88.84307288283284,14.14050670008517],[-89.05851192905766,14.340029405164216],[-89.35332597528281,14.424132798719086]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Croatia",SOV_A3:"HRV",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Croatia",ADM0_A3:"HRV",GEOU_DIF:0,GEOUNIT:"Croatia",GU_A3:"HRV",SU_DIF:0,SUBUNIT:"Croatia",SU_A3:"HRV",BRK_DIFF:0,NAME:"Croatia",NAME_LONG:"Croatia",BRK_A3:"HRV",BRK_NAME:"Croatia",BRK_GROUP:null,ABBREV:"Cro.",POSTAL:"HR",FORMAL_EN:"Republic of Croatia",FORMAL_FR:null,NAME_CIAWF:"Croatia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Croatia",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:4,MAPCOLOR9:5,MAPCOLOR13:1,POP_EST:4292095,POP_RANK:12,GDP_MD_EST:94240,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"HR",ISO_A2:"HR",ISO_A3:"HRV",ISO_A3_EH:"HRV",ISO_N3:"191",UN_A3:"191",WB_A2:"HR",WB_A3:"HRV",WOE_ID:23424843,WOE_ID_EH:23424843,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"HRV",ADM0_A3_US:"HRV",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[19.005484597557594,44.86023449354299],[18.553214145591653,45.08158966733146],[17.861783481526402,45.067740383477144],[17.002146030351014,45.23377676043094],[16.534939406000206,45.21160757097772],[16.318156772535872,45.00412669532591],[15.959367303133376,45.23377676043094],[15.750026075918981,44.818711656262565],[16.23966027188453,44.35114329688571],[16.456442905348865,44.04123973243128],[16.91615644701733,43.66772247982567],[17.297373488034452,43.44634064388737],[17.674921502358984,43.02856252702361],[18.56,42.65],[18.45001688302086,42.47999224531218],[18.450016310304818,42.47999136002932],[17.509970330483327,42.849994615239154],[16.930005730871642,43.20999848080038],[16.015384555737683,43.50721548112722],[15.174453973052096,44.243191229827914],[15.376250441151797,44.31791535092208],[14.92030927904051,44.73848399512946],[14.901602410550879,45.07606028907611],[14.258747592839995,45.23377676043094],[13.952254672917036,44.80212352149687],[13.656975538801191,45.13693512631596],[13.67940311041582,45.48414907488501],[13.715059848697223,45.500323798192376],[14.411968214585414,45.46616567644746],[14.595109490627806,45.634940904312714],[14.935243767972935,45.471695054702685],[15.327674594797429,45.45231639259323],[15.323953891672405,45.73178253842768],[15.671529575267556,45.83415355079788],[15.768732944408553,46.23810822202345],[16.564808383864857,46.50375092221983],[16.8825150895953,46.38063182228444],[17.630066359129557,45.95176911069419],[18.45606245288286,45.75948110613615],[18.829824792873946,45.908872358025285],[19.072768995854176,45.52151113543209],[19.39047570158459,45.236515611342384],[19.005484597557594,44.86023449354299]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Haiti",SOV_A3:"HTI",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Haiti",ADM0_A3:"HTI",GEOU_DIF:0,GEOUNIT:"Haiti",GU_A3:"HTI",SU_DIF:0,SUBUNIT:"Haiti",SU_A3:"HTI",BRK_DIFF:0,NAME:"Haiti",NAME_LONG:"Haiti",BRK_A3:"HTI",BRK_NAME:"Haiti",BRK_GROUP:null,ABBREV:"Haiti",POSTAL:"HT",FORMAL_EN:"Republic of Haiti",FORMAL_FR:null,NAME_CIAWF:"Haiti",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Haiti",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:1,MAPCOLOR9:7,MAPCOLOR13:2,POP_EST:10646714,POP_RANK:14,GDP_MD_EST:19340,POP_YEAR:2017,LASTCENSUS:2003,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"HA",ISO_A2:"HT",ISO_A3:"HTI",ISO_A3_EH:"HTI",ISO_N3:"332",UN_A3:"332",WB_A2:"HT",WB_A3:"HTI",WOE_ID:23424839,WOE_ID_EH:23424839,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"HTI",ADM0_A3_US:"HTI",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Caribbean",REGION_WB:"Latin America & Caribbean",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[-71.71236141629296,19.714455878167357],[-71.62487321642283,19.169837958243306],[-71.7013026597825,18.785416978424053],[-71.94511206733556,18.61690013272026],[-71.68773759630588,18.3
21666006110447],[-71.70830481635805,18.044997056546094],[-72.37247616238935,18.21496084235406],[-72.84441118029488,18.145611070218365],[-73.45455481636503,18.2179063989947],[-73.92243323433566,18.030992743395004],[-74.45803361682478,18.342549953682706],[-74.36992529976713,18.66490753831941],[-73.44954220243272,18.526052964751145],[-72.69493709989064,18.445799465401862],[-72.334881557897,18.668421535715254],[-72.79164954292489,19.10162506761803],[-72.78410478381028,19.48359141690341],[-73.41502234566175,19.639550889560283],[-73.18979061551762,19.915683905511912],[-72.57967281766362,19.871500555902358],[-71.71236141629296,19.714455878167357]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Hungary",SOV_A3:"HUN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Hungary",ADM0_A3:"HUN",GEOU_DIF:0,GEOUNIT:"Hungary",GU_A3:"HUN",SU_DIF:0,SUBUNIT:"Hungary",SU_A3:"HUN",BRK_DIFF:0,NAME:"Hungary",NAME_LONG:"Hungary",BRK_A3:"HUN",BRK_NAME:"Hungary",BRK_GROUP:null,ABBREV:"Hun.",POSTAL:"HU",FORMAL_EN:"Republic of Hungary",FORMAL_FR:null,NAME_CIAWF:"Hungary",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Hungary",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:6,MAPCOLOR9:1,MAPCOLOR13:5,POP_EST:9850845,POP_RANK:13,GDP_MD_EST:267600,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"HU",ISO_A2:"HU",ISO_A3:"HUN",ISO_A3_EH:"HUN",ISO_N3:"348",UN_A3:"348",WB_A2:"HU",WB_A3:"HUN",WOE_ID:23424844,WOE_ID_EH:23424844,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"HUN",ADM0_A3_US:"HUN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Eastern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[16.202298211337364,46.85238597267696],[16.534267612380376,47.49617096616912],[16.340584344150415,47.71290192320123],[16.90375410326726,47.71486562762833],[16.979666782304037,48.123497015976305],[17.48847293464982,47.867466132186216],[17.857132602620027,47.75842886005037],[18.696512892336926,47.880953681014404],[18.77702477384767,48.081768296900634],[19.17436486173989,48.11137889260387],[19.661363559658497,48.26661489520866],[19.769470656013112,48.202691148463614],[20.239054396249347,48.32756724709692],[20.473562045989866,48.562850043321816],[20.801293979584926,48.623854071642384],[21.872236362401736,48.31997081155002],[22.085608351334855,48.42226430927179],[22.640819939878725,48.150239569687415],[22.710531447040495,47.88219391538941],[22.099767693782837,47.6724392767167],[21.626514926853872,46.99423777931816],[21.02195234547125,46.3160879583519],[20.220192498462836,46.127468980486555],[19.596044549241583,46.17172984474454],[18.82983808764996,45.90887767189193],[18.829824792873946,45.908872358025285],[18.45606245288286,45.75948110613615],[17.630066359129557,45.95176911069419],[16.8825150895953,46.38063182228444],[16.564808383864857,46.50375092221983],[16.370504998447416,46.841327216166505],[16.202298211337364,46.85238597267696]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Indonesia",SOV_A3:"IDN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Indonesia",ADM0_A3:"IDN",GEOU_DIF:0,GEOUNIT:"Indonesia",GU_A3:"IDN",SU_DIF:0,SUBUNIT:"Indonesia",SU_A3:"IDN",BRK_DIFF:0,NAME:"Indonesia",NAME_LONG:"Indonesia",BRK_A3:"IDN",BRK_NAME:"Indonesia",BRK_GROUP:null,ABBREV:"Indo.",POSTAL:"INDO",FORMAL_EN:"Republic of Indonesia",FORMAL_FR:null,NAME_CIAWF:"Indonesia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Indonesia",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:6,MAPCOLOR9:6,MAPCOLOR13:11,POP_EST:260580739,POP_RANK:17,GDP_MD_EST:3028e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"4. Emerging region: MIKT",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"ID",ISO_A2:"ID",ISO_A3:"IDN",ISO_A3_EH:"IDN",ISO_N3:"360",UN_A3:"360",WB_A2:"ID",WB_A3:"IDN",WOE_ID:23424846,WOE_ID_EH:23424846,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"IDN",ADM0_A3_US:"IDN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"South-Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"MultiPolygon",coordinates:[[[[120.71560875863045,-10.23958139408785],[120.2950142762069,-10.258649997603598],[118.96780846565471,-9.557969252158017],[119.90030968636157,-9.361340427287487],[120.42575564990537,-9.665921319215784],[120.7755017436568,-9.969675388227444],[120.71560875863045,-10.23958139408785]]],[[[124.96868248911623,-8.892790215697083],[125.07001997284058,-9.089987481322908],[125.08852013560109,-9.393173109579294],[124.43595014861936,-10.140000909061428],[123.57998172413667,-10.359987481327934],[123.45998904835497,-10.23999480554616],[123.55000939340746,-9.900015557497952],[123.98000898650812,-9.29002695072468],[124.96868248911623,-8.892790215697083]]],[[[117.90001834520777,-8.095681247594896],[118.26061648974044,-8.362383314653314],[118.87845991422208,-8.280682875199815],[119.12650678922316,-8.705824883665045],[117.97040164598926,-8.906639499551332],[117.27773074754899,-9.040894870645545],[116.74014082241669,-9.03293670007261],[117.08373742072527,-8.457157891476612],[117.6320243673421,-8.449303073768164],[117.90001834520777,-8.095681247594896]]],[[[122.90353722543611,-8.094234307490723],[122.75698286345633,-8.64980763106071],[121.25449059457017,-8.933666273639915],[119.92439090380961,-8.81041798262386],[119.92092858284607,-8.444858900591143],[120.71509199430764,-8.236964613480936],[121.34166873584653,-8.536739597206093],[122.00736453663043,-8.460620212440148],[122.90353722543611,-8.094234307490723]]],[[[108.62347863162901,-6.777673841990662],[110.53922732955326,-6.877357679881669],[110.75957563684588,-6.465186455921739],[112.61481123255643,-6.946035658397577],[112.97876834518806,-7.594213148634552],[114.47893517462117,-7.776527601760264],[115.70552697150114,-8.370806573116838],[114.56451134649652,-8.751816908404805],[113.4647335144609,-8.348947442257412],[112.55967247930099,-8.376180922075235],[111.52206139531253,-8.30212859460093],[110.58614953007432,-8.122604668819008],[109.42766727095514,-7.740664157749748],[108.69365522668139,-7.641600437046208],[108.27776329959639,-7.766657403192553],[106.45410200401616,-7.354899590690934],[106.28062422081237,-6.924899997590273],[105.36548628135554,-6.851416110871241],[106.05164594932702,-5.895918877794486],[107.2650085795402,-5.954985039904045],[108.0720910990747,-6.345762220895224],[108.48684614464932,-6.421984958525755],[108.62347863162901,-6.777673841990662]]],[[[134.72462446506668,-6.214400730009274],[134.21013390516893,-6.895237725454692],[134.11277550673097,-6.142467136258986],[134.29033572808586,-5.78305754966901],[134.49962527886785,-5.445042006047871],[134.72700158095213,-5.737582289252146],[134.72462446506668,-6.214400730009274]]],[[[127.24921512258899,-3.459065036638862],[126.87492272349883,-3.790982761249566],[126.18380211802733,-3.607376397316543],[125.98903364471929,-3.177273451351311],[127.00065148326505,-3.129317722184481],[127.24921512258899,-3.459065036638862]]],[[[130.4713440288518,-3.093764336767606],[130.83483605359285,-3.858472181822734],[129.99054650280814,-3.446300957862803],[129.15524865124243,-3.362636813982235],[128.5906836284536,-3.428679294451229],[127.89889122936236,-3.393435967628179],[128.1358793478528,-2.843650404474985],[129.37099775606097,-2.802154229344623],[130.4713440288518,-3.093764336767606]]],[[[141.00021040259188,-2.60015105551561],[141.01705691951904,-5.859021905138007],[141.0338517600139,-9.11789275476049],[140.14341515519263,-8.297167657100943],[139.12776655492806,-8.096042982621015],[138.88147667862503,-8.380935153846082],[137.61447391169284,-8.411682631059733],[138.03909915583526,-7.597882175327328],[138.6686214540148,-7.320224704623058],[138.40791385310237,-6.23284921633747],[137.92783979711086,-5.393365573755986],[135.98925011611348,-4.546543877789034],[135.16459760959972,-4.462931410340843],[133.66288048719795,-3.538853448097498],[133.3677047059468,-4.0248186173703],[132.9839555197473,-4.112978610860267],[132.756940952689,-3.746282647317116],[132.75378869031928,-3.311787204607057],[131.9898043153162,-2.820551039240527],[133.0668445171435,-2.460417982598415],[133.78003095920357,-2.479848321140196],[133.69621178602617,-2.214541517753673],[132.2323734884943,-2.212526136894311],[131.83622195854477,-1.617161960459669],[130.94283979708288,-1.432522067880782],[130.51955814018007,-.937720228686061],[131.86753787651364,-.695461114101789],[132.3801164084168,-.369537855636963],[133.98554813042844,-.780210463060428],[134.1433679546478,-1.15186736410358],[134.4226273947531,-2.769184665542369],[135.45760298069476,-3.367752780779099],[136.2933142437188,-2.307042331556161],[137.44073774632753,-1.703513278819344],[138.3297274110448,-1.702686455902722],[139.18492068904297,-2.051295668143624],[139.92668419816042,-2.409051608900256],[141.00021040259188,-2.60015105551561]]],[[[125.24050052297153,1.41983612711762],[124.43703535369744,.427881171058985],[123.68550499887678,.235593166500905],[122.7230831238729,.431136786293365],[121.05672488818911,.38121735269938],[120.1830831238627,.237246812334234],[120.04086958219548,-.519657891444837],[120.93590538949078,-1.408905938323343],[121.47582075407618,-.955962009285102],[123.34056481332848,-.615672702643153],[123.2583992859845,-1.076213067228323],[122.82271528533167,-.930950616055867],[122.38852990121538,-1.51685800538111],[121.50827355355554,-1.904482924002409],[122.45457238168436,-3.186058444840953],[122.27189619353251,-3.529500013852683],[123.17096276254657,-4.683693129091694],[123.16233279835379,-5.340603936386032],[122.62851
2525277873,-5.634591159694466],[122.23639448454801,-5.282933037948268],[122.71956912647707,-4.464171644715861],[121.73823367725444,-4.851331475446571],[121.48946333220132,-4.574552504091287],[121.61917117725395,-4.188477878438661],[120.89818159391771,-3.602105401222815],[120.97238895068878,-2.627642917494896],[120.30545291552986,-2.931603692235711],[120.3900472351917,-4.097579034037295],[120.43071658740539,-5.52824106203775],[119.79654341031957,-5.673400160345636],[119.3669055522449,-5.379878024927791],[119.6536063986002,-4.45941741294493],[119.49883548388598,-3.494411716326496],[119.07834435432702,-3.487021986508751],[118.76776899625284,-2.801999200047675],[119.18097374885875,-2.147103773612784],[119.32339399625513,-1.353147067880457],[119.82599897672591,.15425446207351],[120.0357019389663,.566477362465733],[120.88577925016764,1.30922272379685],[121.66681684782694,1.013943589681091],[122.92756676645186,.875192368977395],[124.0775224142429,.917101955566153],[125.06598921112183,1.643259182131573],[125.24050052297153,1.41983612711762]]],[[[128.68824873262068,1.132385972494035],[128.6359521831413,.258485826006208],[128.1201697124362,.356412665199301],[127.96803429576883,-.252077325037519],[128.37999881399972,-.780003757331272],[128.10001590384238,-.899996433113046],[127.69647464407504,-.266598402511491],[127.39949018769371,1.01172
21503092588],[127.60051150930909,1.810690822757195],[127.93237755748757,2.174596258956569],[128.00415612194084,1.628531398928359],[128.59455936087548,1.540810655112892],[128.68824873262068,1.132385972494035]]],[[[109.6632601257738,2.006466986494999],[109.83022667850881,1.338135687664206],[110.51406090702719,.773131415201007],[111.15913781132664,.976478176269538],[111.79754845586038,.90444122965458],[112.38025190638362,1.410120957846786],[112.85980919805226,1.497790025229875],[113.8058496440195,1.217548732911069],[114.62135542201756,1.430688177898901],[115.1340373067853,2.821481838386234],[115.51907840379195,3.16923838949441],[115.86551720587673,4.306559149590086],[117.01521447150637,4.306094061699483],[117.88203494677018,4.137551377779516],[117.31323245653348,3.234428208830593],[118.04832970588544,2.287690131027389],[117.87562706916597,1.827640692548925],[118.99674726773813,.902219143066077],[117.8118583517178,.784241848143736],[117.47833865770602,.102474676917041],[117.52164350796662,-.803723239753282],[116.56004845587947,-1.487660821136203],[116.53379682827526,-2.483517347832873],[116.14808393764864,-4.012726332213987],[116.00085778204911,-3.65703744874908],[114.86480309454456,-4.106984144714403],[114.46865156459504,-3.495703627133807],[113.75567182826413,-3.439169610206491],[113.25699425664752,-3.118775729996926],[112.06812625534073,-3.478392022316058],[111.70329064336008,-2.994442233902618],[111.04824018762824,-3.049425957861175],[110.223846063276,-2.93403248455347],[110.0709355001243,-1.592874037282485],[109.57194786991406,-1.314906507984475],[109.09187381392255,-.459506524257122],[108.95265750532823,.41537547444436],[109.06913618371411,1.341933905437656],[109.6632601257738,2.006466986494999]]],[[[105.81765506390937,-5.852355645372384],[104.71038414919147,-5.873284600450631],[103.86821333213081,-5.037314955264961],[102.58426069540698,-4.220258884298175],[102.15617313030108,-3.614146009946836],[101.39911339722508,-2.799777113459157],[100.90250288290022,-2.050262139497846],[100.14198082886068,-.650347588710943],[99.2637398620603,.183141587724677],[98.97001102091329,1.04288239176455],[98.60135135294311,1.823506577965546],[97.69959760944985,2.453183905442046],[97.17694217324984,3.308790594898639],[96.42401655475729,3.86885976807794],[95.38087609251355,4.970782172053688],[95.29302615761733,5.479820868344845],[95.93686282754177,5.439513251157123],[97.4848820332771,5.24632090903394],[98.36916914265569,4.268370266126382],[99.14255862833588,3.590349636240845],[99.69399783732243,3.174328518075171],[100.64143354696168,2.099381211755727],[101.6580123230074,2.083697414555203],[102.49827111207324,1.398700466310231],[103.07684044801309,.561361395668868],[103.83839603069836,.104541734208681],[103.43764529827499,-.711945896002916],[104.01078860882407,-1.05921152
210043],[104.36999148968496,-1.084843031421087],[104.53949018760224,-1.782371514496788],[104.88789269411407,-2.340425306816726],[105.622111444117,-2.428843682468056],[106.10859337771265,-3.061776625178922],[105.8574459167742,-4.305524997579795],[105.81765506390937,-5.852355645372384]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"India",SOV_A3:"IND",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"India",ADM0_A3:"IND",GEOU_DIF:0,GEOUNIT:"India",GU_A3:"IND",SU_DIF:0,SUBUNIT:"India",SU_A3:"IND",BRK_DIFF:0,NAME:"India",NAME_LONG:"India",BRK_A3:"IND",BRK_NAME:"India",BRK_GROUP:null,ABBREV:"India",POSTAL:"IND",FORMAL_EN:"Republic of India",FORMAL_FR:null,NAME_CIAWF:"India",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"India",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:3,MAPCOLOR9:2,MAPCOLOR13:2,POP_EST:1281935911,POP_RANK:18,GDP_MD_EST:8721e3,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"3. Emerging region: BRIC",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"IN",ISO_A2:"IN",ISO_A3:"IND",ISO_A3_EH:"IND",ISO_N3:"356",UN_A3:"356",WB_A2:"IN",WB_A3:"IND",WOE_ID:23424848,WOE_ID_EH:23424848,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"IND",ADM0_A3_US:"IND",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Southern Asia",REGION_WB:"South Asia",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"Polygon",coordinates:[[[92.67272098182556,22.041238918541254],[92.14603478390681,23.627498684172593],[91.86992760617132,23.624346421802784],[91.70647505083211,22.985263983649187],[91.15896325069973,23.50352692310439],[91.46772993364368,24.072639471934792],[91.91509280799443,24.130413723237112],[92.37620161333481,24.976692816664965],[91.79959598182208,25.147431748957317],[90.87221072791212,25.132600612889547],[89.92069258012185,25.26974986419218],[89.83248091019962,25.96508209889548],[89.35509402868729,26.014407253518073],[88.56304935094977,26.446525580342723],[88.2097892598025,25.768065700782714],[88.93155398962308,25.238692328384776],[88.30637251175602,24.866079413344206],[88.08442223506242,24.501657212821925],[88.69994022009092,24.23371491138856],[88.52976972855379,23.631141872649167],[88.87631188350309,22.87914642993783],[89.03196129756623,22.055708319582976],[88.88876590368542,21.690588487224748],[88.20849734899522,21.703171698487807],[86.97570438024027,21.49556163175521],[87.03316857294887,20.743307806882413],[86.49935102737379,20.151638495356607],[85.0602657409097,19.4785788029711],[83.94100589390001,18.302009792549725],[83.18921715691785,17.67122142177898],[82.19279218946592,17.016636053937816],[82.19124189649719,16.556664130107848],[81.69271935417748,16.310219224507904],[80.79199913933014,15.951972357644493],[80.32489586784388,15.89918488205835],[80.02506920768644,15.136414903214147],[80.2332735533904,13.835770778859981],[80.28629357292186,13.006260687710835],[79.8625468281285,12.056215318240888],[79.85799930208682,10.35727509199711],[79.340511509116,10.30885427493962],[78.88534549348918,9.546135972527722],[79.1897196796883,9.216543687370148],[78.2779407083305,8.933046779816934],[77.94116539908435,8.252959092639742],[77.53989790233794,7.965534776232332],[76.59297895702167,8.89927623131419],[76.13006147655108,10.299630031775521],[75.7464673196485,11.308250637248307],[75.39610110870959,11.781245022015824],[74.86481570831683,12.741935736537897],[74.61671715688354,13.99258291264968],[74.44385949086723,14.617221787977698],[73.5341992532334,15.99065216721496],[73.11990929554943,17.928570054592498],[72.82090945830865,19.208233547436166],[72.8244751321368,20.419503282141534],[72.6305334817454,21.356009426351008],[71.17527347197395,20.757441311114235],[70.4704586119451,20.877330634031384],[69.16413008003883,22.0892980005727],[69.6449276060824,22.450774644454338],[69.34959679553435,22.84317963306269],[68.1766451353734,23.69196503345671],[68.84259931831878,24.35913361256094],[71.04324018746823,24.3565239527302],[70.84469933460284,25.21510203704352],[70.2828731627256,25.72222870533983],[70.16892662952202,26.491871649678842],[69.51439293811313,26.940965684511372],[70.61649620960193,27.989196275335868],[71.77766564320032,27.9
213180243434525],[72.8237516620847,28.961591701772054],[73.45063846221743,29.97641347911987],[74.42138024282028,30.979814764931177],[74.40592898956501,31.69263947196528],[75.25864179881322,32.2711054550405],[74.45155927927871,32.7648996038055],[74.10429365427734,33.44147329358685],[73.74994835805197,34.31769887952785],[74.24020267120497,34.748887030571254],[75.75706098826834,34.50492259372132],[76.87172163280403,34.65354401299274],[77.83745079947457,35.494009507787766],[78.91226891471322,34.32193634697579],[78.81108646028574,33.50619802503242],[79.20889163606859,32.994394639613716],[79.1761287779955,32.48377981213778],[78.45844648632601,32.61816437431273],[78.73889448437401,31.515906073527063],[79.7213668151071,30.88271474865473],[81.11125613802932,30.183480943313402],[80.4767212259174,29.72986522065534],[80.08842451367627,28.79447011974014],[81.05720258985203,28.416095282499043],[81.99998742058497,27.925479234319994],[83.30424889519955,27.36450572357556],[84.6750179381738,27.234901231387536],[85.25177859898338,26.726198431906344],[86.02439293817918,26.63098460540857],[87.2274719583663,26.397898057556077],[88.06023766474982,26.41461538340249],[88.17480431514092,26.81040517832595],[88.04313276566123,27.445818589786825],[88.12044070836987,27.876541652939594],[88.73032596227856,28.086864732367516],[88.81424848832054,27.299315904239336],[88.83564253128938,27.098966376243762],[89.74452762243885,26.719402981059957],[90.37327477413407,26.87572418874288],[91.21751264848643,26.808648179628022],[92.03348351437509,26.83831045176356],[92.10371178585974,27.452614040633208],[91.69665652869665,27.77174184825165],[92.50311893104364,27.89687632904645],[93.41334760943269,28.640629380807226],[94.56599043170294,29.277438055939985],[95.40480228066464,29.03171662039213],[96.11767866413103,29.452802028922466],[96.58659061074749,28.83097951915434],[96.24883344928779,28.411030992134442],[97.32711388549004,28.26158274994634],[97.40256147663614,27.882536119085444],[97.0519885599681,27.69905894623315],[97.1339990580153,27.083773505149964],[96.41936567585097,27.264589341739224],[95.12476769407496,26.5735720891323],[95.1551534362626,26.001307277932085],[94.60324913938538,25.162495428970402],[94.55265791217164,24.675238348890336],[94.10674197792507,23.85074087167348],[93.3251876159428,24.078556423432204],[93.28632693885928,23.043658352139005],[93.06029422401463,22.70311066333557],[93.16612755734837,22.278459580977103],[92.67272098182556,22.041238918541254]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Ireland",SOV_A3:"IRL",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Ireland",ADM0_A3:"IRL",GEOU_DIF:0,GEOUNIT:"Ireland",GU_A3:"IRL",SU_DIF:0,SUBUNIT:"Ireland",SU_A3:"IRL",BRK_DIFF:0,NAME:"Ireland",NAME_LONG:"Ireland",BRK_A3:"IRL",BRK_NAME:"Ireland",BRK_GROUP:null,ABBREV:"Ire.",POSTAL:"IRL",FORMAL_EN:"Ireland",FORMAL_FR:null,NAME_CIAWF:"Ireland",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Ireland",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:3,MAPCOLOR9:2,MAPCOLOR13:2,POP_EST:5011102,POP_RANK:13,GDP_MD_EST:322e3,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"EI",ISO_A2:"IE",ISO_A3:"IRL",ISO_A3_EH:"IRL",ISO_N3:"372",UN_A3:"372",WB_A2:"IE",WB_A3:"IRL",WOE_ID:23424803,WOE_ID_EH:23424803,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"IRL",ADM0_A3_US:"IRL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Northern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-7.572167934591064,55.13162221945487],[-7.366030646178785,54.59584096945272],[-7.572167934591064,54.059956366586],[-6.953730231138067,54.073702297575636],[-6.197884894221033,53.86756500916337],[-6.032985398777611,53.15316417094435],[-6.788856573910849,52.260117906292336],[-8.56161658368356,51.669301255899356],[-9.977085740590269,51.82045482035308],[-9.166282517930782,52.86462881124268],[-9.688524542672454,53.8813626165853],[-8.327987433292009,54.66451894796863],[-7.572167934591064,5
25.13162221945487]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Iran",SOV_A3:"IRN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Iran",ADM0_A3:"IRN",GEOU_DIF:0,GEOUNIT:"Iran",GU_A3:"IRN",SU_DIF:0,SUBUNIT:"Iran",SU_A3:"IRN",BRK_DIFF:0,NAME:"Iran",NAME_LONG:"Iran",BRK_A3:"IRN",BRK_NAME:"Iran",BRK_GROUP:null,ABBREV:"Iran",POSTAL:"IRN",FORMAL_EN:"Islamic Republic of Iran",FORMAL_FR:null,NAME_CIAWF:"Iran",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Iran, Islamic Rep.",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:3,MAPCOLOR9:4,MAPCOLOR13:13,POP_EST:82021564,POP_RANK:16,GDP_MD_EST:1459e3,POP_YEAR:2017,LASTCENSUS:2006,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"IR",ISO_A2:"IR",ISO_A3:"IRN",ISO_A3_EH:"IRN",ISO_N3:"364",UN_A3:"364",WB_A2:"IR",WB_A3:"IRN",WOE_ID:23424851,WOE_ID_EH:23424851,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"IRN",ADM0_A3_US:"IRN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Southern Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:4,LONG_LEN:4,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2.5,MAX_LABEL:6.7},geometry:{type:"Polygon",coordinates:[[[61.210817091725744,35.650072333309225],[60.80319339380745,34.40410187431986],[60.52842980331158,33.676446031218006],[60.963700392506006,33.52883230237626],[60.536077915290775,32.98126882581157],[60.863654819588966,32.18291962333443],[60.94194461451113,31.548074652628753],[61.69931440618083,31.379506130492672],[61.781221551363444,30.735850328081238],[60.87424848820879,29.829238999952608],[61.36930870956494,29.303276272085924],[61.77186811711863,28.6993338078908],[62.72783043808599,28.25964488373539],[62.75542565292986,27.378923448184988],[63.2338977395203,27.21704702403071],[63.31663170761959,26.756532497661667],[61.87418745305655,26.239974880472104],[61.49736290878419,25.0782370061185],[59.616134067630846,25.380156561783778],[58.525761346272304,25.60996165618573],[57.39725141788239,25.73990204518364],[56.970765822177555,26.966106268821363],[56.492138706290206,27.143304755150197],[55.723710158110066,26.964633490501043],[54.71508955263727,26.480657863871514],[53.49309695823135,26.81236888275305],[52.48359785340961,27.580849107365495],[51.52076256694742,27.865689602158298],[50.85294803243954,28.814520575469388],[50.115008579311585,30.147772528599717],[49.576850213423995,29.985715236932407],[48.94133344909855,30.317090359004037],[48.567971225789755,29.926778265903522],[48.0145683123761,30.452456773392598],[48.004698113808324,30.985137437457244],[47.68528608581227,30.984853217079632],[47.8492037290421,31.70917593029867],[47.33466149271191,32.46915538179911],[46.10936160663932,33.017287299119005],[45.41669070819904,33.967797756479584],[45.64845950702809,34.748137722303014],[46.15178795755094,35.09325877536429],[46.0763403664048,35.67738332777549],[45.42061811705321,35.977545884742824],[44.77267710159502,37.170436925616876],[44.77267,37.17045],[44.22575564960053,37.97158437758935],[44.421402622257546,38.28128123631453],[44.10922529478234,39.4281362981681],[44.79398969908195,39.71300263117706],[44.95268802265031,39.33576467544637],[45.45772179543877,38.87413910578306],[46.14362308124882,38.74120148371222],[46.50571984231797,38.770605373686294],[47.68507938008307,39.50836395930122],[48.06009524922524,39.58223541926246],[48.35552941263788,39.28876496027692],[48.01074425638646,38.79401479751448],[48.63437544128479,38.27037750910097],[48.88324913920249,38.32024526626262],[49.19961225769334,37.582874253889884],[50.14777143738462,37.37456655532134],[50.84235436381971,36.8728142359834],[52.264024692601424,36.7004216578577],[53.82578982932642,36.965030829408235],[53.92159793479556,37.19891836196126],[54.800303989486565,37.392420762678185],[55.51157840355191,37.96411713312317],[56.18037479027333,37.93512665460743],[56.61936608259282,38.121394354803485],[57.330433790928986,38.02922943781094],[58.436154412678206,37.5223094752438],[59.23476199731681,37.41298798273034],[60.37763797388388,36.52738312432837],[61.123070509694145,36.491597194966246],[61.210817091725744,35.650072333309225]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Iraq",SOV_A3:"IRQ",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Iraq",ADM0_A3:"IRQ",GEOU_DIF:0,GEOUNIT:"Iraq",GU_A3:"IRQ",SU_DIF:0,SUBUNIT:"Iraq",SU_A3:"IRQ",BRK_DIFF:0,NAME:"Iraq",NAME_LONG:"Iraq",BRK_A3:"IRQ",BRK_NAME:"Iraq",BRK_GROUP:null,ABBREV:"Iraq",POSTAL:"IRQ",FORMAL_EN:"Republic of Iraq",FORMAL_FR:null,NAME_CIAWF:"Iraq",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Iraq",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:3,MAPCOLOR13:1,POP_EST:39192111,POP_RANK:15,GDP_MD_EST:596700,POP_YEAR:2017,LASTCENSUS:1997,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"IZ",ISO_A2:"IQ",ISO_A3:"IRQ",ISO_A3_EH:"IRQ",ISO_N3:"368",UN_A3:"368",WB_A2:"IQ",WB_A3:"IRQ",WOE_ID:23424855,WOE_ID_EH:23424855,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"IRQ",ADM0_A3_US:"IRQ",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:4,LONG_LEN:4,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7.5},geometry:{type:"Polygon",coordinates:[[[44.77267710159502,37.170436925616876],[45.42061811705321,35.977545884742824],[46.0763403664048,35.67738332777549],[46.15178795755094,35.09325877536429],[45.64845950702809,34.748137722303014],[45.41669070819904,33.967797756479584],[46.10936160663932,33.017287299119005],[47.33466149271191,32.46915538179911],[47.8492037290421,31.70917593029867],[47.68528608581227,30.984853217079632],[48.004698113808324,30.985137437457244],[48.0145683123761,30.452456773392598],[48.567971225789755,29.926778265903522],[47.974519077349896,29.975819200148504],[47.30262210469096,30.059069932570722],[46.568713413281756,29.09902517345229],[44.70949873228474,29.178891099559383],[41.889980910007836,31.19000865327837],[40.399994337736246,31.889991766887935],[39.19546837744497,32.16100881604267],[38.792340529136084,33.378686428352225],[41.006158888519934,34.41937226006212],[41.383965285005814,35.628316555314356],[41.289707472505455,36.35881460219227],[41.83706424334096,36.605853786763575],[42.349591098811
277,37.2298725449041],[42.77912560402183,37.385263576805755],[43.9422587420473,37.256227525372964],[44.29345177590287,37.0015143906063],[44.77267710159502,37.170436925616876]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Iceland",SOV_A3:"ISL",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Iceland",ADM0_A3:"ISL",GEOU_DIF:0,GEOUNIT:"Iceland",GU_A3:"ISL",SU_DIF:0,SUBUNIT:"Iceland",SU_A3:"ISL",BRK_DIFF:0,NAME:"Iceland",NAME_LONG:"Iceland",BRK_A3:"ISL",BRK_NAME:"Iceland",BRK_GROUP:null,ABBREV:"Iceland",POSTAL:"IS",FORMAL_EN:"Republic of Iceland",FORMAL_FR:null,NAME_CIAWF:"Iceland",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Iceland",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:4,MAPCOLOR13:9,POP_EST:339747,POP_RANK:10,GDP_MD_EST:16150,POP_YEAR:2017,LASTCENSUS:-99,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"IC",ISO_A2:"IS",ISO_A3:"ISL",ISO_A3_EH:"ISL",ISO_N3:"352",UN_A3:"352",WB_A2:"IS",WB_A3:"ISL",WOE_ID:23424845,WOE_ID_EH:23424845,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ISL",ADM0_A3_US:"ISL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Northern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:7,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[-14.508695441129234,66.45589223903143],[-14.739637417041607,65.8087482774403],[-13.60973222497981,65.12667104761987],[-14.909833746794902,64.36408193628868],[-17.794438035543422,63.678749091233854],[-18.656245896874992,63.49638296167582],[-19.97275468594276,63.64363495549153],[-22.762971971110158,63.960178941495386],[-21.778484259517683,64.40211579045551],[-23.95504391121911,64.8911298692335],[-22.184402635170358,65.0849681667603],[-22.227423265053332,65.37859365504274],[-24.326184047939336,65.61118927678847],[-23.65051469572309,66.26251902939522],[-22.134922451250887,66.41046865504687],[-20.57628373867955,65.73211212835143],[-19.05684160000159,66.27660085719477],[-17.79862382655905,65.99385325790978],[-16.167818976292125,66.52679230413587],[-14.508695441129234,66.45589223903143]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Israel",SOV_A3:"IS1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"Israel",ADM0_A3:"ISR",GEOU_DIF:0,GEOUNIT:"Israel",GU_A3:"ISR",SU_DIF:0,SUBUNIT:"Israel",SU_A3:"ISR",BRK_DIFF:0,NAME:"Israel",NAME_LONG:"Israel",BRK_A3:"ISR",BRK_NAME:"Israel",BRK_GROUP:null,ABBREV:"Isr.",POSTAL:"IS",FORMAL_EN:"State of Israel",FORMAL_FR:null,NAME_CIAWF:"Israel",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Israel",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:2,MAPCOLOR9:5,MAPCOLOR13:9,POP_EST:8299706,POP_RANK:13,GDP_MD_EST:297e3,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"-99",ISO_A2:"IL",ISO_A3:"ISR",ISO_A3_EH:"ISR",ISO_N3:"376",UN_A3:"376",WB_A2:"IL",WB_A3:"ISR",WOE_ID:23424852,WOE_ID_EH:23424852,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ISR",ADM0_A3_US:"ISR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[34.823243288783814,29.76108076171822],[34.26544,31.21936],[34.26543474464621,31.21935730952032],[34.26543338393569,31.219360866820153],[34.55637169773891,31.548823960896996],[34.48810713068136,31.60553884533732],[34.75258711115117,32.07292633720117],[34.95541710789678,32.82737641044638],[35.098457472480675,33.080539252244265],[35.126052687324545,33.09090037691878],[35.460709262846706,33.08904002535628],[35.55279666519081,33.26427480725802],[35.82110070165024,33.2774264592763],[35.836396925608625,32.86812327730851],[35.70079796727475,32.71601369885738],[35.71991824722275,32.709192409794866],[35.54566531753454,32.393992011030576],[35.183930291491436,32.53251068778894],[34.97464074070933,31.866582343059722],[35.22589155451243,31.754341132121766],[34.970506626125996,31.61677846936081],[34.92740848159457,31.353435370401414],[35.397560662586045,31.489086005167582],[35.420918409981965,31.100065822874356],[34.92260257339143,29.501326198844524],[34.823243288783814,29.76108076171822]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Italy",SOV_A3:"ITA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Italy",ADM0_A3:"ITA",GEOU_DIF:0,GEOUNIT:"Italy",GU_A3:"ITA",SU_DIF:0,SUBUNIT:"Italy",SU_A3:"ITA",BRK_DIFF:0,NAME:"Italy",NAME_LONG:"Italy",BRK_A3:"ITA",BRK_NAME:"Italy",BRK_GROUP:null,ABBREV:"Italy",POSTAL:"I",FORMAL_EN:"Ital
2ian Republic",FORMAL_FR:null,NAME_CIAWF:"Italy",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Italy",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:7,MAPCOLOR9:8,MAPCOLOR13:7,POP_EST:62137802,POP_RANK:16,GDP_MD_EST:2221e3,POP_YEAR:2017,LASTCENSUS:2012,GDP_YEAR:2016,ECONOMY:"1. Developed region: G7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"IT",ISO_A2:"IT",ISO_A3:"ITA",ISO_A3_EH:"ITA",ISO_N3:"380",UN_A3:"380",WB_A2:"IT",WB_A3:"ITA",WOE_ID:23424853,WOE_ID_EH:23424853,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ITA",ADM0_A3_US:"ITA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:7},geometry:{type:"MultiPolygon",coordinates:[[[[10.44270145024663,46.89354625099743],[11.048555942436536,46.75135854754634],[11.16482791509327,46.94157949481273],[12.153088006243024,47.115393174826465],[12.376485223040788,46.76755910906982],[13.806475457421527,46.509306138691215],[13.698109978905478,46.01677806251735],[13.937630242578308,45.59101593686469],[13.141606479554326,45.736691799495446],[12.32858117030625,45.38177806251488],[12.383874952858548,44.88537425391911],[12.261453484759102,44.60048208269404],[12.589237094786512,44.091365871754476],[13.526905958722551,43.587727362637935],[14.029820997787056,42.76100779883251],[15.142569614327925,41.95513967545685],[15.926191033601924,41.961315009115765],[16.169897088290384,41.74029490820337],[15.889345737377823,41.54108226171823],[16.785001661860605,41.179605617836614],[17.519168735431236,40.877143459632265],[18.37668745288252,40.35562490494266],[18.48024702319546,40.168866278639854],[18.29338504402807,39.81077444107328],[17.738380161213342,40.27767100683033],[16.869595981522366,40.442234605463796],[16.44874311693738,39.795400702466424],[17.17148969897147,39.42469981542067],[17.05284061042937,38.902871202137334],[16.635088331781787,38.84357249608243],[16.100960727613028,37.98589874933421],[15.68408694831453,37.90884918878706],[15.687962680736376,38.21459280044189],[15.891981235424737,38.750942491199254],[16.109332309644344,38.96454702407772],[15.718813510814613,39.54407237401497],[15.41361250169885,40.0483568385352],[14.99849572109818,40.17294871679084],[14.703268263414714,40.60455027929265],[14.060671827865292,40.786347968095384],[13.627985060285425,41.18828725846157],[12.888081902730391,41.253089504555646],[12.106682570044967,41.704534817057436],[11.191906365614244,42.355425319989706],[10.51194786951774,42.93146251074725],[10.200028924203991,43.92000682227456],[9.70248823409787,44.03627879493135],[8.8889461605269,44.36633616797957],[8.428560825238606,44.231228135752445],[7.850766635783174,43.76714793555527],[7.435184767291901,43.69384491634921],[7.549596388386135,44.127901109384766],[7.007562290076606,44.25476675066142],[6.749955275101655,45.028517971367535],[7.096652459347865,45.3330988632959],[6.802355177445605,45.70857982032871],[6.843592970414505,45.99114655210061],[7.273850945676656,45.776947740250776],[7.755992058959833,45.82449005795931],[8.31662967289438,46.16364248309086],[8.489952426801324,46.005150865251686],[8.966305779667778,46.03693187111119],[9.182881707403055,46.44021474871698],[9.922836541390382,46.31489940040919],[10.363378126678612,46.48357127540986],[10.44270145024663,46.89354625099743]]],[[[15.520376010813806,38.2311550969915],[15.160242954171764,37.44404551853776],[15.309897902089062,37.13421946873183],[15.099988234119479,36.619987290995425],[14.33522871263196,36.996630967754754],[13.826732618879987,37.10453135838014],[12.431003859108756,37.612949937483734],[12.570943637755192,38.12638113051963],[13.741156447004641,38.034965521795385],[14.761249220446217,38.14387360285045],[15.520376010813806,38.2311550969915]]],[[[9.210011834356322,41.20999136002425],[9.809975213264948,40.50000885676613],[9.669518670295616,39.17737641047182],[9.214817742559461,39.24047333430016],[8.806935662479674,38.906617743478506],[8.428302443077172,39.17184703221656],[8.388253208050884,40.378310858718805],[8.159998406617717,40.95000722916373],[8.709990675500165,40.89998444270526],[9.210011834356322,41.20999136002425]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Jamaica",SOV_A3:"JAM",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Jamaica",ADM0_A3:"JAM",GEOU_DIF:0,GEOUNIT:"Jamaica",GU_A3:"JAM",SU_DIF:0,SUBUNIT:"Jamaica",SU_A3:"JAM",BRK_DIFF:0,NAME:"Jamaica",NAME_LONG:"Jamaica",BRK_A3:"JAM",BRK_NAME:"Jamaica",BRK_GROUP:null,ABBREV:"Jam.",POSTAL:"J",FORMAL_EN:"Jamaica",FORMAL_FR:null,NAME_CIAWF:"Jamaica",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Jamaica",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:2,MAPCOLOR9:4,MAPCOLOR13:10,POP_EST:2990561,POP_RANK:12,GDP_MD_EST:25390,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"JM",ISO_A2:"JM",ISO_A3:"JAM",ISO_A3_EH:"JAM",ISO_N3:"388",UN_A3:"388",WB_A2:"JM",WB_A3:"JAM",WOE_ID:23424858,WOE_ID_EH:23424858,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"JAM",ADM0_A3_US:"JAM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Caribbean",REGION_WB:"Latin America & Caribbean",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[-77.56960079619921,18.490525417550487],[-76.89661861846213,18.400866807524082],[-76.36535905628554,18.160700588447597],[-76.19965857614164,17.886867173732966],[-76.9025614081757,17.868237819891746],[-77.20634131540348,17.70111623785982],[-77.76602291534061,17.86159739834224],[-78.33771928578561,18.225967922432233],[-78.21772661000388,18.454532782459196],[-77.79736467152563,18.524218451404778],[-77.56960079619921,18.490525417550487]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Jordan",SOV_A3:"JOR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Jordan",ADM0_A3:"JOR",GEOU_DIF:0,GEOUNIT:"Jordan",GU_A3:"JOR",SU_DIF:0,SUBUNIT:"Jordan",SU_A3:"JOR",BRK_DIFF:0,NAME:"Jordan",NAME_LONG:"Jordan",BRK_A3:"JOR",BRK_NAME:"Jordan",BRK_GROUP:null,ABBREV:"Jord.",POSTAL:"J",FORMAL_EN:"Hashemite Kingdom of Jordan",FORMAL_FR:null,NAME_CIAWF:"Jordan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Jordan",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:3,MAPCOLOR9:4,MAPCOLOR13:4,POP_EST:10248069,POP_RANK:14,GDP_MD_EST:86190,POP_YEAR:2017,LASTCENSUS:2004,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"JO",ISO_A2:"JO",ISO_A3:"JOR",ISO_A3_EH:"JOR",ISO_N3:"400",UN_A3:"400",WB_A2:"JO",WB_A3:"JOR",WOE_ID:23424860,WOE_ID_EH:23424860,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"JOR",ADM0_A3_US:"JOR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[38.792340529136084,33.378686428352225],[39.19546837744497,32.16100881604267],[39.00488569515255,32.01021698661498],[37.00216556168101,31.508412990844747],[37.998848911294374,30.508499864213135],[37.66811974462638,30.3386652694859],[37.503581984209035,30.003776150018407],[36.74052778498725,29.86528331147619],[36.50121422704359,29.505253607698705],[36.06894087092206,29.197494615184453],[34.95603722508426,29.356554673778845],[34.92260257339143,29.501326198844524],[35.420918409981965,31.100065822874356],[35.397560662586045,31.489086005167582],[35.5452519060762,31.78250478772084],[35.54566531753454,32.393992011030576],[35.71991824722275,32.709192409794866],[36.834062127435544,32.312937526980775],[38.792340529136084,33.378686428352225]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Japan",SOV_A3:"JPN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Japan",ADM0_A3:"JPN",GEOU_DIF:0,GEOUNIT:"Japan",GU_A3:"JPN",SU_DIF:0,SUBUNIT:"Japan",SU_A3:"JPN",BRK_DIFF:0,NAME:"Japan",NAME_LONG:"Japan",BRK_A3:"JPN",BRK_NAME:"Japan",BRK_GROUP:null,ABBREV:"Japan",POSTAL:"J",FORMAL_EN:"Japan",FORMAL_FR:null,NAME_CIAWF:"Japan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Japan",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:3,MAPCOLOR9:5,MAPCOLOR13:4,POP_EST:126451398,POP_RANK:17,GDP_MD_EST:4932e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"1. Developed region: G7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"JA",ISO_A2:"JP",ISO_A3:"JPN",ISO_A3_EH:"JPN",ISO_N3:"392",UN_A3:"392",WB_A2:"JP",WB_A3:"JPN",WOE_ID:23424856,WOE_ID_EH:23424856,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"JPN",ADM0_A3_US:"JPN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:7},geometry:{type:"MultiPolygon",coordinates:[[[[134.63842817600388,34.14923371025637],[134.76637902235856,33.80633474378362],[134.20341596897092,33.20117788342964],[133.7929500672765,33.521985175097626],[133.28026818250888,33.2895
27042086486],[133.01485802625783,32.70456736910472],[132.36311486219276,32.98938202568141],[132.37117638563026,33.46364248304002],[132.9243725933148,34.06029857028207],[133.49296837782228,33.9446208765967],[133.90410607313638,34.364931138642646],[134.63842817600388,34.14923371025637]]],[[[140.9763875673053,37.14207428644019],[140.59976972876214,36.343983466124484],[140.7740743348826,35.84287710219024],[140.25327925024519,35.13811391859369],[138.97552778539617,34.66760000257614],[137.21759891169128,34.6062859156618],[135.7929830262689,33.464805202766655],[135.12098270074543,33.849071153289],[135.07943484918277,34.59654490817485],[133.340316196832,34.37593821872079],[132.15677086805132,33.904933376596546],[130.98614464734348,33.88576142021623],[132.00003624891,33.14999237724456],[131.33279015515737,31.450354519164875],[130.68631798718602,31.02957916922827],[130.20241987520492,31.418237616495418],[130.44767622286216,32.31947459566567],[129.8146916037189,32.61030955660439],[129.40846316947253,33.29605581311753],[130.3539351746846,33.60415070244173],[130.87845096244715,34.232742824840074],[131.88422936414392,34.74971385348795],[132.61767296766246,35.43339305270942],[134.60830081597774,35.73161774346582],[135.67753787652887,35.527134100886855],[136.72383060114245,37.304984239240326],[137.39061160700444,36.827390651998854],[138.85760216690622,37.82748464614349],[139.42640465714285,38.215962225897584],[140.0547900738121,39.43880748143641],[139.88337934789982,40.56331248632364],[140.30578250545366,41.195005194659586],[141.36897342342664,41.37855988216032],[141.91426313697056,39.99161611587871],[141.88460086483505,39.18086456965145],[140.95948937394584,38.17400096287662],[140.9763875673053,37.14207428644019]]],[[[143.91016198137956,44.17409983985377],[144.61342654843966,43.960882880217525],[145.32082523008316,44.38473297787547],[145.54313724180278,43.26208832455063],[144.0596618999999,42.98835826270059],[143.18384972551726,41.9952147486992],[141.61149092017249,42.678790595056114],[141.06728641170665,41.58459381770794],[139.95510623592108,41.56955597591099],[139.81754357316,42.56375885677443],[140.31208703019328,43.33327261003268],[141.38054894426008,43.38882477474641],[141.67195234595388,44.77212535255143],[141.96764489152795,45.5514834661613],[143.14287031470977,44.51035838477699],[143.91016198137956,44.17409983985377]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Kazakhstan",SOV_A3:"KAZ",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Kazakhstan",ADM0_A3:"KAZ",GEOU_DIF:0,GEOUNIT:"Kazakhstan",GU_A3:"KAZ",SU_DIF:0,SUBUNIT:"Kazakhstan",SU_A3:"KAZ",BRK_DIFF:0,NAME:"Kazakhstan",NAME_LONG:"Kazakhstan",BRK_A3:"KAZ",BRK_NAME:"Kazakhstan",BRK_GROUP:null,ABBREV:"Kaz.",POSTAL:"KZ",FORMAL_EN:"Republic of Kazakhstan",FORMAL_FR:null,NAME_CIAWF:"Kazakhstan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Kazakhstan",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:1,MAPCOLOR9:6,MAPCOLOR13:1,POP_EST:18556698,POP_RANK:14,GDP_MD_EST:460700,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"KZ",ISO_A2:"KZ",ISO_A3:"KAZ",ISO_A3_EH:"KAZ",ISO_N3:"398",UN_A3:"398",WB_A2:"KZ",WB_A3:"KAZ",WOE_ID:-90,WOE_ID_EH:23424871,WOE_NOTE:"Includes Baykonur Cosmodrome as an admin-1",ADM0_A3_IS:"KAZ",ADM0_A3_US:"KAZ",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Central Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[87.35997033076265,49.21498078062919],[86.59877648310339,48.54918162698061],[85.7682328633083,48.45575063739699],[85.7204838398707,47.45296946877312],[85.16429039911324,47.000955715516056],[83.18048383986047,47.33003123635086],[82.4589258157691,45.539649563166535],[81.94707075391813,45.31702749285324],[79.96610639844141,44.91751699480466],[80.86620649610123,43.180362046881044],[80.1801501809943,42.92006785742694],[80.2599902688853,42.34999929459906],[79.64364546094012,42.49668284765953],[79.14217736197978,42.85609243424952],[77.65839196158322,42.960685533208334],[76.00035363149846,42.98802236589067],[75.63696495962202,42.87789988867668],[74.21286583852256,43.29833934180337],[73.64530358266092,43.09127187760987],[73.48975752146237,42.50089447689129],[71.8446382994506,42.8453954127651],[71.18628055205212,42.70429291439214],[70.96231489449914,42.266154283205495],[70.3889648782208,42.08130768489745],[69.07002729683524,41.38424428971234],[68.63248294462002,40.66868073176681],[68.25989586779562,40.6623245305949],[67.98585574735182,41.135990708982206],[66.71404707221652,41.1684435084615],[66.51064863471572,41.98764415136844],[66.02339155463562,41.99464630794398],[66.09801232286509,42.997660020513095],[64.90082441595928,43.72808055274258],[63.18578698105657,43.650074978198006],[62.01330040878625,43.50447663021565],[61.05831994003245,44.40581696225051],[60.23997195825834,44.78403677019473],[58.68998904809581,45.50001373959873],[58.50312706892845,45.586804307632974],[55.928917270741096,44.99585846615911],[55.96819135928291,41.30864166926936],[55.45525109235377,41.25985911718584],[54.75534549339264,42.043971462566574],[54.07941775901495,42.32410940202083],[52.944293247291654,42.11603424739759],[52.50245975119615,41.78331553808637],[52.44633914572722,42.027150783855575],[52.692112257707265,42.44389537207337],[52.50142622255032,42.7922978785852],[51.342427199108215,43.132974758469345],[50.89129194520024,44.03103363705378],[50.339129266161365,44.284015611338475],[50.30564293803627,44.609835516938915],[51.278503452363225,44.51485423438646],[51.31689904155604,45.2459982366679],[52.16738976421573,45.40839142514511],[53.0408764992452,45.25904653582177],[53.220865512917726,46.234645901059935],[53.042736850807785,46.85300608986449],[52.04202273947561,46.80463694923924],[51.191945428274266,47.048704738953916],[50.03408328634248,46.60898997658222],[49.10116,46.399330000000134],[48.59325000000021,46.56104],[48.694733514201744,47.07562816017793],[48.05725,47.74377],[47.31524000000016,47.7158500000001],[46.46644575377627,48.39415233010493],[47.04367150247651,49.152038886097614],[46.751596307162714,49.35600576435377],[47.54948042174931,50.454698391311126],[48.57784142435753,49.87475962991567],[48.70238162618102,50.60512848571284],[50.76664839051216,51.6927623561599],[52.32872358583097,51.718652248738124],[54.532878452376224,51.02623973245932],[55.71694,50.62171000000018],[56.777980000000156,51.04355],[58.36332,51.06364],[59.642282342370606,50.545442206415714],[59.93280724471549,50.842194118851864],[61.337424350840934,50.79907013610426],[61.58800337102417,51.272658799843214],[59.967533807215545,51.9604204372157],[60.92726850774028,52.44754832621504],[60.73999311711458,52.71998647725
2775],[61.699986199800605,52.97999644633427],[60.978066440683165,53.66499339457914],[61.4366000000002,54.00625],[65.17853356309593,54.35422781027211],[65.66687,54.60125000000011],[68.16910037625883,54.97039175070432],[69.06816694527288,55.38525014914353],[70.86526655465514,55.169733588270105],[71.18013105660941,54.13328522400826],[72.22415001820218,54.376655381886735],[73.5085160663844,54.0356167669766],[73.42567874542044,53.489810289109755],[74.38482000000019,53.54685000000015],[76.8911002949134,54.490524400441956],[76.52517947785475,54.17700348572714],[77.80091556184425,53.404414984747575],[80.03555952344166,50.86475088154725],[80.56844689323549,51.38833649352847],[81.9459855488399,50.81219594990637],[83.38300377801238,51.069182847693924],[83.93511478061885,50.88924551045358],[84.41637739455305,50.31139964456585],[85.11555952346203,50.11730296487764],[85.54126997268247,49.69285858824816],[86.8293567239896,49.82667470966817],[87.35997033076265,49.21498078062919]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Kenya",SOV_A3:"KEN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Kenya",ADM0_A3:"KEN",GEOU_DIF:0,GEOUNIT:"Kenya",GU_A3:"KEN",SU_DIF:0,SUBUNIT:"Kenya",SU_A3:"KEN",BRK_DIFF:0,NAME:"Kenya",NAME_LONG:"Kenya",BRK_A3:"KEN",BRK_NAME:"Kenya",BRK_GROUP:null,ABBREV:"Ken.",POSTAL:"KE",FORMAL_EN:"Republic of Kenya",FORMAL_FR:null,NAME_CIAWF:"Kenya",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Kenya",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:2,MAPCOLOR9:7,MAPCOLOR13:3,POP_EST:47615739,POP_RANK:15,GDP_MD_EST:152700,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"KE",ISO_A2:"KE",ISO_A3:"KEN",ISO_A3_EH:"KEN",ISO_N3:"404",UN_A3:"404",WB_A2:"KE",WB_A3:"KEN",WOE_ID:23424863,WOE_ID_EH:23424863,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"KEN",ADM0_A3_US:"KEN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"Polygon",coordinates:[[[35.29800711823298,5.506],[35.817447662353516,5.338232082790797],[35.817447662353516,4.77696566346189],[36.159078632855646,4.447864127672769],[36.85509323800812,4.447864127672769],[38.120915,3.598605],[38.43697,3.58851],[38.67114,3.61607],[38.89251,3.50074],[39.55938425876585,3.42206],[39.85494,3.83879],[40.76848,4.25702],[41.1718,3.91909],[41.85508309264397,3.918911920483727],[40.98105,2.78452],[40.993,-.85829],[41.58513,-1.68325],[40.88477,-2.08255],[40.63785,-2.49979],[40.26304,-2.57309],[40.12119,-3.27768],[39.80006,-3.68116],[39.60489,-4.34653],[39.20222,-4.67677],[37.7669,-3.67712],[37.69869,-3.09699],[34.07262,-1.05982],[33.90371119710453,-.95],[33.893568969666944,.109813537861896],[34.18,.515],[34.6721,1.17694],[35.03599,1.90584],[34.59607,3.053740000000118],[34.47913,3.5556],[34.005,4.249884947362048],[34.62019626785388,4.847122742081988],[35.29800711823298,5.506]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Kyrgyzstan",SOV_A3:"KGZ",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Kyrgyzstan",ADM0_A3:"KGZ",GEOU_DIF:0,GEOUNIT:"Kyrgyzstan",GU_A3:"KGZ",SU_DIF:0,SUBUNIT:"Kyrgyzstan",SU_A3:"KGZ",BRK_DIFF:0,NAME:"Kyrgyzstan",NAME_LONG:"Kyrgyzstan",BRK_A3:"KGZ",BRK_NAME:"Kyrgyzstan",BRK_GROUP:null,ABBREV:"Kgz.",POSTAL:"KG",FORMAL_EN:"Kyrgyz Republic",FORMAL_FR:null,NAME_CIAWF:"Kyrgyzstan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Kyrgyz Republic",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:7,MAPCOLOR9:7,MAPCOLOR13:6,POP_EST:5789122,POP_RANK:13,GDP_MD_EST:21010,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"KG",ISO_A2:"KG",ISO_A3:"KGZ",ISO_A3_EH:"KGZ",ISO_N3:"417",UN_A3:"417",WB_A2:"KG",WB_A3:"KGZ",WOE_ID:23424864,WOE_ID_EH:23424864,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"KGZ",ADM0_A3_US:"KGZ",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Central Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[80.2599902688853,42.34999929459906],[80.11943037305139,42.12394074153825],[78.54366092317531,41.58224254003869],[78.18719689322597,41.18531586360481],[76.90448449087708,41.06648590754969],[76.52636803579745,40.42794607193512],[75.46782799673068,40.562072251948706],[74.77686242055606,40.36642527929163],[73.8222436868283,39.893973497063186],[73.96001305531843,39.660008449861735],[73.6753792662548,39.4312368841056],[71.784693637992,39.27946320246437],[70.54916181832562,39.6041979029865],[69.46488691597753,39.5266832545487],[69.55960981636852,40.10321137141298],[70.64801883329997,39.93575389257117],[71.01419803252017,40.24436554621823],[71.77487511585656,40.14584442805378],[73.05541710804917,40.866033026689465],[71.87011478057047,41.392900092121266],[71.1578585142916,41.14358714452912],[70.42002241402821,41.51999827734314],[71.25924767444823,42.16771067968946],[70.96231489449914,42.266154283205495],[71.18628055205212,42.70429291439214],[71.8446382994506,42.8453954127651],[73.48975752146237,42.50089447689129],[73.64530358266092,43.09127187760987],[74.21286583852256,43.29833934180337],[75.63696495962202,42.87789988867668],[76.00035363149846,42.98802236589067],[77.65839196158322,42.960685533208334],[79.14217736197978,42.85609243424952],[79.64364546094012,42.49668284765953],[80.2599902688853,42.34999929459906]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Cambodia",SOV_A3:"KHM",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Cambodia",ADM0_A3:"KHM",GEOU_DIF:0,GEOUNIT:"Cambodia",GU_A3:"KHM",SU_DIF:0,SUBUNIT:"Cambodia",SU_A3:"KHM",BRK_DIFF:0,NAME:"Cambodia",NAME_LONG:"Cambodia",BRK_A3:"KHM",BRK_NAME:"Cambodia",BRK_GROUP:null,ABBREV:"Camb.",POSTAL:"KH",FORMAL_EN:"Kingdom of Cambodia",FORMAL_FR:null,NAME_CIAWF:"Cambodia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Cambodia",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:3,MAPCOLOR9:6,MAPCOLOR13:5,POP_EST:16204486,POP_RANK:14,GDP_MD_EST:58940,POP_YEAR:2017,LASTCENSUS:2008,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"CB",ISO_A2:"KH",ISO_A3:"KHM",ISO_A3_EH:"KHM",ISO_N3:"116",UN_A3:"116",WB_A2:"KH",WB_A3:"KHM",WOE_ID:23424776,WOE_ID_EH:23424776,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"KHM",ADM0_A3_US:"KHM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"South-Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[102.5849324890267,12.186594956913282],[102.34809939983302,13.394247341358223],[102.98842207236163,14.225721136934467],[104.28141808473661,14.416743068901367],[105.21877689007889,14.273211778210694],[106.04394616091552,13.881091009979956],[106.49637332563088,14.570583807834282],[107.38272749230109,14.202440904186972],[107.61454796756243,13.535530707244206
2],[107.49140302941089,12.337205918827948],[105.81052371625313,11.567614650921229],[106.24967003786946,10.961811835163587],[105.19991499229235,10.889309800658097],[104.33433475140347,10.48654368737523],[103.4972799011397,10.632555446815928],[103.09068973186726,11.153660590047165],[102.5849324890267,12.186594956913282]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"South Korea",SOV_A3:"KOR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"South Korea",ADM0_A3:"KOR",GEOU_DIF:0,GEOUNIT:"South Korea",GU_A3:"KOR",SU_DIF:0,SUBUNIT:"South Korea",SU_A3:"KOR",BRK_DIFF:0,NAME:"South Korea",NAME_LONG:"Republic of Korea",BRK_A3:"KOR",BRK_NAME:"Republic of Korea",BRK_GROUP:null,ABBREV:"S.K.",POSTAL:"KR",FORMAL_EN:"Republic of Korea",FORMAL_FR:null,NAME_CIAWF:"Korea, South",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Korea, Rep.",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:1,MAPCOLOR9:1,MAPCOLOR13:5,POP_EST:51181299,POP_RANK:16,GDP_MD_EST:1929e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"4. Emerging region: MIKT",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"KS",ISO_A2:"KR",ISO_A3:"KOR",ISO_A3_EH:"KOR",ISO_N3:"410",UN_A3:"410",WB_A2:"KR",WB_A3:"KOR",WOE_ID:23424868,WOE_ID_EH:23424868,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"KOR",ADM0_A3_US:"KOR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:11,LONG_LEN:17,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[128.34971642467661,38.61224294692785],[129.21291954968007,37.43239248305595],[129.46044966035817,36.78418915460283],[129.4683044780665,35.63214061130395],[129.0913765809296,35.082484239231434],[128.1858504578791,34.89037710218639],[127.3865194031884,34.47567373304412],[126.48574751190876,34.39004588473648],[126.37391971242914,34.934560451795946],[126.55923139862779,35.6845405136479],[126.11739790253229,36.72548472751926],[126.86014326386339,36.893924058574626],[126.17475874237624,37.74968577732804],[126.23733890188176,37.84037791600028],[126.68371992401893,37.80477285415118],[127.07330854706737,38.2561148137884],[127.78003543509101,38.30453563084589],[128.20574588431145,38.37039724380189],[128.34971642467661,38.61224294692785]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Kosovo",SOV_A3:"KOS",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Kosovo",ADM0_A3:"KOS",GEOU_DIF:0,GEOUNIT:"Kosovo",GU_A3:"KOS",SU_DIF:0,SUBUNIT:"Kosovo",SU_A3:"KOS",BRK_DIFF:0,NAME:"Kosovo",NAME_LONG:"Kosovo",BRK_A3:"KOS",BRK_NAME:"Kosovo",BRK_GROUP:null,ABBREV:"Kos.",POSTAL:"KO",FORMAL_EN:"Republic of Kosovo",FORMAL_FR:null,NAME_CIAWF:"Kosovo",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Kosovo",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:2,MAPCOLOR9:3,MAPCOLOR13:11,POP_EST:1895250,POP_RANK:12,GDP_MD_EST:18490,POP_YEAR:2017,LASTCENSUS:1981,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"KV",ISO_A2:"XK",ISO_A3:"-99",ISO_A3_EH:"-99",ISO_N3:"-99",UN_A3:"-099",WB_A2:"KV",WB_A3:"KSV",WOE_ID:-90,WOE_ID_EH:29389201,WOE_NOTE:"Subunit of Serbia in WOE still; should include 29389201, 29389207, 29389218, 29389209 and 29389214.",ADM0_A3_IS:"KOS",ADM0_A3_US:"KOS",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[20.590246546680227,41.855408919283626],[20.52295,42.21787],[20.283754510181893,42.32025950781508],[20.0707,42.58863],[20.25758,42.81275000000011],[20.49679,42.88469],[20.63508,43.21671],[20.81448,43.27205],[20.95651,43.13094],[21.143395,43.06868500000013],[21.27421,42.90959],[21.43866,42.86255],[21.63302,42.67717],[21.77505,42.6827],[21.66292,42.43922],[21.54332,42.3202500000001],[21.57663598940212,42.24522439706186],[21.35270000000014,42.2068],[20.76216,42.05186],[20.71731000000011,41.84711],[20.590246546680227,41.855408919283626]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Kuwait",SOV_A3:"KWT",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Kuwait",ADM0_A3:"KWT",GEOU_DIF:0,GEOUNIT:"Kuwait",GU_A3:"KWT",SU_DIF:0,SUBUNIT:"Kuwait",SU_A3:"KWT",BRK_DIFF:0,NAME:"Kuwait",NAME_LONG:"Kuwait",BRK_A3:"KWT",BRK_NAME:"Kuwait",BRK_GROUP:null,ABBREV:"Kwt.",POSTAL:"KW",FORMAL_EN:"State of Kuwait",FORMAL_FR:null,NAME_CIAWF:"Kuwait",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Kuwait",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:2,MAPCOLOR9:2,MAPCOLOR13:2,POP_EST:2875422,POP_RANK:12,GDP_MD_EST:301100,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"KU",ISO_A2:"KW",ISO_A3:"KWT",ISO_A3_EH:"KWT",ISO_N3:"414",UN_A3:"414",WB_A2:"KW",WB_A3:"KWT",WOE_ID:23424870,WOE_ID_EH:23424870,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"KWT",ADM0_A3_US:"KWT",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[46.568713413281756,29.09902517345229],[47.30262210469096,30.059069932570722],[47.974519077349896,29.975819200148504],[48.18318851094449,29.534476630159762],[48.09394331237642,29.306299343375002],[48.416094191283946,28.55200429942667],[47.708850538937384,28.526062730416143],[47.45982181172283,29.002519436147224],[46.568713413281756,29.09902517345229]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Laos",SOV_A3:"LAO",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Laos",ADM0_A3:"LAO",GEOU_DIF:0,GEOUNIT:"Laos",GU_A3:"LAO",SU_DIF:0,SUBUNIT:"Laos",SU_A3:"LAO",BRK_DIFF:0,NAME:"Laos",NAME_LONG:"Lao PDR",BRK_A3:"LAO",BRK_NAME:"Laos",BRK_GROUP:null,ABBREV:"Laos",POSTAL:"LA",FORMAL_EN:"Lao People's Democratic Republic",FORMAL_FR:null,NAME_CIAWF:"Laos",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Lao PDR",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:1,MAPCOLOR9:1,MAPCOLOR13:9,POP_EST:7126706,POP_RANK:13,GDP_MD_EST:40960,POP_YEAR:2017,LASTCENSUS:2005,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"LA",ISO_A2:"LA",ISO_A3:"LAO",ISO_A3_EH:"LAO",ISO_N3:"418",UN_A3:"418",WB_A2:"LA",WB_A3:"LAO",WOE_ID:23424872,WOE_ID_EH:23424872,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"LAO",ADM0_A3_US:"LAO",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"South-Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:4,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[101.18000532430753,21.436572984294003],[101.27002566935997,21.201651923095184],[101.80311974488293,21.17436676684507],[101.65201785686152,22.318198757409547],[102.17043582561358,22.464753119389304],[102.75489627483466,21.675137233969465],[103.20386111858645,20.76656220141375],[104.43500044150805,20.75873322192153],[104.8225736836971,19.886641750563882],[104.18338789267894,19.62466807706022],[103.89653201702671,19.265180975821806],[105.09459842328152,18.66697459561108],[105.92576216026403,17.48531545660896],[106.55600792849569,16.604283962464805],[107.31270
259265456,15.90853831630318],[107.5645251811039,15.20217316330556],[107.38272749230109,14.202440904186972],[106.49637332563088,14.570583807834282],[106.04394616091552,13.881091009979956],[105.21877689007889,14.273211778210694],[105.54433841351769,14.723933620660418],[105.58903852745016,15.570316066952858],[104.7793205098688,16.44186493577145],[104.7169470560925,17.42885895433008],[103.9564766784853,18.24095408779688],[103.20019209189374,18.309632066312773],[102.99870568238771,17.9616946476916],[102.41300499879162,17.932781683824288],[102.11359175009248,18.109101670804165],[101.05954756063517,17.51249725999449],[101.03593143107777,18.408928330961615],[101.2820146016517,19.462584947176765],[100.60629357300316,19.508344427971224],[100.54888105672688,20.109237982661128],[100.11598758341785,20.417849636308187],[100.32910119018953,20.786121731036232],[101.18000532430753,21.436572984294003]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Lebanon",SOV_A3:"LBN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Lebanon",ADM0_A3:"LBN",GEOU_DIF:0,GEOUNIT:"Lebanon",GU_A3:"LBN",SU_DIF:0,SUBUNIT:"Lebanon",SU_A3:"LBN",BRK_DIFF:0,NAME:"Lebanon",NAME_LONG:"Lebanon",BRK_A3:"LBN",BRK_NAME:"Lebanon",BRK_GROUP:null,ABBREV:"Leb.",POSTAL:"LB",FORMAL_EN:"Lebanese Republic",FORMAL_FR:null,NAME_CIAWF:"Lebanon",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Lebanon",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:4,MAPCOLOR9:4,MAPCOLOR13:12,POP_EST:6229794,POP_RANK:13,GDP_MD_EST:85160,POP_YEAR:2017,LASTCENSUS:1970,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"LE",ISO_A2:"LB",ISO_A3:"LBN",ISO_A3_EH:"LBN",ISO_N3:"422",UN_A3:"422",WB_A2:"LB",WB_A3:"LBN",WOE_ID:23424873,WOE_ID_EH:23424873,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"LBN",ADM0_A3_US:"LBN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:4,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[35.82110070165024,33.2774264592763],[35.55279666519081,33.26427480725802],[35.460709262846706,33.08904002535628],[35.126052687324545,33.09090037691878],[35.48220665868013,33.90545014091944],[35.9795923194894,34.61005829521913],[35.99840254084364,34.644914048800004],[36.4481942075121,34.59393524834407],[36.61175011571589,34.20178864189718],[36.066460402172055,33.82491242119255],[35.82110070165024,33.2774264592763]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Liberia",SOV_A3:"LBR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Liberia",ADM0_A3:"LBR",GEOU_DIF:0,GEOUNIT:"Liberia",GU_A3:"LBR",SU_DIF:0,SUBUNIT:"Liberia",SU_A3:"LBR",BRK_DIFF:0,NAME:"Liberia",NAME_LONG:"Liberia",BRK_A3:"LBR",BRK_NAME:"Liberia",BRK_GROUP:null,ABBREV:"Liberia",POSTAL:"LR",FORMAL_EN:"Republic of Liberia",FORMAL_FR:null,NAME_CIAWF:"Liberia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Liberia",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:3,MAPCOLOR9:4,MAPCOLOR13:9,POP_EST:4689021,POP_RANK:12,GDP_MD_EST:3881,POP_YEAR:2017,LASTCENSUS:2008,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"LI",ISO_A2:"LR",ISO_A3:"LBR",ISO_A3_EH:"LBR",ISO_N3:"430",UN_A3:"430",WB_A2:"LR",WB_A3:"LBR",WOE_ID:23424876,WOE_ID_EH:23424876,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"LBR",ADM0_A3_US:"LBR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:7,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[-8.439298468448698,7.686042792181738],[-8.48544552248535,7.39520783124307],[-8.385451626000574,6.911800645368743],[-8.60288021486862,6.46756419517166],[-8.311347622094019,6.193033148621083],[-7.993692592795881,6.126189683451543],[-7.570152553731688,5.707352199725904],[-7.539715135111763,5.313345241716519],[-7.635368211284031,5.188159084489456],[-7.71215938966975,4.364565944837722],[-7.974107224957251,4.355755113131963],[-9.004793667018674,4.8324185245922],[-9.913420376006684,5.593560695819207],[-10.765383876986645,6.140710760925558],[-11.438779466182055,6.785916856305747],[-11.19980180504828,7.105845648624737],[-11.146704270868383,7.396706447779536],[-10.69559485517648,7.939464016141088],[-10.23009355309128,8.406205552601293],[-10.016566534861255,8.428503933135232],[-9.755342169625834,8.541055202666925],[-9.337279832384581,7.928534450711354],[-9.40334815106975,7.526905218938907],[
2-9.208786383490846,7.313920803247953],[-8.926064622422004,7.309037380396376],[-8.722123582382125,7.71167430259851],[-8.439298468448698,7.686042792181738]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Libya",SOV_A3:"LBY",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Libya",ADM0_A3:"LBY",GEOU_DIF:0,GEOUNIT:"Libya",GU_A3:"LBY",SU_DIF:0,SUBUNIT:"Libya",SU_A3:"LBY",BRK_DIFF:0,NAME:"Libya",NAME_LONG:"Libya",BRK_A3:"LBY",BRK_NAME:"Libya",BRK_GROUP:null,ABBREV:"Libya",POSTAL:"LY",FORMAL_EN:"Libya",FORMAL_FR:null,NAME_CIAWF:"Libya",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Libya",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:2,MAPCOLOR9:2,MAPCOLOR13:11,POP_EST:6653210,POP_RANK:13,GDP_MD_EST:90890,POP_YEAR:2017,LASTCENSUS:2006,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"LY",ISO_A2:"LY",ISO_A3:"LBY",ISO_A3_EH:"LBY",ISO_N3:"434",UN_A3:"434",WB_A2:"LY",WB_A3:"LBY",WOE_ID:23424882,WOE_ID_EH:23424882,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"LBY",ADM0_A3_US:"LBY",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Northern Africa",REGION_WB:"Middle East & North Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[11.999505649471613,23.47166840259645],[11.560669386449005,24.097909247325518],[10.771363559622927,24.56253205006175],[10.303846876678362,24.379313259370917],[9.94826134607797,24.936953640232517],[9.910692579801776,25.36545461679674],[9.319410841518163,26.094324856057455],[9.716285841519664,26.512206325785655],[9.629056023811074,27.14095347748092],[9.756128370816782,27.68825857188415],[9.683884718472768,28.1441738957792],[9.859997999723447,28.959989732371014],[9.805634392952356,29.424638373323376],[9.482139926805274,30.307556057246188],[9.970017124072854,30.53932485607524],[10.056575148161699,30.961831366493527],[9.950225050505082,31.376069647745258],[10.636901482799487,31.761420803345757],[10.944789666394456,32.081814683555365],[11.432253452203696,32.368903103152874],[11.488787469131012,33.13699575452314],[12.66331,32.79278],[13.08326,32.87882],[13.91868,32.71196],[15.24563,32.26508],[15.71394,31.37626],[16.61162,31.18218],[18.02109,30.76357],[19.08641,30.26639],[19.57404,30.52582],[20.05335,30.98576],[19.82033,31.751790000000142],[20.13397,32.2382],[20.85452,32.7068],[21.54298,32.8432],[22.89576,32.63858],[23.2368,32.19149],[23.609130000000107,32.18726],[23.9275,32.01667],[24.92114,31.89936],[25.16482,31.56915],[24.80287,31.08929],[24.95762,30.6616],[24.70007,30.04419],[25,29.23865452953346],[25,25.682499996361],[25,22],[25.000000000000114,20.00304],[23.850000000000136,20],[23.83766000000014,19.580470000000105],[19.84926,21.49509],[15.86085,23.40972],[14.8513,22.862950000000126],[14.143870883855243,22.491288967371133],[13.581424594790462,23.04050608976928],[11.999505649471613,23.47166840259645]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Sri Lanka",SOV_A3:"LKA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Sri Lanka",ADM0_A3:"LKA",GEOU_DIF:0,GEOUNIT:"Sri Lanka",GU_A3:"LKA",SU_DIF:0,SUBUNIT:"Sri Lanka",SU_A3:"LKA",BRK_DIFF:0,NAME:"Sri Lanka",NAME_LONG:"Sri Lanka",BRK_A3:"LKA",BRK_NAME:"Sri Lanka",BRK_GROUP:null,ABBREV:"Sri L.",POSTAL:"LK",FORMAL_EN:"Democratic Socialist Republic of Sri Lanka",FORMAL_FR:null,NAME_CIAWF:"Sri Lanka",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Sri Lanka",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:5,MAPCOLOR9:4,MAPCOLOR13:9,POP_EST:22409381,POP_RANK:15,GDP_MD_EST:236700,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"CE",ISO_A2:"LK",ISO_A3:"LKA",ISO_A3_EH:"LKA",ISO_N3:"144",UN_A3:"144",WB_A2:"LK",WB_A3:"LKA",WOE_ID:23424778,WOE_ID_EH:23424778,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"LKA",ADM0_A3_US:"LKA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Southern Asia",REGION_WB:"South Asia",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[81.7879590188914,7.523055324733164],[81.63732221876059,6.481775214051922],[81.21801964714433,6.197141424988288],[80.34835696810441,5.968369859232155],[79.87246870312853,6.76346344647493],[79.69516686393513,8.200843410673386],[80.14780073437964,9.824077663609557],[80.83881798698656,9.268426825391188],[81.30431928907177,8.56420624433369],[81.7879590188914,7.523055324733164]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Lesotho",SOV_A3:"LSO",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Lesotho",ADM0_A3:"LSO",GEOU_DIF:0,GEOUNIT:"Lesotho",GU_A3:"LSO",SU_DIF:0,SUBUNIT:"Lesotho",SU_A3:"LSO",BRK_DIFF:0,NAME:"Lesotho",NAME_LONG:"Lesotho",BRK_A3:"LSO",BRK_NAME:"Lesotho",BRK_GROUP:null,ABBREV:"Les.",POSTAL:"LS",FORMAL_EN:"Kingdom of Lesotho",FORMAL_FR:null,NAME_CIAWF:"Lesotho",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Lesotho",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:5,MAPCOLOR9:2,MAPCOLOR13:8,POP_EST:1958042,POP_RANK:12,GDP_MD_EST:6019,POP_YEAR:2017,LASTCENSUS:2006,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"LT",ISO_A2:"LS",ISO_A3:"LSO",ISO_A3_EH:"LSO",ISO_N3:"426",UN_A3:"426",WB_A2:"LS",WB_A3:"LSO",WOE_ID:23424880,WOE_ID_EH:23424880,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"LSO",ADM0_A3_US:"LSO",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Southern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[28.978262566857243,-28.95559661226171],[29.32516645683259,-29.257386976846256],[29.018415154748027,-29.74376555757737],[28.84839969250774,-30.070050551068256],[28.29106937023991,-30.2262167294543],[28.107204624145425,-30.54573211031495],[27.749397006956485,-30.645105889612225],[26.999261915807637,-29.875953871379984],[27.532511020627478,-29.24271087007536],[28.074338413207784,-28.851468601193588],[28.541700066855498,-28.64750172293757],[28.978262566857243,-28.95559661226171]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Lithuania",SOV_A3:"LTU",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Lithuania",ADM0_A3:"LTU",GEOU_DIF:0,GEOUNIT:"Lithuania",GU_A3:"LTU",SU_DIF:0,SUBUNIT:"Lithuania",SU_A3:"LTU",BRK_DIFF:0,NAME:"Lithuania",NAME_LONG:"Lithuania",BRK_A3:"LTU",BRK_NAME:"Lithuania",BRK_GROUP:null,ABBREV:"Lith.",POSTAL:"LT",FORMAL_EN:"Republic of Lithuania",FORMAL_FR:null,NAME_CIAWF:"Lithuania",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Lithuania",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:3,MAPCOLOR9:3,MAPCOLOR13:9,POP_EST:2823859,POP_RANK:12,GDP_MD_EST:85620,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"LH",ISO_A2:"LT",ISO_A3:"LTU",ISO_A3_EH:"LTU",ISO_N3:"440",UN_A3:"440",WB_A2:"LT",WB_A3:"LTU",WOE_ID:23424875,WOE_ID_EH:23424875,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"LTU",ADM0_A3_US:"LTU",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Northern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[26.494331495883756,55.615106919977634],[26.58827924979039,55.16717560487167],[25.7684326514798,54.84696259217509],[25.536353794056993,54.28242340760253],[24.450683628037037,53.905702216194754],[23.48412763844985,53.91249766704114],[23.24398725758951,54.22056671814914],[22.731098667092652,54.327536932993326],[22.6510
25187347254,54.582740993866736],[22.75776370615526,54.856574408581366],[22.315723504330577,55.015298570365864],[21.268448927503442,55.190481675835315],[21.055800408622417,56.031076361711065],[22.201156853939494,56.33780182557949],[23.878263787539964,56.27367137310527],[24.86068444184076,56.37252838807963],[25.000934279080894,56.16453074810484],[25.533046502390334,56.100296942766036],[26.494331495883756,55.615106919977634]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Luxembourg",SOV_A3:"LUX",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Luxembourg",ADM0_A3:"LUX",GEOU_DIF:0,GEOUNIT:"Luxembourg",GU_A3:"LUX",SU_DIF:0,SUBUNIT:"Luxembourg",SU_A3:"LUX",BRK_DIFF:0,NAME:"Luxembourg",NAME_LONG:"Luxembourg",BRK_A3:"LUX",BRK_NAME:"Luxembourg",BRK_GROUP:null,ABBREV:"Lux.",POSTAL:"L",FORMAL_EN:"Grand Duchy of Luxembourg",FORMAL_FR:null,NAME_CIAWF:"Luxembourg",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Luxembourg",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:7,MAPCOLOR9:3,MAPCOLOR13:7,POP_EST:594130,POP_RANK:11,GDP_MD_EST:58740,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"LU",ISO_A2:"LU",ISO_A3:"LUX",ISO_A3_EH:"LUX",ISO_N3:"442",UN_A3:"442",WB_A2:"LU",WB_A3:"LUX",WOE_ID:23424881,WOE_ID_EH:23424881,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"LUX",ADM0_A3_US:"LUX",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Western Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:5,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5.7,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[5.674051954784829,49.529483547557504],[5.782417433300907,50.09032786722122],[6.043073357781111,50.128051662794235],[6.242751092156993,49.90222565367873],[6.186320428094177,49.463802802114515],[5.897759230176405,49.44266714130703],[5.674051954784829,49.529483547557504]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Latvia",SOV_A3:"LVA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Latvia",ADM0_A3:"LVA",GEOU_DIF:0,GEOUNIT:"Latvia",GU_A3:"LVA",SU_DIF:0,SUBUNIT:"Latvia",SU_A3:"LVA",BRK_DIFF:0,NAME:"Latvia",NAME_LONG:"Latvia",BRK_A3:"LVA",BRK_NAME:"Latvia",BRK_GROUP:null,ABBREV:"Lat.",POSTAL:"LV",FORMAL_EN:"Republic of Latvia",FORMAL_FR:null,NAME_CIAWF:"Latvia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Latvia",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:7,MAPCOLOR9:6,MAPCOLOR13:13,POP_EST:1944643,POP_RANK:12,GDP_MD_EST:50650,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"LG",ISO_A2:"LV",ISO_A3:"LVA",ISO_A3_EH:"LVA",ISO_N3:"428",UN_A3:"428",WB_A2:"LV",WB_A3:"LVA",WOE_ID:23424874,WOE_ID_EH:23424874,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"LVA",ADM0_A3_US:"LVA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Northern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[28.176709425577997,56.169129950578814],[27.10245975109453,55.783313707087686],[26.494331495883756,55.615106919977634],[25.533046502390334,56.100296942766036],[25.000934279080894,56.16453074810484],[24.86068444184076,56.37252838807963],[23.878263787539964,56.27367137310527],[22.201156853939494,56.33780182557949],[21.055800408622417,56.031076361711065],[21.090423618257972,56.78387278912294],[21.581866489353672,57.411870632549935],[22.52434126149288,57.75337433535076],[23.318452996522097,57.00623647727487],[24.12072960785343,57.02569265403277],[24.312862583114622,57.79342357037697],[25.16459354014927,57.97015696881519],[25.60280968598437,57.84752879498657],[26.463532342237787,57.47638865826633],[27.288184848751513,57.47452830670383],[27.77001590344093,57.24425812441123],[27.855282016722526,56.75932648378429],[28.176709425577997,56.169129950578814]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Morocco",SOV_A3:"MAR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Morocco",ADM0_A3:"MAR",GEOU_DIF:0,GEOUNIT:"Morocco",GU_A3:"MAR",SU_DIF:0,SUBUNIT:"Morocco",SU_A3:"MAR",BRK_DIFF:0,NAME:"Morocco",NAME_LONG:"Morocco",BRK_A3:"MAR",BRK_NAME:"Morocco",BRK_GROUP:null,ABBREV:"Mor.",POSTAL:"MA",FORMAL_EN:"Kingdom of Morocco",FORMAL_FR:null,NAME_CIAWF:"Morocco",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Morocco",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:2,MAPCOLOR9:3,MAPCOLOR13:9,POP_EST:33986655,POP_RANK:15,GDP_MD_EST:282800,POP_YEAR:2017,LASTCENSUS:2004,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"MO",ISO_A2:"MA",ISO_A3:"MAR",ISO_A3_EH:"MAR",ISO_N3:"504",UN_A3:"504",WB_A2:"MA",WB_A3:"MAR",WOE_ID:23424893,WOE_ID_EH:23424893,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MAR",ADM0_A3_US:"MAR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Northern Africa",REGION_WB:"Middle East & North Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-2.169913702798624,35.16839630791668],[-1.792985805661715,34.52791860609133],[-1.733454555661467,33.919712836231994],[-1.388049282222568,32.86401500094141],[-1.124551153966308,32.65152151135713],[-1.30789913573787,32.2628889023061],[-2.616604783529567,32.09434621838615],[-3.068980271812648,31.724497992473218],[-3.647497931320146,31.637294012980675],[-3.690441046554724,30.896951605751184],[-4.859646165374471,30.501187649043846],[-5.242129278982787,30.00044302013559],[-6.060632290053774,29.731699734001694],[-7.059227667661958,29.5792284205246],[-8.674116176782974,28.84128896739658],[-8.665589565454809,27.656425889592356],[-8.817828334986672,27.656425889592356],[-8.794883999
2049077,27.120696316022507],[-9.413037482124466,27.088476060488517],[-9.735343390328879,26.860944729107405],[-10.189424200877582,26.860944729107405],[-10.551262579785273,26.990807603456886],[-11.392554897497007,26.883423977154422],[-11.718219773800357,26.104091701760623],[-12.030758836301615,26.030866197203043],[-12.50096269372537,24.7701162785782],[-13.891110398809047,23.691009019459305],[-14.221167771857253,22.31016307218816],[-14.630832688851072,21.860939846274903],[-14.750954555713534,21.500600083903663],[-17.00296179856109,21.420734157796577],[-17.020428432675743,21.42231028898155],[-16.973247849993243,21.885744533774982],[-16.589136928767687,22.158234361250095],[-16.261921759495607,22.679339504481277],[-16.32641394699587,23.017768459560926],[-15.982610642958008,23.723358466074018],[-15.426003790742158,24.359133612561067],[-15.089331834360706,24.520260728447],[-14.824645148161636,25.103532619725343],[-14.800925665739726,25.63626496022232],[-14.439939947964803,26.25441844329768],[-13.773804897506409,26.618892320252314],[-13.13994177901435,27.640147813420526],[-13.121613369914769,27.65414767171984],[-12.618836635783083,28.03818553314869],[-11.688919236690737,28.148643907172527],[-10.900956997104373,28.832142238880948],[-10.399592251008613,29.09858592377782],[-9.564811163765683,29.93357371674989],[-9.81471839032912,31.17773550060909],[-9.434793260119307,32.038096421836514],[-9.300692918321886,32.564679266890664],[-8.657476365584984,33.240245266242425],[-7.65417843263819,33.69706492770254],[-6.912544114601417,34.110476386037476],[-6.244342006851383,35.14586538343755],[-5.92999426921989,35.75998810479402],[-5.193863491222004,35.75518219659088],[-4.591006232105116,35.330711981745594],[-3.640056525070065,35.399855048152006],[-2.604305792644055,35.179093329401155],[-2.169913702798624,35.16839630791668]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Moldova",SOV_A3:"MDA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Moldova",ADM0_A3:"MDA",GEOU_DIF:0,GEOUNIT:"Moldova",GU_A3:"MDA",SU_DIF:0,SUBUNIT:"Moldova",SU_A3:"MDA",BRK_DIFF:0,NAME:"Moldova",NAME_LONG:"Moldova",BRK_A3:"MDA",BRK_NAME:"Moldova",BRK_GROUP:null,ABBREV:"Mda.",POSTAL:"MD",FORMAL_EN:"Republic of Moldova",FORMAL_FR:null,NAME_CIAWF:"Moldova",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Moldova",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:5,MAPCOLOR9:4,MAPCOLOR13:12,POP_EST:3474121,POP_RANK:12,GDP_MD_EST:18540,POP_YEAR:2017,LASTCENSUS:2004,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"MD",ISO_A2:"MD",ISO_A3:"MDA",ISO_A3_EH:"MDA",ISO_N3:"498",UN_A3:"498",WB_A2:"MD",WB_A3:"MDA",WOE_ID:23424885,WOE_ID_EH:23424885,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MDA",ADM0_A3_US:"MDA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Eastern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[26.619336785597795,48.22072622333347],[26.857823520624805,48.368210761094495],[27.522537469195157,48.467119452501116],[28.259546746541844,48.15556224221342],[28.670891147585166,48.1181485052341],[29.12269819511303,47.849095160506465],[29.05086795422727,47.5102269557525],[29.415135125452736,47.34664520933258],[29.559674106573112,46.928582872091326],[29.908851759569302,46.67436066343146],[29.838210076626297,46.52532583270169],[30.024658644335375,46.42393667254504],[29.759971958136394,46.34998769793536],[29.170653924279804,46.37926239682872],[29.07210696789929,46.517677720722496],[28.862972446414062,46.43788930926383],[28.933717482221596,46.25883047137256],[28.65998742037158,45.93998688413164],[28.485269402792767,45.5969070501459],[28.23355350109904,45.48828318946829],[28.0544429867754,45.944586086605625],[28.160017937947714,46.37156260841722],[28.128030226359044,46.810476386088254],[27.551166212684848,47.40511709247083],[27.233872918412743,47.82677094175638],[26.924176059687568,48.123264472030996],[26.619336785597795,48.22072622333347]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Madagascar",SOV_A3:"MDG",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Madagascar",ADM0_A3:"MDG",GEOU_DIF:0,GEOUNIT:"Madagascar",GU_A3:"MDG",SU_DIF:0,SUBUNIT:"Madagascar",SU_A3:"MDG",BRK_DIFF:0,NAME:"Madagascar",NAME_LONG:"Madagascar",BRK_A3:"MDG",BRK_NAME:"Madagascar",BRK_GROUP:null,ABBREV:"Mad.",POSTAL:"MG",FORMAL_EN:"Republic of Madagascar",FORMAL_FR:null,NAME_CIAWF:"Madagascar",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Madagascar",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:5,MAPCOLOR9:2,MAPCOLOR13:3,POP_EST:25054161,POP_RANK:15,GDP_MD_EST:36860,POP_YEAR:2017,LASTCENSUS:1993,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"MA",ISO_A2:"MG",ISO_A3:"MDG",ISO_A3_EH:"MDG",ISO_N3:"450",UN_A3:"450",WB_A2:"MG",WB_A3:"MDG",WOE_ID:23424883,WOE_ID_EH:23424883,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MDG",ADM0_A3_US:"MDG",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[49.54351891459575,-12.469832858940554],[49.808980747279094,-12.895284925999555],[50.056510857957164,-13.555761407121985],[50.21743126811407,-14.758788750876796],[50.47653689962553,-15.226512139550543],[50.377111443895956,-15.706069431219127],[50.20027469259318,-16.000263360256767],[49.86060550313868,-15.414252618066918],[49.67260664246086,-15.710203545802479],[49.863344354050156,-16.451036879138776],[49.77456424337271,-16.8750420060936],[49.49861209493412,-17.106035658438273],[49.435618523970305,-17.953064060134366],[49.041792433473944,-19.118781019774445],[48.54854088724801,-20.496888116134127],[47.93074913919867,-22.391501153251085],[47.54772342305131,-23.781958916928517],[47.095761346226595,-24.941629733990453],[46.282477654817086,-25.178462823184105],[45.40950768411045,-25.60143442149309],[44.833573846217554,-25.34610116953894],[44.03972049334976,-24.988345228782308],[43.76376834491117,-24.46067717864999],[43.697777540874455,-23.574116306250602],[43.345654331237625,-22.776903985283873],[43.254187046081,-22.057413018484123],[43.43329756040464,-21.33647511158019],[43.893682895692926,-21.16330738697013],[43.896370070172104,-20.830459486578174],[44.37432539243966,-20.07236622485639],[44.46439741392439,-19.435454196859048],[44.23242190936617,-18.961994724200906],[44.042976108584156,-18.33138722094317],[43.96308434426091,-17.409944756746782],[44.3
21246870298628,-16.850495700754955],[44.4465173683514,-16.216219170804507],[44.94493655780653,-16.1793738745804],[45.50273196796499,-15.97437346767854],[45.87299360533626,-15.793454278224687],[46.31224327981721,-15.780018405828798],[46.882182651564285,-15.210182386946315],[47.70512983581236,-14.594302666891764],[48.005214878131255,-14.091232598530375],[47.869047479042166,-13.663868503476586],[48.29382775248138,-13.784067884987486],[48.84506025573879,-13.089174899958664],[48.86350874206698,-12.48786793381042],[49.194651320193316,-12.04055673589197],[49.54351891459575,-12.469832858940554]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Mexico",SOV_A3:"MEX",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Mexico",ADM0_A3:"MEX",GEOU_DIF:0,GEOUNIT:"Mexico",GU_A3:"MEX",SU_DIF:0,SUBUNIT:"Mexico",SU_A3:"MEX",BRK_DIFF:0,NAME:"Mexico",NAME_LONG:"Mexico",BRK_A3:"MEX",BRK_NAME:"Mexico",BRK_GROUP:null,ABBREV:"Mex.",POSTAL:"MX",FORMAL_EN:"United Mexican States",FORMAL_FR:null,NAME_CIAWF:"Mexico",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Mexico",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:1,MAPCOLOR9:7,MAPCOLOR13:3,POP_EST:124574795,POP_RANK:17,GDP_MD_EST:2307e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"4. Emerging region: MIKT",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"MX",ISO_A2:"MX",ISO_A3:"MEX",ISO_A3_EH:"MEX",ISO_N3:"484",UN_A3:"484",WB_A2:"MX",WB_A3:"MEX",WOE_ID:23424900,WOE_ID_EH:23424900,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MEX",ADM0_A3_US:"MEX",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Central America",REGION_WB:"Latin America & Caribbean",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:6.7},geometry:{type:"Polygon",coordinates:[[[-88.3000310940937,18.4999822046599],[-88.49012285027935,18.486830552641607],[-88.84834387892661,17.883198147040233],[-89.02985734735182,18.001511338772488],[-89.15090938999553,17.95546763760042],[-89.14308041050333,17.808318996649405],[-90.06793351923098,17.819326076727478],[-91.00151994501596,17.817594916245696],[-91.00226925328421,17.25465770107418],[-91.45392127151516,17.252177232324172],[-91.08167009150065,16.918476670799407],[-90.71182186558772,16.687483018454728],[-90.60084672724093,16.47077789963879],[-90.43886695022204,16.410109768128095],[-90.46447262242266,16.069562079324655],[-91.74796017125595,16.066564846251765],[-92.2292486234063,15.251446641495875],[-92.08721594925207,15.064584662328441],[-92.20322953974733,14.830102850804069],[-92.22775000686983,14.538828640190928],[-93.35946387406176,15.615429592343673],[-93.87516883011853,15.940164292865916],[-94.69165646033014,16.200975246642884],[-95.25022701697304,16.128318182840644],[-96.05338212765332,15.752087917539598],[-96.55743404822829,15.653515122942792],[-97.26359249549665,15.917064927631316],[-98.01302995480961,16.107311713113916],[-98.94767574745651,16.566043402568766],[-99.69739742714705,16.70616404872817],[-100.82949886758132,17.17107107184205],[-101.66608862995446,17.649026394109626],[-101.91852800170022,17.916090196193977],[-102.47813208698892,17.975750637275098],[-103.50098954955808,18.29229462327885],[-103.91752743204682,18.74857168220001],[-104.9920096504755,19.316133938061682],[-105.49303849976144,19.946767279535436],[-105.73139604370766,20.434101874264115],[-105.39777299683135,20.531718654863425],[-105.50066077352443,20.81689504646613],[-105.27075232625793,21.07628489835514],[-105.26581722697404,21.42210358325235],[-105.6031609769754,21.87114594165257],[-105.69341386597313,22.269080308516152],[-106.02871639689897,22.773752346278627],[-106.90998043498837,23.767774359628902],[-107.91544877809139,24.54891531015295],[-108.40190487347098,25.172313951105934],[-109.26019873740665,25.58060944264406],[-109.44408932171734,25.82488393808768],[-109.29164384645628,26.442934068298428],[-109.80145768923182,26.676175645447927],[-110.3917317370857,27.16211497650454],[-110.64101884646163,27.859876003525528],[-111.17891883018785,27.94124054616907],[-111.75960689985163,28.46795258230395],[-112.2282346260904,28.95440867768349],[-112.27182369672869,29.266844387320077],[
2-112.80959448937398,30.02111359305235],[-113.16381059451868,30.786880804969428],[-113.14866939985717,31.170965887978923],[-113.87188106978186,31.567608344035193],[-114.20573666060352,31.524045111613134],[-114.77645117883503,31.79953217216115],[-114.93669979537214,31.393484605427602],[-114.7712318591735,30.913617255165263],[-114.67389929895177,30.162681179315996],[-114.33097449426293,29.750432440707414],[-113.58887508833544,29.061611436473015],[-113.42405310754054,28.82617361095123],[-113.27196936730553,28.7547826197399],[-113.14003943566439,28.41128937429596],[-112.9622983467965,28.42519033458251],[-112.76158708377488,27.780216783147523],[-112.45791052941166,27.52581370697476],[-112.2449519519368,27.17172679291076],[-111.61648902061921,26.662817287700477],[-111.28467464887302,25.732589830014433],[-110.9878193835724,25.294606228124564],[-110.71000688357134,24.82600434010186],[-110.65504899782889,24.298594672131117],[-110.17285620811344,24.265547593680424],[-109.77184709352855,23.811182562754198],[-109.40910437705571,23.36467234953625],[-109.43339230023292,23.1855876734287],[-109.85421932660171,22.818271592698068],[-110.03139197471444,22.823077500901206],[-110.29507097048366,23.43097321216669],[-110.94950130902805,24.000964260345995],[-111.6705684070127,24.484423122652515],[-112.18203589562148,24.738412787367167],[-112.14898881717085,25.47012523040405],[-112.3007108223797,26.012004299416617],[-112.77729671919155,26.32195954030317],[-113.46467078332194,26.768185533143424],[-113.59672990604383,26.639459540304472],[-113.84893673384425,26.90006378835244],[-114.46574662968004,27.142090358991368],[-115.05514217818501,27.72272675222291],[-114.98225257043742,27.798200181585116],[-114.57036556685495,27.74148529714489],[-114.19932878299926,28.115002549750557],[-114.16201839888464,28.566111965442303],[-114.93184221073665,29.27947927501549],[-115.518653937627,29.5563615992354],[-115.88736528202958,30.180793768834178],[-116.25835038945291,30.836464341753583],[-116.72152625208497,31.635743720012044],[-117.12775999999987,32.53534],[-115.99135,32.61239],[-114.72139,32.72082999999989],[-114.815,32.52528],[-113.30498,32.03914000000012],[-111.02361,31.33472],[-109.035,31.341940000000136],[-108.24194,31.34222],[-108.24,31.754853718166373],[-106.5075899999999,31.75452],[-106.1429,31.39995],[-105.63159,31.08383],[-105.03737,30.64402],[-104.70575,30.12173],[-104.45697,29.57196],[
2-103.94,29.27],[-103.11,28.97],[-102.48,29.76],[-101.6624,29.7793],[-100.9576,29.380710000000164],[-100.45584,28.69612000000012],[-100.11,28.110000000000156],[-99.52,27.54],[-99.3,26.84],[-99.02,26.37],[-98.24,26.06],[-97.53,25.84],[-97.14000830767071,25.8699974634784],[-97.52807247596655,24.9921440699203],[-97.70294552284224,24.272343044526735],[-97.77604183631905,22.93257986092766],[-97.87236670611111,22.44421173755336],[-97.69904395220419,21.898689480064263],[-97.38895952023677,21.411018988525825],[-97.18933346229329,20.635433254473128],[-96.52557552772032,19.890930894444068],[-96.29212724484177,19.320371405509547],[-95.90088497595997,18.82802419684873],[-94.83906348344271,18.562717393462208],[-94.42572953975622,18.144370835843347],[-93.5486512926824,18.423836981677937],[-92.7861138577835,18.52483856859226],[-92.0373481920904,18.704569200103435],[-91.40790340855926,18.87608327888023],[-90.77186987991087,19.28412038825678],[-90.53358985061305,19.8674181177513],[-90.45147599970124,20.707521877520435],[-90.2786183336849,20.999855454995554],[-89.60132117385149,21.26172577563449],[-88.54386633986286,21.49367544197662],[-87.65841651075772,21.45884552661198],[-87.05189022494807,21.5435431991383],[-86.81198238803296,21.331514797444754],[-86.84590796583262,20.849864610268355],[-87.38329118523586,20.25540477139873],[-87.62105445021075,19.64655304613592],[-87.43675045444178,19.47240346931227],[-87.58656043165593,19.04013011319074],[-87.83719112827151,18.25981598558343],[-88.09066402866318,18.51664785407405],[-88.3000310940937,18.4999822046599]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Macedonia",SOV_A3:"MKD",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Macedonia",ADM0_A3:"MKD",GEOU_DIF:0,GEOUNIT:"Macedonia",GU_A3:"MKD",SU_DIF:0,SUBUNIT:"Macedonia",SU_A3:"MKD",BRK_DIFF:0,NAME:"Macedonia",NAME_LONG:"Macedonia",BRK_A3:"MKD",BRK_NAME:"Macedonia",BRK_GROUP:null,ABBREV:"Mkd.",POSTAL:"MK",FORMAL_EN:"Former Yugoslav Republic of Macedonia",FORMAL_FR:null,NAME_CIAWF:"Macedonia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Macedonia, FYR",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:3,MAPCOLOR9:7,MAPCOLOR13:3,POP_EST:2103721,POP_RANK:12,GDP_MD_EST:29520,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"MK",ISO_A2:"MK",ISO_A3:"MKD",ISO_A3_EH:"MKD",ISO_N3:"807",UN_A3:"807",WB_A2:"MK",WB_A3:"MKD",WOE_ID:23424890,WOE_ID_EH:23424890,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MKD",ADM0_A3_US:"MKD",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[21.0200403174764,40.84272695572588],[20.605181919037364,41.086226304685226],[20.463175083099202,41.51508901627534],[20.59024743010491,41.855404161133606],[20.590246546680227,41.855408919283626],[20.71731000000011,41.84711],[20.76216,42.05186],[21.35270000000014,42.2068],[21.57663598940212,42.24522439706186],[21.917080000000112,42.30364],[22.380525750424592,42.32025950781509],[22.881373732197346,41.999297186850356],[22.952377150166452,41.33799388281115],[22.76177,41.3048],[22.597308383889015,41.130487168943205],[22.05537763844427,41.14986583105269],[21.674160597426976,40.931274522457954],[21.0200403174764,40.84272695572588]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Mali",SOV_A3:"MLI",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Mali",ADM0_A3:"MLI",GEOU_DIF:0,GEOUNIT:"Mali",GU_A3:"MLI",SU_DIF:0,SUBUNIT:"Mali",SU_A3:"MLI",BRK_DIFF:0,NAME:"Mali",NAME_LONG:"Mali",BRK_A3:"MLI",BRK_NAME:"Mali",BRK_GROUP:null,ABBREV:"Mali",POSTAL:"ML",FORMAL_EN:"Republic of Mali",FORMAL_FR:null,NAME_CIAWF:"Mali",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Mali",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:1,MAPCOLOR13:7,POP_EST:17885245,POP_RANK:14,GDP_MD_EST:38090,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"ML",ISO_A2:"ML",ISO_A3:"MLI",ISO_A3_EH:"MLI",ISO_N3:"466",UN_A3:"466",WB_A2:"ML",WB_A3:"MLI",WOE_ID:23424891,WOE_ID_EH:23424891,WOE_
2NOTE:"Exact WOE match as country",ADM0_A3_IS:"MLI",ADM0_A3_US:"MLI",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:4,LONG_LEN:4,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[.374892205414682,14.92890818934613],[-.26625729003058,14.924308986872148],[-.515854458000348,15.116157741755728],[-1.066363491205664,14.973815009007765],[-2.001035122068771,14.559008287000893],[-2.191824510090385,14.246417548067356],[-2.967694464520577,13.79815033615151],[-3.10370683431276,13.541266791228594],[-3.522802700199861,13.337661647998615],[-4.006390753587226,13.472485459848116],[-4.28040503581488,13.228443508349741],[-4.427166103523803,12.542645575404295],[-5.220941941743121,11.713858954307227],[-5.197842576508648,11.37514577885014],[-5.470564947929006,10.951269842976048],[-5.404341599946974,10.370736802609146],[-5.816926235365287,10.222554633012194],[-6.050452032892267,10.096360785355444],[-6.205222947606431,10.524060777219134],[-6.493965013037268,10.411302801958271],[-6.666460944027548,10.430810655148449],[-6.850506557635057,10.138993841996239],[-7.622759161804809,10.147236232946796],[-7.899589809592372,10.297382106970828],[-8.029943610048619,10.206534939001713],[-8.33537716310974,10.494811916541934],[-8.282357143578281,10.792597357623846],[-8.407310756860028,10.909256903522762],[-8.620321010767128,10.810890814655183],[-8.581305304386774,11.136245632364805],[-8.376304897484914,11.393645941610629],[-8.786099005559464,11.812560939984706],[-8.90526485842453,12.088358059126437],[-9.127473517279583,12.308060411015333],[-9.327616339546012,12.334286200403454],[-9.567911749703214,12.194243068892476],[-9.890992804392013,12.060478623904972],[-10.165213792348837,11.844083563682744],[-10.593223842806282,11.92397532800598],[-10.870829637078215,12.17788747807211],[-11.03655595543826,12.211244615116515],[-11.297573614944511,12.077971096235771],[-11.456168585648271,12.076834214725338],[-11.51394283695059,12.442987575729418],[-11.467899135778524,12.754518947800975],[-11.55339779300543,13.141213690641067],[-11.927716030311615,13.422075100147396],[-12.12488745772126,13.994727484589788],[-12.170750291380301,14.616834214735505],[-11.834207526079467,14.79909699142894],[-11.666078253617854,15.388208319556298],[-11.349095017939504,15.411256008358478],[-10.650791388379417,15.132745876521426],[-10.086846482778213,15.330485744686271],[-9.700255092802706,15.264107367407362],[-9.55023840985939,15.486496893775438],[-5.537744309908447,15.501689764869257],[-5.315277268891933,16.20185374599184],[-5.488522508150439,16.325102037007966],[-5.971128709324248,20.64083344164763],[-6.453786586930335,24.956590684503425],[-4.923337368174231,24.974574082941],[-1.550054897457613,22.792665920497384],[1.823227573259032,20.610809434486043],[2.06099083823392,20.142233384679486],[2.683588494486429,19.856230170160117],[3.1466610042539,19.693578599521445],[3.158133172222705,19.057364203360038],[4.267419467800039,19.155265204337],[4.270209995143802,16.852227484601215],[3.723421665063483,16.184283759012615],[3.638258904646477,15.568119818580456],[2.749992709981484,15.409524847876696],[1.385528191746858,15.323561102759172],[1.015783318698482,14.96818227788799],[.374892205414682,14.92890818934613]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Myanmar",SOV_A3:"MMR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Myanmar",ADM0_A3:"MMR",GEOU_DIF:0,GEOUNIT:"Myanmar",GU_A3:"MMR",SU_DIF:0,SUBUNIT:"Myanmar",SU_A3:"MMR",BRK_DIFF:0,NAME:"Myanmar",NAME_LONG:"Myanmar",BRK_A3:"MMR",BRK_NAME:"Myanmar",BRK_GROUP:null,ABBREV:"Myan.",POSTAL:"MM",FORMAL_EN:"Republic of the Union of Myanmar",FORMAL_FR:null,NAME_CIAWF:"Burma",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Myanmar",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:2,MAPCOLOR9:5,MAPCOLOR13:13,POP_EST:55123814,POP_RANK:16,GDP_MD_EST:311100,POP_YEAR:2017,LASTCENSUS:1983,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"BM",ISO_A2:"MM",ISO_A3:"MMR",ISO_A3_EH:"MMR",ISO_N3:"104",UN_A3:"104",WB_A2:"MM",WB_A3:"MMR",WOE_ID:23424763,WOE_ID_EH:23424763,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MMR",ADM0_A3_US:"MMR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"South-Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[92.36855350135562,20.670883287025347],[92.30323449093868,21.47548533780982],[92.65225711463799,21.324047552978485],[92.67272098182556,22.041238918541254],[93.16612755734837,22.278459580977103],[93.06029422401463,22.70311066333557],[93.28632693885928,23.043658352139005],[93.3251876159428,24.078556423432204],[94.10674197792507,23.85074087167348],[94.55265791217164,24.675238348890336],[94.60324913938538,25.162495428970402],[95.1551534362626,26.001307277932085],[95.12476769407496,26.5735720891323],[96.41936567585097,27.264589341739224],[97.1339990580153,27.083773505149964],[97.0519885599681,27.69905894623315],[97.40256147663614,27.882536119085444],[97.32711388549004,28.26158274994634],[97.91198774616944,28.335945136014345],[98.2462309102333,27.74722138112918],[98.68269005737046,27.50881216075062],[98.71209394734451,26.743535874940267],[98.67183800658916,25.918702500913525],[97.72460900267914,25.083637193293],[97.60471967976198,23.897404690033042],[98.66026248575577,24.0632860376899
266],[98.89874922078278,23.14272207284253],[99.53199222208738,22.94903880461254],[99.24089887898722,22.118314317304595],[99.98348921102149,21.7429367131364],[100.41653771362738,21.558839423096614],[101.15003299357825,21.849984442629022],[101.18000532430753,21.436572984294003],[100.32910119018953,20.786121731036232],[100.11598758341785,20.417849636308187],[99.54330936075931,20.186597601802063],[98.95967573445488,19.752980658440947],[98.25372399291561,19.708203029860044],[97.79778283080441,18.627080389881755],[97.37589643757354,18.445437730375815],[97.85912275593486,17.567946071843664],[98.49376102091135,16.83783559820793],[98.90334842325676,16.17782420497612],[98.53737592976572,15.308497422746084],[98.1920740091914,15.123702500870351],[98.43081912637987,14.622027696180837],[99.09775516153876,13.827502549693278],[99.21201175333609,13.269293728076464],[99.19635379435167,12.80474843998867],[99.58728600463972,11.892762762901697],[99.03812055867398,10.960545762572437],[98.55355065307305,9.932959906448545],[98.45717410684873,10.67526601810515],[98.76454552612078,11.441291612183749],[98.42833865762985,12.032986761925685],[98.50957400919268,13.122377631070677],[98.1036039571077,13.640459703012851],[97.77773237507517,14.837285874892642],[97.59707156778276,16.10056793869977],[97.1645398294998,16.92873444260934],[96.505768670643,16.42724050543285],[95.3693522481124,15.7143899601826],[94.80840457558412,15.80345429123764],[94.18880415240454,16.037936102762018],[94.53348595579135,17.277240301985728],[94.32481652219676,18.2135139022499],[93.54098839719364,19.366492621330025],[93.66325483599621,19.726961574781996],[93.07827762245219,19.855144965081976],[92.36855350135562,20.670883287025347]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Montenegro",SOV_A3:"MNE",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Montenegro",ADM0_A3:"MNE",GEOU_DIF:0,GEOUNIT:"Montenegro",GU_A3:"MNE",SU_DIF:0,SUBUNIT:"Montenegro",SU_A3:"MNE",BRK_DIFF:0,NAME:"Montenegro",NAME_LONG:"Montenegro",BRK_A3:"MNE",BRK_NAME:"Montenegro",BRK_GROUP:null,ABBREV:"Mont.",POSTAL:"ME",FORMAL_EN:"Montenegro",FORMAL_FR:null,NAME_CIAWF:"Montenegro",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Montenegro",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:1,MAPCOLOR9:4,MAPCOLOR13:5,POP_EST:642550,POP_RANK:11,GDP_MD_EST:10610,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"MJ",ISO_A2:"ME",ISO_A3:"MNE",ISO_A3_EH:"MNE",ISO_N3:"499",UN_A3:"499",WB_A2:"ME",WB_A3:"MNE",WOE_ID:20069817,WOE_ID_EH:20069817,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MNE",ADM0_A3_US:"MNE",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[20.0707,42.58863],[19.801613396898688,42.50009349219084],[19.73805138517963,42.68824738216557],[19.304486118250793,42.19574514420782],[19.37176816334725,41.877550679783496],[19.16246,41.95502],[18.88214,42.28151],[18.45001688302086,42.47999224531218],[18.56,42.65],[18.70648,43.20011],[19.03165,43.43253],[19.21852,43.52384],[19.48389,43.35229],[19.63,43.21377997027054],[19.95857,43.10604],[20.3398,42.89852],[20.25758,42.81275000000011],[20.0707,42.58863]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Mongolia",SOV_A3:"MNG",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Mongolia",ADM0_A3:"MNG",GEOU_DIF:0,GEOUNIT:"Mongolia",GU_A3:"MNG",SU_DIF:0,SUBUNIT:"Mongolia",SU_A3:"MNG",BRK_DIFF:0,NAME:"Mongolia",NAME_LONG:"Mongolia",BRK_A3:"MNG",BRK_NAME:"Mongolia",BRK_GROUP:null,ABBREV:"Mong.",POSTAL:"MN",FORMAL_EN:"Mongolia",FORMAL_FR:null,NAME_CIAWF:"Mongolia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Mongolia",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:5,MAPCOLOR9:5,MAPCOLOR13:6,POP_EST:3068243,POP_RANK:12,GDP_MD_EST:37e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"MG",ISO_A2:"MN",ISO_A3:"MNG",ISO_A3_EH:"MNG",ISO_N3:"496",UN_A3:"496",WB_A2:"MN",WB_A3:"MNG",WOE_ID:23424887,WOE_ID_EH:23424887,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MNG",ADM0_A3_US:"MNG",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[116.67880089728615,49.88853139912143],[116.19180219936757,49.134598090199106],[115.48528201707306,48.13538259540344],[115.74283735561576,47.72654450132629],[116.30895267137323,47.85341014260284],[117.29550744025741,47.69770905210743],[118.06414269416669,48.06673045510365],[118.8
26657433479493,47.747060044946124],[119.7728239278975,47.04805878355013],[119.66326989143876,46.69267995867892],[118.87432579963873,46.80541209572365],[117.42170128791419,46.67273285581426],[116.71786828009886,46.38820241961521],[115.98509647020009,45.727235012386004],[114.46033165899607,45.339816799493825],[113.46390669154417,44.80889313412712],[112.43606245325881,45.01164561622429],[111.8733061056003,45.10207937273506],[111.34837690637946,44.45744171811009],[111.66773725794323,44.07317576758771],[111.82958784388134,43.74311839453952],[111.12968224492023,43.40683401140015],[110.41210330611526,42.87123362891106],[109.24359581913146,42.5194463160841],[107.74477257693795,42.481515814781915],[106.12931562706169,42.13432770442891],[104.96499393109347,41.59740957291635],[104.52228193564898,41.90834666601654],[103.31227827353482,41.9074681666676],[101.83304039917994,42.51487295182628],[100.84586551310827,42.66380442969145],[99.51581749878004,42.524691473961724],[97.45175744017801,42.74888967546002],[96.34939578652781,42.725635280928685],[95.76245486855669,43.319449164394605],[95.30687544147153,44.2413308782655],[94.68892866412531,44.35233185482838],[93.4807336771413,44.975472113619965],[92.13389082231822,45.11507599545646],[90.94553958533427,45.28607330991028],[90.58576826371828,45.71971609148753],[90.97080936072499,46.88814606382289],[90.28082563676392,47.693549099307944],[88.85429772334676,48.069081732772965],[88.01383222855173,48.599462795600616],[87.75126427607671,49.297197984405486],[88.80556684769552,49.47052073831242],[90.71366743364068,50.33181183532109],[92.23471154171968,50.80217072204172],[93.10421,50.49529],[94.14756635943563,50.48053660745709],[94.81594933469873,50.01343333597085],[95.81402000000023,49.97746000000015],[97.25976000000017,49.72605],[98.23176150919156,50.422400621128745],[97.82573978067431,51.01099518493318],[98.86149051310034,52.04736603454669],[99.98173221232354,51.63400625264399],[100.88948042196262,51.51685578063832],[102.06521,51.25991],[102.25589,50.51056000000014],[103.67654544476022,50.089966132195116],[104.62158,50.27532000000019],[105.88659142458675,50.406019192092224],[106.88880415245526,50.27429596618032],[107.86817589725095,49.793705145865815],[108.47516727095129,49.28254771585074],[109.40244917199666,49.292960516957635],[110.66201053267878,49.13012807880587],[111.58123091028662,49.37796824807769],[112.89773969935439,49.54356537535699],[114.36245649623527,50.24830272073741],[114.96210981655018,50.140247300815126],[115.48569542853139,49.805177313834776],[116.67880089728615,49.88853139912143]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Mozambique",SOV_A3:"MOZ",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Mozambique",ADM0_A3:"MOZ",GEOU_DIF:0,GEOUNIT:"Mozambique",GU_A3:"MOZ",SU_DIF:0,SUBUNIT:"Mozambique",SU_A3:"MOZ",BRK_DIFF:0,NAME:"Mozambique",NAME_LONG:"Mozambique",BRK_A3:"MOZ",BRK_NAME:"Mozambique",BRK_GROUP:null,ABBREV:"Moz.",POSTAL:"MZ",FORMAL_EN:"Republic of Mozambique",FORMAL_FR:null,NAME_CIAWF:"Mozambique",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Mozambique",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:2,MAPCOLOR9:1,MAPCOLOR13:4,POP_EST:26573706,POP_RANK:15,GDP_MD_EST:35010,POP_YEAR:2017,LASTCENSUS:2007,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"MZ",ISO_A2:"MZ",ISO_A3:"MOZ",ISO_A3_EH:"MOZ",ISO_N3:"508",UN_A3:"508",WB_A2:"MZ",WB_A3:"MOZ",WOE_ID:23424902,WOE_ID_EH:23424902,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MOZ",ADM0_A3_US:"MOZ",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[34.55998904799935,-11.520020033415925],[35.31239790216904,-11.439146416879147],[36.51408165868426,-11.720938002166735],[36.775150994622805,-11.594537448780805],[37.47129,-11.56876],[37.82764,-11.26879],[38.42755659358775,-11.285202325081656],[39.521,-10.89688],[40.31659,-10.317099999999868],[40.316586229110854,-10.317097752817492],[40.31658857601719,-10.317096042525698],[40.47838748552303,-10.765440769089993],[40.437253045418686,-11.761710707245015],[40.56081139502857,-12.639176527561027],[40.59962039567975,-14.201975192931862],[40.775475294768995,-14.691764418194241],[40.4772506040126,-15.406294447493972],[40.08926395036522,-16.10077402106446],[39.45255862809705,-16.72089120856694],[38.53835086442152,-17.101023044505958],[37.41113284683888,-17.586368096591237],[36.28127933120936,-18.65968759529345],[35.89649661636406,-18.842260430580637],[35.198399692533144,-19.552811374593894],[34.78638349787005,-19.784011732667736],[34.70189253107284,-20.49704314543101],[35.176127150215365,-21.25436126066841],[35.37342776870574,-21.840837090748877],[35.385848253705404,-22.14],[35.562545536369086,-22.09],[35.533934767404304,-23.070787855727758],[35.37177412287238,-23.5353589820317],[35.60747033055563,-23.706563002214683],[35.45874555841962,-24.12260995859655],[35.04073489761066,-24.478350518493805],[34.21582400893547,-24.81631438568266],[33.01321007663901,-25.357573337507738],[32.574632195777866,-25.727318210556092],[32.66036339695009,-26.148584486599447],[32.91595503106569,-26.215867201443466],[32.83012047
27028885,-26.742191664336197],[32.07166548028107,-26.73382008230491],[31.98577924981197,-26.291779880480227],[31.83777794772806,-25.84333180105135],[31.75240848158188,-25.484283949487413],[31.930588820124253,-24.36941659922254],[31.670397983534656,-23.658969008073864],[31.19140913262129,-22.2515096981724],[32.244988234188014,-21.116488539313693],[32.50869306817344,-20.395292250248307],[32.65974327976258,-20.304290052982317],[32.772707960752626,-19.715592136313298],[32.61199425632489,-19.419382826416275],[32.65488569512715,-18.672089939043495],[32.84986087416439,-17.97905730557718],[32.847638787575846,-16.713398125884616],[32.32823896661023,-16.392074069893752],[31.8520406430406,-16.319417006091378],[31.636498243951195,-16.071990248277885],[31.17306399915768,-15.860943698797874],[30.338954705534544,-15.880839125230246],[30.27425581230511,-15.507786960515213],[30.17948123548183,-14.796099134991529],[33.214024692525214,-13.971860039936153],[33.789700148256685,-14.45183074306307],[34.064825473778626,-14.35995004644812],[34.45963341648854,-14.613009535381423],[34.51766604995231,-15.013708591372612],[34.307291294092096,-15.478641452702597],[34.38129194513405,-16.183559665596043],[35.033810255683534,-16.801299737213093],[35.339062941231646,-16.10744028083011],[35.77190473810836,-15.896858819240727],[35.68684533055594,-14.611045830954332],[35.26795617039801,-13.887834161029566],[34.907151320136165,-13.565424899960568],[34.55998904799935,-13.579997653866876],[34.28000613784198,-12.280025323132506],[34.55998904799935,-11.520020033415925]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Mauritania",SOV_A3:"MRT",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Mauritania",ADM0_A3:"MRT",GEOU_DIF:0,GEOUNIT:"Mauritania",GU_A3:"MRT",SU_DIF:0,SUBUNIT:"Mauritania",SU_A3:"MRT",BRK_DIFF:0,NAME:"Mauritania",NAME_LONG:"Mauritania",BRK_A3:"MRT",BRK_NAME:"Mauritania",BRK_GROUP:null,ABBREV:"Mrt.",POSTAL:"MR",FORMAL_EN:"Islamic Republic of Mauritania",FORMAL_FR:null,NAME_CIAWF:"Mauritania",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Mauritania",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:3,MAPCOLOR9:2,MAPCOLOR13:1,POP_EST:3758571,POP_RANK:12,GDP_MD_EST:16710,POP_YEAR:2017,LASTCENSUS:2e3,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"MR",ISO_A2:"MR",ISO_A3:"MRT",ISO_A3_EH:"MRT",ISO_N3:"478",UN_A3:"478",WB_A2:"MR",WB_A3:"MRT",WOE_ID:23424896,WOE_ID_EH:23424896,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MRT",ADM0_A3_US:"MRT",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-8.684399786809053,27.395744126896005],[-4.923337368174231,24.974574082941],[-6.453786586930335,24.956590684503425],[-5.971128709324248,20.64083344164763],[-5.488522508150439,16.325102037007966],[-5.315277268891933,16.20185374599184],[-5.537744309908447,15.501689764869257],[-9.55023840985939,15.486496893775438],[-9.700255092802706,15.264107367407362],[-10.086846482778213,15.330485744686271],[-10.650791388379417,15.132745876521426],[-11.349095017939504,15.411256008358478],[-11.666078253617854,15.388208319556298],[-11.834207526079467,14.79909699142894],[-12.170750291380301,14.616834214735505],[-12.830658331747516,15.303691514542948],[-13.435737677453062,16.03938304286619],[-14.099521450242179,16.304302273010492],[-14.577347581428981,16.59826365810281],[-15.135737270558819,16.587282416240782],[-15.623666144258692,16.369337063049812],[-16.12069007004193,16.455662543193384],[-16.463098110407884,16.13503611903846],[-16.549707810929064,16.673892116761962],[-16.270551723688357,17.166962795474873],[-16.14634741867485,18.108481553616656],[-16.256883307347167,19.096715806550307],[-16.37765112961327,19.593817246981985],[-16.277838100641517,20.0925206568147],[-16.536323614965468,20.567866319251493],[-17.06342322434257,20.999752102130827],[-16.845193650773993,21.33332347257488],[-12.929101935263532,21.327070624267563],[-13.118754441774712,22.771220201096256],[-12.874221564169575,23.284832261645178],[-11.937224493853321,23.374594224536168],[-11.96941891117116,25.933352769468268],[-8.6872936670174,25.881056219988906],[-8.684399786809053,27.39574412
26896005]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Malawi",SOV_A3:"MWI",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Malawi",ADM0_A3:"MWI",GEOU_DIF:0,GEOUNIT:"Malawi",GU_A3:"MWI",SU_DIF:0,SUBUNIT:"Malawi",SU_A3:"MWI",BRK_DIFF:0,NAME:"Malawi",NAME_LONG:"Malawi",BRK_A3:"MWI",BRK_NAME:"Malawi",BRK_GROUP:null,ABBREV:"Mal.",POSTAL:"MW",FORMAL_EN:"Republic of Malawi",FORMAL_FR:null,NAME_CIAWF:"Malawi",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Malawi",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:3,MAPCOLOR9:4,MAPCOLOR13:5,POP_EST:19196246,POP_RANK:14,GDP_MD_EST:21200,POP_YEAR:2017,LASTCENSUS:2008,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"MI",ISO_A2:"MW",ISO_A3:"MWI",ISO_A3_EH:"MWI",ISO_N3:"454",UN_A3:"454",WB_A2:"MW",WB_A3:"MWI",WOE_ID:23424889,WOE_ID_EH:23424889,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MWI",ADM0_A3_US:"MWI",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[34.55998904799935,-11.520020033415925],[34.28000613784198,-12.280025323132506],[34.55998904799935,-13.579997653866876],[34.907151320136165,-13.565424899960568],[35.26795617039801,-13.887834161029566],[35.68684533055594,-14.611045830954332],[35.77190473810836,-15.896858819240727],[35.339062941231646,-16.10744028083011],[35.033810255683534,-16.801299737213093],[34.38129194513405,-16.183559665596043],[34.307291294092096,-15.478641452702597],[34.51766604995231,-15.013708591372612],[34.45963341648854,-14.613009535381423],[34.064825473778626,-14.35995004644812],[33.789700148256685,-14.45183074306307],[33.214024692525214,-13.971860039936153],[32.68816531752313,-13.712857761289277],[32.991764357237884,-12.783870537978274],[33.306422153463075,-12.435778090060218],[33.114289178201915,-11.607198174692314],[33.315310499817286,-10.796549981329697],[33.48568769708359,-10.525558770391115],[33.2313879737753,-9.6767216935648],[32.75937544122132,-9.23059905358906],[33.73972,-9.41715],[33.940837724096525,-9.693673841980285],[34.28,-10.16],[34.55998904799935,-11.520020033415925]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Malaysia",SOV_A3:"MYS",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Malaysia",ADM0_A3:"MYS",GEOU_DIF:0,GEOUNIT:"Malaysia",GU_A3:"MYS",SU_DIF:0,SUBUNIT:"Malaysia",SU_A3:"MYS",BRK_DIFF:0,NAME:"Malaysia",NAME_LONG:"Malaysia",BRK_A3:"MYS",BRK_NAME:"Malaysia",BRK_GROUP:null,ABBREV:"Malay.",POSTAL:"MY",FORMAL_EN:"Malaysia",FORMAL_FR:null,NAME_CIAWF:"Malaysia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Malaysia",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:4,MAPCOLOR9:3,MAPCOLOR13:6,POP_EST:31381992,POP_RANK:15,GDP_MD_EST:863e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"MY",ISO_A2:"MY",ISO_A3:"MYS",ISO_A3_EH:"MYS",ISO_N3:"458",UN_A3:"458",WB_A2:"MY",WB_A3:"MYS",WOE_ID:23424901,WOE_ID_EH:23424901,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MYS",ADM0_A3_US:"MYS",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"South-Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"MultiPolygon",coordinates:[[[[114.20401655482837,4.525873928236805],[114.65959598191353,4.007636826997754],[114.8695573263154,4.348313706881925],[115.34746097215066,4.316636053887009],[115.40570031134361,4.955227565933839],[115.45071048386981,5.44772980389159],[116.22074100145105,6.143191229675551],[116.72510298061977,6.924771429874028],[117.12962609260049,6.928052883324582],[117.64339318244626,6.422166449403235],[117.68907514859231,5.98749013918021],[118.34769127815227,5.708695786965492],[119.18190392463995,5.40783559816218],[119.11069380094179,5.016128241389794],[118.43972700406405,4.966518866389634],[118.6183207540648,4.47820241944757],[117.88203494677018,4.137551377779516],[117.01521447150637,4.306094061699483],[115.86551720587673,4.306559149590086],[115.51907840379195,3.16923838949441],[115.1340373067853,2.821481838386234],[114.62135542201756,1.430688177898901],[113.8058496440195,1.217548732911069],[112.85980919805226,1.497790025229875],[112.38025190638362,1.410120957846786],[111.79754845586038,.90444122965458],[111.15913781132664,.976478176269538],[110.51406090702719,.773131415201007],[109.83022667850881,1.338135687664206],[109.6632601257738,2.006466986494999],[110.39613528853712,1.663774725751409],[111.16885298059745,1.850636704918799],[111.37008100794205,2.697303371588887],[111.79692833867293,2.885896511238087],[112.99561486211522,3.102394924324884],[113.71293541875875,3.893509426281156],[114.20401655482837,4.525873928236805]]],[[[102.14118696493638,6.221636053894628],[102.37114708863524,6.12820506431089],[102.96170535686676,5.524495144061106],[103.38121463421223,4.855001125503762],[103.43857547405614,4.181605536308311],[103.33212202353488,3.726697902842986],[103.42942874554049,3.382868760589034],[103.50244754436895,2.791018581550219],[103.8546741068703,2.515454006353778],[104.24793175661145,1.63114105875907],[104.22881147666348,1.293048000489463],[103.51970747275439,1.226333726400711],[102.57361535035486,1.967115383304673],[101.39063846232924,2.760813706875552],[101.27353966675591,3.270291652841209],[100.69543541870664,3.939139715994884],[100.55740766805505,4.767280381688295],[100.19670617065779,5.312492580583708],[100.3062602071166,6.040561835143905],[100.08575687052709,6.464489447450305],[100.25959638875696,6.642824815289543],[101.07551557821333,6.204867051615921],[101.15421878459387,5.691384182147715],[101.81428185425798,5.810808417174242],[102.14118696493638,6.221636053894628]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Namibia",SOV_A3:"NAM",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Namibia",ADM0_A3:"NAM",GEOU_DIF:0,GEOUNIT:"Namibia",GU_A3:"NAM",SU_DIF:0,SUBUNIT:"Namibia",SU_A3:"NAM",BRK_DIFF:0,NAME:"Namibia",NAME_LONG:"Namibia",BRK_A3:"NAM",BRK_NAME:"Namibia",BRK_GROUP:null,ABBREV:"Nam.",POSTAL:"NA",FORMAL_EN:"Republic of Namibia",FORMAL_FR:null,NAME_CIAWF:"Namibia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Namibia",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:1,MAPCOLOR9:1,MAPCOLOR13:7,POP_EST:2484780,POP_RANK:12,GDP_MD_EST:25990,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"WA",ISO_A2:"NA",ISO_A3:"NAM",ISO_A3_EH:"NAM",ISO_N3:"516",UN_A3:"516",WB_A2:"NA",WB_A3:"NAM",WOE_ID:23424987,WOE_ID_EH:23424987,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"NAM",ADM0_A3_US:"NAM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Southern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7.5},geometry:{type:"Polygon",coordinates:[[[11.734198846085093,-17.301889336824487],[12.215461460019355,-17.111668389558048],[12.814081251688407,-16.94134286872407],[13.462362094789967,-16.971211846588773],[14.05850141770901,-17.423380629142663],[14.209706658595024,-17.35310068122572],[18.263309360434164,-17.309950860262006],[18.956186964603603,-17.789094740472258],[21.37717614104554,-17.930636488519696],[23.215048455506064,-17.523116143465984],[24.033861525170778,-17.295843194246324],[24.682349074001507,-17.353410739819473],[25.07695031098226,-17.57882333747662],[25.08444339366457,-17.661815687737374],[24.520705193792537,-17.887124932529936],[24.217364536239213,-17.88934701911849],[23.579005568137717,-18.28126108162006],[23.1968583513393,-17.869038181227786],[21.655040317478978,-18.219146010005225],[20.910641310314535,-18.252218926672022],[20.88113406747587,-21.814327080983148],[19.89545779794068,-21.84915699634787],[19.895767856534434,-24.76779021576059],[19.894734327888614,-28.461104831660776],[19.002127312911085,-28.972443129188868],[18.464899122804752,-29.04546192801728],[17.83615197110953,-28.85637786226132],[17.387497185951503,-28.78351409272978],[17.218928663815404,-28.35594329194681],[16.824017368240902,-28.08216155366447],[16.344976840895242,-28.5767050106977],[15.601818068105816,-27.821247247022804],[15.21047244635946,-27.090955905874047],[14.989710727608553,-26.11
27371921495156],[14.743214145576331,-25.39292001719538],[14.408144158595833,-23.853014011329847],[14.385716586981149,-22.65665292734069],[14.257714064194175,-22.111208184499958],[13.86864220546866,-21.699036960539978],[13.35249799973744,-20.872834161057504],[12.826845330464494,-19.673165785401665],[12.608564080463621,-19.0453488094877],[11.794918654028066,-18.069129327061916],[11.734198846085093,-17.301889336824487]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"France",SOV_A3:"FR1",ADM0_DIF:1,LEVEL:2,TYPE:"Dependency",ADMIN:"New Caledonia",ADM0_A3:"NCL",GEOU_DIF:0,GEOUNIT:"New Caledonia",GU_A3:"NCL",SU_DIF:0,SUBUNIT:"New Caledonia",SU_A3:"NCL",BRK_DIFF:0,NAME:"New Caledonia",NAME_LONG:"New Caledonia",BRK_A3:"NCL",BRK_NAME:"New Caledonia",BRK_GROUP:null,ABBREV:"New C.",POSTAL:"NC",FORMAL_EN:"New Caledonia",FORMAL_FR:"Nouvelle-Calédonie",NAME_CIAWF:"New Caledonia",NOTE_ADM0:"Fr.",NOTE_BRK:null,NAME_SORT:"New Caledonia",NAME_ALT:null,MAPCOLOR7:7,MAPCOLOR8:5,MAPCOLOR9:9,MAPCOLOR13:11,POP_EST:279070,POP_RANK:10,GDP_MD_EST:10770,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"NC",ISO_A2:"NC",ISO_A3:"NCL",ISO_A3_EH:"NCL",ISO_N3:"540",UN_A3:"540",WB_A2:"NC",WB_A3:"NCL",WOE_ID:23424903,WOE_ID_EH:23424903,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"NCL",ADM0_A3_US:"NCL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Oceania",REGION_UN:"Oceania",SUBREGION:"Melanesia",REGION_WB:"East Asia & Pacific",NAME_LEN:13,LONG_LEN:13,ABBREV_LEN:6,TINY:-99,HOMEPART:-99,MIN_ZOOM:0,MIN_LABEL:4.6,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[165.77998986232637,-21.08000497811563],[166.59999148993384,-21.700018812753527],[167.1200114280869,-22.15999073658349],[166.7400346214448,-22.39997608814695],[166.18973229396866,-22.129708347260454],[165.47437544175222,-21.679606621998232],[164.82981530177568,-21.14981983814195],[164.16799523341365,-20.444746595951628],[164.029605747736,-20.105645847252354],[164.45996707586272,-20.1200118954295],[165.02003624904205,-20.45999114347773],[165.46000939357512,-20.80002206795826],[165.77998986232637,-21.08000497811563]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Niger",SOV_A3:"NER",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Niger",ADM0_A3:"NER",GEOU_DIF:0,GEOUNIT:"Niger",GU_A3:"NER",SU_DIF:0,SUBUNIT:"Niger",SU_A3:"NER",BRK_DIFF:0,NAME:"Niger",NAME_LONG:"Niger",BRK_A3:"NER",BRK_NAME:"Niger",BRK_GROUP:null,ABBREV:"Niger",POSTAL:"NE",FORMAL_EN:"Republic of Niger",FORMAL_FR:null,NAME_CIAWF:"Niger",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Niger",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:5,MAPCOLOR9:3,MAPCOLOR13:13,POP_EST:19245344,POP_RANK:14,GDP_MD_EST:20150,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"NG",ISO_A2:"NE",ISO_A3:"NER",ISO_A3_EH:"NER",ISO_N3:"562",UN_A3:"562",WB_A2:"NE",WB_A3:"NER",WOE_ID:23424906,WOE_ID_EH:23424906,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"NER",ADM0_A3_US:"NER",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[3.611180454125559,11.660167141155968],[2.848643019226586,12.23563589115821],[2.49016360841793,12.233052069543675],[2.154473504249921,11.940150051313339],[2.177107781593776,12.625017808477535],[1.024103224297477,12.851825669806574],[.993045688490071,13.335749620003824],[.429927605805517,13.988733018443924],[.295646396495101,14.444234930880654],[.374892205414682,14.92890818934613],[1.015783318698482,14.96818227788799],[1.385528191746858,15.323561102759172],[2.749992709981484,15.409524847876696],[3.638258904646477,15.568119818580456],[3.723421665063483,16.184283759012615],[4.270209995143802,16.852227484601215],[4.267419467800039,19.155265204337],[5.677565952180686,19.601206976799716],[8.572893100629784,21.565660712159143],[11.999505649471613,23.47166840259645],[13.581424594790462,23.04050608976928],[14.143870883855243,22.491288967371133],[14.8513,22.862950000000126],[15.096887648181848,21.30851878507491],[15.47106,21.04845],[15.487148064850146,20.730414537025638],[15.903246697664315,20.387618923417506],[15.685740594147774,19.957180080642388],[15.30044111497972,17.927949937405003],[15.247731154041844,16.627305813050782],[13.97217,15.68437],[13.540393507550789,14.367133693901224],[13.956698846094127,13.996691189016929],[13.95447675950561,13.353448798063766],[14.595781284247607,13.33042694747786],[14.495787387762846,12.85939626713733],[14.213530714584635,12.802035427293347],[14.181336297266794,12.483656927943116],[13.995352817448293,12.461565253138303],[13.318701613018561,13.556356309457826],[13.083987257548813,13.596147162322495],[12.302071160540523,13.037189032437524],[11.527803175511394,13.328980007373588],[10.989593133191534,13.387322699431195],[10.701031935273706,13.246917832894084],[10.114814487354693,13.27725189864941],[9.524928012742947,12.851102199754479],[9.014933302454438,12.826659247280418],[7.804671258178786,13.343526923063747],[7.330746697630019,13.0980380314612],[6.820441928747754,13.115091254117518],[6.445426059605637,13.492768459522678],[5.443058302440136,13.865923977102227],[4.368343540066007,13.747481594289411],[4.107945997747322,13.531215725147831],[3.967282749048849,12.956108710171575],[3.680633579125811,12.552903347214226],[3.611180454125559,11.660167141155968]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Nigeria",SOV_A3:"NGA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Nigeria",ADM0_A3:"NGA",GEOU_DIF:0,GEOUNIT:"Nigeria",GU_A3:"NGA",SU_DIF:0,SUBUNIT:"Nigeria",SU_A3:"NGA",BRK_DIFF:0,NAME:"Nigeria",NAME_LONG:"Nigeria",BRK_A3:"NGA",BRK_NAME:"Nigeria",BRK_GROUP:null,ABBREV:"Nigeria",POSTAL:"NG",FORMAL_EN:"Federal Republic of Nigeria",FORMAL_FR:null,NAME_CIAWF:"Nigeria",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Nigeria",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:2,MAPCOLOR9:5,MAPCOLOR13:2,POP_EST:190632261,POP_RANK:17,GDP_MD_EST:1089e3,POP_YEAR:2017,LASTCENSUS:2006,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"NI",ISO_A2:"NG",ISO_A3:"NGA",ISO_A3_EH:"NGA",ISO_N3:"566",UN_A3:"566",WB_A2:"NG",WB_A3:"NGA",WOE_ID:23424908,WOE_ID_EH:23424908,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"NGA",ADM0_A3_US:"NGA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:7,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"Polygon",coordinates:[[[2.691701694356254,6.258817246928629],[2.74906253420022,7.870734361192888],[2.723792758809509,8.50684540448971],[2.912308383810256,9.137607937044322],[3.220351596702101,9.444152533399702],[3.705438266625919,10.063210354040208],[3.600070021182802,10.332186184119408],[3.797112257511714,10.734745591673105],[3.572216424177469,11.32793935795152],[3.611180454125559,11.660167141155968],[3.680633579125811,12.552903347214226],[3.967282749048849,12.956108710171575],[4.107945997747322,13.531215725147831],[4.368343540066007,13.747481594289411],[5.443058302440136,13.865923977102227],[6.445426059605637,13.492768459522678],[6.820441928747754,13.115091254117518],[7.330746697630019,13.0980380314612],[7.804671258178786,13.343526923063747],[9.014933302454438,12.826659247280418],[9.524928012742947,12.851102199754479],[10.114814487354693,13.27725189864941],[10.701031935273706,13.246917832894084],[10.989593133191534,13.387322699431195],[11.527803175511394,13.328980007373588],[12.302071160540523,13.037189032437524],[13.083987257548813,13.596147162322495],[13.318701613018561,13.556356309457826],[13.995352817448293,12.461565253138303],[14.181336297266794,12.483656927943116],[14.577177768622533,12.085360826053503],[14.468192172918975,11.904751695193411],[14.415378859116684,11.572368882692075],[13.572949659894562,10.79856
25985553566],[13.308676385153918,10.160362046748928],[13.167599724997103,9.640626328973411],[12.955467970438974,9.417771714714704],[12.753671502339216,8.717762762888995],[12.218872104550599,8.305824082874324],[12.063946160539558,7.799808457872302],[11.839308709366803,7.397042344589437],[11.74577436691851,6.981382961449754],[11.058787876030351,6.644426784690594],[10.497375115611419,7.055357774275564],[10.118276808318257,7.03876963950988],[9.522705926154401,6.453482367372117],[9.233162876023044,6.444490668153335],[8.757532993208628,5.479665839047911],[8.500287713259695,4.771982937026849],[7.462108188515941,4.412108262546241],[7.082596469764439,4.464689032403228],[6.6980721370806,4.240594183769517],[5.898172641634687,4.262453314628985],[5.362804803090881,4.887970689305959],[5.033574252959369,5.611802476418234],[4.325607130560684,6.270651149923467],[3.574180128604553,6.258300482605719],[2.691701694356254,6.258817246928629]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Nicaragua",SOV_A3:"NIC",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Nicaragua",ADM0_A3:"NIC",GEOU_DIF:0,GEOUNIT:"Nicaragua",GU_A3:"NIC",SU_DIF:0,SUBUNIT:"Nicaragua",SU_A3:"NIC",BRK_DIFF:0,NAME:"Nicaragua",NAME_LONG:"Nicaragua",BRK_A3:"NIC",BRK_NAME:"Nicaragua",BRK_GROUP:null,ABBREV:"Nic.",POSTAL:"NI",FORMAL_EN:"Republic of Nicaragua",FORMAL_FR:null,NAME_CIAWF:"Nicaragua",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Nicaragua",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:1,MAPCOLOR13:9,POP_EST:6025951,POP_RANK:13,GDP_MD_EST:33550,POP_YEAR:2017,LASTCENSUS:2005,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"NU",ISO_A2:"NI",ISO_A3:"NIC",ISO_A3_EH:"NIC",ISO_N3:"558",UN_A3:"558",WB_A2:"NI",WB_A3:"NIC",WOE_ID:23424915,WOE_ID_EH:23424915,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"NIC",ADM0_A3_US:"NIC",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Central America",REGION_WB:"Latin America & Caribbean",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[-83.65561174186158,10.938764146361422],[-83.89505449088595,10.726839097532446],[-84.19017859570485,10.793450018756674],[-84.35593075228104,10.999225572142905],[-84.67306901725627,11.082657172078143],[-84.90300330273895,10.952303371621896],[-85.5618519762442,11.217119248901597],[-85.7125404528073,11.088444932494824],[-86.05848832878526,11.403438625529944],[-86.52584998243296,11.806876532432597],[-86.74599158399633,12.143961900272487],[-87.16751624220116,12.458257961471658],[-87.66849341505471,12.909909979702633],[-87.55746660027562,13.064551703336065],[-87.39238623731923,12.914018256069838],[-87.31665442579549,12.984685777229004],[-87.00576900912758,13.025794379117158],[-86.88055701368438,13.254204209847217],[-86.7338217841916,13.263092556201443],[-86.75508663607971,13.754845485890913],[-86.52070817741992,13.778487453664468],[-86.31214209668993,13.77135610600817],[-86.09626380079061,14.038187364147234],[-85.80129472526859,13.83605499923759],[-85.69866533073696,13.960078436738002],[-85.51441301140028,14.079011745657908],[-85.16536454948482,14.354369615125051],[-85.14875057650296,14.560196844943617],[-85.05278744173694,14.551541042534723],[-84.9245006985724,14.79049286545235],[-84.82003679069436,14.81958669683267],[-84.64958207877964,14.666805324761867],[-84.4493359036486,14.621614284722497],[-84.22834164095241,14.748764146376658],[-83.97572140169359,14.749435939996461],[-83.62858496777292,14.880073960830302],[-83.48998877636612,15.016267198135537],[-83.14721900097413,14.99582916916421],[-83.23323442252394,14.899866034398102],[-83.2841615465476,14.6766238468972],[-83.18212643098728,14.31070302983845],[-83.41249996614445,13.970077826386557],[-83.51983191601468,13.567699286345883],[-83.55220720084554,13.127054348193086],[-83.49851538769427,12.869292303921227],[-83.47332312695198,12.419087225794428],[-83.62610449902292,12.320850328007566],[-83.71961300325506,11.893124497927728],[-83.65085751009072,11.62903209070012],[-83.8554703437504,11.373311265503787],[-83.80893571647155,11.103043524617275],[-83.65561174186158,10.938764146361422]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Netherlands",SOV_A3:"NL1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"Netherlands",ADM0_A3:"NLD",GEOU_DIF:0,GEOUNIT:"Netherlands",GU_A3:"NLD",SU_DIF:0,SUBUNIT:"Netherlands",SU_A3:"NLD",BRK_DIFF:0,NAME:"Netherlands",NAME_LONG:"Netherlands",BRK_A3:"NLD",BRK_NAME:"Netherlands",BRK_GROUP:null,ABBREV:"Neth.",POSTAL:"NL",FORMAL_EN:"Kingdom of the Netherlands",FORMAL_FR:null,NAME_CIAWF:"Netherlands",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Netherlands",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:2,MAPCOLOR9:2,MAPCOLOR13:9,POP_EST:17084719,POP_RANK:14,GDP_MD_EST:870800,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"NL",ISO_A2:"NL",ISO_A3:"NLD",ISO_A3_EH:"NLD",ISO_N3:"528",UN_A3:"528",WB_A2:"NL",WB_A3:"NLD",WOE_ID:-90,WOE_ID_EH:23424909,WOE_NOTE:"Doesn't include new former units of Netherlands Antilles (24549811, 24549808, and 24549809)",ADM0_A3_IS:"NLD",ADM0_A3_US:"NLD",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Western Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:11,LONG_LEN:11,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[6.15665815595878,50.80372101501058],[5.606975945670001,51.03729848896978],[4.973991326526914,51.47502370869813],[4.047071160507528,51.26725861266857],[3.314971144228537,51.34575511331991],[3.31501148496416,51.34577662473805],[3.830288527043137,51.62054454203195],[4.705997348661185,53.091798407597764],[6.074182570020923,53.510403347378144],[6.905139601274129,53.48216217713065],[7.092053256873896,53.144043280644894],[6.842869500362383,52.22844025329755],[6.589396599970826,51.852029120483394],[5.988658074577813,51.851615709025054],[6.15665815595878,50.80372101501058]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Norway",SOV_A3:"NOR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Norway",ADM0_A3:"NOR",GEOU_DIF:0,GEOUNIT:"Norway",GU_A3:"NOR",SU_DIF:0,SUBUNIT:"Norway",SU_A3:"NOR",BRK_DIFF:0,NAME:"Norway",NAME_LONG:"Norway",BRK_A3:"NOR",BRK_NAME:"Norway",BRK_GROUP:null,ABBREV:"Nor.",POSTAL:"N",FORMAL_EN:"Kingdom of Norway",FORMAL_FR:null,NAME_CIAWF:"Norway",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Norway",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:3,MAPCOLOR9:8,MAPCOLOR13:12,POP_EST:5320045,POP_RANK:13,GDP_MD_EST:364700,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"-99",ISO_A2:"-99",ISO_A3:"-99",ISO_A3_EH:"-99",ISO_N3:"-99",UN_A3:"-99",WB_A2:"-99",WB_A3:"-99",WOE_ID:-90,WOE_ID_EH:23424910,WOE_NOTE:"Does not include Svalbard, Jan Mayen, or Bouvet Islands (28289410).",ADM0_A3_IS:"NOR",ADM0_A3_US:"NOR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Northern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"MultiPolygon",coordinates:[[[[28.591929559043194,69.06477692328666],[29.015572950971972,69.76649119737799],[27.732292107867835,70.16419302029624],[26.179622023226244,69.82529897732614],[25.689212680776336,69.09211375596905],[24.735679152126725,68.64955678982146],[23.66204959483076,68.89
2124746365054],[22.356237827247412,68.84174144151491],[21.244936150810673,69.37044302029308],[20.645592889089528,69.10624726020087],[20.025268995857886,69.0651386583127],[19.878559604581255,68.40719432237258],[17.993868442464333,68.56739126247736],[17.729181756265348,68.01055186631628],[16.768878614985482,68.0139366726314],[16.108712192456778,67.30245555283689],[15.108411492583002,66.19386688909546],[13.55568973150909,64.78702769638151],[13.919905226302204,64.44542064071608],[13.571916131248713,64.0491140814697],[12.579935336973934,64.06621898055833],[11.930569288794231,63.12831757267698],[11.992064243221563,61.80036245385655],[12.631146681375185,61.293571682370136],[12.3003658382749,60.11793284773003],[11.468271925511146,59.43239329694604],[11.027368605196868,58.85614940045936],[10.356556837616125,59.469807033925406],[8.382000359743586,58.31328847923322],[7.048748406613328,58.078884182357314],[5.665835402050448,58.5881554225937],[5.308234490590678,59.66323191999385],[4.992078077828978,61.9709980332843],[5.912900424837943,62.614472968182724],[8.55341108565571,63.4540082871965],[10.527709181366816,64.48603831649751],[12.358346795306431,65.8797258571932],[14.761145867581632,67.81064158799518],[16.435927361728943,68.56320547146171],[19.18402835457846,69.81744415961785],[21.378416375420557,70.25516937934609],[23.023742303161526,70.20207184516622],[24.546543409938465,71.03049673123726],[26.37004967622184,70.9862617051954],[28.165547316202975,71.18547435168054],[31.293418409965426,70.45378774685986],[30.005435011522792,70.18625885688493],[31.101042202597615,69.55810108805622],[29.39955,69.15692000000013],[28.591929559043194,69.06477692328666]]],[[[24.72412,77.85385],[22.49032,77.44493],[20.72601,77.67704],[21.41611,77.93504],[20.8119,78.25463],[22.88426,78.45494],[23.28134,78.07954],[24.72412,77.85385]]],[[[18.25183,79.70175],[21.54383,78.95611],[19.02737,78.5626],[18.47172,77.82669],[17.59441,77.63796],[17.1182,76.80941],[15.91315,76.77045],[13.76259,77.38035],[14.66956,77.73565],[13.1706,78.02493],[11.22231,78.8693],[10.44453,79.65239],[13.17077,80.01046],[13.71852,79.66039],[15.14282,79.67431],[15.52255,80.01608],[16.99085,80.05086],[18.25183,79.70175]]],[[[25.447625359811923,80.40734039989457],[27.40750573091347,80.05640574820049],[25.92465050629812,79.51783397085453],[23.02446577321365,79.40001170522905],[20.075188429451828,79.5668232286672],[19.897266473070943,79.84236196564746],[18.462263624757867,79.85988027619445],[17.368015170977486,80.31889618602705],[20.45599205901064,80.59815562613227],[21.90794477711546,80.35767934846203],[22.91925255706738,80.65714427359345],[25.447625359811923,80.40734039989457]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Nepal",SOV_A3:"NPL",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Nepal",ADM0_A3:"NPL",GEOU_DIF:0,GEOUNIT:"Nepal",GU_A3:"NPL",SU_DIF:0,SUBUNIT:"Nepal",SU_A3:"NPL",BRK_DIFF:0,NAME:"Nepal",NAME_LONG:"Nepal",BRK_A3:"NPL",BRK_NAME:"Nepal",BRK_GROUP:null,ABBREV:"Nepal",POSTAL:"NP",FORMAL_EN:"Nepal",FORMAL_FR:null,NAME_CIAWF:"Nepal",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Nepal",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:2,MAPCOLOR9:3,MAPCOLOR13:12,POP_EST:29384297,POP_RANK:15,GDP_MD_EST:71520,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"NP",ISO_A2:"NP",ISO_A3:"NPL",ISO_A3_EH:"NPL",ISO_N3:"524",UN_A3:"524",WB_A2:"NP",WB_A3:"NPL",WOE_ID:23424911,WOE_ID_EH:23424911,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"NPL",ADM0_A3_US:"NPL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Southern Asia",REGION_WB:"South Asia",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[81.11125613802932,30.183480943313402],[81.52580447787474,30.42271698660863],[82.32751264845088,30.115268052688137],[83.33711510613719,29.463731594352197],[83.89899295444673,29.320226141877658],[84.23457970575012,28.839893703724698],[85.01163821812304,28.642773952747344],[85.82331994013148,28.203575954698692],[86.9545170430006,27.974261786403517],[88.12044070836987,27.876541652939594],[88.04313276566123,27.445818589786825],[88.17480431514092,26.81040517832595],[88.06023766474982,26.41461538340249],[87.2274719583663,26.397898057556077],[86.02439293817918,26.63098460540857],[85.25177859898338,26.726198431906344],[84.6750179381738,27.234901231387536],[83.30424889519955,27.36450572357556],[81.99998742058497,27.925479234319994],[81.05720258985203,28.416095282499043],[80.08842451367627,28.79447011974014],[80.4767212259174,29.72986522065534],[81.11125613802932,30.183480943313402]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"New Zealand",SOV_A3:"NZ1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"New Zealand",ADM0_A3:"NZL",GEOU_DIF:0,GEOUNIT:"New Zealand",GU_A3:"NZL",SU_DIF:0,SUBUNIT:"New Zealand",SU_A3:"NZL",BRK_DIFF:0,NAME:"New Zealand",NAME_LONG:"New Zealand",BRK_A3:"NZL",BRK_NAME:"New Zealand",BRK_GROUP:null,ABBREV:"N.Z.",POSTAL:"NZ",FORMAL_EN:"New Zealand",FORMAL_FR:null,NAME_CIAWF:"New Zealand",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"New Zealand",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:3,MAPCOLOR9:4,MAPCOLOR13:4,POP_EST:4510327,POP_RANK:12,GDP_MD_EST:174800,POP_YEAR:2017,LASTCENSUS:2006,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"NZ",ISO_A2:"NZ",ISO_A3:"NZL",ISO_A3_EH:"NZL",ISO_N3:"554",UN_A3:"554",WB_A2:"NZ",WB_A3:"NZL",WOE_ID:23424916,WOE_ID_EH:23424916,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"NZL",ADM0_A3_US:"NZL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Oceania",REGION_UN:"Oceania",SUBREGION:"Australia and New Zealand",REGION_WB:"East Asia & Pacific",NAME_LEN:11,LONG_LEN:11,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:6.7},geometry:{type:"MultiPolygon",coordinates:[[[[173.02037479074082,-40.91905242285641],[173.24723432850212,-41.33199879330077],[173.9584053897028,-40.926700534835604],[174.24758670480819,
2-41.34915536882174],[174.2485168805894,-41.77000823340674],[173.87644656808803,-42.23318409603881],[173.22273969959573,-42.97003834408865],[172.71124637277077,-43.37228769304858],[173.08011274647023,-43.853343601253584],[172.30858361235252,-43.86569426857133],[171.45292524646365,-44.24251881284373],[171.18513797432726,-44.89710418068488],[170.61669721911662,-45.908928724959694],[169.83142215400935,-46.3557748349876],[169.33233117093428,-46.64123544696784],[168.41135379462864,-46.61994475686359],[167.76374474514685,-46.290197442409195],[166.67688602118423,-46.21991749449225],[166.50914432196467,-45.8527047666262],[167.04642418850327,-45.11094125750866],[168.3037634625969,-44.12397307716613],[168.94940880765157,-43.93581918719141],[169.66781456937318,-43.55532561622634],[170.52491987536618,-43.031688327812816],[171.12508996000403,-42.51275359473786],[171.56971398344322,-41.76742441179212],[171.94870893787194,-41.51441659929114],[172.09722700427878,-40.95610442480975],[172.798579543344,-40.49396209082346],[173.02037479074082,-40.91905242285641]]],[[[174.61200890533044,-36.15639739354053],[175.3366158389271,-37.209097995758256],[175.35759647043764,-36.5261939430212],[175.80888675364255,-36.79894215265767],[175.95849002512765,-37.55538176854614],[176.76319542877664,-37.88125335057869],[177.43881310456064,-37.96124846776648],[178.01035444570877,-37.5798247210202],[178.51709354076277,-37.695373223624784],[178.27473107331392,-38.582812595373184],[177.97046023997925,-39.16634286881296],[177.20699262929926,-39.14577564876083],[176.9399805036471,-39.44973642350156],[177.0329464053402,-39.879942722331464],[176.88582360260514,-40.06597787858216],[176.50801720611926,-40.60480803808957],[176.0124402204402,-41.28962411882149],[175.23956749908294,-41.68830779395323],[175.06789839100932,-41.42589487077515],[174.65097293527853,-41.281820977545436],[175.22763024322356,-40.45923552832339],[174.90015669179004,-39.908933200847216],[173.82404666574408,-39.5088542620435],[173.8522619977754,-39.146602471677454],[174.5748018740803,-38.79768320084274],[174.74347374908095,-38.027807712558456],[174.69701663645068,-37.38112883885795],[174.29202843657927,-36.71109221776153],[174.31900353423546,-36.53482390721388],[173.8409965355357,-36.1219808896341],[173.0541711774596,-35.23712533950041],[172.6360054873538,-34.52910654066946],[173.00704227120949,-34.45066171645033],[173.55129845610762,-35.006183363588036],[174.32939049712618,-35.26549570082861],[174.61200890533044,-36.15639739354053]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Oman",SOV_A3:"OMN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Oman",ADM0_A3:"OMN",GEOU_DIF:0,GEOUNIT:"Oman",GU_A3:"OMN",SU_DIF:0,SUBUNIT:"Oman",SU_A3:"OMN",BRK_DIFF:0,NAME:"Oman",NAME_LONG:"Oman",BRK_A3:"OMN",BRK_NAME:"Oman",BRK_GROUP:null,ABBREV:"Oman",POSTAL:"OM",FORMAL_EN:"Sultanate of Oman",FORMAL_FR:null,NAME_CIAWF:"Oman",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Oman",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:1,MAPCOLOR13:6,POP_EST:3424386,POP_RANK:12,GDP_MD_EST:173100,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"MU",ISO_A2:"OM",ISO_A3:"OMN",ISO_A3_EH:"OMN",ISO_N3:"512",UN_A3:"512",WB_A2:"OM",WB_A3:"OMN",WOE_ID:23424898,WOE_ID_EH:23424898,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"OMN",ADM0_A3_US:"OMN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:4,LONG_LEN:4,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"MultiPolygon",coordinates:[[[[56.261041701080956,25.71460643157677],[56.07082075381456,26.05546417897398],[56.3620174497793,26.39593435312898],[56.485679152253766,26.3091179468787],[56.39142133975335,25.89599070892129],[56.261041701080956,25.71460643157677]]],[[[55.208341098863194,22.708329982997046],[55.234489373602884,23.110992743415324],[55.525841098864475,23.524869289640932],[55.52863162620824,23.933604030853502],[55.98121382022046,24.130542914317857],[55.8041186867562,24.269604193615294],[55.88623253766801,24.920830593357447],[56.39
26847365144005,24.924732163995486],[56.845140415276006,24.241673081961522],[57.40345258975739,23.87859446867887],[58.13694786970828,23.747930609628867],[58.729211460205505,23.565667832935333],[59.18050174341036,22.992395331305488],[59.45009769067704,22.660270900965628],[59.808060337162914,22.53361196541823],[59.80614830916815,22.310524807214193],[59.442191196536356,21.714540513592],[59.28240766788994,21.433885809814882],[58.861141391846644,21.114034532144302],[58.48798587426691,20.42898590746705],[58.03431847517666,20.48143748624335],[57.82637251163416,20.243002427648662],[57.66576216007101,19.736004950433028],[57.788700392493325,19.067570298737678],[57.69439090356062,18.944709580963718],[57.23426395043387,18.947991034414287],[56.60965091332193,18.574267076079508],[56.51218916201955,18.087113348863966],[56.28352094912796,17.87606679938395],[55.66149173363064,17.884128322821567],[55.269939406155146,17.632309068263226],[55.27490034365516,17.228354397037663],[54.79100223167407,16.950696926333393],[54.23925296409371,17.0449805770499],[53.57050825380455,16.707662665264706],[53.10857262554751,16.651051133688924],[52.78218427919205,17.349742336491232],[52.00000980002224,19.0000033635161],[54.99998172386236,19.999994004796065],[55.666659376859826,22.00000112557234],[55.208341098863194,22.708329982997046]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Pakistan",SOV_A3:"PAK",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Pakistan",ADM0_A3:"PAK",GEOU_DIF:0,GEOUNIT:"Pakistan",GU_A3:"PAK",SU_DIF:0,SUBUNIT:"Pakistan",SU_A3:"PAK",BRK_DIFF:0,NAME:"Pakistan",NAME_LONG:"Pakistan",BRK_A3:"PAK",BRK_NAME:"Pakistan",BRK_GROUP:null,ABBREV:"Pak.",POSTAL:"PK",FORMAL_EN:"Islamic Republic of Pakistan",FORMAL_FR:null,NAME_CIAWF:"Pakistan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Pakistan",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:2,MAPCOLOR9:3,MAPCOLOR13:11,POP_EST:204924861,POP_RANK:17,GDP_MD_EST:988200,POP_YEAR:2017,LASTCENSUS:1998,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"PK",ISO_A2:"PK",ISO_A3:"PAK",ISO_A3_EH:"PAK",ISO_N3:"586",UN_A3:"586",WB_A2:"PK",WB_A3:"PAK",WOE_ID:23424922,WOE_ID_EH:23424922,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"PAK",ADM0_A3_US:"PAK",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Southern Asia",REGION_WB:"South Asia",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[60.87424848820879,29.829238999952608],[62.54985680527278,29.31857249604431],[63.55026085801117,29.468330796826166],[64.14800215033125,29.340819200145972],[64.35041873561852,29.560030625928093],[65.0468620136161,29.472180691031905],[66.34647260932442,29.887943427036177],[66.38145755398602,30.738899237586452],[66.93889122911847,31.304911200479353],[67.68339358914747,31.30315420178142],[67.79268924344478,31.58293040620963],[68.55693200060932,31.713310044882018],[68.92667687365767,31.620189113892067],[69.31776411324256,31.901412258424443],[69.26252200712256,32.5019440780883],[69.68714725126486,33.105498969041236],[70.3235941913716,33.35853261975839],[69.9305432473596,34.02012014417511],[70.8818030129884,33.98885590263852],[71.15677330921346,34.34891144463215],[71.11501875192164,34.733125718722235],[71.61307620635071,35.153203436822864],[71.49876793812109,35.650563259416],[71.26234826038575,36.074387518857804],[71.84629194528392,36.50994232842986],[72.92002485544447,36.72000702569632],[74.06755171091783,36.83617564548845],[74.57589277537298,37.02084137628346],[75.15802778514092,37.13303091078912],[75.89689741405013,36.66680613865182],[76.19284834178566,35.8984034286878],[77.83745079947457,35.494009507787766],[76.87172163280403,34.65354401299274],[75.75706098826834,34.50492259372132],[74.24020267120497,34.748887030571254],[73.74994835805197,34.31769887952785],[74.10429365427734,33.44147329358685],[74.45155927927871,32.7648996038055],[75.25864179881322,32.2711054550405],[74.40592898956501,31.69263947196528],[74.42138024282028,30.979814764931177],[73.45063846221743,29.97641347911987],[72.8237516620847,28.961591701772054],[71.77766564320032,27.9
213180243434525],[70.61649620960193,27.989196275335868],[69.51439293811313,26.940965684511372],[70.16892662952202,26.491871649678842],[70.2828731627256,25.72222870533983],[70.84469933460284,25.21510203704352],[71.04324018746823,24.3565239527302],[68.84259931831878,24.35913361256094],[68.1766451353734,23.69196503345671],[67.44366661974547,23.94484365487699],[67.14544192898907,24.663611151624647],[66.37282758979327,25.42514089609385],[64.53040774929113,25.23703868255143],[62.90570071803461,25.21840932871021],[61.49736290878419,25.0782370061185],[61.87418745305655,26.239974880472104],[63.31663170761959,26.756532497661667],[63.2338977395203,27.21704702403071],[62.75542565292986,27.378923448184988],[62.72783043808599,28.25964488373539],[61.77186811711863,28.6993338078908],[61.36930870956494,29.303276272085924],[60.87424848820879,29.829238999952608]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Panama",SOV_A3:"PAN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Panama",ADM0_A3:"PAN",GEOU_DIF:0,GEOUNIT:"Panama",GU_A3:"PAN",SU_DIF:0,SUBUNIT:"Panama",SU_A3:"PAN",BRK_DIFF:0,NAME:"Panama",NAME_LONG:"Panama",BRK_A3:"PAN",BRK_NAME:"Panama",BRK_GROUP:null,ABBREV:"Pan.",POSTAL:"PA",FORMAL_EN:"Republic of Panama",FORMAL_FR:null,NAME_CIAWF:"Panama",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Panama",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:4,MAPCOLOR9:6,MAPCOLOR13:3,POP_EST:3753142,POP_RANK:12,GDP_MD_EST:93120,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"PM",ISO_A2:"PA",ISO_A3:"PAN",ISO_A3_EH:"PAN",ISO_N3:"591",UN_A3:"591",WB_A2:"PA",WB_A3:"PAN",WOE_ID:23424924,WOE_ID_EH:23424924,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"PAN",ADM0_A3_US:"PAN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Central America",REGION_WB:"Latin America & Caribbean",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[-77.35336076527386,8.67050466555807],[-77.47472286651133,8.524286200388218],[-77.24256649444008,7.935278225125444],[-77.43110795765699,7.638061224798734],[-77.7534138658614,7.709839789252143],[-77.88157141794525,7.223771267114785],[-78.21493608266012,7.512254950384161],[-78.42916073272607,8.052041123888927],[-78.18209570993864,8.319182440621773],[-78.4354652574657,8.38770538984079],[-78.62212053090394,8.718124497915028],[-79.12030717641375,8.996092027213024],[-79.55787736684519,8.932374986197146],[-79.76057817251005,8.5845150822244],[-80.16448116730334,8.333315944853595],[-80.38265906443962,8.298408514840432],[-80.4806892564973,8.09030752200107],[-80.00368994822716,7.547524115423372],[-80.276670701809,7.419754136581716],[-80.42115800649708,7.271571966984765],[-80.8864009264208,7.220541490096537],[-81.05954281281473,7.817921047390597],[-81.18971574575795,7.64790558515034],[-81.51951473664468,7.706610012233909],[-81.72131120474447,8.108962714058435],[-82.13144120962892,8.175392767769637],[-82.39093441438257,8.29236237226229],[-82.82008134635042,8.290863755725823],[-82.85095801464482,8.073822740099956],[-82.96578304719736,8.225027980985985],[-82.91317643912421,8.42351715741907],[-82.82977067740516,8.62629547773237],[-82.86865719270477,8.807266343618522],[-82.71918311230053,8.925708726431495],[-82.92715491405916,9.074330145702916],[-82.93289099804358,9.476812038608173],[-82.54619625520348,9.566134751824677],[-82.18712256542341,9.20744863528678],[-82.20758643261097,8.9955752628901],[-81.80856686066929,8.950616766796173],[-81.71415401887204,9.031955471223583],[-81.43928707551154,8.786234035675719],[-80.94730160187676,8.858503526235907],[-80.52190121125008,9.111072089062432],[-79.91459977895599,9.31276520429762],[-79.57330278188431,9.611610012241528],[-79.02119177927793,9.552931423374105],[-79.05845048696037,9.454565334506526],[-78.50088762074719,9.420458889193881],[-78.05592770049802,9.2477304142583],[-77.72951351592641,8.946844387238869],[-77.35336076527386,8.67050466555807]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Peru",SOV_A3:"PER",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Peru",ADM0_A3:"PER",GEOU_DIF:0,GEOUNIT:"Peru",GU_A3:"PER",SU_DIF:0,SUBUNIT:"Peru",SU_A3:"PER",BRK_DIFF:0,NAME:"Peru",NAME_LONG:"Peru",BRK_A3:"PER",BRK_NAME:"Peru",BRK_GROUP:null,ABBREV:"Peru",POSTAL:"PE",FORMAL_EN:"Republic of Peru",FORMAL_FR:null,NAME_CIAWF:"Peru",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Peru",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:4,MAPCOLOR9:4,MAPCOLOR13:11,POP_EST:31036656,POP_RANK:15,GDP_MD_EST:410400,POP_YEAR:2017,LASTCENSUS:200
27,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"PE",ISO_A2:"PE",ISO_A3:"PER",ISO_A3_EH:"PER",ISO_N3:"604",UN_A3:"604",WB_A2:"PE",WB_A3:"PER",WOE_ID:23424919,WOE_ID_EH:23424919,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"PER",ADM0_A3_US:"PER",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:4,LONG_LEN:4,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[-69.52967810736496,-10.951734307502194],[-68.66507971868963,-12.561300144097173],[-68.88007951523997,-12.899729099176653],[-68.92922380234954,-13.602683607643009],[-68.9488866848366,-14.453639418193283],[-69.33953467474701,-14.953195489158832],[-69.16034664577495,-15.323973890853019],[-69.38976416693471,-15.660129082911652],[-68.9596353827533,-16.50069793057127],[-69.59042375352405,-17.58001189541936],[-69.8584435696059,-18.092693780187005],[-70.37257239447771,-18.34797535570887],[-71.37525021023693,-17.773798516513857],[-71.46204077827113,-17.363487644116383],[-73.44452958850042,-16.359362888252996],[-75.23788265654144,-15.265682875227782],[-76.00920508492995,-14.649286390850321],[-76.42346920439775,-13.823186944232432],[-76.25924150257417,-13.535039157772943],[-77.10619238962184,-12.22271615972082],[-78.09215287953464,-10.377712497604065],[-79.03695309112695,-8.386567884965892],[-79.44592037628485,-7.93083342858386],[-79.76057817251005,-7.194340915560084],[-80.53748165558608,-6.541667575713717],[-81.24999630402642,-6.136834405139183],[-80.92634680858244,-5.690556735866565],[-81.41094255239946,-4.736764825055459],[-81.09966956248937,-4.036394138203697],[-80.30256059438722,-3.404856459164713],[-80.18401485870967,-3.821161797708044],[-80.46929460317695,-4.059286797708999],[-80.44224199087216,-4.425724379090674],[-80.02890804718561,-4.346090996928893],[-79.62497921417618,-4.454198093283495],[-79.20528906931773,-4.959128513207389],[-78.63989722361234,-4.547784112164074],[-78.45068396677564,-3.873096612161376],[-77.83790483265861,-3.003020521663103],[-76.63539425322672,-2.608677666843818],[-75.54499569365204,-1.56160979574588],[-75.23372270374195,-.911416924649529],[-75.37322323271385,-.15203175212045],[-75.10662451852008,-.05720549886486],[-74.44160051135597,-.530820000819887],[-74.12239518908906,-1.002832533373848],[-73.6595035468346,-1.260491224781134],[-73.07039221870724,-2.308954359550953],[-72.32578650581365,-2.434218031426454],[-71.7747607082854,-2.169789727388938],[-71.41364579942979,-2.342802422702128],[-70.81347571479196,-2.256864515800743],[-70.04770850287485,-2.725156345229699],[-70.69268205430971,-3.742872002785859],[-70.39404395209499,-3.766591485207825],[-69.89363521999663,-4.298186944194327],[-70.7947688463023,-4.251264743673303],[-70.92884334988358,-4.401591485210368],[-71.74840572781655,-4.593982842633011],[-72.89192765978726,-5.274561455916981],[-72.9645072089412,-5.741251315944893],[-73.21971126981461,-6.089188734566078],[-73.1200274319236,-6.629930922068239],[-73.72448666044164,-6.91859547285064],[-73.7234014553635,-7.340998630404414],[-73.98723548042966,-7.523829847853065],[-73.57105933296707,-8.424446709835834],[-73.01538265653255,-9.032833347208062],[-73.22671342639016,-9.462212823121234],[-72.56303300646564,-9.520193780152717],[-72.18489071316985,-10.053597914269432],[-71.30241227892154,-10.079436130415374],[-70.48189388699117,-9.490118096558845],[-70.54868567572841,-11.009146823778465],[-70.0937522040469,-11.123971856331012],[-69.52967810736496,-10.951734307502194]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Philippines",SOV_A3:"PHL",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Philippines",ADM0_A3:"PHL",GEOU_DIF:0,GEOUNIT:"Philippines",GU_A3:"PHL",SU_DIF:0,SUBUNIT:"Philippines",SU_A3:"PHL",BRK_DIFF:0,NAME:"Philippines",NAME_LONG:"Philippines",BRK_A3:"PHL",BRK_NAME:"Philippines",BRK_GROUP:null,ABBREV:"Phil.",POSTAL:"PH",FORMAL_EN:"Republic of the Philippines",FORMAL_FR:null,NAME_CIAWF:"Philippines",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Philippines",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:2,MAPCOLOR9:2,MAPCOLOR13:8,POP_EST:104256076,POP_RANK:17,GDP_MD_EST:801900,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"RP",ISO_A2:"PH",ISO_A3:"PHL",ISO_A3_EH:"PHL",ISO_N3:"608",UN_A3:"608",WB_A2:"PH",WB_A3:"PHL",WOE_ID:23424934,WOE_ID_EH:23424934,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"PHL",ADM0_A3_US:"PHL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"South-Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:11,LONG_LEN:11,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"MultiPolygon",coordinates:[[[[126.37681359263743,8.414706325713283],[126.4785128113879,7.750354112169006],[126.53742394420058,7.189380601424602],[126.19677290253256,6.274294338400054],[125.8314205262291,7.293715318221871],[125.3638521668523,6.786485297060921],[125.68316084198366,6.049656887227272],[125.3965116720606,5.581003322772318],[124.21978763234242,6.161355495626196],[123.93871951710688,6.88513560630615],[124.24366214406129,7.360610459823675],[123.61021243702751,7.833527329942783],[123.29607140512528,7.418875637232802],[122.82550581267546,7.457374579290232],[122.08549930225573,6.899424139834863],[121.91992801319262,7.192119452336001],[122.31235884001714,8.034962063016437],[122.94239790251962,8.316236883981105],[123.48768761606354,8.693009751821208],[123.8411544129398,8.2403242049444],[124.60146976125023,8.51415761965903],[124.76461225799571,8.960409450715474],[125.47139082245164,8.986996975129657],[125.41211795461285,9.760334784377562],[126.22271447154313,9.286074327018866],[126.30663699758517,8.782487494334589],[126.37681359263743,8.414706325713283]]],[[[123.98243777882587,10.278778591345741],[123.62318322153274,9.950090643753313],[123.30992068897942,9.318268744336706],[122.99588300994165,9.022188625520428],[122.38005496631942,9.713360907424232],[122.58608890186716,9.981044826696134],[122.83708133350879,10.261156927934252],[122.94741051645192,10.881868394408059],[123.49884972543842,10.940624497923963],[123.3377742859847,10.267383938025375],[124.07793582570119,11.232725531453738],[123.98243777882587,10.278778591345741]]],[[[118.50458092659036,9.316382554558018],[117.17427453010075,8.367499904814693],[117.6644771668214,9.066888739452878],[118.38691369026176,9.684499619989253],[118.98734215706102,10.376292019080523],[119.51149620979751,11.369668077027242],[119.68967654833997,10.55429149010989],[119.02945844937895,10.0036532658238],[118.50458092659036,9.316382554558018]]],[[[121.88354780485909,11.891755072471994],[122.48382124236153,11.582187404827522],[123.12021650603603,11.583660183147899],[123.10083784392654,11.165933742716504],[122.63771365772666,10.741308498574156],[122.00261030485959,10.441016750526117],[121.96736697803655,10.905691229694654],[122.03837039600555,11.41584096927997],[121.88354780485909,11.891755072471994]]],[[[125.50255171112352,12.162694606978278],[125.78346479706218,11.046121934447783],[125.01188398651223,11.311454576050409],[125.0327612651582,10.975816148314735],[125.27744917206022,10.358722032101326],[124.80181928924574,10.134678859899921],[124.7601680848185,10.837995103392231],[124.45910119028602,10.889929917845564],[124.30252160044168,11.495370998577158],[124.89101281138156,11.415582587118521],[124.87799035044398,11.79418996830492],[124.26676150929566,12.5577609318497],[125.22711632700785,12.535720933477208],[125.50255171112352,12.162694606978278]]],[[[121.52739383350351,13.069590155484548],[121.26219038298157,12.205560207564432],[120.83389611214662,12.704496161342433],[120.32343631396745,13.466413479053799],[121.18012820850211,13.429697373910471],[121.52739383350351,13.069590155484548]]],[[[121.3213082215236,18.50406464281093],[121.93760135303646,18.218552354398412],[122.24600630095429,18.478949896717126],[122.33695682178805,18.22488271735409],[122.17427941293326,17.810282701076403],[122.51565392465332,17.093504746972002],[122.25231082569391,16.26244436285404],[121.66278608610824,15.931017564350128],[121.50506961475347,15.124813544164638],[121.72882856657722,14.328376369682275],[122.25892540902728,14.218202216036005],[122.70127566944572,14.336541245984364],[123.95029503794032,13.782130642140999],[123.85510704965864,13.23777110437841],[124.1812886902849,12.9975273706535],[124.07741906137832,12.536676947474604],[123.29803510955227,13.0275255395989
212],[122.92865197153,13.552919826710436],[122.67135501514869,13.185836289925064],[122.03464969288055,13.784481919810275],[121.12638471891856,13.636687323455575],[120.62863732308332,13.857655747935581],[120.67938357959392,14.271015529838337],[120.99181928923056,14.525392767795012],[120.6933362163127,14.756670640517314],[120.56414513558306,14.396279201713853],[120.07042850146641,14.970869452367126],[119.92092858284607,15.406346747290755],[119.88377322802822,16.363704331929995],[120.28648766487876,16.03462881109536],[120.3900472351917,17.599081122299538],[120.71586714079197,18.505227362537482],[121.3213082215236,18.50406464281093]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Papua New Guinea",SOV_A3:"PNG",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Papua New Guinea",ADM0_A3:"PNG",GEOU_DIF:0,GEOUNIT:"Papua New Guinea",GU_A3:"PNG",SU_DIF:1,SUBUNIT:"Papua New Guinea",SU_A3:"PN1",BRK_DIFF:0,NAME:"Papua New Guinea",NAME_LONG:"Papua New Guinea",BRK_A3:"PN1",BRK_NAME:"Papua New Guinea",BRK_GROUP:null,ABBREV:"P.N.G.",POSTAL:"PG",FORMAL_EN:"Independent State of Papua New Guinea",FORMAL_FR:null,NAME_CIAWF:"Papua New Guinea",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Papua New Guinea",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:2,MAPCOLOR9:3,MAPCOLOR13:1,POP_EST:6909701,POP_RANK:13,GDP_MD_EST:28020,POP_YEAR:2017,LASTCENSUS:2e3,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"PP",ISO_A2:"PG",ISO_A3:"PNG",ISO_A3_EH:"PNG",ISO_N3:"598",UN_A3:"598",WB_A2:"PG",WB_A3:"PNG",WOE_ID:23424926,WOE_ID_EH:23424926,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"PNG",ADM0_A3_US:"PNG",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Oceania",REGION_UN:"Oceania",SUBREGION:"Melanesia",REGION_WB:"East Asia & Pacific",NAME_LEN:16,LONG_LEN:16,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2.5,MAX_LABEL:7.5},geometry:{type:"MultiPolygon",coordinates:[[[[141.0338517600139,-9.11789275476049],[141.01705691951904,-5.859021905138007],[141.00021040259188,-2.60015105551561],[142.73524661679144,-3.289152927263203],[144.5839709820332,-3.861417738463388],[145.27317955951,-4.373737888205014],[145.82978641172573,-4.876497897972669],[145.98192182839298,-5.4656092261],[147.6480733583476,-6.08365935631079],[147.8911076194162,-6.614014580922301],[146.9709053895949,-6.721656589386328],[147.19187381407497,-7.388024183789966],[148.0846358583494,-8.044108168167583],[148.7341052593936,-9.104663588093743],[149.30683515848446,-9.07143564213004],[149.2666308941613,-9.514406019736015],[150.03872846903428,-9.684318129111688],[149.7387984560123,-9.872937106977076],[150.80162763895916,-10.293686618697492],[150.69057498596388,-10.58271290450594],[150.0283931825758,-10.652476088099917],[149.782310012002,-10.393267103723929],[148.9231376487173,-10.280922539921349],[147.91301842670802,-10.130440769087443],[147.1354431500122,-9.492443536012004],[146.5678808941506,-8.94255461999414],[146.04848107318494,-8.067414239131296],[144.74416792213808,-7.63012826907746],[143.8970878440097,-7.915330498896253],[143.28637576718435,-8.245491224809044],[143.41391320208064,-8.983068942911018],[142.62843143124425,-9.326820570516489],[142.06825890520028,-9.159595635620008],[141.0338517600139,-9.11789275476049]]],[[[155.88002566957843,-6.819996840037732],[155.59999108298874,-6.919990736522479],[155.16699425681517,-6.535931491729286],[154.72919152243836,-5.900828138862195],[154.51411421123973,-5.139117526879986],[154.6525036969173,-5.042430922061911],[154.75999067608447,-5.339983819198466],[155.06291792217937,-5.566791680527473],[155.54774620994178,-6.200654799019631],[156.01996544822484,-6.540013929880374],[155.88002566957843,-6.819996840037732]]],[[[151.98279585185455,-5.478063246282332],[151.45910688700863,-5.560280450058727],[151.30139041565386,-5.840728448106773],[150.75444705627663,-6.08376270917546],[150.2411967307539,-6.317753594593057],[149.7099630067933,-6.316513360218039],[148.89006473205043,-6.026040134305418],[148.3189368023607,-5.747142429226116],[148.4018257997569,-5.437755629094696],[149.29841190002085,-5.583741550319289],[149.8455619651273,-5.505503431829325],[149.99625044169025,-5.026101169457661],[150.1397558941649,-5.00134815838986],[150.23690758687357,-5.532220147324267],[150.80746707580815,-5.455842380396874],[151.089672072554,-5.113692722192354],[151.64788089417092,-4.757073662946155],[151.5378617698215,-4.167807305521961],[152.13679162008432,-4.148790378438491],[152.33874311748096,-4.312966403829833],[152.31869266175173,-4.867661228050736],[151.98279585185455,-5.478063246282332]]],[[[153.14003787659877,-4.4999834122941],[152.8272921083683,-4.76642709719097],[152.638673130503,-4.176127211120914],[152.4060258323249,-3.789742526874548],[151.95323693258362,-3.462062269711794],[151.38427941305,-3.035421644710098],[150.6620495953388,-2.741486097833942],[150.93996544820456,-2.500002129734],[151.4799841656546,-2.779985039891372],[151.82001509013512,-2.999971612157879],[152.2399894553711,-3.240008640153633],[152.6400167177425,-3.659983005389719],[153.01999352438472,-3.980015150573266],[153.14003787659877,-4.4999834122941]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Poland",SOV_A3:"POL",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Poland",ADM0_A3:"POL",GEOU_DIF:0,GEOUNIT:"Poland",GU_A3:"POL",SU_DIF:0,SUBUNIT:"Poland",SU_A3:"POL",BRK_DIFF:0,NAME:"Poland",NAME_LONG:"Poland",BRK_A3:"POL",BRK_NAME:"Poland",BRK_GROUP:null,ABBREV:"Pol.",POSTAL:"PL",FORMAL_EN:"Republic of Poland",FORMAL_FR:null,NAME_CIAWF:"Poland",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Poland",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:7,MAPCOLOR9:1,MAPCOLOR13:2,POP_EST:38476269,POP_RANK:15,GDP_MD_EST:1052e3,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"PL",ISO_A2:"PL",ISO_A3:"POL",ISO_A3_EH:"POL",ISO_N3:"616",UN_A3:"616",WB_A2:"PL",WB_A3:"POL",WOE_ID:23424923,WOE_ID_EH:23424923,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"POL",ADM0_A3_US:"POL",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Eastern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[23.48412763844985,53.91249766704114],[23.527535841575002,53.470121568406555],[23.80493493011778,53.089731350306074],[23.79919884613338,52.69109935160657],[23.199493849386187,52.48697744405367],[23.508002150168693,52.02364655212473],[23.52707075368437,51.57845408793031],[24.029985792748903,50.70540660257518],[23.92275719574326,50.42488108987874],[23.426508416444392,50.30850576435745],[22.518450148211603,49.47677358661974],[22.776418898212626,49.02739533140962],[22.558137648211755,49.085738023467144],[21.607808058364213,49.47010732685409],[20.887955356538413,49.32877228453583],[20.415839471119853,49.43145335549977],[19.825022820726872,49.21712535256923],[19.320712517990472,49.571574001659194],[18.90957482267632,49.435845852244576],[18.853144158613617,49.49622976337764],[18.392913852622172,49.98862864847075],[17.64944502123899,50.049038397819956],[17.55456709155112,50.36214590107642],[16.86876915860566,50.47397370055603],[16.719475945714436,50.21574656839354],[16.176253289462267,50.42260732685791],[16.23862674323857,50.69773265237984],[15.490972120839729,50.78472992614321],[15.01699588385867,51.10667409932158],[14.607098422919535,51.74518809671997],[14.685026482815687,52.0899474147552],[14.437599725002201,52.624850165408304],[14.074521111719434,52.98126251892535],[14.353315463934138,53.24817129171297],[14.119686313542559,53.75702912049104],[14.802900424873458,54.05070628520575],[16.36347700365573,54.513158677785725],[17.622831658608675,54.85153595643291],[18.62085859546164,54.68260569927078],[18.696254510175464,54.43871877706929],[19.660640089606403,54.42608388937393],[20.892244500418627,54.312524929412604],[22.731098667092652,54.327536932993326],[23.24398725758951,54.22056671814914],[23.48412763844985,53.91249766704114]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"United States of America",SOV_A3:"US1",ADM0_DIF:1,LEVEL:2,TYPE:"Dependency",ADMIN:"Puerto Rico",ADM0_A3:"PRI",GEOU_DIF:0,GEOUNIT:"Puerto Rico",GU_A3:"PRI",SU_DIF:0,SUBUNIT:"Puerto Rico",SU_A3:"PRI",BRK_DIFF:0,NAME:"Puerto Rico",NAME_LONG:"Puerto Rico",BRK_A3:"PRI",BRK_NAME:"Puerto Rico",BRK_GROUP:null,ABBREV:"P.R.",POSTAL:"PR",FORMAL_EN:"Commonwealth of Puerto Rico",FORMAL_FR:null,NAME_CIAWF:"Puerto Rico",NOTE_ADM0:"Commonwealth of U.S.A.",NOTE_BRK:null,NAME_SORT:"Puerto Rico",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:5,MAPCOLOR9:1,MAPCOLOR13:1,POP_EST:3351827,POP_RANK:12,GDP_MD_EST:131e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"RQ",ISO_A2:"PR",ISO_A3:"PRI",ISO_A3_EH:"PRI",ISO_N3:"630",UN_A3:"630",WB_A2:"PR",WB_A3:"PRI",WOE_ID:23424935,WOE_ID_EH:23424935,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"PRI",ADM0_A3_US:"PRI",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Caribbean",REGION_WB:"Latin America & Caribbean",NAME_LEN:11,LONG_LEN:11,ABBREV_LEN:4,TINY:-99,HOMEPART:-99,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-66.28243445500821,18.514761664295364],[-65.7713028632093,18.426679185453878],[-65.59100379094295,18.228034979723915],[-65.84716386581377,17.97590566657186],[-66.59993445500949,17.981822618069273],[-67.18416236028527,17.946553453030077],[
2-67.24242753769435,18.374460150622937],[-67.10067908391774,18.52060110114435],[-66.28243445500821,18.514761664295364]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"North Korea",SOV_A3:"PRK",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"North Korea",ADM0_A3:"PRK",GEOU_DIF:0,GEOUNIT:"North Korea",GU_A3:"PRK",SU_DIF:0,SUBUNIT:"North Korea",SU_A3:"PRK",BRK_DIFF:0,NAME:"North Korea",NAME_LONG:"Dem. Rep. Korea",BRK_A3:"PRK",BRK_NAME:"Dem. Rep. Korea",BRK_GROUP:null,ABBREV:"N.K.",POSTAL:"KP",FORMAL_EN:"Democratic People's Republic of Korea",FORMAL_FR:null,NAME_CIAWF:"Korea, North",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Korea, Dem. Rep.",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:5,MAPCOLOR9:3,MAPCOLOR13:9,POP_EST:25248140,POP_RANK:15,GDP_MD_EST:4e4,POP_YEAR:2013,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"KN",ISO_A2:"KP",ISO_A3:"PRK",ISO_A3_EH:"PRK",ISO_N3:"408",UN_A3:"408",WB_A2:"KP",WB_A3:"PRK",WOE_ID:23424865,WOE_ID_EH:23424865,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"PRK",ADM0_A3_US:"PRK",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:11,LONG_LEN:15,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"MultiPolygon",coordinates:[[[[124.26562462778531,39.928493353834156],[125.07994184784062,40.569823716792484],[126.18204511932943,41.10733612727637],[126.86908328664984,41.81656932226619],[127.34378299368302,41.50315176041597],[128.20843305879066,41.46677155208249],[128.0522152039723,41.99428457291795],[129.59666873587952,42.42498179785456],[129.9942672059332,42.98538686784383],[130.63999970690958,42.39502427522177],[130.64000000000013,42.395],[130.77999231657836,42.22000960427718],[130.40003055228902,42.28000356705971],[129.96594852103726,41.94136790625106],[129.66736209525482,41.60110443782523],[129.70518924369247,40.88282786718433],[129.18811486218,40.66180776627199],[129.01039961152821,40.485436102859815],[128.63336836152672,40.18984691015031],[127.96741417858135,40.02541250259756],[127.53343550019417,39.7568500839767],[127.5021195822253,39.32393077245153],[127.38543419811027,39.213472398427655],[127.78334272675772,39.05089834243742],[128.34971642467661,38.61224294692785],[128.20574588431145,38.37039724380189],[127.78003543509101,38.30453563084589],[127.07330854706737,38.2561148137884],[126.68371992401893,37.80477285415118],[126.23733890188176,37.84037791600028],[126.17475874237624,37.74968577732804],[125.68910363169721,37.94001007745902],[125.5684391622957,37.75208873142962],[125.2753304383362,37.669070542952724],[125.24008711151316,37.85722443292744],[124.98103315643397,37.94882090916478],[124.71216067921938,38.10834605564979],[124.98599409393398,38.54847422947968],[125.2219486837787,38.66585724543067],[125.13285851450752,38.84855927179859],[125.3865897970606,39.387957872061165],[125.32111575734682,39.55138458918421],[124.7374821310424,39.66034434667162],[124.26562462778531,39.928493353834156]]],[[[130.78000485358513,42.22001036108256],[130.78000735893113,42.22000722916885],[130.7800036600468,42.220007813203225],[130.78000485358513,42.22001036108256]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Portugal",SOV_A3:"PRT",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Portugal",ADM0_A3:"PRT",GEOU_DIF:0,GEOUNIT:"Portugal",GU_A3:"PRT",SU_DIF:1,SUBUNIT:"Portugal",SU_A3:"PR1",BRK_DIFF:0,NAME:"Portugal",NAME_LONG:"Portugal",BRK_A3:"PR1",BRK_NAME:"Portugal",BRK_GROUP:null,ABBREV:"Port.",POSTAL:"P",FORMAL_EN:"Portuguese Republic",FORMAL_FR:null,NAME_CIAWF:"Portugal",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Portugal",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:7,MAPCOLOR9:1,MAPCOLOR13:4,POP_EST:10839514,POP_RANK:14,GDP_MD_EST:297100,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"PO",ISO_A2:"PT",ISO_A3:"PRT",ISO_A3_EH:"PRT",ISO_N3:"620",UN_A3:"620",WB_A2:"PT",WB_A3:"PRT",WOE_ID:23424925,WOE_ID_EH:23424925,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"PRT",ADM0_A3_US:"PRT",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-9.034817674180246,41.880570583659676],[-8.67194576662672,42.13468943945496],[-8.263856980817792,42.28046865495034],[-8.013174607769912,41.790886135417125],[-7.422512986673795,41.79207469335984],[-7.251308966490824,41.91834605566505],[-6.668605515967656,41.883386949219584],[-6.389087693700915,41.381815497394655],[-6.851126674822552,41.11108266861753],[-6.864019944679385,40.33087189387483],[-7.026413133156595,40.184524237624245],[-7.066591559263529,39.711891587882775],[-7.498632371439726,39.62957103124181],[-7.098036668313128,39.03007274022379],[-7.374092169616318,38.37305858006492],[-7.029281175148796,38.07576406508977],[-7.166
2507941099865,37.803894354802225],[-7.537105475281024,37.42890432387624],[-7.453725551778092,37.09778758396607],[-7.855613165711986,36.83826854099627],[-8.382816127953689,36.97888011326246],[-8.898856980820327,36.86880931248078],[-8.746101446965554,37.65134552667661],[-8.83999752443988,38.266243394517616],[-9.287463751655224,38.3584858261586],[-9.526570603869715,38.73742910415491],[-9.446988898140233,39.39206614842837],[-9.048305223008427,39.75509308527877],[-8.977353481471681,40.15930613866581],[-8.768684047877102,40.76063894303019],[-8.79085323733031,41.18433401139126],[-8.99078935386757,41.54345937760364],[-9.034817674180246,41.880570583659676]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Paraguay",SOV_A3:"PRY",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Paraguay",ADM0_A3:"PRY",GEOU_DIF:0,GEOUNIT:"Paraguay",GU_A3:"PRY",SU_DIF:0,SUBUNIT:"Paraguay",SU_A3:"PRY",BRK_DIFF:0,NAME:"Paraguay",NAME_LONG:"Paraguay",BRK_A3:"PRY",BRK_NAME:"Paraguay",BRK_GROUP:null,ABBREV:"Para.",POSTAL:"PY",FORMAL_EN:"Republic of Paraguay",FORMAL_FR:null,NAME_CIAWF:"Paraguay",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Paraguay",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:3,MAPCOLOR9:6,MAPCOLOR13:2,POP_EST:6943739,POP_RANK:13,GDP_MD_EST:64670,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"PA",ISO_A2:"PY",ISO_A3:"PRY",ISO_A3_EH:"PRY",ISO_N3:"600",UN_A3:"600",WB_A2:"PY",WB_A3:"PRY",WOE_ID:23424917,WOE_ID_EH:23424917,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"PRY",ADM0_A3_US:"PRY",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-54.625290696823576,-25.739255466415514],[-54.78879492859505,-26.621785577096134],[-55.69584550639817,-27.387837009390893],[-56.486701626192996,-27.548499037386293],[-57.60975969097614,-27.395898532828387],[-58.61817359071975,-27.123718763947096],[-57.63366004091113,-25.60365650808164],[-57.77721716981794,-25.16233977630904],[-58.80712846539501,-24.771459242453346],[-60.02896603050403,-24.032796319273274],[-60.84656470400992,-23.88071257903829],[-62.685057135657885,-22.249029229422387],[-62.291179368729225,-21.051634616787393],[-62.2659612697708,-20.513734633061276],[-61.78632646345377,-19.633736667562964],[-60.04356462262649,-19.342746677327426],[-59.11504248720611,-19.3569060197754],[-58.183471442280506,-19.868399346600363],[-58.166392381408045,-20.176700941653678],[-57.8706739976178,-20.73268767668195],[-57.937155727761294,-22.090175876557172],[-56.8815095689029,-22.28215382252148],[-56.47331743022939,-22.086300144135283],[-55.79795813660691,-22.356929620047822],[-55.610682745981144,-22.655619398694846],[-55.517639329639636,-23.571997572526637],[-55.40074723979542,-23.956935316668805],[-55.02790178080955,-24.00127369557523],[-54.65283423523513,-23.83957813893396],[-54.29295956075452,-24.02101409271073],[-54.29347632507745,-24.570799655863965],[-54.42894609233059,-25.162184747012166],[-54.625290696823576,-25.739255466415514]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Israel",SOV_A3:"IS1",ADM0_DIF:1,LEVEL:2,TYPE:"Disputed",ADMIN:"Palestine",ADM0_A3:"PSX",GEOU_DIF:0,GEOUNIT:"Palestine",GU_A3:"PSX",SU_DIF:0,SUBUNIT:"Palestine",SU_A3:"PSX",BRK_DIFF:0,NAME:"Palestine",NAME_LONG:"Palestine",BRK_A3:"PSX",BRK_NAME:"Palestine",BRK_GROUP:null,ABBREV:"Pal.",POSTAL:"PAL",FORMAL_EN:"West Bank and Gaza",FORMAL_FR:null,NAME_CIAWF:null,NOTE_ADM0:"Partial self-admin.",NOTE_BRK:"Partial self-admin.",NAME_SORT:"Palestine (West Bank and Gaza)",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:2,MAPCOLOR9:5,MAPCOLOR13:8,POP_EST:4543126,POP_RANK:12,GDP_MD_EST:21220.77,POP_YEAR:2017,LASTCENSUS:2007,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"-99",ISO_A2:"PS",ISO_A3:"PSE",ISO_A3_EH:"PSE",ISO_N3:"275",UN_A3:"275",WB_A2:"GZ",WB_A3:"WBG",WOE_ID:28289408,WOE_ID_EH:28289408,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"PSE",ADM0_A3_US:"PSX",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:4,TINY:-99,HOMEPART:-99,MIN_ZOOM:7,MIN_LABEL:4.5,MAX_LABEL:9.5},geometry:{type:"Polygon",coordinates:[[[35.397560662586045,31.489086005167582],[34.92740848159457,31.353435370401414],[34.970506626125996,31.61677846936081],[35.22589155451243,31.754341132121766],[34.97464074070933,31.866582343059722],[35.183930291491436,32.53251068778894],[35.54566531753454,32.393992011030576],[35.5452519060762,31.78250478772084],[35.397560662586045,31.489086005167582]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Qatar",SOV_A3:"QAT",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Qatar",ADM0_A3:"QAT",GEOU_DIF:0,GEOUNIT:"Qatar",GU_A3:"QAT",SU_DIF:0,SUBUNIT:"Qatar",SU_A3:"QAT",BRK_DIFF:0,NAME:"Qatar",NAME_LONG:"Qatar",BRK_A3:"QAT",BRK_NAME:"Qatar",BRK_GROUP:null,ABBREV:"Qatar",POSTAL:"QA",FORMAL_EN:"State of Qatar",FORMAL_FR:null,NAME_CIAWF:"Qatar",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Qatar",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:6,MAPCOLOR9:2,MAPCOLOR13:4,POP_EST:2314307,POP_RANK:12,GDP_MD_EST:334500,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"QA",ISO_A2:"QA",ISO_A3:"QAT",ISO_A3_EH:"QAT",ISO_N3:"634",UN_A3:"634",WB_A2:"QA",WB_A3:"QAT",WOE_ID:23424930,WOE_ID_EH:23424930,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"QAT",ADM0_A3_US:"QAT",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[50.81010827006958,24.754742539971378],[50.74391076030369,25.482424221289396],[51.013351678273494,26.006991685484195],[51.28646162293606,26.11458201751587],[51.58907881043726,25.80111277923338],[51.60670047384881,25.21567047779874],[51.38960778179063,24.62738597258806],[51.11241539897702,24.556330878186724],[50.81010827006958,24.754742539971378]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Romania",SOV_A3:"ROU",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Romania",ADM0_A3:"ROU",GEOU_DIF:0,GEOUNIT:"Romania",GU_A3:"ROU",SU_DIF:0,SUBUNIT:"Romania",SU_A3:"ROU",BRK_DIFF:0,NAME:"Romania",NAME_LONG:"Romania",BRK_A3:"ROU",BRK_NAME:"Romania",BRK_GROUP:null,ABBREV:"Rom.",POSTAL:"RO",FORMAL_EN:"Romania",FORMAL_FR:null,NAME_CIAWF:"Romania",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Romania",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:3,MAPCOLOR13:13,POP_EST:21529967,POP_RANK:15,GDP_MD_EST:441e3,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"RO",ISO_A2:"RO",ISO_A3:"ROU",ISO_A3_EH:"ROU",ISO_N3:"642",UN_A3:"642",WB_A2:"RO",WB_A3:"ROM",WOE_ID:23424933,WOE_ID_EH:23424933,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ROU",ADM0_A3_US:"ROU",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Eastern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[28.558081495891997,43.70746165625813],[27.970107049275075,43.81246816667522],[27.242399529740908,44.175986029632405],[26.065158725699746,43.94349376075127],[25.569271681426926,43.68844472917472],[24.100679152124172,43.74105133724785],[23.332302280376325,43.897010809904714],[22.944832391051847,43.82378530534713],[22.65714969248299,44.23492300066128],[22.4740084164406,44.40922760678177],[22.705725538837356,44.57800283464702],[22.459022251075936,44.7025171982543],[22.14508792490281,44.47842234962059],[21.56202273935361,44.7689472519655],[21.48352623870221,45.18117015235788],[20.874312778413355,45.416375433934235],[20.762174920339987,45.734573065771485],[20.220192498462836,46.127468980486555],[21.02195234547125,46.3160879583519],[21.626514926853872,46.99423777931816],[22.099767693782837,47.6724392767167],[22.710531447040495,47.88219391538941],[23.142236362406805,48.09634105080695],[23.7609582862374
21,47.985598456405455],[24.40205610525038,47.981877753280514],[24.866317172960578,47.737525743188314],[25.20774336111299,47.89105642352747],[25.9459411964024,47.987148749374214],[26.19745039236693,48.22088125263035],[26.619336785597795,48.22072622333347],[26.924176059687568,48.123264472030996],[27.233872918412743,47.82677094175638],[27.551166212684848,47.40511709247083],[28.128030226359044,46.810476386088254],[28.160017937947714,46.37156260841722],[28.0544429867754,45.944586086605625],[28.23355350109904,45.48828318946829],[28.67977949393938,45.304030870131704],[29.149724969201653,45.464925442072456],[29.603289015427436,45.293308010431126],[29.62654340995877,45.0353909368624],[29.141611769331835,44.820210272799045],[28.8378577003202,44.913873806328056],[28.558081495891997,43.70746165625813]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Russia",SOV_A3:"RUS",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Russia",ADM0_A3:"RUS",GEOU_DIF:0,GEOUNIT:"Russia",GU_A3:"RUS",SU_DIF:0,SUBUNIT:"Russia",SU_A3:"RUS",BRK_DIFF:0,NAME:"Russia",NAME_LONG:"Russian Federation",BRK_A3:"RUS",BRK_NAME:"Russia",BRK_GROUP:null,ABBREV:"Rus.",POSTAL:"RUS",FORMAL_EN:"Russian Federation",FORMAL_FR:null,NAME_CIAWF:"Russia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Russian Federation",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:5,MAPCOLOR9:7,MAPCOLOR13:7,POP_EST:142257519,POP_RANK:17,GDP_MD_EST:3745e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"3. Emerging region: BRIC",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"RS",ISO_A2:"RU",ISO_A3:"RUS",ISO_A3_EH:"RUS",ISO_N3:"643",UN_A3:"643",WB_A2:"RU",WB_A3:"RUS",WOE_ID:23424936,WOE_ID_EH:23424936,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"RUS",ADM0_A3_US:"RUS",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Eastern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:18,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:5.2},geometry:{type:"MultiPolygon",coordinates:[[[[48.58435339611344,41.8088687916207],[47.98728315612598,41.40581920019423],[47.8156657244846,41.15141612402138],[47.37331546406628,41.21973236751117],[46.6860705910166,41.827137152669934],[46.404950799348825,41.860675157227305],[45.7764,42.09244000000018],[45.47027916848572,42.50278066666998],[44.537622918481986,42.71199270280363],[43.93121000000011,42.554960000000136],[43.75599000000014,42.7408300000001],[42.39440000000016,43.2203],[40.92219000000014,43.382150000000166],[40.07696495947977,43.553104153002316],[39.955008579270924,43.43499766699922],[38.68,44.280000000000115],[37.53912,44.65721],[36.67546,45.244690000000105],[37.40317000000013,45.40451000000013],[38.23295,46.24087],[37.67372,46.63657],[39.14767000000015,47.044750000000164],[39.1212,47.26336000000012],[38.223538038899335,47.10218984637595],[38.255112339029864,47.54640045835691],[38.770570000000106,47.825620000000185],[39.738277622238854,47.89893707945197],[39.89562000000021,48.23241],[39.67465,48.78382000000016],[40.080789015469406,49.30742991799934],[40.06904000000017,49.60105],[38.59498823421342,49.9264619004237],[38.01063113785693,49.9156615260747],[37.39345950699516,50.38395335550365],[36.626167840325394,50.22559092874516],[35.356116163887975,50.57719737405904],[35.37791,50.773940000000124],[35.02218305841791,51.2075723333715],[34.22481570815427,51.25599315042888],[34.141978387190534,51.566413479206346],[34.39173058445709,51.768881740925906],[33.75269982273579,52.3350745713318],[32.715760532367085,52.23846548116211],[32.41205813978769,52.28869497334978],[32.15944000000016,52.06125000000014],[31.785992447555266,52.10167756993971],[31.785970000000106,52.1016800000001],[31.54001834486226,52.74205231384647],[31.305200636528014,53.07399587667321],[31.49764,53.16743000000017],[32.30451948418823,53.13272614197291],[32.69364301934604,53.35142080343212],[32.405598585751164,53.61804535584204],[31.731272820774507,53.79402944601202],[31.79142418796224,53.974638576872124],[31.38447228366374,54.157056382862436],[30.75753380709872,54.81177094178432],[30.971835971813135,55.08154775656404],[30.87390913262001,55.55097646750341],[29.896294386522356,55.78946320253041],[29.371571893030673,55.670090643936184],[29.229513380660308,55.91834422466636],[28.176709425577997,56.169129950578814],[27.855282016722526,56.75932648378429],[27.77001590344093,57.24425812441123],[27.288184848751513,57.47452830670383],[27.71668582531572,57.79189911562436],[27.42015000000015,58.72457000000017],[28.13169925305175,59.300825100330925],[27.98112,59.47537000000011],[27.981126857000998,59.47537333432526],[29.1177,60.02805000000015],[28.07000192152568,60.50351912796824],[28.07,60.50352],[30.21110721204445,61.780027777749694],[31.13999
21082490894,62.35769277612441],[31.516092156711125,62.86768748641289],[30.035872430142717,63.55281362573855],[30.44468468600371,64.20445343693909],[29.54442955904699,64.94867157659048],[30.21765,65.80598],[29.054588657352326,66.94428620062193],[29.97742638522061,67.69829702419266],[28.445943637818658,68.36461294216404],[28.591929559043194,69.06477692328666],[29.39955,69.15692000000013],[31.101042202597615,69.55810108805622],[31.10108,69.55811000000011],[32.132720000000205,69.90595000000019],[33.77547,69.30142000000015],[36.51396,69.06342],[40.29234000000011,67.9324],[41.05987,67.45713000000015],[41.12595000000013,66.79158],[40.01583,66.26618000000016],[38.38295,65.99953000000014],[33.91871000000023,66.75961],[33.18444,66.63253],[34.81477000000015,65.90015000000017],[34.87857425307871,65.43621287704823],[34.9439100000001,64.41437000000019],[36.23129,64.10945],[37.01273,63.84983000000014],[37.141970000000214,64.33471],[36.539579035089815,64.76446],[37.17604,65.14322000000016],[39.59345,64.5207900000002],[40.4356,64.76446],[39.76260000000022,65.49682],[42.09309000000016,66.47623],[43.01604000000012,66.41858000000013],[43.94975000000014,66.06908],[44.53226,66.75634000000016],[43.6983900000001,67.35245],[44.1879500000002,67.95051000000012],[43.45282,68.57079],[46.25000000000014,68.25],[46.821340000000106,67.6899700000001],[45.55517,67.56652],[45.56202000000016,67.01005000000015],[46.34915000000021,66.66767000000013],[47.8941600000002,66.8845500000001],[48.13876,67.52238],[50.22766000000016,67.99867000000017],[53.71743000000018,68.85738000000015],[54.471710000000115,68.80815],[53.48582000000019,68.20131],[54.72628,68.09702],[55.44268000000014,68.43866000000011],[57.31702,68.46628],[58.80200000000016,68.88082],[59.941420000000136,68.27844],[61.077840000000236,68.9406900000001],[60.03,69.52],[60.55,69.85],[63.50400000000016,69.54739],[64.888115,69.234835],[68.5121600000002,68.09233000000012],[69.18068,68.61563000000015],[68.16444,69.14436],[68.13522,69.35649000000012],[66.93008000000017,69.45461000000014],[67.25976000000011,69.92873000000012],[66.7249200000002,70.70889000000017],[66.69466,71.02897000000019],[68.54006,71.93450000000018],[69.19636,72.84336000000019],[69.94,73.04],[72.58754,72.77629000000013],[72.79603,72.22006],[71.84811,71.40898000000013],[72.47011,71.09019],[72.79188,70.39114],[72.56470000000016,69.02085],[73.66787,68.4079],[73.2387,67.7404],[71.28000000000011,66.3200000000001],[72.42301000000012,66.17267000000021],[72.82077,66.53267],[73.9209900000001,66.78946000000016],[74.18651000000014,67.28429],[75.052,67.76047000000011],[74.4692600000001,68.32899000000012],[74.93584000000018,68.98918],[73.84236,69.07146],[73.60187000000022,69.62763],[74.39980000000011,70.63175],[73.1011,71.4471700000002],[74.89082000000022,72.12119000000013],[74.6592600000001,72.83227],[75.15801000000013,72.85497000000015],[75.68351000000015,72.30056000000016],[75.28898,71.3355600000001],[76.35911,71.15287000000018],[75.90313000000017,71.87401],[77.57665000000011,72.26717],[79.65202000000014,72.32011],[81.5,71.75],[80.61071,72.58285000000015],[80.51109,73.6482],[82.25,73.85000000000014],[84.65526,73.80591000000021],[86.82230000000018,73.93688],[86.00956,74.45967000000019],[87.16682000000017,75.11643],[88.31571000000017,75.14393],[90.26,75.64],[92.90058,75.77333000000013],[93.2342100000001,76.04720000000012],[95.86000000000021,76.14000000000013],[96.67821000000012,75.91548],[98.92254000000017,76.44689],[100.75967000000023,76.43028],[101.03532,76.8618900000001],[101.99084,77.28754000000015],[104.3516000000001,77.69792],[106.0666400000002,77.3738900000001],[104.70500000000018,77.12740000000014],[106.97013,76.97419],[107.24000000000015,76.48],[108.1538,76.72335],[111.07726000000022,76.71],[113.33151,76.22224],[114.13417000000013,75.84764],[113.88539,75.32779000000016],[112.77918,75.03186000000011],[110.15125000000015,74.47673],[109.4,74.18],[110.64,74.04],[112.11919,73.78774000000016],[113.01954000000032,73.97693000000021],[113.52958000000032,73.33505000000014],[113.96881,73.59488],[115.56782,73.75285000000011],[118.77633000000017,73.58772],[119.02,73.12],[123.20066000000017,72.9712200000001],[123.25777000000025,73.73503],[125.38000000000014,73.56],[126.97644000000011,73.56549000000012],[128.59126000000012,73.03871],[129.05157,72.39872000000011],[128.46,71.98],[129.71599000000018,71.19304000000011],[131.28858000000034,70.78699000000015],[132.25350000000017,71.83630000000014],[133.85766000000027,71.3864200000001],[135.56193,71.65525000000017],[137.49755000000013,71.34763000000012],[138.23409000000024,71.62803],[139.86983000000012,71.48783000000017],[139.14791,72.41619000000014],[140.46817,72.84941000000018],[149.5,72.2],[150.35118000000014,71.60643],[152.96890000000027,70.84222],[157.0068800000001,71.03141],[158.99779,70.86672],[159.83031000000025,70.45324],[159.70866,69.72198],[160.9405300000004,69.43728000000013],[162.27907,69.64204],[164.05248
2000000014,69.66823],[165.94037000000017,69.47199],[167.83567,69.58269000000013],[169.5776300000002,68.6938],[170.81688000000028,69.01363],[170.0082000000002,69.65276],[170.4534500000003,70.0970300000001],[173.64391000000015,69.81743],[175.72403000000028,69.87725000000017],[178.6000000000001,69.4],[180,68.96363636363651],[180,64.97970870219851],[179.99281,64.97433],[178.70720000000037,64.53493],[177.41128,64.60821],[178.31300000000013,64.07593],[178.90825000000027,63.25197],[179.37034,62.98262000000014],[179.48636,62.56894],[179.22825,62.304100000000176],[177.36430000000016,62.5219],[174.56929000000034,61.76915],[173.6801300000001,61.65261],[172.15,60.95],[170.6985000000001,60.33618000000013],[170.33085000000037,59.88177],[168.90046,60.57355],[166.29498000000032,59.78855000000016],[165.84000000000017,60.16],[164.87674,59.7316],[163.53929,59.86871],[163.21711000000025,59.21101],[162.0173300000001,58.24328],[162.05297,57.83912],[163.19191,57.61503000000013],[163.05794000000017,56.15924000000015],[162.12958000000017,56.12219],[161.70146,55.285680000000184],[162.11749000000012,54.85514],[160.36877000000035,54.34433],[160.0217300000002,53.20257000000012],[158.53094000000013,52.958680000000186],[158.23118,51.94269],[156.78979000000035,51.01105],[156.4200000000001,51.7],[155.99182,53.15895],[155.43366,55.38103000000015],[155.91442000000038,56.767920000000174],[156.75815,57.3647],[156.8103500000001,57.83204],[158.3643300000002,58.05575],[160.15064000000015,59.31477],[161.87204,60.343],[163.66969,61.14090000000013],[164.47355,62.55061],[163.25842000000014,62.46627000000012],[162.65791,61.6425],[160.1214800000001,60.54423000000011],[159.30232,61.77396000000013],[156.7206800000001,61.43442],[154.21806000000035,59.75818000000015],[155.04375,59.14495],[152.81185000000013,58.88385],[151.26573000000022,58.78089],[151.33815000000013,59.50396],[149.78371,59.655730000000176],[148.54481,59.16448],[145.48722,59.33637],[142.19782000000012,59.03998000000013],[138.95848000000032,57.08805],[135.12619,54.729590000000115],[136.70171,54.603550000000155],[137.19342,53.97732],[138.1647,53.7550100000002],[138.80463,54.25455],[139.90151000000012,54.18968000000012],[141.34531,53.08957000000015],[141.37923,52.23877],[140.59742000000026,51.23967000000013],[140.51308,50.045530000000156],[140.06193000000022,48.44671000000011],[138.5547200000003,46.99965],[138.21971,46.30795],[136.86232000000015,45.14350000000013],[135.51535000000015,43.98900000000012],[134.8693900000002,43.39821],[133.53687000000033,42.81147000000013],[132.90627,42.79849000000013],[132.2780700000002,43.28456000000014],[130.93587000000022,42.552740000000114],[130.78000485358513,42.22001036108256],[130.7800036600468,42.220007813203225],[130.78,42.22000000000014],[130.77999231657836,42.22000960427718],[130.64000000000013,42.395],[130.63999970690958,42.39502427522177],[130.63386640840977,42.903014634770585],[131.14468794161488,42.92998973242689],[131.2885551291155,44.111519680348295],[131.0251900000002,44.96796],[131.88345421765953,45.321161607436466],[133.09712000000022,45.14409],[133.7696439963129,46.116926988298985],[134.11235000000013,47.21248],[134.50081,47.57845],[135.02631147678667,48.47822988544394],[133.37359581922797,48.18344167743487],[132.50669,47.78896],[130.9872600000002,47.79013],[130.5822933289824,48.72968740497615],[129.3978178244204,49.44060008401544],[127.65740000000031,49.760270000000105],[127.28745568248488,50.73979726826548],[126.93915652883774,51.35389415140594],[126.564399041857,51.78425547953273],[125.9463489116462,52.79279857035698],[125.0682112977104,53.16104482686896],[123.57147,53.4588],[122.24574791879283,53.431725979213724],[121.0030847514702,53.251401068731184],[120.17708865771684,52.75388621684124],[120.72578901579206,52.51622630473085],[120.7382,51.96411],[120.18208000000024,51.64355000000012],[119.27939,50.58292],[119.2884607280258,50.14288279886199],[117.87924441942639,49.51098338479699],[116.67880089728615,49.88853139912143],[115.48569542853139,49.805177313834776],[114.96210981655018,50.140247300815126],[114.36245649623527,50.24830272073741],[112.89773969935439,49.54356537535699],[111.58123091028662,49.37796824807769],[110.66201053267878,49.13012807880587],[109.40244917199666,49.292960516957635],[108.47516727095129,49.28254771585074],[107.86817589725095,49.793705145865815],[106.88880415245526,50.27429596618032],[105.88659142458675,50.406019192092224],[104.62158,50.27532000000019],[103.67654544476022,50.089966132195116],[102.25589,50.51056000000014],[102.06521,51.25991],[100.88948042196262,51.51685578063832],[99.98173221232354,51.63400625264399],[98.86149051310034,52.04736603454669],[97.82573978067431,51.01099518493318],[98.23176150919156,50.422400621128745],[97.25976000000017,49.72605],[95.81402000000023,49.97746000000015],[94.81594933469873,50.01343333597085],[94.14756635943563,50.48053660745709],[93.10421,50.49529],[92.23471154171968,50.80217072204172],[90.71366743364068,50.33181183532109],[88.80556684769552,49.47052073831242],[87.75126427607671,49.297197984405486],[87.35997033076265,49.21498078062919],[86.8293567239896,49.82667470966817],[85.54126997268247,49.69285858824816],[85.11555952346203,50.11730296487764],[84.41637739455305,50.311399
264456585],[83.93511478061885,50.88924551045358],[83.38300377801238,51.069182847693924],[81.9459855488399,50.81219594990637],[80.56844689323549,51.38833649352847],[80.03555952344166,50.86475088154725],[77.80091556184425,53.404414984747575],[76.52517947785475,54.17700348572714],[76.8911002949134,54.490524400441956],[74.38482000000019,53.54685000000015],[73.42567874542044,53.489810289109755],[73.5085160663844,54.0356167669766],[72.22415001820218,54.376655381886735],[71.18013105660941,54.13328522400826],[70.86526655465514,55.169733588270105],[69.06816694527288,55.38525014914353],[68.16910037625883,54.97039175070432],[65.66687,54.60125000000011],[65.17853356309593,54.35422781027211],[61.4366000000002,54.00625],[60.978066440683165,53.66499339457914],[61.699986199800605,52.97999644633427],[60.73999311711458,52.71998647725775],[60.92726850774028,52.44754832621504],[59.967533807215545,51.9604204372157],[61.58800337102417,51.272658799843214],[61.337424350840934,50.79907013610426],[59.93280724471549,50.842194118851864],[59.642282342370606,50.545442206415714],[58.36332,51.06364],[56.777980000000156,51.04355],[55.71694,50.62171000000018],[54.532878452376224,51.02623973245932],[52.32872358583097,51.718652248738124],[50.76664839051216,51.6927623561599],[48.70238162618102,50.60512848571284],[48.57784142435753,49.87475962991567],[47.54948042174931,50.454698391311126],[46.751596307162714,49.35600576435377],[47.04367150247651,49.152038886097614],[46.46644575377627,48.39415233010493],[47.31524000000016,47.7158500000001],[48.05725,47.74377],[48.694733514201744,47.07562816017793],[48.59325000000021,46.56104],[49.10116,46.399330000000134],[48.64541000000011,45.806290000000104],[47.67591,45.64149000000015],[46.68201,44.60920000000013],[47.59094,43.66016],[47.49252,42.98658000000012],[48.58437000000018,41.80888],[48.58435339611344,41.8088687916207]]],[[[21.268448927503442,55.190481675835315],[22.315723504330577,55.015298570365864],[22.75776370615526,54.856574408581366],[22.65105187347254,54.582740993866736],[22.731098667092652,54.327536932993326],[20.892244500418627,54.312524929412604],[19.660640089606403,54.42608388937393],[19.888481479581316,54.866160386771526],[21.268448927503442,55.190481675835315]]],[[[33.435988094713366,45.971917370797485],[33.69946184910907,46.219572831556434],[34.41040172853718,46.005162391728845],[34.73201738827845,45.96566573176062],[34.86179212817402,45.76818243191954],[35.01265897004737,45.73772519982549],[35.0207877947461,45.651218980484686],[35.51000857925308,45.40999339454609],[36.529997999830215,45.46998973243723],[36.33471276219936,45.11321564389405],[35.23999922052823,44.93999624285172],[33.882511020652856,44.36147858334422],[33.32642093276016,44.56487702084496],[33.546924269349375,45.03477081967483],[32.454174432105475,45.327466132176056],[32.63080447767916,45.51918569597896],[33.58816206231839,45.851568508480284],[33.435988094713366,45.971917370797485]]],[[[143.64800744036282,50.74760040954155],[144.6541475770857,48.97639069273751],[143.1739278505173,49.306551418650315],[142.5586682476501,47.861575018904944],[143.5334924664041,46.83672801369252],[143.50527713437262,46.13790761980951],[142.74770063697386,46.740764878926484],[142.09203006405457,45.96675527605882],[141.90692508358498,46.80592886004658],[142.01844282447095,47.78013296161296],[141.90444461483506,48.8591885442996],[142.13580000220574,49.61516307229738],[142.1799833518153,50.952342434281945],[141.59407596249005,51.935434882202486],[141.68254601457366,53.30196645772881],[142.60693403541083,53.762145087287934],[142.20974897681546,54.225475979216895],[142.654786411713,54.36588084575391],[142.91461551327663,53.70457754171477],[143.26084760963212,52.740760403039076],[143.2352677756476,51.756660264688776],[143.64800744036282,50.74760040954155]]],[[[-175.01425,66.58435],[-174.33983,66.33556],[-174.57182,67.06219],[-171.85731,66.91308],[-169.89958,65.97724],[-170.89107,65.54139],[-172.53025,65.43791],[-172.555,64.46079],[-172.95533,64.25269],[-173.89184,64.2826],[-174.65392,64.63125],[-175.98353,64.92288],[-176.20716,65.35667],[-177.22266,65.52024],[-178.35993,65.39052],[-178.90332,65.74044],[-178.68611,66.11211],[-179.88377,65.87456],[-179.43268,65.40411],[-180,64.97970870219842],[-180,68.96363636363643],[-177.55,68.2],[-174.92825,67.20589],[-175.01425,66.58435]]],[[[180,70.83219920854671],[178.903425,70.78114],[178.7253,71.0988],[180,71.51571433642829],[180,70.83219920854671]]],[[[-178.69378,70.89302],[-180,70.83219920854671],[-180,71.51571433642829],[-179.871875,71.55762],[-179.02433,71.55553],[-177.577945,71.26948],[-177.663575,71.13277],[-178.69378,70.89302]]],[[[143.60385,73.21244],[142.08763,73.20544],[140.038155,73.31692],[139.86312,73.36983],[140.81171,73.76506],[142.06207,73.85758],[143.48283,73.47525],[143.60385,73.21244]]],[[[150.73167,75.08406],[149.575925,74.68892],[147.977465,74.778355],[146.11919,75.17298],[146.358485,75.49682],[148.22223,75.345845],[150.73167,75.08406]]],[[[145.086285,75.562625],[144.3,74.82],[140.61381,74.84768],[138.95544,74.61148],[136.97439,75.26167],[137.51176,75.94917],[138.831075,76.13676],[141.471615,76.09289],[145.086285,75.562625]]],[[[57.53569257999234,70.72046397570219],[56.94497928246389,70.6327432318867],[53.677375115784145,70.7626577826685],[53.41201663596544,71.20666168892024],[51.601894565645665,71.47475901965043],[51.45575361512422,72.01488108996517],[52.47827518088363,72.22944163684102],[52.44416873557091,72.7747313503848],[54.42761355979761,73.62754751249761],[53.50828982932521,73.74981395130018],[55.902458937407715,74.62748647734537],[55.63193281435966,75.0814122585972],[57.86864383324885,75.60939036732324],[61.17004438664745,76.2518834500082],[64.49836836127017,76.43905548776922],[66.21097700385516,76.80978221303118],[68.15705976753478,76.93969676381295],[68.85221113472508,76.54481130645456],[68.1805725442276,76.23364166940905],[64.63732628770308,75.73775462513626],[61.583507521414816,75.26088450794686],[58.47708214705338,74.30905630156286],[56.98678551618801,73.33304352486618],[55.4193359719109,72.37126760526604],[55.62283776227636,71.54059479439
2039],[57.53569257999234,70.72046397570219]]],[[[105.07547,78.30689],[99.43814,77.921],[101.2649,79.23399],[102.08635,79.34641],[102.837815,79.28129],[105.37243,78.71334],[105.07547,78.30689]]],[[[51.13618655783134,80.547280178541],[49.79368452332076,80.41542776154824],[48.8944112485776,80.33956675894376],[48.754936557821765,80.1754682482009],[47.58611901224421,80.01018117951537],[46.50282596210971,80.24724681265431],[47.07245527526297,80.5594241401295],[44.84695804218117,80.58980988231713],[46.79913862487123,80.7719176297137],[48.31847741068461,80.78400991486998],[48.52280602396675,80.51456899690018],[49.097189568890855,80.75398590770837],[50.039767693894674,80.91888540315176],[51.52293297710375,80.69972565380195],[51.13618655783134,80.547280178541]]],[[[99.93976,78.88094],[97.75794,78.7562],[94.97259,79.044745],[93.31288,79.4265],[92.5454,80.14379],[91.18107,80.34146],[93.77766,81.0246],[95.940895,81.2504],[97.88385,80.746975],[100.186655,79.780135],[99.93976,78.88094]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Rwanda",SOV_A3:"RWA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Rwanda",ADM0_A3:"RWA",GEOU_DIF:0,GEOUNIT:"Rwanda",GU_A3:"RWA",SU_DIF:0,SUBUNIT:"Rwanda",SU_A3:"RWA",BRK_DIFF:0,NAME:"Rwanda",NAME_LONG:"Rwanda",BRK_A3:"RWA",BRK_NAME:"Rwanda",BRK_GROUP:null,ABBREV:"Rwa.",POSTAL:"RW",FORMAL_EN:"Republic of Rwanda",FORMAL_FR:null,NAME_CIAWF:"Rwanda",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Rwanda",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:2,MAPCOLOR9:3,MAPCOLOR13:10,POP_EST:11901484,POP_RANK:14,GDP_MD_EST:21970,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"RW",ISO_A2:"RW",ISO_A3:"RWA",ISO_A3_EH:"RWA",ISO_N3:"646",UN_A3:"646",WB_A2:"RW",WB_A3:"RWA",WOE_ID:23424937,WOE_ID_EH:23424937,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"RWA",ADM0_A3_US:"RWA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[30.469673645761223,-2.41385475710134],[29.93835900240794,-2.348486830254238],[29.632176141078588,-2.917857761246097],[29.024926385216787,-2.839257907730158],[29.117478875451553,-2.292211195488385],[29.254834832483343,-2.215109958508911],[29.291886834436614,-1.620055840667987],[29.579466180140884,-1.341313164885626],[29.821518588996014,-1.443322442229785],[30.419104852019245,-1.134659112150416],[30.816134881317712,-1.698914076345389],[30.75830895358311,-2.287250257988369],[30.46967,-2.41383],[30.469673645761223,-2.41385475710134]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:7,SOVEREIGNT:"Western Sahara",SOV_A3:"SAH",ADM0_DIF:0,LEVEL:2,TYPE:"Indeterminate",ADMIN:"Western Sahara",ADM0_A3:"SAH",GEOU_DIF:0,GEOUNIT:"Western Sahara",GU_A3:"SAH",SU_DIF:0,SUBUNIT:"Western Sahara",SU_A3:"SAH",BRK_DIFF:1,NAME:"W. Sahara",NAME_LONG:"Western Sahara",BRK_A3:"B28",BRK_NAME:"W. Sahara",BRK_GROUP:null,ABBREV:"W. Sah.",POSTAL:"WS",FORMAL_EN:"Sahrawi Arab Democratic Republic",FORMAL_FR:null,NAME_CIAWF:"Western Sahara",NOTE_ADM0:"Self admin.",NOTE_BRK:"Self admin.; Claimed by Morocco",NAME_SORT:"Western Sahara",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:7,MAPCOLOR9:4,MAPCOLOR13:4,POP_EST:603253,POP_RANK:11,GDP_MD_EST:906.5,POP_YEAR:2017,LASTCENSUS:-99,GDP_YEAR:2007,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"WI",ISO_A2:"EH",ISO_A3:"ESH",ISO_A3_EH:"ESH",ISO_N3:"732",UN_A3:"732",WB_A2:"-99",WB_A3:"-99",WOE_ID:23424990,WOE_ID_EH:23424990,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"MAR",ADM0_A3_US:"SAH",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Northern Africa",REGION_WB:"Middle East & North Africa",NAME_LEN:9,LONG_LEN:14,ABBREV_LEN:7,TINY:-99,HOMEPART:1,MIN_ZOOM:4.7,MIN_LABEL:6,MAX_LABEL:11},geometry:{type:"Polygon",coordinates:[[[-8.665589565454809,27.656425889592356],[-8.665124477564191,27.589479071558227],[-8.684399786809053,27.39574412
26896005],[-8.6872936670174,25.881056219988906],[-11.96941891117116,25.933352769468268],[-11.937224493853321,23.374594224536168],[-12.874221564169575,23.284832261645178],[-13.118754441774712,22.771220201096256],[-12.929101935263532,21.327070624267563],[-16.845193650773993,21.33332347257488],[-17.06342322434257,20.999752102130827],[-17.020428432675743,21.42231028898155],[-17.00296179856109,21.420734157796577],[-14.750954555713534,21.500600083903663],[-14.630832688851072,21.860939846274903],[-14.221167771857253,22.31016307218816],[-13.891110398809047,23.691009019459305],[-12.50096269372537,24.7701162785782],[-12.030758836301615,26.030866197203043],[-11.718219773800357,26.104091701760623],[-11.392554897497007,26.883423977154422],[-10.551262579785273,26.990807603456886],[-10.189424200877582,26.860944729107405],[-9.735343390328879,26.860944729107405],[-9.413037482124466,27.088476060488517],[-8.794883999049077,27.120696316022507],[-8.817828334986672,27.656425889592356],[-8.665589565454809,27.656425889592356]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Saudi Arabia",SOV_A3:"SAU",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Saudi Arabia",ADM0_A3:"SAU",GEOU_DIF:0,GEOUNIT:"Saudi Arabia",GU_A3:"SAU",SU_DIF:0,SUBUNIT:"Saudi Arabia",SU_A3:"SAU",BRK_DIFF:0,NAME:"Saudi Arabia",NAME_LONG:"Saudi Arabia",BRK_A3:"SAU",BRK_NAME:"Saudi Arabia",BRK_GROUP:null,ABBREV:"Saud.",POSTAL:"SA",FORMAL_EN:"Kingdom of Saudi Arabia",FORMAL_FR:null,NAME_CIAWF:"Saudi Arabia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Saudi Arabia",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:1,MAPCOLOR9:6,MAPCOLOR13:7,POP_EST:28571770,POP_RANK:15,GDP_MD_EST:1731e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"SA",ISO_A2:"SA",ISO_A3:"SAU",ISO_A3_EH:"SAU",ISO_N3:"682",UN_A3:"682",WB_A2:"SA",WB_A3:"SAU",WOE_ID:23424938,WOE_ID_EH:23424938,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"SAU",ADM0_A3_US:"SAU",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:12,LONG_LEN:12,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2.7,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[51.57951867046327,24.245497137951105],[51.61770755392698,24.01421926522883],[52.000733270074335,23.00115448657894],[55.006803012924905,22.496947536707136],[55.208341098863194,22.708329982997046],[55.666659376859826,22.00000112557234],[54.99998172386236,19.999994004796065],[52.00000980002224,19.0000033635161],[49.11667158386487,18.616667588774945],[48.18334354024134,18.166669216377315],[47.46669477721763,17.116681626854884],[47.000004917189756,16.949999294497445],[46.74999433776165,17.283338120996177],[46.366658563020536,17.233315334537636],[45.39999922056876,17.333335069238558],[45.21665123879719,17.433328965723334],[44.06261315285508,17.410358791569593],[43.79151858905192,17.31997671149111],[43.380794305196105,17.57998668056767],[43.11579756040336,17.088440456607373],[43.21837527850275,16.66688996018641],[42.77933230975097,16.347891343648683],[42.649572788266084,16.774635321514964],[42.34798912941071,17.075805568912003],[42.270887892431226,17.474721787989125],[41.75438195167396,17.833046169500975],[41.22139122901558,18.67159963630121],[40.93934126156654,19.486485297111756],[40.247652215339826,20.17463450772649],[39.80168460466095,20.338862209550058],[39.139399448408284,21.291904812092934],[39.023695916506796,21.986875311770195],[39.06632897314759,22.57965566659027],[38.49277225114008,23.688451036060854],[38.02386030452362,24.078685614512935],[37.483634881344386,24.285494696545015],[37.154817742671185,24.85848297779731],[37.209491408036,25.084541530858107],[36.93162723160259,25.60295949961018],[36.639603712721225,25.826227525327223],[36.249136590323815,26.57013560638488],[35.64018151219639,27.376520494083422],[35.13018680190788,28.06335195567472],[34.63233605320798,28.058546047471566],[34.787778761541944,28.6074272730597],[34.832220493312946,28.957483425404845],[34.95603722508426,29.356554673778845],[36.06894087092206,29.197494615184453],[36.50121422704359,29.505253607698705],[36.74052778498725,29.86528331147619],[37.503581984209035,30.003776150018407],[37.66811974462638,30.3386652694859],[37.998848911294374,30.508499864213135],[37.00216556168101,31.508412990844747],[39.00488569515255,32.01021698661498],[39.19546837744497,32.16100881604267],[40.399994337736246,31.889991766887935],[41.889980910007836,31.19000865327837],[44.70949873228474,29.178891099559383],[46.568713413281756,29.09902517345229],[47.45982181172283,29.002519436147224],[47.708850538937384,28.526062730416143],[48.416094191283946,28.55200429942667],[48.80759484232718,27.689627997339883],[49.29955447774583,27.46121816660981],[49.47091352722566,27.109999294538085],[50.15242231629088,26.689663194275997],[50.212935418504685,26.277026882425375],[50.11330325704594,25.94397227630425],[50.239858839728754,25.608049628190926],[50.527386509000735,25.327808335872103],[50.66055667501689,24.999895534764022],[50.81010827006958,24.754742539971378],[51.11241539897702,24.556330878186724],[51.38960778179063,24.62738597258806],[51.57951867046327,24.245497137951105]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Sudan",SOV_A3:"SDN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Sudan",ADM0_A3:"SDN",GEOU_DIF:0,GEOUNIT:"Sudan",GU_A3:"SDN",SU_DIF:0,SUBUNIT:"Sudan",SU_A3:"SDN",BRK_DIFF:0,NAME:"Sudan",NAME_LONG:"Sudan",BRK_A3:"SDN",BRK_NAME:"Sudan",BRK_GROUP:null,ABBREV:"Sudan",POSTAL:"SD",FORMAL_EN:"Republic of the Sudan",FORMAL_FR:null,NAME_CIAWF:"Sudan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Sudan",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:6,MAPCOLOR9:4,MAPCOLOR13:1,POP_EST:37345935,POP_RANK:15,GDP_MD_EST:176300,POP_YEAR:2017,LASTCENSUS:2008,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"SU",ISO_A2:"SD",ISO_A3:"SDN",ISO_A3_EH:"SDN",ISO_N3:"729",UN_A3:"729",WB_A2:"SD",WB_A3:"SDN",WOE_ID:-90,WOE_ID_EH:23424952,WOE_NOTE:"Almost all FLickr photos are in the north.",ADM0_A3_IS:"SDN",ADM0_A3_US:"SDN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Northern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[24.567369012152085,8.229187933785468],[23.805813429466752,8.666318874542426],[23.459012892355986,8.954285793488893],[23.394779087017184,9.265067857292223],[23.55724979014283,9.681218166538684],[23.554304233502194,10.089255275915308],[22.97754357269261,10.71446259199854],[22.864165480244225,11.142395127807546],[22.87622,11.384610000000123],[22.50869,11.67936],[22.49762,12.26024],[22.28801,12.64605],[21.93681,12.588180000000136],[22.03759,12.95546],[22.29658,13.37232],[22.18329,13.78648],[22.51202,14.09318],[22.30351,14.32682],[22.56795000000011,14.944290000000137],[23.024590000000103,15.68072],[23.886890000000108,15.61084],[23.83766000000014,19.580470000000105],[23.850000000000136,20],[25.000000000000114,20.00304],[25,22],[29.02,22],[32.9,22],[36.86623,22],[37.1887200000001,21.01885],[36.96941,20.83744000000013],[37.11470000000014,19.80796],[37.4817900000001,18.61409],[37.86276,18.36786],[38.410089959473225,17.998307399970315],[37.90400000000011,17.42754],[37.16747,17.263140000000135],[36.852530000000115,16.95655],[36.75389,16.29186],[36.32322,14.82249],[36.42951,14.42211],[36.27022,13.563330000000121],[35.86363,12.57828],[35.26049,12.08286],[34.83163000000013,11.318960000000118],[34.73115000000013,10.910170000000107],[34.25745,10.63009],[33.96162,9.58358],[33.97498,8.68456],[33.963392794971185,9.464285229420625],[33.82496348090751,9.484060845715362],[33.84213085302815,9.981914637215993],[33.72195924818311,10.325262079630193],[33.206938084561784,10.720111638406593],[33.086766479716744,11.441141267476496],[33.206938084561784,12.179338268667095],[32.743419037302544,12.248007757149992],[32.67474954881965,12.02483191958072],[32.073891524594785,11.973329803218519],[32.31423473428475,11.68148447716652],[32.400071594888345,11.080626452941488],[31.850715687025513,10.531270545078826],[31.35286189552488,9.810240916008695],[30.837840731903384,9.70723668328452],[29.996639497988554,10.290927335388687],[29.61895731133285,10.084918869940225],[29.515953078608618,9.793073543888056],[29.000931914987177,9.60423245056029],[28.966597170745786,9.398223985111656],[27.970889587744352,9.398223985111656],[27.833550610778786,9.60423245056029],[27.112520981708883,9.638567194801624],[26.752006167173818,9.466893473594496],[26.477328213242515,9.552730334198088],[25.962307049621018,10.
2136420986302426],[25.790633328413946,10.411098940233728],[25.069603699343986,10.273759963267992],[24.794925745412684,9.810240916008695],[24.53741516360202,8.91753756573172],[24.19406772118765,8.728696472403897],[23.886979580860668,8.619729712933065],[24.567369012152085,8.229187933785468]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"South Sudan",SOV_A3:"SDS",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"South Sudan",ADM0_A3:"SDS",GEOU_DIF:0,GEOUNIT:"South Sudan",GU_A3:"SDS",SU_DIF:0,SUBUNIT:"South Sudan",SU_A3:"SDS",BRK_DIFF:0,NAME:"S. Sudan",NAME_LONG:"South Sudan",BRK_A3:"SDS",BRK_NAME:"S. Sudan",BRK_GROUP:null,ABBREV:"S. Sud.",POSTAL:"SS",FORMAL_EN:"Republic of South Sudan",FORMAL_FR:null,NAME_CIAWF:"South Sudan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"South Sudan",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:3,MAPCOLOR9:3,MAPCOLOR13:5,POP_EST:13026129,POP_RANK:14,GDP_MD_EST:20880,POP_YEAR:2017,LASTCENSUS:2008,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"-99",ISO_A2:"SS",ISO_A3:"SSD",ISO_A3_EH:"SSD",ISO_N3:"728",UN_A3:"728",WB_A2:"SS",WB_A3:"SSD",WOE_ID:-99,WOE_ID_EH:-99,WOE_NOTE:"Includes states of 20069899, 20069897, 20069898, 20069901, 20069909, and 20069908 but maybe more?",ADM0_A3_IS:"SSD",ADM0_A3_US:"SDS",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:8,LONG_LEN:11,ABBREV_LEN:7,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[27.37422610851749,5.233944403500061],[27.21340905122517,5.550953477394557],[26.465909458123235,5.94671743410187],[26.213418409945117,6.546603298362072],[25.79664798351118,6.979315904158071],[25.124130893664727,7.500085150579437
2],[25.11493248871679,7.825104071479174],[24.567369012152085,8.229187933785468],[23.886979580860668,8.619729712933065],[24.19406772118765,8.728696472403897],[24.53741516360202,8.91753756573172],[24.794925745412684,9.810240916008695],[25.069603699343986,10.273759963267992],[25.790633328413946,10.411098940233728],[25.962307049621018,10.136420986302426],[26.477328213242515,9.552730334198088],[26.752006167173818,9.466893473594496],[27.112520981708883,9.638567194801624],[27.833550610778786,9.60423245056029],[27.970889587744352,9.398223985111656],[28.966597170745786,9.398223985111656],[29.000931914987177,9.60423245056029],[29.515953078608618,9.793073543888056],[29.61895731133285,10.084918869940225],[29.996639497988554,10.290927335388687],[30.837840731903384,9.70723668328452],[31.35286189552488,9.810240916008695],[31.850715687025513,10.531270545078826],[32.400071594888345,11.080626452941488],[32.31423473428475,11.68148447716652],[32.073891524594785,11.973329803218519],[32.67474954881965,12.02483191958072],[32.743419037302544,12.248007757149992],[33.206938084561784,12.179338268667095],[33.086766479716744,11.441141267476496],[33.206938084561784,10.720111638406593],[33.72195924818311,10.325262079630193],[33.84213085302815,9.981914637215993],[33.82496348090751,9.484060845715362],[33.963392794971185,9.464285229420625],[33.97498,8.68456],[33.82550000000015,8.37916],[33.29480000000012,8.35458],[32.95418,7.784970000000101],[33.568290000000104,7.71334],[34.0751,7.22595],[34.25032,6.82607],[34.70702,6.594220000000121],[35.29800711823298,5.506],[34.62019626785388,4.847122742081988],[34.005,4.249884947362048],[33.3900000000001,3.79],[32.68642,3.79232],[31.88145,3.55827],[31.24556,3.7819],[30.833852421715427,3.509171604222463],[29.953500197069474,4.173699042167684],[29.71599531425602,4.600804755060025],[29.1590784034465,4.389267279473231],[28.696677687298802,4.455077215996994],[28.428993768026913,4.287154649264494],[27.97997724784281,4.408413397637375],[27.37422610851749,5.233944403500061]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Senegal",SOV_A3:"SEN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Senegal",ADM0_A3:"SEN",GEOU_DIF:0,GEOUNIT:"Senegal",GU_A3:"SEN",SU_DIF:0,SUBUNIT:"Senegal",SU_A3:"SEN",BRK_DIFF:0,NAME:"Senegal",NAME_LONG:"Senegal",BRK_A3:"SEN",BRK_NAME:"Senegal",BRK_GROUP:null,ABBREV:"Sen.",POSTAL:"SN",FORMAL_EN:"Republic of Senegal",FORMAL_FR:null,NAME_CIAWF:"Senegal",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Senegal",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:6,MAPCOLOR9:5,MAPCOLOR13:5,POP_EST:14668522,POP_RANK:14,GDP_MD_EST:39720,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"SG",ISO_A2:"SN",ISO_A3:"SEN",ISO_A3_EH:"SEN",ISO_N3:"686",UN_A3:"686",WB_A2:"SN",WB_A3:"SEN",WOE_ID:23424943,WOE_ID_EH:23424943,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"SEN",ADM0_A3_US:"SEN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-11.51394283695059,12.442987575729418],[-11.658300950557932,12.386582749882836],[-12.203564825885634,12.465647691289405],[-12.27859900557344,12.354440008997287],[-12.499050665730564,12.332089952031057],[-13.217818162478238,12.575873521367967],[-13.700476040084325,12.586182969610194],[-15.54847693527401,12.628170070847347],[-15.816574266004254,12.515567124883347],[-16.147716844130585,12.547761542201187],[-16.677451951554573,12.384851589401052],[-16.841524624081273,13.15139394780256],[-15.931295945692211,13.130284125211332],[-15.691000535534995,13.270353094938457],[-15.511812506562933,13.278569647672867],[-15.141163295949468,13.509511623585238],[-14.712197231494628,13.298206691943777],[
2-14.277701788784555,13.280585028532244],[-13.844963344772408,13.505041612192002],[-14.046992356817482,13.79406789800045],[-14.376713833055788,13.625680243377374],[-14.687030808968487,13.630356960499784],[-15.08173539881382,13.876491807505985],[-15.39877031092446,13.86036876063092],[-15.624596320039942,13.62358734786956],[-16.71372880702347,13.594958604379855],[-17.126106736712615,14.373515733289224],[-17.62504269049066,14.729540513564073],[-17.18517289882223,14.919477240452862],[-16.700706346085923,15.621527411354108],[-16.463098110407884,16.13503611903846],[-16.12069007004193,16.455662543193384],[-15.623666144258692,16.369337063049812],[-15.135737270558819,16.587282416240782],[-14.577347581428981,16.59826365810281],[-14.099521450242179,16.304302273010492],[-13.435737677453062,16.03938304286619],[-12.830658331747516,15.303691514542948],[-12.170750291380301,14.616834214735505],[-12.12488745772126,13.994727484589788],[-11.927716030311615,13.422075100147396],[-11.55339779300543,13.141213690641067],[-11.467899135778524,12.754518947800975],[-11.51394283695059,12.442987575729418]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Solomon Islands",SOV_A3:"SLB",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Solomon Islands",ADM0_A3:"SLB",GEOU_DIF:0,GEOUNIT:"Solomon Islands",GU_A3:"SLB",SU_DIF:0,SUBUNIT:"Solomon Islands",SU_A3:"SLB",BRK_DIFF:0,NAME:"Solomon Is.",NAME_LONG:"Solomon Islands",BRK_A3:"SLB",BRK_NAME:"Solomon Is.",BRK_GROUP:null,ABBREV:"S. Is.",POSTAL:"SB",FORMAL_EN:null,FORMAL_FR:null,NAME_CIAWF:"Solomon Islands",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Solomon Islands",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:1,MAPCOLOR13:6,POP_EST:647581,POP_RANK:11,GDP_MD_EST:1198,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"BP",ISO_A2:"SB",ISO_A3:"SLB",ISO_A3_EH:"SLB",ISO_N3:"090",UN_A3:"090",WB_A2:"SB",WB_A3:"SLB",WOE_ID:23424766,WOE_ID_EH:23424766,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"SLB",ADM0_A3_US:"SLB",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Oceania",REGION_UN:"Oceania",SUBREGION:"Melanesia",REGION_WB:"East Asia & Pacific",NAME_LEN:11,LONG_LEN:15,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"MultiPolygon",coordinates:[[[[162.11902469304087,-10.482719008021121],[162.39864586817222,-10.826367282762092],[161.70003218001838,-10.82001108159021],[161.31979699121482,-10.204751478723196],[161.91738325423805,-10.446700534713727],[162.11902469304087,-10.482719008021121]]],[[[160.8522286318379,-9.872937106977076],[160.46258833235729,-9.895209649294827],[159.8494474632142,-9.794027194867354],[159.64000288313522,-9.639979750205256],[159.70294477766672,-9.242949720906765],[160.36295617089846,-9.40030445723552],[160.68851769433726,-9.610162448772883],[160.8522286318379,-9.872937106977076]]],[[[161.6799817242891,-9.59998219161136],[161.52939660059056,-9.78431202559642],[160.78825320866056,-8.917543226764906],[160.57999718652442,-8.320008640173953],[160.92002811100494,-8.320008640173953],[161.28000613835,-9.120011488484423],[161.6799817242891,-9.59998219161136]]],[[[159.8750272971986,-8.337320244991702],[159.91740197167795,-8.538289890174852],[159.1336771995394,-8.114181410355386],[158.58611372297477,-7.754823500197702],[158.21114953026486,-7.42187224694122],[158.35997765526545,-7.320017998893903],[158.82000125552779,-7.560003350457364],[159.64000288313522,-8.02002695071964],[159.8750272971986,-8.337320244991702]]],[[[157.53842573468924,-7.347819919466914],[157.33941979393327,-7.404767347852626],[156.90203047101485,-7.176874281445379],[156.49135786359128,-6.765943291860467],[156.54282759015402,-6.599338474151466],[157.14000044171885,-7.021638278840641],[157.53842573468924,-7.347819919466914]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Sierra Leone",SOV_A3:"SLE",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Sierra Leone",ADM0_A3:"SLE",GEOU_DIF:0,GEOUNIT:"Sierra Leone",GU_A3:"SLE",SU_DIF:0,SUBUNIT:"Sierra Leone",SU_A3:"SLE",BRK_DIFF:0,NAME:"Sierra Leone",NAME_LONG:"Sierra Leone",BRK_A3:"SLE",BRK_NAME:"Sierra Leone",BRK_GROUP:null,ABBREV:"S.L.",POSTAL:"SL",FORMAL_EN:"Republic of Sierra Leone",FORMAL_FR:null,NAME_CIAWF:"Sierra Leone",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Sierra Leone",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:1,MAPCOLOR13:7,POP_EST:6163195,POP_RANK:13,GDP_MD_EST:10640,POP_YEAR:2017,LASTCENSUS:2004,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"SL",ISO_A2:"SL",ISO_A3:"SLE",ISO_A3_EH:"SLE",ISO_N3:"694",
2UN_A3:"694",WB_A2:"SL",WB_A3:"SLE",WOE_ID:23424946,WOE_ID_EH:23424946,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"SLE",ADM0_A3_US:"SLE",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:12,LONG_LEN:12,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[-13.246550258832515,8.903048610871508],[-12.71195756677308,9.342711696810767],[-12.59671912276221,9.62018830000197],[-12.425928514037565,9.835834051955956],[-12.150338100625005,9.858571682164381],[-11.917277390988659,10.046983954300558],[-11.11748124840733,10.045872911006285],[-10.839151984083301,9.688246161330369],[-10.622395188835041,9.267910061068278],[-10.654770473665891,8.977178452994195],[-10.494315151399633,8.715540676300435],[-10.505477260774668,8.348896389189605],[-10.23009355309128,8.406205552601293],[-10.69559485517648,7.939464016141088],[-11.146704270868383,7.396706447779536],[-11.19980180504828,7.105845648624737],[-11.438779466182055,6.785916856305747],[-11.70819454593574,6.860098374860726],[-12.428098924193819,7.26294200279203],[-12.949049038128194,7.798645738145738],[-13.124025437868482,8.163946438016978],[-13.246550258832515,8.903048610871508]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"El Salvador",SOV_A3:"SLV",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"El Salvador",ADM0_A3:"SLV",GEOU_DIF:0,GEOUNIT:"El Salvador",GU_A3:"SLV",SU_DIF:0,SUBUNIT:"El Salvador",SU_A3:"SLV",BRK_DIFF:0,NAME:"El Salvador",NAME_LONG:"El Salvador",BRK_A3:"SLV",BRK_NAME:"El Salvador",BRK_GROUP:null,ABBREV:"El. S.",POSTAL:"SV",FORMAL_EN:"Republic of El Salvador",FORMAL_FR:null,NAME_CIAWF:"El Salvador",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"El Salvador",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:6,MAPCOLOR13:8,POP_EST:6172011,POP_RANK:13,GDP_MD_EST:54790,POP_YEAR:2017,LASTCENSUS:2007,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"ES",ISO_A2:"SV",ISO_A3:"SLV",ISO_A3_EH:"SLV",ISO_N3:"222",UN_A3:"222",WB_A2:"SV",WB_A3:"SLV",WOE_ID:23424807,WOE_ID_EH:23424807,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"SLV",ADM0_A3_US:"SLV",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Central America",REGION_WB:"Latin America & Caribbean",NAME_LEN:11,LONG_LEN:11,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[-90.09555457229098,13.735337632700734],[-90.0646779039966,13.881969509328925],[-89.72193396682073,14.134228013561696],[-89.53421932652051,14.244815578666305],[-89.58734269891656,14.36258616785949],[-89.35332597528281,14.424132798719086],[-89.05851192905766,14.340029405164216],[-88.84307288283284,14.14050670008517],[-88.541230841816,13.980154730683479],[-88.50399797234971,13.845485948130857],[-88.06534257684014,13.964625962779778],[-87.85951534702161,13.893312486217098],[-87.7235029772294,13.785050360565506],[-87.79311113152657,13.384480495655055],[-87.90411210808952,13.149016831917137],[-88.48330156121682,13.163951320849492],[-88.84322791212972,13.259733588102478],[-89.2567427233293,13.458532823129303],[-89.81239356154767,13.520622056527998],[-90.09555457229098,13.735337632700734]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Somaliland",SOV_A3:"SOL",ADM0_DIF:0,LEVEL:2,TYPE:"Indeterminate",ADMIN:"Somaliland",ADM0_A3:"SOL",GEOU_DIF:0,GEOUNIT:"Somaliland",GU_A3:"SOL",SU_DIF:0,SUBUNIT:"Somaliland",SU_A3:"SOL",BRK_DIFF:1,NAME:"Somaliland",NAME_LONG:"Somaliland",BRK_A3:"B30",BRK_NAME:"Somaliland",BRK_GROUP:null,ABBREV:"Solnd.",POSTAL:"SL",FORMAL_EN:"Republic of Somaliland",FORMAL_FR:null,NAME_CIAWF:null,NOTE_ADM0:"Self admin.",NOTE_BRK:"Self admin.; Claimed by Somalia",NAME_SORT:"Somaliland",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:6,MAPCOLOR9:5,MAPCOLOR13:2,POP_EST:35e5,POP_RANK:12,GDP_MD_EST:12250,POP_YEAR:2013,LASTCENSUS:-99,GDP_YEAR:2013,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"-99",ISO_A2:"-99",ISO_A3:"-99",ISO_A3_EH:"-99",ISO_N3:"-99",UN_A3:"-099",WB_A2:"-99",WB_A3:"-99",WOE_ID:-99,WOE_ID_EH:-99,WOE_NOTE:"Includes old states of 2347021, 2347020, 2347017 and portion of 2347016.",ADM0_A3_IS:"SOM",ADM0_A3_US:"SOM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:4,MIN_LABEL:4.5,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[42.77685184100096,10.92687856693442],[43.14530480324214,11.462039699748857],[43.470659620951665,11.277709865763882],[43.66666832863484,10.86416921634816],[44.11780358254282,10.445538438351605],[44.614259067570856,10.442205308468942],[45.55694054543915,10.698029486529776],[46.645401238803004,10.816549383991173],[47.525657586462785,11.12722809492999],[48.02159630716778,11.193063869669743],[48.37878380716927,11.375481675660126],[48.94820641459347,11.41062164961852],[48.94820475850985,11.41061728169797],[48.94820475850974,11.410617281697963],[48.94200524271835,11.394266058798138],[48.938491245322496,10.982327378783467],[48.9382328
26316103,9.973500067581512],[48.93812951029645,9.451748968946617],[48.48673587422695,8.837626247589995],[47.78942,8.003],[46.94834,7.99688],[43.67875,9.18358000000012],[43.29699000000011,9.540480000000173],[42.92812,10.021940000000143],[42.55876,10.57258000000013],[42.77685184100096,10.92687856693442]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Somalia",SOV_A3:"SOM",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Somalia",ADM0_A3:"SOM",GEOU_DIF:0,GEOUNIT:"Somalia",GU_A3:"SOM",SU_DIF:0,SUBUNIT:"Somalia",SU_A3:"SOM",BRK_DIFF:0,NAME:"Somalia",NAME_LONG:"Somalia",BRK_A3:"SOM",BRK_NAME:"Somalia",BRK_GROUP:null,ABBREV:"Som.",POSTAL:"SO",FORMAL_EN:"Federal Republic of Somalia",FORMAL_FR:null,NAME_CIAWF:"Somalia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Somalia",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:8,MAPCOLOR9:6,MAPCOLOR13:7,POP_EST:7531386,POP_RANK:13,GDP_MD_EST:4719,POP_YEAR:2017,LASTCENSUS:1987,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"SO",ISO_A2:"SO",ISO_A3:"SOM",ISO_A3_EH:"SOM",ISO_N3:"706",UN_A3:"706",WB_A2:"SO",WB_A3:"SOM",WOE_ID:-90,WOE_ID_EH:23424949,WOE_NOTE:"Includes Somaliland (2347021, 2347020, 2347017 and portion of 2347016)",ADM0_A3_IS:"SOM",ADM0_A3_US:"SOM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[41.85508309264397,3.918911920483727],[42.12861,4.23413],[42.76967,4.25259],[43.66087,4.95755],[44.9636,5.00162],[47.78942,8.003],[48.48673587422695,8.837626247589995],[48.93812951029645,9.451748968946617],[48.93823286316103,9.973500067581512],[48.938491245322496,10.982327378783467],[48.94200524271835,11.394266058798138],[48.94820475850974,11.410617281697963],[48.94820475850985,11.41061728169797],[49.26776,11.43033],[49.72862,11.5789],[50.25878,11.67957],[50.73202,12.0219],[51.1112,12.02464],[51.13387,11.74815],[51.04153,11.16651],[51.04531,10.6409],[50.83418,10.27972],[50.55239,9.19874],[50.07092,8.08173],[49.4527,6.80466],[48.59455,5.33911],[47.74079,4.2194],[46.56476,2.85529],[45.56399,2.04576],[44.06815,1.05283],[43.13597,.2922],[42.04157,-.91916],[41.81095,-1.44647],[41.58513,-1.68325],[40.993,-.85829],[40.98105,2.78452],[41.85508309264397,3.918911920483727]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Republic of Serbia",SOV_A3:"SRB",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Republic of Serbia",ADM0_A3:"SRB",GEOU_DIF:0,GEOUNIT:"Republic of Serbia",GU_A3:"SRB",SU_DIF:0,SUBUNIT:"Republic of Serbia",SU_A3:"SRB",BRK_DIFF:0,NAME:"Serbia",NAME_LONG:"Serbia",BRK_A3:"SRB",BRK_NAME:"Serbia",BRK_GROUP:null,ABBREV:"Serb.",POSTAL:"RS",FORMAL_EN:"Republic of Serbia",FORMAL_FR:null,NAME_CIAWF:"Serbia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Serbia",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:3,MAPCOLOR9:2,MAPCOLOR13:10,POP_EST:7111024,POP_RANK:13,GDP_MD_EST:101800,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"RI",ISO_A2:"RS",ISO_A3:"SRB",ISO_A3_EH:"SRB",ISO_N3:"688",UN_A3:"688",WB_A2:"YF",WB_A3:"SRB",WOE_ID:-90,WOE_ID_EH:20069818,WOE_NOTE:"Expired WOE also contains Kosovo.",ADM0_A3_IS:"SRB",ADM0_A3_US:"SRB",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[22.65714969248299,44.23492300066128],[22.410446404721597,44.008063462899955],[22.500156691180223,43.642814439461006],[22.986018507588483,43.2111612005271],[22.60480146657133,42.898518785161144],[22.43659467946128,42.580321153323936],[22.54501183440962,42.46136200618804],[22.380525750424592,42.32025950781509],[21.917080000000112,42.30364],[21.57663598940212,42.24522439706186],[21.54332,42.3202500000001],[21.66292,42.43922],[21.77505,42.6827],[21.63302,42.67717],[21.43866,42.86255],[21.27421,42.90959],[21.143395,43.06868500000013],[20.95651,43.13094],[20.81448,43.27205],[20.63508,43.21671],[20.49679,42.88469],[20.25758,42.81275000000011],[20.3398,42.89852],[19.95857,43.10604],[19.63,43.21377997027054],[19.48389,43.35229],[19.21852,43.52384],[19.454,43.56810000000013],[19.59976,44.03847],[19.11761,44.42307000000011],[19.36803,44.863],[19.00548,44.86023],[19.005484597
2557594,44.86023449354299],[19.39047570158459,45.236515611342384],[19.072768995854176,45.52151113543209],[18.829824792873946,45.908872358025285],[18.82983808764996,45.90887767189193],[19.596044549241583,46.17172984474454],[20.220192498462836,46.127468980486555],[20.762174920339987,45.734573065771485],[20.874312778413355,45.416375433934235],[21.48352623870221,45.18117015235788],[21.56202273935361,44.7689472519655],[22.14508792490281,44.47842234962059],[22.459022251075936,44.7025171982543],[22.705725538837356,44.57800283464702],[22.4740084164406,44.40922760678177],[22.65714969248299,44.23492300066128]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Suriname",SOV_A3:"SUR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Suriname",ADM0_A3:"SUR",GEOU_DIF:0,GEOUNIT:"Suriname",GU_A3:"SUR",SU_DIF:0,SUBUNIT:"Suriname",SU_A3:"SUR",BRK_DIFF:0,NAME:"Suriname",NAME_LONG:"Suriname",BRK_A3:"SUR",BRK_NAME:"Suriname",BRK_GROUP:null,ABBREV:"Sur.",POSTAL:"SR",FORMAL_EN:"Republic of Suriname",FORMAL_FR:null,NAME_CIAWF:"Suriname",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Suriname",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:7,MAPCOLOR13:6,POP_EST:591919,POP_RANK:11,GDP_MD_EST:8547,POP_YEAR:2017,LASTCENSUS:2004,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"NS",ISO_A2:"SR",ISO_A3:"SUR",ISO_A3_EH:"SUR",ISO_N3:"740",UN_A3:"740",WB_A2:"SR",WB_A3:"SUR",WOE_ID:23424913,WOE_ID_EH:23424913,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"SUR",ADM0_A3_US:"SUR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[-54.52475419779972,2.311848863123814],[-55.09758744975514,2.523748073736613],[-55.569755011606,2.421506252447131],[-55.973322109589375,2.510363877773017],[-56.0733418442903,2.220794989425499],[-55.905600145070885,2.02199575439866],[-55.995698004771754,1.817667141116601],[-56.539385748914555,1.899522609866921],[-57.15009782573991,2.768926906745406],[-57.28143347840971,3.333491929534119],[-57.60156897645787,3.334654649260685],[-58.04469438336068,4.060863552258382],[-57.8602095200787,4.57680105226045],[-57.91428890647214,4.812626451024414],[-57.307245856339506,5.073566595882227],[-57.14743648947689,5.973149929219161],[-55.9493184067898,5.772877915872002],[-55.841779751190415,5.95312531170606],[-55.033250291551774,6.025291449401664],[-53.9580446030709,5.756548163267765],[-54.478632981979274,4.896755682795572],[-54.399542202356514,4.212611395683467],[-54.01150387227679,3.622569891774873],[-54.18428402364472,3.194172268075249],[-54.27122962097576,2.738747870286957],[-54.52475419779972,2.311848863123814]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Slovakia",SOV_A3:"SVK",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Slovakia",ADM0_A3:"SVK",GEOU_DIF:0,GEOUNIT:"Slovakia",GU_A3:"SVK",SU_DIF:0,SUBUNIT:"Slovakia",SU_A3:"SVK",BRK_DIFF:0,NAME:"Slovakia",NAME_LONG:"Slovakia",BRK_A3:"SVK",BRK_NAME:"Slovakia",BRK_GROUP:null,ABBREV:"Svk.",POSTAL:"SK",FORMAL_EN:"Slovak Republic",FORMAL_FR:null,NAME_CIAWF:"Slovakia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Slovak Republic",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:4,MAPCOLOR9:4,MAPCOLOR13:9,POP_EST:5445829,POP_RANK:13,GDP_MD_EST:168800,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"LO",ISO_A2:"SK",ISO_A3:"SVK",ISO_A3_EH:"SVK",ISO_N3:"703",UN_A3:"703",WB_A2:"SK",WB_A3:"SVK",WOE_ID:23424877,WOE_ID_EH:23424877,WOE_
2NOTE:"Exact WOE match as country",ADM0_A3_IS:"SVK",ADM0_A3_US:"SVK",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Eastern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[16.979666782304037,48.123497015976305],[16.879982944413,48.47001333270947],[16.960288120194576,48.5969823268506],[17.101984897538898,48.816968899117114],[17.545006951577108,48.80001902932537],[17.88648481616181,48.90347524677371],[17.913511590250465,48.996492824899086],[18.104972771891852,49.04398346617531],[18.170498488037964,49.271514797556435],[18.399993523846177,49.31500051533004],[18.554971144289482,49.495015367218784],[18.853144158613617,49.49622976337764],[18.90957482267632,49.435845852244576],[19.320712517990472,49.571574001659194],[19.825022820726872,49.21712535256923],[20.415839471119853,49.43145335549977],[20.887955356538413,49.32877228453583],[21.607808058364213,49.47010732685409],[22.558137648211755,49.085738023467144],[22.28084191253356,48.82539215758067],[22.085608351334855,48.42226430927179],[21.872236362401736,48.31997081155002],[20.801293979584926,48.623854071642384],[20.473562045989866,48.562850043321816],[20.239054396249347,48.32756724709692],[19.769470656013112,48.202691148463614],[19.661363559658497,48.26661489520866],[19.17436486173989,48.11137889260387],[18.77702477384767,48.081768296900634],[18.696512892336926,47.880953681014404],[17.857132602620027,47.75842886005037],[17.48847293464982,47.867466132186216],[16.979666782304037,48.123497015976305]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Slovenia",SOV_A3:"SVN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Slovenia",ADM0_A3:"SVN",GEOU_DIF:0,GEOUNIT:"Slovenia",GU_A3:"SVN",SU_DIF:0,SUBUNIT:"Slovenia",SU_A3:"SVN",BRK_DIFF:0,NAME:"Slovenia",NAME_LONG:"Slovenia",BRK_A3:"SVN",BRK_NAME:"Slovenia",BRK_GROUP:null,ABBREV:"Slo.",POSTAL:"SLO",FORMAL_EN:"Republic of Slovenia",FORMAL_FR:null,NAME_CIAWF:"Slovenia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Slovenia",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:3,MAPCOLOR9:2,MAPCOLOR13:12,POP_EST:1972126,POP_RANK:12,GDP_MD_EST:68350,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"SI",ISO_A2:"SI",ISO_A3:"SVN",ISO_A3_EH:"SVN",ISO_N3:"705",UN_A3:"705",WB_A2:"SI",WB_A3:"SVN",WOE_ID:23424945,WOE_ID_EH:23424945,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"SVN",ADM0_A3_US:"SVN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Southern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[13.806475457421527,46.509306138691215],[14.63247155117483,46.43181732846955],[15.137091912504985,46.65870270444703],[16.011663852612656,46.6836107448117],[16.202298211337364,46.85238597267696],[16.370504998447416,46.841327216166505],[16.564808383864857,46.50375092221983],[15.768732944408553,46.23810822202345],[15.671529575267556,45.83415355079788],[15.323953891672405,45.73178253842768],[15.327674594797429,45.45231639259323],[14.935243767972935,45.471695054702685],[14.595109490627806,45.634940904312714],[14.411968214585414,45.46616567644746],[13.715059848697223,45.500323798192376],[13.937630242578308,45.59101593686469],[13.698109978905478,46.01677806251735],[13.806475457421527,46.509306138691215]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Sweden",SOV_A3:"SWE",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Sweden",ADM0_A3:"SWE",GEOU_DIF:0,GEOUNIT:"Sweden",GU_A3:"SWE",SU_DIF:0,SUBUNIT:"Sweden",SU_A3:"SWE",BRK_DIFF:0,NAME:"Sweden",NAME_LONG:"Sweden",BRK_A3:"SWE",BRK_NAME:"Sweden",BRK_GROUP:null,ABBREV:"Swe.",POSTAL:"S",FORMAL_EN:"Kingdom of Sweden",FORMAL_FR:null,NAME_CIAWF:"Sweden",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Sweden",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:4,MAPCOLOR9:2,MAPCOLOR13:4,POP_EST:9960487,POP_RANK:13,GDP_MD_EST:498100,POP_YEAR:2017,LASTCENSUS:-99,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:-99,FIPS_10_:"SW",ISO_A2:"SE",ISO_A3:"SWE",ISO_A3_EH:"SWE",ISO_N3:"752",UN_A3:"752",WB_A2:"SE",WB_A3:"SWE",WOE_ID:23424954,WOE_ID_EH:23424954,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"SWE",ADM0_A3_US:"SWE",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Northern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[20.645592889089528,69.10624726020087],[21.978534783626117,68.6168456081807],[23.53947309743444,67.93600861273525],[23.5658797
254335583,66.39605093043743],[23.903378533633802,66.00692739527962],[22.18317345550193,65.72374054632017],[21.21351687997722,65.02600535751527],[21.369631381930958,64.41358795842429],[19.77887576669022,63.60955434839504],[17.84777916837521,62.74940013289681],[17.119554884518124,61.34116567651097],[17.83134606290639,60.63658336042741],[18.78772179533209,60.081914374422595],[17.86922488777634,58.9537661810587],[16.829185011470088,58.71982697207339],[16.447709588291474,57.041118069071885],[15.879785597403783,56.10430186626866],[14.666681349352075,56.200885118222175],[14.100721062891465,55.40778107362265],[12.942910597392057,55.36173737245058],[12.625100538797028,56.30708018658197],[11.787942335668674,57.44181712506307],[11.027368605196868,58.85614940045936],[11.468271925511146,59.43239329694604],[12.3003658382749,60.11793284773003],[12.631146681375185,61.293571682370136],[11.992064243221563,61.80036245385655],[11.930569288794231,63.12831757267698],[12.579935336973934,64.06621898055833],[13.571916131248713,64.0491140814697],[13.919905226302204,64.44542064071608],[13.55568973150909,64.78702769638151],[15.108411492583002,66.19386688909546],[16.108712192456778,67.30245555283689],[16.768878614985482,68.0139366726314],[17.729181756265348,68.01055186631628],[17.993868442464333,68.56739126247736],[19.878559604581255,68.40719432237258],[20.025268995857886,69.0651386583127],[20.645592889089528,69.10624726020087]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Swaziland",SOV_A3:"SWZ",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Swaziland",ADM0_A3:"SWZ",GEOU_DIF:0,GEOUNIT:"Swaziland",GU_A3:"SWZ",SU_DIF:0,SUBUNIT:"Swaziland",SU_A3:"SWZ",BRK_DIFF:0,NAME:"Swaziland",NAME_LONG:"Swaziland",BRK_A3:"SWZ",BRK_NAME:"Swaziland",BRK_GROUP:null,ABBREV:"Swz.",POSTAL:"SW",FORMAL_EN:"Kingdom of Swaziland",FORMAL_FR:null,NAME_CIAWF:"Swaziland",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Swaziland",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:6,MAPCOLOR9:2,MAPCOLOR13:5,POP_EST:1467152,POP_RANK:12,GDP_MD_EST:11060,POP_YEAR:2017,LASTCENSUS:2007,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"WZ",ISO_A2:"SZ",ISO_A3:"SWZ",ISO_A3_EH:"SWZ",ISO_N3:"748",UN_A3:"748",WB_A2:"SZ",WB_A3:"SWZ",WOE_ID:23424993,WOE_ID_EH:23424993,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"SWZ",ADM0_A3_US:"SWZ",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Southern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[31.83777794772806,-25.84333180105135],[31.98577924981197,-26.291779880480227],[32.07166548028107,-26.73382008230491],[31.86806033705108,-27.177927341421277],[31.28277306491333,-27.285879408478998],[30.68596194837448,-26.743845310169533],[30.67660851412964,-26.398078301704608],[30.949666782359913,-26.02264902110415],[31.04407962415715,-25.731452325139443],[31.333157586397903,-25.66019052500895],[31.83777794772806,-25.84333180105135]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Syria",SOV_A3:"SYR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Syria",ADM0_A3:"SYR",GEOU_DIF:0,GEOUNIT:"Syria",GU_A3:"SYR",SU_DIF:0,SUBUNIT:"Syria",SU_A3:"SYR",BRK_DIFF:0,NAME:"Syria",NAME_LONG:"Syria",BRK_A3:"SYR",BRK_NAME:"Syria",BRK_GROUP:null,ABBREV:"Syria",POSTAL:"SYR",FORMAL_EN:"Syrian Arab Republic",FORMAL_FR:null,NAME_CIAWF:"Syria",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Syrian Arab Republic",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:6,MAPCOLOR9:2,MAPCOLOR13:6,POP_EST:18028549,POP_RANK:14,GDP_MD_EST:50280,POP_YEAR:2017,LASTCENSUS:2004,GDP_YEAR:2015,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"SY",ISO_A2:"SY",ISO_A3:"SYR",ISO_A3_EH:"SYR",ISO_N3:"760",UN_A3:"760",WB_A2:"SY",WB_A3:"SYR",WOE_ID:23424956,WOE_ID_EH:23424956,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"SYR",ADM0_A3_US:"SYR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8}
2,geometry:{type:"Polygon",coordinates:[[[42.34959109881177,37.2298725449041],[41.83706424334096,36.605853786763575],[41.289707472505455,36.35881460219227],[41.383965285005814,35.628316555314356],[41.006158888519934,34.41937226006212],[38.792340529136084,33.378686428352225],[36.834062127435544,32.312937526980775],[35.71991824722275,32.709192409794866],[35.70079796727475,32.71601369885738],[35.836396925608625,32.86812327730851],[35.82110070165024,33.2774264592763],[36.066460402172055,33.82491242119255],[36.61175011571589,34.20178864189718],[36.4481942075121,34.59393524834407],[35.99840254084364,34.644914048800004],[35.905023227692226,35.410009467097325],[36.149762811026534,35.8215347356537],[36.417550083163036,36.040616970355046],[36.6853890317318,36.259699205056464],[36.739494256341374,36.81752045343106],[37.06676110204583,36.62303620050062],[38.16772749202417,36.901210435527815],[38.699891391765874,36.71292735447233],[39.52258019385255,36.71605377862599],[40.67325931169569,37.09127635349729],[41.21208947120305,37.074352321921694],[42.34959109881177,37.2298725449041]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Chad",SOV_A3:"TCD",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Chad",ADM0_A3:"TCD",GEOU_DIF:0,GEOUNIT:"Chad",GU_A3:"TCD",SU_DIF:0,SUBUNIT:"Chad",SU_A3:"TCD",BRK_DIFF:0,NAME:"Chad",NAME_LONG:"Chad",BRK_A3:"TCD",BRK_NAME:"Chad",BRK_GROUP:null,ABBREV:"Chad",POSTAL:"TD",FORMAL_EN:"Republic of Chad",FORMAL_FR:null,NAME_CIAWF:"Chad",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Chad",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:1,MAPCOLOR9:8,MAPCOLOR13:6,POP_EST:12075985,POP_RANK:14,GDP_MD_EST:30590,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"CD",ISO_A2:"TD",ISO_A3:"TCD",ISO_A3_EH:"TCD",ISO_N3:"148",UN_A3:"148",WB_A2:"TD",WB_A3:"TCD",WOE_ID:23424777,WOE_ID_EH:23424777,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"TCD",ADM0_A3_US:"TCD",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Middle Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:4,LONG_LEN:4,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[22.864165480244225,11.142395127807546],[22.23112918466876,10.97188873946061],[21.723821648859456,10.567055568885976],[21.000868361096167,9.475985215691509],[20.05968549976427,9.012706000194854],[19.09400800952602,9.07484691002584],[18.812009718509273,8.982914536978626],[18.911021762780507,8.630894680206353],[18.38955488452322,8.281303615751824],[17.964929640380888,7.890914008002994],[16.705988396886255,7.508327541529979],[16.456184523187346,7.734773667832968],[16.290561557691888,7.754307359239306],[16.106231723706742,7.497087917506462],[15.279460483469109,7.421924546737969],[15.436091749745742,7.692812404811889],[15.120865512765306,8.382150173369439],[14.97999555833769,8.796104234243472],[14.54446658698177,8.965861314322268],[13.954218377344006,9.549494940626687],[14.171466098699028,10.021378282099931],[14.62720055508106,9.920919297724538],[14.909353875394716,9.992129421422732],[15.467872755605242,9.982336737503545],[14.92356489427496,10.891325181517473],[14.9601518083376,11.555574042197224],[14.89336,12.21905],[14.495787387762846,12.85939626713733],[14.595781284247607,13.33042694747786],[13.95447675950561,13.353448798063766],[13.956698846094127,13.996691189016929],[13.540393507550789,14.367133693901224],[13.97217,15.68437],[15.247731154041844,16.627305813050782],[15.30044111497972,17.927949937405003],[15.685740594147774,19.957180080642388],[15.903246697664315,20.387618923417506],[15.487148064850146,20.730414537025638],[15.47106,21.04845],[15.096887648181848,21.30851878507491],[14.8513,22.862950000000126],[15.86085,23.40972],[19.84926,21.49509],[23.83766000000014,19.580470000000105],[23.886890000000108,15.61084],[23.024590000000103,15.68072],[22.56795000000011,14.944290000000137],[22.30351,14.32682],[22.51202,14.09318],[22.18329,13.78648],[22.29658,13.37232],[22.03759,12.95546],[21.93681,12.588180000000136],[22.28801,12.64605],[22.49762,12.26024],[22.50869,11.67936],[22.87622,11.384610000000123],[22.864165480244225,11.142395127807546]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:6,SOVEREIGNT:"Togo",SOV_A3:"TGO",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Togo",ADM0_A3:"TGO",GEOU_DIF:0,GEOUNIT:"Togo",GU_A3:"TGO",SU_DIF:0,SUBUNIT:"Togo",SU_A3:"TGO",BRK_DIFF:0,NAME:"Togo",NAME_LONG:"Togo",BRK_A3:"TGO",BRK_NAME:"Togo",BRK_GROUP:null,ABBREV:"Togo",POSTAL:"TG",FORMAL_EN:"Togolese Republic",FORMAL_FR:"République Togolaise",NAME_CIAWF:"Togo",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Togo",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:1,MAPCOLOR9:3,MAPCOLOR13:5,POP_EST:7965055,POP_RANK:13,GDP_MD_EST:11610,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"TO",ISO_A2:"TG",ISO_A3:"TGO",ISO_A3_EH:"TGO",ISO_N3:"768",UN_A3:"768",WB_A2:"TG",WB_A3:"TGO",WOE_ID:23424965,WOE_ID_EH:23424965,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"TGO",ADM0_A3_US:"TGO",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Western Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:4,LONG_LEN:4,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:5,MAX_LABEL:10},geometry:{type:"Polygon",coordinates:[[[.899563022474069,10.99733938236426],[.772335646171484,10.470808213742359],[1.077795037448738,10.175606594275024],[1.425060662450136,9.825395412633],[1.46304284018467,9.334624335157088],[1.664477573258381,9.12859039960938],[1.618950636409238,6.832038072126238],[1.865240512712319,6.142157701029731],[1.060121697604927,5.928837388528876],[.836931186536333,6.279978745952149],[.570384148774849,6.914358628767189],[.490957472342245,7.4117442895
276475],[.712029249686879,8.31246450442383],[.461191847342121,8.677222601756014],[.365900506195885,9.465003973829482],[.367579990245389,10.19121287682718],[-.049784715159944,10.706917832883931],[.023802524423701,11.018681748900804],[.899563022474069,10.99733938236426]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Thailand",SOV_A3:"THA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Thailand",ADM0_A3:"THA",GEOU_DIF:0,GEOUNIT:"Thailand",GU_A3:"THA",SU_DIF:0,SUBUNIT:"Thailand",SU_A3:"THA",BRK_DIFF:0,NAME:"Thailand",NAME_LONG:"Thailand",BRK_A3:"THA",BRK_NAME:"Thailand",BRK_GROUP:null,ABBREV:"Thai.",POSTAL:"TH",FORMAL_EN:"Kingdom of Thailand",FORMAL_FR:null,NAME_CIAWF:"Thailand",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Thailand",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:6,MAPCOLOR9:8,MAPCOLOR13:1,POP_EST:68414135,POP_RANK:16,GDP_MD_EST:1161e3,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"TH",ISO_A2:"TH",ISO_A3:"THA",ISO_A3_EH:"THA",ISO_N3:"764",UN_A3:"764",WB_A2:"TH",WB_A3:"THA",WOE_ID:23424960,WOE_ID_EH:23424960,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"THA",ADM0_A3_US:"THA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"South-Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[105.21877689007889,14.273211778210694],[104.28141808473661,14.416743068901367],[102.98842207236163,14.225721136934467],[102.34809939983302,13.394247341358223],[102.5849324890267,12.186594956913282],[101.68715783081996,12.645740057826572],[100.83180952352487,12.627084865769206],[100.9784672383692,13.412721665902566],[100.09779747925111,13.406856390837433],[100.01873253784456,12.307001044153354],[99.47892052612363,10.846366685423547],[99.15377241414316,9.963061428258555],[99.22239871622676,9.239255479362427],[99.87383182169813,9.20786204674512],[100.27964684448622,8.295152899606052],[100.45927412313276,7.429572658717177],[101.01732791545273,6.856868597842478],[101.62307905477806,6.74062246340192],[102.14118696493638,6.221636053894628],[101.81428185425798,5.810808417174242],[101.15421878459387,5.691384182147715],[101.07551557821333,6.204867051615921],[100.25959638875696,6.642824815289543],[100.08575687052709,6.464489447450305],[99.69069054565576,6.848212795433597],[99.51964155476963,7.34345388430276],[98.9882528015123,7.907993068875328],[98.503786248776,8.382305202666288],[98.339661899817,7.794511623562386],[98.15000939330582,8.350007432483878],[98.25915001830626,8.973922837759801],[98.55355065307305,9.932959906448545],[99.03812055867398,10.960545762572437],[99.58728600463972,11.892762762901697],[99.19635379435167,12.80474843998867],[99.21201175333609,13.269293728076464],[99.09775516153876,13.827502549693278],[98.43081912637987,14.622027696180837],[98.1920740091914,15.123702500870351],[98.53737592976572,15.308497422746084],[98.90334842325676,16.17782420497612],[98.49376102091135,16.83783559820793],[97.85912275593486,17.567946071843664],[97.37589643757354,18.445437730375815],[97.79778283080441,18.627080389881755],[98.25372399291561,19.708203029860044],[98.95967573445488,19.752980658440947],[99.54330936075931,20.186597601802063],[100.11598758341785,20.417849636308187],[100.54888105672688,20.109237982661128],[100.60629357300316,19.508344427971224],[101.2820146016517,19.462584947176765],[101.03593143107777,18.408928330961615],[101.05954756063517,17.51249725999449],[102.11359175009248,18.109101670804165],[102.41300499879162,17.932781683824288],[102.99870568238771,17.9616946476916],[103.20019209189374,18.309632066312773],[103.9564766784853,18.24095408779688],[104.7169470560925,17.42885895433008],[104.7793205098688,16.44186493577145],[105.58903852745016,15.570316066952858],[105.54433841351769,14.723933620660418],[105.21877689007889,14.273211778210694]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Tajikistan",SOV_A3:"TJK",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Tajikistan",ADM0_A3:"TJK",GEOU_DIF:0,GEOUNIT:"Tajikistan",GU_A3:"TJK",SU_DIF:0,SUBUNIT:"Tajikistan",SU_A3:"TJK",BRK_DIFF:0,NAME:"Tajikistan",NAME_LONG:"Tajikistan",BRK_A3:"TJK",BRK_NAME:"Tajikistan",BRK_GROUP:null,ABBREV:"Tjk.",POSTAL:"TJ",FORMAL_EN:"Republic of Tajikistan",FORMAL_FR:null,NAME_CIAWF:"Tajikistan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Tajikistan",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:6,MAPCOLOR9:2,MAPCOLOR13:5,POP_EST:8468555,POP_RANK:13,GDP_MD_EST:25810,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"TI",ISO_A2:"TJ",ISO_A3:"TJK",ISO_A3_EH:"TJK",ISO_N3:"762",UN_A3:"762",WB_A2:"TJ",WB_A3:"TJK",WOE_ID:23424961,WOE_ID_EH:23424961,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"TJK",ADM0_A3_US:"TJK",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Central Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[74.98000247589542,37.419990139305895],[73.9486959166465,37.4215662704908],[73.26005577992501,37.495256862939],[72.63688968291729,37.047558091778356],[72.1930408059624,36.948287665345674],[71.8446382994506,36.73817129164692],[71.44869347523024,37.06564484308052],[71.54191775908478,37.905774441065645],[71.23940392444817,37.953265082341886],[71.34813113799026,38.25890534113216],[70.80682050973289,38.486281643216415],[70.3763041523093,38.13839590102752],[70.27057417184014,37.735164699854025],[70.11657840361033,37.58822276463209],[69.51878543485796,37.60899669041342],[69.19627282092438,37.15114350030743],[68.85944583524594,37.344335842430596],[68.13556237170138,37.02311513930431],[67.82999962755952,37.144994004864685],[68.39203250516596,38.15702525486874],[68.17602501818592,38.901553453113905],[67.44221967964131,39.140143541005486],[67.70142866401736,39.58047842056453],[68.53641645698943,39.53345286717894],[69.0116329283455,40.08615814875667],[69.32949466337283,40.72782440852485],[70.66662234892505,40.960213324541414],[70.45815962105962,40.49649485937029],[70.60140669137269,40.21852733007229],[71.01419803252017,40.24436554621823],[70.64801883329997,39.93575389257117],[69.55960981636852,40.10321137141298],[69.46488691597753,39.5266832545487],[70.54916181832562,39.6041979029865],[71.784693637992,39.27946320246437],[73.6753792662548,39.4312368841056],[73.92885216664644,38.50581533462274],[74.25751427602273,38.60650686294345],[74.86481570831683,38.3788463404816],[74.8299857929521,37.9900070257014],[74.98000247589542,37.419990139305895]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Turkmenistan",SOV_A3:"TKM",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Turkmenistan",ADM0_A3:"TKM",GEOU_DIF:0,GEOUNIT:"Turkmenistan",GU_A3:"TKM",SU_DIF:0,SUBUNIT:"Turkmenistan",SU_A3:"TKM",BRK_DIFF:0,NAME:"Turkmenistan",NAME_LONG:"Turkmenistan",BRK_A3:"TKM",BRK_NAME:"Turkmenistan",BRK_GROUP:null,ABBREV:"Turkm.",POSTAL:"TM",FORMAL_EN:"Turkmenistan",FORMAL_FR:null,NAME_CIAWF:"Turkmenistan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Turkmenistan",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:2,MAPCOLOR9:1,MAPCOLOR13:9,POP_EST:5351277,POP_RANK:13,GDP_MD_EST:94720,POP_YEAR:2017,LASTCENSUS:1995,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"TX",ISO_A2:"TM",ISO_A3:"TKM",ISO_A3_EH:"TKM",ISO_N3:"795",UN_A3:"795",WB_A2:"TM",WB_A3:"TKM",WOE_ID:23424972,WOE_ID_EH:23424972,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"TKM",ADM0_A3_US:"TKM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Central Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:12,LONG_LEN:12,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[66.51860680528867,37.36278432875879],[66.21738488145934,37.39379018813392],[65.74563073106683,37.66116404881207],[65.58894778835784,37.30521678318564],[64.74
261051776774,37.111817735333304],[64.5464791197339,36.31207326918427],[63.98289594915871,36.0079574651466],[63.19353844590035,35.857165635718914],[62.98466230657661,35.40404083916762],[62.230651483005886,35.270663967422294],[61.210817091725744,35.650072333309225],[61.123070509694145,36.491597194966246],[60.37763797388388,36.52738312432837],[59.23476199731681,37.41298798273034],[58.436154412678206,37.5223094752438],[57.330433790928986,38.02922943781094],[56.61936608259282,38.121394354803485],[56.18037479027333,37.93512665460743],[55.51157840355191,37.96411713312317],[54.800303989486565,37.392420762678185],[53.92159793479556,37.19891836196126],[53.73551110211252,37.90613617609169],[53.880928582581845,38.95209300389536],[53.1010278664329,39.29057363540713],[53.35780805849123,39.97528636327445],[52.69397260926982,40.03362905533197],[52.915251092343624,40.87652334244473],[53.858139275941134,40.63103445084218],[54.73684533063215,40.95101491959346],[54.008310988181314,41.55121084244742],[53.72171349469059,42.12319143327003],[52.916749708880076,41.86811656347733],[52.81468875510362,41.13537059179471],[52.50245975119615,41.78331553808637],[52.944293247291654,42.11603424739759],[54.07941775901495,42.32410940202083],[54.75534549339264,42.043971462566574],[55.45525109235377,41.25985911718584],[55.96819135928291,41.30864166926936],[57.0963912290791,41.32231008561057],[56.932215203687804,41.826026109375604],[57.78652998233708,42.17055288346552],[58.62901085799146,42.75155101172305],[59.976422153569786,42.22308197689021],[60.083340691981675,41.425146185871405],[60.465952996670694,41.22032664648255],[61.54717898951356,41.266370347654615],[61.88271406438469,41.084856879229406],[62.374260288345006,40.05388621679039],[63.51801476426103,39.36325653742564],[64.17022301621677,38.892406724598246],[65.2159989765074,38.4026950139843],[66.54615034370022,37.97468496352687],[66.51860680528867,37.36278432875879]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"East Timor",SOV_A3:"TLS",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"East Timor",ADM0_A3:"TLS",GEOU_DIF:0,GEOUNIT:"East Timor",GU_A3:"TLS",SU_DIF:0,SUBUNIT:"East Timor",SU_A3:"TLS",BRK_DIFF:0,NAME:"Timor-Leste",NAME_LONG:"Timor-Leste",BRK_A3:"TLS",BRK_NAME:"Timor-Leste",BRK_GROUP:null,ABBREV:"T.L.",POSTAL:"TL",FORMAL_EN:"Democratic Republic of Timor-Leste",FORMAL_FR:null,NAME_CIAWF:"Timor-Leste",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Timor-Leste",NAME_ALT:"East Timor",MAPCOLOR7:2,MAPCOLOR8:2,MAPCOLOR9:4,MAPCOLOR13:3,POP_EST:1291358,POP_RANK:12,GDP_MD_EST:4975,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"TT",ISO_A2:"TL",ISO_A3:"TLS",ISO_A3_EH:"TLS",ISO_N3:"626",UN_A3:"626",WB_A2:"TP",WB_A3:"TMP",WOE_ID:23424968,WOE_ID_EH:23424968,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"TLS",ADM0_A3_US:"TLS",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"South-Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:11,LONG_LEN:11,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"Polygon",coordinates:[[[125.08852013560109,-9.393173109579294],[125.07001997284058,-9.089987481322908],[124.96868248911623,-8.892790215697083],[125.08624637258026,-8.65688730228468],[125.94707238169826,-8.432094821815035],[126.64470421763855,-8.398246758663852],[126.95724328013983,-8.273344821814398],[127.33592817597463,-8.397316582882603],[126.96799197805655,-8.668256117388893],[125.9258850444586,-9.106007175333353],[125.08852013560109,-9.393173109579294]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:5,SOVEREIGNT:"Trinidad and Tobago",SOV_A3:"TTO",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Trinidad and Tobago",ADM0_A3:"TTO",GEOU_DIF:0,GEOUNIT:"Trinidad and Tobago",GU_A3:"TTO",SU_DIF:0,SUBUNIT:"Trinidad and Tobago",SU_A3:"TTO",BRK_DIFF:0,NAME:"Trinidad and Tobago",NAME_LONG:"Trinidad and Tobago",BRK_A3:"TTO",BRK_NAME:"Trinidad and Tobago",BRK_GROUP:null,ABBREV:"Tr.T.",POSTAL:"TT",FORMAL_EN:"Republic of Trinidad and Tobago",FORMAL_FR:null,NAME_CIAWF:"Trinidad and Tobago",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Trinidad and Tobago",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:6,MAPCOLOR9:2,MAPCOLOR13:5,POP_EST:1218208,POP_RANK:12,GDP_MD_EST:43570,POP_YEAR:2017,LASTCENSUS:2011,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"TD",ISO_A2:"TT",ISO_A3:"TTO",ISO_A3_EH:"TTO",ISO_N3:"780",UN_A3:"780",WB_A2:"TT",WB_A3:"TTO",WOE_ID:23424958,WOE_ID_EH:23424958,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"TTO",ADM0_A3_US:"TTO",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Caribbean",REGION_WB:"Latin America & Caribbean",NAME_LEN:19,LONG_LEN:19,ABBREV_LEN:5,TINY:2,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4.5,MAX_LABEL:9.5},geometry:{type:"Polygon",coordinates:[[[-61.68,10.76],[-61.105,10.89],[-60.895,10.855],[-60.935,10.11],[-61.77,10],[-61.95,10.09],[-61.66,10.365],[-61.68,10.76]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Tunisia",SOV_A3:"TUN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Tunisia",ADM0_A3:"TUN",GEOU_DIF:0,GEOUNIT:"Tunisia",GU_A3:"TUN",SU_DIF:0,SUBUNIT:"Tunisia",SU_A3:"TUN",BRK_DIFF:0,NAME:"Tunisia",NAME_LONG:"Tunisia",BRK_A3:"TUN",BRK_NAME:"Tunisia",BRK_GROUP:null,ABBREV:"Tun.",POSTAL:"TN",FORMAL_EN:"Republic of Tunisia",FORMAL_FR:null,NAME_CIAWF:"Tunisia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Tunisia",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:3,MAPCOLOR9:3,MAPCOLOR13:2,POP_EST:11403800,POP_RANK:14,GDP_MD_EST:130800,POP_YEAR:2017,LASTCENSUS:2004,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"TS",ISO_A2:"TN",ISO_A3:"TUN",ISO_A3_EH:"TUN",ISO_N3:"788",UN_A3:"788",WB_A2:"TN",WB_A3:"TUN",WOE_ID:23424967,WOE_ID_EH:23424967,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"TUN",ADM0_A3_US:"TUN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Northern Africa",REGION_WB:"Middle East & North Africa",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[9.482139926805274,30.307556057246188],[9.05560265466815,32.10269196220129],[8.439102817426118,32.50628489840082],[8.430472853233368,32.74833730725595],[7.612641635782182,33.34411489514896],[7.524481642292244,34.09737641045146],[8.140981479534304,34.65514598239379],[8.376367628623768,35.479876003555944],[8.217824334352315,36.433176988260286],[8.420964389691676,36.94642731378316],[9.509993523810607,37.349994411766545],[10.210002475636317,37.230001735984814],[10.180650262094531,36.724037787415085],[11.02886722173335,37.09210317641396],[11.100025668999251,36.899996039368915],[10.600004510143094,36.410000108377375],[10.59328
26573945138,35.94744436293281],[10.939518670300687,35.698984076473494],[10.807847120821009,34.83350718844919],[10.149592726287125,34.33077301689771],[10.339658644256616,33.78574168551532],[10.856836378633687,33.76874013929128],[11.108500603895122,33.293342800422195],[11.488787469131012,33.13699575452314],[11.432253452203696,32.368903103152874],[10.944789666394456,32.081814683555365],[10.636901482799487,31.761420803345757],[9.950225050505082,31.376069647745258],[10.056575148161699,30.961831366493527],[9.970017124072854,30.53932485607524],[9.482139926805274,30.307556057246188]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Turkey",SOV_A3:"TUR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Turkey",ADM0_A3:"TUR",GEOU_DIF:0,GEOUNIT:"Turkey",GU_A3:"TUR",SU_DIF:0,SUBUNIT:"Turkey",SU_A3:"TUR",BRK_DIFF:0,NAME:"Turkey",NAME_LONG:"Turkey",BRK_A3:"TUR",BRK_NAME:"Turkey",BRK_GROUP:null,ABBREV:"Tur.",POSTAL:"TR",FORMAL_EN:"Republic of Turkey",FORMAL_FR:null,NAME_CIAWF:"Turkey",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Turkey",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:3,MAPCOLOR9:8,MAPCOLOR13:4,POP_EST:80845215,POP_RANK:16,GDP_MD_EST:167e4,POP_YEAR:2017,LASTCENSUS:2e3,GDP_YEAR:2016,ECONOMY:"4. Emerging region: MIKT",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"TU",ISO_A2:"TR",ISO_A3:"TUR",ISO_A3_EH:"TUR",ISO_N3:"792",UN_A3:"792",WB_A2:"TR",WB_A3:"TUR",WOE_ID:23424969,WOE_ID_EH:23424969,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"TUR",ADM0_A3_US:"TUR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:7},geometry:{type:"MultiPolygon",coordinates:[[[[43.58274580259273,41.09214325618257],[43.75265791196841,40.74020091405876],[43.65643639504094,40.253563951166186],[44.4000085792887,40.00500031184228],[44.79398969908195,39.71300263117706],[44.10922529478234,39.4281362981681],[44.421402622257546,38.28128123631453],[44.22575564960053,37.97158437758935],[44.77267,37.17045],[44.77267710159502,37.170436925616876],[44.29345177590287,37.0015143906063],[43.9422587420473,37.256227525372964],[42.77912560402183,37.385263576805755],[42.34959109881177,37.2298725449041],[41.21208947120305,37.074352321921694],[40.67325931169569,37.09127635349729],[39.52258019385255,36.71605377862599],[38.699891391765874,36.71292735447233],[38.16772749202417,36.901210435527815],[37.06676110204583,36.62303620050062],[36.739494256341374,36.81752045343106],[36.6853890317318,36.259699205056464],[36.417550083163036,36.040616970355046],[36.149762811026534,35.8215347356537],[35.78208499526991,36.27499542901484],[36.160821567537,36.65060557712832],[35.5509363136284,36.56544281671137],[34.71455325698443,36.795532131490944],[34.02689497247641,36.219960028624],[32.509158156064046,36.10756378838923],[31.69959516777962,36.64427521417261],[30.621624790171126,36.677864895162344],[30.391096225717064,36.26298065850702],[29.69997562024551,36.14435740818104],[28.73290286633545,36.67683136651647],[27.641186557737313,36.658822129862784],[27.048767937943325,37.653360907535955],[26.318218214633077,38.208133246405424],[26.80470014822876,38.98576019953359],[26.170785353304325,39.46361216893649],[27.280019972449452,40.42001373957834],[28.819977654747248,40.46001129817222],[29.24000369641564,41.21999074967272],[31.145933872204495,41.08762156835709],[32.347979363745736,41.73626414648467],[33.51328291192746,42.01896006933731],[35.16770389175181,42.04022492122539],[36.9131270688421,41.33535838476433],[38.34766482926457,40.948586127275746],[39.512606642420195,41.10276276301852],[40.37343265153825,41.013672593747344],[41.55408410011066,41.53565623632757],[42.61954878110449,41.58317271581994],[43.58274580259273,41.09214325618257]]],[[[26.1170418637208,41.82690460872459],[27.13573937349048,42.14148489030134],[27.996720411905358,42.007358710287804],[28.11552452974442,41.62288605403623],[28.98844282401876,41.29993419042822],[28.806438429486775,41.054962063148565],[27.619017368284062,40.999823309893145],[27.192376743282352,40.6905657008424],[26.358009067497818,40.15199392349652],[26.0433512712726,40.6177536077432],[26.056942172965364,40.82412344010075],[26.294602085075667,40.93626129817409],[26.60419559093623,41.562114569661134],[26.1170418637208,41.82690460872459]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Taiwan",SOV_A3:"TWN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Taiwan",ADM0_A3:"TWN",GEOU_DIF:0,GEOUNIT:"Taiwan",GU_A3:"TWN",SU_DIF:0,SUBUNIT:"Taiwan",SU_A3:"TWN",BRK_DIFF:1,NAME:"Taiwan",NAME_LONG:"Taiwan",BRK_A3:"B77",BRK_NAME:"Taiwan",BRK_GROUP:null,ABBREV:"Taiwan",POSTAL:"TW",FORMAL_EN:null,FORMAL_FR:null,NAME_CIAWF:"Taiwan",NOTE_ADM0:null,NOTE_BRK:"Self admin.; Claimed by China",NAME_SORT:"Taiwan",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:5,MAPCOLOR9:7,MAPCOLOR13:2,POP_EST:23508428,POP_RANK:15,GDP_MD_EST:1127e3,POP_YEAR:2017,LASTCENSUS:-99,GDP_YEAR:2016,ECONOMY:"2. Developed region: nonG7",INCOME_GRP:"2. High income: nonOECD",WIKIPEDIA:-99,FIPS_10_:"TW",ISO_A2:"TW",ISO_A3:"TWN",ISO_A3_EH:"TWN",ISO_N3:"158",UN_A3:"-099",WB_A2:"-99",WB_A3:"-99",WOE_ID:23424971,WOE_ID_EH:23424971,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"TWN",ADM0_A3_US:"TWN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[121.77781782438993,24.3942735865194],[121.17563235889274,22.790857245367167],[120.74707970589623,21.970571397382113],[120.22008344938368,22.81486094816674],[120.1061885926124,23.556262722258236],[120.69467980355225,24.538450832613737],[121.49504438688878,25.295458889257386],[121.95124393116146,24.997595933527037],[121.77781782438993,24.3942735865194]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"United Republic of Tanzania",SOV_A3:"TZA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"United Republic of Tanzania",ADM0_A3:"TZA",GEOU_DIF:0,GEOUNIT:"Tanzania",GU_A3:"TZA",SU_DIF:0,SUBUNIT:"Tanzania",SU_A3:"TZA",BRK_DIFF:0,NAME:"Tanzania",NAME_LONG:"Tanzania",BRK_A3:"TZA",BRK_NAME:"Tanzania",BRK_GROUP:null,ABBREV:"Tanz.",POSTAL:"TZ",FORMAL_EN:"United Republic of Tanzania",FORMAL_FR:null,NAME_CIAWF:"Tanzania",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Tanzania",NAME_ALT:null,MAPCOLOR7:3,MAPCOLOR8:6,MAPCOLOR9:2,MAPCOLOR13:2,POP_EST:53950935,POP_RANK:16,GDP_MD_EST:150600,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"TZ",ISO_A2:"TZ",ISO_A3:"TZA",ISO_A3_EH:"TZA",ISO_N3:"834",UN_A3:"834",WB_A2:"TZ",WB_A3:"TZA",WOE_ID:23424973,WOE_ID_EH:23424973,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"TZA",ADM0_A3_US:"TZA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[29.339997592900346,-4.499983412294092],[29.753512404099865,-4.452389418153302],[30.11632,-4.09012],[30.50554,-3.56858],[30.75224,-3.35931],[30.74301,-3.03431],[30.52766,-2.80762],[30.469673645761223,-2.41385475710134],[30.46967,-2.41383],[30.75830895358311,-2.287250257988369],[3
20.816134881317712,-1.698914076345389],[30.419104852019245,-1.134659112150416],[30.769860000000108,-1.01455],[31.86617,-1.02736],[33.90371119710453,-.95],[34.07262,-1.05982],[37.69869,-3.09699],[37.7669,-3.67712],[39.20222,-4.67677],[38.74054,-5.90895],[38.79977,-6.47566],[39.44,-6.839999999999861],[39.47000000000014,-7.1],[39.19469,-7.7039],[39.25203,-8.00781],[39.18652,-8.48551],[39.53574,-9.112369999999885],[39.9496,-10.0984],[40.316586229110854,-10.317097752817492],[40.31659,-10.317099999999868],[39.521,-10.89688],[38.42755659358775,-11.285202325081656],[37.82764,-11.26879],[37.47129,-11.56876],[36.775150994622805,-11.594537448780805],[36.51408165868426,-11.720938002166735],[35.31239790216904,-11.439146416879147],[34.55998904799935,-11.520020033415925],[34.28,-10.16],[33.940837724096525,-9.693673841980285],[33.73972,-9.41715],[32.75937544122132,-9.23059905358906],[32.19186486179194,-8.930358981973257],[31.556348097466497,-8.762048841998642],[31.15775133695005,-8.594578747317366],[30.740009731422095,-8.34000593035372],[30.74001549655179,-8.340007419470915],[30.199996779101696,-7.079980970898163],[29.620032179490014,-6.520015150583426],[29.419992710088167,-5.939998874539434],[29.519986606572928,-5.419978936386315],[29.339997592900346,-4.499983412294092]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Uganda",SOV_A3:"UGA",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Uganda",ADM0_A3:"UGA",GEOU_DIF:0,GEOUNIT:"Uganda",GU_A3:"UGA",SU_DIF:0,SUBUNIT:"Uganda",SU_A3:"UGA",BRK_DIFF:0,NAME:"Uganda",NAME_LONG:"Uganda",BRK_A3:"UGA",BRK_NAME:"Uganda",BRK_GROUP:null,ABBREV:"Uga.",POSTAL:"UG",FORMAL_EN:"Republic of Uganda",FORMAL_FR:null,NAME_CIAWF:"Uganda",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Uganda",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:3,MAPCOLOR9:6,MAPCOLOR13:4,POP_EST:39570125,POP_RANK:15,GDP_MD_EST:84930,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"UG",ISO_A2:"UG",ISO_A3:"UGA",ISO_A3_EH:"UGA",ISO_N3:"800",UN_A3:"800",WB_A2:"UG",WB_A3:"UGA",WOE_ID:23424974,WOE_ID_EH:23424974,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"UGA",ADM0_A3_US:"UGA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[29.579466180140884,-1.341313164885626],[29.58783776217217,-.587405694179381],[29.819503208136638,-.205310153813372],[29.875778842902434,.597379868976361],[30.086153598762706,1.062312730306289],[30.46850752129029,1.583805446779706],[30.85267011894806,1.849396470543809],[31.174149204235817,2.204465236821264],[30.77334679538004,2.339883327642127],[30.83385989759381,3.509165961110341],[30.833852421715427,3.509171604222463],[31.24556,3.7819],[31.88145,3.55827],[32.68642,3.79232],[33.3900000000001,3.79],[34.005,4.249884947362048],[34.47913,3.5556],[34.59607,3.053740000000118],[35.03599,1.90584],[34.6721,1.17694],[34.18,.515],[33.893568969666944,.109813537861896],[33.90371119710453,-.95],[31.86617,-1.02736],[30.769860000000108,-1.01455],[30.419104852019245,-1.134659112150416],[29.821518588996014,-1.443322442229785],[29.579466180140884,-1.341313164885626]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Ukraine",SOV_A3:"UKR",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Ukraine",ADM0_A3:"UKR",GEOU_DIF:0,GEOUNIT:"Ukraine",GU_A3:"UKR",SU_DIF:0,SUBUNIT:"Ukraine",SU_A3:"UKR",BRK_DIFF:0,NAME:"Ukraine",NAME_LONG:"Ukraine",BRK_A3:"UKR",BRK_NAME:"Ukraine",BRK_GROUP:null,ABBREV:"Ukr.",POSTAL:"UA",FORMAL_EN:"Ukraine",FORMAL_FR:null,NAME_CIAWF:"Ukraine",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Ukraine",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:1,MAPCOLOR9:6,MAPCOLOR13:3,POP_EST:44033874,POP_RANK:15,GDP_MD_EST:352600,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"UP",ISO_A2:"UA",ISO_A3:"UKR",ISO_A3_EH:"UKR",ISO_N3:"804",UN_A3:"804",WB_A2:"UA",WB_A3:"UKR",WOE_ID:23424976,WOE_ID_EH:23424976,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"UKR",ADM0_A3_US:"UKR",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Europe",REGION_UN:"Europe",SUBREGION:"Eastern Europe",REGION_WB:"Europe & Central Asia",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[23.52707075368437,51.57845408793031],[24.00507775238418,51.617443956094405],[24.553106316839518,51.888461005249184],[25.32778771332701,51.9106
25603291855],[26.337958611768556,51.83228872334793],[27.454066196408405,51.592303371784396],[28.24161502453657,51.57222707783907],[28.61761274589225,51.42771393493484],[28.992835320763533,51.602044379271476],[29.25493818534784,51.36823436136689],[30.157363722460897,51.41613841410147],[30.555117221811457,51.31950348571566],[30.619454380014815,51.822806098022454],[30.927549269338982,52.04235342061439],[31.785992447555266,52.10167756993971],[32.15944000000016,52.06125000000014],[32.41205813978769,52.28869497334978],[32.715760532367085,52.23846548116211],[33.75269982273579,52.3350745713318],[34.39173058445709,51.768881740925906],[34.141978387190534,51.566413479206346],[34.22481570815427,51.25599315042888],[35.02218305841791,51.2075723333715],[35.37791,50.773940000000124],[35.356116163887975,50.57719737405904],[36.626167840325394,50.22559092874516],[37.39345950699516,50.38395335550365],[38.01063113785693,49.9156615260747],[38.59498823421342,49.9264619004237],[40.06904000000017,49.60105],[40.080789015469406,49.30742991799934],[39.67465,48.78382000000016],[39.89562000000021,48.23241],[39.738277622238854,47.89893707945197],[38.770570000000106,47.825620000000185],[38.255112339029864,47.54640045835691],[38.223538038899335,47.10218984637595],[37.4251371599899,47.02222056740419],[36.75985477066445,46.69870026304102],[35.82368452326489,46.64596446388714],[34.96234174982385,46.27319651954974],[35.01265897004737,45.73772519982549],[34.86179212817402,45.76818243191954],[34.73201738827845,45.96566573176062],[34.41040172853718,46.005162391728845],[33.69946184910907,46.219572831556434],[33.435988094713366,45.971917370797485],[33.29856733575474,46.08059845639781],[31.744140252415207,46.33334788673733],[31.67530724460255,46.70624502215554],[30.74874881360921,46.583100084004116],[30.377608676888883,46.03241018328572],[29.603289015427436,45.293308010431126],[29.149724969201653,45.464925442072456],[28.67977949393938,45.304030870131704],[28.23355350109904,45.48828318946829],[28.485269402792767,45.5969070501459],[28.65998742037158,45.93998688413164],[28.933717482221596,46.25883047137256],[28.862972446414062,46.43788930926383],[29.07210696789929,46.517677720722496],[29.170653924279804,46.37926239682872],[29.759971958136394,46.34998769793536],[30.024658644335375,46.42393667254504],[29.838210076626297,46.52532583270169],[29.908851759569302,46.67436066343146],[29.559674106573112,46.928582872091326],[29.415135125452736,47.34664520933258],[29.05086795422727,47.5102269557525],[29.12269819511303,47.849095160506465],[28.670891147585166,48.1181485052341],[28.259546746541844,48.15556224221342],[27.522537469195157,48.467119452501116],[26.857823520624805,48.368210761094495],[26.619336785597795,48.22072622333347],[26.19745039236693,48.22088125263035],[25.9459411964024,47.987148749374214],[25.20774336111299,47.89105642352747],[24.866317172960578,47.737525743188314],[24.40205610525038,47.981877753280514],[23.76095828623741,47.985598456405455],[23.142236362406805,48.09634105080695],[22.710531447040495,47.88219391538941],[22.640819939878725,48.150239569687415],[22.085608351334855,48.42226430927179],[22.28084191253356,48.82539215758067],[22.558137648211755,49.085738023467144],[22.776418898212626,49.02739533140962],[22.518450148211603,49.47677358661974],[23.426508416444392,50.30850576435745],[23.92275719574326,50.42488108987874],[24.029985792748903,50.70540660257518],[23.52707075368437,51.57845408793031]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Uruguay",SOV_A3:"URY",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Uruguay",ADM0_A3:"URY",GEOU_DIF:0,GEOUNIT:"Uruguay",GU_A3:"URY",SU_DIF:0,SUBUNIT:"Uruguay",SU_A3:"URY",BRK_DIFF:0,NAME:"Uruguay",NAME_LONG:"Uruguay",BRK_A3:"URY",BRK_NAME:"Uruguay",BRK_GROUP:null,ABBREV:"Ury.",POSTAL:"UY",FORMAL_EN:"Oriental Republic of Uruguay",FORMAL_FR:null,NAME_CIAWF:"Uruguay",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Uruguay",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:2,MAPCOLOR9:2,MAPCOLOR13:10,POP_EST:3360148,POP_RANK:12,GDP_MD_EST:73250,POP_YEAR:2017,LASTCENSUS:2004,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"UY",ISO_A2:"UY",ISO_A3:"URY",ISO_A3_EH:"URY",ISO_N3:"858",UN_A3:"858",WB_A2:"UY",WB_A3:"URY",WOE_ID:23424979,WOE_ID_EH:23424979,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"URY",ADM0_A3_US:"URY",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[-58.42707414410439,-33.909454441057576],[-58.34961117209889,-33.26318897881542],[-58.13264767112145,-33.040566908502015],[-58.14244035504076,-32.044503676076154],[-57.87493730328188,-31.016556084926208],[-57.625133429583,-30.216294854454233],[-56.976025763564735,-30.109686374636127],[-55.97324459494094,-30.883075860316303],[-55.601510179249345,-30.853878676071393],[-54.57245154480512,-31.494511407193748],[-53.78795162618219,-32.047242526987624],[-53.209588995971544,-32.727666110974724],[-53.6505439927181,-33.20200408298183],[-53.373661668498244,-33.768377780900764],[-53.806425950726535,-34.39681487400223],[-54.93586605489773,-34.952646579733624],[-55.67408972840329,-34.75265878676407],[-56.21529700379607,-34.85983570733742],[-57.1396850246331,-34.430456231424245],[-57.81786068381551,-34.4625472958775],[-58.42707414410439,-33.909454441057576]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"United States of America",SOV_A3:"US1",ADM0_DIF:1,LEVEL:2,TYPE:"Country",ADMIN:"United States of America",ADM0_A3:"USA",GEOU_DIF:0,GEOUNIT:"United States of America",GU_A3:"USA",SU_DIF:0,SUBUNIT:"United States",SU_A3:"USA",BRK_DIFF:0,NAME:"United States of America",NAME_LONG:"United States",BRK_A3:"USA",BRK_NAME:"United States",BRK_GROUP:null,ABBREV:"U.S.A.",POSTAL:"US",FORMAL_EN:"United States of America",FORMAL_FR:null,NAME_CIAWF:"United States",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"United States of America",NAME_ALT:null,MAPCOLOR7:4,MAPCOLOR8:5,MAPCOLOR9:1,MAPCOLOR13:1,POP_EST:326625791,POP_RANK:17,GDP_MD_EST:1856e4,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"1. Developed region: G7",INCOME_GRP:"1. High income: OECD",WIKIPEDIA:0,FIPS_10_:"US",ISO_A2:"US",ISO_A3:"USA",ISO_A3_EH:"USA",ISO_N3:"840",UN_A3:"840",WB_A2:"US",WB_A3:"USA",WOE_ID:23424977,WOE_ID_EH:23424977,WOE_
2NOTE:"Exact WOE match as country",ADM0_A3_IS:"USA",ADM0_A3_US:"USA",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"North America",REGION_UN:"Americas",SUBREGION:"Northern America",REGION_WB:"North America",NAME_LEN:24,LONG_LEN:13,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:5.7},geometry:{type:"MultiPolygon",coordinates:[[[[-122.84,49.00000000000014],[-120,49],[-117.03121,49],[-116.04818,49.00000000000014],[-113,49.00000000000014],[-110.05,49],[-107.05,49],[-104.04826,48.99986],[-100.65,49.00000000000014],[-97.22872000000478,49.0007],[-95.15906950917204,49],[-95.15609,49.38425],[-94.81758,49.38905],[-94.64,48.84],[-94.32914,48.67074],[-93.63087,48.60926],[-92.61,48.45],[-91.64,48.14],[-90.83,48.27],[-89.6,48.01000000000013],[-89.27291744663665,48.019808254582784],[-88.3781141832867,48.30291758889368],[-87.43979262330029,47.94],[-86.46199083122823,47.55333801939196],[-85.6523632474034,47.22021881773054],[-84.87607988151493,46.90008331968241],[-84.77923824739989,46.637101955749074],[-84.54374874544584,46.538684190449175],[-84.6049,46.4396],[-84.3367,46.408770000000146],[-84.14211951367335,46.51222585711568],[-84.09185126416145,46.27541860613829],[-83.89076534700573,46.11692698829907],[-83.61613094759056,46.116926988298985],[-83.46955074739469,45.994686387712505],[-83.59285071484305,45.81689362241258],[-82.55092464875824,45.34751658790549],[-82.33776312543114,44.44000000000011],[-82.13764238150395,43.57108755144003],[-82.43,42.98],[-82.9,42.43],[-83.12,42.08],[-83.14199968131263,41.97568105729286],[-83.02981014680702,41.832795722005955],[-82.69008928092026,41.675105088867355],[-82.4392777167916,41.675105088867355],[-81.27774654816713,42.20902598730689],[-80.24744767934791,42.36619985612259],[-78.93936214874378,42.86361135514795],[-78.92,42.965],[-79.01,43.27],[-79.17167355011185,43.46633942318425],[-78.72027991404235,43.6250894231849],[-77.7378850979577,43.62905558936333],[-76.82003414580555,43.62878428809378],[-76.5,44.018458893758634],[-76.375,44.09631],[-75.31821,44.81645],[-74.867,45.00048000000015],[-73.34783,45.00738],[-71.50506,45.0082],[-71.405,45.255000000000166],[-71.08482,45.3052400000002],[-70.66,45.46],[-70.305,45.915],[-69.99997,46.69307],[-69.237216,47.447781],[-68.905,47.185000000000116],[-68.23444,47.35486],[-67.79046,47.06636],[-67.79134,45.70281],[-67.13741,45.13753],[-66.96466,44.80970000000019],[-68.03252,44.3252],[-69.06,43.9800000000001],[-70.11617,43.684050000000184],[-70.64547563341105,43.09023834896399],[-70.81489,42.8653],[-70.825,42.335],[-70.49499999999989,41.805],[-70.08,41.78],[-70.185,42.145000000000124],[-69.8849699999999,41.92283],[-69.96503,41.63717000000011],[-70.64,41.475],[-71.12039,41.4944500000002],[-71.86,41.32000000000011],[-72.295,41.27],[-72.87643,41.22065],[-73.71,40.931102351654516],[-72.2412599999999,41.11948000000018],[-71.945,40.93000000000012],[-73.345,40.63000000000011],[-73.982,40.628],[-73.952325,40.75075],[-74.25671,40.47351],[-73.96244,40.42763],[-74.17838,39.70926],[-74.90604,38.93954],[-74.98041,39.1964],[-75.20002,39.24845000000013],[-75.52805,39.49850000000012],[-75.32,38.96],[-75.07183476478986,38.782032230179226],[-75.05673,38.40412],[-75.37747,38.01551],[-75.94023,37.21689000000012],[-76.03127,37.2566],[-75.72204999999988,37.93705000000014],[-76.23287,38.319215],[-76.35,39.15],[-76.542725,38.71761500000014],[-76.32933,38.08326],[-76.98999793161352,38.239991766913334],[-76.30162,37.91794499999989],[-76.25874,36.9664],[-75.9718,36.89726],[-75.86804,36.55125],[-75.72749,35.55074000000016],[-76.36318,34.808540000000164],[-77.39763499999987,34.51201],[-78.05496,33.92547],[-78.55435,33.86133000000015],[-79.06067,33.49395],[-79.20357,33.15839],[-80.301325,32.50935500000011],[-80.86498,32.0333],[-81.33629,31.44049],[-81.49042,30.729990000000157],[-81.31371,30.03552],[-80.98,29.18000000000015],[-80.53558499999986,28.47213],[-80.52999999999989,28.04],[-80.05653928497762,26.88],[-80.088015,26.205765],[-80.13156,25.816775],[-80.38103,25.20616],[-80.68,25.08],[-81.17213,25.20126],[-81.33,25.64],[-81.70999999999987,25.87],[-82.24,26.73000000000016],[-82.70515,27.495040000000103],[-82.85526,27.88624],[-82.65,28.55],[-82.93,29.1],[-83.70959,29.9365600000001],[-84.1,30.09],[-85.10882,29.6361500000001],[-85.28784,29.68612000000016],[-85.7731,30.152610000000152],[-86.39999999999986,30.400000000000148],[-87.53036,30.27433],[-88.41782,30.3849],[-89.18049,30.31598],[-89.59383117841983,30.159994004836875],[-89.413735,29.89419],[-89.43,29.48864],[-89.21767,29.29108],[-89.40823,29.15961],[-89.77928,29.307140000000174],[-90.15463,29.11743],[-90.880225,29.14853500000015],[-91.626785,29.677000000000163],[-92.49906,29.5523],[-93.22637,29.78375],[-93.84842,29.71363000000011],[-94.69,29.48000000000016],[-95.
260026,28.73863],[-96.59404,28.30748],[-97.14,27.83],[-97.37,27.38],[-97.38,26.69],[-97.33,26.21000000000012],[-97.14,25.87],[-97.53,25.84],[-98.24,26.06],[-99.02,26.37],[-99.3,26.84],[-99.52,27.54],[-100.11,28.110000000000156],[-100.45584,28.69612000000012],[-100.9576,29.380710000000164],[-101.6624,29.7793],[-102.48,29.76],[-103.11,28.97],[-103.94,29.27],[-104.45697,29.57196],[-104.70575,30.12173],[-105.03737,30.64402],[-105.63159,31.08383],[-106.1429,31.39995],[-106.5075899999999,31.75452],[-108.24,31.754853718166373],[-108.24194,31.34222],[-109.035,31.341940000000136],[-111.02361,31.33472],[-113.30498,32.03914000000012],[-114.815,32.52528],[-114.72139,32.72082999999989],[-115.99135,32.61239],[-117.12775999999987,32.53534],[-117.29593769127396,33.04622461520384],[-117.944,33.621236431201424],[-118.41060227589749,33.74090922312442],[-118.51989482279978,34.02778157757578],[-119.081,34.07799999999989],[-119.43884064201667,34.34847717828424],[-120.36778,34.44711],[-120.62286,34.60855],[-120.74433,35.15686000000014],[-121.71457,36.161529999999885],[-122.54747,37.551760000000144],[-122.51201,37.78339],[-122.95319,38.11371000000014],[-123.7272,38.951660000000146],[-123.86517,39.76699],[-124.39807,40.3132],[-124.17886,41.142020000000144],[-124.2137,41.99964000000017],[-124.53284,42.76599000000013],[-124.14214,43.70838],[-124.020535,44.615895],[-123.8989299999999,45.52341],[-124.079635,46.86475],[-124.3956699999999,47.72017000000014],[-124.68721008300781,48.18443298339858],[-124.56610107421875,48.37971496582034],[-123.12,48.04],[-122.58735999999988,47.096],[-122.34,47.36],[-122.5,48.18],[-122.84,49.00000000000014]]],[[[-140.98598761037567,69.71199839952632],[-140.986,69.712],[-140.9925,66.00003],[-140.99778,60.30639],[-140.013,60.27682],[-139.039,60],[-138.34089,59.56211],[-137.4525,58.905],[-136.47972,59.46389],[-135.47583,59.78778],[-134.945,59.27056000000016],[-134.27111,58.86111],[-133.35556,58.41028],[-132.73042,57.69289],[-131.70781,56.55212],[-130.00778,55.91583000000011],[-129.98,55.285],[-130.53611,54.80278],[-130.53610895273678,54.802754476799336],[-130.53611018946734,54.80275340434943],[-131.08581823797215,55.17890615500207],[-131.9672114671423,55.497775580459006],[-132.25001074285956,56.3699962428974],[-133.53918108435641,57.17888743756217],[-134.07806292029602,58.12306753196694],[-135.03821103227904,58.187714748763966],[-136.62806230995477,58.212209377670405],[-137.80000627968602,58.499995429103734],[-139.867787041413,59.53776154238918],[-140.82527381713302,59.72751740176511],[-142.57444353556446,60.08444651960494],[-143.9588809948799,59.99918040632343],[-145.9255568168279,60.45860972761423],[-147.11437394914668,60.88465607364466],[-148.22430620012764,60.672989406977194],[-148.01806555885085,59.97832896589367],[-148.57082251686086,59.91417267520333],[-149.72785783587585,59.70565827090559],[-150.60824337461645,59.36821116803944],[-151.71639278868332,59.15582103131993],[-151.85943315326725,59.744984035879554],[-151.4097190012472,60.72580272077934],[-150.3469414947325,61.033587551509896],[-150.62111080625706,61.2844249538544],[-151.89583919981686,60.72719798445124],[-152.57832984109558,60.061657212964235],[-154.01917212625767,59.35027944603431],[-153.2875113596532,58.86472768821983],[-154.23249243875847,58.14637360293057],[-155.30749142151024,57.727794501366276],[-156.30833472392308,57.422774359763594],[-156.5560973785464,56.97998484967067],[-158.1172165598678,56.46360809999422],[-158.43332129619716,55.994153550838575],[-159.60332739971744,55.56668610292016],[-160.28971961163433,55.643580634170604],[-161.2230476552578,55.36473460552352],[-162.23776607974105,55.02418691672014],[-163.0694465810464,54.68973704692712],[-164.7855692210272,54.404173082082195],[-164.9422263255201,54.57222483989537],[-163.84833960676568,55.039431464246064],[-162.87000139061598,55.34804311789324],[-161.8041749745961,55.89498647727038],[-160.56360470278122,56.00805451112498],[-160.07055986228448,56.4180553249287],[-158.68444291891953,57.016675116597895],[-158.46109737855406,57.21692129172882],[-157.72277035218394,57.57000051536309],[-157.55027442119365,58.32832632103026],[-157.041674974577,58.91888458926175],[-158.19473120830557,58.61580231386978],[-158.51721798402306,58.78778148053735],[-159.05860612692882,58.42418610293163],[-159.7116670400174,58.93139028587629],[-159.9812888255002,58.57254914004167],[-160.3552711659965,59.07112335879367],[
2-161.35500342511511,58.670837714260784],[-161.96889360252635,58.671664537177406],[-162.05498653872468,59.26692536074748],[-161.87417070213542,59.63362132429063],[-162.51805904849215,59.98972361921386],[-163.81834143782024,59.79805573184342],[-164.66221757714655,60.2674844427826],[-165.34638770247483,60.50749563256235],[-165.35083187565192,61.07389516869753],[-166.12137915755605,61.50001902937626],[-165.7344518707706,62.07499685327184],[-164.91917863671793,62.63307648380797],[-164.56250790103934,63.146378485762995],[-163.7533324859971,63.2194489610238],[-163.0672244944579,63.059458726648046],[-162.26055538638178,63.541935736741124],[-161.53444983624865,63.45581696232679],[-160.7725066803211,63.76610810002322],[-160.95833513084264,64.22279857040272],[-161.51806840721218,64.40278758407527],[-160.77777767641484,64.78860382756645],[-161.39192623598768,64.77723501246237],[-162.45305009666893,64.55944468856816],[-162.75778601789418,64.33860545516876],[-163.5463942128843,64.55916046819053],[-164.96082984114517,64.4469450954688],[-166.4252882558645,64.68667206487066],[-166.84500423893914,65.08889557561449],[-168.11056006576715,65.66999705673678],[-166.70527116602196,66.08831777613935],[-164.4747096425755,66.57666006129753],[-163.65251176659567,66.57666006129753],[-163.78860165103626,66.0772073431967],[-161.67777442121013,66.11611969671245],[-162.48971452538007,66.73556509059514],[-163.7197169667912,67.11639455837005],[-164.43099138085654,67.61633820257774],[-165.39028683170676,68.04277212185028],[-166.76444068099607,68.35887685817971],[-166.2047074046267,68.8830309109162],[-164.4308105133435,68.91553538682777],[-163.16861365461452,69.37111481391284],[-162.93056616926202,69.8580618353993],[-161.90889726463558,70.33332998318767],[-160.93479651593367,70.44768992784961],[-159.03917578838713,70.89164215766888],[-158.11972286683397,70.82472117785107],[-156.5808245513981,71.35776357694178],[-155.0677902903243,71.14777639432364],[-154.3441652089412,70.69640859647015],[-153.9000062733926,70.88998851183564],[-152.21000606993528,70.82999217394487],[-152.27000240782615,70.6000062120298],[-150.7399924387445,70.43001658800566],[-149.72000301816752,70.53001048449048],[-147.61336157935705,70.21403493924183],[-145.68998980022536,70.12000967068678],[-144.92001095907642,69.98999176704052],[-143.58944618042517,70.15251414659835],[-142.07251034871354,69.85193817817267],[-140.98598752156073,69.71199839952632],[-140.98598761037567,69.71199839952632]]],[[[-155.54211,19.08348],[-155.68817,18.91619],[-155.93665,19.05939],[-155.90806,19.33888],[-156.07347,19.70294],[-156.02368,19.81422],[-155.85008,19.97729],[-155.91907,20.17395],[-155.86108,20.26721],[-155.78505,20.2487],[-155.40214,20.07975],[-155.22452,19.99302],[-155.06226,19.8591],[-154.80741,19.50871],[-154.83147,19.45328],[-155.22217,19.23972],[-155.54211,19.08348]]],[[[-156.07926,20.64397],[-156.41445,20.57241],[-156.58673,20.783],[-156.70167,20.8643],[-156.71055,20.92676],[-156.61258,21.01249],[-156.25711,20.91745],[-155.99566,20.76404],[-156.07926,20.64397]]],[[[-156.75824,21.17684],[-156.78933,21.06873],[-157.32521,21.09777],[-157.25027,21.21958],[-156.75824,21.17684]]],[[[-157.65283,21.32217],[-157.70703,21.26442],[-157.7786,21.27729],[-158.12667,21.31244],[-158.2538,21.53919],[-158.29265,21.57912],[-158.0252,21.71696],[-157.94161,21.65272],[-157.65283,21.32217]]],[[[-159.34512,21.982],[-159.46372,21.88299],[-159.80051,22.06533],[-159.74877,22.1382],[-159.5962,22.23618],[-159.36569,22.21494],[-159.34512,21.982]]],[[[-153.0063140533369,57.11584219016592],[-154.00509029845813,56.73467682558109],[-154.51640275777007,56.992748928446645],[-154.67099280497115,57.46119578717253],[-153.76277950744145,57.81657461204372],[-153.22872941792116,57.96896841087246],[-152.5647906158351,57.901427313867],[-152.14114722390642,57.59105866152203],[-153.0063140533369,57.11584219016592]]],[[[-165.57916419173358,59.909986884187504],[-166.19277014876727,59.75444082298904],[-166.848337368822,59.94140615502101],[-167.45527706609005,60.21306915957942],[-166.46779212142462,60.38416982689782],[-165.67442969466367,60.29360687930628],[-165.57916419173358,59.909986884187504]]],[[[-171.7316568675394,63.78251536727595],[-171.11443356024532,63.59219106714494],[-170.4911124339407,63.69497549097355],[-169.68250545965356,63.43111562769121],[-168.68943946030066,63.29750621200054],[-168.7719408844547,63.18859813094548],[-169.52943986720513,62.976931464277925],[-170.29055620021597,63.194437567794495],[-170.67138566799096,63.375821845138915],[-171.55306311753876,63.31778921167512],[-171.79111060289125,63.40584585230053],[-171.7316568675394,63.78251536727595]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Uzbekistan",SOV_A3:"UZB",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Uzbekistan",ADM0_A3:"UZB",GEOU_DIF:0,GEOUNIT:"Uzbekistan",GU_A3:"UZB",SU_DIF:0,SUBUNIT:"Uzbekistan",SU_A3:"UZB",BRK_DIFF:0,NAME:"Uzbekistan",NAME_LONG:"Uzbekistan",BRK_A3:"UZB",BRK_NAME:"Uzbekistan",BRK_GROUP:null,ABBREV:"Uzb.",POSTAL:"UZ",FORMAL_EN:"Republic of Uzbekistan",FORMAL_FR:null,NAME_CIAWF:"Uzbekistan",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Uzbekistan",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:3,MAPCOLOR9:5,MAPCOLOR13:4,POP_EST:29748859,POP_RANK:15,GDP_MD_EST:202300,POP_YEAR:2017,LASTCENSUS:1989,GDP_YEAR:2016,ECONOMY:"6. Developing region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"UZ",ISO_A2:"UZ",ISO_A3:"UZB",ISO_A3_EH:"UZB",ISO_N3:"860",UN_A3:"860",WB_A2:"UZ",WB_A3:"UZB",WOE_ID:23424980,WOE_ID_EH:23424980,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"UZB",ADM0_A3_US:"UZB",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Central Asia",REGION_WB:"Europe & Central Asia",NAME_LEN:10,LONG_LEN:10,ABBREV_LEN:4,TINY:5,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[67.82999962755952,37.144994004864685],[67.07578209825962,37.35614390720929],[66.51860680528867,37.36278432875879],[66.54615034370022,37.97468496352687],[65.2159989765074,38.4026950139843],[64.17022301621677,38.892406724598246],[63.51801476426103,39.36325653742564],[62.374260288345006,40.05388621679039],[61.88271406438469,41.084856879229406],[61.54717898951356,41.266370347654615],[60.465952996670694,41.22032664648255],[60.083340691981675,41.425146185871405],[59.976422153569786,42.22308197689021],[58.62901085799146,42.75155101172305],[57.78652998233708,42.17055288346552],[56.932215203687804,41.826026109375604],[57.0963912290791,41.32231008561057],[55.96819135928291,41.30864166926936],[55.928917270741096,44.99585846615911],[58.50312706892845,45.586804307632974],[58.68998904809581,45.50001373959873],[60.23997195825834,44.78403677019473],[61.05831994003245,44.40581696225051],[62.01330040878625,43.50447663021565],[63.18578698105657,43.650074978198006],[64.90082441595928,43.72808055274258],[66.09801232286509,42.997660020513095],[66.02339155463562,41.99464630794398],[66.51064863471572,41.98764415136844],[66.71404707221652,41.1684435084615],[67.98585574735182,41.135990708982206],[68.25989586779562,40.6623245305949],[68.63248294462002,40.66868073176681],[69.07002729683524,41.38424428971234],[70.3889648782208,42.08130768489745],[70.96231489449914,42.266154283205495],[71.25924767444823,42.16771067968946],[70.42002241402821,41.51999827734314],[71.1578585142916,41.14358714452912],[71.87011478057047,41.392900092121266],[73.05541710804917,40.866033026689465],[71.77487511585656,40.14584442805378],[71.01419803252017,40.24436554621823],[70.60140669137269,40.21852733007229],[70.45815962105962,40.49649485937029],[70.66662234892505,40.960213324541414],[69.32949466337283,40.72782440852485],[69.0116329283455,40.08615814875667],[68.53641645698943,39.53345286717894],[67.70142866401736,39.58047842056453],[67.44221967964131,39.140143541005486],[68.17602501818592,38.901553453113905],[68.39203250516596,38.15702525486874],[67.82999962755952,37.144994004864685]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Venezuela",SOV_A3:"VEN",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Venezuela",ADM0_A3:"VEN",GEOU_DIF:0,GEOUNIT:"Venezuela",GU_A3:"VEN",SU_DIF:0,SUBUNIT:"Venezuela",SU_A3:"VEN",BRK_DIFF:0,NAME:"Venezuela",NAME_LONG:"Venezuela",BRK_A3:"VEN",BRK_NAME:"Venezuela",BRK_GROUP:null,ABBREV:"Ven.",POSTAL:"VE",FORMAL_EN:"Bolivarian Republic of Venezuela",FORMAL_FR:"República Bolivariana de Venezuela",NAME_CIAWF:"Venezuela",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Venezuela, RB",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:3,MAPCOLOR9:1,MAPCOLOR13:4,POP_EST:31304016,POP_RANK:15,GDP_MD_EST:468600,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"VE",ISO_A2:"VE",ISO_A3:"VEN",ISO_A3_EH:"VEN",ISO_N3:"862",UN_A3:"862",WB_A2:"VE",WB_A3:"VEN",WOE_ID:23424982,WOE_ID_EH:23424982,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"VEN",ADM0_A3_US:"VEN",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"South America",REGION_UN:"Americas",SUBREGION:"South America",REGION_WB:"Latin America & Caribbean",NAME_LEN:9,LONG_LEN:9,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:7.5},geometry:{type:"Polygon",coordinates:[[[-60.73357418480372,5.200277207861901],[-60.601179165271944,4.91809804933213],[-60.96689327660154,4.536467596856639],[-62.08542965355913,4.162123521334308],[-62.804533047116706,4.006965033377952],[-63.093197597899106,3.770571193858785],[-63.88834286157416,4.020530096854571],[-64.62865943058755,4.14848094320925],[-64.81606401229402,4.056445217297423],[-64.3684944322141,3.797210394705246],[-64.40882788761792,3.126786200366624],[-64.2699991522658,2.497005520025567],[-63.42286739770512,2.411067613124175],[-63.368788011311665,2.200899562993129],[-64.08308549666609,1.91636912679408],[-64.19930579289051,1.49285492594602],[-64.61101192895987,1.328730576987042],[-65.35471330428837,1.0952822941085],[-65.54826738143757,.78925446207603],[-66.32576514348496,.724452215982012],[-66.87632585312258,1.253360500489336],[-67.18129431829307,2.250638129074062],[-67.44709204778631,2.600280869960869],[-6
27.8099381171237,2.820655015469569],[-67.30317318385345,3.31845408773718],[-67.33756384954368,3.542342230641722],[-67.62183590358129,3.839481716319995],[-67.82301225449355,4.503937282728899],[-67.74469662135522,5.221128648291668],[-67.52153194850275,5.556870428891969],[-67.34143958196557,6.095468044454023],[-67.69508724635502,6.267318020040647],[-68.26505245631823,6.153268133972475],[-68.98531856960236,6.206804917826858],[-69.38947994655712,6.099860541198836],[-70.09331295437242,6.96037649172311],[-70.67423356798152,7.087784735538719],[-71.96017574734864,6.991614895043539],[-72.19835242378188,7.340430813013683],[-72.44448727078807,7.423784898300482],[-72.47967892117885,7.632506008327354],[-72.36090064155597,8.002638454617895],[-72.43986223009796,8.405275376820029],[-72.6604947577681,8.625287787302682],[-72.7887298245004,9.085027167187334],[-73.30495154488005,9.151999823437606],[-73.02760413276957,9.736770331252444],[-72.9052860175347,10.450344346554772],[-72.61465776232521,10.821975409381778],[-72.22757544624294,11.10870209395324],[-71.97392167833829,11.60867157637712],[-71.3315836249503,11.776284084515808],[-71.36000566271082,11.539993597861212],[-71.94704993354651,11.423282375530022],[-71.62086829292019,10.969459947142795],[-71.63306393094109,10.446494452349029],[-72.07417395698451,9.865651353388373],[-71.69564409044654,9.072263088411248],[-71.26455929226773,9.137194525585983],[-71.03999935574339,9.859992784052409],[-71.35008378771079,10.211935126176215],[-71.40062333849224,10.968969021036015],[-70.15529883490652,11.37548167566004],[-70.29384334988103,11.846822414594214],[-69.94324459499683,12.162307033736099],[-69.58430009629747,11.459610907431212],[-68.88299923366445,11.443384507691563],[-68.23327145045873,10.885744126829946],[-68.19412655299763,10.554653225135922],[-67.29624854192633,10.54586823164631],[-66.227864142508,10.648626817258688],[-65.65523759628175,10.200798855017323],[-64.89045223657817,10.0772146671913],[-64.32947872583374,10.38959870039568],[-64.31800655786495,10.64141795495398],[-63.07932247582873,10.7017243514386],[-61.880946010980196,10.715625311725104],[-62.73011898461641,10.420268662960906],[-62.388511928950976,9.94820445397464],[-61.58876746280194,9.873066921422264],[-60.83059668643172,9.381339829948942],[-60.67125240745973,8.580174261911878],[-60.15009558779618,8.602756862823426],[-59.758284878159195,8.367034816924047],[-60.5505879380582,7.779602972846178],[-60.637972785063766,7.414999904810855],[-60.2956680975624,7.043911444522919],[-60.54399919294099,6.856584377464883],[-61.15933631045648,6.696077378766319],[-61.13941504580795,6.234296779806144],[-61.410302903881956,5.959068101419618],[-60.73357418480372,5.200277207861901]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"Vietnam",SOV_A3:"VNM",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Vietnam",ADM0_A3:"VNM",GEOU_DIF:0,GEOUNIT:"Vietnam",GU_A3:"VNM",SU_DIF:0,SUBUNIT:"Vietnam",SU_A3:"VNM",BRK_DIFF:0,NAME:"Vietnam",NAME_LONG:"Vietnam",BRK_A3:"VNM",BRK_NAME:"Vietnam",BRK_GROUP:null,ABBREV:"Viet.",POSTAL:"VN",FORMAL_EN:"Socialist Republic of Vietnam",FORMAL_FR:null,NAME_CIAWF:"Vietnam",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Vietnam",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:6,MAPCOLOR9:5,MAPCOLOR13:4,POP_EST:96160163,POP_RANK:16,GDP_MD_EST:594900,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"VM",ISO_A2:"VN",ISO_A3:"VNM",ISO_A3_EH:"VNM",ISO_N3:"704",UN_A3:"704",WB_A2:"VN",WB_A3:"VNM",WOE_ID:23424984,WOE_ID_EH:23424984,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"VNM",ADM0_A3_US:"VNM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"South-Eastern Asia",REGION_WB:"East Asia & Pacific",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:5,TINY:2,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:2,MAX_LABEL:7},geometry:{type:"Polygon",coordinates:[[[102.17043582561358,22.464753119389304],[102.7069922221001,22.708795070887675],[103.50451460166056,22.70375661873921],[104.47685835166448,22.819150092046968],[105.3292094258866,23.352063300056898],[105.81124718630522,22.976892401617903],[106.72540327354844,22.794267889898407],[106.56727339073532,22.21820486092477],[107.04342003787261,21.811898912029932],[108.05018029178294,21.55237986906012],[106.7150679870901,20.69685069425202],[105.88168216351903,19.752
2050482659698],[105.66200564984631,19.05816518806057],[106.42681684776602,18.004120998603227],[107.36195356651974,16.697456569887052],[108.26949507042963,16.07974233648615],[108.87710656131748,15.27669057867044],[109.33526981001722,13.426028347217724],[109.20013593957398,11.666859239137764],[108.36612999881545,11.008320624226272],[107.22092858279524,10.364483954301832],[106.40511274620343,9.53083974856932],[105.15826378786511,8.599759629750494],[104.79518517458239,9.241038316276502],[105.07620161338562,9.918490505406808],[104.33433475140347,10.48654368737523],[105.19991499229235,10.889309800658097],[106.24967003786946,10.961811835163587],[105.81052371625313,11.567614650921229],[107.49140302941089,12.337205918827948],[107.61454796756243,13.535530707244206],[107.38272749230109,14.202440904186972],[107.5645251811039,15.20217316330556],[107.3127059265456,15.90853831630318],[106.55600792849569,16.604283962464805],[105.92576216026403,17.48531545660896],[105.09459842328152,18.66697459561108],[103.89653201702671,19.265180975821806],[104.18338789267894,19.62466807706022],[104.8225736836971,19.886641750563882],[104.43500044150805,20.75873322192153],[103.20386111858645,20.76656220141375],[102.75489627483466,21.675137233969465],[102.17043582561358,22.464753119389304]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:4,SOVEREIGNT:"Vanuatu",SOV_A3:"VUT",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Vanuatu",ADM0_A3:"VUT",GEOU_DIF:0,GEOUNIT:"Vanuatu",GU_A3:"VUT",SU_DIF:0,SUBUNIT:"Vanuatu",SU_A3:"VUT",BRK_DIFF:0,NAME:"Vanuatu",NAME_LONG:"Vanuatu",BRK_A3:"VUT",BRK_NAME:"Vanuatu",BRK_GROUP:null,ABBREV:"Van.",POSTAL:"VU",FORMAL_EN:"Republic of Vanuatu",FORMAL_FR:null,NAME_CIAWF:"Vanuatu",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Vanuatu",NAME_ALT:null,MAPCOLOR7:6,MAPCOLOR8:3,MAPCOLOR9:7,MAPCOLOR13:3,POP_EST:282814,POP_RANK:10,GDP_MD_EST:723,POP_YEAR:2017,LASTCENSUS:2009,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"NH",ISO_A2:"VU",ISO_A3:"VUT",ISO_A3_EH:"VUT",ISO_N3:"548",UN_A3:"548",WB_A2:"VU",WB_A3:"VUT",WOE_ID:23424907,WOE_ID_EH:23424907,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"VUT",ADM0_A3_US:"VUT",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Oceania",REGION_UN:"Oceania",SUBREGION:"Melanesia",REGION_WB:"East Asia & Pacific",NAME_LEN:7,LONG_LEN:7,ABBREV_LEN:4,TINY:2,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:4,MAX_LABEL:9},geometry:{type:"MultiPolygon",coordinates:[[[[167.84487674384505,-16.466333103097128],[167.5151811058229,-16.597849623279956],[167.18000776597782,-16.159995212470932],[167.21680138576963,-15.89184620530844],[167.84487674384505,-16.466333103097128]]],[[[167.1077124372015,-14.933920179913926],[167.27002811103026,-15.740020847234845],[167.0012073102479,-15.61460214606248],[166.79315799384094,-15.668810723536694],[166.64985924709552,-15.392703545801183],[166.62913699774649,-14.626497084209575],[167.1077124372015,-14.933920179913926]]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Yemen",SOV_A3:"YEM",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Yemen",ADM0_A3:"YEM",GEOU_DIF:0,GEOUNIT:"Yemen",GU_A3:"YEM",SU_DIF:0,SUBUNIT:"Yemen",SU_A3:"YEM",BRK_DIFF:0,NAME:"Yemen",NAME_LONG:"Yemen",BRK_A3:"YEM",BRK_NAME:"Yemen",BRK_GROUP:null,ABBREV:"Yem.",POSTAL:"YE",FORMAL_EN:"Republic of Yemen",FORMAL_FR:null,NAME_CIAWF:"Yemen",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Yemen, Rep.",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:3,MAPCOLOR9:3,MAPCOLOR13:11,POP_EST:28036829,POP_RANK:15,GDP_MD_EST:73450,POP_YEAR:2017,LASTCENSUS:2004,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"YM",ISO_A2:"YE",ISO_A3:"YEM",ISO_A3_EH:"YEM",ISO_N3:"887",UN_A3:"887",WB_A2:"RY",WB_A3:"YEM",WOE_ID:23425002,WOE_ID_EH:23425002,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"YEM",ADM0_A3_US:"YEM",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Asia",REGION_UN:"Asia",SUBREGION:"Western Asia",REGION_WB:"Middle East & North Africa",NAME_LEN:5,LONG_LEN:5,ABBREV_LEN:4,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[52.00000980002224,19.0000033635161],[52.78218427919205,17.349742336491232],[53.10857262554751,16.651051133688924],[52.38520592632588,16.382411200419654],[52.19172936382509,15.93843313238402],[52.1681649107,15.597420355689948],[51.172515089732485,15.175249742081492],[49.57457645040315,14.708766587782748],[48.67923058451416,14.00320241948566],[48.23894738
2138742,13.948089504446372],[47.938914015500785,14.007233181204427],[47.354453566279716,13.592219753468383],[46.717076450391744,13.39969920496502],[45.87759280781027,13.347764390511685],[45.62505008319988,13.290946153206763],[45.406458774605255,13.026905422411433],[45.14435591002086,12.95393830001531],[44.989533318874415,12.69958690027471],[44.49457645038285,12.721652736863348],[44.17511274595449,12.585950425664876],[43.48295861183713,12.636800035040084],[43.22287112811213,13.220950425667425],[43.25144819516953,13.767583726450852],[43.08794396339806,14.06263031662131],[42.892245314308724,14.802249253798749],[42.60487267433362,15.213335272680595],[42.80501549660005,15.261962795467255],[42.70243777850066,15.718885809791999],[42.823670688657415,15.911742255105267],[42.77933230975097,16.347891343648683],[43.21837527850275,16.66688996018641],[43.11579756040336,17.088440456607373],[43.380794305196105,17.57998668056767],[43.79151858905192,17.31997671149111],[44.06261315285508,17.410358791569593],[45.21665123879719,17.433328965723334],[45.39999922056876,17.333335069238558],[46.366658563020536,17.233315334537636],[46.74999433776165,17.283338120996177],[47.000004917189756,16.949999294497445],[47.46669477721763,17.116681626854884],[48.18334354024134,18.166669216377315],[49.11667158386487,18.616667588774945],[52.00000980002224,19.0000033635161]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:2,SOVEREIGNT:"South Africa",SOV_A3:"ZAF",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"South Africa",ADM0_A3:"ZAF",GEOU_DIF:0,GEOUNIT:"South Africa",GU_A3:"ZAF",SU_DIF:0,SUBUNIT:"South Africa",SU_A3:"ZAF",BRK_DIFF:0,NAME:"South Africa",NAME_LONG:"South Africa",BRK_A3:"ZAF",BRK_NAME:"South Africa",BRK_GROUP:null,ABBREV:"S.Af.",POSTAL:"ZA",FORMAL_EN:"Republic of South Africa",FORMAL_FR:null,NAME_CIAWF:"South Africa",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"South Africa",NAME_ALT:null,MAPCOLOR7:2,MAPCOLOR8:3,MAPCOLOR9:4,MAPCOLOR13:2,POP_EST:54841552,POP_RANK:16,GDP_MD_EST:739100,POP_YEAR:2017,LASTCENSUS:2001,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"3. Upper middle income",WIKIPEDIA:-99,FIPS_10_:"SF",ISO_A2:"ZA",ISO_A3:"ZAF",ISO_A3_EH:"ZAF",ISO_N3:"710",UN_A3:"710",WB_A2:"ZA",WB_A3:"ZAF",WOE_ID:23424942,WOE_ID_EH:23424942,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ZAF",ADM0_A3_US:"ZAF",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Southern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:12,LONG_LEN:12,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:1.7,MAX_LABEL:6.7},geometry:{type:"Polygon",coordinates:[[[19.895767856534434,-24.76779021576059],[20.16572553882719,-24.91796192800077],[20.75860924651184,-25.86813648855145],[20.66647016773544,-26.477453301704923],[20.88960900237174,-26.828542982695915],[21.605896030369394,-26.726533705351756],[22.105968865657868,-26.280256036079138],[22.57953169118059,-25.979447523708146],[22.8242712745149,-25.50045867279477],[23.312096795350186,-25.26868987396572],[23.73356977712271,-25.390129489851617],[24.211266717228796,-25.670215752873574],[25.025170525825786,-25.7196700985769],[25.66466637543772,-25.486816094669713],[25.76584882986521,-25.17484547292368],[25.94165205252216,-24.69637338633322],[26.4857532081233,-24.616326592713104],[26.786406691197413,-24.240690606383485],[27.119409620886245,-23.574323011979775],[28.01723595552525,-22.82775359465908],[29.43218834810904,-22.091312758067588],[29.839036899542972,-22.102216485281176],[30.322883335091774,-22.271611830333935],[30.65986535006709,-22.151567478119915],[31.19140913262129,-22.2515096981724],[31.670397983534656,-23.658969008073864],[31.930588820124253,-24.36941659922254],[31.75240848158188,-25.484283949487413],[31.83777794772806,-25.84333180105135],[31.333157586397903,-25.66019052500895],[31.04407962415715,-25.731452325139443],[30.949666782359913,-26.02264902110415],[30.67660851412964,-26.398078301704608],[30.68596194837448,-26.743845310169533],[31.28277306491333,-27.285879408478998],[31.86806033705108,-27.177927341421277],[32.07166548028107,-26.73382008230491],[32.83012047
27028885,-26.742191664336197],[32.580264926897684,-27.470157566031816],[32.46213260267845,-28.301011244420557],[32.20338870619304,-28.75240488049007],[31.521001417778876,-29.257386976846256],[31.325561150851,-29.401977634398914],[30.901762729625347,-29.909956963828037],[30.62281334811382,-30.42377573010613],[30.05571618014278,-31.140269463832958],[28.92555260591954,-32.1720411109725],[28.2197558936771,-32.771952813448856],[27.464608188595975,-33.2269637997788],[26.419452345492825,-33.61495045342619],[25.90966434093349,-33.6670402971764],[25.780628289500697,-33.94464609144834],[25.172861769315972,-33.796851495093584],[24.677853224392123,-33.98717579522455],[23.594043409934642,-33.794474379208154],[22.988188917744736,-33.91643075941698],[22.574157342222236,-33.86408253350531],[21.542799106541025,-34.258838799782936],[20.689052768647002,-34.417175388325234],[20.071261020597632,-34.79513681410799],[19.61640506356457,-34.81916635512371],[19.193278435958717,-34.46259897230979],[18.85531456876987,-34.444305515278465],[18.42464318204938,-33.99787281670897],[18.377410922934615,-34.13652068454807],[18.24449913907992,-33.86775156019803],[18.250080193767445,-33.28143075941444],[17.92519046394844,-32.61129078545343],[18.247909783611192,-32.42913136162457],[18.22176150887148,-31.66163298922567],[17.56691775886887,-30.725721123987547],[17.064416131262703,-29.878641045859162],[17.062917514726223,-29.875953871379984],[16.344976840895242,-28.5767050106977],[16.824017368240902,-28.08216155366447],[17.218928663815404,-28.35594329194681],[17.387497185951503,-28.78351409272978],[17.83615197110953,-28.85637786226132],[18.464899122804752,-29.04546192801728],[19.002127312911085,-28.972443129188868],[19.894734327888614,-28.461104831660776],[19.895767856534434,-24.76779021576059]],[[28.978262566857243,-28.95559661226171],[28.541700066855498,-28.64750172293757],[28.074338413207784,-28.851468601193588],[27.532511020627478,-29.24271087007536],[26.999261915807637,-29.875953871379984],[27.749397006956485,-30.645105889612225],[28.107204624145425,-30.54573211031495],[28.29106937023991,-30.2262167294543],[28.84839969250774,-30.070050551068256],[29.018415154748027,-29.74376555757737],[29.32516645683259,-29.257386976846256],[28.978262566857243,-28.95559661226171]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Zambia",SOV_A3:"ZMB",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Zambia",ADM0_A3:"ZMB",GEOU_DIF:0,GEOUNIT:"Zambia",GU_A3:"ZMB",SU_DIF:0,SUBUNIT:"Zambia",SU_A3:"ZMB",BRK_DIFF:0,NAME:"Zambia",NAME_LONG:"Zambia",BRK_A3:"ZMB",BRK_NAME:"Zambia",BRK_GROUP:null,ABBREV:"Zambia",POSTAL:"ZM",FORMAL_EN:"Republic of Zambia",FORMAL_FR:null,NAME_CIAWF:"Zambia",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Zambia",NAME_ALT:null,MAPCOLOR7:5,MAPCOLOR8:8,MAPCOLOR9:5,MAPCOLOR13:13,POP_EST:15972e3,POP_RANK:14,GDP_MD_EST:65170,POP_YEAR:2017,LASTCENSUS:2010,GDP_YEAR:2016,ECONOMY:"7. Least developed region",INCOME_GRP:"4. Lower middle income",WIKIPEDIA:-99,FIPS_10_:"ZA",ISO_A2:"ZM",ISO_A3:"ZMB",ISO_A3_EH:"ZMB",ISO_N3:"894",UN_A3:"894",WB_A2:"ZM",WB_A3:"ZMB",WOE_ID:23425003,WOE_ID_EH:23425003,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ZMB",ADM0_A3_US:"ZMB",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:6,LONG_LEN:6,ABBREV_LEN:6,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[23.215048455506064,-17.523116143465984],[22.56247846852426,-16.898451429921813],[21.887842644953874,-16.08031015387688],[21.933886346125917,-12.898437188369359],[24.016136508894675,-12.911046237848538],[23.930922072045377,-12.565847670138856],[24.079905226342845,-12.191296888887365],[23.904153680118185,-11.722281589406322],[24.01789350759259,-11.237298272347104],[23.912215203555718,-10.926826267137514],[24.25715538910399,-10.951992689663657],[24.31451622894795,-11.26282642989927],[24.78316979340295,-11.238693536018964],[25.418118116973204,-11.330935967659961],[25.752309604604733,-11.784965101776358],[26.553087599399618,-11.924439792532127],[27.164419793412463,-11.608748467661075],[27.388798862423783,-12.132747491100666],[28.155108676879987,-12.272480564017897],[28.523561639121027,-12.698604424696683],[28.934285922976837,-13.248958428605135],[29.69961388521949,-13.257226657771831],[29.61600141777123,-12.178894545137311],[29.34154788586909,-12.360743910372413],[28.642417433392353,-11.971568698782315],[28.372253045370428,-11.793646742401393],[28.49606977714177,-10.789883721564046],[28.67368167492893,-9.605924981324932],[28.449871046672826,-9.164918308146085],[28.734866570762502,-8.526559340044578],[29.00291222506047,-8.407031752153472],[30.346086053190817,-8.238256524288218],[30.740009731422095,-8.34000593035372],[31.15775133695005,-8.594578747317366],[31.556348097466497,-8.762048841998642],[32.19186486179194,-8.930358981973257],[32.75937544122132,-9.23059905358906],[33.2313879737753,-9.6767216935648],[33.48568769708359,-10.525558770391115],[33.315310499817286,-10.796549981329697],[33.114289178201915,-11.
2607198174692314],[33.306422153463075,-12.435778090060218],[32.991764357237884,-12.783870537978274],[32.68816531752313,-13.712857761289277],[33.214024692525214,-13.971860039936153],[30.17948123548183,-14.796099134991529],[30.27425581230511,-15.507786960515213],[29.516834344203147,-15.644677829656388],[28.947463413211267,-16.04305144619444],[28.8258687680285,-16.389748630440614],[28.467906121542683,-16.468400160388846],[27.59824344250276,-17.290830580314008],[27.044427117630732,-17.938026218337434],[26.70677330903564,-17.961228936436484],[26.381935255648926,-17.8460421688579],[25.264225701608012,-17.736539808831417],[25.08444339366457,-17.661815687737374],[25.07695031098226,-17.57882333747662],[24.682349074001507,-17.353410739819473],[24.033861525170778,-17.295843194246324],[23.215048455506064,-17.523116143465984]]]}},{type:"Feature",properties:{scalerank:1,featurecla:"Admin-0 country",LABELRANK:3,SOVEREIGNT:"Zimbabwe",SOV_A3:"ZWE",ADM0_DIF:0,LEVEL:2,TYPE:"Sovereign country",ADMIN:"Zimbabwe",ADM0_A3:"ZWE",GEOU_DIF:0,GEOUNIT:"Zimbabwe",GU_A3:"ZWE",SU_DIF:0,SUBUNIT:"Zimbabwe",SU_A3:"ZWE",BRK_DIFF:0,NAME:"Zimbabwe",NAME_LONG:"Zimbabwe",BRK_A3:"ZWE",BRK_NAME:"Zimbabwe",BRK_GROUP:null,ABBREV:"Zimb.",POSTAL:"ZW",FORMAL_EN:"Republic of Zimbabwe",FORMAL_FR:null,NAME_CIAWF:"Zimbabwe",NOTE_ADM0:null,NOTE_BRK:null,NAME_SORT:"Zimbabwe",NAME_ALT:null,MAPCOLOR7:1,MAPCOLOR8:5,MAPCOLOR9:3,MAPCOLOR13:9,POP_EST:13805084,POP_RANK:14,GDP_MD_EST:28330,POP_YEAR:2017,LASTCENSUS:2002,GDP_YEAR:2016,ECONOMY:"5. Emerging region: G20",INCOME_GRP:"5. Low income",WIKIPEDIA:-99,FIPS_10_:"ZI",ISO_A2:"ZW",ISO_A3:"ZWE",ISO_A3_EH:"ZWE",ISO_N3:"716",UN_A3:"716",WB_A2:"ZW",WB_A3:"ZWE",WOE_ID:23425004,WOE_ID_EH:23425004,WOE_NOTE:"Exact WOE match as country",ADM0_A3_IS:"ZWE",ADM0_A3_US:"ZWE",ADM0_A3_UN:-99,ADM0_A3_WB:-99,CONTINENT:"Africa",REGION_UN:"Africa",SUBREGION:"Eastern Africa",REGION_WB:"Sub-Saharan Africa",NAME_LEN:8,LONG_LEN:8,ABBREV_LEN:5,TINY:-99,HOMEPART:1,MIN_ZOOM:0,MIN_LABEL:3,MAX_LABEL:8},geometry:{type:"Polygon",coordinates:[[[29.43218834810904,-22.091312758067588],[28.794656202924216,-21.63945403410745],[28.021370070108617,-21.485975030200585],[27.72722781750326,-20.851801853114715],[27.724747348753255,-20.49905852629039],[27.296504754350508,-20.391519870691],[26.164790887158485,-19.29308562589494],[25.85039147309473,-18.714412937090536],[25.649163445750162,-18.53602589281899],[25.264225701608012,-17.736539808831417],[26.381935255648926,-17.8460421688579],[26.70677330903564,-17.961228936436484],[27.044427117630732,-17.938026218337434],[27.59824344250276,-17.290830580314008],[28.467906121542683,-16.468400160388846],[28.8258687680285,-16.389748630440614],[28.947463413211267,-16.04305144619444],[29.516834344203147,-15.644677829656388],[30.27425581230511,-15.507786960515213],[30.338954705534544,-15.880839125230246],[31.17306399915768,-15.860943698797874],[31.636498243951195,-16.071990248277885],[31.8520406430406,-16.319417006091378],[32.32823896661023,-16.392074069893752],[32.847638787575846,-16.713398125884616],[32.84986087416439,-17.97905730557718],[32.65488569512715,-18.672089939043495],[32.61199425632489,-19.419382826416275],[32.772707960752626,-19.715592136313298],[32.65974327976258,-20.304290052982317],[32.50869306817344,-20.395292250248307],[32.244988234188014,-21.116488539313693],[31.19140913262129,-22.2515096981724],[30.65986535006709,-22.151567478119915],[30.322883335091774,-22.271611830333935],[29.839036899542972,-22.102216485281176],[29.43218834810904,-22.091312758067588]]]}}]}},95701:(e,t,n)=>{"use strict";n.d(t,{A:()=>y}),n(14041);var r=n(56197),o=n(76449),a=n(28426),i=n(27805),l=n(89748),s=n(40699),c=n(62161),u=n(27333),d=n(28071),f=n(92523),p=n(41574),m=n(31085);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y(){var e,t,n,y,h=(0,u.R7)({sortKey:"fraud_type_count",sortOrder:"desc"}),x=h.filters,b=h.handlePagination,v=h.setFilters,A=h.handleSort,_=(0,u.st)("/analytics/conversions/fraud-types",x,function(e){var t="&group_by=network",n=Object.keys(e).filter(function(t){return t.startsWith("fraud_type.")&&e[t]}).map(function(e){return e.replace("fraud_type.","")});return e["network.contains"]&&(t+="&network_contains=".concat(e["network.contains"])),e["campaign.contains"]&&(t+="&campaign_contains=".concat(e["campaign.contains"])),e["partner.contains"]&&(t+="&partner_contains=".concat(e["partner.contains"])),n.length>0&&(t+='&fraud_type=["'.concat(n.join('","'),'"]')),t}),S=_.data,w=_.isLoading,O=Object.entries(s.zG).map(function(e){var t,n,r=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],a=r[1];return{label:(0,l.A)(a),shortLabel:(0,l.A)(a),type:"checkbox",name:o,value:!1}}),j=[{label:(0,l.A)("Fraud Type"),name:"fraud_type",type:"checkbox",queryTranslator:"arrayOfNames",queryKey:"type",options:O},{label:(0,l.A)("Network"),name:"network",type:"radio",options:[{label:(0,l.A)("contains"),name:"contains",type:"text"}]},{label:(0,l.A)("Campaign"),name:"campaign",type:"radio",options:[{label:(0,l.A)("contains"),name:"contains",type:"text"}]},{label:(0,l.A)("Partner"),name:"partner",type:"radio",options:[{label:(0,l.A)("contains"),name:"contains",type:"text"}]}];return(0,m.jsxs)(a.A.Page,{type:"overview",children:[(0,m.jsx)(i.default,{type:"overview",title:(0,l.A)("Fraud Type"),text:(0,l.A)("Monitor conversions across all of your Networks, Partners and Campaigns"),contentRight:(0,m.jsx)(p.A,{filters:x,exportType:"fraud_type",exportValue:(0,l.A)("Fraud Type"),exportCategory:"conversions"})}),(0,m.jsx)(d.A,{}),(0,m.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,m.jsx)("div",{className:"left",children:(0,m.jsx)(o.default,{filterConfig:j,initialValues:x,onFilterChange:v})}),(0,m.jsx)(f.default,{})]}),(0,m.jsx)(c.A,{rows:null==S||null===(e=S.result)||void 0===e?void 0:e.data,isLoading:w,totalResults:null==S||null===(t=S.result)||void 0===t||null===(t=t.pagination)||void 0===t?void 0:t.total,totalPages:null==S||null===(n=S.result)||void 0===n||null===(n=n.pagination)||void 0===n?void 0:n.last_page,totalItems:null==S||null===(y=S.result)||void 0===y||null===(y=y.pagination)||void 0===y?void 0:y.total,pageNumber:x.page,handlePagination:b,handleSorting:A,sorting:{sortKey:x.sortKey,sortOrder:x.sortOrder},limit:x.limit,leftPinnedColumns:1,children:function(e){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("th",{"data-sortable-id":"fraud_type",children:(0,l.A)("Fraud Type")}),(0,m.jsx)("th",{"data-sortable-id":"network",children:(0,l.A)("Network")}),(0,m.jsx)("th",{"data-sortable-id":"partner",children:(0,l.A)("Partner")}),(0,m.jsx)("th",{"data-sortable-id":"campaign",children:(0,l.A)("Campaign")}),(0,m.jsx)("th",{"data-sortable-id":"fraud_type_count",children:(0,l.A)("Invalid Conversions")})]})}),(0,m.jsxs)("tbody",{children:[(0,m.jsx)("td",{children:(0,m.jsx)(r.default,{style:{lineHeight:"24px"},colourName:"error",children:(0,l.A)(s.zG[null==e?void 0:e.fraud_type])})}),(0,m.jsx)("td",{children:null==e?void 0:e.network}),(0,m.jsx)("td",{children:null==e?void 0:e.partner}),(0,m.jsx)("td",{children:null==e?void 0:e.campaign}),(0,m.jsx)("td",{children:null==e?void 0:e.fraud_type_count})]})]})}})]})}},95826:(e,t,n)=>{"use strict";e.exports=n.p+"8287d8e41c01f4be5486.svg"},96182:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(36537),o=n(90318);function a(){return(0,r.fp)(o.A)}},96405:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(14041),o=n(88133),a=n(9260),i=n(55618),l=n(30021),s=n(55436),c=n(89748),u=n(99018),d=n(99226),f=n(24284),p=n(31085);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g=(0,u.createUseStyles)(function(e){return{scriptContainer:{backgroundColor:e.colors.neutralBackgroundMedium,borderRadius:12,padding:12,color:e.colors.neutralTextStrong,fontFamily:e.fonts.text,fontSize:e.fontSizes.sm,fontWeight:e.fontWeights.xs,lineHeight:"20px","&pre":{whitePpace:"pre-wrap, -moz-pre-wrap, -pre-wrap, -o-pre-wrap",wordWrap:"break-word"}}}});const y=function(e){var t,n,u,y,h,x,b=e.id,v=e.onClose,A=g(),_=(h=(0,r.useState)(""),x=2,function(e){if(Array.isArray(e))return e}(h)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(h,x)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(h,x)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),S=_[0],w=_[1],O=(0,o.Ay)("/conversion/configs/".concat(b)),j=O.data,k=O.isLoading,E=null==j||null===(t=j.result)||void 0===t?void 0:t.conversion_config,N=(0,d.A)().featureFlags,I=null==j||null===(n=j.result)||void 0===n||null===(n=n.conversion_config)||void 0===n?void 0:n.conversion_script;return N.includes("MPLAT_CONVERSIONS")&&(I="\n <script>\n function lunioConversion() {\n if (typeof window.LunioTrackConversion === 'function') {\n window.LunioTrackConversion('".concat(null==j||null===(y=j.result)||void 0===y||null===(y=y.conversion_config)||void 0===y?void 0:y.external_id,"')\n } else {\n setTimeout(lunioConversion, 1000);\n }\n }\n\n lunioConversion();\n <\/script>\n ")),null!=E&&null!==(u=E.optional_parameters)&&void 0!==u&&u.order_id&&(I=I.replace(/window\.LunioTrackConversion\((['"])(.*?)\1\)/g,"window.LunioTrackConversion('$2', ".concat("{ order_id: <ORDER_ID_VALUE> }",")"))),(0,p.jsx)(i.default,{open:b,heading:(0,c.A)(":name conversion script",{name:(null==E?void 0:E.name)||""}),onClose:v,children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(l.default,{preset:"formSectionTitle",className:"mb-3",children:(0,c.A)("Conversion Tracking Script")}),(0,p.jsx)(l.default,{preset:"formSectionSubText",className:"mb-4",children:(0,c.A)("For more accurate conversion tracking, we recommend installing the tracking script below to fire on any conversion action. You can add this to a tag manager like Google Tag Manager. You can use the same conversion tracking script for any website or landing page you want to protect. Reach out to your account manager if you need help installing this.")}),k&&(0,p.jsx)(s.default,{preset:"dark",size:"responsive",loading:!0}),!k&&I&&(0,p.jsx)("div",{className:A.scriptContainer,children:(0,p.jsx)("pre",{id:"conversionsTrackingScript",children:I})}),!k&&!I&&(0,p.jsx)("div",{className:A.scriptContainer,children:(0,c.A)("No conversion tracking script found.")}),(0,p.jsxs)("div",{className:"h-align-right",children:[(0,p.jsx)(a.default,{className:"mt-5 mr-3",preset:"outline",onClick:v,children:(0,c.A)("Cancel")}),(0,p.jsxs)(a.default,{className:"mt-5","data-testid":"copy-conversions-tracking-script-button",onClick:function(){return e=(0,c.A)("Conversions Tracking Template copied to clipboard."),n=(null===(t=document.getElementById("conversionsTrackingScript"))||void 0===t?void 0:t.textContent)||"",navigator.clipboard.writeText(n).then(function(){return(0,f.A)(e,"success")}),void w(!0);var e,t,n},mplatTrackingScript:!0,iconRight:"far fa-clone",disabled:"conversionsTrackingScript"===S||!I,children:["conversionsTrackingScript"!==S&&(0,c.A)("Copy Conversion Script"),"conversionsTrackingScript"===S&&(0,c.A)("Copied")]})]})]})})}},96742:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SidebarProvider:()=>s,useSidebarContext:()=>c});var r=n(14041),o=n(31085);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l=(0,r.createContext)(null);function s(e){var t=e.children,n=e.noPositioning,i=void 0!==n&&n,s=a((0,r.useState)(null),2),c=s[0],u=s[1],d=a((0,r.useState)(null),2),f=d[0],p=d[1],m=a((0,r.useState)(!1),2),g=m[0],y=m[1],h=a((0,r.useState)(null),2),x=h[0],b=h[1],v=a((0,r.useState)(!1),2),A=v[0],_=v[1],S=(0,r.useMemo)(function(){return{activeItem:c,setActiveItem:u,activeSubItem:f,setActiveSubItem:p,isCompressed:g,setIsCompressed:y,expandedSubMenu:x,setExpandedSubMenu:b,menuIsHovered:A,setMenuIsHovered:_}},[c,f,g,x,A]);return(0,r.useEffect)(function(){if(!i){var e=function(){y(window.innerWidth<=1280)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}y(!1)},[i]),(0,o.jsx)(l.Provider,{value:S,children:t})}function c(){var e=(0,r.useContext)(l);if(!e)throw new Error("useSidebarContext must be used within a SidebarProvider");return e}},96916:(e,t,n)=>{"use strict";e.exports=n.p+"48790b41aa8163847ffa.svg"},96918:(e,t,n)=>{"use strict";n.d(t,{A:()=>h}),n(14041);var r=n(88133),o=n(97475),a=n(89748),i=n(80111),l=n(36549),s=n(24284),c=n(72184),u=n(31085);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const h=function(){var e,t,n,d=g((0,l.A)(),1)[0],f=g((0,i.A)(),1)[0],m=(0,o.jE)(),y=20,h=1,x=(0,r.Ay)("/aw/tokens?df_dmin=".concat(null==f||null===(e=f.dataFilterDates)||void 0===e||null===(e=e.min)||void 0===e?void 0:e.timestamp,"&df_dmax=").concat(null==f||null===(t=f.dataFilterDates)||void 0===t||null===(t=t.max)||void 0===t?void 0:t.timestamp,"&page=").concat(h,"&limit=").concat(y,"&df_interval=day")),b=x.data,v=x.isLoading;function A(){var e,t;m.invalidateQueries("/aw/tokens?df_dmin=".concat(null==f||null===(e=f.dataFilterDates)||void 0===e||null===(e=e.min)||void 0===e?void 0:e.timestamp,"&df_dmax=").concat(null==f||null===(t=f.dataFilterDates)||void 0===t||null===(t=t.max)||void 0===t?void 0:t.t
2imestamp,"&page=").concat(h,"&limit=").concat(y,"&df_interval=day"))}var _=(0,r.gC)("/tokens/aw/upsert","POST"),S=(0,r.gC)("/aw/tokens/delete","POST"),w=(0,r.gC)("/aw/tokens/deprecate","POST");return(0,u.jsx)(c.A,{tokens:null==b||null===(n=b.result)||void 0===n?void 0:n.tokens,isLoading:v,handleRemoveToken:function(e){S.mutate(p({},e),{onSuccess:function(){(0,s.A)("The token was deleted successfully","success"),A()},onError:function(){(0,s.A)((0,a.A)("Something went wrong!"),"error")}})},isRemovingToken:S.isLoading,handleAddToken:function(e){var t,n=e;n.account_id=(null==d||null===(t=d.account)||void 0===t?void 0:t.id)||null,_.mutate(p({_method:"POST"},n),{onSuccess:function(){(0,s.A)("The token was added successfully","success")},onError:function(){(0,s.A)((0,a.A)("Something went wrong!"),"error")}})},isAddingToken:_.isLoading,isDeprecatingToken:!!w.isLoading,handleDeprecateToken:function(e){w.mutate(p({},e),{onSuccess:function(){(0,s.A)((0,a.A)("The token was deprecated successfully"),"success"),A()},onError:function(){(0,s.A)((0,a.A)("Something went wrong!"),"error")}})}})}},96956:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.A=void 0;var o,a=(o=n(25751))&&o.__esModule?o:{default:o},i=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;
2if(n=t){if(n.has(e))return n.get(e);n.set(e,a)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(a,i,o):a[i]=e[i]);return a}(e)}(n(76969)),l=n(31085);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=a.default;f(".display-x3nfvp2{display:inline-flex}",3e3),f(".alignItems-x6s0dn4{align-items:center}",3e3),f(".fontWeight-xk50ysn{font-weight:500}",3e3),f(".fontSize-xif65rj{font-size:14px}",3e3),f(".color-x1jsblnb{color:var(--black900-x1vm5mv1)}",3e3),f(".position-x1n2onr6{position:relative}",3e3),f(".backgroundColor-x18thdbb{background-color:var(--gray200-x1cfnqzm)}",3e3),f(".width-x1td3qas{width:32px}",4e3),f(".height-xdk7pt{height:8px}",4e3),f(".borderRadius-xur7f20{border-radius:8px}",2e3),f(".marginRight-x1wsuqlk{margin-right:12px}",4e3),f(".display-x1rg5ohu{display:inline-block}",3e3),f(".position-x10l6tqk{position:absolute}",3e3),f(".left-xu96u03{left:0}",4e3),f(".top-x13vifvy{top:0}",4e3),f(".backgroundColor-xi0j1sw{background-color:var(--error400-x1tud7vg)}",3e3),f(".backgroundColor-xzxmxdx{background-color:var(--warning400-xebb3xv)}",3e3),f(".backgroundColor-xn1qtim{background-color:var(--warning200-xgv5m4l)}",3e3),f(".backgroundColor-xg49ll4{background-color:var(--success400-xixbfeu)}",3e3);var p={wrapper:{display:"display-x3nfvp2",alignItems:"alignItems-x6s0dn4",fontWeight:"fontWeight-xk50ysn",fontSize:"fontSize-xif65rj",color:"color-x1jsblnb",$$css:"HealthScore/index.tsx:6"},barBackground:{position:"position-x1n2onr6",backgroundColor:"backgroundColor-x18thdbb",width:"width-x1td3qas",height:"height-xdk7pt",borderRadius:"borderRadius-xur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,marginRight:"marginRight-x1wsuqlk",marginInlineStart:null,marginInlineEnd:null,display:"display-x1rg5ohu",$$css:"HealthScore/index.tsx:13"},bar:{position:"position-x10l6tqk",left:"left-xu96u03",insetInlineStart:null,insetInlineEnd:null,top:"top-x13vifvy",height:"height-xdk7pt",borderRadius:"borderRadius-xur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"backgroundColor-xi0j1sw",$$css:"HealthScore/index.tsx:22"},orange:{backgroundColor:"backgroundColor-xzxmxdx",$$css:"HealthScore/index.tsx:30"},yellow:{backgroundColor:"backgroundColor-xn1qtim",$$css:"HealthScore/index.tsx:33"},green:{backgroundColor:"backgroundColor-xg49ll4",$$css:"HealthScore/index.tsx:36"}};function m(e){var t,n=function(e){var t="number"==typeof e&&Number.isFinite(e)?e:0;return Math.max(0,Math.min(100,t))}(e.health);return(0,l.jsxs)("div",u(u({},{className:"display-x3nfvp2 alignItems-x6s0dn4 fontWeight-xk50ysn fontSize-xif65rj color-x1jsblnb","data-style-src":"HealthScore/index.tsx:6"}),{},{children:[(0,l.jsx)("div",u(u({},{className:"position-x1n2onr6 backgroundColor-x18thdbb width-x1td3qas height-xdk7pt borderRadius-xur7f20 marginRight-x1wsuqlk display-x1rg5ohu","data-style-src":"HealthScore/index.tsx:13"}),{},{children:(0,l.jsx)("div",u(u({"data-testid":"health-score-bar"},i.props(p.bar,p[(t=n,t>=90?"green":t>=80?"yellow":t>=70?"orange":"bar")])),{},{style:{width:"".concat(n,"%")}}))})),n]}))}
2m.displayName="HealthScore",t.A=m},96981:(e,t,n)=>{"use strict";e.exports=n.p+"de2852f24c7aac0c59fe.svg"},97038:(e,t,n)=>{"use strict";e.exports=n.p+"3406821c8282ddff1515.svg"},97109:(e,t,n)=>{"use strict";e.exports=n.p+"cda45809e4c06ed41b85.svg"},97259:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(14041),o=n(56197),a=n(9260),i=n(62720),l=n(72686),s=n(28426),c=n(27805),u=n(62161),d=n(99018),f=n(89748),p=n(88133),m=n(93033),g=n(24284),y=n(31085);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var S=(0,d.createUseStyles)(function(){return{searchContainer:{display:"flex",justifyContent:"flex-end",alignItems:"flex-start",marginBottom:16,flexGrow:0}}});const w=function(){var e=S(),t=A(r.useState(""),2),n=t[0],d=t[1],h=A(r.useState(""),2),x=h[0],v=h[1],_=A(r.useState(null),2),w=_[0],O=_[1],j=A(r.useState(!1),2),k=j[0],E=j[1],N=A(r.useState([]),2),I=N[0],P=N[1],T=(0,p.Ay)("/google_template_check/".concat(x||"0")),C=T.data,R=T.isLoading;function M(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(n){return e[n]===t[n]})}(0,r.useEffect)(function(){P((null==C?void 0:C.data)||[])},[C]);var L=(0,p.gC)("/google_template_check","POST");return(0,y.jsx)(m.A,{impersonatingOnly:!0,children:(0,y.jsxs)(s.A.Page,{type:"settings",children:[(0,y.jsx)(c.default,{title:(0,f.A)("Google Tracking Template Validator"),text:(0,f.A)("Search for a Campaign ID to view its tracking template....")}),(0,y.jsxs)(l.default,{children:[(0,y.jsxs)("div",{className:e.searchContainer,children:[(0,y.jsx)(i.default,{value:n,placeholder:(0,f.A)("Search Campaign ID"),onChange:function(e){return d(e.target.value)},errors:w?[{userMessage:w}]:[],showErrors:!0,"data-testid":"google-tracking-validator-input"}),(0,y.jsx)(a.default,{onClick:function(){Number.isNaN(Number(n))&&""!==n?O((0,f.A)("Please enter a valid Campaign ID")):(O(null),v(n))},iconRight:"search",preset:"primary",className:"ml-3","data-testid":"google-tracking-validator-button",children:(0,f.A)("Search")})]}),(0,y.jsx)(u.A,{rows:I||[],isLoading:R,totalPages:1,pageNumber:1,handleSorting:function(){},limit:1e3,sorting:{sortKey:"",sortOrder:""},noDataStyle:"secondary",noDataSubTitle:(0,f.A)("Could not find any tracking templates"),leftPinnedColumns:1,children:function(e){var t;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("thead",{children:[(0,y.jsx)("th",{children:(0,f.A)("Level")}),(0,y.jsx)("th",{children:(0,f.A)("ID")}),(0,y.jsx)("th",{children:(0,f.A)("Tracking Template")}),(0,y.jsx)("th",{children:(0,f.A)("Status")}),(0,y.jsx)("th",{children:(0,f.A)("Action")})]}),(0,y.jsxs)("tbody",{children:[(0,y.jsx)("td",{"data-testid":"resource-level-cell-".concat(null==e?void 0:e.resource_id),children:null==e?void 0:e.resource_level}),(0,y.jsx)("td",{"data-testid":"resource-id-cell-".concat(null==e?void 0:e.resource_id),children:null==e?void 0:e.resource_id}),(0,y.jsx)("td",{title:null==e?void 0:e.url,"data-testid":"url-cell-".concat(null==e?void 0:e.resource_id),children:(null==e||null===(t=e.url)||void 0===t?void 0:t.length)>22?"".concat(null==e?void 0:e.url.slice(0,22),"..."):null==e?void 0:e.url}),(0,y.jsx)("td",{"data-testid":"status-cell-".concat(null==e?void 0:e.resource_id),children:(0,y.jsx)(o.default,{colourName:{Valid:"success",Overwritten:"success",Incorrect:"danger",Invalid:"danger",Test:"purple-weak","Not Set":"default"}[null==e?void 0:e.status],iconLeft:{Valid:"check",Overwritten:"check",Incorrect:"xmark",Invalid:"xmark",Test:["far","vial"],"Not Set":["far","circle-minus"]}[null==e?void 0:e.status],size:"lg",children:null==e?void 0:e.status})}),(0,y.jsx)("td",{"data-testid":"action-cell-".concat(null==e?void 0:e.resource_id),children:"Test"===(null==e?void 0:e.status)?(0,y.jsx)(a.default,{onClick:function(){return function(e){if(!1===k){E(e);var t={level:e.resource_level,id:e.resource_id,url:e.url};L.mutate(b({_method:"POST"},t),{onSuccess:function(t){var n;(0,g.A)(null==t||null===(n=t.data)||void 0===n?void 0:n.message,"success"),E(!1),P(I.map(function(n){var r;return n.resource_id===e.resource_id?b(b({},n),null==t||null===(r=t.data)||void 0===r?void 0:r.data):n}
2)),(0,g.A)((0,f.A)("Test ran successfully!"),"success")},onError:function(){E(!1)}})}else(0,g.A)((0,f.A)("Please wait for the previous test to complete"),"error")}(e)},preset:"secondary",size:"sm",disabled:M(k,e||{}),loading:M(k,e||{}),"data-testid":"google-tracking-validator-test-button-".concat(null==e?void 0:e.resource_id),children:(0,f.A)("Test")}):null})]})]})}})]})]})})}},97276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(25751)),o=i(n(30556)),a=n(31085);function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=r.default;function f(e){var t=e.children,n=e.isOpen;return void 0!==n&&n?(0,a.jsx)("div",c(c({},{className:"paddingTop-xz9dl7a paddingBottom-xsag5q8","data-style-src":"Content/index.tsx:6"}),{},{children:(0,a.jsxs)(o.default.Row,{children:[(0,a.jsx)(o.default.Col,{md:1}),(0,a.jsx)(o.default.Col,{children:t})]})})):null}d(".paddingTop-xz9dl7a{padding-top:12px}",4e3),d(".paddingBottom-xsag5q8{padding-bottom:12px}",4e3),f.displayName="Accordion.Content",t.default=f},97314:(e,t,n)=>{"use strict";e.exports=n.p+"66959621c8fcbf97daf2.svg"},97317:(e,t,n)=>{"use strict";e.exports=n.p+"7d2c69ced4de65a93dd2.svg"},97320:(e,t,n)=>{"use strict";n.d(t,{A:()=>Qe}),n(14041);var r=n(51836),o=n(93033),a=n(44655),i=n(20875),l=n(11070),s=n(25787),c=n(18136),u=n(60544),d=n(67998),f=n(46939),p=n(41023),m=n(68270),g=n(30486),y=n(97259),h=n(19192),x=n(53244),b=n(38947),v=n(91841),A=n(75608),_=n(99669),S=n(85516),w=n(43361),O=n(92690),j=n(12207),k=n(44984),E=n(12017),N=n(58398),I=n(54541),P=n(10770),T=n(77573),C=n(77402),R=n(95701),M=n(98991),L=n(65768),D=n(55440),B=n(79211),U=n(61894),F=n(37700),G=n(61841),W=n(26383),z=n(19969),V=n(38022),q=n(13780),K=n(82221),H=n(61008),Y=n(80392),$=n(79448),Z=n(44940),X=n(32419),J=n(6441),Q=n(37606),ee=n(32141),te=n(50998),ne=n(15627),re=n(36482),oe=n(95469),ae=n(83058),ie=n(71837),le=n(20793),se=n(32271),ce=n(812),ue=n(99060),de=n(5753),fe=n(51159),pe=n(79475),me=n(70551),ge=n(22228),ye=n(20544),he=n(2300),xe=n(80902),be=n(63387),ve=n(93568),Ae=n(10873),_e=n(36059),Se=n(2702),we=n(40343),Oe=n(13418),je=n(35414),ke=n(76133),Ee=n(96918),Ne=n(70860),Ie=n(40296),Pe=n(97321),Te=n(93418),Ce=n(13273),Re=n(31830),Me=n(21445),Le=n(31712),De=n(52796),Be=n(1348),Ue=n(59779),Fe=n(77994),Ge=n(89868),We=n(7706),ze=n(41350),Ve=n(28870),qe=n(73986),Ke=n(88523),He=n(73633),Ye=n(57752),$e=n(43474),Ze=n(29098),Xe=n(93825),Je=n(31085);const Qe=function(){return(0,Je.jsxs)(r.BV,{children:[(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(a.A,{}),children:[(0,Je.jsx)(r.qh,{path:"auth-loading",element:(0,Je.jsx)(re.A,{})}),(0,Je.jsx)(r.qh,{path:"login",element:(0,Je.jsx)(re.A,{})}),(0,Je.jsx)(r.qh,{path:"logout",element:(0,Je.jsx)(oe.A,{})}),(0,Je.jsx)(r.qh,{path:"*",element:(0,Je.jsx)(te.A,{})})]}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google","mplat","affiliate"],alternateRoute:"/summary",metaAlternateRoute:"/meta/summary"}),children:(0,Je.jsx)(r.qh,{path:"/summary",element:(0,Je.jsx)(p.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["meta"],alternateRoute:"/summary"}),children:(0,Je.jsx)(r.qh,{path:"/meta/summary",element:(0,Je.jsx)(M.A,{})})}),(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["onlyAll"],alternateRoute:"/summary",metaAlternateRoute:"/meta/summary"}),children:[(0,Je.jsx)(r.qh,{path:"/overview",element:(0,Je.jsx)(d.A,{})}),(0,Je.jsx)(r.qh,{path:"/ivt-summary",element:(0,Je.jsx)(f.A,{})}),(0,Je.jsx)(r.qh,{path:"/carbon-tracking",element:(0,Je.jsx)(m.A,{})}),(0,Je.jsx)(r.qh,{path:"/brand-bidding/serp",element:(0,Je.jsx)(Q.A,{})}),(0,Je.jsx)(r.qh,{path:"/brand-bidding/bidding",element:(0,Je.jsx)($.A,{})}),(0,Je.jsx)(r.qh,{path:"/brand-bidding/bidding/advertisers/:advertiserId",element:(0,Je.jsx)(Z.A,{})}),(0,Je.jsx)(r.qh,{path:"/brand-bidding/bidding/keywords/:keywordId",element:(0,Je.jsx)(X.A,{})}),(0,Je.jsx)(r.qh,{path:"/release-notes",element:(0,Je.jsx)(Ke.A,{})})]}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google","mplat","affiliate","meta"],alternateRoute:"/summary"}),children:(0,Je.jsx)(r.qh,{path:"/waste-analysis",element:(0,Je.jsx)(Ze.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google","mplat","affiliate"],alternateRoute:"/clicks-log",metaAlternateRoute:"/meta/clicks-log",forceAlternateRouteOnSwitchPlatform:!0}),children:(0,Je.jsx)(r.qh,{path:"/clicks-log",element:(0,Je.jsx)(ee.A,{})})}),(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google","mplat","affiliate"],alternateRoute:"/clicks-log",metaAlternateRoute:"/meta/clicks-log",forceAlternateRouteOnSwitchPlatform:!0}),children:[(0,Je.jsx)(r.qh,{path:"/audit-trail",element:(0,Je.jsx)(ne.A,{})}),(0,Je.jsx)(r.qh,{path:"/audit-trail-map",element:(0,Je.jsx)(ne.A,{})})]}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["meta"],alternateRoute:"/clicks-log"}),children:(0,Je.jsx)(r.qh,{path:"/meta/clicks-log",element:(0,Je.jsx)(G.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["meta"],alternateRoute:"/clicks-log",metaAlternateRoute:"/meta/clicks-log",forceAlternateRouteOnSwitchPlatform:!0}),children:(0,Je.jsx)(r.qh,{path:"/meta/audit-trail",element:(0,Je.jsx)(W.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google","mplat","affiliate"],metaAlternateRoute:"/meta/stats/campaign",alternateRoute:"/summary"}),children:(0,Je.jsx)(r.qh,{path:"stats/campaign",element:(0,Je.jsx)(Te.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["meta"],alternateRoute:"/stats/campaign"}),children:(0,Je.jsx)(r.qh,{path:"meta/stats/campaign",element:(0,Je.jsx)(F.A,{})})}),(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["affiliate"],alternateRoute:"/stats/campaign",metaAlternateRoute:"/meta/stats/campaign"}),children:[(0,Je.jsx)(r.qh,{path:"stats/affiliate",element:(0,Je.jsx)(Ce.A,{})}),(0,Je.jsx)(r.qh,{path:"stats/partner",element:(0,Je.jsx)(Y.A,{})})]}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["affiliate","mplat"],alternateRoute:"/stats/campaign",metaAlternateRoute:"/meta/stats/websites-protected"}),children:(0,Je.jsx)(r.qh,{path:"stats/websites-protected",element:(0,Je.jsx)(We.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["meta"],alternateRoute:"/stats/campaign",mplatAlternateRoute:"/stats/websites-protected"}),children:(0,Je.jsx)(r.qh,{path:"meta/stats/websites-protected",element:(0,Je.jsx)(L.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google","mplat","affiliate"],metaAlternateRoute:"/meta/stats/location",alternateRoute:"/summary"}),children:(0,Je.jsx)(r.qh,{path:"stats/location",element:(0,Je.jsx)(Le.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["meta"],alternateRoute:"/stats/location"}),children:(0,Je.jsx)(r.qh,{path:"meta/stats/location",element:(0,Je.jsx)(B.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["meta"],alternateRoute:"/stats/campaign"}),children:(0,Je.jsx)(r.qh,{path:"meta/stats/data-explorer",element:(0,Je.jsx)(K.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google","mplat","affiliate"],metaAlternateRoute:"/meta/stats/day",alternateRoute:"/summary"}),children:(0,Je.jsx)(r.qh,{path:"stats/day",element:(0,Je.jsx)(Ge.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["meta"],alternateRoute:"/stats/campaign",mplatAlternateRoute:"/stats/day"}),children:(0,Je.jsx)(r.qh,{path:"meta/stats/day",element:(0,Je.jsx)(U.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["affiliate","mplat"],alternateRoute:"/stats/campaign",metaAlternateRoute:"/meta/stats/device"}),children:(0,Je.jsx)(r.qh,{path:"stats/device",element:(0,Je.jsx)(Fe.A,{})})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["meta"],alternateRoute:"/stats/campaign",mplatAlternateRoute:"/stats/device"}),children:(0,Je.jsx)(r.qh,{path:"meta/stats/device",element:(0,Je.jsx)(D.A,{})})}),(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google"],alternateRoute:"/stats/campaign",metaAlternateRoute:"/meta/stats/campaign"}),children:[(0,Je.jsx)(r.qh,{path:"stats/keyword",element:(0,Je.jsx)(Re.A,{})}),(0,Je.jsx)(r.qh,{path:"stats/placement",element:(0,Je.jsx)(Me.A,{})}),(0,Je.jsx)(r.qh,{path:"stats/region",element:(0,Je.jsx)(De.A,{})}),(0,Je.jsx)(r.qh,{path:"stats/network",element:(0,Je.jsx)(Be.A,{})}),(0,Je.jsx)(r.qh,{path:"stats/match-type",element:(0,Je.jsx)(Ue.A,{})})]}),(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google"],alternateRoute:"/summary"}),children:[(0,Je.jsxs)(r.qh,{path:"/exclusions",children:[(0,Je.jsx)(r.qh,{path:"ip",element:(0,Je.jsx)(c.A,{})}),(0,Je.jsx)(r.qh,{path:"placement",element:(0,Je.jsx)(u.A,{})})]}),(0,Je.jsxs)(r.qh,{path:"/ads-account-management",children:[(0,Je.jsx)(r.qh,{path:"accounts",element:(0,Je.jsx)(se.A,{})}),(0,Je.jsx)(r.qh,{path:"campaigns",element:(0,Je.jsx)(ce.A,{})})]}),(0,Je.jsx)(r.qh,{path:"/google-pmax-tools",element:(0,Je.jsx)(ge.A,{})})]}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google"],alternateRoute:"/analytics/campaigns",affiliateAlternateRoute:"/analytics/affiliate/campaigns",metaAlternateRoute:"/meta/analytics/campaigns"}),children:(0,Je.jsx)(r.qh,{path:"/analytics/accounts",element:(0,Je.jsx)(le.A,{})})}),(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["meta"],affiliateAlternateRoute:"/analytics/affiliate/campaigns",googleAlternateRoute:"/analytics/campaigns",mplatAlternateRoute:"/analytics/campaigns",forceAlternateRouteOnSwitchPlatform:!0}),children:[(0,Je.jsx)(r.qh,{path:"/meta/analytics/campaigns",element:(0,Je.jsx)(z.A,{})}),(0,Je.jsx)(r.qh,{path:"/meta/analytics/ad-sets",element:(0,Je.jsx)(V.A,{})}),(0,Je.jsx)(r.qh,{path:"/meta/campaign/:cpn",element:(0,Je.jsx)(q.A,{})})]}),(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["google","mplat"],affiliateAlternateRoute:"/analytics/affiliate/campaigns",googleAlternateRoute:"/analytics/campaigns",mplatAlternateRoute:"/analytics/campaigns",metaAlternateRoute:"/meta/analytics/campaigns",forceAlternateRouteOnSwitchPlatform:!0}),children:[(0,Je.jsx)(r.qh,{path:"/analytics",children:(0,Je.jsx)(r.qh,{path:"campaigns",element:(0,Je.jsx)(ie.A,{})})}),(0,Je.jsx)(r.qh,{path:"/campaign/:cpn",element:(0,Je.jsx)(ae.A,{})})]}),(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["affiliate"],alternateRoute:"/analytics/campaigns"}),children:[(0,Je.jsx)(r.qh,{path:"stats",children:(0,Je.jsx)(r.qh,{path:"affiliate",element:(0,Je.jsx)(Ce.A,{})})}),(0,Je.jsxs)(r.qh,{path:"/analytics/affiliate",children:[(0,Je.jsx)(r.qh,{path:"analytics-summary",element:(0,Je.jsx)(v.A,{})}),(0,Je.jsx)(r.qh,{path:"networks",element:(0,Je.jsx)(A.A,{})}),(0,Je.jsx)(r.qh,{path:"networks/:network",element:(0,Je.jsx)(_.A,{})}),(0,Je.jsx)(r.qh,{path:"partners",element:(0,Je.jsx)(S.A,{})}),(0,Je.jsx)(r.qh,{path:"partners/:partner",element:(0,Je.jsx)(w.A,{})}),(0,Je.jsx)(r.qh,{path:"fraud-types",element:(0,Je.jsx)(k.A,{})}),(0,Je.jsx)(r.qh,{path:"campaigns",element:(0,Je.jsx)(O.A,{})}),(0,Je.jsx)(r.qh,{path:"campaigns/:campaign",element:(0,Je.jsx)(j.A,{})})]})]}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["affiliate"],alternateRoute:"/summary",metaAlternateRoute:"/meta/summary"}),children:(0,Je.jsxs)(r.qh,{path:"/conversion-analytics",children:[(0,Je.jsx)(r.qh,{path:"networks",element:(0,Je.jsx)(E.A,{})}),(0,Je.jsx)(r.qh,{path:"networks/:network",element:(0,Je.jsx)(N.A,{})}),(0,Je.jsx)(r.qh,{path:"partners",element:(0,Je.jsx)(I.A,{})}),(0,Je.jsx)(r.qh,{path:"partners/:partner",element:(0,Je.jsx)(P.A,{})}),(0,Je.jsx)(r.qh,{path:"campaigns",element:(0,Je.jsx)(T.A,{})}),(0,Je.jsx)(r.qh,{path:"campaigns/:campaign",element:(0,Je.jsx)(C.A,{})}),(0,Je.jsx)(r.qh,{path:"fraud-types",element:(0,Je.jsx)(R.A,{})})]})}),(0,Je.jsx)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,pageSupportedPlatforms:["affiliate","google","mplat"],alternateRoute:"/overview"}),children:(0,Je.jsx)(r.qh,{path:"/insights",children:(0,Je.jsx)(r.qh,{path:"alerts",element:(0,Je.jsx)(H.A,{})})})}),(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0}),children:[(0,Je.jsx)(r.qh,{path:"/user-profile",element:(0,Je.jsx)(pe.A,{})}),(0,Je.jsxs)(r.qh,{path:"/internal-tools",element:(0,Je.jsx)(ke.A,{}),children:[(0,Je.jsx)(r.qh,{path:"",element:(0,Je.jsx)(Se.A,{})}),(0,Je.jsx)(r.qh,{path:"script-debugging",element:(0,Je.jsx)(g.A,{})}),(0,Je.jsx)(r.qh,{path:"ds-reports",element:(0,Je.jsx)(b.A,{})}),(0,Je.jsx)(r.qh,{path:"ivt-testing",element:(0,Je.jsx)(je.A,{})}),(0,Je.jsx)(r.qh,{path:"spend-tracker",element:(0,Je.jsx)(Oe.A,{})}),(0,Je.jsx)(r.qh,{path:"google-tracking-validator",element:(0,Je.jsx)(y.A,{})}),(0,Je.jsx)(r.qh,{path:"ip",element:(0,Je.jsx)(we.A,{})}),(0,Je.jsx)(r.qh,{path:"protection-change-log",element:(0,Je.jsx)(h.A,{})}),(0,Je.jsx)(r.qh,{path:"account-status-change-log",element:(0,Je.jsx)(x.A,{})}),(0,Je.jsx)(r.qh,{path:"chat",element:(0,Je.jsx)(o.A,{impersonatingOnly:!0,children:(0,Je.jsx)(Xe.A,{})})})]}),(0,Je.jsx)(r.qh,{path:"/dev-tools",element:(0,Je.jsx)(qe.A,{})})]}),(0,Je.jsxs)(r.qh,{element:(0,Je.jsx)(i.A,{isUserAuthenticated:!0,noPlatformSelector:!0}),children:[(0,Je.jsx)(r.qh,{path:"/",element:(0,Je.jsx)(d.A,{})}),(0,Je.jsxs)(r.qh,{path:"/account-settings",children:[(0,Je.jsx)(r.qh,{path:"account",element:(0,Je.jsx)(ue.A,{})}),(0,Je.jsx)(r.qh,{path:"subscriptions",element:(0,Je.jsx)(de.A,{})})]}
2),(0,Je.jsx)(r.qh,{path:"/workspace-settings",children:(0,Je.jsx)(r.qh,{path:"workspaces",element:(0,Je.jsx)(be.A,{})})}),(0,Je.jsxs)(r.qh,{path:"/workspace-settings",element:(0,Je.jsx)(l.A.Workspace,{}),children:[(0,Je.jsx)(r.qh,{path:"workspace/:id/general",element:(0,Je.jsx)(xe.A,{})}),(0,Je.jsx)(r.qh,{path:"workspace/:id/accounts",element:(0,Je.jsx)(ye.A,{})}),(0,Je.jsx)(r.qh,{path:"workspace/:id/members",element:(0,Je.jsx)(ve.A,{})}),(0,Je.jsx)(r.qh,{path:"workspace/:id/multi-platform",element:(0,Je.jsx)(o.A,{accountRoles:["ROOT","ADMIN"],children:(0,Je.jsx)(he.A,{})})})]}),(0,Je.jsxs)(r.qh,{path:"/ivt-controls",children:[(0,Je.jsx)(r.qh,{path:"change-log",element:(0,Je.jsx)($e.A,{})}),(0,Je.jsx)(r.qh,{path:"settings",element:(0,Je.jsx)(Ye.A,{})})]}),(0,Je.jsxs)(r.qh,{path:"/settings",children:[(0,Je.jsx)(r.qh,{path:"users",element:(0,Je.jsx)(fe.A,{})}),(0,Je.jsx)(r.qh,{path:"platforms-and-scripts",element:(0,Je.jsx)(Ve.A,{})}),(0,Je.jsx)(r.qh,{path:"brand-bidding",children:(0,Je.jsx)(r.qh,{path:"configuration",element:(0,Je.jsx)(J.A,{})})})]}),(0,Je.jsxs)(r.qh,{path:"/platform-settings",children:[(0,Je.jsx)(r.qh,{path:"multi-platform",element:(0,Je.jsx)(Ae.A,{})}),(0,Je.jsx)(r.qh,{path:"google-tokens",element:(0,Je.jsx)(Ee.A,{})}),(0,Je.jsx)(r.qh,{path:"meta-tokens",element:(0,Je.jsx)(Ne.A,{})}),(0,Je.jsx)(r.qh,{path:"meta-tokens/authorisation",element:(0,Je.jsx)(He.A,{})}),(0,Je.jsx)(r.qh,{path:"google-accounts",element:(0,Je.jsx)(Ie.A,{})})]}),(0,Je.jsxs)(r.qh,{path:"/ip-management",children:[(0,Je.jsx)(r.qh,{path:"google-conversions",element:(0,Je.jsx)(s.A,{})}),(0,Je.jsx)(r.qh,{path:"google-ip-allowlist",element:(0,Je.jsx)(me.A,{})})]}),(0,Je.jsxs)(r.qh,{path:"/integrations-settings",children:[(0,Je.jsx)(r.qh,{path:"integrations",element:(0,Je.jsx)(_e.A,{})}),(0,Je.jsx)(r.qh,{path:"conversions",element:(0,Je.jsx)(ze.A,{})})]})]}),(0,Je.jsx)(r.qh,{path:"/n-grams-finder",element:(0,Je.jsx)(Pe.A,{})})]})}},97321:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(14041),o=n(30021),a=n(55436),i=n(28426),l=n(27805),s=n(89748),c=n(88133),u=n(73657),d=n(24284),f=n(31085);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const g=function(){var e,t=p((0,u.useSearchParams)(),1)[0],n=t.get("opteo_api_key"),m=t.get("oauth_email"),g=t.get("error"),y=p((0,r.useState)(!1),2),h=y[0],x=y[1],b=p((0,r.useState)({}),2),v=b[0],A=b[1],_=(0,c.Ay)("/aw/tokens"),S=_.data,w=_.isLoading,O=null==S||null===(e=S.result)||void 0===e||null===(e=e.tokens)||void 0===e?void 0:e.find(function(e){return e.token_user_email===m}),j=(0,c.gC)("/aw/tokens/".concat(null==O?void 0:O.id),"PUT"),k=j.isLoading,E=j.error;return(0,r.useEffect)(function(){g&&A({title:(0,s.A)("Something went wrong, please try again"),text:String(g)})},[g]),(0,r.useEffect)(function(){var e;m&&null!=S&&null!==(e=S.result)&&void 0!==e&&e.tokens&&!h&&(O?(x(!0),j.mutate({opteo_api_key:n},{onSuccess:function(e){var t;A({title:(0,s.A)("You're all set! Your Opteo API key has been successfully updated."),text:(0,s.A)("You can close this window and return to Lunio")}),(0,d.A)(null==e||null===(t=e.data)||void 0===t?void 0:t.message,"success")},onError:function(){A({title:(0,s.A)("Something went wrong, please try again"),text:String(E)}),(0,d.A)((0,s.A)("Something went wrong!"),"error")}})):A({title:(0,s.A)("This Google account isn't added to Lunio"),text:(0,s.A)("Please make sure you're using the correct Google account and try again")}))},[m,S]),(0,f.jsxs)(i.A.Page,{type:"overview",children:[(0,f.jsx)(l.default,{type:"overview",title:(0,s.A)("PMax Tools")}),(0,f.jsxs)(a.default,{loading:k||w,preset:"dark",size:"responsive",children:[(0,f.jsx)(o.default,{preset:"text",children:v.title}),(0,f.jsx)(o.default,{preset:"subText",children:v.text})]})]})}},97356:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11525);const o=function(e,t,n){var o,a,i=(0,r.A)(n),l=null!==(o=e[i.apiResponseDataKey])&&void 0!==o?o:[];i.totalResults=e.pagination.total,i.totalPages=e.pagination.last_page;var s=function(e){return 0===e.length?{firstPage:1,lastPage:1}:{firstPage:e[0].page,lastPage:e[e.length-1].page}}(a=l.length>0?function(e,t,n,o,a){var i=(0,r.A)(e);return e.some(function(e){return e.page===n})||(i.push({page:n,items:t}),(i=i.sort(function(e,t){return e.page-t.page})).length>a&&("append"===o?i.shift():i.pop())),i}(t,l,e.pagination.current_page,i.lastRequestedDirection,i.maxNoPages):[]),c=s.firstPage,u=s.lastPage;return i.pageStart=c,i.pageEnd=u,{listD:a,lazyL:i}}},97382:(e,t,n)=>{"use strict";e.exports=n.p+"2c5032a9c3dd21fa3fcc.svg"},98536:(e,t,n)=>{"use strict";n.r(t),n.d(t,{useApi:()=>r.A,useApiSubmit:()=>o.A});var r=n(15742),o=n(5961)},98573:(e,t,n)=>{"use strict";n.d(t,{A:()=>m}),n(14041);var r=n(39067),o=n.n(r),a=n(50324),i=n(9260),l=n(62720),s=n(55618),c=n(30021),u=n(89748),d=n(97475),f=n(31085);function p(e){var t=e.onClose,n=(0,d.jE)();return(0,f.jsxs)(a.A,{initialFormValues:{name:"",type:"PURCHASE",whitelisting_enabled:0,workspace_ids:[],optional_parameters:{order_id:!1}},submitUrl:"/conversion/configs",submitType:"POST",queriesToInvalidate:["/conversion/configs"],onSuccess:function(){return n.invalidateQueries({queryKey:["/conversion/configs"]}),void t()},children:[(0,f.jsx)(l.default,{label:(0,u.A)("Name"),name:"name",type:"text","data-testid":"script-name-input",required:!0}),(0,f.jsx)(s.default.Section,{heading:(0,u.A)("Conversion type"),subtitle:(0,u.A)("Select protection status"),children:(0,f.jsxs)(l.default.OptionGroup,{name:"type",className:"mb-5",children:[(0,f.jsxs)("div",{className:"v-align-center mb-3",children:[(0,f.jsx)(l.default.Radio,{value:"PURCHASE","data-testid":"conversion-type-purchase-radio",ariaLabel:(0,u.A)("Purchase")}),(0,f.jsxs)("div",{className:"ml-3",children:[(0,f.jsx)(c.default,{preset:"formSectionTitle",children:(0,u.A)("Purchase")}),(0,f.jsx)(c.default,{preset:"formSectionSubTitle",children:(0,u.A)("A conversion that results in a purchase, money exchanged")})]})]}),(0,f.jsxs)("div",{className:"v-align-center mb-3",children:[(0,f.jsx)(l.default.Radio,{value:"NON_PURCHASE","data-testid":"conversion-type-lead-radio",ariaLabel:(0,u.A)("Lead")}),(0,f.jsxs)("div",{className:"ml-3",children:[(0,f.jsx)(c.default,{preset:"formSectionTitle",children:(0,u.A)("Lead")}),(0,f.jsx)(c.default,{preset:"formSectionSubTitle",children:(0,u.A)("A conversion that results in a form being filled or an email signup etc")})]})]})]})}),(0,f.jsx)(s.default.Section,{heading:(0,u.A)("Whitelisting"),subtitle:(0,u.A)("Select protection status"),children:(0,f.jsxs)(l.default.OptionGroup,{name:"whitelisting_enabled",className:"mb-5",children:[(0,f.jsxs)("div",{className:"v-align-center mb-3",children:[(0,f.jsx)(l.default.Radio,{value:1,"data-testid":"conversion-whitelisting_enabled-whitelist-radio",ariaLabel:(0,u.A)("Whitelist")}),(0,f.jsxs)("div",{className:"ml-3",children:[(0,f.jsx)(c.default,{preset:"formSectionTitle",children:(0,u.A)("Whitelist")}),(0,f.jsx)(c.default,{preset:"formSectionSubTitle",children:(0,u.A)("An ip that has been converted will be marked as a valid click for any future clicks")})]})]}),(0,f.jsxs)("div",{className:"v-align-center mb-3",children:[(0,f.jsx)(l.default.Radio,{value:0,"data-testid":"conversion-whitelisting_enabled-monitor-radio",ariaLabel:(0,u.A)("Monitor")}),(0,f.jsxs)("div",{className:"ml-3",children:[(0,f.jsx)(c.default,{preset:"formSectionTitle",children:(0,u.A)("Monitor")}),(0,f.jsx)(c.default,{preset:"formSectionSubTitle",children:(0,u.A)("No whitelisting behaviour, just keeps track of conversions")})]})]})]})}),(0,f.jsx)(s.default.Section,{heading:(0,u.A)("Parameter (optional)"),subtitle:(0,u.A)("A parameter is a custom data value you enable to capture additional details about the conversion event"),children:(0,f.jsx)(l.default.Toggle,{name:"optional_parameters.order_id"})}),(0,f.jsxs)("div",{className:"h-align-right",children:[(0,f.jsx)(i.default,{preset:"outline",className:"mt-4",onClick:function(){return t()},"data-testid":"cancel-script-button",children:(0,u.A)("Cancel")}),(0,f.jsx)(i.default,{type:"submit",preset:"primary","data-testid":"createWorksp
2aceScriptButton",className:"mt-4 ml-3",children:(0,u.A)("Generate")})]})]})}p.propTypes={onClose:o().func.isRequired};const m=p},98802:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(14041),o=n(51836);const a=function(){var e=(0,o.zy)().pathname;return(0,r.useEffect)(function(){var e,t=document.querySelectorAll("[class^=pageContainer]");(null==t?void 0:t.length)>0&&null!==(e=t[0])&&void 0!==e&&e.scrollTo&&t[0].scrollTo(0,0)},[e]),null}},98894:(e,t,n)=>{"use strict";e.exports=n.p+"b45d0213073f8e2edb20.svg"},98902:(e,t,n)=>{"use strict";n.d(t,{A:()=>v}),n(14041);var r=n(39067),o=n.n(r),a=n(9260),i=n(30021),l=n(79135),s=n(99018),c=n(89748),u=n(24284),d=n(83223),f=n(88133),p=n(11182),m=n(36549),g=n(31085);function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=(0,s.createUseStyles)(function(e){return{warningContainer:{height:88,width:"100%",backgroundColor:e.colors.constants.white,display:"inline-flex",alignItems:"center",justifyContent:"space-between",borderRadius:8,paddingLeft:32,paddingRight:18,marginBottom:32,border:"1px solid ".concat((0,s.findColour)(e,"red",200)),boxShadow:e.shadow.md,"& .icon":{fontSize:12,marginRight:16,fontWeight:"bold",color:(0,s.findColour)(e,"red",300)},"& .right":{marginLeft:122}}}});function b(e){var t,n,r,o,h=e.className,b=void 0===h?"":h,v=y((0,m.A)(),1)[0],A=y((0,p.A)(),1)[0],_=x(),S=(0,f.gC)("/subscriptions/customer-portal","POST");return(0,g.jsxs)(g.Fragment,{children:[(null==v||null===(t=v.subscription_info)||void 0===t?void 0:t.end_date)&&"INVALID"===(null==v||null===(n=v.subscription_info)||void 0===n?void 0:n.subscription_status)&&["ROOT","ADMIN"].includes(null==A?void 0:A.roleIdentifier)&&(0,g.jsxs)("div",{className:(0,s.classNames)(_.warningContainer,b),children:[(0,g.jsxs)("div",{className:"left flex items-center",children:[(0,g.jsx)("div",{className:"icon",children:(0,g.jsx)(l.default,{name:["fas","ban"],size:"2x"})}),(0,g.jsx)("div",{className:"text1",children:(0,g.jsx)(i.default,{preset:"largeError",children:(0,c.A)("Your account was cancelled on :date",{date:(0,d.GP)(1e3*Number(null==v||null===(r=v.subscription_info)||void 0===r?void 0:r.end_date),"do MMM yyyy")})})})]}),(0,g.jsx)("div",{className:"right",children:(0,g.jsx)(a.default,{preset:"outline","data-testid":"mail-to-button",iconRight:"chevron-right",onClick:function(){window.open("mailto:[email protected]")},children:(0,c.A)("Contact [email protected]")})})]}),"WARNING"===(null==v||null===(o=v.subscription_info)||void 0===o?void 0:o.subscription_status)&&["ROOT","ADMIN"].includes(null==A?void 0:A.roleIdentifier)&&(0,g.jsxs)("div",{className:(0,s.classNames)(_.warningContainer,b),children:[(0,g.jsxs)("div",{className:"left flex items-center",children:[(0,g.jsx)("div",{className:"icon",children:(0,g.jsx)(l.default,{name:["fas","ban"],size:"2x"})}),(0,g.jsxs)("div",{className:"text1",children:[(0,g.jsx)(i.default,{preset:"subText",children:(0,c.A)("Your account is past due.")}),(0,g.jsxs)(i.default,{children:[" ",(0,c.A)("To avoid disruptions to your protection:")]})]})]}),(0,g.jsx)("div",{className:"right ml-10",children:(0,g.jsx)(a.default,{preset:"primary","data-testid":"update-payment-button",onClick:function(){S.mutate({return_url:"https://dashboard.lunio.ai/subscription"},{onSuccess:function(e){window.open(e.data.session_url,"_blank").focus()},onError:function(){(0,u.A)("You do not have access to this area","error")}})},children:(0,c.A)("Update Payment Details")})})]})]})}b.propTypes={className:o().string};const v=b}
2,98962:(e,t,n)=>{"use strict";t.A=function(e){var t=e.adData,n=JSON.parse(t.ad_json),r=n.tracking_link||n.link;return(0,d.jsxs)(s.default.Row,{style:{alignItems:"center",marginBottom:16},children:[(0,d.jsx)(s.default.Col,{md:7,children:(0,d.jsx)("div",h(h({},{className:"padding-xe8ttls borderRadius-x1ltf28g","data-style-src":"MockAd/index.tsx:16"}),{},{children:(0,d.jsx)(u.default,{adData:n})}))}),(0,d.jsx)(s.default.Col,{md:1}),(0,d.jsx)(s.default.Col,{md:3,children:(0,d.jsxs)("div",h(h({},{className:"display-x78zum5 flexDirection-xdt5ytf gap-xou54vl marginLeft-x8x9d4c","data-style-src":"MockAd/index.tsx:21"}),{},{children:[(0,d.jsxs)("div",h(h({},{className:"display-xrvj5dj gridTemplateColumns-xnby9oq gap-xou54vl","data-style-src":"MockAd/index.tsx:27"}),{},{children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)(l.default,{preset:"filterPanelLabel",children:[(0,d.jsx)(i.default,{name:["fas","magnifying-glass"],className:"mr-2"}),(0,o.language)("KEYWORD")]}),(0,d.jsx)(l.default,{preset:"statLabel",children:t.keywords})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)(l.default,{preset:"filterPanelLabel",children:[(0,d.jsx)(i.default,{name:["far","location-pin"],className:"mr-2"}),(0,o.language)("LOCATION")]}),(0,d.jsx)(l.default,{preset:"statLabel",children:t.location})]})]})),(0,d.jsxs)("div",h(h({},{className:"display-xrvj5dj gridTemplateColumns-xnby9oq gap-xou54vl","data-style-src":"MockAd/index.tsx:27"}),{},{children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)(l.default,{preset:"filterPanelLabel",children:[(0,d.jsx)(i.default,{name:["far","calendar"],className:"mr-2"}),(0,o.language)("DATE DETECTED")]}),(0,d.jsx)(l.default,{preset:"statLabel",children:(0,a.format)(new Date(t.last_seen_at),"dd MMM, yyyy")})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)(l.default,{preset:"filterPanelLabel",children:[(0,d.jsx)(i.default,{name:["far","link"],className:"mr-2"}),(0,o.language)("TRACKING URL")]}),(0,d.jsx)(c.default,{preset:"primary",size:"xs",className:"mt-1",iconLeft:["far","copy"],disabled:!r,onClick:function(){r&&function(e){A.apply(this,arguments)}(r)},children:(0,o.language)("Copy")})]})]}))]}))})]})};var r=f(n(25751)),o=n(60156),a=n(18141),i=f(n(79135)),l=f(n(30021)),s=f(n(30556)),c=f(n(9260)),u=f(n(15226)),d=n(31085);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return g(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,s=e,f.n=n,i}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(l=0,f.v=r,f.n=a[1]):p<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,s=m;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(g(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,g(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,g(d,"constructor",c),g(c,"constructor",s),s.displayName="GeneratorFunction",g(c,o,"GeneratorFunction"),g(d),g(d,o,"Generator"),g(d,r,function(){return this}),g(d,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:f}})()}function g(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}g=function(e,t,n,r){function a(t,n){g(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},g(e,t,n,r)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?y(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var v=r.default;function A(){var e;return e=m().m(function e(t){var n;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,navigator.clipboard.writeText(t);case 1:(0,a.toastNotification)((0,o.language)("Copied to clipboard"),"success"),e.n=3;break;case 2:e.p=2,n=e.v,console.error("Failed to copy text: ",n);case 3:return e.a(2)}},e,null,[[0,2]])}),A=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){b(a,r,o,i,l,"next",e)}function l(e){b(a,r,o,i,l,"throw",e)}i(void 0)})},A.apply(this,arguments)}v(".padding-xe8ttls{padding:8px}",1e3),v(".borderRadius-x1ltf28g{border-radius:var(--borderRadiusDefault-x1tdk2mt)}",2e3),v(".display-x78zum5{display:flex}",3e3),v(".flexDirection-xdt5ytf{flex-direction:column}",3e3),v(".gap-xou54vl{gap:16px}",2e3),v(".marginLeft-x8x9d4c{margin-left:auto}",4e3),v(".display-xrvj5dj{display:grid}",3e3),v(".gridTemplateColumns-xnby9oq{grid-template-columns:repeat(2,minmax(0,1fr))}",3e3)},98991:(e,t,n)=>{"use strict";n.d(t,{A:()=>m}),n(14041);var r=n(28426),o=n(27805),a=n(63729),i=n(13734),l=n(22050),s=n(89748),c=n(93033),u=n(99226),d=n(77730),f=n(31085);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const m=function(){var e,t,n,m=(t=(0,d.A)(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],g=(0,u.A)(),y=g.activePlatformTitle,h=g.allowedFeatureFlags,x=g.lunioStatus;return(0,f.jsxs)(r.A.Page,{type:"overview",children:[(0,f.jsx)(o.default,{type:"overview",title:(0,s.A)(":platformName Summary - :workspace",{platformName:y,workspace:null===(e=m.selectedWorkspace)||void 0===e?void 0:e.name}
2),text:(0,s.A)("Insights into invalid traffic identified by Lunio")}),"TRIAL"===x&&(0,f.jsx)(i.A,{className:"mb-4"}),(0,f.jsx)(c.A,{isNotTrialStatus:!0,OR:"TRIAL"===x&&h(["TRIAL_CLICK_LOG_ANALYTICS"]),orIsImpersonating:!0,children:(0,f.jsx)(l.A,{className:"mb-4",reAllocated:!0})}),(0,f.jsx)(a.A,{}),"TRIAL"!==x&&(0,f.jsx)(i.A,{className:"mt-4"})]})}},99001:(e,t,n)=>{"use strict";e.exports=n.p+"1c55a3fee6d875239c93.svg"},99018:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ThemeProvider:()=>r.NP,classNames:()=>i.a,createUseStyles:()=>o.MA,cx:()=>u.A,defaultTheme:()=>l.A,findColour:()=>c.A,themeGlobalCss:()=>s.A});var r=n(47058),o=n(91730),a=n(99870),i=n.n(a),l=n(27558),s=n(80565),c=n(6435),u=n(59878)},99060:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(14041),o=n(88133),a=n(89748),i=n(36549),l=n(24284),s=n(70218),c=n(31085);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const y=function(){var e=m((0,i.A)(),2),t=e[0],n=e[1],u=(0,o.Ay)("/utilities/options").data,d=m(r.useState(!1),2),p=d[0],g=d[1],y=(0,o.gC)("/settings","POST");return(0,c.jsx)(s.A,{data:u,isSaving:p,saveChanges:function(e){g(!0),y.mutate(f({_method:"PATCH",action:"UPDATE"},e),{onSuccess:function(){(0,l.A)("account settings saved","success"),n(f(f({},t),{},{settings:f(f({},t.settings),{},{display_simplified_number_format:e.display_simplified_number_format,account_industry:e.account_industry,default_currency:e.default_currency,account_title:e.account_title})})),g(!1)},onError:function(){(0,l.A)((0,a.A)("Something went wrong!"),"error"),g(!1)}})}})}},99207:(e,t,n)=>{"use strict";e.exports=n.p+"f6b3529da0672a97be91.svg"},99226:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(14041),o=n(44992);const a=function(){var e,t,n,a,i,l=(0,r.useContext)(o.A).userContext,s=(null==l?void 0:l.featureFlags)||[],c=(null==l?void 0:l.integrations)||[],u=null==l?void 0:l.roleIdentifier,d=null==l?void 0:l.accountRoleIdentifier,f=null==l||null===(e=l.selectedPlatform)||void 0===e?void 0:e.platform_name,p=null==l||null===(t=l.selectedPlatform)||void 0===t?void 0:t.platform_title,m=null==l?void 0:l.isImpersonating,g=null==l||null===(n=l.account)||void 0===n?void 0:n.lunio_status,y=null===(null==l?void 0:l.selectedWorkspace)||void 0===(null==l?void 0:l.selectedWorkspace),h=(null==l||null===(a=l.selectedWorkspace)||void 0===a?void 0:a.id)>0||-1===(null==l||null===(i=l.selectedWorkspace)||void 0===i?void 0:i.id),x=(null==l?void 0:l.browserLanguage)||"en-GB";function b(e){return!!e&&void 0!==e[0]}return{roleIdentifier:u,accountRoleIdentifier:d,activePlatform:f,activePlatformTitle:p,featureFlags:s,integrations:c,isImpersonating:m,isAllWorksp
2aces:y,isNotAllWorkspaces:h,allowedPlatforms:function(e){return!!b(e)&&e.includes(f)},allowedIntegrations:function(e){return!!b(e)&&c.some(function(t){return e.includes(t)})},allowedRoles:function(e){return!!b(e)&&e.includes(u)},allowedAccountRoles:function(e){return!!b(e)&&e.includes(d)},allowedEnvironments:function(e){return!!b(e)&&e.includes("production")},allowedFeatureFlags:function(e){return!!b(e)&&s.some(function(t){return e.includes(t)})},lunioStatus:g,browserLanguage:x,allowedBrowserLanguages:function(e){return!!b(e)&&e.includes(x)}}}},99537:(e,t,n)=>{"use strict";e.exports=n.p+"6595ffa5bc83b7f6c5dc.svg"},99669:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(14041),o=n(56197),a=n(62720),i=n(76449),l=n(28426),s=n(44949),c=n(89748),u=n(51836),d=n(73657),f=n(62161),p=n(27333),m=n(99226),g=n(40699),y=n(83223),h=n(59250),x=n(32881),b=n(41574),v=n(31085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(){var e,t,n,A,_,w,j,k,E,N,I,P,T="TRIAL"===(0,m.A)().lunioStatus,C=O((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),R=C[0],M=C[1],L=O((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),D=L[0],B=L[1],U=O((0,r.useState)(a.default.DatePicker.getDateRange("30d")),2),F=U[0],G=U[1],W=(0,u.g)().network,z=(0,p.R7)({sortKey:"network"}),V=z.filters,q=z.setFilters,K=(0,p.R7)({sortKey:"created_at"}),H=K.filters,Y=K.handlePagination,$=K.setFilters,Z=K.handleSort;function X(e){var t='&group_by=network&network=["'.concat(encodeURIComponent(W),'"]'),n=Object.keys(e).filter(function(t){return t.startsWith("fraud_type.")&&e[t]}).map(function(e){return e.replace("fraud_type.","")});return e["campaign.contains"]&&(t+="&campaign_contains=".concat(e["campaign.contains"])),n.length>0&&(t+='&fraud_type=["'.concat(n.join('","'),'"]')),t}var J=(0,p.st)("/affiliates/clicks/log",S(S({},H),{},{startDate:new Date(F.min.date),endDate:new Date(F.max.date)}),X),Q=J.data,ee=J.isLoading,te=Object.entries((0,g.T5)("analytics")).map(function(e){var t=O(e,2),n=t[0],r=t[1];return{label:(0,c.A)(r),shortLabel:(0,c.A)(r),type:"checkbox",name:n,value:!1}}),ne=[{label:(0,c.A)("Fraud Type"),name:"fraud_type",type:"checkbox",queryTranslator:"arrayOfNames",queryKey:"type",options:te},{label:(0,c.A)("Campaign"),name:"campaign",type:"radio",options:[{label:(0,c.A)("contains"),name:"contains",type:"text"}]}],re=(0,p.st)("/affiliates/clicks",S(S({},V),{},{startDate:new Date(R.min.date),endDate:new Date(R.max.date)}),X),oe=re.data,ae=re.isLoading,ie=(0,p.st)("/affiliates/clicks",{startDate:new Date(D.min.date),endDate:new Date(D.max.date),group_by:"network",page:1,limit:100,sortKey:"network",sortOrder:"asc"}),le=ie.data,se=ie.isLoading,ce=null==oe?void 0:oe.result,ue=null==le||null===(e=le.result)||void 0===e||null===(e=e.overall)||void 0===e?void 0:e.overall_invalid_labels_percent;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s.A,{title:(0,c.A)(":network Overview",{network:W}),size:"sm",menuItems:[],subTitle:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(d.Link,{style:{color:"#7F56D9"},to:"/analytics/affiliate/networks",children:(0,c.A)("Networks")})," ",W&&" / ",W]}),contentRight:(0,v.jsx)(b.A,{filters:H,dates:F,exportType:"network",exportValue:W})}),(0,v.jsxs)(l.A.Page,{type:"settings",children:[(0,v.jsx)(h.A,{title:(0,c.A)(":network Summary",{network:W}),isLoading:ae,total:{title:(0,c.A)("Total Clicks"),count:null==ce||null===(t=ce.overall)||void 0===t?void 0:t.overall_clicks},allTrackedClicks:{title:(0,c.A)("All Tracked Clicks"),count:null==ce||null===(n=ce.overall)||void 0===n?void 0:n.overall_all_tracked_clicks,tooltip:(0,c.A)("The total number of click events tracked by Lunio, including valid, suspicious, SIVT and GIVT clicks.")},invalid:{title:(0,c.A)("SIVT Clicks"),count:null==ce||null===(A=ce.overall)||void 0===A?void 0:A.overall_clicks_invali
2d},givt:T?void 0:{title:(0,c.A)("GIVT Clicks"),count:null==ce||null===(_=ce.overall)||void 0===_?void 0:_.overall_clicks_general_invalid,tooltip:(0,c.A)("Clicks Lunio has identified as General Invalid Traffic (GIVT). GIVT includes duplicate clicks and known bots and crawlers. GIVT does not necessarily mean the traffic is malicious, rather the clicks did not meet Lunio's standard for a valid click interaction.")},totalIvt:{title:(0,c.A)("Total IVT"),count:null==ce||null===(w=ce.overall)||void 0===w?void 0:w.overall_total_ivt,tooltip:(0,c.A)("The total number of clicks Lunio has identified as invalid, including both GIVT and SIVT.")},ivt:{count:null==ce||null===(j=ce.overall)||void 0===j?void 0:j.overall_clicks_invalid_percent},totalIvtPercent:{title:(0,c.A)("Total IVT %"),count:null==ce||null===(k=ce.overall)||void 0===k?void 0:k.overall_total_ivt_percent,tooltip:(0,c.A)("The percentage of all clicks tracked by Lunio that were identified as invalid (GIVT + SIVT).")},setTime:M,time:R,filters:V,setFilters:q,filterConfig:ne}),(0,v.jsx)(x.A,{data:(0,g.J8)(ue,"analytics"),isLoading:se,setTime:B,time:D,title:(0,c.A)("Fraud Type")}),(0,v.jsxs)("div",{className:"flex distribute-space-between mb-4 width-100",children:[(0,v.jsx)("div",{className:"left",children:(0,v.jsx)(i.default,{filterConfig:ne,initialValues:H,onFilterChange:$})}),(0,v.jsx)("div",{className:"flex",children:(0,v.jsx)(a.default.DatePicker,{value:[F.min.date,F.max.date],onRangeChange:function(e){return G(e)},selectedOption:F.rangeName,showCalenderIcon:!1,displayRangeText:!1})})]}),(0,v.jsx)(f.A,{rows:null==Q||null===(E=Q.result)||void 0===E?void 0:E.data,isLoading:ee,totalResults:null==Q||null===(N=Q.result)||void 0===N||null===(N=N.pagination)||void 0===N?void 0:N.total,totalPages:null==Q||null===(I=Q.result)||void 0===I||null===(I=I.pagination)||void 0===I?void 0:I.last_page,totalItems:null==Q||null===(P=Q.result)||void 0===P||null===(P=P.pagination)||void 0===P?void 0:P.total,pageNumber:H.page,handlePagination:Y,limit:H.limit,leftPinnedColumns:1,handleSorting:Z,sorting:{sortKey:H.sortKey,sortOrder:H.sortOrder},children:function(e){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("thead",{children:(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{"data-sortable-id":"created_at",children:(0,c.A)("Timestamp")}),(0,v.jsx)("th",{"data-sortable-id":"partner",children:(0,c.A)("Partner")}),(0,v.jsx)("th",{"data-sortable-id":"campaign",children:(0,c.A)("Campaign")}),(0,v.jsx)("th",{children:(0,c.A)("Fraud Type")})]})}),(0,v.jsxs)("tbody",{children:[(0,v.jsx)("td",{children:(null==e?void 0:e.created_at)&&(0,y.GP)(e.created_at,"MMM d, HH:mm")}),(0,v.jsx)("td",{children:null==e?void 0:e.partner}),(0,v.jsx)("td",{children:null==e?void 0:e.campaign}),(0,v.jsx)("td",{children:(0,g.ic)(null==e?void 0:e.invalid_labels,"analytics").map(function(e){return(0,v.jsx)(o.default,{style:{display:"inline-block",marginRight:"12px",lineHeight:"24px"},colourName:"error",children:e},e)})})]})]})}})]})]})}},99997:(e,t,n)=>{"use strict";e.exports=n.p+"a55a287a2300b10a729a.svg"}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=r,e=[],a.O=(t,n,r,o)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,r,o]=e[u],l=!0,s=0;s<n.length;s++)(!1&o||i>=o)&&Object.keys(a.O).every(e=>a.O[e](n[s]))?n.splice(s--,1):(l=!1,o<i&&(i=o));if(l){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);a.r(o);var i={};t=t||[null,n({}),n([]),n(n)];for(var l=2&r&&e;("object"==typeof l||"function"==typeof l)&&!~t.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach(t=>i[t]=()=>e[t]);return i.default=()=>e,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}
2}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.p="/",(()=>{var e={792:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,l,s]=n,c=0;if(i.some(t=>0!==e[t])){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(s)var u=s(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(u)},n=self.webpackChunk_luniohq_dashboard=self.webpackChunk_luniohq_dashboard||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=a.O(void 0,[776],()=>a(81948));i=a.O(i)})(); 3//# sourceMappingURL=main.616433781da6d7183c35.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.