(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00a7ab2f"],{4990:function(e,t,i){"use strict";i.r(t),i.d(t,"FilePurposeType",(function(){return I}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"admin-layout page-layout"},[i("FacilityHeader",{attrs:{returnPageType:e.viewID,returnPageParams:e.viewParams}}),i("div",{staticClass:"body-content"},[i("FacilitySideBar"),i("section",{staticClass:"primary"},[e.isDisplayed?i("main",{staticClass:"main-layout"},[i("div",{staticClass:"dashboard"},[i("div",{staticClass:"plan-edit-content"},[i("h2",{staticClass:"dashboard-title"},[e._v(e._s(e.title))]),i("div",{staticClass:"help-icon"},[i("HelpInformation",{attrs:{pageType:e.viewID,type:"page"}})],1),i("nav",{staticClass:"tap-navigation"},[i("ul",[i("li",{class:{active:0==e.selectedFilePurposeTypeId}},[i("a",{on:{click:function(t){return e.onFilePurposeTypeClick(0)}}},[e._v("全ての画像")])]),e._l(e.filePurposeTypes,(function(t){return[i("li",{key:t.index,class:{active:e.selectedFilePurposeTypeId==t.id}},[i("a",{on:{click:function(i){return e.onFilePurposeTypeClick(t.id)}}},[e._v(e._s(t.name))])])]}))],2)]),i("div",{staticClass:"tap-navigation-content"},[i("transition",{attrs:{name:"fade"}},[i("div",{staticClass:"tabcontent"},[i("div",{staticClass:"media-gallery"},[i("button",{staticClass:"add-media",on:{click:function(t){return e.onShowMediaUploadDialogClicked()}}},[i("i",[e._v("+")]),e._v(" 新規追加 ")]),i("ul",{staticClass:"media-gallery-list",attrs:{element:"ul"}},e._l(e.files,(function(t){return i("li",{key:t.index},[i("a",{on:{click:function(i){return e.onItemClick(t)}}},[i("Media",{attrs:{file:t,isDisabled:!t.isEnabled}}),i("p",{staticClass:"media-info"},[e._v(e._s(t.description))])],1)])})),0)])])])],1)])])]):e._e()])],1),i("MediaUploadDialog",{attrs:{filePurposeTypes:e.filePurposeTypes,categories:e.categories},on:{ok:e.onCommitUpload,cancel:e.onHideMediaUploadDialogClicked}}),i("MediaEditDialog",{attrs:{file:e.selectedFile,filePurposeTypes:e.filePurposeTypes,categories:e.categories},on:{ok:e.onCommit,cancel:e.onCancelFind,delete:e.onDelete}})],1)},n=[],r=(i("a4d3"),i("e01a"),i("4de4"),i("5db7"),i("d81d"),i("13d5"),i("73d9"),i("b0c0"),i("96cf"),i("1da1")),s=i("bee2"),c=i("262e"),o=i("2caf"),l=i("d4ec"),u=i("9ab4"),d=i("08af"),p=i("60a3"),f=i("ebe2"),h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("modal",{attrs:{name:"mediaUploadModalDialog",resizable:!0,width:960,height:"auto",clickToClose:!1,reset:!0},on:{opened:e.onOpened}},[i("div",{staticClass:"overlay-content"},[i("header",{},[i("h3",[e._v("メディアをアップロード")])]),i("section",{staticClass:"overlay-body-content"},[i("div",{staticClass:"upload-media-box"},[i("div",{staticClass:"drag-drop-box",on:{dragover:function(t){return t.preventDefault(),e.onFileDragover(t)},drop:function(t){return t.preventDefault(),e.onFileDrop(t)}}},[i("h4",[e._v("ここにファイルをドラッグ&ドロップしてください。")]),i("b",[e._v("または")]),i("button",{staticClass:"upload-button",on:{click:function(t){return e.onElementClick("input")}}},[e._v("ファイルを選択")]),i("input",{ref:"input",staticStyle:{display:"none"},attrs:{type:"file",accept:"image/jpeg, image/jpg, image/png, video/mp4",multiple:"multiple"},on:{change:e.onFileSelection}}),i("p",{staticClass:"notes"},[e._v(" ※1ファイルのサイズ上限は100MBです。 "),i("br"),e._v("※アップロード可能なファイル拡張子は、jpg・jpeg・pngです。 ")])]),i("div",{staticClass:"upload-media-list"},[i("table",[i("tbody",e._l(e.fileInfos,(function(t,a){return i("tr",{key:a},[i("td",{staticClass:"delete-cell"},[i("i",{staticClass:"icon-delete",on:{click:function(t){return e.onDeleteUpload(a)}}})]),i("td",{staticClass:"image-cell"},[t.isVideo?[i("video",{attrs:{src:t.fileData,controls:""}})]:t.isImage?[i("img",{attrs:{src:t.fileData}})]:e._e()],2),i("td",{staticClass:"upload-status-cell"},[i("ul",{staticClass:"upload-status"},[i("li",[i("b",{staticClass:"up-status"},[e._v("メディアタイプ")]),i("p",[e._v(e._s(t.contentType))])])])]),i("td",[i("b",{staticClass:"media-category-t red"},[e._v("表示分類")]),i("ul",{staticClass:"media-cat-list"},[e._l(e.filePurposeTypes,(function(a){return[i("li",{key:a.index},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedFilePurposeTypes,expression:"fileInfo.selectedFilePurposeTypes"}],attrs:{type:"checkbox"},domProps:{value:a,checked:Array.isArray(t.selectedFilePurposeTypes)?e._i(t.selectedFilePurposeTypes,a)>-1:t.selectedFilePurposeTypes},on:{change:function(i){var n=t.selectedFilePurposeTypes,r=i.target,s=!!r.checked;if(Array.isArray(n)){var c=a,o=e._i(n,c);r.checked?o<0&&e.$set(t,"selectedFilePurposeTypes",n.concat([c])):o>-1&&e.$set(t,"selectedFilePurposeTypes",n.slice(0,o).concat(n.slice(o+1)))}else e.$set(t,"selectedFilePurposeTypes",s)}}}),i("span",[e._v(e._s(a.name))])])])]}))],2)]),i("td",[i("b",{staticClass:"media-category-t red"},[e._v("メディアカテゴリ")]),i("ul",{staticClass:"media-cat-list"},e._l(e.categories,(function(a){return i("li",{key:a.index},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model.number",value:t.categoryIds,expression:"fileInfo.categoryIds",modifiers:{number:!0}}],attrs:{type:"checkbox"},domProps:{value:a.id,checked:Array.isArray(t.categoryIds)?e._i(t.categoryIds,a.id)>-1:t.categoryIds},on:{change:function(i){var n=t.categoryIds,r=i.target,s=!!r.checked;if(Array.isArray(n)){var c=e._n(a.id),o=e._i(n,c);r.checked?o<0&&e.$set(t,"categoryIds",n.concat([c])):o>-1&&e.$set(t,"categoryIds",n.slice(0,o).concat(n.slice(o+1)))}else e.$set(t,"categoryIds",s)}}}),i("span",[e._v(e._s(a.name))])])])})),0)])])})),0)])])])]),i("footer",{staticClass:"overlay-navigation"},[i("div",{staticClass:"close"},[i("button",{on:{click:function(t){return e.onCancel()}}},[i("i",{staticClass:"fas fa-times fa-lg"}),e._v("キャンセル")])]),i("div",{staticClass:"submit"},[i("button",{on:{click:function(t){return e.onOK()}}},[i("i",{staticClass:"fas fa-upload fa-lg"}),e._v("メディアをアップロード")])])])])])},v=[],y=(i("caad"),i("a434"),i("2532"),i("b85c")),m=i("0d59"),g=i("9f13"),b=function(e){Object(c["a"])(i,e);var t=Object(o["a"])(i);function i(){var e;return Object(l["a"])(this,i),e=t.apply(this,arguments),e.fileInfos=[],e}return Object(s["a"])(i,[{key:"onOpened",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.fileInfos=[];case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onFileDragover",value:function(e){this.checkFIleDragDropEvent(e)}},{key:"onFileDrop",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.checkFIleDragDropEvent(t)){e.next=2;break}return e.abrupt("return");case 2:return i=this.getFiles(t),e.next=5,this.uploadTmpFiles(i);case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onFileSelection",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=this.getFiles(t),e.next=3,this.uploadTmpFiles(i);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"uploadTmpFiles",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=Object(y["a"])(t),e.prev=1,i.s();case 3:if((a=i.n()).done){e.next=11;break}return n=a.value,e.next=7,m["k"].convertFileInfoAsync(n);case 7:r=e.sent,this.fileInfos.push(r);case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](1),i.e(e.t0);case 16:return e.prev=16,i.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onDeleteUpload",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.fileInfos.splice(t,1);case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getFiles",value:function(e){var t=e.target.files?e.target.files:e.dataTransfer.files;return t}},{key:"checkFIleDragDropEvent",value:function(e){var t,i=Object(y["a"])(g["a"].medias.disableMimes);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(e.dataTransfer.types.includes(a))return!1}}catch(n){i.e(n)}finally{i.f()}return!0}},{key:"onOK",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$emit("ok",this.fileInfos);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onCancel",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$emit("cancel");case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"viewID",get:function(){return d["a"].modalDialogAndPreloader}},{key:"viewParams",get:function(){return{}}},{key:"isOKDisplayed",get:function(){return this.fileInfos.length>0}}]),i}(d["c"]);Object(u["a"])([Object(p["b"])()],b.prototype,"categories",void 0),Object(u["a"])([Object(p["b"])()],b.prototype,"filePurposeTypes",void 0),b=Object(u["a"])([Object(p["a"])({components:{}})],b);var k=b,w=k,C=i("2877"),_=Object(C["a"])(w,h,v,!1,null,null,null),x=_.exports,O=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("modal",{attrs:{name:"mediaEidtModalDialog",height:"auto",resizable:!0,clickToClose:!1,reset:!0,width:"960"},on:{opened:e.onOpened}},[i("div",{staticClass:"overlay-content upload-edit"},[i("ValidationObserver",{ref:"observer",scopedSlots:e._u([{key:"default",fn:function(t){var a=t.validate,n=t.touched;return[i("header",{},[i("h3",[e._v("編集")]),i("ul",{staticClass:"checkbox1-list"},[i("li",[i("label",{staticClass:"container-list"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.file.isEnabled,expression:"file.isEnabled"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.file.isEnabled)?e._i(e.file.isEnabled,null)>-1:e.file.isEnabled},on:{change:function(t){var i=e.file.isEnabled,a=t.target,n=!!a.checked;if(Array.isArray(i)){var r=null,s=e._i(i,r);a.checked?s<0&&e.$set(e.file,"isEnabled",i.concat([r])):s>-1&&e.$set(e.file,"isEnabled",i.slice(0,s).concat(i.slice(s+1)))}else e.$set(e.file,"isEnabled",n)}}}),e._v("有効にする "),i("span",{staticClass:"checkmark"})])])])]),i("section",{staticClass:"overlay-body-content add-crud-box"},[i("table",{staticClass:"upload-edit-table"},[i("tbody",[i("tr",[i("th",{attrs:{colspan:"2"}})]),i("tr",[i("th",{staticClass:"image-cell"},[i("div",{staticClass:"feature-image"},[i("i",{staticClass:"delete",on:{click:function(t){return e.onDelete(e.file.id)}}}),i("Media",{attrs:{file:e.file,width:250}})],1)]),i("td",{staticClass:"upload-status-cell"},[i("ul",{staticClass:"upload-status"},[i("li",[i("b",{staticClass:"up-status"},[e._v("タイプ")]),i("p",[e._v(e._s(e.file.contentType))])]),i("li",[i("b",{staticClass:"up-status"},[e._v("容量")]),i("p",[e._v(e._s(e._f("fileSize")(e.file.fileSize)))])]),i("li",[i("b",{staticClass:"up-status"},[e._v("MD5")]),i("p",[e._v(e._s(e.file.md5))])]),i("li",[i("b",{staticClass:"up-status"},[e._v("表示分類")]),i("p",[i("ul",{staticClass:"checkbox check-float"},[e._l(e.filePurposeTypes,(function(t){return[i("li",{key:t.index},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedFilePurposeTypes,expression:"selectedFilePurposeTypes"}],attrs:{type:"checkbox"},domProps:{value:t.id,checked:Array.isArray(e.selectedFilePurposeTypes)?e._i(e.selectedFilePurposeTypes,t.id)>-1:e.selectedFilePurposeTypes},on:{change:function(i){var a=e.selectedFilePurposeTypes,n=i.target,r=!!n.checked;if(Array.isArray(a)){var s=t.id,c=e._i(a,s);n.checked?c<0&&(e.selectedFilePurposeTypes=a.concat([s])):c>-1&&(e.selectedFilePurposeTypes=a.slice(0,c).concat(a.slice(c+1)))}else e.selectedFilePurposeTypes=r}}}),e._v(e._s(t.name)+" "),i("span",{staticClass:"checkmark"})])])]}))],2)])])])])]),i("tr",[i("th",[i("p",{staticClass:"midashi-summary text-red"},[e._v("タイトル")]),i("ValidationProvider",{attrs:{name:"タイトル"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.errors;return[i("input",{directives:[{name:"model",rawName:"v-model",value:e.file.description,expression:"file.description"}],attrs:{type:"text"},domProps:{value:e.file.description},on:{input:function(t){t.target.composing||e.$set(e.file,"description",t.target.value)}}}),i("ValidationErrorNote",{attrs:{errors:a}})]}}],null,!0)}),i("b",{staticClass:"midashi-summary text-red"},[e._v("タグ")]),i("Tag",{attrs:{tag:e.file.tag,separator:",",isEditor:!0},on:{add:function(t){e.file.tag=t},delete:function(t){e.file.tag=t}}})],1),i("td",[i("b",{staticClass:"midashi-summary text-red"},[e._v("メディアカテゴリ")]),i("ul",{staticClass:"checkbox check-float"},[e._l(e.categories,(function(t){return[i("li",{key:t.index},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedCategories,expression:"selectedCategories"}],attrs:{type:"checkbox"},domProps:{value:t.id,checked:Array.isArray(e.selectedCategories)?e._i(e.selectedCategories,t.id)>-1:e.selectedCategories},on:{change:function(i){var a=e.selectedCategories,n=i.target,r=!!n.checked;if(Array.isArray(a)){var s=t.id,c=e._i(a,s);n.checked?c<0&&(e.selectedCategories=a.concat([s])):c>-1&&(e.selectedCategories=a.slice(0,c).concat(a.slice(c+1)))}else e.selectedCategories=r}}}),e._v(e._s(t.name)+" "),i("span",{staticClass:"checkmark"})])])]}))],2)])]),i("tr",[i("th",{attrs:{colspan:"2"}})])])])]),i("footer",{staticClass:"overlay-navigation"},[i("div",{staticClass:"close"},[i("button",{on:{click:function(t){return e.onCancel()}}},[i("i",{staticClass:"fas fa-times fa-lg"}),e._v("キャンセル")])]),i("div",{staticClass:"submit"},[i("button",{class:{active:n},on:{click:function(t){return e.onOK(a)}}},[i("i",{staticClass:"fas fa-save fa-lg"}),e._v("保存")])])])]}}])})],1)])},T=[],P=function(e){Object(c["a"])(i,e);var t=Object(o["a"])(i);function i(){var e;return Object(l["a"])(this,i),e=t.apply(this,arguments),e.selectedFilePurposeTypes=[],e.selectedCategories=[],e}return Object(s["a"])(i,[{key:"onOpened",value:function(){var e,t=this.file.filePurposeType,i=this.filePurposeTypes,a=Object(y["a"])(i);try{for(a.s();!(e=a.n()).done;){var n=e.value;n.isSelected=t&n.id}}catch(r){a.e(r)}finally{a.f()}this.selectedFilePurposeTypes=i.filter((function(e){return e.isSelected})).map((function(e){return e.id})),this.selectedCategories=this.file.categoryIds}},{key:"onOK",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.validateThen(d["b"],t,(function(e){i.$emit("ok",{file:i.file,categoryIds:i.selectedCategories,filePurposeTypeIds:i.selectedFilePurposeTypes})}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onDelete",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.showDeleteConfirm((function(){t.$emit("delete",t.file.id)}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onCancel",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.showModifiedMoveConfirmThen(t,(function(){i.$emit("cancel")}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"viewID",get:function(){return d["a"].MediaEditDialog}},{key:"viewParams",get:function(){return{}}}]),i}(d["c"]);Object(u["a"])([Object(p["b"])()],P.prototype,"categories",void 0),Object(u["a"])([Object(p["b"])()],P.prototype,"filePurposeTypes",void 0),Object(u["a"])([Object(p["b"])()],P.prototype,"file",void 0),P=Object(u["a"])([Object(p["a"])({components:{}})],P);var F=P,j=F,D=Object(C["a"])(j,O,T,!1,null,null,null),R=D.exports,I=function e(t,i){Object(l["a"])(this,e),this.id=0,this.name="",this.isSelected=!1,this.id=t,this.name=i},M=function(e){Object(c["a"])(i,e);var t=Object(o["a"])(i);function i(){var e;return Object(l["a"])(this,i),e=t.apply(this,arguments),e.id={},e.loadedFiles=[],e.selectedFilePurposeTypeId=0,e.categories=[],e.selectedCategory=null,e.selectedFile=null,e.word="",e}return Object(s["a"])(i,[{key:"created",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.reLoad();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onFilePurposeTypeClick",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.selectedFilePurposeTypeId=t;case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onCategoryClick",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.selectedCategory=t;case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onItemClick",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.selectedFile=t,this.showMediaEditDialog();case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onCommit",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,a,n,r,s,c=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.categoryIds,a=t.filePurposeTypeIds,n=0,a&&a.length&&(n=a.reduce((function(e,t){return e+t}))),r=this.selectedFile,null!=r){e.next=7;break}return e.abrupt("return");case 7:s={id:r.id,description:r.description,isEnabled:r.isEnabled,tag:r.tag,categoryIds:i,filePurposeType:n},this.requestAsync(f["a"].ReqY065U,s,(function(e){c.reLoad(),c.selectedFile=null,c.hideMediaEditDialog(),c.showSaveComplete()}));case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onDelete",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i={id:t},this.requestAsync(f["a"].ReqY065D,i,(function(e){a.reLoad(),a.selectedFile=null,a.hideMediaEditDialog()}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onCancelFind",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.hideMediaEditDialog(),e.next=3,this.showModifiedMoveConfirmThen(t,(function(){i.selectedFile=null}));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onShowMediaUploadDialogClicked",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.showMediaUploadDialog();case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onCommitUpload",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,a,n,r,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.flatMap((function(e){return e.file})),a=t.map((function(e){return e.categoryIds})),n=t.map((function(e){var t=0;return e.selectedFilePurposeTypes&&e.selectedFilePurposeTypes.length&&(t=e.selectedFilePurposeTypes.map((function(e){return e.id})).reduce((function(e,t){return e+t}))),t})),r={filePurposeTypes:JSON.stringify(n),categoryIds:JSON.stringify(a)},e.next=6,this.uploadAsync(f["a"].ReqY065C2,r,i,(function(e){s.hideMediaUploadDialog(),s.reLoad()}));case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onHideMediaUploadDialogClicked",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.hideMediaUploadDialog();case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"reLoad",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={},e.next=3,this.requestAsync(f["a"].ReqY065R,t,(function(e){var t=e.data,a=t.files,n=t.categories;i.loadedFiles=a,i.categories=n,i.display()}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showMediaUploadDialog",value:function(){this.$modal.show("mediaUploadModalDialog")}},{key:"hideMediaUploadDialog",value:function(){this.$modal.hide("mediaUploadModalDialog")}},{key:"showMediaEditDialog",value:function(){this.$modal.show("mediaEidtModalDialog")}},{key:"hideMediaEditDialog",value:function(){this.$modal.hide("mediaEidtModalDialog")}},{key:"viewID",get:function(){return d["a"].Y065}},{key:"viewParams",get:function(){return{}}},{key:"title",get:function(){return this.getPageTitle()}},{key:"files",get:function(){var e=this,t=this.loadedFiles;return this.selectedFilePurposeTypeId&&(t=t.filter((function(t){return t.filePurposeType&e.selectedFilePurposeTypeId}))),t},set:function(e){this.loadedFiles=e}},{key:"filePurposeTypes",get:function(){var e=[];return e.push(new I(1,"外観")),e.push(new I(2,"料理")),e.push(new I(4,"部屋")),e.push(new I(8,"風呂")),e.push(new I(16,"館内")),e.push(new I(32,"周辺")),e.push(new I(64,"その他")),e.push(new I(128,"施設ロゴ")),e}}]),i}(d["c"]);M=Object(u["a"])([Object(p["a"])({components:{MediaUploadDialog:x,MediaEditDialog:R}})],M);var E=M,A=E,$=(i("c6bb"),Object(C["a"])(A,a,n,!1,null,null,null));t["default"]=$.exports},"5db7":function(e,t,i){"use strict";var a=i("23e7"),n=i("a2bf"),r=i("7b0b"),s=i("50c4"),c=i("1c0b"),o=i("65f0");a({target:"Array",proto:!0},{flatMap:function(e){var t,i=r(this),a=s(i.length);return c(e),t=o(i,0),t.length=n(t,i,i,a,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},"73d9":function(e,t,i){var a=i("44d2");a("flatMap")},a2bf:function(e,t,i){"use strict";var a=i("e8b5"),n=i("50c4"),r=i("0366"),s=function(e,t,i,c,o,l,u,d){var p,f=o,h=0,v=!!u&&r(u,d,3);while(h0&&a(p))f=s(e,t,p,n(p.length),f,l-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=p}f++}h++}return f};e.exports=s}}]); //# sourceMappingURL=chunk-00a7ab2f.15668fbe.js.map