1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8502],{18502:function(n,t,e){e.r(t),e.d(t,{SubtypeDisplayHydrator:function(){return u}});var o=e(2265),i=e(99204),r=e(37521),a=e(23855);function u(){return(0,o.useEffect)(()=>{i.x1.getSiteConfig().then(n=>{(0,a.jV)(n),(0,r.X7)(n)}).catch(()=>{var n;(0,r.z3)();let t=(0,r.Sz)();(null==t?void 0:null===(n=t.taxonomy_forms)||void 0===n?void 0:n.length)&&t.reign_name_to_code?(0,a.jV)({taxonomy_forms:t.taxonomy_forms,public_reigns:t.reigns,reign_name_to_code:t.reign_name_to_code}):(0,a.jV)(null)}),i.x1.getCountryPostboxTypes("GB").then(n=>{let t=(0,r.WX)(n);t.length>0&&(0,r.kX)({postbox_types:t,cached_at:new Date().toISOString()})}).catch(()=>{})},[]),null}},37521:function(n,t,e){e.d(t,{Sz:function(){return s},WX:function(){return m},X7:function(){return y},kX:function(){return g},rL:function(){return v},uB:function(){return f},z3:function(){return _}});var o=e(99204),i=e(23855);let r="postboxmap_field_taxonomy_v1",a=null,u=!1,l=new Set;function c(n){(0,i.jV)({taxonomy_forms:n.taxonomy_forms,public_reigns:n.reigns,reign_name_to_code:n.reign_name_to_code})}function _(){if(u)return;u=!0;let n=function(){try{let n=localStorage.getItem(r);if(!n)return null;return JSON.parse(n)}catch(n){return null}}();n&&(a=n,c(n))}function s(){return _(),a}function f(n){return _(),l.add(n),()=>l.delete(n)}function d(n){a=n,u=!0,function(n){try{localStorage.setItem(r,JSON.stringify(n))}catch(n){}}(n),c(n),l.forEach(n=>{try{n()}catch(n){}})}function m(n){return Array.isArray(n)?n.filter(n=>!1!==n.is_active):n&&Array.isArray(n.types)?n.types.filter(n=>!1!==n.is_active):[]}function g(n){var t,e,o,i,r,u;_();let l=null!=a?a:{reigns:[],taxonomy_forms:[],postbox_types:[],finishes:[],reign_name_to_code:{},cached_at:new Date(0).toISOString()};d({reigns:null!==(t=n.reigns)&&void 0!==t?t:l.reigns,taxonomy_forms:null!==(e=n.taxonomy_forms)&&void 0!==e?e:l.taxonomy_forms,postbox_types:null!==(o=n.postbox_types)&&void 0!==o?o:l.postbox_types,finishes:null!==(i=n.finishes)&&void 0!==i?i:l.finishes,reign_name_to_code:null!==(r=n.reign_name_to_code)&&void 0!==r?r:l.reign_name_to_code,cached_at:null!==(u=n.cached_at)&&void 0!==u?u:l.cached_at})}function y(n){var t,e,o,i;g({reigns:null!==(t=n.public_reigns)&&void 0!==t?t:[],taxonomy_forms:null!==(e=n.taxonomy_forms)&&void 0!==e?e:[],finishes:null!==(o=n.finishes)&&void 0!==o?o:[],reign_name_to_code:null!==(i=n.reign_name_to_code)&&void 0!==i?i:{},cached_at:new Date().toISOString()})}async function v(n){var t,e,i,r,u,l,c,s;_();let f=a;if(!(null==n?void 0:n.force)&&f&&!function(n){let t=Date.now()-new Date(n.cached_at).getTime();return!Number.isFinite(t)||t>=36e5}(f)&&((null!==(i=null===(t=f.postbox_types)||void 0===t?void 0:t.length)&&void 0!==i?i:0)>0||(null!==(r=null===(e=f.taxonomy_forms)||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0)||"undefined"!=typeof navigator&&!navigator.onLine)return f;try{let[n,t]=await Promise.all([o.x1.getSiteConfig(),o.x1.getCountryPostboxTypes("GB").catch(()=>[])]),e={reigns:null!==(u=n.public_reigns)&&void 0!==u?u:[],taxonomy_forms:null!==(l=n.taxonomy_forms)&&void 0!==l?l:[],postbox_types:m(t),finishes:null!==(c=n.finishes)&&void 0!==c?c:[],reign_name_to_code:null!==(s=n.reign_name_to_code)&&void 0!==s?s:{},cached_at:new Date().toISOString()};return d(e),e}catch(n){return f}}}}]);
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.