PageSourceSearch

https://teabevara.ee/_next/static/chunks/pages/[...slug]-067f5fa2b951f269.js

js teabevara.ee collected 2026-10-02 22:06:47 UTC 48,138 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[330],{24705:function(e,t,n){"use strict";n.d(t,{$:function(){return m},Z:function(){return v}});var r=n(67294),i=n(95664),o=n(78669),a=n(50943),s=(0,i.iv)(["SPAN{box-shadow:inset 0 0 0 1px ",";background-color:",";}"],a.O9.danger,(0,o.m4)(a.O9.danger,.1)),l=(0,i.iv)(["&:before{transition:all "," 0ms;content:'';display:block;width:8px;height:8px;background-color:",";opacity:0;}"],a.pB.default,a.Xd.red),c=i.ZP.label.withConfig({displayName:"styles__Wrapper",componentId:"sc-1aew8dm-0"})(["cursor:pointer;flex:0 0 auto;position:relative;display:inline-block;width:20px;height:20px;&:before{content:'';position:absolute;left:-10px;top:-10px;right:-10px;bottom:-10px;background-color:transparent;}"]),u=i.ZP.span.withConfig({displayName:"styles__Inner",componentId:"sc-1aew8dm-1"})(["position:absolute;left:0;right:0;top:0;bottom:0;SPAN{position:absolute;left:0;right:0;top:0;bottom:0;transition:all "," 0ms;background-color:",";box-shadow:inset 0 0 0 1px ",";display:flex;align-items:center;justify-content:center;",";}INPUT{position:absolute;right:100%;bottom:100%;pointer-events:none;opacity:0;&:checked + SPAN{&:before{opacity:1;}}&:disabled + SPAN,&[disabled] + SPAN{opacity:0.5;}}",";"],a.pB.default,a.K6.background,a.K6.border,l,function(e){return e.hasError&&s}),d=n(85893),p=function(e){return(0,d.jsx)(c,{children:(0,d.jsxs)(u,{hasError:e.hasError,children:[(0,d.jsx)("input",{type:"checkbox",checked:e.checked,disabled:e.disabled,onFocus:e.onFocus,onBlur:e.onBlur,onClick:e.onClick,onChange:e.onChange,ref:e.inputRef,name:e.name,id:e.id}),(0,d.jsx)("span",{})]})})};p.displayName="ControlCheckbox";var f=i.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-10l6xw8-0"})(["display:flex;align-items:center;padding:0;user-select:none;min-height:",";cursor:default;"],a.WC),h=i.ZP.div.withConfig({displayName:"styles__TextWrapper",componentId:"sc-10l6xw8-1"})(["flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;padding-left:calc("," / 2);line-height:",";"],a.Dl.gridUnitLarge,a.Dl.gridUnit),g=i.ZP.span.withConfig({displayName:"styles__Text",componentId:"sc-10l6xw8-2"})(["A{font-weight:",";}",""],a.vC.bold,function(e){return e.hasError&&"\n      color: ".concat(a.O9.danger,";\n    A {\n      color: ").concat(a.O9.danger,";\n    }\n  ")}),m=function(e){var t=r.createRef();return(0,d.jsxs)(f,{children:[(0,d.jsx)(p,{checked:e.checked,disabled:e.disabled,onChange:e.onChange,hasError:e.hasError,name:e.name,id:e.id,inputRef:t}),(0,d.jsx)(h,{onClick:function(){t.current&&(t.current.focus(),t.current.click())},children:(0,d.jsx)(g,{hasError:e.hasError,children:e.label})})]})};m.displayName="CheckboxWithLabel";var v=m},66500:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}}),n(67294);var r=n(95664),i=n(50943),o=n(72244),a=r.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-qzcd3a-0"})(["line-height:1.5;font-size:",";.align-left{","{float:left;margin:"," "," "," 0;&:first-child{margin-top:0;}}}.align-right{","{float:right;margin:"," 0 "," ",";&:first-child{margin-top:0;}}}img{border:1px solid rgba(255,255,255,0.5);box-sizing:border-box;box-shadow:0px 20px 20px rgba(0,0,0,0.05);backdrop-filter:blur(20px);border-radius:",";}blockquote{margin:",";padding:"," 0 "," ",';position:relative;&:before{content:"";position:absolute;left:',";top:0;bottom:0;width:4px;background-color:",";}&.theme01:before{background-color:",";}}table{background:",";border-collapse:collapse;border:none;width:100%;margin:20px 0;th,td{padding:4px 8px;border:1px solid ",";p{margin:0;white-space:initial;}}td{vertical-align:top;}}p{margin:0 0 ",";}h5{font-size:16px;}h5 + p{margin-top:0 !important;}.remove-bottom-margin{margin:0 !important;}.static-gray-box{background:",";padding:20px;margin-top:20px;}"],i.CH.medium,o.A.NotMobile,i.Dl.gridUnit,i.Dl.gridUnit,i.Dl.gridUnit,o.A.NotMobile,i.Dl.gridUnit,i.Dl.gridUnit,i.Dl.gridUnit,i._5,i.d8.default,i.Dl.gridUnit,i.Dl.gridUnit,i.Dl.gridUnitLarge,i.Dl.gridUnitSmall,i.Xd.mediumLighterGray,i.O9.primary,i.Xd.white,i.Xd.mediumLighterGray,i.Dl.gridUnit,i.Xd.mediumLighterGray),s=n(85893),l=function(e){return(0,s.jsx)(a,{children:e.children})};l.displayName="LongText";var c=l},19056:function(e,t,n){"use strict";n.d(t,{d:function(){return x}});var r=n(16835),i=n(27812),o=n(67294),a=n(11163),s=n(73357),l=n(25617),c=n(8070),u=function(e){var t=(0,l.v9)(c.tT),n=(0,a.useRouter)(),u=(0,o.useRef)(null);(0,o.useEffect)(function(){if((0,s.xE)()&&n.isReady){var o=e===s._L,a=s.Bz.desktop,l=s.Bz.mobile,c=[].concat((0,i.Z)(a),(0,i.Z)(l)),d=o?s.gK.Module:s.gK.OutOfPage;return googletag.cmd.push(function(){u.current&&(googletag.destroySlots([u.current]),u.current=null);var n=null;(n=o?googletag.defineSlot(s.ks,c,e):googletag.defineOutOfPageSlot(s.ks,e))&&(n.addService(googletag.pubads()).setTargeting(s.Bn.BannerType,d),o&&n.defineSizeMapping([[[992,100],a],[[0,0],l]]),googletag.pubads().clearTargeting(),(0,s.vH)(t).forEach(function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];return googletag.pubads().setTargeting(n,i)}),googletag.display(e),googletag.pubads().refresh([n]),u.current=n)}),function(){if(u.current){var e=u.current;u.current=null,googletag.cmd.push(function(){googletag.destroySlots([e])})}}}},[n.asPath,n.isReady])},d=n(12541),p=n(72244),f=n(95664),h=n(50943),g=f.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1mf9wcr-0"})(["> *{padding:0 !important;}"]),m=f.ZP.div.withConfig({displayName:"styles__MainSlotWrapper",componentId:"sc-1mf9wcr-1"})(["display:flex;justify-content:center;align-items:center;max-width:100vw;overflow:hidden;margin-top:5vh;",""],function(e){return e.margin&&"margin: ".concat(e.margin,";")});f.ZP.div.withConfig({displayName:"styles__OutSlotWrapper",componentId:"sc-1mf9wcr-2"})(["position:fixed;bottom:0;width:fit-content;z-index:11;@media (max-width:767px){position:relative;margin:auto !important;}"]),f.ZP.div.withConfig({displayName:"styles__StickyWrapper",componentId:"sc-1mf9wcr-3"})(["overflow:hidden;box-sizing:border-box;position:sticky;z-index:1000;left:0;right:0;bottom:0;width:100%;height:auto;pointer-events:none;"]),f.ZP.div.withConfig({displayName:"styles__StickyLimiter",componentId:"sc-1mf9wcr-4"})(["width:100%;box-sizing:border-box;margin:0 auto;padding:0 ",";position:relative;","{padding:0 ",";}> *{pointer-events:auto;position:relative;}.sticky > .mobile{height:30px;}.slider.mobile{position:relative;}"],h.Dl.gridUnitLarge,p.A.NotDesktop,h.Dl.gridUnitSmall);var v=n(85893),x=function(){return u(s._L),(0,v.jsx)(g,{children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(m,{id:s._L})})})}},30480:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(25935),i=n(41664),o=n.n(i),a=n(95664),s=n(50943),l=a.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1hs9jz6-0"})(["display:flex;align-items:center;margin:",";&:first-child{margin:0;};",";"],s.d8.default,function(e){return e.isVertical&&(0,a.iv)(["flex-direction:column;align-items:flex-start;.center &{align-items:center;}> DIV:not(:first-child){margin:",";}"],s.d8.default)}),c=a.ZP.img.withConfig({displayName:"styles__Illustration",componentId:"sc-1hs9jz6-1"})([""," margin-right:",";border-radius:50%;overflow:hidden;object-fit:cover;object-position:center;.center &{margin-right:0;}"],function(e){return e.isVertical?(0,a.iv)(["flex:0 0 130px;height:130px;width:130px;"]):(0,a.iv)(["flex:0 0 90px;height:90px;width:90px;"])},s.Dl.gridUnit),u=a.ZP.p.withConfig({displayName:"styles__Name",componentId:"sc-1hs9jz6-2"})(["margin:0;font-weight:",";font-size:",";+ *{margin:",";}"],s.vC.bold,s.CH.large04,s.d8.small),d=a.ZP.div.withConfig({displayName:"styles__Text",componentId:"sc-1hs9jz6-3"})(["flex:0 1 100%;.name{font-weight:",";margin:0;",";+ .bio{margin:0;}}.title,.company,.email{margin:.5em 0 0;font-size:",";}.title:first-child{font-weight:",";}.company{margin:0;opacity:0.7;}"],s.vC.bold,function(e){return e.isVertical&&(0,a.iv)(["font-size:",";"],s.CH.large04)},s.CH.smallest,s.vC.bold),p=n(85893),f=function(e){return(0,p.jsxs)(l,{isVertical:e.isVertical,children:[e.nameOnTop&&(0,p.jsx)(u,{children:e.name}),e.image&&(0,p.jsx)(c,{src:e.image,isVertical:e.isVertical}),(0,p.jsxs)(d,{isVertical:e.isVertical,children:[!e.nameOnTop&&(0,p.jsx)("p",{className:"name",children:e.name}
1),e.title&&(0,p.jsx)("p",{className:"title",children:e.title}),e.company&&(0,p.jsx)("p",{className:"company",children:e.company}),e.email&&(0,p.jsx)("p",{className:"email",children:(0,p.jsx)(o(),{href:"mailto:".concat(e.email),children:e.email})}),e.bio&&(0,p.jsx)("div",{className:"bio",children:(0,r.ZP)(e.bio)})]})]})};f.displayName="PersonCard";var h=f},39398:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r,i=((r={}).SearchHighlight="ia-sh",r)},12541:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}}),n(67294);var r=n(95664),i=n(50943),o=n(72244),a=r.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-rk5eou-0"})(["margin:0 auto;","{padding:0 "," calc("," * 2);}","{box-sizing:border-box;max-width:calc("," + "," * 2);padding:0 "," calc("," * 2);}"],o.A.Mobile,i.Dl.gridUnit,i.Dl.gridUnit,o.A.NotMobile,i.Dl.contentMaxWidth,i.Dl.gridUnitLarge,i.Dl.gridUnitLarge,i.Dl.gridUnitLarge),s=n(85893),l=function(e){return(0,s.jsx)(a,{children:e.children})};l.displayName="LayoutWide";var c=l},53983:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return e7},default:function(){return te}});var r=n(59499),i=n(67294),o=n(25617),a=n(12918),s=n.n(a),l=n(11163),c=n(41675),u=n(25935),d=n(98456),p=n(56785),f=n(57603),h=n(62466),g=n(66500),m=n(30640),v=n(26852),x=n(34394),b=n(71184),y=n(89532),j=function(){var e=(0,i.useState)(!1),t=e[0],n=e[1],r=(0,i.useState)(!1),o=r[0],a=r[1],s=(0,y.Z)();return(0,i.useEffect)(function(){var e=function(){a(!0)};return window.addEventListener(b._,e),function(){window.removeEventListener(b._,e)}},[]),(0,i.useEffect)(function(){var e=window.sessionStorage.getItem("appm_email");n(!!(s&&e&&!o))},[o,s]),t},w=n(16164),k=n(2962),O=n(85893),_=function(e){var t,n,r=e.authorsString,i=e.changed,o=e.created,a=e.description,s=e.title,l=e.url,u=(0,c.$G)(["header"]).t,d=[];if(r)try{d=JSON.parse(null!=r?r:"")}catch(e){console.error(e)}var p=null!==(t=null===(n=d)||void 0===n?void 0:n.filter(function(e){return!!(e&&"string"==typeof e.name&&e.name.trim())}).map(function(e){return e.name}))&&void 0!==t?t:[];return(0,O.jsx)(k.dX,{url:l,title:null!=s?s:"",images:[],datePublished:o?new Date(o).toUTCString():"",dateModified:i?new Date(i).toUTCString():"",authorName:p,publisherName:u("title"),publisherLogo:"".concat("https://teabevara.ee","/logo.svg"),description:null!=a?a:""})};_.displayName="InfoAssetMeta";var S=n(27812),Z=n(50029),P=n(64687),N=n.n(P),C=n(25043),E=n(97893),I=n.n(E),D=n(8070),F=n(92446),T=n(95664),L=n(50943),U=T.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-zsn6pb-0"})(["padding:"," 0;margin:",';&:before,&:after{content:"";display:block;width:100px;height:4px;background-color:',";}&:after{margin:",";}"],L.Dl.gridUnitSmall,L.d8.small,L.Xd.lightGray,L.d8.default),z=T.ZP.h3.withConfig({displayName:"styles__Title",componentId:"sc-zsn6pb-1"})(["font-weight:",";font-size:",";margin:",";"],L.vC.bold,L.CH.mediumLarge,L.d8.default),A=T.ZP.ul.withConfig({displayName:"styles__List",componentId:"sc-zsn6pb-2"})(["padding:0;margin:0;list-style:none;"]),R=T.ZP.li.withConfig({displayName:"styles__Item",componentId:"sc-zsn6pb-3"})(["padding:0;margin:",";"],L.d8.small),W=T.ZP.a.withConfig({displayName:"styles__Element",componentId:"sc-zsn6pb-4"})(["cursor:pointer;color:",";&:hover{text-decoration:underline;}svg{margin-right:",";}"],L.O9.primary,L.Dl.gridUnitSmall),B=n(17058),X=function(e){var t=(0,c.$G)(["common"]).t,n=(0,l.useRouter)();return(0,O.jsxs)(U,{children:[(0,O.jsx)(z,{children:e.title}),(0,O.jsx)(A,{children:e.items.map(function(r){var i,o;return(0,O.jsxs)(R,{children:[(0,O.jsxs)(W,{href:r.url,children:[(0,O.jsx)(B.Z,{width:12,height:12,kind:"file"}),(0,u.ZP)(r.name)]}),e.showInfoassetData&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("span",{children:" – "}),(0,O.jsx)("a",{href:null==r||null===(i=r.meta)||void 0===i?void 0:i.slugs.split(";").slice(-2)[0].replace("app","et"!==n.locale?"/".concat(n.locale):""),style:{color:"black"}}),(0,O.jsx)("a",{href:null==r||null===(o=r.meta)||void 0===o?void 0:o.slugs.split(";").slice(-2)[0].replace("app",""),style:{color:"black"},children:"".concat(t("viewChapter"))})]})]},r.id)})})]})};X.displayName="AssetNavBar";var H=function(e){var t=e.lockedForUser,n=e.fileData,r=e.showInfoassetData,i=(0,c.$G)(["infoassets"]).t;return t||!(null!=n&&n.length)?null:(0,O.jsx)(X,{title:i("files"),items:n.map(function(e){return{id:e.ur
1i,name:e.filename,url:e.uri,meta:e.meta}}),showInfoassetData:void 0!==r&&r})},G=T.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1uqncf9-0"})(["position:relative;width:100%;height:0;padding-bottom:56.25%;margin:"," 0 0;video{position:absolute;width:100%;height:100%;left:0;top:0;}"],L.Dl.gridUnitLarge),V=T.ZP.p.withConfig({displayName:"styles__Trigger",componentId:"sc-1uqncf9-1"})(["display:flex;align-items:center;margin:15px 0 0;padding:20px 30px;background-color:rgba(255,255,255,0.725);border:1px solid rgba(255,255,255,0.5);border-top:none;box-shadow:0px 20px 20px rgb(0 0 0 / 5%);border-radius:9px;"]),M=T.ZP.p.withConfig({displayName:"styles__TriggerOpen",componentId:"sc-1uqncf9-2"})(["display:flex;align-items:center;margin:15px 0 0;padding:20px 30px;background-color:rgba(255,255,255,0.725);border:1px solid rgba(255,255,255,0.5);border-top:none;box-shadow:0px 20px 20px rgb(0 0 0 / 5%);border-top-left-radius:9px;border-top-right-radius:9px;"]),$=T.ZP.div.withConfig({displayName:"styles__WrapperCollapsible",componentId:"sc-1uqncf9-3"})(["background-color:rgba(255,255,255,0.725);border:1px solid rgba(255,255,255,0.5);box-shadow:0px 20px 20px rgb(0 0 0 / 5%);border-bottom-left-radius:9px;border-bottom-right-radius:9px;padding:0 30px 20px;"]),q=T.ZP.a.withConfig({displayName:"styles__Title",componentId:"sc-1uqncf9-4"})(["color:#d61e1f;",";"],function(e){return!e.hasSpace&&"line-break: anywhere;"}),J=function(e){var t=e.lockedForUser,n=e.videoData,r=e.showInfoassetData,i=void 0!==r&&r,o=(0,c.$G)(["common"]).t,a=(0,l.useRouter)();if(t||!(null!=n&&n.length))return null;var s=function(e,t){return(0,O.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,O.jsx)(B.Z,{kind:"video",width:12,height:12,style:{marginRight:10,flexShrink:0}}),(0,O.jsx)("a",{href:"#",children:e}),(0,O.jsx)(B.Z,{kind:t?"arrowup01":"arrowdown01",height:12,width:12,style:{marginLeft:10,flexShrink:0}})]})},u=function(e){return(0,O.jsx)(G,{children:(0,O.jsxs)("video",{controls:!0,preload:"metadata",children:[(0,O.jsx)("source",{src:"".concat(e,"#t=0.1"),type:"video/mp4"}),"Your browser does not support the video tag."]})})};return(0,O.jsx)(O.Fragment,{children:n.map(function(e){return(0,O.jsx)(O.Fragment,{children:i&&e.meta?(0,O.jsx)(I(),{transitionTime:200,triggerWhenOpen:(0,O.jsx)(M,{children:s(e.filename,!0)}),trigger:(0,O.jsx)(V,{children:s(e.filename,!1)}),children:(0,O.jsxs)($,{children:[(0,O.jsx)("a",{href:e.meta.slugs.split(";").slice(-2)[0].replace("app","et"!==a.locale?"/".concat(a.locale):""),children:o("viewChapter")}),(0,O.jsx)(C.Z,{children:u(e.uri)},e.filename)]})},e.filename):(0,O.jsx)(C.Z,{children:u(e.uri)},e.filename)})})})},Y=n(79039),K=n(72244),Q=n(43564),ee=T.ZP.img.withConfig({displayName:"parser__Img",componentId:"sc-28mz7z-0"})(["display:block;height:auto;& + em{display:block;font-size:14px;opacity:0.7;}","{max-width:100%;& + em{max-width:100%;}}","{max-width:560px;& + em{max-width:560px;}}","{max-width:700px;& + em{max-width:700px;}}"],K.A.NotDesktop,K.A.Desktop,K.A.DesktopWide),et={replace:function(e){if(e instanceof u.W_&&"o:p"===e.name)return(0,O.jsx)(O.Fragment,{});if(e instanceof u.W_&&"img"===e.name){var t=e.attribs,n=t.src,r=t.alt,i=n.replace(/(http(s)?:\/\/(www.)?teabevara.ee)?\/sites\/default\/files\//,""),o=i.replace(/(\/et|\/ru)?\/system\/files\//,"private/");if(i.includes("/assets/")){var a=i.replace(/\/assets\//,"");return(0,O.jsx)(ee,{src:"".concat(Q.X.SITE_SELF_URL,"/api/infoassets/image?key=").concat(a,"&is_from_kirjak=1"),alt:r})}return n.startsWith("data:")||n===o?(0,O.jsx)(ee,{src:n,alt:r}):(0,O.jsx)(ee,{src:"".concat(Q.X.SITE_SELF_URL,"/api/infoassets/image?key=").concat(o),alt:r})}}},en=n(95145),er=T.ZP.div.withConfig({displayName:"styles__PlayerWrapper",componentId:"sc-1cr1o5-0"})(["background:",";border:",";border-radius:",";box-sizing:border-box;box-shadow:0px 20px 15px rgba(0,0,0,0.075);backdrop-filter:blur(20px);margin-top:20px;padding:20px 30px;"],function(e){return!0!==e.isSeparateBar?"rgba(255, 255, 255, 0.5)":"rgba(198, 203, 208, 0.5)"},function(e){return!0!==e.isSeparateBar?"1px solid rgba(255, 255, 255, 0.5)":void 0},function(e){return!0!==e.isSeparateBar?"9px":void 0}),ei=T.ZP.div.withConfig({displayName:"styles__Title",componentId:"sc-1cr1o5-1"})(["font-weight:bold;font-size:16px;line-height:19px;margin-bottom:5px;",";"],function(e){return!e.hasSpace&&"line-break: anywhere;"}),eo=T.ZP.input.attrs({type:"range"}).withConfig({displayName:"styles__Progress",componentId:"sc-1cr1o5-2"})(['position:relative;appearance:none;width:100%;margin-bottom:6px;&::before{position:absolute;content:"";top:0;left:0;width:',"%;height:3px;background:",";cursor:pointer;}&::-webkit-slider-runnable-track{width:100%;height:3px;
1cursor:pointer;background:",";}&::-webkit-slider-thumb{position:relative;appearance:none;box-sizing:content-box;height:14px;width:14px;border-radius:50%;background-color:",";cursor:pointer;margin-top:-5px;}&::-moz-range-track{width:100%;height:3px;cursor:pointer;background:",";}&::-moz-range-thumb{position:relative;appearance:none;box-sizing:content-box;height:14px;width:14px;border-radius:50%;background-color:",";cursor:pointer;margin-top:-5px;}&::-moz-range-progress{background:",";}&::-ms-track{width:100%;height:3px;cursor:pointer;background:transparent;border:solid transparent;color:transparent;}&::-ms-fill-lower{background:",";}&::-ms-fill-upper{background:",";}&::-ms-thumb{position:relative;appearance:none;box-sizing:content-box;height:14px;width:14px;border-radius:50%;background-color:",";cursor:pointer;margin-top:-5px;}"],function(e){return e.value?e.value:0},L.O9.primary,L.Xd.black,L.O9.primary,L.Xd.black,L.O9.primary,L.O9.primary,L.O9.primary,L.Xd.black,L.O9.primary),ea=T.ZP.div.withConfig({displayName:"styles__Time",componentId:"sc-1cr1o5-3"})(["width:100%;height:13px;display:flex;justify-content:space-between;& span{font-size:11px;line-height:13px;opacity:0.5;}"]),es=T.ZP.div.withConfig({displayName:"styles__Controls",componentId:"sc-1cr1o5-4"})(["width:100%;display:flex;justify-content:center;& svg{cursor:pointer;margin:0 10px;}& .spin{-webkit-animation:"," 0.5s linear infinite;-moz-animation:"," 0.5s linear infinite;-o-animation:"," 0.5s linear infinite;animation:"," 0.5s linear infinite;}@-webkit-keyframes rotation{from{-webkit-transform:rotate(0deg);}to{-webkit-transform:rotate(359deg);}}@-moz-keyframes rotation{from{-moz-transform:rotate(0deg);}to{-moz-transform:rotate(359deg);}}@-o-keyframes rotation{from{-o-transform:rotate(0deg);}to{-o-transform:rotate(359deg);}}@keyframes rotation{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}"],L.sF.spin,L.sF.spin,L.sF.spin,L.sF.spin),el=T.ZP.div.withConfig({displayName:"styles__Description",componentId:"sc-1cr1o5-5"})(["margin-top:5px;img{margin:0 auto;}"]);function ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ed=function(e){var t=e.close,n=e.style;return(0,O.jsx)(B.Z,{width:20,height:20,kind:"close",onClick:t,style:eu({cursor:"pointer"},n)})},ep=function(e){var t,n=e.description,r=e.meta,o=e.title,a=e.type,s=e.src,l=e.showTitle,c=e.onClose,d=e.playOnLoad,p=e.isSeparateBar,f=(0,i.useState)(!0),h=f[0],g=f[1],m=(0,i.useState)(!1),x=m[0],b=m[1],y=(0,i.useState)(!1),j=y[0],w=y[1],k=(0,i.useState)(0),_=k[0],S=k[1],P=(0,i.useState)(0),C=P[0],E=P[1],I=(0,i.useState)(0),D=I[0],F=I[1],T=(0,i.useRef)(null),L=(0,Y.sf)(),U={content:{categories:null==r?void 0:r.book_title,id:null==r?void 0:r.node_id.toString(),locked:!1,name:o,type:en.zc.PODCAST},event:"play",user:{access:!0}},z=function(e){var t=Math.floor(e/3600),n="0".concat(Math.floor(e/60)).slice(-2),r="0".concat(Math.floor(e-3600*t-60*parseInt(n,10))).slice(-2);return"".concat(t?"".concat(t,":"):"").concat(n,":").concat(r)},A=function(){x?(w(!0),T.current.ontimeupdate=function(){H(),w(!1)}):w(!1)},R=function(e){var t,n,r,i;b(null!=e?e:!x),x?(null==T||null===(t=T.current)||void 0===t||t.pause(),L(function(){return eu(eu({},U),{},{event:"pause"})})):0===_?(E((null==T||null===(n=T.current)||void 0===n?void 0:n.duration)||0),null==T||null===(r=T.current)||void 0===r||r.play(),L(function(){return eu({},U)})):(null==T||null===(i=T.current)||void 0===i||i.play(),L(function(){return eu(eu({},U),{},{event:"play_again"})}))},W=function(){T&&(T.current.currentTime=_-15,A())},X=function(){T&&(T.current.currentTime=_+15,A())},H=function(){var e,t,n=(null==T||null===(e=T.current)||void 0===e?void 0:e.currentTime)||0,r=(null==T||null===(t=T.current)||void 0===t?void 0:t.duration)||0;S(n),F(100*n/r)},G=function(e){if(T){var t,n=null==T||null===(t=T.current)||void 0===t?void 0:t.duration,r=parseInt(e.target.value,10),i=(n||0)/100*r;E(n||0),S(i),F(r),T.current.currentTime=i,A()}},V=(t=(0,Z.Z)(N().mark(function e(){return N().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(x&&R(!1),!c){e.next=4;break}return e.next=4,c();case 4:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,i.useEffect)(function(){A()},[x]),(0,i.useEffect)(function(){setTimeout(function(){var e;if(!T){console.error("Audio ref not found!");return}(e=(0,Z.Z)(N().mark(function e(){return N().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",T.current.play());case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})().then(function(){var e,t;null==T||null===(e=T.current)||void 0===e||e.pause(),E((null==T||null===(t=T.current)||void 0===t?void 0:t.duration)||0),g(!1),d&&R(!0)}).catch(function(e){var t;E((null==T||null===(t=T.current)||void 0===t?void 0:t.duration)||0),g(!1)}),T.current.onended=function(){return b(!1)}},1);var e=null==T?void 0:T.current;
1return function(){e&&(e.onended=null,e.ontimeupdate=null)}},[]),(0,O.jsxs)(er,{isSeparateBar:p,children:[(0,O.jsx)("audio",{ref:T,preload:"metadata",children:(0,O.jsx)("source",{src:s,type:a||"audio/mpeg"})}),h?(0,O.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,O.jsx)("div",{style:{flexGrow:1},children:(0,O.jsx)(v.Z,{})}),c&&(0,O.jsx)(ed,{close:V,style:{flexShrink:0}})]}):(0,O.jsxs)(O.Fragment,{children:[!1!==l&&o&&!o.endsWith(".mp3")?(0,O.jsx)(ei,{hasSpace:(null==o?void 0:o.indexOf(" "))>0,children:o}):null,(0,O.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"15px"},children:[(0,O.jsxs)("div",{style:{flexGrow:1},children:[(0,O.jsx)(eo,{value:D,onChange:function(e){return G(e)},step:.01}),(0,O.jsx)(ea,{children:C>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("span",{children:z(_)}),(0,O.jsx)("span",{children:z(C)})]})})]}),c&&(0,O.jsx)(ed,{close:V})]}),(0,O.jsxs)(es,{children:[(0,O.jsx)(B.Z,{width:20,height:20,kind:"rewind",onClick:function(){return W()}}),(0,O.jsx)(B.Z,{className:j?"spin":"",width:20,height:20,kind:j?"loading":x?"pause":"play",onClick:function(){return R()}}),(0,O.jsx)(B.Z,{width:20,height:20,kind:"forward",onClick:function(){return X()}})]}),n&&(0,O.jsx)(el,{children:(0,u.ZP)(n,et)})]})]})};function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}ep.displayName="AudioPlayer";var eg=function(e){return JSON.parse(e).map(function(e){var t=new URLSearchParams;return t.append("key",e.uri),1===e.is_from_kirjak&&t.append("is_from_kirjak","1"),eh(eh({},e),{},{uri:"".concat(Q.X.SITE_SELF_URL,"/api/file?").concat(t.toString())})})},em=function(e){try{var t=JSON.parse(e);if(!t)return;var n=new URLSearchParams({key:t.filePath,is_from_kirjak:"1"});return{uri:"".concat(Q.X.SITE_SELF_URL,"/api/file?").concat(n.toString())}}catch(e){console.error(e);return}},ev=function(e){var t=(0,i.useState)(void 0),n=t[0],r=t[1],o=(0,i.useState)(void 0),a=o[0],s=o[1],l=(0,i.useState)(void 0),c=l[0],u=l[1],d=(0,i.useState)(void 0),p=d[0],f=d[1],h=null!=e?e:{},g=h.audio,m=h.files,v=h.video,x=h.lockedForUser,b=h.text_to_speech_audio;return(0,i.useEffect)(function(){var e=!0;if(!(null!=g&&g.length)||x){r(void 0);return}return e&&r(eg(g)),function(){e=!1}},[g,x]),(0,i.useEffect)(function(){var e=!0;if(!(null!=m&&m.length)||x){s(void 0);return}return e&&s(eg(m)),function(){e=!1}},[m,x]),(0,i.useEffect)(function(){var e=!0;if(!(null!=v&&v.length)||x){u(void 0);return}return e&&u(eg(v)),function(){e=!1}},[v,x]),(0,i.useEffect)(function(){var e=!0;if(!b||"null"===b||x){f(void 0);return}return e&&f(em(b)),function(){e=!1}},[b,x,e]),{audioData:n,fileData:a,videoData:c,textToSpeechAudioData:p}};function ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ex(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ey=function(e){var t=e.infoassetId,n=e.hasPermissions,r=(0,o.v9)(D.tT),a=(0,l.useRouter)(),s=(0,c.$G)(["common"]).t,d=a.query.filters,f=(0,i.useState)(!1),h=f[0],g=f[1],m=(0,i.useState)(void 0),v=m[0],x=m[1];return(0,i.useEffect)(function(){var e,n=(e=(0,Z.Z)(N().mark(function e(){var n;return N().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return g(!0),e.next=3,(0,F.Z7)(t,d);case 3:n=e.sent,x((0,S.Z)(n.files).reduce(function(e,t){var n=eg(t[d]).map(function(e){return eb(eb({},e),{},{meta:t})});return e.concat(n)},[])),g(!1);case 7:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});d&&n()},[d]),(0,O.jsxs)(O.Fragment,{children:[d&&h?(0,O.jsx)(p.Z,{}):null,d&&!h&&v?function(){if(v&&r&&n){var e=function(e,t){return(0,O.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,O.jsx)(B.Z,{kind:"audio",width:12,height:12,style:{marginRight:10,flexShrink:0}}),(0,O.jsx)(q,{href:"#",hasSpace:(null==e?void 0:e.indexOf(" "))>0,children:e}),(0,O.jsx)(B.Z,{kind:t?"arrowup01":"arrowdown01",height:12,width:12,style:{marginLeft:10,flexShrink:0}})]})};switch(d){case"audio":return v.filter(function(e){return e.filename}).map(function(t){var n;return(0,O.jsx)(I(),{transitionTime:200,trigger:(0,O.jsx)(V,{children:t.filename&&e(t.filename,!1)}),triggerWhenOpen:(0,O.jsx)(M,{children:t.filename&&e(t.filename,!0)}),children:(0,O.jsxs)($,{children:[(0,O.jsx)("a",{href:null==t||null===(n=t.meta)||void 0===n?void 0:n.slugs.split(";").slice(-2)[0].replace("app","et"!==a.locale?"/".concat(a.locale):""),children:s("viewChapter")}),(0,O.jsx)(C.Z,{height:"400",children:(0,O.jsx)(ep,{description:t.description,meta:t.meta,src:t.uri,title:t.filename,userData:null!=r?r:void 0})})]})},t.filename)});case"video":return(0,O.jsx)(J,{videoData:v.filter(function(e){return e.filename}),lockedForUser:!1,showInfoassetData:!0}
1);case"files":return(0,O.jsx)(H,{fileData:v.filter(function(e){return e.filename}),lockedForUser:!1,showInfoassetData:!0});default:return v.map(function(e){return e.filename?(0,O.jsx)("p",{children:(0,O.jsx)("a",{href:e.uri,children:(0,u.ZP)(e.filename)})},e.filename):null})}}}():null,!d||h||v?null:(0,O.jsx)("p",{children:s("empty")})]})},ej=n(39126),ew=n(38731),ek=n(19759),eO=n(12541),e_=n(93128),eS=n(98643),eZ=n(98282),eP=n(19056),eN=n(69087),eC=function(e){var t,n,r=e.infoassetId,a=(e.infoassetVideoLink,e.pageSEO),s=e.slug,b=(0,Y.sf)(),y=(0,i.useState)(!0),k=(y[0],y[1]),S=(0,i.useState)(!1),Z=S[0],P=S[1],N=(0,e_.ys)(r).infoasset,C=(0,eS.G)(r).paywallByPeriod,E=(0,o.v9)(D.tT),I=(0,o.v9)(function(e){return(0,D.Xn)(e,N)}),F=(0,c.$G)(["common"]).t,T=(0,l.useRouter)(),L=T.asPath,U=L.split("?")[0],z=j(),A=null!=N&&N.authors?JSON.parse(null==N?void 0:N.authors):null,R=null!=N&&N.authors?null==A?void 0:A.map(function(e){return e.name}).join(", "):en.NY.NOT_SET,W=null!=N&&N.title?"".concat(null==N?void 0:N.title," - Tutvustus"):null,B=null==N?void 0:N.book_codes.split(";"),X=null==E?void 0:E.productCodes.some(function(e){return null==B?void 0:B.includes(e)}),H=(0,eZ.Z)(null!==(t=null==N?void 0:N.campaign_codes)&&void 0!==t?t:null),G=T.query.filters,V=null!=W?W:null==a?void 0:a.title,M=F("introductionWord");return(0,i.useEffect)(function(){P(!0)},[]),(0,i.useEffect)(function(){Z&&k(!1)},[Z,U]),(0,i.useEffect)(function(){N&&b(function(){return{content:{author:R,categories:null==N?void 0:N.title,locked:!X,name:M,type:en.zc.ARTICLE,title:V},event:"vpage_view",user:{access:X}}})},[N]),(0,O.jsxs)(d.Z,{searchAsset:r,pageSEO:a,children:[(0,O.jsx)(_,{authorsString:null==N?void 0:N.authors,created:null!==(n=null==N?void 0:N.created)&&void 0!==n?n:0,description:null==N?void 0:N.intro,title:null==N?void 0:N.title,url:"".concat(Q.X.SITE_SELF_URL).concat(L)}),(0,O.jsxs)(eO.Z,{children:[(0,O.jsx)(eP.d,{}),(0,O.jsx)(f.Z,{className:"bottom-margined-heading",level:h.y.H1,visuallyHidden:!0,children:null==N?void 0:N.title})]}),(0,O.jsxs)(ej.Z,{children:[(0,O.jsx)(ew.Z,{type:ek.S.SIDEBAR,children:(0,O.jsx)(eN.Z,{infoasset:N,slug:s,showFilters:!0})}),(0,O.jsxs)(ew.Z,{children:[N?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(f.Z,{level:h.y.H1,className:"bottom-margined-heading",children:(0,u.ZP)(N.title)}),G?(0,O.jsx)(ey,{infoassetId:r,hasPermissions:X}):(0,O.jsx)(g.Z,{children:(0,u.ZP)(N.body.replace(/\t+/g,""),et)})]}):(0,O.jsx)(p.Z,{}),z&&(0,O.jsx)(w.Z,{children:(0,O.jsx)(v.Z,{size:x.N.LARGE})}),!I&&(0,O.jsx)(m.Z,{campaignCodes:H,paywallByPeriod:C})]})]})]})},eE=n(72610),eI=n(2656),eD=n(24048),eF=n(30480),eT=function(e){var t=e.infoassetId,n=e.pageSEO,r=e.slug,a=e.pageName,s=(0,c.$G)(["common"]).t,l=(0,e_.ys)(t).infoasset,u=null!=l&&l.authors?JSON.parse(l.authors):[],p=null==u?void 0:u.map(function(e){return e.name}).join(", "),g=(0,o.v9)(D.tT),m=null==l?void 0:l.book_codes.split(";"),b=null==g?void 0:g.productCodes.some(function(e){return null==m?void 0:m.includes(e)}),y=(0,i.useState)(!1),j=y[0],w=y[1],k=(0,Y.sf)();return(0,i.useEffect)(function(){!j&&l&&(k(function(){return{content:{author:p,categories:null==l?void 0:l.title,locked:!b,title:n.title,name:a},event:"vpage_view",user:{access:b}}}),w(!0))},[j,n,k,l]),(0,O.jsxs)(d.Z,{searchAsset:t,pageSEO:n,children:[(0,O.jsx)(eO.Z,{children:(0,O.jsx)(f.Z,{className:"bottom-margined-heading",level:h.y.H1,visuallyHidden:!0,children:null==l?void 0:l.title})}),l?(0,O.jsx)(O.Fragment,{children:(0,O.jsxs)(ej.Z,{children:[(0,O.jsx)(ew.Z,{type:ek.S.SIDEBAR,children:l&&(0,O.jsx)(eN.Z,{infoasset:l,slug:r,showFilters:!0})}),(0,O.jsxs)(ew.Z,{children:[(0,O.jsx)(f.Z,{level:h.y.H1,className:"bottom-margined-heading",children:s("assetSections.authors")}),(0,O.jsx)(eD.Z,{hasColumns:!0,columnCount:3,children:u.map(function(e){var t=e.description,n=e.name,r=e.is_from_kirjak,i=e.picture,o=e.position;return(0,O.jsx)(eE.C,{children:(0,O.jsx)(eI.aY,{className:"center",children:(0,O.jsx)(eF.Z,{bio:t,image:"".concat(Q.X.SITE_SELF_URL,"/api/infoassets/image?key=").concat(i).concat(r?"&is_from_kirjak=1":""),isVertical:!0,name:n,title:o})})},n)})})]})]})}):(0,O.jsx)(v.Z,{layout:x.u.FLEX,size:x.N.LARGE})]})},eL=n(27348),eU=n(55038),ez=function(e){var t=e.infoassetId,n=e.pageSEO,r=e.slug,a=e.pageName,s=(0,e_.ys)(t).infoasset,l=null!=s&&s.authors?JSON.parse(s.authors):[],c=null==l?void 0:l.map(function(e){return e.name}).join(", "),u=(0,o.v9)(D.tT),g=null==s?void 0:s.book_codes.split(";
1"),m=null==u?void 0:u.productCodes.some(function(e){return null==g?void 0:g.includes(e)}),v=(0,i.useState)(!1),x=v[0],b=v[1],y=(0,Y.sf)();return(0,i.useEffect)(function(){!x&&s&&(y(function(){return{content:{author:c,categories:null==s?void 0:s.title,locked:!m,title:n.title,name:a},event:"vpage_view",user:{access:m}}}),b(!0))},[x,n,y,s]),(0,O.jsxs)(d.Z,{searchAsset:t,pageSEO:n,children:[(0,O.jsxs)(eO.Z,{children:[(0,O.jsx)(eP.d,{}),(0,O.jsx)(f.Z,{className:"bottom-margined-heading",level:h.y.H1,visuallyHidden:!0,children:null==s?void 0:s.title})]}),s?(0,O.jsxs)(ej.Z,{children:[(0,O.jsx)(ew.Z,{type:ek.S.SIDEBAR,children:(0,O.jsx)(eN.Z,{infoasset:s,slug:r,showFilters:!0})}),(0,O.jsx)(ew.Z,{children:(0,O.jsx)(eL.Z,{tagName:s.title,tagSlug:(0,eU.b)(s.title)})})]}):(0,O.jsx)(p.Z,{})]})},eA=n(4730),eR=T.ZP.div.withConfig({displayName:"styles__ChapterWrapper",componentId:"sc-1h03ysv-0"})(["blockquote > p{white-space:normal;}table{display:block;overflow-x:auto;scroll-behavior:auto;max-width:max-content;}"]),eW=function(e){var t=e.children;return(0,O.jsx)(eR,{children:t})};eW.displayName="ChapterContentWrapper";var eB=n(32981),eX=n(8714),eH=n(14241),eG=n(50621),eV=n(17479),eM=n(62150);function e$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e$(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eJ=T.ZP.div.withConfig({displayName:"ChapterFavouriteButton__BadgeWrapper",componentId:"sc-13wm35z-0"})(["cursor:pointer;"]),eY=T.ZP.div.withConfig({displayName:"ChapterFavouriteButton__ButtonWrapper",componentId:"sc-13wm35z-1"})(["","{height:auto;}"],eH.Z),eK=function(e){var t=e.bookId,n=e.bookTitle,r=e.chapterTitle,o=e.chapterId,a=e.chapterSlug,s=e.jwt,l=(0,c.$G)(["infoassets"]).t,u=(0,i.useReducer)(function(e,t){switch(t.type){case"isLoading":return eq(eq({},e),{},{loading:!0});case"isFavourite":return{loading:!1,isFavourite:!0};case"isNotFavourite":return{loading:!1,isFavourite:!1};default:return e}},{loading:!0,isFavourite:!1}),d=u[0],p=u[1];return((0,i.useEffect)(function(){s&&(0,eM.c6)(s).then(function(e){null!=e&&e.some(function(e){return e.slug===a})?p({type:"isFavourite"}):p({type:"isNotFavourite"})}).catch(function(e){console.error(e),p({type:"isNotFavourite"})})},[s,t,o,a]),s)?!d.loading&&d.isFavourite?(0,O.jsx)(eX.P,{children:(0,O.jsx)(eJ,{onClick:function(){s&&!d.loading&&(p({type:"isLoading"}),(0,eM.Vj)(s,{metaData:n,title:r,slug:a}).then(function(){p({type:"isNotFavourite"})}).catch(function(e){console.error(e),p({type:"isFavourite"})}))},children:(0,O.jsx)(eX.Z,{badge:"bookmark"})})}):(0,O.jsx)(eY,{children:(0,O.jsx)(eV.Z,{children:(0,O.jsx)(eH.Z,{title:l("addToFavourites"),intent:eG.wg.SECONDARY_OUTLINE,size:eG.qE.SMALL,icon:d.loading?void 0:"bookmark",onClick:function(){s&&!d.loading&&(p({type:"isLoading"}),(0,eM.yr)(s,{meta:n,title:r,slug:a}).then(function(e){if(!e.success)throw Error("Failed to post favourite.");p({type:"isFavourite"})}).catch(function(e){console.error(e),p({type:"isNotFavourite"})}))},loading:d.loading})})}):null},eQ=function(e){var t,n=e.search,r=e.children,o="span",a={backgroundColor:"#efa8a8",padding:"0",display:"inline"},s=function(e,t){return/^\s+$/.test(e)?(0,O.jsx)(i.Fragment,{children:e},t):i.createElement(o,{key:t},e)},l=function(e,t){for(var n=[],r=0;e;){var l=t.exec(e);if(l){var c,u=l.index,d=l.index+l[0].length;if(0===u&&0===d)return n;var p=e.slice(0,u),f=e.slice(u,d),h=e.slice(u+f.length,d+1),g=u>0?e.slice(u-1,u):"";(p&&(n.push(s(p,r)),r++),h.match(/[a-z]/i)||g.match(/[a-z]/i))?n.push(s(f,r)):n.push((c=r,i.createElement(o,{key:c,style:a},f))),r++,e=e.slice(d)}else{n.push(s(e,r));break}}return n},c=function(e){return/string|number|boolean/.test(typeof e)};if(!n)return r;n.sort(function(e,t){return t.length-e.length});var u=(t=n.map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("|"))instanceof RegExp?t:RegExp(t,"i");if(!c(r)){if(i.Children.count(r)>1)return console.error("TextHighlighter must contain one wrapper element as a child"),(0,O.jsx)(O.Fragment,{});if(!i.isValidElement(r))return console.error("TextHighlighter does not contain valid react elements"),(0,O.jsx)(O.Fragment,{});var d=function e(t,n){return t?i.Children.map(t,function(t){if(c(t))return l(t.toString(),n);var r=e(t.props&&t.props.children,n);return i.cloneElement(t,t.props,r)}):t}(r,u),p=i.cloneElement(r,r.props,d);return(0,O.jsx)(i.Fragment,{children:p})}return(0,O.jsx)(O.Fragment,{children:l(r,u)})},e0=n(10808),e1=n(11791),e5=n(18053),e2=n(39398),e9=["subItems"],e6=T.ZP.div.withConfig({displayName:"ChapterPageContent__ButtonWrapper",componentId:"sc-bbrzzl-0"}
1)(["height:auto;display:flex;gap:5px;flex-wrap:wrap;"]),e4=function(e){var t,n,r,a=e.infoassetId,s=e.chapterId,m=e.currentSlug,v=e.pageSEO,x=(0,o.I0)(),b=(0,i.useState)((0,D.v_)()),y=b[0],j=b[1],w=(0,i.useState)(!0),k=(w[0],w[1]),Z=(0,l.useRouter)(),P=(0,l.useRouter)().asPath,N=P.split("?")[0],C=(0,c.$G)(["common"]).t,E=(0,e5.W$)(s,y),I=E.data,F=E.error,T=E.fallback,L=F?T:I,U=(0,e_.ys)(a).infoasset,z=(0,eS.G)(a).paywallByPeriod,A=(0,o.v9)(D.ug),R=(0,o.v9)(D.tT),W=(0,o.v9)(e0.rc),B=(0,Y.sf)(),X=(0,i.useState)(!1),G=X[0],V=X[1],M=ev(L),$=M.audioData,q=M.fileData,K=M.videoData,ee=M.textToSpeechAudioData,er=(0,e1.Z)({assetTree:(0,e_.O0)(s,null==U?void 0:U.chapters)}).filteredAssetTree,ei=null!=U&&U.authors?JSON.parse(null==U?void 0:U.authors):null,eo=null==U?void 0:U.book_codes.split(";"),ea=(0,eZ.Z)(null!==(r=null==U?void 0:U.campaign_codes)&&void 0!==r?r:null),es=null==R?void 0:R.productCodes.some(function(e){return null==eo?void 0:eo.includes(e)}),el=Z.query,ec=el.filters,eu=el.searchPageReferrer,ed=(function e(t,n){return t.reduce(function(t,r){return t.push(r),r[n]&&t.push.apply(t,(0,S.Z)(e(r[n],n))),t},[])})(function e(t){return t.reduce(function(t,n){var r=n.subItems,i=void 0===r?[]:r,o=(0,eA.Z)(n,e9);return i=e(i),(o.active||i.length)&&t.push(Object.assign({},o,i.length&&{subItems:i})),t},[])}(er),"subItems").slice(-1).pop(),ef=null==ed?void 0:ed.label;(0,i.useEffect)(function(){L&&U&&!W?(B(function(){var e;return{content:{author:null==ei?void 0:ei.map(function(e){return e.name}).join(", "),categories:null==U?void 0:U.title,locked:null==L?void 0:L.lockedForUser,title:null!==(e=null==v?void 0:v.title)&&void 0!==e?e:"",name:L.title,type:en.zc.ARTICLE},event:"vpage_view",user:{access:!(null!=L&&L.lockedForUser)}}}),x((0,e0.oW)(!0))):x((0,e0.oW)(!1))},[L,U]),(0,i.useEffect)(function(){A&&A!==y&&j(A)},[y,A]),(0,i.useEffect)(function(){k(!1)},[N]),(0,i.useEffect)(function(){eu||localStorage.removeItem(e2.d.SearchHighlight)},[eu]);var eh=function(e){var t,n=null==e?void 0:e.replace(/\t+/g,""),r=null!==(t=JSON.parse(localStorage.getItem(e2.d.SearchHighlight)))&&void 0!==t?t:null;return(0,O.jsx)(g.Z,{children:n?(0,O.jsx)(eQ,{search:r,children:(0,O.jsx)(eW,{children:(0,u.ZP)(n,et)})}):null})};return(0,O.jsxs)(d.Z,{searchAsset:a,pageSEO:v,children:[(0,O.jsx)(_,{authorsString:null==U?void 0:U.authors,changed:null==L?void 0:L.changed,created:null==L?void 0:L.created,description:null==L?void 0:L.body,title:ef,url:"".concat(Q.X.SITE_SELF_URL).concat(P)}),(0,O.jsx)(eO.Z,{children:(0,O.jsx)(f.Z,{className:"mobile-show",level:h.y.H1,visuallyHidden:!0,children:null==L?void 0:L.book_title})}),(0,O.jsxs)(ej.Z,{children:[(0,O.jsx)(ew.Z,{type:ek.S.SIDEBAR,children:U&&(0,O.jsx)(eN.Z,{infoasset:U,slug:m,showFilters:!0})}),(0,O.jsx)(ew.Z,{children:L?(0,O.jsx)(O.Fragment,{children:ec?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(f.Z,{level:h.y.H2,className:"nomargin",children:U?(0,u.ZP)(U.title):null}),(0,O.jsx)(ey,{infoassetId:a,hasPermissions:es})]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(f.Z,{level:h.y.H2,className:"bottom-margined-heading",addOn:[(0,O.jsxs)(e6,{children:[L&&!L.lockedForUser&&ee&&!G&&(0,O.jsx)(eH.Z,{title:C("listen"),intent:eG.wg.SECONDARY_OUTLINE,size:eG.qE.SMALL,icon:"play",onClick:function(){V(function(e){return!e})},marginBottom:"0px"}),(0,O.jsx)(eK,{bookId:a,chapterSlug:m,bookTitle:L.book_title||"",chapterTitle:ef,chapterId:s,jwt:y})]},"button-wrapper")],children:ef}),(0,O.jsx)(J,{lockedForUser:L.lockedForUser,videoData:K}),(0,O.jsx)(H,{lockedForUser:L.lockedForUser,fileData:q}),!L.lockedForUser&&$&&$.map(function(e){return(0,O.jsx)(ep,{description:e.description,meta:e.meta,src:e.uri,title:e.filename,userData:null!=R?R:void 0},e.filename)}),(t=L.lockedForUser,n=L.body,t?(0,O.jsx)(eB.Z,{campaignCodes:ea,content:eh(n),paywallByPeriod:z}):eh(n))]})}):(0,O.jsx)(p.Z,{})})]}),L&&!L.lockedForUser&&ee&&G&&(0,O.jsx)("div",{style:{width:"100%",position:"sticky",bottom:0,left:0,right:0},children:(0,O.jsx)(ep,{title:"Peat\xfcki '".concat(L.title,"' (").concat(L.id,") Text-To-Speech audio"),showTitle:!1,src:ee.uri,userData:null!=R?R:void 0,onClose:function(){return V(!1)},playOnLoad:!0,isSeparateBar:!0})})]})};function e3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function e8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?e3(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var e7=!0,te=function(e){var t=e.infoassetId,n=e.bookCodes,r=e.chapterId,a=e.deprecated,u=e.infoassetVideoLink,d=e.isAuthorPage,p=e.isNewsPage,f=e.currentSlug,h=e.pageSEO,g=(0,c.$G)(["common"]).t,m=(0,l.useRouter)(),b=(0,i.useState)(!0),y=b[0],j=b[1],w=(0,o.v9)(D.AV),k=(0,o.v9)(D.tT),_=null==n?void 0:n.some(function(e){var t;return null==k||null===(t=k.productCodes)||void 0===t?void 0:t.includes(e)});if((0,i.useEffect)(function(){w?j(!0):a&&!_?m.push("/"):j(!1)},[a,w,_]),y)return(0,O.jsx)(v.Z,{layout:x.u.ABSOLUTE});if(r&&t)return(0,O.jsx)(e4,{chapterId:r,currentSlug:f,infoassetId:t,pageSEO:h},"".concat(t," - ").concat(r));if(t){var S,Z,P=(0,O.jsx)(eC,{infoassetId:t,infoassetVideoLink:u,slug:f,pageSEO:h});return d&&(P=(0,O.jsx)(eT,{infoassetId:t,slug:f,pageSEO:e8(e8({},h),{},{title:"".concat(null!==(S=h.title)&&void 0!==S?S:""," – ").concat(g("assetSections.authors"))}),pageName:g("assetSections.authors")})),p&&(P=(0,O.jsx)(ez,{infoassetId:t,slug:f,pageSEO:e8(e8({},h),{},{title:"".concat(null!==(Z=h.title)&&void 0!==Z?Z:""," – ").concat(g("assetSections.news"))}),pageName:g("assetSections.news")})),P}return(0,O.jsx)(s(),{statusCode:404})}},62150:function(e,t,n){"use strict";n.d(t,{Vj:function(){return g},c6:function(){return m},yr:function(){return h}});var r,i,o,a=n(50029),s=n(64687),l=n.n(s),c=n(9669),u=n.n(c),d=n(43564),p=n(2957),f=n(76765),h=(r=(0,a.Z)(l().mark(function e(t,n){var r;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u().post("".concat(d.X.ADVICE_API_URL,"/favourites/add"),n,{headers:(0,p._)(t)}).then(function(){return!0}).catch(function(){return!1});case 2:return r=e.sent,e.abrupt("return",{success:r});case 4:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)}),g=(i=(0,a.Z)(l().mark(function e(t,n){var r;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u().delete("".concat(d.X.ADVICE_API_URL,"/favourites").concat((0,f.Z)(n)),{headers:(0,p._)(t)}).then(function(){return!0}).catch(function(){return!1});case 2:return r=e.sent,e.abrupt("return",{success:r});case 4:case"end":return e.stop()}},e)})),function(e,t){return i.apply(this,arguments)}),m=(o=(0,a.Z)(l().mark(function e(t){var n;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,u().get("".concat(d.X.ADVICE_API_URL,"/favourites"),{headers:(0,p._)(t)});case 5:return n=e.sent,e.abrupt("return",n.data);case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",null);case 12:case"end":return e.stop()}},e,null,[[2,9]])})),function(e){return o.apply(this,arguments)})},98643:function(e,t,n){"use strict";n.d(t,{G:function(){return i}}),n(64687),n(9669);var r=n(5068);n(43564);var i=function(e){var t=(0,r.ZP)(e?"/api/infoassetPaywall?ia=".concat(e):null),n=t.data;return{paywallByPeriod:null!=n?n:null,isLoading:t.isLoading}}},76765:function(e,t,n){"use strict";var r=n(80129);t.Z=function(e){return(0,r.stringify)(e,{addQueryPrefix:!0,arrayFormat:"comma",skipNulls:!0})}},98282:function(e,t){"use strict";t.Z=function(e){return e?{standingOrder:e.standing_order,sixMonths:e.six_months,twelveMonths:e.twelve_months}:void 0}},2957:function(e,t,n){"use strict";n.d(t,{_:function(){return r}}),n(19463),n(43564);var r=function(e){return{authorization:e}}},55038:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(31304),i=n.n(r),o=function(e){return i()(e,{lower:!0})}},65793:function(e,t,n){"use strict";n.d(t,{W:function(){return d},_:function(){return u}});var r=n(16835),i=n(59499),o=n(11163),a=n(25617),s=n(67294),l=n(23650);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;return e.map(function(e,a){var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e);if(s.active=a===t,n){var l=s.slug.split("?"),u=(0,r.Z)(l,1)[0];s.slug="".concat(u,"?page=").concat(Math.ceil((a+1)/n),"#").concat(e.id)}if(o){var d=o.split("?"),p=(0,r.Z)(d,1)[0],f=s.slug.split("?")[1];s.slug="".concat(p).concat(f?"?".concat(f):"")}return s})},d=function(e){var t=e.key,n=e.path,r=e.setRenderedArticles,i=e.setRenderedAssets,c=(0,o.useRouter)().query.period,d=(0,a.v9)(function(e){return(0,l.SX)(e,t,c)}),p=(0,a.v9)(function(e){return(0,l.r7)(e,t)});(0,s.useEffect)(function(){if(p&&0!==p.length&&i){if(c){var e=p.findIndex(function(e){return e.id===c});i(u(p,e>=0?e:0,void 0,n))}else i(u(p,0,void 0,n))}},[p,c,i,n]),(0,s.useEffect)(function(){r&&r(d||[])},[d,r])}},50881:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...slug]",function(){return n(53983)}])},24654:function(){}},function(e){e.O(0,[1847,8679,129,7755,8456,4458,1060,6085,2888,9774,179],function(){return e(e.s=50881)}),_N_E=e.O()}]);

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.