PageSourceSearch

https://graama.org/js/6282.0c6306ce1ba0b52c.js

js graama.org collected 2026-10-04 03:51:16 UTC 5,035 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6282],{4281:(t,e,n)=>{n.d(e,{j:()=>r});var i=n(72505),o=n.n(i);function r(t){var e={buildEmptyStoryMap:function(){return{width:1e3,height:1e3,storymap:{language:"en",map_type:"stamen:toner-lite",map_as_image:!1,slides:[]}}},buildContentItems:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e?this.getExampleContentItems(t,n).then(function(t){return t.data}):this.getContentItems(t).then(function(t){return t.data})},getExampleContentItems:function(t,e){return o().get(t,{params:{dynamic_content_options:e}})},getContentItems:function(t){return o().get(t)},makeSlides:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[],i=null,o=null;e&&(n.push({type:"overview",text:{headline:e.title||"Title",text:e.excerpt||""}}),i=e.contentable.first_level_phns);for(var r=function(){var e,r,l,u,p,s,c,d,m,f,y=t[a],v=(null===(e=y.contentable)||void 0===e?void 0:e.latitude)||(null===(r=y.content)||void 0===r||null===(r=r.contentable)||void 0===r?void 0:r.latitude)||0,g=(null===(l=y.contentable)||void 0===l?void 0:l.longitude)||(null===(u=y.content)||void 0===u||null===(u=u.contentable)||void 0===u?void 0:u.longitude)||0,h=(null===(p=y.image)||void 0===p?void 0:p.full_path)||(null===(s=y.content)||void 0===s||null===(s=s.image)||void 0===s?void 0:s.full_path)||"";i&&(o=i.filter(function(t){return t.r_content_id===y.id})),n.push({location:{lat:Number(v),lon:Number(g)},text:{headline:y.title,text:o[0].excerpt||y.excerpt||""},media:{url:h,caption:(null===(c=y.image)||void 0===c?void 0:c.caption)||(null===(d=y.content)||void 0===d||null===(d=d.image)||void 0===d?void 0:d.caption)||"",credit:(null===(m=y.image)||void 0===m?void 0:m.credit)||(null===(f=y.content)||void 0===f||null===(f=f.image)||void 0===f?void 0:f.credit)||""}})},a=0;a<t.length;a++)r();return n},updateMapType:function(t,e){t.storymap.map_type=e}};return e}},26282:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});var i=n(61319),o=n(66044),r=n(4281),a=n(33129),l=n(65201),u=n.n(l);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){d(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=p(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const m={components:{rStoryMap:a.A,Loading:u()},name:"r-knight-lab-story-map-widget-view",props:i.Hj,setup:function(t,e){return c(c(c({story_map_api:(0,r.j)(t)},(0,i.qB)(t,e)),(0,o.A)("storymap")),(0,i.Qo)({},t.pageWidget.view_style))},data:function(){return{knight_lab_object:{},loading:!0}},computed:{map_type:function(){var t=this.getStyleOption("knight_lab_map_type").value;return t||"stamen:toner-lite"}},methods:{makeKnightLabMap:function(){this.knight_lab_object=this.story_map_api.buildEmptyStoryMap(),this.knight_lab_object.storymap.slides=this.story_map_api.makeSlides(this.pageWidget.dynamic_content_options.first_level_phns,this.pageWidget.storymap_manager.first_slide_title,this.pageWidget.storymap_manager.first_slide_text),this.story_map_api.updateMapType(this.knight_lab_object,this.map_type),this.loading=!1}},mounted:function(){this.makeKnightLabMap()}};const f=(0,n(14486).A)(m,function(){var t=this,e=t._self._c;return e("div",[t.loading?e("div",[e("loading",{attrs:{active:!0,"is-full-page":!1}})],1):e("r-story-map",{attrs:{"story-map":t.knight_lab_object}})],1)},[],!1,null,null,null).exports},33129:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(16170);const o={name:"r-story-map",props:{storyMap:{type:Object,required:!0,description:"Data for StoryMap"}},setup:function(t,e){},data:function(){return{uuid:null}},methods:{createMap:function(){try{return new KLStoryMap.StoryMap("mapdiv",this.storyMap,{})}catch(t){console.log(t)}}},mounted:function(){var t=this;this.uuid=(0,i.o9)(5),this.$nextTick(function(){t.createMap()})}};const r=(0,n(14486).A)(o,function(){return(0,this._self._c)("div",{key:this.uuid,ref:"storymap",staticStyle:{width:"100%",height:"600px"},attrs:{id:"mapdiv"}})},[],!1,null,null,null).exports}}]);

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.