1(window.webpackJsonp=window.webpackJsonp||[]).push([[3,21,79,86,92],{477:function(t,e,n){"use strict";n.r(e);var o={props:{errors:{type:Array,required:!0},componentId:{type:String,required:!0}}},r=n(5),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.errors.length?n("ul",{staticClass:"errors help is-danger"},t._l(t.errors,(function(e,o){return n("li",{key:t.componentId+"-error-"+o},[t._v("\n "+t._s(e)+"\n ")])})),0):t._e()}),[],!1,null,null,null);e.default=component.exports},492:function(t,e,n){"use strict";n.r(e);var o={props:{active:{type:Boolean,required:!0}},data:function(){return{ignoreUtilFocusChanges:!1,lastFocus:null}},watch:{active:{immediate:!0,handler:function(t){this.$root.$emit("modalShowing",t)},deep:!0}},mounted:function(){document.addEventListener("focus",this.trapFocus,!0)},beforeDestroy:function(){document.removeEventListener("focus",this.trapFocus,!0)},methods:{close:function(){this.$emit("close"),this.$root.$emit("modalShowing",!1),document.removeEventListener("focus",this.trapFocus,!0)},trapFocus:function(t){if(this.active){var e=this.$refs.dialog;e.contains(t.target)?this.lastFocus=t.target:(this.lastFocus===document.activeElement?this.focusLastDescendant(e):this.focusFirstDescendant(e),this.lastFocus=document.activeElement)}},focusFirstDescendant:function(element){for(var i=0;i<element.childNodes.length;i++){var t=element.childNodes[i];if(this.attemptFocus(t)||this.focusFirstDescendant(t))return!0}return!1},focusLastDescendant:function(element){for(var i=element.childNodes.length-1;i>=0;i--){var t=element.childNodes[i];if(this.attemptFocus(t)||this.focusLastDescendant(t))return!0}return!1},attemptFocus:function(element){if(!this.isFocusable(element))return!1;this.ignoreUtilFocusChanges=!0;try{element.focus()}catch(t){}return this.ignoreUtilFocusChanges=!1,document.activeElement===element},isFocusable:function(element){if(element.tabIndex>0||0===element.tabIndex&&null!==element.getAttribute("tabIndex"))return!0;if(element.disabled)return!1;switch(element.nodeName){case"A":return!!element.href&&"ignore"!==element.rel;case"INPUT":return"hidden"!==element.type&&"file"!==element.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}}},r=n(5),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["modal",t.active?"is-active":null]},[n("div",{staticClass:"modal-background",on:{click:t.close}}),t._v(" "),n("div",{attrs:{tabindex:"0"}}),t._v(" "),n("div",{ref:"dialog",staticClass:"modal-content",attrs:{role:"dialog","aria-modal":"true"}},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},[t._t("modal-close",(function(){return[n("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:t.close}})]})),t._v(" "),t._t("default")],2)])]),t._v(" "),n("div",{attrs:{tabindex:"0"}})])}),[],!1,null,null,null);e.default=component.exports},524:function(t,e,n){var map={"./ArticlePage":[489,4],"./ArticlePage.vue":[489,4]};function o(t){if(!n.o(map,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=map[t],o=e[0];return n.e(e[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(map)},o.id=524,t.exports=o},537:function(t,e,n){"use strict";n.r(e);n(18),n(9),n(30),n(31);var o=n(2),r=n(13),l=(n(24),n(108),n(12),n(32),n(52)),c=n(538),d=n(539),m=n(7),f=n(455);function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var C={components:{CollectionPagination:c.default,CollectionAdmin:d.default},mixins:[f.a],props:{isCentered:{type:Boolean,default:!1},disabledPagination:{type:Boolean,default:!1},disabledAdmin:{type:Boolean,default:!1}},data:function(){return{itemComponent:null,reloading:!1,adding:!1,page:1,modalComponent:null,defaultComponentData:{},cancelReload:null}},computed:v(v({},Object(l.c)({getContentById:"bwstarter/getContentById"})),{},{paginationData:function(){for(var t,e=this.component.collection["hydra:view"],data={totalItems:this.component.collection["hydra:totalItems"]},n=0,o=["first","last"];n<o.length;n++){var r=o[n];data[r]=e?(t=e["hydra:".concat(r)])?(" "+t.split("?")[1]).split("page=")[1].split("&")[0]/1:null:null}return data.next=Math.min(this.page+1,data.last),data.previous=Math.max(this.page-1,data.first),data},collectionItems:function(){var t=this;return this.component.collection["hydra:member"].filter((function(e){return!!t.getEntity(e)}))},collectionAdminProps:function(){return{"disabled-admin":this.disabledAdmin,adding:this.adding,"add-item-route":this.component.collectionRoutes.post,"current-page":this.page,context:"/contexts/".concat(this.component.resource.split("\\").pop()),modalComponent:this.modalComponent,defaultComponentData:this.defaultComponentData}}}),created:function(){this.resolveItemComponent()},methods:{goToPageLabel:function(t){return this.page===(t?"Page ":"Go to page ")+t},goToPage:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.page=t,n.next=3,e.reloadCollection();case 3:case"end":return n.stop()}}),n)})))()},resolveItemComponent:function(){var t=this.component.resource.split("\\");this.itemComponent=function(){return{component:n(524)("./"+t[t.length-1])}}},reloadCollection:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.cancelReload){e.next=3;break}return e.next=3,t.cancelReload();case 3:t.reloading=!0,n="page=".concat(t.page),t.component.defaultQueryString&&(n+="&".concat(t.component.defaultQueryString)),t.$axios.get("".concat(t.component.collectionRoutes.get,"?").concat(n),{progress:!1,cancelToken:new t.$axios.CancelToken((function(e){t.cancelReload=e}))}).then((function(e){var data=e.data,n=data["hydra:member"].map((function(e){return t.$bwstarter.$storage.commit("setEntity",[{id:e["@id"],data:e}],m.b),e["@id"]}
1));t.$bwstarter.$storage.commit("setEntity",[{id:t.component["@id"],data:Object.assign({},t.component,{collection:Object.assign({},data,{"hydra:member":n})})}],m.b),t.reloading=!1})).catch((function(e){t.$axios.isCancel(e)||(t.reloading=!1,console.error("updateContentComponents Error",e))}));case 7:case"end":return e.stop()}}),e)})))()}}},y=(n(631),n(5)),component=Object(y.a)(C,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("component-wrapper",{attrs:{nested:t.nested}},[n("div",{class:t.containerClass},[n("div",{staticClass:"collection-columns columns is-mobile is-multiline"},[t._t("title",(function(){return[t.component.title?n("div",{staticClass:"column is-12"},[n("h4",{staticClass:"is-size-4"},[t._v(t._s(t.component.title))]),t._v(" "),n("hr")]):t._e()]})),t._v(" "),t.component.collection["hydra:member"].length?n("div",{staticClass:"column is-12"},[n("div",{class:["columns is-multiline is-mobile item-columns",{"is-loading":t.reloading,"is-centered":t.isCentered}]},t._l(t.collectionItems,(function(e){return n(t.itemComponent,{key:e["@id"],tag:"component",attrs:{component:t.getEntity(e),"disabled-admin":t.disabledAdmin},on:{deleted:t.reloadCollection}})})),1)]):n("div",{staticClass:"column is-12"},[n("h4",{staticClass:"subtitle is-size-5 has-text-grey has-text-centered"},[t._v("\n There are no items to display\n ")])])],2),t._v(" "),n("collection-pagination",{attrs:{"pagination-data":t.paginationData,"disabled-pagination":t.disabledPagination,page:t.page},on:{goToPage:t.goToPage,goToPageLabel:t.goToPageLabel}}),t._v(" "),!t.disabledAdmin&&t.$bwstarter.isAdmin?n("collection-admin",t._b({on:{reload:t.reloadCollection}},"collection-admin",t.collectionAdminProps,!1)):t._e()],1)])}),[],!1,null,null,null);e.default=component.exports},538:function(t,e,n){"use strict";n.r(e);n(146);var o={props:{disabledPagination:{type:Boolean,required:!0},paginationData:{type:Object,required:!0},page:{type:Number,required:!0},reloading:{type:Boolean,required:!1,default:!1}},methods:{goToPage:function(t){this.$emit("goToPage",t)},goToPageLabel:function(t){this.$emit("goToPageLabel",t)}}},r=n(5),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.disabledPagination&&t.paginationData.last>1?n("nav",{class:["pagination is-rounded",{"is-loading":t.reloading}],attrs:{role:"navigation","aria-label":"pagination"}},[n("a",{staticClass:"pagination-previous",attrs:{disabled:!t.paginationData.previous||t.page===t.paginationData.previous},on:{click:function(e){return t.goToPage(t.paginationData.previous)}}},[t._v("Previous")]),t._v(" "),n("a",{staticClass:"pagination-next",attrs:{disabled:!t.paginationData.next||t.page===t.paginationData.next},on:{click:function(e){return t.goToPage(t.paginationData.next)}}},[t._v("Next")]),t._v(" "),n("ul",{staticClass:"pagination-list"},[t.page!==t.paginationData.first?n("li",[n("a",{staticClass:"pagination-link",attrs:{"aria-label":t.goToPageLabel(t.paginationData.first)},on:{click:function(e){return t.goToPage(t.paginationData.first)}}},[t._v(t._s(t.paginationData.first))])]):t._e(),t._v(" "),t.paginationData.previous&&t.paginationData.previous!==t.paginationData.first?[t.paginationData.previous>t.paginationData.first+1?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("â¦")])]):t._e(),t._v(" "),n("li",[n("a",{staticClass:"pagination-link",attrs:{"aria-label":t.goToPageLabel(t.paginationData.previous)},on:{click:function(e){return t.goToPage(t.paginationData.previous)}}},[t._v(t._s(t.paginationData.previous))])])]:t._e(),t._v(" "),n("li",[n("a",{staticClass:"pagination-link is-current",attrs:{"aria-label":t.goToPageLabel(t.page),"aria-current":"page"},on:{click:function(e){return t.goToPage(t.page)}}},[t._v(t._s(t.page))])]),t._v(" "),t.paginationData.next&&t.paginationData.next!==t.paginationData.last?[n("li",[n("a",{staticClass:"pagination-link",attrs:{"aria-label":t.goToPageLabel(t.paginationData.next)},on:{click:function(e){return t.goToPage(t.paginationData.next)}}},[t._v(t._s(t.paginationData.next))])]),t._v(" "),t.paginationData.next<t.paginationData.last-1?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("â¦")])]):t._e()]:t._e(),t._v(" "),t.page!==t.paginationData.last?n("li",[n("a",{staticClass:"pagination-link",attrs:{"aria-label":t.goToPageLabel(t.paginationData.last)},on:{click:function(e){return t.goToPage(t.paginationData.last)}}},[t._v(t._s(t.paginationData.last))])]):t._e()],2)]):t._e()}),[],!1,null,null,null);e.default=component.exports},539:function(t,e,n){"use strict";n.r(e);var o=n(2),r=(n(24),n(146),n(108),n(18),n(247),n(492)),l=n(36),c=n(477),d={components:{Modal:r.default,InputErrors:c.default},props:{disabledAdmin:{type:Boolean,required:!0},isLoading:{type:Boolean,required:!1,default:!1},modalComponent:{type:Function,required:!1,default:null},addCollectionItemFn:{type:Function,required:!1,default:null},addItemRoute:{type:String,required:!1,default:null},currentPage:{type:Number,required:!1,default:null},context:{type:String,required:!1,default:null},query:{type:String,required:!1,default:null},defaultComponentData:{type:Object,default:function(){return{}}}},data:function(){return{modalActive:!1,adding:!1,newComponentData:null,originalComponentData:null,renderModalComponent:!0}},computed:{componentId:function(){return"".concat(this.context,"/new")},errors:function(){return this.$bwstarter.$storage.get("getEndpointErrors",[this.componentId],l.b)}},watch:{adding:function(t){this.$emit("adding",t)}},created:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,o,r,l,c,d,m,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.context.split("contexts/")[1],e.next=3,t.$axios.get("".concat(t.context));case 3:return o=e.sent,r=o.data,e.next=7,t.$axios.get("docs.jsonld");case 7:l=e.sent,c=l.data,d=Object.keys(r["@context"]),m=c["hydra:supportedClass"].find((function(t){return n===t["hydra:title"]}))["hydra:supportedProperty"],f=d.reduce((function(t,e){var n=m.find((function(t){return t["hydra:title"]===e}));if(-1!==d.indexOf(e)&&"@"!==e.substr(0,1)&&"hydra"!==e){var o=n["hydra:property"],r=o.range,l=r?r.split("xmls:")[1]:null;-1!==["string","dateTime"].indexOf(l)?t[e]="":"integer"===l?t[e]=0:1===o["owl:maxCardinality"]?t[e]={}:t[e]=[]}return t}),{"@id":t.componentId}),t.newComponentData=Object.assign({},f,t.defaultComponentData),t.originalComponentData=Object.assign({},t.newComponentData);case 14:case"end":return e.stop()}}),e)})))()},methods:{addToCollection:function(t){if(!this.modalComponent)return this.addCollectionItem(t);this.modalActive=!0},reloadCollection:function(t){this.$emit("reload",t)},componentAddedListener:function(){var t=this;this.adding=!1,this.modalActive=!1,this.newComponentData=this.originalComponentData,this.renderModalComponent=!1,this.$nextTick((function(){t.renderModalComponent=!0}))},addCollectionItem:function(t){var e=this;this.$emit("addCollectionItem",t),this.addCollectionItemFn&&this.addCollectionItemFn().then((function(t){return e.componentAddedListener(),t}));var n=this.$bwstarter.$storage.getState(l.b).endpoints[this.componentId],o=this.defaultComponentData||{};if(n){var r=n.inputs;o=Object.keys(r).reduce((function(t,e){return t[e]=r[e].model,t}),o)}
1this.adding||(this.adding=!0,this.$bwstarter.$storage.commit("resetEndpointErrors",this.componentId,l.b),this.$axios.post(this.addItemRoute,o,{progress:!1}).then((function(){e.page=1,e.reloadCollection(),e.componentAddedListener()})).catch((function(t){e.adding=!1,e.$bwstarter.$storage.dispatch("updateErrors",{response:t.response,endpoint:e.componentId},l.b)})))}}},m=n(5),component=Object(m.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.disabledAdmin&&t.$bwstarter.isAdmin?n("div",[t.modalComponent?t._e():n("input-errors",{attrs:{errors:t.errors,"component-id":t.componentId}}),t._v(" "),n("button",{staticClass:"button is-primary is-fullwidth",class:{"is-loading":t.adding||t.isLoading},on:{click:t.addToCollection}},[n("span",{staticClass:"icon is-small"},[n("font-awesome-icon",{attrs:{icon:"plus"}})],1),t._v(" "),n("span",[t._v("Add New")])]),t._v(" "),n("div",{staticClass:"reload-link-row has-text-centered"},[n("a",{staticClass:"reload-link has-text-grey-light",on:{click:function(e){return e.preventDefault(),t.reloadCollection.apply(null,arguments)}}},[t._v("reload collection")])]),t._v(" "),t.modalComponent&&t.newComponentData?n("modal",{attrs:{active:t.modalActive},on:{close:function(e){t.modalActive=!1}}},[t.renderModalComponent?n(t.modalComponent,{tag:"component",attrs:{component:t.newComponentData}}):t._e(),t._v(" "),n("button",{staticClass:"button is-primary is-fullwidth",class:{"is-loading":t.adding||t.isLoading},on:{click:t.addCollectionItem}},[n("span",{staticClass:"icon is-small"},[n("font-awesome-icon",{attrs:{icon:"plus"}})],1),t._v(" "),n("span",[t._v("Add New")])]),t._v(" "),n("input-errors",{attrs:{errors:t.errors,"component-id":t.componentId}})],1):t._e()],1):t._e()}),[],!1,null,null,null);e.default=component.exports},598:function(t,e,n){var content=n(632);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(29).default)("aafaa35a",content,!0,{sourceMap:!1})},631:function(t,e,n){"use strict";n(598)},632:function(t,e,n){var o=n(28)(!1);o.push([t.i,"@-webkit-keyframes spinAround{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes spinAround{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.collection-columns hr{margin:.3rem 0 1.5rem}@media screen and (max-width:768px){.collection-columns{justify-content:center}}.collection-columns .justify-content-center:not(.is-multiline){justify-content:center}.collection-columns .item-columns.is-loading{opacity:.5}.collection-columns+.pagination{margin-top:.5rem;margin-bottom:2rem}.collection-columns+.pagination.is-loading{opacity:.5}",""]),t.exports=o}}]);
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.