(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a38ca"],{"033d":function(e,t,r){"use strict";r.r(t);var a=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},[r("td",[e._v(e._s(t.shortName))]),r("td",[e._v(e._s(t.name))]),r("td",{staticClass:"color-status"},[r("span",{style:{backgroundColor:t.color}})]),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)},n=[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",{staticClass:"toggle"},[e._v("有効/無効")]),r("th",{staticClass:"action"},[e._v("アクション")])])])}],i=(r("a4d3"),r("e01a"),r("d81d"),r("b0c0"),r("96cf"),r("1da1")),s=r("d4ec"),o=r("bee2"),c=r("262e"),u=r("2caf"),l=r("9ab4"),d=r("08af"),f=r("60a3"),p=r("ebe2"),v=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 a=t.touched,n=t.validate;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 a=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:a}})]}}],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 a=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:a}})]}}],null,!0)}),r("GuideNote")],1)]),r("tr",[r("td",[r("label",{staticClass:"required-l",attrs:{for:""}},[e._v("配色")]),r("ValidationProvider",{attrs:{name:"配色",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.errors;return[r("swatches",{attrs:{"popover-y":"top",swatches:e.swatches},model:{value:e.color,callback:function(t){e.color=t},expression:"color"}}),r("ValidationErrorNote",{attrs:{errors:a}})]}}],null,!0)})],1)]),r("tr",[r("td",[r("label",{staticClass:"required-l",attrs:{for:""}},[e._v("説明")]),r("ValidationProvider",{attrs:{name:"説明"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.errors;return[r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.description,expression:"description"}],attrs:{type:"text"},domProps:{value:e.description},on:{input:function(t){t.target.composing||(e.description=t.target.value)}}}),r("ValidationErrorNote",{attrs:{errors:a}})]}}],null,!0)})],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)])},h=[],m=function(e){Object(c["a"])(r,e);var t=Object(u["a"])(r);function r(){var e;return Object(s["a"])(this,r),e=t.apply(this,arguments),e.swatches=["#222222","#dd7e6b","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#a4c2f4","#9fc5e8","#b4a7d6","#d5a6bd","#ffffff"],e.shortName="",e.name="",e.color="#ffffff",e.description="",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.color="#ffffff",this.description="";case 4: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,description:this.description,color:this.color},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(f["a"])({components:{}})],m);var b=m,g=b,y=r("2877"),w=Object(y["a"])(g,v,h,!1,null,null,null),C=w.exports,k=function(e){Object(c["a"])(r,e);var t=Object(u["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("s167",{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 a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={id:t,isEnabled:r},e.next=3,this.reqEnabled(a);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,a=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(p["a"].ReqS163S,r,(function(e){a.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,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r={shortName:t.shortName,name:t.name,color:t.color,description:t.description},e.next=3,this.requestAsync(p["a"].ReqS163C,r,(function(e){a.closeCreateDialog(),a.showSaveComplete(),a.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(p["a"].ReqS163R,t,(function(e){r.list=e.data.list,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(p["a"].ReqS163U1,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"].S163}},{key:"viewParams",get:function(){return{}}},{key:"title",get:function(){return this.getPageTitle()}}]),r}(d["c"]);k=Object(l["a"])([Object(f["a"])({components:{CreateDialog:C}})],k);var _=k,x=_,O=(r("c6bb"),Object(y["a"])(x,a,n,!1,null,null,null));t["default"]=O.exports}}]); //# sourceMappingURL=chunk-2d0a38ca.e9a064b0.js.map