1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[575],{8338:function(t,e,r){"use strict";r.d(e,{Z:function(){return _}});var n,o,i=r(5893),a=r(2451),s=r(2914),l=(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=function(t){function e(e){var r=t.call(this,e)||this;return r.name="AssertionError",r}return l(e,t),e}(Error);function u(t,e){if(!t)throw new c(e)}function h(t){var e=Object.entries(t).filter(function(t){return null!=t[1]}).map(function(t){var e=t[0],r=t[1];return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(r)))});return e.length>0?"?".concat(e.join("&")):""}var d=r(7294),p=r(3967),f=r.n(p),w=(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),y=function(){return(y=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},b=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},v=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)0>e.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.openShareDialog=function(t){var r=e.props,n=r.onShareWindowClose,o=r.windowHeight,i=void 0===o?400:o,a=r.windowPosition,s=r.windowWidth,l=void 0===s?550:s;!function(t,e,r){var n=e.height,o=e.width,i=v(e,["height","width"]),a=y({height:n,width:o,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},i),s=window.open(t,"",Object.keys(a).map(function(t){return"".concat(t,"=").concat(a[t])}).join(", "));if(r)var l=window.setInterval(function(){try{(null===s||s.closed)&&(window.clearInterval(l),r(s))}catch(t){console.error(t)}},1e3)}(t,y({height:i,width:l},"windowCenter"===(void 0===a?"windowCenter":a)?{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-l/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-i/2}:{top:(window.screen.height-i)/2,left:(window.screen.width-l)/2}),n)},e.handleClick=function(t){var r,n,o;return r=void 0,n=void 0,o=function(){var e,r,n,o,i,a,s,l,c;return b(this,function(u){switch(u.label){case 0:var h;if(r=(e=this.props).beforeOnClick,n=e.disabled,o=e.networkLink,i=e.onClick,a=e.url,s=e.openShareDialogOnClick,l=o(a,e.opts),n)return[2];if(t.preventDefault(),!r||!((h=c=r())&&("object"==typeof h||"function"==typeof h)&&"function"==typeof h.then))return[3,2];return[4,c];case 1:u.sent(),u.label=2;case 2:return s&&this.openShareDialog(l),i&&i(t,l),[2]}})}
1,new(n||(n=Promise))(function(t,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(e){var r;e.done?t(e.value):((r=e.value)instanceof n?r:new n(function(t){t(r)})).then(a,s)}l((o=o.apply(e,r||[])).next())})},e}return w(e,t),e.prototype.render=function(){var t=this.props,e=(t.beforeOnClick,t.children),r=t.className,n=t.disabled,o=t.disabledStyle,i=t.forwardedRef,a=(t.networkLink,t.networkName),s=(t.onShareWindowClose,t.openShareDialogOnClick,t.opts,t.resetButtonStyle),l=t.style,c=(t.url,t.windowHeight,t.windowPosition,t.windowWidth,v(t,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"])),u=f()("react-share__ShareButton",{"react-share__ShareButton--disabled":!!n,disabled:!!n},r),h=s?y(y({backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"},l),n&&o):y(y({},l),n&&o);return d.createElement("button",y({},c,{"aria-label":c["aria-label"]||a,className:u,onClick:this.handleClick,ref:i,style:h}),e)},e.defaultProps={disabledStyle:{opacity:.6},openShareDialogOnClick:!0,resetButtonStyle:!0},e}(d.Component),m=function(){return(m=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=function(t,e,r,n){function o(o,i){var a=r(o),s=m({},o);return Object.keys(a).forEach(function(t){delete s[t]}),d.createElement(g,m({},n,s,{forwardedRef:i,networkName:t,networkLink:e,opts:r(o)}))}return o.displayName="ShareButton-".concat(t),(0,d.forwardRef)(o)},j=x("facebook",function(t,e){var r=e.quote,n=e.hashtag;return u(t,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+h({u:t,quote:r,hashtag:n})},function(t){return{quote:t.quote,hashtag:t.hashtag}},{windowWidth:550,windowHeight:400}),k=x("twitter",function(t,e){var r=e.title,n=e.via,o=e.hashtags,i=void 0===o?[]:o,a=e.related,s=void 0===a?[]:a;return u(t,"twitter.url"),u(Array.isArray(i),"twitter.hashtags is not an array"),u(Array.isArray(s),"twitter.related is not an array"),"https://twitter.com/share"+h({url:t,text:r,via:n,hashtags:i.length>0?i.join(","):void 0,related:s.length>0?s.join(","):void 0})},function(t){return{hashtags:t.hashtags,title:t.title,via:t.via,related:t.related}},{windowWidth:550,windowHeight:400}),O=x("linkedin",function(t,e){var r=e.title,n=e.summary,o=e.source;return u(t,"linkedin.url"),"https://linkedin.com/shareArticle"+h({url:t,mini:"true",title:r,summary:n,source:o})},function(t){return{title:t.title,summary:t.summary,source:t.source}},{windowWidth:750,windowHeight:600}),S=x("whatsapp",function(t,e){var r=e.title,n=e.separator;return u(t,"whatsapp.url"),"https://"+(/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)?"api":"web")+".whatsapp.com/send"+h({text:r?r+n+t:t})},function(t){return{title:t.title,separator:t.separator||" "}},{windowWidth:550,windowHeight:400}),C=x("telegram",function(t,e){var r=e.title;return u(t,"telegram.url"),"https://telegram.me/share/url"+h({url:t,text:r})},function(t){return{title:t.title}},{windowWidth:550,windowHeight:400}),_=t=>{let{articleURL:e,isOpen:r,onClose:n}=t,o="".concat("https://themorning.lk/","/").concat(e);return r?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",children:(0,i.jsxs)("div",{className:"bg-white p-6 rounded-md shadow-md",children:[(0,i.jsx)("div",{className:"flex items-center space-x-6",children:(0,i.jsxs)("div",{className:"flex space-x-6 border rounded-full p-2 ml-4 mr-4",children:[(0,i.jsx)("p",{className:"text-grey-base",children:"\xa0Share on"}),(0,i.jsx)(a.E.div,{whileHover:{y:-2},children:(0,i.jsx)(j,{url:o,children:(0,i.jsx)(s.Am9,{className:"text-xl text-grey-base hover:text-primary-base transition ease-in"})})}),(0,i.jsx)(a.E.div,{whileHover:{y:-2},children:(0,i.jsx)(k,{url:o,children:(0,i.jsx)(s.fWC,{className:"text-xl text-grey-base hover:text-primary-base transition ease-in"})})}),(0,i.jsx)(a.E.div,{whileHover:{y:-2},children:(0,i.jsx)(O,{source:"themorning.lk",url:o,children:(0,i.jsx)(s.ltd,{className:"text-xl text-grey-base hover:text-primary-base transition ease-in"})})}),(0,i.jsx)(a.E.div,{whileHover:{y:-2},children:(0,i.jsx)(S,{url:o,children:(0,i.jsx)(s.xpo,{className:"text-xl text-grey-base hover:text-primary-base transition ease-in"})})}),(0,i.jsx)(a.E.div,{whileHover:{y:-2},children:(0,i.jsx)(C,{url:o,children:(0,i.jsx)(s.Ww5,{className:"text-xl text-grey-base hover:text-primary-base transition ease-in"})})})]})}),(0,i.jsx)("button",{className:"mt-4 w-full text-center bg-primary-base text-white py-2 rounded-md hover:bg-primary-dark",onClick:n,children:"Close"})]})})}):null}},5012:function(t,e,r){"use strict";r.d(e,{P:function(){return n}});let n={initial:{opacity:0,y:8}
1,animate:{opacity:1,y:0,transition:{duration:.4,ease:"easeOut"}},exit:{opacity:0,y:8,transition:{duration:.4,ease:"easeOut"}}}},3967:function(t,e){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=i(t,function(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=i(e,r));return e}(r)))}return t}function i(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0!==(r=(function(){return o}).apply(e,[]))&&(t.exports=r)}()}}]);
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.