https://thlib.org/wp-content/plugins/mandala/app/build/static/js/11.081257fe.chunk.js?ver=1786212896
1(this["webpackJsonpkmaps-app"]=this["webpackJsonpkmaps-app"]||[]).push([[11],{1088:function(e,a,t){"use strict";t.r(a),t.d(a,"default",(function(){return b})),t.d(a,"RelatedPlacesAllFeatures",(function(){return w})),t.d(a,"RelatedPlacesFeature",(function(){return y}));var l=t(51),n=t(1),r=t.n(n),c=t(2),i=t.n(c),s=t(556),o=t(558),d=t(917),u=t(918),p=t(305),m=(t(858),t(102)),h=t(24),v=(t(580),t(101)),f=t(13),_=(t(1063),t(32)),E=t(695);function b(){var e,a=Object(h.j)().id,t=Object(v.a)(Object(f.Q)("places",a),"info",!1,!0),c=(t.isLoading,t.data),m=(t.isError,t.error,null===c||void 0===c?void 0:c._childDocuments_),b=(null===c||void 0===c?void 0:c.ancestor_id_path)?c.ancestor_id_path.split("/"):[];(null===b||void 0===b?void 0:b.length)>0&&b.pop();var y=null===m||void 0===m?void 0:m.filter((function(e,a){return"administers"===e.related_places_relation_code_s}));y||(y=[]);var g=null===m||void 0===m?void 0:m.filter((function(e,a){return"has.entirely.located.within.it"===e.related_places_relation_code_s}));g||(g=[]);var k=null===m||void 0===m?void 0:m.filter((function(e,a){return"related_places"===e.block_child_type})).map((function(e,a){return e.related_places_feature_type_s}));(k=Object(l.a)(new Set(k))).sort();var N=null===(e=k)||void 0===e?void 0:e.map((function(e,a){var t=m.filter((function(a,t){return a.related_places_feature_type_s===e}));return{label:e,children:t}}));return Object(n.useEffect)((function(){i()("main.l-column__main").addClass("places")}),[c]),c?r.a.createElement(s.a,{defaultActiveKey:"context",id:"place-kmap-tabs",className:"kmaps-related-viewer places"},r.a.createElement(o.a,{eventKey:"context",title:"Place Context"},r.a.createElement(d.a,{fluid:!0,className:"c-relplaces-list kmap-related places"},r.a.createElement("h4",{className:"row head-related"},"Hierarchy of Places Related to ",c.header),r.a.createElement(u.a,null,r.a.createElement("p",null,c.header," has ",b.length," superordinate places and ",y.length+g.length," ","subordinate places. It administers"," ",y.length,", while ",g.length," of the places are simply located in ",c.header,"."),r.a.createElement("p",null,"One can browse these subordinate places as well as its superordinate categories with the tree below.")),r.a.createElement(u.a,null,r.a.createElement(E.a,{elid:"related-places-tree-".concat(a),className:"l-place-content-tree",domain:"places",showNode:a,showAncestors:!0,showRelatedPlaces:!0,relatedTree:!0})))),r.a.createElement(o.a,{eventKey:"related",title:"Related Places"},r.a.createElement(d.a,{fluid:!0,className:"c-relplaces-list kmap-related places"},r.a.createElement("h4",{className:"row head-related"},"Places Related to ",c.header," by Feature Type"),r.a.createElement(u.a,null,r.a.createElement(p.a,null,r.a.createElement("p",null,"These are the list of related places by feature type."),r.a.createElement("p",null,"One can browse these subordinate places as well as its superordinate categories with the tree below. Longer lists can be scrolled to view all items."))),r.a.createElement(u.a,null,r.a.createElement(w,{feature_children:N}))))):r.a.createElement(_.a,null)}function w(e){var a=e.feature_children;if(0===(null===a||void 0===a?void 0:a.length))return null;var t=Math.floor(a.length/3);return Object(f.c)(a,t).map((function(e,a){return Array.isArray(e)?r.a.createElement(p.a,{key:"chunk-".concat(a,"-col"),md:3},null===e||void 0===e?void 0:e.map((function(e,t){return r.a.createElement(y,{key:"rpf-".concat(a,"-").concat(t),label:null===e||void 0===e?void 0:e.label,features:null===e||void 0===e?void 0:e.children})}))):null}))}function y(e){var a=e.label,t=e.features,l=(e.colsize,e.isSolo),n=void 0!==l&&l,c=null===t||void 0===t?void 0:t.length,i=c>0&&!n?"scroll-list-wrap":"ml-5 mt-3",s=c>0&&!n?"scroll-list":"";return r.a.createElement("div",{className:"rel-place-feature"},r.a.createElement("div",{className:i},r.a.createElement("h4",null,a," (",c,")"),r.a.createElement("div",{className:s},r.a.createElement("ul",null,null===t||void 0===t?void 0:t.map((function(e,a){return r.a.createElement("li",{key:"clitem-".concat(a)},r.a.createElement(g,{clitem:e}))}))))))}function g(e){var a=e.clitem;return r.a.createElement(r.a.Fragment,null," ",a.related_places_header_s,r.a.createElement(m.a,{domain:"places",kid:a.related_places_id_s.replace("places-","")}))}}}]); 2//# sourceMappingURL=11.081257fe.chunk.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.