PageSourceSearch

https://ankura.com/_next/static/chunks/6836.ac503e718fd43304.js

js ankura.com collected 2026-10-09 21:30:07 UTC 11,303 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6836],{26836:function(e,n,t){"use strict";t.r(n),t.d(n,{PrivacyLawMap:function(){return g},default:function(){return w}});var o=t(34727),a=t(43038),i=t(85893),r=t(67294),l=t(57172),c=t(93469),s=t(5724),d=t(14251),u=t(52875),m=t(85131),v=t.n(m),f=function(e){var n=e.label,t=e.ariaLabel,o=e.onChange,a=e.checked,r=e.disabled,l=e.className,c=e.style;return(0,i.jsxs)("label",{className:[v().container,a?v().checked:"",null!==l&&void 0!==l?l:""].join(" "),style:(0,u.Z)((0,d.Z)({},c),{cursor:r?"not-allowed":"pointer"}),children:[(0,i.jsx)("input",{disabled:r,className:[v().input].join(" "),type:"checkbox","aria-label":t,checked:a,onChange:function(e){return null===o||void 0===o?void 0:o(e.target.checked)}}),(0,i.jsx)("span",{className:[v().check,a?v().checked:""].join(" ")}),n]})},p=t(22930),h=t.n(p),x=[{name:"Arizona",code:"AZ"},{name:"Alabama",code:"AL"},{name:"Alaska",code:"AK"},{name:"Arkansas",code:"AR"},{name:"California",code:"CA"},{name:"Colorado",code:"CO"},{name:"Connecticut",code:"CT"},{name:"Delaware",code:"DE"},{name:"Florida",code:"FL"},{name:"Georgia",code:"GA"},{name:"Hawaii",code:"HI"},{name:"Idaho",code:"ID"},{name:"Illinois",code:"IL"},{name:"Indiana",code:"IN"},{name:"Iowa",code:"IA"},{name:"Kansas",code:"KS"},{name:"Kentucky",code:"KY"},{name:"Louisiana",code:"LA"},{name:"Maine",code:"ME"},{name:"Maryland",code:"MD"},{name:"Massachusetts",code:"MA"},{name:"Michigan",code:"MI"},{name:"Minnesota",code:"MN"},{name:"Mississippi",code:"MS"},{name:"Missouri",code:"MO"},{name:"Montana",code:"MT"},{name:"Nebraska",code:"NE"},{name:"Nevada",code:"NV"},{name:"New Hampshire",code:"NH"},{name:"New Jersey",code:"NJ"},{name:"New Mexico",code:"NM"},{name:"New York",code:"NY"},{name:"North Carolina",code:"NC"},{name:"North Dakota",code:"ND"},{name:"Ohio",code:"OH"},{name:"Oklahoma",code:"OK"},{name:"Oregon",code:"OR"},{name:"Pennsylvania",code:"PA"},{name:"Rhode Island",code:"RI"},{name:"South Carolina",code:"SC"},{name:"South Dakota",code:"SD"},{name:"Tennessee",code:"TN"},{name:"Texas",code:"TX"},{name:"Utah",code:"UT"},{name:"Vermont",code:"VT"},{name:"Virginia",code:"VA"},{name:"Washington",code:"WA"},{name:"West Virginia",code:"WV"},{name:"Wisconsin",code:"WI"},{name:"Wyoming",code:"WY"}],g=function(e){var n,d,u=e.states,m=e.selectStatePrompt,v=e.sortAlphabeticallyLabel,p=e.sortByLevelLabel,g=e.peopleHeading,w=e.people,_=(0,r.useRef)(null),b=(0,r.useState)(),y=b[0],C=b[1],j=(0,r.useState)({x:0,y:0}),k=j[0],N=j[1],M=(0,r.useState)([]),L=M[0],S=M[1],A=(0,r.useState)(!1),I=A[0],P=A[1],H=(0,r.useState)("name"),T=H[0],E=H[1],R=(0,r.useState)(!1),Y=R[0],D=R[1],V=(0,r.useState)(!1),O=V[0],B=V[1];(0,r.useEffect)((function(){var e=function(e){return N({x:e.clientX,y:e.clientY+window.scrollY+10})};return y&&document.addEventListener("mousemove",e),function(){return document.removeEventListener("mousemove",e)}}),[y]),(0,r.useEffect)((function(){var e=function(e){"Escape"===e.key&&D(!1)};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[]);var W,F,U,K=function(e){S((function(n){return n.includes(e)?n.filter((function(n){return n!==e})):n.concat([e])}))},G=function(e){var n,t,o=null!==(t=null===(n=x.find((function(n){return n.name===e})))||void 0===n?void 0:n.code)&&void 0!==t?t:"",a=u.find((function(e){return e.name===o}));return L.includes(o)?"#e5b922":""!==o&&a?"high"===a.lawSeverity?"rgba(62, 135, 136, 0.7)":"medium"===a.lawSeverity?"rgba(62, 135, 136, 0.5)":"rgba(62, 135, 136, 0.25)":"rgba(62, 135, 136, 0.25)"},Z=function(){var e=(0,o.Z)((function(){var e,n,o,r,l,c;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return B(!0),[4,Promise.all([t.e(4186),t.e(1445),t.e(1111),t.e(5999),t.e(2546),t.e(8768),t.e(7067),t.e(8295)]).then(t.bind(t,93744))];case 1:return e=a.sent().Download,[4,Promise.all([t.e(4186),t.e(1445),t.e(1111),t.e(5999),t.e(8768),t.e(2480)]).then(t.bind(t,24266))];case 2:return n=a.sent().pdf,[4,t.e(3162).then(t.t.bind(t,93162,23))];case 3:return o=a.sent(),r=o.default,[4,n((0,i.jsx)(e,{pageEyebrow:"Tracker - ".concat((new Date).getFullYear()),pageTitle:"US State Privacy Legislation Tracker",pageSubtitle:"Your custom results",stateInformation:L.map((function(e){var n,t,o,a;return{stateName:null!==(o=null===(n=x.find((function(n){return n.code===e})))||void 0===n?void 0:n.name)&&void 0!==o?o:"",bodyHtml:null!==(a=null===(t=u.find((function(n){return n.name.toLowerCase()===e.toLowerCase()})))||void 0===t?void 0:t.detailsHtml)&&void 0!==a?a:"<p>Information not available.</p>"}})),footerCopy:"Copyright ".concat((new Date).getFullYear()," Ankura Consulting Group, LLC. All rights reserved."),personnel:g&&w?{heading:g,people:w.map((function(e){var n;return{photoUrl:null===(n=e.imageReference)||void 0===n?void 0:n.url,name:"".concat(e.firstName," ").concat(e.lastName),title:e.jobTitle,email:null!==(l=e.email)&&void 0!==l?l:""}}))}:void 0})).toBlob()];case 4:return c=a.sent(),r.saveAs(c,"ankura-privacy-legislation-tracker.pdf"),B(!1),D(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.jsxs)("section",{className:h().container,children:[Y&&(0,i.jsxs)("div",{className:h().downloadModal,onClick:function(e){e.currentTarget===e.target&&D(!1)},children:[!O&&(0,i.jsx)(c.bI,{formId:"843ca4b7-e11e-4ca7-9fad-eb0ab73829f8",onSubmitted:Z}),O&&(0,i.jsx)("div",{style:{textAlign:"center"},children:(0,i.jsx)(c.P2,{message:"Generating results document"})})]}),(0,i.jsxs)("div",{className:h().mapContainer,children:[(0,i.jsxs)("form",{onSubmit:function(e){return e.preventDefault()},children:[(0,i.jsx)("p",{children:null!==m&&void 0!==m?m:"Legislation Tracker lead-in copy will be here:"}),(0,i.jsxs)("fieldset",{className:[h().stateSelect,I?h().expanded:""].join(" "),children:[(0,i.jsx)("legend",{onClick:function(){return P((function(e){return!e}))},children:"Choose States"}),(0,i.jsx)("ul",{children:x.sort((function(e,n){return e.name<n.name?-1:1})).map((function(e){return(0,i.jsx)("li",{children:(0,i.jsx)(f,{label:e.name,checked:L.some((function(n){return n===e.code})),onChange:function(){return K(e.code)}})},e.code)}))})]}),(0,i.jsxs)("ul",{className:h().selectionControls,children:[L.length>0&&(0,i.jsx)("li",{children:(0,i.jsx)(c.zx,{type:"button",onClick:function(){var e;return null===(e=_.current)||void 0===e?void 0:e.scrollIntoView({behavior:"smooth"})},className:h().viewResultsButton,children:"View Your Results"})}),(0,i.jsx)("li",{children:(0,i.jsx)("button",{type:"button",className:h().viewAllButton,onClick:function(){S(x.map((function(e){return e.code}))),setTimeout((function(){var e;return null===(e=_.current)||void 0===e?void 0:e.scrollIntoView({behavior:"smooth"})}),100)},children:"Select All States"})}),L.length>0&&(0,i.jsx)("li",{children:(0,i.jsx)("button",{type:"button",className:h().viewAllButton,onClick:function(){return S([])},children:"Clear Selection"})})]})]}),(0,i.jsx)(l.ComposableMap,{className:h().map,projection:"geoAlbersUsa",children:(0,i.jsx)(l.Geographies,{geography:"https://cdn.jsdelivr.net/npm/us-atlas@3/states-10m.json",children:function(e){var n=e.geographies;return(0,i.jsx)(i.Fragment,{children:n.map((function(e){return(0,i.jsx)(l.Geography,{stroke:"#fff",geography:e,fill:G(e.properties.name),onMouseEnter:function(){var n;return C(null===(n=x.find((function(n){return n.name===e.properties.name})))||void 0===n?void 0:n.code)},onMouseLeave:function(){return C(void 0)},onClick:function(){var n,t=null===(n=x.find((function(n){return n.name===e.properties.name})))||void 0===n?void 0:n.code;t&&K(t)}},e.rsmKey)}))})}})})]}),L.length>0&&(0,i.jsx)("p",{style:{textAlign:"center",marginTop:-10,marginBottom:"3em"},children:(0,i.jsx)(c.zx,{type:"button",onClick:function(){var e;return null===(e=_.current)||void 0===e?void 0:e.scrollIntoView({behavior:"smooth"})},className:h().viewResultsButton,children:"View Your Results"})}),y&&(0,i.jsx)("div",{className:h().stateHoverContainer,style:{position:"absolute",top:k.y,left:k.x},children:(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{children:null!==(W=null===(n=x.find((function(e){return e.code===y})))||void 0===n?void 0:n.name.toUpperCase())&&void 0!==W?W:y.toUpperCase()}),(0,i.jsx)("ul",{children:null===(d=u.find((function(e){return e.name===y})))||void 0===d?void 0:d.bullets.map((function(e,n){return(0,i.jsx)("li",{children:e},n)}))})]})}),L.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:h().resultsHeader,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{className:h().resultsHeading,ref:_,children:"Results"}),(0,i.jsxs)("p",{className:h().sortControls,children:["Sort by:"," ",(0,i.jsx)("button",{onClick:function(){return E("name")},style:{fontWeight:"name"===T?"bold":void 0},children:null!==v&&void 0!==v?v:"Name"})," | ",(0,i.jsx)("button",{onClick:function(){return E("level")},style:{fontWeight:"level"===T?"bold":void 0},children:null!==p&&void 0!==p?p:"Level"})]})]}),(0,i.jsx)("p",{children:(0,i.jsx)(c.zx,{variant:c.Wu.Green,onClick:function(){return D(!0)},children:"Download Your Results"})})]}),L.sort((function(e,n){var t,o,a,i;if("name"===T)return(null!==(a=null===(t=x.find((function(n){return n.code===e})))||void 0===t?void 0:t.name)&&void 0!==a?a:"")<(null!==(i=null===(o=x.find((function(e){return e.code===n})))||void 0===o?void 0:o.name)&&void 0!==i?i:"")?-1:1;var r,l,c=u.find((function(n){return n.name===e})),s=u.find((function(e){return e.name===n})),d=function(e){return"high"===e?3:"medium"===e?2:1};return d(null!==(r=null===c||void 0===c?void 0:c.lawSeverity)&&void 0!==r?r:"low")>d(null!==(l=null===s||void 0===s?void 0:s.lawSeverity)&&void 0!==l?l:"low")?-1:1})).map((function(e){var n,t,o;return(0,i.jsx)(s.a,{heading:null!==(F=null===(n=x.find((function(n){return n.code===e})))||void 0===n?void 0:n.name.toUpperCase())&&void 0!==F?F:e.toUpperCase(),headingExtra:u.f
1ind((function(n){return n.name===e}))?"Last updated ".concat(null===(t=u.find((function(n){return n.name===e})))||void 0===t?void 0:t.dateModifiedString):void 0,contentHtml:null!==(U=null===(o=u.find((function(n){return n.name===e})))||void 0===o?void 0:o.detailsHtml)&&void 0!==U?U:"<p>Information not available.</p>",startOpen:!1},e)}))]}),w&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{className:h().personnelHeading,children:g}),(0,i.jsx)(c.Ki,{people:w})]})]})},w=g},85131:function(e){e.exports={container:"CheckboxInput_container__S8exH",checked:"CheckboxInput_checked__TVq4u",check:"CheckboxInput_check___6yjM",input:"CheckboxInput_input__vuoSD"}},22930:function(e){e.exports={mapContainer:"PrivacyLawMap_mapContainer__eAKFU",stateSelect:"PrivacyLawMap_stateSelect__EJqCO",expanded:"PrivacyLawMap_expanded__Z6HGC",selectionControls:"PrivacyLawMap_selectionControls__Y1ZkD",viewResultsButton:"PrivacyLawMap_viewResultsButton__Z6Tmu",viewAllButton:"PrivacyLawMap_viewAllButton__qc2Cy",map:"PrivacyLawMap_map__avSfh",resultsHeading:"PrivacyLawMap_resultsHeading__hFN3P",stateHoverContainer:"PrivacyLawMap_stateHoverContainer__PMSCE",resultsHeader:"PrivacyLawMap_resultsHeader__FXTYf",sortControls:"PrivacyLawMap_sortControls__rbIMP",downloadModal:"PrivacyLawMap_downloadModal__YOPIf",downloadResults:"PrivacyLawMap_downloadResults___i9Ov",personnelHeading:"PrivacyLawMap_personnelHeading__EVc9Y"}}}]);

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.