@europeana/portal
Version:
Europeana Portal
3 lines • 28.9 kB
JavaScript
/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{1155:function(t,e,r){"use strict";r.r(e);var n=r(23),o=(r(75),r(10),r(43),r(46),r(30),r(21),r(52),r(128),r(433),r(58),r(62),r(15),r(64),r(47),r(13),r(34),r(60),r(176)),c=r.n(o),l=r(802),d=r.n(l),data=r(109),f=r(31),m=r(738),h=r(720),v=r(801),y=r(716),w=r(717),x=r(712),_={name:"GalleryPage",components:{ClientOnly:c.a,LoadingSpinner:function(){return r.e(5).then(r.bind(null,729))},ErrorMessage:function(){return r.e(16).then(r.bind(null,1086))},ItemPreviewCardGroup:m.a,SocialShareModal:h.a,SetFormModal:function(){return r.e(9).then(r.bind(null,1168))},SetRecommendations:function(){return r.e(20).then(r.bind(null,1169))},ContentHeader:y.a,ContentCard:function(){return Promise.resolve().then(r.bind(null,711))},ContentWarningModal:function(){return r.e(8).then(r.bind(null,1165))}},mixins:[v.a,x.a],beforeRouteLeave:function(t,e,r){var o=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.setGalleriesEnabled){t.next=9;break}return t.next=3,o.$store.commit("set/setActive",null);case 3:return t.next=5,o.$store.commit("set/setActiveRecommendations",[]);case 5:return t.next=7,o.$store.commit("entity/setFeaturedSetId",null);case 7:return t.next=9,o.$store.commit("entity/setPinned",[]);case 9:r();case 10:case"end":return t.stop()}}),t)})))()},data:function(){return{identifier:null,images:[],title:"",rawDescription:"",contentWarning:null}},fetch:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.setGalleriesEnabled){e.next=20;break}return e.prev=1,t.validateRoute(),e.next=5,t.$store.dispatch("set/fetchActive",t.setId);case 5:if(t.redirectToPrefPath("galleries-all",t.setId,t.set.title.en),!t.setIsEntityBestItems||!t.userIsEntityEditor){e.next=11;break}return e.next=9,t.$store.commit("entity/setFeaturedSetId",t.setId);case 9:return e.next=11,t.$store.dispatch("entity/getPins");case 11:e.next=18;break;case 13:throw e.prev=13,e.t0=e.catch(1),403===e.t0.statusCode&&(e.t0.titlePath="errorMessage.galleryUnauthorised.title",e.t0.descriptionPath="errorMessage.galleryUnauthorised.description",e.t0.metaTitlePath="errorMessage.galleryUnauthorised.metaTitle",e.t0.illustrationSrc=r(809)),e.t0;case 18:e.next=22;break;case 20:return e.next=22,t.fetchContentfulGallery();case 22:case"end":return e.stop()}}),e,null,[[1,13]])})))()},head:function(){return{title:this.$pageHeadTitle(this.displayTitle.values[0]),meta:[{hid:"title",name:"title",content:this.displayTitle.values[0]},{hid:"og:title",property:"og:title",content:this.displayTitle.values[0]},{hid:"og:image",property:"og:image",content:this.shareMediaUrl},{hid:"og:type",property:"og:type",content:"article"}].concat(this.displayDescription&&this.displayDescription.values[0]?[{hid:"description",name:"description",content:this.displayDescription.values[0]},{hid:"og:description",property:"og:description",content:this.displayDescription.values[0]}]:[])}},computed:{setGalleriesEnabled:function(){return this.$features.setGalleries},set:function(){return this.$store.state.set.active||{}},setId:function(){return this.$route.params.pathMatch.split("-")[0]},setFormModalId:function(){return"set-form-modal-".concat(this.setId)},setCreatorId:function(){return this.set.creator&&"string"==typeof this.set.creator?this.set.creator:this.set.creator.id},userIsOwner:function(){return this.$auth.loggedIn&&this.$store.state.auth.user&&this.setCreatorId&&this.setCreatorId.endsWith("/".concat(this.$store.state.auth.user.sub))},userIsEntityEditor:function(){var t,e,r,n,o,c,l=this.$store.state.auth.user,d=null==l||null===(t=l.resource_access)||void 0===t||null===(e=t.entities)||void 0===e||null===(r=e.roles)||void 0===r?void 0:r.includes("editor"),f=null==l||null===(n=l.resource_access)||void 0===n||null===(o=n.usersets)||void 0===o||null===(c=o.roles)||void 0===c?void 0:c.includes("editor");return d&&f},userCanEdit:function(){return this.userIsOwner||this.setIsEntityBestItems&&this.userIsEntityEditor},setIsEntityBestItems:function(){return"EntityBestItemsSet"===this.set.type},displayRecommendations:function(){return this.enableRecommendations&&this.$auth.loggedIn&&this.userCanEdit},enableRecommendations:function(){return!this.setIsEntityBestItems||(this.$features.acceptEntityRecommendations||this.$features.rejectEntityRecommendations)},displayItemCount:function(){var label=this.set.total>100?"items.itemOf":"items.itemCount";return this.$tc(label,this.set.total,{max:100})},displayTitle:function(){return this.setGalleriesEnabled?this.$fetchState.error?{values:[this.$t("error")]}:Object(f.h)(this.set.title,this.$i18n.locale):{values:[this.title]}},displayDescription:function(){return this.setGalleriesEnabled?Object(f.h)(this.set.description,this.$i18n.locale):{values:[this.description]}},shareMediaUrl:function(){var t,e,r,n;return this.setGalleriesEnabled?this.$apis.thumbnail.edmPreview(null===(t=this.set)||void 0===t||null===(e=t.items)||void 0===e||null===(r=e[0])||void 0===r||null===(n=r.edmPreview)||void 0===n?void 0:n[0],{size:400}):0===this.images.length?null:this.imageUrl(this.images[0])},description:function(){return this.stripMarkdown(this.rawDescription)},htmlDescription:function(){return w.marked.parse(this.rawDescription)}},mounted:function(){"function"==typeof this.$redrawVueMasonry&&this.$redrawVueMasonry()},methods:{validateRoute:function(){if(!/^\d+(-.+)?$/.test(this.$route.params.pathMatch))throw d()(400,"Invalid set ID")},reorderItems:function(t){this.$store.dispatch("set/update",{id:"".concat(data.c,"/").concat(this.setId),body:{type:this.set.type,title:this.set.title,description:this.set.description,visibility:this.set.visibility,items:t.map((function(t){return"".concat(data.b).concat(t.id)}))},params:{profile:"standard"}})},fetchContentfulGallery:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={identifier:t.$route.params.pathMatch,locale:t.$i18n.isoLocale(),preview:"preview"===t.$route.query.mode},e.next=3,t.$contentful.query("galleryPage",r).then((function(t){return t.data.data})).then((function(data){if(0===data.imageGalleryCollection.items.length)return t.error({statusCode:404,message:t.i18n.t("messages.notFound")}),null;var e=data.imageGalleryCollection.items[0];t.contentWarning=e.contentWarning,t.identifier=r.identifier,t.images=e.hasPartCollection.items.filter((function(image){return null!==image})),t.rawDescription=e.description,t.title=e.name})).catch((function(e){t.error({statusCode:500,message:e.toString()})}));case 3:case"end":return e.stop()}}),e)})))()},imageTitle:function(data){return data.encoding?data.encoding.dcTitleLangAware||data.encoding.dcDescriptionLangAware||this.$t("record.record"):data.name},imageUrl:function(data){var t,e,r=(null===(t=data.encoding)||void 0===t||null===(e=t.edmPreview)||void 0===e?void 0:e[0])||data.thumbnailUrl;return this.$apis.thumbnail.edmPreview(r,{size:400})}}},O=_,C=(r(966),r(59)),component=Object(C.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.$fetchState.error&&"white-page"},[t.setGalleriesEnabled?t.$fetchState.pending?r("b-container",{attrs:{"data-qa":"loading spinner container"}},[r("b-row",{staticClass:"flex-md-row py-4 text-center"},[r("b-col",{attrs:{cols:"12"}},[r("LoadingSpinner")],1)],1)],1):t.$fetchState.error?r("ErrorMessage",{attrs:{"data-qa":"error message container",error:t.$fetchState.error.message,"title-path":t.$fetchState.error.titlePath,"description-path":t.$fetchState.error.descriptionPath,"illustration-src":t.$fetchState.error.illustrationSrc}}):t.set.id?r("div",{staticClass:"mt-n3",attrs:{"data-qa":"user gallery page"}},[r("b-container",{attrs:{fluid:""}},[r("b-row",{staticClass:"flex-md-row pt-5 bg-white mb-4"},[r("b-col",{attrs:{cols:"12"}},[r("b-container",{staticClass:"mb-5"},[r("b-row",{staticClass:"mb-4"},[r("b-col",[r("div",{staticClass:"context-label"},[t._v("\n "+t._s(t.$tc("galleries.galleries",1))+"\n ")]),t._v(" "),r("h1",{attrs:{lang:t.displayTitle.code}},[t._v("\n "+t._s(t.displayTitle.values[0])+"\n ")]),t._v(" "),r("p",{staticClass:"usergallery-description mb-3 w-75",attrs:{lang:t.displayDescription.code}},[t._v("\n "+t._s(t.displayDescription.values[0])+"\n ")]),t._v(" "),"private"===t.set.visibility||t.set.creator.nickname?r("div",{staticClass:"usergallery-metadata mb-2"},[t.set.creator.nickname?r("span",{staticClass:"curator mb-2"},[t._v("\n "+t._s(t.$t("set.labels.curatedBy"))+" @"+t._s(t.set.creator.nickname)+"\n ")]):t._e(),t._v(" "),"private"===t.set.visibility?r("span",{staticClass:"\n visibility mb-2"},[t._v("\n "+t._s(t.$t("set.labels.private"))+"\n ")]):t._e()]):t._e()])],1),t._v(" "),r("div",{staticClass:"d-inline-flex collection-buttons"},[t.userIsOwner?[r("b-button",{staticClass:"text-decoration-none mr-2",attrs:{variant:"outline-primary","data-qa":"edit set button"},on:{click:function(e){return t.$bvModal.show(t.setFormModalId)}}},[t._v("\n "+t._s(t.$t("actions.edit"))+"\n ")]),t._v(" "),r("SetFormModal",{attrs:{"set-id":t.set.id,"modal-id":t.setFormModalId,title:t.set.title,description:t.set.description,visibility:t.set.visibility}})]:t._e(),t._v(" "),r("b-button",{directives:[{name:"b-modal",rawName:"v-b-modal.share-modal",modifiers:{"share-modal":!0}}],staticClass:"text-decoration-none",attrs:{variant:"outline-primary"}},[t._v("\n "+t._s(t.$t("actions.share"))+"\n ")]),t._v(" "),r("SocialShareModal",{attrs:{"media-url":t.shareMediaUrl}})],2)],1)],1)],1)],1),t._v(" "),r("b-container",{staticClass:"mb-3",attrs:{"data-qa":"user set"}},[r("b-row",[r("b-col",[r("h2",{staticClass:"related-heading text-uppercase",attrs:{"data-qa":"item count"}},[t._v("\n "+t._s(t.displayItemCount)+"\n ")])])],1),t._v(" "),r("b-row",[r("b-col",[r("b-container",{staticClass:"px-0"},[r("b-row",{staticClass:"mb-3"},[r("b-col",{attrs:{cols:"12"}},[r("ItemPreviewCardGroup",{attrs:{items:t.set.items,"show-pins":t.setIsEntityBestItems&&t.userIsEntityEditor,"draggable-items":t.userIsOwner},on:{endItemDrag:t.reorderItems}})],1)],1)],1)],1)],1),t._v(" "),r("client-only",[t.displayRecommendations?r("SetRecommendations",{attrs:{identifier:"/"+t.$route.params.pathMatch,type:t.set.type}}):t._e()],1)],1)],1):t._e():r("b-container",[t.contentWarning?r("ContentWarningModal",{attrs:{title:t.contentWarning.name,description:t.contentWarning.description,"page-slug":"galleries/"+t.identifier}}):t._e(),t._v(" "),r("ContentHeader",{attrs:{title:t.title,description:t.htmlDescription,"media-url":t.shareMediaUrl,"context-label":t.$tc("galleries.galleries",1)}}),t._v(" "),r("b-row",{staticClass:"flex-md-row pb-5"},[r("b-col",{attrs:{cols:"12"}},[r("div",{directives:[{name:"masonry",rawName:"v-masonry"}],staticClass:"masonry-container",attrs:{"transition-duration":"0","item-selector":".card","horizontal-order":"true","column-width":".masonry-container .card","data-qa":"gallery images"}},t._l(t.images,(function(image){return r("ContentCard",{directives:[{name:"masonry-tile",rawName:"v-masonry-tile"}],key:image.identifier,attrs:{title:t.imageTitle(image),"image-url":t.imageUrl(image),lazy:!1,url:{name:"item-all",params:{pathMatch:image.identifier.slice(1)}}}})})),1)])],1)],1)],1)}),[],!1,null,"329360f0",null);e.default=component.exports},706:function(t,e,r){var content=r(709);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(138).default)("688b9c6f",content,!0,{sourceMap:!1})},707:function(t,e,r){"use strict";r(16),r(15),r(13),r(10),r(19),r(14),r(20);var n=r(2),o=r(108);function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var d={name:"SocialShare",props:{mediaUrl:{type:String,default:""},withText:{type:Boolean,default:!1}},computed:l(l({},Object(o.b)({shareUrl:"http/canonicalUrlWithoutLocale"})),{},{networks:function(){return[{identifier:"facebook",name:"Facebook",url:"https://www.facebook.com/sharer/sharer.php?display=page&u=".concat(this.shareUrl)},{identifier:"twitter",name:"Twitter",url:"https://twitter.com/intent/tweet?text=".concat(this.shareUrl)},{identifier:"pinterest",name:"Pinterest",url:"https://pinterest.com/pin/create/link/?url=".concat(this.shareUrl)+(this.mediaUrl?"&media=".concat(this.mediaUrl):"")}]}})},f=(r(708),r(59)),component=Object(f.a)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",t._l(t.networks,(function(e,n){return r("b-link",{key:n,class:"social-share mr-1 "+e.identifier,attrs:{title:t.$t("actions.shareOn",{social:e.name}),href:e.url,"data-qa":"share "+e.identifier+" button"},nativeOn:{click:function(r){t.$matomo&&t.$matomo.trackEvent("Item_share","Click social share button",e.url)}}},[r("span",{class:"icon-"+e.identifier}),t._v(" "),t.withText?r("span",{staticClass:"text"},[t._v(t._s(e.name)+"\n ")]):t._e()])})),1)}),[],!1,null,"a553b8a4",null);e.a=component.exports},708:function(t,e,r){"use strict";r(706)},709:function(t,e,r){var n=r(137)(!1);n.push([t.i,"a[data-v-a553b8a4]{align-items:center;background:transparent;border:1px solid #1a1a1a;border-radius:50%;color:#1a1a1a;display:inline-flex;height:calc(2.5rem - 1px);justify-content:center;text-decoration:none;transition:background .25s;width:calc(2.5rem - 1px)}a [class^=icon][data-v-a553b8a4]{color:#1a1a1a;font-size:1.25rem}a[data-v-a553b8a4]:hover{background:#1a1a1a}a:hover [class^=icon][data-v-a553b8a4]{color:#fff}",""]),t.exports=n},710:function(t,e,r){var content=r(719);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(138).default)("7d1c1bc9",content,!0,{sourceMap:!1})},716:function(t,e,r){"use strict";var n={components:{SocialShare:r(707).a},props:{title:{type:String,required:!0},description:{type:String,default:null},mediaUrl:{type:String,default:null},contextLabel:{type:String,default:null}}},o=r(59),component=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("header",{staticClass:"row"},[r("b-col",{staticClass:"col lead mt-3",attrs:{cols:"12",lg:"9"}},[t.contextLabel?r("div",{staticClass:"context-label",attrs:{"data-qa":"context label"}},[t._v("\n "+t._s(t.contextLabel)+"\n ")]):t._e(),t._v(" "),r("h1",{attrs:{"data-qa":"page title"}},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t.description?r("div",{domProps:{innerHTML:t._s(t.description)}}):t._e()]),t._v(" "),t.mediaUrl?r("b-col",{staticClass:"pt-0 pb-3 py-lg-3 text-left text-lg-right",attrs:{cols:"12",lg:"3"}},[r("SocialShare",{attrs:{"media-url":t.mediaUrl}})],1):t._e()],1)}),[],!1,null,null,null);e.a=component.exports},718:function(t,e,r){"use strict";r(710)},719:function(t,e,r){var n=r(137)(!1);n.push([t.i,'#share-modal .modal-content .modal-body .icon-wrapper>div{display:flex;justify-content:space-between}#share-modal .modal-content .modal-body a{border-radius:.25rem;width:calc(33.3333333333% - 10px);height:3rem;margin-right:0 !important;justify-content:flex-start;padding-left:1rem}#share-modal .modal-content .modal-body a.facebook{border:solid 1px #4064ac}#share-modal .modal-content .modal-body a.facebook span{color:#4064ac}#share-modal .modal-content .modal-body a.twitter{border:solid 1px #1c9ceb}#share-modal .modal-content .modal-body a.twitter span{color:#1c9ceb}#share-modal .modal-content .modal-body a.pinterest{border:solid 1px #ba0a21}#share-modal .modal-content .modal-body a.pinterest span{color:#ba0a21}#share-modal .modal-content .modal-body a:hover{background:#fff}#share-modal .modal-content .modal-body a span.text{font-family:"Open Sans","Arial",sans-serif;font-weight:600;padding-left:.75rem}@media(max-width: 576px){#share-modal .modal-content .modal-body .icon-wrapper>div{flex-direction:column}#share-modal .modal-content .modal-body .icon-wrapper>div a{width:100%;margin-bottom:10px}}',""]),t.exports=n},720:function(t,e,r){"use strict";var n={name:"SocialShareModal",components:{SocialShare:r(707).a},props:{mediaUrl:{type:String,default:null}}},o=(r(718),r(59)),component=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("b-modal",{attrs:{id:"share-modal",title:t.$t("actions.share"),"hide-header-close":"","hide-footer":"","data-qa":"share modal"}},[r("div",{staticClass:"icon-wrapper"},[r("SocialShare",{attrs:{"media-url":t.mediaUrl,"with-text":""}})],1),t._v(" "),t._t("default"),t._v(" "),r("b-button",{staticClass:"mt-4",attrs:{variant:"outline-primary"},on:{click:function(e){return t.$bvModal.hide("share-modal")}}},[t._v("\n "+t._s(t.$t("actions.close"))+"\n ")])],2)}),[],!1,null,null,null);e.a=component.exports},801:function(t,e,r){"use strict";r(16),r(15),r(13),r(10),r(19),r(14),r(20);var n=r(2),o=(r(21),r(37),r(31));function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}e.a={methods:{redirectToPrefPath:function(t,e,label){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=Object(o.f)(e,label);if(this.$route.params.pathMatch!==n){var c=this.$path({name:t,params:l(l({},r),{},{pathMatch:n})});this.$nuxt.context.app.router.replace(c)}}}}},802:function(t,e,r){"use strict";var n,o=r(803)("http-errors"),c=r(804),l=r(805),d=r(807),f=r(808);function m(t){return Number(String(t).charAt(0)+"00")}function h(t,e){var desc=Object.getOwnPropertyDescriptor(t,"name");desc&&desc.configurable&&(desc.value=e,Object.defineProperty(t,"name",desc))}function v(t){return"Error"!==t.substr(-5)?t+"Error":t}t.exports=function t(){for(var e,r,n=500,c={},i=0;i<arguments.length;i++){var d=arguments[i],f=typeof d;if("object"===f&&d instanceof Error)n=(e=d).status||e.statusCode||n;else if("number"===f&&0===i)n=d;else if("string"===f)r=d;else{if("object"!==f)throw new TypeError("argument #"+(i+1)+" unsupported type "+f);c=d}}"number"==typeof n&&(n<400||n>=600)&&o("non-error status code; use only 4xx or 5xx status codes");("number"!=typeof n||!l.message[n]&&(n<400||n>=600))&&(n=500);var h=t[n]||t[m(n)];e||(e=h?new h(r):new Error(r||l.message[n]),Error.captureStackTrace(e,t));h&&e instanceof h&&e.status===n||(e.expose=n<500,e.status=e.statusCode=n);for(var v in c)"status"!==v&&"statusCode"!==v&&(e[v]=c[v]);return e},t.exports.HttpError=function(){function t(){throw new TypeError("cannot construct abstract class")}return d(t,Error),t}(),t.exports.isHttpError=(n=t.exports.HttpError,function(t){return!(!t||"object"!=typeof t)&&(t instanceof n||t instanceof Error&&"boolean"==typeof t.expose&&"number"==typeof t.statusCode&&t.status===t.statusCode)}),function(t,e,r){e.forEach((function(code){var e,n=f(l.message[code]);switch(m(code)){case 400:e=function(t,e,code){var r=v(e);function n(t){var e=null!=t?t:l.message[code],o=new Error(e);return Error.captureStackTrace(o,n),c(o,n.prototype),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,value:e,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),o}return d(n,t),h(n,r),n.prototype.status=code,n.prototype.statusCode=code,n.prototype.expose=!0,n}(r,n,code);break;case 500:e=function(t,e,code){var r=v(e);function n(t){var e=null!=t?t:l.message[code],o=new Error(e);return Error.captureStackTrace(o,n),c(o,n.prototype),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,value:e,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),o}return d(n,t),h(n,r),n.prototype.status=code,n.prototype.statusCode=code,n.prototype.expose=!1,n}(r,n,code)}e&&(t[code]=e,t[n]=e)}))}(t.exports,l.codes,t.exports.HttpError)},803:function(t,e,r){"use strict";function n(t,e){if("function"!=typeof t)throw new TypeError("argument fn must be a function");return t}function o(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("argument obj must be object");var n=Object.getOwnPropertyDescriptor(t,e);if(!n)throw new TypeError("must call property on owner object");if(!n.configurable)throw new TypeError("property must be configurable")}t.exports=function(t){if(!t)throw new TypeError("argument namespace is required");function e(t){}return e._file=void 0,e._ignored=!0,e._namespace=t,e._traced=!1,e._warned=Object.create(null),e.function=n,e.property=o,e}},804:function(t,e,r){"use strict";t.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t})},805:function(t,e,r){"use strict";var n=r(806);function o(code){if(!Object.prototype.hasOwnProperty.call(c.message,code))throw new Error("invalid status code: "+code);return c.message[code]}function c(code){if("number"==typeof code)return o(code);if("string"!=typeof code)throw new TypeError("code must be a number or string");var t=parseInt(code,10);return isNaN(t)?function(t){var e=t.toLowerCase();if(!Object.prototype.hasOwnProperty.call(c.code,e))throw new Error('invalid status message: "'+t+'"');return c.code[e]}(code):o(t)}t.exports=c,c.message=n,c.code=function(t){var map={};return Object.keys(t).forEach((function(code){var e=t[code],r=Number(code);map[e.toLowerCase()]=r})),map}(n),c.codes=function(t){return Object.keys(t).map((function(code){return Number(code)}))}(n),c.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},c.empty={204:!0,205:!0,304:!0},c.retry={502:!0,503:!0,504:!0}},806:function(t){t.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')},807:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},808:function(t,e,r){"use strict";t.exports=function(t){return t.split(" ").map((function(t){return t.slice(0,1).toUpperCase()+t.slice(1)})).join("").replace(/[^ _0-9a-z]/gi,"")}},809:function(t,e,r){t.exports=r.p+"img/il-gallery-unauthorised.a8a707f.svg"},860:function(t,e,r){var content=r(967);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(138).default)("c534be32",content,!0,{sourceMap:!1})},966:function(t,e,r){"use strict";r(860)},967:function(t,e,r){var n=r(137)(!1);n.push([t.i,'.usergallery-metadata .visibility[data-v-329360f0]::before,.usergallery-metadata .curator[data-v-329360f0]::before,[class^=icon-][data-v-329360f0],[class*=" icon-"][data-v-329360f0]{font-family:"icomoon";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;vertical-align:middle;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-accept[data-v-329360f0]::before{content:""}.icon-ic-add[data-v-329360f0]::before{content:""}.icon-arrow-down[data-v-329360f0]::before{content:""}.icon-back[data-v-329360f0]::before{content:""}.icon-cancel-circle[data-v-329360f0]::before{content:""}.icon-caret-down[data-v-329360f0]::before{content:""}.icon-check-circle[data-v-329360f0]::before{content:""}.icon-clear[data-v-329360f0]::before{content:""}.icon-close[data-v-329360f0]::before{content:""}.icon-ic-download[data-v-329360f0]::before{content:""}.icon-edit[data-v-329360f0]::before{content:""}.icon-external-link[data-v-329360f0]::before{content:""}.icon-facebook[data-v-329360f0]::before{content:""}.icon-ic-feedback[data-v-329360f0]::before{content:""}.icon-file[data-v-329360f0]::before{content:""}.icon-filter[data-v-329360f0]::before{content:""}.icon-globe[data-v-329360f0]::before{content:""}.icon-heart[data-v-329360f0]::before{content:""}.icon-info[data-v-329360f0]::before{content:""}.icon-info-outline[data-v-329360f0]::before{content:""}.icon-instagram[data-v-329360f0]::before{content:""}.icon-language[data-v-329360f0]::before{content:""}.icon-license[data-v-329360f0]::before{content:""}.icon-link[data-v-329360f0]::before{content:""}.icon-linkedin[data-v-329360f0]::before{content:""}.icon-pinterest[data-v-329360f0]::before{content:""}.icon-push-pin[data-v-329360f0]::before{content:""}.icon-reject[data-v-329360f0]::before{content:""}.icon-search[data-v-329360f0]::before{content:""}.icon-share[data-v-329360f0]::before{content:""}.icon-ic-tag[data-v-329360f0]::before{content:""}.icon-temporary-tag[data-v-329360f0]::before{content:""}.icon-translate[data-v-329360f0]::before{content:""}.icon-twitter[data-v-329360f0]::before{content:""}.icon-3d[data-v-329360f0]::before{content:""}.icon-sound[data-v-329360f0]::before{content:""}.icon-text[data-v-329360f0]::before{content:""}.icon-image[data-v-329360f0]::before{content:""}.icon-video[data-v-329360f0]::before{content:""}.icon-unavailable[data-v-329360f0]::before{content:""}.icon-ic-move-vert[data-v-329360f0]::before{content:""}.icon-ic-move-xy[data-v-329360f0]::before{content:""}.icon-menu[data-v-329360f0]::before{content:""}.usergallery-description[data-v-329360f0]{color:#4d4d4d}.usergallery-metadata[data-v-329360f0]{font-size:.875rem;font-weight:600;line-height:1.125;color:#4d4d4d}.usergallery-metadata .curator[data-v-329360f0],.usergallery-metadata .visibility[data-v-329360f0]{display:inline-flex;align-items:center}.usergallery-metadata .curator[data-v-329360f0]::before,.usergallery-metadata .visibility[data-v-329360f0]::before{font-size:1.5rem;padding-right:.2rem}.usergallery-metadata .curator[data-v-329360f0]{margin-right:1.5rem}.usergallery-metadata .curator[data-v-329360f0]::before{content:"";font-size:1.125rem}.usergallery-metadata .visibility[data-v-329360f0]::before{content:"";font-size:1.125rem}.collection-buttons .text[data-v-329360f0]{font-weight:600}',""]),t.exports=n}}]);
//# sourceMappingURL=4169bbf.js.map