(function(t){function e(e){for(var n,i,s=e[0],l=e[1],c=e[2],d=0,f=[];d3))&&"boolean"===typeof t.isEnabled))))}function u(t){return{debug:function(){for(var e=arguments.length,o=new Array(e),n=0;n2?r-2:0),s=2;se?t:e}))}function mt(t){return t.reduce((function(t,e){return e+t}))}function gt(t){return ht(t,"code","name","message")}function ht(t){if(t&&"object"===Object(lt["a"])(t)){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](fn,t,e)}var gn=Object(dn["a"])(Dt||(Dt=Object(un["a"])(["\n mutation insertEasySettingToRuleShiftTable($model: InsertEasySettingToRuleShiftTableModel!) {\n insertEasySettingToRuleShiftTable(model: $model) {\n succeed\n result {\n ruleShiftTableDetailID\n ruleShiftTableID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n easySettingConfig {\n index\n valueType\n values\n }\n ruleType\n easySettingPattern\n easySettingName\n sort\n hasRuleCommon\n }\n }\n}\n "])));function hn(t){return b["b"](gn,t)}var vn=Object(dn["a"])(Ct||(Ct=Object(un["a"])(["\n mutation closeAutocreation($model: CloseAutocreationModel!) {\n closeAutocreation(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n automationExecutionContextID\n organizationID\n ticket\n isCanceled\n status\n }\n }\n}\n "])));function pn(t){return b["b"](vn,t)}var bn=Object(dn["a"])(wt||(wt=Object(un["a"])(["\n mutation copyRuleCommonToCommon($model: CopyRuleCommonToCommonInputModel!) {\n copyRuleCommonToCommon(model: $model) {\n succeed\n result {\n ruleCommonDetailID\n ruleCommonID\n concurrencyStamp\n registrationTime\n registrationAccount\n sort\n name\n easySettingPattern\n easySettingConfig {\n index\n valueType\n values\n }\n easySettingName\n ruleType\n selected\n }\n }\n}\n "])));function yn(t){return b["b"](bn,t)}var Sn=Object(dn["a"])(kt||(kt=Object(un["a"])(["\n mutation copyRuleCommonToShiftTable($model: CopyRuleCommonToShiftTableInputModel!) {\n copyRuleCommonToShiftTable(model: $model) {\n succeed\n result {\n ruleShiftTableDetailID\n ruleShiftTableID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n easySettingConfig {\n index\n valueType\n values\n }\n ruleType\n easySettingPattern\n easySettingName\n sort\n hasRuleCommon\n }\n }\n}\n "])));function Dn(t){return b["b"](Sn,t)}var Cn=Object(dn["a"])(It||(It=Object(un["a"])(["\n mutation copyRuleShiftTableToCommon($model: CopyRuleShiftTableToCommonInputModel!) {\n copyRuleShiftTableToCommon(model: $model) {\n succeed\n result {\n ruleCommonID\n sectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n sort\n name\n }\n }\n}\n "])));function wn(t){return b["b"](Cn,t)}var kn=Object(dn["a"])(xt||(xt=Object(un["a"])(["\n mutation deleteCalendarCommon($model: DeleteCalendarCommonModel!) {\n deleteCalendarCommon(model: $model) {\n succeed\n result {\n calendarCommonID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n description\n year\n month\n day\n week\n dayOfWeek\n textColor\n backgroundColor\n inputType\n }\n }\n}\n "])));function In(t){return b["b"](kn,t)}var xn=Object(dn["a"])(Tt||(Tt=Object(un["a"])(["\n mutation deleteCalendarSection($model: DeleteCalendarSectionModel!) {\n deleteCalendarSection(model: $model) {\n succeed\n result {\n calendarSectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n description\n year\n month\n day\n week\n dayOfWeek\n textColor\n backgroundColor\n inputType\n }\n }\n}\n "])));function Tn(t){return b["b"](xn,t)}var An=Object(dn["a"])(At||(At=Object(un["a"])(["\n mutation deleteDateAggregate($model: DeleteDateAggregateModel!) {\n deleteDateAggregate(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateID\n sectionID\n sort\n title\n isUse\n isAllStaff\n alternateText\n dateAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateShiftID\n dateAggregateID\n shiftID\n shiftGroupID\n }\n dateAggregateStaffs {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateStaffID\n dateAggregateID\n staffID\n staffAttributeGroupCommonItemID\n staffAttributeGroupSectionItemID\n }\n }\n }\n}\n "])));function _n(t){return b["b"](An,t)}var On=Object(dn["a"])(_t||(_t=Object(un["a"])(["\n mutation deleteDesiredShiftConfigs($model: DeleteDesiredShiftModel!) {\n deleteDesiredShiftConfigs(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n desiredShiftID\n shiftTableStatusID\n staffID\n name\n requestStatus\n priority\n dates\n desiredShift {\n shiftID\n shiftGroupID\n }\n }\n }\n}\n "])));function Rn(t){return b["b"](On,t)}var Fn=Object(dn["a"])(Ot||(Ot=Object(un["a"])(["\n mutation deleteFlagChangeSection($model: DeleteFlagChangeSectionModel!) {\n deleteFlagChangeSection(model: $model) {\n succeed\n result {\n sectionID\n concurrencyStamp\n deleteFlag\n }\n }\n}\n "])));function Vn(t){return b["b"](Fn,t)}var jn=Object(dn["a"])(Rt||(Rt=Object(un["a"])(["\n mutation deleteFlagChangeShift($model: DeleteFlagChangeShiftModel!) {\n deleteFlagChangeShift(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftID\n deleteFlag\n sort\n name\n code\n mark\n count\n startTime\n endTime\n workTime\n nightStartTime\n nightEndTime\n nightWorkTime\n midNightWorkTime\n estimatedTextColor\n estimatedBackgroundColor\n fixedTextColor\n fixedBackgroundColor\n desiredTextColor\n desiredBackgroundColor\n notDesiredTextColor\n notDesiredBackgroundColor\n actualTextColor\n actualBackgroundColor\n shiftSections {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftSectionID\n sectionID\n shiftID\n usage\n }\n }\n }\n}\n "])));function En(t){return b["b"](jn,t)}var Gn=Object(dn["a"])(Ft||(Ft=Object(un["a"])(["\n mutation deleteFlagChangeStaff($model: DeleteFlagChangeStaffModel!) {\n deleteFlagChangeStaff(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffID\n staffName\n nickName\n code\n deleteFlag\n status\n sectionID\n sectionName\n }\n }\n}\n "])));function $n(t){return b["b"](Gn,t)}var Nn=Object(dn["a"])(Vt||(Vt=Object(un["a"])(["\n mutation deleteRuleCommon($model: DeleteRuleCommonModel!) {\n deleteRuleCommon(model: $model) {\n succeed\n result {\n ruleCommonID\n sectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n sort\n name\n }\n }\n}\n "])));function Ln(t){return b["b"](Nn,t)}var Mn=Object(dn["a"])(jt||(jt=Object(un["a"])(["\n mutation deleteRuleCommonDetail($model: DeleteRuleCommonDetailModel!) {\n deleteRuleCommonDetail(model: $model) {\n succeed\n result {\n ruleCommonDetailID\n ruleCommonID\n concurrencyStamp\n registrationTime\n registrationAccount\n sort\n name\n easySettingPattern\n easySettingConfig {\n index\n valueType\n values\n }\n easySettingName\n ruleType\n selected\n }\n }\n}\n "])));function Pn(t){return b["b"](Mn,t)}var Wn=Object(dn["a"])(Et||(Et=Object(un["a"])(["\n mutation deleteRuleShiftTableDetail($model: DeleteRuleShiftTableDetailModel!) {\n deleteRuleShiftTableDetail(model: $model) {\n succeed\n result {\n ruleShiftTableDetailID\n ruleShiftTableID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n easySettingConfig {\n index\n valueType\n values\n }\n ruleType\n easySettingPattern\n easySettingName\n sort\n hasRuleCommon\n }\n }\n}\n "])));function Bn(t){return b["b"](Wn,t)}var Hn=Object(dn["a"])(Gt||(Gt=Object(un["a"])(["\n mutation deleteStaffAggregate($model: DeleteStaffAggregateModel!) {\n deleteStaffAggregate(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateID\n sectionID\n title\n aggregateType\n aggregateRange\n aggregateDateKind\n hasWeekFlag {\n weekdayAndHolidaySelect {\n isWeekday\n isSaturday\n isSundayAndHoliday\n isCompensationHoliday\n }\n dayOfWeekSelect {\n isHoliday\n isCompensationHoliday\n isBeforeHoliday\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n dayOfWeekAndHolidaySelect {\n nonHoliday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n holiday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n }\n }\n sort\n isUse\n alternateText\n staffAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateShiftID\n staffAggregateID\n shiftID\n shiftGroupID\n }\n }\n }\n}\n "])));function qn(t){return b["b"](Hn,t)}var Qn=Object(dn["a"])($t||($t=Object(un["a"])(["\n mutation deleteStaffAttributeGroupCommon($model: DeleteStaffAttributeGroupCommonModel!) {\n deleteStaffAttributeGroupCommon(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupCommonItems {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n}\n "])));function Un(t){return b["b"](Qn,t)}var zn=Object(dn["a"])(Nt||(Nt=Object(un["a"])(["\n mutation deleteStaffAttributeGroupCommonItem($model: DeleteStaffAttributeGroupCommonItemModel!) {\n deleteStaffAttributeGroupCommonItem(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function Kn(t){return b["b"](zn,t)}var Yn=Object(dn["a"])(Lt||(Lt=Object(un["a"])(["\n mutation deleteStaffAttributeGroupSection($model: DeleteStaffAttributeGroupSectionModel!) {\n deleteStaffAttributeGroupSection(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupSectionItems {\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n}\n "])));function Zn(t){return b["b"](Yn,t)}var Jn=Object(dn["a"])(Mt||(Mt=Object(un["a"])(["\n mutation deleteStaffAttributeGroupSectionItem($model: DeleteStaffAttributeGroupSectionItemModel!) {\n deleteStaffAttributeGroupSectionItem(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function Xn(t){return b["b"](Jn,t)}var ta=Object(dn["a"])(Pt||(Pt=Object(un["a"])(["\n mutation deleteStaffAttributeHistory($model: DeleteStaffAttributeHistoryModel!) {\n deleteStaffAttributeHistory(model: $model) {\n succeed\n result {\n latestStaffModel {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeHistoryID\n staffID\n staffTransferID\n staffAttributeHistoryID\n }\n historyModel {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeHistoryID\n staffID\n applyDate\n hasAttributes\n commonGroups {\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n items {\n staffAttributesCommonID\n staffAttributeHistoryID\n staffAttributeGroupCommonItemID\n concurrencyStamp\n registrationTime\n registrationAccount\n item {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n sectionGroups {\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n items {\n staffAttributesSectionID\n staffAttributeHistoryID\n staffAttributeGroupSectionItemID\n concurrencyStamp\n registrationTime\n registrationAccount\n item {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n }\n }\n }\n}\n "])));function ea(t){return b["b"](ta,t)}var oa=Object(dn["a"])(Wt||(Wt=Object(un["a"])(["\n mutation deleteStaffTransfer($model: DeleteStaffTransferModel!) {\n deleteStaffTransfer(model: $model) {\n succeed\n result {\n staff {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffID\n name\n nickName\n code\n status\n deleteFlag\n }\n staffTransfer {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffTransferID\n staffID\n sectionID\n reasonType\n applyDate\n name\n nickName\n description\n }\n latestStaff {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffTransferID\n staffID\n staffAttributeHistoryID\n }\n }\n }\n}\n "])));function na(t){return b["b"](oa,t)}var aa=Object(dn["a"])(Bt||(Bt=Object(un["a"])(["\n mutation editStaffAttributes($model: EditStaffAttributesModel!) {\n editStaffAttributes(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeHistoryID\n staffID\n applyDate\n hasAttributes\n commonGroups {\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n items {\n staffAttributesCommonID\n staffAttributeHistoryID\n staffAttributeGroupCommonItemID\n concurrencyStamp\n registrationTime\n registrationAccount\n item {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n sectionGroups {\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n items {\n staffAttributesSectionID\n staffAttributeHistoryID\n staffAttributeGroupSectionItemID\n concurrencyStamp\n registrationTime\n registrationAccount\n item {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n }\n }\n}\n "])));function ra(t){return b["b"](aa,t)}var ia=Object(dn["a"])(Ht||(Ht=Object(un["a"])(["\n query getAccounts {\n getAccounts {\n mailAddress\n roles {\n concurrencyStamp\n registrationTime\n registrationAccount\n roleID\n name\n description\n }\n }\n}\n "])));function sa(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b["c"](ia,{},t)}var la=Object(dn["a"])(qt||(qt=Object(un["a"])(["\n query getAutocreationFinishShiftTables($id: Guid!) {\n getAutocreationFinishShiftTables(ticket: $id) {\n staffs {\n staffID\n shiftIDs\n }\n }\n}\n "])));function ca(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](la,t,e)}var ua=Object(dn["a"])(Qt||(Qt=Object(un["a"])(["\n query getAutocreationStatus($id: Guid!) {\n getAutocreationStatus(ticket: $id) {\n succeed\n status\n concurrencyStamp\n }\n}\n "])));function da(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](ua,t,e)}var fa=Object(dn["a"])(Ut||(Ut=Object(un["a"])(["\n query getAutomaticCreationTimeLimit($id: Long!) {\n getAutomaticCreationTimeLimit(sectionID: $id) {\n optionSectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n allowChanges\n isSetTimeLimit\n timeLimit\n completeMax\n sectionID\n optionKey\n }\n}\n "])));function ma(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](fa,t,e)}Object(dn["a"])(zt||(zt=Object(un["a"])(["\n query getCalendarsCommon {\n getCalendarsCommon {\n calendarKind\n systemCalendarID\n calendarCommonID\n name\n description\n year\n month\n day\n week\n dayOfWeek\n transferHolidayFlag\n textColor\n backgroundColor\n }\n}\n "])));Object(dn["a"])(Kt||(Kt=Object(un["a"])(["\n query getCalendarsCommonForAdmin {\n getCalendarsCommon {\n calendarKind\n systemCalendarID\n calendarCommonID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n description\n year\n month\n day\n week\n dayOfWeek\n transferHolidayFlag\n textColor\n backgroundColor\n }\n}\n "])));Object(dn["a"])(Yt||(Yt=Object(un["a"])(["\n query getCalendarsSection($id: Long!) {\n getCalendarsSection(sectionID: $id) {\n calendarKind\n systemCalendarID\n calendarSectionID\n calendarCommonID\n name\n description\n year\n month\n day\n week\n dayOfWeek\n transferHolidayFlag\n textColor\n backgroundColor\n }\n}\n "])));var ga=Object(dn["a"])(Zt||(Zt=Object(un["a"])(["\n query getCalendarsSectionForAdmin($id: Long!) {\n getCalendarsSection(sectionID: $id) {\n calendarKind\n systemCalendarID\n calendarSectionID\n calendarCommonID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n description\n year\n month\n day\n week\n dayOfWeek\n transferHolidayFlag\n textColor\n backgroundColor\n }\n}\n "])));function ha(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](ga,t,e)}var va=Object(dn["a"])(Jt||(Jt=Object(un["a"])(["\n query getDateAggregateDispConfig($id: Long!) {\n getDateAggregateDispConfig(dateAggregateID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateID\n sectionID\n sort\n title\n isUse\n isAllStaff\n alternateText\n dateAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateShiftID\n dateAggregateID\n shiftID\n shiftGroupID\n }\n dateAggregateStaffs {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateStaffID\n dateAggregateID\n staffID\n staffAttributeGroupCommonItemID\n staffAttributeGroupSectionItemID\n }\n }\n}\n "])));function pa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](va,t,e)}var ba=Object(dn["a"])(Xt||(Xt=Object(un["a"])(["\n query getDateAggregates($id: Long!) {\n getDateAggregates(sectionID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateID\n sectionID\n sort\n title\n isUse\n isAllStaff\n alternateText\n dateAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateShiftID\n dateAggregateID\n shiftID\n shiftGroupID\n }\n dateAggregateStaffs {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateStaffID\n dateAggregateID\n staffID\n staffAttributeGroupCommonItemID\n staffAttributeGroupSectionItemID\n }\n }\n}\n "])));function ya(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](ba,t,e)}var Sa=Object(dn["a"])(te||(te=Object(un["a"])(["\n query getDesiredApplicationTimeDefault($id: Long!) {\n getDesiredApplicationTimeDefault(sectionID: $id) {\n optionSectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n allowChanges\n start\n end\n sectionID\n optionKey\n }\n}\n "])));function Da(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](Sa,t,e)}var Ca=Object(dn["a"])(ee||(ee=Object(un["a"])(["\n query getDesiredShiftConfigs($id: Long!) {\n getDesiredShiftConfigs(statusID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n desiredShiftID\n shiftTableStatusID\n staffID\n name\n requestStatus\n priority\n dates\n desiredShift {\n shiftID\n shiftGroupID\n }\n }\n}\n "])));function wa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](Ca,t,e)}var ka=Object(dn["a"])(oe||(oe=Object(un["a"])(["\n query getDisplayDesignConfig($id: Long!) {\n getDisplayDesignConfig(sectionID: $id) {\n optionSectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n allowChanges\n isAbbreviated\n isLineNumber\n isActual\n isEvents\n isCurrentMonthStaffs\n hideAttributeCommons {\n staffAttributeGroupCommonID\n name\n }\n hideAttributeSections {\n staffAttributeGroupSectionID\n name\n }\n sectionID\n optionKey\n }\n}\n "])));function Ia(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](ka,t,e)}Object(dn["a"])(ne||(ne=Object(un["a"])(["\n query getEasySettingFromRuleCommon($id: Long!) {\n getEasySettingFromRuleCommon(ruleCommonDetailID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n detailID\n config {\n index\n valueType\n values\n }\n pattern\n }\n}\n "])));Object(dn["a"])(ae||(ae=Object(un["a"])(["\n query getEasySettingFromRuleShiftTable($id: Long!) {\n getEasySettingFromRuleShiftTable(ruleShiftTableDetailID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n detailID\n config {\n index\n valueType\n values\n }\n pattern\n }\n}\n "])));var xa=Object(dn["a"])(re||(re=Object(un["a"])(["\n query getEasySettingPatternDefine {\n getEasySettingPatternDefine {\n pattern\n name\n inputItems {\n index\n valueType\n label\n }\n }\n}\n "])));function Ta(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b["c"](xa,{},t)}Object(dn["a"])(ie||(ie=Object(un["a"])(["\n query getOrganization {\n getOrganization {\n organizationID\n name\n isAttendanceRequest\n edition\n }\n}\n "])));var Aa=Object(dn["a"])(se||(se=Object(un["a"])(["\n query getOrganizationForAdmin {\n getOrganization {\n organizationID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n isAttendanceRequest\n edition\n }\n}\n "])));function _a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b["c"](Aa,{},t)}var Oa=Object(dn["a"])(le||(le=Object(un["a"])(["\n query getRamanasNotice {\n getRamanasNotice {\n webNoticeID\n content\n startDate\n endDate\n }\n}\n "])));function Ra(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b["c"](Oa,{},t)}var Fa=Object(dn["a"])(ce||(ce=Object(un["a"])(["\n query getRuleCommonDetails($id: Long!) {\n getRuleCommonDetails(ruleCommonID: $id) {\n ruleCommonDetailID\n ruleCommonID\n concurrencyStamp\n registrationTime\n registrationAccount\n sort\n name\n easySettingPattern\n easySettingConfig {\n index\n valueType\n values\n }\n easySettingName\n ruleType\n selected\n }\n}\n "])));function Va(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](Fa,t,e)}var ja=Object(dn["a"])(ue||(ue=Object(un["a"])(["\n query getRuleCommons($id: Long!) {\n getRuleCommons(sectionID: $id) {\n ruleCommonID\n sectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n sort\n name\n }\n}\n "])));function Ea(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](ja,t,e)}var Ga=Object(dn["a"])(de||(de=Object(un["a"])(["\n query getRuleShiftTableDetails($id: Long!) {\n getRuleShiftTableDetails(ruleShiftTableID: $id) {\n ruleShiftTableDetailID\n ruleShiftTableID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n easySettingConfig {\n index\n valueType\n values\n }\n ruleType\n easySettingPattern\n easySettingName\n sort\n hasRuleCommon\n }\n}\n "])));function $a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](Ga,t,e)}var Na=Object(dn["a"])(fe||(fe=Object(un["a"])(["\n query getRuleShiftTables($id: Long!) {\n getRuleShiftTables(sectionID: $id) {\n ruleShiftTableID\n shiftTableName\n startDate\n endDate\n }\n}\n "])));function La(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](Na,t,e)}Object(dn["a"])(me||(me=Object(un["a"])(["\n query GetShiftGroups {\n getShiftGroups {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftGroupID\n sort\n name\n code\n }\n}\n "])));Object(dn["a"])(ge||(ge=Object(un["a"])(["\n query getSection($id: Long!) {\n getSection(sectionID: $id) {\n sectionID\n name\n mark\n textColor\n backgroundColor\n shiftTablePeriod\n fourWeekStartDay\n monthStartDay\n monthIsFourWeek\n monthReferenceDateFourWeek\n monthIsDispNextMonth\n }\n}\n "])));var Ma=Object(dn["a"])(he||(he=Object(un["a"])(["\n query getSectionForAdmin($id: Long!) {\n getSectionForAdmin(sectionID: $id) {\n sectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n mark\n textColor\n backgroundColor\n shiftTablePeriod\n fourWeekStartDay\n monthStartDay\n monthIsFourWeek\n monthReferenceDateFourWeek\n monthIsDispNextMonth\n deleteFlag\n }\n}\n "])));function Pa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](Ma,t,e)}Object(dn["a"])(ve||(ve=Object(un["a"])(["\n query getSections {\n getSections {\n sectionID\n name\n mark\n textColor\n backgroundColor\n shiftTablePeriod\n monthReferenceDateFourWeek\n monthStartDay\n monthIsFourWeek\n monthIsDispNextMonth\n fourWeekStartDay\n }\n}\n "])));var Wa=Object(dn["a"])(pe||(pe=Object(un["a"])(["\n query getSectionsForAdmin {\n getSectionsForAdmin {\n sectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n mark\n textColor\n backgroundColor\n shiftTablePeriod\n monthReferenceDateFourWeek\n monthStartDay\n monthIsFourWeek\n monthIsDispNextMonth\n fourWeekStartDay\n }\n}\n "])));function Ba(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b["c"](Wa,{},t)}var Ha=Object(dn["a"])(be||(be=Object(un["a"])(["\n query GetShift($id: Long!) {\n getShift(shiftID: $id) {\n shift {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftID\n deleteFlag\n sort\n name\n code\n mark\n count\n startTime\n endTime\n workTime\n nightStartTime\n nightEndTime\n nightWorkTime\n midNightWorkTime\n estimatedTextColor\n estimatedBackgroundColor\n fixedTextColor\n fixedBackgroundColor\n desiredTextColor\n desiredBackgroundColor\n notDesiredTextColor\n notDesiredBackgroundColor\n actualTextColor\n actualBackgroundColor\n shiftSections {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftSectionID\n sectionID\n shiftID\n usage\n }\n }\n shiftSection {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftSectionID\n sectionID\n shiftID\n usage\n }\n section {\n sectionID\n name\n mark\n textColor\n backgroundColor\n shiftTablePeriod\n fourWeekStartDay\n monthStartDay\n monthIsFourWeek\n monthReferenceDateFourWeek\n monthIsDispNextMonth\n }\n }\n}\n "])));function qa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](Ha,t,e)}var Qa=Object(dn["a"])(ye||(ye=Object(un["a"])(["\n query getShiftGroupsAndShifts($id: Long!) {\n getShiftGroupsAndShifts(sectionID: $id) {\n shiftGroups {\n shiftGroupID\n sort\n name\n }\n shifts {\n shiftID\n sort\n name\n }\n }\n}\n "])));function Ua(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](Qa,t,e)}Object(dn["a"])(Se||(Se=Object(un["a"])(["\n query GetShiftGroupsForAdmin {\n getShiftGroups {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftGroupID\n sort\n name\n code\n }\n}\n "])));var za=Object(dn["a"])(De||(De=Object(un["a"])(["\n query GetShiftTableEditLock($id: Long!) {\n getShiftTableEditLock(sectionID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n sectionID\n optionSectionID\n optionKey\n allowChanges\n isPreviousMonthLock\n isFollowingMonthLock\n }\n}\n "])));function Ka(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](za,t,e)}var Ya=Object(dn["a"])(Ce||(Ce=Object(un["a"])(["\n query getShiftTableStatus($id: Long!) {\n getShiftTableStatus(shiftTableStatusID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftTableStatusID\n sectionID\n shiftTableID\n isEditing\n isDesired\n status\n startDate\n endDate\n workDays\n desireReceptionStartDate\n desireReceptionEndDate\n ticket\n }\n}\n "])));function Za(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](Ya,t,e)}var Ja=Object(dn["a"])(we||(we=Object(un["a"])(["\n query GetShifts {\n getShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftID\n deleteFlag\n sort\n name\n code\n mark\n count\n startTime\n endTime\n workTime\n nightStartTime\n nightEndTime\n nightWorkTime\n midNightWorkTime\n estimatedTextColor\n estimatedBackgroundColor\n fixedTextColor\n fixedBackgroundColor\n desiredTextColor\n desiredBackgroundColor\n notDesiredTextColor\n notDesiredBackgroundColor\n actualTextColor\n actualBackgroundColor\n shiftSections {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftSectionID\n sectionID\n shiftID\n usage\n }\n }\n}\n "])));function Xa(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b["c"](Ja,{},t)}var tr=Object(dn["a"])(ke||(ke=Object(un["a"])(["\n query getShiftsAndStaffAttributes($id: Long!) {\n getShiftsAndStaffAttributes(sectionID: $id) {\n shiftGroups {\n shiftGroupID\n sort\n name\n }\n shifts {\n shiftID\n sort\n name\n }\n staffAttributeGroupCommons {\n staffAttributeGroupCommonID\n sort\n name\n staffAttributeGroupCommonItems {\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n name\n }\n }\n staffAttributeGroupSections {\n staffAttributeGroupSectionID\n sort\n name\n staffAttributeGroupSectionItems {\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n name\n }\n }\n }\n}\n "])));function er(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](tr,t,e)}var or=Object(dn["a"])(Ie||(Ie=Object(un["a"])(["\n query GetStaff($id: Long!) {\n getStaff(staffID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffID\n name\n nickName\n code\n status\n deleteFlag\n }\n}\n "])));function nr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](or,t,e)}var ar=Object(dn["a"])(xe||(xe=Object(un["a"])(["\n query getStaffAggregateDispConfig($id: Long!) {\n getStaffAggregateDispConfig(staffAggregateID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateID\n sectionID\n title\n aggregateType\n aggregateRange\n aggregateDateKind\n hasWeekFlag {\n weekdayAndHolidaySelect {\n isWeekday\n isSaturday\n isSundayAndHoliday\n isCompensationHoliday\n }\n dayOfWeekSelect {\n isHoliday\n isCompensationHoliday\n isBeforeHoliday\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n dayOfWeekAndHolidaySelect {\n nonHoliday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n holiday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n }\n }\n sort\n isUse\n alternateText\n staffAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateShiftID\n staffAggregateID\n shiftID\n shiftGroupID\n }\n }\n}\n "])));function rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](ar,t,e)}var ir=Object(dn["a"])(Te||(Te=Object(un["a"])(["\n query getStaffAggregates($id: Long!) {\n getStaffAggregates(sectionID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateID\n sectionID\n title\n aggregateType\n aggregateRange\n aggregateDateKind\n hasWeekFlag {\n weekdayAndHolidaySelect {\n isWeekday\n isSaturday\n isSundayAndHoliday\n isCompensationHoliday\n }\n dayOfWeekSelect {\n isHoliday\n isCompensationHoliday\n isBeforeHoliday\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n dayOfWeekAndHolidaySelect {\n nonHoliday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n holiday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n }\n }\n sort\n isUse\n alternateText\n staffAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateShiftID\n staffAggregateID\n shiftID\n shiftGroupID\n }\n }\n}\n "])));function sr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](ir,t,e)}Object(dn["a"])(Ae||(Ae=Object(un["a"])(["\n query getStaffAttributeGroupCommon($id: Long!) {\n getStaffAttributeGroupCommon(staffAttributeGroupCommonID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupCommonItems {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));var lr=Object(dn["a"])(_e||(_e=Object(un["a"])(["\n query getStaffAttributeGroupCommonForAdmin($id: Long!) {\n getStaffAttributeGroupCommon(staffAttributeGroupCommonID: $id) {\n concurrencyStamp\n registrationAccount\n registrationTime\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupCommonItems {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](lr,t,e)}var ur=Object(dn["a"])(Oe||(Oe=Object(un["a"])(["\n query getStaffAttributeGroupCommons {\n getStaffAttributeGroupCommons {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupCommonItems {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function dr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b["c"](ur,{},t)}Object(dn["a"])(Re||(Re=Object(un["a"])(["\n query getStaffAttributeGroupSection($id: Long!) {\n getStaffAttributeGroupSection(staffAttributeGroupSectionID: $id) {\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupSectionItems {\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));var fr=Object(dn["a"])(Fe||(Fe=Object(un["a"])(["\n query getStaffAttributeGroupSectionForAdmin($id: Long!) {\n getStaffAttributeGroupSection(staffAttributeGroupSectionID: $id) {\n concurrencyStamp\n registrationAccount\n registrationTime\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupSectionItems {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function mr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](fr,t,e)}Object(dn["a"])(Ve||(Ve=Object(un["a"])(["\n query getStaffAttributeGroupSectionItem($id: Long!) {\n getStaffAttributeGroupSectionItem(staffAttributeGroupSectionItemID: $id) {\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n}\n "])));Object(dn["a"])(je||(je=Object(un["a"])(["\n query getStaffAttributeGroupSectionItemForAdmin($id: Long!) {\n getStaffAttributeGroupSectionItem(staffAttributeGroupSectionItemID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n}\n "])));var gr=Object(dn["a"])(Ee||(Ee=Object(un["a"])(["\n query getStaffAttributeGroupSections($id: Long!) {\n getStaffAttributeGroupSections(sectionID: $id) {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupSectionItems {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function hr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](gr,t,e)}var vr=Object(dn["a"])(Ge||(Ge=Object(un["a"])(["\n query getStaffAttributeHistories($id: Long!) {\n getStaffAttributeHistories(staffID: $id) {\n latestStaffModel {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeHistoryID\n staffID\n staffTransferID\n staffAttributeHistoryID\n }\n historyModels {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeHistoryID\n staffID\n applyDate\n hasAttributes\n commonGroups {\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n items {\n staffAttributesCommonID\n staffAttributeHistoryID\n staffAttributeGroupCommonItemID\n concurrencyStamp\n registrationTime\n registrationAccount\n item {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n sectionGroups {\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n items {\n staffAttributesSectionID\n staffAttributeHistoryID\n staffAttributeGroupSectionItemID\n concurrencyStamp\n registrationTime\n registrationAccount\n item {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n }\n }\n}\n "])));function pr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](vr,t,e)}var br=Object(dn["a"])($e||($e=Object(un["a"])(["\n query getStaffAttributes($id: Long!) {\n getStaffAttributes(staffAttributeHistoryID: $id) {\n staffAttributeHistoryID\n staffID\n concurrencyStamp\n registrationTime\n registrationAccount\n applyDate\n hasAttributes\n commonGroups {\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n items {\n staffAttributesCommonID\n staffAttributeHistoryID\n staffAttributeGroupCommonItemID\n concurrencyStamp\n registrationTime\n registrationAccount\n item {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n sectionGroups {\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n items {\n staffAttributesSectionID\n staffAttributeHistoryID\n staffAttributeGroupSectionItemID\n concurrencyStamp\n registrationTime\n registrationAccount\n item {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n }\n}\n "])));function yr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](br,t,e)}var Sr=Object(dn["a"])(Ne||(Ne=Object(un["a"])(["\n query GetStaffManagement {\n getStaffManagement {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffID\n staffName\n nickName\n code\n deleteFlag\n status\n sectionID\n sectionName\n }\n}\n "])));function Dr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b["c"](Sr,{},t)}var Cr=Object(dn["a"])(Le||(Le=Object(un["a"])(["\n query getStaffTransfers($id: Long!) {\n getStaffTransfers(staffID: $id) {\n staff {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffID\n name\n nickName\n code\n status\n deleteFlag\n }\n staffTransfers {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffTransferID\n staffID\n sectionID\n reasonType\n applyDate\n name\n nickName\n description\n }\n latestStaff {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffTransferID\n staffID\n staffAttributeHistoryID\n }\n }\n}\n "])));function wr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](Cr,t,e)}var kr=Object(dn["a"])(Me||(Me=Object(un["a"])(["\n query getStaffsWithShiftTableStatusID($id: Long!, $status: Long!) {\n getStaffsWithShiftTableStatusID(sectionID: $id, shiftTableStatusID: $status) {\n staffID\n name\n status\n staffAttributeGroupCommons {\n staffAttributeGroupCommonID\n sort\n name\n staffAttributeGroupCommonItems {\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n name\n }\n }\n staffAttributeGroupSections {\n staffAttributeGroupSectionID\n sort\n name\n staffAttributeGroupSectionItems {\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n name\n }\n }\n }\n}\n "])));function Ir(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](kr,t,e)}var xr=Object(dn["a"])(Pe||(Pe=Object(un["a"])(["\n query getViolationDisplayConfig($id: Long!) {\n getViolationDisplayConfig(sectionID: $id) {\n optionSectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n allowChanges\n isDateAggregate\n isStaffAggregate\n isPermissibleRange\n isNotVioration\n highLevel\n midLevel\n lowLevel\n notViorationLevel\n checkStartTime\n sectionID\n optionKey\n }\n}\n "])));function Tr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b["c"](xr,t,e)}var Ar=Object(dn["a"])(We||(We=Object(un["a"])(["\n mutation insertCalendarCommon($model: InsertCalendarCommonModel!) {\n insertCalendarCommon(model: $model) {\n succeed\n result {\n calendarCommonID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n description\n year\n month\n day\n week\n dayOfWeek\n textColor\n backgroundColor\n inputType\n }\n }\n}\n "])));function _r(t){return b["b"](Ar,t)}var Or=Object(dn["a"])(Be||(Be=Object(un["a"])(["\n mutation insertCalendarSectiion($model: InsertCalendarSectionModel!) {\n insertCalendarSection(model: $model) {\n succeed\n result {\n calendarSectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n description\n year\n month\n day\n week\n dayOfWeek\n textColor\n backgroundColor\n inputType\n }\n }\n}\n "])));function Rr(t){return b["b"](Or,t)}var Fr=Object(dn["a"])(He||(He=Object(un["a"])(["\n mutation insertDateAggregate($model: InsertDateAggregateModel!) {\n insertDateAggregate(model: $model) {\n succeed\n result {\n sectionID\n title\n isUse\n isAllStaff\n alternateText\n dateAggregateShifts {\n shiftGroupID\n shiftID\n }\n dateAggregateStaffs {\n staffID\n staffAttributeGroupCommonItemID\n staffAttributeGroupSectionItemID\n }\n }\n }\n}\n "])));function Vr(t){return b["b"](Fr,t)}var jr=Object(dn["a"])(qe||(qe=Object(un["a"])(["\n mutation insertDesiredShiftConfigs($model: InsertDesiredShiftModel!) {\n insertDesiredShiftConfigs(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n desiredShiftID\n shiftTableStatusID\n staffID\n name\n requestStatus\n priority\n dates\n desiredShift {\n shiftID\n shiftGroupID\n }\n }\n }\n}\n "])));function Er(t){return b["b"](jr,t)}var Gr=Object(dn["a"])(Qe||(Qe=Object(un["a"])(["\n mutation insertEasySettingToRuleCommon($model: InsertEasySettingToRuleCommonModel!) {\n insertEasySettingToRuleCommon(model: $model) {\n succeed\n result {\n ruleCommonDetailID\n ruleCommonID\n concurrencyStamp\n registrationTime\n registrationAccount\n sort\n name\n easySettingPattern\n easySettingConfig {\n index\n valueType\n values\n }\n easySettingName\n ruleType\n selected\n }\n }\n}\n "])));function $r(t){return b["b"](Gr,t)}var Nr=Object(dn["a"])(Ue||(Ue=Object(un["a"])(["\n mutation insertRuleCommon($model: InsertRuleCommonModel!) {\n insertRuleCommon(model: $model) {\n succeed\n result {\n ruleCommonID\n sectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n sort\n name\n }\n }\n}\n "])));function Lr(t){return b["b"](Nr,t)}var Mr=Object(dn["a"])(ze||(ze=Object(un["a"])(["\n mutation insertSection($model: InsertSectionModel!) {\n insertSection(model: $model) {\n succeed\n result {\n sectionID\n concurrencyStamp\n name\n }\n }\n}\n "])));function Pr(t){return b["b"](Mr,t)}var Wr=Object(dn["a"])(Ke||(Ke=Object(un["a"])(["\n mutation insertShift($model: InsertShiftModel!, $sections: [InsertShiftSectionModel]!) {\n insertShift(shiftModel: $model, shiftSectionModels: $sections) {\n succeed\n result {\n shiftID\n concurrencyStamp\n sort\n name\n code\n }\n }\n}\n "])));function Br(t){return b["b"](Wr,t)}Object(dn["a"])(Ye||(Ye=Object(un["a"])(["\n mutation insertShiftGroup($model: InsertShiftGroupModel!) {\n insertShiftGroup(model: $model) {\n succeed\n result {\n shiftGroupID\n concurrencyStamp\n sort\n name\n code\n }\n }\n}\n "])));var Hr=Object(dn["a"])(Ze||(Ze=Object(un["a"])(["\n mutation insertStaff($model: InsertStaffModel!) {\n insertStaff(model: $model) {\n succeed\n result {\n staff {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffID\n name\n nickName\n code\n status\n deleteFlag\n }\n staffTransfers {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffTransferID\n staffID\n sectionID\n reasonType\n applyDate\n name\n nickName\n description\n }\n }\n }\n}\n "])));function qr(t){return b["b"](Hr,t)}var Qr=Object(dn["a"])(Je||(Je=Object(un["a"])(["\n mutation insertStaffAggregate($model: InsertStaffAggregateModel!) {\n insertStaffAggregate(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateID\n sectionID\n title\n aggregateType\n aggregateRange\n aggregateDateKind\n hasWeekFlag {\n weekdayAndHolidaySelect {\n isWeekday\n isSaturday\n isSundayAndHoliday\n isCompensationHoliday\n }\n dayOfWeekSelect {\n isHoliday\n isCompensationHoliday\n isBeforeHoliday\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n dayOfWeekAndHolidaySelect {\n nonHoliday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n holiday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n }\n }\n sort\n isUse\n alternateText\n staffAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateShiftID\n staffAggregateID\n shiftID\n shiftGroupID\n }\n }\n }\n}\n "])));function Ur(t){return b["b"](Qr,t)}var zr=Object(dn["a"])(Xe||(Xe=Object(un["a"])(["\n mutation insertStaffAttributeGroupCommon($model: InsertStaffAttributeGroupCommonModel!) {\n insertStaffAttributeGroupCommon(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupCommonItems {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n}\n "])));function Kr(t){return b["b"](zr,t)}var Yr=Object(dn["a"])(to||(to=Object(un["a"])(["\n mutation insertStaffAttributeGroupCommonItem($model: InsertStaffAttributeGroupCommonItemModel!) {\n insertStaffAttributeGroupCommonItem(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function Zr(t){return b["b"](Yr,t)}var Jr=Object(dn["a"])(eo||(eo=Object(un["a"])(["\n mutation insertStaffAttributeGroupSection($model: InsertStaffAttributeGroupSectionModel!) {\n insertStaffAttributeGroupSection(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function Xr(t){return b["b"](Jr,t)}var ti=Object(dn["a"])(oo||(oo=Object(un["a"])(["\n mutation insertStaffAttributeGroupSectionItem($model: InsertStaffAttributeGroupSectionItemModel!) {\n insertStaffAttributeGroupSectionItem(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function ei(t){return b["b"](ti,t)}var oi=Object(dn["a"])(no||(no=Object(un["a"])(["\n mutation insertStaffAttributes($model: InsertStaffAttributesModel!) {\n insertStaffAttributes(model: $model) {\n succeed\n result {\n latestStaffModel {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeHistoryID\n staffID\n staffTransferID\n staffAttributeHistoryID\n }\n historyModel {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeHistoryID\n staffID\n applyDate\n hasAttributes\n commonGroups {\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n items {\n staffAttributesCommonID\n staffAttributeHistoryID\n staffAttributeGroupCommonItemID\n concurrencyStamp\n registrationTime\n registrationAccount\n item {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n sectionGroups {\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n items {\n staffAttributesSectionID\n staffAttributeHistoryID\n staffAttributeGroupSectionItemID\n concurrencyStamp\n registrationTime\n registrationAccount\n item {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n }\n }\n }\n}\n "])));function ni(t){return b["b"](oi,t)}var ai=Object(dn["a"])(ao||(ao=Object(un["a"])(["\n mutation insertStaffTransfer($model: InsertStaffTransferModel!) {\n insertStaffTransfer(model: $model) {\n succeed\n result {\n staff {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffID\n name\n nickName\n code\n status\n deleteFlag\n }\n staffTransfer {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffTransferID\n staffID\n sectionID\n reasonType\n applyDate\n name\n nickName\n description\n }\n latestStaff {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffID\n staffTransferID\n staffAttributeHistoryID\n }\n }\n }\n}\n "])));function ri(t){return b["b"](ai,t)}var ii=Object(dn["a"])(ro||(ro=Object(un["a"])(["\n mutation openShiftTable($id: Long!, $date: DateTime!) {\n openShiftTable(sectionID: $id, openDate: $date) {\n succeed\n result {\n thisShiftTableStatus {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftTableStatusID\n sectionID\n shiftTableID\n isEditing\n isDesired\n status\n startDate\n endDate\n workDays\n desireReceptionStartDate\n desireReceptionEndDate\n ticket\n }\n thisMonthShiftTable {\n shiftTableDetailWithStaffs {\n staffName\n staffAttributeGroupCommonItems {\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n name\n abbreviation\n }\n staffAttributeGroupSectionItems {\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n name\n abbreviation\n }\n shiftTableStaffSetting {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftTableStaffSettingID\n shiftTableStatusID\n staffID\n sort\n isAuto\n }\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftTableDetailID\n staffID\n cells {\n dateIndex\n shiftID\n shiftType\n displayable\n }\n }\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftTableID\n shiftTableStatusID\n name\n isProsessing\n }\n sectionSetting {\n sectionID\n name\n mark\n textColor\n backgroundColor\n shiftTablePeriod\n fourWeekStartDay\n monthStartDay\n monthIsFourWeek\n monthReferenceDateFourWeek\n monthIsDispNextMonth\n options {\n shiftTableEditLock {\n isPreviousMonthLock\n isFollowingMonthLock\n valueType\n }\n displayDesign {\n isAbbreviated\n isLineNumber\n isActual\n isEvents\n isCurrentMonthStaffs\n hideStaffAttributeGroupCommon {\n id\n }\n hideStaffAttributeGroupSection {\n id\n }\n valueType\n }\n shiftCsvOutput {\n characterCodeType\n isShowTitle\n isStaffSort\n staffName {\n isShow\n order\n }\n staffCode {\n isShow\n order\n }\n shiftName {\n isShow\n order\n }\n shiftMark {\n isShow\n order\n }\n shiftCode {\n isShow\n order\n }\n shiftGroupCode {\n isShow\n order\n }\n staffAttributeOutput {\n isName\n isAbbreviated\n }\n shiftCsvOutputType\n valueType\n }\n automaticCreation {\n isSetTimeLimit\n timeLimit\n valueType\n }\n violationDisplay {\n showViolation {\n isDateAggregate\n isStaffAggregate\n isPermissibleRange\n isNotVioration\n }\n violationColor {\n highLevel\n midLevel\n lowLevel\n notViorationLevel\n }\n checkStartTime\n valueType\n }\n desiredApplicationTimeDefault {\n start\n end\n valueType\n }\n }\n }\n systemCalendars {\n systemCalendarID\n name\n description\n year\n month\n day\n week\n dayOfWeek\n transferHolidayFlag\n textColor\n backgroundColor\n }\n calendarCommons {\n calendarCommonID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n description\n year\n month\n day\n week\n dayOfWeek\n textColor\n backgroundColor\n inputType\n }\n calendarSections {\n calendarSectionID\n sectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n description\n year\n month\n day\n week\n dayOfWeek\n textColor\n backgroundColor\n inputType\n }\n shiftSections {\n shift {\n shiftID\n deleteFlag\n sort\n name\n code\n mark\n count\n startTime\n endTime\n workTime\n nightStartTime\n nightEndTime\n nightWorkTime\n midNightWorkTime\n estimatedTextColor\n estimatedBackgroundColor\n fixedTextColor\n fixedBackgroundColor\n desiredTextColor\n desiredBackgroundColor\n notDesiredTextColor\n notDesiredBackgroundColor\n actualTextColor\n actualBackgroundColor\n shiftSections {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftSectionID\n sectionID\n shiftID\n usage\n }\n }\n usage\n }\n dateAggregates {\n targetShifts {\n shiftID\n name\n }\n targetShiftGroups {\n shiftGroupID\n name\n }\n targetStaffs {\n staffID\n name\n }\n targetStaffAttributeGroupCommonItems {\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n name\n }\n targetStaffAttributeGroupSectionItems {\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n name\n }\n dateAggregateID\n sectionID\n sort\n title\n isUse\n isAllStaff\n alternateText\n }\n staffAggregates {\n targetShifts {\n shiftID\n name\n }\n targetShiftGroups {\n shiftGroupID\n name\n }\n staffAggregateID\n sectionID\n title\n aggregateType\n aggregateRange\n aggregateDateKind\n hasWeekFlag {\n weekdayAndHolidaySelect {\n isWeekday\n isSaturday\n isSundayAndHoliday\n isCompensationHoliday\n }\n dayOfWeekSelect {\n isHoliday\n isCompensationHoliday\n isBeforeHoliday\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n dayOfWeekAndHolidaySelect {\n nonHoliday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n holiday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n }\n }\n sort\n isUse\n alternateText\n }\n ruleShiftTable {\n concurrencyStamp\n registrationTime\n registrationAccount\n ruleShiftTableID\n shiftTableID\n selected\n }\n }\n }\n}\n "])));function si(t){return b["b"](ii,t)}var li=Object(dn["a"])(io||(io=Object(un["a"])(["\n mutation requestAutocreation($model: InputRequestAutocreationModel!) {\n requestAutocreation(model: $model) {\n succeed\n result {\n shiftTableConcurrencyStamp\n shiftTableStatusConcurrencyStamp\n concurrencyStamp\n registrationTime\n registrationAccount\n automationExecutionContextID\n organizationID\n ticket\n isCanceled\n status\n }\n }\n}\n "])));function ci(t){return b["b"](li,t)}var ui=Object(dn["a"])(so||(so=Object(un["a"])(["\n mutation setOrderDateAggregate($id: Long!, $models: [SetOrderDateAggregateModel]!) {\n setOrderDateAggregate(sectionID: $id, models: $models) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateID\n sectionID\n sort\n title\n isUse\n isAllStaff\n alternateText\n dateAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateShiftID\n dateAggregateID\n shiftID\n shiftGroupID\n }\n dateAggregateStaffs {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateStaffID\n dateAggregateID\n staffID\n staffAttributeGroupCommonItemID\n staffAttributeGroupSectionItemID\n }\n }\n }\n}\n "])));function di(t){return b["b"](ui,t)}var fi=Object(dn["a"])(lo||(lo=Object(un["a"])(["\n mutation setOrderShift($models: [SetOrderShiftModel]!) {\n setOrderShift(models: $models) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftID\n deleteFlag\n sort\n name\n code\n mark\n count\n startTime\n endTime\n workTime\n nightStartTime\n nightEndTime\n nightWorkTime\n midNightWorkTime\n estimatedTextColor\n estimatedBackgroundColor\n fixedTextColor\n fixedBackgroundColor\n desiredTextColor\n desiredBackgroundColor\n notDesiredTextColor\n notDesiredBackgroundColor\n actualTextColor\n actualBackgroundColor\n shiftSections {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftSectionID\n sectionID\n shiftID\n usage\n }\n }\n }\n}\n "])));function mi(t){return b["b"](fi,t)}Object(dn["a"])(co||(co=Object(un["a"])(["\n mutation setOrderShiftGroup($models: [SetOrderShiftGroupModel]!) {\n setOrderShiftGroup(models: $models) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftGroupID\n sort\n name\n code\n }\n }\n}\n "])));var gi=Object(dn["a"])(uo||(uo=Object(un["a"])(["\n mutation setOrderStaffAggregate($id: Long!, $models: [SetOrderStaffAggregateModel]!) {\n setOrderStaffAggregate(sectionID: $id, models: $models) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateID\n sectionID\n title\n aggregateType\n aggregateRange\n aggregateDateKind\n hasWeekFlag {\n weekdayAndHolidaySelect {\n isWeekday\n isSaturday\n isSundayAndHoliday\n isCompensationHoliday\n }\n dayOfWeekSelect {\n isHoliday\n isCompensationHoliday\n isBeforeHoliday\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n dayOfWeekAndHolidaySelect {\n nonHoliday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n holiday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n }\n }\n sort\n isUse\n alternateText\n staffAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateShiftID\n staffAggregateID\n shiftID\n shiftGroupID\n }\n }\n }\n}\n "])));function hi(t){return b["b"](gi,t)}var vi=Object(dn["a"])(fo||(fo=Object(un["a"])(["\n mutation setOrderStaffAttributeGroupCommon($models: [SetOrderStaffAttributeGroupCommonModel]!) {\n setOrderStaffAttributeGroupCommon(models: $models) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupCommonItems {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n}\n "])));function pi(t){return b["b"](vi,t)}var bi=Object(dn["a"])(mo||(mo=Object(un["a"])(["\n mutation setOrderStaffAttributeGroupCommonItem($models: [SetOrderStaffAttributeGroupCommonItemModel]!, $id: Long!) {\n setOrderStaffAttributeGroupCommonItem(\n models: $models\n staffAttributeGroupCommonID: $id\n ) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function yi(t){return b["b"](bi,t)}var Si=Object(dn["a"])(go||(go=Object(un["a"])(["\n mutation setOrderStaffAttributeGroupSection($models: [SetOrderStaffAttributeGroupSectionModel]!, $id: Long!) {\n setOrderStaffAttributeGroupSection(models: $models, sectionID: $id) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupSectionItems {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n}\n "])));function Di(t){return b["b"](Si,t)}var Ci=Object(dn["a"])(ho||(ho=Object(un["a"])(["\n mutation setOrderStaffAttributeGroupSectionItem($models: [SetOrderStaffAttributeGroupSectionItemModel]!, $id: Long!) {\n setOrderStaffAttributeGroupSectionItem(\n models: $models\n staffAttributeGroupSectionID: $id\n ) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function wi(t){return b["b"](Ci,t)}var ki=Object(dn["a"])(vo||(vo=Object(un["a"])(["\n mutation setOrderStaffDisplayOrder($id: Long!, $models: [SetOrderStaffModel]!) {\n setOrderStaffDisplayOrder(statusID: $id, models: $models) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftTableStaffSettingID\n shiftTableStatusID\n staffID\n sort\n isAuto\n }\n }\n}\n "])));function Ii(t){return b["b"](ki,t)}var xi=Object(dn["a"])(po||(po=Object(un["a"])(["\n mutation suspensionAutocreation($id: Guid!) {\n suspensionAutocreation(ticket: $id) {\n succeed\n }\n}\n "])));function Ti(t){return b["b"](xi,t)}var Ai=Object(dn["a"])(bo||(bo=Object(un["a"])(["\n mutation updateAutomaticCreationTimeLimit($model: UpdateOptionSectionAutomaticCreationModel!) {\n updateAutomaticCreationTimeLimit(model: $model) {\n succeed\n result {\n optionSectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n allowChanges\n isSetTimeLimit\n timeLimit\n sectionID\n optionKey\n }\n }\n}\n "])));function _i(t){return b["b"](Ai,t)}var Oi=Object(dn["a"])(yo||(yo=Object(un["a"])(["\n mutation updateCalendarCommon($model: UpdateCalendarCommonModel!) {\n updateCalendarCommon(model: $model) {\n succeed\n result {\n calendarCommonID\n concurrencyStamp\n name\n description\n year\n month\n day\n week\n dayOfWeek\n textColor\n backgroundColor\n inputType\n }\n }\n}\n "])));function Ri(t){return b["b"](Oi,t)}var Fi=Object(dn["a"])(So||(So=Object(un["a"])(["\n mutation updateCalendarSection($model: UpdateCalendarSectionModel!) {\n updateCalendarSection(model: $model) {\n succeed\n result {\n calendarSectionID\n sectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n description\n year\n month\n day\n week\n dayOfWeek\n textColor\n backgroundColor\n inputType\n }\n }\n}\n "])));function Vi(t){return b["b"](Fi,t)}var ji=Object(dn["a"])(Do||(Do=Object(un["a"])(["\n mutation updateDateAggregate($model: UpdateDateAggregateModel!) {\n updateDateAggregate(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateID\n sectionID\n sort\n title\n isUse\n isAllStaff\n alternateText\n dateAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateShiftID\n dateAggregateID\n shiftID\n shiftGroupID\n }\n dateAggregateStaffs {\n concurrencyStamp\n registrationTime\n registrationAccount\n dateAggregateStaffID\n dateAggregateID\n staffID\n staffAttributeGroupCommonItemID\n staffAttributeGroupSectionItemID\n }\n }\n }\n}\n "])));function Ei(t){return b["b"](ji,t)}var Gi=Object(dn["a"])(Co||(Co=Object(un["a"])(["\n mutation updateDesiredApplicationTimeDefault($model: UpdateDesiredApplicationTimeDefaultModel!) {\n updateDesiredApplicationTimeDefault(model: $model) {\n succeed\n result {\n optionSectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n allowChanges\n start\n end\n sectionID\n optionKey\n }\n }\n}\n "])));function $i(t){return b["b"](Gi,t)}var Ni=Object(dn["a"])(wo||(wo=Object(un["a"])(["\n mutation updateDesiredShiftConfigs($model: UpdateDesiredShiftModel!) {\n updateDesiredShiftConfigs(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n desiredShiftID\n shiftTableStatusID\n staffID\n name\n requestStatus\n priority\n dates\n desiredShift {\n shiftID\n shiftGroupID\n }\n }\n }\n}\n "])));function Li(t){return b["b"](Ni,t)}var Mi=Object(dn["a"])(ko||(ko=Object(un["a"])(["\n mutation updateDisplayDesignConfig($model: UpdateOptionSectionDisplayDesignConfigModel!) {\n updateDisplayDesignConfig(model: $model) {\n succeed\n result {\n optionSectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n allowChanges\n isAbbreviated\n isLineNumber\n isActual\n isEvents\n isCurrentMonthStaffs\n hideAttributeCommons {\n staffAttributeGroupCommonID\n name\n }\n hideAttributeSections {\n staffAttributeGroupSectionID\n name\n }\n sectionID\n optionKey\n }\n }\n}\n "])));function Pi(t){return b["b"](Mi,t)}var Wi=Object(dn["a"])(Io||(Io=Object(un["a"])(["\n mutation updateEasySettingToRuleCommon($model: UpdateEasySettingConfigration!) {\n updateEasySettingToRuleCommon(model: $model) {\n succeed\n result {\n ruleCommonDetailID\n ruleCommonID\n concurrencyStamp\n registrationTime\n registrationAccount\n sort\n name\n easySettingPattern\n easySettingConfig {\n index\n valueType\n values\n }\n easySettingName\n ruleType\n selected\n }\n }\n}\n "])));function Bi(t){return b["b"](Wi,t)}var Hi=Object(dn["a"])(xo||(xo=Object(un["a"])(["\n mutation updateEasySettingToRuleShiftTable($model: UpdateEasySettingConfigration!) {\n updateEasySettingToRuleShiftTable(model: $model) {\n succeed\n result {\n ruleShiftTableDetailID\n ruleShiftTableID\n concurrencyStamp\n registrationTime\n registrationAccount\n name\n easySettingConfig {\n index\n valueType\n values\n }\n ruleType\n easySettingPattern\n easySettingName\n sort\n hasRuleCommon\n }\n }\n}\n "])));function qi(t){return b["b"](Hi,t)}var Qi=Object(dn["a"])(To||(To=Object(un["a"])(["\n mutation updateOrganization($model: UpdateOrganizationModel!) {\n updateOrganization(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n organizationID\n name\n isAttendanceRequest\n edition\n }\n }\n}\n "])));function Ui(t){return b["b"](Qi,t)}var zi=Object(dn["a"])(Ao||(Ao=Object(un["a"])(["\n mutation updateSection($model: UpdateSectionModel!) {\n updateSection(model: $model) {\n succeed\n result {\n sectionID\n deleteFlag\n registrationTime\n concurrencyStamp\n name\n mark\n textColor\n backgroundColor\n shiftTablePeriod\n fourWeekStartDay\n monthStartDay\n monthIsFourWeek\n monthReferenceDateFourWeek\n monthIsDispNextMonth\n }\n }\n}\n "])));function Ki(t){return b["b"](zi,t)}var Yi=Object(dn["a"])(_o||(_o=Object(un["a"])(["\n mutation updateShift($model: UpdateShiftModel!, $sections: [UpdateShiftSectionModel]!) {\n updateShift(shiftModel: $model, shiftSectionModels: $sections) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftID\n deleteFlag\n sort\n name\n code\n mark\n count\n startTime\n endTime\n workTime\n nightStartTime\n nightEndTime\n nightWorkTime\n midNightWorkTime\n estimatedTextColor\n estimatedBackgroundColor\n fixedTextColor\n fixedBackgroundColor\n desiredTextColor\n desiredBackgroundColor\n notDesiredTextColor\n notDesiredBackgroundColor\n actualTextColor\n actualBackgroundColor\n shiftSections {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftSectionID\n sectionID\n shiftID\n usage\n }\n }\n }\n}\n "])));function Zi(t){return b["b"](Yi,t)}Object(dn["a"])(Oo||(Oo=Object(un["a"])(["\n mutation updateShiftGroup($model: UpdateShiftGroupModel!) {\n updateShiftGroup(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftGroupID\n sort\n name\n code\n }\n }\n}\n "])));var Ji=Object(dn["a"])(Ro||(Ro=Object(un["a"])(["\n mutation updateShiftTableEditOption($model: UpdateShiftTableEditLockModel!) {\n updateShiftTableEditOption(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n optionSectionID\n sectionID\n optionKey\n allowChanges\n isPreviousMonthLock\n isFollowingMonthLock\n }\n }\n}\n "])));function Xi(t){return b["b"](Ji,t)}var ts=Object(dn["a"])(Fo||(Fo=Object(un["a"])(["\n mutation updateShiftTableManual($model: [UpdateShiftTableDetailModel]!) {\n updateShiftTableManual(models: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftTableDetailID\n shiftTableID\n staffID\n shiftIDs\n shiftTypes\n }\n }\n}\n "])));function es(t){return b["b"](ts,t)}var os=Object(dn["a"])(Vo||(Vo=Object(un["a"])(["\n mutation updateShiftTableStatus($model: UpdateShiftTableStatusModel!) {\n updateShiftTableStatus(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n shiftTableStatusID\n sectionID\n shiftTableID\n isEditing\n isDesired\n status\n startDate\n endDate\n workDays\n desireReceptionStartDate\n desireReceptionEndDate\n ticket\n }\n }\n}\n "])));function ns(t){return b["b"](os,t)}var as=Object(dn["a"])(jo||(jo=Object(un["a"])(["\n mutation updateStaff($model: UpdateStaffModel!) {\n updateStaff(model: $model) {\n succeed\n result {\n staff {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffID\n name\n nickName\n code\n status\n deleteFlag\n }\n staffTransfers {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffTransferID\n staffID\n sectionID\n reasonType\n applyDate\n name\n nickName\n description\n }\n }\n }\n}\n "])));function rs(t){return b["b"](as,t)}var is=Object(dn["a"])(Eo||(Eo=Object(un["a"])(["\n mutation updateStaffAggregate($model: UpdateStaffAggregateModel!) {\n updateStaffAggregate(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateID\n sectionID\n title\n aggregateType\n aggregateRange\n aggregateDateKind\n hasWeekFlag {\n weekdayAndHolidaySelect {\n isWeekday\n isSaturday\n isSundayAndHoliday\n isCompensationHoliday\n }\n dayOfWeekSelect {\n isHoliday\n isCompensationHoliday\n isBeforeHoliday\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n dayOfWeekAndHolidaySelect {\n nonHoliday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n holiday {\n isMonday\n isTuesday\n isWednesday\n isThursday\n isFriday\n isSaturday\n isSunday\n }\n }\n }\n sort\n isUse\n alternateText\n staffAggregateShifts {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAggregateShiftID\n staffAggregateID\n shiftID\n shiftGroupID\n }\n }\n }\n}\n "])));function ss(t){return b["b"](is,t)}var ls=Object(dn["a"])(Go||(Go=Object(un["a"])(["\n mutation updateStaffAttributeGroupCommon($model: UpdateStaffAttributeGroupCommonModel!) {\n updateStaffAttributeGroupCommon(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n staffAttributeGroupCommonItems {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n }\n}\n "])));function cs(t){return b["b"](ls,t)}var us=Object(dn["a"])($o||($o=Object(un["a"])(["\n mutation updateStaffAttributeGroupCommonItem($model: UpdateStaffAttributeGroupCommonItemModel!) {\n updateStaffAttributeGroupCommonItem(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupCommonItemID\n staffAttributeGroupCommonID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function ds(t){return b["b"](us,t)}var fs=Object(dn["a"])(No||(No=Object(un["a"])(["\n mutation updateStaffAttributeGroupSection($model: UpdateStaffAttributeGroupSectionModel!) {\n updateStaffAttributeGroupSection(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionID\n sectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function ms(t){return b["b"](fs,t)}var gs=Object(dn["a"])(Lo||(Lo=Object(un["a"])(["\n mutation updateStaffAttributeGroupSectionItem($model: UpdateStaffAttributeGroupSectionItemModel!) {\n updateStaffAttributeGroupSectionItem(model: $model) {\n succeed\n result {\n concurrencyStamp\n registrationTime\n registrationAccount\n staffAttributeGroupSectionItemID\n staffAttributeGroupSectionID\n sort\n deleteFlag\n name\n abbreviation\n }\n }\n}\n "])));function hs(t){return b["b"](gs,t)}var vs=Object(dn["a"])(Mo||(Mo=Object(un["a"])(["\n mutation updateViolationDisplayConfig($model: UpdateViolationDisplayConfigModel!) {\n updateViolationDisplayConfig(model: $model) {\n succeed\n result {\n optionSectionID\n concurrencyStamp\n registrationTime\n registrationAccount\n allowChanges\n isDateAggregate\n isStaffAggregate\n isPermissibleRange\n isNotVioration\n highLevel\n midLevel\n lowLevel\n notViorationLevel\n checkStartTime\n sectionID\n optionKey\n }\n }\n}\n "])));function ps(t){return b["b"](vs,t)}var bs=["日","月","火","水","木","金","土"],ys=["1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],Ss=function(t){var e=t.start,o=t.end;return{top:e.staffIndex=l&&e<=c){if(u===Po.Days){var f=t.staffAggregates.config[n].other.hasWeekFlag.weekdayAndHolidaySelect;f&&(o[e].sat&&f.isSaturday||o[e].sun&&f.isSundayAndHoliday||o[e].holiday&&f.isSundayAndHoliday||f.isWeekday)&&(i=!0)}if(u===Po.DayOfWeek){var m=t.staffAggregates.config[n].other.hasWeekFlag.dayOfWeekSelect;if(m)if(o[e].holiday&&m.isHoliday)i=!0;else if(o[e+1].holiday&&m.isBeforeHoliday)i=!0;else switch(o[e].dayOfWeek){case 0:m.isSunday&&(i=!0);break;case 1:m.isMonday&&(i=!0);break;case 2:m.isTuesday&&(i=!0);break;case 3:m.isWednesday&&(i=!0);break;case 4:m.isThursday&&(i=!0);break;case 5:m.isFriday&&(i=!0);break;case 6:m.isSaturday&&(i=!0);break;default:break}}if(u===Po.Holiday){var g=t.staffAggregates.config[n].other.hasWeekFlag.dayOfWeekAndHolidaySelect;if(g){var h={};switch(h=o[e].holiday?g.holiday:g.nonHoliday,o[e].dayOfWeek){case 0:h.isSunday&&(i=!0);break;case 1:h.isMonday&&(i=!0);break;case 2:h.isTuesday&&(i=!0);break;case 3:h.isWednesday&&(i=!0);break;case 4:h.isThursday&&(i=!0);break;case 5:h.isFriday&&(i=!0);break;case 6:h.isSaturday&&(i=!0);break;default:break}}}var v=t.shiftSections.find((function(t){return t.shiftID===a})),p=0;d!==Bo.WorkCount&&d!==Bo.CountWeekAverage||(p=1),d!==Bo.WorkTime&&d!==Bo.TimeWeekAverage||(p=null!==v&&void 0!==v&&v.workTime?(null===v||void 0===v?void 0:v.workTime)/3600:7),d===Bo.NightWorkTime&&(p=null!==v&&void 0!==v&&v.nightWorkTime?(null===v||void 0===v?void 0:v.nightWorkTime)/3600:0,p+=null!==v&&void 0!==v&&v.midNightWorkTime?(null===v||void 0===v?void 0:v.midNightWorkTime)/3600:0),d===Bo.ShiftCount&&(p=null!==v&&void 0!==v&&v.count?null===v||void 0===v?void 0:v.count:1),d!==Bo.TimeWeekAverage&&d!==Bo.CountWeekAverage||(p/=Math.round(t.selectShift.shiftTableStatus.workDays/7)),i&&(r[n]+=p)}}))},c=i;c<=s;c++)l(c);(e=t.staffAggregates.values[n]).splice.apply(e,[0,r.length].concat(Object(a["a"])(r)))}()},Cs=function(t,e){for(var o=e.right-e.left+1,n=new Array(t.dayAggregates.config.length),r=0;r0?t.year:n0)l=t.day;else{var u=0;t.dayOfWeek===Uo.Monday?u=1:t.dayOfWeek===Uo.Tuesday?u=2:t.dayOfWeek===Uo.Wednesday?u=3:t.dayOfWeek===Uo.Thursday?u=4:t.dayOfWeek===Uo.Friday?u=5:t.dayOfWeek===Uo.Saturday&&(u=6);var d=-1;t.week===cn.First?d=1:t.week===cn.Second?d=2:t.week===cn.Third?d=3:t.week===cn.Fourth?d=4:t.week===cn.Fifth&&(d=5),l=0;for(var f=0,m=1;m<=31;m++){var g=new Date(s,c,m);if(g.getMonth()!==c)break;if(g.getDay()===u&&f++,f===d){l=m;break}}}if(l>0){var h=new Date(s,c,l);"transferHolidayFlag"in t&&t.transferHolidayFlag&&0===h.getDay()&&h.setDate(h.getDate()+1),h>=e&&h<=o&&i.push({date:h,name:t.name})}})),i},ks={selectShiftTableID:function(t){return t.selectShiftTableID},updateShiftTableManual:function(t){return t.updateShiftTableManual},isDisplayShiftTable:function(t){return t.isDisplayShiftTable},inputShiftType:function(t){return t.inputShiftType},selectShift:function(t){return t.selectShift},staffs:function(t){return t.staffs},shifts:function(t){return t.shifts},displayables:function(t){return t.displayables},menus:function(t){return t.menus},shiftSections:function(t){return t.shiftSections},availableShifts:function(t){return t.availableShifts},target:function(t){return t.target},isTableDataReady:function(t){return t.isTableDataReady},selectShiftTableStatus:function(t){return t.selectShiftTableStatus},automationExecutionTicket:function(t){return t.automationExecutionTicket},automationExecutionStatus:function(t){return t.automationExecutionStatus},hasAggregates:function(t){return{day:t.dayAggregates.config.length>0,staff:t.staffAggregates.config.length>0}},headerColumns:function(t){return t.headerColumns},header:function(t){return{months:dt(t.days,(function(t){return t.date.getMonth()+1})).map((function(t,e){var o=Object(st["a"])(t,2),n=o[0],a=o[1];return{key:e,index:e,month:n,days:a.length}})),days:t.days.map((function(e,o){var n,a;return{key:o+t.headerColumns.length,index:o,day:e.date.getDate(),sat:6==e.date.getDay(),sun:0==e.date.getDay(),holiday:null!==(n=null===(a=e.event)||void 0===a?void 0:a.isHoliday)&&void 0!==n&&n,dayOfWeek:bs[e.date.getDay()],event:e.event}}))}},body:function(t){return t.staffs.map((function(e,o){return{key:o,index:o,headers:[{key:0,index:0,value:o+1},{key:1,index:1,value:"id"in e?e.id:""},{key:2,index:2,value:"name"in e?e.name:""}],shifts:t.shifts[o].map((function(n,a){var r,i,s,l=t.days[a],c=t.shiftSections.find((function(t){return t.shiftID===n}));if(c){var u,d,f=t.shiftsType[o][a];f===rn.Estimated?(u=c.estimatedTextColor,d=c.estimatedBackgroundColor):f===rn.Fixed?(u=c.fixedTextColor,d=c.fixedBackgroundColor):f===rn.Desired?(u=c.desiredTextColor,d=c.desiredBackgroundColor):(u="#000000",d=""),s={dutyId:c.shiftID,shiftID:c.shiftID,name:c.name,mark:c.mark,color:u,backgroundColor:d}}else s={dutyId:0,shiftID:-1,name:"",mark:"",color:"",backgroundColor:""};return{key:a+t.headerColumns.length,index:a,sat:6==l.date.getDay(),sun:0==l.date.getDay(),holiday:null!==(r=null===(i=l.event)||void 0===i?void 0:i.isHoliday)&&void 0!==r&&r,nodata:"nodata"in e,mark:s.mark,color:s.color,backgroundColor:0===t.displayables[o][a]?"#a9a9a9":s.backgroundColor,isSelectionTop:function(){var e=Ss(t.selection);return e.top==o&&e.left<=a&&a<=e.right},isSelectionBottom:function(){var e=Ss(t.selection);return e.bottom==o&&e.left<=a&&a<=e.right},isSelectionLeft:function(){var e=Ss(t.selection);return e.left==a&&e.top<=o&&o<=e.bottom},isSelectionRight:function(){var e=Ss(t.selection);return e.right==a&&e.top<=o&&o<=e.bottom}}}))}}))},cursorPosition:function(t){return t.cursorPosition},selectedRange:function(t){return Ss(t.selection)},dayAggregates:function(t){return t.dayAggregates.config.map((function(e,o){var n=mt(t.headerColumns.map((function(t){return t.width}))),a=t.dayAggregates.values[o];return{key:o,index:o,header:{value:e.name,style:{width:"".concat(n,"em"),"min-width":"".concat(n,"em"),"max-width":"".concat(n,"em")}},shifts:t.days.map((function(t,e){var o,n;return{value:a[e],key:e,index:e,sat:6==t.date.getDay(),sun:0==t.date.getDay(),holiday:null!==(o=null===(n=t.event)||void 0===n?void 0:n.isHoliday)&&void 0!==o&&o}})),alternateText:e.other.alternateText}}))},staffAggregateHeaders:function(t){return t.staffAggregates.config.map((function(t,e){return{key:e,index:e,value:t.name,alternateText:t.other.alternateText}}))},staffAggregates:function(t){return t.staffAggregates.values.map((function(t,e){return{key:e,index:e,shifts:t.map((function(t,e){return{key:e,index:e,value:t}}))}}))},init:function(t){t.selection.start.staffIndex=0,t.selection.end.staffIndex=0,t.days.forEach((function(e,o){var n;e.date.getTime()==(null===(n=t.target.start)||void 0===n?void 0:n.getTime())&&(t.selection.start.dateIndex=o,t.selection.end.dateIndex=o)}));var e=t.staffs.length,o=e.toString().length+1,n=ft(t.staffs.map((function(t){return"name"in t&&void 0!==t.name?t.name.length:0})))+1,a=4;t.headerColumns.splice(0,t.headerColumns.length,{index:0,name:"#",width:o,style:{left:"0",width:"".concat(o,"em"),"min-width":"".concat(o,"em"),"max-width":"".concat(o,"em")}},{index:1,name:"ID",width:a,style:{left:"".concat(o,"em"),width:"".concat(a,"em"),"min-width":"".concat(a,"em"),"max-width":"".concat(a,"em")}},{index:2,name:"名前",width:n,style:{left:"".concat(o+a,"em"),width:"".concat(n,"em"),"min-width":"".concat(n,"em"),"max-width":"".concat(n,"em")}}),t.aggregateIndices=new Array,t.duties.forEach((function(e){var o=t.dayAggregates.config.filter((function(t){return t.dutyIds.some((function(t){return t==e.dutyId}))})),n=t.staffAggregates.config.filter((function(t){return t.dutyIds.some((function(t){return t==e.dutyId}))}));t.aggregateIndices[e.dutyId]={day:o.map((function(t){return t.index})),staff:n.map((function(t){return t.index}))}}))},changeShift:function(t,e){var o=e.changeData;o.length&&o.map((function(e){var o=t.staffs.findIndex((function(t){return t.id===e.staffID}));t.staffs[o].concurrencyStamp=e.concurrencyStamp}))},load:function(t,e){var o,r,i,s,l,c=e.loadData;t.staffs=c.thisMonthShiftTable.shiftTableDetailWithStaffs.map((function(t,e){var o;return{id:t.staffID,name:t.staffName,sort:e+1,concurrencyStamp:t.concurrencyStamp,concurrencyStamp2:null===(o=t.shiftTableStaffSetting)||void 0===o?void 0:o.concurrencyStamp,shiftTableDetailID:t.shiftTableDetailID,staffAttributeGroupCommonItems:t.staffAttributeGroupCommonItems,staffAttributeGroupSectionItems:t.staffAttributeGroupSectionItems}})),t.target.start=new Date(c.thisShiftTableStatus.startDate);var u=new Date(t.target.start),d=new Date(u);d.setDate(d.getDate()+c.thisShiftTableStatus.workDays+28),u.setDate(u.getDate()-28);var f=new Date(u),m=[{date:void 0,name:""}];m.splice.apply(m,[0,m.length].concat(Object(a["a"])(ws(c.calendarCommons,f,d)))),m.splice.apply(m,[m.length,0].concat(Object(a["a"])(ws(c.systemCalendars,f,d))));var g=[];while(u0&&t.updateShiftTableManual)try{t.updateShiftTableManual({model:e})}catch(a){console.log("queryError(GQL):",a)}},setInitialScrollLeft:function(t,e){var o=e.scrollLeft;t.initialScrollLeft=o},setCurrent:function(t,e){var o=e.staffIndex,n=e.dateIndex;t.cursorPosition.staffIndex=o,t.cursorPosition.dateIndex=n,t.isDragging&&(t.selection.end.staffIndex=o,t.selection.end.dateIndex=n)},setCurrentStaff:function(t,e){var o=e.staffIndex;t.cursorPosition.dateIndex=-1,t.selection.end.dateIndex=-1,t.cursorPosition.staffIndex=o,t.isDragging&&(t.selection.end.staffIndex=o)},setCurrentDate:function(t,e){var o=e.dateIndex;t.cursorPosition.staffIndex=-1,t.selection.end.staffIndex=-1,t.cursorPosition.dateIndex=o,t.isDragging&&(t.selection.end.dateIndex=o)},startSelection:function(t,e){var o=e.staffIndex,n=e.dateIndex;t.selection.start.staffIndex=o,t.selection.start.dateIndex=n,t.selection.end.staffIndex=o,t.selection.end.dateIndex=n,t.isDragging=!0},endSelection:function(t){t.isDragging=!1},setShift:function(t,e){var o=e.dutyId;if(t.selectShiftTableStatus!==an.Confirm){for(var n=Ss(t.selection),r=n.right-n.left+1,i=new Array(r).fill(o),s=0===o?rn.None:t.inputShiftType,l=new Array(r).fill(s),c=new Array(0),u=n.top;u<=n.bottom;u++)if(!("nodata"in t.staffs[u])){for(var d,f,m=Array.from(i),g=Array.from(l),h=0;hv&&n.left0&&t.updateShiftTableManual)try{t.updateShiftTableManual({model:c})}catch(y){console.log("queryError(GQL):",y)}}},calcAggregates:function(t){t.selection.start.staffIndex=0,t.selection.start.dateIndex=0,t.selection.end.staffIndex=t.staffs.length-1,t.selection.end.dateIndex=t.days.length-1;var e=Ss(t.selection);Ds(t,e),Cs(t,e),t.selection.start.staffIndex=0,t.selection.start.dateIndex=28,t.selection.end.staffIndex=0,t.selection.end.dateIndex=28},aggregate:function(t,e){var o=e.range,n=e.region;o||(o=Ss(n))},copyShift:function(t){var e=Ss(t.selection);t.copyRange=e,t.copyShifts=new Array(e.bottom-e.top+1).fill(0).map((function(){return new Array(e.right-e.left+1).fill(0)}));for(var o=e.left;o<=e.right;o++)for(var n=e.top;n<=e.bottom;n++)t.copyShifts[n-e.top][o-e.left]=t.shifts[n][o]},pasteShift:function(t){if(t.copyShifts.length&&t.selectShiftTableStatus!==an.Confirm)for(var e=t.copyRange,o=e.right-e.left,n=e.bottom-e.top,a=0,r=0,i=0;i<=o;i++)for(var s=0;s<=n;s++)a=t.selection.start.staffIndex+s,r=t.selection.start.dateIndex+i,a>=t.staffs.length||r>=t.days.length||"nodata"in t.staffs[a]||t.shifts[a].splice(r,1,t.copyShifts[s][i])},deleteShift:function(t){if(t.selectShiftTableStatus!==an.Confirm)for(var e=Ss(t.selection),o=e.right-e.left+1,n=new Array(o).fill(0),r=e.top;r<=e.bottom;r++){var i;(i=t.shifts[r]).splice.apply(i,[e.left,o].concat(Object(a["a"])(n)))}},selectAll:function(t){t.selection.start.staffIndex=0,t.selection.start.dateIndex=0,t.selection.end.staffIndex=t.staffs.length-1,t.selection.end.dateIndex=t.days.length-1},shiftUpSelection:function(t){t.selection.start.staffIndex>0&&(t.selection.start.staffIndex--,t.selection.end.staffIndex--)},shiftDownSelection:function(t){t.selection.end.staffIndex0&&(t.selection.start.dateIndex--,t.selection.end.dateIndex--)},shiftRightSelection:function(t){t.selection.end.dateIndex-1&&o.ruleShiftDetails.splice(e,1)})),e.callback.onSuccess(null)}catch(n){e.callback.onError(n)}},deleteShiftCommonRuleDetails:function(t,e){var o=t.state;try{e.shiftCommonRuleDetails.map((function(t){var e=o.ruleCommonDetails.findIndex((function(e){return e.ruleCommonDetailID===t.ruleCommonDetailID}));e>-1&&o.ruleCommonDetails.splice(e,1)})),e.callback.onSuccess(null)}catch(n){e.callback.onError(n)}},saveSimpleRules:function(t,e){var o=t.state;try{o.simpleRules=o.simpleRules.concat(e.simpleRules),e.callback.onSuccess(null)}catch(n){e.callback.onError(n)}}},$l={deleteSimpleRule:function(t,e){e.simpleRuleNo},setRuleCommonDetailID:function(t,e){var o=e.value;t.selectRuleCommonDetailID=o},setRuleCommonID:function(t,e){var o=e.value;t.selectRuleCommonID=o},setRuleShiftTableID:function(t,e){var o=e.value;t.selectRuleShiftTableID=o},setRuleShiftTableDetailName:function(t,e){var o=e.value;t.selectRuleShiftTableDetailName=o},setIsSettingsViolation:function(t,e){var o=e.value;t.selectIsSettingsViolation=o}},Nl={state:jl,namespaced:!0,getters:El,actions:Gl,mutations:$l},Ll=Nl,Ml=o("d4ec"),Pl=o("bee2"),Wl=o("2f62");function Bl(t){return new Hl(t)}y["default"].use(Wl["b"]);var Hl=function(){function t(e){Object(Ml["a"])(this,t);var o=new Wl["a"](e);this.getRawStore=function(){return o};var n=o.dispatch,a=o.commit;this.dispatch=function(t,e){return n(t,e)},this.commit=function(t,e,o){a(t,e,o)},this.getState=function(){return o.state},this.getters=o.getters}return Object(Pl["a"])(t,[{key:"state",get:function(){return this.getState()}},{key:"rawStore",get:function(){return this.getRawStore()}}]),t}(),ql="ramanas-85A9EE8F-4ED3-4136-8502-A6F3926A010E",Ql=["sun","mon","tue","wed","thu","fri","sat"],Ul=["01-01","01-11","02-11","02-23","03-20","04-29","05-03","05-04","05-05","07-22","07-23","08-09","09-20","09-23","11-03","11-23"],zl={failure:"システム障害発生中のため、Ramanasサービスの現在利用不可です。ご迷惑をおかけして申し訳ありません。"},Kl={selectNo:-1},Yl={selectNo:function(t){return t.selectNo}},Zl={setSelectNo:function(t,e){var o=e.value;t.selectNo=o}},Jl={state:Kl,mutations:Zl,namespaced:!0,getters:Yl},Xl=Jl,tc={stepProgress:0,subStepProgress:0,display:{drawerWidth:256,padding:12,drawer:!0},steps:[{title:"初期設定ウィザード開始",subSteps:[]},{title:"組織の設定",subSteps:[{title:"基本設定"}]},{title:"所属の設定",subSteps:[{title:"基本設定"},{title:"オプション"}]},{title:"カレンダーの設定",subSteps:[{title:"組織ごとの行事"},{title:"所属ごとの行事"}]},{title:"スタッフの設定",subSteps:[{title:"スタッフ属性(組織)"},{title:"スタッフ属性(所属)"},{title:"スタッフ"},{title:"スタッフ属性と連携"},{title:"スタッフの表示順"}]},{title:"シフトの設定",subSteps:[{title:"所属で使用するシフト"}]},{title:"初期設定ウィザード完了",subSteps:[]}]},ec={setDisplayDrawer:function(t,e){var o=e.value;t.display.drawer=o},setStepProgress:function(t,e){var o=e.stepProgress;t.stepProgress=o},setSubStepProgress:function(t,e){var o=e.subStepProgress;t.subStepProgress=o}},oc={state:tc,namespaced:!0,mutations:ec},nc=oc,ac={modules:{main:J,auth:it,shiftTable:Rs,staffs:Gs,shiftRule:Ll,accounts:Xl,settingWizard:nc},plugins:[Object(z["a"])({key:ql,paths:["auth.signedIn","auth.signInAlias","auth.organizationCode","auth.saveUsername","main.display.drawer"],storage:localStorage})]},rc=Bl(ac);function ic(){var t=Object(r["d"])($);if(!t)throw new Error("Store is not defined");return t}var sc=Object(r["b"])({setup:function(){var t=ic(),e=bk(),o=Object(r["a"])((function(){return t.getters["auth/username"]})),n=function(){var e=t.state.main.display.drawer;t.commit("main/setDisplayDrawer",{value:!e})},a=function(){t.dispatch("auth/signOut"),null===e||void 0===e||e.push({path:"/signin"})};return{username:o,store:Object(r["o"])(t),router:Object(r["o"])(e),navIconClick:n,signOut:a}}}),lc=sc,cc=(o("0600"),o("6544")),uc=o.n(cc),dc=o("40dc"),fc=o("5bc1"),mc=o("8336"),gc=o("132d"),hc=o("adda"),vc=o("2fa4"),pc=Object(k["a"])(lc,Q,U,!1,null,"4805268b",null),bc=pc.exports;uc()(pc,{VAppBar:dc["a"],VAppBarNavIcon:fc["a"],VBtn:mc["a"],VIcon:gc["a"],VImg:hc["a"],VSpacer:vc["a"]});var yc=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-navigation-drawer",{attrs:{app:""},model:{value:t.state.drawer,callback:function(e){t.$set(t.state,"drawer",e)},expression:"state.drawer"}},[0===t.state.items.length?o("AppDrawer",{attrs:{"is-loading":!1}}):o("v-list",{attrs:{dense:"",nav:""}},[t._l(t.state.items,(function(e){return[0===e.subMenu.length?o("v-list-item",{key:e.title,attrs:{to:e.route}},[o("v-list-item-content",[o("v-list-item-title",[t._v(t._s(e.title))])],1)],1):t._e(),e.subMenu.length>0?o("v-list-group",{key:e.title,attrs:{value:!1},scopedSlots:t._u([{key:"activator",fn:function(){return[o("v-list-item-title",[t._v(t._s(e.title))])]},proxy:!0}],null,!0)},t._l(e.subMenu,(function(e){return o("v-list-item",{key:e.title,staticClass:"ml-5",attrs:{link:"",to:e.route}},[o("v-list-item-title",[t._v(t._s(e.title))])],1)})),1):t._e()]}))],2)],1)},Sc=[],Dc=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[t.isTableDataReady&&t.isDisplayShiftTable?o("v-col",{staticClass:"my-5"},[o("v-row",{class:{"point-event-none":t.isRunning},attrs:{justify:"center"}},[o("v-btn",{staticClass:"mb-5 mr-2",attrs:{color:"primary"},on:{click:function(e){return t.createShiftTable()}}},[t._v(" 自動作成開始 ")])],1),o("v-row",{attrs:{justify:"center"}},[o("v-btn",{staticClass:"mb-5 mr-2",attrs:{color:"primary"},on:{click:function(e){return t.dispViolation()}}},[t._v(" 違反表示 ")])],1),o("v-divider",{staticClass:"ma-5"}),o("v-row",{attrs:{justify:"center"}},[o("v-radio-group",{staticClass:"ma-2",attrs:{label:"入力モード"},on:{change:t.changeMode},model:{value:t.state.inputMode,callback:function(e){t.$set(t.state,"inputMode",e)},expression:"state.inputMode"}},[o("v-radio",{attrs:{label:"予定",value:"ESTIMATED"}}),o("v-radio",{attrs:{label:"固定",value:"FIXED"}})],1)],1),o("v-divider",{staticClass:"ma-3"}),t.isTableDataReady?o("v-row",{attrs:{justify:"center"}},[o("v-card",{staticClass:"ms-2",attrs:{outlined:"",shaped:"",elevation:"3"}},[o("v-simple-table",{attrs:{"fixed-header":""},scopedSlots:t._u([{key:"default",fn:function(){return[o("thead",[o("tr",[o("th",{staticClass:"px-1 py-0"},[t._v("Key")]),o("th",{staticClass:"px-1 py-0"},[t._v("予定")]),o("th",{staticClass:"px-1 py-0"},[t._v("固定")]),o("th",{staticClass:"px-1 py-0"},[t._v("希望")]),o("th",{staticClass:"px-1 py-0"},[t._v("名称")])])]),o("tbody",t._l(t.availableShifts,(function(e){return o("tr",{key:e.key},[o("td",{staticClass:"px-1"},[t._v(t._s(e.key))]),o("td",{staticClass:"px-0"},[o("v-col",{staticClass:"align-center mt-0 ps-0 pe-1"},[o("span",{staticClass:"px-0 py-1 color-pick-title color-box",style:{color:e.estimatedTextColor,backgroundColor:e.estimatedBackgroundColor}},[t._v(t._s(e.mark))])])],1),o("td",{staticClass:"px-0"},[o("v-col",{staticClass:"align-center mt-0 ps-0 pe-1"},[o("span",{staticClass:"px-0 py-1 color-pick-title color-box",style:{color:e.fixedTextColor,backgroundColor:e.fixedBackgroundColor}},[t._v(t._s(e.mark))])])],1),o("td",{staticClass:"px-0"},[o("v-col",{staticClass:"align-center mt-0 ps-0 pe-1"},[o("span",{staticClass:"px-0 py-1 color-pick-title color-box",style:{color:e.desiredTextColor,backgroundColor:e.desiredBackgroundColor}},[t._v(t._s(e.mark))])])],1),o("td",{staticClass:"ps-0 pe-1"},[t._v(t._s(e.name))])])})),0)]},proxy:!0}],null,!1,2739122584)})],1)],1):t._e()],1):o("v-col",{staticClass:"my-5"})],1)},Cc=[],wc=Object(r["b"])({setup:function(){var t=ic(),e=Object(r["n"])({inputMode:rn.Estimated}),o=Object(r["a"])((function(){return t.getters["shiftTable/isTableDataReady"]})),n=Object(r["a"])((function(){return t.getters["shiftTable/availableShifts"]})),a=(t.getters["shiftTable/selectShiftTableID"],t.getters["shiftTable/selectShift"]),i=Object(r["a"])((function(){var e=t.getters["shiftTable/automationExecutionStatus"];return console.log(e),e===Ho.Running||e===Ho.Successful})),s=Object(r["a"])((function(){return t.getters["shiftTable/isDisplayShiftTable"]})),l=function(){if(console.log("createShiftTable call"),console.log(o),o.value){var e={shiftTableID:t.getters["shiftTable/selectShiftTableID"],shiftTableConcurrencyStamp:a.shiftTable.concurrencyStamp,shiftTableStatusConcurrencyStamp:a.shiftTableStatus.concurrencyStamp};console.log(e),m({model:e})}},c=function(){console.log("preCheck call"),t.commit("shiftTable/setAutomationExecutionStatus",{status:Ho.Successful})},u=function(){pk.push({name:"system-settings-violation-list"})},d=function(){t.commit("shiftTable/setInputShiftType",{inputMode:e.inputMode})},f=ci({fetchPolicy:"no-cache"}),m=f.mutate,g=(f.loading,f.error,f.called,f.onDone);f.onError;return g((function(e){var o,n;if(console.log("requestOnDone call"),!e.errors&&null!==(o=e.data)&&void 0!==o&&null!==(n=o.requestAutocreation)&&void 0!==n&&n.succeed){var a,r,i,s;t.commit("shiftTable/setAutomationExecutionTicket",{ticket:null===(a=e.data.requestAutocreation.result)||void 0===a?void 0:a.ticket}),console.log("ticket",null===(r=e.data.requestAutocreation.result)||void 0===r?void 0:r.ticket);var l=null===(i=e.data.requestAutocreation.result)||void 0===i?void 0:i.shiftTableConcurrencyStamp,c=null===(s=e.data.requestAutocreation.result)||void 0===s?void 0:s.shiftTableStatusConcurrencyStamp;t.commit("shiftTable/setSelectShiftConcurrencyStamp",{shiftTable:l,shiftTableStatus:c}),t.commit("shiftTable/setAutomationExecutionStatus",{status:Ho.Running})}})),{state:e,availableShifts:n,isTableDataReady:o,isRunning:i,isDisplayShiftTable:s,createShiftTable:l,preCheck:c,dispViolation:u,changeMode:d}}}),kc=wc,Ic=o("b0af"),xc=o("62ad"),Tc=o("ce7e"),Ac=o("67b6"),_c=o("43a6"),Oc=o("0fd9"),Rc=o("1f4f"),Fc=Object(k["a"])(kc,Dc,Cc,!1,null,null,null),Vc=Fc.exports;uc()(Fc,{VBtn:mc["a"],VCard:Ic["a"],VCol:xc["a"],VDivider:Tc["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSimpleTable:Rc["a"]});var jc=Object(r["b"])({components:{AppDrawer:Vc},setup:function(){var t=ic(),e=Object(r["n"])({drawer:t.state.main.display.drawer,items:t.state.main.display.drawerContent});return Object(r["s"])(e,(function(e){if(t.state.main.display.drawer!=e.drawer){var o=e.drawer;t.commit("main/setDisplayDrawer",{value:o})}})),Object(r["s"])(t.state.main.display,(function(t){t.drawer!=e.drawer&&(e.drawer=t.drawer),t.drawerContent!=e.items&&(e.items=t.drawerContent)})),{state:e}}}),Ec=jc,Gc=o("8860"),$c=o("56b0"),Nc=o("da13"),Lc=o("5d23"),Mc=o("f774"),Pc=Object(k["a"])(Ec,yc,Sc,!1,null,null,null),Wc=Pc.exports;uc()(Pc,{VList:Gc["a"],VListGroup:$c["a"],VListItem:Nc["a"],VListItemContent:Lc["a"],VListItemTitle:Lc["b"],VNavigationDrawer:Mc["a"]});var Bc=Symbol(),Hc=Symbol(),qc=Symbol(),Qc=Symbol(),Uc=Symbol(),zc=Symbol(),Kc=Symbol(),Yc=Symbol(),Zc=Symbol(),Jc=Object(r["b"])({components:{appDrawer:Wc,appNavigation:bc},setup:function(){var t=ic(),e=bk(),o=Object(r["n"])({isLoading:!0,easySettingPatternDefine:[]});Object(r["m"])(Bc,o);var n=Object(r["a"])((function(){return null===t||void 0===t?void 0:t.state.auth.signedIn}));null!==t&&void 0!==t&&t.state.auth.signedIn||e.push("/signIn"),e.beforeEach((function(t,e,o){var n;document.title=null===(n=t.meta)||void 0===n?void 0:n.title,o()}));var i=Ta({fetchPolicy:"no-cache"}),s=(i.result,i.loading,i.onResult);i.error,i.refetch;return s((function(t){if(console.log("getDefineOnResult call"),!t.error&&t.data.getEasySettingPatternDefine){var e;console.log(t.data.getEasySettingPatternDefine);var n=t.data.getEasySettingPatternDefine.map((function(t){return{pattern:null===t||void 0===t?void 0:t.pattern,name:null===t||void 0===t?void 0:t.name,inputItems:null===t||void 0===t?void 0:t.inputItems}}));(e=o.easySettingPatternDefine).splice.apply(e,[0,o.easySettingPatternDefine.length].concat(Object(a["a"])(n))),console.log("state",o)}o.isLoading=!1})),{isSignedIn:n,state:o}}}),Xc=Jc,tu=o("7496"),eu=o("a523"),ou=o("553a"),nu=o("f6c4"),au=Object(k["a"])(Xc,H,q,!1,null,null,null),ru=au.exports;uc()(au,{VApp:tu["a"],VCol:xc["a"],VContainer:eu["a"],VFooter:ou["a"],VMain:nu["a"]});var iu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",[n("v-main",{staticClass:"yellow lighten-5"},[n("v-container",[n("div",{staticClass:"wrap-center"},[n("v-card",{attrs:{width:"480"}},[n("v-card-title",[n("v-row",{staticClass:"ma-3",attrs:{justify:"center"}},[n("img",{staticClass:"logo",attrs:{src:o("d742"),alt:"シフト表自動作成システム - ラマナス"}})])],1),n("v-card-text",[n("v-stepper",{model:{value:t.state.step,callback:function(e){t.$set(t.state,"step",e)},expression:"state.step"}},[n("v-stepper-items",[n("v-stepper-content",{attrs:{step:"signIn"}},[n("v-form",{staticClass:"ma-3 pa-3",attrs:{"lazy-validation":""},model:{value:t.state.step1.valid,callback:function(e){t.$set(t.state.step1,"valid",e)},expression:"state.step1.valid"}},[n("v-text-field",{attrs:{rules:t.rules.organizationCode,label:"組織コード",outlined:"",required:""},model:{value:t.state.step1.organizationCode,callback:function(e){t.$set(t.state.step1,"organizationCode",e)},expression:"state.step1.organizationCode"}}),n("v-text-field",{attrs:{rules:t.rules.username,label:"メールアドレス",outlined:"",required:""},model:{value:t.state.step1.username,callback:function(e){t.$set(t.state.step1,"username",e)},expression:"state.step1.username"}}),n("v-text-field",{attrs:{"append-icon":t.showPassword1?"mdi-eye":"mdi-eye-off",rules:t.rules.password,type:t.showPassword1?"text":"password",label:"パスワード",outlined:"",required:""},on:{"click:append":function(e){t.showPassword1=!t.showPassword1}},model:{value:t.state.step1.password,callback:function(e){t.$set(t.state.step1,"password",e)},expression:"state.step1.password"}}),n("v-checkbox",{attrs:{label:"メールアドレスを記憶する"},model:{value:t.state.step1.saveUsername,callback:function(e){t.$set(t.state.step1,"saveUsername",e)},expression:"state.step1.saveUsername"}}),n("v-btn",{staticClass:"mr-4",attrs:{disabled:!t.state.step1.valid||t.state.step1.isSubmitting,color:"primary",block:"",loading:t.state.step1.isSubmitting},on:{click:t.signIn}},[t._v(" サインイン ")])],1)],1),n("v-stepper-content",{attrs:{step:"confirmTotpCode"}},[n("p",[n("span",[t._v("Google Authenticator")]),n("span",[t._v("アプリに")]),n("span",[t._v("表示された")]),n("span",[t._v("認証コード(6桁)を")]),n("span",[t._v("入力して")]),n("span",[t._v("ください。")])]),n("v-form",{model:{value:t.state.step2.valid,callback:function(e){t.$set(t.state.step2,"valid",e)},expression:"state.step2.valid"}},[n("v-otp-input",{attrs:{length:"6"},on:{finish:t.verifyTotpCode},model:{value:t.state.step2.totpCode,callback:function(e){t.$set(t.state.step2,"totpCode",e)},expression:"state.step2.totpCode"}})],1),t.state.step1.isSubmitting?n("v-progress-linear",{attrs:{indeterminate:"",color:"cyan"}}):t._e()],1),n("v-stepper-content",{attrs:{step:"requireNewPassword"}},[n("v-form",{staticClass:"ma-3 pa-3",attrs:{"lazy-validation":""},model:{value:t.state.step3.valid,callback:function(e){t.$set(t.state.step3,"valid",e)},expression:"state.step3.valid"}},[n("p",[t._v("新しいパスワードを設定してください")]),n("v-text-field",{attrs:{"append-icon":t.showPassword1?"mdi-eye":"mdi-eye-off",rules:t.rules.password,type:t.showPassword1?"text":"password",label:"新パスワード",outlined:"",required:""},on:{"click:append":function(e){t.showPassword1=!t.showPassword1}},model:{value:t.state.step3.password1,callback:function(e){t.$set(t.state.step3,"password1",e)},expression:"state.step3.password1"}}),n("v-text-field",{attrs:{rules:t.rules.password3,type:t.showPassword1?"text":"password",label:"新パスワード確認",outlined:"",required:""},model:{value:t.state.step3.password2,callback:function(e){t.$set(t.state.step3,"password2",e)},expression:"state.step3.password2"}}),n("v-btn",{staticClass:"mr-4",attrs:{disabled:!t.state.step3.valid,color:"primary",block:""},on:{click:t.forcePasswordChange}},[t._v(" 設定 ")])],1)],1),n("v-stepper-content",{attrs:{step:"resetPassword"}},[n("v-form",{staticClass:"ma-3 pa-3",attrs:{"lazy-validation":""},model:{value:t.state.step4.valid,callback:function(e){t.$set(t.state.step4,"valid",e)},expression:"state.step4.valid"}},[n("p",[t._v("新しいパスワードを設定してください")]),n("v-text-field",{attrs:{"append-icon":t.showPassword1?"mdi-eye":"mdi-eye-off",rules:t.rules.password,type:t.showPassword1?"text":"password",label:"新パスワード",outlined:"",required:""},on:{"click:append":function(e){t.showPassword1=!t.showPassword1}},model:{value:t.state.step4.password1,callback:function(e){t.$set(t.state.step4,"password1",e)},expression:"state.step4.password1"}}),n("v-text-field",{attrs:{rules:t.rules.password4,type:t.showPassword1?"text":"password",label:"新パスワード確認",outlined:"",required:""},model:{value:t.state.step4.password2,callback:function(e){t.$set(t.state.step4,"password2",e)},expression:"state.step4.password2"}}),n("p",[t._v("メールに届いた検証コード(6桁)を入力してください")]),n("v-otp-input",{attrs:{type:"number",length:"6"},model:{value:t.state.step4.confirmCode,callback:function(e){t.$set(t.state.step4,"confirmCode",e)},expression:"state.step4.confirmCode"}}),n("v-btn",{staticClass:"mr-4",attrs:{disabled:!t.state.step4.valid||t.state.step4.confirmCode.length<6,color:"primary",block:""},on:{click:t.resetConfirm}},[t._v(" 設定 ")])],1)],1)],1)],1),n("div",{staticClass:"mt-3 d-flex flex-row-reverse"},[n("p",[n("a",{attrs:{href:"#"},on:{click:t.reset}},[t._v("パスワードを忘れた方はこちらをクリック。")])])])],1)],1)],1)]),n("v-snackbar",{attrs:{color:"error"},model:{value:t.state.hasError,callback:function(e){t.$set(t.state,"hasError",e)},expression:"state.hasError"}},[t._v(" "+t._s(t.state.errorMessage)+" ")])],1)],1)},su=[],lu=Object(r["b"])({setup:function(){var t=!1,e=ic(),o=bk(),n=v(),a=Object(r["n"])({step:"signIn",complete:!1,hasError:!1,errorMessage:"",step1:{valid:!1,saveUsername:e.state.auth.saveUsername,organizationCode:e.state.auth.saveUsername?e.state.auth.organizationCode:"",username:e.state.auth.saveUsername?e.state.auth.signInAlias:"",password:"",isSubmitting:!1},step2:{valid:!1,totpCode:"",isSubmitting:!1},step3:{valid:!1,password1:"",password2:"",isSubmitting:!1},step4:{valid:!1,password1:"",password2:"",confirmCode:"",isSubmitting:!1}}),i=function(t){return a.step3.password1==t},s=function(t){return a.step4.password1==t},l={organizationCode:[function(t){return!!t||"組織コードを入力してください。"}],username:[function(t){return!!t||"メールアドレスを入力してください。"}],password:[function(t){return!!t||"パスワードを入力してください。"}],password3:[function(t){return i(t)||"パスワードが異なります。"}],password4:[function(t){return s(t)||"パスワードが異なります。"}]},c=o?yk(o):void 0,u=null;u=c&&c["RedirectUrl"]?c["RedirectUrl"]:"/",null===n||void 0===n||n.debug("Redirect URL:".concat(u)),Object(r["s"])(e.state.auth,(function(t,e){e.signedIn&&u&&o.push({path:u})}));var d=function(){null===n||void 0===n||n.debug("sign in clicked"),a.step1.organizationCode&&a.step1.username&&a.step1.password&&(a.step1.isSubmitting=!0,e.dispatch("auth/signIn",{username:a.step1.username,password:a.step1.password,organizationCode:a.step1.organizationCode,saveUsername:a.step1.saveUsername,onSoftwareToken:function(){a.step="confirmTotpCode",a.step1.password="",a.step2.totpCode="",a.step1.isSubmitting=!1,a.step2.isSubmitting=!1,a.step3.isSubmitting=!1,a.step4.isSubmitting=!1},onRequireNewPassword:function(t){a.step="requireNewPassword",a.user=t,a.step1.password="",a.step2.totpCode="",a.step1.isSubmitting=!1,a.step2.isSubmitting=!1,a.step3.isSubmitting=!1,a.step4.isSubmitting=!1},onResetPassword:function(){a.step="resetPassword",a.step1.password="",a.step2.totpCode="",a.step1.isSubmitting=!1,a.step2.isSubmitting=!1,a.step3.isSubmitting=!1,a.step4.isSubmitting=!1},onError:function(t){t&>(t)&&("Incorrect username or password."==t.message&&(a.errorMessage="組織コード、メールアドレス、パスワードが違います。",a.hasError=!0),"Password attempts exceeded"==t.message&&(a.errorMessage="しばらく時間をおいてから再度お試しください。",a.hasError=!0)),a.step1.isSubmitting=!1,a.step2.isSubmitting=!1,a.step3.isSubmitting=!1,a.step4.isSubmitting=!1}}))},f=function(){a.step2.isSubmitting=!0,e.dispatch("auth/confirmSignIn",{code:a.step2.totpCode,onSuccess:function(){console.log("Verify TOTP ==> success")},onError:function(t){console.log("Verify TOTP ==> error",t),a.errorMessage="検証コードの検証に失敗しました。",a.hasError=!0}})},m=function(){a.step3.isSubmitting=!0,a.user&&a.step3.password1&&e.dispatch("auth/completeNewPassword",{user:a.user,password:a.step3.password1,organizationCode:a.step1.organizationCode,onSuccess:function(){console.log("PasswordChange ==> success"),a.errorMessage="パスワードを変更しました。",a.hasError=!0},onError:function(){console.log("PasswordChange ==> error"),a.errorMessage="パスワードの変更に失敗しました。",a.hasError=!0}})},g=function(){a.step4.isSubmitting=!0,a.step1.username&&a.step4.confirmCode&&a.step4.password1&&e.dispatch("auth/forgotPasswordSubmit",{username:a.step1.username,code:a.step4.confirmCode,password:a.step4.password1,onSuccess:function(){console.log("Reset confirm ==> success"),a.errorMessage="パスワードをリセットしました。",a.hasError=!0},onError:function(t){console.log("Reset confirm ==> error",t),a.errorMessage="検証コードが違います。",a.hasError=!0}})},h=function(){o.push({name:"reset"})},p=function(){o.push({name:"signin-virtuality"})};return{state:a,store:e,rules:l,signIn:d,verifyTotpCode:f,forcePasswordChange:m,resetConfirm:g,reset:h,onTransition:p,showPassword1:t}}}),cu=lu,uu=(o("d328"),o("99d9")),du=o("ac7c"),fu=o("4bd4"),mu=o("1514"),gu=o("8e36"),hu=o("2db4"),vu=o("7e85"),pu=o("e516"),bu=o("9c54"),yu=o("8654"),Su=Object(k["a"])(cu,iu,su,!1,null,"2b4aaa96",null),Du=Su.exports;uc()(Su,{VApp:tu["a"],VBtn:mc["a"],VCard:Ic["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCheckbox:du["a"],VContainer:eu["a"],VForm:fu["a"],VMain:nu["a"],VOtpInput:mu["a"],VProgressLinear:gu["a"],VRow:Oc["a"],VSnackbar:hu["a"],VStepper:vu["a"],VStepperContent:pu["a"],VStepperItems:bu["a"],VTextField:yu["a"]});var Cu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",[n("v-main",{staticClass:"yellow lighten-5"},[n("v-row",[n("v-container",[n("div",{staticClass:"wrap-center-reset"},[n("v-card",{attrs:{width:"480"}},[n("v-card-title",[n("v-row",{staticClass:"ma-3",attrs:{justify:"center"}},[n("img",{staticClass:"logo",attrs:{src:o("d742"),alt:"シフト表自動作成システム - ラマナス"}})])],1),n("v-card-text",[n("v-stepper",{model:{value:t.state.step,callback:function(e){t.$set(t.state,"step",e)},expression:"state.step"}},[n("v-stepper-items",[n("v-stepper-content",{attrs:{step:"passwordReissue"}},[n("v-form",{staticClass:"ma-3 pa-3",attrs:{"lazy-validation":""}},[n("v-text-field",{attrs:{rules:t.rules.username,label:"メールアドレス",outlined:"",required:""},model:{value:t.state.username,callback:function(e){t.$set(t.state,"username",e)},expression:"state.username"}}),n("v-btn",{staticClass:"mr-4",attrs:{disabled:0==t.state.username.length,color:"primary",block:""},on:{click:t.reissue}},[t._v(" パスワードのリセット ")])],1)],1),n("v-stepper-content",{attrs:{step:"resetPassword"}},[n("v-form",{staticClass:"ma-3 pa-3",attrs:{"lazy-validation":""},model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[n("p",[t._v("新しいパスワードを設定してください")]),n("v-text-field",{attrs:{"append-icon":t.showPassword1?"mdi-eye":"mdi-eye-off",rules:t.rules.password,type:t.showPassword1?"text":"password",label:"新パスワード",outlined:"",required:""},on:{"click:append":function(e){t.showPassword1=!t.showPassword1}},model:{value:t.state.password1,callback:function(e){t.$set(t.state,"password1",e)},expression:"state.password1"}}),n("v-text-field",{attrs:{rules:t.rules.password2,type:t.showPassword1?"text":"password",label:"新パスワード確認",outlined:"",required:""},model:{value:t.state.password2,callback:function(e){t.$set(t.state,"password2",e)},expression:"state.password2"}}),n("p",[t._v("メールに届いた検証コード(6桁)を入力してください")]),n("v-otp-input",{attrs:{type:"number",length:"6"},model:{value:t.state.confirmCode,callback:function(e){t.$set(t.state,"confirmCode",e)},expression:"state.confirmCode"}}),n("v-btn",{staticClass:"mr-4",attrs:{disabled:!t.state.valid||t.state.confirmCode.length<6,color:"primary",block:""},on:{click:t.resetConfirm}},[t._v(" 設定 ")])],1)],1)],1)],1),n("div",{staticClass:"mt-3 d-flex flex-row-reverse"},[n("p",[t._v(" 【メールが届かない場合】"),n("br"),t._v(" 迷惑メールフォルダに振り分けられたり、サーバー側で削除された可能性があります。"),n("br"),t._v(" メールの設定をご確認ください。 ")])])],1)],1)],1)])],1),n("v-row",[n("v-col",{staticClass:"ml-5",attrs:{cols:"1"}},[n("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[n("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1),n("ErrorDialog",{attrs:{show:t.dialog.message.show,title:t.dialog.message.title,content:t.dialog.message.content},on:{close:t.onTransition}}),n("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}}),n("v-snackbar",{attrs:{color:"error"},model:{value:t.state.hasError,callback:function(e){t.$set(t.state,"hasError",e)},expression:"state.hasError"}},[t._v(" "+t._s(t.state.errorMessage)+" ")])],1)],1)},wu=[],ku=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-dialog",{attrs:{"max-width":"500px"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-card-title",{staticClass:"grey lighten-2"},[t._v(" "+t._s(t.title)+" ")]),o("v-card-text",[t._t("content",(function(){return[o("div",{staticClass:"mt-3"},[t._v(" "+t._s(t.content)+" ")])]}))],2),o("v-card-actions",[o("v-spacer"),o("v-btn",{attrs:{color:"primary darken-1",text:""},on:{click:function(e){return t.$emit("close")}}},[t._v("OK")]),o("v-spacer")],1)],1)],1)},Iu=[],xu=Object(r["b"])({props:{show:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:"エラー発生"},content:{type:String,required:!1,default:"エラーメッセージ"},close:{type:String,required:!1,default:"OK"}},emits:["close"]}),Tu=xu,Au=o("169a"),_u=Object(k["a"])(Tu,ku,Iu,!1,null,null,null),Ou=_u.exports;uc()(_u,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VDialog:Au["a"],VSpacer:vc["a"]});var Ru=Object(r["b"])({components:{ErrorDialog:Ou},setup:function(){var t=!1,e=ic(),o=bk(),n=Object(r["n"])({step:"passwordReissue",hasError:!1,errorMessage:"",valid:!1,username:"",confirmCode:"",password1:"",password2:""}),a=function(t){return n.password1==t},i={username:[function(t){return!!t||"メールアドレスを入力してください。"}],password:[function(t){return!!t||"パスワードを入力してください。"}],password2:[function(t){return a(t)||"パスワードが異なります。"}]},s=Object(r["n"])({message:{show:!1,title:"",content:"入力されたメールアドレスにパスワード再設定のご案内を送信しました。"},error:{show:!1,content:"入力されたメールアドレスは登録されていません、正しく入力してください。"}}),l=function(){s.message.show=!0,n.username&&e.dispatch("auth/forgotPassword",{username:n.username,onSuccess:function(){console.log("Password reissue request ==> success"),n.step="resetPassword"},onError:function(t){console.log("Password reissue ==> error",t),n.errorMessage="検証コードの要求に失敗しました。",n.hasError=!0}})},c=function(){n.username&&n.confirmCode&&n.password1&&e.dispatch("auth/forgotPasswordSubmit",{username:n.username,code:n.confirmCode,password:n.password1,onSuccess:function(){console.log("Reset confirm ==> success"),n.errorMessage="パスワードをリセットしました。",n.hasError=!0,setTimeout((function(){o.push({path:"/signin"})}),2e3)},onError:function(){console.log("Reset confirm ==> error"),n.errorMessage="検証コードが違います。",n.hasError=!0}})},u=function(){s.message.show=!1},d=function(){s.error.show=!0};return{state:n,store:e,rules:i,dialog:s,reissue:l,resetConfirm:c,onTransition:u,ng:d,showPassword1:t}}}),Fu=Ru,Vu=(o("e0b4"),Object(k["a"])(Fu,Cu,wu,!1,null,"c8bd55e6",null)),ju=Vu.exports;uc()(Vu,{VApp:tu["a"],VBtn:mc["a"],VCard:Ic["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCol:xc["a"],VContainer:eu["a"],VForm:fu["a"],VIcon:gc["a"],VMain:nu["a"],VOtpInput:mu["a"],VRow:Oc["a"],VSnackbar:hu["a"],VStepper:vu["a"],VStepperContent:pu["a"],VStepperItems:bu["a"],VTextField:yu["a"]});var Eu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",[n("v-main",{staticClass:"yellow lighten-5"},[n("v-row",[n("v-container",[n("div",{staticClass:"wrap-center-reset"},[n("v-card",{attrs:{width:"480"}},[n("v-card-title",[n("v-row",{staticClass:"ma-3",attrs:{justify:"center"}},[n("img",{staticClass:"logo",attrs:{src:o("d742"),alt:"シフト表自動作成システム - ラマナス"}})])],1),n("v-card-text",[n("v-stepper",{model:{value:t.state.step,callback:function(e){t.$set(t.state,"step",e)},expression:"state.step"}},[n("v-stepper-items",[n("v-stepper-content",{attrs:{step:"signIn"}},[n("v-form",{staticClass:"ma-3 pa-3",attrs:{"lazy-validation":""},model:{value:t.state.step1.valid,callback:function(e){t.$set(t.state.step1,"valid",e)},expression:"state.step1.valid"}},[n("v-text-field",{attrs:{type:"password",label:"仮パスワード",outlined:"",required:""}}),n("v-text-field",{attrs:{type:"password",label:"本パスワード",outlined:"",required:""}}),n("v-text-field",{attrs:{type:"password",label:"本パスワード確認",outlined:"",required:""}}),n("v-btn",{staticClass:"mr-4",attrs:{color:"primary",block:""},on:{click:t.click}},[t._v(" 次へ ")])],1)],1)],1)],1)],1)],1)],1)])],1),n("v-row",[n("v-col",{staticClass:"ml-5",attrs:{cols:"1"}},[n("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[n("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1),n("ErrorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}})],1)],1)},Gu=[],$u=Object(r["b"])({components:{ErrorDialog:Ou},setup:function(){var t=ic(),e=bk(),o=v(),n=Object(r["n"])({step:"signIn",complete:!1,hasError:!1,errorMessage:"",step1:{valid:!1,saveUsername:t.state.auth.saveUsername,organizationCode:t.state.auth.saveUsername?t.state.auth.organizationCode:"",username:t.state.auth.saveUsername?t.state.auth.signInAlias:"",password:"",isSubmitting:!1}}),a={organizationCode:[function(t){return!!t||"組織コードを入力してください。"}],username:[function(t){return!!t||"メールアドレスを入力してください。"}],password:[function(t){return!!t||"パスワードを入力してください。"}]},i=e?yk(e):void 0,s=null;s=i&&i["RedirectUrl"]?i["RedirectUrl"]:"/",null===o||void 0===o||o.debug("Redirect URL:".concat(s)),Object(r["s"])(t.state.auth,(function(t,o){o.signedIn&&s&&e.push({path:s})}));var l=function(){null===o||void 0===o||o.debug("sign in clicked"),n.step1.organizationCode&&n.step1.username&&n.step1.password&&(n.step1.isSubmitting=!0,t.dispatch("auth/signIn",{username:n.step1.username,password:n.step1.password,organizationCode:n.step1.organizationCode,saveUsername:n.step1.saveUsername,onSoftwareToken:function(){n.step="confirmTotpCode",n.step1.password="",n.step1.isSubmitting=!1},onRequireNewPassword:function(){n.step="requireNewPassword",n.step1.password="",n.step1.isSubmitting=!1},onResetPassword:function(){n.step="resetPassword",n.step1.password="",n.step1.isSubmitting=!1},onError:function(t){t&>(t)&&"NotAuthorizedException"==t.code&&(n.errorMessage="パスワードが違います。",n.hasError=!0),n.step1.isSubmitting=!1}}))},c=Object(r["n"])({error:{show:!1,content:"エラーメッセージ"}}),u=function(){c.error.show=!0};return{state:n,store:t,signIn:l,rules:a,dialog:c,click:u}}}),Nu=$u,Lu=(o("2dc0"),Object(k["a"])(Nu,Eu,Gu,!1,null,"5fcf174e",null)),Mu=Lu.exports;uc()(Lu,{VApp:tu["a"],VBtn:mc["a"],VCard:Ic["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCol:xc["a"],VContainer:eu["a"],VForm:fu["a"],VIcon:gc["a"],VMain:nu["a"],VRow:Oc["a"],VStepper:vu["a"],VStepperContent:pu["a"],VStepperItems:bu["a"],VTextField:yu["a"]});var Pu=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("トップページ")]),o("v-col",[o("v-card",[o("v-data-table",{attrs:{headers:t.header,items:t.state.noticeRow,"fixed-header":"","no-data-text":"お知らせはありません","disable-sort":"","hide-default-footer":"","disable-pagination":""},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-spacer"),o("v-toolbar-title",{staticClass:"title-notice"},[t._v("お知らせ")]),o("v-spacer")],1)]},proxy:!0}])})],1)],1)],1),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}})],1)},Wu=[],Bu="データの取得処理でエラーが発生しました。サーバー管理者にお問い合わせください。",Hu="データ通信でエラーが発生しました。サーバー管理者にお問い合わせください。",qu="並び順に変更がありません。",Qu=Object(r["b"])({components:{ErrorDialog:Ou},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=!1;t.commit("shiftTable/setIsDisplayShiftTable",{isDisp:o});var n=Object(r["n"])({noticeRow:[]}),i=[{text:"",value:"content"}],s=Object(r["n"])({error:{show:!1,content:""}}),l=Ra({fetchPolicy:"no-cache"}),c=(l.result,l.loading,l.onResult),u=(l.error,l.refetch);c((function(t){if(console.log("onResult"),console.log(t.error),console.log(t.data.getRamanasNotice),console.log(Array.isArray(t.data.getRamanasNotice)),!t.error&&t.data.getRamanasNotice&&Array.isArray(t.data.getRamanasNotice)){var e,o=t.data.getRamanasNotice;(e=n.noticeRow).splice.apply(e,[0,n.noticeRow.length].concat(Object(a["a"])(o))),console.log("noticeRow",n.noticeRow)}}));var d=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u();case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),s.error.content=Bu,s.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}();return d(),{state:n,header:i,dialog:s,systemMessage:zl,initialize:d}}}),Uu=Qu,zu=(o("d0397"),o("8fea")),Ku=o("71d9"),Yu=o("2a7f"),Zu=Object(k["a"])(Uu,Pu,Wu,!1,null,"1de3d484",null),Ju=Zu.exports;uc()(Zu,{VCard:Ic["a"],VCol:xc["a"],VDataTable:zu["a"],VSpacer:vc["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var Xu=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("router-view")],1)},td=[],ed=Object(r["b"])({setup:function(){return{}}}),od=ed,nd=Object(k["a"])(od,Xu,td,!1,null,null,null),ad=nd.exports,rd=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("v-row",[o("v-col",{attrs:{cols:"2"}},[o("v-menu",{attrs:{"close-on-content-click":!0,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:"作成年月","append-icon":"mdi-calendar",outlined:"",dense:"","hide-details":"auto","background-color":"white"},model:{value:t.state.targetDate,callback:function(e){t.$set(t.state,"targetDate",e)},expression:"state.targetDate"}},"v-text-field",a,!1),n))]}}])},[o("v-date-picker",{attrs:{type:"month","no-title":""},model:{value:t.state.targetDate,callback:function(e){t.$set(t.state,"targetDate",e)},expression:"state.targetDate"}})],1)],1),o("v-col",{attrs:{cols:"1"}},[o("v-btn",{staticClass:"content__btn form__btn",attrs:{color:"primary"},on:{click:t.openShiftTable}},[t._v("作成")])],1),o("v-col",{staticClass:"text-h5"},[t._v(" "+t._s(t.title)+" ")]),t.isTableDataReady?o("v-col",[t._v(" シフト表の状態<"+t._s(t.shiftTableStatus)+">"),o("br"),t._v("自動作成の状況<"+t._s(t.executeStatus)+">")]):t._e(),o("v-spacer"),t.isTableDataReady?o("v-col",{staticClass:"text-right",attrs:{cols:"1"}},[o("v-menu",{attrs:{"offset-y":"",bottom:"",left:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"mr-4",attrs:{color:"blue-grey lighten-4",fab:"",small:""}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-account-cog ")])],1)]}}],null,!1,436274574)},[o("v-list",t._l(t.state.menus,(function(e){return o("v-list-item",{key:e.key,attrs:{link:""},on:{click:function(o){return t.onMenu(e.key)}}},[o("v-list-item-title",[t._v(" "+t._s(e.value)+" ")])],1)})),1)],1)],1):t._e()],1),o("div",{ref:"rootContainer",staticClass:"d-flex flex-column root-rootContainer yellow lighten-5",style:t.rootContainerStyle},[o("v-overlay",{attrs:{value:t.isOpenShiftTableLoading}},[o("v-progress-circular",{attrs:{indeterminate:"",size:"150"}},[t._v("シフト表取得中...")])],1),o("v-overlay",{attrs:{value:t.state.isResultLoading}},[o("v-progress-circular",{attrs:{indeterminate:"",size:"150"}},[t._v("作成結果の取得中...")])],1),t.isTableDataReady?o("div",[o("div",{staticClass:"d-flex flex-row"},[o("div",{ref:"shiftTableContainer",staticClass:"shift-table-container shift-table",style:t.shiftTableContainerStyle,on:{mouseup:function(e){return e.preventDefault(),t.onMouseUp.apply(null,arguments)},mouseover:function(e){return e.preventDefault(),t.onMouseMoveContainer.apply(null,arguments)}}},[o("v-overlay",{attrs:{value:t.isShiftCalculating}},[o("v-progress-circular",{attrs:{indeterminate:"",size:"200"}},[o("v-col",[o("v-row",[t._v("シフト表の計算中...")]),o("v-row",{staticClass:"text-h5",attrs:{justify:"center"}},[t._v(t._s(t.state.elapsedTime)+"秒")])],1)],1),o("br"),o("v-btn",{attrs:{color:"success",disabled:t.isSuspensionAutocreationLoading},on:{click:function(e){return t.cancelCalculation()}}},[t._v("シフト表の計算を中止する")])],1),o("app-shift-table-body")],1),o("div",{staticClass:"d-flex flex-column align-center justify-center devider vertical",style:t.deviderVerticalStyle,on:{mouseover:function(e){return e.preventDefault(),t.onMouseMoveDeviderVertical.apply(null,arguments)},mouseup:function(e){return e.preventDefault(),t.onMouseUp.apply(null,arguments)}}},[o("span",{on:{mousedown:function(e){return e.preventDefault(),t.onMouseDownDeviderVertical.apply(null,arguments)}}})]),o("div",{ref:"staffAggregatesContainer",staticClass:"shift-table-container staff-aggregates",style:t.staffAggregationContainerStyle,on:{mouseup:function(e){return e.preventDefault(),t.onMouseUp.apply(null,arguments)},mouseover:function(e){return e.preventDefault(),t.onMouseMoveContainer.apply(null,arguments)}}},[o("app-shift-table-staff-aggregates")],1)]),o("div",{staticClass:"d-flex flex-column align-center justify-center devider horizontal",style:t.deviderHorizontalStyle,on:{mouseover:t.onMouseMoveDeviderHorizontal,mouseup:t.onMouseUp}},[o("span",{on:{mousedown:function(e){return e.preventDefault(),t.onMouseDownDeviderHorizontal.apply(null,arguments)}}})]),o("div",{ref:"dayAggregatesContainer",staticClass:"shift-table-container day-aggregates",style:t.dayAggregatesContainerStyle,on:{mouseup:function(e){return e.preventDefault(),t.onMouseUp.apply(null,arguments)},mouseover:function(e){return e.preventDefault(),t.onMouseMoveContainer.apply(null,arguments)}}},[o("app-shift-table-day-aggregates")],1)]):t._e()],1),t.isCalculateDataReady&&t.state.calcResultLength>0?o("div",{staticClass:"text-center"},["SUCCESSFUL"===t.executeStatus||"TIMEOUT"===t.executeStatus||"CANCEL"===t.executeStatus?o("div",[o("v-dialog",{attrs:{width:"500","hide-overlay":"",persistent:""},model:{value:t.state.dialog,callback:function(e){t.$set(t.state,"dialog",e)},expression:"state.dialog"}},[o("v-card",[o("v-card-title",{staticClass:"text-h6 grey lighten-2"},[t._v(" シフト表自動作成結果の確認 ")]),"SUCCESSFUL"===t.executeStatus?o("v-card-text",{staticClass:"text-h6"},[t._v("シフト表の作成が完了しました。 いずれかの結果を選択して「保存」、または「破棄」してください ")]):t._e(),"TIMEOUT"===t.executeStatus?o("v-card-text",{staticClass:"text-h6"},[t._v("シフト表の作成が制限時間を超えました。 いずれかの結果を選択して「保存」、または「破棄」してください ")]):t._e(),"CANCEL"===t.executeStatus?o("v-card-text",{staticClass:"text-h6"},[t._v("シフト表の作成を中止しました。 いずれかの結果を選択して「保存」、または「破棄」してください ")]):t._e(),o("v-row",{staticClass:"ma-0 mp-0",attrs:{justify:"center"}},[o("v-radio-group",{attrs:{row:""},on:{change:t.selectPlan},model:{value:t.state.shiftPlan,callback:function(e){t.$set(t.state,"shiftPlan",e)},expression:"state.shiftPlan"}},[o("v-radio",{attrs:{label:"計算前",value:"0"}}),o("v-radio",{attrs:{label:"案1",value:"1"}}),t.state.calcResultLength>2?o("v-radio",{attrs:{label:"案2",value:"2"}}):t._e(),t.state.calcResultLength>3?o("v-radio",{attrs:{label:"案3",value:"3"}}):t._e()],1)],1),o("v-divider"),o("v-card-actions",[o("v-spacer"),o("v-btn",{staticClass:"content__btn form__btn",attrs:{color:"secondary"},on:{click:function(e){return t.previewCancel()}}},[t._v(" 結果を破棄する ")]),o("v-btn",{staticClass:"content__btn form__btn",attrs:{color:"primary"},on:{click:function(e){return t.previewSave()}}},[t._v(" 保存する ")])],1)],1)],1)],1):t._e()]):t._e(),"FAILED"===t.executeStatus?o("div",[o("v-dialog",{attrs:{width:"500","hide-overlay":"",persistent:""},model:{value:t.state.dialog,callback:function(e){t.$set(t.state,"dialog",e)},expression:"state.dialog"}},[o("v-card",[o("v-card-title",{staticClass:"text-h6 grey lighten-2"},[t._v(" シフト表自動作成結果の確認 ")]),o("v-card-text",{staticClass:"text-h6"},[t._v("自動作成が失敗しました。 ")]),o("v-divider"),o("v-card-actions",[o("v-spacer"),o("v-btn",{staticClass:"content__btn form__btn",attrs:{color:"secondary"},on:{click:function(e){return t.previewCancel()}}},[t._v(" 閉じる ")])],1)],1)],1)],1):t._e()],1)},id=[],sd=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("table",{ref:"shiftTable",staticClass:"shift-table",on:{keydown:function(e){return t.keydown(t.e)}}},[o("thead",[o("tr",[o("th",{staticClass:"column-title",style:[t.headerColumns[0].style,t.headerRow(0)],attrs:{colspan:t.headerColumns.length}},[t._v("スタッフ")]),t._l(t.header.months,(function(e){return o("th",{key:e.key,style:t.headerRow(0),attrs:{colspan:e.days}},[t._v(t._s(e.month)+" 月")])}))],2),o("tr",[t._l(t.headerColumns,(function(e){return o("th",{key:e.key,staticClass:"column-title",style:[e.style,t.headerRow(1)]},[t._v(" "+t._s(e.name)+" ")])})),t._l(t.header.days,(function(e){return o("th",{key:e.key,class:{sat:e.sat,sun:e.sun,holiday:e.holiday,focused:t.isDateMousePosition(e.index)},style:t.headerRow(1)},[t._v(" "+t._s(e.day)),o("br"),t._v(t._s(e.dayOfWeek)+" "),e.event?[o("br"),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-icon",t._g(t._b({staticClass:"calendar-alert",attrs:{dense:""}},"v-icon",a,!1),n),[t._v("mdi-calendar-alert ")])]}}],null,!0)},[o("span",[t._v(t._s(e.event.name))])])]:t._e()],2)}))],2)]),o("tbody",t._l(t.body,(function(e){return o("tr",{key:e.key},[t._l(e.headers,(function(e){return o("th",{key:e.key,style:t.headerColumns[e.index].style},[t._v(t._s(e.value))])})),t._l(e.shifts,(function(n){return o("td",{key:n.key,class:{sat:n.sat,sun:n.sun,holiday:n.holiday,nodata:n.nodata,focused:t.isFocused(e.index,n.index),"selection-top":n.isSelectionTop(),"selection-left":n.isSelectionLeft(),"selection-bottom":n.isSelectionBottom(),"selection-right":n.isSelectionRight()},style:{color:n.color,backgroundColor:t.isFocused(e.index,n.index)?void 0:n.backgroundColor},on:{mouseover:function(o){return t.mouseOver(e.index,n.index)},mousedown:function(o){return!o.type.indexOf("key")&&t._k(o.keyCode,"left",37,o.key,["Left","ArrowLeft"])||"button"in o&&0!==o.button||o.ctrlKey||o.shiftKey||o.altKey||o.metaKey?null:t.mouseDown(e.index,n.index)},mouseup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.mouseUp()},click:function(o){return o.shiftKey?t.mouseToggle(e.index,n.index):null}}},[t._v(" "+t._s(n.mark)+" ")])}))],2)})),0)])},ld=[],cd=o("9b6a"),ud=Object(r["b"])({setup:function(){var t=v(),e=ic();e.dispatch("shiftTable/init");var o=Object(r["p"])(),n=Object(r["a"])((function(){return e.getters["shiftTable/headerColumns"]})),a=Object(r["a"])((function(){return e.getters["shiftTable/header"]})),i=Object(r["a"])((function(){return e.getters["shiftTable/body"]})),s=function(t){var e=["36px","36px"],o=t>0?e[t-1]:0;return{top:o}},l=function(t){return e.dispatch("shiftTable/keyboardOperation",t)};Object(r["j"])((function(){var t,n;document.addEventListener("keydown",l),Object(cd["a"])("command+c,command+v,command+x,command+z,command+a,ctrl+c,ctrl+v,ctrl+x,ctrl+z,ctrl+a",(function(t,o){switch(t.preventDefault(),o.key){case"command+c":case"ctrl+c":e.dispatch("shiftTable/copyShift");break;case"command+x":case"ctrl+x":e.dispatch("shiftTable/cutShift");break;case"command+v":case"ctrl+v":e.dispatch("shiftTable/pasteShift");break;case"command+a":case"ctrl+a":e.dispatch("shiftTable/selectAll");break;default:}}));var a=e.state.shiftTable,r=null===(t=o.value)||void 0===t||null===(n=t.tHead)||void 0===n?void 0:n.rows[1];if(r){for(var i=0,s=0;s0?(e.dispatch("shiftTable/preView",{cellData:c[d.shiftPlan]}),e.commit("shiftTable/calcAggregates")):d.dialog=!1},nt=function(){c.length>0&&(e.dispatch("shiftTable/preView",{cellData:c[0]}),e.commit("shiftTable/calcAggregates")),et(),d.dialog=!1},at=function(){et(),e.dispatch("shiftTable/saveShift"),d.dialog=!1},rt=Object(r["a"])((function(){return{width:"".concat(d.rootContainer.width,"px"),height:"".concat(d.rootContainer.height,"px")}})),it=Object(r["a"])((function(){return{width:"".concat(d.rootContainer.width-d.staffAggregatesContainer.width-d.devider.size,"px"),height:"".concat(d.rootContainer.height-d.dayAggregatesContainer.height-d.devider.size,"px")}})),st=Object(r["a"])((function(){return{width:"".concat(d.rootContainer.width-d.staffAggregatesContainer.width-d.devider.size,"px"),height:"".concat(d.dayAggregatesContainer.height,"px")}})),lt=Object(r["a"])((function(){return{width:"".concat(d.rootContainer.width-d.staffAggregatesContainer.width-d.devider.size,"px"),height:"".concat(d.devider.size,"px")}})),dt=Object(r["a"])((function(){return{width:"".concat(d.staffAggregatesContainer.width,"px"),height:"".concat(d.rootContainer.height-d.dayAggregatesContainer.height-d.devider.size,"px")}})),ft=Object(r["a"])((function(){return{width:"".concat(d.devider.size,"px"),height:"".concat(d.rootContainer.height-d.dayAggregatesContainer.height-d.devider.size,"px")}})),mt=function(){var t,n=e.state.main.display.padding,a=e.state.main.display.drawerWidth,r=o.value,i=document.getElementById("app-footer"),s=ct(r),l=ut(r),c=null!==(t=null===i||void 0===i?void 0:i.clientHeight)&&void 0!==t?t:0;l<=n&&e.state.main.display.drawer&&(l+=a);var u=document.documentElement.clientHeight-c-s,d=document.documentElement.clientWidth-l-n;return{width:d,height:u}},gt=function(){var t=mt();d.rootContainer.width=t.width,d.rootContainer.height=t.height;var o=e.getters["shiftTable/hasAggregates"];o.staff&&(d.staffAggregatesContainer.width=e.state.shiftTable.staffAggregates.config.length*jd,d.staffAggregatesContainer.width+=4),d.rootContainer.width-d.staffAggregatesContainer.width<2*jd&&(d.staffAggregatesContainer.width-=d.rootContainer.width-d.staffAggregatesContainer.width),o.day&&(d.dayAggregatesContainer.height=e.state.shiftTable.dayAggregates.config.length*jd,d.dayAggregatesContainer.height+=4),d.rootContainer.height-d.dayAggregatesContainer.height<2*jd&&(d.dayAggregatesContainer.height-=d.rootContainer.height-d.dayAggregatesContainer.height)},ht=function(){var t=0;e.commit("main/changeDrawerContent",{contentId:t}),null!==f.start&&!0===m.value&&Q()},vt=function(){var t=e.getters["shiftTable/menus"];if(t){var o,n=[];n.push(3,4,6,7,9,13,14),p.shiftTableStatus&&(p.shiftTableStatus.status!==an.InputSchedule&&n.push(2,3),p.shiftTableStatus.status!==an.InputActual&&n.push(4,6));var r=t.filter((function(t){return!n.includes(t.key)}));(o=d.menus).splice.apply(o,[0,d.menus.length].concat(Object(a["a"])(r)))}},yt=function(){s.value&&i.value&&(s.value.scrollLeft=i.value.scrollLeft),l.value&&i.value&&(l.value.scrollTop=i.value.scrollTop)};Object(r["j"])((function(){if(ht(),gt(),i.value){var t=i.value;t.addEventListener("scroll",yt),setTimeout((function(){t.scrollLeft=e.state.shiftTable.initialScrollLeft}),0)}window.addEventListener("resize",gt)})),Object(r["i"])((function(){var t;null===(t=i.value)||void 0===t||t.removeEventListener("scroll",yt),window.removeEventListener("resize",gt)}));var St=function(){console.log("clicked")},Dt=function(t){if(m.value)switch(t){case 1:e.commit("shiftRule/setIsSettingsViolation",{value:!1}),pk.push({name:"rule-shift-table"});break;case 2:pk.push({name:"shift-table-desired-shift"});break;case 3:pk.push({name:"shift-table-non-desired-shift"});break;case 4:pk.push({name:"shift-table-actual-shift"});break;case 5:pk.push({name:"settings-display-design"});break;case 6:pk.push({name:"take-turn-staff-search"});break;case 7:pk.push({name:"system-settings-desired-shift-period"});break;case 8:pk.push({name:"settings-automatic-creation-time-limit"});break;case 9:pk.push({name:"system-settings-export-shift"});break;case 10:pk.push({name:"settings-vertical-aggregate"});break;case 11:pk.push({name:"system-settings-horizontal-aggregate"});break;case 12:pk.push({name:"system-settings-violation-display"});break;case 13:pk.push({name:"preliminary-form-settings-dialog"});break;case 14:pk.push({name:"attendance-correction-request-list"});break;case 15:pk.push({name:"settings-current-shift-status"});break;case 16:pk.push({name:"display-order"});break;default:break}},Ct=function(){d.devider.horizontal.mouseDown=!0},wt=function(t){0==t.buttons?Ot():d.devider.horizontal.mouseDown&&(t.cancelBubble=!0,d.devider.horizontal.dragging=!0,_t(t.y))},kt=function(){d.devider.vertical.mouseDown=!0},It=function(t){0==t.buttons?Ot():d.devider.vertical.mouseDown&&(t.cancelBubble=!0,d.devider.vertical.dragging=!0,At(t.x))},xt=function(t){0==t.buttons?Ot():(d.devider.horizontal.mouseDown&&(d.devider.horizontal.dragging=!0,_t(t.y)),d.devider.vertical.mouseDown&&(d.devider.vertical.dragging=!0,At(t.x)))},Tt=function(){Ot()},At=function(t){var e=ut(o),n=d.rootContainer.width-(t-e)-d.devider.size/2;n>=Vd?d.staffAggregatesContainer.width=n:Ot()},_t=function(t){var e=ct(o),n=d.rootContainer.height-(t-e)-d.devider.size/2;n>=Vd&&(d.dayAggregatesContainer.height=n)},Ot=function(){(d.devider.vertical.mouseDown||d.devider.horizontal.mouseDown)&&(d.devider.horizontal.mouseDown=!1,d.devider.horizontal.dragging=!1,d.devider.vertical.mouseDown=!1,d.devider.vertical.dragging=!1)};function Rt(t){var e=t.getFullYear(),o=("0"+(t.getMonth()+1)).slice(-2);return"".concat(e,"-").concat(o)}function Ft(){d.elapsedTime++,d.elapsedTime%5==0&&Z(),d.elapsedTime<999&&Vt()}function Vt(){console.log("refreshTimeout",d.elapsedTime),setTimeout(Ft,1e3)}return{state:d,executeStatus:g,isTableDataReady:m,isShiftCalculating:h,isCalculateDataReady:v,isOpenShiftTableLoading:W,isSuspensionAutocreationLoading:R,isGetAutocreationFinishShiftTablesLoading:C,title:b,tableStatusList:y,shiftTableStatus:S,rootContainer:o,rootContainerStyle:rt,shiftTableContainer:i,shiftTableContainerStyle:it,dayAggregatesContainer:s,dayAggregatesContainerStyle:st,staffAggregatesContainer:l,staffAggregationContainerStyle:dt,deviderHorizontalStyle:lt,deviderVerticalStyle:ft,store:e,addGroupSettingsContainer:n,openShiftTable:Q,groupSetting:St,cancelCalculation:J,selectPlan:ot,previewCancel:nt,previewSave:at,onMenu:Dt,onMouseDownDeviderHorizontal:Ct,onMouseMoveDeviderHorizontal:wt,onMouseDownDeviderVertical:kt,onMouseMoveDeviderVertical:It,onMouseMoveContainer:xt,onMouseUp:Tt,changeX:At,changeY:_t,endDrag:Ot}}}),Gd=Ed,$d=(o("395d"),o("2e4b")),Nd=o("e449"),Ld=o("a797"),Md=o("490a"),Pd=Object(k["a"])(Gd,rd,id,!1,null,"51ed7f91",null),Wd=Pd.exports;uc()(Pd,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCol:xc["a"],VDatePicker:$d["a"],VDialog:Au["a"],VDivider:Tc["a"],VIcon:gc["a"],VList:Gc["a"],VListItem:Nc["a"],VListItemTitle:Lc["b"],VMenu:Nd["a"],VOverlay:Ld["a"],VProgressCircular:Md["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSpacer:vc["a"],VTextField:yu["a"]});var Bd=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("シフト表選択")]),o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("v-row",{staticClass:"mt-4"},[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.sectionAndVirtual,label:"所属","prepend-icon":"mdi-magnify","item-text":"name","item-value":"sectionID","hide-details":"",outlined:"","background-color":"white"},model:{value:t.formContent.sectionID,callback:function(e){t.$set(t.formContent,"sectionID",e)},expression:"formContent.sectionID"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-menu",{ref:"menu",attrs:{"close-on-content-click":!1,"return-value":t.formContent.yearMonth,transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"auto"},on:{"update:returnValue":function(e){return t.$set(t.formContent,"yearMonth",e)},"update:return-value":function(e){return t.$set(t.formContent,"yearMonth",e)}},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:"年月","prepend-icon":"mdi-calendar",readonly:"","hide-details":"",outlined:"","background-color":"white"},model:{value:t.formContent.yearMonth,callback:function(e){t.$set(t.formContent,"yearMonth",e)},expression:"formContent.yearMonth"}},"v-text-field",a,!1),n))]}}]),model:{value:t.state.menu,callback:function(e){t.$set(t.state,"menu",e)},expression:"state.menu"}},[o("v-date-picker",{attrs:{type:"month","no-title":"",scrollable:""},model:{value:t.formContent.yearMonth,callback:function(e){t.$set(t.formContent,"yearMonth",e)},expression:"formContent.yearMonth"}},[o("v-spacer"),o("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(e){t.state.menu=!1}}},[t._v(" キャンセル ")]),o("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(e){return t.$refs.menu.save(t.formContent.yearMonth)}}},[t._v(" 設定 ")])],1)],1)],1),o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.header,items:t.rows,"item-key":"shiftTableID","hide-default-footer":"","items-per-page":-1,"single-select":"","sort-by":"shiftTableID"},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("シフト表リスト")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}})],1)]},proxy:!0},{key:"item.status",fn:function(e){var o=e.item;return[t._v(" "+t._s(t.getStatusName(t.getShiftTableStatus(o.shiftTableStatusID).status))+" ")]}},{key:"item.actions",fn:function(e){var n=e.item;return[o("delete-button",{on:{click:function(e){return t.onDelete(n)}}})]}},t.state.showCreate?{key:"body",fn:function(){return[o("v-btn",{staticClass:"ma-2",attrs:{color:"success"},on:{click:function(e){return t.onCreate()}}},[t._v("新規作成")])]},proxy:!0}:null],null,!0)})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-sheet",{attrs:{height:"500"}},[o("v-calendar",{ref:"leftCalendar",attrs:{type:"month",events:t.state.events,start:t.state.leftStart},model:{value:t.formContent.desiredStartDate,callback:function(e){t.$set(t.formContent,"desiredStartDate",e)},expression:"formContent.desiredStartDate"}})],1)],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-sheet",{attrs:{height:"500"}},[o("v-calendar",{ref:"rightCalendar",attrs:{type:"month",events:t.state.events,start:t.state.rightStart},model:{value:t.formContent.desiredEndDate,callback:function(e){t.$set(t.formContent,"desiredEndDate",e)},expression:"formContent.desiredEndDate"}})],1)],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{label:"希望受付開始日",readonly:"",outlined:"","background-color":"white",rules:t.rules.desiredStartDate},model:{value:t.formContent.desiredStartDate,callback:function(e){t.$set(t.formContent,"desiredStartDate",e)},expression:"formContent.desiredStartDate"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{label:"希望受付終了日",readonly:"",outlined:"","background-color":"white",rules:t.rules.desiredEndDate},model:{value:t.formContent.desiredEndDate,callback:function(e){t.$set(t.formContent,"desiredEndDate",e)},expression:"formContent.desiredEndDate"}})],1)],1),o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{staticClass:"ma-2",attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1),t.state.showCreate?t._e():[o("v-btn",{staticClass:"ma-2",attrs:{color:"info",dark:""},on:{click:t.onOpen}},[t._v(" 開く ")]),o("v-btn",{staticClass:"ma-2",attrs:{color:"success",outlined:""},on:{click:t.onSetting}},[t._v(" 設定 ")])],o("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.showCreateBtn,expression:"showCreateBtn"}],staticClass:"ma-2",attrs:{color:"success"},on:{click:function(e){return t.onCreate()}}},[t._v("新規作成")])],2)],1)],1),o("confirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{confirm:t.saveSettings,close:function(e){t.dialog.confirm.show=!1}}}),o("deleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.onDeleted,close:function(e){t.dialog.delete.show=!1}}}),o("errorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}})],1)},Hd=[],qd=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-dialog",{attrs:{persistent:"","max-width":t.width},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-card-title",{staticClass:"grey lighten-2"},[t._t("title",(function(){return[t._v(" "+t._s(t.title)+" ")]}))],2),o("v-card-text",[t._t("content",(function(){return[o("div",{staticClass:"mt-3"},[t._v(" "+t._s(t.content)+" ")])]}))],2),o("v-card-actions",[t._t("actions",(function(){return[o("v-spacer"),o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){return t.$emit("close")}}},[t._v(t._s(t.cancel))]),o("v-btn",{attrs:{color:"primary darken-1"},on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.agree))]),t.sub1?o("v-btn",{attrs:{color:"primary darken-1"},on:{click:function(e){return t.$emit("sub1confirm")}}},[t._v(t._s(t.sub1))]):t._e(),o("v-spacer")]}))],2)],1)],1)},Qd=[],Ud=Object(r["b"])({props:{show:{type:Boolean,required:!0,default:!1},title:{type:String,required:!1,default:"登録確認"},content:{type:String,required:!1,default:"入力された内容で登録します。よろしいですか?"},cancel:{type:String,required:!1,default:"キャンセル"},width:{type:Number,required:!1,default:290},agree:{type:String,required:!1,default:"実行"},sub1:{type:String,required:!1,default:""},data:{type:Object,required:!1,default:function(){return{}}}},setup:function(){},emits:["close","confirm","sub1confirm"]}),zd=Ud,Kd=Object(k["a"])(zd,qd,Qd,!1,null,null,null),Yd=Kd.exports;uc()(Kd,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VDialog:Au["a"],VSpacer:vc["a"]});var Zd=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-row",{attrs:{justify:"center"}},[o("v-dialog",{attrs:{persistent:"","max-width":t.width},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-card-title",{staticClass:"text-h5"},[t._t("default",(function(){return[t._v(" "+t._s(t.title)+" ")]}))],2),o("v-card-text",[t._t("content",(function(){return[t._v(" "+t._s(t.content)+" ")]}))],2),o("v-card-actions",[t._t("actions",(function(){return[o("v-spacer"),o("v-btn",{attrs:{color:"darken-1",text:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" "+t._s(t.cancel)+" ")]),o("v-btn",{attrs:{color:"error darken-1"},on:{click:function(e){return t.$emit("delete")}}},[t._v(" "+t._s(t.agree)+" ")])]}))],2)],1)],1)],1)},Jd=[],Xd=Object(r["b"])({props:{show:{type:Boolean,required:!0,default:!1},title:{type:String,required:!1,default:"削除確認"},content:{type:String,required:!1,default:"データの削除を実施します。よろしいですか?"},cancel:{type:String,required:!1,default:"キャンセル"},width:{type:Number,required:!1,default:290},agree:{type:String,required:!1,default:"削除"},data:{type:Object,required:!1,default:function(){return{}}}},emits:["close","delete"]}),tf=Xd,ef=Object(k["a"])(tf,Zd,Jd,!1,null,null,null),of=ef.exports;uc()(ef,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VDialog:Au["a"],VRow:Oc["a"],VSpacer:vc["a"]});var nf=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"red",dark:"","x-small":"",fab:"",disabled:t.btn},on:{click:function(e){return t.$emit("delete")}}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-delete ")])],1)]}}])},[o("span",[t._v("削除")])])},af=[],rf=Object(r["b"])({props:{btn:{type:Boolean,required:!1,default:!1}}}),sf=rf,lf=Object(k["a"])(sf,nf,af,!1,null,null,null),cf=lf.exports;uc()(lf,{VBtn:mc["a"],VIcon:gc["a"],VTooltip:fd["a"]});var uf={0:"予定入力中",1:"実績入力中",2:"確定"},df=[{shiftTableStatusID:1,sectionID:1,shiftTableID:1,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",isEditing:!1,isDesired:!1,status:1,startDate:"2022-09-01",workDays:28,desireReceptionStartDate:"2022-06-10",desireReceptionEndDate:"2022-07-05"},{shiftTableStatusID:2,sectionID:1,shiftTableID:4,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",isEditing:!1,isDesired:!1,status:0,startDate:"2022-03-01",workDays:28,desireReceptionStartDate:"2022-01-10",desireReceptionEndDate:"2022-02-28"},{shiftTableStatusID:3,sectionID:1,shiftTableID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",isEditing:!1,isDesired:!1,status:2,startDate:"2022-08-01",workDays:31,desireReceptionStartDate:"2022-06-10",desireReceptionEndDate:"2022-07-29"},{shiftTableStatusID:4,sectionID:2,shiftTableID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",isEditing:!1,isDesired:!1,status:0,startDate:"2022-08-01",workDays:31,desireReceptionStartDate:"2022-06-05",desireReceptionEndDate:"2022-07-08"}],ff=[{shiftTableID:1,shiftTableStatusID:1,virtualShiftTableStatusID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",name:"shiftTable 1",isAutomated:!1},{shiftTableID:2,shiftTableStatusID:1,virtualShiftTableStatusID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",name:"shiftTable 2",isAutomated:!1},{shiftTableID:3,shiftTableStatusID:1,virtualShiftTableStatusID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",name:"shiftTable 3",isAutomated:!1},{shiftTableID:4,shiftTableStatusID:2,virtualShiftTableStatusID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",name:"shiftTable 4",isAutomated:!1},{shiftTableID:5,shiftTableStatusID:2,virtualShiftTableStatusID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",name:"shiftTable 5",isAutomated:!1},{shiftTableID:6,shiftTableStatusID:2,virtualShiftTableStatusID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",name:"shiftTable 6",isAutomated:!1},{shiftTableID:7,shiftTableStatusID:3,virtualShiftTableStatusID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",name:"shiftTable 7",isAutomated:!1},{shiftTableID:8,shiftTableStatusID:3,virtualShiftTableStatusID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",name:"shiftTable 8",isAutomated:!1},{shiftTableID:9,shiftTableStatusID:4,virtualShiftTableStatusID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",name:"shiftTable 9",isAutomated:!1},{shiftTableID:10,shiftTableStatusID:4,virtualShiftTableStatusID:1,concurrencyStamp:"",registrationTime:"2022-02-10",registrationAccount:"",name:"shiftTable 10",isAutomated:!1}],mf=[{shiftTableDetailID:1,shiftTableID:1,staffID:1,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:2,shiftTableID:1,staffID:2,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:3,shiftTableID:1,staffID:3,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:4,shiftTableID:1,staffID:4,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:5,shiftTableID:1,staffID:5,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:6,shiftTableID:1,staffID:6,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:7,shiftTableID:1,staffID:7,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:8,shiftTableID:1,staffID:8,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:9,shiftTableID:1,staffID:9,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:10,shiftTableID:2,staffID:10,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:11,shiftTableID:7,staffID:3,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:12,shiftTableID:7,staffID:4,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:13,shiftTableID:8,staffID:5,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:14,shiftTableID:8,staffID:6,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:15,shiftTableID:4,staffID:1,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:16,shiftTableID:4,staffID:2,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:17,shiftTableID:5,staffID:1,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:18,shiftTableID:5,staffID:2,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:19,shiftTableID:6,staffID:1,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:20,shiftTableID:6,staffID:2,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1},{shiftTableDetailID:16,shiftTableID:4,staffID:4,concurrencyStamp:"",registrationTime:"2022-07-10",registrationAccount:"",shiftID:1,shiftType:1}];function gf(t,e){var o=df.filter((function(o){return o.sectionID==t&&o.startDate.substr(0,7)==e}));return 0!==o.length?o.reduce((function(t,e){return e.status>=t.status&&(t=e),t})):null}function hf(t){return ff.filter((function(e){return t==e.shiftTableStatusID}))}function vf(t){return df.find((function(e){return e.shiftTableStatusID==t}))}function pf(t){return ff.find((function(e){return e.shiftTableID==t}))}function bf(t){return uf[t]}function yf(t){return mf.filter((function(e){return e.shiftTableID==t}))}function Sf(t){var e=yf(t);return e?e.map((function(t){return t.staffID})):[]}var Df=function(){return{desiredStartDate:[function(t){return t&&-1!==parseInt(t)||"希望受付開始日は必須項目です。"}],desiredEndDate:[function(t){return t&&-1!==parseInt(t)||'希望受付終了日"は必須項目です。'}]}},Cf=function(t){var e=t?new Date(t):new Date;return e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)},wf=function(t){var e=t?new Date(t):new Date;return e.setMonth(e.getMonth()+1),e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)},kf=Object(r["b"])({components:{confirmDialog:Yd,deleteDialog:of,errorDialog:of,deleteButton:cf},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({rows:[],leftStart:Cf(),rightStart:Cf(),section:[],shiftList:[],editedIndex:"",events:[],desireReceptionStartDate:"",desireReceptionEndDate:"",btnDisable:!0,showCreate:!1,dialogDelete:!1,menu:!1,valid:!1}),n=[{text:"シフト表名称",value:"name"},{text:"ステータス",value:"status"},{text:"更新日時",value:"registrationTime"},{text:"",value:"actions"}],a=Object(r["n"])({sectionID:-1,yearMonth:"",desiredStartDate:"",desiredEndDate:""}),i=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"希望受付日設定を保存しますか?"},error:{show:!1,title:"",close:"",content:""},delete:{show:!1,title:"確認",close:"OK",content:"選択したレコードを削除します、続行しますか?"}}),s=Object(r["p"])(),l=Object(r["a"])((function(){return 0==a.sectionID})),c=Object(r["a"])((function(){if(-1!==a.sectionID&&""!==a.yearMonth){var t,e=gf(a.sectionID,a.yearMonth);return e?(o.showCreate=!1,o.rows=hf(e.shiftTableStatusID),o.events=u(e.desireReceptionStartDate,e.desireReceptionEndDate)):(o.showCreate=!0,o.rows=[],o.events=[],o.desireReceptionStartDate="",o.desireReceptionEndDate=""),a.desiredStartDate="",a.desiredEndDate="",null===(t=s.value)||void 0===t||t.resetValidation(),o.rows}})),u=function(t,e){var n=[];return n.push({name:"希望受付期間",start:new Date("".concat(t,"T00:00:00")),end:new Date("".concat(e,"T23:59:59"))}),o.rightStart=wf(t),o.leftStart=Cf(t),n};return{dialog:i,store:t,formContent:a,state:o,header:n,rows:c,sectionAndVirtual:Ps(),getStatusName:bf,getShiftTableStatus:vf,form:s,rules:Df(),showCreateBtn:l}},methods:{onDelete:function(t){Object.assign({},t),this.dialog.delete.show=!0},onDeleted:function(){this.dialog.delete.show=!1},onOpen:function(){this.store.dispatch("shiftTable/setSelectShift",{sectionID:this.formContent.sectionID,startDate:this.formContent.yearMonth}),0==this.formContent.sectionID?this.$router.push({name:"shift-table-virtuality"}):(console.log("a"),this.$router.push({path:"shift-table"}))},onCreate:function(){var t=this.formContent.sectionID,e=this.formContent.yearMonth;this.store.dispatch("shiftTable/setSelectShift",{sectionID:t,startDate:e})},onSetting:function(){var t;null===(t=this.form)||void 0===t||t.validate(),this.state.valid&&(this.dialog.confirm.show=!0)},saveSettings:function(){this.dialog.confirm.show=!1}}}),If=kf,xf=o("a4f6"),Tf=o("b974"),Af=o("8dd9"),_f=Object(k["a"])(If,Bd,Hd,!1,null,"cbda8c0a",null),Of=_f.exports;uc()(_f,{VBtn:mc["a"],VCalendar:xf["a"],VCol:xc["a"],VDataTable:zu["a"],VDatePicker:$d["a"],VDivider:Tc["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VRow:Oc["a"],VSelect:Tf["a"],VSheet:Af["a"],VSpacer:vc["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var Rf=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("希望シフト詳細設定")]),t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-form",{ref:"form",model:{value:t.validState.valid,callback:function(e){t.$set(t.validState,"valid",e)},expression:"validState.valid"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"8"}},[o("v-card",{attrs:{flat:""}},[o("v-data-table",{staticClass:"content__table mb-5",attrs:{headers:t.desiredShitListHeader,items:t.state.desiredShiftRows,"item-key":"desiredShiftID","sort-by":["name","dates"],"multi-sort":"","single-select":"",height:"400","fixed-header":"","hide-default-footer":"","disable-pagination":"",dense:""},on:{"click:row":t.desiredShiftListClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("希望シフトリスト")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),o("v-spacer")],1)]},proxy:!0},{key:"item.actions",fn:function(e){var n=e.item;return[o("div",{staticClass:"content-nowrap"},[o("delete-button",{on:{delete:function(e){return t.deleteClick(n)}}})],1)]}}],null,!0)}),o("v-row",{staticClass:"pt-2"},[o("v-col",{staticClass:"content__btn form__btn",attrs:{cols:"12"}},[o("v-btn",{staticClass:"mb-2 mr-2",attrs:{id:"shiftFormBtn",color:"primary",dark:""},on:{click:t.shiftForm}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-plus-box-outline ")]),t._v(" 希望シフト追加 ")],1)],1)],1)],1)],1),t.state.showDesiredShift?o("v-col",{attrs:{cols:"4"}},[[o("v-row",[o("v-col",[o("v-menu",{attrs:{"close-on-content-click":!0,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:"希望日付","append-icon":"mdi-calendar",readonly:"",outlined:"","background-color":"white",rules:t.rules.date},model:{value:t.state.editedDesiredShift.dates,callback:function(e){t.$set(t.state.editedDesiredShift,"dates",e)},expression:"state.editedDesiredShift.dates"}},"v-text-field",a,!1),n))]}}],null,!1,4125590250)},[o("v-date-picker",{attrs:{"no-title":"",multiple:"","day-format":function(t){return new Date(t).getDate()}},model:{value:t.state.editedDesiredShift.dates,callback:function(e){t.$set(t.state.editedDesiredShift,"dates",e)},expression:"state.editedDesiredShift.dates"}})],1)],1)],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.state.shifts,"item-text":"name","item-value":"shiftID",label:"第1希望","hide-details":"auto",outlined:"",clearable:"",rules:t.rules.shiftID,"background-color":"white"},model:{value:t.state.editedDesiredShift.first.shiftId,callback:function(e){t.$set(t.state.editedDesiredShift.first,"shiftId",e)},expression:"state.editedDesiredShift.first.shiftId"}})],1),[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.state.shifts,"item-text":"name","item-value":"shiftID",label:"第2希望","hide-details":"auto",outlined:"",clearable:"","background-color":"white"},model:{value:t.state.editedDesiredShift.second.shiftId,callback:function(e){t.$set(t.state.editedDesiredShift.second,"shiftId",e)},expression:"state.editedDesiredShift.second.shiftId"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.state.shifts,"item-text":"name","item-value":"shiftID",label:"第3希望","hide-details":"auto",outlined:"",clearable:"","background-color":"white"},model:{value:t.state.editedDesiredShift.third.shiftId,callback:function(e){t.$set(t.state.editedDesiredShift.third,"shiftId",e)},expression:"state.editedDesiredShift.third.shiftId"}})],1)]]],2):t._e()],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),t.state.showDesiredShift?o("v-col",{attrs:{cols:"11"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v("設定")])],1)]):t._e()],1)],1)],1)],1)],1)]),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("Create-desired-shift",{attrs:{"form-content":t.createFormContent,show:t.dialog.create.show,title:t.dialog.create.title,"is-desired":!0},on:{submitInsert:t.saveCreateDesiredShift,close:function(e){t.dialog.create.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{confirm:t.saveEditDesiredShift,close:function(e){t.dialog.confirm.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.deleteDesiredShift,close:function(e){t.dialog.delete.show=!1}}})],1)},Ff=[],Vf=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"yellow lighten-5"},[t.state.isAvailableDatePeriod?t.isDesired?[o("v-row",{staticClass:"pa-3"},[o("v-col",{attrs:{cols:"12",md:"8"}},[o("v-menu",{ref:"menu",attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:"希望期間","append-icon":"mdi-calendar",readonly:"",outlined:"","hide-details":"auto","background-color":"white",rules:t.rules.datePeriod},model:{value:t.childFormContent.datePeriod,callback:function(e){t.$set(t.childFormContent,"datePeriod",e)},expression:"childFormContent.datePeriod"}},"v-text-field",a,!1),n))]}}]),model:{value:t.menu,callback:function(e){t.menu=e},expression:"menu"}},[o("v-date-picker",{attrs:{"no-title":"",range:""},model:{value:t.childFormContent.datePeriod,callback:function(e){t.$set(t.childFormContent,"datePeriod",e)},expression:"childFormContent.datePeriod"}})],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-card",[o("v-card-text",[o("div",{staticClass:"mb-3"},[t._v("第1希望")]),o("v-row",{staticClass:"mb-3"},[t._l(t.shiftPatternLength,(function(e,n){return[o("v-col",{key:n,attrs:{cols:"12",md:"4"}},[void 0!==t.childFormContent.firstPatternShiftIDs?o("v-select",{attrs:{items:t.shifts,"item-text":"name","item-value":"shiftID",label:e+"日目","hide-details":"auto",dense:"",outlined:"",rules:t.rules.shiftID},model:{value:t.childFormContent.firstPatternShiftIDs[n],callback:function(e){t.$set(t.childFormContent.firstPatternShiftIDs,n,e)},expression:"childFormContent.firstPatternShiftIDs[k]"}}):o("v-select",{attrs:{items:t.shifts,"item-text":"name","item-value":"shiftID",label:e+"日目","hide-details":"auto",dense:"",outlined:"",rules:t.rules.shiftID},model:{value:t.childFormContent.firstPatternShiftIDs,callback:function(e){t.$set(t.childFormContent,"firstPatternShiftIDs",e)},expression:"childFormContent.firstPatternShiftIDs"}})],1)]}))],2),o("div",{staticClass:"mb-3"},[t._v("第2希望")]),o("v-row",{staticClass:"mb-3"},[t._l(t.shiftPatternLength,(function(e,n){return[o("v-col",{key:n,attrs:{cols:"12",md:"4"}},[void 0!==t.childFormContent.secondPatternShiftIDs?o("v-select",{attrs:{items:t.shifts,"item-text":"name","item-value":"shiftID",label:e+"日目","hide-details":"auto",dense:"",outlined:"",rules:t.rules.shiftID},model:{value:t.childFormContent.secondPatternShiftIDs[n],callback:function(e){t.$set(t.childFormContent.secondPatternShiftIDs,n,e)},expression:"childFormContent.secondPatternShiftIDs[k]"}}):o("v-select",{attrs:{items:t.shifts,"item-text":"name","item-value":"shiftID",label:e+"日目","hide-details":"auto",dense:"",outlined:"",rules:t.rules.shiftID},model:{value:t.childFormContent.secondPatternShiftIDs,callback:function(e){t.$set(t.childFormContent,"secondPatternShiftIDs",e)},expression:"childFormContent.secondPatternShiftIDs"}})],1)]}))],2),o("div",{staticClass:"mb-3"},[t._v("第3希望")]),o("v-row",{staticClass:"mb-3"},[t._l(t.shiftPatternLength,(function(e,n){return[o("v-col",{key:n,attrs:{cols:"12",md:"4"}},[void 0!==t.childFormContent.thirdPatternShiftIDs?o("v-select",{attrs:{items:t.shifts,"item-text":"name","item-value":"shiftID",label:e+"日目","hide-details":"auto",dense:"",outlined:"",rules:t.rules.shiftID},model:{value:t.childFormContent.thirdPatternShiftIDs[n],callback:function(e){t.$set(t.childFormContent.thirdPatternShiftIDs,n,e)},expression:"childFormContent.thirdPatternShiftIDs[k]"}}):o("v-select",{attrs:{items:t.shifts,"item-text":"name","item-value":"shiftID",label:e+"日目","hide-details":"auto",dense:"",outlined:"",rules:t.rules.shiftID},model:{value:t.childFormContent.thirdPatternShiftIDs,callback:function(e){t.$set(t.childFormContent,"thirdPatternShiftIDs",e)},expression:"childFormContent.thirdPatternShiftIDs"}})],1)]}))],2)],1)],1)],1)],1)]:t._e():[o("v-row",{staticClass:"pb-3"},[o("v-col",{attrs:{cols:"12",md:"8"}},[o("v-menu",{attrs:{"close-on-content-click":!0,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:"希望日付","append-icon":"mdi-calendar",readonly:"",outlined:"","hide-details":"auto","background-color":"white",rules:t.rules.date},model:{value:t.childFormContent.date,callback:function(e){t.$set(t.childFormContent,"date",e)},expression:"childFormContent.date"}},"v-text-field",a,!1),n))]}}],null,!1,2332017750)},[o("v-date-picker",{attrs:{"no-title":"","day-format":function(t){return new Date(t).getDate()}},model:{value:t.childFormContent.date,callback:function(e){t.$set(t.childFormContent,"date",e)},expression:"childFormContent.date"}})],1)],1)],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.shifts,"item-text":"name","item-value":"shiftID",label:"第1希望","hide-details":"auto",outlined:"",clearable:"",rules:t.isDesired?t.rules.shiftID:t.rules.nonDesiredShiftID,"background-color":"white"},model:{value:t.childFormContent.firstShiftID,callback:function(e){t.$set(t.childFormContent,"firstShiftID",e)},expression:"childFormContent.firstShiftID"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.shifts,"item-text":"name","item-value":"shiftID",label:"第2希望","hide-details":"auto",outlined:"",clearable:"","background-color":"white"},model:{value:t.childFormContent.secondShiftID,callback:function(e){t.$set(t.childFormContent,"secondShiftID",e)},expression:"childFormContent.secondShiftID"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.shifts,"item-text":"name","item-value":"shiftID",label:"第3希望","hide-details":"auto",outlined:"",clearable:"","background-color":"white"},model:{value:t.childFormContent.thirdShiftID,callback:function(e){t.$set(t.childFormContent,"thirdShiftID",e)},expression:"childFormContent.thirdShiftID"}})],1)]],2)},jf=[],Ef=(o("a15b"),function(){return{staff:[function(t){return!!t&&0!==t.length||"スタッフは必須項目です。"}],level:[function(t){return t&&-1!==t||"レベルは必須項目です。"}],isPriority:[function(t){return null!==t||"この希望を優先して満たすは必須項目です。"}],isSpecifiedShift:[function(t){return null!==t||"希望されたシフトを希望するは必須項目です。"}],date:[function(t){return!!t&&0!==t.length||"希望日付は必須項目です。"}],nonDesiredDate:[function(t){return!!t&&0!==t.length||"非希望日付は必須項目です。"}],datePeriod:[function(t){return!!t&&2==t.length||"希望期間は必須項目です。"},function(t){return 2!=t.length||(new Date(t[1])>=new Date(t[0])||"希望期間の値が正しくありません")},function(t){return 2!=t.length||(Gf(t[0],t[1])<=5||"希望期間の差は最大5日です")}],shiftID:[function(t){return t&&-1!==t||"シフトは必須項目です。"}],nonDesiredShiftID:[function(t){return t&&-1!==t||"非希望シフトは必須項目です。"}],shiftIDs:[function(t){return!!t&&t.length>0||"シフトは必須項目です。"}],prohibition:[function(t){return null!==t||"自動作成実行可能は必須項目です。"}],startWeek:[function(t){return!!t&&0!==t.length||"開始週が必要です。"}],endWeek:[function(t){return!!t&&0!==t.length||"終了週が必要です。"}],startDay:[function(t){return!!t&&0!==t.length||"開始日が必要です。"}],endDay:[function(t){return!!t&&0!==t.length||"終了日が必要です。"}]}});function Gf(t,e){var o=new Date(t),n=new Date(e),a=n.getTime()-o.getTime();return a/864e5+1}function $f(t,e){var o=new Date(t),n=new Date(e),a=n.getTime()-o.getTime();return a/864e5+1}var Nf=Object(r["b"])({props:{formContent:{type:Object,required:!0,default:""},isDesired:{type:Boolean,required:!0,default:!1}},setup:function(t,e){var o=Object(r["n"])({isAvailableDatePeriod:!1}),n=Object(r["a"])({get:function(){return o.isAvailableDatePeriod=t.formContent.datePeriod&&t.formContent.datePeriod.length>0,t.formContent},set:function(t){return e.emit("update:formContent",t)}}),a=Object(r["a"])((function(){return n.value.datePeriod.join(" ~ ")})),i=Object(r["a"])((function(){if(2==n.value.datePeriod.length&&new Date(n.value.datePeriod[1])>new Date(n.value.datePeriod[0]))return $f(n.value.datePeriod[0],n.value.datePeriod[1])}));return{shiftPatternLength:i,childFormContent:n,datePeriodText:a,state:o,shifts:$s,levelList:Cl,rules:Ef(),menu:!1}}}),Lf=Nf,Mf=Object(k["a"])(Lf,Vf,jf,!1,null,null,null),Pf=Mf.exports;uc()(Mf,{VCard:Ic["a"],VCardText:uu["b"],VCol:xc["a"],VDatePicker:$d["a"],VMenu:Nd["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"]});var Wf=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-dialog",{attrs:{"hide-overlay":"",transition:"dialog-bottom-transition"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v(t._s(t.title))]),o("v-card-text",[o("v-container",[t.state.isAvailableDatePeriod?t._e():[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("div",[o("v-select",{attrs:{label:"スタッフ",items:t.staffModels,"item-text":"staffName","item-value":"staffID",rules:t.rules.staff,"background-color":"white",outlined:"","hide-details":"auto"},model:{value:t.formContent.staffID,callback:function(e){t.$set(t.formContent,"staffID",e)},expression:"formContent.staffID"}})],1)])],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-menu",{attrs:{"close-on-content-click":!0,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:t.isDesired?"希望日付":"非希望日付","append-icon":"mdi-calendar",readonly:"",outlined:"","background-color":"white",rules:t.isDesired?t.rules.date:t.rules.nonDesiredDate},model:{value:t.formContent.dates,callback:function(e){t.$set(t.formContent,"dates",e)},expression:"formContent.dates"}},"v-text-field",a,!1),n))]}}],null,!1,2173121229)},[o("v-date-picker",{attrs:{"no-title":"",multiple:"","day-format":function(t){return new Date(t).getDate()}},model:{value:t.formContent.dates,callback:function(e){t.$set(t.formContent,"dates",e)},expression:"formContent.dates"}})],1)],1)],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.shiftModels,"item-text":"name","item-value":"shiftID",label:"第1希望","hide-details":"auto",outlined:"",clearable:"",rules:t.isDesired?t.rules.shiftID:t.rules.nonDesiredShiftID,"background-color":"white"},model:{value:t.formContent.first.shiftId,callback:function(e){t.$set(t.formContent.first,"shiftId",e)},expression:"formContent.first.shiftId"}})],1),t.isDesired?[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.shiftModels,"item-text":"name","item-value":"shiftID",label:"第2希望","hide-details":"auto",outlined:"",clearable:"","background-color":"white"},model:{value:t.formContent.second.shiftId,callback:function(e){t.$set(t.formContent.second,"shiftId",e)},expression:"formContent.second.shiftId"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.shiftModels,"item-text":"name","item-value":"shiftID",label:"第3希望","hide-details":"auto",outlined:"",clearable:"","background-color":"white"},model:{value:t.formContent.third.shiftId,callback:function(e){t.$set(t.formContent.third,"shiftId",e)},expression:"formContent.third.shiftId"}})],1)]:t._e()]],2)],1),o("v-card-actions",[t._t("actions",(function(){return[o("v-spacer"),o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){return t.$emit("close")}}},[t._v("閉じる")]),o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v("確認")]),o("v-spacer")]}))],2)],1)],1)],1),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,content:t.dialog.confirm.content,width:420},on:{confirm:t.submitInsert,close:function(e){t.dialog.confirm.show=!1}}})],1)},Bf=[],Hf={dataListRows:[{id:1,staffName:"山賀 誇子"},{id:2,staffName:"室谷 湯夜"},{id:3,staffName:"田部 采夢花"},{id:4,staffName:"江頭 小夜乃"},{id:5,staffName:"高塚 綺心"},{id:6,staffName:"永原 志摩夫"},{id:7,staffName:"常盤 晏夕"},{id:8,staffName:"荒木 愛音"},{id:9,staffName:"米澤 喜斉"},{id:10,staffName:"浦野 芽育"}]};var qf=Object(r["b"])({components:{ConfirmDialog:Yd},props:{show:{type:Boolean,required:!0,default:!1},title:{type:String,required:!1,default:""},content:{type:String,required:!1,default:""},isDesired:{type:Boolean,required:!0,default:!1}},setup:function(t,e){var o=Object(r["d"])(Yc),n=Object(r["d"])(Zc),a=Object(r["a"])((function(){if(console.log("call staffs"),console.log(o),o)return o.map((function(t){return{staffID:t.staffID.toString(),staffName:t.staffName}}))})),i=Object(r["a"])((function(){if(console.log("call shifts"),console.log(n),n)return n.map((function(t){return{shiftID:t.shiftID.toString(),name:t.name}}))})),s=Object(r["n"])({valid:!1,show:t.show,isAvailableDatePeriod:!1,staffListData:Hf.dataListRows,staffID:0}),l=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"登録しますか"}}),c=Object(r["n"])({staffID:0,dates:[],first:{shiftGroupId:0,shiftId:0},second:{shiftGroupId:0,shiftId:0},third:{shiftGroupId:0,shiftId:0}}),u=function(){l.confirm.show=!0},d=function(){console.log("submitInsert call"),console.log(c),l.confirm.show=!1,e.emit("submitInsert",c)};return{staffs:a,shifts:i,staffModels:o,shiftModels:n,formContent:c,validate:u,submitInsert:d,state:s,dialog:l,form:Object(r["p"])(),rules:Ef(),levelList:Cl,ruleCommons:Tl}}}),Qf=qf,Uf=Object(k["a"])(Qf,Wf,Bf,!1,null,null,null),zf=Uf.exports;uc()(Uf,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VContainer:eu["a"],VDatePicker:$d["a"],VDialog:Au["a"],VForm:fu["a"],VMenu:Nd["a"],VRow:Oc["a"],VSelect:Tf["a"],VSpacer:vc["a"],VTextField:yu["a"],VToolbar:Ku["a"]});var Kf=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-snackbar",{attrs:{color:t.color,fixed:"",center:"",top:"",timeout:t.timeout},scopedSlots:t._u([{key:"action",fn:function(e){var n=e.attrs;return[t._t("action",(function(){return[o("v-btn",t._b({attrs:{color:t.textColor,text:""},on:{click:function(e){return t.$emit("close")}}},"v-btn",n,!1),[t._v(" "+t._s(t.closeText)+" ")])]}))]}}],null,!0),model:{value:t.display,callback:function(e){t.display=e},expression:"display"}},[t._t("message",(function(){return[t._v(t._s(t.message))]}))],2)},Yf=[],Zf=Object(r["b"])({props:{show:{type:Boolean,required:!0,default:!1},color:{type:String,required:!1,default:""},textColor:{type:String,required:!1,default:""},closeText:{type:String,required:!1,default:"閉じる"},timeout:{type:String,required:!1,default:"-1"},message:{type:String,required:!0,default:!0}},emits:["close"],setup:function(t,e){var o=Object(r["r"])(t).show,n=Object(r["p"])();return Object(r["s"])((function(){return t.show}),(function(t){t&&(clearTimeout(n.value),n.value=setTimeout((function(){e.emit("close",!0)}),3e3))})),{display:o}}}),Jf=Zf,Xf=Object(k["a"])(Jf,Kf,Yf,!1,null,null,null),tm=Xf.exports;uc()(Xf,{VBtn:mc["a"],VSnackbar:hu["a"]});var em=Object(r["b"])({components:{ConfirmDialog:Yd,DeleteDialog:of,EditDesiredShift:Pf,ErrorDialog:Ou,CreateDesiredShift:zf,DeleteButton:cf,ResponseDialog:tm},setup:function(){var t=ic(),e=Object(r["p"])(),o=t.getters["shiftTable/selectShift"].shiftTableStatus.shiftTableStatusID,n=!1;t.commit("shiftTable/setIsDisplayShiftTable",{isDisp:n});var i=Object(r["n"])({editedStaffID:1,editedDesiredShiftID:1,btnDisable:!0,dialogDelete:!1,selectedStartYearMonth:"",selectedStaffIds:[],selectedShiftTableStatusID:-1,deleteDesiredShiftID:-1,desiredShiftRows:[],staffs:[],shifts:[],selectedDesiredShiftID:0,showDesiredShift:!1,editedDesiredShift:{desiredShiftID:0,concurrencyStamp:"",staffID:0,dates:[],first:{shiftGroupId:0,shiftId:0},second:{shiftGroupId:0,shiftId:0},third:{shiftGroupId:0,shiftId:0}},deleteDesiredShift:{desiredShiftID:0,concurrencyStamp:""},flg:!1,updFlg:!1,delFlg:!1}),s=Object(r["p"])([]),l=Object(r["p"])(),c=Object(r["n"])({valid:!1,dialogValid:!1}),u=Object(r["n"])({create:{show:!1,title:"希望シフト追加",close:"OK"},confirm:{show:!1,title:"確認",close:"OK",content:"希望シフトを保存しますか?"},delete:{show:!1,title:"確認",close:"OK",content:"選択した希望シフトを削除します、続行しますか?"},response:{show:!1,message:"",color:""},error:{show:!1,title:"",close:"",content:""}}),d=[{text:"スタッフ名",value:"name"},{text:"希望日付",value:"date"},{text:"第1希望",value:"first"},{text:"第2希望",value:"second"},{text:"第3希望",value:"third"},{text:"",value:"actions"}];function f(t){var e=String(t).split(/[-T]/);return"".concat(e[0],"-").concat(e[1],"-").concat(e[2])}var m=Object(r["n"])({level:-1,date:[],datePeriod:[],firstShiftID:null,secondShiftID:null,thirdShiftID:null,firstPatternShiftIDs:[],secondPatternShiftIDs:[],thirdPatternShiftIDs:[],isDesired:!0,prohibition:!1}),g=Object(r["n"])({level:1,date:[],datePeriod:[],firstShiftID:null,secondShiftID:null,thirdShiftID:null,firstPatternShiftIDs:[],secondPatternShiftIDs:[],thirdPatternShiftIDs:[],isDesired:!1,prohibition:!1});function h(){var e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=t.getters["shiftTable/selectShiftTableID"];if(-1!==o){i.selectedStaffIds=Sf(o);var n=pf(o);n&&(i.selectedShiftTableStatusID=n.shiftTableStatusID)}s.value=ml().filter((function(t){return i.selectedStaffIds.includes(t.staffID)}))}Object(r["j"])((function(){h()}));var v=Object(r["a"])((function(){return i.editedStaffID?kl(i.editedStaffID,i.selectedShiftTableStatusID):[]}));Object(r["s"])((function(){return i.editedDesiredShiftID}),(function(t){var o;null===(o=e.value)||void 0===o||o.resetValidation();var n=wl(t);if(n){var a,r,i,s,c;if(l.value=n,m.level=n.priority,m.date=n.configuration.date,m.firstShiftID=null===(a=n.configuration.singleSet.first)||void 0===a?void 0:a.shiftID,m.secondShiftID=null===(r=n.configuration.singleSet.second)||void 0===r?void 0:r.shiftID,m.thirdShiftID=null===(i=n.configuration.singleSet.third)||void 0===i?void 0:i.shiftID,n.configuration.datePeriod.start&&n.configuration.datePeriod.end)null===(s=m.datePeriod)||void 0===s||s.splice(0,2,n.configuration.datePeriod.start,n.configuration.datePeriod.end);else null===(c=m.datePeriod)||void 0===c||c.splice(0,2);n.configuration.multiSet.first?m.firstPatternShiftIDs=n.configuration.multiSet.first.map((function(t){return t&&t.shiftID})):m.firstPatternShiftIDs=[],n.configuration.multiSet.second?m.secondPatternShiftIDs=n.configuration.multiSet.second.map((function(t){return t&&t.shiftID})):m.secondPatternShiftIDs=[],n.configuration.multiSet.third?m.thirdPatternShiftIDs=n.configuration.multiSet.third.map((function(t){return t&&t.shiftID})):m.thirdPatternShiftIDs=[],m.prohibition=n.configuration.prohibition}}));var p=function(t,e){console.log("item",t),e.isSelected?(i.selectedDesiredShiftID=0,i.showDesiredShift=!1):(console.log("if内",e.isSelected),i.selectedDesiredShiftID=t.desiredShiftID,i.editedDesiredShift.desiredShiftID=t.desiredShiftID,i.editedDesiredShift.concurrencyStamp=t.concurrencyStamp,i.editedDesiredShift.staffID=t.staffID,i.editedDesiredShift.dates=t.date.map((function(t){return f(t)})),i.editedDesiredShift.first.shiftId=t.desiredShift[0].shiftID,i.editedDesiredShift.second.shiftId=t.desiredShift.length>=2?t.desiredShift[1].shiftID:0,i.editedDesiredShift.third.shiftId=t.desiredShift.length>=3?t.desiredShift[2].shiftID:0,i.showDesiredShift=!0),e.select(!e.isSelected),console.log("最後",e.isSelected)},b=function(){i.editedStaffID&&(u.create.show=!0)},y=function(){u.delete.show=!1;Object.assign({},i.deleteDesiredShiftID)},S=function(t){i.deleteDesiredShiftID=t.desiredShiftID,u.delete.show=!0},D=wa({id:0},E),C=(D.result,D.loading),w=D.onResult,k=(D.error,D.refetch);w((function(t){if(console.log("getOnResult call"),console.log(t.data.getDesiredShiftConfigs),!t.error&&t.data.getDesiredShiftConfigs){var e,o=t.data.getDesiredShiftConfigs.map((function(t){var e,o,n;return{desiredShiftID:t.desiredShiftID,concurrencyStamp:t.concurrencyStamp,registrationAccount:t.registrationAccount,registrationTime:t.registrationTime,shiftTableStatusID:t.shiftTableStatusID,staffID:t.staffID,name:t.name,dates:t.dates,desiredShift:t.desiredShift,requestStatus:t.requestStatus,priority:t.priority,date:t.dates.map((function(t){return f(t)})),first:null===t.desiredShift[0].shiftGroupID?null===(e=i.shifts.find((function(e){return e.shiftID===t.desiredShift[0].shiftID})))||void 0===e?void 0:e.name:t.desiredShift[0].shiftGroupID,second:t.desiredShift.length>=2?null===(o=i.shifts.find((function(e){return e.shiftID===t.desiredShift[1].shiftID})))||void 0===o?void 0:o.name:"",third:t.desiredShift.length>=3?null===(n=i.shifts.find((function(e){return e.shiftID===t.desiredShift[2].shiftID})))||void 0===n?void 0:n.name:""}}));(e=i.desiredShiftRows).splice.apply(e,[0,i.desiredShiftRows.length].concat(Object(a["a"])(o))),console.log("rows",i.desiredShiftRows)}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(u.error.content=n.message,u.error.show=!0)}}));var I=Dr(E),x=(I.loading,I.result,I.error,I.refetch),T=I.onResult;T((function(t){if(!t.error&&t.data.getStaffManagement&&Array.isArray(t.data.getStaffManagement)){var e,o=t.data.getStaffManagement.map((function(t){return{staffID:t.staffID,staffName:t.staffName}}));(e=i.staffs).splice.apply(e,[0,i.staffs.length].concat(Object(a["a"])(o)))}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(u.error.content=n.message,u.error.show=!0)}})),Object(r["m"])(Yc,i.staffs);var A=Xa(E),_=(A.loading,A.result,A.error,A.refetch),O=A.onResult;O((function(t){if(!t.error&&t.data.getShifts&&Array.isArray(t.data.getShifts)){var e,o=t.data.getShifts.map((function(t){return{shiftID:t.shiftID,name:t.name}}));(e=i.shifts).splice.apply(e,[0,i.shifts.length].concat(Object(a["a"])(o)))}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(u.error.content=n.message,u.error.show=!0)}})),Object(r["m"])(Zc,i.shifts);var R=Er({fetchPolicy:"no-cache"}),F=R.mutate,V=(R.loading,R.error,R.called,R.onDone),j=R.onError;V((function(t){var e,o;if(console.log("insertOnDone call"),i.flg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.insertDesiredShiftConfigs)&&void 0!==o&&o.succeed)u.create.show=!1,u.response.show=!0,u.response.color="success",u.response.message="登録成功",q();else if(t.errors){var n=pt(t.errors);u.error.content=n.message,u.error.show=!0}})),j((function(t){if(i.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);u.error.content=e.message,u.error.show=!0}else u.error.content="エラーメッセージ表示",u.error.show=!0}));var G=Li({fetchPolicy:"no-cache"}),$=G.mutate,N=(G.loading,G.error,G.called,G.onDone),L=G.onError;N((function(t){var e,o;if(i.updFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateDesiredShiftConfigs)&&void 0!==o&&o.succeed)u.confirm.show=!1,u.response.show=!0,u.response.color="success",u.response.message="保存しました",q(),i.showDesiredShift=!1;else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(u.error.content=n.message,u.error.show=!0)}})),L((function(t){if(console.log("updateOnError",t),i.updFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);u.error.content=e.message,u.error.show=!0}else u.error.content="エラーメッセージ表示",u.error.show=!0}));var P=Rn({fetchPolicy:"no-cache"}),W=P.mutate,B=(P.loading,P.error,P.called,P.onDone),H=P.onError;B((function(t){var e,o;if(i.delFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.deleteDesiredShiftConfigs)&&void 0!==o&&o.succeed)u.delete.show=!1,u.response.show=!0,u.response.color="success",u.response.message="削除しました",q();else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(u.error.content=n.message,u.error.show=!0)}})),H((function(t){if(console.log("deleteOnError",t),i.delFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);u.error.content=e.message,u.error.show=!0}else u.error.content="エラーメッセージ表示",u.error.show=!0}));var q=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,x();case 3:return t.next=5,_();case 5:return t.next=7,k({id:o});case 7:t.next=13;break;case 9:t.prev=9,t.t0=t["catch"](0),u.error.content=Bu,u.error.show=!0;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),Q=function(t){if(!i.flg){i.flg=!0;try{console.log("saveCreateDesiredShift call"),console.log(t);var e={shiftTableStatusID:o,staffID:t.staffID,dates:t.dates.map((function(t){return t+"T00:00:00.000000"})),first:{shiftGroupID:null,shiftID:t.first.shiftId},second:0!==t.second.shiftId?{shiftGroupID:null,shiftID:t.second.shiftId}:null,third:0!==t.third.shiftId?{shiftGroupID:null,shiftID:t.third.shiftId}:null};console.log("insertData",e),F({model:e}),console.log("ここきてる?")}catch(n){console.log("catch"),i.flg=!1,u.error.content=Hu,u.error.show=!0}}},U=function(){u.confirm.show=!0},z=function(){if(!i.updFlg){i.updFlg=!0;try{console.log("saveEditDesiredShift call"),console.log(i.editedDesiredShift);var t={desiredShiftID:i.editedDesiredShift.desiredShiftID,concurrencyStamp:i.editedDesiredShift.concurrencyStamp,dates:i.editedDesiredShift.dates.map((function(t){return t+"T00:00:00.000000"})),first:{shiftGroupID:null,shiftID:i.editedDesiredShift.first.shiftId},second:null!==i.editedDesiredShift.second.shiftId&&i.editedDesiredShift.second.shiftId>0?{shiftGroupID:null,shiftID:i.editedDesiredShift.second.shiftId}:null,third:null!==i.editedDesiredShift.third.shiftId&&i.editedDesiredShift.third.shiftId>0?{shiftGroupID:null,shiftID:i.editedDesiredShift.third.shiftId}:null};$({model:t})}catch(e){i.updFlg=!1,u.error.content=Hu,u.error.show=!0}}},K=function(t){i.deleteDesiredShift.desiredShiftID=t.desiredShiftID,i.deleteDesiredShift.concurrencyStamp=t.concurrencyStamp,u.delete.show=!0},Y=function(){if(console.log("deleteDesiredShift call"),console.log(i.deleteDesiredShift),!i.delFlg){i.delFlg=!0;try{var t={desiredShiftID:i.deleteDesiredShift.desiredShiftID,concurrencyStamp:i.deleteDesiredShift.concurrencyStamp};W({model:t})}catch(e){i.delFlg=!1,u.error.content=Hu,u.error.show=!0}}};return q(),{desiredShiftRows:v,form:e,dialog:u,editFormContent:m,createFormContent:g,newDataForm:g,state:i,staffRows:s,validState:c,desiredShitListHeader:d,staffListRows:ml(),levelList:Cl,rules:Ef(),getStaffAttributeGroupItems:pl,getLevelName:xl,shifts:$s,getShiftName:Ns,getDesiredShiftRows:kl,desiredShiftListClick:p,shiftForm:b,deleted:y,deleteItem:S,saveCreateDesiredShift:Q,validate:U,saveEditDesiredShift:z,deleteClick:K,deleteDesiredShift:Y,isGetLoading:C}},methods:{}}),om=em,nm=Object(k["a"])(om,Rf,Ff,!1,null,"08940c55",null),am=nm.exports;uc()(nm,{VBtn:mc["a"],VCard:Ic["a"],VCol:xc["a"],VDataTable:zu["a"],VDatePicker:$d["a"],VDivider:Tc["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VProgressCircular:Md["a"],VRow:Oc["a"],VSelect:Tf["a"],VSpacer:vc["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var rm=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("非希望シフト詳細設定")]),o("v-form",{ref:"form",model:{value:t.validState.valid,callback:function(e){t.$set(t.validState,"valid",e)},expression:"validState.valid"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"4"}},[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.staffListHeader,items:t.staffRows,"item-key":"staffID","hide-default-footer":"","items-per-page":-1,"single-select":"",height:"500","fixed-header":"",dense:"","sort-by":"sort"},on:{"click:row":t.staffListClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("スタッフリスト")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),o("v-spacer")],1)]},proxy:!0},{key:"item.desired",fn:function(e){var o=e.item;return[t._v(" "+t._s(t.haveDesired(o.staffID,t.state.selectedShiftTableStatusID))+" ")]}},{key:"item.staffAttribute",fn:function(e){var o=e.item;return[t._v(" "+t._s(t.getStaffAttributeGroupItems(o.staffID).join())+" ")]}},{key:"item.data-table-select",fn:function(t){var e=t.isSelected,n=t.select;return[o("v-simple-checkbox",{directives:[{name:"ripple",rawName:"v-ripple"}],attrs:{color:"primary",value:e},on:{input:function(t){return n(t)}}})]}}])})],1),o("v-col",{attrs:{cols:"12",md:"8"}},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-data-table",{staticClass:"content__table mb-5",attrs:{headers:t.desiredShitListHeader,items:t.desiredShiftRows,"item-key":"desiredShiftID","hide-default-footer":"","items-per-page":-1,"single-select":"","fixed-header":"",dense:""},on:{"click:row":t.desiredShitListClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("非希望シフトリスト")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),o("v-btn",{staticClass:"mb-2 mr-2",attrs:{id:"shiftFormBtn",color:"primary",dark:""},on:{click:t.shiftForm}},[t._v(" 追加 ")]),o("v-spacer")],1)]},proxy:!0},{key:"item.priority",fn:function(e){var o=e.item;return[t._v(" "+t._s(t.getLevelName(o.priority))+" ")]}},{key:"item.desiredDate",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.configuration.date.length>0?o.configuration.date.join():o.configuration.datePeriod.start+" - "+o.configuration.datePeriod.end)+" ")]}},{key:"item.first",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.configuration.date.length>0?t.getShiftName(o.configuration.singleSet.first.shiftID):o.configuration.multiSet.first.map((function(e){return t.getShiftName(e.shiftID)})).join())+" ")]}},{key:"item.actions",fn:function(e){var n=e.item;return[o("delete-button",{on:{delete:function(e){return t.deleteItem(n)}}})]}}])}),t.state.editedDesiredShiftID?o("edit-desired-shift",{attrs:{"form-content":t.editFormContent,"is-desired":!1},on:{"update:formContent":function(e){t.editFormContent=e}}}):t._e()],1)],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v("設定")])],1)])],1)],1)],1)],1)],1),o("create-desired-shift",{attrs:{"form-content":t.createFormContent,show:t.dialog.create.show,title:t.dialog.create.title,"is-desired":!1},on:{"update:formContent":function(e){t.createFormContent=e},submit:t.saveCreateDesiredShift,close:function(e){t.dialog.create.show=!1}}}),o("confirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{confirm:t.saveEditDesiredShift,close:function(e){t.dialog.confirm.show=!1}}}),o("deleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.deleted,close:function(e){t.dialog.delete.show=!1}}})],1)},im=[],sm=Object(r["b"])({components:{confirmDialog:Yd,deleteDialog:of,editDesiredShift:Pf,createDesiredShift:zf,deleteButton:cf},setup:function(){var t=ic(),e=Object(r["p"])(),o=Object(r["n"])({editedStaffID:null,editedDesiredShiftID:null,btnDisable:!0,dialogDelete:!1,selectedStartYearMonth:"",selectedStaffIds:[],selectedShiftTableStatusID:-1,deleteDesiredShiftID:-1}),n=Object(r["p"])([]),a=Object(r["p"])(),i=Object(r["n"])({valid:!1,dialogValid:!1}),s=[{text:"希望有無",value:"desired"},{text:"スタッフ名",value:"staffName"},{text:"スタッフ属性",value:"staffAttribute"},{text:"",value:"actions",sortable:!1}],l=[{text:"レベル",value:"priority"},{text:"非希望日付",value:"desiredDate"},{text:"非希望シフト",value:"first"},{text:"",value:"actions"}],c=Object(r["n"])({level:-1,date:[],datePeriod:[],firstShiftID:null,secondShiftID:null,thirdShiftID:null,firstPatternShiftIDs:[],secondPatternShiftIDs:[],thirdPatternShiftIDs:[],isDesired:!0,prohibition:!1}),u=Object(r["n"])({level:1,date:[],datePeriod:[],firstShiftID:null,secondShiftID:null,thirdShiftID:null,firstPatternShiftIDs:[],secondPatternShiftIDs:[],thirdPatternShiftIDs:[],isDesired:!1,prohibition:!1}),d=Object(r["n"])({create:{show:!1,title:"非希望シフト追加",close:"OK"},confirm:{show:!1,title:"確認",close:"OK",content:"非希望シフトを保存しますか?"},delete:{show:!1,title:"確認",close:"OK",content:"選択した非希望シフトを削除します、続行しますか?"}});function f(){var e=0;t.commit("main/changeDrawerContent",{contentId:e});var a=t.getters["shiftTable/selectShiftTableID"];if(-1!==a){o.selectedStaffIds=Sf(a);var r=pf(a);r&&(o.selectedShiftTableStatusID=r.shiftTableStatusID)}n.value=ml().filter((function(t){return o.selectedStaffIds.includes(t.staffID)}))}Object(r["j"])((function(){f()}));var m=Object(r["a"])((function(){return o.editedStaffID?Il(o.editedStaffID,o.selectedShiftTableStatusID):[]}));return Object(r["s"])((function(){return o.editedDesiredShiftID}),(function(t){var o;null===(o=e.value)||void 0===o||o.resetValidation();var n=wl(t);if(n){var r,i,s,l,u;if(a.value=n,c.level=n.priority,c.date=n.configuration.date,c.firstShiftID=null===(r=n.configuration.singleSet.first)||void 0===r?void 0:r.shiftID,c.secondShiftID=null===(i=n.configuration.singleSet.second)||void 0===i?void 0:i.shiftID,c.thirdShiftID=null===(s=n.configuration.singleSet.third)||void 0===s?void 0:s.shiftID,n.configuration.datePeriod.start&&n.configuration.datePeriod.end)null===(l=c.datePeriod)||void 0===l||l.splice(0,2,n.configuration.datePeriod.start,n.configuration.datePeriod.end);else null===(u=c.datePeriod)||void 0===u||u.splice(0,2);n.configuration.multiSet.first?c.firstPatternShiftIDs=n.configuration.multiSet.first.map((function(t){return t&&t.shiftID})):c.firstPatternShiftIDs=[],n.configuration.multiSet.second?c.secondPatternShiftIDs=n.configuration.multiSet.second.map((function(t){return t&&t.shiftID})):c.secondPatternShiftIDs=[],n.configuration.multiSet.third?c.thirdPatternShiftIDs=n.configuration.multiSet.third.map((function(t){return t&&t.shiftID})):c.thirdPatternShiftIDs=[],c.prohibition=n.configuration.prohibition}})),{desiredShiftRows:m,form:e,dialog:d,editFormContent:c,createFormContent:u,newDataForm:u,state:o,staffRows:n,validState:i,staffListHeader:s,desiredShitListHeader:l,staffListRows:ml(),levelList:Cl,rules:Ef(),getStaffAttributeGroupItems:pl,getLevelName:xl,shifts:$s,getShiftName:Ns,getDesiredShiftRows:kl}},methods:{staffListClick:function(t,e){this.state.editedStaffID=t.staffID,this.state.editedDesiredShiftID=null,e.isSelected||e.select(!e.isSelected)},desiredShitListClick:function(t,e){this.state.editedDesiredShiftID=t.desiredShiftID,e.isSelected||e.select(!e.isSelected)},validate:function(){var t;this.state.editedStaffID&&this.state.editedDesiredShiftID&&(null===(t=this.form)||void 0===t||t.validate(),this.validState.valid&&(this.dialog.confirm.show=!0))},shiftForm:function(){this.state.editedStaffID&&(this.dialog.create.show=!0)},deleted:function(){this.dialog.delete.show=!1;Object.assign({},this.state.deleteDesiredShiftID)},deleteItem:function(t){this.state.deleteDesiredShiftID=t.desiredShiftID,this.dialog.delete.show=!0},saveEditDesiredShift:function(){this.dialog.confirm.show=!1;Object.assign({},this.editFormContent)},saveCreateDesiredShift:function(){this.dialog.create.show=!1;Object.assign({},this.createFormContent)},haveDesired:function(t,e){return Il(t,e).length>0?"有":""}}}),lm=sm,cm=o("9e88"),um=o("269a"),dm=o.n(um),fm=o("5607"),mm=Object(k["a"])(lm,rm,im,!1,null,"198ab3e6",null),gm=mm.exports;uc()(mm,{VBtn:mc["a"],VCol:xc["a"],VDataTable:zu["a"],VDivider:Tc["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VSimpleCheckbox:cm["a"],VSpacer:vc["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]}),dm()(mm,{Ripple:fm["a"]});var hm=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("実績詳細設定")]),o("v-form",{ref:"form",model:{value:t.validState.valid,callback:function(e){t.$set(t.validState,"valid",e)},expression:"validState.valid"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"4"}},[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.staffListHeader,items:t.staffListRows,"item-key":"staffID","hide-default-footer":"","items-per-page":-1,"single-select":"",height:"500","fixed-header":"",dense:""},on:{"click:row":t.staffListClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("スタッフリスト")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),o("v-spacer")],1)]},proxy:!0},{key:"item.staffAttribute",fn:function(e){var o=e.item;return[t._v(" "+t._s(t.getStaffAttributeGroupItems(o.staffID))+" ")]}},{key:"item.data-table-select",fn:function(t){var e=t.isSelected,n=t.select;return[o("v-simple-checkbox",{directives:[{name:"ripple",rawName:"v-ripple"}],attrs:{color:"primary",value:e},on:{input:function(t){return n(t)}}})]}}])})],1),o("v-col",{attrs:{cols:"12",md:"8"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-card",[o("v-card-text",[o("div",[t._v("勤務年月日")]),o("v-date-picker",{attrs:{id:"workingDate","no-title":"",scrollable:"","full-width":""},model:{value:t.state.workingDate,callback:function(e){t.$set(t.state,"workingDate",e)},expression:"state.workingDate"}})],1)],1)],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-card",{staticClass:"pa-3",attrs:{outlined:""}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-select",{attrs:{id:"shiftID",items:t.shiftData,"item-text":"name","item-value":"id",label:"主シフト","hide-details":"auto",outlined:"",rules:t.rules.shiftID},model:{value:t.formContent.shiftID,callback:function(e){t.$set(t.formContent,"shiftID",e)},expression:"formContent.shiftID"}})],1),o("v-spacer"),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{id:"startTime",label:"勤務開始時刻","hide-details":"auto",outlined:"",type:"time",dense:"","background-color":"white",rules:t.rules.startTime},model:{value:t.formContent.startTime,callback:function(e){t.$set(t.formContent,"startTime",e)},expression:"formContent.startTime"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{id:"endTime",label:"勤務終了時刻","hide-details":"auto",outlined:"",type:"time",dense:"","background-color":"white",rules:t.rules.endTime},model:{value:t.formContent.endTime,callback:function(e){t.$set(t.formContent,"endTime",e)},expression:"formContent.endTime"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{id:"hoursDayShift",label:"日勤時間","hide-details":"auto",outlined:"",dense:"","background-color":"white",rules:t.rules.hoursDay},model:{value:t.formContent.hoursDayShift,callback:function(e){t.$set(t.formContent,"hoursDayShift",e)},expression:"formContent.hoursDayShift"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{id:"hoursNightShiftBefore",label:"前日夜勤時間","hide-details":"auto",outlined:"",dense:"","background-color":"white",rules:t.rules.hoursDay},model:{value:t.formContent.hoursNightShiftBefore,callback:function(e){t.$set(t.formContent,"hoursNightShiftBefore",e)},expression:"formContent.hoursNightShiftBefore"}})],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{id:"hoursNightShiftBefore",label:"当日夜勤時間","hide-details":"auto",outlined:"",dense:"","background-color":"white",rules:t.rules.hoursDay},model:{value:t.formContent.hoursNightShift,callback:function(e){t.$set(t.formContent,"hoursNightShift",e)},expression:"formContent.hoursNightShift"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{id:"hoursNightShiftNext",label:"翌日夜勤時間","hide-details":"auto",outlined:"",dense:"","background-color":"white",rules:t.rules.hoursDay},model:{value:t.formContent.hoursNightShiftNext,callback:function(e){t.$set(t.formContent,"hoursNightShiftNext",e)},expression:"formContent.hoursNightShiftNext"}})],1)],1)],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.combinedShitListHeader,items:t.rep.combinedShiftRows,"item-key":"combinedNo","hide-default-footer":"","items-per-page":-1,"single-select":"",height:"170","fixed-header":"",dense:""},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("複合シフトリスト")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),o("v-btn",{staticClass:"mb-2 mr-2",attrs:{id:"showDialogFormBtn",color:"primary",dark:""},on:{click:t.showDialogForm}},[t._v(" 複合シフト追加 ")]),o("v-spacer")],1)]},proxy:!0},{key:"item.actions",fn:function(e){var n=e.item;return[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-btn",{staticClass:"ma-2",attrs:{id:"editItem_"+n.combinedNo,color:"success",dark:""},on:{click:function(e){return t.editItem(n)}}},[t._v(" 編集 "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-account-edit")])],1)],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("delete-button",{on:{delete:function(e){return t.deleteItem(n)}}})],1)],1)]}}])})],1)],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v("設定")])],1)])],1)],1)],1)],1)],1),o("v-dialog",{attrs:{"hide-overlay":""},model:{value:t.dialog.shiftForm.show,callback:function(e){t.$set(t.dialog.shiftForm,"show",e)},expression:"dialog.shiftForm.show"}},[o("v-form",{ref:"dialogForm",model:{value:t.validState.dialogValid,callback:function(e){t.$set(t.validState,"dialogValid",e)},expression:"validState.dialogValid"}},[o("v-card",[o("v-toolbar",{attrs:{dark:"",color:"primary"}},[o("v-btn",{attrs:{id:"closeFormDialogBtn",icon:"",dark:""},on:{click:t.closeFormDialog}},[o("v-icon",[t._v("mdi-close")])],1),o("v-toolbar-title",[t._v(" "+t._s(t.dialog.shiftForm.title))]),o("v-spacer"),o("v-toolbar-items",[o("v-btn",{attrs:{id:"savaBtn",dark:"",text:""},on:{click:t.save}},[t._v(" 登録確認")])],1)],1),o("v-card-text",[o("v-container",[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{id:"multipleActualSectionID",items:t.actualSectionList,"item-text":"name","item-value":"id",label:"勤務先","hide-details":"auto",outlined:"","background-color":"white",rules:t.rules.actualSectionID},model:{value:t.dialogFormContent.actualSectionID,callback:function(e){t.$set(t.dialogFormContent,"actualSectionID",e)},expression:"dialogFormContent.actualSectionID"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{id:"multipleShiftID",items:t.shiftData,"item-text":"name","item-value":"id",label:"複合シフト","hide-details":"auto",rules:t.rules.shiftID,outlined:""},model:{value:t.dialogFormContent.shiftID,callback:function(e){t.$set(t.dialogFormContent,"shiftID",e)},expression:"dialogFormContent.shiftID"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{id:"multipleStartTime",label:"開始時間","hide-details":"auto",outlined:"",type:"time",dense:"","background-color":"white",rules:t.rules.startTime},model:{value:t.dialogFormContent.startTime,callback:function(e){t.$set(t.dialogFormContent,"startTime",e)},expression:"dialogFormContent.startTime"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{id:"multipleEndTime",label:"終了時間","hide-details":"auto",outlined:"",type:"time",dense:"","background-color":"white",rules:t.rules.endTime},model:{value:t.dialogFormContent.endTime,callback:function(e){t.$set(t.dialogFormContent,"endTime",e)},expression:"dialogFormContent.endTime"}})],1)],1)],1)],1)],1)],1)],1),o("confirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{confirm:t.saveGroupSettings,close:function(e){t.dialog.confirm.show=!1}}}),o("confirmDialog",{attrs:{show:t.dialog.combinedConfirm.show,title:t.dialog.combinedConfirm.title,agree:t.dialog.combinedConfirm.agree,content:t.dialog.combinedConfirm.content,width:420},on:{confirm:t.saveCombinedGroupSettings,close:function(e){t.dialog.combinedConfirm=!1}}}),o("deleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.deleted,close:function(e){t.dialog.delete.show=!1}}})],1)},vm=[],pm=[{shiftTableActualID:1,sectionID:1,shiftTableStatusID:1,virtualShiftTableStatusID:1,staffID:1,shiftID:1,registrationTime:"",registrationAccount:"2022-2-18",workingDate:"2022-2-18",isCombined:!0,combinedNo:1,actualSectionID:1,startTime:"",endTime:"",hoursNightShiftBefore:"",hoursDayShift:"",hoursNightShift:"",hoursNightShiftNext:""}],bm=[{id:1,name:"勤務先A"},{id:2,name:"勤務先B"},{id:3,name:"勤務先C"}];function ym(t,e){return pm.find((function(o){return o.staffID===t&&o.workingDate===e}))}var Sm=function(){return{shiftID:[function(t){return t&&-1!==parseInt(t)||"主シフトは必須項目です。"}],actualSectionID:[function(t){return t&&-1!==parseInt(t)||"勤務先は必須項目です。"}],startTime:[function(t){return!!t&&""!==t||"開始時間は必須項目です。"}],endTime:[function(t){return!!t&&""!==t||"終了時間は必須項目です。"}],hoursDay:[function(t){return String(t).length>=1||String(t).length<=5||"実終了時間は1桁から5桁までです。"},function(t){return Dm(t)<=2||"実終了時間は小数点2位までです。"}]}};function Dm(t){var e=String(t).split(".")[1];return e?e.length:0}var Cm=Object(r["b"])({components:{confirmDialog:Yd,deleteDialog:of,deleteButton:cf},setup:function(){var t=ic(),e=Object(r["n"])({editedCombinedNo:null,dialogDelete:!1,editedStaffIndex:null,workingDate:null,selectedStartYearMonth:"",selectedStaffIds:[],staffRows:[]}),o=Object(r["n"])({valid:!1,dialogValid:!1}),n=Object(r["n"])({combinedShiftRows:[]}),a=[{text:"スタッフ名",value:"staffName"},{text:"スタッフ属性",value:"staffAttribute"}],i=[{text:"勤務先",value:"actualSectionName"},{text:"複合シフト",value:"shiftName"},{text:"開始時間",value:"startTime"},{text:"終了時間",value:"endTime"},{text:"",value:"actions",sortable:!1}],s=Object(r["n"])({shiftID:-1,workingDate:"",startTime:"",endTime:"",hoursNightShiftBefore:null,hoursDayShift:null,hoursNightShift:null,hoursNightShiftNext:null}),l=Object(r["n"])({actualSectionID:-1,shiftID:-1,startTime:"",endTime:""}),c=Object(r["n"])({shiftForm:{show:!1,title:""},confirm:{show:!1,title:"確認",close:"OK",content:"実績詳細設定を保存しますか?"},combinedConfirm:{show:!1,title:"確認",close:"OK",content:"複合シフトを保存しますか?"},delete:{show:!1,title:"確認",close:"OK",content:"選択したレコードを削除します、続行しますか?"}});function u(){var o=0;t.commit("main/changeDrawerContent",{contentId:o}),e.staffRows=d.value}Object(r["j"])((function(){u()}));var d=Object(r["a"])((function(){var o=t.getters["shiftTable/selectShift"],n=t.getters["shiftTable/selectShiftTableID"];return""!==o.startDate&&(e.selectedStartYearMonth=o.startDate),-1!==n&&(e.selectedStaffIds=Sf(n)),ml().filter((function(t){return e.selectedStaffIds.includes(t.staffID)}))})),f=Object(r["p"])();return Object(r["s"])(e,(function(t,e){if(e.editedStaffIndex&&e.workingDate){var o,a=ym(e.editedStaffIndex,e.workingDate);if(a)s.shiftID=null===a||void 0===a?void 0:a.shiftID,s.startTime=null===a||void 0===a?void 0:a.startTime,s.endTime=null===a||void 0===a?void 0:a.endTime;else null===(o=f.value)||void 0===o||o.reset(),n.combinedShiftRows=[]}})),{form:f,dialogForm:Object(r["p"])(),dialog:c,formContent:s,dialogFormContent:l,state:e,validState:o,rep:n,staffListHeader:a,combinedShitListHeader:i,staffListRows:ml(),actualSectionList:bm,rules:Sm(),getStaffAttributeGroupItems:pl}},methods:{staffListClick:function(t,e){var o;this.state.editedStaffIndex=t.staffID,null===(o=this.form)||void 0===o||o.reset(),e.isSelected||e.select(!e.isSelected)},showDialogForm:function(){this.state.editedStaffIndex&&this.state.workingDate&&(this.dialog.shiftForm={show:!0,title:"新規"})},validate:function(){var t;null===(t=this.form)||void 0===t||t.validate(),this.validState.valid&&(this.dialog.confirm.show=!0)},save:function(){var t;null===(t=this.dialogForm)||void 0===t||t.validate(),this.validState.dialogValid&&(this.closeFormDialog(),this.dialog.combinedConfirm.show=!0)},saveGroupSettings:function(){this.dialog.confirm.show=!1},saveCombinedGroupSettings:function(){this.dialog.combinedConfirm.show=!1},editItem:function(t){this.state.editedCombinedNo=t.combinedNo,this.dialog.shiftForm={show:!0,title:"編集"},this.dialogFormContent.shiftID=t.shiftID,this.dialogFormContent.actualSectionID=t.actualSectionID,this.dialogFormContent.startTime=t.startTime,this.dialogFormContent.endTime=t.endTime},deleteItem:function(t){this.deleteItemData=t.combinedNo,this.dialog.delete.show=!0},deleted:function(){this.dialog.delete.show=!1},closeFormDialog:function(){this.dialog.shiftForm.show=!1}}}),wm=Cm,km=Object(k["a"])(wm,hm,vm,!1,null,"cacc2a6e",null),Im=km.exports;uc()(km,{VBtn:mc["a"],VCard:Ic["a"],VCardText:uu["b"],VCol:xc["a"],VContainer:eu["a"],VDataTable:zu["a"],VDatePicker:$d["a"],VDialog:Au["a"],VDivider:Tc["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VSelect:Tf["a"],VSimpleCheckbox:cm["a"],VSpacer:vc["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarItems:Yu["a"],VToolbarTitle:Yu["b"]}),dm()(km,{Ripple:fm["a"]});var xm=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("自動作成制限時間設定")]),t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",{staticClass:"content__form form"},[o("v-row",[o("v-form",{ref:"form",model:{value:t.state.isValidate,callback:function(e){t.$set(t.state,"isValidate",e)},expression:"state.isValidate"}},[o("v-col",{attrs:{cols:"12"}},[o("v-checkbox",{attrs:{label:"指定された時間が経過したら自動作成を停止する"},model:{value:t.state.isSetTimeLimit,callback:function(e){t.$set(t.state,"isSetTimeLimit",e)},expression:"state.isSetTimeLimit"}})],1),o("v-col",{attrs:{cols:"6"}},[o("v-text-field",{attrs:{disabled:!t.state.isSetTimeLimit,min:1,max:10,rules:t.rules.timeLimit,label:"停止するまでの時間(分)",type:"number","background-color":"white",outlined:""},model:{value:t.state.timeLimit,callback:function(e){t.$set(t.state,"timeLimit",e)},expression:"state.timeLimit"}})],1),o("v-col",{attrs:{cols:"6"}},[o("v-text-field",{attrs:{min:1,max:3,rules:t.rules.completeMax,label:"作成するシフト表の数(枚)",type:"number","background-color":"white",outlined:""},model:{value:t.state.completeMax,callback:function(e){t.$set(t.state,"completeMax",e)},expression:"state.completeMax"}})],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v("mdi-content-save-check")])],1)],1)])],1)],1)],1)],1)]),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.saveSettings}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},Tm=[],Am=function(){return{timeLimit:[function(t){return parseInt(t)>0&&parseInt(t)<=10||"時間は1~10分です"},function(t){return!isNaN(parseInt(t))||"時間は数値のみ入力可です"}],completeMax:[function(t){return parseInt(t)>0&&parseInt(t)<=3||"枚数は1~3枚です"},function(t){return!isNaN(parseInt(t))||"枚数は数値のみ入力可です"}]}},_m=Object(r["b"])({components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=!1;t.commit("shiftTable/setIsDisplayShiftTable",{isDisp:o});var n=Object(r["p"])(),a=1,i=Object(r["n"])({optionSectionID:0,concurrencyStamp:"",isSetTimeLimit:!1,timeLimit:0,completeMax:0,isValidate:!1,flg:!1}),s=Object(r["n"])({confirm:{show:!1},error:{show:!1,content:""},response:{show:!1,message:"",color:""}}),l=ma({id:0},E),c=(l.result,l.loading),u=l.onResult,d=(l.error,l.refetch);u((function(t){if(console.log("getOnResult call"),!t.error&&t.data.getAutomaticCreationTimeLimit)console.log(t.data.getAutomaticCreationTimeLimit),i.optionSectionID=t.data.getAutomaticCreationTimeLimit.optionSectionID,i.concurrencyStamp=t.data.getAutomaticCreationTimeLimit.concurrencyStamp,i.isSetTimeLimit=t.data.getAutomaticCreationTimeLimit.isSetTimeLimit,i.timeLimit=t.data.getAutomaticCreationTimeLimit.timeLimit/60,i.completeMax=t.data.getAutomaticCreationTimeLimit.completeMax;else if(t.errors){var e=pt(t.errors);e.code!==M.QueryRecordNotFound&&(s.error.content=e.message,s.error.show=!0)}}));var f=_i({fetchPolicy:"no-cache"}),m=f.mutate,g=(f.loading,f.error,f.called,f.onDone),h=f.onError;g((function(t){var e,o;console.log("updateOnDone call"),i.flg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateAutomaticCreationTimeLimit)&&void 0!==o&&o.succeed&&(s.confirm.show=!1,s.response.show=!0,s.response.color="success",s.response.message="設定を保存しました",b())})),h((function(t){if(i.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(s.error.content=t.message,s.error.show=!0)}}));var v=function(){if(console.log("saveSettings call"),!i.flg){i.flg=!0;try{var t={optionSectionID:i.optionSectionID,concurrencyStamp:i.concurrencyStamp,isSetTimeLimit:i.isSetTimeLimit,timeLimit:Number(60*i.timeLimit),completeMax:Number(i.completeMax)};console.log(t),m({model:t})}catch(e){i.flg=!1,s.error.content=Hu,s.error.show=!0}}},p=function(){var t;console.log("validate call"),null===(t=n.value)||void 0===t||t.validate(),i.isValidate&&(s.confirm.show=!0)},b=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("queryData"),t.prev=1,t.next=4,d({id:a});case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](1),s.error.content=Bu,s.error.show=!0;case 10:case"end":return t.stop()}}),t,null,[[1,6]])})));return function(){return t.apply(this,arguments)}}();return b(),{form:n,state:i,dialog:s,saveSettings:v,validate:p,queryData:b,rules:Am(),isGetLoading:c}}}),Om=_m,Rm=Object(k["a"])(Om,xm,Tm,!1,null,null,null),Fm=Rm.exports;uc()(Rm,{VBtn:mc["a"],VCheckbox:du["a"],VCol:xc["a"],VForm:fu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRow:Oc["a"],VTextField:yu["a"]});var Vm=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("表示デザイン設定")]),t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{lg:"12",cols:"12"}},[o("v-row",[o("v-col",{attrs:{lg:"12",cols:"12"}},[o("v-checkbox",{attrs:{label:"略称を表示",color:"indigo","hide-details":""},model:{value:t.state.displayDesignConfig.isAbbreviated,callback:function(e){t.$set(t.state.displayDesignConfig,"isAbbreviated",e)},expression:"state.displayDesignConfig.isAbbreviated"}})],1),o("v-col",{attrs:{lg:"12",cols:"12"}},[o("v-checkbox",{attrs:{label:"行番号を表示",color:"indigo","hide-details":""},model:{value:t.state.displayDesignConfig.isLineNumber,callback:function(e){t.$set(t.state.displayDesignConfig,"isLineNumber",e)},expression:"state.displayDesignConfig.isLineNumber"}})],1),o("v-col",{attrs:{lg:"12",cols:"12"}},[o("v-checkbox",{attrs:{label:"実績を表示",color:"indigo","hide-details":""},model:{value:t.state.displayDesignConfig.isActual,callback:function(e){t.$set(t.state.displayDesignConfig,"isActual",e)},expression:"state.displayDesignConfig.isActual"}})],1),o("v-col",{attrs:{lg:"12",cols:"12"}},[o("v-checkbox",{attrs:{label:"行事予定を表示",color:"indigo","hide-details":""},model:{value:t.state.displayDesignConfig.isEvents,callback:function(e){t.$set(t.state.displayDesignConfig,"isEvents",e)},expression:"state.displayDesignConfig.isEvents"}})],1),o("v-col",{attrs:{lg:"12",cols:"12"}},[o("v-checkbox",{attrs:{label:"今月存在するスタッフのみ表示",color:"indigo","hide-details":""},model:{value:t.state.displayDesignConfig.isCurrentMonthStaffs,callback:function(e){t.$set(t.state.displayDesignConfig,"isCurrentMonthStaffs",e)},expression:"state.displayDesignConfig.isCurrentMonthStaffs"}})],1)],1)],1),o("v-col",{attrs:{lg:"12",cols:"12"}},[o("v-card",[o("div",[o("v-autocomplete",{attrs:{"return-object":"",items:t.state.staffAttributeGroups,"item-text":"name","item-value":"id",label:"スタッフ属性グループ",placeholder:"選択されたスタッフ属性グループはありません。",chips:"",multiple:"",outlined:"","hide-details":"","hide-selected":""},scopedSlots:t._u([{key:"selection",fn:function(e){var n=e.item;return[o("v-chip",{staticClass:"ma-2",attrs:{close:"",color:"primary","text-color":"white"},on:{"click:close":function(e){return t.removeGroup(n)}}},[t._v(" "+t._s(n.name)+" ")])]}}],null,!1,2794520092),model:{value:t.state.displayDesignConfig.hideAttributes,callback:function(e){t.$set(t.state.displayDesignConfig,"hideAttributes",e)},expression:"state.displayDesignConfig.hideAttributes"}})],1)])],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)])],1)],1)],1)],1)]),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.saveSettings}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},jm=[],Em=Object(r["b"])({components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=!1;t.commit("shiftTable/setIsDisplayShiftTable",{isDisp:o});var n=1,i=Object(r["n"])({displayDesignConfig:{optionSectionID:0,concurrencyStamp:"",isAbbreviated:!1,isLineNumber:!1,isActual:!1,isEvents:!1,isCurrentMonthStaffs:!1,hideAttributes:[]},staffAttributeGroups:[],flg:!1}),s=Object(r["n"])({confirm:{show:!1},error:{show:!1,content:""},response:{show:!1,message:"",color:""}}),l=Ia({id:0},E),c=(l.result,l.loading),u=l.onResult,d=(l.error,l.refetch);u((function(t){if(!t.error&&t.data.getDisplayDesignConfig)i.displayDesignConfig.optionSectionID=t.data.getDisplayDesignConfig.optionSectionID,i.displayDesignConfig.concurrencyStamp=t.data.getDisplayDesignConfig.concurrencyStamp,i.displayDesignConfig.isAbbreviated=t.data.getDisplayDesignConfig.isAbbreviated,i.displayDesignConfig.isLineNumber=t.data.getDisplayDesignConfig.isLineNumber,i.displayDesignConfig.isActual=t.data.getDisplayDesignConfig.isActual,i.displayDesignConfig.isEvents=t.data.getDisplayDesignConfig.isEvents,i.displayDesignConfig.isCurrentMonthStaffs=t.data.getDisplayDesignConfig.isCurrentMonthStaffs,console.log("hideAttributeCommons"),t.data.getDisplayDesignConfig.hideAttributeCommons.map((function(t){i.displayDesignConfig.hideAttributes.push({staffAttributeGroupCommonID:t.staffAttributeGroupCommonID,staffAttributeGroupSectionID:0,name:t.name})})),console.log("hideAttributeSections"),t.data.getDisplayDesignConfig.hideAttributeSections.map((function(t){i.displayDesignConfig.hideAttributes.push({staffAttributeGroupCommonID:0,staffAttributeGroupSectionID:t.staffAttributeGroupSectionID,name:t.name})})),console.log("state.displayDesignConfig.hideAttributes",i.displayDesignConfig.hideAttributes);else if(t.errors){var e=pt(t.errors);e.code!==M.QueryRecordNotFound&&(s.error.content=e.message,s.error.show=!0)}}));var f=dr(E),m=(f.result,f.loading,f.onResult),g=(f.error,f.refetch);m((function(t){if(console.log("onResult call"),!t.error&&t.data.getStaffAttributeGroupCommons&&Array.isArray(t.data.getStaffAttributeGroupCommons)){var e,o=t.data.getStaffAttributeGroupCommons.map((function(t){return{staffAttributeGroupCommonID:null===t||void 0===t?void 0:t.staffAttributeGroupCommonID,staffAttributeGroupSectionID:0,name:t.name}}));(e=i.staffAttributeGroups).splice.apply(e,[0,i.staffAttributeGroups.length].concat(Object(a["a"])(o))),console.log(i.staffAttributeGroups),console.log("onResult!")}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(s.error.content=n.message,s.error.show=!0)}}));var h=hr({id:0},E),v=(h.result,h.loading,h.onResult),p=(h.error,h.refetch);v((function(t){if(console.log("onResult call"),!t.error&&t.data.getStaffAttributeGroupSections&&Array.isArray(t.data.getStaffAttributeGroupSections)){var e,o=t.data.getStaffAttributeGroupSections.map((function(t){return{staffAttributeGroupCommonID:0,staffAttributeGroupSectionID:null===t||void 0===t?void 0:t.staffAttributeGroupSectionID,name:t.name}}));(e=i.staffAttributeGroups).splice.apply(e,[0,i.staffAttributeGroups.length].concat(Object(a["a"])(o))),console.log(i.staffAttributeGroups),console.log("onResult!")}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(s.error.content=n.message,s.error.show=!0)}}));var b=Pi({fetchPolicy:"no-cache"}),y=b.mutate,S=(b.loading,b.error,b.called,b.onDone),D=b.onError;S((function(t){var e,o;i.flg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateDisplayDesignConfig)&&void 0!==o&&o.succeed&&(s.confirm.show=!1,s.response.show=!0,s.response.color="success",s.response.message="設定を保存しました",i.displayDesignConfig.hideAttributes=[],k())})),D((function(t){if(i.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(s.error.content=t.message,s.error.show=!0)}}));var C=function(){if(!i.flg){i.flg=!0;try{var t=[],e=[];i.displayDesignConfig.hideAttributes.filter((function(o){o.staffAttributeGroupCommonID>0?t.push(o.staffAttributeGroupCommonID):e.push(o.staffAttributeGroupSectionID)}));var o={optionSectionID:i.displayDesignConfig.optionSectionID,concurrencyStamp:i.displayDesignConfig.concurrencyStamp,isAbbreviated:i.displayDesignConfig.isAbbreviated,isLineNumber:i.displayDesignConfig.isLineNumber,isActual:i.displayDesignConfig.isActual,isEvents:i.displayDesignConfig.isEvents,isCurrentMonthStaffs:i.displayDesignConfig.isCurrentMonthStaffs,hideAttributeCommonIDs:t,hideAttributeSectionIDs:e};console.log("updateData",o),y({model:o})}catch(n){i.flg=!1,s.error.content=Hu,s.error.show=!0}}},w=function(){console.log("validate call"),console.log("hideAttributes",i.displayDesignConfig.hideAttributes),s.confirm.show=!0},k=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("queryData"),t.prev=1,t.next=4,d({id:n});case 4:return t.next=6,g();case 6:return t.next=8,p({id:n});case 8:t.next=14;break;case 10:t.prev=10,t.t0=t["catch"](1),s.error.content=Bu,s.error.show=!0;case 14:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(){return t.apply(this,arguments)}}(),I=function(t){i.displayDesignConfig.hideAttributes.splice(i.displayDesignConfig.hideAttributes.findIndex((function(e){return e.staffAttributeGroupItemID===t.staffAttributeGroupItemID})),1)};return k(),{state:i,dialog:s,saveSettings:C,validate:w,queryData:k,removeGroup:I,isGetLoading:c}}}),Gm=Em,$m=o("c6a6"),Nm=o("cc20"),Lm=Object(k["a"])(Gm,Vm,jm,!1,null,"04ac2a7e",null),Mm=Lm.exports;uc()(Lm,{VAutocomplete:$m["a"],VBtn:mc["a"],VCard:Ic["a"],VCheckbox:du["a"],VChip:Nm["a"],VCol:xc["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRow:Oc["a"]});var Pm=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("シフト表状態設定")]),t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-form",{ref:"form",staticClass:"content__form form"},[o("v-row",[o("v-radio-group",{staticClass:"pl-3 pt-2",attrs:{label:"シフト表状態"},model:{value:t.state.shiftTableStatus.status,callback:function(e){t.$set(t.state.shiftTableStatus,"status",e)},expression:"state.shiftTableStatus.status"}},[o("v-radio",{attrs:{label:"予定入力中",value:"INPUT_SCHEDULE"}}),o("v-radio",{attrs:{label:"実績入力中",value:"INPUT_ACTUAL"}}),o("v-radio",{attrs:{label:"確定",value:"CONFIRM"}})],1)],1),o("v-row",[o("v-col",{attrs:{xl:"6",cols:"12"}},[o("v-card",{staticClass:"pl-3 pr-3 pt-3"},[o("div",{staticClass:"pb-3"},[t._v("シフト希望受付期間")]),o("v-row",[o("v-col",{attrs:{cols:"5",md:"4"}},[o("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{rules:t.rules.startDate,label:"開始日","append-icon":"mdi-calendar",outlined:"",dense:"","hide-details":"auto","background-color":"white"},model:{value:t.state.shiftTableStatus.startDate,callback:function(e){t.$set(t.state.shiftTableStatus,"startDate",e)},expression:"state.shiftTableStatus.startDate"}},"v-text-field",a,!1),n))]}}],null,!1,404050592)},[o("v-date-picker",{attrs:{"no-title":""},model:{value:t.state.shiftTableStatus.startDate,callback:function(e){t.$set(t.state.shiftTableStatus,"startDate",e)},expression:"state.shiftTableStatus.startDate"}})],1)],1),o("div",{staticClass:"mt-6"},[t._v("~")]),o("v-col",{attrs:{cols:"5",md:"4"}},[o("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{rules:t.rules.endDate,label:"終了日","append-icon":"mdi-calendar",outlined:"",dense:"","hide-details":"auto","background-color":"white"},model:{value:t.state.shiftTableStatus.endDate,callback:function(e){t.$set(t.state.shiftTableStatus,"endDate",e)},expression:"state.shiftTableStatus.endDate"}},"v-text-field",a,!1),n))]}}],null,!1,3848040964)},[o("v-date-picker",{attrs:{"no-title":""},model:{value:t.state.shiftTableStatus.endDate,callback:function(e){t.$set(t.state.shiftTableStatus,"endDate",e)},expression:"state.shiftTableStatus.endDate"}})],1)],1)],1)],1)],1)],1)],1),o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.submit}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v("mdi-content-save-check")])],1)],1)])],1)],1)]),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.saveSettings}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},Wm=[],Bm=function(){return{startDate:[function(t){return!!t&&0!==t.length||"開始日が必要です。"}],endDate:[function(t){return!!t&&0!==t.length||"終了日が必要です。"}]}},Hm=Object(r["b"])({components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm},setup:function(){console.log("setup");var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=!1;t.commit("shiftTable/setIsDisplayShiftTable",{isDisp:o});var n=t.getters["shiftTable/selectShift"],a=Object(r["n"])({shiftTableStatus:{shiftTableStatusID:0,concurrencyStamp:"",status:an.InputSchedule,startDate:"",endDate:""},flg:!1}),i=Object(r["n"])({confirm:{show:!1},error:{show:!1,content:""},response:{show:!1,message:"",color:""}});function s(t){var e=String(t).split(/[-T]/);return"".concat(e[0],"-").concat(e[1],"-").concat(e[2])}var l=Za({id:0},E),c=(l.result,l.loading),u=l.onResult,d=(l.error,l.refetch);u((function(t){if(console.log("getOnResult",t),t.data&&t.data.getShiftTableStatus)t.data.getShiftTableStatus.status&&(a.shiftTableStatus.shiftTableStatusID=t.data.getShiftTableStatus.shiftTableStatusID,a.shiftTableStatus.concurrencyStamp=t.data.getShiftTableStatus.concurrencyStamp,a.shiftTableStatus.status=t.data.getShiftTableStatus.status,a.shiftTableStatus.startDate=s(t.data.getShiftTableStatus.desireReceptionStartDate),a.shiftTableStatus.endDate=s(t.data.getShiftTableStatus.desireReceptionEndDate)),console.log("shiftTableStatus",a.shiftTableStatus);else if(t.errors){var e=pt(t.errors);e.code!==M.QueryRecordNotFound&&(i.error.content=e.message,i.error.show=!0)}}));var f=ns({fetchPolicy:"no-cache"}),m=f.mutate,g=(f.loading,f.error,f.called,f.onDone),h=f.onError;g((function(e){var o,n;if(console.log("updateOnDone",e),a.flg=!1,null!==(o=e.data)&&void 0!==o&&null!==(n=o.updateShiftTableStatus)&&void 0!==n&&n.succeed){var r,s;if(null!==(r=e.data)&&void 0!==r&&null!==(s=r.updateShiftTableStatus.result)&&void 0!==s&&s.status){var l,c,u=null===(l=e.data)||void 0===l||null===(c=l.updateShiftTableStatus.result)||void 0===c?void 0:c.status;t.commit("shiftTable/setSelectShiftTableStatus",{status:u})}i.response.show=!0,i.response.color="success",i.response.message="設定を保存しました"}i.confirm.show=!1,v()})),h((function(t){if(console.log("updateOnError",t),a.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);i.error.content=e.message,i.error.show=!0}else i.error.content="エラーメッセージ表示",i.error.show=!0}));var v=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=n.shiftTableStatus.shiftTableStatusID,t.next=4,d({id:e});case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](0),i.error.content=Bu,i.error.show=!0;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),p=function(){if(!a.flg){a.flg=!0;try{var t={shiftTableStatusID:a.shiftTableStatus.shiftTableStatusID,concurrencyStamp:a.shiftTableStatus.concurrencyStamp,status:a.shiftTableStatus.status,desireReceptionStartDate:a.shiftTableStatus.startDate+"T00:00:00.000000",desireReceptionEndDate:a.shiftTableStatus.endDate+"T00:00:00.000000"};console.log(t),m({model:t})}catch(e){a.flg=!1,i.error.content=Hu,i.error.show=!0}}},b=function(){i.confirm.show=!0};return v(),{state:a,dialog:i,saveSettings:p,submit:b,rules:Bm(),isGetLoading:c}}}),qm=Hm,Qm=Object(k["a"])(qm,Pm,Wm,!1,null,"59d98fa6",null),Um=Qm.exports;uc()(Qm,{VBtn:mc["a"],VCard:Ic["a"],VCol:xc["a"],VDatePicker:$d["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VProgressCircular:Md["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VTextField:yu["a"]});var zm=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("縦計表示設定")]),t.isGetDateAggregatesLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-card",[o("v-data-table",{attrs:{headers:t.dataListHeader,items:t.state.dataListRows,"item-key":"dateAggregateID","single-select":"","hide-default-footer":"","disable-pagination":""},on:{"click:row":t.rowClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("縦計項目")])],1)]},proxy:!0},t.state.isButtonClick?{key:"body",fn:function(e){var n=e.items;return[o("draggable",{attrs:{tag:"tbody"},model:{value:t.state.dataListRows,callback:function(e){t.$set(t.state,"dataListRows",e)},expression:"state.dataListRows"}},t._l(n,(function(e,n){return o("tr",{key:n},[o("td",[o("v-checkbox",{staticClass:"mt-2 ms-0.8",attrs:{readonly:"",color:"primary"},model:{value:e.isUse,callback:function(o){t.$set(e,"isUse",o)},expression:"item.isUse"}})],1),o("td",[t._v(t._s(e.title))]),o("td",[o("Delete-button",{attrs:{btn:!0},on:{delete:function(o){return t.removeData(e)}}})],1)])})),0)]}}:null,t.state.isButtonClick?null:{key:"item.isUse",fn:function(e){var n=e.item;return[o("v-checkbox",{staticClass:"mt-2",attrs:{readonly:"",color:"primary"},model:{value:n.isUse,callback:function(e){t.$set(n,"isUse",e)},expression:"item.isUse"}})]}},t.state.isButtonClick?null:{key:"item.actions",fn:function(e){var n=e.item;return[o("Delete-button",{on:{delete:function(e){return t.removeData(n)}}})]}}],null,!0),model:{value:t.selectedDataLists,callback:function(e){t.selectedDataLists=e},expression:"selectedDataLists"}}),t.state.isDisabledEdit?o("div",{staticClass:"content__btn form__btn pb-3"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:""},on:{click:t.saveClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-content-save-check ")])],1)]}}],null,!1,1899380433)},[o("span",[t._v("保存")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"#B0BEC5",dark:""},on:{click:t.doneClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-close-box-outline ")])],1)]}}],null,!1,3430910129)},[o("span",[t._v("終了")])])],1):o("div",{staticClass:"content__btn form__btn pb-3"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:""},on:{click:function(e){return t.createClick()}}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-plus-box-outline ")])],1)]}}])},[o("span",[t._v("追加")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:""},on:{click:t.sortClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-sort ")])],1)]}}])},[o("span",[t._v("並べ替え")])])],1)],1),o("v-row",{staticClass:"mt-5"},[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1)],1),t.state.selectedRowID>0?o("v-col",{class:{"point-event-none":t.state.enabledItem},attrs:{cols:"12",md:"6"}},[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-form",{ref:"editForm",model:{value:t.state.isEditValid,callback:function(e){t.$set(t.state,"isEditValid",e)},expression:"state.isEditValid"}},[o("v-checkbox",{attrs:{label:"この集計項目を使用する"},model:{value:t.state.editForm.useSummaryField,callback:function(e){t.$set(t.state.editForm,"useSummaryField",e)},expression:"state.editForm.useSummaryField"}}),o("v-text-field",{attrs:{required:"",outlined:"",rules:t.rules.title,"background-color":"white",label:"タイトル"},model:{value:t.state.editForm.title,callback:function(e){t.$set(t.state.editForm,"title",e)},expression:"state.editForm.title"}}),o("v-select",{attrs:{items:t.state.shiftData,label:"合算するシフト","item-text":"name","item-value":"shiftID",rules:t.rules.shift,attach:"","background-color":"white",multiple:"",clearable:"",outlined:""},model:{value:t.state.editForm.selectedShift,callback:function(e){t.$set(t.state.editForm,"selectedShift",e)},expression:"state.editForm.selectedShift"}}),o("v-checkbox",{attrs:{label:"集計時の「0」を使用しない"},model:{value:t.state.editForm.isNotUseZero,callback:function(e){t.$set(t.state.editForm,"isNotUseZero",e)},expression:"state.editForm.isNotUseZero"}}),o("div",[o("v-text-field",{attrs:{"background-color":"white",label:"「0」の代わりに表示する文字",required:"",outlined:"","hide-details":""},model:{value:t.state.editForm.alternateText,callback:function(e){t.$set(t.state.editForm,"alternateText",e)},expression:"state.editForm.alternateText"}})],1)],1)],1),o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-card",[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("集計対象")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),o("v-radio-group",{attrs:{"hide-details":"auto",row:""},model:{value:t.state.editForm.selectType,callback:function(e){t.$set(t.state.editForm,"selectType",e)},expression:"state.editForm.selectType"}},[o("v-radio",{attrs:{label:"スタッフ・スタッフ属性指定",value:1}}),o("v-radio",{attrs:{label:"全員",value:2}})],1)],1),1==t.state.editForm.selectType?o("div",[o("v-data-table",{attrs:{headers:t.staffListHeader,items:t.state.staffListRows,"item-key":"staffID","show-select":"","hide-default-footer":"","disable-pagination":""},scopedSlots:t._u([{key:"item.attr",fn:function(e){var o=e.item;return[t._v(" "+t._s(t.getAttribureName(o).join())+" ")]}}],null,!0),model:{value:t.state.editForm.selectedStaff,callback:function(e){t.$set(t.state.editForm,"selectedStaff",e)},expression:"state.editForm.selectedStaff"}}),o("v-divider",{attrs:{color:"secondary"}}),o("v-data-table",{attrs:{headers:t.staffAttributeHeader,items:t.state.staffAttribute,"item-key":"staffAttributeGroupCommonItemID","group-by":"group","show-select":"","hide-default-footer":"","disable-pagination":""},model:{value:t.state.editForm.selectedStaffAttribute,callback:function(e){t.$set(t.state.editForm,"selectedStaffAttribute",e)},expression:"state.editForm.selectedStaffAttribute"}})],1):t._e()],1)],1),o("v-col",[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.editValidate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)])],1):t._e()],1)],1)]),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.saveEdit}}),o("ConfirmDialog",{attrs:{show:t.dialog.createConfirm.show,title:t.dialog.createConfirm.title,agree:t.dialog.createConfirm.agree,content:t.dialog.createConfirm.content,width:420},on:{close:function(e){t.dialog.createConfirm.show=!1},confirm:t.saveInsert}}),o("ConfirmDialog",{attrs:{show:t.dialog.sortConfirm.show,title:t.dialog.sortConfirm.title,agree:t.dialog.sortConfirm.agree,content:t.dialog.sortConfirm.content,width:420},on:{close:function(e){t.dialog.sortConfirm.show=!1},confirm:t.setOrder}}),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.saveDelete,close:function(e){t.dialog.delete.show=!1}}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}}),o("v-dialog",{attrs:{width:"1200px"},model:{value:t.dialog.createAggregate.show,callback:function(e){t.$set(t.dialog.createAggregate,"show",e)},expression:"dialog.createAggregate.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("縦計(追加)")]),o("v-card-text",[o("v-container",[o("v-form",{ref:"createForm",model:{value:t.state.isCreateValid,callback:function(e){t.$set(t.state,"isCreateValid",e)},expression:"state.isCreateValid"}},[o("v-checkbox",{attrs:{label:"この集計項目を使用する"},model:{value:t.state.createForm.useSummaryField,callback:function(e){t.$set(t.state.createForm,"useSummaryField",e)},expression:"state.createForm.useSummaryField"}}),o("v-text-field",{attrs:{required:"",outlined:"",rules:t.rules.title,"background-color":"white",label:"タイトル"},model:{value:t.state.createForm.title,callback:function(e){t.$set(t.state.createForm,"title",e)},expression:"state.createForm.title"}}),o("v-select",{attrs:{items:t.state.shiftData,label:"合算するシフト","item-text":"name","item-value":"shiftID",rules:t.rules.shift,attach:"","background-color":"white",multiple:"",clearable:"",outlined:""},model:{value:t.state.createForm.selectedShift,callback:function(e){t.$set(t.state.createForm,"selectedShift",e)},expression:"state.createForm.selectedShift"}}),o("v-checkbox",{attrs:{label:"集計時の「0」を使用しない"},model:{value:t.state.createForm.isNotUseZero,callback:function(e){t.$set(t.state.createForm,"isNotUseZero",e)},expression:"state.createForm.isNotUseZero"}}),o("div",[o("v-text-field",{attrs:{"background-color":"white",label:"「0」の代わりに表示する文字",required:"",outlined:"","hide-details":""},model:{value:t.state.createForm.alternateText,callback:function(e){t.$set(t.state.createForm,"alternateText",e)},expression:"state.createForm.alternateText"}})],1),o("v-card",{staticClass:"mt-3"},[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("集計対象")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),o("v-radio-group",{attrs:{"hide-details":"auto",row:""},model:{value:t.state.createForm.selectType,callback:function(e){t.$set(t.state.createForm,"selectType",e)},expression:"state.createForm.selectType"}},[o("v-radio",{attrs:{label:"スタッフ・スタッフ属性指定",value:1}}),o("v-radio",{attrs:{label:"全員",value:2}})],1)],1),1==t.state.createForm.selectType?o("div",[o("v-data-table",{attrs:{headers:t.staffListHeader,items:t.state.staffListRows,"item-key":"staffID","show-select":"","hide-default-footer":"","disable-pagination":""},scopedSlots:t._u([{key:"item.attr",fn:function(e){var o=e.item;return[t._v(" "+t._s(t.getAttribureName(o).join())+" ")]}}],null,!0),model:{value:t.state.createForm.selectedStaff,callback:function(e){t.$set(t.state.createForm,"selectedStaff",e)},expression:"state.createForm.selectedStaff"}}),o("v-divider",{attrs:{color:"secondary"}}),o("v-data-table",{attrs:{headers:t.staffAttributeHeader,items:t.state.staffAttribute,"item-key":"staffAttributeGroupCommonItemID","group-by":"group","show-select":"","hide-default-footer":"","disable-pagination":""},model:{value:t.state.createForm.selectedStaffAttribute,callback:function(e){t.$set(t.state.createForm,"selectedStaffAttribute",e)},expression:"state.createForm.selectedStaffAttribute"}})],1):t._e()],1)],1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.createAggregate.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1)],1)},Km=[],Ym=(o("4e827"),o("b76a")),Zm=o.n(Ym),Jm=function(){return{title:[function(t){return!!t||"タイトルを追加してください"},function(t){return t&&t.length<=64||"タイトルは64文字を超えてはなりません"}],shift:[function(t){return t&&t.length>0||"シフトを選択して合計します"}]}},Xm=Object(r["b"])({components:{DeleteButton:cf,ConfirmDialog:Yd,DeleteDialog:of,ErrorDialog:Ou,ResponseDialog:tm,Draggable:Zm.a},setup:function(){var t=1,e=ic(),o=0;e.commit("main/changeDrawerContent",{contentId:o});var i=e.getters["shiftTable/selectShift"].shiftTableStatus.shiftTableStatusID,s=!1;e.commit("shiftTable/setIsDisplayShiftTable",{isDisp:s});var l=Object(r["p"])(),c=Object(r["p"])(),u=Object(r["p"])([]),d=Object(r["n"])({createConfirm:{show:!1,title:"確認",agree:"続行",close:"OK",content:"このアクションにより、集約の対象となるスタッフにシフトリストが添付されます。 続行しますか?"},sortConfirm:{show:!1,title:"確認",agree:"続行",close:"OK",content:"保存します、続行しますか?"},createAggregate:{show:!1},confirm:{show:!1,title:"確認",agree:"続行",close:"OK",content:"このアクションにより、集約の対象となるスタッフにシフトリストが添付されます。 続行しますか?"},delete:{show:!1,close:"OK",content:"選択した縦計を削除します、続行しますか?"},error:{show:!1,title:"",close:"",content:""},response:{show:!1,message:"",color:""}}),f=[{text:"使用する",value:"isUse",align:""},{text:"タイトル",value:"title",align:""},{text:"",value:"actions",sortable:!1,align:""}],m=[{text:"スタッフ名",value:"name",sortable:!1},{text:"スタッフ属性",value:"attr",sortable:!1}],g=[{text:"スタッフ属性",value:"name",sortable:!1}],h=Object(r["n"])({shiftData:[],staffAttribute:[],dataListRows:[],staffListRows:[],selectedRowID:0,selectedData:{},isEditValid:!1,isCreateValid:!1,editForm:{useSummaryField:!1,title:"新しい垂直合計",selectedShift:[],isNotUseZero:!1,alternateText:"",selectType:2,selectedStaff:[],selectedStaffAttribute:[]},createForm:{useSummaryField:!1,title:"新しい垂直合計",selectedShift:[],isNotUseZero:!1,alternateText:"",selectType:2,selectedStaff:[],selectedStaffAttribute:[]},deleteTarget:{dateAggregateID:0,concurrencyStamp:""},isButtonClick:!1,isDisabledEdit:!1,enabledItem:!1,sort:[],flg:!1,updFlg:!1,delFlg:!1}),v=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:C(),R(),G();case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),p=ya({id:0},E),b=p.loading,y=(p.result,p.onError),S=p.refetch,D=p.onResult;D((function(t){if(console.log("getDateAggregatesOnResult call",t),!t.error&&t.data.getDateAggregates&&Array.isArray(t.data.getDateAggregates)){var e,o=t.data.getDateAggregates.map((function(t){return Object(n["a"])({},t)}));(e=h.dataListRows).splice.apply(e,[0,h.dataListRows.length].concat(Object(a["a"])(o)))}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(d.error.content=r.message,d.error.show=!0)}})),y((function(t){if(console.log("getDateAggregatesOnError call",t),t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(d.error.content=e.message,d.error.show=!0)}}));var C=function(){var e=Object(X["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,S({id:t});case 3:e.next=9;break;case 5:e.prev=5,e.t0=e["catch"](0),d.error.content="縦計リストを取得中に問題が発生しました。",d.error.show=!0;case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),w=pa({id:0},E),k=(w.loading,w.result,w.onError),I=w.refetch,x=w.onResult;x((function(t){if(console.log("getDateAggregateDispConfigOnResult call",t),!t.error&&t.data.getDateAggregateDispConfig){var e,o,n,a=t.data.getDateAggregateDispConfig;h.editForm.useSummaryField=a.isUse,h.editForm.title=a.title,h.editForm.selectedShift=null===(e=a.dateAggregateShifts)||void 0===e?void 0:e.map((function(t){if(t.shiftID)return t.shiftID})),null!=a.alternateText&&""!=a.alternateText?(h.editForm.isNotUseZero=!0,h.editForm.alternateText=a.alternateText):(h.editForm.isNotUseZero=!1,h.editForm.alternateText=""),h.editForm.selectType=a.isAllStaff?2:1;var r=null===(o=a.dateAggregateStaffs)||void 0===o?void 0:o.map((function(t){return t.staffID}));h.editForm.selectedStaff=h.staffListRows.filter((function(t){return null===r||void 0===r?void 0:r.includes(t.staffID)}));var i=null===(n=a.dateAggregateStaffs)||void 0===n?void 0:n.map((function(t){return t.staffAttributeGroupCommonItemID}));h.editForm.selectedStaffAttribute=h.staffAttribute.filter((function(t){return null===i||void 0===i?void 0:i.includes(t.staffAttributeGroupCommonItemID)})),h.selectedData=a,console.log("state.selectedData",h.selectedData)}else if(t.errors){var s=pt(t.errors);s.code!==M.QueryRecordNotFound&&(d.error.content=s.message,d.error.show=!0)}})),k((function(t){if(console.log("getDateAggregateDispConfigOnError call",t),t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(d.error.content=e.message,d.error.show=!0)}}));var T=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,I({id:e});case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),d.error.content="縦計詳細を取得中に問題が発生しました。",d.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e){return t.apply(this,arguments)}}(),A=er({id:0},E),_=(A.loading,A.result,A.error,A.refetch),O=A.onResult;O((function(t){if(console.log("getShiftsAndStaffOnResult call",t),!t.error&&t.data.getShiftsAndStaffAttributes){var e,o,r=t.data.getShiftsAndStaffAttributes.shifts.map((function(t){return Object(n["a"])({},t)}));(e=h.shiftData).splice.apply(e,[0,h.shiftData.length].concat(Object(a["a"])(r)));var i=[];t.data.getShiftsAndStaffAttributes.staffAttributeGroupCommons.map((function(t){var e=t.name;if(t.staffAttributeGroupCommonItems)return t.staffAttributeGroupCommonItems.map((function(t){i.push(Object(n["a"])(Object(n["a"])({},t),{},{group:e}))}))})),(o=h.staffAttribute).splice.apply(o,[0,h.staffAttribute.length].concat(i))}else if(t.errors){var s=pt(t.errors);s.code!==M.QueryRecordNotFound&&(d.error.content=s.message,d.error.show=!0)}}));var R=function(){var e=Object(X["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_({id:t});case 3:e.next=9;break;case 5:e.prev=5,e.t0=e["catch"](0),d.error.content="シフトとスタッフ属性一覧を取得中に問題が発生しました。",d.error.show=!0;case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),F=Ir({id:0,status:0},E),V=(F.loading,F.result,F.error,F.refetch),j=F.onResult;j((function(t){if(console.log("getStaffsWithShiftTableStatusIdOnResult call",t),!t.error&&t.data.getStaffsWithShiftTableStatusID){var e,o=t.data.getStaffsWithShiftTableStatusID.map((function(t){return Object(n["a"])({},t)}));(e=h.staffListRows).splice.apply(e,[0,h.staffListRows.length].concat(Object(a["a"])(o))),console.log("state.staffListRows",h.staffListRows)}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(d.error.content=r.message,d.error.show=!0)}}));var G=function(){var e=Object(X["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,V({id:t,status:i});case 3:e.next=9;break;case 5:e.prev=5,e.t0=e["catch"](0),d.error.content="スタッフ一覧を取得中に問題が発生しました。",d.error.show=!0;case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),$=_n({fetchPolicy:"no-cache"}),N=($.loading,$.mutate),L=$.onDone,P=$.onError;L((function(t){var e,o;if(console.log("deleteDateAggregateOnDone call",t),h.delFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.deleteDateAggregate)&&void 0!==o&&o.result){var n=h.deleteTarget.dateAggregateID,a=h.dataListRows.findIndex((function(t){return t.dateAggregateID===n}));h.dataListRows.splice(a,1),d.response.show=!0,d.response.color="success",d.response.message="縦計を削除しました"}h.selectedRowID=0,d.delete.show=!1})),P((function(t){if(console.log("deleteDateAggregateOnError call",t),h.delFlg=!1,t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(d.error.content=e.message,d.error.show=!0)}}));var W=function(t){h.deleteTarget.dateAggregateID=t.dateAggregateID,h.deleteTarget.concurrencyStamp=t.concurrencyStamp,d.delete.show=!0},B=function(){if(!h.delFlg){h.delFlg=!0;var t={dateAggregateID:h.deleteTarget.dateAggregateID,concurrencyStamp:h.deleteTarget.concurrencyStamp};console.log("deleteData",t);try{N({model:t})}catch(e){console.log("deleteError(GQL):",e),h.delFlg=!1}d.delete.show=!1}},H=Vr({fetchPolicy:"no-cache"}),q=(H.loading,H.called,H.error,H.mutate),Q=H.onDone,U=H.onError;Q((function(t){var e;console.log("insertDateAggregateOnDone call",t),h.flg=!1,d.createConfirm.show=!1,d.response.show=!0,d.response.color="success",d.response.message=" 縦計を追加しました",C(),h.createForm.useSummaryField=!1,h.createForm.title="新しい垂直合計",h.createForm.selectedShift=[],h.createForm.isNotUseZero=!1,h.createForm.alternateText="",h.createForm.selectType=2,h.createForm.selectedStaff=[],h.createForm.selectedStaffAttribute=[],null===(e=c.value)||void 0===e||e.resetValidation()})),U((function(t){if(console.log("insertDateAggregateOnError call",t),h.flg=!1,t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(d.error.content=e.message,d.error.show=!0)}}));var z=Ei({fetchPolicy:"no-cache"}),K=(z.loading,z.called,z.error,z.mutate),Y=z.onDone,Z=z.onError;Y((function(t){var e,o;if(console.log("updateDateAggregateOnDone call",t),h.updFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateDateAggregate)&&void 0!==o&&o.result){var n,a=t.data.updateDateAggregate.result[0],r=null===(n=t.data.updateDateAggregate.result[0])||void 0===n?void 0:n.dateAggregateID,i=h.dataListRows.findIndex((function(t){return t.dateAggregateID===r}));h.dataListRows.splice(i,1,a),T(h.selectedRowID)}d.confirm.show=!1,d.response.show=!0,d.response.color="success",d.response.message=" 縦計を更新しました"})),Z((function(t){if(console.log("updateDateAggregateOnError call",t),h.updFlg=!1,t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(d.error.content=e.message,d.error.show=!0)}}));var J=function(t,e){e.isSelected?h.selectedRowID=0:(h.selectedRowID=t.dateAggregateID,T(h.selectedRowID)),e.select(!e.isSelected)},tt=function(){d.createAggregate.show=!0},et=function(){var t;null===(t=c.value)||void 0===t||t.validate(),h.isCreateValid&&(d.createConfirm.show=!0)},ot=function(){var t;null===(t=l.value)||void 0===t||t.validate(),h.isEditValid&&(d.confirm.show=!0)},nt=function(){var t,e,o;if(console.log("saveEdit",h.editForm),!h.updFlg){h.updFlg=!0;var n=[];h.editForm.selectedShift.map((function(t){var e,o=null===(e=h.selectedData.dateAggregateShifts)||void 0===e?void 0:e.find((function(e){if(e.shiftID===t)return!0}));n.push({dateAggregateShiftID:null===o||void 0===o?void 0:o.dateAggregateShiftID,concurrencyStamp:null===o||void 0===o?void 0:o.concurrencyStamp,shiftGroupID:null===o||void 0===o?void 0:o.shiftGroupID,shiftID:t,deleted:!1})}));var a=null===(t=h.selectedData.dateAggregateShifts)||void 0===t?void 0:t.filter((function(t){var e=!0;return h.editForm.selectedShift.filter((function(o){o===t.shiftID&&(e=!1)})),e}));null===a||void 0===a||a.map((function(t){n.push({dateAggregateShiftID:t.dateAggregateShiftID,concurrencyStamp:t.concurrencyStamp,shiftGroupID:t.shiftGroupID,shiftID:t.shiftID,deleted:!0})}));var r=[];h.editForm.selectedStaff.map((function(t){var e,o=null===(e=h.selectedData.dateAggregateStaffs)||void 0===e?void 0:e.find((function(e){if(e.staffID===t.staffID)return!0}));r.push({dateAggregateStaffID:null===o||void 0===o?void 0:o.dateAggregateStaffID,staffID:t.staffID,staffAttributeGroupCommonItemID:void 0,staffAttributeGroupSectionItemID:void 0,concurrencyStamp:t.concurrencyStamp,deleted:!1})}));var i=null===(e=h.selectedData.dateAggregateStaffs)||void 0===e?void 0:e.filter((function(t){if(null==t.staffID)return!1;var e=!0;return h.editForm.selectedStaff.filter((function(o){o.staffID===t.staffID&&(e=!1)})),e}));null===i||void 0===i||i.map((function(t){r.push({dateAggregateStaffID:t.dateAggregateStaffID,staffID:t.staffID,staffAttributeGroupCommonItemID:t.staffAttributeGroupCommonItemID,staffAttributeGroupSectionItemID:t.staffAttributeGroupSectionItemID,concurrencyStamp:t.concurrencyStamp,deleted:!0})})),h.editForm.selectedStaffAttribute.map((function(t){r.push({staffID:void 0,staffAttributeGroupCommonItemID:t.staffAttributeGroupCommonItemID,staffAttributeGroupSectionItemID:void 0,deleted:!1})}));var s=null===(o=h.selectedData.dateAggregateStaffs)||void 0===o?void 0:o.filter((function(t){if(null==t.staffAttributeGroupCommonItemID)return!1;var e=!0;return h.editForm.selectedStaff.filter((function(o){o.staffAttributeGroupCommonItemID===t.staffAttributeGroupCommonItemID&&(e=!1)})),e}));null===s||void 0===s||s.map((function(t){r.push({dateAggregateStaffID:t.dateAggregateStaffID,staffID:t.undefined,staffAttributeGroupCommonItemID:t.staffAttributeGroupCommonItemID,staffAttributeGroupSectionItemID:t.staffAttributeGroupSectionItemID,deleted:!0})}));var l={dateAggregateID:h.selectedData.dateAggregateID,concurrencyStamp:h.selectedData.concurrencyStamp,title:h.editForm.title,isUse:h.editForm.useSummaryField,alternateText:h.editForm.alternateText,isAllStaff:1!==h.editForm.selectType,dateAggregateShifts:n,dateAggregateStaffs:r};console.log("updateData",l);try{K({model:l})}catch(c){console.log("insertError(GQL):",c),h.updFlg=!1,d.error.content="登録処理中に問題が発生しました。",d.error.show=!0}d.confirm.show=!1}},at=function(){if(!h.flg){h.flg=!0;var e=[];h.createForm.selectedStaff.map((function(t){e.push({staffID:t.staffID,staffAttributeGroupCommonItemID:void 0,staffAttributeGroupSectionItemID:void 0})})),h.createForm.selectedStaffAttribute.map((function(t){e.push({staffID:void 0,staffAttributeGroupCommonItemID:t.staffAttributeGroupCommonItemID,staffAttributeGroupSectionItemID:void 0})}));var o={sectionID:t,title:h.createForm.title,isUse:h.createForm.useSummaryField,alternateText:h.createForm.alternateText,isAllStaff:1!==h.createForm.selectType,dateAggregateShifts:h.createForm.selectedShift.map((function(t){return{shiftGroupID:void 0,shiftID:t}})),dateAggregateStaffs:e};try{q({model:o})}catch(n){console.log("insertError(GQL):",n),h.flg=!1,d.error.content="登録処理中に問題が発生しました。",d.error.show=!0}d.createAggregate.show=!1,d.createConfirm.show=!1}},rt=function(t){return t.staffAttributeGroupCommons.map((function(t){return t.name}))},it=function(){h.isButtonClick=!0,h.isDisabledEdit=!0,h.sort=h.dataListRows,h.enabledItem=!0},st=function(){d.sortConfirm.show=!0},lt=function(){h.isButtonClick=!1,h.isDisabledEdit=!1,h.dataListRows=h.sort,h.enabledItem=!1},ct=di({fetchPolicy:"no-cache"}),ut=ct.mutate,dt=(ct.loading,ct.error,ct.called,ct.onDone),ft=ct.onError;dt((function(t){var e;if(t.data&&null!==(e=t.data.setOrderDateAggregate)&&void 0!==e&&e.succeed){var o,n=t.data.setOrderDateAggregate.result;(o=h.dataListRows).splice.apply(o,[0,h.dataListRows.length].concat(Object(a["a"])(n)))}else if(t.errors){var r=pt(t.errors);d.error.content=r.message,d.error.show=!0}d.sortConfirm.show=!1,d.response.show=!0,d.response.color="success",d.response.message="更新成功",h.isButtonClick=!1,h.isDisabledEdit=!1,h.enabledItem=!1})),ft((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);d.error.content=e.message,d.error.show=!0}else d.error.content="エラーメッセージ表示",d.error.show=!0}));var mt=function(){try{var e=JSON.stringify(h.sort),o=JSON.stringify(h.dataListRows);if(e===o)d.error.content=qu,d.error.show=!0,d.sortConfirm.show=!1;else if(h.dataListRows){var n=h.dataListRows.map((function(t){return{concurrencyStamp:t.concurrencyStamp,dateAggregateID:t.dateAggregateID}}));ut({id:t,models:n})}}catch(a){d.error.content=Hu,d.error.show=!0}};return v(),{dataListHeader:f,staffListHeader:m,staffAttributeHeader:g,state:h,selectedDataLists:u,dialog:d,editForm:l,createForm:c,rules:Jm(),isGetDateAggregatesLoading:b,removeData:W,saveEdit:nt,saveInsert:at,rowClick:J,saveDelete:B,validate:et,editValidate:ot,createClick:tt,getAttribureName:rt,sortClick:it,saveClick:st,setOrder:mt,doneClick:lt}}}),tg=Xm,eg=Object(k["a"])(tg,zm,Km,!1,null,"84df5dca",null),og=eg.exports;uc()(eg,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCheckbox:du["a"],VCol:xc["a"],VContainer:eu["a"],VDataTable:zu["a"],VDialog:Au["a"],VDivider:Tc["a"],VForm:fu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"],VTooltip:fd["a"]});var ng=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("翌月希望シフト申請開始/終了日設定")]),o("v-container",{attrs:{fluid:""}},[o("v-col",[t._v(" スタッフ名: "+t._s(t.state.dialogm1)+" "),o("v-row",{attrs:{justify:"end"}},[o("v-dialog",{attrs:{"persistent-hint":"",scrollable:"","max-width":"300px"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"pa-5 mb-5",attrs:{color:"primary",dark:""}},"v-btn",a,!1),n),[t._v(" 設定 "),o("v-icon",[t._v("mdi-account-cog")])],1)]}}]),model:{value:t.state.dialog,callback:function(e){t.$set(t.state,"dialog",e)},expression:"state.dialog"}},[o("v-card",[o("v-card-title",[t._v("スタッフを選択")]),o("v-divider"),o("v-card-text",{staticStyle:{height:"300px"}},[o("v-radio-group",{attrs:{column:""},model:{value:t.state.dialogm1,callback:function(e){t.$set(t.state,"dialogm1",e)},expression:"state.dialogm1"}},[o("v-radio",{attrs:{label:"スタッフ 1",value:"スタッフ1"}}),o("v-radio",{attrs:{label:"スタッフ 2",value:"スタッフ2"}}),o("v-radio",{attrs:{label:"スタッフ 3",value:"スタッフ3"}}),o("v-radio",{attrs:{label:"スタッフ 4",value:"スタッフ4"}}),o("v-radio",{attrs:{label:"スタッフ 5",value:"スタッフ5"}}),o("v-radio",{attrs:{label:"スタッフ 6",value:"スタッフ6"}}),o("v-radio",{attrs:{label:"スタッフ 7",value:"スタッフ7"}})],1)],1),o("v-divider"),o("v-card-actions",[o("v-btn",{attrs:{color:"blue darken-1",text:""},on:{click:function(e){t.state.dialog=!1}}},[t._v(" 選ぶ ")]),o("v-btn",{attrs:{color:"blue darken-1",text:""},on:{click:t.saveSettings}},[t._v(" 貯める ")])],1)],1)],1)],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-combobox",{attrs:{items:t.state.items,"search-input":t.state.search,"hide-selected":"",hint:"カレンダービューを設定してください。",label:"選んでください","persistent-hint":"",outlined:"","item-text":"item"},on:{"update:searchInput":function(e){return t.$set(t.state,"search",e)},"update:search-input":function(e){return t.$set(t.state,"search",e)}},model:{value:t.state.settingMenu,callback:function(e){t.$set(t.state,"settingMenu",e)},expression:"state.settingMenu"}})],1),o("v-spacer")],1),o("v-spacer"),o("v-card",{staticClass:"d-flex justify-start",attrs:{width:"1200",height:"300"}},[o("v-col",{attrs:{sm:"6",md:"5"}},["日付で設定"===t.state.settingMenu?o("span",[o("span",{directives:[{name:"show",rawName:"v-show",value:t.state.settingMenu,expression:"state.settingMenu"}]}),o("v-spacer"),o("v-spacer"),o("v-menu",{ref:"refMenuDate",attrs:{"close-on-content-click":!1,"return-value":t.startDate,transition:"scale-transition","offset-x":"",rounded:""},on:{"update:returnValue":function(e){t.startDate=e},"update:return-value":function(e){t.startDate=e}},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs_start_end;return[o("v-text-field",t._g(t._b({attrs:{label:"開始日と終了日を選択します","prepend-icon":"mdi-calendar",readonly:"",clearable:""},model:{value:t.startDate,callback:function(e){t.startDate=e},expression:"startDate"}},"v-text-field",a,!1),n))]}}],null,!1,2605372527),model:{value:t.state.menuDate,callback:function(e){t.$set(t.state,"menuDate",e)},expression:"state.menuDate"}},[o("v-row",{attrs:{"no-gutters":"",dense:""}},[o("v-col",[o("div",[o("v-date-picker",{attrs:{max:t.maxDate,range:"","no-title":"","show-current":"true"},on:{"click:date":t.selectedMinDate},model:{value:t.startDate,callback:function(e){t.startDate=e},expression:"startDate"}})],1)]),o("v-col",[o("div",[o("v-date-picker",{attrs:{range:"","no-title":"",min:t.minDate},on:{"click:date":t.selectedMaxDate},model:{value:t.endDate,callback:function(e){t.endDate=e},expression:"endDate"}})],1),o("v-btn",{attrs:{outlined:"",text:"",color:"primary"},on:{click:t.clearCalendar}},[t._v(" キャンセル ")]),o("v-btn",{attrs:{right:"",outlined:"",text:"",color:"primary"},on:{click:function(e){return t.$refs.refMenuDate.save(t.startDate)}}},[t._v(" 貯める ")])],1)],1)],1),o("v-spacer"),o("v-checkbox",{attrs:{value:"1",label:"来月も同じ設定",color:"indigo","hide-details":""}})],1):t._e(),"週と日付で設定"===t.state.settingMenu?o("span",[o("span",{directives:[{name:"show",rawName:"v-show",value:t.state.settingMenu,expression:"state.settingMenu"}]}),o("v-row",{attrs:{"no-gutters":""}},[o("v-col",{attrs:{sm:"6",md:"11"}},[o("v-menu",{ref:"refStartMenu",attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-x":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs_weekstart;return[o("v-text-field",t._g(t._b({attrs:{label:"週を開始","prepend-icon":"mdi-calendar",readonly:""},model:{value:t.state.startWeek,callback:function(e){t.$set(t.state,"startWeek",e)},expression:"state.startWeek"}},"v-text-field",a,!1),n))]}}],null,!1,4113240292),model:{value:t.state.startMenu,callback:function(e){t.$set(t.state,"startMenu",e)},expression:"state.startMenu"}},[o("v-date-picker",{attrs:{"no-title":"",scrollable:""},model:{value:t.state.startWeek,callback:function(e){t.$set(t.state,"startWeek",e)},expression:"state.startWeek"}},[o("v-spacer"),o("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(e){t.state.startMenu=!1}}},[t._v(" キャンセル ")]),o("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(e){return t.$refs.refStartMenu.save(t.state.startWeek)}}},[t._v(" 貯める ")])],1)],1)],1),o("v-col",{attrs:{sm:"6",md:"11"}},[o("v-menu",{ref:"refEndMenu",attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-x":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs_weekend;return[o("v-text-field",t._g(t._b({attrs:{label:"週末","prepend-icon":"mdi-calendar",readonly:""},model:{value:t.state.endWeek,callback:function(e){t.$set(t.state,"endWeek",e)},expression:"state.endWeek"}},"v-text-field",a,!1),n))]}}],null,!1,2133052658),model:{value:t.state.endMenu,callback:function(e){t.$set(t.state,"endMenu",e)},expression:"state.endMenu"}},[o("v-date-picker",{attrs:{"no-title":"",scrollable:""},model:{value:t.state.endWeek,callback:function(e){t.$set(t.state,"endWeek",e)},expression:"state.endWeek"}},[o("v-spacer"),o("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(e){t.state.endMenu=!1}}},[t._v(" キャンセル ")]),o("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(e){return t.$refs.refEndMenu.save(t.state.endWeek)}}},[t._v(" 貯める ")])],1)],1)],1),o("v-spacer"),o("v-spacer")],1),o("v-row",[o("v-col",[o("v-checkbox",{attrs:{value:"1",label:"来月も同じ設定",color:"indigo","hide-details":""}})],1)],1)],1):t._e()])],1),o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{staticClass:"mr-1",attrs:{dark:"",fixed:"",color:"secondary",to:t.$router.resolve({name:"shift-table"}).href}},[t._v("戻る")])],1)],1)],1)])},ag=[],rg=Object(r["b"])({setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({settingMenu:"",startMenu:!1,endMenu:!1,startWeek:"",endWeek:"",items:["日付で設定","週と日付で設定"],search:null,menuDate:!1,sampleLang:!1,dialogm1:"",dialog:!1}),n=Object(r["p"])(null),a=Object(r["p"])(null),i=Object(r["p"])(null),s=new Date;s.setMonth(s.getMonth()-1);var l=Object(r["p"])(s.toISOString().slice(0,10)),c=Object(r["a"])((function(){var t=new Date;return t.setDate(t.getDate()-1),t.toISOString().slice(0,10)})),u=s,d=Object(r["p"])([u.toISOString().split("T")[0]]),f=Object(r["p"])([]),m=function(){var t=d.value;2==t.length&&(2==t.length?d.value=[t[1]]:d.value=[t[0]]),f.value=[]},g=function(){var t=d.value,e=f.value;d.value=[t[0],e[0]],f.value=[t[0],e[0]]},h=function(){o.menuDate=!1},v=function(){o.dialog=!1};return{refStartMenu:n,refEndMenu:a,refMenuDate:i,state:o,startDate:d,endDate:f,minDate:l,maxDate:c,selectedMinDate:m,selectedMaxDate:g,clearCalendar:h,saveSettings:v}}}),ig=rg,sg=o("2b5d"),lg=Object(k["a"])(ig,ng,ag,!1,null,"83d355d0",null),cg=lg.exports;uc()(lg,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCheckbox:du["a"],VCol:xc["a"],VCombobox:sg["a"],VContainer:eu["a"],VDatePicker:$d["a"],VDialog:Au["a"],VDivider:Tc["a"],VIcon:gc["a"],VMenu:Nd["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSpacer:vc["a"],VTextField:yu["a"]});var ug=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("横計表示設定")]),t.isGetStaffAggregatesLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-card",[o("v-data-table",{attrs:{headers:t.dataListHeader,items:t.state.dataListRows,"item-key":"staffAggregateID","single-select":"","hide-default-footer":"","disable-pagination":""},on:{"click:row":t.rowClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("横計項目")])],1)]},proxy:!0},t.state.isButtonClick?{key:"body",fn:function(e){var n=e.items;return[o("draggable",{attrs:{tag:"tbody"},model:{value:t.state.dataListRows,callback:function(e){t.$set(t.state,"dataListRows",e)},expression:"state.dataListRows"}},t._l(n,(function(e,n){return o("tr",{key:n},[o("td",[o("v-checkbox",{staticClass:"mt-2 ms-0.8",attrs:{readonly:"",color:"primary"},model:{value:e.isUse,callback:function(o){t.$set(e,"isUse",o)},expression:"item.isUse"}})],1),o("td",[t._v(t._s(e.title))]),o("td",[o("Delete-button",{attrs:{btn:!0},on:{delete:function(o){return t.removeData(e)}}})],1)])})),0)]}}:null,t.state.isButtonClick?null:{key:"item.isUse",fn:function(e){var n=e.item;return[o("v-checkbox",{staticClass:"mt-2",attrs:{readonly:"",color:"primary"},model:{value:n.isUse,callback:function(e){t.$set(n,"isUse",e)},expression:"item.isUse"}})]}},t.state.isButtonClick?null:{key:"item.actions",fn:function(e){var n=e.item;return[o("Delete-button",{on:{delete:function(e){return t.removeData(n)}}})]}}],null,!0),model:{value:t.selectedDataLists,callback:function(e){t.selectedDataLists=e},expression:"selectedDataLists"}}),t.state.isDisabledEdit?o("div",{staticClass:"content__btn form__btn pb-3"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:""},on:{click:t.saveClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-content-save-check ")])],1)]}}],null,!1,1899380433)},[o("span",[t._v("保存")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"#B0BEC5",dark:""},on:{click:t.doneClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-close-box-outline ")])],1)]}}],null,!1,3430910129)},[o("span",[t._v("終了")])])],1):o("div",{staticClass:"content__btn form__btn pb-3"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:""},on:{click:function(e){return t.createClick()}}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-plus-box-outline ")])],1)]}}])},[o("span",[t._v("追加")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:""},on:{click:t.sortClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-sort ")])],1)]}}])},[o("span",[t._v("並べ替え")])])],1)],1),o("v-row",{staticClass:"mt-5"},[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1)],1),t.state.selectedRowID>0?o("v-col",{class:{"point-event-none":t.state.enabledItem},attrs:{cols:"12",md:"6"}},[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-form",{ref:"editForm",model:{value:t.state.isEditValid,callback:function(e){t.$set(t.state,"isEditValid",e)},expression:"state.isEditValid"}},[o("v-checkbox",{attrs:{label:"この集計項目を使用する"},model:{value:t.state.editForm.useSummaryField,callback:function(e){t.$set(t.state.editForm,"useSummaryField",e)},expression:"state.editForm.useSummaryField"}}),o("v-text-field",{attrs:{required:"",outlined:"",rules:t.rules.title,"background-color":"white",label:"タイトル"},model:{value:t.state.editForm.title,callback:function(e){t.$set(t.state.editForm,"title",e)},expression:"state.editForm.title"}}),o("v-select",{attrs:{items:t.state.shiftData,label:"合算するシフト","item-text":"name","item-value":"shiftID",rules:t.rules.shift,attach:"","background-color":"white",multiple:"",clearable:"",outlined:""},model:{value:t.state.editForm.selectedShift,callback:function(e){t.$set(t.state.editForm,"selectedShift",e)},expression:"state.editForm.selectedShift"}}),o("v-checkbox",{attrs:{label:"集計時の「0」を使用しない"},model:{value:t.state.editForm.isNotUseZero,callback:function(e){t.$set(t.state.editForm,"isNotUseZero",e)},expression:"state.editForm.isNotUseZero"}}),o("v-text-field",{attrs:{"background-color":"white",label:"「0」の代わりに表示する文字",outlined:""},model:{value:t.state.editForm.alternateText,callback:function(e){t.$set(t.state.editForm,"alternateText",e)},expression:"state.editForm.alternateText"}}),o("v-select",{attrs:{items:t.aggregateTypes,"background-color":"white",label:"集計タイプ",outlined:""},model:{value:t.state.editForm.aggregateType,callback:function(e){t.$set(t.state.editForm,"aggregateType",e)},expression:"state.editForm.aggregateType"}}),o("p",[t._v("集計範囲")]),o("v-radio-group",{attrs:{row:""},model:{value:t.state.editForm.aggregateRange,callback:function(e){t.$set(t.state.editForm,"aggregateRange",e)},expression:"state.editForm.aggregateRange"}},[o("v-radio",{attrs:{label:"月",value:"MONTH"}}),o("v-radio",{attrs:{label:"前半の4週",value:"FIRST_HALF"}}),o("v-radio",{attrs:{label:"後半の4週",value:"LATTER_HALF"}})],1),o("week-settings",{staticClass:"mt-2",attrs:{"check-dow":t.state.editForm.checkDow,orientation:"vertical",title:"集計する曜日","show-calendar":!1}})],1)],1),o("v-col",[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.editValidate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)])],1):t._e()],1)],1)]),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{confirm:t.saveEdit,close:function(e){t.dialog.confirm.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.createConfirm.show,title:t.dialog.createConfirm.title,agree:t.dialog.createConfirm.agree,content:t.dialog.createConfirm.content,width:420},on:{close:function(e){t.dialog.createConfirm.show=!1},confirm:t.saveInsert}}),o("ConfirmDialog",{attrs:{show:t.dialog.sortConfirm.show,title:t.dialog.sortConfirm.title,agree:t.dialog.sortConfirm.agree,content:t.dialog.sortConfirm.content,width:420},on:{close:function(e){t.dialog.sortConfirm.show=!1},confirm:t.setOrder}}),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.saveDelete,close:function(e){t.dialog.delete.show=!1}}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}}),o("v-dialog",{attrs:{width:"1200px"},model:{value:t.dialog.createAggregate.show,callback:function(e){t.$set(t.dialog.createAggregate,"show",e)},expression:"dialog.createAggregate.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("横計(追加)")]),o("v-card-text",[o("v-container",[o("v-form",{ref:"createForm",model:{value:t.state.isCreateValid,callback:function(e){t.$set(t.state,"isCreateValid",e)},expression:"state.isCreateValid"}},[o("v-checkbox",{attrs:{label:"この集計項目を使用する"},model:{value:t.state.createForm.useSummaryField,callback:function(e){t.$set(t.state.createForm,"useSummaryField",e)},expression:"state.createForm.useSummaryField"}}),o("v-text-field",{attrs:{required:"",outlined:"",rules:t.rules.title,"background-color":"white",label:"タイトル"},model:{value:t.state.createForm.title,callback:function(e){t.$set(t.state.createForm,"title",e)},expression:"state.createForm.title"}}),o("v-select",{attrs:{items:t.state.shiftData,label:"合算するシフト","item-text":"name","item-value":"shiftID",rules:t.rules.shift,attach:"","background-color":"white",multiple:"",clearable:"",outlined:""},model:{value:t.state.createForm.selectedShift,callback:function(e){t.$set(t.state.createForm,"selectedShift",e)},expression:"state.createForm.selectedShift"}}),o("v-checkbox",{attrs:{label:"集計時の「0」を使用しない"},model:{value:t.state.createForm.isNotUseZero,callback:function(e){t.$set(t.state.createForm,"isNotUseZero",e)},expression:"state.createForm.isNotUseZero"}}),o("v-text-field",{attrs:{"background-color":"white",label:"「0」の代わりに表示する文字",outlined:""},model:{value:t.state.createForm.alternateText,callback:function(e){t.$set(t.state.createForm,"alternateText",e)},expression:"state.createForm.alternateText"}}),o("v-select",{attrs:{items:t.aggregateTypes,"background-color":"white",label:"集計タイプ",outlined:""},model:{value:t.state.createForm.aggregateType,callback:function(e){t.$set(t.state.createForm,"aggregateType",e)},expression:"state.createForm.aggregateType"}}),o("p",[t._v("集計範囲")]),o("v-radio-group",{attrs:{row:""},model:{value:t.state.createForm.aggregateRange,callback:function(e){t.$set(t.state.createForm,"aggregateRange",e)},expression:"state.createForm.aggregateRange"}},[o("v-radio",{attrs:{label:"月",value:"MONTH"}}),o("v-radio",{attrs:{label:"前半の4週",value:"FIRST_HALF"}}),o("v-radio",{attrs:{label:"後半の4週",value:"LATTER_HALF"}})],1),o("week-settings",{staticClass:"mt-2",attrs:{"check-dow":t.state.createForm.checkDow,orientation:"vertical",title:"集計する曜日","show-calendar":!1}})],1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.createAggregate.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1)],1)},dg=[],fg=function(){return{title:[function(t){return!!t||"タイトルを追加してください"},function(t){return t&&t.length<=64||"タイトルは64文字を超えてはなりません"}],shift:[function(t){return t&&t.length>0||"シフトを選択して合計します"}]}},mg=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[t.showTitle?o("p",{staticClass:"mb-0"},[t._v(t._s(t.title))]):t._e(),o("v-row",{staticClass:"mt-0"},[o("v-col",[o("v-select",{staticClass:"mt-2",attrs:{items:t.weekTocheck,label:"指定方法","hide-details":"auto",outlined:"",dense:"","background-color":"white"},on:{change:t.onChangeWeekToCheck},model:{value:t.state.selectedWeekSetting,callback:function(e){t.$set(t.state,"selectedWeekSetting",e)},expression:"state.selectedWeekSetting"}}),o("v-card",{staticClass:"pa-3",attrs:{outlined:""}},["DAYS"===t.state.selectedWeekSetting?o("div",{staticClass:"mt-4"},[o("v-row",[o("v-col",{attrs:{cols:"12",sm:"12"}},[o("v-checkbox",{attrs:{label:"平日(月火水木金)"},on:{change:t.onCheckedWeekDays},model:{value:t.checkDow.weekdays,callback:function(e){t.$set(t.checkDow,"weekdays",e)},expression:"checkDow.weekdays"}})],1)],1),o("v-row",{staticClass:"mt-0"},[o("v-col",{attrs:{cols:"12",sm:"4"}},[o("v-checkbox",{attrs:{label:"土曜"},on:{change:function(e){return t.onCheckedDay("sat",!1)}},model:{value:t.checkDow.sat,callback:function(e){t.$set(t.checkDow,"sat",e)},expression:"checkDow.sat"}})],1)],1),o("v-row",{staticClass:"mt-0"},[o("v-col",{attrs:{cols:"12",sm:"4"}},[o("v-checkbox",{attrs:{label:"日曜・祝日"},on:{change:t.onCheckedSundayAndHoliday},model:{value:t.checkDow.sun,callback:function(e){t.$set(t.checkDow,"sun",e)},expression:"checkDow.sun"}})],1),o("v-col",{attrs:{cols:"12",sm:"4"}},[o("v-checkbox",{attrs:{label:"振替を含む"},model:{value:t.checkDow.substitute,callback:function(e){t.$set(t.checkDow,"substitute",e)},expression:"checkDow.substitute"}})],1)],1)],1):t._e(),"DAY_OF_WEEK"===t.state.selectedWeekSetting?o("div",{staticClass:"mt-4"},[o("v-row",[o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"月曜"},on:{change:function(e){return t.onCheckedDay("mon",!1)}},model:{value:t.checkDow.mon,callback:function(e){t.$set(t.checkDow,"mon",e)},expression:"checkDow.mon"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"火曜"},on:{change:function(e){return t.onCheckedDay("tue",!1)}},model:{value:t.checkDow.tue,callback:function(e){t.$set(t.checkDow,"tue",e)},expression:"checkDow.tue"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"水曜"},on:{change:function(e){return t.onCheckedDay("wed",!1)}},model:{value:t.checkDow.wed,callback:function(e){t.$set(t.checkDow,"wed",e)},expression:"checkDow.wed"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"木曜"},on:{change:function(e){return t.onCheckedDay("thu",!1)}},model:{value:t.checkDow.thu,callback:function(e){t.$set(t.checkDow,"thu",e)},expression:"checkDow.thu"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"金曜"},on:{change:function(e){return t.onCheckedDay("fri",!1)}},model:{value:t.checkDow.fri,callback:function(e){t.$set(t.checkDow,"fri",e)},expression:"checkDow.fri"}})],1)],1),o("v-row",{staticClass:"mt-0"},[o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"土曜"},on:{change:function(e){return t.onCheckedDay("sat",!1)}},model:{value:t.checkDow.sat,callback:function(e){t.$set(t.checkDow,"sat",e)},expression:"checkDow.sat"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"日曜"},on:{change:function(e){return t.onCheckedDay("sun",!1)}},model:{value:t.checkDow.sun,callback:function(e){t.$set(t.checkDow,"sun",e)},expression:"checkDow.sun"}})],1)],1),o("v-row",{staticClass:"mt-0"},[o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"祝日"},on:{change:t.onCheckedHoliday},model:{value:t.checkDow.holiday,callback:function(e){t.$set(t.checkDow,"holiday",e)},expression:"checkDow.holiday"}})],1),o("v-col",{attrs:{cols:"12",sm:"4"}},[o("v-checkbox",{attrs:{label:"振替を含む"},model:{value:t.checkDow.substitute,callback:function(e){t.$set(t.checkDow,"substitute",e)},expression:"checkDow.substitute"}})],1)],1),o("v-row",{staticClass:"mt-0"},[o("v-col",{attrs:{cols:"12",sm:"4"}},[o("v-checkbox",{attrs:{label:"祝日前"},model:{value:t.checkDow.beforeHoliday,callback:function(e){t.$set(t.checkDow,"beforeHoliday",e)},expression:"checkDow.beforeHoliday"}})],1)],1)],1):t._e(),"HOLIDAY"===t.state.selectedWeekSetting?o("div",{staticClass:"mt-4"},[o("h5",[t._v("祝日でない時の曜日指定")]),o("v-row",{staticClass:"mt-1"},[o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"月曜"},on:{change:function(e){return t.onCheckedDay("mon",!1)}},model:{value:t.checkDow.mon,callback:function(e){t.$set(t.checkDow,"mon",e)},expression:"checkDow.mon"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"火曜"},on:{change:function(e){return t.onCheckedDay("tue",!1)}},model:{value:t.checkDow.tue,callback:function(e){t.$set(t.checkDow,"tue",e)},expression:"checkDow.tue"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"水曜"},on:{change:function(e){return t.onCheckedDay("wed",!1)}},model:{value:t.checkDow.wed,callback:function(e){t.$set(t.checkDow,"wed",e)},expression:"checkDow.wed"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"木曜"},on:{change:function(e){return t.onCheckedDay("thu",!1)}},model:{value:t.checkDow.thu,callback:function(e){t.$set(t.checkDow,"thu",e)},expression:"checkDow.thu"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"金曜"},on:{change:function(e){return t.onCheckedDay("fri",!1)}},model:{value:t.checkDow.fri,callback:function(e){t.$set(t.checkDow,"fri",e)},expression:"checkDow.fri"}})],1)],1),o("v-row",{staticClass:"mt-0"},[o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"土曜"},on:{change:function(e){return t.onCheckedDay("sat",!1)}},model:{value:t.checkDow.sat,callback:function(e){t.$set(t.checkDow,"sat",e)},expression:"checkDow.sat"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"日曜"},on:{change:function(e){return t.onCheckedDay("sun",!1)}},model:{value:t.checkDow.sun,callback:function(e){t.$set(t.checkDow,"sun",e)},expression:"checkDow.sun"}})],1)],1),o("h5",[t._v("祝日の時の曜日指定")]),o("v-row",{staticClass:"mt-1"},[o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"月曜"},on:{change:function(e){return t.onCheckedDay("holMon",!0)}},model:{value:t.checkDow.holMon,callback:function(e){t.$set(t.checkDow,"holMon",e)},expression:"checkDow.holMon"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"火曜"},on:{change:function(e){return t.onCheckedDay("holTue",!0)}},model:{value:t.checkDow.holTue,callback:function(e){t.$set(t.checkDow,"holTue",e)},expression:"checkDow.holTue"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"水曜"},on:{change:function(e){return t.onCheckedDay("holWed",!0)}},model:{value:t.checkDow.holWed,callback:function(e){t.$set(t.checkDow,"holWed",e)},expression:"checkDow.holWed"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"木曜"},on:{change:function(e){return t.onCheckedDay("holThu",!0)}},model:{value:t.checkDow.holThu,callback:function(e){t.$set(t.checkDow,"holThu",e)},expression:"checkDow.holThu"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"金曜"},on:{change:function(e){return t.onCheckedDay("holFri",!0)}},model:{value:t.checkDow.holFri,callback:function(e){t.$set(t.checkDow,"holFri",e)},expression:"checkDow.holFri"}})],1)],1),o("v-row",{staticClass:"mt-0"},[o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"土曜"},on:{change:function(e){return t.onCheckedDay("holSat",!1)}},model:{value:t.checkDow.holSat,callback:function(e){t.$set(t.checkDow,"holSat",e)},expression:"checkDow.holSat"}})],1),o("v-col",{attrs:{cols:"12",sm:"2"}},[o("v-checkbox",{attrs:{label:"日曜"},on:{change:function(e){return t.onCheckedDay("holSun",!1)}},model:{value:t.checkDow.holSun,callback:function(e){t.$set(t.checkDow,"holSun",e)},expression:"checkDow.holSun"}})],1)],1)],1):t._e()])],1),t.showCalendar?o("v-col",t._b({attrs:{cols:"12"}},"v-col",t._d({},[t.colSize,6])),[o("v-card",{attrs:{outlined:""}},[o("v-date-picker",{staticClass:"mt-2",attrs:{type:"date","year-format":null,"day-format":t.getDay,multiple:"","no-title":"",scrollable:"","full-width":""},model:{value:t.state.calendarSettings,callback:function(e){t.$set(t.state,"calendarSettings",e)},expression:"state.calendarSettings"}})],1)],1):t._e()],1)],1)},gg=[],hg=o("b85c"),vg=Object(r["b"])({props:{orientation:{type:String,required:!0,default:"vertical"},title:{type:String,required:!1,default:"チェックする曜日"},showTitle:{type:Boolean,required:!1,default:!0},showCalendar:{type:Boolean,required:!1,default:!0},checkDow:{type:Object,required:!0,default:function(){return{selectedWeekSetting:Po.Days,sun:!1,mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,holSun:!1,holMon:!1,holTue:!1,holWed:!1,holThu:!1,holFri:!1,holSat:!1,substitute:!1,beforeHoliday:!1,weekdays:!1,holiday:!1}}}},setup:function(t){var e=Object(r["n"])({selectedWeekSetting:Po.Days,sundayAndPublicHoliday:!1,calendarSettings:[]}),o=Object(r["a"])((function(){return"vertical"===t.orientation?"xl":"md"})),n=Object(r["n"])([{text:"平日/休日",value:Po.Days},{text:"曜日",value:Po.DayOfWeek},{text:"曜日と祝日",value:Po.Holiday}]),a=Object(r["r"])(t),i=a.checkDow;Object(r["s"])((function(){return t.checkDow.selectedWeekSetting}),(function(t){e.selectedWeekSetting=t,console.log("==>sub-component:",e.selectedWeekSetting,i)}));var s=function(t,e){for(var o=[],n=(new Date).getFullYear(),a=(new Date).getMonth()+1,r=new Date(n,a,0).getDate(),i=1;i<=r;i++){var s,l="".concat(n,"-").concat(("0"+a).slice(-2),"-").concat(("0"+i).slice(-2)),c="".concat(("0"+a).slice(-2),"-").concat(("0"+i).slice(-2)),u=new Date(l),d=Object(hg["a"])(t);try{for(d.s();!(s=d.n()).done;){var f=s.value;if(f===Ql[u.getDay()]){if(e&&Ul.includes(c)){o.push(l);break}if(!e&&!Ul.includes(c)){o.push(l);break}}}}catch(m){d.e(m)}finally{d.f()}}return o},l=function(t,o,n){e.calendarSettings=o?e.calendarSettings.concat(s(t,n)):e.calendarSettings.filter((function(e,o,a){return!s(t,n).includes(e)}))},c=function(e,o){var n=o?e.toLowerCase().substring(3):e;l([n],t.checkDow[e],o)},u=function(){t.checkDow.mon=t.checkDow.weekdays,t.checkDow.tue=t.checkDow.weekdays,t.checkDow.wed=t.checkDow.weekdays,t.checkDow.thu=t.checkDow.weekdays,t.checkDow.fri=t.checkDow.weekdays,l(["mon","tue","wed","thu","fri"],t.checkDow.weekdays,!1)},d=function(){t.checkDow.holSun=t.checkDow.holiday,t.checkDow.holMon=t.checkDow.holiday,t.checkDow.holTue=t.checkDow.holiday,t.checkDow.holWed=t.checkDow.holiday,t.checkDow.holThu=t.checkDow.holiday,t.checkDow.holFri=t.checkDow.holiday,t.checkDow.holSat=t.checkDow.holiday,l(["sun","mon","tue","wed","thu","fri","sat"],t.checkDow.holiday,!0)},f=function(){e.sundayAndPublicHoliday=t.checkDow.sun,l(["sun","mon","tue","wed","thu","fri","sat"],e.sundayAndPublicHoliday,!0),l(["sun"],e.sundayAndPublicHoliday,!1)},m=function(){e.sundayAndPublicHoliday=!1,t.checkDow.selectedWeekSetting=e.selectedWeekSetting,t.checkDow.sun=!1,t.checkDow.mon=!1,t.checkDow.tue=!1,t.checkDow.wed=!1,t.checkDow.thu=!1,t.checkDow.fri=!1,t.checkDow.sat=!1,t.checkDow.holSun=!1,t.checkDow.holMon=!1,t.checkDow.holTue=!1,t.checkDow.holWed=!1,t.checkDow.holThu=!1,t.checkDow.holFri=!1,t.checkDow.holSat=!1,t.checkDow.substitute=!1,t.checkDow.beforeHoliday=!1,t.checkDow.weekdays=!1,t.checkDow.holiday=!1,e.calendarSettings=[]};return{colSize:o,state:e,weekTocheck:n,onCheckedDay:c,onCheckedWeekDays:u,onCheckedHoliday:d,onCheckedSundayAndHoliday:f,onChangeWeekToCheck:m}}}),pg=vg,bg=Object(k["a"])(pg,mg,gg,!1,null,null,null),yg=bg.exports;uc()(bg,{VCard:Ic["a"],VCheckbox:du["a"],VCol:xc["a"],VDatePicker:$d["a"],VRow:Oc["a"],VSelect:Tf["a"]});var Sg=Object(r["b"])({components:{DeleteButton:cf,ConfirmDialog:Yd,DeleteDialog:of,ErrorDialog:Ou,ResponseDialog:tm,Draggable:Zm.a,WeekSettings:yg},setup:function(){var t=1,e=ic(),o=0;e.commit("main/changeDrawerContent",{contentId:o});var i=!1;e.commit("shiftTable/setIsDisplayShiftTable",{isDisp:i});var s=Object(r["p"])(),l=Object(r["p"])(),c=Object(r["p"])([]),u=Object(r["n"])({createConfirm:{show:!1,title:"確認",agree:"続行",close:"OK",content:"このアクションにより、集約の対象となるスタッフにシフトリストが添付されます。 続行しますか?"},sortConfirm:{show:!1,title:"確認",agree:"続行",close:"OK",content:"保存します、続行しますか?"},createAggregate:{show:!1},confirm:{show:!1,title:"確認",agree:"続行",close:"OK",content:"水平方向の合計設定が保存されます、続行しますか?"},delete:{show:!1,close:"OK",content:"選択した横計を削除します、続行しますか?"},error:{show:!1,title:"エラーが発生しました。",close:"OK",content:""},response:{show:!1,message:"",color:""}}),d=[{text:"使用する",value:"isUse",align:""},{text:"タイトル",value:"title"},{text:"",value:"actions",sortable:!1,align:""}],f=Object(r["n"])({shiftData:[],dataListRows:[],selectedRowID:0,selectedData:{},isEditValid:!1,isCreateValid:!1,editForm:{useSummaryField:!1,title:"新しい水平合計",selectedShift:[],isNotUseZero:!1,alternateText:"",aggregateType:Bo.WorkTime,aggregateRange:Wo.Month,aggregateDateKind:Po.Days,checkDow:{selectedWeekSetting:Po.Days,sun:!1,mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,holSun:!1,holMon:!1,holTue:!1,holWed:!1,holThu:!1,holFri:!1,holSat:!1,substitute:!1,beforeHoliday:!1,weekdays:!1,holiday:!1}},createForm:{useSummaryField:!1,title:"新しい水平合計",selectedShift:[],isNotUseZero:!1,alternateText:"",aggregateType:Bo.WorkTime,aggregateRange:Wo.Month,aggregateDateKind:Po.Days,checkDow:{selectedWeekSetting:Po.Days,sun:!1,mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,holSun:!1,holMon:!1,holTue:!1,holWed:!1,holThu:!1,holFri:!1,holSat:!1,substitute:!1,beforeHoliday:!1,weekdays:!1,holiday:!1}},deleteTarget:{staffAggregateID:0,concurrencyStamp:""},isButtonClick:!1,isDisabledEdit:!1,enabledItem:!1,sort:[],flg:!1,updFlg:!1,delFlg:!1}),m=Object(r["n"])(Bs),g=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:D(),O();case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),h=function(){f.editForm=Object.assign({},{useSummaryField:!1,title:"新しい水平合計",selectedShift:[],isNotUseZero:!1,alternateText:"",aggregateType:Bo.WorkCount,aggregateRange:Wo.Month,aggregateDateKind:Po.Days,checkDow:{selectedWeekSetting:Po.Days,sun:!1,mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,holSun:!1,holMon:!1,holTue:!1,holWed:!1,holThu:!1,holFri:!1,holSat:!1,substitute:!1,beforeHoliday:!1,weekdays:!1,holiday:!1}})},v=sr({id:0},E),p=v.loading,b=(v.result,v.onError),y=v.refetch,S=v.onResult;S((function(t){if(!t.error&&t.data.getStaffAggregates&&Array.isArray(t.data.getStaffAggregates)){var e,o=t.data.getStaffAggregates.map((function(t){return Object(n["a"])({},t)}));(e=f.dataListRows).splice.apply(e,[0,f.dataListRows.length].concat(Object(a["a"])(o)))}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(u.error.content=r.message,u.error.show=!0)}})),b((function(t){if(console.log("getStaffAggregatesOnError call",t),t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(u.error.content=e.message,u.error.show=!0)}}));var D=function(){var e=Object(X["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y({id:t});case 3:e.next=9;break;case 5:e.prev=5,e.t0=e["catch"](0),u.error.content="横計リストを取得中に問題が発生しました。",u.error.show=!0;case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),C=rr({id:0},E),w=(C.loading,C.result,C.onError),k=C.refetch,I=C.onResult;I((function(t){if(!t.error&&t.data.getStaffAggregateDispConfig){var e,o=t.data.getStaffAggregateDispConfig;f.editForm.useSummaryField=o.isUse,f.editForm.title=o.title,f.editForm.selectedShift=null===(e=o.staffAggregateShifts)||void 0===e?void 0:e.map((function(t){if(t.shiftID)return t.shiftID})),null!=o.alternateText&&""!=o.alternateText?(f.editForm.isNotUseZero=!0,f.editForm.alternateText=o.alternateText):(f.editForm.isNotUseZero=!1,f.editForm.alternateText=""),f.editForm.aggregateType=o.aggregateType,f.editForm.aggregateRange=o.aggregateRange,f.editForm.aggregateDateKind=o.aggregateDateKind,f.editForm.checkDow.selectedWeekSetting=o.aggregateDateKind,lt(o.aggregateDateKind,o.hasWeekFlag,f.editForm.checkDow),f.selectedData=o}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(u.error.content=n.message,u.error.show=!0)}})),w((function(t){if(console.log("getStaffAggregateDispConfigOnError call",t),t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(u.error.content=e.message,u.error.show=!0)}}));var x=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,k({id:e});case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),u.error.content="横計詳細を取得中に問題が発生しました。",u.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e){return t.apply(this,arguments)}}(),T=Ua({id:0},E),A=(T.loading,T.result,T.error,T.refetch),_=T.onResult;_((function(t){if(!t.error&&t.data.getShiftGroupsAndShifts){var e,o=t.data.getShiftGroupsAndShifts.shifts.map((function(t){return Object(n["a"])({},t)}));if((e=f.shiftData).splice.apply(e,[0,f.shiftData.length].concat(Object(a["a"])(o))),t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(u.error.content=r.message,u.error.show=!0)}}}));var O=function(){var e=Object(X["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,A({id:t});case 3:e.next=9;break;case 5:e.prev=5,e.t0=e["catch"](0),u.error.content="シフト一覧を取得中に問題が発生しました。",u.error.show=!0;case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),R=qn({fetchPolicy:"no-cache"}),F=(R.loading,R.mutate),V=R.onDone,j=R.onError;V((function(t){var e,o;if(f.delFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.deleteStaffAggregate)&&void 0!==o&&o.result){var n=f.deleteTarget.staffAggregateID,a=f.dataListRows.findIndex((function(t){return t.staffAggregateID===n}));f.dataListRows.splice(a,1),u.response.show=!0,u.response.color="success",u.response.message="横計を削除しました"}f.selectedRowID=0,u.delete.show=!1})),j((function(t){if(console.log("deleteStaffAggregateOnError call",t),f.delFlg=!1,t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(u.error.content=e.message,u.error.show=!0)}}));var G=function(t){f.deleteTarget.staffAggregateID=t.staffAggregateID,f.deleteTarget.concurrencyStamp=t.concurrencyStamp,u.delete.show=!0},$=function(){if(!f.delFlg){f.delFlg=!0;var t={staffAggregateID:f.deleteTarget.staffAggregateID,concurrencyStamp:f.deleteTarget.concurrencyStamp};console.log("deleteData",t);try{F({model:t})}catch(e){console.log("deleteError(GQL):",e),f.delFlg=!1}u.delete.show=!1}},N=Ur({fetchPolicy:"no-cache"}),L=(N.loading,N.called,N.error,N.mutate),P=N.onDone,W=N.onError;P((function(t){var e;console.log("insertStaffAggregateOnDone call",t),f.flg=!1,u.createConfirm.show=!1,u.response.show=!0,u.response.color="success",u.response.message=" 横計を追加しました",D(),f.createForm.useSummaryField=!1,f.createForm.title="新しい水平合計",f.createForm.selectedShift=[],f.createForm.isNotUseZero=!1,f.createForm.alternateText="",f.createForm.aggregateType=Bo.WorkCount,f.createForm.aggregateRange=Wo.Month,f.createForm.aggregateDateKind=Po.Days,null===(e=l.value)||void 0===e||e.resetValidation()})),W((function(t){if(console.log("insertStaffAggregateOnError call",t),f.flg=!1,t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(u.error.content=e.message,u.error.show=!0)}}));var B=ss({fetchPolicy:"no-cache"}),H=(B.loading,B.called,B.error,B.mutate),q=B.onDone,Q=B.onError;q((function(t){var e,o;if(console.log("updateStaffAggregateOnDone call",t),f.updFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateStaffAggregate)&&void 0!==o&&o.result){var n,a=t.data.updateStaffAggregate.result[0],r=null===(n=t.data.updateStaffAggregate.result[0])||void 0===n?void 0:n.staffAggregateID,i=f.dataListRows.findIndex((function(t){return t.staffAggregateID===r}));f.dataListRows.splice(i,1,a),x(f.selectedRowID)}u.confirm.show=!1,u.response.show=!0,u.response.color="success",u.response.message=" 横計を更新しました"})),Q((function(t){if(console.log("updateStaffAggregateOnError call",t),f.updFlg=!1,t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(u.error.content=e.message,u.error.show=!0)}}));var U=function(t,e){e.isSelected?f.selectedRowID=0:(f.selectedRowID=t.staffAggregateID,x(f.selectedRowID)),e.select(!e.isSelected)},z=function(){u.createAggregate.show=!0},K=function(){var t;null===(t=l.value)||void 0===t||t.validate(),ut(f.createForm.checkDow)?f.isCreateValid&&(u.createConfirm.show=!0):(u.response.show=!0,u.response.color="error",u.response.message=" 曜日がチェックされていません")},Y=function(){var t;null===(t=s.value)||void 0===t||t.validate(),ut(f.editForm.checkDow)?f.isEditValid&&(u.confirm.show=!0):(u.response.show=!0,u.response.color="error",u.response.message=" 曜日がチェックされていません")},Z=function(){var t;if(!f.updFlg){f.updFlg=!0;var e=[];f.editForm.selectedShift.map((function(t){var o,n=null===(o=f.selectedData.staffAggregateShifts)||void 0===o?void 0:o.find((function(e){if(e.shiftID===t)return!0}));e.push({staffAggregateShiftID:null===n||void 0===n?void 0:n.staffAggregateShiftID,concurrencyStamp:null===n||void 0===n?void 0:n.concurrencyStamp,shiftGroupID:null===n||void 0===n?void 0:n.shiftGroupID,shiftID:t,deleted:!1})}));var o=null===(t=f.selectedData.staffAggregateShifts)||void 0===t?void 0:t.filter((function(t){var e=!0;return f.editForm.selectedShift.filter((function(o){o===t.shiftID&&(e=!1)})),e}));null===o||void 0===o||o.map((function(t){e.push({staffAggregateShiftID:t.staffAggregateShiftID,concurrencyStamp:t.concurrencyStamp,shiftGroupID:t.shiftGroupID,shiftID:t.shiftID,deleted:!0})}));var n={staffAggregateID:f.selectedData.staffAggregateID,concurrencyStamp:f.selectedData.concurrencyStamp,isUse:f.editForm.useSummaryField,title:f.editForm.title,staffAggregateShifts:e,alternateText:f.editForm.alternateText,aggregateType:f.editForm.aggregateType,aggregateRange:f.editForm.aggregateRange,aggregateDateKind:f.editForm.checkDow.selectedWeekSetting,aggregateDayOfWeek:ct(f.editForm.checkDow)};console.log("updateData",n);try{H({model:n})}catch(a){console.log("insertError(GQL):",a),f.updFlg=!1,u.error.content="登録処理中に問題が発生しました。",u.error.show=!0}u.confirm.show=!1}},J=function(){if(!f.flg){f.flg=!0;var e={sectionID:t,isUse:f.createForm.useSummaryField,title:f.createForm.title,staffAggregateShifts:f.createForm.selectedShift.map((function(t){return{shiftGroupID:void 0,shiftID:t}})),alternateText:f.createForm.alternateText,aggregateType:f.createForm.aggregateType,aggregateRange:f.createForm.aggregateRange,aggregateDateKind:f.createForm.checkDow.selectedWeekSetting,aggregateDayOfWeek:ct(f.createForm.checkDow)};console.log("insertData",e);try{L({model:e})}catch(o){console.log("insertError(GQL):",o),f.flg=!1,u.error.content="登録処理中に問題が発生しました。",u.error.show=!0}u.createAggregate.show=!1,u.createConfirm.show=!1}},tt=function(){f.isButtonClick=!0,f.isDisabledEdit=!0,f.sort=f.dataListRows,f.enabledItem=!0},et=function(){u.sortConfirm.show=!0},ot=function(){f.isButtonClick=!1,f.isDisabledEdit=!1,f.dataListRows=f.sort,f.enabledItem=!1},nt=hi({fetchPolicy:"no-cache"}),at=nt.mutate,rt=(nt.loading,nt.error,nt.called,nt.onDone),it=nt.onError;rt((function(t){var e;if(t.data&&null!==(e=t.data.setOrderStaffAggregate)&&void 0!==e&&e.succeed){var o,n=t.data.setOrderStaffAggregate.result;(o=f.dataListRows).splice.apply(o,[0,f.dataListRows.length].concat(Object(a["a"])(n)))}else if(t.errors){var r=pt(t.errors);u.error.content=r.message,u.error.show=!0}u.sortConfirm.show=!1,u.response.show=!0,u.response.color="success",u.response.message="更新成功",f.isButtonClick=!1,f.isDisabledEdit=!1,f.enabledItem=!1})),it((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);u.error.content=e.message,u.error.show=!0}else u.error.content="エラーメッセージ表示",u.error.show=!0}));var st=function(){try{var e=JSON.stringify(f.sort),o=JSON.stringify(f.dataListRows);if(e===o)u.error.content=qu,u.error.show=!0,u.sortConfirm.show=!1;else if(f.dataListRows){var n=f.dataListRows.map((function(t){return{concurrencyStamp:t.concurrencyStamp,staffAggregateID:t.staffAggregateID}}));at({id:t,models:n})}}catch(a){u.error.content=Hu,u.error.show=!0}},lt=function(t,e,o){var n,a,r,i,s,l,c,u,d,f,m,g,h,v,p,b,y,S,D,C,w,k,I,x,T,A,_,O,R,F,V,j,E,G,$,N,L,M,P,W,B,H,q,Q,U,z,K,Y,Z,J,X,tt,et,ot,nt;t===Po.Days&&(o.mon=null===(n=e.weekdayAndHolidaySelect)||void 0===n?void 0:n.isWeekday,o.tue=null===(a=e.weekdayAndHolidaySelect)||void 0===a?void 0:a.isWeekday,o.wed=null===(r=e.weekdayAndHolidaySelect)||void 0===r?void 0:r.isWeekday,o.thu=null===(i=e.weekdayAndHolidaySelect)||void 0===i?void 0:i.isWeekday,o.fri=null===(s=e.weekdayAndHolidaySelect)||void 0===s?void 0:s.isWeekday,o.sat=null===(l=e.weekdayAndHolidaySelect)||void 0===l?void 0:l.isSaturday,o.sun=null===(c=e.weekdayAndHolidaySelect)||void 0===c?void 0:c.isSundayAndHoliday,o.holMon=!1,o.holTue=!1,o.holWed=!1,o.holThu=!1,o.holFri=!1,o.holSat=!1,o.holSun=!1,o.substitute=null===(u=e.weekdayAndHolidaySelect)||void 0===u?void 0:u.isCompensationHoliday,o.beforeHoliday=!1,o.weekdays=null===(d=e.weekdayAndHolidaySelect)||void 0===d?void 0:d.isWeekday,o.holiday=null===(f=e.weekdayAndHolidaySelect)||void 0===f?void 0:f.isSundayAndHoliday);t===Po.DayOfWeek&&(o.mon=null===(m=e.dayOfWeekSelect)||void 0===m?void 0:m.isMonday,o.tue=null===(g=e.dayOfWeekSelect)||void 0===g?void 0:g.isTuesday,o.wed=null===(h=e.dayOfWeekSelect)||void 0===h?void 0:h.isWednesday,o.thu=null===(v=e.dayOfWeekSelect)||void 0===v?void 0:v.isThursday,o.fri=null===(p=e.dayOfWeekSelect)||void 0===p?void 0:p.isFriday,o.sat=null===(b=e.dayOfWeekSelect)||void 0===b?void 0:b.isSaturday,o.sun=null===(y=e.dayOfWeekSelect)||void 0===y?void 0:y.isSunday,o.holMon=null===(S=e.dayOfWeekSelect)||void 0===S?void 0:S.isHoliday,o.holTue=null===(D=e.dayOfWeekSelect)||void 0===D?void 0:D.isHoliday,o.holWed=null===(C=e.dayOfWeekSelect)||void 0===C?void 0:C.isHoliday,o.holThu=null===(w=e.dayOfWeekSelect)||void 0===w?void 0:w.isHoliday,o.holFri=null===(k=e.dayOfWeekSelect)||void 0===k?void 0:k.isHoliday,o.holSat=null===(I=e.dayOfWeekSelect)||void 0===I?void 0:I.isHoliday,o.holSun=null===(x=e.dayOfWeekSelect)||void 0===x?void 0:x.isHoliday,o.substitute=null===(T=e.dayOfWeekSelect)||void 0===T?void 0:T.isCompensationHoliday,o.beforeHoliday=null===(A=e.dayOfWeekSelect)||void 0===A?void 0:A.isBeforeHoliday,o.weekdays=!1,o.holiday=null===(_=e.dayOfWeekSelect)||void 0===_?void 0:_.isHoliday);t===Po.Holiday&&(o.mon=null===(O=e.dayOfWeekAndHolidaySelect)||void 0===O||null===(R=O.nonHoliday)||void 0===R?void 0:R.isMonday,o.tue=null===(F=e.dayOfWeekAndHolidaySelect)||void 0===F||null===(V=F.nonHoliday)||void 0===V?void 0:V.isTuesday,o.wed=null===(j=e.dayOfWeekAndHolidaySelect)||void 0===j||null===(E=j.nonHoliday)||void 0===E?void 0:E.isWednesday,o.thu=null===(G=e.dayOfWeekAndHolidaySelect)||void 0===G||null===($=G.nonHoliday)||void 0===$?void 0:$.isThursday,o.fri=null===(N=e.dayOfWeekAndHolidaySelect)||void 0===N||null===(L=N.nonHoliday)||void 0===L?void 0:L.isFriday,o.sat=null===(M=e.dayOfWeekAndHolidaySelect)||void 0===M||null===(P=M.nonHoliday)||void 0===P?void 0:P.isSaturday,o.sun=null===(W=e.dayOfWeekAndHolidaySelect)||void 0===W||null===(B=W.nonHoliday)||void 0===B?void 0:B.isSunday,o.holMon=null===(H=e.dayOfWeekAndHolidaySelect)||void 0===H||null===(q=H.holiday)||void 0===q?void 0:q.isMonday,o.holTue=null===(Q=e.dayOfWeekAndHolidaySelect)||void 0===Q||null===(U=Q.holiday)||void 0===U?void 0:U.isTuesday,o.holWed=null===(z=e.dayOfWeekAndHolidaySelect)||void 0===z||null===(K=z.holiday)||void 0===K?void 0:K.isWednesday,o.holThu=null===(Y=e.dayOfWeekAndHolidaySelect)||void 0===Y||null===(Z=Y.holiday)||void 0===Z?void 0:Z.isThursday,o.holFri=null===(J=e.dayOfWeekAndHolidaySelect)||void 0===J||null===(X=J.holiday)||void 0===X?void 0:X.isFriday,o.holSat=null===(tt=e.dayOfWeekAndHolidaySelect)||void 0===tt||null===(et=tt.holiday)||void 0===et?void 0:et.isSaturday,o.holSun=null===(ot=e.dayOfWeekAndHolidaySelect)||void 0===ot||null===(nt=ot.holiday)||void 0===nt?void 0:nt.isSunday,o.substitute=!1,o.beforeHoliday=!1,o.weekdays=!1,o.holiday=!1)},ct=function(t){return t.selectedWeekSetting===Po.Days?{weekdayAndHolidaySelect:{isWeekday:t.weekdays,isSaturday:t.sat,isSundayAndHoliday:t.sun,isCompensationHoliday:t.substitute},dayOfWeekSelect:void 0,dayOfWeekAndHolidaySelect:void 0}:t.selectedWeekSetting===Po.DayOfWeek?{weekdayAndHolidaySelect:void 0,dayOfWeekSelect:{isHoliday:t.holiday,isCompensationHoliday:t.substitute,isBeforeHoliday:t.beforeHoliday,isMonday:t.mon,isTuesday:t.tue,isWednesday:t.wed,isThursday:t.thu,isFriday:t.fri,isSaturday:t.sat,isSunday:t.sun},dayOfWeekAndHolidaySelect:void 0}:t.selectedWeekSetting===Po.Holiday?{weekdayAndHolidaySelect:void 0,dayOfWeekSelect:void 0,dayOfWeekAndHolidaySelect:{nonHoliday:{isMonday:t.mon,isTuesday:t.tue,isWednesday:t.wed,isThursday:t.thu,isFriday:t.fri,isSaturday:t.sat,isSunday:t.sun},holiday:{isMonday:t.holMon,isTuesday:t.holTue,isWednesday:t.holWed,isThursday:t.holThu,isFriday:t.holFri,isSaturday:t.holSat,isSunday:t.holSun}}}:void 0},ut=function(t){return t.selectedWeekSetting===Po.Days?t.mon||t.tue||t.wed||t.thu||t.fri||t.sat||t.sun||t.substitute:t.selectedWeekSetting===Po.DayOfWeek?t.mon||t.tue||t.wed||t.thu||t.fri||t.sat||t.sun||t.holMon||t.substitute||t.beforeHoliday:t.selectedWeekSetting===Po.Holiday?t.mon||t.tue||t.wed||t.thu||t.fri||t.sat||t.sun||t.holMon||t.holTue||t.holWed||t.holThu||t.holFri:void 0};return g(),{dataListHeader:d,state:f,selectedDataLists:c,aggregateTypes:m,dialog:u,editForm:s,createForm:l,rules:fg(),isGetStaffAggregatesLoading:p,clearForm:h,removeData:G,saveEdit:Z,saveInsert:J,rowClick:U,saveDelete:$,validate:K,editValidate:Y,createClick:z,sortClick:tt,saveClick:et,setOrder:st,doneClick:ot}}}),Dg=Sg,Cg=Object(k["a"])(Dg,ug,dg,!1,null,"8af698fc",null),wg=Cg.exports;uc()(Cg,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCheckbox:du["a"],VCol:xc["a"],VContainer:eu["a"],VDataTable:zu["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"],VTooltip:fd["a"]});var kg=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("違反表示設定")]),t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-form",{ref:"violationForm"},[o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-card",{staticClass:"pa-3"},[o("label",{staticClass:"content__content-tit content-tit"},[t._v("シフト表上に違反表示色を表示")]),o("v-row",{staticClass:"mt-2"},[o("v-col",{attrs:{cols:"12",md:"4"}},[o("v-checkbox",{attrs:{label:"縦計",color:"indigo","hide-details":""},model:{value:t.state.violationDisplay.isDateAggregate,callback:function(e){t.$set(t.state.violationDisplay,"isDateAggregate",e)},expression:"state.violationDisplay.isDateAggregate"}})],1),o("v-col",{attrs:{cols:"12",md:"4"}},[o("v-checkbox",{attrs:{label:"横計",color:"indigo","hide-details":""},model:{value:t.state.violationDisplay.isStaffAggregate,callback:function(e){t.$set(t.state.violationDisplay,"isStaffAggregate",e)},expression:"state.violationDisplay.isStaffAggregate"}})],1)],1)],1)],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-card",[o("div",{staticClass:"py-6 px-5"},[o("label",{staticClass:"content__content-tit content-tit"},[t._v("違反表示色")]),o("v-row",[o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{cols:"12"}},[o("div",[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchStyleHighLevel},n))]}}],null,!1,3910216862)},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.state.violationDisplay.highLevel,callback:function(e){t.$set(t.state.violationDisplay,"highLevel",e)},expression:"state.violationDisplay.highLevel"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"})])],1)],1)])],1)],1)],1),o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.submit}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check")])],1)],1)])],1)],1)],1)]),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.saveSettings}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},Ig=[],xg=Object(r["b"])({components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=!1;t.commit("shiftTable/setIsDisplayShiftTable",{isDisp:o});var n=1,a=Object(r["n"])({violationDisplay:{optionSectionID:0,concurrencyStamp:"",isDateAggregate:!1,isStaffAggregate:!1,isPermissibleRange:!1,isNotVioration:!1,highLevel:"",midLevel:"",lowLevel:"",notViorationLevel:"",checkStartTime:0},flg:!1}),i=Object(r["n"])({confirm:{show:!1},error:{show:!1,content:""},response:{show:!1,message:"",color:""}}),s=Tr({id:0},E),l=(s.result,s.loading),c=s.onResult,u=(s.error,s.refetch);c((function(t){if(t.data&&t.data.getViolationDisplayConfig)a.violationDisplay.optionSectionID=t.data.getViolationDisplayConfig.optionSectionID,a.violationDisplay.concurrencyStamp=t.data.getViolationDisplayConfig.concurrencyStamp,a.violationDisplay.isDateAggregate=t.data.getViolationDisplayConfig.isDateAggregate,a.violationDisplay.isStaffAggregate=t.data.getViolationDisplayConfig.isStaffAggregate,a.violationDisplay.isPermissibleRange=t.data.getViolationDisplayConfig.isPermissibleRange,a.violationDisplay.isNotVioration=t.data.getViolationDisplayConfig.isNotVioration,a.violationDisplay.highLevel=t.data.getViolationDisplayConfig.highLevel,a.violationDisplay.midLevel=t.data.getViolationDisplayConfig.midLevel,a.violationDisplay.lowLevel=t.data.getViolationDisplayConfig.lowLevel,a.violationDisplay.notViorationLevel=t.data.getViolationDisplayConfig.notViorationLevel,a.violationDisplay.checkStartTime=t.data.getViolationDisplayConfig.checkStartTime,console.log("state",a.violationDisplay);else if(t.errors){var e=pt(t.errors);e.code!==M.QueryRecordNotFound&&(i.error.content=e.message,i.error.show=!0)}}));var d=ps({fetchPolicy:"no-cache"}),f=d.mutate,m=(d.loading,d.error,d.called,d.onDone),g=d.onError;m((function(t){var e,o;a.flg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateViolationDisplayConfig)&&void 0!==o&&o.succeed&&(i.response.show=!0,i.response.color="success",i.response.message="設定を保存しました"),i.confirm.show=!1,v()})),g((function(t){if(console.log("updateOnError",t),a.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);i.error.content=e.message,i.error.show=!0}else i.error.content="エラーメッセージ表示",i.error.show=!0}));var h=Object(r["a"])((function(){return{backgroundColor:a.violationDisplay.highLevel,cursor:"pointer",height:"30px",width:"30px",borderRadius:"4px",transition:"border-radius 200ms ease-in-out"}})),v=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u({id:n});case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),i.error.content=Bu,i.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),p=function(){if(!a.flg){a.flg=!0;try{var t={optionSectionID:a.violationDisplay.optionSectionID,concurrencyStamp:a.violationDisplay.concurrencyStamp,isDateAggregate:a.violationDisplay.isDateAggregate,isStaffAggregate:a.violationDisplay.isStaffAggregate,isPermissibleRange:a.violationDisplay.isPermissibleRange,isNotVioration:a.violationDisplay.isNotVioration,highLevel:a.violationDisplay.highLevel,midLevel:a.violationDisplay.midLevel,lowLevel:a.violationDisplay.lowLevel,notViorationLevel:a.violationDisplay.notViorationLevel,checkStartTime:a.violationDisplay.checkStartTime};console.log("updateData",t),f({model:t})}catch(e){a.flg=!1,i.error.content=Hu,i.error.show=!0}}},b=function(){i.confirm.show=!0};return v(),{state:a,dialog:i,saveSettings:p,submit:b,swatchStyleHighLevel:h,isGetLoading:l}}}),Tg=xg,Ag=o("03a4"),_g=Object(k["a"])(Tg,kg,Ig,!1,null,"4779325c",null),Og=_g.exports;uc()(_g,{VBtn:mc["a"],VCard:Ic["a"],VCardText:uu["b"],VCheckbox:du["a"],VCol:xc["a"],VColorPicker:Ag["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VProgressCircular:Md["a"],VRow:Oc["a"]});var Rg=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("違反一覧")]),t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-card",[o("div",{staticClass:"py-6 px-5"},[o("v-data-table",{attrs:{headers:t.header,items:t.state.violations,"item-key":"id",height:"400","hide-default-footer":"","fixed-header":"","disable-pagination":""},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{staticClass:"d-flex align-center",attrs:{flat:""}},[o("v-toolbar-title",[t._v("違反ルールのリスト")])],1),o("v-toolbar",{attrs:{flat:""}},[o("div",[t._v("違反数:"+t._s(t.state.violations.length))])])]},proxy:!0},{key:"item.actions",fn:function(e){var n=e.item;return[o("div",{staticClass:"content-nowrap"},[o("edit-button",{on:{edit:function(e){return t.editClick(n)}}})],1)]}}],null,!0)})],1)])],1)],1),o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1)],1)])])},Fg=[],Vg=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-row",{attrs:{justify:"center"}},[o("v-dialog",{attrs:{persistent:"",width:t.width},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",{staticClass:"py-5"},[o("v-card-title",[o("span",{staticClass:"text-h5",domProps:{textContent:t._s(t.title)}})]),o("v-card-text",[o("v-container",[t._t("form-content",(function(){return[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"Legal first name*",required:""}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"Legal middle name",hint:"example of helper text only on focus"}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"Legal last name*",hint:"example of persistent helper text","persistent-hint":"",required:""}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"Email*",required:""}})],1)],1)]}))],2)],1),o("v-card-actions",[t._t("action",(function(){return[o("v-spacer"),o("v-btn",{attrs:{color:"darken-1",text:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" "+t._s(t.cancel)+" ")]),o("v-btn",{attrs:{dark:"",color:"green"},on:{click:function(e){return t.$emit("submit")}}},[t._v(" "+t._s(t.submit)+" ")])]}))],2)],1)],1)],1)},jg=[],Eg=Object(r["b"])({props:{show:{type:Boolean,required:!0,default:!1},title:{type:String,required:!1,default:"確認"},content:{type:String,required:!1,default:"このアクションを続行しますか?"},cancel:{type:String,required:!1,default:"キャンセル"},width:{type:Number,required:!1,default:600},submit:{type:String,required:!1,default:"送信"},data:{type:Object,required:!1,default:function(){return{}}}},emits:["close","confirm"],setup:function(t){var e=Object(r["r"])(t).show;return{dialog:e}}}),Gg=Eg,$g=Object(k["a"])(Gg,Vg,jg,!1,null,null,null),Ng=$g.exports;uc()($g,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCol:xc["a"],VContainer:eu["a"],VDialog:Au["a"],VRow:Oc["a"],VSpacer:vc["a"],VTextField:yu["a"]});var Lg=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"success",dark:"","x-small":"",fab:"",disabled:t.btn},on:{click:function(e){return t.$emit("edit")}}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-square-edit-outline ")])],1)]}}])},[o("span",[t._v("編集")])])},Mg=[],Pg=Object(r["b"])({props:{btn:{type:Boolean,required:!1,default:!1}}}),Wg=Pg,Bg=Object(k["a"])(Wg,Lg,Mg,!1,null,null,null),Hg=Bg.exports;uc()(Bg,{VBtn:mc["a"],VIcon:gc["a"],VTooltip:fd["a"]});var qg=Object(r["b"])({components:{confirmDialog:Yd,responseDialog:tm,formDialog:Ng,EditButton:Hg},setup:function(){var t=ic(),e=bk(),o=0;t.commit("main/changeDrawerContent",{contentId:o});var n=!1;t.commit("shiftTable/setIsDisplayShiftTable",{isDisp:n});var i=t.getters["shiftTable/selectShiftTableID"],s=Object(r["n"])({show:!1,message:"",color:""}),l=Object(r["n"])({show:!1,title:"確認",agree:"続行",content:"このアクションにより、集約の対象となるスタッフにシフトリストが添付されます。 続行しますか?"}),c=Object(r["p"])({ruleSet:"",violatingRules:"",violationDetails:""}),u=Object(r["p"])(0),d=Object(r["n"])({show:!1}),f=function(t,e){c.value=Object.assign({},t),u.value=e,d.show=!0},m=Object(r["n"])({violations:[]}),g=[{text:"違反しているルール",value:"name"},{text:"詳細",value:"description"},{text:"",value:"actions"}],h=Object(r["n"])({error:{show:!1,content:""}}),v=mn({shiftTableID:0},E),p=(v.result,v.loading),b=v.onResult,y=(v.error,v.refetch);b((function(t){if(!t.error&&t.data.getShiftTableViolations){var e,o=t.data.getShiftTableViolations.map((function(t){return{ruleShiftTableDetailID:t.ruleShiftTableDetailID,ruleShiftTableID:t.ruleShiftTableID,name:t.name,description:t.description,strength:t.strength}}));(e=m.violations).splice.apply(e,[0,m.violations.length].concat(Object(a["a"])(o))),console.log("violations",m.violations)}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(h.error.content=n.message,h.error.show=!0)}}));var S=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,y({shiftTableID:i});case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),h.error.content=Bu,h.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),D=function(o){t.commit("shiftRule/setRuleShiftTableID",{value:o.ruleShiftTableID}),t.commit("shiftRule/setRuleShiftTableDetailName",{value:o.name}),t.commit("shiftRule/setIsSettingsViolation",{value:!0}),e.push({name:"rule-shift-table"})};return S(),{form:c,responseDialog:s,confirmDialog:l,formDialog:d,edit:f,state:m,header:g,dialog:h,editClick:D,isGetLoading:p}}}),Qg=qg,Ug=Object(k["a"])(Qg,Rg,Fg,!1,null,"3cfabc28",null),zg=Ug.exports;uc()(Ug,{VBtn:mc["a"],VCard:Ic["a"],VCol:xc["a"],VDataTable:zu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRow:Oc["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var Kg=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("いつものルール一覧")]),t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-col",[o("v-card",[o("v-data-table",{staticClass:"content__table mt-6",attrs:{headers:t.header,items:t.state.ruleCommons,"item-key":"ruleCommonID","items-per-page":10,"sort-by":"sort",height:"400","hide-default-footer":"","disable-pagination":""},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("いつものルールリスト")])],1)]},proxy:!0},{key:"item.no",fn:function(e){var n=e.index;return[o("td",[t._v(t._s(n+1))])]}},{key:"item.actions",fn:function(e){var n=e.item;return[o("div",{staticClass:"content-nowrap"},[o("edit-button",{on:{edit:function(e){return t.editClick(n)}}}),o("delete-button",{on:{delete:function(e){return t.deleteClick(n)}}})],1)]}}],null,!0)}),o("div",{staticClass:"content__btn form__btn pb-3"},[o("v-btn",{staticClass:"mb-2 mr-2",attrs:{color:"primary"},on:{click:function(e){t.dialog.createRule.show=!0}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-plus-box-outline ")]),t._v("追加")],1)],1)],1)],1),o("v-col",{attrs:{cols:"1"}},[o("div",{staticClass:"content__btn form__btn mt-10"},[o("v-btn",{staticClass:"mr-2",attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)])],1)]),o("v-dialog",{attrs:{width:"500"},model:{value:t.dialog.createRule.show,callback:function(e){t.$set(t.dialog.createRule,"show",e)},expression:"dialog.createRule.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("いつものルール")]),o("v-form",{ref:"form",model:{value:t.state.isValidate,callback:function(e){t.$set(t.state,"isValidate",e)},expression:"state.isValidate"}},[o("v-card-text",[o("v-col",[o("v-text-field",{attrs:{label:"名称",rules:t.rules.name,outlined:"","background-color":"white","hide-details":"auto",dense:""},model:{value:t.formContent.name,callback:function(e){t.$set(t.formContent,"name",e)},expression:"formContent.name"}})],1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.createRule.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.deleteSettings,close:function(e){t.dialog.delete.show=!1}}}),o("errorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{confirm:t.insertSettings,close:function(e){t.dialog.confirm.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},Yg=[],Zg=(o("00b4"),function(){return{name:[function(t){return!!t||"ルール名称は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=64||"ルール名称は64文字までです。"}],pattern:[function(t){return t!==Ko.All||"パターンを選択してください。"}],shift:[function(t){return!!t&&""!==t||"シフトは必須項目です。"}],shifts:[function(t){return t&&t.length>0||"シフトは必須項目です。"}],staffAttr:[function(t){return!!t||"スタッフ属性は必須項目です。"}],staffs:[function(t){return t&&t.length>0||"スタッフは必須項目です。"}],dayOption:[function(t){return!!t&&""!==t||"頻度は必須項目です。"}],numberOfPeople:[function(t){return parseInt(t)>0||"人数は1以上です"},function(t){return!isNaN(parseInt(t))||"人数は数値のみ入力可です"},function(t){return!!t&&t.length<=2||"人数は99以下です。"}],numberOfDays:[function(t){return parseInt(t)>0||"日数は1以上です"},function(t){return!isNaN(parseInt(t))||"日数は数値のみ入力可です"},function(t){return!!t&&t.length<=2||"日数は99以下です。"}],numberOfWorkTimes:[function(t){return parseInt(t)>=0||"勤務回数は0以上です"},function(t){return!isNaN(parseInt(t))||"勤務回数は数値のみ入力可です"},function(t){return/^([1-9]\d*|0)$/.test(t)||"勤務回数は整数のみ入力可です"},function(t){return!!t&&t.length<=4||"勤務回数は9999以下です。"}],numberOfContinueWorkTimes:[function(t){return parseInt(t)>0||"連続勤務回数は1以上です"},function(t){return!isNaN(parseInt(t))||"連続勤務回数は数値のみ入力可です"},function(t){return!!t&&t.length<=2||"連続勤務回数は99以下です。"}],staffAttributeGroups:[function(t){return!!t&&""!==t||"スタッフ属性グループは必須項目です。"}],staffAttributeGroupItems:[function(t){return t&&t.length>0||"スタッフ属性は必須項目です。"}],copyToCommon:[function(t){return t>0||"ルールを選択してください。"}],copyToShift:[function(t){return t>0||"シフトを選択してください。"}]}}),Jg=Object(r["b"])({components:{DeleteDialog:of,errorDialog:of,DeleteButton:cf,EditButton:Hg,ConfirmDialog:Yd,ResponseDialog:tm},setup:function(){var t=ic(),e=bk(),o=2;t.commit("main/changeDrawerContent",{contentId:o});var n=Object(r["p"])(),i=Object(r["n"])({ruleCommons:[],sectionID:-1,buttonDisable:!0,isValidate:!1,flg:!1,delFlg:!1}),s=[{text:"No",value:"no"},{text:"名称",value:"name"},{text:"更新日",value:"registrationTime"},{text:"",value:"actions",sortable:!1,align:""}],l=Object(r["n"])({error:{show:!1,title:"",close:"",content:""},confirm:{show:!1,title:"確認",close:"OK",content:"入力中の名称を保存します、続行しますか?"},delete:{show:!1,title:"確認",close:"OK",content:"削除します、続行しますか?"},response:{show:!1,message:"",color:""},createRule:{show:!1}}),c=Object(r["n"])({name:"",ruleCommonID:-1,concurrencyStamp:""});function u(t){var e=String(t).split(/[-T]/);return"".concat(e[0],"-").concat(e[1],"-").concat(e[2])}var d=Ea({id:1},E),f=(d.result,d.loading),m=d.onResult,g=(d.error,d.refetch);m((function(t){if(!t.error&&t.data.getRuleCommons){var e,o=t.data.getRuleCommons.map((function(t){return{ruleCommonID:t.ruleCommonID,sectionID:t.sectionID,concurrencyStamp:t.concurrencyStamp,registrationTime:u(t.registrationTime),registrationAccount:t.registrationAccount,sort:t.sort,name:t.name}}));(e=i.ruleCommons).splice.apply(e,[0,i.ruleCommons.length].concat(Object(a["a"])(o))),console.log(t.data.getRuleCommons),console.log(i.ruleCommons)}else if(t.errors){var n=pt(t.errors);console.log("edata",n),n.code!==M.QueryRecordNotFound&&(l.error.content=n.message,l.error.show=!0)}}));var h=Lr({fetchPolicy:"no-cache"}),v=h.mutate,p=(h.loading,h.error,h.called,h.onDone),b=h.onError;p((function(o){var n;if(i.flg=!1,!o.errors&&null!==(n=o.data)&&void 0!==n&&n.insertRuleCommon){var a;l.confirm.show=!1;var r=null===(a=o.data.insertRuleCommon.result)||void 0===a?void 0:a.ruleCommonID;t.commit("shiftRule/setRuleCommonID",{value:r}),e.push({name:"shift-common-rule"})}})),b((function(t){if(i.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(l.error.content=t.message,l.error.show=!0)}}));var y=Ln({fetchPolicy:"no-cache"}),S=y.mutate,D=(y.loading,y.error,y.called,y.onDone),C=y.onError;D((function(t){var e,o;if(i.delFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.deleteRuleCommon)&&void 0!==o&&o.succeed){var n,a,r,s=null===(n=t.data)||void 0===n||null===(a=n.deleteRuleCommon)||void 0===a||null===(r=a.result)||void 0===r?void 0:r.ruleCommonID,c=i.ruleCommons.findIndex((function(t){return t.ruleCommonID===s}));i.ruleCommons.splice(c,1),l.delete.show=!1,l.response.show=!0,l.response.color="success",l.response.message="いつものルール情報を削除しました"}})),C((function(t){if(i.delFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(l.error.content=t.message,l.error.show=!0)}}));var w=function(){var t;console.log("validate call"),null===(t=n.value)||void 0===t||t.validate(),i.isValidate&&(l.confirm.show=!0)},k=function(){if(!i.flg){i.flg=!0;try{var t={sectionID:1,name:c.name};v({model:t})}catch(e){console.log("えらーしょりです"),i.flg=!1}}},I=function(o){console.log("editClick call"),console.log(o.ruleCommonID),t.commit("shiftRule/setRuleCommonID",{value:o.ruleCommonID}),e.push({name:"shift-common-rule"})},x=function(t){console.log("deleteClick call"),c.concurrencyStamp=t.concurrencyStamp,c.ruleCommonID=t.ruleCommonID,l.delete.show=!0},T=function(){if(!i.delFlg){i.delFlg=!0;try{var t={concurrencyStamp:c.concurrencyStamp,ruleCommonID:c.ruleCommonID};S({model:t})}catch(e){console.log("えらーしょりです"),i.delFlg=!1}}},A=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g();case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),l.error.content=Bu,l.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),_=function(){e.push({name:"shift-common-rule"})};return A(),{form:n,state:i,header:s,dialog:l,formContent:c,editClick:I,deleteClick:x,deleteSettings:T,onTransition:_,validate:w,insertSettings:k,rules:Zg(),isGetLoading:f}}}),Xg=Jg,th=Object(k["a"])(Xg,Kg,Yg,!1,null,"398cc7c8",null),eh=th.exports;uc()(th,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VDataTable:zu["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var oh=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("いつものシフトルール作成")]),o("v-tabs",[o("v-tab",{attrs:{href:"#tab-1"}},[t._v("詳細設定")]),o("v-tab-item",{key:"tab-1",attrs:{value:"tab-1"}},[o("common-advance-tab")],1),o("v-tab-item",{key:"tab-2",attrs:{value:"tab-2"}},[o("easy-setting-tab")],1)],1)],1)])},nh=[],ah=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"yellow lighten-5"},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-data-table",{staticClass:"content__table mt-4",attrs:{headers:t.ruleSetHeader,items:t.ruleSetRows,"single-select":!0,"item-key":"id","hide-default-footer":!1,"items-per-page":5,"show-select":""},on:{input:t.onSelectRuleSet},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("ルールセット")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}})],1)]},proxy:!0},{key:"item.actions",fn:function(e){var n=e.item;return[o("v-btn",{staticClass:"ma-2",attrs:{color:"success"},on:{click:function(e){return t.addRule(n)}}},[t._v("追加")])]}}],null,!0),model:{value:t.state.selectedRuleSet,callback:function(e){t.$set(t.state,"selectedRuleSet",e)},expression:"state.selectedRuleSet"}})],1)],1),o("v-card",{staticClass:"mx-auto mt-6"},[o("v-data-table",{staticClass:"content__table mt-0",attrs:{headers:t.ruleListHeader,items:t.ruleListRows,"item-key":"ruleCommonDetailID","items-per-page":10,"show-select":""},on:{input:t.onSelectRuleDetail},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("いつものルール詳細一覧")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}})],1)]},proxy:!0},{key:"item.priority",fn:function(e){var o=e.item;return[t._v(" "+t._s(t.getLevelName(o.priority))+" ")]}},{key:"item.actions",fn:function(e){var n=e.item;return[o("v-btn",{staticClass:"ma-2",attrs:{color:"success",dark:""},on:{click:function(e){return t.editRule(n)}}},[t._v(" 編集 "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-account-edit ")])],1),o("v-btn",{staticClass:"ma-2",attrs:{color:"warning",dark:""},on:{click:function(e){return t.changeRuleLevel(n)}}},[t._v(" レベルの変更 ")]),o("v-btn",{staticClass:"ma-2",attrs:{color:"warning",dark:"",outlined:n.configuration.enabled},on:{click:function(e){return t.enableRule(n)}}},[t._v(" "+t._s(n.configuration.enabled?"無効化":"有効化")+" ")])]}}],null,!0),model:{value:t.state.selectedRuleCommonDetails,callback:function(e){t.$set(t.state,"selectedRuleCommonDetails",e)},expression:"state.selectedRuleCommonDetails"}}),o("v-card-actions",[o("div",{staticClass:"content__btn form__btn btn-actions"},[o("v-btn",{staticClass:"mr-2 mb-2",attrs:{disabled:t.state.selectedRuleCommonDetails.length<1,color:"primary"},on:{click:t.onCopyClick}},[t._v(" コピー "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-copy ")])],1),o("v-btn",{staticClass:"mr-2 mb-2",attrs:{disabled:t.state.selectedRuleCommonDetails.length<1,color:"primary"},on:{click:t.onCutClick}},[t._v(" カット "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-cut ")])],1),o("v-btn",{staticClass:"mr-2 mb-2",attrs:{disabled:!t.state.isCopied&&!t.state.isCut,color:"primary"},on:{click:t.onPasteClick}},[t._v(" ペースト "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-paste ")])],1),o("v-btn",{staticClass:"mr-2 mb-2",attrs:{disabled:t.state.selectedRuleCommonDetails.length<1,color:"error"},on:{click:t.onDeleteClick}},[t._v(" 削除 "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-delete ")])],1)],1)])],1),o("div",{staticClass:"content__btn form__btn mt-10"},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("confirm-dialog",{attrs:{show:t.dialog.enableRule.show,title:t.dialog.enableRule.title,agree:t.dialog.enableRule.agree,content:t.dialog.enableRule.content,width:420},on:{confirm:t.enabledRuleDetail,close:function(e){t.dialog.enableRule.show=!1}}}),o("confirm-dialog",{attrs:{show:t.dialog.deleteRule.show,title:t.dialog.deleteRule.title,agree:t.dialog.deleteRule.agree,content:t.dialog.deleteRule.content,width:420},on:{confirm:t.deleteRule,close:function(e){t.dialog.deleteRule.show=!1}}}),o("error-dialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}}),o("input-level",{attrs:{show:t.dialog.inputLevel.show,title:t.dialog.inputLevel.title,close:t.dialog.inputLevel.close,content:t.dialog.inputLevel.content,data:t.dialog.inputLevel.data,create:!1},on:{submit:t.saveRuleLevel,close:function(e){t.dialog.inputLevel.show=!1}}})],1)},rh=[],ih=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-dialog",{attrs:{persistent:"",width:"500px"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("レベル - "+t._s(t.create?"追加":"変更"))]),o("v-card-text",[o("v-container",[o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-select",{attrs:{items:t.levelList,"item-text":"name","item-value":"id",label:"レベル","hide-details":"auto",outlined:"",rules:t.rules.level,"background-color":"white"},model:{value:t.formContent.level,callback:function(e){t.$set(t.formContent,"level",e)},expression:"formContent.level"}})],1)],1)],1)])],1)],1),o("v-card-actions",[o("v-row",[o("v-col",{attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1)],1),o("confirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,content:t.dialog.confirm.content,width:420},on:{confirm:t.submit,close:function(e){t.dialog.confirm.show=!1}}})],1)},sh=[],lh=function(){return{level:[function(t){return t&&-1!==t||"レベルは必須項目です。"}]}},ch=Object(r["b"])({components:{confirmDialog:Yd},props:{show:{type:Boolean,required:!0,default:!1},create:{type:Boolean,required:!0,default:!1},data:{type:Object,required:!1,default:function(){return{}}}},setup:function(t){var e=Object(r["n"])({valid:!1,show:t.show}),o=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"選択しているレベルを保存します、続行しますか?"}}),n=Object(r["n"])({level:1});return{formContent:n,state:e,dialog:o,form:Object(r["p"])(),rules:lh(),levelList:Cl}},methods:{validate:function(){var t;this.dialog.confirm.show=!0,null===(t=this.form)||void 0===t||t.validate(),this.state.valid&&this.$emit("confirm")},submit:function(){this.dialog.confirm.show=!1,this.$emit("submit",this.formContent.level)}}}),uh=ch,dh=Object(k["a"])(uh,ih,sh,!1,null,null,null),fh=dh.exports;uc()(dh,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VContainer:eu["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VSelect:Tf["a"],VToolbar:Ku["a"]});var mh=Object(r["b"])({components:{confirmDialog:Yd,errorDialog:Ou,inputLevel:fh},setup:function(){var t=ic(),e=Object(r["n"])({selectedRuleSet:[],selectedRuleCommonDetails:[],ruleDetailActionItem:null,isCopied:!1,isCut:!1,dialogCommonRule:!1}),o=[{text:"名前",value:"name",sortable:!1},{text:"",value:"actions",sortable:!1,align:""}],n=[{text:"ルールタイトル",value:"name"},{text:"優先順位",value:"priority"},{text:"",value:"actions",sortable:!1,align:""}],a=Object(r["n"])({enableRule:{show:!1,title:"確認",close:"OK",content:"",agree:"OK"},deleteRule:{show:!1,title:"確認",close:"OK",content:"選択したルールの詳細が削除されます、続行しますか?",agree:"OK",data:{}},error:{show:!1,title:"エラーが発生しました。",content:"そこで何かがうまくいかなかった.",close:"OK"},inputLevel:{show:!1,title:"",content:"",close:"OK",data:{}}}),i=Object(r["a"])((function(){return e.selectedRuleSet.map((function(t){return t.id}))})),s=t.getters["shiftRule/selectRuleCommonID"],l=Object(r["p"])([]),c=function(e){t.dispatch("shiftRule/getShiftCommonRuleDetails",{ruleSetTypeIds:e,ruleCommonID:s,callback:{onSuccess:function(t){l.value=t},onError:function(t){a.error.show=!0}}})},u=function(e,o){t.dispatch("shiftRule/enableCommonShiftRule",{ruleCommonDetailID:e,enabled:o,callback:{onSuccess:function(t){c(i.value)},onError:function(t){a.error.show=!0}}})},d=function(e,o){t.dispatch("shiftRule/changeLevelCommonShiftRule",{ruleCommonDetailID:e,priority:o,callback:{onSuccess:function(t){c(i.value)},onError:function(t){a.error.show=!0}}})},f=function(e){t.dispatch("shiftRule/deleteShiftCommonRuleDetails",{shiftCommonRuleDetails:e,callback:{onSuccess:function(t){c(i.value)},onError:function(t){a.error.show=!0}}})},m=function(){f(e.selectedRuleCommonDetails),a.deleteRule.show=!1,e.isCopied=!1,e.isCut=!1,e.selectedRuleCommonDetails=[]},g=function(){e.selectedRuleCommonDetails=[],e.isCopied=!1,e.isCut=!1,c(i.value)},h=function(){e.isCopied=!1,e.isCut=!1},v=function(){e.isCopied=!0,e.isCut=!1},p=function(){e.isCut=!0,e.isCopied=!1},b=function(){},y=function(t){a.deleteRule.data=t,a.deleteRule.show=!0},S=function(t){pk.push(t.path)},D=function(o){t.commit("shiftRule/setRuleCommonDetailID",{value:o.ruleCommonDetailID}),pk.push(e.selectedRuleSet[0].path)},C=function(t){a.inputLevel.show=!0,e.ruleDetailActionItem=t},w=function(t){a.inputLevel.show=!1,a.inputLevel.data={},e.ruleDetailActionItem&&d(e.ruleDetailActionItem.ruleCommonDetailID,t)},k=function(t){a.enableRule.content=t.configuration.enabled?"選択した詳細ルールが無効になります、続行しますか?":"選択した詳細ルールが有効になります、続行しますか?",e.ruleDetailActionItem=t,a.enableRule.show=!0},I=function(){a.enableRule.show=!1,e.ruleDetailActionItem&&u(e.ruleDetailActionItem.ruleCommonDetailID,!e.ruleDetailActionItem.configuration.enabled)};return{ruleSetHeader:o,ruleSetRows:Rl,ruleListHeader:n,ruleListRows:l,state:e,dialog:a,onSelectRuleSet:g,onSelectRuleDetail:h,onCopyClick:v,onCutClick:p,onDeleteClick:y,onPasteClick:b,addRule:S,deleteRule:m,changeRuleLevel:C,editRule:D,enableRule:k,enabledRuleDetail:I,saveRuleLevel:w,getLevelName:Fl}}}),gh=mh,hh=(o("c008"),Object(k["a"])(gh,ah,rh,!1,null,"3e9d82ee",null)),vh=hh.exports;uc()(hh,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCol:xc["a"],VDataTable:zu["a"],VDivider:Tc["a"],VIcon:gc["a"],VRow:Oc["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var ph=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"yellow lighten-5"},[o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("v-row",[o("v-col",{staticClass:"mt-4",attrs:{cols:"12",md:"12"}},[o("v-select",{attrs:{items:t.patternOptions,label:"パターン選択","hide-details":"auto",outlined:"","background-color":"white"},model:{value:t.state.selectedPattern,callback:function(e){t.$set(t.state,"selectedPattern",e)},expression:"state.selectedPattern"}})],1)],1),t.state.selectedPattern?o("v-card",{staticClass:"mt-5"},[o("v-card-text",[o("v-row",[o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.staffs,expression:"showFormContent.staffs"}],attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.staffs,rules:t.showFormContent.staffs?t.rules.shifts:[],"item-text":"staffName","item-value":"staffID",label:"スタッフ(複数可)",outlined:"","background-color":"white",multiple:""},model:{value:t.formContent.staffs,callback:function(e){t.$set(t.formContent,"staffs",e)},expression:"formContent.staffs"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.firstShifts,expression:"showFormContent.firstShifts"}],attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.shifts,rules:t.showFormContent.firstShifts?t.rules.shifts:[],"item-text":"name","item-value":"shiftID",label:"シフト(複数可)",outlined:"","background-color":"white",multiple:""},model:{value:t.formContent.firstShifts,callback:function(e){t.$set(t.formContent,"firstShifts",e)},expression:"formContent.firstShifts"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.secondShifts,expression:"showFormContent.secondShifts"}],attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.shifts,rules:t.showFormContent.secondShifts?t.rules.shifts:[],"item-text":"name","item-value":"shiftID",label:"シフト(複数可)",outlined:"","background-color":"white",multiple:""},model:{value:t.formContent.secondShifts,callback:function(e){t.$set(t.formContent,"secondShifts",e)},expression:"formContent.secondShifts"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.firstShift,expression:"showFormContent.firstShift"}],attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.shifts,rules:t.showFormContent.firstShift?t.rules.shift:[],"item-text":"name","item-value":"shiftID",label:"シフト",outlined:"","background-color":"white"},model:{value:t.formContent.firstShift,callback:function(e){t.$set(t.formContent,"firstShift",e)},expression:"formContent.firstShift"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.secondShift,expression:"showFormContent.secondShift"}],attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.shifts,rules:t.showFormContent.secondShift?t.rules.shift:[],"item-text":"name","item-value":"shiftID",label:"シフト",outlined:"","background-color":"white"},model:{value:t.formContent.secondShift,callback:function(e){t.$set(t.formContent,"secondShift",e)},expression:"formContent.secondShift"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.thirdShift,expression:"showFormContent.thirdShift"}],attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.shifts,rules:t.showFormContent.thirdShift?t.rules.shift:[],"item-text":"name","item-value":"shiftID",label:"シフト",outlined:"","background-color":"white"},model:{value:t.formContent.thirdShift,callback:function(e){t.$set(t.formContent,"thirdShift",e)},expression:"formContent.thirdShift"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.staffAttributeGroups,expression:"showFormContent.staffAttributeGroups"}],attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.state.staffAttributeGroups,rules:t.showFormContent.staffAttributeGroups?t.rules.staffAttributeGroups:[],"hide-details":"auto","item-text":"name","item-value":"staffAttributeGroupID",label:"スタッフ属性グループ",outlined:"","background-color":"white"},model:{value:t.formContent.staffAttributeGroups,callback:function(e){t.$set(t.formContent,"staffAttributeGroups",e)},expression:"formContent.staffAttributeGroups"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.firstStaffAttributeGroupItems,expression:"showFormContent.firstStaffAttributeGroupItems"}],attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.showFormContent.staffAttributeGroups?t.state.staffAttributeGroupList:t.state.staffAttributeGroupItems,rules:t.showFormContent.firstStaffAttributeGroupItems?t.rules.staffAttributeGroupItems:[],"hide-details":"auto","item-text":"name","item-value":"staffAttributeGroupItemID",label:"スタッフ属性",outlined:"","background-color":"white"},model:{value:t.formContent.firstStaffAttributeGroupItems,callback:function(e){t.$set(t.formContent,"firstStaffAttributeGroupItems",e)},expression:"formContent.firstStaffAttributeGroupItems"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.secondStaffAttributeGroupItems,expression:"showFormContent.secondStaffAttributeGroupItems"}],attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.state.staffAttributeGroupList,rules:t.showFormContent.secondStaffAttributeGroupItems?t.rules.staffAttributeGroupItems:[],"hide-details":"auto","item-text":"name","item-value":"staffAttributeGroupItemID",label:"スタッフ属性",outlined:"","background-color":"white"},model:{value:t.formContent.secondStaffAttributeGroupItems,callback:function(e){t.$set(t.formContent,"secondStaffAttributeGroupItems",e)},expression:"formContent.secondStaffAttributeGroupItems"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.dayOption,expression:"showFormContent.dayOption"}],attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.dayOptions,rules:t.showFormContent.dayOption?t.rules.dayOption:[],outlined:"","item-text":"text","item-value":"value",label:"頻度","background-color":"white"},model:{value:t.formContent.dayOption,callback:function(e){t.$set(t.formContent,"dayOption",e)},expression:"formContent.dayOption"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.numberOfPeople,expression:"showFormContent.numberOfPeople"}],attrs:{cols:"12",md:"3"}},[o("v-text-field",{attrs:{rules:t.showFormContent.numberOfPeople?t.rules.numberOfPeople:[],type:"number",label:"人数",min:1,outlined:"",required:"","background-color":"white"},model:{value:t.formContent.numberOfPeople,callback:function(e){t.$set(t.formContent,"numberOfPeople",e)},expression:"formContent.numberOfPeople"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.firstNumberOfWorkTimes,expression:"showFormContent.firstNumberOfWorkTimes"}],attrs:{cols:"12",md:"3"}},[o("v-text-field",{attrs:{rules:t.showFormContent.firstNumberOfWorkTimes?t.rules.numberOfWorkTimes:[],type:"number",label:"勤務回数",min:1,outlined:"",required:"","background-color":"white"},model:{value:t.formContent.firstNumberOfWorkTimes,callback:function(e){t.$set(t.formContent,"firstNumberOfWorkTimes",e)},expression:"formContent.firstNumberOfWorkTimes"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.secondNumberOfWorkTimes,expression:"showFormContent.secondNumberOfWorkTimes"}],attrs:{cols:"12",md:"3"}},[o("v-text-field",{attrs:{rules:t.showFormContent.secondNumberOfWorkTimes?t.rules.numberOfWorkTimes:[],type:"number",label:"勤務回数",min:1,outlined:"",required:"","background-color":"white"},model:{value:t.formContent.secondNumberOfWorkTimes,callback:function(e){t.$set(t.formContent,"secondNumberOfWorkTimes",e)},expression:"formContent.secondNumberOfWorkTimes"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.numberOfContinueWorkTimes,expression:"showFormContent.numberOfContinueWorkTimes"}],attrs:{cols:"12",md:"3"}},[o("v-text-field",{attrs:{rules:t.showFormContent.numberOfContinueWorkTimes?t.rules.numberOfContinueWorkTimes:[],min:1,type:"number",label:"連続勤務回数",outlined:"",required:"","background-color":"white"},model:{value:t.formContent.numberOfContinueWorkTimes,callback:function(e){t.$set(t.formContent,"numberOfContinueWorkTimes",e)},expression:"formContent.numberOfContinueWorkTimes"}})],1),o("v-col",{directives:[{name:"show",rawName:"v-show",value:t.showFormContent.numberOfDays,expression:"showFormContent.numberOfDays"}],attrs:{cols:"12",md:"3"}},[o("v-text-field",{attrs:{rules:t.showFormContent.numberOfDays?t.rules.numberOfDays:[],min:1,type:"number",label:"日数",outlined:"",required:"","background-color":"white"},model:{value:t.formContent.numberOfDays,callback:function(e){t.$set(t.formContent,"numberOfDays",e)},expression:"formContent.numberOfDays"}})],1)],1)],1)],1):t._e(),o("div",{staticClass:"center-h mt-5"},[o("v-btn",{attrs:{disabled:!t.state.selectedPattern,dark:"",color:"primary"},on:{click:t.addSimpleRule}},[t._v("追加")])],1)],1),o("v-data-table",{staticClass:"content__table mt-6",attrs:{headers:t.simpleRulesHeaders,items:t.simpleRuleRows,"item-key":"id","items-per-page":10},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("かんたんルールのリスト")])],1)]},proxy:!0},{key:"item.content",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.content.toString())+" ")]}},{key:"item.actions",fn:function(e){var n=e.item;return[o("v-btn",{staticClass:"ma-2",attrs:{color:"error",dark:""},on:{click:function(e){return t.deleteSimpleRule(n)}}},[t._v(" 消去 ")])]}}],null,!0)}),o("div",{staticClass:"content__btn form__btn mt-10"},[o("v-btn",{staticClass:"mr-2",attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1),o("v-btn",{staticClass:"mr-2",attrs:{disabled:t.simpleRuleRows.length<=0,dark:"",color:"primary"},on:{click:t.onSave}},[t._v("設定")])],1),o("confirm-dialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{confirm:t.saveSimpleRules,close:function(e){t.dialog.confirm.show=!1}}}),o("error-dialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}}),o("snackbar",{attrs:{show:t.snackbar.show,color:t.snackbar.color,message:t.snackbar.message},on:{close:function(e){t.snackbar.show=!1}}})],1)},bh=[],yh=[{text:"[シフト]は[頻度][人数]名以上を確保",value:1},{text:"[シフト]の翌日は[シフト]を割り当てる",value:2},{text:"[シフト]の翌日は[シフト]を割り当てない",value:3},{text:"[シフト]の前日は[シフト]を割り当てる",value:4},{text:"[シフト]の前日は[シフト]を割り当てない",value:5},{text:"[スタッフ]さんの[シフト]は[勤務回数]まで",value:6},{text:"[スタッフ]さんの[シフト]は[勤務回数]から[勤務回数]まで",value:7},{text:"一人当たりの[シフト]は[勤務回数]から[勤務回数]まで",value:8},{text:"[シフト]と[シフト]は[日数]間隔をあける",value:9},{text:"[シフト]では[スタッフ属性]を[頻度][人数]名以上確保する。",value:10},{text:"[シフト]では[スタッフ属性]が勤務するときは[スタッフ属性]が勤務するようにする。",value:11},{text:"[シフト]が[連続勤務回数]以上連続しないようにする。",value:12},{text:"[シフト]の翌日に[シフト]を割り当てた場合、その翌日に[シフト]を割り当てる",value:13}],Sh=[{text:"毎日",value:"Every"},{text:"毎週日曜",value:"Sunday"},{text:"毎週月曜",value:"Monday"},{text:"毎週火曜",value:"Tuesday"},{text:"毎週水曜",value:"Wednesday"},{text:"毎週木曜",value:"Thursday"},{text:"毎週金曜",value:"Friday"},{text:"毎週土曜",value:"Saturday"}],Dh=[{text:"Attribute Key A",value:"Attribute Key A"},{text:"Attribute Key B",value:"Attribute Key B"},{text:"Attribute Key C",value:"Attribute Key C"}],Ch=[{text:"Attribute Value A",value:"Attribute Value A"},{text:"Attribute Value B",value:"Attribute Value B"},{text:"Attribute Value C",value:"Attribute Value C"}];function wh(t){var e;return null===(e=Sh.find((function(e){return e.value==t})))||void 0===e?void 0:e.text}function kh(t){var e;return null===(e=yh.find((function(e){return e.value==t})))||void 0===e?void 0:e.text}var Ih=Object(r["b"])({components:{confirmDialog:Yd,errorDialog:Ou,snackbar:tm},setup:function(){var t=ic(),e=Object(r["p"])(),o=Object(r["n"])({valid:!1,selectedPattern:0,staffAttributeGroupList:[],staffAttributeGroupItems:ul(),staffAttributeGroups:cl()}),n=[{text:"No.",value:"no"},{text:"パターン",value:"pattern"},{text:"入力内容",value:"inputContent"},{text:"",value:"actions",sortable:!1,align:""}],a=Object(r["p"])([]),i=Object(r["n"])({firstShifts:[],secondShifts:[],firstShift:"",secondShift:"",thirdShift:"",dayOption:"",staffs:[],numberOfDays:0,numberOfPeople:0,firstNumberOfWorkTimes:0,secondNumberOfWorkTimes:0,numberOfContinueWorkTimes:0,staffAttributeGroups:"",firstStaffAttributeGroupItems:"",secondStaffAttributeGroupItems:""}),s=Object(r["n"])({firstShifts:!1,secondShifts:!1,firstShift:!1,secondShift:!1,thirdShift:!1,staffs:!1,dayOption:!1,numberOfDays:!1,numberOfPeople:!1,firstNumberOfWorkTimes:!1,secondNumberOfWorkTimes:!1,numberOfContinueWorkTimes:!1,staffAttributeGroups:!1,firstStaffAttributeGroupItems:!1,secondStaffAttributeGroupItems:!1}),l=function(){s.firstShifts=!1,s.secondShifts=!1,s.firstShift=!1,s.secondShift=!1,s.thirdShift=!1,s.staffs=!1,s.dayOption=!1,s.numberOfDays=!1,s.numberOfPeople=!1,s.firstNumberOfWorkTimes=!1,s.secondNumberOfWorkTimes=!1,s.numberOfContinueWorkTimes=!1,s.staffAttributeGroups=!1,s.firstStaffAttributeGroupItems=!1,s.secondStaffAttributeGroupItems=!1},c=function(){i.firstShifts=[],i.secondShifts=[],i.firstShift="",i.secondShift="",i.thirdShift="",i.dayOption="",i.staffs=[],i.numberOfDays=0,i.numberOfPeople=0,i.firstNumberOfWorkTimes=0,i.secondNumberOfWorkTimes=0,i.numberOfContinueWorkTimes=0,i.staffAttributeGroups="",i.firstStaffAttributeGroupItems="",i.secondStaffAttributeGroupItems=""},u=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"かんたんルールリスト内のルールが保存されます、続行しますか?",agree:"OK"},error:{show:!1,title:"エラーが発生しました。",content:"かんたんルールのリストがありません",close:"OK"}}),d=Object(r["n"])({show:!1,message:"",color:""}),f=function(t){d.color="success",d.message=t,d.show=!0},m=function(){var t;if(null===(t=e.value)||void 0===t||t.validate(),o.valid){var n,r={no:a.value.length+1,pattern:kh(o.selectedPattern),inputContent:p(),formContent:i};a.value.push(r),null===(n=e.value)||void 0===n||n.reset(),f("かんたんルールリストに追加されました")}},g=function(){a.value.length<=0?u.error.show=!0:u.confirm.show=!0},h=function(){u.confirm.show=!1,a.value=[],f("かんたんルールリストが正常に保存されました")},v=function(t){var e=a.value.findIndex((function(e){return e.no===t.no}));a.value.splice(e,1),f("ルールを削除しました")},p=function(){var t=[];if(s.staffs&&i.staffs.length>0&&i.staffs.filter((function(e,o){var n=gl(e);n&&(0==o?t.push("[スタッフ]:"+n):t.push(n))})),s.firstShifts&&i.firstShifts.length>0&&i.firstShifts.filter((function(e,o){var n=Ns(e);n&&(0==o?t.push("[シフト]:"+n):t.push(n))})),s.secondShifts&&i.secondShifts.length>0&&i.secondShifts.filter((function(e,o){var n=Ns(e);n&&(0==o?t.push("[シフト]:"+n):t.push(n))})),s.firstShift&&i.firstShift){var e=Ns(i.firstShift);e&&t.push("[シフト]:"+e)}if(s.secondShift&&i.secondShift){var o=Ns(i.secondShift);o&&t.push("[シフト]:"+o)}if(s.thirdShift&&i.thirdShift){var n=Ns(i.thirdShift);n&&t.push("[シフト]:"+n)}if(s.staffAttributeGroups&&i.staffAttributeGroups){var a=hl(i.staffAttributeGroups);a&&t.push("[スタッフ属性グループ]:"+a)}if(s.firstStaffAttributeGroupItems&&i.firstStaffAttributeGroupItems){var r=vl(i.firstStaffAttributeGroupItems);r&&t.push("[スタッフ属性]:"+r)}if(s.secondStaffAttributeGroupItems&&i.secondStaffAttributeGroupItems){var l=vl(i.secondStaffAttributeGroupItems);l&&t.push("[スタッフ属性]:"+l)}if(s.dayOption&&i.dayOption){var c=wh(i.dayOption);c&&t.push("[頻度]:"+c)}return s.numberOfPeople&&i.numberOfPeople&&t.push("[人数]:"+i.numberOfPeople),s.numberOfDays&&i.numberOfDays&&t.push("[日数]:"+i.numberOfDays),s.firstNumberOfWorkTimes&&i.firstNumberOfWorkTimes&&t.push("[勤務回数]:"+i.firstNumberOfWorkTimes),s.secondNumberOfWorkTimes&&i.secondNumberOfWorkTimes&&t.push("[勤務回数]:"+i.secondNumberOfWorkTimes),s.numberOfContinueWorkTimes&&i.numberOfContinueWorkTimes&&t.push("[連続勤務回数]:"+i.numberOfContinueWorkTimes),t};return Object(r["s"])((function(){return o.selectedPattern}),(function(t){var o;switch(null===(o=e.value)||void 0===o||o.resetValidation(),l(),c(),t){case 1:s.firstShifts=!0,s.dayOption=!0,s.numberOfPeople=!0;break;case 2:s.firstShift=!0,s.secondShift=!0;break;case 3:s.firstShift=!0,s.secondShift=!0;break;case 4:s.firstShift=!0,s.secondShift=!0;break;case 5:s.firstShift=!0,s.secondShift=!0;break;case 6:s.staffs=!0,s.firstShifts=!0,s.firstNumberOfWorkTimes=!0;break;case 7:s.staffs=!0,s.firstShifts=!0,s.firstNumberOfWorkTimes=!0,s.secondNumberOfWorkTimes=!0;break;case 8:s.firstShifts=!0,s.firstNumberOfWorkTimes=!0,s.secondNumberOfWorkTimes=!0;break;case 9:s.firstShifts=!0,s.secondShifts=!0,s.numberOfDays=!0;break;case 10:s.firstShifts=!0,s.firstStaffAttributeGroupItems=!0,s.dayOption=!0,s.numberOfDays=!0;break;case 11:s.firstShifts=!0,s.staffAttributeGroups=!0,s.firstStaffAttributeGroupItems=!0,s.secondStaffAttributeGroupItems=!0;break;case 12:s.firstShift=!0,s.numberOfContinueWorkTimes=!0;break;case 13:s.firstShift=!0,s.secondShift=!0,s.thirdShift=!0;break;default:}})),Object(r["s"])((function(){return i.staffAttributeGroups}),(function(t){o.staffAttributeGroupList=o.staffAttributeGroupItems.filter((function(e){return""===e.staffAttributeGroupID||e.staffAttributeGroupID===t}))})),{store:t,form:e,state:o,simpleRulesHeaders:n,simpleRuleRows:a,patternOptions:yh,dayOptions:Sh,staffAttrKeys:Dh,staffAttrValues:Ch,staffs:zs,shifts:$s,dialog:u,snackbar:d,formContent:i,showFormContent:s,addSimpleRule:m,deleteSimpleRule:v,saveSimpleRules:h,onSave:g,rules:Zg()}}}),xh=Ih,Th=(o("6403"),Object(k["a"])(xh,ph,bh,!1,null,"543a0eee",null)),Ah=Th.exports;uc()(Th,{VBtn:mc["a"],VCard:Ic["a"],VCardText:uu["b"],VCol:xc["a"],VDataTable:zu["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var _h=Object(r["b"])({components:{commonAdvanceTab:vh,easySettingTab:Ah},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e})}}),Oh=_h,Rh=o("71a3"),Fh=o("c671"),Vh=o("fe57"),jh=Object(k["a"])(Oh,oh,nh,!1,null,null,null),Eh=jh.exports;uc()(jh,{VTab:Rh["a"],VTabItem:Fh["a"],VTabs:Vh["a"]});var Gh=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("いつものルール作成")]),t.homeState.isLoading||t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-col",[o("v-card",[o("v-data-table",{staticClass:"content__table mt-6",attrs:{headers:t.headers,items:t.state.rows,"item-key":"id","items-per-page":10,height:"400","hide-default-footer":"","disable-pagination":""},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("設定済みルール一覧")])],1)]},proxy:!0},{key:"item.no",fn:function(e){var n=e.index;return[o("td",[t._v(t._s(n+1))])]}},{key:"item.content",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.content.toString())+" ")]}},{key:"item.actions",fn:function(e){var n=e.item;return[o("div",{staticClass:"content-nowrap"},[o("edit-button",{on:{edit:function(e){return t.editClick(n)}}}),o("delete-button",{on:{delete:function(e){return t.deleteClick(n)}}})],1)]}}],null,!0)}),o("div",{staticClass:"content__btn form__btn pb-3"},[o("v-btn",{staticClass:"mb-2 mr-2",attrs:{color:"primary"},on:{click:t.addClick}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-plus-box-outline ")]),t._v("追加")],1),o("v-btn",{staticClass:"mb-2 mr-2",attrs:{color:"primary"},on:{click:function(e){t.dialog.copyRule.show=!0}}},[t._v("いつものルールからコピー")]),o("v-btn",{staticClass:"mb-2 mr-2",attrs:{color:"primary"},on:{click:function(e){t.dialog.copyRuleCommon.show=!0}}},[t._v("作成したルールをシフトルールへコピー")])],1)],1)],1),o("v-col",{attrs:{cols:"1"}},[o("div",{staticClass:"content__btn form__btn mt-10"},[o("v-btn",{staticClass:"mr-2",attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)])],1)]),o("v-dialog",{attrs:{width:"500"},model:{value:t.dialog.copyRule.show,callback:function(e){t.$set(t.dialog.copyRule,"show",e)},expression:"dialog.copyRule.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("コピーするいつものルールを選択")]),o("v-card-text",[o("v-form",{ref:"copyRuleForm",model:{value:t.state2.isCopyRuleValidate,callback:function(e){t.$set(t.state2,"isCopyRuleValidate",e)},expression:"state2.isCopyRuleValidate"}},[o("v-col",[o("v-select",{attrs:{items:t.state.ruleCommons,rules:t.rules.copyToCommon,"item-text":"name","item-value":"ruleCommonID",label:"いつものルール","hide-details":"auto",outlined:"","background-color":"white",dense:""},model:{value:t.formContent.ruleCommonID,callback:function(e){t.$set(t.formContent,"ruleCommonID",e)},expression:"formContent.ruleCommonID"}})],1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.copyRule.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.commonValidate}},[t._v("選択したルールをコピー"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("v-dialog",{attrs:{width:"500"},model:{value:t.dialog.copyRuleCommon.show,callback:function(e){t.$set(t.dialog.copyRuleCommon,"show",e)},expression:"dialog.copyRuleCommon.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("設定済みルール一覧の内容をシフトルールへコピーします")]),o("v-card-text",[o("v-form",{ref:"copyRuleCommonForm",model:{value:t.state2.isCopyRuleCommonValidate,callback:function(e){t.$set(t.state2,"isCopyRuleCommonValidate",e)},expression:"state2.isCopyRuleCommonValidate"}},[o("v-col",[o("v-select",{attrs:{items:t.state.ruleShifts,"item-value":"ruleShiftTableID","item-text":function(e){return t.dateToString(e.startDate)+" ~ "+t.dateToString(e.endDate)},rules:t.rules.copyToShift,label:"シフトルール","hide-details":"auto",outlined:"","background-color":"white",dense:""},model:{value:t.formContent.ruleShiftTableID,callback:function(e){t.$set(t.formContent,"ruleShiftTableID",e)},expression:"formContent.ruleShiftTableID"}})],1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.copyRuleCommon.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.shiftValidate}},[t._v("コピーして追加"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("Easy-setting-create",{attrs:{create:!0,shift:!1,show:t.dialog.createEasySetting.show},on:{close:function(e){t.dialog.createEasySetting.show=!1}}}),o("Easy-setting",{attrs:{create:!1,shift:!1,show:t.dialog.editEasySetting.show},on:{close:function(e){t.dialog.editEasySetting.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmCommon.show,title:t.dialog.confirmCommon.title,agree:t.dialog.confirmCommon.agree,content:t.dialog.confirmCommon.content,width:420},on:{confirm:t.copyToCommon,close:function(e){t.dialog.confirmCommon.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmShift.show,title:t.dialog.confirmShift.title,agree:t.dialog.confirmShift.agree,content:t.dialog.confirmShift.content,width:420},on:{confirm:t.copyToShift,close:function(e){t.dialog.confirmShift.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.deleteSettings,close:function(e){t.dialog.delete.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},$h=[],Nh=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-dialog",{attrs:{width:"900"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("かんたんルール設定")]),o("v-col",[o("v-select",{attrs:{items:t.homeState.easySettingPatternDefine,"item-text":"name","item-value":"pattern",label:"パターン選択","hide-details":"auto",outlined:"","background-color":"white",disabled:!t.create},model:{value:t.editState.selectedPattern,callback:function(e){t.$set(t.editState,"selectedPattern",e)},expression:"editState.selectedPattern"}})],1),o("v-card-text",[o("v-form",{ref:"form",model:{value:t.state.isValidate,callback:function(e){t.$set(t.state,"isValidate",e)},expression:"state.isValidate"}},[o("v-row",t._l(t.editState.items,(function(t){return o("v-col",{key:t.index,attrs:{cols:"12",lg:"3"}},[o("Input-items",{key:t.index,attrs:{index:t.index,"value-type":t.type}})],1)})),1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:"",outlined:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmShift.show,title:t.dialog.confirmShift.title,content:t.dialog.confirmShift.content,width:420},on:{confirm:t.updateShift,close:function(e){t.dialog.confirmShift.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmCommon.show,title:t.dialog.confirmCommon.title,content:t.dialog.confirmCommon.content,width:420},on:{confirm:t.updateCommon,close:function(e){t.dialog.confirmCommon.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},Lh=[],Mh=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{"d-inline":""}},[t.isDayCount?o("v-text-field",{attrs:{type:"number",label:"日数",min:1,max:99,rules:t.rules.numberOfDays,"hide-details":"auto",outlined:"",required:"","background-color":"white"},model:{value:t.state.value,callback:function(e){t.$set(t.state,"value",e)},expression:"state.value"}}):t._e(),t.isFrequency?o("v-select",{attrs:{items:t.dayOptions,rules:t.rules.dayOption,"hide-details":"auto",outlined:"","item-text":"text","item-value":"value",label:"頻度","background-color":"white"},model:{value:t.state.value[0],callback:function(e){t.$set(t.state.value,0,e)},expression:"state.value[0]"}}):t._e(),t.isShiftcount?o("v-text-field",{attrs:{type:"number",label:"勤務回数",min:0,max:9999,rules:t.rules.numberOfWorkTimes,"hide-details":"auto",outlined:"",required:"","background-color":"white"},model:{value:t.state.value,callback:function(e){t.$set(t.state,"value",e)},expression:"state.value"}}):t._e(),t.isShiftid?o("v-select",{attrs:{items:t.shift,rules:t.rules.shifts,"hide-details":"auto","item-text":"name","item-value":"shiftID",label:"シフト",outlined:"","background-color":"white",multiple:""},model:{value:t.state.value,callback:function(e){t.$set(t.state,"value",e)},expression:"state.value"}}):t._e(),t.isStaffattributeid?o("v-select",{attrs:{items:t.staffAttribute,rules:t.rules.staffAttributeGroupItems,"hide-details":"auto","item-text":"name","item-value":"staffAttributeGroupCommonItemID",label:"スタッフ属性",outlined:"","background-color":"white",multiple:""},model:{value:t.state.value,callback:function(e){t.$set(t.state,"value",e)},expression:"state.value"}}):t._e(),t.isStaffcount?o("v-text-field",{attrs:{type:"number",label:"人数",min:1,max:99,rules:t.rules.numberOfPeople,"hide-details":"auto",outlined:"",required:"","background-color":"white"},model:{value:t.state.value,callback:function(e){t.$set(t.state,"value",e)},expression:"state.value"}}):t._e(),t.isStaffid?o("v-select",{attrs:{items:t.staff,rules:t.rules.staffs,"item-text":"staffName","item-value":"staffID",label:"スタッフ",outlined:"","background-color":"white",multiple:""},model:{value:t.state.value,callback:function(e){t.$set(t.state,"value",e)},expression:"state.value"}}):t._e()],1)},Ph=[],Wh=Object(r["b"])({props:{index:{type:Number,required:!0},valueType:{type:String,required:!0,default:""}},setup:function(t){var e=Object(r["d"])(Kc),o=Object(r["d"])(Qc),n=Object(r["d"])(Uc),a=Object(r["d"])(zc),i=Object(r["a"])((function(){return null===e||void 0===e?void 0:e.items.find((function(e){return e.index===t.index}))})),s=Object(r["a"])((function(){if(o)return o.map((function(t){return{shiftID:t.shiftID.toString(),name:t.name}}))})),l=Object(r["a"])((function(){if(n)return n.map((function(t){return{staffID:t.staffID.toString(),staffName:t.staffName}}))})),c=Object(r["a"])((function(){if(a)return a.map((function(t){return{staffAttributeGroupCommonItemID:t.staffAttributeGroupCommonItemID.toString(),name:t.name}}))})),u=Object(r["a"])((function(){return t.valueType===zo.Daycount})),d=Object(r["a"])((function(){return t.valueType===zo.Frequency})),f=Object(r["a"])((function(){return t.valueType===zo.Shiftcount})),m=Object(r["a"])((function(){return t.valueType===zo.Shiftid})),g=Object(r["a"])((function(){return t.valueType===zo.Staffattributeid})),h=Object(r["a"])((function(){return t.valueType===zo.Staffcount})),v=Object(r["a"])((function(){return t.valueType===zo.Staffid}));return{easySettingState:e,shift:s,staff:l,staffAttribute:c,dayOptions:Sh,state:i,isDayCount:u,isFrequency:d,isShiftcount:f,isShiftid:m,isStaffattributeid:g,isStaffcount:h,isStaffid:v,rules:Zg()}}}),Bh=Wh,Hh=Object(k["a"])(Bh,Mh,Ph,!1,null,null,null),qh=Hh.exports;uc()(Hh,{VSelect:Tf["a"],VTextField:yu["a"]});var Qh=Object(r["b"])({props:{show:{type:Boolean,required:!0,default:!1},create:{type:Boolean,required:!0,default:!1},shift:{type:Boolean,required:!0,default:!1}},components:{ConfirmDialog:Yd,ErrorDialog:Ou,InputItems:qh,ResponseDialog:tm},setup:function(t,e){console.log("Setup.");var o=Object(r["d"])(Bc),n=Object(r["d"])(qc),a=Object(r["d"])(Kc),i=Object(r["d"])(Hc),s=Object(r["a"])((function(){return null===i||void 0===i?void 0:i.rows.find((function(t){return t.detailID===(null===i||void 0===i?void 0:i.detailID)}))})),l=Object(r["p"])(),c=Object(r["n"])({isValidate:!1,shiftFlg:!1,commonFlg:!1}),u=Object(r["n"])({error:{show:!1,title:"",close:"",content:""},confirmShift:{show:!1,close:"OK",content:"保存します、続行しますか?"},confirmCommon:{show:!1,close:"OK",content:"保存します、続行しますか?"},response:{show:!1,message:"",color:""}}),d=qi({fetchPolicy:"no-cache"}),f=d.mutate,m=(d.loading,d.error,d.called,d.onDone),g=d.onError;m((function(t){var a,r;if(console.log("シフトルールのUpdateOnDone"),c.shiftFlg=!1,null!==(a=t.data)&&void 0!==a&&null!==(r=a.updateEasySettingToRuleShiftTable)&&void 0!==r&&r.succeed){var i,s,l,d,f,m,g,h={detailID:null===(i=t.data.updateEasySettingToRuleShiftTable.result)||void 0===i?void 0:i.ruleShiftTableDetailID,concurrencyStamp:null===(s=t.data.updateEasySettingToRuleShiftTable.result)||void 0===s?void 0:s.concurrencyStamp,easySettingConfig:null===(l=t.data.updateEasySettingToRuleShiftTable.result)||void 0===l?void 0:l.easySettingConfig,easySettingPattern:null===(d=t.data.updateEasySettingToRuleShiftTable.result)||void 0===d?void 0:d.easySettingPattern,easySettingName:null===(f=t.data.updateEasySettingToRuleShiftTable.result)||void 0===f?void 0:f.easySettingName,pattern:null===o||void 0===o||null===(m=o.easySettingPatternDefine.find((function(e){var o,n,a;return e.pattern===(null===(o=t.data)||void 0===o||null===(n=o.updateEasySettingToRuleShiftTable)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.easySettingPattern)})))||void 0===m?void 0:m.name},v=null===(g=t.data.updateEasySettingToRuleShiftTable.result)||void 0===g?void 0:g.ruleShiftTableDetailID,p=n.findIndex((function(t){return t.detailID===v}));null===n||void 0===n||n.splice(p,1,h),u.confirmShift.show=!1,u.response.show=!0,u.response.color="success",u.response.message="保存しました",e.emit("close")}else if(t.errors){var b=pt(t.errors);b.code!==M.QueryRecordNotFound&&(u.error.content=b.message,u.error.show=!0)}})),g((function(t){if(c.shiftFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(u.error.content=t.message,u.error.show=!0)}}));var h=Bi({fetchPolicy:"no-cache"}),v=h.mutate,p=(h.loading,h.error,h.called,h.onDone),b=h.onError;p((function(t){var a,r;if(console.log("いつものルールのUpdateOnDone"),c.commonFlg=!1,null!==(a=t.data)&&void 0!==a&&null!==(r=a.updateEasySettingToRuleCommon)&&void 0!==r&&r.succeed){var i,s,l,d,f,m,g,h={detailID:null===(i=t.data.updateEasySettingToRuleCommon.result)||void 0===i?void 0:i.ruleCommonDetailID,concurrencyStamp:null===(s=t.data.updateEasySettingToRuleCommon.result)||void 0===s?void 0:s.concurrencyStamp,easySettingConfig:null===(l=t.data.updateEasySettingToRuleCommon.result)||void 0===l?void 0:l.easySettingConfig,easySettingPattern:null===(d=t.data.updateEasySettingToRuleCommon.result)||void 0===d?void 0:d.easySettingPattern,easySettingName:null===(f=t.data.updateEasySettingToRuleCommon.result)||void 0===f?void 0:f.easySettingName,pattern:null===o||void 0===o||null===(m=o.easySettingPatternDefine.find((function(e){var o,n,a;return e.pattern===(null===(o=t.data)||void 0===o||null===(n=o.updateEasySettingToRuleCommon)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.easySettingPattern)})))||void 0===m?void 0:m.name},v=null===(g=t.data.updateEasySettingToRuleCommon.result)||void 0===g?void 0:g.ruleCommonDetailID,p=n.findIndex((function(t){return t.detailID===v}));null===n||void 0===n||n.splice(p,1,h),u.confirmCommon.show=!1,u.response.show=!0,u.response.color="success",u.response.message="保存しました",e.emit("close")}else if(t.errors){var b=pt(t.errors);b.code!==M.QueryRecordNotFound&&(u.error.content=b.message,u.error.show=!0)}})),b((function(t){if(c.commonFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(u.error.content=t.message,u.error.show=!0)}}));var y=function(){var e;null===(e=l.value)||void 0===e||e.validate(),c.isValidate&&((null===a||void 0===a?void 0:a.selectedPattern)===Ko.Shiftcountrange&&Number(a.items[2].value)>Number(a.items[3].value)||(null===a||void 0===a?void 0:a.selectedPattern)===Ko.Personshiftcountrange&&Number(a.items[1].value)>Number(a.items[2].value)?(u.error.content="勤務回数の大小関係に誤りがあります。正しく入力してください。",u.error.show=!0):t.shift?(console.log("シフトルール",t.shift),u.confirmShift.show=!0):(console.log("いつものルール",t.shift),u.confirmCommon.show=!0))},S=function(){if(console.log("シフトルールのUpdate"),console.log(a),console.log(s),!c.shiftFlg){c.shiftFlg=!0;try{if(a){var t,e={detailID:null===(t=s.value)||void 0===t?void 0:t.detailID,concurrencyStamp:s.value.concurrencyStamp,configs:a.items.map((function(t){return{index:t.index,valueType:t.type,values:t.value}}))};f({model:e})}}catch(o){c.shiftFlg=!1,u.error.content=Hu,u.error.show=!0}}},D=function(){if(console.log("いつものルールのUpdate"),!c.commonFlg){c.commonFlg=!0;try{if(a){var t,e={detailID:null===(t=s.value)||void 0===t?void 0:t.detailID,concurrencyStamp:s.value.concurrencyStamp,configs:a.items.map((function(t){return{index:t.index,valueType:t.type,values:t.value}}))};v({model:e})}}catch(o){c.commonFlg=!1,u.error.content=Hu,u.error.show=!0}}};return{homeState:o,editState:a,ruleDetail:s,form:l,state:c,dialog:u,validate:y,updateShift:S,updateCommon:D}}}),Uh=Qh,zh=Object(k["a"])(Uh,Nh,Lh,!1,null,null,null),Kh=zh.exports;uc()(zh,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VSelect:Tf["a"],VToolbar:Ku["a"]});var Yh=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-dialog",{attrs:{width:"900"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("かんたんルール設定")]),o("v-form",{ref:"form",model:{value:t.state.isValidate,callback:function(e){t.$set(t.state,"isValidate",e)},expression:"state.isValidate"}},[o("v-col",[o("v-select",{attrs:{items:t.homeState.easySettingPatternDefine,rules:t.rules.pattern,"item-text":"name","item-value":"pattern",label:"パターン選択","hide-details":"auto",outlined:"","background-color":"white"},model:{value:t.createState.selectedPattern,callback:function(e){t.$set(t.createState,"selectedPattern",e)},expression:"createState.selectedPattern"}})],1),o("v-card-text",[o("v-row",t._l(t.createState.items,(function(t){return o("v-col",{key:t.index,attrs:{cols:"12",lg:"3"}},[o("Input-items",{key:t.index,attrs:{index:t.index,"value-type":t.type}})],1)})),1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:"",outlined:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmShift.show,title:t.dialog.confirmShift.title,content:t.dialog.confirmShift.content,width:420},on:{confirm:t.insertShift,close:function(e){t.dialog.confirmShift.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmCommon.show,title:t.dialog.confirmCommon.title,content:t.dialog.confirmCommon.content,width:420},on:{confirm:t.insertCommon,close:function(e){t.dialog.confirmCommon.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},Zh=[],Jh=Object(r["b"])({props:{show:{type:Boolean,required:!0,default:!1},create:{type:Boolean,required:!0,default:!1},shift:{type:Boolean,required:!0,default:!1}},components:{ConfirmDialog:Yd,ErrorDialog:Ou,InputItems:qh,ResponseDialog:tm},setup:function(t,e){console.log("Setup.");var o=ic(),n=o.getters["shiftTable/selectShift"],a=o.getters["shiftRule/selectRuleCommonID"],i=Object(r["d"])(Bc),s=Object(r["d"])(qc),l=Object(r["n"])({selectedPattern:Ko.All,items:[]});Object(r["m"])(Kc,l),Object(r["s"])((function(){return l.selectedPattern}),(function(t){var e,o=null===i||void 0===i||null===(e=i.easySettingPatternDefine.find((function(t){return t.pattern===l.selectedPattern})))||void 0===e?void 0:e.inputItems;l.items.splice(0,l.items.length),console.log("setting",o),o&&(console.log("setting is defined."),o.forEach((function(t){console.log(t),l.items.push({index:t.index,type:t.valueType,value:[]})})))}));var c=Object(r["p"])(),u=Object(r["n"])({isValidate:!1,shiftFlg:!1,commonFlg:!1}),d=Object(r["n"])({error:{show:!1,title:"",close:"",content:""},confirmShift:{show:!1,close:"OK",content:"保存します、続行しますか?"},confirmCommon:{show:!1,close:"OK",content:"保存します、続行しますか?"},response:{show:!1,message:"",color:""}}),f=hn({fetchPolicy:"no-cache"}),m=f.mutate,g=(f.loading,f.error,f.called,f.onDone),h=f.onError;g((function(t){var o,n;if(console.log("シフトルールのinsertOnDone"),u.shiftFlg=!1,null!==(o=t.data)&&void 0!==o&&null!==(n=o.insertEasySettingToRuleShiftTable)&&void 0!==n&&n.succeed){var a,r,c,f,m,g,h={detailID:null===(a=t.data.insertEasySettingToRuleShiftTable.result)||void 0===a?void 0:a.ruleShiftTableDetailID,concurrencyStamp:null===(r=t.data.insertEasySettingToRuleShiftTable.result)||void 0===r?void 0:r.concurrencyStamp,easySettingConfig:null===(c=t.data.insertEasySettingToRuleShiftTable.result)||void 0===c?void 0:c.easySettingConfig,easySettingPattern:null===(f=t.data.insertEasySettingToRuleShiftTable.result)||void 0===f?void 0:f.easySettingPattern,easySettingName:null===(m=t.data.insertEasySettingToRuleShiftTable.result)||void 0===m?void 0:m.easySettingName,pattern:null===i||void 0===i||null===(g=i.easySettingPatternDefine.find((function(e){var o,n,a;return e.pattern===(null===(o=t.data)||void 0===o||null===(n=o.insertEasySettingToRuleShiftTable)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.easySettingPattern)})))||void 0===g?void 0:g.name};null===s||void 0===s||s.splice(s.length,0,h),d.confirmShift.show=!1,d.response.show=!0,d.response.color="success",d.response.message="保存しました",e.emit("close"),l.selectedPattern=Ko.All}else if(t.errors){var v=pt(t.errors);v.code!==M.QueryRecordNotFound&&(d.error.content=v.message,d.error.show=!0)}})),h((function(t){if(u.shiftFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(d.error.content=t.message,d.error.show=!0)}}));var v=$r({fetchPolicy:"no-cache"}),p=v.mutate,b=(v.loading,v.error,v.called,v.onDone),y=v.onError;b((function(t){var o,n;if(console.log("いつものルールのinsertOnDone"),u.commonFlg=!1,null!==(o=t.data)&&void 0!==o&&null!==(n=o.insertEasySettingToRuleCommon)&&void 0!==n&&n.succeed){var a,r,c,f,m,g,h={detailID:null===(a=t.data.insertEasySettingToRuleCommon.result)||void 0===a?void 0:a.ruleCommonDetailID,concurrencyStamp:null===(r=t.data.insertEasySettingToRuleCommon.result)||void 0===r?void 0:r.concurrencyStamp,easySettingPattern:null===(c=t.data.insertEasySettingToRuleCommon.result)||void 0===c?void 0:c.easySettingPattern,easySettingConfig:null===(f=t.data.insertEasySettingToRuleCommon.result)||void 0===f?void 0:f.easySettingConfig,easySettingName:null===(m=t.data.insertEasySettingToRuleCommon.result)||void 0===m?void 0:m.easySettingName,pattern:null===i||void 0===i||null===(g=i.easySettingPatternDefine.find((function(e){var o,n,a;return e.pattern===(null===(o=t.data)||void 0===o||null===(n=o.insertEasySettingToRuleCommon)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.easySettingPattern)})))||void 0===g?void 0:g.name};null===s||void 0===s||s.splice(s.length,0,h),d.confirmCommon.show=!1,d.response.show=!0,d.response.color="success",d.response.message="保存しました",e.emit("close"),l.selectedPattern=Ko.All}else if(t.errors){var v=pt(t.errors);v.code!==M.QueryRecordNotFound&&(d.error.content=v.message,d.error.show=!0)}})),y((function(t){if(u.commonFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(d.error.content=t.message,d.error.show=!0)}}));var S=function(){var e;null===(e=c.value)||void 0===e||e.validate(),u.isValidate&&(l.selectedPattern===Ko.Shiftcountrange&&Number(l.items[2].value)>Number(l.items[3].value)||l.selectedPattern===Ko.Personshiftcountrange&&Number(l.items[1].value)>Number(l.items[2].value)?(d.error.content="勤務回数の大小関係に誤りがあります。正しく入力してください。",d.error.show=!0):t.shift?(console.log("シフトルール",t.shift),d.confirmShift.show=!0):(console.log("いつものルール",t.shift),d.confirmCommon.show=!0))},D=function(){if(console.log("シフトルールのInsert"),!u.shiftFlg){u.shiftFlg=!0;try{if(l&&n.ruleShiftTable){console.log(l);var t={ruleShiftTableID:n.ruleShiftTable.ruleShiftTableID,pattern:l.selectedPattern,configs:l.items.map((function(t){return{index:t.index,valueType:t.type,values:t.value}}))};console.log("insertData",t),m({model:t})}}catch(e){u.shiftFlg=!1,d.error.content=Hu,d.error.show=!0}}},C=function(){if(console.log("いつものルールのInsert"),!u.commonFlg){u.commonFlg=!0;try{if(l){console.log(l);var t={ruleCommonID:a,pattern:l.selectedPattern,configs:l.items.map((function(t){return{index:t.index,valueType:t.type,values:t.value}}))};console.log("insertData",t),p({model:t})}}catch(e){u.commonFlg=!1,d.error.content=Hu,d.error.show=!0}}};return{homeState:i,createState:l,form:c,state:u,dialog:d,validate:S,insertShift:D,insertCommon:C,rules:Zg()}},emits:["close"]}),Xh=Jh,tv=Object(k["a"])(Xh,Yh,Zh,!1,null,null,null),ev=tv.exports;uc()(tv,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VSelect:Tf["a"],VToolbar:Ku["a"]});var ov=Object(r["b"])({components:{ConfirmDialog:Yd,DeleteButton:cf,DeleteDialog:of,EditButton:Hg,ErrorDialog:Ou,ResponseDialog:tm,EasySetting:Kh,EasySettingCreate:ev},setup:function(){var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["p"])(),i=Object(r["p"])(),s=1,l=t.getters["shiftRule/selectRuleCommonID"],c=Object(r["d"])(Bc),u=Object(r["n"])({rows:[],detailID:-1,ruleCommons:[],ruleShifts:[],shifts:[],staffs:[],staffAttributes:[]});Object(r["m"])(Hc,u),Object(r["m"])(qc,u.rows);var d=Object(r["n"])({selectedPattern:Ko.All,items:[]}),f=Object(r["n"])({isCopyRuleValidate:!1,isCopyRuleCommonValidate:!1,flg:!1,copyToCommonFlg:!1,copyToShiftFlg:!1}),m=[{text:"No",value:"no"},{text:"設定内容",value:"easySettingName"},{text:"パターン",value:"pattern"},{text:"",value:"actions",sortable:!1,align:""}],g=Object(r["n"])({error:{show:!1,content:""},createEasySetting:{show:!1},editEasySetting:{show:!1},copyRule:{show:!1},confirmCommon:{show:!1,title:"確認",close:"OK",content:"選択したルールをコピーします、続行しますか?"},copyRuleCommon:{show:!1},confirmShift:{show:!1,title:"確認",close:"OK",content:"コピーします、続行しますか?"},delete:{show:!1,title:"確認",close:"OK",content:"削除します、続行しますか?"},response:{show:!1,message:"",color:""}});function h(t){var e=String(t).split(/[-T]/);return"".concat(e[0],"-").concat(e[1],"-").concat(e[2])}var v=Object(r["n"])({name:"",ruleCommonDetailID:-1,concurrencyStamp:"",ruleCommonID:-1,ruleShiftTableID:-1}),p=Va({id:0},E),b=(p.result,p.loading),y=p.onResult,S=(p.error,p.refetch);y((function(t){if(!t.error&&t.data.getRuleCommonDetails){var e;console.log("getOnResult",t.data.getRuleCommonDetails);var o=t.data.getRuleCommonDetails.map((function(t){var e;return{detailID:t.ruleCommonDetailID,concurrencyStamp:t.concurrencyStamp,easySettingConfig:t.easySettingConfig,easySettingName:t.easySettingName,easySettingPattern:t.easySettingPattern,pattern:null===c||void 0===c||null===(e=c.easySettingPatternDefine.find((function(e){return e.pattern===t.easySettingPattern})))||void 0===e?void 0:e.name}}));(e=u.rows).splice.apply(e,[0,u.rows.length].concat(Object(a["a"])(o))),console.log(u.rows)}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(g.error.content=n.message,g.error.show=!0)}}));var D=Ea({id:1},E),C=(D.result,D.loading,D.onResult),w=(D.error,D.refetch);C((function(t){if(!t.error&&t.data.getRuleCommons){var e,o=t.data.getRuleCommons.map((function(t){return{ruleCommonID:t.ruleCommonID,name:t.name}}));(e=u.ruleCommons).splice.apply(e,[0,u.ruleCommons.length].concat(Object(a["a"])(o))),console.log(t.data.getRuleCommons),console.log(u.ruleCommons)}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(g.error.content=n.message,g.error.show=!0)}}));var k=La({id:1},E),I=(k.result,k.loading,k.onResult),x=(k.error,k.refetch);I((function(t){if(!t.error&&t.data.getRuleShiftTables){var e,o=t.data.getRuleShiftTables.map((function(t){return{ruleShiftTableID:t.ruleShiftTableID,shiftTableName:t.shiftTableName,startDate:t.startDate,endDate:t.endDate}}));(e=u.ruleShifts).splice.apply(e,[0,u.ruleShifts.length].concat(Object(a["a"])(o))),console.log(t.data.getRuleShiftTables),console.log(u.ruleShifts)}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(g.error.content=n.message,g.error.show=!0)}}));var T=Xa(E),A=(T.loading,T.result,T.error,T.refetch),_=T.onResult;_((function(t){if(!t.error&&t.data.getShifts&&Array.isArray(t.data.getShifts)){var e,o=t.data.getShifts.map((function(t){return{shiftID:t.shiftID,name:t.name}}));(e=u.shifts).splice.apply(e,[0,u.shifts.length].concat(Object(a["a"])(o)))}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(g.error.content=n.message,g.error.show=!0)}})),Object(r["m"])(Qc,u.shifts);var O=Dr(E),R=(O.loading,O.result,O.error,O.refetch),F=O.onResult;F((function(t){if(!t.error&&t.data.getStaffManagement&&Array.isArray(t.data.getStaffManagement)){var e,o=t.data.getStaffManagement.map((function(t){return{staffID:t.staffID,staffName:t.staffName}}));(e=u.staffs).splice.apply(e,[0,u.staffs.length].concat(Object(a["a"])(o)))}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(g.error.content=n.message,g.error.show=!0)}})),Object(r["m"])(Uc,u.staffs);var V=er({id:0},E),j=(V.loading,V.result,V.error,V.refetch),G=V.onResult;G((function(t){if(console.log("getShiftsAndStaffOnResult call",t),!t.error&&t.data.getShiftsAndStaffAttributes){var e,o=[];t.data.getShiftsAndStaffAttributes.staffAttributeGroupCommons.map((function(t){if(t.staffAttributeGroupCommonItems)return t.staffAttributeGroupCommonItems.map((function(t){o.push(Object(n["a"])({},t))}))}));(e=u.staffAttributes).splice.apply(e,[0,u.staffAttributes.length].concat(o)),console.log("state.staffAttribute",u.staffAttributes)}else if(t.errors){var a=pt(t.errors);a.code!==M.QueryRecordNotFound&&(g.error.content=a.message,g.error.show=!0)}})),Object(r["m"])(zc,u.staffAttributes);var $=Pn({fetchPolicy:"no-cache"}),N=$.mutate,L=($.loading,$.error,$.called,$.onDone),P=$.onError;L((function(t){var e,o;if(console.log("deleteOnDone"),f.flg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.deleteRuleCommonDetail)&&void 0!==o&&o.succeed){var n,a=null===(n=t.data.deleteRuleCommonDetail.result)||void 0===n?void 0:n.ruleCommonDetailID,r=u.rows.findIndex((function(t){return t.detailID===a}));u.rows.splice(r,1),g.delete.show=!1,g.response.show=!0,g.response.color="success",g.response.message="シフトルール情報を削除しました"}})),P((function(t){if(f.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(g.error.content=t.message,g.error.show=!0)}}));var W=yn({fetchPolicy:"no-cache"}),B=W.mutate,H=(W.loading,W.error,W.called,W.onDone),q=W.onError;H((function(t){var e,o;if(f.copyToCommonFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.copyRuleCommonToCommon)&&void 0!==o&&o.succeed){var n,r=t.data.copyRuleCommonToCommon.result.map((function(t){var e;return{detailID:t.ruleCommonDetailID,concurrencyStamp:t.concurrencyStamp,easySettingPattern:t.easySettingPattern,easySettingConfig:t.easySettingConfig,easySettingName:t.easySettingName,pattern:null===c||void 0===c||null===(e=c.easySettingPatternDefine.find((function(e){return e.pattern===t.easySettingPattern})))||void 0===e?void 0:e.name}}));(n=u.rows).splice.apply(n,[u.rows.length+1,0].concat(Object(a["a"])(r))),g.confirmCommon.show=!1,g.copyRule.show=!1,g.response.show=!0,g.response.color="success",g.response.message="いつものルールからコピーしました"}else if(t.errors){var i=pt(t.errors);i.code!==M.QueryRecordNotFound&&(g.error.content=i.message,g.error.show=!0)}})),q((function(t){if(f.copyToCommonFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(g.error.content=t.message,g.error.show=!0)}}));var Q=Dn({fetchPolicy:"no-cache"}),U=Q.mutate,z=(Q.loading,Q.error,Q.called,Q.onDone),K=Q.onError;z((function(t){var e,o;if(f.copyToShiftFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.copyRuleCommonToShiftTable)&&void 0!==o&&o.succeed)g.confirmShift.show=!1,g.copyRuleCommon.show=!1,g.response.show=!0,g.response.color="success",g.response.message="シフトルールへコピーしました";else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(g.error.content=n.message,g.error.show=!0)}})),K((function(t){if(f.copyToShiftFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(g.error.content=t.message,g.error.show=!0)}}));var Y=function(t){console.log("addclick call"),u.detailID=0,g.createEasySetting.show=!0},Z=function(t){u.detailID=t.detailID,d.selectedPattern=t.easySettingPattern,d.items.splice(0,d.items.length),t.easySettingConfig&&t.easySettingConfig.forEach((function(t){d.items.push({index:t.index,type:t.valueType,value:t.values})})),g.editEasySetting.show=!0};Object(r["m"])(Kc,d);var J=function(t){console.log("deleteClick call"),v.ruleCommonDetailID=t.detailID,v.concurrencyStamp=t.concurrencyStamp,g.delete.show=!0},tt=function(){if(console.log("deleteSettings"),console.log(v.ruleCommonDetailID),console.log(v.concurrencyStamp),!f.flg){f.flg=!0;try{var t={ruleCommonDetailID:v.ruleCommonDetailID,concurrencyStamp:v.concurrencyStamp};N({model:t})}catch(e){f.flg=!1,g.error.content=Hu,g.error.show=!0}}},et=function(){var t;console.log("shiftValidate call"),null===(t=o.value)||void 0===t||t.validate(),f.isCopyRuleValidate&&(g.confirmCommon.show=!0)},ot=function(){if(!f.copyToCommonFlg){f.copyToCommonFlg=!0;try{var t={fromRuleCommonID:v.ruleCommonID,toRuleCommonID:l};B({model:t})}catch(e){f.copyToCommonFlg=!1,g.error.content=Hu,g.error.show=!0}}},nt=function(){var t;console.log("commonValidate call"),console.log("1",f.isCopyRuleCommonValidate),null===(t=i.value)||void 0===t||t.validate(),console.log("2",f.isCopyRuleCommonValidate),f.isCopyRuleCommonValidate&&(g.confirmShift.show=!0)},at=function(){if(!f.copyToShiftFlg){f.copyToShiftFlg=!0;try{var t={ruleShiftTableID:v.ruleShiftTableID,ruleCommonID:l};U({model:t})}catch(e){f.copyToShiftFlg=!1,g.error.content=Hu,g.error.show=!0}}},rt=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("isLoading",null===c||void 0===c?void 0:c.isLoading),console.log("",b),t.prev=2,t.next=5,S({id:l});case 5:return t.next=7,w();case 7:return t.next=9,x();case 9:return t.next=11,A();case 11:return t.next=13,R();case 13:return t.next=15,j({id:s});case 15:t.next=21;break;case 17:t.prev=17,t.t0=t["catch"](2),g.error.content=Bu,g.error.show=!0;case 21:case"end":return t.stop()}}),t,null,[[2,17]])})));return function(){return t.apply(this,arguments)}}();return rt(),{copyRuleForm:o,copyRuleCommonForm:i,homeState:c,state:u,state2:f,headers:m,dialog:g,dateToString:h,formContent:v,addClick:Y,editClick:Z,deleteClick:J,deleteSettings:tt,commonValidate:et,copyToCommon:ot,shiftValidate:nt,copyToShift:at,queryData:rt,rules:Zg(),isGetLoading:b}}}),nv=ov,av=Object(k["a"])(nv,Gh,$h,!1,null,null,null),rv=av.exports;uc()(av,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VDataTable:zu["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VSelect:Tf["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var iv=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("シフトルール作成")]),o("v-tabs",[o("v-tab",{attrs:{href:"#tab-1"}},[t._v("詳細設定")]),o("v-tab",{attrs:{href:"#tab-2"}},[t._v("かんたん設定")]),o("v-tab",{attrs:{href:"#tab-3"}},[t._v("いつものルールコピー")]),o("v-tab-item",{key:"tab-1",attrs:{value:"tab-1"}},[o("advance-tab")],1),o("v-tab-item",{key:"tab-2",attrs:{value:"tab-2"}},[o("easy-setting-tab")],1),o("v-tab-item",{key:"tab-3",attrs:{value:"tab-3"}},[o("common-rule-tab")],1)],1)],1)])},sv=[],lv=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"yellow lighten-5"},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-data-table",{staticClass:"content__table mt-4",attrs:{headers:t.ruleSetHeader,items:t.ruleSetRows,"single-select":!0,"item-key":"id","hide-default-footer":!1,"items-per-page":5,"show-select":""},on:{input:t.onSelectRuleSet},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("ルールセット")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}})],1)]},proxy:!0},{key:"item.actions",fn:function(e){var n=e.item;return[o("v-btn",{staticClass:"ma-2",attrs:{color:"success"},on:{click:function(e){return t.addRule(n)}}},[t._v(" 追加")])]}}]),model:{value:t.state.selectedRuleSet,callback:function(e){t.$set(t.state,"selectedRuleSet",e)},expression:"state.selectedRuleSet"}})],1)],1),o("v-card",{staticClass:"mx-auto mt-6"},[o("v-data-table",{staticClass:"content__table mt-0",attrs:{headers:t.ruleListHeader,items:t.ruleListRows,"item-key":"ruleShiftTableDetailID","items-per-page":10,"show-select":""},on:{input:t.onSelectRuleDetail},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("ルール詳細一覧")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}})],1)]},proxy:!0},{key:"item.priority",fn:function(e){var o=e.item;return[t._v(" "+t._s(t.getLevelName(o.priority))+" ")]}},{key:"item.actions",fn:function(e){var n=e.item;return[o("v-btn",{staticClass:"ma-2",attrs:{color:"success",dark:""},on:{click:function(e){return t.editRule(n)}}},[t._v(" 編集 "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-account-edit ")])],1),o("v-btn",{staticClass:"ma-2",attrs:{color:"warning",dark:""},on:{click:function(e){return t.changeRuleLevel(n)}}},[t._v(" レベルの変更 ")]),o("v-btn",{staticClass:"ma-2",attrs:{color:"warning",dark:"",outlined:n.configuration.enabled},on:{click:function(e){return t.enableRule(n)}}},[t._v(" "+t._s(n.configuration.enabled?"無効化":"有効化")+" ")])]}}]),model:{value:t.state.selectedRuleDetails,callback:function(e){t.$set(t.state,"selectedRuleDetails",e)},expression:"state.selectedRuleDetails"}}),o("v-card-actions",[o("div",{staticClass:"content__btn form__btn btn-actions"},[o("v-btn",{staticClass:"mr-2 mb-2",attrs:{disabled:t.state.selectedRuleDetails.length<1,color:"primary"},on:{click:t.onCopyClick}},[t._v(" コピー "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-copy ")])],1),o("v-btn",{staticClass:"mr-2 mb-2",attrs:{disabled:t.state.selectedRuleDetails.length<1,color:"primary"},on:{click:t.onCutClick}},[t._v(" カット "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-cut ")])],1),o("v-btn",{staticClass:"mr-2 mb-2",attrs:{disabled:!t.state.isCopied&&!t.state.isCut,color:"primary"},on:{click:t.onPasteClick}},[t._v(" ペースト "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-paste ")])],1),o("v-btn",{staticClass:"mr-2 mb-2",attrs:{disabled:t.state.selectedRuleDetails.length<1,color:"primary"},on:{click:t.onSendClick}},[t._v(" いつものルールに送信 "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-send ")])],1),o("v-btn",{staticClass:"mr-2 mb-2",attrs:{disabled:t.state.selectedRuleDetails.length<1,color:"error"},on:{click:t.onDeleteClick}},[t._v(" 消去 "),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-delete ")])],1)],1)])],1),o("div",{staticClass:"content__btn form__btn mt-10"},[o("v-btn",{staticClass:"mr-2",attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("confirm-dialog",{attrs:{show:t.dialog.enableRule.show,title:t.dialog.enableRule.title,agree:t.dialog.enableRule.agree,content:t.dialog.enableRule.content,width:420},on:{confirm:t.enabledRuleDetail,close:function(e){t.dialog.enableRule.show=!1}}}),o("confirm-dialog",{attrs:{show:t.dialog.deleteRule.show,title:t.dialog.deleteRule.title,agree:t.dialog.deleteRule.agree,content:t.dialog.deleteRule.content,width:420},on:{confirm:t.deleteRule,close:function(e){t.dialog.deleteRule.show=!1}}}),o("error-dialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}}),o("input-level",{attrs:{show:t.dialog.inputLevel.show,title:t.dialog.inputLevel.title,close:t.dialog.inputLevel.close,content:t.dialog.inputLevel.content,data:t.dialog.inputLevel.data,create:!1},on:{submit:t.saveRuleLevel,close:function(e){t.dialog.inputLevel.show=!1}}}),o("input-common-rule",{attrs:{show:t.dialog.inputCommonRule.show,title:t.dialog.inputCommonRule.title,close:t.dialog.inputCommonRule.close,content:t.dialog.inputCommonRule.content},on:{submit:t.copyCommonRule,close:function(e){t.dialog.inputCommonRule.show=!1}}})],1)},cv=[],uv=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-dialog",{model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-card-title",{staticClass:"grey lighten-2"},[t._v(" "+t._s(t.title)+" ")]),o("v-card-text",[o("v-container",[t._t("content",(function(){return[o("div",{staticClass:"mt-3"},[t._v(" "+t._s(t.content)+" ")])]})),o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-select",{staticClass:"mt-6",attrs:{items:t.ruleCommons,label:"いつものルール","hide-details":"auto",outlined:"","item-text":"name","item-value":"ruleCommonID","background-color":"white"},model:{value:t.formContent.RuleCommon,callback:function(e){t.$set(t.formContent,"RuleCommon",e)},expression:"formContent.RuleCommon"}})],1)],1)],1)])],2)],1),o("v-card-actions",[o("v-row",[o("v-col",{attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v(" コピー ")])],1)],1)],1)],1)],1),o("confirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,content:t.dialog.confirm.content,width:420},on:{confirm:t.submit,close:function(e){t.dialog.confirm.show=!1}}})],1)},dv=[],fv=Object(r["b"])({components:{confirmDialog:Yd},props:{show:{type:Boolean,required:!0,default:!1},title:{type:String,required:!1,default:""},content:{type:String,required:!1,default:""},data:{type:Object,required:!1,default:function(){return{}}}},setup:function(t){var e=Object(r["n"])({valid:!1,show:t.show}),o=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"選択しているいつものルールにコピーします、続行しますか?"}}),n=Object(r["n"])({RuleCommon:""});return{formContent:n,state:e,dialog:o,form:Object(r["p"])(),rules:lh(),levelList:Cl,ruleCommons:Tl}},methods:{validate:function(){var t;this.dialog.confirm.show=!0,null===(t=this.form)||void 0===t||t.validate(),this.state.valid&&this.$emit("confirm")},submit:function(){this.dialog.confirm.show=!1,this.$emit("submit",this.formContent.RuleCommon)}}}),mv=fv,gv=Object(k["a"])(mv,uv,dv,!1,null,null,null),hv=gv.exports;uc()(gv,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCol:xc["a"],VContainer:eu["a"],VDialog:Au["a"],VForm:fu["a"],VRow:Oc["a"],VSelect:Tf["a"]});var vv=Object(r["b"])({components:{confirmDialog:Yd,errorDialog:Ou,inputLevel:fh,inputCommonRule:hv},setup:function(){var t=ic(),e=Object(r["n"])({selectedRuleSet:[],selectedRuleDetails:[],shiftTableID:-1,ruleShiftTableIDs:[],ruleDetailActionItem:null,isCopied:!1,isCut:!1,dialogCommonRule:!1}),o=[{text:"名前",value:"name",sortable:!1},{text:"",value:"actions",sortable:!1,align:""}],n=[{text:"タイトル",value:"name"},{text:"優先順位",value:"priority"},{text:"いつものルールから反映されたものか?",value:"hasRuleCommon"},{text:"",value:"actions",sortable:!1,align:""}],a=Object(r["p"])([]),i=Object(r["n"])({enableRule:{show:!1,title:"確認",close:"OK",content:"",agree:"OK"},deleteRule:{show:!1,title:"確認",close:"OK",content:"選択したルールの詳細が削除されます、続行しますか?",agree:"OK",data:{}},error:{show:!1,title:"エラーが発生しました。",content:"そこで何かがうまくいかなかった.",close:"OK"},inputLevel:{show:!1,title:"",content:"",close:"OK",data:{}},inputCommonRule:{show:!1,title:"いつものルールに送信",content:"いつものルールを選択",close:"OK"}});function s(){e.shiftTableID=t.getters["shiftTable/selectShiftTableID"],e.ruleShiftTableIDs=Vl(e.shiftTableID)}Object(r["j"])((function(){s()}));var l=Object(r["a"])((function(){return e.selectedRuleSet.map((function(t){return t.id}))})),c=function(o){t.dispatch("shiftRule/getShiftRuleDetails",{ruleSetTypeIds:o,ruleShiftTableIDs:e.ruleShiftTableIDs,callback:{onSuccess:function(t){a.value=t},onError:function(t){i.error.show=!0}}})},u=function(t){i.inputLevel.show=!1,i.inputLevel.data={},e.ruleDetailActionItem&&d(e.ruleDetailActionItem.ruleShiftTableDetailID,t)},d=function(e,o){t.dispatch("shiftRule/changeLevelShiftRule",{ruleShiftTableDetailID:e,priority:o,callback:{onSuccess:function(t){c(l.value)},onError:function(t){i.error.show=!0}}})},f=function(e,o){t.dispatch("shiftRule/enableShiftRule",{ruleShiftTableDetailID:e,enable:o,callback:{onSuccess:function(t){c(l.value)},onError:function(t){i.error.show=!0}}})},m=function(e){t.dispatch("shiftRule/deleteShiftRuleDetails",{ruleShiftTableDetails:e,callback:{onSuccess:function(t){c(l.value)},onError:function(t){i.error.show=!0}}})},g=function(t){e.selectedRuleDetails=[],e.isCopied=!1,e.isCut=!1,c(l.value)},h=function(){e.isCopied=!1,e.isCut=!1},v=function(){e.isCopied=!0,e.isCut=!1},p=function(){e.isCut=!0,e.isCopied=!1},b=function(){},y=function(t){i.deleteRule.data=t,i.deleteRule.show=!0},S=function(){i.inputCommonRule.show=!0},D=function(t){pk.push(t.path)},C=function(t){i.inputLevel.show=!0,e.ruleDetailActionItem=t},w=function(o){t.commit("shiftRule/setRuleCommonDetailID",{value:o.ruleShiftTableDetailID}),pk.push(e.selectedRuleSet[0].path)},k=function(t){i.enableRule.content=t.configuration.enabled?"選択した詳細ルールが無効になります、続行しますか?":"選択した詳細ルールが有効になります、続行しますか?",e.ruleDetailActionItem=t,i.enableRule.show=!0},I=function(){i.enableRule.show=!1,e.ruleDetailActionItem&&f(e.ruleDetailActionItem.ruleShiftTableDetailID,!e.ruleDetailActionItem.configuration.enabled)},x=function(){e.selectedRuleDetails.map((function(t){m([t])})),i.deleteRule.show=!1,e.isCopied=!1,e.isCut=!1,e.selectedRuleDetails=[]},T=function(t){console.log(t),c(l.value),i.inputCommonRule.show=!1};return{state:e,ruleSetHeader:o,ruleSetRows:Rl,ruleListHeader:n,ruleListRows:a,dialog:i,errorDialog:Ou,onSelectRuleSet:g,onSelectRuleDetail:h,onCopyClick:v,onCutClick:p,onPasteClick:b,onDeleteClick:y,onSendClick:S,addRule:D,saveRuleLevel:u,changeRuleLevel:C,editRule:w,enableRule:k,enabledRuleDetail:I,deleteRule:x,copyCommonRule:T,getLevelName:Fl}}}),pv=vv,bv=(o("1dc6"),Object(k["a"])(pv,lv,cv,!1,null,"11cc1a9b",null)),yv=bv.exports;uc()(bv,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCol:xc["a"],VDataTable:zu["a"],VDivider:Tc["a"],VIcon:gc["a"],VRow:Oc["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var Sv=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"yellow lighten-5"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-data-table",{staticClass:"content__table mt-4",attrs:{headers:t.ruleCommonHeader,items:t.ruleCommonRows,"item-key":"ruleCommonID","items-per-page":10,"sort-by":"sort","show-select":""},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("いつものルールリスト")])],1)]},proxy:!0},{key:"item.actions",fn:function(e){var n=e.item;return[o("v-btn",{staticClass:"ma-2",attrs:{color:"info",dark:""},on:{click:function(e){return t.onOpen(n)}}},[t._v(" 開く ")])]}}],null,!0),model:{value:t.state.selectedUsualRule,callback:function(e){t.$set(t.state,"selectedUsualRule",e)},expression:"state.selectedUsualRule"}})],1)],1),o("div",{staticClass:"content__btn form__btn mt-10"},[o("v-btn",{staticClass:"mr-2",attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1),o("v-btn",{attrs:{disabled:t.state.selectedUsualRule.length<1,color:"primary"},on:{click:function(e){t.dialog.confirmCopy.show=!0}}},[t._v(" コピー ")])],1),o("confirm-dialog",{attrs:{show:t.dialog.confirmCopy.show,title:t.dialog.confirmCopy.title,agree:t.dialog.confirmCopy.agree,content:t.dialog.confirmCopy.content,width:420},on:{confirm:t.onCopy,close:function(e){t.dialog.confirmCopy.show=!1}}}),o("error-dialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}})],1)},Dv=[],Cv=Object(r["b"])({components:{confirmDialog:Yd,errorDialog:Ou},setup:function(){var t=ic(),e=bk(),o=Object(r["n"])({selectedUsualRule:[],isCopied:!1}),n=[{text:"番号",value:"ruleCommonID"},{text:"名称",value:"name"},{text:"更新日時",value:"registrationTime"},{text:"",value:"actions",sortable:!1,align:""}],a=Object(r["p"])(Tl),i=Object(r["n"])({confirmCopy:{show:!1,title:"確認",content:"選択したいつものルールがコピーされます, 続行しますか?",agree:"OK"},error:{show:!1,title:"エラーが発生しました。",content:"",close:"OK"}}),s=function(){},l=function(){i.confirmCopy.show=!1,o.isCopied=!0},c=function(o){t.commit("shiftRule/setRuleCommonID",{value:o.ruleCommonID}),e.push({name:"shift-common-rule-create"})};return{state:o,ruleCommonRows:a,ruleCommonHeader:n,dialog:i,onSelectCommonRule:s,onCopy:l,onOpen:c}}}),wv=Cv,kv=Object(k["a"])(wv,Sv,Dv,!1,null,null,null),Iv=kv.exports;uc()(kv,{VBtn:mc["a"],VCol:xc["a"],VDataTable:zu["a"],VIcon:gc["a"],VRow:Oc["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var xv=Object(r["b"])({components:{advanceTab:yv,commonRuleTab:Iv,easySettingTab:Ah},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e})}}),Tv=xv,Av=Object(k["a"])(Tv,iv,sv,!1,null,null,null),_v=Av.exports;uc()(Av,{VTab:Rh["a"],VTabItem:Fh["a"],VTabs:Vh["a"]});var Ov=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("シフトルール作成")]),t.homeState.isLoading||t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-col",[o("v-card",[o("v-card-title",[o("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"検索","hide-details":""},model:{value:t.state2.search,callback:function(e){t.$set(t.state2,"search",e)},expression:"state2.search"}})],1),o("v-data-table",{staticClass:"content__table mt-6",attrs:{headers:t.headers,items:t.state.rows,search:t.state2.search,"item-key":"id","items-per-page":10,height:"400","hide-default-footer":"","disable-pagination":""},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("設定済みルール一覧")])],1)]},proxy:!0},{key:"item.no",fn:function(e){var n=e.index;return[o("td",[t._v(t._s(n+1))])]}},{key:"item.content",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.content.toString())+" ")]}},{key:"item.actions",fn:function(e){var n=e.item;return[o("div",{staticClass:"content-nowrap"},[o("edit-button",{on:{edit:function(e){return t.editClick(n)}}}),o("delete-button",{on:{delete:function(e){return t.deleteClick(n)}}})],1)]}}],null,!0)}),o("div",{staticClass:"content__btn form__btn pb-3"},[o("v-btn",{staticClass:"mb-2 mr-2",attrs:{color:"primary"},on:{click:t.addClick}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-plus-box-outline ")]),t._v("追加")],1),o("v-btn",{staticClass:"mb-2 mr-2",attrs:{color:"primary"},on:{click:function(e){t.dialog.copyRule.show=!0}}},[t._v("いつものルールからコピー")]),o("v-btn",{staticClass:"mb-2 mr-2",attrs:{color:"primary"},on:{click:function(e){t.dialog.copyRuleCommon.show=!0}}},[t._v("いつものルールへコピー")])],1)],1)],1),o("v-col",{attrs:{cols:"1"}},[o("div",{staticClass:"content__btn form__btn mt-10"},[o("v-btn",{staticClass:"mr-2",attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)])],1)]),o("v-dialog",{attrs:{width:"500"},model:{value:t.dialog.copyRule.show,callback:function(e){t.$set(t.dialog.copyRule,"show",e)},expression:"dialog.copyRule.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("コピーするいつものルールを選択")]),o("v-card-text",[o("v-form",{ref:"copyRuleForm",model:{value:t.state2.isCopyRuleValidate,callback:function(e){t.$set(t.state2,"isCopyRuleValidate",e)},expression:"state2.isCopyRuleValidate"}},[o("v-col",[o("v-select",{attrs:{items:t.state.ruleCommons,rules:t.rules.copyToCommon,"item-text":"name","item-value":"ruleCommonID",label:"いつものルール(仮称)","hide-details":"auto",outlined:"","background-color":"white",dense:""},model:{value:t.formContent.ruleCommonID,callback:function(e){t.$set(t.formContent,"ruleCommonID",e)},expression:"formContent.ruleCommonID"}})],1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.copyRule.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.shiftValidate}},[t._v("選択したルールをコピー"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("v-dialog",{attrs:{width:"500"},model:{value:t.dialog.copyRuleCommon.show,callback:function(e){t.$set(t.dialog.copyRuleCommon,"show",e)},expression:"dialog.copyRuleCommon.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("設定済みルール一覧の内容をいつものルールへコピーします")]),o("v-card-text",[o("v-form",{ref:"copyRuleCommonForm",model:{value:t.state2.isCopyRuleCommonValidate,callback:function(e){t.$set(t.state2,"isCopyRuleCommonValidate",e)},expression:"state2.isCopyRuleCommonValidate"}},[o("v-col",[o("v-text-field",{attrs:{rules:t.rules.name,label:"いつものルール名称",outlined:"","background-color":"white","hide-details":"auto",dense:""},model:{value:t.formContent.name,callback:function(e){t.$set(t.formContent,"name",e)},expression:"formContent.name"}})],1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.copyRuleCommon.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.commonValidate}},[t._v("コピーして追加"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("Easy-setting-create",{attrs:{create:!0,shift:!0,show:t.dialog.createEasySetting.show},on:{close:function(e){t.dialog.createEasySetting.show=!1}}}),o("Easy-setting",{attrs:{create:!1,shift:!0,show:t.dialog.editEasySetting.show},on:{close:function(e){t.dialog.editEasySetting.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmShift.show,title:t.dialog.confirmShift.title,agree:t.dialog.confirmShift.agree,content:t.dialog.confirmShift.content,width:420},on:{confirm:t.copyToShift,close:function(e){t.dialog.confirmShift.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmCommon.show,title:t.dialog.confirmCommon.title,agree:t.dialog.confirmCommon.agree,content:t.dialog.confirmCommon.content,width:420},on:{confirm:t.copyToCommon,close:function(e){t.dialog.confirmCommon.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.deleteSettings,close:function(e){t.dialog.delete.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},Rv=[],Fv=(o("841c"),Object(r["b"])({components:{ConfirmDialog:Yd,DeleteButton:cf,DeleteDialog:of,EditButton:Hg,ErrorDialog:Ou,ResponseDialog:tm,EasySetting:Kh,EasySettingCreate:ev},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=!1;t.commit("shiftTable/setIsDisplayShiftTable",{isDisp:o});var i=Object(r["p"])(),s=Object(r["p"])(),l=1,c=t.getters["shiftTable/selectShift"],u=t.getters["shiftRule/selectIsSettingsViolation"],d=u?t.getters["shiftRule/selectRuleShiftTableID"]:c.ruleShiftTable.ruleShiftTableID,f=t.getters["shiftRule/selectRuleShiftTableDetailName"],m=Object(r["d"])(Bc),g=Object(r["n"])({rows:[],detailID:-1,ruleCommons:[],ruleShifts:[],shifts:[],staffs:[],staffAttributes:[]});Object(r["m"])(Hc,g),Object(r["m"])(qc,g.rows);var h=Object(r["n"])({selectedPattern:Ko.All,items:[]}),v=Object(r["n"])({search:"",isCopyRuleValidate:!1,isCopyRuleCommonValidate:!1,flg:!1,copyToShiftFlg:!1,copyToCommonFlg:!1}),p=[{text:"No",value:"no"},{text:"設定内容",value:"easySettingName"},{text:"パターン",value:"pattern"},{text:"",value:"actions",sortable:!1,align:""}],b=Object(r["n"])({error:{show:!1,content:""},createEasySetting:{show:!1},editEasySetting:{show:!1},copyRule:{show:!1},confirmShift:{show:!1,title:"確認",close:"OK",content:"選択したルールをコピーします、続行しますか?"},copyRuleCommon:{show:!1},confirmCommon:{show:!1,title:"確認",close:"OK",content:"入力中の名称でいつものルールをコピーします、続行しますか?"},delete:{show:!1,title:"確認",close:"OK",content:"削除します、続行しますか?"},response:{show:!1,message:"",color:""}}),y=Object(r["n"])({name:"",ruleCommonID:-1,ruleShiftTableDetailID:-1,concurrencyStamp:""}),S=$a({id:0},E),D=(S.result,S.loading),C=S.onResult,w=(S.error,S.refetch);C((function(t){if(console.log("getOnResult call"),!t.error&&t.data.getRuleShiftTableDetails){var e,o=t.data.getRuleShiftTableDetails.map((function(t){var e;return{detailID:t.ruleShiftTableDetailID,concurrencyStamp:t.concurrencyStamp,easySettingConfig:t.easySettingConfig,easySettingName:t.easySettingName,easySettingPattern:t.easySettingPattern,pattern:null===m||void 0===m||null===(e=m.easySettingPatternDefine.find((function(e){return e.pattern===t.easySettingPattern})))||void 0===e?void 0:e.name}}));(e=g.rows).splice.apply(e,[0,g.rows.length].concat(Object(a["a"])(o))),console.log("rows",g.rows),u&&(v.search=f)}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(b.error.content=n.message,b.error.show=!0)}}));var k=Ea({id:1},E),I=(k.result,k.loading,k.onResult),x=(k.error,k.refetch);I((function(t){if(console.log("getCommonOnResult call"),!t.error&&t.data.getRuleCommons){var e,o=t.data.getRuleCommons.map((function(t){return{ruleCommonID:t.ruleCommonID,name:t.name}}));(e=g.ruleCommons).splice.apply(e,[0,g.ruleCommons.length].concat(Object(a["a"])(o))),console.log("ruleCommons",g.ruleCommons)}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(b.error.content=n.message,b.error.show=!0)}}));var T=Xa(E),A=(T.loading,T.result,T.error,T.refetch),_=T.onResult;_((function(t){if(!t.error&&t.data.getShifts&&Array.isArray(t.data.getShifts)){var e,o=t.data.getShifts.map((function(t){return{shiftID:t.shiftID,name:t.name}}));(e=g.shifts).splice.apply(e,[0,g.shifts.length].concat(Object(a["a"])(o)))}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(b.error.content=n.message,b.error.show=!0)}})),Object(r["m"])(Qc,g.shifts);var O=Dr(E),R=(O.loading,O.result,O.error,O.refetch),F=O.onResult;F((function(t){if(console.log("getStaffManagementOnResult スタッフ"),!t.error&&t.data.getStaffManagement&&Array.isArray(t.data.getStaffManagement)){var e,o=t.data.getStaffManagement.map((function(t){return{staffID:t.staffID,staffName:t.staffName}}));(e=g.staffs).splice.apply(e,[0,g.staffs.length].concat(Object(a["a"])(o))),console.log("staffs",g.staffs)}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(b.error.content=n.message,b.error.show=!0)}})),Object(r["m"])(Uc,g.staffs);var V=er({id:0},E),j=(V.loading,V.result,V.error,V.refetch),G=V.onResult;G((function(t){if(console.log("getShiftsAndStaffOnResult call",t),!t.error&&t.data.getShiftsAndStaffAttributes){var e,o=[];t.data.getShiftsAndStaffAttributes.staffAttributeGroupCommons.map((function(t){if(t.staffAttributeGroupCommonItems)return t.staffAttributeGroupCommonItems.map((function(t){o.push(Object(n["a"])({},t))}))}));(e=g.staffAttributes).splice.apply(e,[0,g.staffAttributes.length].concat(o)),console.log("state.staffAttribute",g.staffAttributes)}else if(t.errors){var a=pt(t.errors);a.code!==M.QueryRecordNotFound&&(b.error.content=a.message,b.error.show=!0)}})),Object(r["m"])(zc,g.staffAttributes);var $=Bn({fetchPolicy:"no-cache"}),N=$.mutate,L=($.loading,$.error,$.called,$.onDone),P=$.onError;L((function(t){var e,o;if(v.flg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.deleteRuleShiftTableDetail)&&void 0!==o&&o.succeed){var n,a=null===(n=t.data.deleteRuleShiftTableDetail.result)||void 0===n?void 0:n.ruleShiftTableDetailID,r=g.rows.findIndex((function(t){return t.detailID===a}));g.rows.splice(r,1),b.delete.show=!1,b.response.show=!0,b.response.color="success",b.response.message="シフトルール情報を削除しました"}})),P((function(t){if(v.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(b.error.content=t.message,b.error.show=!0)}}));var W=Dn({fetchPolicy:"no-cache"}),B=W.mutate,H=(W.loading,W.error,W.called,W.onDone),q=W.onError;H((function(t){var e,o;if(v.copyToShiftFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.copyRuleCommonToShiftTable)&&void 0!==o&&o.succeed){var n,r=t.data.copyRuleCommonToShiftTable.result.map((function(t){var e;return{detailID:t.ruleShiftTableDetailID,concurrencyStamp:t.concurrencyStamp,easySettingConfig:t.easySettingConfig,easySettingPattern:t.easySettingPattern,easySettingName:t.easySettingName,pattern:null===m||void 0===m||null===(e=m.easySettingPatternDefine.find((function(e){return e.pattern===t.easySettingPattern})))||void 0===e?void 0:e.name}}));(n=g.rows).splice.apply(n,[g.rows.length+1,0].concat(Object(a["a"])(r))),b.confirmShift.show=!1,b.copyRule.show=!1,b.response.show=!0,b.response.color="success",b.response.message="いつものルールからコピーしました"}else if(t.errors){var i=pt(t.errors);i.code!==M.QueryRecordNotFound&&(b.error.content=i.message,b.error.show=!0)}})),q((function(t){if(v.copyToShiftFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(b.error.content=t.message,b.error.show=!0)}}));var Q=wn({fetchPolicy:"no-cache"}),U=Q.mutate,z=(Q.loading,Q.error,Q.called,Q.onDone),K=Q.onError;z((function(t){var e,o;if(v.copyToCommonFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.copyRuleShiftTableToCommon)&&void 0!==o&&o.succeed)b.confirmCommon.show=!1,b.copyRuleCommon.show=!1,b.response.show=!0,b.response.color="success",b.response.message="いつものルールへコピーしました";else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(b.error.content=n.message,b.error.show=!0)}})),K((function(t){if(v.copyToCommonFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(b.error.content=t.message,b.error.show=!0)}}));var Y=function(t){g.detailID=0,b.createEasySetting.show=!0},Z=function(t){g.detailID=t.detailID,console.log("detailID",g.detailID),h.selectedPattern=t.easySettingPattern,h.items.splice(0,h.items.length),t.easySettingConfig&&t.easySettingConfig.forEach((function(t){h.items.push({index:t.index,type:t.valueType,value:t.values})})),b.editEasySetting.show=!0};Object(r["m"])(Kc,h);var J=function(t){console.log("deleteClick call"),y.ruleShiftTableDetailID=t.detailID,y.concurrencyStamp=t.concurrencyStamp,b.delete.show=!0},tt=function(){if(!v.flg){v.flg=!0;try{var t={ruleShiftTableDetailID:y.ruleShiftTableDetailID,concurrencyStamp:y.concurrencyStamp};N({model:t})}catch(e){v.flg=!1,b.error.content=Hu,b.error.show=!0}}},et=function(){var t;console.log("shiftValidate call"),null===(t=i.value)||void 0===t||t.validate(),v.isCopyRuleValidate&&(b.confirmShift.show=!0)},ot=function(){if(!v.copyToShiftFlg){v.copyToShiftFlg=!0;try{var t={ruleShiftTableID:d,ruleCommonID:y.ruleCommonID};B({model:t})}catch(e){v.copyToShiftFlg=!1,b.error.content=Hu,b.error.show=!0}}},nt=function(){var t;console.log("commonValidate call"),null===(t=s.value)||void 0===t||t.validate(),v.isCopyRuleCommonValidate&&(b.confirmCommon.show=!0)},at=function(){if(!v.copyToCommonFlg){v.copyToCommonFlg=!0;try{var t={ruleShiftTableID:d,ruleCommonName:y.name};U({model:t})}catch(e){v.copyToCommonFlg=!1,b.error.content=Hu,b.error.show=!0}}},rt=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("queryData"),t.prev=1,console.log("selectShift",c),console.log("ruleShiftTableID",d),console.log("isSettingsViolation",u),t.next=7,w({id:d});case 7:return t.next=9,x();case 9:return t.next=11,A();case 11:return t.next=13,R();case 13:return t.next=15,j({id:l});case 15:t.next=21;break;case 17:t.prev=17,t.t0=t["catch"](1),b.error.content=Bu,b.error.show=!0;case 21:case"end":return t.stop()}}),t,null,[[1,17]])})));return function(){return t.apply(this,arguments)}}();return rt(),{copyRuleForm:i,copyRuleCommonForm:s,homeState:m,state:g,state2:v,headers:p,dialog:b,formContent:y,addClick:Y,editClick:Z,deleteClick:J,deleteSettings:tt,shiftValidate:et,copyToShift:ot,commonValidate:nt,copyToCommon:at,queryData:rt,rules:Zg(),isGetLoading:D}}})),Vv=Fv,jv=Object(k["a"])(Vv,Ov,Rv,!1,null,null,null),Ev=jv.exports;uc()(jv,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCol:xc["a"],VDataTable:zu["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VSelect:Tf["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var Gv=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("勤務の人数設定")]),o("div",{staticClass:"content__form form"},[o("v-form",{ref:"pageForm"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"8"}},[o("div",[o("v-text-field",{attrs:{label:"ルール名",outlined:"","background-color":"white",rules:t.rules.ruleName,"hide-details":"auto"},model:{value:t.state.form.ruleName,callback:function(e){t.$set(t.state.form,"ruleName",e)},expression:"state.form.ruleName"}})],1)]),o("v-col",{attrs:{cols:"12",md:"4"}},[o("div",[o("v-select",{attrs:{"background-color":"white",label:"レベ",items:t.state.levels,rules:t.rules.level,outlined:"","hide-details":"auto"},model:{value:t.state.form.level,callback:function(e){t.$set(t.state.form,"level",e)},expression:"state.form.level"}})],1)])],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("div",[o("v-select",{attrs:{label:"シフト",items:t.state.shifts,rules:t.rules.shift,"background-color":"white",outlined:"","hide-details":"auto"},model:{value:t.state.form.shift,callback:function(e){t.$set(t.state.form,"shift",e)},expression:"state.form.shift"}})],1)]),o("v-col",{attrs:{cols:"12"}},[o("div",{staticClass:"box-white py-5"},[o("div",{staticClass:"px-4"},[o("v-radio-group",{attrs:{row:!t.$vuetify.breakpoint.xs,"hide-details":""},model:{value:t.state.displayOption,callback:function(e){t.$set(t.state,"displayOption",e)},expression:"state.displayOption"}},t._l(t.displayOptions,(function(t,e){return o("v-radio",{key:e,attrs:{label:t.text,value:t.value}})})),1)],1),o("div",{class:"\n content-tabs\n px-4\n "+(1!=t.state.displayOption?"mt-5 ":"")+"\n "},[2==t.state.displayOption?o("div",{staticClass:"mt-10"},[o("div",[o("v-autocomplete",{attrs:{"return-object":"",items:t.state.staffList,"item-text":"staffName","item-value":"id",placeholder:"選択されたスタッフはありません。",chips:"",multiple:"",outlined:"","hide-details":"","hide-selected":""},scopedSlots:t._u([{key:"selection",fn:function(e){var n=e.item;return[o("v-chip",{staticClass:"ma-2",attrs:{close:"",color:"primary","text-color":"white"},on:{"click:close":function(e){return t.removeSelectedStaff(n,2)}}},[t._v(" "+t._s(n.staffName)+" ")])]}}],null,!1,676832948),model:{value:t.state.form.staffDesignation,callback:function(e){t.$set(t.state.form,"staffDesignation",e)},expression:"state.form.staffDesignation"}})],1),o("div",{staticClass:"mt-5"},[o("v-switch",{attrs:{label:"リスト"},model:{value:t.state.switch.displayStaffDesignationList,callback:function(e){t.$set(t.state.switch,"displayStaffDesignationList",e)},expression:"state.switch.displayStaffDesignationList"}})],1),t.state.switch.displayStaffDesignationList?o("v-data-table",{attrs:{headers:t.state.staffListHeader,items:t.state.staffList,"item-key":"id","show-select":"","hide-default-footer":"","hide-default-header":""},model:{value:t.state.form.staffDesignation,callback:function(e){t.$set(t.state.form,"staffDesignation",e)},expression:"state.form.staffDesignation"}}):t._e()],1):t._e(),3==t.state.displayOption?o("div",{staticClass:"mt-10"},[o("div",[o("v-autocomplete",{attrs:{"return-object":"",items:t.state.staffAttributeData,"item-text":"attributeName","item-value":"id",placeholder:"選択されたスタッフはありません。",chips:"",multiple:"",outlined:"","hide-details":"","hide-selected":""},scopedSlots:t._u([{key:"selection",fn:function(e){var n=e.item;return[o("v-chip",{staticClass:"ma-2",attrs:{close:"",color:"primary","text-color":"white"},on:{"click:close":function(e){return t.removeSelectedStaff(n,3)}}},[t._v(" "+t._s(n.attributeName)+" ")])]}}],null,!1,3481818063),model:{value:t.state.form.staffAttributeSpecification,callback:function(e){t.$set(t.state.form,"staffAttributeSpecification",e)},expression:"state.form.staffAttributeSpecification"}})],1),o("div",{staticClass:"mt-5"},[o("v-switch",{attrs:{label:"リスト"},model:{value:t.state.switch.displayStaffAttributeSpecification,callback:function(e){t.$set(t.state.switch,"displayStaffAttributeSpecification",e)},expression:"state.switch.displayStaffAttributeSpecification"}})],1),t.state.switch.displayStaffAttributeSpecification?o("v-data-table",{attrs:{headers:t.state.staffAttributeHeader,items:t.state.staffAttributeData,"item-key":"id","show-select":"","hide-default-footer":"","hide-default-header":""},model:{value:t.state.form.staffAttributeSpecification,callback:function(e){t.$set(t.state.form,"staffAttributeSpecification",e)},expression:"state.form.staffAttributeSpecification"}}):t._e()],1):t._e()])])])],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("div",{staticClass:"box-white"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("div",[o("v-select",{attrs:{label:"曜日ごとの指定",items:t.state.daySpecificationOptions,outlined:"","hide-details":""},model:{value:t.state.form.dayDisplaySpecification,callback:function(e){t.$set(t.state.form,"dayDisplaySpecification",e)},expression:"state.form.dayDisplaySpecification"}})],1)]),o("v-col",{attrs:{cols:"12",md:"6"}},[o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("日")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","sunday",t.state.form.day.sunday.start)}},model:{value:t.state.form.day.sunday.start,callback:function(e){t.$set(t.state.form.day.sunday,"start",e)},expression:"state.form.day.sunday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","sunday",t.state.form.day.sunday.end)}},model:{value:t.state.form.day.sunday.end,callback:function(e){t.$set(t.state.form.day.sunday,"end",e)},expression:"state.form.day.sunday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("月")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","monday",t.state.form.day.monday.start)}},model:{value:t.state.form.day.monday.start,callback:function(e){t.$set(t.state.form.day.monday,"start",e)},expression:"state.form.day.monday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","monday",t.state.form.day.monday.end)}},model:{value:t.state.form.day.monday.end,callback:function(e){t.$set(t.state.form.day.monday,"end",e)},expression:"state.form.day.monday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("火")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","tuesday",t.state.form.day.tuesday.start)}},model:{value:t.state.form.day.tuesday.start,callback:function(e){t.$set(t.state.form.day.tuesday,"start",e)},expression:"state.form.day.tuesday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","tuesday",t.state.form.day.tuesday.end)}},model:{value:t.state.form.day.tuesday.end,callback:function(e){t.$set(t.state.form.day.tuesday,"end",e)},expression:"state.form.day.tuesday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("水")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","wednesday",t.state.form.day.wednesday.start)}},model:{value:t.state.form.day.wednesday.start,callback:function(e){t.$set(t.state.form.day.wednesday,"start",e)},expression:"state.form.day.wednesday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","wednesday",t.state.form.day.wednesday.end)}},model:{value:t.state.form.day.wednesday.end,callback:function(e){t.$set(t.state.form.day.wednesday,"end",e)},expression:"state.form.day.wednesday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("木")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","thursday",t.state.form.day.thursday.start)}},model:{value:t.state.form.day.thursday.start,callback:function(e){t.$set(t.state.form.day.thursday,"start",e)},expression:"state.form.day.thursday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","thursday",t.state.form.day.thursday.end)}},model:{value:t.state.form.day.thursday.end,callback:function(e){t.$set(t.state.form.day.thursday,"end",e)},expression:"state.form.day.thursday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("金")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","friday",t.state.form.day.friday.start)}},model:{value:t.state.form.day.friday.start,callback:function(e){t.$set(t.state.form.day.friday,"start",e)},expression:"state.form.day.friday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","friday",t.state.form.day.friday.end)}},model:{value:t.state.form.day.friday.end,callback:function(e){t.$set(t.state.form.day.friday,"end",e)},expression:"state.form.day.friday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("土")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","saturday",t.state.form.day.saturday.start)}},model:{value:t.state.form.day.saturday.start,callback:function(e){t.$set(t.state.form.day.saturday,"start",e)},expression:"state.form.day.saturday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","saturday",t.state.form.day.saturday.end)}},model:{value:t.state.form.day.saturday.end,callback:function(e){t.$set(t.state.form.day.saturday,"end",e)},expression:"state.form.day.saturday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("祝日")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","holiday",t.state.form.day.holiday.start)}},model:{value:t.state.form.day.holiday.start,callback:function(e){t.$set(t.state.form.day.holiday,"start",e)},expression:"state.form.day.holiday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","holiday",t.state.form.day.holiday.end)}},model:{value:t.state.form.day.holiday.end,callback:function(e){t.$set(t.state.form.day.holiday,"end",e)},expression:"state.form.day.holiday.end"}})],1)])],1)],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("div",[o("v-date-picker",{attrs:{"day-format":t.getDay,"full-width":""},on:{"click:date":t.onClickDate},model:{value:t.state.calendar,callback:function(e){t.$set(t.state,"calendar",e)},expression:"state.calendar"}})],1)])],1)],1)])],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-expansion-panels",[o("v-expansion-panel",[o("v-expansion-panel-header",[t._v(" 詳細な設定 ")]),o("v-expansion-panel-content",[o("div",{staticClass:"d-sm-flex align-sm-center"},[o("div",{staticClass:"mr-8"},[o("v-checkbox",{attrs:{label:"このルールを使用する"},model:{value:t.state.form.detailedSettings.useRule,callback:function(e){t.$set(t.state.form.detailedSettings,"useRule",e)},expression:"state.form.detailedSettings.useRule"}})],1),o("div",{staticClass:"mr-8"},[o("v-checkbox",{attrs:{label:"このルールを違反として扱わない"},model:{value:t.state.form.detailedSettings.dontTreatAsViolation,callback:function(e){t.$set(t.state.form.detailedSettings,"dontTreatAsViolation",e)},expression:"state.form.detailedSettings.dontTreatAsViolation"}})],1),o("div",[o("v-checkbox",{attrs:{label:"他のルールと矛盾する場合でも自動作成実行可能とする"},model:{value:t.state.form.detailedSettings.forceExecuteRule,callback:function(e){t.$set(t.state.form.detailedSettings,"forceExecuteRule",e)},expression:"state.form.detailedSettings.forceExecuteRule"}})],1)])])],1)],1)],1)],1)],1)],1),o("div",{staticClass:"content__btn form__btn mt-10"},[o("v-row",[o("v-col",{class:"\n "+(t.$vuetify.breakpoint.xs?"text-right":"")+"\n ",attrs:{cols:"6",sm:"1",md:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:"",to:{name:"shift-table"}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{class:"\n "+(t.$vuetify.breakpoint.xs?"":"text-center")+"\n ",attrs:{cols:"6",sm:"10",md:"10"}},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:function(e){return e.preventDefault(),t.saveChanges.apply(null,arguments)}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v("mdi-content-save")]),t._v(" 設定 ")],1)],1)],1)],1)]),o("v-dialog",{attrs:{width:"290"},model:{value:t.state.showTimeDialog,callback:function(e){t.$set(t.state,"showTimeDialog",e)},expression:"state.showTimeDialog"}},[o("v-card",[o("v-card-title",{staticClass:"text-h5"},[t._v("時間を設定する")]),o("v-card-text",[o("div",{staticClass:"d-flex align-center"},[o("v-select",{attrs:{items:t.state.hours,outlined:"","hide-details":""},model:{value:t.state.timeSelector.hour,callback:function(e){t.$set(t.state.timeSelector,"hour",e)},expression:"state.timeSelector.hour"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-select",{attrs:{items:t.state.minutes,outlined:"","hide-details":""},model:{value:t.state.timeSelector.minute,callback:function(e){t.$set(t.state.timeSelector,"minute",e)},expression:"state.timeSelector.minute"}})],1)]),o("v-card-actions",[o("v-spacer"),o("v-btn",{attrs:{color:"red",text:""},on:{click:t.onCancelTimeSet}},[t._v("キャンセル")]),o("v-btn",{attrs:{color:"primary",dark:""},on:{click:t.setTime}},[t._v("セットする")])],1)],1)],1),o("time-range-picker",{attrs:{show:t.state.showCalendarTimeDialog,"month-day-label":t.state.selectedDate.readable},on:{onClose:function(e){t.state.showCalendarTimeDialog=!1},onSubmit:t.setTimeSelectedDate}})],1)},$v=[],Nv=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-dialog",{attrs:{width:"500"},on:{"click:outside":t.onClose},model:{value:t.state.dialog,callback:function(e){t.$set(t.state,"dialog",e)},expression:"state.dialog"}},[o("v-card",[o("v-card-title",{staticClass:"text-h5 white--text dark primary"},[t._t("title",(function(){return[t._v(" "+t._s(t.title)+" ")]}))],2),o("v-card-text",[o("div",{staticClass:"d-flex align-center mt-5"},[t.showMonthDayLabel?o("div",{staticClass:"mr-2 day-label-dialog"},[t._v(" "+t._s(t.monthDayLabel)+" ")]):t._e(),o("div",[o("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","nudge-bottom":-10,"min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{outlined:"",readonly:"","hide-details":""},model:{value:t.state.calendarTimeEntry.timeStart,callback:function(e){t.$set(t.state.calendarTimeEntry,"timeStart",e)},expression:"state.calendarTimeEntry.timeStart"}},"v-text-field",a,!1),n))]}}])},[o("div",{staticClass:"d-flex"},[o("div",[o("v-select",{staticClass:"time-selector-wrapper hour",attrs:{items:t.state.hours,outlined:"","hide-details":"",autowidth:""},model:{value:t.state.timeSelector.startHour,callback:function(e){t.$set(t.state.timeSelector,"startHour",e)},expression:"state.timeSelector.startHour"}})],1),o("div",[o("v-select",{staticClass:"time-selector-wrapper min",attrs:{items:t.state.minutes,outlined:"","hide-details":"",autowidth:""},model:{value:t.state.timeSelector.startMinute,callback:function(e){t.$set(t.state.timeSelector,"startMinute",e)},expression:"state.timeSelector.startMinute"}})],1)])])],1),o("div",{staticClass:"px-2"},[t._v("~")]),o("div",[o("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","nudge-bottom":-10,"min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{outlined:"",readonly:"","hide-details":""},model:{value:t.state.calendarTimeEntry.timeEnd,callback:function(e){t.$set(t.state.calendarTimeEntry,"timeEnd",e)},expression:"state.calendarTimeEntry.timeEnd"}},"v-text-field",a,!1),n))]}}])},[o("div",{staticClass:"d-flex"},[o("div",[o("v-select",{staticClass:"time-selector-wrapper hour",attrs:{items:t.state.hours,outlined:"","hide-details":"",autowidth:""},model:{value:t.state.timeSelector.endHour,callback:function(e){t.$set(t.state.timeSelector,"endHour",e)},expression:"state.timeSelector.endHour"}})],1),o("div",[o("v-select",{staticClass:"time-selector-wrapper min",attrs:{items:t.state.minutes,outlined:"","hide-details":"",autowidth:""},model:{value:t.state.timeSelector.endMinute,callback:function(e){t.$set(t.state.timeSelector,"endMinute",e)},expression:"state.timeSelector.endMinute"}})],1)])])],1)])]),o("v-card-actions",[o("v-spacer"),t._t("actions",(function(){return[o("v-btn",{attrs:{color:"red",text:""},on:{click:t.onClose}},[t._v(" "+t._s(t.textCancel)+" ")]),o("v-btn",{attrs:{color:"primary",dark:""},on:{click:t.onSubmit}},[t._v(" "+t._s(t.textSubmit)+" ")])]}))],2)],1)],1)},Lv=[],Mv=Object(r["b"])({props:{show:{type:Boolean,default:!1},title:{type:String,default:"日ごとの設定"},showMonthDayLabel:{type:Boolean,default:!0},monthDayLabel:{type:String,default:""},setTimeStart:{type:String,required:!1},setTimeEnd:{type:String,required:!1},textCancel:{type:String,default:"閉じる"},textSubmit:{type:String,default:"設定"}},emits:["onClose","onSubmit"],setup:function(t,e){var o=Object(r["n"])({dialog:!1,timeSelector:{startHour:"00",startMinute:"00",endHour:"00",endMinute:"00"},calendarTimeEntry:{timeStart:t.setTimeStart?t.setTimeStart:"00:00",timeEnd:t.setTimeEnd?t.setTimeEnd:"00:00"},hours:[],minutes:[]});Object(r["s"])((function(){return t.show}),(function(t){o.dialog=t,t&&i()})),o.hours=Object(r["a"])((function(){for(var t=24,e=[],o=0;o0||"少なくとも1シフトを選択してください"}]}},Qv=o("7d8f"),Uv=Object(r["b"])({components:{confirmDialog:Yd,responseDialog:tm,timeRangePicker:Bv},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["p"])(),n=Object(r["n"])({form:{ruleName:"",level:2,shift:null,staffDesignation:Object.assign([],Hf.dataListRows),staffAttributeSpecification:Object.assign([],Hv.dataListRows),day:{sunday:{start:"00:00",end:"00:00"},monday:{start:"00:00",end:"00:00"},tuesday:{start:"00:00",end:"00:00"},wednesday:{start:"00:00",end:"00:00"},thursday:{start:"00:00",end:"00:00"},friday:{start:"00:00",end:"00:00"},saturday:{start:"00:00",end:"00:00"},holiday:{start:"00:00",end:"00:00"}},detailedSettings:{useRule:!1,dontTreatAsViolation:!1,forceExecuteRule:!1},dayDisplaySpecification:2},levels:[{text:"絶対(優先)",value:1},{text:"絶対",value:2},{text:"できれば",value:3},{text:"可能なら",value:4}],shifts:[{text:"Shift A",value:1},{text:"Shift B",value:2},{text:"Shift C",value:3},{text:"Shift D",value:4}],staffList:Hf.dataListRows,staffListHeader:[{text:"Staff Name",value:"staffName",width:"100"}],staffAttributeData:Hv.dataListRows,staffAttributeHeader:[{text:"スタッフ属性",value:"attributeName",sortable:!0}],daySpecificationOptions:[{text:"週ごとの指定",value:1},{text:"日ごとの指定",value:2},{text:"曜日ごとの指定",value:3}],displayOption:1,displayPanels:[],switch:{displayStaffDesignationList:!1,displayStaffAttributeSpecification:!1},timeSelector:{hour:"00",minute:"00",timeStartHour:"00",timeEndHour:"00",timeStartMinute:"00",timeEndMinute:"00"},calendarTimeEntry:{timeStart:"00:00",timeEnd:"00:00"},hours:[],minutes:[],selectedDayTime:{},selectedDate:{date:null,readable:null},showCalendarTimeDialog:!1,calendar:null}),a=qv();n.hours=Object(r["a"])((function(){for(var t=24,e=[],o=0;o0||"少なくとも1シフトを選択してください"}],permissableNumberPerPerson:[function(t){var e=parseInt(t);return isNaN(e)?"この項目は必須です":!e||String(e).length<3||"値は2桁を超えてはなりません"}],overallTotalPermissable:[function(t){var e=parseInt(t);return isNaN(e)?"この項目は必須です":!e||String(e).length<3||"値は2桁を超えてはなりません"}]}},dp=Object(r["b"])({components:{confirmDialog:Yd,responseDialog:tm,timeRangePicker:Bv},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["p"])(),n=Object(r["n"])([{text:"→",value:"→"},{text:"←",value:"←"},{text:"⇔",value:"⇔"},{text:"―",value:"―"}]),a=Object(r["n"])([{text:"絶対",value:"絶対"},{text:"できれば",value:"できれば"},{text:"可能なら",value:"可能なら"}]),i=Object(r["n"])([{text:"各曜日指定",value:1},{text:"平日・休日指定",value:2},{text:"祝日指定",value:3}]),s=Object(r["n"])({show:!1,message:"",color:""}),l=Object(r["n"])({show:!1,title:"確認",agree:"OK"}),c=Object(r["n"])({ruleName:"",level:"絶対",combinationSymbolAB:"",combinationSymbolBC:"",combinationSymbolCD:"",combinationSymbolDE:"",shiftA:[],shiftB:[],shiftC:[],shiftD:[],shiftE:[],staffDesignation:Object.assign([],Hf.dataListRows),staffAttributeSpecification:Object.assign([],Hv.dataListRows),resolveViolationRule:!1,setEachStaff:!1,permissableNumberPerPerson:0,overallTotalPermissable:0,daysOfWeek:[],selectedDates:[],day:{sunday:{start:"00:00",end:"00:00"},monday:{start:"00:00",end:"00:00"},tuesday:{start:"00:00",end:"00:00"},wednesday:{start:"00:00",end:"00:00"},thursday:{start:"00:00",end:"00:00"},friday:{start:"00:00",end:"00:00"},saturday:{start:"00:00",end:"00:00"},holiday:{start:"00:00",end:"00:00"}},detailedSettings:{useRule:!1,dontTreatAsViolation:!1,forceExecuteRule:!1},dayDisplaySpecification:2}),u=Object(r["p"])([]),d=Object(r["n"])({staffListHeader:[{text:"スタッフ名",value:"staffName",sortable:!0}],staffAttributeHeader:[{text:"スタッフ属性",value:"attributeName",sortable:!0}],staffListData:Hf.dataListRows,staffAttributeData:Hv.dataListRows,displayOption:1,displayPanels:[],switch:{displayStaffDesignationList:!1,displayStaffAttributeSpecification:!1},selectedDayTime:{},selectedDate:{date:null,readable:null},showTimeDialog:!1,timeSelector:{hour:"00",minute:"00",timeStartHour:"00",timeEndHour:"00",timeStartMinute:"00",timeEndMinute:"00"},calendar:null,showCalendarTimeDialog:!1,hours:[],minutes:[],daySpecificationOptions:[{text:"週ごとの指定",value:1},{text:"日ごとの指定",value:2},{text:"曜日ごとの指定",value:3}]});d.hours=Object(r["a"])((function(){for(var t=24,e=[],o=0;o0&&r.getDay()<6&&!e.includes(i)&&c.selectedDates.push(i),c.daysOfWeek.includes(3)&&(e.some((function(t){return c.selectedDates.includes(t)}))||(c.selectedDates=c.selectedDates.concat(e)))}},g=function(){o.value.validate()?l.show=!0:Object(Qv["b"])(0)},h=function(){var t=["success","error"],e=t[Math.floor(Math.random()*t.length)];l.show=!1,s.show=!1,setTimeout((function(){s.show=!0,"error"==e?(s.color="error",s.message="サンプルエラー通知機能"):(s.color="success",s.message="成功通知機能の例")}),1e3)},v=function(t){var e=D(t);d.selectedDate.date=t,d.selectedDate.readable="".concat(e[1],"月").concat(e[2],"日"),d.showCalendarTimeDialog=!0},p=function(t,e,o){var n=o.split(":");d.showTimeDialog=!0,d.selectedDayTime={pos:t,day:e},d.timeSelector={hour:n[0]||"00",minute:n[1]||"00",timeStartHour:"00",timeEndHour:"00",timeStartMinute:"00",timeEndMinute:"00"}},b=function(t){d.showCalendarTimeDialog=!1},y=function(){d.showTimeDialog=!1,d.selectedDayTime={},w()},S=function(){c.day[d.selectedDayTime.day][d.selectedDayTime.pos]="".concat(d.timeSelector.hour,":").concat(d.timeSelector.minute),d.showTimeDialog=!1,w()};function D(t){return t.split("-")}function C(t,e){switch(e){case 2:c.staffDesignation.splice(c.staffDesignation.findIndex((function(e){return e.id===t.id})),1);break;case 3:c.staffAttributeSpecification.splice(c.staffAttributeSpecification.findIndex((function(e){return e.id===t.id})),1);break;default:break}}function w(){d.timeSelector={hour:"00",minute:"00",timeStartHour:"00",timeEndHour:"00",timeStartMinute:"00",timeEndMinute:"00"}}return{pageForm:o,state:d,form:c,shifts:$s,combinationSymbols:n,levels:a,daysOfWeekOptions:i,displayOptions:f,selectedStaffs:u,rules:up(),responseDialog:s,confirmDialog:l,onSelectedDaysOption:m,onClickDate:v,openTimeDialog:p,setTimeSelectedDate:b,saveChanges:g,onCancelTimeSet:y,setTime:S,onConfirm:h,removeSelectedStaff:C}}}),fp=dp,mp=(o("2051"),Object(k["a"])(fp,lp,cp,!1,null,"af73949e",null)),gp=mp.exports;uc()(mp,{VAutocomplete:$m["a"],VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCheckbox:du["a"],VChip:Nm["a"],VCol:xc["a"],VDataTable:zu["a"],VDatePicker:$d["a"],VDialog:Au["a"],VExpansionPanel:Kv["a"],VExpansionPanelContent:Yv["a"],VExpansionPanelHeader:Zv["a"],VExpansionPanels:Jv["a"],VForm:fu["a"],VIcon:gc["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSelect:Tf["a"],VSpacer:vc["a"],VSwitch:Xv["a"],VTextField:yu["a"]});var hp=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("シフトの禁止組み合わせ設定")]),o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-form",{ref:"pageForm"},[o("v-row",[o("v-col",{staticClass:"mt-md-9",attrs:{cols:"12",md:"6"}},[o("div",[o("v-text-field",{attrs:{required:"",outlined:"",counter:"256",rules:t.rules.ruleName,"background-color":"white",label:"ルール名"},model:{value:t.form.ruleName,callback:function(e){t.$set(t.form,"ruleName",e)},expression:"form.ruleName"}})],1),o("div",[o("v-select",{attrs:{items:t.levels,rules:t.rules.level,attach:"","background-color":"white",label:"レベル",outlined:""},model:{value:t.form.level,callback:function(e){t.$set(t.form,"level",e)},expression:"form.level"}})],1),o("div",[o("v-select",{attrs:{items:t.shifts,rules:t.rules.shifts,attach:"","background-color":"white",label:"シフトA",multiple:"",clearable:"",outlined:""},model:{value:t.form.shiftA,callback:function(e){t.$set(t.form,"shiftA",e)},expression:"form.shiftA"}})],1),o("div",[o("v-select",{attrs:{items:t.shifts,rules:t.rules.shifts,attach:"","background-color":"white",label:"シフトB",multiple:"",clearable:"",outlined:""},model:{value:t.form.shiftB,callback:function(e){t.$set(t.form,"shiftB",e)},expression:"form.shiftB"}})],1),o("div",[o("v-select",{attrs:{items:t.shifts,attach:"","background-color":"white",label:"シフトC",multiple:"",clearable:"",outlined:""},model:{value:t.form.shiftC,callback:function(e){t.$set(t.form,"shiftC",e)},expression:"form.shiftC"}})],1),o("div",[o("v-select",{attrs:{items:t.shifts,attach:"","background-color":"white",label:"シフトD",multiple:"",clearable:"",outlined:""},model:{value:t.form.shiftD,callback:function(e){t.$set(t.form,"shiftD",e)},expression:"form.shiftD"}})],1),o("div",[o("v-select",{attrs:{items:t.shifts,attach:"","background-color":"white",label:"シフトE",multiple:"",clearable:"",outlined:""},model:{value:t.form.shiftE,callback:function(e){t.$set(t.form,"shiftE",e)},expression:"form.shiftE"}})],1)]),o("v-col",{attrs:{cols:"12",md:"6"}},[o("strong",{staticClass:"d-block mb-3"},[t._v(" このルールの許容範囲設定エリア ")]),o("div",[o("v-text-field",{attrs:{required:"",outlined:"",type:"number",min:0,rules:t.rules.permissableNumberPerPerson,"background-color":"white",label:"一人当たりの許容回数"},model:{value:t.form.permissableNumberPerPerson,callback:function(e){t.$set(t.form,"permissableNumberPerPerson",e)},expression:"form.permissableNumberPerPerson"}})],1),o("div",[o("v-text-field",{attrs:{required:"",outlined:"",type:"number",min:0,rules:t.rules.overallTotalPermissable,"background-color":"white",label:"全体での許容回数"},model:{value:t.form.overallTotalPermissable,callback:function(e){t.$set(t.form,"overallTotalPermissable",e)},expression:"form.overallTotalPermissable"}})],1),o("div",[o("v-select",{attrs:{items:t.daysOfWeekOptions,attach:"","background-color":"white",label:"チェックする曜日設定",multiple:"",clearable:"",outlined:""},on:{change:t.onSelectedDaysOption},model:{value:t.form.daysOfWeek,callback:function(e){t.$set(t.form,"daysOfWeek",e)},expression:"form.daysOfWeek"}})],1),o("div",{staticClass:"mb-5"},[o("v-date-picker",{staticClass:"mt-2",attrs:{type:"date","year-format":null,multiple:"","no-title":"",scrollable:"","full-width":""},model:{value:t.form.selectedDates,callback:function(e){t.$set(t.form,"selectedDates",e)},expression:"form.selectedDates"}})],1)])],1)],1)],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("div",{staticClass:"box-white py-5"},[o("div",{staticClass:"px-4"},[o("v-radio-group",{attrs:{row:!t.$vuetify.breakpoint.xs,"hide-details":""},model:{value:t.state.displayOption,callback:function(e){t.$set(t.state,"displayOption",e)},expression:"state.displayOption"}},t._l(t.displayOptions,(function(t,e){return o("v-radio",{key:e,attrs:{label:t.text,value:t.value}})})),1)],1),o("div",{class:"\n content-tabs\n px-4\n "+(1!=t.state.displayOption?"mt-5 ":"")+"\n "},[2==t.state.displayOption?o("div",{staticClass:"mt-10"},[o("div",[o("v-autocomplete",{attrs:{"return-object":"",items:t.state.staffListData,"item-text":"staffName","item-value":"id",placeholder:"選択されたスタッフはありません。",chips:"",multiple:"",outlined:"","hide-details":"","hide-selected":""},scopedSlots:t._u([{key:"selection",fn:function(e){var n=e.item;return[o("v-chip",{staticClass:"ma-2",attrs:{close:"",color:"primary","text-color":"white"},on:{"click:close":function(e){return t.removeSelectedStaff(n,2)}}},[t._v(" "+t._s(n.staffName)+" ")])]}}],null,!1,676832948),model:{value:t.form.staffDesignation,callback:function(e){t.$set(t.form,"staffDesignation",e)},expression:"form.staffDesignation"}})],1),o("div",{staticClass:"mt-5"},[o("v-switch",{attrs:{label:"リスト"},model:{value:t.state.switch.displayStaffDesignationList,callback:function(e){t.$set(t.state.switch,"displayStaffDesignationList",e)},expression:"state.switch.displayStaffDesignationList"}})],1),t.state.switch.displayStaffDesignationList?o("v-data-table",{attrs:{headers:t.state.staffListHeader,items:t.state.staffListData,"item-key":"id","show-select":"","hide-default-footer":"","hide-default-header":""},model:{value:t.form.staffDesignation,callback:function(e){t.$set(t.form,"staffDesignation",e)},expression:"form.staffDesignation"}}):t._e()],1):t._e(),3==t.state.displayOption?o("div",{staticClass:"mt-10"},[o("div",[o("v-autocomplete",{attrs:{"return-object":"",items:t.state.staffAttributeData,"item-text":"attributeName","item-value":"id",placeholder:"選択されたスタッフはありません。",chips:"",multiple:"",outlined:"","hide-details":"","hide-selected":""},scopedSlots:t._u([{key:"selection",fn:function(e){var n=e.item;return[o("v-chip",{staticClass:"ma-2",attrs:{close:"",color:"primary","text-color":"white"},on:{"click:close":function(e){return t.removeSelectedStaff(n,3)}}},[t._v(" "+t._s(n.attributeName)+" ")])]}}],null,!1,3481818063),model:{value:t.form.staffAttributeSpecification,callback:function(e){t.$set(t.form,"staffAttributeSpecification",e)},expression:"form.staffAttributeSpecification"}})],1),o("div",{staticClass:"mt-5"},[o("v-switch",{attrs:{label:"リスト"},model:{value:t.state.switch.displayStaffAttributeSpecification,callback:function(e){t.$set(t.state.switch,"displayStaffAttributeSpecification",e)},expression:"state.switch.displayStaffAttributeSpecification"}})],1),t.state.switch.displayStaffAttributeSpecification?o("v-data-table",{attrs:{headers:t.state.staffAttributeHeader,items:t.state.staffAttributeData,"item-key":"id","show-select":"","hide-default-footer":"","hide-default-header":""},model:{value:t.form.staffAttributeSpecification,callback:function(e){t.$set(t.form,"staffAttributeSpecification",e)},expression:"form.staffAttributeSpecification"}}):t._e()],1):t._e()])])])],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("div",{staticClass:"box-white"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("div",[o("v-select",{attrs:{label:"曜日ごとの指定",items:t.state.daySpecificationOptions,outlined:"","hide-details":""},model:{value:t.form.dayDisplaySpecification,callback:function(e){t.$set(t.form,"dayDisplaySpecification",e)},expression:"form.dayDisplaySpecification"}})],1)]),o("v-col",{attrs:{cols:"12",md:"6"}},[o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("日")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","sunday",t.form.day.sunday.start)}},model:{value:t.form.day.sunday.start,callback:function(e){t.$set(t.form.day.sunday,"start",e)},expression:"form.day.sunday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","sunday",t.form.day.sunday.end)}},model:{value:t.form.day.sunday.end,callback:function(e){t.$set(t.form.day.sunday,"end",e)},expression:"form.day.sunday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("月")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","monday",t.form.day.monday.start)}},model:{value:t.form.day.monday.start,callback:function(e){t.$set(t.form.day.monday,"start",e)},expression:"form.day.monday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","monday",t.form.day.monday.end)}},model:{value:t.form.day.monday.end,callback:function(e){t.$set(t.form.day.monday,"end",e)},expression:"form.day.monday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("火")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","tuesday",t.form.day.tuesday.start)}},model:{value:t.form.day.tuesday.start,callback:function(e){t.$set(t.form.day.tuesday,"start",e)},expression:"form.day.tuesday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","tuesday",t.form.day.tuesday.end)}},model:{value:t.form.day.tuesday.end,callback:function(e){t.$set(t.form.day.tuesday,"end",e)},expression:"form.day.tuesday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("水")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","wednesday",t.form.day.wednesday.start)}},model:{value:t.form.day.wednesday.start,callback:function(e){t.$set(t.form.day.wednesday,"start",e)},expression:"form.day.wednesday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","wednesday",t.form.day.wednesday.end)}},model:{value:t.form.day.wednesday.end,callback:function(e){t.$set(t.form.day.wednesday,"end",e)},expression:"form.day.wednesday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("木")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","thursday",t.form.day.thursday.start)}},model:{value:t.form.day.thursday.start,callback:function(e){t.$set(t.form.day.thursday,"start",e)},expression:"form.day.thursday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","thursday",t.form.day.thursday.end)}},model:{value:t.form.day.thursday.end,callback:function(e){t.$set(t.form.day.thursday,"end",e)},expression:"form.day.thursday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("金")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","friday",t.form.day.friday.start)}},model:{value:t.form.day.friday.start,callback:function(e){t.$set(t.form.day.friday,"start",e)},expression:"form.day.friday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","friday",t.form.day.friday.end)}},model:{value:t.form.day.friday.end,callback:function(e){t.$set(t.form.day.friday,"end",e)},expression:"form.day.friday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("土")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","saturday",t.form.day.saturday.start)}},model:{value:t.form.day.saturday.start,callback:function(e){t.$set(t.form.day.saturday,"start",e)},expression:"form.day.saturday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","saturday",t.form.day.saturday.end)}},model:{value:t.form.day.saturday.end,callback:function(e){t.$set(t.form.day.saturday,"end",e)},expression:"form.day.saturday.end"}})],1),o("div",{staticClass:"d-flex align-center mb-2"},[o("div",{staticClass:"mr-2 day-label"},[t._v("祝日")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("start","holiday",t.form.day.holiday.start)}},model:{value:t.form.day.holiday.start,callback:function(e){t.$set(t.form.day.holiday,"start",e)},expression:"form.day.holiday.start"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-text-field",{attrs:{outlined:"",readonly:"","hide-details":""},on:{click:function(e){return t.openTimeDialog("end","holiday",t.form.day.holiday.end)}},model:{value:t.form.day.holiday.end,callback:function(e){t.$set(t.form.day.holiday,"end",e)},expression:"form.day.holiday.end"}})],1)])],1)],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("div",[o("v-date-picker",{attrs:{"day-format":t.getDay,"full-width":""},on:{"click:date":t.onClickDate},model:{value:t.state.calendar,callback:function(e){t.$set(t.state,"calendar",e)},expression:"state.calendar"}})],1)])],1)],1)])],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-expansion-panels",[o("v-expansion-panel",[o("v-expansion-panel-header",[t._v(" 詳細な設定 ")]),o("v-expansion-panel-content",[o("div",{staticClass:"d-md-flex align-md-center"},[o("div",{staticClass:"mr-8"},[o("v-checkbox",{attrs:{label:"このルールを使用する"},model:{value:t.form.detailedSettings.useRule,callback:function(e){t.$set(t.form.detailedSettings,"useRule",e)},expression:"form.detailedSettings.useRule"}})],1),o("div",{staticClass:"mr-8"},[o("v-checkbox",{attrs:{label:"このルールを違反として扱わない"},model:{value:t.form.detailedSettings.dontTreatAsViolation,callback:function(e){t.$set(t.form.detailedSettings,"dontTreatAsViolation",e)},expression:"form.detailedSettings.dontTreatAsViolation"}})],1),o("div",[o("v-checkbox",{attrs:{label:"他のルールと矛盾する場合でも自動作成実行可能とする"},model:{value:t.form.detailedSettings.forceExecuteRule,callback:function(e){t.$set(t.form.detailedSettings,"forceExecuteRule",e)},expression:"form.detailedSettings.forceExecuteRule"}})],1),o("div",[o("v-checkbox",{attrs:{label:"このルールの違反を優先して解消する"},model:{value:t.form.resolveViolationRule,callback:function(e){t.$set(t.form,"resolveViolationRule",e)},expression:"form.resolveViolationRule"}})],1),o("div",[o("v-checkbox",{attrs:{label:"スタッフ毎に設定する"},model:{value:t.form.setEachStaff,callback:function(e){t.$set(t.form,"setEachStaff",e)},expression:"form.setEachStaff"}})],1)])])],1)],1)],1)],1)],1),o("div",{staticClass:"content__btn form__btn mt-10"},[o("v-row",[o("v-col",{class:"\n "+(t.$vuetify.breakpoint.xs?"text-right":"")+"\n ",attrs:{cols:"6",sm:"1",md:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:"",to:{name:"shift-table"}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{class:"\n "+(t.$vuetify.breakpoint.xs?"":"text-center")+"\n ",attrs:{cols:"6",sm:"10",md:"10"}},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:function(e){return e.preventDefault(),t.saveChanges.apply(null,arguments)}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v("mdi-content-save")]),t._v(" 設定 ")],1)],1)],1)],1)]),o("v-dialog",{attrs:{width:"290"},model:{value:t.state.showTimeDialog,callback:function(e){t.$set(t.state,"showTimeDialog",e)},expression:"state.showTimeDialog"}},[o("v-card",[o("v-card-title",{staticClass:"text-h5"},[t._v("時間を設定する")]),o("v-card-text",[o("div",{staticClass:"d-flex align-center"},[o("v-select",{attrs:{items:t.state.hours,outlined:"","hide-details":""},model:{value:t.state.timeSelector.hour,callback:function(e){t.$set(t.state.timeSelector,"hour",e)},expression:"state.timeSelector.hour"}}),o("div",{staticClass:"px-2"},[t._v("~")]),o("v-select",{attrs:{items:t.state.minutes,outlined:"","hide-details":""},model:{value:t.state.timeSelector.minute,callback:function(e){t.$set(t.state.timeSelector,"minute",e)},expression:"state.timeSelector.minute"}})],1)]),o("v-card-actions",[o("v-spacer"),o("v-btn",{attrs:{color:"red",text:""},on:{click:t.onCancelTimeSet}},[t._v("キャンセル")]),o("v-btn",{attrs:{color:"primary",dark:""},on:{click:t.setTime}},[t._v("セットする")])],1)],1)],1),o("time-range-picker",{attrs:{show:t.state.showCalendarTimeDialog,"month-day-label":t.state.selectedDate.readable},on:{onClose:function(e){t.state.showCalendarTimeDialog=!1},onSubmit:t.setTimeSelectedDate}}),o("confirmDialog",{attrs:{show:t.confirmDialog.show,title:t.confirmDialog.title,agree:t.confirmDialog.agree,content:t.confirmDialog.content,width:420},on:{close:function(e){t.confirmDialog.show=!1},confirm:t.onConfirm}}),o("response-dialog",{attrs:{show:t.responseDialog.show,color:t.responseDialog.color,message:t.responseDialog.message},on:{close:function(e){t.responseDialog.show=!1}}})],1)},vp=[],pp={shift:function(t){return t&&t.length>0||"シフトを選択して合計します"},staffAttr:function(t){return t&&t.length>0||"スタッフ属性を選択"},staff:function(t){return t&&t.length>0||"スタッフを選ぶ"},limitDigit:function(t){return function(e){var o=parseInt(e);return isNaN(o)?"この項目は必須です":!o||String(o).length<=t||"値は".concat(t,"桁を超えてはなりません")}},limitNumberOfChars:function(t,e){return function(o){return o?!(o&&o.length>=t)||"".concat(e,"は").concat(t,"文字を超えてはなりません"):"を追加してください".concat(e)}},ruleName:[function(t){return!!t||"ルール名を追加してください"},function(t){return t&&t.length<=256||"ルール名は64文字を超えてはなりません"}],level:[function(t){return!!t||"レベルを選択してください"}],shifts:[function(t){return t&&t.length>0||"少なくとも1シフトを選択してください"}],staffA:[function(t){return t&&t.length>0||"少なくとも1人のスタッフを選択してくださいA"}],staffB:[function(t){return t&&t.length>0||"少なくとも1人のスタッフを選択してくださいB"}]},bp=Object(r["b"])({components:{confirmDialog:Yd,responseDialog:tm,timeRangePicker:Bv},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["p"])(),n=Object(r["n"])([{text:"→",value:"→"},{text:"←",value:"←"},{text:"⇔",value:"⇔"},{text:"―",value:"―"}]),a=Object(r["n"])([{text:"絶対",value:"絶対"},{text:"できれば",value:"できれば"},{text:"可能なら",value:"可能なら"}]),i=Object(r["n"])([{text:"各曜日指定",value:1},{text:"平日・休日指定",value:2},{text:"祝日指定",value:3}]),s=Object(r["n"])({show:!1,message:"",color:""}),l=Object(r["n"])({show:!1,title:"確認",agree:"OK"}),c=Object(r["n"])({ruleName:"",level:"絶対",combinationSymbolAB:"",combinationSymbolBC:"",combinationSymbolCD:"",combinationSymbolDE:"",shiftA:[],shiftB:[],shiftC:[],shiftD:[],shiftE:[],staffDesignation:Object.assign([],Hf.dataListRows),staffAttributeSpecification:Object.assign([],Hv.dataListRows),resolveViolationRule:!1,setEachStaff:!1,permissableNumberPerPerson:0,overallTotalPermissable:0,daysOfWeek:[],selectedDates:[],day:{sunday:{start:"00:00",end:"00:00"},monday:{start:"00:00",end:"00:00"},tuesday:{start:"00:00",end:"00:00"},wednesday:{start:"00:00",end:"00:00"},thursday:{start:"00:00",end:"00:00"},friday:{start:"00:00",end:"00:00"},saturday:{start:"00:00",end:"00:00"},holiday:{start:"00:00",end:"00:00"}},detailedSettings:{useRule:!1,dontTreatAsViolation:!1,forceExecuteRule:!1},dayDisplaySpecification:2}),u=Object(r["p"])([]),d=Object(r["n"])({staffListHeader:[{text:"スタッフ名",value:"staffName",sortable:!0}],staffAttributeHeader:[{text:"スタッフ属性",value:"attributeName",sortable:!0}],staffListData:Hf.dataListRows,staffAttributeData:Hv.dataListRows,displayOption:1,displayPanels:[],switch:{displayStaffDesignationList:!1,displayStaffAttributeSpecification:!1},selectedDayTime:{},selectedDate:{date:null,readable:null},showTimeDialog:!1,timeSelector:{hour:"00",minute:"00",timeStartHour:"00",timeEndHour:"00",timeStartMinute:"00",timeEndMinute:"00"},calendar:null,showCalendarTimeDialog:!1,hours:[],minutes:[],daySpecificationOptions:[{text:"週ごとの指定",value:1},{text:"日ごとの指定",value:2},{text:"曜日ごとの指定",value:3}]});d.hours=Object(r["a"])((function(){for(var t=24,e=[],o=0;o0&&r.getDay()<6&&!e.includes(i)&&c.selectedDates.push(i),c.daysOfWeek.includes(3)&&(e.some((function(t){return c.selectedDates.includes(t)}))||(c.selectedDates=c.selectedDates.concat(e)))}},v=function(){o.value.validate()?l.show=!0:Object(Qv["b"])(0)},p=function(t){d.showCalendarTimeDialog=!1},b=function(){d.showTimeDialog=!1,d.selectedDayTime={},I()},y=function(){c.day[d.selectedDayTime.day][d.selectedDayTime.pos]="".concat(d.timeSelector.hour,":").concat(d.timeSelector.minute),d.showTimeDialog=!1,I()},S=function(){var t=["success","error"],e=t[Math.floor(Math.random()*t.length)];l.show=!1,s.show=!1,setTimeout((function(){s.show=!0,"error"==e?(s.color="error",s.message="サンプルエラー通知機能"):(s.color="success",s.message="成功通知機能の例")}),1e3)},D=ml(),C=dl();function w(t,e){switch(e){case 2:c.staffDesignation.splice(c.staffDesignation.findIndex((function(e){return e.id===t.id})),1);break;case 3:c.staffAttributeSpecification.splice(c.staffAttributeSpecification.findIndex((function(e){return e.id===t.id})),1);break;default:break}}function k(t){return t.split("-")}function I(){d.timeSelector={hour:"00",minute:"00",timeStartHour:"00",timeEndHour:"00",timeStartMinute:"00",timeEndMinute:"00"}}return{pageForm:o,form:c,shifts:$s,combinationSymbols:n,levels:a,daysOfWeekOptions:i,state:d,selectedStaffs:u,displayOptions:f,openTimeDialog:g,rules:up(),responseDialog:s,confirmDialog:l,onClickDate:m,onSelectedDaysOption:h,removeSelectedStaff:w,setTimeSelectedDate:p,onCancelTimeSet:b,setTime:y,saveChanges:v,onConfirm:S,staffRows:D,staffAttribute:C,shiftRuleValidate:pp}}}),yp=bp,Sp=Object(k["a"])(yp,hp,vp,!1,null,"b2ecaeaa",null),Dp=Sp.exports;uc()(Sp,{VAutocomplete:$m["a"],VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCheckbox:du["a"],VChip:Nm["a"],VCol:xc["a"],VDataTable:zu["a"],VDatePicker:$d["a"],VDialog:Au["a"],VExpansionPanel:Kv["a"],VExpansionPanelContent:Yv["a"],VExpansionPanelHeader:Zv["a"],VExpansionPanels:Jv["a"],VForm:fu["a"],VIcon:gc["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSelect:Tf["a"],VSpacer:vc["a"],VSwitch:Xv["a"],VTextField:yu["a"]});var Cp=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("staff-combination",{attrs:{"staff-option-a":t.staffA,"staff-option-b":t.staffB},on:{submit:t.onSubmitForm}})],1)])},wp=[],kp=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-form",{ref:"form"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"9"}},[o("v-text-field",{attrs:{rules:t.shiftRuleValidate.ruleName,label:"ルール名",clearable:"",outlined:"",counter:"256","background-color":"white","hide-details":"auto",required:"",dense:""},model:{value:t.formData.ruleName,callback:function(e){t.$set(t.formData,"ruleName",e)},expression:"formData.ruleName"}})],1),o("v-col",{attrs:{cols:"12",md:"3"}},[o("v-select",{attrs:{items:t.levels,rules:t.shiftRuleValidate.level,label:"レベル",outlined:"","background-color":"white","hide-details":"auto",required:"",dense:""},model:{value:t.formData.level,callback:function(e){t.$set(t.formData,"level",e)},expression:"formData.level"}})],1)],1),o("v-row",{staticClass:"mt-0"},[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-combobox",{attrs:{items:t.shifts,"item-text":"name","item-value":"shiftID",rules:t.shiftRuleValidate.shifts,label:"シフト",outlined:"",multiple:"","small-chips":"",clearable:"","deletable-chips":"","background-color":"white",dense:""},model:{value:t.formData.shifts,callback:function(e){t.$set(t.formData,"shifts",e)},expression:"formData.shifts"}})],1)],1),o("v-row",{staticClass:"mt-0"},[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-combobox",{attrs:{items:t.staffOptionA.items,rules:t.shiftRuleValidate.staffA,label:t.staffOptionA.label,"item-value":"staffID","item-text":"staffName",multiple:"","small-chips":"","deletable-chips":"",clearable:"",outlined:"","background-color":"white",dense:""},model:{value:t.formData.staffA,callback:function(e){t.$set(t.formData,"staffA",e)},expression:"formData.staffA"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-combobox",{attrs:{items:t.staffOptionB.items,rules:t.shiftRuleValidate.staffB,label:t.staffOptionB.label,"item-value":"staffID","item-text":"staffName",multiple:"","small-chips":"",clearable:"","deletable-chips":"",outlined:"","background-color":"white",dense:""},model:{value:t.formData.staffB,callback:function(e){t.$set(t.formData,"staffB",e)},expression:"formData.staffB"}})],1)],1),o("v-row",{staticClass:"mt-3"},[o("v-col",{attrs:{cols:"12",md:"4"}},[o("v-card",{staticClass:"pl-3 pr-3"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{min:0,rules:[t.shiftRuleValidate.limitDigit(2)],label:"一人当たりの許容回数",type:"number",outlined:"","background-color":"white","hide-details":"auto",dense:""},model:{value:t.formData.tolerance.timePerPerson,callback:function(e){t.$set(t.formData.tolerance,"timePerPerson",e)},expression:"formData.tolerance.timePerPerson"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{min:0,rules:[t.shiftRuleValidate.limitDigit(2)],label:"全体での許容回数",type:"number",outlined:"","background-color":"white","hide-details":"auto",dense:""},model:{value:t.formData.tolerance.numberOfTimes,callback:function(e){t.$set(t.formData.tolerance,"numberOfTimes",e)},expression:"formData.tolerance.numberOfTimes"}})],1)],1)],1)],1)],1),o("week-settings",{staticClass:"mt-10",attrs:{"check-dow":t.formData.checkDow,orientation:"horizontal"}}),o("v-row",{staticClass:"mt-5"},[o("v-col",{attrs:{cols:"0",md:"6"}}),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-checkbox",{attrs:{label:"このルールを使用する","hide-details":"",required:""},model:{value:t.formData.useRule,callback:function(e){t.$set(t.formData,"useRule",e)},expression:"formData.useRule"}}),o("v-checkbox",{attrs:{label:"このルールを違反として扱わない","hide-details":"",required:""},model:{value:t.formData.notTreatAsViolation,callback:function(e){t.$set(t.formData,"notTreatAsViolation",e)},expression:"formData.notTreatAsViolation"}}),o("v-checkbox",{attrs:{label:"他のルールと矛盾する場合でも自動作成実行可能とする","hide-details":"",required:""},model:{value:t.formData.autoCreateConflicts,callback:function(e){t.$set(t.formData,"autoCreateConflicts",e)},expression:"formData.autoCreateConflicts"}})],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:function(e){t.confirmDialog.show=!0}}},[t._v("設定")])],1)])],1)],1)],1),o("confirm-dialog",{attrs:{show:t.confirmDialog.show,title:t.confirmDialog.title,agree:t.confirmDialog.agree,content:t.confirmDialog.content,width:420},on:{confirm:t.saveStaffCombination,close:function(e){t.confirmDialog.show=!1}}}),o("error-dialog",{attrs:{show:t.errorDialog.show,title:t.errorDialog.title,close:t.errorDialog.close,content:t.errorDialog.content},on:{close:function(e){t.errorDialog.show=!1}}})],1)},Ip=[],xp=Object(r["b"])({components:{confirmDialog:Yd,errorDialog:Ou,weekSettings:yg},props:{staffOptionA:{type:Object,required:!0},staffOptionB:{type:Object,required:!0}},emits:["submit"],setup:function(t,e){var o=ic(),n=0;o.commit("main/changeDrawerContent",{contentId:n});var a=[{text:"絶対",value:"絶対"},{text:"できれば",value:"できれば"},{text:"可能なら",value:"可能なら"}],i=Object(r["n"])({staffHeader:[{text:"スタッフ名",value:"name",sortable:!0}],staffData:o.state.shiftTable.staffs}),s=Object(r["p"])(),l=Object(r["n"])({ruleName:"",level:"絶対",shifts:[],staffA:[],staffB:[],prioritizeResolveViolation:!1,useRule:!0,notTreatAsViolation:!1,autoCreateConflicts:!1,tolerance:{timePerPerson:0,numberOfTimes:0},checkDow:{sun:!1,mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,holSun:!1,holMon:!1,holTue:!1,holWed:!1,holThu:!1,holFri:!1,holSat:!1,substitute:!1,beforeHoliday:!1}}),c=Object(r["n"])({show:!1,title:"確認",close:"OK",content:"スタッフの組み合わせ設定が保存されます、続行しますか?",agree:"OK"}),u=Object(r["n"])({show:!1,title:"エラーが発生しました。",content:"詳細不明のエラーが発生しております。",close:"OK"}),d=function(){var t;c.show=!1,null!==(t=s.value)&&void 0!==t&&t.validate()?e.emit("submit",l):Object(Qv["b"])(0)};return{shifts:$s,levels:a,formData:l,form:s,confirmDialog:c,errorDialog:u,shiftRuleValidate:pp,saveStaffCombination:d,state:i}}}),Tp=xp,Ap=Object(k["a"])(Tp,kp,Ip,!1,null,null,null),_p=Ap.exports;uc()(Ap,{VBtn:mc["a"],VCard:Ic["a"],VCheckbox:du["a"],VCol:xc["a"],VCombobox:sg["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"]});var Op=Object(r["b"])({components:{staffCombination:_p},setup:function(){var t={label:"組み合わせスタッフ属性A",items:zs},e={label:"組み合わせスタッフ属性B",items:zs},o=function(){};return{staffA:t,staffB:e,onSubmitForm:o}}}),Rp=Op,Fp=Object(k["a"])(Rp,Cp,wp,!1,null,null,null),Vp=Fp.exports,jp=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("staff-combination",{attrs:{"staff-option-a":t.staffA,"staff-option-b":t.staffB},on:{submit:t.onSubmitForm}})],1)])},Ep=[],Gp=Object(r["b"])({components:{staffCombination:_p},setup:function(){var t={label:"組み合わせを禁止するスタッフ属性A",items:zs},e={label:"組み合わせを禁止するスタッフ属性B",items:zs},o=function(){};return{staffA:t,staffB:e,onSubmitForm:o}}}),$p=Gp,Np=Object(k["a"])($p,jp,Ep,!1,null,null,null),Lp=Np.exports,Mp=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("v-row",[o("v-col",{attrs:{cols:"12",xl:"9"}},[o("v-text-field",{attrs:{label:"ルール名",clearable:"",outlined:"",counter:"256","background-color":"white","hide-details":"auto",required:"",dense:""},model:{value:t.formContent.rulename,callback:function(e){t.$set(t.formContent,"rulename",e)},expression:"formContent.rulename"}})],1),o("v-col",{attrs:{cols:"12",xl:"3"}},[o("v-select",{attrs:{items:t.levelItems,label:"レベル",outlined:"","background-color":"white","hide-details":"auto",required:"",dense:""},model:{value:t.formContent.level,callback:function(e){t.$set(t.formContent,"level",e)},expression:"formContent.level"}})],1),o("v-col",{attrs:{cols:"12",xl:"6"}},[o("v-autocomplete",{attrs:{items:t.shiftRows,label:"シフトA","item-text":"name","item-value":"shiftID",outlined:"","background-color":"white",required:"",dense:"",clearable:"","deletable-chips":"",chips:"","small-chips":"",multiple:""},model:{value:t.formContent.shiftA,callback:function(e){t.$set(t.formContent,"shiftA",e)},expression:"formContent.shiftA"}})],1),o("v-col",{attrs:{cols:"12",xl:"6"}},[o("v-autocomplete",{attrs:{items:t.shiftRows,label:"シフトB","item-text":"name","item-value":"shiftID",outlined:"","background-color":"white",required:"",dense:"",clearable:"","deletable-chips":"",chips:"","small-chips":"",multiple:""},model:{value:t.formContent.shiftB,callback:function(e){t.$set(t.formContent,"shiftB",e)},expression:"formContent.shiftB"}})],1),o("v-col",{attrs:{cols:"12",xl:"12"}},[o("v-card",{staticClass:"pa-3",attrs:{outlined:""}},[o("v-radio-group",{attrs:{"hide-details":"auto",row:""},scopedSlots:t._u([{key:"label",fn:function(){return[o("div",[o("strong",[t._v("対象スタッフ")])])]},proxy:!0}]),model:{value:t.state.staffSelect,callback:function(e){t.$set(t.state,"staffSelect",e)},expression:"state.staffSelect"}},[o("v-radio",{attrs:{label:"全員",value:1}}),o("v-radio",{attrs:{label:"スタッフ指定",value:2}}),o("v-radio",{attrs:{label:"スタッフ属性指定",value:3}})],1),2===t.state.staffSelect?o("v-autocomplete",{staticClass:"mt-3",attrs:{items:t.staffRows,label:"スタッフ指定","item-text":"staffName","item-value":"staffID",outlined:"","background-color":"white","hide-details":"auto",required:"",dense:"",clearable:"","deletable-chips":"",chips:"","small-chips":"",multiple:""},model:{value:t.state.staffs,callback:function(e){t.$set(t.state,"staffs",e)},expression:"state.staffs"}}):t._e(),3===t.state.staffSelect?o("v-autocomplete",{staticClass:"mt-3",attrs:{items:t.staffAttribute,label:"スタッフ属性指定","item-text":"name","item-value":"staffAttributeGroupID",outlined:"","background-color":"white","hide-details":"auto",required:"",dense:"",clearable:"","deletable-chips":"",chips:"","small-chips":"",multiple:""},model:{value:t.state.staffAttribute,callback:function(e){t.$set(t.state,"staffAttribute",e)},expression:"state.staffAttribute"}}):t._e()],1)],1),o("v-col",{attrs:{cols:"12",xl:"4"}},[o("v-card",{staticClass:"pl-3 pr-3"},[o("v-row",[o("v-col",{attrs:{cols:"6",xl:"6"}},[o("v-text-field",{attrs:{min:0,rules:[t.shiftRuleValidate.limitDigit(2)],label:"一人当たりの許容回数",type:"number",outlined:"","background-color":"white","hide-details":"auto",dense:""},model:{value:t.formContent.tolerance.timePerPerson,callback:function(e){t.$set(t.formContent.tolerance,"timePerPerson",e)},expression:"formContent.tolerance.timePerPerson"}})],1),o("v-col",{attrs:{cols:"6",xl:"6"}},[o("v-text-field",{attrs:{min:1,rules:[t.shiftRuleValidate.limitDigit(2)],label:"全体での許容回数",type:"number",outlined:"","background-color":"white","hide-details":"auto",dense:""},model:{value:t.formContent.tolerance.numberOfTimes,callback:function(e){t.$set(t.formContent.tolerance,"numberOfTimes",e)},expression:"formContent.tolerance.numberOfTimes"}})],1)],1)],1)],1),o("v-col",{attrs:{cols:"6",xl:"2"}},[o("v-text-field",{attrs:{label:"連続勤務日数設定",min:0,max:99,"hide-details":"",type:"number",outlined:"","background-color":"white",dense:""},model:{value:t.formContent.consecutiveWorkingDays,callback:function(e){t.$set(t.formContent,"consecutiveWorkingDays",e)},expression:"formContent.consecutiveWorkingDays"}})],1)],1),o("v-row",[o("v-col",{attrs:{cols:"0",xl:"6"}}),o("v-col",{attrs:{cols:"12",xl:"6"}},[o("v-checkbox",{attrs:{label:"このルールを使用する","hide-details":"",required:""},model:{value:t.formContent.useThisRule,callback:function(e){t.$set(t.formContent,"useThisRule",e)},expression:"formContent.useThisRule"}}),o("v-checkbox",{attrs:{label:"このルールを違反として扱わない","hide-details":"",required:""},model:{value:t.formContent.ruleNotViolation,callback:function(e){t.$set(t.formContent,"ruleNotViolation",e)},expression:"formContent.ruleNotViolation"}}),o("v-checkbox",{attrs:{label:"他のルールと矛盾する場合でも自動作成実行可能とする","hide-details":"",required:""},model:{value:t.formContent.autoCreated,callback:function(e){t.$set(t.formContent,"autoCreated",e)},expression:"formContent.autoCreated"}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v("設定")])],1)])],1)],1)],1)],1),o("confirmDialog",{attrs:{show:t.confirmDialog.show,title:t.confirmDialog.title,agree:t.confirmDialog.agree,content:t.confirmDialog.content,width:420},on:{close:function(e){t.confirmDialog.show=!1},confirm:t.onConfirm}}),o("response-dialog",{attrs:{show:t.responseDialog.show,color:t.responseDialog.color,message:t.responseDialog.message},on:{close:function(e){t.responseDialog.show=!1}}})],1)},Pp=[],Wp=Object(r["b"])({components:{confirmDialog:Yd,responseDialog:tm},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["p"])(),n=Object(r["n"])({editedIndex:"",btnDisable:!0,dialogDelete:!1,desiredData:null,changeRequest:null,shiftA:["shift1","shift2","shift3","shift4"],timePerPerson:0,timesInTotal:0,staffSelect:0,staffs:[],staffAttribute:[]}),a=dl(),i=ml(),s=["日","夜","明"],l=Object(r["n"])([{text:"絶対",value:"絶対"},{text:"できれば",value:"できれば"},{text:"可能なら",value:"可能なら"}]),c=$s,u=Object(r["p"])({ruleName:"",ruleLevel:"絶対",prioritizeAndResolve:!1,forEachStaff:!1,useThisRule:!0,ruleNotViolation:!1,autoCreated:!1,consecutiveWorkingDays:6,tolerance:{timePerPerson:0,numberOfTimes:0}}),d=Object(r["n"])({show:!1,title:"確認",agree:"OK"}),f=Object(r["n"])({show:!1,message:"",color:""}),m=function(){o.value.validate()?d.show=!0:Object(Qv["b"])(0)},g=function(){var t=["success","error"],e=t[Math.floor(Math.random()*t.length)];d.show=!1,f.show=!1,setTimeout((function(){f.show=!0,"error"==e?(f.color="error",f.message="サンプルエラー通知機能"):(f.color="success",f.message="成功通知機能の例")}),1e3)};return{pageForm:o,formContent:u,state:n,levelItems:l,shiftData:s,confirmDialog:d,responseDialog:f,saveChanges:m,onConfirm:g,staffRows:i,staffAttribute:a,shiftRows:c,shiftRuleValidate:pp}},methods:{deleteItem:function(t){this.state.editedIndex=Object.assign({},t),this.state.dialogDelete=!0},openShiftTable:function(){""!==this.state.editedIndex&&this.$router.push({name:"shift-table-select",params:{id:this.state.editedIndex}})},rowClick:function(t,e){e.isSelected?(this.state.editedIndex="",this.state.btnDisable=!0):(this.state.editedIndex=t.id,this.state.btnDisable=!1),e.select(!e.isSelected)}}}),Bp=Wp,Hp=Object(k["a"])(Bp,Mp,Pp,!1,null,"4501f484",null),qp=Hp.exports;uc()(Hp,{VAutocomplete:$m["a"],VBtn:mc["a"],VCard:Ic["a"],VCheckbox:du["a"],VCol:xc["a"],VIcon:gc["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"]});var Qp=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("v-row",[o("v-col",{attrs:{cols:"12",xl:"9"}},[o("v-text-field",{attrs:{rules:t.rules.ruleName,label:"ルール名",clearable:"",outlined:"",counter:"256","background-color":"white","hide-details":"auto",required:"",dense:""},model:{value:t.form.ruleName,callback:function(e){t.$set(t.form,"ruleName",e)},expression:"form.ruleName"}})],1),o("v-col",{attrs:{cols:"12",xl:"3"}},[o("v-select",{attrs:{items:t.levels,label:"レベル",outlined:"","background-color":"white","hide-details":"auto",required:"",dense:""},model:{value:t.form.level,callback:function(e){t.$set(t.form,"level",e)},expression:"form.level"}})],1),o("v-col",{attrs:{cols:"12",xl:"6"}},[o("v-autocomplete",{attrs:{items:t.shiftRows,rules:t.rules.shifts,label:"休日とする対象シフト","item-text":"name","item-value":"shiftID",outlined:"","background-color":"white",required:"",dense:"",clearable:"","deletable-chips":"",chips:"","small-chips":"",multiple:""},model:{value:t.form.shifts,callback:function(e){t.$set(t.form,"shifts",e)},expression:"form.shifts"}})],1),o("v-col",{attrs:{cols:"12",xl:"12"}},[o("v-card",{staticClass:"pa-3",attrs:{outlined:""}},[o("v-radio-group",{attrs:{"hide-details":"auto",row:""},scopedSlots:t._u([{key:"label",fn:function(){return[o("div",[o("strong",[t._v("対象スタッフ")])])]},proxy:!0}]),model:{value:t.state.staffSelect,callback:function(e){t.$set(t.state,"staffSelect",e)},expression:"state.staffSelect"}},[o("v-radio",{attrs:{label:"全員",value:1}}),o("v-radio",{attrs:{label:"スタッフ指定",value:2}}),o("v-radio",{attrs:{label:"スタッフ属性指定",value:3}})],1),2===t.state.staffSelect?o("v-autocomplete",{staticClass:"mt-3",attrs:{items:t.staffRows,label:"スタッフ指定","item-text":"staffName","item-value":"staffID",outlined:"","background-color":"white","hide-details":"auto",required:"",dense:"",clearable:"","deletable-chips":"",chips:"","small-chips":"",multiple:""},model:{value:t.state.staffs,callback:function(e){t.$set(t.state,"staffs",e)},expression:"state.staffs"}}):t._e(),3===t.state.staffSelect?o("v-autocomplete",{staticClass:"mt-3",attrs:{items:t.staffAttribute,label:"スタッフ属性指定","item-text":"name","item-value":"staffAttributeGroupID",outlined:"","background-color":"white","hide-details":"auto",required:"",dense:"",clearable:"","deletable-chips":"",chips:"","small-chips":"",multiple:""},model:{value:t.state.staffAttribute,callback:function(e){t.$set(t.state,"staffAttribute",e)},expression:"state.staffAttribute"}}):t._e()],1)],1)],1),o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-form",{ref:"pageForm"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("div",[o("v-text-field",{attrs:{outlined:"",counter:"256",rules:t.rules.ruleName,"background-color":"white",label:"ルール名"},model:{value:t.form.ruleName,callback:function(e){t.$set(t.form,"ruleName",e)},expression:"form.ruleName"}})],1),o("div",[o("v-select",{attrs:{items:t.levels,attach:"","background-color":"white",label:"レベル",outlined:""},model:{value:t.form.level,callback:function(e){t.$set(t.form,"level",e)},expression:"form.level"}})],1),o("div",[o("v-autocomplete",{attrs:{items:t.shifts,rules:t.rules.shifts,label:"休日とする対象シフト",outlined:"","background-color":"white",required:"",dense:"",clearable:"","deletable-chips":"",chips:"","small-chips":"",multiple:""},model:{value:t.form.shifts,callback:function(e){t.$set(t.form,"shifts",e)},expression:"form.shifts"}})],1),o("div",[o("v-checkbox",{attrs:{label:"このルールの違反を優先して解消する",color:"indigo"},model:{value:t.form.resolveViolationRule,callback:function(e){t.$set(t.form,"resolveViolationRule",e)},expression:"form.resolveViolationRule"}})],1),o("div",[o("v-checkbox",{attrs:{label:"スタッフ毎に設定する",color:"indigo"},model:{value:t.form.setEachStaff,callback:function(e){t.$set(t.form,"setEachStaff",e)},expression:"form.setEachStaff"}})],1),o("strong",{staticClass:"d-block mb-3"},[t._v(" 連休の回数設定エリア ")]),o("div",[o("v-text-field",{attrs:{outlined:"",type:"number",min:0,rules:t.rules.minConsecutiveHolidays,"background-color":"white",label:"期間内につける連休の最低回数"},model:{value:t.form.minConsecutiveHolidays,callback:function(e){t.$set(t.form,"minConsecutiveHolidays",e)},expression:"form.minConsecutiveHolidays"}})],1),o("div",[o("v-checkbox",{attrs:{label:"金土を連休とするかどうか",color:"indigo"},on:{change:t.onHolidaySet},model:{value:t.form.setFridaySaturdayConsecutiveHoliday,callback:function(e){t.$set(t.form,"setFridaySaturdayConsecutiveHoliday",e)},expression:"form.setFridaySaturdayConsecutiveHoliday"}})],1),o("div",[o("v-checkbox",{attrs:{label:"土日を連休とするかどうか",color:"indigo"},on:{change:t.onHolidaySet},model:{value:t.form.setWeekendConsecutiveHoliday,callback:function(e){t.$set(t.form,"setWeekendConsecutiveHoliday",e)},expression:"form.setWeekendConsecutiveHoliday"}})],1),o("div",[o("v-checkbox",{attrs:{label:"日月を連休とするかどうか",color:"indigo"},on:{change:t.onHolidaySet},model:{value:t.form.setDayMonthConsecutiveHoliday,callback:function(e){t.$set(t.form,"setDayMonthConsecutiveHoliday",e)},expression:"form.setDayMonthConsecutiveHoliday"}})],1),o("div",[o("v-text-field",{attrs:{outlined:"",type:"number",min:0,disabled:!t.state.isHolidayPeriodSet,rules:t.rules.consecutiveHolidayPeriodNo,"background-color":"white",label:"期間内の連休のうち、金土、土日、日月の 連休回数"},model:{value:t.form.consecutiveHolidayPeriodNo,callback:function(e){t.$set(t.form,"consecutiveHolidayPeriodNo",e)},expression:"form.consecutiveHolidayPeriodNo"}})],1)]),o("v-col",{attrs:{cols:"12",md:"6"}},[o("strong",{staticClass:"d-block mb-3"},[t._v(" 連休前後の禁止シフト設定エリア ")]),o("div",[o("v-checkbox",{attrs:{label:"連休前後の禁止シフトを指定する",color:"indigo"},model:{value:t.form.setProhibitedShiftsOnConsecutiveHoliday,callback:function(e){t.$set(t.form,"setProhibitedShiftsOnConsecutiveHoliday",e)},expression:"form.setProhibitedShiftsOnConsecutiveHoliday"}})],1),o("div",[o("v-text-field",{attrs:{outlined:"",type:"number",min:0,disabled:!t.form.setProhibitedShiftsOnConsecutiveHoliday,rules:t.rules.permissableViolationNo,"background-color":"white",label:"違反の許容回数"},model:{value:t.form.permissableViolationNo,callback:function(e){t.$set(t.form,"permissableViolationNo",e)},expression:"form.permissableViolationNo"}})],1),o("div",[o("v-autocomplete",{attrs:{items:t.shifts,rules:t.rules.bannedShiftBeforeConsecutiveHolder,label:"連休前の禁止シフト",outlined:"","background-color":"white",required:"",dense:"",clearable:"","deletable-chips":"",chips:"","small-chips":"",multiple:""},model:{value:t.form.bannedShiftBeforeConsecutiveHolder,callback:function(e){t.$set(t.form,"bannedShiftBeforeConsecutiveHolder",e)},expression:"form.bannedShiftBeforeConsecutiveHolder"}})],1),o("div",[o("v-autocomplete",{attrs:{items:t.shifts,rules:t.rules.bannedShiftAfterConsecutiveHolder,label:"連休後の禁止シフト",outlined:"","background-color":"white",required:"",dense:"",clearable:"","deletable-chips":"",chips:"","small-chips":"",multiple:""},model:{value:t.form.bannedShiftAfterConsecutiveHolder,callback:function(e){t.$set(t.form,"bannedShiftAfterConsecutiveHolder",e)},expression:"form.bannedShiftAfterConsecutiveHolder"}})],1),o("strong",{staticClass:"d-block mb-3"},[t._v(" 前月シフト表との境界を連休と含めるか? ")]),o("div",[o("v-radio-group",{model:{value:t.form.includeBoundaryConsecutiveHoliday,callback:function(e){t.$set(t.form,"includeBoundaryConsecutiveHoliday",e)},expression:"form.includeBoundaryConsecutiveHoliday"}},[o("v-radio",{attrs:{label:"含める",value:"ON"}}),o("v-radio",{attrs:{label:"含めない",value:"OFF"}})],1)],1),o("div",[o("v-checkbox",{attrs:{label:"日数に関係なく休みが続いていれば 一回の連休とする",color:"indigo"},on:{change:t.onSetConsecutiveHoliday},model:{value:t.form.setConsecutiveHoliday,callback:function(e){t.$set(t.form,"setConsecutiveHoliday",e)},expression:"form.setConsecutiveHoliday"}})],1),o("div",[o("v-text-field",{attrs:{outlined:"",type:"number",min:0,disabled:!t.state.isConsecutiveHolidaySet,rules:t.rules.consecutiveHolidayNo,"background-color":"white",label:"期間内の連休のうち、金土、土日、日月の 連休回数"},model:{value:t.form.consecutiveHolidayNo,callback:function(e){t.$set(t.form,"consecutiveHolidayNo",e)},expression:"form.consecutiveHolidayNo"}})],1)])],1),o("div",{staticClass:"box-white py-5"},[o("div",{staticClass:"px-4"},[o("v-radio-group",{attrs:{row:"","hide-details":""},model:{value:t.form.displayOption,callback:function(e){t.$set(t.form,"displayOption",e)},expression:"form.displayOption"}},[o("v-radio",{attrs:{label:"全員",value:1}}),o("v-radio",{attrs:{label:"スタッフ指定",value:2}}),o("v-radio",{attrs:{label:"スタッフ属性指定",value:3}})],1)],1),o("div",{class:"\n content-tabs\n px-4\n "+(1!=t.form.displayOption?"mt-5 ":"")+"\n "},[2==t.form.displayOption?o("div",{staticClass:"mt-10"},[o("div",[o("v-autocomplete",{attrs:{"return-object":"",items:t.state.staffListData,"item-text":"staffName","item-value":"id",placeholder:"選択されたスタッフはありません。",chips:"",multiple:"",outlined:"","hide-details":"","hide-selected":""},scopedSlots:t._u([{key:"selection",fn:function(e){var n=e.item;return[o("v-chip",{staticClass:"ma-2",attrs:{close:"",color:"primary","text-color":"white"},on:{"click:close":function(e){return t.removeSelectedStaff(n,2)}}},[t._v(" "+t._s(n.staffName)+" ")])]}}],null,!1,676832948),model:{value:t.form.staffDesignation,callback:function(e){t.$set(t.form,"staffDesignation",e)},expression:"form.staffDesignation"}})],1),o("div",{staticClass:"mt-5"},[o("v-switch",{attrs:{label:"リスト"},model:{value:t.state.switch.displayStaffDesignationList,callback:function(e){t.$set(t.state.switch,"displayStaffDesignationList",e)},expression:"state.switch.displayStaffDesignationList"}})],1),t.state.switch.displayStaffDesignationList?o("v-data-table",{attrs:{headers:t.state.staffListHeader,items:t.state.staffListData,"item-key":"id","show-select":"","hide-default-footer":"","hide-default-header":""},model:{value:t.form.staffDesignation,callback:function(e){t.$set(t.form,"staffDesignation",e)},expression:"form.staffDesignation"}}):t._e()],1):t._e(),3==t.form.displayOption?o("div",{staticClass:"mt-10"},[o("div",[o("v-autocomplete",{attrs:{"return-object":"",items:t.state.staffAttributeData,"item-text":"attributeName","item-value":"id",placeholder:"選択されたスタッフはありません。",chips:"",multiple:"",outlined:"","hide-details":"","hide-selected":""},scopedSlots:t._u([{key:"selection",fn:function(e){var n=e.item;return[o("v-chip",{staticClass:"ma-2",attrs:{close:"",color:"primary","text-color":"white"},on:{"click:close":function(e){return t.removeSelectedStaff(n,3)}}},[t._v(" "+t._s(n.attributeName)+" ")])]}}],null,!1,3481818063),model:{value:t.form.staffAttributeSpecification,callback:function(e){t.$set(t.form,"staffAttributeSpecification",e)},expression:"form.staffAttributeSpecification"}})],1),o("div",{staticClass:"mt-5"},[o("v-switch",{attrs:{label:"リスト"},model:{value:t.state.switch.displayStaffAttributeSpecification,callback:function(e){t.$set(t.state.switch,"displayStaffAttributeSpecification",e)},expression:"state.switch.displayStaffAttributeSpecification"}})],1),t.state.switch.displayStaffAttributeSpecification?o("v-data-table",{attrs:{headers:t.state.staffAttributeHeader,items:t.state.staffAttributeData,"item-key":"id","show-select":"","hide-default-footer":"","hide-default-header":""},model:{value:t.form.staffAttributeSpecification,callback:function(e){t.$set(t.form,"staffAttributeSpecification",e)},expression:"form.staffAttributeSpecification"}}):t._e()],1):t._e()])]),o("v-expansion-panels",{staticClass:"mt-5 mb-5"},[o("v-expansion-panel",[o("v-expansion-panel-header",[t._v("詳細な設定")]),o("v-expansion-panel-content",[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-checkbox",{attrs:{label:"複数の連休の時、前半と後半に分散させる",color:"indigo"},model:{value:t.form.setDisperseMultipleConsecutiveHoliday,callback:function(e){t.$set(t.form,"setDisperseMultipleConsecutiveHoliday",e)},expression:"form.setDisperseMultipleConsecutiveHoliday"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-checkbox",{attrs:{label:"このルールを使用する",color:"indigo"},model:{value:t.form.useRule,callback:function(e){t.$set(t.form,"useRule",e)},expression:"form.useRule"}})],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-checkbox",{attrs:{label:"このルールを違反として扱わない",color:"indigo"},model:{value:t.form.treatAsViolation,callback:function(e){t.$set(t.form,"treatAsViolation",e)},expression:"form.treatAsViolation"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-checkbox",{attrs:{label:"他のルールと矛盾する場合でも自動作成実行可とする",color:"indigo"},model:{value:t.form.autoCreate,callback:function(e){t.$set(t.form,"autoCreate",e)},expression:"form.autoCreate"}})],1)],1)],1)],1)],1)],1)],1)],1)],1),o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.saveChanges}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v("mdi-content-save-check")])],1)],1)])],1)],1),o("confirmDialog",{attrs:{show:t.confirmDialog.show,title:t.confirmDialog.title,agree:t.confirmDialog.agree,width:420},on:{close:function(e){t.confirmDialog.show=!1},confirm:t.onConfirm}}),o("response-dialog",{attrs:{show:t.responseDialog.show,color:t.responseDialog.color,message:t.responseDialog.message},on:{close:function(e){t.responseDialog.show=!1}}})],1)},Up=[],zp=function(){return{ruleName:[function(t){return!!t||"ルール名を追加してください"},function(t){return t&&t.length<=256||"ルール名は64文字を超えてはなりません"}],shifts:[function(t){return t&&Object(a["a"])(t).length>0||"少なくとも1シフトを選択してください"}],minConsecutiveHolidays:[function(t){var e=parseInt(t);return isNaN(e)?"この項目は必須です":!e||String(e).length<3||"値は2桁を超えてはなりません"}],consecutiveHolidayPeriodNo:[function(t){var e=parseInt(t);return!e||String(e).length<3||"値は2桁を超えてはなりません"}],consecutiveHolidayNo:[function(t){var e=parseInt(t);return isNaN(e)?"この項目は必須です":!e||String(e).length<3||"値は2桁を超えてはなりません"}],permissableViolationNo:[function(t){var e=parseInt(t);return isNaN(e)?"この項目は必須です":!e||String(e).length<3||"値は2桁を超えてはなりません"}],bannedShiftBeforeConsecutiveHolder:[function(t){return t&&t.length>0||"少なくとも1シフトを選択してください"}],bannedShiftAfterConsecutiveHolder:[function(t){return t&&t.length>0||"少なくとも1シフトを選択してください"}]}},Kp=Object(r["b"])({components:{confirmDialog:Yd,responseDialog:tm},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["p"])(),n=Object(r["n"])([{text:"絶対",value:"絶対"},{text:"できれば",value:"できれば"},{text:"可能なら",value:"可能なら"}]),a=(dl(),ml(),$s),i=Object(r["n"])({show:!1,message:"",color:""}),s=Object(r["n"])({show:!1,title:"確認",agree:"OK"}),l=Object(r["n"])({ruleName:"",level:"絶対",shifts:[],resolveViolationRule:!1,setEachStaff:!1,minConsecutiveHolidays:1,setFridaySaturdayConsecutiveHoliday:!1,setWeekendConsecutiveHoliday:!1,setDayMonthConsecutiveHoliday:!1,consecutiveHolidayPeriodNo:0,setConsecutiveHoliday:!0,consecutiveHolidayNo:2,setProhibitedShiftsOnConsecutiveHoliday:!1,permissableViolationNo:0,bannedShiftBeforeConsecutiveHolder:[],bannedShiftAfterConsecutiveHolder:[],includeBoundaryConsecutiveHoliday:!0,setDisperseMultipleConsecutiveHoliday:!1,useRule:!0,treatAsViolation:!1,autoCreate:!1,displayOption:1,staffDesignation:[],staffAttributeSpecification:[]}),c=Object(r["n"])({isHolidayPeriodSet:!1,isConsecutiveHolidaySet:!0,switch:{displayStaffDesignationList:!1,displayStaffAttributeSpecification:!1}}),u=function(){o.value.validate()?s.show=!0:Object(Qv["b"])(0)},d=function(){var t=["success","error"],e=t[Math.floor(Math.random()*t.length)];s.show=!1,i.show=!1,setTimeout((function(){i.show=!0,"error"==e?(i.color="error",i.message="サンプルエラー通知機能"):(i.color="success",i.message="成功通知機能の例")}),1e3)},f=function(){c.isHolidayPeriodSet=l.setFridaySaturdayConsecutiveHoliday||l.setWeekendConsecutiveHoliday||l.setDayMonthConsecutiveHoliday},m=function(){l.setConsecutiveHoliday?(c.isConsecutiveHolidaySet=!0,l.consecutiveHolidayNo=2):(c.isConsecutiveHolidaySet=!1,l.consecutiveHolidayNo=1)};function g(t,e){switch(e){case 2:l.staffDesignation.splice(l.staffDesignation.findIndex((function(e){return e.id===t.id})),1);break;case 3:l.staffAttributeSpecification.splice(l.staffAttributeSpecification.findIndex((function(e){return e.id===t.id})),1);break;default:break}}return{pageForm:o,form:l,levels:n,shiftRows:a,state:c,rules:zp(),responseDialog:i,confirmDialog:s,saveChanges:u,onConfirm:d,onHolidaySet:f,onSetConsecutiveHoliday:m,removeSelectedStaff:g}}}),Yp=Kp,Zp=Object(k["a"])(Yp,Qp,Up,!1,null,"a85e11e4",null),Jp=Zp.exports;uc()(Zp,{VAutocomplete:$m["a"],VBtn:mc["a"],VCard:Ic["a"],VCheckbox:du["a"],VChip:Nm["a"],VCol:xc["a"],VDataTable:zu["a"],VExpansionPanel:Kv["a"],VExpansionPanelContent:Yv["a"],VExpansionPanelHeader:Zv["a"],VExpansionPanels:Jv["a"],VForm:fu["a"],VIcon:gc["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSelect:Tf["a"],VSwitch:Xv["a"],VTextField:yu["a"]});var Xp=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("希望シフト受付日デフォルト設定")]),t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-form",{ref:"form"},[o("v-row",[o("v-col",{attrs:{lg:"6",cols:"12"}},[o("v-select",{attrs:{items:t.state.startDays,"background-color":"white",label:"開始日",outlined:""},model:{value:t.formContent.start,callback:function(e){t.$set(t.formContent,"start",e)},expression:"formContent.start"}}),o("v-select",{attrs:{items:t.state.endDays,"background-color":"white",label:"終了日",outlined:""},model:{value:t.formContent.end,callback:function(e){t.$set(t.formContent,"end",e)},expression:"formContent.end"}})],1)],1)],1),o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.submit}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v("mdi-content-save-check")])],1)],1)])],1)],1)]),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.saveSettings}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},tb=[],eb=Object(r["b"])({components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm},setup:function(){var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=1,n=Object(r["n"])({optionSectionID:"",concurrencyStamp:"",start:0,end:0}),a=Object(r["n"])({startDays:[],endDays:[],flg:!1}),i=Object(r["n"])({confirm:{show:!1},error:{show:!1,content:""},response:{show:!1,message:"",color:""}}),s=Da({id:o},{fetchPolicy:"no-cache"}),l=(s.result,s.loading),c=s.onResult,u=(s.error,s.refetch);c((function(t){if(t.data&&t.data.getDesiredApplicationTimeDefault)n.optionSectionID=t.data.getDesiredApplicationTimeDefault.optionSectionID,n.concurrencyStamp=t.data.getDesiredApplicationTimeDefault.concurrencyStamp,n.start=t.data.getDesiredApplicationTimeDefault.start,n.end=t.data.getDesiredApplicationTimeDefault.end,console.log(n);else if(t.errors){var e=pt(t.errors);e.code!==M.QueryRecordNotFound&&(i.error.content=e.message,i.error.show=!0)}}));var d=$i({fetchPolicy:"no-cache"}),f=d.mutate,m=(d.loading,d.error,d.called,d.onDone),g=d.onError;m((function(t){var e,o;a.flg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateDesiredApplicationTimeDefault)&&void 0!==o&&o.succeed&&(i.response.show=!0,i.response.color="success",i.response.message="設定を保存しました"),i.confirm.show=!1,h()})),g((function(t){if(a.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);i.error.content=e.message,i.error.show=!0}else i.error.content="エラーメッセージ表示",i.error.show=!0}));for(var h=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u();case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),i.error.content=Bu,i.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),v=function(){if(!a.flg){a.flg=!0;try{var t={optionSectionID:n.optionSectionID,concurrencyStamp:n.concurrencyStamp,start:n.start,end:n.end};console.log(t),f({model:t})}catch(e){a.flg=!1,i.error.content=Hu,i.error.show=!0}}},p=function(){i.confirm.show=!0},b=1;b<=27;b++)a.startDays.push({value:b,text:String(b)}),a.endDays.push({value:b,text:String(b)});return a.startDays.push({value:0,text:"末日"}),a.endDays.push({value:0,text:"末日"}),h(),{formContent:n,state:a,dialog:i,saveSettings:v,submit:p,isGetLoading:l}}}),ob=eb,nb=Object(k["a"])(ob,Xp,tb,!1,null,null,null),ab=nb.exports;uc()(nb,{VBtn:mc["a"],VCol:xc["a"],VForm:fu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRow:Oc["a"],VSelect:Tf["a"]});var rb=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("スタッフ管理")]),t.isGetStaffManagementLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-card",[o("v-data-table",{attrs:{headers:t.header,items:t.state.rows,search:t.state.search},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("スタッフ一覧")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),o("v-col",{attrs:{cols:"2",md:"2"}},[o("v-select",{attrs:{items:t.status,label:"ステータス","append-icon":"mdi-magnify","item-text":"statusName","item-value":"statusID","hide-details":"",outlined:"","return-object":"","background-color":"white",dense:""},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}})],1)],1)]},proxy:!0},{key:"item.actions",fn:function(e){var n=e.item;return[o("edit-button",{on:{edit:function(e){return t.editItem(n)}}}),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,r=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{id:"transferItem_"+n.staffID,color:"warning",dark:"",fab:"","x-small":""},on:{click:function(e){return t.transferItem(n)}}},"v-btn",r,!1),a),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-account-switch ")])],1)]}}],null,!0)},[o("span",[t._v("異動")])]),o("delete-button",{on:{delete:function(e){return t.deleteItem(n)}}})]}}],null,!0)}),o("v-row",{staticClass:"pt-2"},[o("v-col",{staticClass:"content__btn form__btn",attrs:{cols:"12"}},[o("v-btn",{staticClass:"mb-2 mr-2",attrs:{color:"primary"},on:{click:function(e){return t.createStaff()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-plus-box-outline ")]),t._v(" スタッフ追加 ")],1)],1)],1)],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1)],1)],1)],1)]),o("DeleteDialog",{attrs:{id:"deleteDialog",show:t.dialog.delete.show,width:420,title:"スタッフ削除確認"},on:{close:function(e){t.dialog.delete.show=!1},delete:t.destroy}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}})],1)},ib=[],sb=Object(r["b"])({components:{DeleteDialog:of,ErrorDialog:Ou,ResponseDialog:tm,EditButton:Hg,DeleteButton:cf},setup:function(){var t=ic(),e=1;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({rows:[],search:"",dialogError:!1,dialogImport:!1,deleteTarget:{staffID:0,concurrencyStamp:"",deleteFlag:!1},flg:!1}),n=Dr(E),i=n.loading,s=(n.result,n.error,n.refetch),l=n.onResult;l((function(t){if(!t.error&&t.data.getStaffManagement&&Array.isArray(t.data.getStaffManagement)){var e,n=0,r=t.data.getStaffManagement.map((function(t){var e;return{sort:++n,staffID:t.staffID,staffName:t.staffName,staffSimpleName:t.nickName,sectionName:t.sectionName,statusName:null===(e=Qs.find((function(e){return e.id===t.status})))||void 0===e?void 0:e.name,concurrencyStamp:t.concurrencyStamp,deleteFlag:t.deleteFlag}}));(e=o.rows).splice.apply(e,[0,o.rows.length].concat(Object(a["a"])(r)))}else if(t.errors){var i=pt(t.errors);i.code!==M.QueryRecordNotFound&&(m.error.content=i.message,m.error.show=!0)}}));var c=$n({fetchPolicy:"no-cache"}),u=(c.loading,c.mutate),d=c.onDone,f=c.onError;d((function(t){var e,n;if(o.flg=!1,null!==(e=t.data)&&void 0!==e&&null!==(n=e.deleteFlagChangeStaff)&&void 0!==n&&n.succeed){var a,r,i,s=null===(a=t.data)||void 0===a||null===(r=a.deleteFlagChangeStaff)||void 0===r||null===(i=r.result)||void 0===i?void 0:i.staffID,l=o.rows.findIndex((function(t){return t.staffID===s}));o.rows.splice(l,1)}else if(t.errors){var c=pt(t.errors);c.code!==M.QueryRecordNotFound&&(m.error.content=c.message,m.error.show=!0)}m.delete.show=!1,m.response.show=!0,m.response.color="success",m.response.message="スタッフを削除しました"})),f((function(t){if(console.log("deleteShiftOnError call",t),o.flg=!1,t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(m.error.content=e.message,m.error.show=!0)}}));var m=Object(r["n"])({delete:{show:!1},error:{show:!1,content:""},response:{show:!1,message:"",color:""}}),g=fl(),h=Object(r["n"])({status:{statusID:null,statusName:""}}),v=[{text:"No",value:"sort"},{text:"スタッフ名",value:"staffName"},{text:"略称",value:"staffSimpleName"},{text:"ステータス",value:"statusName",filter:function(t){return-1!=t.indexOf(h.status.statusName)}},{text:"",value:"actions",sortable:!1}],p=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s();case 3:t.next=10;break;case 5:t.prev=5,t.t0=t["catch"](0),console.log("queryError(GQL):",t.t0),m.error.content="データ取得中に問題が発生しました。",m.error.show=!0;case 10:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),b=function(t){o.deleteTarget.staffID=t.staffID,o.deleteTarget.concurrencyStamp=t.concurrencyStamp,o.deleteTarget.deleteFlag=t.deleteFlag,m.delete.show=!0},y=function(){if(!o.flg){o.flg=!0;var t={staffID:o.deleteTarget.staffID,concurrencyStamp:o.deleteTarget.concurrencyStamp,deleteFlag:!o.deleteTarget.deleteFlag};try{u({model:t})}catch(e){console.log("deleteError(GQL):",e),o.flg=!1,m.error.content="データ取得中に問題が発生しました。",m.error.show=!0}}},S=bk(),D=function(){S.push({name:"staffs-create"})},C=function(e){t.commit("staffs/setStaffID",{value:e.staffID}),S.push({name:"staffs-attribute"})},w=function(e){t.commit("staffs/setStaffID",{value:e.staffID}),S.push({name:"staffs-transfer"})};return p(),{form:h,state:o,header:v,status:g,dialog:m,store:t,isGetStaffManagementLoading:i,createStaff:D,deleteItem:b,destroy:y,editItem:C,transferItem:w}}}),lb=sb,cb=Object(k["a"])(lb,rb,ib,!1,null,"08324ab4",null),ub=cb.exports;uc()(cb,{VBtn:mc["a"],VCard:Ic["a"],VCol:xc["a"],VDataTable:zu["a"],VDivider:Tc["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRow:Oc["a"],VSelect:Tf["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"],VTooltip:fd["a"]});var db=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("スタッフの新規登録")]),o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("v-row",[o("v-col",{attrs:{cols:"3"}},[o("v-menu",{attrs:{"close-on-content-click":!0,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{id:"applicableDate",label:"適用年月日","append-icon":"mdi-calendar",rules:t.rules.applicableDate,readonly:"",outlined:"","hide-details":"auto","background-color":"white",dense:""},model:{value:t.formContent.applicableDate,callback:function(e){t.$set(t.formContent,"applicableDate",e)},expression:"formContent.applicableDate"}},"v-text-field",a,!1),n))]}}])},[o("v-date-picker",{attrs:{"no-title":"","day-format":function(t){return new Date(t).getDate()}},model:{value:t.formContent.applicableDate,callback:function(e){t.$set(t.formContent,"applicableDate",e)},expression:"formContent.applicableDate"}})],1)],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{id:"staffName",label:"スタッフ名","hide-details":"auto",outlined:"",counter:"64","background-color":"white",rules:t.rules.staffName,dense:""},model:{value:t.formContent.staffName,callback:function(e){t.$set(t.formContent,"staffName",e)},expression:"formContent.staffName"}})],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{id:"abbreviation",label:"略称","hide-details":"auto",counter:"32",outlined:"","background-color":"white",rules:t.rules.abbreviation,dense:""},model:{value:t.formContent.abbreviation,callback:function(e){t.$set(t.formContent,"abbreviation",e)},expression:"formContent.abbreviation"}})],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{id:"staffCode",label:"スタッフコード","hide-details":"auto",outlined:"",counter:"20","background-color":"white",rules:t.rules.staffCode,dense:""},model:{value:t.formContent.staffCode,callback:function(e){t.$set(t.formContent,"staffCode",e)},expression:"formContent.staffCode"}})],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v(" 設定 "),o("v-icon",{attrs:{dark:"",right:""}},[t._v("mdi-content-save-check")])],1)],1)])],1)],1)],1)],1)],1),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.insert}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}})],1)},fb=[],mb=function(){return{applicableDate:[function(t){return!!t||"適用年月日は必須項目です。"}],registrationTime:[function(t){return!!t||"適用年月日は必須項目です。"}],section:[function(t){return!!t&&-1!==parseInt(t)||"所属は必須項目です。"}],staffName:[function(t){return!!t||"スタッフ名は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=64||"スタッフ名は64文字までです。"}],staffSimpleName:[function(t){return Object(a["a"])(t).length<=32||"略称は32文字までです。"}],staffCode:[function(t){return Object(a["a"])(t).length<=20||"スタッフコードは20文字までです。"},function(t){return/^[0-9a-zA-Z]*$/.test(t)||"スタッフコードは半角英数字のみ使用可能です。"}],abbreviation:[function(t){return Object(a["a"])(t).length<=32||"略称は32文字までです。"}],emailAddress:[function(t){return!!t||"メールアドレスは必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=64||"メールアドレスは64文字以下です。"},function(t){return/^[a-zA-Z0-9!-/:-@¥[-`{-~]*$/.test(t)||"メールアドレスに使用できるのは半角英数字・記号のみです。"}],passWord:[function(t){return!!t||"パスワードは必須項目です。"},function(t){return t&&Object(a["a"])(t).length>=8&&Object(a["a"])(t).length<=32||"パスワードは8文字以上32文字以内です。"},function(t){return/^[a-zA-Z0-9!-/:-@¥[-`{-~]*$/.test(t)||"パスワードに使用できるのは半角英数字・記号のみです。"},function(t){return/(?=.*[A-Z])/.test(t)||"大文字を一つ以上含めてください。"},function(t){return/(?=.*[a-z])/.test(t)||"小文字を一つ以上含めてください。"},function(t){return/(?=.*[0-9])/.test(t)||"数字を一つ以上含めてください。"},function(t){return/(?=.*[!-/:-@¥[-`{-~])/.test(t)||"記号を一つ以上含めてください。"}],staffAttributeGroup:[function(t){return!!t&&-1!==parseInt(t)||"スタッフ属性グループは必須項目です。"}],staffAttributeGroupItem:[function(t){return!!t.length||"スタッフ属性は必須項目です。"}],staffAttributeGroupSingleItem:[function(t){return!!t&&-1!==parseInt(t)||"スタッフ属性は必須項目です。"}],applyDate:[function(t){return!!t||"異動年月日は必須項目です。"}],reasonType:[function(t){return t&&-1!==t||"異動事由は必須項目です。"}],selectedStaffs:[function(t){return!!t.length||"スタッフは必須項目です。"}]}},gb=Object(r["b"])({components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm},setup:function(){var t=1,e=ic(),o=1;e.commit("main/changeDrawerContent",{contentId:o});var n=Object(r["n"])({valid:!1,passWordShow:!1,flg:!1}),a=Object(r["n"])({confirm:{show:!1},response:{show:!1,message:"",color:""},create:{show:!1},error:{show:!1,title:"",close:"",content:""}}),i=Object(r["p"])(),s=Object(r["n"])({applicableDate:"",staffName:"",abbreviation:"",staffCode:""}),l=qr({fetchPolicy:"no-cache"}),c=l.mutate,u=l.loading,d=l.onError,f=l.onDone;f((function(t){n.flg=!1,a.confirm.show=!1,a.create.show=!1,a.response.show=!0,a.response.color="success",a.response.message="スタッフを追加しました"})),d((function(t){if(console.log("insertStaffOnError call",t),n.flg=!1,t.message){var e=pt(t.graphQLErrors);console.log("edata",e),e.code!==M.QueryRecordNotFound&&(a.error.content=t.message,a.error.show=!0)}}));var m=function(){var t;null===(t=i.value)||void 0===t||t.validate(),a.confirm.show=n.valid},g=function(){if(!n.flg){n.flg=!0;var e={sectionID:t,name:s.staffName,nickName:s.abbreviation,code:s.staffCode,applyDate:s.applicableDate+"T00:00:00.000000"};try{c({model:e})}catch(o){console.log("insertError(GQL):",o),n.flg=!1,a.error.content="登録処理中に問題が発生しました。",a.error.show=!0}}};return{form:i,formContent:s,state:n,rules:mb(),dialog:a,insert:g,validate:m,isInsertLoading:u}}}),hb=gb,vb=Object(k["a"])(hb,db,fb,!1,null,"0cc96447",null),pb=vb.exports;uc()(vb,{VBtn:mc["a"],VCol:xc["a"],VDatePicker:$d["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VRow:Oc["a"],VTextField:yu["a"]});var bb=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("スタッフの編集登録")]),o("p",{staticClass:"content__content-txt content-txt"},[t._v("編集登録するスタッフの情報を入力してください。")]),o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{label:"スタッフ名","hide-details":"auto",outlined:"",counter:"64","background-color":"white",dense:"",rules:t.rules.staffName},model:{value:t.formContent.staffName,callback:function(e){t.$set(t.formContent,"staffName",e)},expression:"formContent.staffName"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{label:"略称","hide-details":"auto",counter:"32",outlined:"","background-color":"white",dense:"",rules:t.rules.staffSimpleName},model:{value:t.formContent.staffSimpleName,callback:function(e){t.$set(t.formContent,"staffSimpleName",e)},expression:"formContent.staffSimpleName"}})],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{rules:t.rules.staffCode,counter:"20","hide-details":"auto",label:"スタッフコード",outlined:"","background-color":"white",dense:""},model:{value:t.formContent.code,callback:function(e){t.$set(t.formContent,"code",e)},expression:"formContent.code"}})],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-card",[o("v-data-table",{attrs:{headers:t.header,items:t.state.transferRows,"sort-by":"applyDate"}})],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)])],1)],1)],1)],1)],1),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.saveEdit}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},yb=[],Sb=Object(r["b"])({components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm},data:function(){return{showPassword:!1}},setup:function(){var t=1,e=ic(),o=1;e.commit("main/changeDrawerContent",{contentId:o});var n=Object(r["n"])({transferRows:[],editData:{},dialogError:!1,dialogConfirm:!1,valid:!1,passWordShow:!1}),a=Object(r["n"])({confirm:{show:!1,content:""},error:{show:!1,content:"登録処理中に問題が発生しました。"},response:{show:!1,message:"",color:""}}),i=e.getters["staffs/selectStaffID"],s=nr({id:0},E),l=(s.loading,s.result,s.error,s.refetch),c=s.onResult;c((function(e){if(!e.error&&e.data.getStaff)b.section=t,b.staffID=e.data.getStaff.staffID,b.staffName=e.data.getStaff.name,b.staffSimpleName=e.data.getStaff.nickName,b.code=e.data.getStaff.code,b.status=e.data.getStaff.status,b.deleteFlag=e.data.getStaff.deleteFlag,b.concurrencyStamp=e.data.getStaff.concurrencyStamp,b.registrationTime=e.data.getStaff.registrationTime,b.registrationAccount=e.data.getStaff.registrationAccount;else if(e.errors){var o=pt(e.errors);o.code!==M.QueryRecordNotFound&&(a.error.content=o.message,a.error.show=!0)}}));var u=wr({id:0},E),d=(u.loading,u.result,u.error,u.refetch),f=u.onResult;f((function(t){if(!t.error&&t.data.getStaffTransfers);else if(t.errors){var e=pt(t.errors);e.code!==M.QueryRecordNotFound&&(a.error.content=e.message,a.error.show=!0)}}));var m=rs({fetchPolicy:"no-cache"}),g=m.mutate,h=(m.onError,m.onDone);h((function(t){var e,o;if(a.confirm.show=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateStaff)&&void 0!==o&&o.succeed){var n,r,i;if(null!==(n=t.data.updateStaff.result)&&void 0!==n&&n.staff)b.concurrencyStamp=null===(r=t.data.updateStaff.result)||void 0===r||null===(i=r.staff)||void 0===i?void 0:i.concurrencyStamp;a.response.show=!0,a.response.color="success",a.response.message="設定を保存しました"}}));var v=[{text:"No",value:"staffTransferID",sortable:!1},{text:"適用年月日",value:"applyDate",sortable:!1},{text:"スタッフ名",value:"staffName",sortable:!1},{text:"異動事由",value:"reasonTypeName",sortable:!1}],p=Object(r["p"])(),b=Object(r["n"])({staffID:i,concurrencyStamp:"",registrationTime:"",registrationAccount:"",staffName:"",section:t,staffSimpleName:"",code:"",status:ln.Normal,deleteFlag:!1}),y=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l({id:i});case 3:return t.next=5,d({id:i});case 5:t.next=12;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log("queryError(GQL):",t.t0),a.error.content="データ取得中に問題が発生しました。",a.error.show=!0;case 12:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}(),S=function(){var t;null===(t=p.value)||void 0===t||t.validate(),a.confirm.show=n.valid},D=function(){try{var t={staffID:b.staffID,concurrencyStamp:b.concurrencyStamp,name:b.staffName,nickName:b.staffSimpleName,code:b.code};g({model:t})}catch(e){console.log("updateError(GQL):",e),a.error.content="データ更新中に問題が発生しました。",a.error.show=!0}};return y(),{form:p,formContent:b,state:n,selectStaffID:i,rules:mb(),header:v,dialog:a,queryData:y,validate:S,saveEdit:D}}}),Db=Sb,Cb=Object(k["a"])(Db,bb,yb,!1,null,"346b5329",null),wb=Cb.exports;uc()(Cb,{VBtn:mc["a"],VCard:Ic["a"],VCol:xc["a"],VDataTable:zu["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VTextField:yu["a"]});var kb=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("スタッフの異動")]),t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-row",{staticClass:"mt-4"},[o("v-col",{attrs:{cols:"12"}},[o("v-card",[o("v-card-title",[o("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"検索","hide-details":"",dense:""},model:{value:t.state.commonSearch,callback:function(e){t.$set(t.state,"commonSearch",e)},expression:"state.commonSearch"}})],1),o("v-data-table",{attrs:{headers:t.header,items:t.state.transferRows,search:t.state.commonSearch,"single-select":"",height:"300","item-key":"staffTransferID","sort-by":"applyDate","sort-desc":"","disable-pagination":"","hide-default-footer":""},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("異動履歴")])],1)]},proxy:!0},{key:"item.no",fn:function(e){var n=e.index;return[o("td",[t._v(t._s(n+1))])]}},{key:"item.actions",fn:function(e){var n=e.item;return[t.enabledButton(n)?o("delete-button",{on:{delete:function(e){return t.deleteValidate(n)}}}):t._e()]}}],null,!0)})],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12",lg:"3"}},[o("v-menu",{attrs:{"close-on-content-click":!0,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{id:"applyDate",label:"異動年月日","append-icon":"mdi-calendar",outlined:"",readonly:"","hide-details":"auto",rules:t.rules.applyDate,"background-color":"white",dense:""},on:{"click:clear":function(e){t.formContent.applyDate=null}},model:{value:t.formContent.applyDate,callback:function(e){t.$set(t.formContent,"applyDate",e)},expression:"formContent.applyDate"}},"v-text-field",a,!1),n))]}}],null,!1,1220905186)},[o("v-date-picker",{attrs:{"no-title":"","day-format":function(t){return new Date(t).getDate()}},model:{value:t.formContent.applyDate,callback:function(e){t.$set(t.formContent,"applyDate",e)},expression:"formContent.applyDate"}})],1)],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12",lg:"3"}},[o("v-select",{attrs:{id:"reasonType",items:t.reasonList,label:"異動事由","item-value":"reasonTypeID","item-text":"reasonTypeName","hide-details":"auto",outlined:"","background-color":"white",rules:t.rules.reasonType,dense:""},model:{value:t.formContent.reasonType,callback:function(e){t.$set(t.formContent,"reasonType",e)},expression:"formContent.reasonType"}})],1)],1),t.isRename?o("v-row",[o("v-col",{attrs:{cols:"12",lg:"6"}},[o("v-text-field",{attrs:{id:"name",label:"スタッフ名","hide-details":"auto",outlined:"",counter:"64","background-color":"white",rules:t.rules.staffName,dense:""},model:{value:t.formContent.name,callback:function(e){t.$set(t.formContent,"name",e)},expression:"formContent.name"}})],1)],1):t._e(),t.isRename?o("v-row",[o("v-col",{attrs:{cols:"12",lg:"6"}},[o("v-text-field",{attrs:{id:"nickName",label:"略称","hide-details":"auto",counter:"32",outlined:"","background-color":"white",rules:t.rules.abbreviation,dense:""},model:{value:t.formContent.nickName,callback:function(e){t.$set(t.formContent,"nickName",e)},expression:"formContent.nickName"}})],1)],1):t._e()],1)])],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)])],1)],1)],1)],1)]),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,content:t.dialog.confirm.content,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.insertTransfer}}),o("ConfirmDialog",{attrs:{show:t.dialog.deleteConfirm.show,content:t.dialog.deleteConfirm.content,width:420},on:{close:function(e){t.dialog.deleteConfirm.show=!1},confirm:t.deleteTransfer}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{close:function(e){t.dialog.delete.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},Ib=[],xb=Object(r["b"])({components:{ConfirmDialog:Yd,DeleteDialog:of,ErrorDialog:Ou,ResponseDialog:tm,deleteButton:cf},setup:function(){var t=ic(),e=1;t.commit("main/changeDrawerContent",{contentId:e});var o=1,n=t.getters["staffs/selectStaffID"],i=Object(r["n"])({searchReasonType:"",searchApplyDate:"",dialogDelete:!1,dialogConfirm:!1,dialogError:!1,valid:!1,ableSection:!1,commonSearch:"",staff:{},transferRows:[],latestStaff:{},deleteTransferID:0,deleteTransferconcurrencyStamp:"",flg:!1,delFlg:!1}),s=[{text:"No",value:"no",sortable:!0},{text:"異動年月日",value:"applyDate",sortable:!0},{text:"スタッフ名",value:"name",sortable:!1},{text:"異動事由",value:"reasonType",sortable:!0},{text:"",value:"actions",sortable:!1}],l=Object(r["n"])({applyDate:"",reasonType:void 0,section:-1,name:"",nickName:""}),c=Object(r["n"])({confirm:{show:!1,title:"",close:"キャンセル",content:"この異動履歴を保存しますか。"},deleteConfirm:{show:!1,title:"",close:"キャンセル",content:"この異動履歴を削除しますか。"},error:{show:!1,title:"",close:"キャンセル",content:"エラーが発生しました。"},delete:{show:!1,title:"",close:"キャンセル",content:"この異動履歴を削除しますか?"},response:{show:!1,message:"",color:""}});function u(t){var e=String(t).split(/[-T]/);return"".concat(e[0],"-").concat(e[1],"-").concat(e[2])}var d=Object(r["a"])((function(){return l.reasonType==Xo.Rename})),f=mb();Object(r["s"])((function(){return l.reasonType}),(function(t){i.ableSection=ll().includes(t),l.section=-1}));var m=wr({id:n},j),g=(m.result,m.loading),h=m.onResult,v=(m.error,m.refetch);h((function(t){if(console.log(!t.error),console.log("getStaffTransfers",t.data.getStaffTransfers),t.error){if(t.errors){console.log("ここきてる?");var e=pt(t.errors);e.code!==M.QueryRecordNotFound&&(c.error.content=e.message,c.error.show=!0)}}else{var o,n,r;if(null!==(o=t.data.getStaffTransfers)&&void 0!==o&&o.staff&&(i.staff=t.data.getStaffTransfers.staff),null!==(n=t.data.getStaffTransfers)&&void 0!==n&&n.staffTransfers){var s,l=t.data.getStaffTransfers.staffTransfers.map((function(t){var e;return{concurrencyStamp:t.concurrencyStamp,registrationTime:t.registrationTime,registrationAccount:t.registrationAccount,staffTransferID:t.staffTransferID,staffID:t.staffID,sectionID:t.sectionID,reasonType:null===(e=Us.find((function(e){return e.id===t.reasonType})))||void 0===e?void 0:e.name,applyDate:u(t.applyDate),name:t.name,nickName:t.nickName,description:t.description}}));(s=i.transferRows).splice.apply(s,[0,i.transferRows.length].concat(Object(a["a"])(l))),console.log("transferRows1",i.transferRows)}null!==(r=t.data.getStaffTransfers)&&void 0!==r&&r.latestStaff&&(i.latestStaff=t.data.getStaffTransfers.latestStaff)}}));var p=ri({fetchPolicy:"no-cache"}),b=p.mutate,y=(p.loading,p.error,p.called,p.onDone),S=p.onError;y((function(t){var e,o;console.log("insertOnDone"),null!==(e=t.data)&&void 0!==e&&null!==(o=e.insertStaffTransfer)&&void 0!==o&&o.succeed&&(c.response.show=!0,c.response.color="success",c.response.message="異動情報を保存しました"),i.flg=!1,c.confirm.show=!1,I()})),S((function(t){if(i.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(c.error.content=t.message,c.error.show=!0)}}));var D=na({fetchPolicy:"no-cache"}),C=D.mutate,w=(D.loading,D.error,D.called,D.onDone),k=D.onError;w((function(t){var e,o;null!==(e=t.data)&&void 0!==e&&null!==(o=e.deleteStaffTransfer)&&void 0!==o&&o.succeed&&(c.response.show=!0,c.response.color="success",c.response.message="異動情報を削除しました"),i.delFlg=!1,c.deleteConfirm.show=!1,I()})),k((function(t){if(i.delFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(c.error.content=t.message,c.error.show=!0)}}));var I=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("queryData"),t.prev=1,t.next=4,v({id:n});case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](1),c.error.content=Bu,c.error.show=!0;case 10:case"end":return t.stop()}}),t,null,[[1,6]])})));return function(){return t.apply(this,arguments)}}(),x=function(){var t=i.transferRows.find((function(t){return t.staffTransferID==i.latestStaff.staffTransferID}));i.valid&&((null===t||void 0===t?void 0:t.applyDate)0?o("v-col",{attrs:{md:"10"}},[o("v-card",{staticClass:"mt-3 pa-3"},[t._v(" スタッフ属性 "),t._l(t.formContent.staffAttributes,(function(e,n){return[o("v-row",{key:n,staticClass:"mt-3"},[o("v-col",{attrs:{cols:"12",md:"3"}},[o("v-text-field",{attrs:{"hide-details":"auto",label:"属性グループ",outlined:"","background-color":"white",readonly:""},model:{value:e.staffAttributeGroup.name,callback:function(o){t.$set(e.staffAttributeGroup,"name",o)},expression:"item.staffAttributeGroup.name"}})],1),o("v-col",{attrs:{cols:"12",md:"9"}},[o("v-autocomplete",{attrs:{"return-object":"",items:t.formContent.staffAttributeGroupList[n],"item-text":"name","item-value":"staffAttributeGroupItemID",label:"属性",placeholder:"選択された属性はありません。",chips:"",multiple:"",outlined:"","hide-details":"","hide-selected":""},scopedSlots:t._u([{key:"selection",fn:function(e){var n=e.item;return[o("v-chip",{staticClass:"ma-2",attrs:{close:"",color:"primary","text-color":"white"},on:{"click:close":function(e){return t.removeSelectedStaffAttr(n)}}},[t._v(" "+t._s(n.name)+" ")])]}}],null,!0),model:{value:t.formContent.staffAttributeSpecification,callback:function(e){t.$set(t.formContent,"staffAttributeSpecification",e)},expression:"formContent.staffAttributeSpecification"}})],1)],1)]})),o("v-col",{attrs:{cols:"3"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{staticClass:"ma-5",attrs:{color:"primary",dark:""},on:{click:t.addGroup}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-plus-box-outline ")]),t._v(" 追加 ")],1)],1)])],2)],1):t._e()],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),t.formContent.staffAttributeHistoryID>0?o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)]):t._e()],1)],1)],1)],1)],1)]),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.saveEdit}}),o("ConfirmDialog",{attrs:{show:t.dialog.createConfirm.show,title:t.dialog.createConfirm.title,agree:t.dialog.createConfirm.agree,content:t.dialog.createConfirm.content,width:420},on:{confirm:t.saveInsert,close:function(e){t.dialog.createConfirm.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.saveDeleteSettings,close:function(e){t.dialog.delete.show=!1}}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}}),o("v-dialog",{attrs:{width:"1000px"},model:{value:t.dialog.create.show,callback:function(e){t.$set(t.dialog.create,"show",e)},expression:"dialog.create.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("スタッフ属性(追加)")]),o("v-card-text",[o("v-container",[o("v-form",{ref:"createForm",model:{value:t.state.isCreateValid,callback:function(e){t.$set(t.state,"isCreateValid",e)},expression:"state.isCreateValid"}},[o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"3"}},[o("v-menu",{attrs:{"close-on-content-click":!0,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:"適用年月日","append-icon":"mdi-calendar",rules:t.rules.applicableDate,readonly:"",outlined:"","hide-details":"auto",dense:"","background-color":"white"},model:{value:t.formCreateContent.applyDate,callback:function(e){t.$set(t.formCreateContent,"applyDate",e)},expression:"formCreateContent.applyDate"}},"v-text-field",a,!1),n))]}}])},[o("v-date-picker",{attrs:{"no-title":"","day-format":function(t){return new Date(t).getDate()}},model:{value:t.formCreateContent.applyDate,callback:function(e){t.$set(t.formCreateContent,"applyDate",e)},expression:"formCreateContent.applyDate"}})],1)],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-card",{staticClass:"mt-3 pa-3"},[t._v(" スタッフ属性 "),t._l(t.formCreateContent.staffAttributes,(function(e,n){return[o("v-row",{key:n,staticClass:"mt-3"},[o("v-col",{attrs:{cols:"3"}},[o("v-text-field",{staticClass:"point-event-none",attrs:{"hide-details":"auto",label:"属性グループ",outlined:"","background-color":"white",readonly:""},model:{value:e.staffAttributeGroup.name,callback:function(o){t.$set(e.staffAttributeGroup,"name",o)},expression:"item.staffAttributeGroup.name"}})],1),o("v-col",{attrs:{cols:"9"}},[o("v-autocomplete",{attrs:{"return-object":"",items:t.formCreateContent.staffAttributeGroupList[n],label:"属性","item-text":"name","item-value":"staffAttributeGroupItemID",placeholder:"選択された属性はありません。",chips:"",multiple:"",outlined:"","hide-details":"","hide-selected":""},scopedSlots:t._u([{key:"selection",fn:function(e){var n=e.item;return[o("v-chip",{staticClass:"ma-2",attrs:{close:"",color:"primary","text-color":"white"},on:{"click:close":function(e){return t.removeAddAttrItem(n)}}},[t._v(" "+t._s(n.name)+" ")])]}}],null,!0),model:{value:t.formCreateContent.staffAttributeSpecification,callback:function(e){t.$set(t.formCreateContent,"staffAttributeSpecification",e)},expression:"formCreateContent.staffAttributeSpecification"}})],1)],1)]})),o("v-col",{attrs:{cols:"3"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{staticClass:"ma-5",attrs:{color:"primary",dark:""},on:{click:t.addGroup}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-plus-box-outline ")]),t._v(" 追加 ")],1)],1)])],2)],1)],1)])],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.create.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.createValidate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("v-dialog",{attrs:{width:"300px"},model:{value:t.dialog.groupSelect.show,callback:function(e){t.$set(t.dialog.groupSelect,"show",e)},expression:"dialog.groupSelect.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("属性グループ(追加)")]),o("v-card-text",[o("v-container",[o("v-col",{attrs:{cols:"12"}},[o("v-select",{attrs:{items:t.attributeGroupList,"return-object":"","hide-details":"auto","item-text":"name","item-value":"staffAttributeGroupID",label:"属性グループ",outlined:"","background-color":"white",dense:""},model:{value:t.state.selectedAttributeGroup,callback:function(e){t.$set(t.state,"selectedAttributeGroup",e)},expression:"state.selectedAttributeGroup"}})],1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.groupSelect.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.addAttributeGroup}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1)],1)},Rb=[],Fb=(o("4fad"),Object(r["b"])({components:{DeleteButton:cf,ConfirmDialog:Yd,DeleteDialog:of,ErrorDialog:Ou,ResponseDialog:tm},data:function(){return{showPassword:!1}},setup:function(){var t=1,e=ic(),o=1;e.commit("main/changeDrawerContent",{contentId:o});var i=e.getters["staffs/selectStaffID"],s=Object(r["n"])({historyRows:[],staffAttributeGroups:[],allAttributeGroupItems:[],allAttributeGroupList:[],staffAttributeGroupItem:[],staffAttributeGroupList:[[]],staffAttributes:[],valid:!1,isCreateValid:!1,staffAttributeSpecification:[],selectedAttributeGroup:{staffAttributeGroupID:"",name:""},deleteTarget:{staffAttributeHistoryID:-1,concurrencyStamp:""},flg:!1,updFlg:!1,delFlg:!1}),l=Object(r["p"])(),c=Object(r["n"])({applyDate:"",staffAttributes:[],staffAttributeGroupList:[[]],staffAttributeSpecification:[]}),u=Object(r["p"])(),d=Object(r["n"])({staffID:i,section:t,concurrencyStamp:"",registrationTime:"",registrationAccount:"",staffName:"",staffSimpleName:"",code:"",status:ln.Normal,deleteFlag:!1,staffAttributeHistoryID:-1,staffAttributes:[],staffAttributeGroupList:[[]],staffAttributeSpecification:[]}),f=Object(r["n"])({confirm:{show:!1,content:""},createConfirm:{show:!1},delete:{show:!1,content:"選択した属性情報を削除します、続行しますか?"},error:{show:!1,content:"登録処理中に問題が発生しました。"},response:{show:!1,message:"",color:""},create:{show:!1},groupSelect:{show:!1}}),m=nr({id:0},E),g=m.loading,h=(m.result,m.error,m.refetch),v=m.onResult;v((function(e){if(!e.error&&e.data.getStaff)d.section=t,d.staffID=e.data.getStaff.staffID,d.staffName=e.data.getStaff.name,d.staffSimpleName=e.data.getStaff.nickName,d.code=e.data.getStaff.code,d.status=e.data.getStaff.status,d.deleteFlag=e.data.getStaff.deleteFlag;else if(e.errors){var o=pt(e.errors);o.code!==M.QueryRecordNotFound&&(f.error.content=o.message,f.error.show=!0)}}));var p=pr({id:0},E),b=(p.loading,p.result,p.error,p.refetch),y=p.onResult;y((function(t){if(!t.error&&t.data.getStaffAttributeHistories){var e;d.concurrencyStamp=t.data.getStaffAttributeHistories.latestStaffModel.concurrencyStamp;var o=t.data.getStaffAttributeHistories.historyModels.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{applyDate:L(t.applyDate)})}));(e=s.historyRows).splice.apply(e,[0,s.historyRows.length].concat(Object(a["a"])(o)))}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(f.error.content=r.message,f.error.show=!0)}}));var S=yr({id:0},E),D=(S.loading,S.result,S.error,S.refetch),C=S.onResult;C((function(t){if(!t.error&&t.data.getStaffAttributes){var e,o=t.data.getStaffAttributes.commonGroups.map((function(t){return Object(n["a"])({},t)}));(e=s.staffAttributeGroups).splice.apply(e,[0,s.staffAttributeGroups.length].concat(Object(a["a"])(o))),d.staffAttributes=B(s.staffAttributeGroups),d.staffAttributeSpecification=H(s.staffAttributeGroups),s.staffAttributeGroups.forEach((function(t,e){d.staffAttributeGroupList[e]=s.allAttributeGroupItems.filter((function(e){return""===e.staffAttributeGroupID||e.staffAttributeGroupID===t.staffAttributeGroupCommonID}))}))}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(f.error.content=r.message,f.error.show=!0)}}));var w=dr(E),k=(w.result,w.loading,w.onResult),I=(w.error,w.refetch);k((function(t){if(!t.error&&t.data.getStaffAttributeGroupCommons&&Array.isArray(t.data.getStaffAttributeGroupCommons)){var e,o,n=[];t.data.getStaffAttributeGroupCommons.map((function(t){t.deleteFlag||n.push({staffAttributeGroupID:t.staffAttributeGroupCommonID,name:t.name})}));(e=s.allAttributeGroupList).splice.apply(e,[0,s.allAttributeGroupList.length].concat(n));var a=[];t.data.getStaffAttributeGroupCommons.map((function(t){if(t.staffAttributeGroupCommonItems)return t.staffAttributeGroupCommonItems.map((function(t){t.deleteFlag||a.push({staffAttributeGroupID:t.staffAttributeGroupCommonID,staffAttributeGroupItemID:t.staffAttributeGroupCommonItemID,name:t.name})}))}));(o=s.allAttributeGroupItems).splice.apply(o,[0,s.allAttributeGroupItems.length].concat(a))}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(f.error.content=r.message,f.error.show=!0)}}));var x=ni({fetchPolicy:"no-cache"}),T=x.mutate,A=x.onError,_=x.onDone;_((function(t){s.flg=!1,f.createConfirm.show=!1,f.create.show=!1,f.response.show=!0,f.response.color="success",f.response.message="スタッフ属性を追加しました",q()})),A((function(t){if(console.log("insertStaffAttributesOnError call",t),s.flg=!1,t.message){var e=pt(t.graphQLErrors);console.log("edata",e),e.code!==M.QueryRecordNotFound&&(f.error.content=e.code+t.message,f.error.show=!0)}}));var O=ea({fetchPolicy:"no-cache"}),R=(O.loading,O.mutate),F=O.onDone,V=O.onError;F((function(t){var e,o,n;s.delFlg=!1;var a=null===(e=t.data)||void 0===e||null===(o=e.deleteStaffAttributeHistory)||void 0===o||null===(n=o.result)||void 0===n?void 0:n.historyModel.staffAttributeHistoryID,r=s.historyRows.findIndex((function(t){return t.staffAttributeHistoryID===a}));s.historyRows.splice(r,1),d.staffAttributeHistoryID=-1,f.delete.show=!1,f.response.show=!0,f.response.color="success",f.response.message="シフトを削除しました"})),V((function(t){if(s.delFlg=!1,t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(f.error.content=e.message,f.error.show=!0)}}));var j=ra({fetchPolicy:"no-cache"}),G=j.mutate,$=j.onError,N=j.onDone;function L(t){var e=String(t).split(/[-T]/);return"".concat(e[0],"-").concat(e[1],"-").concat(e[2])}N((function(t){var e,o;s.updFlg=!1,f.confirm.show=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.editStaffAttributes)&&void 0!==o&&o.succeed&&(f.response.show=!0,f.response.color="success",f.response.message="設定を保存しました")})),$((function(t){if(console.log("editStaffAttributesOnError call",t),s.updFlg=!1,t.message){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(f.error.content=e.message,f.error.show=!0)}f.confirm.show=!1}));var P=[{text:"適用年月日",value:"applyDate",sortable:!0},{text:"",value:"actions"}],W=[{text:"スタッフ属性",value:"attributeName",sortable:!0}];function B(t){var e=t.map((function(t){return{staffAttributeGroup:{staffAttributeGroupID:t.staffAttributeGroupCommonID,name:t.name},staffAttributeGroupItem:t.items.map((function(e){return{staffAttributeGroupItemID:e.staffAttributeGroupCommonItemID,staffAttributeGroupID:t.staffAttributeGroupCommonID,name:e.item.name}}))}}));return e}function H(t){var e=[];return t.map((function(t){return{staffAttributeGroupItem:t.items.map((function(o){e.push({staffAttributeGroupItemID:o.staffAttributeGroupCommonItemID,staffAttributeGroupID:t.staffAttributeGroupCommonID,name:o.item.name})}))}})),e}var q=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,h({id:i});case 3:return t.next=5,b({id:i});case 5:t.next=12;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log("queryError(GQL):",t.t0),f.error.content="データ取得中に問題が発生しました。",f.error.show=!0;case 12:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}(),Q=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,D({id:e});case 3:t.next=10;break;case 5:t.prev=5,t.t0=t["catch"](0),console.log("queryError(GQL):",t.t0),f.error.content="スタッフ属性情報を取得中に問題が発生しました。",f.error.show=!0;case 10:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e){return t.apply(this,arguments)}}(),U=function(){var t;null===(t=u.value)||void 0===t||t.validate(),f.confirm.show=s.valid},z=function(){var t;null===(t=l.value)||void 0===t||t.validate(),f.createConfirm.show=s.isCreateValid},K=function(){if(!s.updFlg){s.updFlg=!0;var t=[];s.staffAttributeGroups.map((function(e){if(e.items)return e.items.map((function(e){t.push({concurrencyStamp:e.concurrencyStamp,staffAttributesCommonID:e.staffAttributesCommonID,staffAttributeGroupCommonItemID:e.staffAttributeGroupCommonItemID,deleted:e.item.deleteFlag})}))}));var e=[];d.staffAttributeSpecification.map((function(t){e.push({concurrencyStamp:void 0,staffAttributesCommonID:void 0,staffAttributeGroupCommonItemID:t.staffAttributeGroupItemID,deleted:!1})}));var o=e.filter((function(e){var o=!0;return t.filter((function(t){t.staffAttributeGroupCommonItemID===e.staffAttributeGroupCommonItemID&&(o=!1)})),o})),r=t.filter((function(t){var o=!0;return e.filter((function(e){e.staffAttributeGroupCommonItemID===t.staffAttributeGroupCommonItemID&&(o=!1)})),o})),i=r.map((function(t){return t.staffAttributeGroupCommonItemID})),l=t.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{deleted:i.includes(t.staffAttributeGroupCommonItemID)})}));l.splice.apply(l,[l.length,0].concat(Object(a["a"])(o)));try{var c={staffID:d.staffID,staffAttributeHistoryID:d.staffAttributeHistoryID,staffAttributesCommons:l,staffAttributesSections:[]};G({model:c})}catch(u){console.log("updateError(GQL):",u),s.updFlg=!1,f.error.content="データ更新中に問題が発生しました。",f.error.show=!0}}},Y=function(t){s.deleteTarget.staffAttributeHistoryID=t.staffAttributeHistoryID,s.deleteTarget.concurrencyStamp=t.concurrencyStamp,f.delete.show=!0},Z=function(){if(!s.delFlg){s.delFlg=!0;var t={staffAttributeHistoryID:s.deleteTarget.staffAttributeHistoryID,historyConcurrencyStamp:s.deleteTarget.concurrencyStamp,latestConcurrencyStamp:d.concurrencyStamp};try{R({model:t})}catch(e){console.log("deleteError(GQL):",e),s.delFlg=!1}f.delete.show=!1}},J=function(t,e){e.isSelected||(e.select(!e.isSelected),d.staffAttributeHistoryID=t.staffAttributeHistoryID,Q(t.staffAttributeHistoryID))},tt=function(){c.staffAttributeGroupList.splice(0,c.staffAttributeGroupList.length,s.allAttributeGroupItems),f.create.show=!0},et=function(){if(!s.flg){s.flg=!0;var t=c.staffAttributeSpecification,e=Object.entries(t.reduce((function(t,e){return null==t[e.staffAttributeGroupID]&&(t[e.staffAttributeGroupID]=[]),t[e.staffAttributeGroupID].push({staffAttributeGroupCommonItemID:e.staffAttributeGroupItemID}),t}),{})).map((function(t){var e=Object(st["a"])(t,2),o=e[0],n=e[1];return{staffAttributeGroupCommonID:o,items:n}})),o={staffID:d.staffID,concurrencyStamp:d.concurrencyStamp,applyDate:c.applyDate+"T00:00:00.000000",commonGroups:e.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{staffAttributeGroupCommonID:Number(t.staffAttributeGroupCommonID)})})),sectionGroups:[]};try{T({model:o})}catch(a){console.log("insertError(GQL):",a),s.flg=!1,f.error.content="登録処理中に問題が発生しました。",f.error.show=!0}}},ot=Object(r["a"])((function(){var t=[];return t=f.create.show?c.staffAttributes.map((function(t){return t.staffAttributeGroup.staffAttributeGroupID})):d.staffAttributes.map((function(t){return t.staffAttributeGroup.staffAttributeGroupID})),s.allAttributeGroupList.filter((function(e){return!t.includes(e.staffAttributeGroupID)}))})),nt=function(){f.groupSelect.show=!0},at=function(){if(s.selectedAttributeGroup.staffAttributeGroupID){var t={staffAttributeGroup:s.selectedAttributeGroup,staffAttributeGroupItem:[]};if(f.create.show){var e=c.staffAttributes.length;c.staffAttributes.splice(e,0,t),it(s.selectedAttributeGroup.staffAttributeGroupID,e)}else{var o=d.staffAttributes.length;d.staffAttributes.splice(o,0,t),rt(s.selectedAttributeGroup.staffAttributeGroupID,o)}s.selectedAttributeGroup={staffAttributeGroupID:"",name:""}}f.groupSelect.show=!1},rt=function(t,e){d.staffAttributeGroupList[e]=s.allAttributeGroupItems.filter((function(e){return""===e.staffAttributeGroupID||e.staffAttributeGroupID===t}))},it=function(t,e){c.staffAttributeGroupList[e]=s.allAttributeGroupItems.filter((function(e){return""===e.staffAttributeGroupID||e.staffAttributeGroupID===t}))},lt=function(t){d.staffAttributeSpecification.splice(d.staffAttributeSpecification.findIndex((function(e){return e.staffAttributeGroupItemID===t.staffAttributeGroupItemID})),1)},ct=function(t){c.staffAttributeSpecification.splice(c.staffAttributeSpecification.findIndex((function(e){return e.staffAttributeGroupItemID===t.staffAttributeGroupItemID})),1)},ut=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,I();case 3:t.next=10;break;case 5:t.prev=5,t.t0=t["catch"](0),console.log("queryError(GQL):",t.t0),f.error.content="スタッフ属性アイテムを取得中に問題が発生しました。",f.error.show=!0;case 10:q();case 11:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}();return ut(),{form:u,formContent:d,createForm:l,formCreateContent:c,state:s,selectStaffID:i,attributeGroupList:ot,rules:mb(),header:P,staffAttributeHeader:W,dialog:f,isGetStaffLoading:g,queryHistory:q,deleteHistory:Y,validate:U,createValidate:z,saveEdit:K,saveInsert:et,saveDeleteSettings:Z,rowClick:J,createClick:tt,addGroup:nt,addAttributeGroup:at,removeSelectedStaffAttr:lt,removeAddAttrItem:ct,changeStaffKey:rt,changeGroupKey:it}}})),Vb=Fb,jb=Object(k["a"])(Vb,Ob,Rb,!1,null,"5f06eada",null),Eb=jb.exports;uc()(jb,{VAutocomplete:$m["a"],VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VChip:Nm["a"],VCol:xc["a"],VContainer:eu["a"],VDataTable:zu["a"],VDatePicker:$d["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VProgressCircular:Md["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"],VToolbar:Ku["a"]});var Gb=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("スタッフの表示順設定")]),o("v-row",[o("v-col",{staticClass:"mt-4",attrs:{cols:"12",md:"6"}}),o("v-col",{staticClass:"text-right pt-5",attrs:{cols:"12",md:"6"}},[o("v-menu",{attrs:{"offset-y":"",bottom:"",left:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"mr-4",attrs:{color:"blue-grey lighten-4",fab:"",small:""}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-help-circle-outline ")])],1)]}}])},[o("v-list",[o("v-list-item-content",[t._v(" 1.スタッフ名をドラッグ&ドロップし任意の順番に並べ替える ")]),o("v-list-item-content",[t._v(" 2.設定ボタンをクリックし保存")])],1)],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-card",[o("v-data-table",{attrs:{headers:t.header,items:t.state.staffSortRow},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("スタッフ情報")])],1)]},proxy:!0},{key:"body",fn:function(e){var n=e.items;return[o("draggable",{attrs:{tag:"tbody"},model:{value:t.state.staffSortRow,callback:function(e){t.$set(t.state,"staffSortRow",e)},expression:"state.staffSortRow"}},t._l(n,(function(e,n){return o("tr",{key:n},[o("td",{attrs:{cols:"2"}},[t._v(t._s(n+1))]),o("td",[t._v(t._s(e.name))])])})),0)]}}])})],1)],1),t.showSubmitControl?o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.buttonClick}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check")])],1)],1)])],1)],1):t._e()],1)],1),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,content:t.dialog.confirm.content,width:420},on:{confirm:t.setOrder,close:function(e){t.dialog.confirm.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,agree:t.dialog.error.agree,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}})],1)},$b=[],Nb=Object(r["b"])({props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{Draggable:Zm.a,ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm},setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=!1;t.commit("shiftTable/setIsDisplayShiftTable",{isDisp:o});var n=t.getters["shiftTable/staffs"],a=t.getters["shiftTable/selectShift"],i=a.shiftTableStatus.shiftTableStatusID,s=Object(r["n"])({staffSortRow:[],sort:[]}),l=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"保存します、続行しますか?"},confirmSection:{show:!1,title:"確認",agree:"はい",sub1:"いいえ",content:"並び順は更新されています。保存しますか?"},response:{show:!1,message:"",color:""},error:{show:!1,title:"",close:"",content:""}}),c=[{text:"No",value:"no",sortable:!1,width:"5%"},{text:"スタッフ名",value:"name",sortable:!1}],u=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:try{console.log("staffs",n),s.staffSortRow=n,s.sort=n}catch(e){l.error.content=Bu,l.error.show=!0}case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),d=function(){l.confirm.show=!0},f=function(){try{var t=JSON.stringify(s.sort),e=JSON.stringify(s.staffSortRow);if(console.log("dpt",t),console.log("dptafter",e),t===e)console.log("変更なし"),l.error.content=qu,l.error.show=!0,l.confirm.show=!1;else if(console.log("変更あり"),s.staffSortRow){var o=s.staffSortRow.map((function(t){return{concurrencyStamp:t.concurrencyStamp2,staffID:t.id}}));console.log("setOrder",i,o),g({id:i,models:o})}}catch(n){l.error.content=Hu,l.error.show=!0}},m=Ii({fetchPolicy:"no-cache"}),g=m.mutate,h=(m.loading,m.error,m.called,m.onDone);m.onError;return h((function(t){var e;if(console.log("setOrderOnDone call"),t.data&&null!==(e=t.data.setOrderStaffDisplayOrder)&&void 0!==e&&e.succeed)l.confirm.show=!1,l.response.show=!0,l.response.color="success",l.response.message="更新成功";else if(t.errors){var o=pt(t.errors);o.code!==M.QueryRecordNotFound&&(l.error.content=o.message,l.error.show=!0)}})),u(),{staffs:n,state:s,initialize:u,buttonClick:d,setOrder:f,header:c,dialog:l}}}),Lb=Nb,Mb=Object(k["a"])(Lb,Gb,$b,!1,null,"65a1c5a6",null),Pb=Mb.exports;uc()(Mb,{VBtn:mc["a"],VCard:Ic["a"],VCol:xc["a"],VDataTable:zu["a"],VIcon:gc["a"],VList:Gc["a"],VListItemContent:Lc["a"],VMenu:Nd["a"],VRow:Oc["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var Wb=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("スタッフの複数追加")]),o("p",{staticClass:"content__content-txt content-txt"},[t._v("複数追加するスタッフの情報を入力してください。")]),o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{id:"section",items:t.section,label:"所属","item-text":"name","item-value":"sectionID","hide-details":"auto",outlined:"","return-object":"",rules:t.rules.section,"background-color":"white",dense:""},model:{value:t.formContent.section,callback:function(e){t.$set(t.formContent,"section",e)},expression:"formContent.section"}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-btn",{staticClass:"mr-2 mb-2",attrs:{id:"addColumn",dark:"",color:"primary"},on:{click:t.addColumn}},[o("v-icon",[t._v("mdi-plus")])],1),o("v-btn",{staticClass:"mr-2 mb-2",attrs:{id:"deleteColumn",dark:"",color:"error"},on:{click:t.deleteColumn}},[o("v-icon",[t._v("mdi-minus")])],1),o("v-btn",{staticClass:"mr-2 mb-2",attrs:{id:"importFile",color:"primary",dark:""},on:{click:t.importFile}},[t._v(" インポート "),o("v-icon",{attrs:{right:"",dark:""}},[t._v(" mdi-cloud-upload ")])],1)],1),o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-simple-table",{scopedSlots:t._u([{key:"default",fn:function(){return[o("thead",[o("tr",[o("th",{staticClass:"text-left"},[t._v("適用年月日")]),o("th",{staticClass:"text-left"},[t._v("スタッフ名")]),o("th",{staticClass:"text-left"},[t._v("略称")]),o("th",{staticClass:"text-left"},[t._v("スタッフコード")]),o("th",{staticClass:"text-left"},[t._v("メールアドレス")]),o("th",{staticClass:"text-left"},[t._v("パスワード")])])]),o("tbody",t._l(t.state.repeatNumber,(function(e,n){return o("tr",{key:e},[o("td",[o("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,r=e.attrs;return[o("v-text-field",t._g(t._b({staticClass:"mb-7",attrs:{id:"registrationTime",label:"適用年月日","prepend-icon":"mdi-calendar",rules:t.rules.registrationTime,readonly:"",outlined:"","hide-details":"auto",dense:"","background-color":"white"},model:{value:t.formContent.registrationTime[n],callback:function(e){t.$set(t.formContent.registrationTime,n,e)},expression:"formContent.registrationTime[k]"}},"v-text-field",r,!1),a))]}}],null,!0)},[o("v-date-picker",{attrs:{"no-title":"","day-format":function(t){return new Date(t).getDate()}},model:{value:t.formContent.registrationTime[n],callback:function(e){t.$set(t.formContent.registrationTime,n,e)},expression:"formContent.registrationTime[k]"}})],1)],1),o("td",[o("v-text-field",{attrs:{id:"staffName",label:"スタッフ名",outlined:"",counter:"64",dense:"",rules:t.rules.staffName},model:{value:t.formContent.staffName[n],callback:function(e){t.$set(t.formContent.staffName,n,e)},expression:"formContent.staffName[k]"}})],1),o("td",[o("v-text-field",{attrs:{id:"abbreviation",label:"略称","hide-details":"auto",counter:"32",outlined:"",dense:"",rules:t.rules.abbreviation},model:{value:t.formContent.abbreviation[n],callback:function(e){t.$set(t.formContent.abbreviation,n,e)},expression:"formContent.abbreviation[k]"}})],1),o("td",[o("v-text-field",{attrs:{id:"staffCode",label:"スタッフコード","hide-details":"auto",outlined:"",counter:"20",dense:"",rules:t.rules.staffCode},model:{value:t.formContent.staffCode[n],callback:function(e){t.$set(t.formContent.staffCode,n,e)},expression:"formContent.staffCode[k]"}})],1),o("td",[o("v-text-field",{attrs:{id:"emailAddress",label:"メールアドレス","hide-details":"auto",outlined:"",counter:"64",dense:"",rules:t.rules.emailAddress},model:{value:t.formContent.emailAddress[n],callback:function(e){t.$set(t.formContent.emailAddress,n,e)},expression:"formContent.emailAddress[k]"}})],1),o("td",[o("v-text-field",{attrs:{id:"passWord",type:t.state.passWordShow?"text":"password","append-icon":t.state.passWordShow?"mdi-eye":"mdi-eye-off",label:"パスワード","hide-details":"auto",outlined:"",counter:"32",rules:t.rules.passWord,dense:""},on:{"click:append":function(e){t.state.passWordShow=!t.state.passWordShow}},model:{value:t.formContent.passWord[n],callback:function(e){t.$set(t.formContent.passWord,n,e)},expression:"formContent.passWord[k]"}})],1)])})),0)]},proxy:!0}])})],1),t.showSubmitControl?o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)])],1)],1):t._e()],1)],1)],1),o("confirmDialog",{attrs:{id:"confirmDialog",show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.store}}),o("errorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("v-dialog",{attrs:{width:"400px"},model:{value:t.state.dialogImport,callback:function(e){t.$set(t.state,"dialogImport",e)},expression:"state.dialogImport"}},[o("v-card",[o("v-card-title",{staticClass:"grey lighten-2"},[t._v(" ファイルのインポート ")]),o("v-card-text",[o("v-file-input",{attrs:{accept:"*.csv",label:"CSVファイルの選択"}})],1),o("v-card-actions",[o("v-spacer"),o("v-btn",{attrs:{color:"darken-1 secondary"},on:{click:function(e){t.state.dialogImport=!1}}},[t._v("キャンセル")]),o("v-btn",{attrs:{color:"primary darken-1"},on:{click:function(e){t.state.dialogImport=!1}}},[t._v("インポート")]),o("v-spacer")],1)],1)],1)],1)},Bb=[],Hb=Object(r["b"])({props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{confirmDialog:Yd,errorDialog:Ou},setup:function(){var t=ic(),e=1;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({dialogError:!1,dialogConfirm:!1,dialogImport:!1,valid:!1,passWordShow:!1,repeatNumber:1}),n=Object(r["n"])({staffName:[""],section:"",abbreviation:[""],staffCode:[""],emailAddress:[""],passWord:[""],registrationTime:[""]}),a=Object(r["n"])({confirm:{show:!1},error:{show:!1,content:"登録処理中に問題が発生しました。"}});return{formContent:n,state:o,section:Ms(),rules:mb(),form:Object(r["p"])(),dialog:a}},methods:{validate:function(){var t;null===(t=this.form)||void 0===t||t.validate(),this.dialog.confirm.show=this.state.valid},addColumn:function(){this.formContent.staffName.push(""),this.formContent.abbreviation.push(""),this.formContent.staffCode.push(""),this.formContent.emailAddress.push(""),this.formContent.passWord.push(""),this.formContent.registrationTime.push(""),this.state.repeatNumber++},deleteColumn:function(){this.state.repeatNumber>1&&(this.formContent.staffName.splice(this.state.repeatNumber,1),this.formContent.abbreviation.splice(this.state.repeatNumber,1),this.formContent.staffCode.splice(this.state.repeatNumber,1),this.formContent.emailAddress.splice(this.state.repeatNumber,1),this.formContent.passWord.splice(this.state.repeatNumber,1),this.formContent.registrationTime.splice(this.state.repeatNumber,1),this.state.repeatNumber--)},importFile:function(){this.state.dialogImport=!0},store:function(){this.showErrorDialog()},showErrorDialog:function(){this.dialog.error.show=!0}}}),qb=Hb,Qb=o("23a7"),Ub=Object(k["a"])(qb,Wb,Bb,!1,null,"ba9326ac",null),zb=Ub.exports;uc()(Ub,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCol:xc["a"],VDatePicker:$d["a"],VDialog:Au["a"],VFileInput:Qb["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VRow:Oc["a"],VSelect:Tf["a"],VSimpleTable:Rc["a"],VSpacer:vc["a"],VTextField:yu["a"]});var Kb=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("スタッフ属性一括連携")]),o("p",{staticClass:"content__content-txt content-txt"},[t._v("一括連携するスタッフの情報を入力してください。")]),o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-select",{attrs:{items:t.section,label:"所属","item-text":"name","item-value":"sectionID","hide-details":"auto",outlined:"","return-object":"","background-color":"white",dense:""},model:{value:t.searchForm.section,callback:function(e){t.$set(t.searchForm,"section",e)},expression:"searchForm.section"}})],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-card",[o("v-data-table",{attrs:{id:"selectedStaffs",headers:t.header,items:t.rows,search:t.state.search,"sort-by":["sort"],"item-key":"staffID","show-select":""},model:{value:t.formContent.selectedStaffs,callback:function(e){t.$set(t.formContent,"selectedStaffs",e)},expression:"formContent.selectedStaffs"}})],1)],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{id:"applicableDate",label:"適用年月日","prepend-icon":"mdi-calendar",readonly:"",outlined:"","hide-details":"auto",rules:t.rules.applicableDate,dense:"","background-color":"white"},model:{value:t.formContent.applicableDate,callback:function(e){t.$set(t.formContent,"applicableDate",e)},expression:"formContent.applicableDate"}},"v-text-field",a,!1),n))]}}])},[o("v-date-picker",{attrs:{"no-title":"","day-format":function(t){return new Date(t).getDate()}},model:{value:t.formContent.applicableDate,callback:function(e){t.$set(t.formContent,"applicableDate",e)},expression:"formContent.applicableDate"}})],1)],1),[o("v-row",[o("v-col",[o("v-select",{attrs:{id:"staffAttributeGroup",items:t.staffAttributeGroups,label:"スタッフ属性グループ","item-text":"name","item-value":"staffAttributeGroupID","hide-details":"auto",outlined:"","background-color":"white",dense:"",rules:t.rules.staffAttributeGroup},model:{value:t.formContent.staffAttributeGroup,callback:function(e){t.$set(t.formContent,"staffAttributeGroup",e)},expression:"formContent.staffAttributeGroup"}})],1),o("v-col",[o("v-select",{attrs:{id:"staffAttributeGroupItem",items:t.staffAttributeGroupList,disabled:!t.formContent.staffAttributeGroup,label:"スタッフ属性","item-text":"name","item-value":"staffAttributeGroupItemID","hide-details":"auto",outlined:"","background-color":"white",dense:"",rules:t.rules.staffAttributeGroupSingleItem,"return-object":""},model:{value:t.formContent.staffAttributeGroupItem,callback:function(e){t.$set(t.formContent,"staffAttributeGroupItem",e)},expression:"formContent.staffAttributeGroupItem"}})],1)],1)],t.showSubmitControl?o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)])],1)],1)],1):t._e()],2)],1),o("confirmDialog",{attrs:{show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.store}}),o("errorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}})],1)},Yb=[],Zb=Object(r["b"])({props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{confirmDialog:Yd,errorDialog:Ou},setup:function(){var t=ic(),e=1;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({dialogError:!1,dialogConfirm:!1,valid:!1,passWordShow:!1,search:"",selected:[]}),n=Object(r["n"])({applyDate:"",staffAttributeGroup:"",staffAttributeGroupItem:"",selectedStaffs:[]}),a=Object(r["n"])({section:{sectionID:-1,name:""}}),i=[{text:"No",value:"staffID"},{text:"スタッフ名",value:"staffName"},{text:"略称",value:"staffSimpleName"},{text:"所属",value:"sectionName",filter:function(t){return-1!=t.indexOf(a.section.name)}},{text:"",value:"actions",sortable:!1}],s=ul(),l=Object(r["a"])((function(){return s.filter((function(t){return""===t.staffAttributeGroupID||t.staffAttributeGroupID===n.staffAttributeGroup}))})),c=Object(r["n"])({confirm:{show:!1,content:"入力された内容で登録を実施致します。よろしいですか?"},error:{show:!1,content:""}});return{dialog:c,searchForm:a,formContent:n,state:o,section:Ms(),staffAttributeGroups:cl(),staffAttributeGroupItems:s,staffAttributeGroupList:l,form:Object(r["p"])(),header:i,rows:ml(),rules:mb()}},methods:{validate:function(){var t;this.formContent.selectedStaffs.length?(null===(t=this.form)||void 0===t||t.validate(),this.dialog.confirm.show=this.state.valid):this.showErrorDialog("スタッフが選択されていません。")},store:function(){this.showErrorDialog("登録処理中に問題が発生しました。")},showErrorDialog:function(t){this.dialog.error={show:!0,content:t}}}}),Jb=Zb,Xb=Object(k["a"])(Jb,Kb,Yb,!1,null,"3fd4cb8e",null),ty=Xb.exports;uc()(Xb,{VBtn:mc["a"],VCard:Ic["a"],VCol:xc["a"],VDataTable:zu["a"],VDatePicker:$d["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"]});var ey=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("スタッフ属性作成")]),t.getStaffAttributeGroupCommonsLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-form",[o("v-row",[o("v-col",{attrs:{cols:"12",lg:"6"}},[o("v-card",[o("v-card-title",[o("v-text-field",{class:{"point-event-none":t.state.enabled||t.state.enabledItem},attrs:{"append-icon":"mdi-magnify",label:"検索","hide-details":"",dense:""},model:{value:t.state.commonSearch,callback:function(e){t.$set(t.state,"commonSearch",e)},expression:"state.commonSearch"}})],1),o("div",{class:{"point-event-none":t.state.enabled}},[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.commonHeader,items:t.dispStaffAttributeGroupCommonRow,search:t.state.commonSearch,"item-key":"staffAttributeGroupCommonID","items-per-page":15,"single-select":"",height:"450","fixed-header":"",dense:"","hide-default-footer":"","disable-pagination":""},on:{"click:row":t.commonRowClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("属性グループ")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),t.state.isDisabledEdit?t._e():o("div",{staticClass:"content-nowrap"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:"",small:""},on:{click:function(e){t.dialog.createCommonDialog.show=!0}}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-plus-box-outline ")])],1)]}}],null,!1,3893634330)},[o("span",[t._v("追加")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:"",small:""},on:{click:t.sortClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-sort ")])],1)]}}],null,!1,2979856631)},[o("span",[t._v("並べ替え")])])],1),t.state.isDisabled?t._e():o("div",{staticClass:"content-nowrap"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:"",small:""},on:{click:t.saveClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-content-save-check ")])],1)]}}],null,!1,1298492952)},[o("span",[t._v("保存")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"#B0BEC5",dark:"",small:""},on:{click:t.doneClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-close-box-outline ")])],1)]}}],null,!1,814094328)},[o("span",[t._v("終了")])])],1),o("v-spacer")],1)]},proxy:!0},t.state.isButtonClick?{key:"body",fn:function(e){var n=e.items;return[o("draggable",{attrs:{tag:"tbody"},model:{value:t.state.staffAttributeGroupCommonAdminRow,callback:function(e){t.$set(t.state,"staffAttributeGroupCommonAdminRow",e)},expression:"state.staffAttributeGroupCommonAdminRow"}},t._l(n,(function(e,n){return o("tr",{key:n},[o("td",[t._v(t._s(e.names))]),o("td",[o("div",{staticClass:"content-nowrap"},[o("edit-button",{attrs:{btn:!0},on:{edit:function(o){return t.editCommonSettings(e)}}}),o("delete-button",{attrs:{btn:!0},on:{delete:function(o){return t.deleteCommonClick(e)}}})],1)])])})),0)]}}:{key:"item.actions",fn:function(e){var n=e.item;return[o("div",{staticClass:"content-nowrap"},[o("edit-button",{on:{edit:function(e){return t.editCommonSettings(n)}}}),o("delete-button",{on:{delete:function(e){return t.deleteCommonClick(n)}}})],1)]}}],null,!0)})],1)],1)],1),o("v-col",{attrs:{cols:"12",lg:"6"}},[o("v-card",[o("v-card-title",[o("v-text-field",{class:{"point-event-none":t.state.enabled||t.state.enabledItem},attrs:{"append-icon":"mdi-magnify",label:"検索","hide-details":"",dense:""},model:{value:t.state.commonItemSearch,callback:function(e){t.$set(t.state,"commonItemSearch",e)},expression:"state.commonItemSearch"}})],1),o("div",{class:{"point-event-none":t.state.enabledItem}},[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.commonItemHeader,items:t.dispStaffAttributeGroupCommonItemAdminRow,search:t.state.commonItemSearch,"item-key":"staffAttributeGroupCommonItemID","items-per-page":15,"single-select":"",height:"450","fixed-header":"",dense:"","hide-default-footer":"","disable-pagination":""},on:{"click:row":t.commonItemRowClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("属性リスト")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),t.state.isItemSelect?t._e():o("div",{staticClass:"content-nowrap"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"mb-2 mr-2",attrs:{color:"primary",dark:"",small:""},on:{click:function(e){t.dialog.createItemDialog.show=!0}}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-plus-box-outline ")])],1)]}}],null,!1,887372994)},[o("span",[t._v("追加")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"mb-2 mr-2",attrs:{color:"primary",dark:"",small:""},on:{click:t.sortItemClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-sort ")])],1)]}}],null,!1,2525404482)},[o("span",[t._v("並べ替え")])])],1),t.state.isDisabledItem?t._e():o("div",{staticClass:"content-nowrap"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"mb-2 mr-2",attrs:{color:"primary",dark:"",small:""},on:{click:t.saveItemClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-content-save-check ")])],1)]}}],null,!1,2193200589)},[o("span",[t._v("保存")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"mb-2 mr-2",attrs:{color:"#B0BEC5",dark:"",small:""},on:{click:t.doneItemClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-close-box-outline ")])],1)]}}],null,!1,390469165)},[o("span",[t._v("終了")])])],1),o("span",{staticClass:"label-text label-text-staffattribute-group"},[t._v(" "+t._s(t.state.selectCommonName))])],1)]},proxy:!0},t.state.isButtonClickItem?{key:"body",fn:function(e){var n=e.items;return[o("draggable",{attrs:{tag:"tbody"},model:{value:t.state.staffAttributeGroupCommonItemAdminRow,callback:function(e){t.$set(t.state,"staffAttributeGroupCommonItemAdminRow",e)},expression:"state.staffAttributeGroupCommonItemAdminRow"}},t._l(n,(function(e,n){return o("tr",{key:n},[o("td",[t._v(t._s(e.names))]),o("td",[o("div",{staticClass:"content-nowrap"},[o("edit-button",{attrs:{btn:!0},on:{edit:function(o){return t.editCommonItemSettings(e)}}}),o("delete-button",{attrs:{btn:!0},on:{delete:function(o){return t.deleteCommonItemClick(e)}}})],1)])])})),0)]}}:null,{key:"item.actions",fn:function(e){var n=e.item;return[o("div",{staticClass:"content-nowrap"},[o("edit-button",{on:{edit:function(e){return t.editCommonItemSettings(n)}}}),o("delete-button",{on:{delete:function(e){return t.deleteCommonItemClick(n)}}})],1)]}}],null,!0)})],1)],1)],1),t.showSubmitControl?o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1)],1):t._e()],1)],1)],1)]),o("Organization-setting-group",{attrs:{create:!0,"common-name":"","common-abbreviation":"",show:t.dialog.createCommonDialog.show},on:{submitInsert:t.insertCommon,close:function(e){t.dialog.createCommonDialog.show=!1}}}),o("Organization-setting-group",{attrs:{create:!1,"common-name":t.formContent.commonName,"common-abbreviation":t.formContent.commonAbbreviation,show:t.dialog.editCommonDialog.show},on:{submitUpdate:t.updateCommon,close:function(e){t.dialog.editCommonDialog.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.deleteCommon.show,title:t.dialog.deleteCommon.title,agree:t.dialog.deleteCommon.agree,content:t.dialog.deleteCommon.content,width:420},on:{delete:t.deleteCommon,close:function(e){t.dialog.deleteCommon.show=!1}}}),o("Organization-setting-item",{attrs:{create:!0,"common-item-name":"","common-item-abbreviation":"",show:t.dialog.createItemDialog.show},on:{submitInsert:t.insertCommonItem,close:function(e){t.dialog.createItemDialog.show=!1}}}),o("Organization-setting-item",{attrs:{create:!1,"common-item-name":t.formContent.commonItemName,"common-item-abbreviation":t.formContent.commonItemAbbreviation,show:t.dialog.editItemDialog.show},on:{submitUpdate:t.updateCommonItem,close:function(e){t.dialog.editItemDialog.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.deleteItem.show,title:t.dialog.deleteItem.title,agree:t.dialog.deleteItem.agree,content:t.dialog.deleteItem.content,width:420},on:{delete:t.deleteCommonItem,close:function(e){t.dialog.deleteItem.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.responseDialog.show,color:t.dialog.responseDialog.color,message:t.dialog.responseDialog.message},on:{close:function(e){t.dialog.responseDialog.show=!1}}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,agree:t.dialog.error.agree,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,content:t.dialog.confirm.content,width:420},on:{confirm:t.setOrder,close:function(e){t.dialog.confirm.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmItem.show,title:t.dialog.confirmItem.title,content:t.dialog.confirmItem.content,width:420},on:{confirm:t.setOrderItem,close:function(e){t.dialog.confirmItem.show=!1}}})],1)},oy=[],ny=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-dialog",{attrs:{persistent:"",width:"500px"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("スタッフ属性グループ - "+t._s(t.create?"追加":"編集"))]),o("v-card-text",[o("v-container",[o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"スタッフ属性グループ名称",outlined:"","background-color":"white","hide-details":"auto",dense:"",rules:t.rules.groupName,counter:t.regexString.staffAttributeGroupCommon.name.len},model:{value:t.formContent.commonName,callback:function(e){t.$set(t.formContent,"commonName",e)},expression:"formContent.commonName"}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"スタッフ属性グループ略称",outlined:"","background-color":"white","hide-details":"auto",dense:"",rules:t.rules.groupAbbreviation,counter:t.regexString.staffAttributeGroupCommon.abbreviation.len},model:{value:t.formContent.commonAbbreviation,callback:function(e){t.$set(t.formContent,"commonAbbreviation",e)},expression:"formContent.commonAbbreviation"}})],1)],1)],1)])],1)],1),o("v-card-actions",[o("v-col",{attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",outlined:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("ConfirmDialog",{attrs:{show:t.dialog.confirmInsert.show,title:t.dialog.confirmInsert.title,content:t.dialog.confirmInsert.content,width:420},on:{confirm:t.submitInsert,close:function(e){t.dialog.confirmInsert.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmUpdate.show,title:t.dialog.confirmUpdate.title,content:t.dialog.confirmUpdate.content,width:420},on:{confirm:t.submitUpdate,close:function(e){t.dialog.confirmUpdate.show=!1}}})],1)},ay=[],ry=(o("4d63"),o("c607"),o("2c3e"),5),iy=20,sy=32,ly=64,cy=256,uy=32,dy=32,fy=1,my=64,gy=4,hy=2,vy=2,py=1,by=1,yy=256,Sy=64,Dy=64,Cy=64,wy=64,ky=64,Iy=64,xy=32,Ty=64,Ay=32,_y=64,Oy="絵文字等を使用した場合、文字数が正しくカウントされません",Ry={role:{name:{pattern:new RegExp("^.{1,".concat(uy,"}$")),len:uy,msg:Oy},description:{pattern:new RegExp("^.{1,".concat(cy,"}$")),len:cy,msg:Oy}},policy:{name:{pattern:new RegExp("^.{1,".concat(dy,"}$")),len:dy,msg:Oy},description:{pattern:new RegExp("^.{1,".concat(cy,"}$")),len:cy,msg:Oy}},dateAggregate:{title:{pattern:new RegExp("^.{1,".concat(ly,"}$")),len:ly,msg:Oy},alternateText:{pattern:new RegExp("^[^00]{1,".concat(fy,"}$")),len:fy}},staffAggregate:{title:{pattern:new RegExp("^.{1,".concat(ly,"}$")),len:ly,msg:Oy},alternateText:{pattern:new RegExp("^[^00]{1,".concat(fy,"}$")),len:fy}},calenderCommon:{name:{pattern:new RegExp("^.{1,".concat(my,"}$")),len:my,msg:Oy},description:{pattern:new RegExp("^.{1,".concat(cy,"}$")),len:cy,msg:Oy},year:{pattern:new RegExp("^([12][0-9]{3})|[0]$"),len:gy},month:{pattern:new RegExp("^((0?[1-9]|1[0-2])|[0])$"),len:hy},day:{pattern:new RegExp("^(0?[1-9]|[12][0-9]|3[01])$"),len:vy},week:{pattern:new RegExp("^[0-6]$"),len:py},dow:{pattern:new RegExp("^[0-6]$"),len:by},color:{pattern:new RegExp("^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"),len:sy}},calenderSection:{name:{pattern:new RegExp("^.{1,".concat(my,"}$")),len:my,msg:Oy},description:{pattern:new RegExp("^.{1,".concat(cy,"}$")),len:cy,msg:Oy},year:{pattern:new RegExp("^([12][0-9]{3})|[0]$"),len:gy},month:{pattern:new RegExp("^((0?[1-9]|1[0-2])|[0])$"),len:hy},day:{pattern:new RegExp("^(0?[1-9]|[12][0-9]|3[01])$"),len:vy},week:{pattern:new RegExp("^[0-6]$"),len:py},dow:{pattern:new RegExp("^[0-6]$"),len:by},color:{pattern:new RegExp("^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"),len:sy}},ruleCommon:{name:{pattern:new RegExp("^.{1,".concat(yy,"}$")),len:yy,msg:Oy}},easyRuleSettings:{staffs:{pattern:new RegExp("^([0]|[1-9][0-9]{0,1})$"),len:2},workCount:{pattern:new RegExp("^[1-9][0-9]{0,3}$"),len:4},days:{pattern:new RegExp("^([0]|[1-9][0-9]{0,1})$"),len:2},continuousWorkCount:{pattern:new RegExp("^[1-9][0-9]{0,1}$"),len:2}},workStaffs:{name:{pattern:new RegExp("^.{1,".concat(yy,"}$")),len:yy,msg:Oy},staffs:{pattern:new RegExp("^([0]|[1-9][0-9]{0,1})$"),len:2}},workCount:{name:{pattern:new RegExp("^.{1,".concat(yy,"}$")),len:yy,msg:Oy},count:{pattern:new RegExp("^[1-9][0-9]{0,3}$"),len:4}},organization:{name:{pattern:new RegExp("^.{1,".concat(Sy,"}$")),len:Sy,msg:Oy}},section:{name:{pattern:new RegExp("^.{1,".concat(Dy,"}$")),len:Dy,msg:Oy},mark:{pattern:new RegExp("^.{1,".concat(ry,"}$")),len:ry,msg:Oy},color:{pattern:new RegExp("^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"),len:sy}},shiftGroup:{name:{pattern:new RegExp("^.{1,".concat(Cy,"}$")),len:Cy,msg:Oy},code:{pattern:new RegExp("^.{1,".concat(iy,"}$")),len:iy,msg:Oy}},shift:{name:{pattern:new RegExp("^.{1,".concat(wy,"}$")),len:wy,msg:Oy},mark:{pattern:new RegExp("^.{1,".concat(ry,"}$")),len:ry,msg:Oy},code:{pattern:new RegExp("^.{1,".concat(iy,"}$")),len:iy,msg:Oy},color:{pattern:new RegExp("^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"),len:sy},time:{pattern:new RegExp("^([01][0-9]|2[0-3]):[0-5][0-9]$"),len:5}},staff:{name:{pattern:new RegExp("^.{1,".concat(Iy,"}$")),len:Iy,msg:Oy},nickName:{pattern:new RegExp("^.{1,".concat(xy,"}$")),len:xy,msg:Oy},code:{pattern:new RegExp("^.{1,".concat(iy,"}$")),len:iy,msg:Oy},mail:{pattern:new RegExp("^[a-zA-Z0-9_+-]+(.[a-zA-Z0-9_+-]+)*@([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]*\\.)+[a-zA-Z]{2,}$"),len:Ty},password:{pattern:new RegExp("^((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()_+-=[]{}|'])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*()_+-=[]{}|'])|(?=.*[a-z])(?=.*[0-9])(?=.*[!#@;:]))([a-zA-Z0-9!@#$%^&*()_+-=[]{}|']){8,}$"),len:Ay}},staffAttributeGroupCommon:{name:{pattern:new RegExp("^.{1,".concat(ky,"}$")),len:ky,msg:Oy},abbreviation:{pattern:new RegExp("^.{0,".concat(ky,"}$")),len:ky,msg:Oy}},staffAttributeGroupCommonItem:{name:{pattern:new RegExp("^.{1,".concat(ky,"}$")),len:ky,msg:Oy},abbreviation:{pattern:new RegExp("^.{0,".concat(ky,"}$")),len:ky,msg:Oy}},staffAttributeGroupSection:{name:{pattern:new RegExp("^.{1,".concat(ky,"}$")),len:ky},abbreviation:{pattern:new RegExp("^.{0,".concat(ky,"}$")),len:ky}},staffAttributeGroupSectionItem:{name:{pattern:new RegExp("^.{1,".concat(ky,"}$")),len:ky},abbreviation:{pattern:new RegExp("^.{0,".concat(ky,"}$")),len:ky}},shiftTable:{name:{pattern:new RegExp("^.{1,".concat(_y,"}$")),len:_y,msg:Oy}}},Fy=function(){return{groupName:[function(t){return!!t||"名称は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=Ry.staffAttributeGroupCommon.name.len||"名称は".concat(Ry.staffAttributeGroupCommon.name.len,"文字までです。")},function(t){return t&&Ry.staffAttributeGroupCommon.name.pattern.test(t)||"使用不可文字が使われています"}],groupAbbreviation:[function(t){return Object(a["a"])(t).length<=Ry.staffAttributeGroupCommon.abbreviation.len||"略称は".concat(Ry.staffAttributeGroupCommon.abbreviation.len,"文字までです。")},function(t){return Ry.staffAttributeGroupCommon.abbreviation.pattern.test(t)||"使用不可文字が使われています"}],itemName:[function(t){return!!t||"名称は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=Ry.staffAttributeGroupCommonItem.name.len||"名称は".concat(Ry.staffAttributeGroupCommon.name.len,"文字までです。")},function(t){return t&&Ry.staffAttributeGroupCommonItem.name.pattern.test(t)||"使用不可文字が使われています"}],itemAbbreviation:[function(t){return Object(a["a"])(t).length<=Ry.staffAttributeGroupCommonItem.abbreviation.len||"略称は".concat(Ry.staffAttributeGroupCommonItem.abbreviation.len,"文字までです。")},function(t){return Ry.staffAttributeGroupCommonItem.abbreviation.pattern.test(t)||"使用不可文字が使われています"}]}},Vy=Object(r["b"])({components:{ConfirmDialog:Yd},props:{show:{type:Boolean,required:!0,default:!1},commonName:{type:String,required:!0},commonAbbreviation:{type:String,required:!0},create:{type:Boolean,required:!0,default:!1},data:{type:Object,required:!1,default:function(){return{}}}},setup:function(t,e){var o=Object(r["n"])({valid:!1,show:t.show}),n=Object(r["n"])({confirmInsert:{show:!1,close:"OK",content:"グループ属性を保存します、続行しますか?"},confirmUpdate:{show:!1,title:"確認",close:"OK",content:"グループ属性を更新します、続行しますか?"}}),a=Object(r["p"])(),i=function(){var e,r;t.create?(console.log("登録"),console.log(t.create),null===(e=a.value)||void 0===e||e.validate(),o.valid&&(n.confirmInsert.show=!0)):(console.log("編集"),console.log(t.create),null===(r=a.value)||void 0===r||r.validate(),o.valid&&(n.confirmUpdate.show=!0))},s=function(){n.confirmInsert.show=!1,e.emit("submitInsert",d,l)},l=function(){var t;null===(t=a.value)||void 0===t||t.resetValidation(),d.commonName="",d.commonAbbreviation="",console.log("clear!")},c=function(){n.confirmUpdate.show=!1,e.emit("submitUpdate",d)},u=Object(r["a"])((function(){return{name:Object(r["q"])(t,"commonName").value,abbreviation:Object(r["q"])(t,"commonAbbreviation").value}})),d=Object(r["n"])({commonName:"",commonAbbreviation:""});return Object(r["s"])(u,(function(){console.log("default value"),d.commonName=u.value.name,d.commonAbbreviation=u.value.abbreviation})),{state:o,dialog:n,form:a,validate:i,submitInsert:s,submitUpdate:c,formContent:d,rules:Fy(),regexString:Ry}}}),jy=Vy,Ey=Object(k["a"])(jy,ny,ay,!1,null,null,null),Gy=Ey.exports;uc()(Ey,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VContainer:eu["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VTextField:yu["a"],VToolbar:Ku["a"]});var $y=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-dialog",{attrs:{persistent:"",width:"500px"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("スタッフ属性 - "+t._s(t.create?"追加":"編集"))]),o("v-card-text",[o("v-container",[o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"スタッフ属性名称",outlined:"","background-color":"white","hide-details":"auto",dense:"",rules:t.rules.itemName,counter:t.regexString.staffAttributeGroupCommonItem.name.len},model:{value:t.formContent.commonItemName,callback:function(e){t.$set(t.formContent,"commonItemName",e)},expression:"formContent.commonItemName"}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"スタッフ属性略称",outlined:"","background-color":"white","hide-details":"auto",dense:"",rules:t.rules.itemAbbreviation,counter:t.regexString.staffAttributeGroupCommonItem.abbreviation.len},model:{value:t.formContent.commonItemAbbreviation,callback:function(e){t.$set(t.formContent,"commonItemAbbreviation",e)},expression:"formContent.commonItemAbbreviation"}})],1)],1)],1)])],1)],1),o("v-card-actions",[o("v-col",{attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",outlined:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("ConfirmDialog",{attrs:{show:t.dialog.confirmInsert.show,title:t.dialog.confirmInsert.title,content:t.dialog.confirmInsert.content,width:420},on:{confirm:t.submitInsert,close:function(e){t.dialog.confirmInsert.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmUpdate.show,title:t.dialog.confirmUpdate.title,content:t.dialog.confirmUpdate.content,width:420},on:{confirm:t.submitUpdate,close:function(e){t.dialog.confirmUpdate.show=!1}}})],1)},Ny=[],Ly=Object(r["b"])({components:{ConfirmDialog:Yd},props:{show:{type:Boolean,required:!0,default:!1},commonItemName:{type:String,required:!0},commonItemAbbreviation:{type:String,required:!0},create:{type:Boolean,required:!0,default:!1},data:{type:Object,required:!1,default:function(){return{}}}},setup:function(t,e){var o=Object(r["n"])({valid:!1,show:t.show}),n=Object(r["n"])({confirmInsert:{show:!1,close:"OK",content:"属性を保存します、続行しますか?"},confirmUpdate:{show:!1,title:"確認",close:"OK",content:"属性を更新します、続行しますか?"}}),a=Object(r["p"])(),i=function(){var e,r;t.create?(console.log("登録"),null===(e=a.value)||void 0===e||e.validate(),o.valid&&(n.confirmInsert.show=!0)):(console.log("編集"),null===(r=a.value)||void 0===r||r.validate(),o.valid&&(n.confirmUpdate.show=!0))},s=function(){n.confirmInsert.show=!1,e.emit("submitInsert",d,l)},l=function(){var t;null===(t=a.value)||void 0===t||t.resetValidation(),d.commonItemName="",d.commonItemAbbreviation="",console.log("clear!")},c=function(){n.confirmUpdate.show=!1,e.emit("submitUpdate",d)},u=Object(r["a"])((function(){return{name:Object(r["q"])(t,"commonItemName").value,abbreviation:Object(r["q"])(t,"commonItemAbbreviation").value}})),d=Object(r["n"])({commonItemName:"",commonItemAbbreviation:""});return Object(r["s"])(u,(function(){console.log("default value"),d.commonItemName=u.value.name,d.commonItemAbbreviation=u.value.abbreviation})),{state:o,dialog:n,form:Object(r["p"])(),validate:i,submitInsert:s,submitUpdate:c,formContent:d,rules:Fy(),regexString:Ry}}}),My=Ly,Py=Object(k["a"])(My,$y,Ny,!1,null,null,null),Wy=Py.exports;uc()(Py,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VContainer:eu["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VTextField:yu["a"],VToolbar:Ku["a"]});var By=Object(r["b"])({props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm,DeleteDialog:of,OrganizationSettingGroup:Gy,OrganizationSettingItem:Wy,EditButton:Hg,DeleteButton:cf,Draggable:Zm.a},setup:function(){console.log("setup");var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({selectStaffAttributeGroupCommonAdminRow:{},staffAttributeGroupCommonAdminRow:[],sort:[],staffAttributeGroupCommonItemAdminRow:[],sortItem:[],isItemSelect:!0,selectCommonName:"",selectStaffAttributeGroupCommonID:void 0,selectRow:{},commonSearch:"",commonItemSearch:"",isButtonClick:!1,isButtonClickItem:!1,isDisabledEdit:!1,isDisabled:!0,isDisabledItem:!0,enabled:!1,enabledItem:!1,flg:!1,updFlg:!1,delFlg:!1,itemFlg:!1,updItemFlg:!1,delItemFlg:!1}),i=dr(E),s=(i.result,i.loading),l=i.onResult,c=(i.error,i.refetch);l((function(t){if(console.log("onResult call"),!t.error&&t.data.getStaffAttributeGroupCommons&&Array.isArray(t.data.getStaffAttributeGroupCommons)){var e,n=t.data.getStaffAttributeGroupCommons.map((function(t){return{concurrencyStamp:t.concurrencyStamp,registrationAccount:t.registrationAccount,registrationTime:t.registrationTime,staffAttributeGroupCommonID:t.staffAttributeGroupCommonID,sort:t.sort,deleteFlag:t.deleteFlag,name:t.name,abbreviation:t.abbreviation,staffAttributeGroupCommonItems:t.staffAttributeGroupCommonItems}}));(e=o.staffAttributeGroupCommonAdminRow).splice.apply(e,[0,o.staffAttributeGroupCommonAdminRow.length].concat(Object(a["a"])(n))),console.log(o.staffAttributeGroupCommonAdminRow),console.log("onResult!")}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(nt.error.content=r.message,nt.error.show=!0)}}));var u=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("initialize"),t.prev=1,t.next=4,c();case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](1),nt.error.content=Bu,nt.error.show=!0;case 10:case"end":return t.stop()}}),t,null,[[1,6]])})));return function(){return t.apply(this,arguments)}}(),d=Kr({fetchPolicy:"no-cache"}),f=d.mutate,m=(d.loading,d.error,d.called,d.onDone),g=d.onError;m((function(t){if(o.flg=!1,t.errors){if(t.errors){var e=pt(t.errors);nt.error.content=e.message,nt.error.show=!0}}else nt.createCommonDialog.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="登録成功",u()})),g((function(t){if(o.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var h=function(t,e){if(!o.flg){o.flg=!0;try{console.log("insertCommon call"),console.log("FormData:",t);var n={name:t.commonName,abbreviation:t.commonAbbreviation};console.log("isnert call!"),console.log(n),f({model:n}),e()}catch(a){o.flg=!1,nt.error.content=Hu,nt.error.show=!0}console.log("saveInsertSettings!")}},v=function(t){console.log("editCommonSettings call"),console.log(t.name),console.log(t.abbreviation),at.commonName=t.name,at.commonAbbreviation=t.abbreviation,nt.editCommonDialog.show=!0},p=cs({fetchPolicy:"no-cache"}),b=p.mutate,y=(p.loading,p.error,p.called,p.onDone),S=p.onError;y((function(t){var e;if(o.updFlg=!1,t.data&&null!==(e=t.data.updateStaffAttributeGroupCommon)&&void 0!==e&&e.succeed){var n,a,r,i=t.data.updateStaffAttributeGroupCommon.result,s=null===(n=t.data.updateStaffAttributeGroupCommon.result)||void 0===n?void 0:n.staffAttributeGroupCommonID,l=o.staffAttributeGroupCommonAdminRow.findIndex((function(t){return t.staffAttributeGroupCommonID===s}));if(o.staffAttributeGroupCommonAdminRow.splice(l,1,i),null!==(a=t.data.updateStaffAttributeGroupCommon.result)&&void 0!==a&&a.name)o.selectCommonName=null===(r=t.data.updateStaffAttributeGroupCommon.result)||void 0===r?void 0:r.name}else if(t.errors){var c=pt(t.errors);nt.error.content=c.message,nt.error.show=!0}nt.editCommonDialog.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="更新成功"})),S((function(t){if(o.updFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var D=function(t){if(!o.updFlg){o.updFlg=!0;try{console.log("updateCommon call"),console.log(t);var e={staffAttributeGroupCommonID:at.staffAttributeGroupCommonID,concurrencyStamp:at.commonConcurrencyStamp,name:t.commonName,abbreviation:t.commonAbbreviation};console.log("update call!"),console.log(e),b({model:e})}catch(n){o.updFlg=!1,nt.error.content=Hu,nt.error.show=!0}console.log("saveUpdateSettings!")}},C=function(){console.log("deleteItem call"),nt.deleteCommon.show=!0},w=Un({fetchPolicy:"no-cache"}),k=w.mutate,I=(w.loading,w.error,w.called,w.onDone),x=w.onError;I((function(t){var e,n,a;console.log("deleteOnDone"),o.delFlg=!1;var r=null===(e=t.data)||void 0===e||null===(n=e.deleteStaffAttributeGroupCommon)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.staffAttributeGroupCommonID,i=o.staffAttributeGroupCommonAdminRow.findIndex((function(t){return t.staffAttributeGroupCommonID===r}));o.staffAttributeGroupCommonAdminRow.splice(i,1),o.isItemSelect=!0,o.selectCommonName="",o.staffAttributeGroupCommonItemAdminRow=[],nt.deleteCommon.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="削除成功"})),x((function(t){if(o.delFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var T=function(){if(!o.delFlg){o.delFlg=!0;try{console.log("deleteCommon call");var t={staffAttributeGroupCommonID:at.staffAttributeGroupCommonID,concurrencyStamp:at.commonConcurrencyStamp};console.log("deleteCommon call!"),k({model:t})}catch(e){o.delFlg=!1,nt.error.content=Hu,nt.error.show=!0}console.log("deleteCommon!")}},A=cr({id:0},E),_=(A.result,A.loading,A.onResult),O=(A.error,A.refetch);_((function(t){if(console.log("commonForAdminOnResult call"),console.log(t.data),!t.error&&t.data.getStaffAttributeGroupCommon){var e,n,r;if(o.selectStaffAttributeGroupCommonAdminRow=t.data.getStaffAttributeGroupCommon,o.selectStaffAttributeGroupCommonAdminRow.staffAttributeGroupCommonItems&&Array.isArray(o.selectStaffAttributeGroupCommonAdminRow.staffAttributeGroupCommonItems)){var i,s=bt(o.selectStaffAttributeGroupCommonAdminRow.staffAttributeGroupCommonItems);(i=o.staffAttributeGroupCommonItemAdminRow).splice.apply(i,[0,o.staffAttributeGroupCommonItemAdminRow.length].concat(Object(a["a"])(s)))}if(console.log("!!!!!!!!!!!!!!!!"),console.log(o.staffAttributeGroupCommonItemAdminRow),null===(e=o.selectRow)||void 0===e||!e.isSelected)console.log("commonRowClick"),console.log(null===(n=o.selectRow)||void 0===n?void 0:n.item),console.log(o.selectStaffAttributeGroupCommonAdminRow),at.staffAttributeGroupCommonID=o.selectStaffAttributeGroupCommonAdminRow.staffAttributeGroupCommonID,at.commonConcurrencyStamp=o.selectStaffAttributeGroupCommonAdminRow.concurrencyStamp,at.commonName=o.selectStaffAttributeGroupCommonAdminRow.name,at.commonAbbreviation=o.selectStaffAttributeGroupCommonAdminRow.abbreviation,console.log("formContent:",at),o.isItemSelect=!1,o.selectCommonName=null===(r=o.selectRow)||void 0===r?void 0:r.item.name;console.log("commonForAdminOnResult!")}else if(t.errors){var l=pt(t.errors);l.code!==M.QueryRecordNotFound&&(nt.error.content=l.message,nt.error.show=!0)}}));var R=function(t,e){console.log(e),o.selectRow=e;try{console.log("getStaffAttributeGroupCommonForAdminRefetch"),O({id:t.staffAttributeGroupCommonID})}catch(n){nt.error.content=Bu,nt.error.show=!0}console.log(at),e.select(!e.isSelected)},F=Zr({fetchPolicy:"no-cache"}),V=F.mutate,j=(F.loading,F.error,F.called,F.onDone),G=F.onError;j((function(t){var e;if(o.itemFlg=!1,t.data&&null!==(e=t.data.insertStaffAttributeGroupCommonItem)&&void 0!==e&&e.succeed){var n,a=t.data.insertStaffAttributeGroupCommonItem.result,r=null===(n=t.data.insertStaffAttributeGroupCommonItem.result)||void 0===n?void 0:n.staffAttributeGroupCommonItemID;o.staffAttributeGroupCommonItemAdminRow.findIndex((function(t){return t.staffAttributeGroupCommonItemID===r}));o.staffAttributeGroupCommonItemAdminRow.splice(o.staffAttributeGroupCommonItemAdminRow.length,0,a)}else if(t.errors){var i=pt(t.errors);nt.error.content=i.message,nt.error.show=!0}nt.createItemDialog.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="登録成功"})),G((function(t){if(o.itemFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var $=function(t,e){if(!o.itemFlg){o.itemFlg=!0;try{console.log("FormData:",t),console.log("formContent:",at);var n={staffAttributeGroupCommonID:at.staffAttributeGroupCommonID,name:t.commonItemName,abbreviation:t.commonItemAbbreviation};V({model:n}),e()}catch(a){o.itemFlg=!1,nt.error.content=Hu,nt.error.show=!0}}},N=function(t){console.log("editCommonItemSettings call"),console.log(t.name),console.log(t.abbreviation),at.commonItemName=t.name,at.commonItemAbbreviation=t.abbreviation,nt.editItemDialog.show=!0},L=ds({fetchPolicy:"no-cache"}),P=L.mutate,W=(L.loading,L.error,L.called,L.onDone),B=L.onError;W((function(t){var e;if(o.updItemFlg=!1,t.data&&null!==(e=t.data.updateStaffAttributeGroupCommonItem)&&void 0!==e&&e.succeed){var n,a=t.data.updateStaffAttributeGroupCommonItem.result,r=null===(n=t.data.updateStaffAttributeGroupCommonItem.result)||void 0===n?void 0:n.staffAttributeGroupCommonItemID,i=o.staffAttributeGroupCommonItemAdminRow.findIndex((function(t){return t.staffAttributeGroupCommonItemID===r}));o.staffAttributeGroupCommonItemAdminRow.splice(i,1,a)}else if(t.errors){var s=pt(t.errors);nt.error.content=s.message,nt.error.show=!0}nt.editItemDialog.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="更新成功"})),B((function(t){if(o.updItemFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var H=function(t){if(!o.updItemFlg){o.updItemFlg=!0;try{console.log("updateCommonItem call"),console.log("FormData:",t),console.log("formContent:",at);var e={staffAttributeGroupCommonItemID:at.staffAttributeGroupCommonItemID,concurrencyStamp:at.commonItemConcurrencyStamp,name:t.commonItemName,abbreviation:t.commonItemAbbreviation};P({model:e})}catch(n){o.updItemFlg=!1,nt.error.content=Hu,nt.error.show=!0}}},q=function(){console.log("deleteCommonItemClick call"),nt.deleteItem.show=!0},Q=Kn({fetchPolicy:"no-cache"}),U=Q.mutate,z=(Q.loading,Q.error,Q.called,Q.onDone),K=Q.onError;z((function(t){var e,n,a;o.delItemFlg=!1;var r=null===(e=t.data)||void 0===e||null===(n=e.deleteStaffAttributeGroupCommonItem)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.staffAttributeGroupCommonItemID,i=o.staffAttributeGroupCommonItemAdminRow.findIndex((function(t){return t.staffAttributeGroupCommonItemID===r}));o.staffAttributeGroupCommonItemAdminRow.splice(i,1),nt.deleteItem.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="削除成功"})),K((function(t){if(o.delItemFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var Y=function(){if(!o.delItemFlg){o.delItemFlg=!0;try{console.log("deleteCommonItemClick call"),console.log(at);var t={staffAttributeGroupCommonItemID:at.staffAttributeGroupCommonItemID,concurrencyStamp:at.commonItemConcurrencyStamp};U({model:t}),console.log("deleteData:",t)}catch(e){o.delItemFlg=!1,nt.error.content=Hu,nt.error.show=!0}}},Z=function(t,e){console.log("commonItemRowClick call"),console.log("row",e),e.isSelected||(at.staffAttributeGroupCommonItemID=t.staffAttributeGroupCommonItemID,at.commonItemConcurrencyStamp=t.concurrencyStamp),console.log(at),e.select(!e.isSelected)},J=Object(r["a"])((function(){if(console.log(o.staffAttributeGroupCommonAdminRow),o.staffAttributeGroupCommonAdminRow)return o.staffAttributeGroupCommonAdminRow.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{names:t.name+(t.abbreviation?"("+t.abbreviation+")":"")})}))})),tt=Object(r["a"])((function(){if(o.staffAttributeGroupCommonItemAdminRow)return o.staffAttributeGroupCommonItemAdminRow.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{names:t.name+(t.abbreviation?"("+t.abbreviation+")":"")})}))})),et=[{text:"属性グループ名称(略称)",value:"names"},{text:"",value:"actions"}],ot=[{text:"属性名称(略称)",value:"names"},{text:"",value:"actions"}],nt=Object(r["n"])({deleteCommon:{show:!1,title:"確認",close:"OK",content:"選択したレコードを削除します、続行しますか?"},deleteItem:{show:!1,title:"確認",close:"OK",content:"選択したレコードを削除します、続行しますか?"},error:{show:!1,title:"",close:"",content:""},responseDialog:{show:!1,message:"",color:""},createCommonDialog:{show:!1},editCommonDialog:{show:!1},createItemDialog:{show:!1},editItemDialog:{show:!1},confirm:{show:!1,title:"確認",close:"OK",content:"保存します、続行しますか?"},confirmItem:{show:!1,title:"確認",close:"OK",content:"保存します、続行しますか?"}}),at=Object(r["n"])({staffAttributeGroupCommonID:-1,commonConcurrencyStamp:"",commonName:"",commonAbbreviation:"",staffAttributeGroupCommonItemID:-1,commonItemConcurrencyStamp:"",commonItemName:"",commonItemAbbreviation:""}),rt=function(){console.log("buttonClick call"),o.commonSearch="",o.isButtonClick=!0,o.isDisabledEdit=!0,o.isDisabled=!1,o.sort=o.staffAttributeGroupCommonAdminRow,console.log(o.staffAttributeGroupCommonAdminRow),o.enabledItem=!0},it=function(){nt.confirm.show=!0},st=function(){console.log("setOrder call");try{var t=JSON.stringify(o.sort),e=JSON.stringify(o.staffAttributeGroupCommonAdminRow);if(console.log(o.sort),console.log(o.staffAttributeGroupCommonAdminRow),t===e)console.log("変更なし"),nt.error.content=qu,nt.error.show=!0,nt.confirm.show=!1;else if(console.log("変更あり"),console.log(o.staffAttributeGroupCommonAdminRow),o.staffAttributeGroupCommonAdminRow){var n=o.staffAttributeGroupCommonAdminRow.map((function(t){return{concurrencyStamp:t.concurrencyStamp,staffAttributeGroupCommonID:t.staffAttributeGroupCommonID}}));console.log("orderData",n),ct({models:n})}}catch(a){nt.error.content=Hu,nt.error.show=!0}},lt=pi({fetchPolicy:"no-cache"}),ct=lt.mutate,ut=(lt.loading,lt.error,lt.called,lt.onDone),dt=lt.onError;ut((function(t){var e;if(console.log("setOrderOnDone"),t.data&&null!==(e=t.data.setOrderStaffAttributeGroupCommon)&&void 0!==e&&e.succeed){var n,r=t.data.setOrderStaffAttributeGroupCommon.result;if((n=o.staffAttributeGroupCommonAdminRow).splice.apply(n,[0,o.staffAttributeGroupCommonAdminRow.length].concat(Object(a["a"])(r))),o.selectStaffAttributeGroupCommonAdminRow.staffAttributeGroupCommonItems&&Array.isArray(o.selectStaffAttributeGroupCommonAdminRow.staffAttributeGroupCommonItems)){var i,s=bt(o.selectStaffAttributeGroupCommonAdminRow.staffAttributeGroupCommonItems);(i=o.staffAttributeGroupCommonItemAdminRow).splice.apply(i,[0,o.staffAttributeGroupCommonItemAdminRow.length].concat(Object(a["a"])(s)))}}else if(t.errors){var l=pt(t.errors);nt.error.content=l.message,nt.error.show=!0}nt.confirm.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="更新成功",o.isButtonClick=!1,o.isDisabledEdit=!1,o.isDisabled=!0,o.enabledItem=!1})),dt((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var ft=function(){console.log("buttonStop call"),o.isButtonClick=!1,o.isDisabledEdit=!1,o.isDisabled=!0,o.staffAttributeGroupCommonAdminRow=o.sort,o.enabledItem=!1},mt=function(){console.log("buttonClickItem call"),o.commonItemSearch="",o.isButtonClickItem=!0,o.isItemSelect=!0,o.isDisabledItem=!1,o.sortItem=o.staffAttributeGroupCommonItemAdminRow,o.enabled=!0},gt=function(){nt.confirmItem.show=!0},ht=function(){console.log("setOrderItem call");try{var t=JSON.stringify(o.sortItem),e=JSON.stringify(o.staffAttributeGroupCommonItemAdminRow);if(t===e)console.log("変更なし"),nt.error.content=qu,nt.error.show=!0,nt.confirmItem.show=!1;else if(o.staffAttributeGroupCommonItemAdminRow){var n=o.staffAttributeGroupCommonItemAdminRow.map((function(t){return{concurrencyStamp:t.concurrencyStamp,staffAttributeGroupCommonItemID:t.staffAttributeGroupCommonItemID}}));yt({models:n,id:at.staffAttributeGroupCommonID})}}catch(a){nt.error.content=Hu,nt.error.show=!0}},vt=yi({fetchPolicy:"no-cache"}),yt=vt.mutate,St=(vt.loading,vt.error,vt.called,vt.onDone),Dt=vt.onError;St((function(t){var e;if(console.log("setOrderItemOnDone"),t.data&&null!==(e=t.data.setOrderStaffAttributeGroupCommonItem)&&void 0!==e&&e.succeed){var n,r=t.data.setOrderStaffAttributeGroupCommonItem.result;(n=o.staffAttributeGroupCommonItemAdminRow).splice.apply(n,[0,o.staffAttributeGroupCommonItemAdminRow.length].concat(Object(a["a"])(r)))}else if(t.errors){var i=pt(t.errors);nt.error.content=i.message,nt.error.show=!0}nt.confirmItem.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="更新成功",o.isButtonClickItem=!1,o.isItemSelect=!1,o.isDisabledItem=!0,o.enabled=!1})),Dt((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var Ct=function(){console.log("buttonStopItem call"),o.isButtonClickItem=!1,o.isItemSelect=!1,o.isDisabledItem=!0,o.staffAttributeGroupCommonItemAdminRow=o.sortItem,o.enabled=!1};return u(),{state:o,getStaffAttributeGroupCommonsLoading:s,initialize:u,insertCommon:h,editCommonSettings:v,updateCommon:D,deleteCommonClick:C,deleteCommon:T,commonRowClick:R,insertCommonItem:$,editCommonItemSettings:N,updateCommonItem:H,deleteCommonItemClick:q,deleteCommonItem:Y,commonItemRowClick:Z,dispStaffAttributeGroupCommonRow:J,dispStaffAttributeGroupCommonItemAdminRow:tt,commonHeader:et,commonItemHeader:ot,dialog:nt,formContent:at,sortClick:rt,saveClick:it,setOrder:st,doneClick:ft,sortItemClick:mt,saveItemClick:gt,setOrderItem:ht,doneItemClick:Ct}}}),Hy=By,qy=Object(k["a"])(Hy,ey,oy,!1,null,"1be58620",null),Qy=qy.exports;uc()(qy,{VBtn:mc["a"],VCard:Ic["a"],VCardTitle:uu["c"],VCol:xc["a"],VDataTable:zu["a"],VDivider:Tc["a"],VForm:fu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRow:Oc["a"],VSpacer:vc["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"],VTooltip:fd["a"]});var Uy=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("スタッフ属性(所属)作成")]),t.getStaffAttributeGroupSectionsLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-form",[o("v-row",[o("v-col",{attrs:{cols:"12",lg:"6"}},[o("v-card",[o("v-card-title",[o("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"検索","hide-details":"",dense:""},model:{value:t.state.sectionSearch,callback:function(e){t.$set(t.state,"sectionSearch",e)},expression:"state.sectionSearch"}})],1),o("div",{class:{"point-event-none":t.state.enabled}},[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.sectionHeader,items:t.dispStaffAttributeGroupSectionRow,search:t.state.sectionSearch,"item-key":"staffAttributeGroupSectionID","items-per-page":15,"single-select":"",height:"300","fixed-header":"",dense:""},on:{"click:row":t.sectionRowClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("属性グループ")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),t.state.isDisabledEdit?t._e():o("div",{staticClass:"content-nowrap"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:"",small:""},on:{click:function(e){t.dialog.createSectionDialog.show=!0}}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-plus-box-outline ")])],1)]}}],null,!1,3834397918)},[o("span",[t._v("追加")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:"",small:""},on:{click:t.sortClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-sort ")])],1)]}}],null,!1,2979856631)},[o("span",[t._v("並べ替え")])])],1),t.state.isDisabled?t._e():o("div",{staticClass:"content-nowrap"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:"",small:""},on:{click:t.saveClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-content-save-check ")])],1)]}}],null,!1,1298492952)},[o("span",[t._v("保存")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"#B0BEC5",dark:"",small:""},on:{click:t.doneClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-close-box-outline ")])],1)]}}],null,!1,814094328)},[o("span",[t._v("終了")])])],1)],1)]},proxy:!0},t.state.isButtonClick?{key:"body",fn:function(e){var n=e.items;return[o("draggable",{attrs:{tag:"tbody"},model:{value:t.state.staffAttributeGroupSectionAdminRow,callback:function(e){t.$set(t.state,"staffAttributeGroupSectionAdminRow",e)},expression:"state.staffAttributeGroupSectionAdminRow"}},t._l(n,(function(e,n){return o("tr",{key:n},[o("td",[t._v(t._s(e.names))]),o("td",[o("div",{staticClass:"content-nowrap"},[o("edit-button",{attrs:{btn:!0},on:{edit:function(o){return t.editSectionSettings(e)}}}),o("delete-button",{attrs:{btn:!0},on:{delete:function(o){return t.deleteSectionClick(e)}}})],1)])])})),0)]}}:{key:"item.actions",fn:function(e){var n=e.item;return[o("div",{staticClass:"content-nowrap"},[o("edit-button",{on:{edit:function(e){return t.editSectionSettings(n)}}}),o("delete-button",{on:{delete:function(e){return t.deleteSectionClick(n)}}})],1)]}}],null,!0)})],1)],1)],1),o("v-col",{attrs:{cols:"12",lg:"6"}},[o("v-card",[o("v-card-title",[o("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"検索","hide-details":"",dense:""},model:{value:t.state.sectionItemSearch,callback:function(e){t.$set(t.state,"sectionItemSearch",e)},expression:"state.sectionItemSearch"}})],1),o("div",{class:{"point-event-none":t.state.enabledItem}},[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.sectionItemHeader,items:t.dispStaffAttributeGroupSectionItemAdminRow,search:t.state.sectionItemSearch,"item-key":"staffAttributeGroupSectionItemID","items-per-page":15,"single-select":"",height:"300","fixed-header":"",dense:""},on:{"click:row":t.sectionItemRowClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("属性リスト")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),t.state.isItemSelect?t._e():o("div",{staticClass:"content-nowrap"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"mb-2 mr-2",attrs:{color:"primary",dark:"",small:""},on:{click:function(e){t.dialog.createItemDialog.show=!0}}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-plus-box-outline ")])],1)]}}],null,!1,887372994)},[o("span",[t._v("追加")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"mb-2 mr-2",attrs:{color:"primary",dark:"",small:""},on:{click:t.sortItemClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-sort ")])],1)]}}],null,!1,2525404482)},[o("span",[t._v("並べ替え")])])],1),t.state.isDisabledItem?t._e():o("div",{staticClass:"content-nowrap"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"mb-2 mr-2",attrs:{color:"primary",dark:"",small:""},on:{click:t.saveItemClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-content-save-check ")])],1)]}}],null,!1,2193200589)},[o("span",[t._v("保存")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"mb-2 mr-2",attrs:{color:"#B0BEC5",dark:"",small:""},on:{click:t.doneItemClick}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-close-box-outline ")])],1)]}}],null,!1,390469165)},[o("span",[t._v("終了")])])],1),o("span",{staticClass:"label-text label-text-staffattribute-group"},[t._v(t._s(t.state.selectSectionName))])],1)]},proxy:!0},t.state.isButtonClickItem?{key:"body",fn:function(e){var n=e.items;return[o("draggable",{attrs:{tag:"tbody"},model:{value:t.state.staffAttributeGroupSectionItemAdminRow,callback:function(e){t.$set(t.state,"staffAttributeGroupSectionItemAdminRow",e)},expression:"state.staffAttributeGroupSectionItemAdminRow"}},t._l(n,(function(e,n){return o("tr",{key:n},[o("td",[t._v(t._s(e.names))]),o("td",[o("div",{staticClass:"content-nowrap"},[o("edit-button",{attrs:{btn:!0},on:{edit:function(o){return t.editSectionSettings(e)}}}),o("delete-button",{attrs:{btn:!0},on:{delete:function(o){return t.deleteSectionClick(e)}}})],1)])])})),0)]}}:{key:"item.actions",fn:function(e){var n=e.item;return[o("div",{staticClass:"content-nowrap"},[o("edit-button",{on:{edit:function(e){return t.editSectionItemSettings(n)}}}),o("delete-button",{on:{delete:function(e){return t.deleteSectionItemClick(n)}}})],1)]}}],null,!0)})],1)],1)],1),t.showSubmitControl?o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1)],1):t._e()],1)],1)],1)]),o("Section-setting-group",{attrs:{create:!0,"section-name":"","section-abbreviation":"",show:t.dialog.createSectionDialog.show},on:{submitInsert:t.insertSection,close:function(e){t.dialog.createSectionDialog.show=!1}}}),o("Section-setting-group",{attrs:{create:!1,"section-name":t.formContent.sectionName,"section-abbreviation":t.formContent.sectionAbbreviation,show:t.dialog.editSectionDialog.show},on:{submitUpdate:t.updateSection,close:function(e){t.dialog.editSectionDialog.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.deleteSection.show,title:t.dialog.deleteSection.title,agree:t.dialog.deleteSection.agree,content:t.dialog.deleteSection.content,width:420},on:{delete:t.deleteSection,close:function(e){t.dialog.deleteSection.show=!1}}}),o("Section-setting-item",{attrs:{create:!0,"section-item-name":"","section-item-abbreviation":"",show:t.dialog.createItemDialog.show},on:{submitInsert:t.insertSectionItem,close:function(e){t.dialog.createItemDialog.show=!1}}}),o("Section-setting-item",{attrs:{create:!1,"section-item-name":t.formContent.sectionItemName,"section-item-abbreviation":t.formContent.sectionItemAbbreviation,show:t.dialog.editItemDialog.show},on:{submitUpdate:t.updateSectionItem,close:function(e){t.dialog.editItemDialog.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.deleteItem.show,title:t.dialog.deleteItem.title,agree:t.dialog.deleteItem.agree,content:t.dialog.deleteItem.content,width:420},on:{delete:t.deleteSectionItem,close:function(e){t.dialog.deleteItem.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.responseDialog.show,color:t.dialog.responseDialog.color,message:t.dialog.responseDialog.message},on:{close:function(e){t.dialog.responseDialog.show=!1}}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,agree:t.dialog.error.agree,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,content:t.dialog.confirm.content,width:420},on:{confirm:t.setOrder,close:function(e){t.dialog.confirm.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmItem.show,title:t.dialog.confirmItem.title,content:t.dialog.confirmItem.content,width:420},on:{confirm:t.setOrderItem,close:function(e){t.dialog.confirmItem.show=!1}}})],1)},zy=[],Ky=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-dialog",{attrs:{persistent:"",width:"500px"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("スタッフ属性(所属)グループ - "+t._s(t.create?"追加":"編集"))]),o("v-card-text",[o("v-container",[o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"スタッフ属性グループ名称",outlined:"","background-color":"white","hide-details":"auto",dense:"",rules:t.rules.groupName,counter:t.regexString.staffAttributeGroupSection.name.len},model:{value:t.formContent.sectionName,callback:function(e){t.$set(t.formContent,"sectionName",e)},expression:"formContent.sectionName"}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"スタッフ属性グループ略称",outlined:"","background-color":"white","hide-details":"auto",dense:"",rules:t.rules.groupAbbreviation,counter:t.regexString.staffAttributeGroupSection.abbreviation.len},model:{value:t.formContent.sectionAbbreviation,callback:function(e){t.$set(t.formContent,"sectionAbbreviation",e)},expression:"formContent.sectionAbbreviation"}})],1)],1)],1)])],1)],1),o("v-card-actions",[o("v-col",{attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",outlined:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("ConfirmDialog",{attrs:{show:t.dialog.confirmInsert.show,title:t.dialog.confirmInsert.title,content:t.dialog.confirmInsert.content,width:420},on:{confirm:t.submitInsert,close:function(e){t.dialog.confirmInsert.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmUpdate.show,title:t.dialog.confirmUpdate.title,content:t.dialog.confirmUpdate.content,width:420},on:{confirm:t.submitUpdate,close:function(e){t.dialog.confirmUpdate.show=!1}}})],1)},Yy=[],Zy=function(){return{groupName:[function(t){return!!t||"名称は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=Ry.staffAttributeGroupSection.name.len||"名称は".concat(Ry.staffAttributeGroupSection.name.len,"文字までです。")},function(t){return t&&Ry.staffAttributeGroupSection.name.pattern.test(t)||"使用不可文字が使われています"}],groupAbbreviation:[function(t){return!!t||"略称は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=Ry.staffAttributeGroupSection.abbreviation.len||"略称は".concat(Ry.staffAttributeGroupSection.abbreviation.len,"文字までです。")},function(t){return t&&Ry.staffAttributeGroupSection.abbreviation.pattern.test(t)||"使用不可文字が使われています"}],itemName:[function(t){return!!t||"名称は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=Ry.staffAttributeGroupSectionItem.name.len||"名称は".concat(Ry.staffAttributeGroupSectionItem.name.len,"文字までです。")},function(t){return t&&Ry.staffAttributeGroupSectionItem.name.pattern.test(t)||"使用不可文字が使われています"}],itemAbbreviation:[function(t){return!!t||"略称は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=Ry.staffAttributeGroupSectionItem.abbreviation.len||"略称は".concat(Ry.staffAttributeGroupSectionItem.abbreviation.len,"文字までです。")},function(t){return t&&Ry.staffAttributeGroupSectionItem.abbreviation.pattern.test(t)||"使用不可文字が使われています"}]}},Jy=Object(r["b"])({components:{ConfirmDialog:Yd},props:{show:{type:Boolean,required:!0,default:!1},sectionName:{type:String,required:!0},sectionAbbreviation:{type:String,required:!0},create:{type:Boolean,required:!0,default:!1},data:{type:Object,required:!1,default:function(){return{}}}},setup:function(t,e){var o=Object(r["n"])({valid:!1,show:t.show}),n=Object(r["n"])({confirmInsert:{show:!1,close:"OK",content:"グループ属性を保存します、続行しますか?"},confirmUpdate:{show:!1,title:"確認",close:"OK",content:"グループ属性を更新します、続行しますか?"}}),a=Object(r["p"])(),i=function(){var e,r;t.create?(console.log("登録"),console.log(t.create),console.log(a),console.log(o),null===(e=a.value)||void 0===e||e.validate(),o.valid&&(console.log("入ってる"),n.confirmInsert.show=!0)):(console.log("編集"),console.log(t.create),null===(r=a.value)||void 0===r||r.validate(),o.valid&&(n.confirmUpdate.show=!0))},s=function(){n.confirmInsert.show=!1,e.emit("submitInsert",d,l)},l=function(){var t;null===(t=a.value)||void 0===t||t.resetValidation(),d.sectionName="",d.sectionAbbreviation="",console.log("clear!")},c=function(){n.confirmUpdate.show=!1,e.emit("submitUpdate",d)},u=Object(r["a"])((function(){return{name:Object(r["q"])(t,"sectionName").value,abbreviation:Object(r["q"])(t,"sectionAbbreviation").value}})),d=Object(r["n"])({sectionName:"",sectionAbbreviation:""});return Object(r["s"])(u,(function(){console.log("default value"),d.sectionName=u.value.name,d.sectionAbbreviation=u.value.abbreviation})),{state:o,dialog:n,form:Object(r["p"])(),validate:i,submitInsert:s,submitUpdate:c,formContent:d,rules:Zy(),regexString:Ry}}}),Xy=Jy,tS=Object(k["a"])(Xy,Ky,Yy,!1,null,null,null),eS=tS.exports;uc()(tS,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VContainer:eu["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VTextField:yu["a"],VToolbar:Ku["a"]});var oS=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-dialog",{attrs:{persistent:"",width:"500px"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("スタッフ属性(所属) - "+t._s(t.create?"追加":"編集"))]),o("v-card-text",[o("v-container",[o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"スタッフ属性名称",outlined:"","background-color":"white","hide-details":"auto",dense:"",rules:t.rules.itemName,counter:t.regexString.staffAttributeGroupSectionItem.name.len},model:{value:t.formContent.sectionItemName,callback:function(e){t.$set(t.formContent,"sectionItemName",e)},expression:"formContent.sectionItemName"}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"スタッフ属性略称",outlined:"","background-color":"white","hide-details":"auto",dense:"",rules:t.rules.itemAbbreviation,counter:t.regexString.staffAttributeGroupSectionItem.abbreviation.len},model:{value:t.formContent.sectionItemAbbreviation,callback:function(e){t.$set(t.formContent,"sectionItemAbbreviation",e)},expression:"formContent.sectionItemAbbreviation"}})],1)],1)],1)])],1)],1),o("v-card-actions",[o("v-col",{attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",outlined:""},on:{click:function(e){return t.$emit("close")}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1),o("ConfirmDialog",{attrs:{show:t.dialog.confirmInsert.show,title:t.dialog.confirmInsert.title,content:t.dialog.confirmInsert.content,width:420},on:{confirm:t.submitInsert,close:function(e){t.dialog.confirmInsert.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmUpdate.show,title:t.dialog.confirmUpdate.title,content:t.dialog.confirmUpdate.content,width:420},on:{confirm:t.submitUpdate,close:function(e){t.dialog.confirmUpdate.show=!1}}})],1)},nS=[],aS=Object(r["b"])({components:{ConfirmDialog:Yd},props:{show:{type:Boolean,required:!0,default:!1},sectionItemName:{type:String,required:!0},sectionItemAbbreviation:{type:String,required:!0},create:{type:Boolean,required:!0,default:!1},data:{type:Object,required:!1,default:function(){return{}}}},setup:function(t,e){var o=Object(r["n"])({valid:!1,show:t.show}),n=Object(r["n"])({confirmInsert:{show:!1,close:"OK",content:"属性を保存します、続行しますか?"},confirmUpdate:{show:!1,title:"確認",close:"OK",content:"属性を更新します、続行しますか?"}}),a=Object(r["p"])(),i=function(){var e,r;t.create?(console.log("登録"),console.log(t.create),null===(e=a.value)||void 0===e||e.validate(),o.valid&&(n.confirmInsert.show=!0)):(console.log("編集"),console.log(t.create),null===(r=a.value)||void 0===r||r.validate(),o.valid&&(n.confirmUpdate.show=!0))},s=function(){n.confirmInsert.show=!1,e.emit("submitInsert",d,l)},l=function(){var t;null===(t=a.value)||void 0===t||t.resetValidation(),d.sectionItemName="",d.sectionItemAbbreviation="",console.log("clear!")},c=function(){n.confirmUpdate.show=!1,e.emit("submitUpdate",d)},u=Object(r["a"])((function(){return{name:Object(r["q"])(t,"sectionItemName").value,abbreviation:Object(r["q"])(t,"sectionItemAbbreviation").value}})),d=Object(r["n"])({sectionItemName:"",sectionItemAbbreviation:""});return Object(r["s"])(u,(function(){console.log("default value"),d.sectionItemName=u.value.name,d.sectionItemAbbreviation=u.value.abbreviation})),{state:o,dialog:n,form:Object(r["p"])(),validate:i,submitInsert:s,submitUpdate:c,formContent:d,rules:Zy(),regexString:Ry}}}),rS=aS,iS=Object(k["a"])(rS,oS,nS,!1,null,null,null),sS=iS.exports;uc()(iS,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VContainer:eu["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VTextField:yu["a"],VToolbar:Ku["a"]});var lS=Object(r["b"])({name:"dispStaffAttributeGroupSectionRow",props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm,DeleteDialog:of,SectionSettingGroup:eS,SectionSettingItem:sS,EditButton:Hg,DeleteButton:cf,Draggable:Zm.a},setup:function(){console.log("setup");var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({selectStaffAttributeGroupSectionAdminRow:{},staffAttributeGroupSectionAdminRow:[],sort:[],staffAttributeGroupSectionItemAdminRow:[],sortItem:[],isItemSelect:!0,selectSectionName:"",selectRow:{},sectionSearch:"",sectionItemSearch:"",isButtonClick:!1,isButtonClickItem:!1,isDisabledEdit:!1,isDisabled:!0,isDisabledItem:!0,enabled:!1,enabledItem:!1}),i=hr({id:1},E),s=(i.result,i.loading),l=i.onResult,c=(i.error,i.refetch);l((function(t){if(console.log("onResult call"),!t.error&&t.data.getStaffAttributeGroupSections&&Array.isArray(t.data.getStaffAttributeGroupSections)){var e,n=t.data.getStaffAttributeGroupSections.map((function(t){return{concurrencyStamp:t.concurrencyStamp,registrationAccount:t.registrationAccount,registrationTime:t.registrationTime,staffAttributeGroupSectionID:t.staffAttributeGroupSectionID,sectionID:t.sectionID,sort:t.sort,name:t.name,abbreviation:t.abbreviation,deleteFlag:t.deleteFlag,staffAttributeGroupSectionItems:t.staffAttributeGroupSectionItems}}));(e=o.staffAttributeGroupSectionAdminRow).splice.apply(e,[0,o.staffAttributeGroupSectionAdminRow.length].concat(Object(a["a"])(n))),console.log(o.staffAttributeGroupSectionAdminRow),console.log("onResult!")}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(nt.error.content=r.message,nt.error.show=!0)}}));var u=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("initialize"),t.prev=1,t.next=4,c();case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](1),nt.error.content=Bu,nt.error.show=!0;case 10:case"end":return t.stop()}}),t,null,[[1,6]])})));return function(){return t.apply(this,arguments)}}(),d=Xr({fetchPolicy:"no-cache"}),f=d.mutate,m=(d.loading,d.error,d.called,d.onDone),g=d.onError;m((function(t){if(t.errors){if(t.errors){var e=pt(t.errors);nt.error.content=e.message,nt.error.show=!0}}else nt.createSectionDialog.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="登録成功",u()})),g((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var h=function(t,e){try{console.log("insertSection call"),console.log("FormData:",t);var o={sectionID:1,name:t.sectionName,abbreviation:t.sectionAbbreviation};console.log("isnert call!"),console.log(o),f({model:o}),e()}catch(n){nt.error.content=Hu,nt.error.show=!0}console.log("saveInsertSettings!")},v=function(t){console.log("editSectionSettings call"),console.log(t.name),console.log(t.abbreviation),at.sectionName=t.name,at.sectionAbbreviation=t.abbreviation,nt.editSectionDialog.show=!0},p=ms({fetchPolicy:"no-cache"}),b=p.mutate,y=(p.loading,p.error,p.called,p.onDone),S=p.onError;y((function(t){var e;if(t.data&&null!==(e=t.data.updateStaffAttributeGroupSection)&&void 0!==e&&e.succeed){var n,a,r,i=t.data.updateStaffAttributeGroupSection.result,s=null===(n=t.data.updateStaffAttributeGroupSection.result)||void 0===n?void 0:n.staffAttributeGroupSectionID,l=o.staffAttributeGroupSectionAdminRow.findIndex((function(t){return t.staffAttributeGroupSectionID===s}));if(o.staffAttributeGroupSectionAdminRow.splice(l,1,i),null!==(a=t.data.updateStaffAttributeGroupSection.result)&&void 0!==a&&a.name)o.selectSectionName=null===(r=t.data.updateStaffAttributeGroupSection.result)||void 0===r?void 0:r.name}else if(t.errors){var c=pt(t.errors);nt.error.content=c.message,nt.error.show=!0}nt.editSectionDialog.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="更新成功"})),S((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var D=function(t){try{console.log("updateSection call"),console.log(t);var e={staffAttributeGroupSectionID:at.staffAttributeGroupSectionID,concurrencyStamp:at.sectionConcurrencyStamp,name:t.sectionName,abbreviation:t.sectionAbbreviation};console.log("update call!"),console.log(e),b({model:e})}catch(o){nt.error.content=Hu,nt.error.show=!0}console.log("saveUpdateSettings!")},C=function(){console.log("deleteItem call"),nt.deleteSection.show=!0},w=Zn({fetchPolicy:"no-cache"}),k=w.mutate,I=(w.loading,w.error,w.called,w.onDone),x=w.onError;I((function(t){var e,n,a;console.log("deleteOnDone");var r=null===(e=t.data)||void 0===e||null===(n=e.deleteStaffAttributeGroupSection)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.staffAttributeGroupSectionID,i=o.staffAttributeGroupSectionAdminRow.findIndex((function(t){return t.staffAttributeGroupSectionID===r}));o.staffAttributeGroupSectionAdminRow.splice(i,1),o.isItemSelect=!0,o.selectSectionName="",o.staffAttributeGroupSectionItemAdminRow=[],nt.deleteSection.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="削除成功"})),x((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var T=function(){try{console.log("deleteSection call");var t={staffAttributeGroupSectionID:at.staffAttributeGroupSectionID,concurrencyStamp:at.sectionConcurrencyStamp};console.log("deleteSection call!"),k({model:t})}catch(e){nt.error.content=Hu,nt.error.show=!0}console.log("deleteSection!")},A=mr({id:0},E),_=(A.result,A.loading,A.onResult),O=(A.error,A.refetch);_((function(t){if(console.log("sectionForAdminOnResult call"),console.log(t.data),!t.error&&t.data.getStaffAttributeGroupSection){var e,n,r;if(o.selectStaffAttributeGroupSectionAdminRow=t.data.getStaffAttributeGroupSection,o.selectStaffAttributeGroupSectionAdminRow.staffAttributeGroupSectionItems&&Array.isArray(o.selectStaffAttributeGroupSectionAdminRow.staffAttributeGroupSectionItems)){var i,s=bt(o.selectStaffAttributeGroupSectionAdminRow.staffAttributeGroupSectionItems);(i=o.staffAttributeGroupSectionItemAdminRow).splice.apply(i,[0,o.staffAttributeGroupSectionItemAdminRow.length].concat(Object(a["a"])(s)))}if(console.log("!!!!!!!!!!!!!!!!"),console.log(o.staffAttributeGroupSectionItemAdminRow),null===(e=o.selectRow)||void 0===e||!e.isSelected)console.log("sectionRowClick"),console.log(null===(n=o.selectRow)||void 0===n?void 0:n.item),console.log(o.selectStaffAttributeGroupSectionAdminRow),at.staffAttributeGroupSectionID=o.selectStaffAttributeGroupSectionAdminRow.staffAttributeGroupSectionID,at.sectionConcurrencyStamp=o.selectStaffAttributeGroupSectionAdminRow.concurrencyStamp,at.sectionName=o.selectStaffAttributeGroupSectionAdminRow.name,at.sectionAbbreviation=o.selectStaffAttributeGroupSectionAdminRow.abbreviation,console.log("formContent:",at),o.isItemSelect=!1,o.selectSectionName=null===(r=o.selectRow)||void 0===r?void 0:r.item.name;console.log("sectionForAdminOnResult!")}else if(t.errors){var l=pt(t.errors);l.code!==M.QueryRecordNotFound&&(nt.error.content=l.message,nt.error.show=!0)}}));var R=function(t,e){console.log("sectionRowClick call"),console.log(e),o.selectRow=e;try{console.log("getStaffAttributeGroupSectionForAdminRefetch"),O({id:t.staffAttributeGroupSectionID})}catch(n){nt.error.content=Bu,nt.error.show=!0}console.log(at),e.select(!e.isSelected)},F=ei({fetchPolicy:"no-cache"}),V=F.mutate,j=(F.loading,F.error,F.called,F.onDone),G=F.onError;j((function(t){var e;if(t.data&&null!==(e=t.data.insertStaffAttributeGroupSectionItem)&&void 0!==e&&e.succeed){var n,a=t.data.insertStaffAttributeGroupSectionItem.result,r=null===(n=t.data.insertStaffAttributeGroupSectionItem.result)||void 0===n?void 0:n.staffAttributeGroupSectionItemID;o.staffAttributeGroupSectionItemAdminRow.findIndex((function(t){return t.staffAttributeGroupSectionItemID===r}));o.staffAttributeGroupSectionItemAdminRow.splice(o.staffAttributeGroupSectionItemAdminRow.length,0,a)}else if(t.errors){var i=pt(t.errors);nt.error.content=i.message,nt.error.show=!0}nt.createItemDialog.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="登録成功"})),G((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var $=function(t,e){try{console.log("FormData:",t),console.log("formContent:",at);var o={staffAttributeGroupSectionID:at.staffAttributeGroupSectionID,name:t.sectionItemName,abbreviation:t.sectionItemAbbreviation};V({model:o}),e()}catch(n){nt.error.content=Hu,nt.error.show=!0}},N=function(t){console.log("editSectionItemSettings call"),console.log(t.name),console.log(t.abbreviation),at.sectionItemName=t.name,at.sectionItemAbbreviation=t.abbreviation,nt.editItemDialog.show=!0},L=hs({fetchPolicy:"no-cache"}),P=L.mutate,W=(L.loading,L.error,L.called,L.onDone),B=L.onError;W((function(t){var e;if(t.data&&null!==(e=t.data.updateStaffAttributeGroupSectionItem)&&void 0!==e&&e.succeed){var n,a=t.data.updateStaffAttributeGroupSectionItem.result,r=null===(n=t.data.updateStaffAttributeGroupSectionItem.result)||void 0===n?void 0:n.staffAttributeGroupSectionItemID,i=o.staffAttributeGroupSectionItemAdminRow.findIndex((function(t){return t.staffAttributeGroupSectionItemID===r}));o.staffAttributeGroupSectionItemAdminRow.splice(i,1,a)}else if(t.errors){var s=pt(t.errors);nt.error.content=s.message,nt.error.show=!0}nt.editItemDialog.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="更新成功"})),B((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var H=function(t){try{console.log("updateSectionItem call"),console.log("FormData:",t),console.log("formContent:",at);var e={staffAttributeGroupSectionItemID:at.staffAttributeGroupSectionItemID,concurrencyStamp:at.sectionItemConcurrencyStamp,name:t.sectionItemName,abbreviation:t.sectionItemAbbreviation};P({model:e})}catch(o){nt.error.content=Hu,nt.error.show=!0}},q=function(){console.log("deleteSectionItemClick call"),nt.deleteItem.show=!0},Q=Xn({fetchPolicy:"no-cache"}),U=Q.mutate,z=(Q.loading,Q.error,Q.called,Q.onDone),K=Q.onError;z((function(t){var e,n,a,r=null===(e=t.data)||void 0===e||null===(n=e.deleteStaffAttributeGroupSectionItem)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.staffAttributeGroupSectionItemID,i=o.staffAttributeGroupSectionItemAdminRow.findIndex((function(t){return t.staffAttributeGroupSectionItemID===r}));o.staffAttributeGroupSectionItemAdminRow.splice(i,1),nt.deleteItem.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="削除成功"})),K((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var Y=function(){try{console.log("deleteSectionItemClick call"),console.log(at);var t={staffAttributeGroupSectionItemID:at.staffAttributeGroupSectionItemID,concurrencyStamp:at.sectionItemConcurrencyStamp};U({model:t}),console.log("deleteData:",t)}catch(e){nt.error.content=Hu,nt.error.show=!0}},Z=function(t,e){console.log("sectionItemRowClick call"),console.log("row",e),e.isSelected||(at.staffAttributeGroupSectionItemID=t.staffAttributeGroupSectionItemID,at.sectionItemConcurrencyStamp=t.concurrencyStamp),console.log(at),e.select(!e.isSelected)},J=Object(r["a"])((function(){if(console.log(o.staffAttributeGroupSectionAdminRow),o.staffAttributeGroupSectionAdminRow)return o.staffAttributeGroupSectionAdminRow.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{names:t.name+(t.abbreviation?"("+t.abbreviation+")":"")})}))})),tt=Object(r["a"])((function(){if(o.staffAttributeGroupSectionItemAdminRow)return o.staffAttributeGroupSectionItemAdminRow.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{names:t.name+(t.abbreviation?"("+t.abbreviation+")":"")})}))})),et=[{text:"属性グループ名称(略称)",value:"names"},{text:"",value:"actions"}],ot=[{text:"属性名称(略称)",value:"names"},{text:"",value:"actions"}],nt=Object(r["n"])({deleteSection:{show:!1,title:"確認",close:"OK",content:"選択したレコードを削除します、続行しますか?"},deleteItem:{show:!1,title:"確認",close:"OK",content:"選択したレコードを削除します、続行しますか?"},error:{show:!1,title:"",close:"",content:""},responseDialog:{show:!1,message:"",color:""},createSectionDialog:{show:!1},editSectionDialog:{show:!1},createItemDialog:{show:!1},editItemDialog:{show:!1},confirm:{show:!1,title:"確認",close:"OK",content:"保存します、続行しますか?"},confirmItem:{show:!1,title:"確認",close:"OK",content:"保存します、続行しますか?"}}),at=Object(r["n"])({staffAttributeGroupSectionID:-1,sectionConcurrencyStamp:"",sectionName:"",sectionAbbreviation:"",staffAttributeGroupSectionItemID:-1,sectionItemConcurrencyStamp:"",sectionItemName:"",sectionItemAbbreviation:""}),rt=function(){console.log("buttonClick call"),o.isButtonClick=!0,o.isDisabledEdit=!0,o.isDisabled=!1,o.sort=o.staffAttributeGroupSectionAdminRow,o.enabledItem=!0},it=function(){nt.confirm.show=!0},st=function(){console.log("setOrder call");try{var t=JSON.stringify(o.sort),e=JSON.stringify(o.staffAttributeGroupSectionAdminRow);if(t===e)console.log("変更なし"),nt.error.content=qu,nt.error.show=!0,nt.confirm.show=!1;else if(console.log("変更あり"),console.log(o.staffAttributeGroupSectionAdminRow),o.staffAttributeGroupSectionAdminRow){var n=o.staffAttributeGroupSectionAdminRow.map((function(t){return{concurrencyStamp:t.concurrencyStamp,staffAttributeGroupSectionID:t.staffAttributeGroupSectionID}}));console.log("orderData",n),ct({models:n,id:1})}}catch(a){nt.error.content=Hu,nt.error.show=!0}},lt=Di({fetchPolicy:"no-cache"}),ct=lt.mutate,ut=(lt.loading,lt.error,lt.called,lt.onDone),dt=lt.onError;ut((function(t){var e;if(console.log("setOrderOnDone"),t.data&&null!==(e=t.data.setOrderStaffAttributeGroupSection)&&void 0!==e&&e.succeed){var n,r=t.data.setOrderStaffAttributeGroupSection.result;if((n=o.staffAttributeGroupSectionAdminRow).splice.apply(n,[0,o.staffAttributeGroupSectionAdminRow.length].concat(Object(a["a"])(r))),o.selectStaffAttributeGroupSectionAdminRow.staffAttributeGroupSectionItems&&Array.isArray(o.selectStaffAttributeGroupSectionAdminRow.staffAttributeGroupSectionItems)){var i,s=bt(o.selectStaffAttributeGroupSectionAdminRow.staffAttributeGroupSectionItems);(i=o.staffAttributeGroupSectionItemAdminRow).splice.apply(i,[0,o.staffAttributeGroupSectionItemAdminRow.length].concat(Object(a["a"])(s)))}}else if(t.errors){var l=pt(t.errors);nt.error.content=l.message,nt.error.show=!0}nt.confirm.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="更新成功",o.isButtonClick=!1,o.isDisabledEdit=!1,o.isDisabled=!0,o.enabledItem=!1})),dt((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var ft=function(){console.log("buttonStop call"),o.isButtonClick=!1,o.isDisabledEdit=!1,o.isDisabled=!0,o.staffAttributeGroupSectionAdminRow=o.sort,o.enabledItem=!1},mt=function(){console.log("buttonClickItem call"),o.isButtonClickItem=!0,o.isItemSelect=!0,o.isDisabledItem=!1,o.sortItem=o.staffAttributeGroupSectionItemAdminRow,o.enabled=!0},gt=function(){nt.confirmItem.show=!0},ht=function(){console.log("setOrderItem call");try{var t=JSON.stringify(o.sortItem),e=JSON.stringify(o.staffAttributeGroupSectionItemAdminRow);if(t===e)console.log("変更なし"),nt.error.content=qu,nt.error.show=!0,nt.confirmItem.show=!1;else if(o.staffAttributeGroupSectionItemAdminRow){var n=o.staffAttributeGroupSectionItemAdminRow.map((function(t){return{concurrencyStamp:t.concurrencyStamp,staffAttributeGroupSectionItemID:t.staffAttributeGroupSectionItemID}}));yt({models:n,id:at.staffAttributeGroupSectionID})}}catch(a){nt.error.content=Hu,nt.error.show=!0}},vt=wi({fetchPolicy:"no-cache"}),yt=vt.mutate,St=(vt.loading,vt.error,vt.called,vt.onDone),Dt=vt.onError;St((function(t){var e;if(console.log("setOrderItemOnDone"),t.data&&null!==(e=t.data.setOrderStaffAttributeGroupSectionItem)&&void 0!==e&&e.succeed){var n,r=t.data.setOrderStaffAttributeGroupSectionItem.result;(n=o.staffAttributeGroupSectionItemAdminRow).splice.apply(n,[0,o.staffAttributeGroupSectionItemAdminRow.length].concat(Object(a["a"])(r)))}else if(t.errors){var i=pt(t.errors);nt.error.content=i.message,nt.error.show=!0}nt.confirmItem.show=!1,nt.responseDialog.show=!0,nt.responseDialog.color="success",nt.responseDialog.message="更新成功",o.isButtonClickItem=!1,o.isItemSelect=!1,o.isDisabledItem=!0,o.enabled=!1})),Dt((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);nt.error.content=e.message,nt.error.show=!0}else nt.error.content="エラーメッセージ表示",nt.error.show=!0}));var Ct=function(){console.log("buttonStopItem call"),o.isButtonClickItem=!1,o.isItemSelect=!1,o.isDisabledItem=!0,o.staffAttributeGroupSectionItemAdminRow=o.sortItem,o.enabled=!1};return u(),{state:o,getStaffAttributeGroupSectionsLoading:s,initialize:u,insertSection:h,editSectionSettings:v,updateSection:D,deleteSectionClick:C,deleteSection:T,sectionRowClick:R,insertSectionItem:$,editSectionItemSettings:N,updateSectionItem:H,deleteSectionItemClick:q,deleteSectionItem:Y,sectionItemRowClick:Z,dispStaffAttributeGroupSectionRow:J,dispStaffAttributeGroupSectionItemAdminRow:tt,sectionHeader:et,sectionItemHeader:ot,dialog:nt,formContent:at,sortClick:rt,saveClick:it,setOrder:st,doneClick:ft,sortItemClick:mt,saveItemClick:gt,setOrderItem:ht,doneItemClick:Ct}}}),cS=lS,uS=Object(k["a"])(cS,Uy,zy,!1,null,"4720885e",null),dS=uS.exports;uc()(uS,{VBtn:mc["a"],VCard:Ic["a"],VCardTitle:uu["c"],VCol:xc["a"],VDataTable:zu["a"],VDivider:Tc["a"],VForm:fu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRow:Oc["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"],VTooltip:fd["a"]});var fS=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("アカウント管理")]),t.isGetLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-card",[o("v-card-title",[o("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"検索","hide-details":""},model:{value:t.state.search,callback:function(e){t.$set(t.state,"search",e)},expression:"state.search"}})],1),o("v-data-table",{attrs:{headers:t.header,items:t.state.accounts,search:t.state.search,"sort-by":"no"},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("アカウントリスト")])],1)]},proxy:!0},{key:"item.no",fn:function(e){var n=e.index;return[o("td",[t._v(t._s(n+1))])]}}],null,!0)})],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1)],1)],1)],1)]),o("ErrorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}})],1)},mS=[],gS=Object(r["b"])({components:{ErrorDialog:Ou},setup:function(){var t=ic(),e=bk(),o=2;t.commit("main/changeDrawerContent",{contentId:o});var n=Object(r["n"])({search:"",accounts:[]}),i=[{text:"No",value:"no"},{text:"メールアドレス",value:"mailAddress"},{text:"役割",value:"description"}],s=Object(r["n"])({error:{show:!1,title:"",close:"",content:""}}),l=sa(E),c=(l.result,l.loading),u=l.onResult,d=(l.error,l.refetch);u((function(t){if(!t.error&&t.data.getAccounts){var e;console.log("getOnResult");var o=t.data.getAccounts.map((function(t){return{mailAddress:t.mailAddress,roles:t.roles,description:t.roles[0].description}}));(e=n.accounts).splice.apply(e,[0,n.accounts.length].concat(Object(a["a"])(o))),console.log("accouts",n.accounts)}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(s.error.content=r.message,s.error.show=!0)}}));var f=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d();case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),s.error.content=Bu,s.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}();return f(),{store:t,router:e,state:n,header:i,dialog:s,isGetLoading:c}}}),hS=gS,vS=Object(k["a"])(hS,fS,mS,!1,null,"4324d788",null),pS=vS.exports;uc()(vS,{VBtn:mc["a"],VCard:Ic["a"],VCardTitle:uu["c"],VCol:xc["a"],VDataTable:zu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRow:Oc["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var bS=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("アカウントの新規登録")]),o("Account-register",{on:{submit:t.submit}})],1),o("ErrorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}})],1)},yS=[],SS=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{label:"メールアドレス","hide-details":"auto",outlined:"",counter:"64","background-color":"white",rules:t.rules.emailAddress},model:{value:t.formContent.email,callback:function(e){t.$set(t.formContent,"email",e)},expression:"formContent.email"}}),o("v-text-field",{attrs:{label:"メールアドレス確認入力","hide-details":"auto",outlined:"",counter:"64","background-color":"white",rules:t.rules2.email2},model:{value:t.formContent.email2,callback:function(e){t.$set(t.formContent,"email2",e)},expression:"formContent.email2"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-card",{staticClass:"pa-3"},[t._v(" 役割 "),t._l(t.state.roles,(function(e,n){return o("v-checkbox",{key:e,staticClass:"mt-4 mb-4",attrs:{label:e,color:"indigo",value:n,"hide-details":""},model:{value:t.formContent.roles,callback:function(e){t.$set(t.formContent,"roles",e)},expression:"formContent.roles"}})}))],2)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.submit}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check")])],1)],1)])],1)],1)],1),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.onConfirm}})],1)},DS=[],CS=function(){return{emailAddress:[function(t){return!!t||"メールアドレスは必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=64||"メールアドレスは64文字以上必要です。"},function(t){return/^[a-zA-Z0-9!-/:-@¥[-`{-~]*$/.test(t)||"メールアドレスに使用できるのは半角英数字・記号のみです。"}],passWord:[function(t){return!!t||"パスワードは必須項目です。"},function(t){return t&&Object(a["a"])(t).length>=8&&Object(a["a"])(t).length<=32||"パスワードは8文字以上32文字以内です。"},function(t){return/^[a-zA-Z0-9!-/:-@¥[-`{-~]*$/.test(t)||"パスワードに使用できるのは半角英数字・記号のみです。"},function(t){return/(?=.*[A-Z])/.test(t)||"大文字を一つ以上含めてください。"},function(t){return/(?=.*[a-z])/.test(t)||"小文字を一つ以上含めてください。"},function(t){return/(?=.*[0-9])/.test(t)||"数字を一つ以上含めてください。"},function(t){return/(?=.*[!-/:-@¥[-`{-~])/.test(t)||"記号を一つ以上含めてください。"}],passWord2:[function(t){return!!t||"パスワード確認は必須項目です。"},function(t){return t&&Object(a["a"])(t).length>=8&&Object(a["a"])(t).length<=32||"パスワード確認は8文字以上32文字以内です。"},function(t){return/^[a-zA-Z0-9!-/:-@¥[-`{-~]*$/.test(t)||"パスワード確認に使用できるのは半角英数字・記号のみです。"},function(t){return/(?=.*[A-Z])/.test(t)||"大文字を一つ以上含めてください。"},function(t){return/(?=.*[a-z])/.test(t)||"小文字を一つ以上含めてください。"},function(t){return/(?=.*[0-9])/.test(t)||"数字を一つ以上含めてください。"},function(t){return/(?=.*[!-/:-@¥[-`{-~])/.test(t)||"記号を一つ以上含めてください。"}],authenticatorCode:[function(t){return!!t||"認証コードは必須項目です。"},function(t){return t&&6==Object(a["a"])(t).length||"認証コードは6文字です。"}]}},wS=Object(r["b"])({components:{ConfirmDialog:Yd,ErrorDialog:Ou},props:{accountData:{type:Object,default:null,required:!1}},setup:function(t,e){var o=Object(r["n"])({valid:!1,roles:["システム管理者","組織管理者","所属管理者","一般ユーザー","携帯アプリユーザー"]}),n=Object(r["p"])(),a=Object(r["n"])({email:"",roles:["システム管理者","組織管理者","所属管理者","一般ユーザー","携帯アプリユーザー"],belongs:[]});null!==t.accountData&&(a.email=t.accountData.emailAddress,a.roles=t.accountData.roles);var i=Object(r["n"])({confirm:{show:!1,title:"確認",agree:"OK",content:"追加したアカウントを設定します、続行しますか?"},error:{show:!1,title:"",close:"",content:""}}),s=function(t){return a.email==t},l={email2:[function(t){return s(t)||"メールアドレスが異なります。"}]},c=function(){i.confirm.show=!1,e.emit("submit",a)},u=function(){var t;null===(t=n.value)||void 0===t||t.validate(),o.valid&&(i.confirm.show=!0)};return{form:n,formContent:a,submit:u,state:o,rules:CS(),rules2:l,dialog:i,onConfirm:c}},emits:["submit"]}),kS=wS,IS=Object(k["a"])(kS,SS,DS,!1,null,"6f1b6dd3",null),xS=IS.exports;uc()(IS,{VBtn:mc["a"],VCard:Ic["a"],VCheckbox:du["a"],VCol:xc["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VTextField:yu["a"]});var TS=Object(r["b"])({components:{ErrorDialog:Ou,AccountRegister:xS},setup:function(){var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({error:{show:!1,title:"",close:"",content:""}}),n=function(t){};return{dialog:o,submit:n}}}),AS=TS,_S=Object(k["a"])(AS,bS,yS,!1,null,"b9bcde3c",null),OS=_S.exports,RS=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("アカウントの修正")]),null!==t.state.account?o("Account-register",{attrs:{"account-data":t.state.account},on:{submit:t.submit}}):t._e()],1),o("ErrorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}})],1)},FS=[],VS=[{no:1,emailAddress:"test1@example.co.jp",auth:"権限A",status:"ステータスA",option:!0,roles:["システム管理者","組織管理者","所属管理者","一般ユーザー","携帯アプリユーザー",0,2]},{no:2,emailAddress:"test2@example.co.jp",auth:"権限B",status:"ステータスB",option:!1,roles:["システム管理者","組織管理者","所属管理者","一般ユーザー","携帯アプリユーザー",2,4]},{no:3,emailAddress:"test3@example.co.jp",auth:"権限C",status:"ステータスC",option:!0,roles:["システム管理者","組織管理者","所属管理者","一般ユーザー","携帯アプリユーザー",0,2,3,4]}],jS=function(t){var e=VS.filter((function(e){return e.no===t}))[0];return e},ES=Object(r["b"])({components:{ErrorDialog:Ou,AccountRegister:xS},setup:function(){var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({account:null}),n=Object(r["n"])({error:{show:!1,title:"",close:"",content:""}}),a=t.getters["accounts/selectNo"];void 0!==a&&(o.account=jS(Number(a)));var i=function(t){};return{state:o,dialog:n,submit:i}}}),GS=ES,$S=Object(k["a"])(GS,RS,FS,!1,null,"19209420",null),NS=$S.exports,LS=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("2要素認証セットアップ")]),o("p",{staticClass:"content__content-txt content-txt"},[t._v("お持ちのスマートフォンにGoogle Authenticatorアプリをインストールしてください。")]),o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"12"}},[o("p",[t._v(" QRコードをGoogle Authenticatorアプリで読み込んで、6桁の認証コードを入力してください。※バックアップキーとなるため、QRコードは保存してください ")])])],1),o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{label:"認証コード","hide-details":"auto",outlined:"",counter:"6","background-color":"white",rules:t.rules.authenticatorCode}})],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.submit}},[t._v("有効化")])],1)])],1)],1)],1),o("confirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{close:function(e){t.dialog.confirm.show=!1}}}),o("errorDialog",{attrs:{show:t.dialog.error.show,title:t.dialog.error.title,close:t.dialog.error.close,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}})],1)},MS=[],PS=Object(r["b"])({components:{confirmDialog:Yd,errorDialog:Ou},setup:function(){var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({valid:!1}),n=Object(r["n"])({confirm:{show:!1,title:"確認",agree:"OK",content:"入力した認証コードを有効化します、続行しますか?"},error:{show:!1,title:"",close:"",content:""}});return{state:o,rules:CS(),form:Object(r["p"])(),dialog:n}},methods:{submit:function(){var t;null===(t=this.form)||void 0===t||t.validate(),this.state.valid&&(this.dialog.confirm.show=!0)}}}),WS=PS,BS=Object(k["a"])(WS,LS,MS,!1,null,"08ecf47c",null),HS=BS.exports;uc()(BS,{VBtn:mc["a"],VCol:xc["a"],VForm:fu["a"],VRow:Oc["a"],VTextField:yu["a"]});var qS=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("組織設定")]),t.loading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-form",{ref:"form",model:{value:t.state.valid,callback:function(e){t.$set(t.state,"valid",e)},expression:"state.valid"}},[o("v-row",{staticClass:"mt-4"},[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-text-field",{attrs:{label:"組織名","hide-details":"auto",outlined:"",dense:"","background-color":"white",rules:t.rules.name,counter:t.regexString.organization.name.len},model:{value:t.formContent.name,callback:function(e){t.$set(t.formContent,"name",e)},expression:"formContent.name"}})],1)],1),o("v-row",[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-card",{staticClass:"pa-3",attrs:{outlined:""}},[o("v-radio-group",{attrs:{"hide-details":"auto","background-color":"white"},model:{value:t.formContent.isAttendanceRequest,callback:function(e){t.$set(t.formContent,"isAttendanceRequest",e)},expression:"formContent.isAttendanceRequest"}},t._l(t.changeRequestList,(function(t,e){return o("v-radio",{key:t,attrs:{label:t,value:e}})})),1)],1)],1),t.showSubmitControl?o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"9"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check")])],1)],1)]),o("v-col",{attrs:{cols:"1"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"info"},on:{click:t.onTransition}},[t._v("所属設定")])],1)])],1)],1):t._e()],1)],1)],1)]),o("confirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{confirm:t.saveSettings,close:function(e){t.dialog.confirm.show=!1}}}),o("responseDialog",{attrs:{show:t.dialog.responseDialog.show,color:t.dialog.responseDialog.color,message:t.dialog.responseDialog.message},on:{close:function(e){t.dialog.responseDialog.show=!1}}}),o("error-dialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}})],1)},QS=[],US=function(){return{name:[function(t){return!!t||"組織名は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=Ry.organization.name.len||"組織名は".concat(Ry.organization.name.len,"文字までです。")},function(t){return t&&Ry.organization.name.pattern.test(t)||Ry.organization.name.msg}]}},zS=Object(r["b"])({props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{confirmDialog:Yd,errorDialog:Ou,responseDialog:tm},setup:function(){var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=["出退勤の変更申請は管理者の承認を不要とする","出退勤の変更申請は管理者の承認を必要とする"],n=Object(r["n"])({valid:!1,flg:!1}),a=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"入力中の組織情報が保存されます、続行しますか?"},error:{show:!1,title:"",close:"",content:""},responseDialog:{show:!1,message:"",color:""}}),i=_a({fetchPolicy:"standby"}),s=(i.result,i.loading),l=i.onResult,c=(i.error,i.refetch),u=Ui({fetchPolicy:"no-cache"}),d=u.mutate,f=(u.loading,u.error,u.called,u.onDone),m=u.onError,g=Object(r["p"])(),h=Object(r["n"])({isAttendanceRequest:0,name:"default",concurrencyStamp:""}),v=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("test"),t.prev=1,console.log("getOrganization"),t.next=5,c();case 5:t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](1),a.error.content=Bu,a.error.show=!0;case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(){return t.apply(this,arguments)}}();l((function(t){if(!t.error&&t.data.getOrganization)h.name=t.data.getOrganization.name,h.isAttendanceRequest=t.data.getOrganization.isAttendanceRequest?1:0,h.concurrencyStamp=t.data.getOrganization.concurrencyStamp;else if(t.errors){var e=pt(t.errors);e.code!==M.QueryRecordNotFound&&(a.error.content=e.message,a.error.show=!0)}}));var p=function(){if(console.log("saveSettings call"),!n.flg){n.flg=!0;try{var t={concurrencyStamp:h.concurrencyStamp,name:h.name,isAttendanceRequest:1===h.isAttendanceRequest};console.log(h.isAttendanceRequest),console.log(t.isAttendanceRequest),d({model:t})}catch(e){n.flg=!1,a.error.content=Hu,a.error.show=!0}}};f((function(t){var e,o;if(n.flg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateOrganization)&&void 0!==o&&o.succeed){var r,i,s,l,c;if(null!==(r=t.data.updateOrganization.result)&&void 0!==r&&r.concurrencyStamp)h.concurrencyStamp=null===(l=t.data.updateOrganization.result)||void 0===l?void 0:l.concurrencyStamp;if(null!==(i=t.data.updateOrganization.result)&&void 0!==i&&i.name)h.name=null===(c=t.data.updateOrganization.result)||void 0===c?void 0:c.name;h.isAttendanceRequest=null!==(s=t.data.updateOrganization.result)&&void 0!==s&&s.isAttendanceRequest?1:0}else if(t.errors){var u=pt(t.errors);u.code!==M.QueryRecordNotFound&&(a.error.content=u.message,a.error.show=!0)}a.confirm.show=!1,a.responseDialog.show=!0,a.responseDialog.color="success",a.responseDialog.message="保存成功"})),m((function(t){if(n.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(a.error.content=t.message,a.error.show=!0)}}));var b=function(){n.valid&&(a.confirm.show=!0)},y=function(){pk.push({name:"system-section"})};return v(),{formContent:h,changeRequestList:o,dialog:a,form:g,state:n,initialize:v,loading:s,saveSettings:p,validate:b,rules:US(),regexString:Ry,onTransition:y}}}),KS=zS,YS=Object(k["a"])(KS,qS,QS,!1,null,"575d739e",null),ZS=YS.exports;uc()(YS,{VBtn:mc["a"],VCard:Ic["a"],VCol:xc["a"],VForm:fu["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VTextField:yu["a"]});var JS=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("所属設定")]),t.getSectionsForAdminLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("v-row",[o("v-col",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{cols:"12",md:"4"}},[o("v-card",[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.header,items:t.editState.rows,"single-select":"","item-key":"sectionID",height:"390","fixed-header":""},on:{"click:row":t.rowClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("所属")])],1)]},proxy:!0},{key:"item.actions",fn:function(e){var n=e.item;return[o("delete-button",{on:{delete:function(e){return t.deleteItem(n)}}})]}}],null,!0)}),o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{staticClass:"mb-5 center",attrs:{color:"primary",dark:""},on:{click:t.createClick}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-plus-box-outline ")]),t._v(" 所属追加 ")],1)],1)],1)],1),t.isSelected?o("v-col",{attrs:{cols:"12",md:"8"}},[o("v-form",{ref:"editForm",model:{value:t.editState.isEditValid,callback:function(e){t.$set(t.editState,"isEditValid",e)},expression:"editState.isEditValid"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-text-field",{attrs:{label:"所属名","hide-details":"auto",outlined:"",counter:"64","background-color":"white",dense:"",rules:t.rules.name},model:{value:t.editState.editing.name,callback:function(e){t.$set(t.editState.editing,"name",e)},expression:"editState.editing.name"}})],1)],1),o("v-card",{staticClass:"pl-3 pr-3 pt-3"},[o("div",{staticClass:"pb-3"},[t._v("シフト表の作成開始日設定")]),o("v-row",[t.editState.editing.shiftTablePeriod===t.ShiftTablePeriod.Month?o("v-col",{attrs:{cols:"12",md:"2"}},[o("v-select",{attrs:{items:t.editState.days,label:"開始日","hide-details":"auto",outlined:"","background-color":"white",dense:"",rules:t.rules.startMonth},model:{value:t.editState.editing.monthStartDay,callback:function(e){t.$set(t.editState.editing,"monthStartDay",e)},expression:"editState.editing.monthStartDay"}})],1):t._e(),t.editState.editing.shiftTablePeriod===t.ShiftTablePeriod.Month&&!0===t.editState.editing.monthIsFourWeek?o("v-col",{attrs:{cols:"12",md:"4"}},[o("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:"4週区切りの基準日","prepend-icon":"mdi-calendar",readonly:"",outlined:"",dense:"",rules:t.rules.startWeek,"hide-details":"auto","background-color":"white"},model:{value:t.monthReferenceDateFourWeekDisp,callback:function(e){t.monthReferenceDateFourWeekDisp=e},expression:"monthReferenceDateFourWeekDisp"}},"v-text-field",a,!1),n))]}}],null,!1,3404753424)},[o("v-date-picker",{attrs:{"no-title":""},model:{value:t.editState.editing.monthReferenceDateFourWeek,callback:function(e){t.$set(t.editState.editing,"monthReferenceDateFourWeek",e)},expression:"editState.editing.monthReferenceDateFourWeek"}})],1)],1):t._e(),t.editState.editing.shiftTablePeriod===t.ShiftTablePeriod.Fourweeks?o("v-col",{attrs:{cols:"12",md:"4"}},[o("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:"4週区切りの基準日","prepend-icon":"mdi-calendar",readonly:"",outlined:"",dense:"",rules:t.rules.startWeek,"hide-details":"auto","background-color":"white"},model:{value:t.fourWeekStartDayDisp,callback:function(e){t.fourWeekStartDayDisp=e},expression:"fourWeekStartDayDisp"}},"v-text-field",a,!1),n))]}}],null,!1,1685688163)},[o("v-date-picker",{attrs:{"no-title":""},model:{value:t.editState.editing.fourWeekStartDay,callback:function(e){t.$set(t.editState.editing,"fourWeekStartDay",e)},expression:"editState.editing.fourWeekStartDay"}})],1)],1):t._e()],1),t.editState.editing.shiftTablePeriod===t.ShiftTablePeriod.Month?o("v-row"):t._e()],1)],1)],1):t._e(),t.showSubmitControl?o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"9"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary",disabled:!t.isSelected},on:{click:t.editValidate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check")])],1)],1)]),o("v-col",{attrs:{cols:"1"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"info"},on:{click:t.onTransition}},[t._v("希望シフト受付日デフォルト設定")])],1)])],1)],1):t._e()],1)],1)]),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{confirm:t.saveSettings,close:function(e){t.dialog.confirm.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.createConfirm.show,title:t.dialog.createConfirm.title,agree:t.dialog.createConfirm.agree,content:t.dialog.createConfirm.content,width:420},on:{confirm:t.saveInsertSettings,close:function(e){t.dialog.createConfirm.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.saveDeleteSettings,close:function(e){t.dialog.delete.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}}),o("v-dialog",{attrs:{width:"1000px"},model:{value:t.dialog.create.show,callback:function(e){t.$set(t.dialog.create,"show",e)},expression:"dialog.create.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("所属(追加)")]),o("v-card-text",[o("v-container",[o("v-form",{ref:"createForm",model:{value:t.editState.isCreateValid,callback:function(e){t.$set(t.editState,"isCreateValid",e)},expression:"editState.isCreateValid"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-text-field",{attrs:{label:"所属名","hide-details":"auto",outlined:"",counter:"64","background-color":"white",dense:"",rules:t.rules.name},model:{value:t.createState.name,callback:function(e){t.$set(t.createState,"name",e)},expression:"createState.name"}})],1),o("v-col",{attrs:{cols:"12",md:"3"}},[o("v-card",{staticClass:"pa-3",attrs:{outlined:""}},[o("v-radio-group",{attrs:{"background-color":"white","hide-details":"auto"},model:{value:t.createState.shiftTablePeriod,callback:function(e){t.$set(t.createState,"shiftTablePeriod",e)},expression:"createState.shiftTablePeriod"}},[o("v-radio",{attrs:{label:"ひと月",value:t.ShiftTablePeriod.Month}}),o("v-radio",{attrs:{label:"4週間",value:t.ShiftTablePeriod.Fourweeks}})],1)],1)],1),t.createState.shiftTablePeriod===t.ShiftTablePeriod.Month?o("v-col",{attrs:{cols:"12",md:"2"}},[o("v-select",{attrs:{label:"開始日",items:t.editState.days,"hide-details":"auto",outlined:"","background-color":"white",dense:"",rules:t.rules.startMonth},model:{value:t.createState.monthStartDay,callback:function(e){t.$set(t.createState,"monthStartDay",e)},expression:"createState.monthStartDay"}})],1):t._e(),t.createState.shiftTablePeriod===t.ShiftTablePeriod.Month&&!0===t.createState.monthIsFourWeek?o("v-col",{attrs:{cols:"12",md:"4"}},[o("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:"4週区切りの基準日","prepend-icon":"mdi-calendar",readonly:"",outlined:"",dense:"",rules:t.rules.startWeek,"hide-details":"auto","background-color":"white"},model:{value:t.createState.monthReferenceDateFourWeek,callback:function(e){t.$set(t.createState,"monthReferenceDateFourWeek",e)},expression:"createState.monthReferenceDateFourWeek"}},"v-text-field",a,!1),n))]}}],null,!1,1820398743)},[o("v-date-picker",{attrs:{"no-title":""},model:{value:t.createState.monthReferenceDateFourWeek,callback:function(e){t.$set(t.createState,"monthReferenceDateFourWeek",e)},expression:"createState.monthReferenceDateFourWeek"}})],1)],1):t._e(),t.createState.shiftTablePeriod===t.ShiftTablePeriod.Fourweeks?o("v-col",{attrs:{cols:"12",md:"4"}},[o("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-text-field",t._g(t._b({attrs:{label:"4週区切りの基準日","prepend-icon":"mdi-calendar",readonly:"",outlined:"",dense:"",rules:t.rules.startWeek,"hide-details":"auto","background-color":"white"},model:{value:t.createState.fourWeekStartDay,callback:function(e){t.$set(t.createState,"fourWeekStartDay",e)},expression:"createState.fourWeekStartDay"}},"v-text-field",a,!1),n))]}}],null,!1,1994725892)},[o("v-date-picker",{attrs:{"no-title":""},model:{value:t.createState.fourWeekStartDay,callback:function(e){t.$set(t.createState,"fourWeekStartDay",e)},expression:"createState.fourWeekStartDay"}})],1)],1):t._e()],1),t.createState.shiftTablePeriod===t.ShiftTablePeriod.Month?o("v-row",[o("v-col",{attrs:{cols:"12",md:"3"}},[o("v-checkbox",{attrs:{label:"4週区切り",color:"indigo","hide-details":""},model:{value:t.createState.monthIsFourWeek,callback:function(e){t.$set(t.createState,"monthIsFourWeek",e)},expression:"createState.monthIsFourWeek"}})],1),o("v-col",{attrs:{cols:"12",md:"3"}},[o("v-checkbox",{attrs:{label:"月の表示を翌月とする",color:"indigo","hide-details":""},model:{value:t.createState.monthIsDispNextMonth,callback:function(e){t.$set(t.createState,"monthIsDispNextMonth",e)},expression:"createState.monthIsDispNextMonth"}})],1)],1):t._e(),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"3"}},[o("v-text-field",{attrs:{label:"応援マーク名称","hide-details":"auto",outlined:"",counter:"5","background-color":"white",dense:"",rules:t.rules.mark},model:{value:t.createState.mark,callback:function(e){t.$set(t.createState,"mark",e)},expression:"createState.mark"}})],1),o("v-col",{staticClass:"d-flex align-center",attrs:{cols:"12",md:"3"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateStyleTextColor},n))]}}]),model:{value:t.editState.isTextCreateColorMenu,callback:function(e){t.$set(t.editState,"isTextCreateColorMenu",e)},expression:"editState.isTextCreateColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.createState.textColor,callback:function(e){t.$set(t.createState,"textColor",e)},expression:"createState.textColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("応援マーク文字色")])]),o("v-col",{staticClass:"d-flex align-center",attrs:{cols:"12",md:"3"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateStyleBackColor},n))]}}]),model:{value:t.editState.isBackCreateColorMenu,callback:function(e){t.$set(t.editState,"isBackCreateColorMenu",e)},expression:"editState.isBackCreateColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.createState.backgroundColor,callback:function(e){t.$set(t.createState,"backgroundColor",e)},expression:"createState.backgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("応援マーク背景色")])])],1)],1)],1)],1)],1)],1),o("v-card-actions",[o("v-row",[o("v-col",{attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.create.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1)],1)],1)},XS=[],tD=(o("498a"),function(){return{name:[function(t){return!!t||"所属名は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=64||"所属名は64文字までです。"},function(t){return 0!==t.trim().length||"所属名は必須項目です。"}],startMonth:[function(t){return null!==t&&void 0!==t||"開始日が必要です。"}],startWeek:[function(t){return!!t&&0!==t.length||"基準日が必要です。"}],mark:[function(t){return!!t||"応援マーク名称は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=5||"応援マーク名称は5文字までです。"}]}}),eD=Object(r["b"])({props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm,DeleteDialog:of,DeleteButton:cf},setup:function(){var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["p"])(),i=Object(r["p"])(),s=Object(r["n"])({rows:[],editing:{},selectedSectionID:void 0,isTextColorMenu:!1,isBackColorMenu:!1,isTextCreateColorMenu:!1,isBackCreateColorMenu:!1,isCreateValid:!1,isEditValid:!1,days:[],flg:!1}),l=Object(r["n"])({name:"",backgroundColor:"#FF0000",fourWeekStartDay:"",mark:"",monthIsDispNextMonth:!1,monthIsFourWeek:!1,monthReferenceDateFourWeek:"",monthStartDay:null,shiftTablePeriod:nn.Month,textColor:"#FDFDFD"}),c=Object(r["a"])((function(){if(s.editing)return s.editing})),u=!0,d=function(t){t&&s.editing&&(s.editing=Object(n["a"])({},t)),s.selectedSectionID=t.sectionID},f=Object(r["a"])((function(){var t,e;if(console.log("monthReferenceDateFourWeekDisp"),console.log(null===(t=s.editing)||void 0===t?void 0:t.monthReferenceDateFourWeek),null!==(e=s.editing)&&void 0!==e&&e.monthReferenceDateFourWeek)return vt(s.editing.monthReferenceDateFourWeek)})),m=Object(r["a"])((function(){var t,e;if(console.log("fourWeekStartDayDisp"),console.log(null===(t=s.editing)||void 0===t?void 0:t.fourWeekStartDay),null!==(e=s.editing)&&void 0!==e&&e.fourWeekStartDay)return vt(s.editing.fourWeekStartDay)})),g=Object(r["p"])(),h=Ba(E),v=(h.result,h.loading),p=h.onResult,b=(h.error,h.refetch);p((function(t){if(console.log("onResult call"),!t.error&&t.data.getSectionsForAdmin&&Array.isArray(t.data.getSectionsForAdmin)){var e,o=t.data.getSectionsForAdmin.map((function(t){return{sectionID:t.sectionID,concurrencyStamp:t.concurrencyStamp,name:t.name,mark:t.mark,textColor:t.textColor,backgroundColor:t.backgroundColor,monthIsFourWeek:t.monthIsFourWeek,monthIsDispNextMonth:t.monthIsDispNextMonth,monthReferenceDateFourWeek:t.monthReferenceDateFourWeek?new Date(t.monthReferenceDateFourWeek+".000Z").toISOString().substring(0,10):null,monthReferenceDateFourWeekDisp:vt(t.monthReferenceDateFourWeek),monthStartDay:t.monthStartDay,fourWeekStartDay:t.fourWeekStartDay?new Date(t.fourWeekStartDay+".000Z").toISOString().substring(0,10):null,fourWeekStartDayDisp:vt(t.fourWeekStartDay),shiftTablePeriod:t.shiftTablePeriod}}));(e=s.rows).splice.apply(e,[0,s.rows.length].concat(Object(a["a"])(o)))}else if(t.errors){var n=pt(t.errors);n.code!==M.QueryRecordNotFound&&(N.error.content=n.message,N.error.show=!0)}}));var y=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s.selectedSectionID=1,t.prev=1,t.next=4,b();case 4:return t.next=6,K();case 6:t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](1),N.error.content=Bu,N.error.show=!0;case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(){return t.apply(this,arguments)}}(),S=Ki({fetchPolicy:"no-cache"}),D=S.mutate,C=(S.loading,S.error,S.called,S.onDone),w=S.onError;C((function(t){var e,o;if(s.flg=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateSection)&&void 0!==o&&o.succeed){var n,a=t.data.updateSection.result,r=null===(n=t.data.updateSection.result)||void 0===n?void 0:n.sectionID,i=s.rows.findIndex((function(t){return t.sectionID===r}));s.rows.splice(i,1,a),K()}else if(t.errors){var l=pt(t.errors);l.code!==M.QueryRecordNotFound&&(N.error.content=l.message,N.error.show=!0)}w((function(t){if(s.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(N.error.content=t.message,N.error.show=!0)}})),N.confirm.show=!1,N.create.show=!1,N.response.show=!0,N.response.color="success",N.response.message="所属情報を保存しました"}));var k=function(){if(!s.flg){s.flg=!0;try{if(s.editing){var t={backgroundColor:s.editing.backgroundColor,concurrencyStamp:s.editing.concurrencyStamp,fourWeekStartDay:s.editing.shiftTablePeriod===nn.Fourweeks?new Date(s.editing.fourWeekStartDay):null,mark:s.editing.mark,monthIsDispNextMonth:s.editing.shiftTablePeriod===nn.Month&&s.editing.monthIsDispNextMonth,monthIsFourWeek:s.editing.shiftTablePeriod===nn.Month&&s.editing.monthIsFourWeek,monthReferenceDateFourWeek:s.editing.shiftTablePeriod===nn.Month?new Date(s.editing.monthReferenceDateFourWeek):null,monthStartDay:s.editing.shiftTablePeriod===nn.Month?s.editing.monthStartDay:null,name:s.editing.name,sectionID:s.editing.sectionID,shiftTablePeriod:s.editing.shiftTablePeriod,textColor:s.editing.textColor};console.log("update call!",t),D({model:t})}}catch(e){console.log("えらーしょりです"),s.flg=!1}console.log("saveSettings!")}},I=Pr({fetchPolicy:"no-cache"}),x=I.mutate,T=(I.loading,I.error,I.called,I.onDone);I.onError;T((function(t){var e;N.confirm.show=!1,N.createConfirm.show=!1,N.create.show=!1,N.response.show=!0,N.response.color="success",N.response.message="所属情報を追加しました",y(),l.name="",l.backgroundColor="#FF0000",l.fourWeekStartDay="",l.mark="",l.monthIsDispNextMonth=!1,l.monthIsFourWeek=!1,l.monthReferenceDateFourWeek="",l.monthStartDay=null,l.shiftTablePeriod=nn.Month,l.textColor="#FDFDFD",null===(e=i.value)||void 0===e||e.resetValidation()}));var A=function(){try{if(l){var t={backgroundColor:l.backgroundColor,fourWeekStartDay:l.shiftTablePeriod===nn.Fourweeks?new Date(l.fourWeekStartDay):null,mark:l.mark,monthIsDispNextMonth:l.shiftTablePeriod===nn.Month&&(null===l||void 0===l?void 0:l.monthIsDispNextMonth),monthIsFourWeek:l.shiftTablePeriod===nn.Month&&(null===l||void 0===l?void 0:l.monthIsFourWeek),monthReferenceDateFourWeek:l.shiftTablePeriod===nn.Month?new Date(null===l||void 0===l?void 0:l.monthReferenceDateFourWeek):null,monthStartDay:l.shiftTablePeriod===nn.Month?l.monthStartDay:null,name:l.name,shiftTablePeriod:l.shiftTablePeriod,textColor:l.textColor};console.log("insert call!",t),x({model:t})}}catch(e){console.log("えらーしょりです")}console.log("saveInsertSettings!")},_=Vn({fetchPolicy:"no-cache"}),O=_.mutate,R=(_.loading,_.error,_.called,_.onDone);_.onError;R((function(t){var e,o,n,a=null===(e=t.data)||void 0===e||null===(o=e.deleteFlagChangeSection)||void 0===o||null===(n=o.result)||void 0===n?void 0:n.sectionID,r=s.rows.findIndex((function(t){return t.sectionID===a}));s.rows.splice(r,1),N.confirm.show=!1,N.createConfirm.show=!1,N.create.show=!1,N.delete.show=!1,N.response.show=!0,N.response.color="success",N.response.message="所属情報を削除しました",s.selectedSectionID=void 0}));var F=function(){try{var t=W();if(t){var e={sectionID:t.sectionID,concurrencyStamp:t.concurrencyStamp,deleteFlag:!0};O({model:e})}}catch(o){console.log("えらーしょりです")}console.log("saveDeleteSettings!")},V=function(){var t;null===(t=i.value)||void 0===t||t.validate(),s.isCreateValid&&(N.createConfirm.show=!0)},j=function(){var t;null===(t=o.value)||void 0===t||t.validate(),s.isEditValid&&(N.confirm.show=!0)},G=function(){console.log("deleteItem call"),N.delete.show=!0},$=function(){var t;console.log("createClick call",l),null===(t=i.value)||void 0===t||t.reset(),N.create.show=!0},N=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"入力中の所属情報を保存します、続行しますか?"},createConfirm:{show:!1,close:"OK"},delete:{show:!1,close:"OK",content:"選択した所属情報を削除します、続行しますか?"},error:{show:!1,title:"",close:"",content:""},response:{show:!1,message:"",color:""},create:{show:!1}}),L=[{text:"所属名",value:"name",sortable:!1},{text:"",value:"actions",sortable:!1,width:"30px"}],P=Object(r["n"])({name:"",shiftTablePeriod:!1,forWeekReferenceDate:"",startDay:"",isForWeek:!1,isDispNextMonth:!1,mark:"",textColor:"#EB0F0F",backColor:"#191970"}),W=function(){if(s.selectedSectionID)return s.rows.find((function(t){return(null===t||void 0===t?void 0:t.sectionID)===s.selectedSectionID}))},B=Object(r["a"])((function(){var t,e=W();if(e)return{backgroundColor:null===(t=s.editing)||void 0===t?void 0:t.textColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:s.isTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),H=Object(r["a"])((function(){var t,e=W();if(e)return{backgroundColor:null===(t=s.editing)||void 0===t?void 0:t.backgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:s.isBackColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),q=Object(r["a"])((function(){return{backgroundColor:l.textColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:s.isTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),Q=Object(r["a"])((function(){return{backgroundColor:l.backgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:s.isBackColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),U=Pa({id:1},E),z=(U.result,U.loading,U.onResult),K=(U.error,U.refetch);z((function(t){if(!t.error&&t.data.getSectionForAdmin)s.editing={sectionID:t.data.getSectionForAdmin.sectionID,concurrencyStamp:t.data.getSectionForAdmin.concurrencyStamp,name:t.data.getSectionForAdmin.name,mark:t.data.getSectionForAdmin.mark,textColor:t.data.getSectionForAdmin.textColor,backgroundColor:t.data.getSectionForAdmin.backgroundColor,monthIsFourWeek:t.data.getSectionForAdmin.monthIsFourWeek,monthIsDispNextMonth:t.data.getSectionForAdmin.monthIsDispNextMonth,monthReferenceDateFourWeek:t.data.getSectionForAdmin.monthReferenceDateFourWeek?new Date(t.data.getSectionForAdmin.monthReferenceDateFourWeek+".000Z").toISOString().substring(0,10):null,monthReferenceDateFourWeekDisp:vt(t.data.getSectionForAdmin.monthReferenceDateFourWeek),monthStartDay:t.data.getSectionForAdmin.monthStartDay,fourWeekStartDay:t.data.getSectionForAdmin.fourWeekStartDay?new Date(t.data.getSectionForAdmin.fourWeekStartDay+".000Z").toISOString().substring(0,10):null,fourWeekStartDayDisp:vt(t.data.getSectionForAdmin.fourWeekStartDay),shiftTablePeriod:t.data.getSectionForAdmin.shiftTablePeriod};else if(t.errors){var e=pt(t.errors);e.code!==M.QueryRecordNotFound&&(N.error.content=e.message,N.error.show=!0)}}));for(var Y=function(){pk.push({name:"settings-desired-shift-acceptance"})},Z=1;Z<=27;Z++)s.days.push({value:Z,text:String(Z)});return s.days.push({value:0,text:"末日"}),console.log("editState.days",s.days),y(),{rowClick:d,createClick:$,initialize:y,saveSettings:k,saveInsertSettings:A,saveDeleteSettings:F,validate:V,editValidate:j,deleteItem:G,dialog:N,header:L,rules:tD(),formCreateContent:P,swatchStyleTextColor:B,swatchStyleBackColor:H,swatchCreateStyleTextColor:q,swatchCreateStyleBackColor:Q,ShiftTablePeriod:nn,createState:l,editState:s,createForm:i,editForm:o,selected:c,loading:g,monthReferenceDateFourWeekDisp:f,fourWeekStartDayDisp:m,isSelected:u,getSectionsForAdminLoading:v,onTransition:Y}}}),oD=eD,nD=Object(k["a"])(oD,JS,XS,!1,null,"a4dd1b42",null),aD=nD.exports;uc()(nD,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCheckbox:du["a"],VCol:xc["a"],VColorPicker:Ag["a"],VContainer:eu["a"],VDataTable:zu["a"],VDatePicker:$d["a"],VDialog:Au["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VProgressCircular:Md["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var rD=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("シフト作成")]),t.isGetShiftsLoading?o("div",{staticStyle:{"text-align":"center"}},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("v-form",{ref:"editForm",attrs:{"lazy-validation":""},model:{value:t.state.isEditValid,callback:function(e){t.$set(t.state,"isEditValid",e)},expression:"state.isEditValid"}},[o("v-row",[o("v-col",{attrs:{lg:"3",cols:"12"}},[o("v-card",[o("v-card-title",[o("v-text-field",{class:{"point-event-none":t.state.enabled},attrs:{"append-icon":"mdi-magnify",label:"検索","hide-details":""},model:{value:t.state.searchShift,callback:function(e){t.$set(t.state,"searchShift",e)},expression:"state.searchShift"}})],1),o("v-data-table",{staticClass:"content__table",attrs:{headers:t.shiftHeader,items:t.state.shiftData,"item-key":"shiftID",search:t.dummystring,"custom-filter":t.filterShift,"single-select":"",height:"450","fixed-header":"","hide-default-footer":"","disable-pagination":""},on:{"click:row":t.shiftRowClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("シフト")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),o("v-radio-group",{class:{"point-event-none":t.state.enabled},attrs:{"hide-details":"auto",row:""},model:{value:t.state.shiftSelect,callback:function(e){t.$set(t.state,"shiftSelect",e)},expression:"state.shiftSelect"}},[o("v-radio",{attrs:{label:"有効",value:1}}),o("v-radio",{attrs:{label:"削除済み",value:2}})],1)],1)]},proxy:!0},t.state.isButtonClickItem?{key:"body",fn:function(e){var n=e.items;return[o("draggable",{attrs:{tag:"tbody"},model:{value:t.state.shiftData,callback:function(e){t.$set(t.state,"shiftData",e)},expression:"state.shiftData"}},t._l(n,(function(e,n){return o("tr",{key:n},[o("td",[t._v(t._s(e.name))]),o("td",[o("delete-button",{attrs:{btn:!0},on:{delete:function(o){return t.deleteShift(e)}}})],1)])})),0)]}}:{key:"item.actions",fn:function(e){var n=e.item;return[n.deleteFlag?[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,r=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"warning",dark:"","x-small":"",fab:""},on:{click:function(e){return t.reviveShift(n)}}},"v-btn",r,!1),a),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-delete-restore ")])],1)]}}],null,!0)},[o("span",[t._v("元に戻す")])])]:o("delete-button",{on:{delete:function(e){return t.deleteShift(n)}}})]}}],null,!0)}),t.state.isItemSelect||1!==t.state.shiftSelect?t._e():o("div",{staticClass:"content__btn form__btn pb-3"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:""},on:{click:t.createShift}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-plus-box-outline ")])],1)]}}],null,!1,1819364763)},[o("span",[t._v("追加")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:""},on:{click:t.sortShift}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-sort ")])],1)]}}],null,!1,760052400)},[o("span",[t._v("並べ替え")])])],1),t.state.isDisabledItem?t._e():o("div",{staticClass:"content__btn form__btn pb-3"},[o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"primary",dark:""},on:{click:t.saveShift}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-content-save-check ")])],1)]}}],null,!1,3761248895)},[o("span",[t._v("保存")])]),o("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,a=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ma-1",attrs:{color:"#B0BEC5",dark:""},on:{click:t.doneShift}},"v-btn",a,!1),n),[o("v-icon",{attrs:{dark:""}},[t._v(" mdi-close-box-outline ")])],1)]}}],null,!1,3759436703)},[o("span",[t._v("終了")])])],1)],1),o("v-row",{staticClass:"mt-5"},[t.showSubmitControl?o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1):t._e()],1)],1),o("v-col",{class:{"point-event-none":t.state.enabled},attrs:{lg:"9"}},[t.state.showShift?o("v-col",[o("v-row",[o("v-col",{attrs:{lg:"12",cols:"12"}},[o("v-row",[o("v-col",{attrs:{lg:"6"}},[o("v-text-field",{attrs:{label:"シフト名","hide-details":"auto",outlined:"",counter:"64","background-color":"white",rules:t.rules.name},model:{value:t.formContent.shift.name,callback:function(e){t.$set(t.formContent.shift,"name",e)},expression:"formContent.shift.name"}})],1),o("v-col",{attrs:{lg:"6"}},[o("v-text-field",{attrs:{label:"シフトコード","hide-details":"auto",outlined:"",counter:"20","background-color":"white",rules:t.rules.code},model:{value:t.formContent.shift.code,callback:function(e){t.$set(t.formContent.shift,"code",e)},expression:"formContent.shift.code"}})],1)],1),o("v-row",[o("v-col",{attrs:{lg:"12"}},[o("v-row",[o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"勤務開始時刻","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formContent.shift.dispStartTime,callback:function(e){t.$set(t.formContent.shift,"dispStartTime",e)},expression:"formContent.shift.dispStartTime"}})],1),o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"勤務終了時刻","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formContent.shift.dispEndTime,callback:function(e){t.$set(t.formContent.shift,"dispEndTime",e)},expression:"formContent.shift.dispEndTime"}})],1),o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"勤務時間","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formContent.shift.dispWorkTime,callback:function(e){t.$set(t.formContent.shift,"dispWorkTime",e)},expression:"formContent.shift.dispWorkTime"}})],1)],1)],1)],1),o("v-row",[o("v-col",{attrs:{lg:"12"}},[o("v-row",[o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"夜勤開始時刻","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formContent.shift.dispNightStartTime,callback:function(e){t.$set(t.formContent.shift,"dispNightStartTime",e)},expression:"formContent.shift.dispNightStartTime"}})],1),o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"夜勤終了時刻","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formContent.shift.dispNightEndTime,callback:function(e){t.$set(t.formContent.shift,"dispNightEndTime",e)},expression:"formContent.shift.dispNightEndTime"}})],1),o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"夜勤時間","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formContent.shift.dispNightWorkTime,callback:function(e){t.$set(t.formContent.shift,"dispNightWorkTime",e)},expression:"formContent.shift.dispNightWorkTime"}})],1),o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"深夜勤時間","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formContent.shift.dispMidNightWorkTime,callback:function(e){t.$set(t.formContent.shift,"dispMidNightWorkTime",e)},expression:"formContent.shift.dispMidNightWorkTime"}})],1)],1)],1)],1),o("v-row",[o("v-col",{attrs:{lg:"12"}},[o("v-row",[o("v-col",{attrs:{lg:"6"}},[o("v-select",{attrs:{items:t.shiftCount,label:"シフトカウント","item-text":"name","item-value":"sectionID","hide-details":"",outlined:"","return-object":"","background-color":"white",rules:t.rules.count},model:{value:t.formContent.shift.count,callback:function(e){t.$set(t.formContent.shift,"count",e)},expression:"formContent.shift.count"}})],1),o("v-col",{attrs:{lg:"6"}},[o("v-text-field",{attrs:{label:"シフトマーク","hide-details":"auto",outlined:"",counter:"5","background-color":"white",rules:t.rules.mark},model:{value:t.formContent.shift.mark,callback:function(e){t.$set(t.formContent.shift,"mark",e)},expression:"formContent.shift.mark"}})],1)],1)],1)],1),o("v-row",[o("v-col",[o("v-checkbox",{attrs:{label:"自動作成でも使用する",color:"indigo","hide-details":""},model:{value:t.formContent.isCheckedAuto,callback:function(e){t.$set(t.formContent,"isCheckedAuto",e)},expression:"formContent.isCheckedAuto"}})],1)],1),o("v-row",[o("v-col",{attrs:{lg:"12"}},[o("v-card",[o("div",{staticClass:"py-6 px-5"},[o("strong",{staticClass:"d-block mb-3"},[t._v(" シフト表示色設定 ")]),o("v-row",[o("v-col",{staticClass:"border-right",attrs:{lg:"6"}},[o("v-row",[o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchEstimatedTextColor},n))]}}],null,!1,3285323043),model:{value:t.state.edit.estimatedTextColorMenu,callback:function(e){t.$set(t.state.edit,"estimatedTextColorMenu",e)},expression:"state.edit.estimatedTextColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.shift.estimatedTextColor,callback:function(e){t.$set(t.formContent.shift,"estimatedTextColor",e)},expression:"formContent.shift.estimatedTextColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("予定の文字色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchEstimatedBackgroundColor},n))]}}],null,!1,100970992),model:{value:t.state.edit.estimatedBackgroundColorMenu,callback:function(e){t.$set(t.state.edit,"estimatedBackgroundColorMenu",e)},expression:"state.edit.estimatedBackgroundColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.shift.estimatedBackgroundColor,callback:function(e){t.$set(t.formContent.shift,"estimatedBackgroundColor",e)},expression:"formContent.shift.estimatedBackgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("予定の背景色")])]),o("v-col",{staticClass:"align-center mt-3",attrs:{lg:"4"}},[o("span",{staticClass:"pa-2 color-pick-title color-box",style:{color:t.formContent.shift.estimatedTextColor,backgroundColor:t.formContent.shift.estimatedBackgroundColor}},[t._v(t._s(t.formContent.shift.mark))])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchDesiredTextColor},n))]}}],null,!1,2628298713),model:{value:t.state.edit.desiredTextColorMenu,callback:function(e){t.$set(t.state.edit,"desiredTextColorMenu",e)},expression:"state.edit.desiredTextColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.shift.desiredTextColor,callback:function(e){t.$set(t.formContent.shift,"desiredTextColor",e)},expression:"formContent.shift.desiredTextColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("希望の文字色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchDesiredBackgroundColor},n))]}}],null,!1,3639032906),model:{value:t.state.edit.desiredBackgroundColorMenu,callback:function(e){t.$set(t.state.edit,"desiredBackgroundColorMenu",e)},expression:"state.edit.desiredBackgroundColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.shift.desiredBackgroundColor,callback:function(e){t.$set(t.formContent.shift,"desiredBackgroundColor",e)},expression:"formContent.shift.desiredBackgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("希望の背景色")])]),o("v-col",{staticClass:"align-center mt-3",attrs:{lg:"4"}},[o("span",{staticClass:"pa-2 color-pick-title color-box",style:{color:t.formContent.shift.desiredTextColor,backgroundColor:t.formContent.shift.desiredBackgroundColor}},[t._v(t._s(t.formContent.shift.mark))])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchActualTextColor},n))]}}],null,!1,3665646143),model:{value:t.state.edit.actualTextColorMenu,callback:function(e){t.$set(t.state.edit,"actualTextColorMenu",e)},expression:"state.edit.actualTextColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.shift.actualTextColor,callback:function(e){t.$set(t.formContent.shift,"actualTextColor",e)},expression:"formContent.shift.actualTextColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("実績の文字の色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchActualBackgroundColor},n))]}}],null,!1,1610119372),model:{value:t.state.edit.actualBackgroundColorMenu,callback:function(e){t.$set(t.state.edit,"actualBackgroundColorMenu",e)},expression:"state.edit.actualBackgroundColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.shift.actualBackgroundColor,callback:function(e){t.$set(t.formContent.shift,"actualBackgroundColor",e)},expression:"formContent.shift.actualBackgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("実績の背景色")])]),o("v-col",{staticClass:"align-center mt-3",attrs:{lg:"4"}},[o("span",{staticClass:"pa-2 color-pick-title color-box",style:{color:t.formContent.shift.actualTextColor,backgroundColor:t.formContent.shift.actualBackgroundColor}},[t._v(t._s(t.formContent.shift.mark))])])],1)],1),o("v-col",{attrs:{lg:"6"}},[o("v-row",[o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchFixedTextColor},n))]}}],null,!1,1430606823),model:{value:t.state.edit.fixedTextColorMenu,callback:function(e){t.$set(t.state.edit,"fixedTextColorMenu",e)},expression:"state.edit.fixedTextColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.shift.fixedTextColor,callback:function(e){t.$set(t.formContent.shift,"fixedTextColor",e)},expression:"formContent.shift.fixedTextColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("固定の文字色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchFixedBackgroundColor},n))]}}],null,!1,624231476),model:{value:t.state.edit.fixedBackgroundColorMenu,callback:function(e){t.$set(t.state.edit,"fixedBackgroundColorMenu",e)},expression:"state.edit.fixedBackgroundColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.shift.fixedBackgroundColor,callback:function(e){t.$set(t.formContent.shift,"fixedBackgroundColor",e)},expression:"formContent.shift.fixedBackgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("固定の背景色")])]),o("v-col",{staticClass:"align-center mt-3",attrs:{lg:"4"}},[o("span",{staticClass:"pa-2 color-pick-title color-box",style:{color:t.formContent.shift.fixedTextColor,backgroundColor:t.formContent.shift.fixedBackgroundColor}},[t._v(t._s(t.formContent.shift.mark))])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchNotDesiredTextColor},n))]}}],null,!1,3667742956),model:{value:t.state.edit.notDesiredTextColorMenu,callback:function(e){t.$set(t.state.edit,"notDesiredTextColorMenu",e)},expression:"state.edit.notDesiredTextColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.shift.notDesiredTextColor,callback:function(e){t.$set(t.formContent.shift,"notDesiredTextColor",e)},expression:"formContent.shift.notDesiredTextColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("希望しない文字の色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchNotDesiredBackgroundColor},n))]}}],null,!1,2417953183),model:{value:t.state.edit.notDesiredBackgroundColorMenu,callback:function(e){t.$set(t.state.edit,"notDesiredBackgroundColorMenu",e)},expression:"state.edit.notDesiredBackgroundColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.shift.notDesiredBackgroundColor,callback:function(e){t.$set(t.formContent.shift,"notDesiredBackgroundColor",e)},expression:"formContent.shift.notDesiredBackgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("希望しない背景色")])]),o("v-col",{staticClass:"align-center mt-3",attrs:{lg:"4"}},[o("span",{staticClass:"pa-2 color-pick-title color-box",style:{color:t.formContent.shift.notDesiredTextColor,backgroundColor:t.formContent.shift.notDesiredBackgroundColor}},[t._v(t._s(t.formContent.shift.mark))])])],1)],1)],1)],1)])],1)],1)],1),o("v-col",[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.editValidate}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)])],1)],1):t._e()],1)],1)],1)],1),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,agree:t.dialog.confirm.agree,content:t.dialog.confirm.content,width:420},on:{confirm:t.saveEditSettings,close:function(e){t.dialog.confirm.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.createConfirm.show,title:t.dialog.createConfirm.title,agree:t.dialog.createConfirm.agree,content:t.dialog.createConfirm.content,width:420},on:{confirm:t.saveInsertSettings,close:function(e){t.dialog.createConfirm.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,title:t.dialog.delete.title,agree:t.dialog.delete.agree,content:t.dialog.delete.content,width:420},on:{delete:t.saveDeleteSettings,close:function(e){t.dialog.delete.show=!1}}}),o("DeleteDialog",{attrs:{show:t.dialog.revive.show,title:t.dialog.revive.title,agree:t.dialog.revive.agree,content:t.dialog.revive.content,width:420},on:{delete:t.saveDeleteSettings,close:function(e){t.dialog.revive.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}}),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.setOrderShift.show,title:t.dialog.setOrderShift.title,content:t.dialog.setOrderShift.content,width:420},on:{confirm:t.setOrderShift,close:function(e){t.dialog.setOrderShift.show=!1}}}),o("v-dialog",{attrs:{width:"1200px"},model:{value:t.dialog.createShift.show,callback:function(e){t.$set(t.dialog.createShift,"show",e)},expression:"dialog.createShift.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("シフト(追加)")]),o("v-card-text",[o("v-container",[o("v-form",{ref:"createForm",model:{value:t.state.isCreateValid,callback:function(e){t.$set(t.state,"isCreateValid",e)},expression:"state.isCreateValid"}},[o("v-row",[o("v-col",{attrs:{lg:"12"}},[o("v-row",[o("v-col",{attrs:{lg:"6"}},[o("v-text-field",{attrs:{label:"シフト名","hide-details":"auto",outlined:"",counter:"64","background-color":"white",rules:t.rules.name},model:{value:t.formCreateContent.shift.name,callback:function(e){t.$set(t.formCreateContent.shift,"name",e)},expression:"formCreateContent.shift.name"}})],1),o("v-col",{attrs:{lg:"6"}},[o("v-text-field",{attrs:{label:"シフトコード","hide-details":"auto",outlined:"",counter:"20","background-color":"white",rules:t.rules.code},model:{value:t.formCreateContent.shift.code,callback:function(e){t.$set(t.formCreateContent.shift,"code",e)},expression:"formCreateContent.shift.code"}})],1),o("v-col",{attrs:{lg:"12"}},[o("v-card",{staticClass:"pa-3",attrs:{outlined:""}},[o("v-row",[o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"勤務開始時刻","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formCreateContent.shift.dispStartTime,callback:function(e){t.$set(t.formCreateContent.shift,"dispStartTime",e)},expression:"formCreateContent.shift.dispStartTime"}})],1),o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"勤務終了時刻","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formCreateContent.shift.dispEndTime,callback:function(e){t.$set(t.formCreateContent.shift,"dispEndTime",e)},expression:"formCreateContent.shift.dispEndTime"}})],1),o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"勤務時間","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formCreateContent.shift.dispWorkTime,callback:function(e){t.$set(t.formCreateContent.shift,"dispWorkTime",e)},expression:"formCreateContent.shift.dispWorkTime"}})],1)],1)],1)],1),o("v-col",{attrs:{lg:"12"}},[o("v-card",{staticClass:"pa-3",attrs:{outlined:""}},[o("v-row",[o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"夜勤開始時刻","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formCreateContent.shift.dispNightStartTime,callback:function(e){t.$set(t.formCreateContent.shift,"dispNightStartTime",e)},expression:"formCreateContent.shift.dispNightStartTime"}})],1),o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"夜勤終了時刻","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formCreateContent.shift.dispNightEndTime,callback:function(e){t.$set(t.formCreateContent.shift,"dispNightEndTime",e)},expression:"formCreateContent.shift.dispNightEndTime"}})],1),o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"夜勤時間","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formCreateContent.shift.dispNightWorkTime,callback:function(e){t.$set(t.formCreateContent.shift,"dispNightWorkTime",e)},expression:"formCreateContent.shift.dispNightWorkTime"}})],1),o("v-col",{attrs:{lg:"3"}},[o("v-text-field",{attrs:{label:"深夜勤時間","hide-details":"auto",outlined:"",type:"time","background-color":"white"},model:{value:t.formCreateContent.shift.dispMidNightWorkTime,callback:function(e){t.$set(t.formCreateContent.shift,"dispMidNightWorkTime",e)},expression:"formCreateContent.shift.dispMidNightWorkTime"}})],1)],1)],1)],1),o("v-col",{attrs:{lg:"12"}},[o("v-row",[o("v-col",{attrs:{lg:"6"}},[o("v-select",{attrs:{items:t.shiftCount,label:"シフトカウント","item-text":"name","item-value":"sectionID","hide-details":"",outlined:"","return-object":"","background-color":"white",rules:t.rules.count},model:{value:t.formCreateContent.shift.count,callback:function(e){t.$set(t.formCreateContent.shift,"count",e)},expression:"formCreateContent.shift.count"}})],1),o("v-col",{attrs:{lg:"6"}},[o("v-text-field",{attrs:{label:"シフトマーク","hide-details":"auto",outlined:"",counter:"5","background-color":"white",rules:t.rules.mark},model:{value:t.formCreateContent.shift.mark,callback:function(e){t.$set(t.formCreateContent.shift,"mark",e)},expression:"formCreateContent.shift.mark"}})],1)],1)],1),o("v-col",[o("v-checkbox",{attrs:{label:"自動作成でも使用する",color:"indigo"},model:{value:t.formCreateContent.isCheckedAuto,callback:function(e){t.$set(t.formCreateContent,"isCheckedAuto",e)},expression:"formCreateContent.isCheckedAuto"}})],1),o("v-col",{attrs:{lg:"12"}},[o("v-card",[o("div",{staticClass:"py-6 px-5"},[o("strong",{staticClass:"d-block mb-3"},[t._v(" シフト表示色設定 ")]),o("v-row",[o("v-col",{staticClass:"border-right",attrs:{lg:"6"}},[o("v-row",[o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateEstimatedTextColor},n))]}}]),model:{value:t.state.create.estimatedTextColorMenu,callback:function(e){t.$set(t.state.create,"estimatedTextColorMenu",e)},expression:"state.create.estimatedTextColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.shift.estimatedTextColor,callback:function(e){t.$set(t.formCreateContent.shift,"estimatedTextColor",e)},expression:"formCreateContent.shift.estimatedTextColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("予定の文字色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateEstimatedBackgroundColor},n))]}}]),model:{value:t.state.create.estimatedBackgroundColorMenu,callback:function(e){t.$set(t.state.create,"estimatedBackgroundColorMenu",e)},expression:"state.create.estimatedBackgroundColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.shift.estimatedBackgroundColor,callback:function(e){t.$set(t.formCreateContent.shift,"estimatedBackgroundColor",e)},expression:"formCreateContent.shift.estimatedBackgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("予定の背景色")])]),o("v-col",{staticClass:"align-center mt-3",attrs:{lg:"4"}},[o("span",{staticClass:"pa-2 color-pick-title color-box",style:{color:t.formCreateContent.shift.estimatedTextColor,backgroundColor:t.formCreateContent.shift.estimatedBackgroundColor}},[t._v(t._s(t.formCreateContent.shift.mark))])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateDesiredTextColor},n))]}}]),model:{value:t.state.create.desiredTextColorMenu,callback:function(e){t.$set(t.state.create,"desiredTextColorMenu",e)},expression:"state.create.desiredTextColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.shift.desiredTextColor,callback:function(e){t.$set(t.formCreateContent.shift,"desiredTextColor",e)},expression:"formCreateContent.shift.desiredTextColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("希望の文字色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateDesiredBackgroundColor},n))]}}]),model:{value:t.state.create.desiredBackgroundColorMenu,callback:function(e){t.$set(t.state.create,"desiredBackgroundColorMenu",e)},expression:"state.create.desiredBackgroundColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.shift.desiredBackgroundColor,callback:function(e){t.$set(t.formCreateContent.shift,"desiredBackgroundColor",e)},expression:"formCreateContent.shift.desiredBackgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("希望の背景色")])]),o("v-col",{staticClass:"align-center mt-3",attrs:{lg:"4"}},[o("span",{staticClass:"pa-2 color-pick-title color-box",style:{color:t.formCreateContent.shift.desiredTextColor,backgroundColor:t.formCreateContent.shift.desiredBackgroundColor}},[t._v(t._s(t.formCreateContent.shift.mark))])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateActualTextColor},n))]}}]),model:{value:t.state.create.actualTextColorMenu,callback:function(e){t.$set(t.state.create,"actualTextColorMenu",e)},expression:"state.create.actualTextColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.shift.actualTextColor,callback:function(e){t.$set(t.formCreateContent.shift,"actualTextColor",e)},expression:"formCreateContent.shift.actualTextColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("実績の文字の色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateActualBackgroundColor},n))]}}]),model:{value:t.state.create.actualBackgroundColorMenu,callback:function(e){t.$set(t.state.create,"actualBackgroundColorMenu",e)},expression:"state.create.actualBackgroundColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.shift.actualBackgroundColor,callback:function(e){t.$set(t.formCreateContent.shift,"actualBackgroundColor",e)},expression:"formCreateContent.shift.actualBackgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("実績の背景色")])]),o("v-col",{staticClass:"align-center mt-3",attrs:{lg:"4"}},[o("span",{staticClass:"pa-2 color-pick-title color-box",style:{color:t.formCreateContent.shift.actualTextColor,backgroundColor:t.formCreateContent.shift.actualBackgroundColor}},[t._v(t._s(t.formCreateContent.shift.mark))])])],1)],1),o("v-col",{attrs:{lg:"6"}},[o("v-row",[o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateFixedTextColor},n))]}}]),model:{value:t.state.create.fixedTextColorMenu,callback:function(e){t.$set(t.state.create,"fixedTextColorMenu",e)},expression:"state.create.fixedTextColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.shift.fixedTextColor,callback:function(e){t.$set(t.formCreateContent.shift,"fixedTextColor",e)},expression:"formCreateContent.shift.fixedTextColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("固定の文字色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateFixedBackgroundColor},n))]}}]),model:{value:t.state.create.fixedBackgroundColorMenu,callback:function(e){t.$set(t.state.create,"fixedBackgroundColorMenu",e)},expression:"state.create.fixedBackgroundColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.shift.fixedBackgroundColor,callback:function(e){t.$set(t.formCreateContent.shift,"fixedBackgroundColor",e)},expression:"formCreateContent.shift.fixedBackgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("固定の背景色")])]),o("v-col",{staticClass:"align-center mt-3",attrs:{lg:"4"}},[o("span",{staticClass:"pa-2 color-pick-title color-box",style:{color:t.formCreateContent.shift.fixedTextColor,backgroundColor:t.formCreateContent.shift.fixedBackgroundColor}},[t._v(t._s(t.formCreateContent.shift.mark))])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateNotDesiredTextColor},n))]}}]),model:{value:t.state.create.notDesiredTextColorMenu,callback:function(e){t.$set(t.state.create,"notDesiredTextColorMenu",e)},expression:"state.create.notDesiredTextColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.shift.notDesiredTextColor,callback:function(e){t.$set(t.formCreateContent.shift,"notDesiredTextColor",e)},expression:"formCreateContent.shift.notDesiredTextColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("希望しない文字の色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{lg:"4"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateNotDesiredBackgroundColor},n))]}}]),model:{value:t.state.create.notDesiredBackgroundColorMenu,callback:function(e){t.$set(t.state.create,"notDesiredBackgroundColorMenu",e)},expression:"state.create.notDesiredBackgroundColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.shift.notDesiredBackgroundColor,callback:function(e){t.$set(t.formCreateContent.shift,"notDesiredBackgroundColor",e)},expression:"formCreateContent.shift.notDesiredBackgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("希望しない背景色")])]),o("v-col",{staticClass:"align-center mt-3",attrs:{lg:"4"}},[o("span",{staticClass:"pa-2 color-pick-title color-box",style:{color:t.formCreateContent.shift.notDesiredTextColor,backgroundColor:t.formCreateContent.shift.notDesiredBackgroundColor}},[t._v(t._s(t.formCreateContent.shift.mark))])])],1)],1)],1)],1)])],1)],1)],1)],1)],1)],1)],1),o("v-card-actions",[o("v-col",{attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",text:""},on:{click:function(e){t.dialog.createShift.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{lg:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1)],1)},iD=[],sD=function(){return{groupName:[function(t){return t&&-1!==parseInt(t)||"シフトグループ名は必須項目です。"}],name:[function(t){return!!t||"シフト名は必須項目です。"},function(t){return t&&Object(a["a"])(t).length<=64||"シフト名は64文字までです。"},function(t){return 0!==t.trim().length||"シフト名は必須項目です。"}],code:[function(t){return Object(a["a"])(t).length<=20||"シフトコードは20文字までです。"}],mark:[function(t){return!!t||"シフトマークは必須項目です。"},function(t){return Object(a["a"])(t).length<=5||"シフトマークは5文字までです。"},function(t){return 0!==t.trim().length||"シフトマークは必須項目です。"}],count:[function(t){return t>0||"シフトカウントは必須項目です。"}]}},lD=Object(r["b"])({props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm,DeleteDialog:of,DeleteButton:cf,EditButton:Hg,Draggable:Zm.a},setup:function(){var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({section:[],shiftGroupRows:[],shiftData:[],showGroup:!1,showShift:!1,searchGroup:"",searchShift:"",selectedShiftID:0,enabled:!1,deleteTarget:{shiftID:0,concurrencyStamp:"",deleteFlag:!1},shiftSelect:1,edit:{estimatedTextColorMenu:!1,estimatedBackgroundColorMenu:!1,fixedTextColorMenu:!1,fixedBackgroundColorMenu:!1,desiredTextColorMenu:!1,desiredBackgroundColorMenu:!1,notDesiredTextColorMenu:!1,notDesiredBackgroundColorMenu:!1,actualTextColorMenu:!1,actualBackgroundColorMenu:!1},create:{estimatedTextColorMenu:!1,estimatedBackgroundColorMenu:!1,fixedTextColorMenu:!1,fixedBackgroundColorMenu:!1,desiredTextColorMenu:!1,desiredBackgroundColorMenu:!1,notDesiredTextColorMenu:!1,notDesiredBackgroundColorMenu:!1,actualTextColorMenu:!1,actualBackgroundColorMenu:!1},dialogDelete:!1,isEditValid:!1,isCreateValid:!1,sortGroup:[],isButtonClick:!1,isDisabledEdit:!1,isDisabled:!0,sortShift:[],isItemSelect:!1,isButtonClickItem:!1,isDisabledItem:!0,flg:!1,updFlg:!1,delFlg:!1}),i=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:s(),l();case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),s=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d();case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),ot.error.content="所属一覧を取得中に問題が発生しました。",ot.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),l=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,w();case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),ot.error.content="シフト一覧を取得中に問題が発生しました。",ot.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),c=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,x({id:e});case 3:t.next=9;break;case 5:t.prev=5,t.t0=t["catch"](0),ot.error.content="シフト情報を取得中に問題が発生しました。",ot.error.show=!0;case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e){return t.apply(this,arguments)}}(),u=Ba(E),d=(u.loading,u.result,u.error,u.refetch),f=u.onResult;f((function(t){if(!t.error&&t.data.getSectionsForAdmin&&Array.isArray(t.data.getSectionsForAdmin)){var e,n=t.data.getSectionsForAdmin.map((function(t){return{sectionID:t.sectionID,name:t.name}}));(e=o.section).splice.apply(e,[0,o.section.length].concat(Object(a["a"])(n)))}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(ot.error.content=r.message,ot.error.show=!0)}}));var m=Br({fetchPolicy:"no-cache"}),g=(m.loading,m.called,m.error,m.mutate),h=m.onDone,v=m.onError;h((function(t){o.flg=!1,ot.confirm.show=!1,ot.createConfirm.show=!1,ot.response.show=!0,ot.response.color="success",ot.response.message="シフトを追加しました",l(),et.shift.name="",et.shift.code=""})),v((function(t){if(o.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(ot.error.content=e.message,ot.error.show=!0)}}));var p=Zi({fetchPolicy:"no-cache"}),b=(p.loading,p.called,p.error,p.mutate),y=p.onDone,S=p.onError;y((function(t){var e,n;if(o.updFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(n=e.updateShift)&&void 0!==n&&n.succeed){var a,r,i,s,l=null===(a=t.data)||void 0===a?void 0:a.updateShift.result,c=null===(r=t.data)||void 0===r||null===(i=r.updateShift)||void 0===i||null===(s=i.result)||void 0===s?void 0:s.shiftID,u=o.shiftData.findIndex((function(t){return t.shiftID===c}));o.shiftData.splice(u,1,l)}else if(t.errors){var d=pt(t.errors);d.code!==M.QueryRecordNotFound&&(ot.error.content=d.message,ot.error.show=!0)}ot.confirm.show=!1,ot.createConfirm.show=!1,ot.response.show=!0,ot.response.color="success",ot.response.message="シフトを保存しました"})),S((function(t){if(o.updFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(ot.error.content=e.message,ot.error.show=!0)}}));var D=Xa(E),C=D.loading,w=(D.result,D.error,D.refetch),k=D.onResult;k((function(t){if(console.log("getShiftsOnResult call",t),!t.error&&t.data.getShifts&&Array.isArray(t.data.getShifts)){var e,r=t.data.getShifts.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{dispStartTime:K(t.startTime),dispEndTime:K(t.endTime),dispWorkTime:K(t.workTime),dispNightStartTime:K(t.nightStartTime),dispNightEndTime:K(t.nightEndTime),dispNightWorkTime:K(t.nightWorkTime),dispMidNightWorkTime:K(t.midNightWorkTime)})}));(e=o.shiftData).splice.apply(e,[0,o.shiftData.length].concat(Object(a["a"])(r)))}else if(t.errors){var i=pt(t.errors);i.code!==M.QueryRecordNotFound&&(ot.error.content=i.message,ot.error.show=!0)}}));var I=qa({id:0},E),x=(I.loading,I.result,I.error,I.refetch),T=I.onResult;T((function(t){if(!t.error&&t.data.getShift){var e,o=t.data.getShift.shiftSection.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{name:Y(t.sectionID),checkbox:t.usage!==sn.NotUse})}));(e=J.shiftSection).splice.apply(e,[0,J.shiftSection.length].concat(Object(a["a"])(o))),console.log("formContent.shiftSection",J.shiftSection),J.isCheckedAuto=J.shiftSection[0].usage===sn.UsedAutomatic,t.data.getShift.shift&&(J.shift={shiftID:t.data.getShift.shift.shiftID,concurrencyStamp:t.data.getShift.shift.concurrencyStamp,name:t.data.getShift.shift.name,code:t.data.getShift.shift.code,dispStartTime:K(t.data.getShift.shift.startTime),dispEndTime:K(t.data.getShift.shift.endTime),dispWorkTime:K(t.data.getShift.shift.workTime),dispNightStartTime:K(t.data.getShift.shift.nightStartTime),dispNightEndTime:K(t.data.getShift.shift.nightEndTime),dispNightWorkTime:K(t.data.getShift.shift.nightWorkTime),dispMidNightWorkTime:K(t.data.getShift.shift.midNightWorkTime),count:t.data.getShift.shift.count,mark:t.data.getShift.shift.mark,estimatedTextColor:t.data.getShift.shift.estimatedTextColor,estimatedBackgroundColor:t.data.getShift.shift.estimatedBackgroundColor,fixedTextColor:t.data.getShift.shift.fixedTextColor,fixedBackgroundColor:t.data.getShift.shift.fixedBackgroundColor,desiredTextColor:t.data.getShift.shift.desiredTextColor,desiredBackgroundColor:t.data.getShift.shift.desiredBackgroundColor,notDesiredTextColor:t.data.getShift.shift.notDesiredTextColor,notDesiredBackgroundColor:t.data.getShift.shift.notDesiredBackgroundColor,actualTextColor:t.data.getShift.shift.actualTextColor,actualBackgroundColor:t.data.getShift.shift.actualBackgroundColor})}else if(t.errors){var r=pt(t.errors);r.code!==M.QueryRecordNotFound&&(ot.error.content=r.message,ot.error.show=!0)}}));var A=En({fetchPolicy:"no-cache"}),_=(A.loading,A.mutate),O=A.onDone,R=A.onError;O((function(t){var e,n;if(o.delFlg=!1,null!==(e=t.data)&&void 0!==e&&null!==(n=e.deleteFlagChangeShift)&&void 0!==n&&n.succeed){var a,r,i,s,l=null===(a=t.data)||void 0===a?void 0:a.deleteFlagChangeShift.result,c=null===(r=t.data)||void 0===r||null===(i=r.deleteFlagChangeShift)||void 0===i||null===(s=i.result)||void 0===s?void 0:s.shiftID,u=o.shiftData.findIndex((function(t){return t.shiftID===c}));o.shiftData.splice(u,1,l)}else if(t.errors){var d=pt(t.errors);d.code!==M.QueryRecordNotFound&&(ot.error.content=d.message,ot.error.show=!0)}ot.delete.show=!1,ot.revive.show=!1,ot.response.show=!0,ot.response.color="success"})),R((function(t){if(o.delFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(ot.error.content=e.message,ot.error.show=!0)}}));var F=function(t,e){e.isSelected?(o.selectedShiftID=0,o.showShift=!1):(c(t.shiftID),o.selectedShiftID=t.shiftID,o.showShift=!0,o.showGroup=!1),e.select(!e.isSelected)},V=function(){if(!o.flg){o.flg=!0;try{var t={name:et.shift.name,code:et.shift.code,startTime:z(et.shift.dispStartTime),endTime:z(et.shift.dispEndTime),workTime:z(et.shift.dispWorkTime),nightStartTime:z(et.shift.dispNightStartTime),nightEndTime:z(et.shift.dispNightEndTime),nightWorkTime:z(et.shift.dispNightWorkTime),midNightWorkTime:z(et.shift.dispMidNightWorkTime),count:et.shift.count,mark:et.shift.mark,estimatedTextColor:et.shift.estimatedTextColor,estimatedBackgroundColor:et.shift.estimatedBackgroundColor,fixedTextColor:et.shift.fixedTextColor,fixedBackgroundColor:et.shift.fixedBackgroundColor,desiredTextColor:et.shift.desiredTextColor,desiredBackgroundColor:et.shift.desiredBackgroundColor,notDesiredTextColor:et.shift.notDesiredTextColor,notDesiredBackgroundColor:et.shift.notDesiredBackgroundColor,actualTextColor:et.shift.actualTextColor,actualBackgroundColor:et.shift.actualBackgroundColor},e=et.shiftSection.map((function(t){return{sectionID:t.sectionID,usage:et.isCheckedAuto?sn.UsedAutomatic:sn.Use}}));g({model:t,sections:e})}catch(n){console.log("insertShiftMutate Error!"),o.flg=!1}ot.createConfirm.show=!1,ot.createShift.show=!1}},j=function(){if(!o.updFlg){o.updFlg=!0;try{var t={shiftID:J.shift.shiftID,concurrencyStamp:J.shift.concurrencyStamp,name:J.shift.name,code:J.shift.code,startTime:z(J.shift.dispStartTime),endTime:z(J.shift.dispEndTime),workTime:z(J.shift.dispWorkTime),nightStartTime:z(J.shift.dispNightStartTime),nightEndTime:z(J.shift.dispNightEndTime),nightWorkTime:z(J.shift.dispNightWorkTime),midNightWorkTime:z(J.shift.dispMidNightWorkTime),count:J.shift.count,mark:J.shift.mark,estimatedTextColor:J.shift.estimatedTextColor,estimatedBackgroundColor:J.shift.estimatedBackgroundColor,fixedTextColor:J.shift.fixedTextColor,fixedBackgroundColor:J.shift.fixedBackgroundColor,desiredTextColor:J.shift.desiredTextColor,desiredBackgroundColor:J.shift.desiredBackgroundColor,notDesiredTextColor:J.shift.notDesiredTextColor,notDesiredBackgroundColor:J.shift.notDesiredBackgroundColor,actualTextColor:J.shift.actualTextColor,actualBackgroundColor:J.shift.actualBackgroundColor},e=J.shiftSection.map((function(t){return{concurrencyStamp:t.concurrencyStamp,shiftSectionID:t.shiftSectionID,usage:J.isCheckedAuto?sn.UsedAutomatic:sn.Use}}));b({model:t,sections:e})}catch(n){console.log("updateShiftMutate Error!"),o.updFlg=!1}ot.confirm.show=!1}},G=function(){if(!o.delFlg){o.delFlg=!0;var t={shiftID:o.deleteTarget.shiftID,concurrencyStamp:o.deleteTarget.concurrencyStamp,deleteFlag:!o.deleteTarget.deleteFlag};try{_({model:t})}catch(e){console.log("deleteError(GQL):",e),o.delFlg=!1}ot.delete.show=!1}},$=function(t){o.deleteTarget.shiftID=t.shiftID,o.deleteTarget.concurrencyStamp=t.concurrencyStamp,o.deleteTarget.deleteFlag=t.deleteFlag,ot.delete.show=!0,ot.response.message="削除しました"},N=function(t){o.deleteTarget.shiftID=t.shiftID,o.deleteTarget.concurrencyStamp=t.concurrencyStamp,o.deleteTarget.deleteFlag=t.deleteFlag,ot.revive.show=!0,ot.response.message="復活しました"},L=function(){var t,e,r=o.section.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{name:Y(t.sectionID),checkbox:!0})}));(t=et.shiftSection).splice.apply(t,[0,et.shiftSection.length].concat(Object(a["a"])(r))),et.isCheckedAuto=!0,null===(e=tt.value)||void 0===e||e.resetValidation(),ot.createShift.show=!0},P=function(){var t;null===(t=tt.value)||void 0===t||t.validate(),o.isCreateValid&&(ot.createConfirm.show=!0)},W=function(){var t;null===(t=Z.value)||void 0===t||t.validate(),o.isEditValid&&(ot.confirm.show=!0)},B=[.5,1,1.5,2],H=[{text:"所属名",value:"checkbox",sortable:!1}],q=[{text:"シフト名",value:"name",sortable:!1},{text:"",value:"actions",sortable:!1,width:"30px"}],Q="A",U=function(t,e,n){var a;return(1!==o.shiftSelect||!0!==n.deleteFlag)&&((2!==o.shiftSelect||!1!==n.deleteFlag)&&(null===(a=n.name)||void 0===a?void 0:a.includes(o.searchShift)))};function z(t){var e=t.split(":");return 3600*Number(e[0])+60*Number(e[1])}function K(t){var e=Math.floor(t/3600),o=Math.floor((t-3600*e)/60);return("0"+e).slice(-2)+":"+("0"+o).slice(-2)}var Y=function(t){var e=o.section.filter((function(e){return e.sectionID==t}));return e[0]?e[0].name:""},Z=Object(r["p"])(),J=Object(r["n"])({shift:{shiftID:0,concurrencyStamp:"",name:"",code:"",dispStartTime:"",dispEndTime:"",dispWorkTime:"",dispNightStartTime:"",dispNightEndTime:"",dispNightWorkTime:"",dispMidNightWorkTime:"",count:0,mark:"",estimatedTextColor:"#EB0F0F",estimatedBackgroundColor:"#EB0F0F",fixedTextColor:"#EB0F0F",fixedBackgroundColor:"#EB0F0F",desiredTextColor:"#EB0F0F",desiredBackgroundColor:"#EB0F0F",notDesiredTextColor:"#EB0F0F",notDesiredBackgroundColor:"#EB0F0F",actualTextColor:"#EB0F0F",actualBackgroundColor:"#EB0F0F"},shiftSection:[],isCheckedAuto:!1}),tt=Object(r["p"])(),et=Object(r["n"])({shift:{name:"",code:"",dispStartTime:"",dispEndTime:"",dispWorkTime:"",dispNightStartTime:"",dispNightEndTime:"",dispNightWorkTime:"",dispMidNightWorkTime:"",count:0,mark:"",estimatedTextColor:"#0000FF",estimatedBackgroundColor:"#71FF00",fixedTextColor:"#000000",fixedBackgroundColor:"#FF6F30",desiredTextColor:"#FF0000",desiredBackgroundColor:"#F0BFFF",notDesiredTextColor:"#000000",notDesiredBackgroundColor:"#909090",actualTextColor:"#000000",actualBackgroundColor:"#FFE880"},shiftSection:[],isCheckedAuto:!1}),ot=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"入力中のシフト情報を保存します、続行しますか?"},createConfirm:{show:!1,close:"OK"},delete:{show:!1,close:"OK",content:"選択したシフト情報を削除します、続行しますか?"},revive:{show:!1,title:"確認",agree:"元に戻す",close:"OK",content:"削除したシフト情報を元に戻します。よろしいですか?"},error:{show:!1,title:"",close:"",content:""},response:{show:!1,message:"",color:""},createShift:{show:!1},setOrderShift:{show:!1,title:"確認",close:"OK",content:"保存します、続行しますか?"}}),nt=Object(r["a"])((function(){return{backgroundColor:J.shift.estimatedTextColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.edit.estimatedTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),at=Object(r["a"])((function(){return{backgroundColor:J.shift.estimatedBackgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.edit.estimatedBackgroundColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),rt=Object(r["a"])((function(){return{backgroundColor:J.shift.fixedTextColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.edit.fixedTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),it=Object(r["a"])((function(){return{backgroundColor:J.shift.fixedBackgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.edit.fixedBackgroundColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),st=Object(r["a"])((function(){return{backgroundColor:J.shift.desiredTextColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.edit.desiredTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),lt=Object(r["a"])((function(){return{backgroundColor:J.shift.desiredBackgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.edit.desiredBackgroundColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),ct=Object(r["a"])((function(){return{backgroundColor:J.shift.notDesiredTextColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.edit.notDesiredTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),ut=Object(r["a"])((function(){return{backgroundColor:J.shift.notDesiredBackgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.edit.notDesiredBackgroundColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),dt=Object(r["a"])((function(){return{backgroundColor:J.shift.actualTextColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.edit.actualTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),ft=Object(r["a"])((function(){return{backgroundColor:J.shift.actualBackgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.edit.actualBackgroundColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),mt=Object(r["a"])((function(){return{backgroundColor:et.shift.estimatedTextColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.create.estimatedTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),gt=Object(r["a"])((function(){return{backgroundColor:et.shift.estimatedBackgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.create.estimatedBackgroundColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),ht=Object(r["a"])((function(){return{backgroundColor:et.shift.fixedTextColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.create.fixedTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),vt=Object(r["a"])((function(){return{backgroundColor:et.shift.fixedBackgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.create.fixedBackgroundColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),bt=Object(r["a"])((function(){return{backgroundColor:et.shift.desiredTextColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.create.desiredTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),yt=Object(r["a"])((function(){return{backgroundColor:et.shift.desiredBackgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.create.desiredBackgroundColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),St=Object(r["a"])((function(){return{backgroundColor:et.shift.notDesiredTextColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.create.notDesiredTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),Dt=Object(r["a"])((function(){return{backgroundColor:et.shift.notDesiredBackgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.create.notDesiredBackgroundColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),Ct=Object(r["a"])((function(){return{backgroundColor:et.shift.actualTextColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.create.actualTextColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),wt=Object(r["a"])((function(){return{backgroundColor:et.shift.actualBackgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.create.actualBackgroundColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),kt=function(){console.log("buttonClickItem call"),o.searchShift="",o.isButtonClickItem=!0,o.isItemSelect=!0,o.isDisabledItem=!1,o.sortShift=o.shiftData,o.enabled=!0},It=function(){ot.setOrderShift.show=!0},xt=function(){console.log("setOrderItem call");try{var t=JSON.stringify(o.sortShift),e=JSON.stringify(o.shiftData);if(t===e)console.log("変更なし"),ot.error.content=qu,ot.error.show=!0,ot.setOrderShift.show=!1;else if(o.shiftData){var n=o.shiftData.filter((function(t){return!1===t.deleteFlag})).map((function(t){return{concurrencyStamp:t.concurrencyStamp,shiftID:t.shiftID}}));At({models:n})}}catch(a){ot.error.content=Hu,ot.error.show=!0}},Tt=mi({fetchPolicy:"no-cache"}),At=Tt.mutate,_t=(Tt.loading,Tt.error,Tt.called,Tt.onDone),Ot=Tt.onError;_t((function(t){var e;if(console.log("setOrderItemOnDone"),t.data&&null!==(e=t.data.setOrderShift)&&void 0!==e&&e.succeed){var n,r,i=t.data.setOrderShift.result,s=o.shiftData.filter((function(t){return!0===t.deleteFlag}));(n=o.shiftData).splice.apply(n,[0,o.shiftData.length].concat(Object(a["a"])(i))),(r=o.shiftData).splice.apply(r,[o.shiftData.length+1,0].concat(Object(a["a"])(s)))}else if(t.errors){var l=pt(t.errors);ot.error.content=l.message,ot.error.show=!0}ot.setOrderShift.show=!1,ot.response.show=!0,ot.response.color="success",ot.response.message="更新成功",o.isButtonClickItem=!1,o.isItemSelect=!1,o.isDisabledItem=!0,o.enabled=!1})),Ot((function(t){if(t.graphQLErrors.length){var e=pt(t.graphQLErrors);console.log("setOrderShiftOnError",e),ot.error.content=e.message,ot.error.show=!0}else ot.error.content="エラーメッセージ表示",ot.error.show=!0}));var Rt=function(){console.log("buttonStopItem call"),o.isButtonClickItem=!1,o.isItemSelect=!1,o.isDisabledItem=!0,o.shiftData=o.sortShift,o.enabled=!1};return i(),{shiftRowClick:F,createShift:L,deleteShift:$,reviveShift:N,saveInsertSettings:V,saveEditSettings:j,saveDeleteSettings:G,validate:P,editValidate:W,initialize:i,filterShift:U,isGetShiftsLoading:C,dialog:ot,rules:sD(),formContent:J,formCreateContent:et,state:o,swatchEstimatedTextColor:nt,swatchEstimatedBackgroundColor:at,swatchFixedTextColor:rt,swatchFixedBackgroundColor:it,swatchDesiredTextColor:st,swatchDesiredBackgroundColor:lt,swatchNotDesiredTextColor:ct,swatchNotDesiredBackgroundColor:ut,swatchActualTextColor:dt,swatchActualBackgroundColor:ft,swatchCreateEstimatedTextColor:mt,swatchCreateEstimatedBackgroundColor:gt,swatchCreateFixedTextColor:ht,swatchCreateFixedBackgroundColor:vt,swatchCreateDesiredTextColor:bt,swatchCreateDesiredBackgroundColor:yt,swatchCreateNotDesiredTextColor:St,swatchCreateNotDesiredBackgroundColor:Dt,swatchCreateActualTextColor:Ct,swatchCreateActualBackgroundColor:wt,shiftCount:B,sectionHeader:H,shiftHeader:q,dummystring:Q,editForm:Z,createForm:tt,sortShift:kt,saveShift:It,setOrderShift:xt,doneShift:Rt}}}),cD=lD,uD=(o("f88f"),Object(k["a"])(cD,rD,iD,!1,null,"c904e8ac",null)),dD=uD.exports;uc()(uD,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCardTitle:uu["c"],VCheckbox:du["a"],VCol:xc["a"],VColorPicker:Ag["a"],VContainer:eu["a"],VDataTable:zu["a"],VDialog:Au["a"],VDivider:Tc["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VProgressCircular:Md["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"],VTooltip:fd["a"]});var fD=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("カレンダー設定")]),t.getCalenderLoading?o("div",{staticClass:"text-center"},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("SystemCalendar",{attrs:{"calendar-commons-data":t.state.holidayRows,"show-submit-control":t.showSubmitControl},on:{submitAddHoliday:t.insert,submitHoliday:t.update,destroy:t.destroy}})],1)]),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message,width:420},on:{close:function(e){t.dialog.response.show=!1}}})],1)},mD=[],gD=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("v-tabs",[o("v-tab",[t._v(" 休日・行事予定リスト ")]),o("v-tab",[t._v(" 国民の祝日リスト ")]),o("v-tab-item",{staticClass:"content__inner--padding yellow lighten-5"},[o("v-row",[o("v-col",{attrs:{cols:"7"}},[o("v-card",{attrs:{flat:""}},[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.holidayHeader,items:t.state.holidayRows,"item-key":"concurrencyStamp","single-select":"","sort-by":["month","day"],"multi-sort":"",search:t.dummystring,"custom-filter":t.filterMonth,height:"500","hide-default-footer":"","disable-pagination":""},on:{"click:row":t.holidayRowClick},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("休日・行事予定")]),o("v-divider",{staticClass:"mx-4",attrs:{inset:"",vertical:""}}),o("v-col",{attrs:{cols:"6",xl:"2"}},[o("v-select",{attrs:{items:t.state.monthsForSelect,label:"表示月","hide-details":"auto",outlined:"","append-icon":"mdi-calendar","background-color":"white",dense:""},model:{value:t.displayMonth.month,callback:function(e){t.$set(t.displayMonth,"month",e)},expression:"displayMonth.month"}})],1)],1)]},proxy:!0},{key:"item.actions",fn:function(e){var n=e.item;return[o("delete-button",{on:{delete:function(e){return t.deleteItem(n)}}})]}},{key:"item.year",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.year>0?o.year:"毎年")+" ")]}},{key:"item.day",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.day>0?o.day:"")+" ")]}},{key:"item.week",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.week?t.weekList.find((function(t){return t.id===o.week})).name:"")+" ")]}},{key:"item.dayOfWeek",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.dayOfWeek?t.weekdayList.find((function(t){return t.id===o.dayOfWeek})).name:"")+" ")]}},{key:"item.name",fn:function(e){var n=e.item;return[o("span",{style:{color:n.textColor,backgroundColor:n.backgroundColor}},[t._v(t._s(n.name))])]}}],null,!0)}),o("v-row",{staticClass:"pt-2"},[o("v-col",{staticClass:"content__btn form__btn",attrs:{cols:"12"}},[o("v-btn",{staticClass:"mb-2 mr-2",attrs:{color:"primary"},on:{click:function(e){t.dialog.create.show=!0}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-plus-box-outline ")]),t._v(" 追加 ")],1)],1)],1)],1)],1),o("v-col",{attrs:{cols:"5"}},[t.state.formDisplay?o("v-form",{ref:"holidayForm",model:{value:t.state.holidayValid,callback:function(e){t.$set(t.state,"holidayValid",e)},expression:"state.holidayValid"}},[o("v-row",{staticClass:"pl-10 pt-5 pr-10 pb-10"},[o("v-col",{attrs:{cols:"12"}},[o("p",[t._v("日付指定方法")]),o("v-radio-group",{attrs:{rules:t.rules.dateDesignationMethod,row:""},model:{value:t.formContent.dateDesignationMethod,callback:function(e){t.$set(t.formContent,"dateDesignationMethod",e)},expression:"formContent.dateDesignationMethod"}},t._l(t.dateDesignationMethodList,(function(t,e){return o("v-radio",{key:t,attrs:{label:t,value:e}})})),1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",{attrs:{align:"center"}},[o("v-col",{staticClass:"pt-4",attrs:{cols:"12",xl:"3"}},[o("v-select",{attrs:{items:t.state.years,label:"年","hide-details":"auto",outlined:"","background-color":"white",dense:""},model:{value:t.formContent.year,callback:function(e){t.$set(t.formContent,"year",e)},expression:"formContent.year"}})],1),o("v-col",{attrs:{cols:"12",xl:"3"}},[o("v-select",{attrs:{items:t.state.months,label:"月","hide-details":"auto",outlined:"","background-color":"white",rules:t.rules.month,dense:""},model:{value:t.formContent.month,callback:function(e){t.$set(t.formContent,"month",e)},expression:"formContent.month"}})],1),0===t.formContent.dateDesignationMethod?o("v-col",{attrs:{cols:"12",xl:"3"}},[o("v-select",{attrs:{items:t.state.days,label:"日","hide-details":"auto",outlined:"","background-color":"white",dense:""},model:{value:t.formContent.day,callback:function(e){t.$set(t.formContent,"day",e)},expression:"formContent.day"}})],1):t._e(),1===t.formContent.dateDesignationMethod?o("v-col",{attrs:{cols:"12",xl:"3"}},[o("v-select",{attrs:{items:t.weekList,label:"週","hide-details":"auto",outlined:"","item-text":"name","item-value":"id","background-color":"white",dense:""},model:{value:t.formContent.week,callback:function(e){t.$set(t.formContent,"week",e)},expression:"formContent.week"}})],1):t._e(),1===t.formContent.dateDesignationMethod?o("v-col",{attrs:{cols:"12",xl:"3"}},[o("v-select",{attrs:{items:t.weekdayList,label:"曜日","hide-details":"auto",outlined:"","item-text":"name","item-value":"id","background-color":"white",dense:""},model:{value:t.formContent.dayOfWeek,callback:function(e){t.$set(t.formContent,"dayOfWeek",e)},expression:"formContent.dayOfWeek"}})],1):t._e()],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"休日・行事名称","hide-details":"auto",outlined:"","background-color":"white",counter:"128",rules:t.rules.name,dense:""},model:{value:t.formContent.name,callback:function(e){t.$set(t.formContent,"name",e)},expression:"formContent.name"}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"休日・行事説明","hide-details":"auto",outlined:"","background-color":"white",counter:"256",rules:t.rules.description,dense:""},model:{value:t.formContent.description,callback:function(e){t.$set(t.formContent,"description",e)},expression:"formContent.description"}})],1),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{cols:"6",md:"2",offset:"0","offset-md":"1"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchTextColor},n))]}}],null,!1,1914554321),model:{value:t.state.textColorMenu,callback:function(e){t.$set(t.state,"textColorMenu",e)},expression:"state.textColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.textColor,callback:function(e){t.$set(t.formContent,"textColor",e)},expression:"formContent.textColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("文字色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{cols:"6",md:"2"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchBackColor},n))]}}],null,!1,2289895655),model:{value:t.state.backColorMenu,callback:function(e){t.$set(t.state,"backColorMenu",e)},expression:"state.backColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formContent.backgroundColor,callback:function(e){t.$set(t.formContent,"backgroundColor",e)},expression:"formContent.backgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("背景色")])]),o("v-col",{attrs:{cols:"12"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.validate}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)])],1)],1):t._e()],1)],1)],1),o("v-tab-item",{staticClass:"content__inner--padding yellow lighten-5"},[o("v-card",{attrs:{flat:""}},[o("v-data-table",{staticClass:"content__table",attrs:{headers:t.nationalHolidayHeader,items:t.nationalHolidayRows,"item-key":"calendarSystemID","single-select":"","sort-by":["month","day"],"multi-sort":"",height:"540","hide-default-footer":"","disable-pagination":""},scopedSlots:t._u([{key:"top",fn:function(){return[o("v-toolbar",{attrs:{flat:""}},[o("v-toolbar-title",[t._v("国民の祝日")])],1)]},proxy:!0},{key:"item.year",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.year>0?o.year:"毎年")+" ")]}},{key:"item.day",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.day>0?o.day:"")+" ")]}},{key:"item.week",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.week?t.weekList.find((function(t){return t.id===o.week})).name:"")+" ")]}},{key:"item.dayOfWeek",fn:function(e){var o=e.item;return[t._v(" "+t._s(o.dayOfWeek?t.weekdayList.find((function(t){return t.id===o.dayOfWeek})).name:"")+" ")]}},{key:"item.name",fn:function(e){var n=e.item;return[o("span",{style:{color:n.textColor,backgroundColor:n.backgroundColor}},[t._v(t._s(n.name))])]}}],null,!0)})],1)],1)],1),t.showSubmitControl?o("v-row",{staticClass:"mt-3"},[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1):t._e(),o("DeleteDialog",{attrs:{show:t.dialog.delete.show,width:420,title:"休日・行事予定削除確認"},on:{close:function(e){t.dialog.delete.show=!1},delete:t.holidayDelete}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmAdd.show,width:420},on:{close:function(e){t.dialog.confirmAdd.show=!1},confirm:t.holidayAdd}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirmHoliday.show,width:420},on:{close:function(e){t.dialog.confirmHoliday.show=!1},confirm:t.holidaySubmit}}),o("v-dialog",{attrs:{"max-width":"1000px"},model:{value:t.dialog.create.show,callback:function(e){t.$set(t.dialog.create,"show",e)},expression:"dialog.create.show"}},[o("v-card",[o("v-toolbar",{attrs:{color:"primary",dark:""}},[t._v("休日・行事予定(追加)")]),o("v-card-text",[o("v-container",[o("v-form",{ref:"holidayForm",model:{value:t.state.addValid,callback:function(e){t.$set(t.state,"addValid",e)},expression:"state.addValid"}},[o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("p",[t._v("日付指定方法")]),o("v-radio-group",{attrs:{rules:t.rules.dateDesignationMethod,row:""},model:{value:t.formCreateContent.dateDesignationMethod,callback:function(e){t.$set(t.formCreateContent,"dateDesignationMethod",e)},expression:"formCreateContent.dateDesignationMethod"}},t._l(t.dateDesignationMethodList,(function(t,e){return o("v-radio",{key:t,attrs:{label:t,value:e}})})),1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-row",{attrs:{align:"center"}},[o("v-col",{staticClass:"pt-4",attrs:{cols:"12",xl:"3"}},[o("v-select",{attrs:{items:t.state.years,label:"年","hide-details":"auto",outlined:"","background-color":"white",dense:""},model:{value:t.formCreateContent.year,callback:function(e){t.$set(t.formCreateContent,"year",e)},expression:"formCreateContent.year"}})],1),o("v-col",{attrs:{cols:"12",xl:"2"}},[o("v-select",{attrs:{items:t.state.months,label:"月","hide-details":"auto",outlined:"","background-color":"white",rules:t.rules.month,dense:""},model:{value:t.formCreateContent.month,callback:function(e){t.$set(t.formCreateContent,"month",e)},expression:"formCreateContent.month"}})],1),0===t.formCreateContent.dateDesignationMethod?o("v-col",{attrs:{cols:"12",xl:"2"}},[o("v-select",{attrs:{items:t.state.days,label:"日","hide-details":"auto",outlined:"","background-color":"white",dense:""},model:{value:t.formCreateContent.day,callback:function(e){t.$set(t.formCreateContent,"day",e)},expression:"formCreateContent.day"}})],1):t._e(),1===t.formCreateContent.dateDesignationMethod?o("v-col",{attrs:{cols:"12",xl:"3"}},[o("v-select",{attrs:{items:t.weekList,label:"週","hide-details":"auto",outlined:"","item-text":"name","item-value":"id","background-color":"white",dense:""},model:{value:t.formCreateContent.week,callback:function(e){t.$set(t.formCreateContent,"week",e)},expression:"formCreateContent.week"}})],1):t._e(),1===t.formCreateContent.dateDesignationMethod?o("v-col",{attrs:{cols:"12",xl:"2"}},[o("v-select",{attrs:{items:t.weekdayList,label:"曜日","hide-details":"auto",outlined:"","item-text":"name","item-value":"id","background-color":"white",dense:""},model:{value:t.formCreateContent.dayOfWeek,callback:function(e){t.$set(t.formCreateContent,"dayOfWeek",e)},expression:"formCreateContent.dayOfWeek"}})],1):t._e()],1)],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"休日・行事名称","hide-details":"auto",outlined:"","background-color":"white",counter:"128",rules:t.rules.name,dense:""},model:{value:t.formCreateContent.name,callback:function(e){t.$set(t.formCreateContent,"name",e)},expression:"formCreateContent.name"}})],1),o("v-col",{attrs:{cols:"12"}},[o("v-text-field",{attrs:{label:"休日・行事説明","hide-details":"auto",outlined:"","background-color":"white",counter:"256",rules:t.rules.description,dense:""},model:{value:t.formCreateContent.description,callback:function(e){t.$set(t.formCreateContent,"description",e)},expression:"formCreateContent.description"}})],1),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{cols:"6",md:"2",offset:"0","offset-md":"1"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateTextColor},n))]}}]),model:{value:t.state.textCreateColorMenu,callback:function(e){t.$set(t.state,"textCreateColorMenu",e)},expression:"state.textCreateColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.textColor,callback:function(e){t.$set(t.formCreateContent,"textColor",e)},expression:"formCreateContent.textColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("文字色")])]),o("v-col",{staticClass:"d-flex align-center mt-3",attrs:{cols:"6",md:"2"}},[o("div",{staticClass:"color-box"},[o("v-menu",{attrs:{top:"","nudge-bottom":"105","nudge-left":"16","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[o("div",t._g({style:t.swatchCreateBackColor},n))]}}]),model:{value:t.state.backCreateColorMenu,callback:function(e){t.$set(t.state,"backCreateColorMenu",e)},expression:"state.backCreateColorMenu"}},[o("v-card",[o("v-card-text",{staticClass:"pa-0"},[o("v-color-picker",{attrs:{flat:""},model:{value:t.formCreateContent.backgroundColor,callback:function(e){t.$set(t.formCreateContent,"backgroundColor",e)},expression:"formCreateContent.backgroundColor"}})],1)],1)],1)],1),o("div",{staticClass:"v-label theme--light ml-4 color-pick-title"},[t._v("背景色")])])],1)],1)],1)],1),o("v-card-actions",[o("v-row",[o("v-col",{attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"darken-1 secondary",outlined:""},on:{click:function(e){t.dialog.create.show=!1}}},[t._v(" 閉じる ")])],1),o("v-col",{staticClass:"text-center",attrs:{cols:"4"}},[o("v-btn",{attrs:{color:"primary darken-1"},on:{click:t.validateAdd}},[t._v(" 設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)],1)],1)],1)],1)],1)},hD=[],vD=function(){return{dateDesignationMethod:[function(t){return t>=0||"日付指定方法は必須項目です。"}],month:[function(t){return!!t||"月は必須項目です。"}],name:[function(t){return!!t||"休日・行事名称は必須項目です。"},function(t){return Object(a["a"])(t).length<=128||"休日・行事名称は128文字までです。"}],explanation:[function(t){return!!t||"休日・行事説明は必須項目です。"},function(t){return Object(a["a"])(t).length<=256||"休日・行事説明は256文字までです。"}]}},pD=Object(r["b"])({props:{calendarCommonsData:{type:Array,required:!0},showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{ConfirmDialog:Yd,DeleteDialog:of,DeleteButton:cf},setup:function(t,e){for(var o=Object(r["n"])({years:[{value:0,text:"毎年"}],months:[{value:0,text:""}],monthsForSelect:[{value:0,text:"全て"}],days:[{value:0,text:""}],textColorMenu:!1,backColorMenu:!1,textCreateColorMenu:!1,backCreateColorMenu:!1,holidayRows:t.calendarCommonsData,addValid:!1,holidayValid:!1,formDisplay:!1}),n=Object(r["a"])((function(){return o.holidayRows.filter((function(t){return t.calendarKind==Qo.Systemcalendar}))})),a=new Date,i=a.getFullYear()-2,s=0;s<=30;s++)o.years.push({value:i+s,text:String(i+s)});for(var l=1;l<=12;l++)o.months.push({value:l,text:String(l)}),o.monthsForSelect.push({value:l,text:String(l)});var c=Object(r["n"])({month:0}),u="CALENDAR",d=qs,f=Hs,m=["日付で指定する","週、曜日で指定する"],g=[{text:"年",value:"year",sortable:!1,width:60},{text:"月",value:"month",sortable:!1,width:40},{text:"日",value:"day",sortable:!1,width:40},{text:"週",value:"week",sortable:!1,width:80},{text:"曜日",value:"dayOfWeek",sortable:!1,width:80},{text:"休日、行事の名称",value:"name",sortable:!1,width:170},{text:"説明",value:"description",sortable:!1},{text:"",value:"actions",sortable:!1}],h=[{text:"年",value:"year",sortable:!1,width:60},{text:"月",value:"month",sortable:!1,width:40},{text:"日",value:"day",sortable:!1,width:40},{text:"週",value:"week",sortable:!1,width:80},{text:"曜日",value:"dayOfWeek",sortable:!1,width:80},{text:"休日、行事の名称",value:"name",sortable:!1,width:170},{text:"説明",value:"description",sortable:!1}],v=Object(r["n"])({concurrencyStamp:"",year:0,month:0,day:null,dateDesignationMethod:-1,inputType:qo.None,week:null,dayOfWeek:null,name:"",description:"",textColor:"#EFEFEF",backgroundColor:"#EB0F0F",editIndex:0}),p=Object(r["n"])({concurrencyStamp:"",year:0,month:0,day:null,dateDesignationMethod:-1,inputType:qo.None,week:null,dayOfWeek:null,name:"",description:"",textColor:"#EFEFEF",backgroundColor:"#EB0F0F",editIndex:0}),b={editIndex:0,concurrencyStamp:""};Object(r["s"])(v,(function(t,e){var n=0!==e.year?e.year:1900,a=new Date(parseInt(String(n),10),parseInt(String(e.month),10),0).getDate();o.days=[];for(var r=1;r<=a;r++)o.days.push({value:r,text:String(r)})})),Object(r["s"])(p,(function(t,e){var n=0!==e.year?e.year:1900,a=new Date(parseInt(String(n),10),parseInt(String(e.month),10),0).getDate();o.days=[];for(var r=1;r<=a;r++)o.days.push({value:r,text:String(r)})}));var y=Object(r["n"])({confirmAdd:{show:!1},confirmHoliday:{show:!1},delete:{show:!1},create:{show:!1}}),S=function(){0==p.dateDesignationMethod?(p.inputType=qo.Day,p.week=null,p.dayOfWeek=null):(p.inputType=qo.Weekday,p.day=null),y.confirmAdd.show=!1,y.create.show=!1,e.emit("submitAddHoliday",p),F()},D=function(){0==v.dateDesignationMethod?(v.inputType=qo.Day,v.week=null,v.dayOfWeek=null):(v.inputType=qo.Weekday,v.day=null),o.formDisplay=!1,y.confirmHoliday.show=!1,e.emit("submitHoliday",v)},C=function(){v.editIndex=b.editIndex,v.concurrencyStamp=b.concurrencyStamp,o.formDisplay=!1,y.delete.show=!1,e.emit("destroy",v)},w=function(t){console.log("Item:",t),console.log("deleteItem:",v),t.calendarKind==Qo.Calendarcommon?b.editIndex=t.calendarCommonID:b.editIndex=t.calendarSectionID,b.concurrencyStamp=t.concurrencyStamp,y.delete.show=!0},k=function(t,e){e.isSelected?(o.formDisplay=!1,v.editIndex=0,v.concurrencyStamp="",v.year=0,v.month=0,v.day=null,v.week=null,v.dayOfWeek=null,v.name="",v.description="",v.textColor="#EFEFEF",v.backgroundColor="#EB0F0F"):(o.formDisplay=!0,t.calendarKind==Qo.Calendarcommon?v.editIndex=t.calendarCommonID:v.editIndex=t.calendarSectionID,v.concurrencyStamp=t.concurrencyStamp,0!==t.year?v.year=t.year:v.year=0,null!=t.day&&t.day>0?v.dateDesignationMethod=0:v.dateDesignationMethod=1,0==v.dateDesignationMethod?v.inputType=qo.Day:v.inputType=qo.Weekday,v.month=t.month,v.day=t.day,v.week=t.week,v.dayOfWeek=t.dayOfWeek,v.name=t.name,v.description=t.description,v.textColor=t.textColor,v.backgroundColor=t.backgroundColor),e.select(!e.isSelected)},I=function(){o.addValid&&(y.confirmAdd.show=!0)},x=function(){o.holidayValid&&(y.confirmHoliday.show=!0)},T=Object(r["a"])((function(){return{backgroundColor:v.textColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.textColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),A=Object(r["a"])((function(){return{backgroundColor:v.backgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.backColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),_=Object(r["a"])((function(){return{backgroundColor:p.textColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.textCreateColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),O=Object(r["a"])((function(){return{backgroundColor:p.backgroundColor,cursor:"pointer",height:"30px",width:"30px",borderRadius:o.backCreateColorMenu?"50%":"4px",transition:"border-radius 200ms ease-in-out"}})),R=Object(r["p"])(),F=function(){var t;null===(t=R.value)||void 0===t||t.resetValidation(),p.concurrencyStamp="",p.year=0,p.month=0,p.day=null,p.dateDesignationMethod=-1,p.inputType=qo.None,p.week=null,p.dayOfWeek=null,p.name="",p.description="",p.textColor="#EFEFEF",p.backgroundColor="#EB0F0F",p.editIndex=0},V=function(t,e,o){return o.calendarKind!=Qo.Systemcalendar&&(0==c.month||o.month==c.month)};return{formContent:v,state:o,dateDesignationMethodList:m,holidayHeader:g,nationalHolidayHeader:h,weekList:d,weekdayList:f,swatchTextColor:T,swatchBackColor:A,swatchCreateTextColor:_,swatchCreateBackColor:O,displayMonth:c,dialog:y,formCreateContent:p,holidayForm:R,rules:vD(),nationalHolidayRows:n,resetCreateForm:F,holidayAdd:S,holidaySubmit:D,holidayDelete:C,deleteItem:w,holidayRowClick:k,validate:x,validateAdd:I,filterMonth:V,dummystring:u}}}),bD=pD,yD=Object(k["a"])(bD,gD,hD,!1,null,"28d120b2",null),SD=yD.exports;uc()(yD,{VBtn:mc["a"],VCard:Ic["a"],VCardActions:uu["a"],VCardText:uu["b"],VCol:xc["a"],VColorPicker:Ag["a"],VContainer:eu["a"],VDataTable:zu["a"],VDialog:Au["a"],VDivider:Tc["a"],VForm:fu["a"],VIcon:gc["a"],VMenu:Nd["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"],VSelect:Tf["a"],VTab:Rh["a"],VTabItem:Fh["a"],VTabs:Vh["a"],VTextField:yu["a"],VToolbar:Ku["a"],VToolbarTitle:Yu["b"]});var DD=Object(r["b"])({props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{SystemCalendar:SD,ErrorDialog:Ou,ResponseDialog:tm},setup:function(){var t=ic(),e=2;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({holidayRows:[]}),n=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"入力中のカレンダー情報を保存します、続行しますか?"},response:{show:!1,message:"",color:""},create:{show:!1},error:{show:!1,content:""}}),i=ha({id:1},E),s=(i.result,i.loading),l=(i.error,i.refetch),c=i.onResult;c((function(t){if(!t.error&&t.data&&Array.isArray(t.data.getCalendarsSection)){var e,r=t.data.getCalendarsSection,i=r.filter((function(t){return t.calendarKind!=Qo.Calendarsection}));(e=o.holidayRows).splice.apply(e,[0,o.holidayRows.length].concat(Object(a["a"])(i)))}else if(t.errors){var s=pt(t.errors);s.code!==M.QueryRecordNotFound&&(n.error.content=s.message,n.error.show=!0)}}));var u=Ri({fetchPolicy:"no-cache"}),d=u.mutate,f=(u.onError,u.onDone);f((function(t){n.confirm.show=!1,n.create.show=!1,n.response.show=!0,n.response.color="success",n.response.message="カレンダーを保存しました",y()}));var m=In({fetchPolicy:"no-cache"}),g=m.mutate,h=(m.onError,m.onDone);h((function(t){var e,a,r;console.log("Delete callback:",t);var i=null===(e=t.data)||void 0===e||null===(a=e.deleteCalendarCommon)||void 0===a||null===(r=a.result)||void 0===r?void 0:r.calendarCommonID,s=o.holidayRows.findIndex((function(t){return t.calendarCommonID===i}));o.holidayRows.splice(s,1),n.response.show=!0,n.response.color="success",n.response.message="カレンダーを削除しました"}));var v=_r({fetchPolicy:"no-cache"}),p=v.mutate,b=(v.onError,v.onDone);b((function(t){n.confirm.show=!1,n.create.show=!1,n.response.show=!0,n.response.color="success",n.response.message="カレンダーを追加しました",y()}));var y=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l();case 3:t.next=8;break;case 5:t.prev=5,t.t0=t["catch"](0),console.log("queryError(GQL):",t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),S=function(t){console.log("insert(Form):",t);var e={year:t.year,month:t.month,day:t.day,dayOfWeek:t.dayOfWeek,week:t.week,name:t.name,description:t.description,textColor:t.textColor,backgroundColor:t.backgroundColor,inputType:t.inputType};try{p({model:e})}catch(o){console.log("insertError(GQL):",o),w("登録処理中に問題が発生しました。")}},D=function(t){console.log("update(Form):",t);var e={calendarCommonID:t.editIndex,concurrencyStamp:t.concurrencyStamp,year:t.year,month:t.month,day:t.day,dayOfWeek:t.dayOfWeek,week:t.week,name:t.name,description:t.description,textColor:t.textColor,backgroundColor:t.backgroundColor,inputType:t.inputType};try{d({model:e})}catch(o){console.log("updateError(GQL):",o),w("登録処理中に問題が発生しました。")}},C=function(t){var e={calendarCommonID:t.editIndex,concurrencyStamp:t.concurrencyStamp};try{g({model:e})}catch(o){console.log("deleteError(GQL):",o),w("削除処理中に問題が発生しました。")}},w=function(t){n.error={show:!0,content:t}};return y(),{state:o,dialog:n,getCalenderLoading:s,insert:S,update:D,destroy:C,queryData:y}}}),CD=DD,wD=Object(k["a"])(CD,fD,mD,!1,null,"060b8934",null),kD=wD.exports;uc()(wD,{VProgressCircular:Md["a"]});var ID=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("シフト表編集オプション設定")]),t.getShiftTableEditLockLoading?o("div",{staticClass:"text-center"},[o("v-progress-circular",{attrs:{value:100,size:"100",width:"5",color:"primary",indeterminate:""}},[t._v("Loading... ")])],1):o("div",[o("v-card",{staticClass:"mb-3"},[o("v-row",{staticClass:"pr-3 pl-3"},[o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-checkbox",{attrs:{label:"前月のシフト入力をロック",color:"indigo","hide-details":""},model:{value:t.formContent.isPreviousMonthLock,callback:function(e){t.$set(t.formContent,"isPreviousMonthLock",e)},expression:"formContent.isPreviousMonthLock"}})],1),o("v-col",{attrs:{cols:"12",md:"6"}},[o("v-checkbox",{attrs:{label:"翌月のシフト入力をロック",color:"indigo","hide-details":""},model:{value:t.formContent.isFollowingMonthLock,callback:function(e){t.$set(t.formContent,"isFollowingMonthLock",e)},expression:"formContent.isFollowingMonthLock"}})],1)],1)],1)],1),t.showSubmitControl?o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{attrs:{dark:"",color:"primary"},on:{click:t.submit}},[t._v("設定"),o("v-icon",{attrs:{dark:"",right:""}},[t._v(" mdi-content-save-check ")])],1)],1)])],1)],1)],1):t._e()],1),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ConfirmDialog",{attrs:{show:t.dialog.confirm.show,width:420},on:{close:function(e){t.dialog.confirm.show=!1},confirm:t.saveSettings}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message},on:{close:function(e){t.dialog.response.show=!1}}})],1)},xD=[],TD=Object(r["b"])({props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{ConfirmDialog:Yd,ErrorDialog:Ou,ResponseDialog:tm},setup:function(){var t=1,e=ic(),o=2;e.commit("main/changeDrawerContent",{contentId:o});var n=Object(r["n"])({optionSectionID:0,concurrencyStamp:"",isFollowingMonthLock:!1,isPreviousMonthLock:!1,flg:!1}),a=Object(r["n"])({confirm:{show:!1},error:{show:!1,content:""},response:{show:!1,message:"",color:""}}),i=Ka({id:t},E),s=(i.result,i.loading),l=(i.error,i.refetch),c=i.onResult;c((function(t){if(console.log("getShiftTableEditLockOnResult",t.data),t.data&&t.data.getShiftTableEditLock)n.optionSectionID=t.data.getShiftTableEditLock.optionSectionID,n.concurrencyStamp=t.data.getShiftTableEditLock.concurrencyStamp,n.isFollowingMonthLock=t.data.getShiftTableEditLock.isFollowingMonthLock,n.isPreviousMonthLock=t.data.getShiftTableEditLock.isPreviousMonthLock;else if(t.errors){var e=pt(t.errors);e.code!==M.QueryRecordNotFound&&(a.error.content=e.message,a.error.show=!0)}}));var u=Xi({fetchPolicy:"no-cache"}),d=u.mutate,f=u.onError,m=u.onDone;m((function(t){var e,o;n.flg=!1,a.confirm.show=!1,null!==(e=t.data)&&void 0!==e&&null!==(o=e.updateShiftTableEditOption)&&void 0!==o&&o.succeed&&(a.response.show=!0,a.response.color="success",a.response.message="設定を保存しました"),g()})),f((function(t){if(n.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(a.error.content=t.message,a.error.show=!0)}}));var g=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l();case 3:t.next=10;break;case 5:t.prev=5,t.t0=t["catch"](0),console.log("queryError(GQL):",t.t0),a.error.content="データ取得中に問題が発生しました。",a.error.show=!0;case 10:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),h=function(){if(!n.flg){n.flg=!0;try{var t={optionSectionID:n.optionSectionID,concurrencyStamp:n.concurrencyStamp,isFollowingMonthLock:n.isFollowingMonthLock,isPreviousMonthLock:n.isPreviousMonthLock};console.log("saveSettings",n),d({model:t})}catch(e){n.flg=!1,a.error.content=Hu,a.error.show=!0}}},v=function(){a.confirm.show=!0};return g(),{formContent:n,dialog:a,getShiftTableEditLockLoading:s,saveSettings:h,submit:v}}}),AD=TD,_D=Object(k["a"])(AD,ID,xD,!1,null,"161c7f46",null),OD=_D.exports;uc()(_D,{VBtn:mc["a"],VCard:Ic["a"],VCheckbox:du["a"],VCol:xc["a"],VIcon:gc["a"],VProgressCircular:Md["a"],VRow:Oc["a"]});var RD=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("お問い合わせ")]),o("div",{staticClass:"content__form form"},[o("v-row",[o("v-col",{attrs:{cols:"12",md:"12"}},[o("v-form",{ref:"pageForm"},[o("div",[o("div",[o("v-select",{attrs:{rules:t.rules.inquiryType,items:t.inquiryTypeList,attach:"","background-color":"white",label:"お問い合わせ種類",outlined:""},model:{value:t.state.form.inquiryType,callback:function(e){t.$set(t.state.form,"inquiryType",e)},expression:"state.form.inquiryType"}})],1),o("div",[o("v-text-field",{attrs:{rules:t.rules.subject,required:"",outlined:"",counter:"64","background-color":"white",label:"お問い合わせ件名"},model:{value:t.state.form.subject,callback:function(e){t.$set(t.state.form,"subject",e)},expression:"state.form.subject"}})],1),o("div",[o("v-textarea",{attrs:{rules:t.rules.content,required:"",outlined:"",counter:"2000","background-color":"white",label:"お問い合わせ内容"},model:{value:t.state.form.content,callback:function(e){t.$set(t.state.form,"content",e)},expression:"state.form.content"}})],1)])])],1)],1)],1),o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{staticClass:"mx-1 white--text",attrs:{color:"primary"},on:{click:t.onOpenDialog}},[t._v("送信"),o("v-icon",{attrs:{dark:"",right:""}},[t._v("mdi-check")])],1)],1)])],1)],1),o("confirmDialog",{attrs:{show:t.dialog.confirm.show,title:t.dialog.confirm.title,content:t.dialog.confirm.content,width:420,agree:"OK"},on:{confirm:t.sendInquiry,close:function(e){t.dialog.confirm.show=!1}}}),o("notification",{attrs:{show:t.dialog.notification.show,color:t.dialog.notification.color,message:t.dialog.notification.message,"close-text":"OK"},on:{close:function(e){t.dialog.notification.show=!1}}})],1)},FD=[],VD=function(){return{inquiryType:[function(t){var e=parseInt(t);return!isNaN(e)||"お問い合わせの種類をお選びください"}],subject:[function(t){return!!t||"件名を追加してください"},function(t){return t&&t.length<=64||"件名は64文字を超えてはなりません"}],content:[function(t){return!!t||"コンテンツを追加してください"},function(t){return t&&t.length<=2e3||"メッセージの内容は2000文字を超えてはなりません"}]}},jD=Object(r["b"])({components:{confirmDialog:Yd,notification:tm},setup:function(){var t=ic(),e=3;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["p"])(),n=Object(r["n"])({form:{inquiryType:1,subject:"",content:""}}),a=VD(),i=[{text:"Ramanasについての不明点",value:1},{text:"ご要望",value:2},{text:"その他",value:3}],s=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:""},notification:{show:!1,color:"",message:""}}),l=function(){o.value.validate()?(s.confirm.show=!0,s.confirm.content="これでお問い合わせが送信されます、続行しますか?"):Object(Qv["b"])(0)},c=function(){var t=["green","red"],e=t[Math.floor(Math.random()*t.length)];setTimeout((function(){var t;(s.notification.show=!0,"red"==e)?(s.notification.color="red",s.notification.message="ステータスを更新できません。 後でもう一度やり直してください。"):(s.notification.color="green",s.notification.message="お問い合わせは正常に送信されました。",n.form.subject="",n.form.content="",null===(t=o.value)||void 0===t||t.resetValidation());n.form.inquiryType=1,s.confirm.show=!1}),1500)};return{pageForm:o,state:n,rules:a,inquiryTypeList:i,dialog:s,onOpenDialog:l,sendInquiry:c}}}),ED=jD,GD=o("a844"),$D=Object(k["a"])(ED,RD,FD,!1,null,"76be5346",null),ND=$D.exports;uc()($D,{VBtn:mc["a"],VCol:xc["a"],VForm:fu["a"],VIcon:gc["a"],VRow:Oc["a"],VSelect:Tf["a"],VTextField:yu["a"],VTextarea:GD["a"]});var LD=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("Webマニュアル")]),o("div",{staticClass:"content__form form"},[o("v-row",t._l(t.webManual,(function(e,n){return o("v-col",{key:n,attrs:{cols:"12",md:"12"}},[o("v-list",{attrs:{title:t.parentPages[n]}},[o("h4",{staticClass:"primary--text px-6 py-4"},[t._v(t._s(t.parentPages[n]))]),t._l(e,(function(e,n){return o("v-list-item-group",{key:n,staticClass:"pa-0",attrs:{color:"primary"}},[0==e.subMenu.length?o("v-list-item",{on:{click:function(o){return t.redirect(e)}}},[o("v-list-item-icon",[o("v-icon",[t._v(" mdi-chevron-right ")])],1),o("v-list-item-content",[o("v-list-item-title",{domProps:{textContent:t._s(e.title)}})],1)],1):t._l(e.subMenu,(function(e,n){return o("v-list-item",{key:n,on:{click:function(o){return t.redirect(e)}}},[o("v-list-item-icon",[o("v-icon",[t._v(" mdi-chevron-right ")])],1),o("v-list-item-content",[o("v-list-item-title",{domProps:{textContent:t._s(e.title)}})],1)],1)}))],2)}))],2)],1)})),1)],1),o("v-row",[o("v-col",{attrs:{cols:"12"}},[o("v-btn",{attrs:{color:"secondary",outlined:""},on:{click:function(e){return t.$router.back()}}},[o("v-icon",{attrs:{dark:"",left:""}},[t._v(" mdi-arrow-left-bold ")]),t._v(" 戻る ")],1)],1)],1)],1),o("notification",{attrs:{show:t.dialog.notification.show,color:t.dialog.notification.color,message:t.dialog.notification.message,"close-text":"OK"},on:{close:function(e){t.dialog.notification.show=!1}}})],1)},MD=[],PD=Object(r["b"])({components:{notification:tm},setup:function(){var t=ic(),e=3,o=bk();t.commit("main/changeDrawerContent",{contentId:e});var n=Object(r["n"])(["シフト表","スタッフ管理","システム設定","サポート"]),a=Object(r["a"])((function(){var t=Object.assign([],J.state.drawers);return t})),i=Object(r["n"])({notification:{show:!1,color:"",message:""}}),s=function(t){""!=t.route&&o.push({path:t.route})};function l(){setTimeout((function(){i.notification.show=!0,i.notification.color="red",i.notification.message="何かがうまくいかなかった。 後でもう一度やり直してください。"}),500)}return l(),{parentPages:n,webManual:a,dialog:i,redirect:s}}}),WD=PD,BD=o("1baa"),HD=o("34c3"),qD=Object(k["a"])(WD,LD,MD,!1,null,"09d85972",null),QD=qD.exports;uc()(qD,{VBtn:mc["a"],VCol:xc["a"],VIcon:gc["a"],VList:Gc["a"],VListItem:Nc["a"],VListItemContent:Lc["a"],VListItemGroup:BD["a"],VListItemIcon:HD["a"],VListItemTitle:Lc["b"],VRow:Oc["a"]});var UD=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner"},[o("div",{staticClass:"title"},[t._v("FAQ")]),o("v-row",{staticClass:"mt-4"},[o("v-col",{attrs:{cols:"12"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{staticClass:"mr-2",attrs:{dark:"",color:"secondary",to:"./"}},[t._v("戻る")]),o("v-btn",{attrs:{dark:"",color:"primary"}},[t._v("送信")])],1)])],1)],1)])},zD=[],KD=Object(r["b"])({setup:function(){var t=ic(),e=3;t.commit("main/changeDrawerContent",{contentId:e});var o=Object(r["n"])({search:"",dialogDelete:!1}),n=["Ramanasについての不明点","ご要望","その他"],a=Object(r["n"])({inquiryType:"Ramanasについての不明点",inquiryTitle:""});return{form:a,state:o,inquiryTypeList:n}},methods:{}}),YD=KD,ZD=Object(k["a"])(YD,UD,zD,!1,null,"55be1701",null),JD=ZD.exports;uc()(ZD,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var XD=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[t._v(" 認証関係のページ "),o("router-view")],1)},tC=[],eC=Object(r["b"])({setup:function(){return{}}}),oC=eC,nC=Object(k["a"])(oC,XD,tC,!1,null,null,null),aC=nC.exports,rC=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("p",[t._v("2要素認証の設定")]),o("v-container",[t.state.isLoading?t._e():o("v-card",{staticClass:"mx-auto",attrs:{"max-width":"600"}},[o("v-card-title",[o("span",[t._v("Google Authenticator")]),o("span",[t._v("アプリで")]),o("span",[t._v("QRコードを")]),o("span",[t._v("読み込んで")]),o("span",[t._v("ください")])]),o("v-card-text",[o("v-form",[o("div",[o("vue-qrcode",{attrs:{value:t.qrCode,options:t.qrCodeOptions}})],1),o("p",{staticClass:"text-lg-center"},[t._v("アプリに表示された認証コード(6桁)を入力してください。")]),o("v-otp-input",{attrs:{length:6},on:{finish:t.submit},model:{value:t.state.verifyCode,callback:function(e){t.$set(t.state,"verifyCode",e)},expression:"state.verifyCode"}})],1)],1)],1)],1)],1)},iC=[],sC=o("b2e5"),lC=o.n(sC),cC=Object(r["b"])({components:{"vue-qrcode":lC.a},setup:function(){var t=ic(),e=bk(),o=Object(r["n"])({isLoading:!0,secretCode:"",verifyCode:""});function n(t){o.secretCode=t,o.isLoading=!1}function a(t){console.error(t)}t&&(null===t||void 0===t||t.dispatch("auth/setupTotp",{onSuccess:n,onError:a}));var i={width:200},s=function(){var n=Object(X["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.dispatch("auth/verifyTotpToken",{totpCode:o.verifyCode,onSuccess:function(){e.back()},onError:function(t){console.error(t)}});case 1:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return{state:o,qrCode:Object(r["a"])((function(){var e="Ramanas(ラマナス)";return"otpauth://totp/".concat(t.getters["auth/username"],"?secret=").concat(o.secretCode,"&issuer=").concat(e)})),qrCodeOptions:i,submit:s}}}),uC=cC,dC=Object(k["a"])(uC,rC,iC,!1,null,null,null),fC=dC.exports;uc()(dC,{VCard:Ic["a"],VCardText:uu["b"],VCardTitle:uu["c"],VContainer:eu["a"],VForm:fu["a"],VOtpInput:mu["a"]});var mC=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("v-alert",{attrs:{border:"right","colored-border":"",type:"error",elevation:"2"}},[t._v(" "+t._s(t.systemMessage.failure)+" ")]),o("v-btn",{staticClass:"mr-4",attrs:{color:"",block:""},on:{click:t.onTransitionTop}},[t._v(" トップ(仮置きボタン) ")])],1)])},gC=[],hC=Object(r["b"])({setup:function(){var t=ic(),e=0;t.commit("main/changeDrawerContent",{contentId:e});var o=!1;t.commit("shiftTable/setIsDisplayShiftTable",{isDisp:o});var n=bk(),a=function(){n.push({name:"top"})};return{systemMessage:zl,onTransitionTop:a}}}),vC=hC,pC=o("0798"),bC=Object(k["a"])(vC,mC,gC,!1,null,null,null),yC=bC.exports;uc()(bC,{VAlert:pC["a"],VBtn:mc["a"]});var SC=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-app",[t.isSignedIn?o("wizard-drawer"):t._e(),t.isSignedIn?o("setting-wizard-navigation"):t._e(),o("v-main",{ref:"view",staticClass:"yellow lighten-5"},[o("v-container",{attrs:{fluid:!0}},[o("router-view")],1)],1)],1)},DC=[],CC=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-app-bar",{attrs:{app:"",flat:"",color:"white",height:"77"}},[o("v-app-bar-nav-icon",{on:{click:function(e){return e.preventDefault(),t.navIconClick.apply(null,arguments)}}}),o("v-spacer"),o("v-btn",{attrs:{text:""},on:{click:function(e){return e.preventDefault(),t.signOut.apply(null,arguments)}}},[o("span",{staticClass:"mr-2"},[t._v("サインアウト")]),o("v-icon",[t._v("mdi-logout")])],1)],1)},wC=[],kC=Object(r["b"])({setup:function(){var t=ic(),e=function(){t.commit("settingWizard/setDisplayDrawer",{value:!t.state.settingWizard.display.drawer})},o=function(){t.dispatch("auth/signOut"),null===pk||void 0===pk||pk.push({path:"/signin"})};return{navIconClick:e,signOut:o}}}),IC=kC,xC=Object(k["a"])(IC,CC,wC,!1,null,null,null),TC=xC.exports;uc()(xC,{VAppBar:dc["a"],VAppBarNavIcon:fc["a"],VBtn:mc["a"],VIcon:gc["a"],VSpacer:vc["a"]});var AC=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-navigation-drawer",{staticClass:"drawer",attrs:{app:""},model:{value:t.state.drawer,callback:function(e){t.$set(t.state,"drawer",e)},expression:"state.drawer"}},[o("ul",{},t._l(t.state.items,(function(e,n){return o("li",{key:e.title,staticClass:"step",class:t.activateStep(n)},[t._v(" "+t._s(e.title)+" "),[e.subSteps.length>0?o("ul",{staticClass:"sub-step"},t._l(e.subSteps,(function(e,a){return o("li",{key:e.title,class:t.activateSubStep(n,a)},[t._v(" "+t._s(e.title)+" ")])})),0):t._e()]],2)})),0)])},_C=[],OC=Object(r["b"])({setup:function(){var t=ic(),e=Object(r["n"])({drawer:t.state.settingWizard.display.drawer,items:t.state.settingWizard.steps});Object(r["s"])(e,(function(e){if(t.state.settingWizard.display.drawer!=e.drawer){var o=e.drawer;t.commit("settingWizard/setDisplayDrawer",{value:o})}})),Object(r["s"])(t.state.settingWizard.display,(function(t){t.drawer!=e.drawer&&(e.drawer=t.drawer)}));var o=function(e){return t.state.settingWizard.stepProgress!=e||t.state.settingWizard.steps[e].subSteps.length>0?"":"activated"},n=function(e,o){return t.state.settingWizard.stepProgress==e&&t.state.settingWizard.subStepProgress==o?"activated":""};return{state:e,activateStep:o,activateSubStep:n}}}),RC=OC,FC=(o("32c9"),Object(k["a"])(RC,AC,_C,!1,null,"5457f97a",null)),VC=FC.exports;uc()(FC,{VNavigationDrawer:Mc["a"]});var jC=Object(r["b"])({components:{SettingWizardNavigation:TC,WizardDrawer:VC},setup:function(){ic();var t=!0;return{isSignedIn:t}}}),EC=jC,GC=Object(k["a"])(EC,SC,DC,!1,null,null,null),$C=GC.exports;uc()(GC,{VApp:tu["a"],VContainer:eu["a"],VMain:nu["a"]});var NC=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",[t._v("Ramanasへようこそ!")]),o("div",[t._v("まずはシフト表の作成に必要な初期設定をしましょう。")]),o("v-radio-group",{staticClass:"ml-5 mt-7",attrs:{"hide-details":""}},[o("v-radio",{attrs:{label:"初期設定ウィザードを開始する ※推奨",value:"初期設定ウィザードを開始する ※推奨"}}),o("v-radio",{attrs:{label:"手動で初期設定を行う",value:"手動で初期設定を行う"}})],1),o("v-row",{staticClass:"mt-10"},[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:t.onNext}},[t._v(" 次へ ")])],1)],1)],1)])},LC=[],MC=Object(r["b"])({setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:0});var e=function(){pk.push("/setting-wizard/organization-basic-setting")};return{onNext:e}}}),PC=MC,WC=Object(k["a"])(PC,NC,LC,!1,null,null,null),BC=WC.exports;uc()(WC,{VBtn:mc["a"],VCol:xc["a"],VRadio:Ac["a"],VRadioGroup:_c["a"],VRow:Oc["a"]});var HC=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("organization",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")])],1)])],1)],1)])],1)},qC=[],QC=Object(r["b"])({components:{organization:ZS},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:1});var e=function(){pk.push("/setting-wizard/affiliation-basic-setting")};return{nextStep:e}}}),UC=QC,zC=Object(k["a"])(UC,HC,qC,!1,null,null,null),KC=zC.exports;uc()(zC,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var YC=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("affiliation",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")])],1)])],1)],1)])],1)},ZC=[],JC=Object(r["b"])({components:{affiliation:aD},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:2}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:0});var e=function(){pk.push("/setting-wizard/affiliation-option")};return{nextStep:e}}}),XC=JC,tw=Object(k["a"])(XC,YC,ZC,!1,null,null,null),ew=tw.exports;uc()(tw,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var ow=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("shift-edit-option",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")])],1)])],1)],1)])],1)},nw=[],aw=Object(r["b"])({components:{ShiftEditOption:OD},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:2}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:1});var e=function(){pk.push("/setting-wizard/organization-calendar")};return{nextStep:e}}}),rw=aw,iw=Object(k["a"])(rw,ow,nw,!1,null,null,null),sw=iw.exports;uc()(iw,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var lw=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("calendar-organization",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")]),o("v-btn",{staticClass:"ml-7",on:{click:t.nextStep}},[t._v(" スキップ ")])],1)])],1)],1)])],1)},cw=[],uw=Object(r["b"])({components:{CalendarOrganization:kD},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:3}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:0});var e=function(){pk.push("/setting-wizard/affiliation-calendar")};return{nextStep:e}}}),dw=uw,fw=Object(k["a"])(dw,lw,cw,!1,null,null,null),mw=fw.exports;uc()(fw,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var gw=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("calendar-affiliation",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")]),o("v-btn",{staticClass:"ml-7",on:{click:t.nextStep}},[t._v(" スキップ ")])],1)])],1)],1)])],1)},hw=[],vw=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s yellow lighten-5"},[o("div",{staticClass:"title"},[t._v("所属カレンダー設定")]),t.getCalenderLoading?o("div",{staticClass:"text-center"},[o("v-progress-circular",{attrs:{indeterminate:"",color:"purple"}})],1):o("div",[o("SystemCalendar",{attrs:{"calendar-commons-data":t.state.holidayRows,"show-submit-control":t.showSubmitControl},on:{submitAddHoliday:t.insert,submitHoliday:t.update,destroy:t.destroy}})],1)]),o("ErrorDialog",{attrs:{show:t.dialog.error.show,content:t.dialog.error.content,width:420},on:{close:function(e){t.dialog.error.show=!1}}}),o("ResponseDialog",{attrs:{show:t.dialog.response.show,color:t.dialog.response.color,message:t.dialog.response.message,width:420},on:{close:function(e){t.dialog.response.show=!1}}})],1)},pw=[],bw=Object(r["b"])({props:{showSubmitControl:{type:Boolean,required:!1,default:!0}},components:{SystemCalendar:SD,ErrorDialog:Ou,ResponseDialog:tm},setup:function(){var t=1,e=ic(),o=2;e.commit("main/changeDrawerContent",{contentId:o});var n=Object(r["n"])({holidayRows:[],flg:!1,updFlg:!1,delFlg:!1}),i=Object(r["n"])({confirm:{show:!1,title:"確認",close:"OK",content:"入力中の所属情報を保存します、続行しますか?"},response:{show:!1,message:"",color:""},create:{show:!1},error:{show:!1,content:""}}),s=ha({id:t},{fetchPolicy:"no-cache"}),l=(s.result,s.loading),c=(s.error,s.refetch),u=s.onResult;u((function(t){if(t.data&&Array.isArray(t.data.getCalendarsSection)){var e,o=t.data.getCalendarsSection,r=o.filter((function(t){return t.calendarKind!=Qo.Calendarcommon}));(e=n.holidayRows).splice.apply(e,[0,n.holidayRows.length].concat(Object(a["a"])(r)))}else if(t.errors){var s=pt(t.errors);s.code!==M.QueryRecordNotFound&&(i.error.content=s.message,i.error.show=!0)}}));var d=Vi({fetchPolicy:"no-cache"}),f=d.mutate,m=d.onError,g=d.onDone;g((function(t){n.updFlg=!1,i.confirm.show=!1,i.create.show=!1,i.response.show=!0,i.response.color="success",i.response.message="カレンダーを保存しました",w()})),m((function(t){if(n.updFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(i.error.content=t.message,i.error.show=!0)}}));var h=Tn({fetchPolicy:"no-cache"}),v=h.mutate,p=h.onError,b=h.onDone;b((function(t){var e,o,a;console.log("Delete callback:",t),n.delFlg=!1;var r=null===(e=t.data)||void 0===e||null===(o=e.deleteCalendarSection)||void 0===o||null===(a=o.result)||void 0===a?void 0:a.calendarSectionID,s=n.holidayRows.findIndex((function(t){return t.calendarSectionID===r}));n.holidayRows.splice(s,1),i.response.show=!0,i.response.color="success",i.response.message="カレンダーを削除しました"})),p((function(t){if(n.delFlg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(i.error.content=t.message,i.error.show=!0)}}));var y=Rr({fetchPolicy:"no-cache"}),S=y.mutate,D=y.onError,C=y.onDone;C((function(t){n.flg=!1,i.confirm.show=!1,i.create.show=!1,i.response.show=!0,i.response.color="success",i.response.message="カレンダーを追加しました",w()})),D((function(t){if(n.flg=!1,t.graphQLErrors.length){var e=pt(t.graphQLErrors);e.code!==M.QueryRecordNotFound&&(i.error.content=t.message,i.error.show=!0)}}));var w=function(){var t=Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c();case 3:t.next=8;break;case 5:t.prev=5,t.t0=t["catch"](0),console.log("queryError(GQL):",t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),k=function(e){if(console.log("insert(Form):",e),!n.flg){n.flg=!0;var o={year:e.year,month:e.month,day:e.day,dayOfWeek:e.dayOfWeek,week:e.week,name:e.name,sectionID:t,description:e.description,textColor:e.textColor,backgroundColor:e.backgroundColor,inputType:e.inputType};try{S({model:o})}catch(a){console.log("insertError(GQL):",a),n.flg=!1,T("登録処理中に問題が発生しました。")}}},I=function(e){if(console.log("update(Form):",e),!n.updFlg){n.updFlg=!0;var o={calendarSectionID:e.editIndex,concurrencyStamp:e.concurrencyStamp,year:e.year,month:e.month,day:e.day,dayOfWeek:e.dayOfWeek,week:e.week,name:e.name,sectionID:t,description:e.description,textColor:e.textColor,backgroundColor:e.backgroundColor,inputType:e.inputType};try{f({model:o})}catch(a){console.log("updateError(GQL):",a),n.updFlg=!1,T("登録処理中に問題が発生しました。")}}},x=function(t){if(console.log("delete(Form):",t),!n.delFlg){n.delFlg=!0;var e={calendarSectionID:t.editIndex,concurrencyStamp:t.concurrencyStamp};try{v({model:e})}catch(o){n.delFlg=!1,T("削除処理中に問題が発生しました。")}}},T=function(t){i.error={show:!0,content:t}};return w(),{state:n,dialog:i,getCalenderLoading:l,insert:k,update:I,destroy:x,queryData:w}}}),yw=bw,Sw=Object(k["a"])(yw,vw,pw,!1,null,"af5c818c",null),Dw=Sw.exports;uc()(Sw,{VProgressCircular:Md["a"]});var Cw=Object(r["b"])({components:{CalendarAffiliation:Dw},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:3}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:1});var e=function(){pk.push("/setting-wizard/staff-organization")};return{nextStep:e}}}),ww=Cw,kw=Object(k["a"])(ww,gw,hw,!1,null,null,null),Iw=kw.exports;uc()(kw,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var xw=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("staff-organization",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")]),o("v-btn",{staticClass:"ml-7",on:{click:t.nextStep}},[t._v(" スキップ ")])],1)])],1)],1)])],1)},Tw=[],Aw=Object(r["b"])({components:{StaffOrganization:Qy},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:4}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:0});var e=function(){pk.push("/setting-wizard/staff-affiliation")};return{nextStep:e}}}),_w=Aw,Ow=Object(k["a"])(_w,xw,Tw,!1,null,null,null),Rw=Ow.exports;uc()(Ow,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var Fw=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("staff-affiliation",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")]),o("v-btn",{staticClass:"ml-7",on:{click:t.nextStep}},[t._v(" スキップ ")])],1)])],1)],1)])],1)},Vw=[],jw=Object(r["b"])({components:{StaffAffiliation:dS},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:4}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:1});var e=function(){pk.push("/setting-wizard/staff")};return{nextStep:e}}}),Ew=jw,Gw=Object(k["a"])(Ew,Fw,Vw,!1,null,null,null),$w=Gw.exports;uc()(Gw,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var Nw=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("staff-multiple-addition",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")])],1)])],1)],1)])],1)},Lw=[],Mw=Object(r["b"])({components:{staffMultipleAddition:zb},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:4}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:2});var e=function(){pk.push("/setting-wizard/staff-cooperation")};return{nextStep:e}}}),Pw=Mw,Ww=Object(k["a"])(Pw,Nw,Lw,!1,null,null,null),Bw=Ww.exports;uc()(Ww,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var Hw=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("staff-multiple-attribute",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")]),o("v-btn",{staticClass:"ml-7",on:{click:t.nextStep}},[t._v(" スキップ ")])],1)])],1)],1)])],1)},qw=[],Qw=Object(r["b"])({components:{StaffMultipleAttribute:ty},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:4}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:3});var e=function(){pk.push("/setting-wizard/staff-order")};return{nextStep:e}}}),Uw=Qw,zw=Object(k["a"])(Uw,Hw,qw,!1,null,null,null),Kw=zw.exports;uc()(zw,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var Yw=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("staff-display-order",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")]),o("v-btn",{staticClass:"ml-7",on:{click:t.nextStep}},[t._v(" スキップ ")])],1)])],1)],1)])],1)},Zw=[],Jw=Object(r["b"])({components:{StaffDisplayOrder:Pb},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:4}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:4});var e=function(){pk.push("/setting-wizard/shift-affiliation")};return{nextStep:e}}}),Xw=Jw,tk=Object(k["a"])(Xw,Yw,Zw,!1,null,null,null),ek=tk.exports;uc()(tk,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var ok=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("shift-group-creation",{attrs:{"show-submit-control":!1}}),o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("v-row",[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.nextStep}},[t._v(" 次へ ")])],1)])],1)],1)])],1)},nk=[],ak=Object(r["b"])({components:{ShiftGroupCreation:dD},setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:5}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:0});var e=function(){pk.push("/setting-wizard/completion")};return{nextStep:e}}}),rk=ak,ik=Object(k["a"])(rk,ok,nk,!1,null,null,null),sk=ik.exports;uc()(ik,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]});var lk=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"content"},[o("div",{staticClass:"content__inner--padding-s"},[o("div",[t._v("初期設定が完了しました。")]),o("div",[t._v("おつかれさまでした。")]),o("div",{staticClass:"mt-8"},[t._v("シフト表のルール作成を開始する場合は")]),o("div",[o("router-link",{attrs:{to:"/shift-table/shift-common-rule"}},[t._v("いつものルール作成画面")]),t._v("へ移動してください。")],1),o("v-row",{staticClass:"mt-10"},[o("v-col",{attrs:{cols:"1"}},[o("v-btn",{on:{click:function(e){return t.$router.back()}}},[t._v(" 戻る ")])],1),o("v-col",{attrs:{cols:"10"}},[o("div",{staticClass:"content__btn form__btn"},[o("v-btn",{on:{click:t.onComplete}},[t._v(" 完了 ")])],1)])],1)],1)])},ck=[],uk=Object(r["b"])({setup:function(){var t=ic();t.commit("settingWizard/setStepProgress",{stepProgress:6}),t.commit("settingWizard/setSubStepProgress",{subStepProgress:0});var e=function(){pk.push("/")};return{onComplete:e}}}),dk=uk,fk=Object(k["a"])(dk,lk,ck,!1,null,null,null),mk=fk.exports;uc()(fk,{VBtn:mc["a"],VCol:xc["a"],VRow:Oc["a"]}),y["default"].use(B["a"]);var gk="Ramanas | ",hk=[{path:"/signin",component:Du},{path:"/reset",name:"reset",component:ju},{path:"/signin-virtuality",name:"signin-virtuality",component:Mu},{path:"/setting-wizard",component:$C,children:[{path:"/",name:"setting-wizard",component:BC,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/organization-basic-setting",name:"organization-basic-setting",component:KC,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/affiliation-basic-setting",name:"affiliation-basic-setting",component:ew,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/affiliation-option",name:"affiliation-option",component:sw,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/organization-calendar",name:"organization-calendar",component:mw,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/affiliation-calendar",name:"affiliation-calendar",component:Iw,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/staff-organization",name:"staff-organization",component:Rw,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/staff-affiliation",name:"staff-affiliation",component:$w,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/staff",name:"staff",component:Bw,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/staff-cooperation",name:"staff-cooperation",component:Kw,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/staff-order",name:"staff-order",component:ek,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/shift-affiliation",name:"shift-affiliation",component:sk,meta:{title:gk+"シフト表選択"}},{path:"/setting-wizard/completion",name:"wizard-completion",component:mk,meta:{title:gk+"シフト表選択"}}]},{path:"/",component:ru,name:"home",meta:{isPublic:!0,isIdentity:!1,title:gk+""},children:[{path:"shift-table",name:"shift-table-index",component:ad,children:[{path:"select-shift",name:"shift-table-select-shift",component:Of,meta:{title:gk+"シフト表選択"}},{path:"shift-table",name:"shift-table-shift-table",component:Wd,meta:{title:gk+"シフト表入力"}}]},{path:"/shift-table/desired-shift",name:"shift-table-desired-shift",component:am,meta:{title:gk+"希望シフト詳細設定"}},{path:"/shift-table/non-desired-shift",name:"shift-table-non-desired-shift",component:gm,meta:{title:gk+"非希望シフト詳細設定"}},{path:"/shift-table/actual-shift",name:"shift-table-actual-shift",component:Im,meta:{title:gk+"実績詳細設定"}},{path:"/shift-table/settings-current-shift-status",name:"settings-current-shift-status",component:Um,meta:{title:gk+"シフト表状態設定"}},{path:"/shift-table/settings-display-design",name:"settings-display-design",component:Mm,meta:{title:gk+"表示デザイン設定"}},{path:"/shift-table/settings-automatic-creation-time-limit",name:"settings-automatic-creation-time-limit",component:Fm,meta:{title:gk+"自動作成制限時間設定"}},{path:"/shift-table/settings-desired-shift-period",name:"system-settings-desired-shift-period",component:cg,meta:{title:gk+"翌月希望シフト申請開始/終了日設定"}},{path:"/shift-table/settings-vertical-aggregate",name:"settings-vertical-aggregate",component:og,meta:{title:gk+"縦計表示設定"}},{path:"/shift-table/settings-horizontal-aggregate",name:"system-settings-horizontal-aggregate",component:wg,meta:{title:gk+"横計表示設定"}},{path:"/shift-table/settings-violation-display",name:"system-settings-violation-display",component:Og,meta:{title:gk+"違反表示設定"}},{path:"/shift-table/settings-violation-list",name:"system-settings-violation-list",component:zg,meta:{title:gk+"違反一覧"}},{path:"/shift-table/shift-rule/create",name:"shift-rule-create",component:_v,meta:{title:gk+"シフトルール作成"}},{path:"/shift-table/shift-rule/rule-shift-table",name:"rule-shift-table",component:Ev,meta:{title:gk+"シフトルール"}},{path:"/shift-table/shift-common-rule",name:"shift-table-common-rule",component:eh,meta:{title:gk+"いつものルール一覧"}},{path:"/shift-table/shift-common-rule/create",name:"rule-shift-common",component:Eh,meta:{title:gk+"いつものシフトルール作成"}},{path:"/shift-table/shift-common-rule",name:"shift-common-rule",component:rv,meta:{title:gk+"いつものルール"}},{path:"/shift-table/employee-number-setting",name:"employee-number-setting",component:ep,meta:{title:gk+"勤務の人数設定"}},{path:"/shift-table/work-number-setting",name:"work-number-setting",component:sp,meta:{title:gk+"勤務の回数設定"}},{path:"/shift-table/shift-combination-setting",name:"shift-combination-setting",component:gp,meta:{title:gk+"シフトの組み合わせ設定"}},{path:"/shift-table/shift-prohibition-combination-setting",name:"shift-prohibition-combination-setting",component:Dp,meta:{title:gk+"シフトの禁止組み合わせ設定"}},{path:"/shift-table/staff-attribute-combination-setting",name:"staff-attribute-combination-setting",component:Vp,meta:{title:gk+"スタッフ属性の組み合わせ設定"}},{path:"/shift-table/staff-attribute-prohibit-combination-setting",name:"staff-attribute-prohibit-combination-setting",component:Lp,meta:{title:gk+"スタッフ属性の禁止する組み合わせ設定"}},{path:"/shift-table/shift-interval-setting",name:"shift-interval-setting",component:qp,meta:{title:gk+"シフト同士の間隔設定"}},{path:"/shift-table/consecutive-vacations-number-setting",name:"consecutive-vacations-number-setting",component:Jp,meta:{title:gk+"連続する休暇の回数設定"}},{path:"/staffs",name:"staffs-index",component:ub,meta:{title:gk+"全所属スタッフ管理"}},{path:"/staffs/create",name:"staffs-create",component:pb,meta:{title:gk+"スタッフ作成"}},{path:"/staffs/multiple-create",name:"staffs-multiple-create",component:zb,meta:{title:gk+"スタッフ複数追加"}},{path:"/staffs/multiple-attribute",name:"staffs-multiple-attribute",component:ty,meta:{title:gk+"スタッフ属性一括連携"}},{path:"/staffs/edit",name:"staffs-edit",component:wb,meta:{title:gk+"スタッフ編集"}},{path:"/staffs/transfer",name:"staffs-transfer",component:_b,meta:{title:gk+"スタッフ異動"}},{path:"/staffs/attribute",name:"staffs-attribute",component:Eb,meta:{title:gk+"スタッフ属性設定"}},{path:"/staffs/display-order",name:"display-order",component:Pb,meta:{title:gk+"スタッフの表示順設定"}},{path:"/system",name:"system-index",component:pS,meta:{title:gk+"アカウント設定"}},{path:"/system/account/create",name:"system-account-create",component:OS,meta:{title:gk+"アカウント作成"}},{path:"/system/account/edit",name:"system-account-edit",component:NS,meta:{title:gk+"アカウント編集"}},{path:"/system/account/option",name:"system-account-option",component:HS,meta:{title:gk+"2要素認証セットアップ"}},{path:"/system/organization",name:"system-organization",component:ZS,meta:{title:gk+"組織設定"}},{path:"/system/section",name:"system-section",component:aD,meta:{title:gk+"所属設定"}},{path:"/system/shift",name:"system-shift",component:dD,meta:{title:gk+"シフトグループ・シフト作成画面"}},{path:"/system/calender-organization",name:"calender-organization",component:kD,meta:{title:gk+"組織カレンダー設定"}},{path:"/system/shift-edit-option",name:"shift-edit-option",component:OD,meta:{title:gk+"シフト表編集オプション設定"}},{path:"/system/organization-settings",name:"organization-settings",component:Qy,meta:{title:gk+"スタッフ属性(組織)作成"}},{path:"/system/section-settings",name:"section-settings",component:dS,meta:{title:gk+"スタッフ属性(所属)作成"}},{path:"/system/settings-desired-shift-acceptance",name:"settings-desired-shift-acceptance",component:ab,meta:{title:gk+"希望シフト受付日デフォルト設定"}},{path:"/support",name:"support-index",component:ND,meta:{title:gk+"お問い合わせ"}},{path:"/support/web-manual",name:"support-web-manual",component:QD,meta:{title:gk+"Webマニュアル"}},{path:"/support/faq",name:"support-faq",component:JD,meta:{title:gk+""}},{path:"/system/settings-horizontal-total",name:"system-settings-horizontal-total",component:wg,meta:{title:gk+""}},{path:"/identity",name:"idenity-index",component:aC,meta:{title:gk+""},children:[{path:"/identity/setup-totp",name:"identity-setup-totp",component:fC,meta:{title:gk+""}}]},{path:"/top",name:"top",component:Ju,meta:{title:gk+"トップページ"}},{path:"/:pathMatch(.*)*",component:yC}]}],vk=new B["a"]({mode:"history",base:"/",routes:hk}),pk=vk;function bk(){var t,e=Object(r["c"])(),o=null===e||void 0===e||null===(t=e.proxy)||void 0===t?void 0:t.$router;if(!o)throw Error("Vue router not found.");return o}function yk(t){if(r["f"])return t.currentRoute.query;if(r["g"])return t.currentRoute.value.query;throw new Error("Not supported Vue version.")}o("e946"),o("2ca0");var Sk,Dk=o("00ef"),Ck=o("4327"),wk=function(){var t=void 0;return{getAuthenticatedUser:function(){return Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Dk["a"].currentSession().then((function(t){return Dk["a"].currentAuthenticatedUser().then((function(e){return{signedIn:t.isValid(),user:e}})).catch((function(){return{signedIn:t.isValid(),user:null}}))})).catch((function(){return{signedIn:!1,user:null}}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()},initialize:function(e){return Object(X["a"])(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:t=function(t){var o,n,a,r,i,s,l,c=t.payload,u=c.event,d=c.data;switch(u){case"signIn":null===(o=e.onSignIn)||void 0===o||o.call(e,d);break;case"signOut":null===(n=e.onSignOut)||void 0===n||n.call(e,d);break;case"signUp":null===(a=e.onSignUp)||void 0===a||a.call(e,d);break;case"signIn_failure":null===(r=e.onSignInFailure)||void 0===r||r.call(e,d);break;case"tokenRefresh":null===(i=e.onTokenRefresh)||void 0===i||i.call(e,d);break;case"tokenRefresh_failure":null===(s=e.onTokenRefreshFailure)||void 0===s||s.call(e,d);break;case"configured":null===(l=e.onConfigured)||void 0===l||l.call(e,d);break}},Ck["a"].listen("auth",t);case 2:case"end":return o.stop()}}),o)})))()},finalize:function(){return Object(X["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t&&(Ck["a"].remove("auth",t),t=void 0);case 1:case"end":return e.stop()}}),e)})))()},signIn:function(t){return Object(X["a"])(regeneratorRuntime.mark((function e(){var o,n,a,r,i,s,l,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=t.username,n=t.password,a=t.organizationCode,r=t.onSoftwareToken,i=t.onRequireNewPassword,s=t.onResetPassword,l=t.onError,e.prev=1,e.next=4,Dk["a"].signIn(o,n,{organization:a});case 4:return c=e.sent,c.getSignInUserSession()||(u=c.challengeName,"NEW_PASSWORD_REQUIRED"==u&&i?i(c):"SOFTWARE_TOKEN_MFA"==u&&r&&r(c)),e.abrupt("return",c);case 9:e.prev=9,e.t0=e["catch"](1),e.t0&>(e.t0)&&"PasswordResetRequiredException"===e.t0.code&&s?s(e.t0.code):null===l||void 0===l||l(e.t0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])})))()},signOut:function(){return Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:Dk["a"].signOut();case 1:case"end":return t.stop()}}),t)})))()},confirmSignIn:function(t,e){return Object(X["a"])(regeneratorRuntime.mark((function o(){var n,a,r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:n=e.code,a=e.onSuccess,r=e.onError,Dk["a"].confirmSignIn(t,n,"SOFTWARE_TOKEN_MFA",{}).then((function(){null===a||void 0===a||a()})).catch((function(t){null===r||void 0===r||r(t)}));case 2:case"end":return o.stop()}}),o)})))()},completeNewPassword:function(t){return Object(X["a"])(regeneratorRuntime.mark((function e(){var o,n,a,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=t.user,n=t.password,a=t.organizationCode,r=t.onSuccess,i=t.onError,a&&Dk["a"].completeNewPassword(o,n,null,{organization:a}).then((function(){null===r||void 0===r||r()})).catch((function(t){null===i||void 0===i||i(t)}));case 2:case"end":return e.stop()}}),e)})))()},setupTotp:function(t,e){return Object(X["a"])(regeneratorRuntime.mark((function o(){var n,a;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:n=e.onSuccess,a=e.onError,t&&Dk["a"].setupTOTP(t).then((function(t){n(t)})).catch((function(t){a(t)}));case 2:case"end":return o.stop()}}),o)})))()},verifyTotpToken:function(t,e){return Object(X["a"])(regeneratorRuntime.mark((function o(){var n,a,r,i;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(n=e.totpCode,a=e.onSuccess,r=e.onError,!t){o.next=14;break}return o.prev=2,o.next=5,Dk["a"].verifyTotpToken(t,n);case 5:return o.next=7,Dk["a"].setPreferredMFA(t,"TOTP");case 7:i=o.sent,a(i),o.next=14;break;case 11:o.prev=11,o.t0=o["catch"](2),r(o.t0);case 14:case"end":return o.stop()}}),o,null,[[2,11]])})))()},forgotPasswordSubmit:function(t){return Object(X["a"])(regeneratorRuntime.mark((function e(){var o,n,a,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=t.username,n=t.code,a=t.password,r=t.onSuccess,i=t.onError,Dk["a"].forgotPasswordSubmit(o,n,a).then((function(){return r()})).catch((function(t){return i(t)}));case 2:case"end":return e.stop()}}),e)})))()},forgotPassword:function(t){return Object(X["a"])(regeneratorRuntime.mark((function e(){var o,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=t.username,n=t.onSuccess,a=t.onError,Dk["a"].forgotPassword(o).then((function(){return null===n||void 0===n?void 0:n()})).catch((function(t){return null===a||void 0===a?void 0:a(t)}));case 2:case"end":return e.stop()}}),e)})))()},signUp:function(t){return Object(X["a"])(regeneratorRuntime.mark((function e(){var o,n,a,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=t.username,n=t.password,a=t.email,r=t.onSuccess,i=t.onError,Dk["a"].signUp({username:o,password:n,attributes:{email:a}}).then((function(t){r(t.user)})).catch((function(t){i(t)}));case 2:case"end":return e.stop()}}),e)})))()},confirmSignUp:function(t){return Object(X["a"])(regeneratorRuntime.mark((function e(){var o,n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=t.username,n=t.code,a=t.onSuccess,r=t.onError,Dk["a"].confirmSignUp(o,n).then((function(t){a(t)})).catch((function(t){r(t)}));case 2:case"end":return e.stop()}}),e)})))()},refresh:function(){return Object(X["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:Dk["a"].currentSession().then((function(t){var e=t.getRefreshToken();Dk["a"].currentAuthenticatedUser().then((function(t){t.refreshSession(e,(function(t){console.log(t)}))}))}));case 1:case"end":return t.stop()}}),t)})))()},getJwtToken:function(t){var e,o=t.user;return null===o||void 0===o||null===(e=o.getSignInUserSession())||void 0===e?void 0:e.getIdToken().getJwtToken()},getOids:function(t){var e=t.user;if(console.log("state.user as CognitoUser",e),e){var o,n=null===e||void 0===e||null===(o=e.getSignInUserSession())||void 0===o?void 0:o.getIdToken().payload["cognito:groups"];return n.filter((function(t){return t.startsWith("oid-")}))}return[]},hasOrganization:function(t){var e,o=t.user,n=null===o||void 0===o||null===(e=o.getSignInUserSession())||void 0===e?void 0:e.getIdToken().payload["cognito:groups"];return!!n&&n.some((function(t){return t.startsWith("oid-")}))},getUsername:function(t){var e=t.user;return null===e||void 0===e?void 0:e.getUsername()}}},kk=wk(),Ik=o("7bb1"),xk=o("4c93");o("9299"),o("cb5d"),y["default"].config.productionTip=!1,y["default"].mixin({methods:{getDay:function(t){var e=t.split("-");return parseInt(e[2])}}}),p["a"].configure({userPoolId:A.cognito.userPoolId,userPoolWebClientId:A.cognito.clientId,authenticationFlowType:"USER_SRP_AUTH"}),y["default"].component("ValidationObserver",Ik["a"]),y["default"].component("ValidationProvider",Ik["b"]),Object(Ik["c"])("required",Object(n["a"])({},xk["a"])),null===(Sk=rc.dispatch("auth/initialize",{authProvider:kk}))||void 0===Sk||Sk.then((function(){var t=new y["default"]({router:pk,vuetify:W,setup:function(){Object(r["m"])($,rc);var t=l({showConsoleColors:!0,stringifyArguments:!0});Object(r["m"])(s,t);var e=G({getStore:function(){return rc}});Object(b["a"])(e)},render:function(t){return t(x)}});t.$mount("#app")}))},cf05:function(t,e,o){t.exports=o.p+"img/logo.f355d361.png"},d0397:function(t,e,o){"use strict";o("2ad8")},d328:function(t,e,o){"use strict";o("1b76")},d742:function(t,e,o){t.exports=o.p+"img/logo.f355d361.png"},d7fd:function(t,e,o){},e0b4:function(t,e,o){"use strict";o("b6ef")},e946:function(t,e,o){"use strict";var n=o("448a").default;function a(t){return n(t).length}Object.defineProperty(String.prototype,"charLength",{get:function(){return a(this)}})},f258:function(t,e,o){},f49c:function(t,e,o){},f88f:function(t,e,o){"use strict";o("6047")},f894:function(t,e,o){"use strict";o("4910")},fba7:function(t,e,o){}}); //# sourceMappingURL=app.007aec45.js.map