1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[507],{1941:(e,t,i)=>{e.exports=i(2324)},2343:(e,t,i)=>{"use strict";i.d(t,{m:()=>o});var a=i(7371),s=i(6910),n=i(898),c=i(8391),r=i(2674);let o={components:{fetchListing:async e=>{let{cookies:t,edDate:i,store:c}=e,r=c.getState(),o=!!(r.lists.magazine?.editions&&r.lists.magazine?.editions.length>0),l=r.lists.epaper?.reqDate===i,d=r.lists.cityEditionMap&&r.lists.cityEditionMap.cities?.length>0,p=[null,null,null];o||(p[0]=a.A.fetchMagazineEditions(t,n.B.util.getDateString(new Date))),l||(p[1]=a.A.fetchEpaperEditions(t,i)),d||(p[2]=a.A.fetchCityEditionMap(t)),(await Promise.all(p)).forEach((e,t)=>{0===t&&e&&c.dispatch(s.A.actions.setMagazineEditions(e)),1===t&&e&&c.dispatch(s.A.actions.setEpaperEditions(e)),2===t&&e&&c.dispatch(s.A.actions.setCityEditionMap(e))})},syncUserPreferences:async(e,t)=>{let i=(await c.A.fetchPrevPreferences(t)).cities.cities;if(i.length){let t=n.B.selectLocationPage.destructureMixedLocations(i);e.dispatch(r.A.actions.updateSelectedUserStates(t.states)),e.dispatch(r.A.actions.setUserSelectedCities(t.rawCities))}}}}},3665:(e,t,i)=>{"use strict";i.d(t,{p:()=>o});var a=i(6514),s=i(4838),n=i(1941),c=i.n(n),r=i(6225);let o=({title:e,description:t,keywords:i,imageUrl:n,next:o,prev:l,canonicalPathnameOverride:d})=>{let p=(0,r.useRouter)().asPath,h=`https://${s.c.canonicalDomain}${d||p}`;return(0,a.jsxs)(c(),{children:[(0,a.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://www.google-analytics.com"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://www.googletagmanager.com"}),(0,a.jsx)("title",{children:e}),t&&(0,a.jsx)("meta",{name:"description",content:t}),i&&(0,a.jsx)("meta",{name:"keywords",content:i}),(0,a.jsx)("meta",{property:"og:title",content:e}),t&&(0,a.jsx)("meta",{property:"og:description",content:t}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:url",content:h}),n&&(0,a.jsx)("meta",{property:"og:image",content:n}),(0,a.jsx)("meta",{property:"og:image:width",content:"auto"}),(0,a.jsx)("meta",{property:"og:image:height",content:"auto"}),(0,a.jsx)("meta",{property:"og:site_name",content:s.c.friendlyWebsiteName}),(0,a.jsx)("link",{rel:"canonical",href:h}),(0,a.jsx)("link",{rel:"shortcut icon",type:"image/x-icon",href:s.c.basePath.concat("/favicon.ico")})]})}},5895:e=>{e.exports={container:"CitySelectPage_component_container__8g2Bo",wrapper:"CitySelectPage_component_wrapper__3ZMUL",header:"CitySelectPage_component_header__4nAoe",icon:"CitySelectPage_component_icon__RwWlO",searchCity:"CitySelectPage_component_searchCity__JvdBu",clearSearch:"CitySelectPage_component_clearSearch__ffHUc",okIcon:"CitySelectPage_component_okIcon__hy_8o",active:"CitySelectPage_component_active__ajaSc",footer:"CitySelectPage_component_footer__De63V"}},7371:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(6147),s=i(1977);let n={fetchMagazineEditions:async(e,t)=>{let i=await s.a.get(`/api/1.0/epaper/mag/editions/list?dt=${t}`,{cookies:e});if(200!==i.status)throw await (0,a.v)(i,e);return await i.json()},fetchEpaperEditions:async(e,t)=>{let i=await s.a.get(`/api/1.0/epaper/editions/list?dt=${t}`,{cookies:e});if(200!==i.status)throw await (0,a.v)(i,e);return await i.json()},fetchCityEditionMap:async e=>{let t=await s.a.get("/api/2.0/epaper/cities/list",{cookies:e});if(200!==t.status)throw await (0,a.v)(t,e);return await t.json()}}},8507:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>H});var a=i(6514),s=i(5834),n=i(8341),c=i.n(n),r=i(5895),o=i.n(r),l=i(9793),d=i(8813);let p={src:"/account/_next/static/media/clear-icon.bb27cc8f.svg",height:20,width:20,blurWidth:0,blurHeight:0};var h=i(6225),g=i(1880),m=i(3316),u=i(8148),f=i(2674),_=i(8391),x=i(8956),y=i(1977),j=i(2933),A=i(8687),w=i(5289),C=i(5807),N=i(3334),E=i(2343),S=i(898),v=i(4838),k=i(3665);let P=({cities:e=[]})=>{var t;let i=(0,s.useRef)(null),[n,r]=(0,s.useState)(""),u=(0,A.A)().isMobile(),_=(0,x.Pj)(),j=(0,w.mE)(e=>e.lists),E=(0,w.mE)(e=>e.user.states).filter(e=>e.selected).map(e=>
1e.id),P=(0,h.useRouter)(),[H,b]=(0,s.useState)(e.filter(e=>e.selected).map(e=>e.id)),M=H.length>0,U=e=>{if(H.find(t=>t===e))b(H.filter(t=>t!==e));else{if(H.length>=10)return void _.dispatch(N.Ay.actions.setSnackbarState({message:m.A.ADHIKTAM_10_SHAHAR_CHUN_SAKTE_HAI,mode:"auto",action:"open",type:"info"}));b([...H,e])}},R=(t=i.current?.value||"",e?.filter(e=>e.dispName.concat(e.engName).match(RegExp(t,"i")))||[]),B=`${m.A.SHAHAR_CHUNEN} | ${v.c.friendlyWebsiteName}`;return(0,a.jsxs)(l.A,{hideFooter:u,children:[(0,a.jsx)(k.p,{title:B}),(0,a.jsx)("div",{className:o().container,children:(0,a.jsxs)("div",{className:o().wrapper,children:[(0,a.jsxs)("div",{className:o().header,children:[(0,a.jsxs)("h2",{children:[(0,a.jsx)("strong",{className:o().backArrow,onClick:()=>{P.push(S.B.homePage.nativeNextLinkUrl)},children:(0,a.jsx)(g.go,{className:o().icon})}),(0,a.jsx)("span",{children:m.A.SHAHAR_CHUNEN})]}),(0,a.jsxs)("form",{className:o().searchCity,children:[(0,a.jsx)("input",{type:"text",placeholder:m.A.SHAHAR_KHOJEN,onChange:e=>{r(e.target.value)},ref:i}),(0,a.jsx)("strong",{children:(0,a.jsx)(c(),{src:d.A,height:24,width:24,alt:"search"})}),n&&(0,a.jsx)("div",{className:o().clearSearch,onClick:()=>{i.current&&(i.current.value="",i.current.focus(),r(""))},children:(0,a.jsx)(c(),{src:p,height:18,width:18,alt:"search"})})]})]}),(0,a.jsx)("ul",{children:R&&R.map(e=>{let t=H.find(t=>t===e.id);return(0,a.jsxs)(s.Fragment,{children:[t&&(0,a.jsxs)("li",{title:e.dispName,className:o().active,onClick:()=>U(e.id),children:[e.dispName,(0,a.jsx)("strong",{children:(0,a.jsx)(g.BX,{className:o().okIcon})})]},e.id),!t&&(0,a.jsxs)("li",{onClick:()=>U(e.id),title:e.dispName,children:[e.dispName,(0,a.jsx)("strong",{children:"+"})]},e.id)]},e.id)})}),(0,a.jsx)("div",{className:o().footer,children:(0,a.jsx)("button",{className:M?o().active:"",onClick:()=>{0!==H.length&&y.a.post("/api/3.0/user/prefs/cities",{cookies:document.cookie,additionalHeaders:{"Content-Type":"application/json"},body:{cities:[...H,...E]}}).then(e=>{if(200!==e.status)throw Error("Failed to save cities");return e.json()}).then(e=>{let t=S.B.selectLocationPage.destructureMixedLocations(e.cities);C.E.tagEpaperLocationChanged({type:"City",locations:t.rawCities.map(e=>e.engName)||[]}),_.dispatch(f.A.actions.setUserSelectedCities(t.rawCities));let i=t.cities?.filter(e=>!j.cityEditionMap?.cities?.find(t=>t.id===e.id)).map(e=>e.dispName);t.cities.length!==i.length&&_.dispatch(N.Ay.actions.setEpaperNotFoundSnackbar({cityNames:i})),P.query.redirectURI?location.href=P.query.redirectURI.toString():P.push(S.B.homePage.nativeNextLinkUrl)}).catch(e=>{console.error(e)})},title:m.A.AAGE_BADHEN,children:m.A.AAGE_BADHEN})})]})})]})};P.getInitialProps=u.i.getInitialPageProps(e=>async t=>{let i=(0,j.f2)(t),a=(0,j.gh)(t),s=i||a,n=await _.A.fetchUserCities(e.getState().user.states.filter(e=>e.selected).map(e=>e.id),s),c=!!n?.find(e=>e.selected),r=!!e.getState().user.states?.find(e=>e.selected);!c&&!r&&(0,j.Mk)(s)&&await E.m.components.syncUserPreferences(e,s);let o=e.getState().user.cities.filter(e=>e.selected);return{cities:n?.map(e=>o?.find(t=>t.id===e.id)||e)}});let H=P},8813:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a={src:"/account/_next/static/media/search-icon.5a641fef.svg",height:24,width:24,blurWidth:0,blurHeight:0}}}]);
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.