PageSourceSearch

https://starship.org.nz/component---src-pages-preview-power-to-protect-group-js-acb0b16c5d022591a446.js

js starship.org.nz collected 2026-10-02 04:38:01 UTC 5,435 bytes, 3 lines download raw bytes

1/*! For license information please see component---src-pages-preview-power-to-protect-group-js-acb0b16c5d022591a446.js.LICENSE.txt */
2"use strict";(self.webpackChunkgatsby_starship=self.webpackChunkgatsby_starship||[]).push([[5333],{13380:function(e,t,n){var s=n(71166),r=n(62308);const o={[s.BLOCKS.PARAGRAPH]:(e,t)=>`<p>${t(e.content)}</p>`,[s.BLOCKS.HEADING_1]:(e,t)=>`<h1>${t(e.content)}</h1>`,[s.BLOCKS.HEADING_2]:(e,t)=>`<h2>${t(e.content)}</h2>`,[s.BLOCKS.HEADING_3]:(e,t)=>`<h3>${t(e.content)}</h3>`,[s.BLOCKS.HEADING_4]:(e,t)=>`<h4>${t(e.content)}</h4>`,[s.BLOCKS.HEADING_5]:(e,t)=>`<h5>${t(e.content)}</h5>`,[s.BLOCKS.HEADING_6]:(e,t)=>`<h6>${t(e.content)}</h6>`,[s.BLOCKS.EMBEDDED_ENTRY]:(e,t)=>`<div>${t(e.content)}</div>`,[s.BLOCKS.EMBEDDED_RESOURCE]:(e,t)=>`<div>${t(e.content)}</div>`,[s.BLOCKS.UL_LIST]:(e,t)=>`<ul>${t(e.content)}</ul>`,[s.BLOCKS.OL_LIST]:(e,t)=>`<ol>${t(e.content)}</ol>`,[s.BLOCKS.LIST_ITEM]:(e,t)=>`<li>${t(e.content)}</li>`,[s.BLOCKS.QUOTE]:(e,t)=>`<blockquote>${t(e.content)}</blockquote>`,[s.BLOCKS.HR]:()=>"<hr/>",[s.BLOCKS.TABLE]:(e,t)=>`<table>${t(e.content)}</table>`,[s.BLOCKS.TABLE_ROW]:(e,t)=>`<tr>${t(e.content)}</tr>`,[s.BLOCKS.TABLE_HEADER_CELL]:(e,t)=>`<th>${t(e.content)}</th>`,[s.BLOCKS.TABLE_CELL]:(e,t)=>`<td>${t(e.content)}</td>`,[s.INLINES.ASSET_HYPERLINK]:e=>a(s.INLINES.ASSET_HYPERLINK,e),[s.INLINES.ENTRY_HYPERLINK]:e=>a(s.INLINES.ENTRY_HYPERLINK,e),[s.INLINES.RESOURCE_HYPERLINK]:e=>c(s.INLINES.RESOURCE_HYPERLINK,e),[s.INLINES.EMBEDDED_ENTRY]:e=>a(s.INLINES.EMBEDDED_ENTRY,e),[s.INLINES.EMBEDDED_RESOURCE]:e=>c(s.INLINES.EMBEDDED_RESOURCE,e),[s.INLINES.HYPERLINK]:(e,t)=>{const n="string"==typeof e.data.uri?e.data.uri:"";return`<a href=${s=n,`"${s.replace(/"/g,"&quot;")}"`}>${t(e.content)}</a>`;var s}},i={[s.MARKS.BOLD]:e=>`<b>${e}</b>`,[s.MARKS.ITALIC]:e=>`<i>${e}</i>`,[s.MARKS.UNDERLINE]:e=>`<u>${e}</u>`,[s.MARKS.CODE]:e=>`<code>${e}</code>`,[s.MARKS.SUPERSCRIPT]:e=>`<sup>${e}</sup>`,[s.MARKS.SUBSCRIPT]:e=>`<sub>${e}</sub>`,[s.MARKS.STRIKETHROUGH]:e=>`<s>${e}</s>`},a=(e,t)=>`<span>type: ${r(e)} id: ${r(t.data.target.sys.id)}</span>`,c=(e,t)=>`<span>type: ${r(e)} urn: ${r(t.data.target.sys.urn)}</span>`;function p(e,{renderNode:t,renderMark:n,preserveWhitespace:o}){return e.map(e=>function(e,{renderNode:t,renderMark:n,preserveWhitespace:o}){if(s.helpers.isText(e)){let t=r(e.value);return o&&(t=t.replace(/\n/g,"<br/>").replace(/ {2,}/g,e=>"&nbsp;".repeat(e.length))),e.marks.length>0?e.marks.reduce((e,t)=>n[t.type]?n[t.type](e):e,t):t}{const s=e=>p(e,{renderMark:n,renderNode:t,preserveWhitespace:o});return e.nodeType&&t[e.nodeType]?t[e.nodeType](e,s):""}}(e,{renderNode:t,renderMark:n,preserveWhitespace:o})).join("")}},62308:function(e){var t=/["'&<>]/;e.exports=function(e){var n,s=""+e,r=t.exec(s);if(!r)return s;var o="",i=0,a=0;for(i=r.index;i<s.length;i++){switch(s.charCodeAt(i)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}a!==i&&(o+=s.substring(a,i)),a=i+1,o+=n}return a!==i?o+s.substring(a,i):o}},98501:function(e,t,n){n.r(t);var s=n(96540),r=(n(13380),n(70060)),o=n(529),i=n(98512),a=n(26927),c=n(19034),p=n(55378),l=n.n(p);class d extends s.Component{constructor(e){super(e),this.state={group:null,sitemap:[]}}componentDidMount(){sessionStorage.setItem("preview",!0),this.props.getPowerToProtectSitemap().then(e=>{this.setState({sitemap:e})}).catch(e=>{console.error("Error fetching sitemap:",e)}),this.props.getPowerToProtectEntry("pageGroupPTP",this.props.location.search).then(e=>{if(!e||!e.sys||!e.sys.id)throw new Error("Invalid entry received");return r.U({space:"6bgiw3yzwga1",accessToken:"12KFv-bF6n5jc39pgyH0GzVfpZizpsRmYLFD__Dc1m0",environment:"master",host:"preview.contentful.com"}).getEntries({links_to_entry:e.sys.id,locale:"en-NZ","sys.contentType.sys.id[in]":a.ZU.join(","),include:1}).then(t=>this.initializeGroupPage(e,t)).catch(()=>(console.error("Cannot load group preview"),null))}).catch(e=>{console.error("Error fetching entry:",e)})}componentWillUnmount(){sessionStorage.setItem("preview",!1)}initializeGroupPage(e,t){if(!e||!e.fields)return void console.error("Invalid entry received");const n=[],s=[],r=[];
2t&&t.items&&t.items.forEach(e=>{let t=[],o="";"pageGroupPTP"===e.sys.contentType.sys.id?(t=r,o="ContentfulPageGroupPtp"):"pageGenericPTP"===e.sys.contentType.sys.id?(t=n,o="ContentfulPageGenericPtp"):"pageWidgetsPTP"===e.sys.contentType.sys.id&&(t=s,o="ContentfulPageWidgetsPtp");const i=e.fields.summary?{summary:e.fields.summary}:void 0;t.push({__typename:o,...e.fields,summary:i})});const o={__typename:"ContentfulPageGroupPtp",contentful_id:e.sys.id,page__generic:n,page__widgets:s,page__group:r,...e.fields,headerImage:e.fields.headerImage?e.fields.headerImage.fields:null,image:e.fields.image?e.fields.image.fields:null,summary:e.fields.summary?{summary:e.fields.summary}:null,groups:e.fields.groups?e.fields.groups.map(e=>e.fields):[],sections:e.fields.sections?l()(e.fields.sections,e=>({...e.fields,widgets:e.fields.widgets?l()(e.fields.widgets,e=>c.rm.parse(e)):[]})):[]};this.setState({group:o})}render(){const{group:e,sitemap:t}=this.state;return!this.props.loading&&e?s.createElement(o.r5,{className:"ptp-root",preview:!0,group:e,sitemap:t}):s.createElement(s.Fragment,null)}}t.default=(0,i.Tk)(d)}}]);
3//# sourceMappingURL=component---src-pages-preview-power-to-protect-group-js-acb0b16c5d022591a446.js.map

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.