PageSourceSearch

https://www.enterprisesurveys.org/etc.clientlibs/datasites-spa/cli…/resources/static/js/3349.aca57d74.chunk.js

js enterprisesurveys.org collected 2026-10-01 10:42:20 UTC 4,879 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkenterprisesurveys_data=self.webpackChunkenterprisesurveys_data||[]).push([[3349],{3349:(e,a,l)=>{l.r(a),l.d(a,{default:()=>r});var t=l(9456),s=l(5043),i=l(6570),c=l(5468),d=l(9547),n=l(7776),o=l(579);const r=e=>{let{openIndicatorModal:a,setOpenIndicatorModal:l,selectedTopic:r}=e;const u=(0,t.wA)(),m=(0,n.A)(),{economyIndicatorData:h,selectedModalIndicator:_,modalCountriesIndicatorData:b}=(0,t.d4)((e=>e.economyInformal)),p=b.slice(0,1).flatMap((e=>e.indicators)),x=p.map((e=>({id:e.indicatorID,label:e.indicator,value:e.indicator}))),[j,v]=(0,s.useState)([]);(0,s.useEffect)((()=>{a&&v(_)}),[a]);return(0,o.jsx)(i.A,{isOpen:a,onClose:()=>l(!1),children:(0,o.jsxs)("div",{className:"tui_modal_content",children:[(0,o.jsxs)("div",{className:"tui_modal_header",children:[(0,o.jsx)("h2",{className:"tui_modal_title",id:"modal1Title",children:"Add Indicator"}),(0,o.jsx)("button",{className:"tui_modal_close_btn","aria-label":"Close modal","data-modal-close":"modal1",onClick:()=>l(!1),"data-customlink":"nl:body content",children:(0,o.jsx)("i",{className:"lp lp-times"})})]}),(0,o.jsxs)("div",{className:"tui_modal_body",children:[(0,o.jsx)("div",{className:"tui_clear_all",children:(0,o.jsxs)("button",{"data-customlink":"nl:body content",onClick:()=>v([]),children:["Clear all ",(0,o.jsx)("span",{className:"lp lp-times"})]})}),(0,o.jsx)(c.A,{title:"Indicators in the ".concat(null===r||void 0===r?void 0:r.publishedName," topic"),items:x,collapseId:"collapse2",checkedItems:j,setCheckedItems:v,isSearchEnabled:!0})]}),(0,o.jsxs)("div",{className:"tui_modal_footer  ",children:[(0,o.jsx)("div",{className:"tui_indicator_status error",children:j.length>3&&(0,o.jsx)("p",{children:"You can add up to three indicators in total "})}),(0,o.jsxs)("div",{className:"tui_modal_button",children:[(0,o.jsx)("div",{className:"tui__btn lp__border_lightblue_btn",children:(0,o.jsx)("button",{className:" ","data-modal-close":"modal1",onClick:()=>l(!1),"data-customlink":"nl:body content",children:"Cancel"})}),(0,o.jsx)("div",{className:"tui__btn  tui__solid_lightblue_btn",children:(0,o.jsx)("button",{className:"tui_modal_confirm",onClick:()=>(()=>{if(u((0,d.setSelectedModalIndicator)(j)),j.length>0){const e=j.map((e=>{var a;return(null===(a=p.find((a=>a.indicator===e)))||void 0===a?void 0:a.indicatorID)||null})).filter((e=>null!==e));m.setQueryParam("IndicatorIds",e.join(","))}else m.deleteQueryParams(["IndicatorIds"]);l(!1)})(),disabled:j.length>3,style:{opacity:j.length>3?.5:1},"data-customlink":"nl:body content",children:"Confirm"})})]})]})]})})}},5468:(e,a,l)=>{l.d(a,{A:()=>i});var t=l(5043),s=l(579);const i=e=>{let{title:a,items:l,collapseId:i,checkedItems:c,setCheckedItems:d,isSearchEnabled:n=!1}=e;const[o,r]=(0,t.useState)(!1),[u,m]=(0,t.useState)("");return(0,s.jsxs)("div",{className:"tui_collapse",children:[(0,s.jsx)("button",{className:"tui_collapse_button","aria-expanded":o,"aria-controls":i,onClick:()=>r(!o),"data-customlink":"nl:body content",children:(0,s.jsx)("span",{children:a})}),(0,s.jsxs)("div",{className:o?"tui_collapse_body show":"tui_collapse_body",id:i,children:[(0,s.jsx)("div",{class:"tui_search_container",children:n&&(0,s.jsxs)("form",{action:"#",class:"tui_search_form",role:"search",children:[(0,s.jsx)("input",{type:"text",class:"tui_search_input",placeholder:"Search...","aria-label":"Search",id:"search-input",onChange:e=>m(e.target.value),value:u}),(0,s.jsx)("button",{class:"tui_clear_button","aria-label":"clear",type:"reset",onClick:()=>{m("")},"data-customlink":"nl:body content",children:(0,s.jsx)("i",{class:"lp lp-times"})})]})}),(0,s.jsx)("div",{className:"tui__checkbox_group_list",children:l&&l.filter((e=>!n||e.label.toLowerCase().includes(u.toLowerCase()))).map(((e,a)=>{let{id:l,label:t,value:i,checked:n=!1}=e;return(0,s.jsxs)("div",{className:"tui__checkbox",children:[(0,s.jsx)("input",{className:"tui__primary_checkbox",type:"checkbox",id:l,name:"Select Subgroups",value:i,checked:c.includes(i),onChange:e=>{e.target.checked?d((e=>Array.isArray(e)?[...e,i]:[i])):d((e=>e.filter((e=>e!==i))))}}),(0,s.jsx)("label",{htmlFor:l,children:(0,s.jsx)("span",{children:null===t||void 0===t?void 0:t.replace(/^\[B-READY\]\s*/,"")})})]},a)}))})]})]})}},6570:(e,a,l)=>{l.d(a,{A:()=>i});var t=l(7950),s=l(579);const i=e=>{const{isOpen:a,children:l}=e;return a?t.createPortal((0,s.jsx)("div",{id:"modal1",className:"tui_modal tui_modal_right show",role:"dialog","aria-labelledby":"modal1Title","aria-describedby":"modal1Description","aria-hidden":"false",children:l}),document.body):null}},7776:(e,a,l)=>{l.d(a,{A:()=>s});var t=l(3245);const s=()=>{const[e,a]=(0,t.ok)();return{queryParams:Object.fromEntries(e),getQueryParam:a=>e.get(a),setQueryParam:(e,l)=>{a((a=>(a.set(e,l),a)))},deleteQueryParams:e=>{a((a=>(e.forEach((e=>{a.delete(e)})),a)))}}}}}]);
2//# sourceMappingURL=3349.aca57d74.chunk.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.