(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0de120"],{"83a0":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"admin-layout page-layout"},[r("StaffHeader",{attrs:{returnPageType:e.viewID,returnPageParams:e.viewParams}}),r("div",{staticClass:"body-content"},[r("StaffSideBar"),r("section",{staticClass:"primary"},[e.isDisplayed?r("main",{staticClass:"main-layout"},[r("div",{staticClass:"dashboard"},[r("div",{staticClass:"crud-content"},[r("h2",{staticClass:"dashboard-title"},[e._v(e._s(e.title))]),r("div",{staticClass:"help-icon"},[r("HelpInformation",{attrs:{pageType:e.viewID,type:"page"}})],1),r("div",{staticClass:"crud-list"},[r("span",{staticClass:"caption-title"}),r("div",{staticClass:"addition"},[r("button",{staticClass:"add-crud",on:{click:function(t){return e.onCreateClicked()}}},[r("i",{staticClass:"material-icons"},[e._v("")]),r("b",[e._v("新規作成")])])]),r("table",{staticClass:"crud-list-table"},[e._m(0),e._m(1),r("vuedraggable",{staticClass:"drag-stl",attrs:{element:"tbody"},on:{end:e.onSortEnd},model:{value:e.list,callback:function(t){e.list=t},expression:"list"}},e._l(e.list,(function(t){return r("tr",{key:t.id,class:{warningSection:t.hasWarning}},[r("td",[r("Notification",{attrs:{warnings:t.hasWarning}}),e._v(" "+e._s(t.shortName)+" ")],1),r("td",[e._v(e._s(t.name))]),r("td",[e._v(e._s(t.code))]),r("td",[e._v(e._s(t.url))]),r("td",[r("toggle-button",{attrs:{value:t.isEnabled,labels:{checked:"有効",unchecked:"無効"}},on:{change:function(r){return e.onEnabled(t.id,!t.isEnabled)}}})],1),r("td",{staticClass:"update"},[r("button",{on:{click:function(r){return e.onFind(t.id)}}},[e._v("変更")])])])})),0)],1)])])])]):e._e()])],1),r("CreateDialog",{on:{ok:e.onCreateCommit,cancel:e.onCreateCancel}})],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("caption",[r("i",{staticClass:"fas fa-arrows-alt"}),e._v("行をドラッグ&ドロップで任意の順番に並び替えができます ")])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("thead",[r("tr",[r("th",[e._v("略称")]),r("th",[e._v("サイト名")]),r("th",[e._v("コード")]),r("th",[e._v("URL")]),r("th",{staticClass:"toggle"},[e._v("有効/無効")]),r("th",{staticClass:"action"},[e._v("アクション")])])])}],i=(r("d81d"),r("b0c0"),r("96cf"),r("1da1")),s=r("d4ec"),o=r("bee2"),u=r("262e"),c=r("2caf"),l=r("9ab4"),d=r("08af"),v=r("60a3"),h=r("ebe2"),p=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("modal",{attrs:{name:"createModalDialog",height:"auto",resizable:!0,clickToClose:!1,reset:!0},on:{opened:e.onOpened}},[r("div",{staticClass:"overlay-content"},[r("ValidationObserver",{ref:"observer",scopedSlots:e._u([{key:"default",fn:function(t){var n=t.validate,a=t.touched;return[r("header",{},[r("h3",[e._v("新規作成")]),r("ValidationModifiedLabel",{attrs:{isModified:a}})],1),r("section",{staticClass:"overlay-body-content add-crud-box"},[r("table",{staticClass:"input-info-form"},[r("caption",[e._v("必要な情報を入力し、内容を確認後、「保存」を押してください。")]),r("tr",[r("td",[r("label",{staticClass:"required-l",attrs:{for:""}},[r("span",{staticClass:"require"},[e._v("必須")]),e._v("略称 ")]),r("ValidationProvider",{attrs:{name:"略称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;return[r("input",{directives:[{name:"model",rawName:"v-model",value:e.shortName,expression:"shortName"}],attrs:{type:"text"},domProps:{value:e.shortName},on:{input:function(t){t.target.composing||(e.shortName=t.target.value)}}}),r("ValidationErrorNote",{attrs:{errors:n}})]}}],null,!0)}),r("GuideNote")],1)]),r("tr",[r("td",[r("label",{staticClass:"required-l",attrs:{for:""}},[r("span",{staticClass:"require"},[e._v("必須")]),e._v("名称 ")]),r("ValidationProvider",{attrs:{name:"名称",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;return[r("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],attrs:{type:"text"},domProps:{value:e.name},on:{input:function(t){t.target.composing||(e.name=t.target.value)}}}),r("ValidationErrorNote",{attrs:{errors:n}})]}}],null,!0)}),r("GuideNote")],1)]),r("tr",[r("td",[r("label",{staticClass:"required-l",attrs:{for:""}},[r("span",{staticClass:"require"},[e._v("必須")]),e._v("URL ")]),r("ValidationProvider",{attrs:{name:"URL",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;return[r("input",{directives:[{name:"model",rawName:"v-model",value:e.url,expression:"url"}],attrs:{type:"text",placeholder:"掲載先のURLをhttp:// https:// から入力してください"},domProps:{value:e.url},on:{input:function(t){t.target.composing||(e.url=t.target.value)}}}),r("ValidationErrorNote",{attrs:{errors:n}})]}}],null,!0)}),r("GuideNote")],1)])])]),r("footer",{staticClass:"overlay-navigation"},[r("div",{staticClass:"close"},[r("button",{on:{click:function(t){return e.onCancel()}}},[r("i",{staticClass:"fas fa-times fa-lg"}),e._v("キャンセル ")])]),r("div",{staticClass:"submit"},[r("button",{class:{active:a},on:{click:function(t){return e.onOK(n)}}},[r("i",{staticClass:"fas fa-save fa-lg"}),e._v("保存 ")])])])]}}])})],1)])},f=[],m=function(e){Object(u["a"])(r,e);var t=Object(c["a"])(r);function r(){var e;return Object(s["a"])(this,r),e=t.apply(this,arguments),e.shortName="",e.name="",e.url="",e}return Object(o["a"])(r,[{key:"onOpened",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.shortName="",this.name="",this.url="";case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onOK",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:if(e.sent){e.next=4;break}return e.abrupt("return");case 4:r={shortName:this.shortName,name:this.name,url:this.url},this.$emit("ok",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onCancel",value:function(){var e=Object(i["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"].NoNamed}},{key:"viewParams",get:function(){return{}}},{key:"title",get:function(){return this.getPageTitle()}}]),r}(d["c"]);m=Object(l["a"])([Object(v["a"])({components:{}})],m);var g=m,b=g,w=r("2877"),y=Object(w["a"])(b,p,f,!1,null,null,null),C=y.exports,k=function(e){Object(u["a"])(r,e);var t=Object(c["a"])(r);function r(){var e;return Object(s["a"])(this,r),e=t.apply(this,arguments),e.list=[],e}return Object(o["a"])(r,[{key:"created",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.onSearch();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onSearch",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.reqRead();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onFind",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.movePage("s211",{id:t});case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onEnabled",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={id:t,isEnabled:r},e.next=3,this.reqEnabled(n);case 3:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"onSortEnd",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.updateDispOrder(t.oldIndex,t.newIndex,this.list),r={sortables:this.list.map((function(e){return{id:e.id,dispOrder:e.dispOrder}}))},e.next=4,this.requestAsync(h["a"].ReqS207S,r,(function(e){n.reqRead()}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onCreateClicked",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.showCreateDialog();case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onCreateCommit",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r={shortName:t.shortName,name:t.name,url:t.url},e.next=3,this.requestAsync(h["a"].ReqS207C,r,(function(e){n.closeCreateDialog(),n.showSaveComplete(),n.onSearch()}));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onCreateCancel",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.closeCreateDialog();case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"reqRead",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={},e.next=3,this.requestAsync(h["a"].ReqS207R,t,(function(e){var t=e.data.list;r.list=t,r.display()}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"reqEnabled",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.requestAsync(h["a"].ReqS207U1,t,(function(e){r.onSearch()}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"showCreateDialog",value:function(){this.$modal.show("createModalDialog")}},{key:"closeCreateDialog",value:function(){this.$modal.hide("createModalDialog")}},{key:"viewID",get:function(){return d["a"].S207}},{key:"viewParams",get:function(){return{}}},{key:"title",get:function(){return this.getPageTitle()}}]),r}(d["c"]);k=Object(l["a"])([Object(v["a"])({components:{CreateDialog:C}})],k);var _=k,R=_,O=(r("c6bb"),Object(w["a"])(R,n,a,!1,null,null,null));t["default"]=O.exports}}]); //# sourceMappingURL=chunk-2d0de120.e9751685.js.map