1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9633],{66988:(t,e,r)=>{r.r(e),r.d(e,{default:()=>l});var i=r(37876),n=r(60262),a=r(31099),o=r(14449),s=r(29328);function l({blok:t,blokUID:e,heading:r,text:c,articles:u=[],buyerProfile:p,pageNavTitle:h,isEditorPreview:d}){return r||c||0!==u.length?(0,i.jsx)("section",{className:"c-page__block c-page__block--featured-articles","data-blok-uid":e,"data-section-nav-id":e,"data-section-nav-title":h||r||"","data-buyer-profile":p?.join(","),...t?(0,n.K1)(t):{},children:(0,i.jsxs)("div",{className:"c-featured-articles",children:[(0,i.jsx)(a.A,{className:"c-featured-articles__intro c-block-intro--on-dark",heading:r,text:c,size:"small"}),u.length>0?(0,i.jsx)(o.A,{articles:u,className:"c-featured-articles__list",headingLevel:"h3"}):d?(0,i.jsx)("p",{className:"c-featured-articles__empty u-body--m",children:"Select one or two articles to display here."}):null]})}):d?(0,i.jsx)(s.A,{blok:t,label:"Featured articles"}):null}},79746:(t,e,r)=>{r.d(e,{BU:()=>d,Dx:()=>h,Hq:()=>c,Mo:()=>l,SG:()=>f,a_:()=>w,av:()=>g,hz:()=>u,wZ:()=>m});var i=r(96202),n=r(57850),a=r(18427);let o=new Set(r(64124).UE),s=new Set(["http:","https:","mailto:","tel:"]);function l(t={}){return o.has(t?.component)}function c(t={}){var e;let r=Array.isArray(e=t?.deliveryMode)?e[0]||"":e||"",i="object"==typeof r?r.value:r;return t?.component==="supportDocument"||t?.component==="supportArticle"&&"document"===i}function u(t={}){return t?.document||t?.directDocument||null}function p(t){return t?"string"==typeof t?t.trim():String(t.filename||t.url||t.cached_url||"").trim():""}function h(t){let e=function(t){if(!t)return"";if("string"==typeof t)return t.trim();let e=t.linktype||t.type||"",r=String(t.url||t.href||t.cached_url||t.filename||"").trim();"email"===e&&r&&!r.toLowerCase().startsWith("mailto:")&&(r=`mailto:${r}`),"story"===e&&(r=r?`/${r.replace(/^\/+/,"")}`:"");let n=String(t.anchor||"").replace(/^#/,"").trim();return n&&!r?r=`#${n}`:n&&!r.includes("#")&&(r+=`#${n}`),(0,i.CN)(r)}(t);if(!e||/[\u0000-\u001f\u007f]/.test(e))return"";if(e.startsWith("//"))return(0,a.Ni)(`https:${e}`);if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?"))return e;try{let t=new URL(e);if(!s.has(t.protocol)||["http:","https:"].includes(t.protocol)&&(!t.hostname||t.username||t.password))return"";return(0,a.Ni)(e)}catch{return""}}function d(t=""){return/^(?:https?:)?\/\//i.test(String(t))}function m(t=""){try{return(d(t)?new URL(t.startsWith("//")?`https:${t}`:t).pathname:String(t).split(/[?#]/)[0]).toLowerCase().endsWith(".pdf")}catch{return!1}}function f(t){return t?"string"==typeof t?t.trim():Array.isArray(t)?t.map(f).filter(Boolean).join(" ").replace(/\s+/g," ").trim():"object"!=typeof t?"":[t.text,f(t.content)].filter(Boolean).join(" ").replace(/\s+/g," ").trim():""}function g(t={},{siteUrl:e=""}={}){var r;let i=t.content||{},a=i.seo||{},o=(0,n.T)(a.title||i.title||t.name||"Rinnai"),s=f(i.standfirst),l=String(a.description||i.searchSummary||s||"").trim(),c=p(i.searchImage)||p(i.heroImage),u=p(a.og_image)||c,h=function(t={},e=""){let r=function(t=""){try{let e=new URL(t||"https://www.rinnai.com.au");if(!["http:","https:"].includes(e.protocol))throw Error("Unsupported site URL");if(["localhost","127.0.0.1","0.0.0.0"].includes(e.hostname)||e.hostname.endsWith(".local"))throw Error("Local site URL is not shareable");return e.origin}catch{return"https://www.rinnai.com.au"}}(e),i=String(t.full_slug||t.slug||"").replace(/^\/+|\/+$/g,"");return new URL(i?`/${i}`:"/",r).href}(t,e),d=String(i.publishDate||t.first_published_at||t.published_at||"").trim(),m=String(t.published_at||t.updated_at||d).trim(),w=String(i.articleCategory||"").trim(),y=Array.isArray(r=i.searchKeywords)?r.map(String).map(t=>t.trim()).filter(Boolean):String(r||"").split(",").map(t=>t.trim()).filter(Boolean);return{title:o,description:l,canonicalUrl:h,ogTitle:(0,n.T)(a.og_title||o),ogDescription:String(a.og_description||l).trim(),ogImage:u,twitterTitle:(0,n.T)(a.twitter_title||a.og_title||o),twitterDescription:String(a.twitter_description||a.og_description||l).trim(),twitterImage:p(a.twitter_image)||u,publishDate:d,modifiedDate:m,articleCategory:w,keywords:y}}function w(t={},e={}){let r=t.content||{};if(!l(r))return null;let i=g(t,e),n={"@context":"https://schema.org","@type":"supportArt
1icle"===r.component?"TechArticle":"Article",headline:i.title,mainEntityOfPage:{"@type":"WebPage","@id":i.canonicalUrl},publisher:{"@type":"Organization",name:"Rinnai Australia",url:"https://www.rinnai.com.au"}};i.description&&(n.description=i.description),i.ogImage&&(n.image=[i.ogImage]),i.publishDate&&(n.datePublished=i.publishDate),i.modifiedDate&&(n.dateModified=i.modifiedDate),i.articleCategory&&(n.articleSection=i.articleCategory),i.keywords.length&&(n.keywords=i.keywords);let a=c(r)?function(t){let e=p(t);if(!e||/[\u0000-\u001f\u007f]/.test(e))return"";try{let t=new URL(e.startsWith("//")?`https:${e}`:e);if("https:"!==t.protocol||!t.hostname||t.username||t.password)return"";return t.href}catch{return""}}(u(r)):"";return a&&(n.url=a),n}}}]);
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.