1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9174],{48317:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var s=r(n(64938)),i=n(85893),a=(0,s.default)((0,i.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.Z=a},94184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=s.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var o in n)r.call(n,o)&&n[o]&&e.push(o)}}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(n=function(){return s}.apply(t,[]))||(e.exports=n)}()},21152:function(e,t,n){"use strict";n.d(t,{FB:function(){return l},Oo:function(){return o},ck:function(){return c}});n(67294);var r=n(41664),s=n.n(r),i=n(48317),a=n(85893),o=function(e){var t=e.children;return(0,a.jsx)("div",{className:"flex sm:gap-2 gap-1 items-end text-sm font-nunito",children:t})},l=function(e){var t=e.children,n=void 0===t?"":t,r=e.href,o=void 0===r?"#":r;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s(),{href:o,children:(0,a.jsx)("a",{children:(0,a.jsx)("div",{children:n})})}),(0,a.jsx)(i.Z,{className:"text-xl! text-white"})]})},c=function(e){var t=e.children;return(0,a.jsx)("div",{className:"text-white font-bold",children:t})}},87798:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var r=n(50029),s=n(87794),i=n.n(s),a=n(67294),o=n(11163),l=n(96486),c=n(3627),u=n(80334),d=n(18137),f=n(21152),h=n(67930),m=n(25094),p=n(9339),v=n(77268),x=n(92062),w=n(94133),g=n(14416),j=n(19185),b=n(85893),y=function(e){var t=(0,g.I0)(),n=e.close,r=(0,g.v9)((function(e){return e.putusan.browse})),s=((0,g.v9)((function(e){return e.putusan.review})),(0,a.useState)(0)),i=s[0],o=s[1],l=(0,a.useState)(!1),c=l[0],u=(l[1],(0,a.useState)(!1)),d=u[0],f=u[1];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("div",{className:"pb-8 pt-5 px-4 flex flex-col items-center",children:[(0,b.jsx)("div",{className:"font-bold text-center",children:"Review Dokumen"}),(0,b.jsx)("div",{className:"text-xs text-gray-c5 text-center",children:"Beri ulasan tentang dokumen ini"}),(0,b.jsx)("div",{className:"mt-4 h-px w-full border-t border-gray-c4"}),(0,b.jsxs)("div",{className:"pt-8 sm:px-8",children:[(0,b.jsx)("div",{className:"text-center font-bold",children:r.data.title}),(0,b.jsxs)("form",{onSubmit:function(e){if(e.preventDefault(),!d){f(!0);var s=e.target.elements,a={slug:r.data.slug,score:i,review:s.review.value,is_notify:c?1:0};t((0,j.nc)(a)).unwrap().then((function(e){t((0,j.Ti)(a)),f(!1),n(!1)}))}},children:[(0,b.jsx)("div",{className:"w-full flex justify-center mt-8",children:(0,b.jsx)(w.Z,{name:"review_dokumen",value:i,onChange:function(e,t){o(t)},emptyIcon:(0,b.jsx)(p.r7,{className:"fill-gray-c9 w-8"}),icon:(0,b.jsx)(p.r7,{className:"fill-yellow-c3 w-8"})})}),(0,b.jsx)("div",{className:"mt-8",children:(0,b.jsx)("textarea",{name:"review",placeholder:"Tulis pendapatmu tentang kelas ini...",className:"border border-gray-c19 h-20 rounded-lg sm:px-5 px-3 sm:py-4 py-3 font-nunito placeholder:text-gray-c15 text-sm w-full outline-none"})}),(0,b.jsxs)("div",{className:"mt-8 grid grid-cols-2 sm:gap-5 gap-3",children:[(0,b.jsx)(v.Yh,{className:"w-full md:w-full lg:w-full",onClick:function(){return n(!1)},children:"Batalkan"}),(0,b.jsx)(v.g8,{className:"w-full",type:"submit",children:d?(0,b.jsx)("span",{className:"spinner"}):"Beri Ulasan"})]})]})]})]})}),(0,b.jsx)(b.Fragment,{})]})},N=function(e){var t,n,r,s,i=e.title,o=e.close,l=(0,g.v9)((function(e){return e.auth.profile})),c=(0,g.v9)((function(e){return e.putusan.review})),u=(0,a.useRef)();return(0,a.useEffect)((function(){var e;u.current.value=null===c||void 0===c||null===(e=c.data)||void 0===e?void 0:e.score})),(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("div",{className:"pb-8 pt-5 px-4 flex flex-col items-center",children:[(0,b.jsx)("div",{className:"font-bold text-center",children:"Penilaian Anda"}),(0,b.jsx)("div",{className:"text-xs text-gray-c5 text-center",children:"Ulasan Anda tentang dokumen ini"}),(0,b.jsx)("div",{className:"mt-4 h-px w-full border-t border-gray-c4"}),(0,b.jsxs)("div",{className:"pt-8 sm:px-8",children:[(0,b.jsx)("div",{className:"text-center font-bold",children:i}),(0,b.jsx)("div",{className:"w-full flex justify-center mt-8",children:(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)("div",{className:"xl:h-10 h-8 xl:w-10 w-8 overflow-hidden rounded-full",children:(0,b.jsx)("img",{src:null===l||void 0===l||null===(t=l.data)||void 0===t?void 0:t.profile_picture,alt:"",className:"w-full h-full object-cover"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"font-nunito text-xs mb-1",children:null===l||void 0===l||null===(n=l.data)||void 0===n?void 0:n.email}),(0,b.jsx)(w.Z,{value:(null===c||void 0===c||null===(r=c.data)||void 0===r?void 0:r.score)||0,ref:u,readOnly:!0,emptyIcon:(0,b.jsx)(p.r7,{className:"fill-gray-c9 w-5"}),icon:(0,b.jsx)(p.r7,{className:"fill-yellow-c3 w-5"})})]})]})}),(0,b.jsx)("div",{className:"mt-5 text-center text-sm font-nunito",children:null===c||void 0===c||null===(s=c.data)||void 0===s?void 0:s.review}),(0,b.jsx)("div",{className:"sm:mt-10 mt-5 flex items-center gap-5 w-full",children:(0,b.jsx)(v.GA,{className:"font-semibold w-full",onClick:function(){return o(!1)},children:"Selesai"})})]})]})})},k=n(19714),S=n(6556),C=n(1360),O=n(69213),_=n(78449),P=n(9172),E=n(62554),T=n(8136),A=function(){var e,t,n,s,o=(0,g.I0)(),c=(0,g.v9)((function(e){return e.putusan.browse})),u=(0,g.v9)((function(e){return e.auth.profile})),d=(0,g.v9)((function(e){return e.auth})),f=(0,g.v9)((function(e){return e.subscribtion.hkc})),A=(0,g.v9)((function(e){return e.putusan.review})),R=(0,a.useState)(!1),Z=R[0],D=R[1],I=(0,a.useState)(!1),F=I[0],B=I[1],L=(0,a.useState)(!1),W=L[0],q=L[1],U=(0,a.useState)(!1),H=U[0],G=U[1],K=(0,a.useState)(!1),J=K[0],Y=K[1],$=(0,a.useState)(!1),M=$[0],X=$[1],z=(0,a.useState)(!1),Q=z[0],V=z[1],ee=(0,a.useState)(!1),te=ee[0],ne=ee[1],re=(0,a.useState)(!1),se=re[0],ie=re[1],ae=(0,a.useState)(!1),oe=ae[0],le=ae[1],ce=c.loading?[]:c.data,ue=c.loading?[]:null===(e=c.data)||void 0===e?void 0:e.Category;(0,a.useEffect)((function(){void 0!==(null===c||void 0===c?void 0:c.data)&&Y(c.data.favorite)}),[c]);var de=function(){var e=(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,S.R$)({auth:d,profile:u,hkcSub:f}
1,{setLogin:D,setActivateEmail:B,setPopTrial:q,setRequireSubscribtion:G},(function(){X(!0),o((0,k.a3)({category:"putusan",slug:c.data.slug})).unwrap().then((function(e){X(!1),e.error||Y(!J)}))}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),fe=function(e){var t=h.Z.baseUrl+"putusan/"+(null===ce||void 0===ce?void 0:ce.slug),n=encodeURIComponent(t),r=encodeURIComponent("[HeyLaw] Jangan lewatkan untuk membaca "+(null===ce||void 0===ce?void 0:ce.title)+" di HeyLaw yang dapat diakses pada "+t),s=encodeURIComponent("[HeyLaw] Jangan lewatkan untuk membaca "+(null===ce||void 0===ce?void 0:ce.title)+" di HeyLaw - kawan belajar hukum."),i="";switch(e){case"WHATSAPP":i="https://api.whatsapp.com/send/?phone&text="+r;break;case"FACEBOOK":i="https://www.facebook.com/dialog/share?app_id=".concat("4338696966218879","&display=popup&href=").concat(n);break;case"TWITTER":i="https://twitter.com/intent/tweet?text="+r;break;case"TELEGRAM":i="https://t.me/share/url?url="+n+"&text="+s}var a={slug:null===ce||void 0===ce?void 0:ce.slug,source_uri:e};o((0,j.aI)(a)).unwrap().then((function(e){if(null===e||void 0===e||!e.error){var t=document.createElement("a");t.href=i,t.target="_blank",document.body.appendChild(t),t.click(),t.remove()}}))},he=h.Z.baseUrl+"peraturan/"+(null===ce||void 0===ce?void 0:ce.slug);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"grid md:grid-cols-7 grid-cols-1 lg:gap-7 gap-4",children:[(0,b.jsx)("div",{className:"md:col-span-4",children:(0,b.jsxs)("div",{className:"bg-white rounded-lg p-4 shadow-c2",children:[(0,b.jsx)("div",{className:"font-bold",children:"Tentang Dokumen"}),(0,b.jsx)("table",{className:"table-auto font-nunito",children:(0,b.jsxs)("tbody",{children:[(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{className:"pt-3 lg:w-40 md:32 w-24 md:text-base text-sm align-top",children:"Judul:"}),(0,b.jsx)("td",{className:"pt-3 pl-3 font-bold md:text-base text-sm",children:(0,l.startCase)((0,l.camelCase)(null===ce||void 0===ce?void 0:ce.title))})]}),(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{className:"pt-3 md:text-base text-sm",children:"Nomor:"}),(0,b.jsx)("td",{className:"pt-3 pl-3 font-bold md:text-base text-sm",children:null===ce||void 0===ce?void 0:ce.nomor})]}),(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{className:"pt-3 md:text-base text-sm",children:"Kategori:"}),(0,b.jsx)("td",{className:"pt-3 pl-3 font-bold",children:(0,b.jsx)("div",{className:"flex",children:(0,b.jsxs)(m.Dy,{className:"bg-orange-c1",children:[(0,b.jsx)(p.q2,{className:"text-white mr-1 h-18px"}),(0,b.jsx)("div",{children:"Putusan"})]})})})]}),(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{className:"pt-3 md:text-base text-sm",children:"Jenis:"}),(0,b.jsx)("td",{className:"pt-3 pl-3 font-bold",children:(0,b.jsx)("div",{className:"flex",children:(0,b.jsx)(m.WD,{className:"text-orange-c1 bg-orange-c2",children:null===ue||void 0===ue?void 0:ue.sub_category})})})]}),(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{className:"pt-3 md:text-base text-sm",children:"Tahun:"}),(0,b.jsx)("td",{className:"pt-3 pl-3 font-bold md:text-base text-sm",children:null===ce||void 0===ce?void 0:ce.tahun})]})]})})]})}),(0,b.jsxs)("div",{className:"md:col-span-3",children:[(0,b.jsxs)("div",{className:"bg-white rounded-lg p-4 shadow-c2",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(v.g8,{onClick:function(){(0,S.R$)({auth:d,profile:u,hkcSub:f},{setLogin:D,setActivateEmail:B,setPopTrial:q,setRequireSubscribtion:G},(function(){(0,S.Sv)({isDownloading:Q,Data:ce},{setIsDownloading:V,setDownloadFailed:ne},"putusan",c.data.slug)}))},className:"w-full",children:Q?(0,b.jsx)("span",{className:"spinner"}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(p.UW,{className:"h-6 stroke-white"})," Putusan"]})}),(0,b.jsx)("div",{onClick:function(){return de()},children:J?(0,b.jsx)(v.Yh,{className:"w-full md:w-full lg:w-full mt-4",children:M?(0,b.jsx)("span",{className:"spinner"}):(0,b.jsxs)("div",{className:"font-semibold text-yellow-c1 flex items-center justify-center gap-1",children:[(0,b.jsx)(p.Um,{className:"h-4 fill-yellow-c1"})," Favorite"]})}):(0,b.jsx)(v.Yh,{className:"w-full md:w-full lg:w-full mt-4",children:M?(0,b.jsx)("span",{className:"spinner"}):(0,b.jsxs)("div",{className:"font-semibold flex items-center justify-center gap-1",children:[(0,b.jsx)(p.Df,{className:"fill-green-c1 h-5"})," Favorite"]})})})]}),(0,b.jsxs)("div",{className:"flex items-center gap-3 mt-4",children:[(0,b.jsx)("div",{className:"font-bold",children:"Bagikan"}),(0,b.jsx)("div",{onClick:function(){return fe("WHATSAPP")},className:"cursor-pointer",children:(0,b.jsx)("img",{src:"/svg/whatsapp.svg",alt:""})}),(0,b.jsx)("div",{onClick:function(){return function(e){var t={slug:null===ce||void 0===ce?void 0:ce.slug,source_uri:"FACEBOOK"};o((0,j.aI)(t)).unwrap().then((function(e){e.error}))}()},className:"cursor-pointer",children:(0,b.jsx)(T.Z,{url:he.replace(h.Z.baseUrl,"https://heylaw.id/"),quote:"Heylaw.id",hashtag:"#heylaw",className:"mt-2",children:(0,b.jsx)("img",{src:"/svg/facebook2.svg",alt:""})})}),(0,b.jsx)("div",{onClick:function(){return fe("TWITTER")},className:"cursor-pointer",children:(0,b.jsx)("img",{src:"/svg/twitter2.svg",alt:""})}),(0,b.jsx)("div",{onClick:function(){return fe("TELEGRAM")},className:"cursor-pointer",children:(0,b.jsx)("img",{src:"/svg/telegram.svg",alt:""})})]})]}),(0,b.jsxs)("div",{className:"bg-white rounded-lg p-4 shadow-c2 mt-7 flex lg:items-center md:items-start sm:items-center lg:flex-row md:flex-col sm:flex-row flex-col",children:[(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsx)("div",{className:"font-bold",children:"Review Dokumen"}),(null===A||void 0===A||null===(t=A.data)||void 0===t?void 0:t.score)>0&&d.is_login?(0,b.jsxs)("div",{className:"flex items-center gap-3 mt-1",children:[(0,b.jsx)(w.Z,{value:null===A||void 0===A||null===(n=A.data)||void 0===n?void 0:n.score,readOnly:!0,emptyIcon:(0,b.jsx)(p.r7,{className:"fill-gray-c9 w-5"}),icon:(0,b.jsx)(p.r7,{className:"fill-yellow-c3 w-5"})}),(0,b.jsx)("div",{className:"text-green-c1 font-nunito text-xs",children:"Sudah direview"})]}):(0,b.jsxs)("div",{className:"text-gray-c5 text-xs",children:[" ","Anda belum mereview dokumen ini :("," "]})]}),(null===A||void 0===A||null===(s=A.data)||void 0===s?void 0:s.score)>0&&d.is_login?(0,b.jsx)(v.pb,{onClick:function(){return le(!0)},className:"sm:w-auto w-full lg:mt-0 md:mt-4 sm:mt-0 mt-4 flex-shrink-0 font-semibold text-sm",children:"Tampilkan penilaian"}):(0,b.jsx)(v.GA,{onClick:function(){(0,S.R$)({auth:d,profile:u,hkcSub:f}
1,{setLogin:D,setActivateEmail:B,setPopTrial:q,setRequireSubscribtion:G},(function(){ie(!0)}))},className:"lg:w-32 md:w-full sm:w-32 w-full lg:mt-0 md:mt-4 sm:mt-0 mt-4 flex-shrink-0 font-semibold text-sm",children:"Beri Ulasan"})]})]})]}),(0,b.jsx)(x.Z,{Active:se,Close:function(){return ie(!1)},children:(0,b.jsx)(y,{close:ie})}),(0,b.jsx)(x.Z,{Active:oe,Close:function(){return le(!1)},children:(0,b.jsx)(N,{close:le})}),(0,b.jsx)(_.Z,{active:W,close:q}),(0,b.jsx)(O.Z,{active:F,close:B}),(0,b.jsx)(P.Z,{active:te,close:ne}),(0,b.jsx)(E.Z,{active:H,close:G}),(0,b.jsx)(C.Z,{active:Z,close:D})]})},R=function(e){var t=(0,g.I0)(),n=(0,o.useRouter)().query,r=n.search,s=void 0===r?"":r,i=(n.index,e.id),h=((0,g.v9)((function(e){return e.subscribtion})),(0,g.v9)((function(e){return e.auth.profile})),(0,g.v9)((function(e){return e.auth})),(0,g.v9)((function(e){return e.subscribtion.hkc}))),m=(0,g.v9)((function(e){return e.putusan.browse})),p={slug:i};(0,a.useEffect)((function(){t((0,j.q2)(p)),t((0,j.Ti)(p))}),[]);var v=m.loading?[]:m.data;h.data;return(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(d.Z,{type:"theme4",children:[(0,b.jsxs)("div",{className:"bg-putusan bg-no-repeat sm:h-370px h-[290px] bg-cover sm:bg-center bg-right-bottom",children:[(0,b.jsx)(c.Z,{}),(0,b.jsxs)("div",{className:"container pt-[96px] text-white",children:[(0,b.jsxs)(f.Oo,{children:[(0,b.jsx)(f.FB,{href:"/search/literasi?search=".concat(s),children:"Semua Kategori"}),(0,b.jsx)(f.FB,{href:"/search/putusan?search=".concat(s),children:"Putusan"}),(0,b.jsx)(f.ck,{children:"Dokumen"})]}),(0,b.jsx)("div",{className:"flex-grow-0 font-bold xl:text-3xl lg:text-2xl md:text-xl text-lg mt-6 lg:leading-10 leading-7 sm:line-clamp-2 line-clamp-3",children:(0,l.startCase)((0,l.camelCase)(null===v||void 0===v?void 0:v.title))})]})]}),(0,b.jsx)("div",{className:"relative",children:(0,b.jsxs)("div",{className:"absolute w-full sm:-mt-32 -mt-16",children:[(0,b.jsx)("div",{className:"container",children:m.loading?(0,b.jsx)(b.Fragment,{}):(0,b.jsx)(A,{slugDoc:i})}),(0,b.jsx)(u.Z,{className:"mt-36"})]})})]})})};R.getInitialProps=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.query,r=n.id,e.abrupt("return",{id:r});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var Z=(0,g.$j)((function(e){return{browse:e.putusan.browse,auth:e.auth,hkcSub:e.subscribtion.hkc}}),(function(e){return{browsePutusan:function(t,n){return e((0,j.q2)(t,n))},reviewPutusan:function(t,n){return e((0,j.Ti)(t,n))}}}))(R)},51366:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/putusan/[id]",function(){return n(87798)}])},8136:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t){var n=e.call(this,t)||this;return n.name="AssertionError",n}return r(t,e),t}(Error);var i=n(67294),a=n(94184),o=n.n(a),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},c.apply(this,arguments)}
1,u=function(e,t,n,r){return new(n||(n=Promise))((function(s,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function o(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))},d=function(e,t){var n,r,s,i,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(s=2&i[0]?r.return:i[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;switch(r=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(s=(s=a.trys).length>0&&s[s.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]<s[3])){a.label=i[1];break}if(6===i[0]&&a.label<s[1]){a.label=s[1],s=i;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(i);break}s[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(o){i=[6,o],r=0}finally{n=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}},f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n},h=function(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then},m=function(e,t){return{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-e/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-t/2}},p=function(e,t){return{top:(window.screen.height-t)/2,left:(window.screen.width-e)/2}};function v(e,t,n){var r=t.height,s=t.width,i=f(t,["height","width"]),a=c({height:r,width:s,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},i),o=window.open(e,"",Object.keys(a).map((function(e){return"".concat(e,"=").concat(a[e])})).join(", "));if(n)var l=window.setInterval((function(){try{(null===o||o.closed)&&(window.clearInterval(l),n(o))}catch(e){console.error(e)}}),1e3);return o}var x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openShareDialog=function(e){var n=t.props,r=n.onShareWindowClose,s=n.windowHeight,i=void 0===s?400:s,a=n.windowPosition,o=void 0===a?"windowCenter":a,l=n.windowWidth,u=void 0===l?550:l;v(e,c({height:i,width:u},"windowCenter"===o?m(u,i):p(u,i)),r)},t.handleClick=function(e){return u(t,void 0,void 0,(function(){var t,n,r,s,i,a,o,l,c,u;return d(this,(function(d){switch(d.label){case 0:return t=this.props,n=t.beforeOnClick,r=t.disabled,s=t.networkLink,i=t.onClick,a=t.url,o=t.openShareDialogOnClick,l=t.opts,c=s(a,l),r?[2]:(e.preventDefault(),n?(u=n(),h(u)?[4,u]:[3,2]):[3,2]);case 1:d.sent(),d.label=2;case 2:return o&&this.openShareDialog(c),i&&i(e,c),[2]}}))}))},t}return l(t,e),t.prototype.render=function(){var e=this.props,t=(e.beforeOnClick,e.children),n=e.className,r=e.disabled,s=e.disabledStyle,a=e.forwardedRef,l=(e.networkLink,e.networkName),u=(e.onShareWindowClose,e.openShareDialogOnClick,e.opts,e.resetButtonStyle),d=e.style,h=(e.url,e.windowHeight,e.windowPosition,e.windowWidth,f(e,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"])),m=o()("react-share__ShareButton",{"react-share__ShareButton--disabled":!!r,disabled:!!r},n),p=c(c(u?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},d),r&&s);return i.createElement("button",c({},h,{"aria-label":h["aria-label"]||l,className:m,onClick:this.handleClick,ref:a,style:p}),t)},t.defaultProps={disabledStyle:{opacity:.6},openShareDialogOnClick:!0,resetButtonStyle:!0},t}(i.Component),w=x,g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},g.apply(this,arguments)};var j=function(e,t,n,r){function s(s,a){var o=n(s),l=g({},s);
1return Object.keys(o).forEach((function(e){delete l[e]})),i.createElement(w,g({},r,l,{forwardedRef:a,networkName:e,networkLink:t,opts:n(s)}))}return s.displayName="ShareButton-".concat(e),(0,i.forwardRef)(s)}("facebook",(function(e,t){var n=t.quote,r=t.hashtag;return function(e,t){if(!e)throw new s(t)}(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+function(e){var t=Object.entries(e).filter((function(e){var t=e[1];return void 0!==t&&null!==t})).map((function(e){var t=e[0],n=e[1];return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(String(n)))}));return t.length>0?"?".concat(t.join("&")):""}({u:e,quote:n,hashtag:r})}),(function(e){return{quote:e.quote,hashtag:e.hashtag}}),{windowWidth:550,windowHeight:400})}},function(e){e.O(0,[3662,4885,7445,4133,8137,9474,9774,2888,179],(function(){return t=51366,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.